/* AIUS tokens and primitives in the aius.co style (docs/style-aius-co.md). Values are aius.co's:
   website.css and global.css for the chrome, deliverables.css for documents. */
@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: InterVariable;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/InterVariable-Italic.woff2") format("woff2");
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-mono-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-latin-ext-500.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-latin-500.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  /* Type: InterVariable for the chrome, Geist for documents, IBM Plex Mono for uppercase labels. */
  --font-sans: InterVariable, "Inter var", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-doc: Geist, InterVariable, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-code: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* The uppercase label: in the chrome aius.co's .eyebrow, in documents its .h-section. */
  --caps-font: var(--font-mono);
  --caps-size: 12px;
  --caps-weight: 500;
  --caps-line: 1.35;
  --caps-ink: #5c5c5c;
  --ls-body: 0;
  --ls-title: -0.02em;
  --ls-caps: 0;
  --bg: #ffffff;
  --surface: #fafaf9;
  --surface-raised: #f4f4f2;
  --fg: #000000;
  /* The document's second ink (.dv --dv-ink-2): tab labels and prose. */
  --ink-2: #1f1f1f;
  /* The .lead and .cell-desc ink: black at 64%. */
  --fg-muted: #5c5c5c;
  /* The portal header's secondary ink. */
  --fg-subtle: #6b7280;
  --line: rgb(0 0 0 / 0.06);
  --line-strong: rgb(0 0 0 / 0.12);
  --line-2: rgb(10 10 10 / 0.1);
  --line-bold: rgb(10 10 10 / 0.16);
  --brand: #7100bd;
  --brand-hover: #5000ad;
  /* The current navigation item: brand at 8% on white, edged at 45%. */
  --brand-subtle: #f4ebfa;
  --brand-wash: #f4ebfa;
  --brand-wash-2: #f4ebfa;
  --brand-line: rgb(113 0 189 / 0.45);
  --brand-rgb: 113 0 189;
  --on-brand: #ffffff;
  --gradient-brand:
    linear-gradient(134.42deg, #50f3ff 1.75%, rgba(80, 243, 255, 0) 52.95%),
    radial-gradient(circle at 73% 26%, #9200cd 0%, #7100bd 18%, #5000ad 36%, #2e009c 53%, #1e0094 63%, #0d008c 72%);
  /* On a content-width button the sheen would sit under the label (2.3:1 on its first letters); the
     compact button keeps it to the leading 48px, where the label stays above 5.4:1. */
  --gradient-brand-compact:
    linear-gradient(134.42deg, #50f3ff 1.75%, rgba(80, 243, 255, 0) 52.95%) 0 0 / 48px 100% no-repeat,
    radial-gradient(circle at 73% 26%, #9200cd 0%, #7100bd 18%, #5000ad 36%, #2e009c 53%, #1e0094 63%, #0d008c 72%);
  --gradient-chip: linear-gradient(90deg, #7100bd 0%, #1e0094 100%);
  --gradient-ink:
    radial-gradient(120% 100% at 30% 0%, rgb(255 255 255 / 0.35), rgb(255 255 255 / 0) 50%),
    linear-gradient(180deg, #1f1f1f 0%, #0a0a0a 100%);
  --shadow-brand: 0 6px 16px rgb(64 0 160 / 0.18);
  /* White with a 1% veil, under the film grain (website.css body). */
  --page-ground: #fcfcfc;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --grain-opacity: 0.08;
  --success: #0c5a1f;
  --success-fg: #0c5a1f;
  --success-bg: #ecffe7;
  --success-line: rgb(12 90 31 / 0.18);
  --warning: #7a4b00;
  --warning-fg: #7a4b00;
  --warning-bg: #fff6e0;
  --warning-line: rgb(122 75 0 / 0.18);
  --danger: #9b1c1c;
  --danger-fg: #9b1c1c;
  --danger-bg: #ffe9e9;
  --danger-line: rgb(155 28 28 / 0.18);
  --info-fg: #114b7a;
  --info-bg: #e6f4ff;
  --info-line: rgb(17 75 122 / 0.18);
  --caution: #7a4b00;
  --caution-bg: #fff6e0;
  --flag-bg: #ffe9e9;
  --link: #114b7a;
  --shadow-ink: 10 10 10;
  --shadow-sm: 0 1px 0 rgb(10 10 10 / 0.04), 0 1px 2px rgb(10 10 10 / 0.04);
  --shadow-md: 0 1px 0 rgb(10 10 10 / 0.04), 0 8px 24px -8px rgb(10 10 10 / 0.1);
  --shadow-lg: 0 20px 50px -24px rgb(10 10 10 / 0.2), 0 1px 0 rgb(10 10 10 / 0.04);
  --shadow-modal: 0 32px 80px rgb(0 0 0 / 0.18);
  /* aius.co cards carry a hairline, not a lit edge. */
  --edge-object: linear-gradient(var(--line), var(--line));
  --rule-fade-y: linear-gradient(var(--line-2), var(--line-2));
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --radius: 12px;
  --tip-bg: #0a0a0a;
  --tip-fg: #ffffff;
  --tip-fg-muted: #b8b8b8;
  --tip-line: #1f1f1f;
  --chart-grid: rgba(10, 10, 10, 0.05);
  --chart-axis: #6b7280;
  /* Palette C of aius.co's charts, in its order: pink, mint, azure, cyan, amber. */
  --chart-s1: #ff7bde;
  --chart-s2: #8cff7b;
  --chart-s3: #3eacff;
  --chart-s4: #50f3ff;
  --chart-s5: #ffb547;
  --chart-muted: #9ca3af;
  /* A single series takes the palette's first tone, as aius.co's charts do; its fill is 13% of it. */
  --chart-solo: #ff7bde;
  --chart-solo-soft: rgba(255, 123, 222, 0.13);
  /* aius.co's heatmap ramps (heatmap.tsx): azure; red through white to blue. */
  --heat-seq: #3eacff;
  --heat-low: #e13c3c;
  --heat-high: #3e6ec8;
  --rail-surface: #ffffff;
  --rail-bg: #ffffff;
  --rail-fg: #000000;
  --rail-fg-muted: #5c5c5c;
  --rail-fg-subtle: #6b7280;
  --rail-line: rgb(0 0 0 / 0.06);
  --rail-line-strong: rgb(0 0 0 / 0.12);
  --rail-accent: #7100bd;
  --rail-wash: #f4ebfa;
  --focus: #2e009c;
  --rail-width: 264px;
  --rail-slim: 56px;
  --mast-height: 48px;
  --dock-width: 56px;
  --panel-width: 360px;
}
/* aius.co has no dark web theme; dark takes the dark AIUS terminal palette. White stays the default
   whatever the OS appearance; dark requires an explicit theme. */
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --caps-ink: #8a8a8a;
    --bg: #141414;
    --surface: #141414;
    --surface-raised: #1e1e1e;
    --fg: #eeeeee;
    --ink-2: #dcdcdc;
    --fg-muted: #8a8a8a;
    --fg-subtle: #8a8a8a;
    --line: rgb(255 255 255 / 0.08);
    --line-strong: rgb(255 255 255 / 0.16);
    --line-2: rgb(255 255 255 / 0.12);
    --line-bold: rgb(255 255 255 / 0.22);
    --brand: #de7bff;
    --brand-hover: #eba8ff;
    --brand-subtle: #2a1433;
    --brand-wash: #2a1433;
    --brand-wash-2: #2a1433;
    --brand-line: rgb(222 123 255 / 0.45);
    --brand-rgb: 222 123 255;
    --on-brand: #0a0a0a;
    --page-ground: #0a0a0a;
    --success: #8cff7b;
    --success-fg: #8cff7b;
    --success-bg: #0f2a0b;
    --success-line: rgb(140 255 123 / 0.28);
    --warning: #ffb20d;
    --warning-fg: #ffb20d;
    --warning-bg: #2a1d00;
    --warning-line: rgb(255 178 13 / 0.28);
    --danger: #ff5d8f;
    --danger-fg: #ff5d8f;
    --danger-bg: #2d0f18;
    --danger-line: rgb(255 93 143 / 0.28);
    --info-fg: #3eacff;
    --info-bg: #0b1f33;
    --info-line: rgb(62 172 255 / 0.28);
    --caution: #ffb20d;
    --caution-bg: #2a1d00;
    --flag-bg: #2d0f18;
    --link: #3eacff;
    --shadow-ink: 0 0 0;
    --tip-bg: #1e1e1e;
    --tip-fg: #eeeeee;
    --tip-fg-muted: #b8b8b8;
    --tip-line: #3c3c3c;
    --chart-grid: rgba(255, 255, 255, 0.06);
    --chart-axis: #8a8a8a;
    --rail-surface: #141414;
    --rail-bg: #141414;
    --rail-fg: #eeeeee;
    --rail-fg-muted: #8a8a8a;
    --rail-fg-subtle: #8a8a8a;
    --rail-line: rgb(255 255 255 / 0.08);
    --rail-line-strong: rgb(255 255 255 / 0.16);
    --rail-accent: #de7bff;
    --rail-wash: #2a1433;
    --focus: #de7bff;
  }
}
/* The document register: aius.co's projects page and project pages (.dv) set in Geist. */
.projects-view,
.project-layout,
.report-editor,
.shared .main {
  --caps-font: var(--font-doc);
  --caps-size: 13px;
  --caps-weight: 600;
  --caps-ink: #6b7280;
  --ls-body: -0.005em;
  --ls-caps: 0.02em;
  --fg: #0a0a0a;
  --fg-muted: #6b7280;
  font-family: var(--font-doc);
  color: var(--fg);
}
.project-layout,
.report-editor,
.shared .main {
  font-size: 14px;
  line-height: 1.45;
}
/* Code takes the register's mono: IBM Plex Mono in the chrome, Geist Mono in documents. */
:where(code, kbd, samp, pre) {
  font-family: var(--font-mono);
}
:where(.projects-view, .project-layout, .report-editor, .shared .main) :where(code, kbd, samp, pre) {
  font-family: var(--font-code);
}
@media screen {
  :root[data-theme="dark"] :is(.projects-view, .project-layout, .report-editor, .shared .main) {
    --caps-ink: #8a8a8a;
    --fg: #eeeeee;
    --fg-muted: #8a8a8a;
  }
}
.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);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.diagnostic-prompt:not([hidden]) {
  display: grid;
  gap: 8px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.diagnostic-prompt h2 {
  margin: 0;
  font-size: 1rem;
}
.diagnostic-prompt p {
  margin: 0;
}
.diagnostic-contents {
  color: var(--fg-muted);
  font-size: 0.875rem;
}
.diagnostic-note {
  display: grid;
  gap: 4px;
  font-size: 0.875rem;
}
.diagnostic-note textarea {
  width: 100%;
  resize: vertical;
  font: inherit;
}
.diagnostic-preview pre {
  max-height: 240px;
  margin: 8px 0 0;
  overflow: auto;
  font-size: 0.75rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.diagnostic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
* {
  box-sizing: border-box;
  letter-spacing: var(--ls-body);
}
b,
strong {
  font-weight: 600;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  font: 400 16px/1.5 var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--fg);
  background: var(--page-ground);
}
/* The film grain over every page (website.css body::before). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: var(--grain);
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] body::before {
  display: none;
}
@media print {
  body::before {
    display: none;
  }
}
button,
input,
select,
textarea {
  font: inherit;
  font-feature-settings: inherit;
}
button {
  cursor: pointer;
}
/* A busy control keeps its label and size; a spinner replaces its icon until the action settles. */
@keyframes aius-spin {
  to {
    transform: rotate(360deg);
  }
}
button[aria-busy="true"] {
  cursor: progress;
}
button[aria-busy="true"]:disabled {
  opacity: 1;
}
button[aria-busy="true"] > svg {
  display: none;
}
button[aria-busy="true"]::before,
.aius-spinner {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: aius-spin 0.7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  button[aria-busy="true"]::before,
  .aius-spinner {
    animation-duration: 2s;
  }
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
/* The wordmark in ink, as on aius.co's header. */
.aius-wordmark {
  display: block;
  width: 124px;
  height: 25px;
  background: var(--fg);
  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: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 6px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--fg-muted);
}
.password-input .password-reveal:hover:not(:disabled) {
  background: var(--line);
  color: var(--fg);
}
.password-reveal .icon {
  width: 18px;
  height: 18px;
}
.password-caps {
  margin: 6px 0 0;
  color: var(--fg-muted);
  font-size: 12px;
}
/* One disclosure mark for every place a disclosure opens: a 24px ghost circle with an 8px chevron.
   No label: its position and direction report the state; the control's own text or aria-label
   carries the name. Rotation: closed points right, open points down. */
.disclosure-mark {
  align-items: center;
  background: var(--bg);
  block-size: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-sizing: border-box;
  color: var(--fg-muted);
  display: inline-flex;
  flex: 0 0 24px;
  inline-size: 24px;
  justify-content: center;
}
.disclosure-mark::before {
  block-size: 8px;
  border-block-end: 1.5px solid currentColor;
  border-inline-end: 1.5px solid currentColor;
  box-sizing: border-box;
  color: var(--fg-muted);
  content: "";
  inline-size: 8px;
  rotate: -45deg;
  /* Optical centring: the chevron's ink centroid sits 9/56 of its size off the box centre. */
  transform: translate(calc(8px * -9 / 56), calc(8px * -9 / 56));
}
details[open] > summary .disclosure-mark::before,
.disclosure-mark[data-direction="down"]::before {
  rotate: 45deg;
}
.disclosure-mark[data-direction="up"]::before {
  rotate: -135deg;
}
@media print {
  .disclosure-mark {
    display: none !important;
  }
}
/* One card, as aius.co's .dv .card: white, one hairline, 14px corners, no shadow. Radius and
   padding stay on each consumer; a card never nests in a card. */
.aius-card {
  background: var(--card-ground, var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
@media print {
  .aius-card {
    background: var(--bg);
    border-color: var(--line-2);
  }
}
