/* Shared AIUS tokens from Dmytro's prototypes/_shared/system.css and nav-rail.css. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/inter-latin-400-normal.woff2") format("woff2");
}
.diagnostic-prompt:not([hidden]) {
  position: fixed;
  z-index: 1000;
  inset: auto 16px 16px auto;
  width: min(440px, calc(100vw - 32px));
  padding: 16px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 28px rgb(0 0 0 / 14%);
}
.diagnostic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/inter-latin-600-normal.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --font-sans: Inter, system-ui, sans-serif;
  --bg: #ffffff;
  --surface: #f9f8fa;
  --surface-raised: #f1f0f3;
  --fg: #0e0c10;
  --fg-muted: #56535d;
  --fg-subtle: #74707b;
  --line: #e5e3e8;
  --line-strong: #d1cdd6;
  --brand: #7100bd;
  --brand-hover: #51008d;
  --brand-subtle: #fbe6ff;
  --brand-wash: #fef2ff;
  --on-brand: #ffffff;
  --danger: #992023;
  --success: #00672a;
  --warning: #7f4500;
  --success-bg: #edfef0;
  --caution: #5c2c00;
  --caution-bg: #fff6e5;
  --flag-bg: #fff1ee;
  --tip-bg: #0e0c10;
  --tip-fg: #f9f8fa;
  --tip-fg-muted: #b4afbb;
  --tip-line: #3b3840;
  --chart-grid: #e5e3e8;
  --chart-axis: var(--fg-muted);
  --chart-s1: #3057a3;
  --chart-s2: #c37a31;
  --chart-s3: #266c20;
  --chart-s4: #b8669b;
  --chart-solo-soft: #cedffd;
  /* The reference rail intentionally has no dark variant. */
  --rail-surface: #f1f0f3;
  --rail-bg: #ffffff;
  --rail-fg: #0e0c10;
  --rail-fg-muted: #56535d;
  --rail-fg-subtle: #74707b;
  --rail-line: #e5e3e8;
  --rail-line-strong: #d1cdd6;
  --rail-accent: #7100bd;
  --rail-wash: #fbe6ff;
  --focus: #7100bd;
  --radius: 4px;
  --rail-width: 264px;
  --rail-slim: 56px;
  --mast-height: 48px;
}
/* White is the default regardless of OS appearance; dark requires an explicit theme. */
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0e0c10;
    --surface: #222026;
    --surface-raised: #3b3840;
    --fg: #f1f0f3;
    --fg-muted: #b4afbb;
    --fg-subtle: #938f9b;
    --line: #3b3840;
    --line-strong: #56535d;
    --brand: #cf84ff;
    --brand-hover: #e7afff;
    --brand-subtle: #222026;
    --brand-wash: #222026;
    --on-brand: #0e0c10;
    --danger: #ff877f;
    --success: #9fe2ad;
    --warning: #f9c57d;
    --success-bg: #001401;
    --caution: #f9c57d;
    --caution-bg: #1d0600;
    --flag-bg: #260000;
    --tip-bg: #3b3840;
    --tip-fg-muted: #d1cdd6;
    --tip-line: #74707b;
    --chart-grid: #3b3840;
    --focus: #cf84ff;
  }
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  font: 400 15px/1.5 var(--font-sans);
  color: var(--fg);
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.aius-wordmark {
  display: block;
  width: 124px;
  height: 25px;
  background: var(--brand);
  mask: url("/assets/aius-logo.svg") center / contain no-repeat;
}
.password-input {
  position: relative;
  min-width: 0;
}
.password-input input {
  padding-right: 46px;
}
.password-input .password-reveal {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  min-height: 32px;
  padding: 6px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg-muted);
}
.password-input .password-reveal:hover:not(:disabled) {
  background: var(--surface-raised);
  color: var(--fg);
}
.password-reveal .icon {
  width: 18px;
  height: 18px;
}
.password-caps {
  margin: 4px 0 0;
  color: var(--fg-muted);
  font-size: 13px;
}
