/* Receipt. The look of the workspace: tokens, then the shell, then the shared parts, then the chat and the views.
   Cool neutrals, one blue accent, colour for meaning. Each side of the project has its own colour, so who said a
   quote shows at a glance: RELEX blue, Acme orange, Meridian purple. A word always stands next to a colour. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/inter-latin-400.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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/inter-latin-600.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: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/inter-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/inter-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

:root {
  color-scheme: light;
  --bg: #F5F7FA; --panel: #FFFFFF; --sidebar: #EDF1F6; --sunken: #F2F5F9;
  --hover: rgba(15, 30, 60, 0.055); --press: rgba(15, 30, 60, 0.1);
  --text: #0F1728; --text-2: #445066; --text-3: #7A8499; --line: #E2E7EF; --line-2: #CFD6E1;
  --primary: #2563EB; --primary-hover: #1D55D6; --primary-soft: #E7EFFF; --primary-ink: #1B4FC4; --on-primary: #FFFFFF;
  --green: #15803D; --green-soft: #E2F4E9; --amber: #A55A05; --amber-soft: #FDF0D9;
  --red: #C0342C; --red-soft: #FCE9E8; --blue: #4F46E5; --blue-soft: #ECEBFD; --grey: #5F6B80; --grey-soft: #EBEFF5;
  --mark: #FFE58A; --mark-ink: #1A1A1A;
  --relex: #2563EB; --relex-soft: #E1EBFE; --acme: #D9601B; --acme-soft: #FDE9DB;
  --meridian: #8B46C8; --meridian-soft: #F2E8FB; --nobody: #69748A; --nobody-soft: #E9EDF3;
  --shadow-1: 0 1px 2px rgba(15, 30, 60, 0.06);
  --shadow-2: 0 1px 2px rgba(15, 30, 60, 0.05), 0 6px 20px rgba(15, 30, 60, 0.07);
  --shadow-3: 0 18px 50px rgba(15, 30, 60, 0.18), 0 2px 8px rgba(15, 30, 60, 0.08);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Charter, "Source Serif Pro", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 22px;
  --fast: 140ms; --mid: 220ms; --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0C111B; --panel: #131A26; --sidebar: #0A0E17; --sunken: #111724;
  --hover: rgba(255, 255, 255, 0.06); --press: rgba(255, 255, 255, 0.1);
  --text: #E8EDF5; --text-2: #AEB8C8; --text-3: #7A8599; --line: #223047; --line-2: #31405A;
  --primary: #5B9BFF; --primary-hover: #74ABFF; --primary-soft: #15284A; --primary-ink: #A3C6FF; --on-primary: #06101F;
  --green: #5AD68A; --green-soft: #12291F; --amber: #F2B64C; --amber-soft: #2D2311;
  --red: #F7837B; --red-soft: #321A1C; --blue: #9A97FA; --blue-soft: #1F1D45; --grey: #A0AABB; --grey-soft: #1E2636;
  --mark: #6B5412; --mark-ink: #FFF3C4;
  --relex: #6EA6FF; --relex-soft: #152A4D; --acme: #FF9A5C; --acme-soft: #3A2415;
  --meridian: #C28BF5; --meridian-soft: #2B1C40; --nobody: #A0AABB; --nobody-soft: #1F2737;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-2: 0 6px 20px rgba(0, 0, 0, 0.35); --shadow-3: 0 18px 50px rgba(0, 0, 0, 0.55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0C111B; --panel: #131A26; --sidebar: #0A0E17; --sunken: #111724;
    --hover: rgba(255, 255, 255, 0.06); --press: rgba(255, 255, 255, 0.1);
    --text: #E8EDF5; --text-2: #AEB8C8; --text-3: #7A8599; --line: #223047; --line-2: #31405A;
    --primary: #5B9BFF; --primary-hover: #74ABFF; --primary-soft: #15284A; --primary-ink: #A3C6FF; --on-primary: #06101F;
    --green: #5AD68A; --green-soft: #12291F; --amber: #F2B64C; --amber-soft: #2D2311;
    --red: #F7837B; --red-soft: #321A1C; --blue: #9A97FA; --blue-soft: #1F1D45; --grey: #A0AABB; --grey-soft: #1E2636;
    --mark: #6B5412; --mark-ink: #FFF3C4;
    --relex: #6EA6FF; --relex-soft: #152A4D; --acme: #FF9A5C; --acme-soft: #3A2415;
    --meridian: #C28BF5; --meridian-soft: #2B1C40; --nobody: #A0AABB; --nobody-soft: #1F2737;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-2: 0 6px 20px rgba(0, 0, 0, 0.35); --shadow-3: 0 18px 50px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* a class that sets display must never show what is hidden */
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11" 1, "ss03" 1; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary-ink); text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary-soft); }
h1, h2, h3 { color: var(--text); letter-spacing: -0.015em; }
h1 { font-size: 26px; line-height: 1.25; font-weight: 600; margin: 0; }
h2 { font-size: 17px; line-height: 1.35; font-weight: 600; margin: 28px 0 12px; }
h3 { font-size: 15px; line-height: 1.4; font-weight: 600; margin: 18px 0 6px; }
p { margin: 0 0 10px; }
.tabular { font-variant-numeric: tabular-nums; }
.quiet { color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.second { color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s { width: 15px; height: 15px; }
svg.i.l { width: 22px; height: 22px; }

/* ------------------------------------------------------------------ the shell */

.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); height: 100dvh; }
.app.with-panel { grid-template-columns: 272px minmax(0, 1fr) 400px; }
.sidebar { background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding: 12px 10px 10px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-size: 15px; font-weight: 600; letter-spacing: 0.14em; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 1px 2px rgba(30, 80, 220, 0.3); }
.logo svg.i { width: 17px; height: 17px; stroke-width: 2; }
.logo.big { width: 48px; height: 48px; border-radius: 14px; }
.logo.big svg.i { width: 26px; height: 26px; }
/* the mark alive, on the login and the welcome only: no tile, the arms in the text colour around a breathing core */
.logo.alive { width: 72px; height: 72px; border-radius: 0; background: none; box-shadow: none; color: var(--text); }
.logo.alive svg.i { width: 72px; height: 72px; stroke-width: 1.8; overflow: visible; }
.logo.alive .dust { fill: currentColor; stroke: none; animation: drift 3.6s ease-in-out infinite; }
.logo.alive .core { fill: var(--primary); stroke: none; transform-box: fill-box; transform-origin: center; animation: breath 3.6s ease-in-out infinite; }
@keyframes breath { 50% { transform: scale(1.16); } }
@keyframes drift { 50% { opacity: 0.08; } }
.workspace { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; margin-bottom: 12px; border-radius: var(--r-m);
  border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-1); text-align: left; color: var(--text); cursor: default; }
.workspace.can-switch { cursor: pointer; }
.workspace.can-switch:hover { border-color: var(--line-2); }
.workspace .mono { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 600; font-size: 15px;
  background: var(--acme-soft); color: var(--acme); flex: none; }
.workspace .name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.workspace .sub { color: var(--text-3); font-size: 12px; line-height: 1.3; }
.newchat { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; margin: 0 0 12px; border-radius: 10px; border: 0;
  background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 14px; text-decoration: none;
  box-shadow: 0 1px 2px rgba(30, 80, 220, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14); transition: background var(--fast), transform var(--fast); }
.newchat:hover { background: var(--primary-hover); }
.newchat:active { transform: scale(0.98); }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 9px; color: var(--text-2); font-size: 14px;
  transition: background var(--fast), color var(--fast); }
.nav a svg.i { color: var(--text-3); transition: color var(--fast); }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a[aria-current="page"] { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: var(--shadow-1); }
.nav a[aria-current="page"] svg.i { color: var(--primary); }
.badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 20px;
  text-align: center; background: var(--amber-soft); color: var(--amber); font-variant-numeric: tabular-nums; }
.recents { display: flex; flex-direction: column; min-height: 0; flex: 1; margin-top: 16px; }
.recents .head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 6px 10px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.recents .find { position: relative; margin: 0 0 6px; }
.recents .find svg.i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.recents .find input { width: 100%; height: 32px; padding: 0 10px 0 32px; border-radius: 9px; border: 1px solid transparent; background: var(--hover); font-size: 13px; }
.recents .find input:focus { outline: none; border-color: var(--line-2); background: var(--panel); }
.recents ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.recents li a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; line-height: 1.35; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; transition: background var(--fast), color var(--fast); }
.recents li { position: relative; }
.recents li a { padding-right: 30px; }
.recents li a:hover { background: var(--hover); color: var(--text); }
.recents .more-chat { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 0; border-radius: 7px;
  background: none; color: var(--text-3); display: grid; place-items: center; opacity: 0; transition: opacity var(--fast), background var(--fast); }
.recents li:hover .more-chat, .recents .more-chat:focus-visible { opacity: 1; }
.recents .more-chat:hover { background: var(--press); color: var(--text); }
@media (hover: none) { .recents .more-chat { opacity: 1; } }
.recents li a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }
.recents .none { padding: 6px 10px; color: var(--text-3); font-size: 13px; }
.me { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.me button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 10px; border: 0; background: none; text-align: left;
  transition: background var(--fast); }
.me button:hover { background: var(--hover); }
.me .who { flex: 1; min-width: 0; }
.me .who b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who span { color: var(--text-3); font-size: 12px; }

.main { display: grid; grid-template-rows: 52px minmax(0, 1fr); min-width: 0; min-height: 0; background: var(--bg); }
.topbar { display: flex; align-items: center; gap: 6px; padding: 0 12px 0 20px; min-width: 0; }
.topbar .title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .title.for-view { visibility: hidden; }
.content { overflow-y: auto; min-height: 0; scrollbar-gutter: stable; overscroll-behavior-y: none; }
.content:focus { outline: none; }  /* focused only so a screen reader starts in the new view */
.column { max-width: 780px; margin: 0 auto; padding: 4px 28px 40px; }
.column.wide { max-width: 1000px; }
.menu-button { display: none !important; }

.panel { background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.panel header { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.panel header .doc { width: 32px; height: 32px; border-radius: 9px; background: var(--sunken); color: var(--text-2); display: grid; place-items: center; flex: none; }
.panel header .what { flex: 1; min-width: 0; }
.panel header .what b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel header .what span { color: var(--text-3); font-size: 12px; }
.panel header .on-phone { display: none; }
.panel .body { overflow-y: auto; padding: 12px 12px 24px; flex: 1; }
.scrim { display: none; }

@media (min-width: 768px) and (max-width: 1199px) {  /* the side panel lies over the content */
  .app.with-panel { grid-template-columns: 272px minmax(0, 1fr); }
  .panel { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; z-index: 30; box-shadow: var(--shadow-3); border-left: 0; }
}
@media (max-width: 767px) {  /* one column: the sidebar is a drawer, the side panel a full screen sheet */
  .app, .app.with-panel { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(304px, 86vw); z-index: 40; transform: translateX(-100%);
    transition: transform var(--mid) var(--ease); padding-top: max(12px, env(safe-area-inset-top)); border-right: 0; }
  .app.drawer-open .sidebar { transform: none; box-shadow: var(--shadow-3); }
  .app.drawer-open .scrim { display: block; position: fixed; inset: 0; background: rgba(12, 10, 24, 0.4); z-index: 25; }
  .menu-button { display: inline-flex !important; }
  .topbar { padding-left: 6px; }
  .topbar .title.for-view { visibility: visible; }
  .column { padding: 4px 16px 32px; }
  .panel { position: fixed; inset: 0; z-index: 30; border-left: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
  .panel header { padding-left: 6px; }
  .panel header .on-phone { display: inline-flex; }
  .panel header .off-phone { display: none; }
}

/* ------------------------------------------------------------------ shared parts */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 9px; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 13.5px; box-shadow: var(--shadow-1); text-decoration: none;
  transition: background var(--fast), border-color var(--fast), color var(--fast), transform var(--fast), box-shadow var(--fast); }
.btn:hover { background: var(--sunken); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600;
  box-shadow: 0 1px 2px rgba(30, 80, 220, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.btn.danger:hover { filter: brightness(1.06); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.icon { width: 34px; padding: 0; }
.btn.small { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.small.icon { width: 28px; padding: 0; }
.btn.wide { width: 100%; height: 40px; }
.btn.link { border: 0; background: none; box-shadow: none; padding: 0; height: auto; color: var(--primary-ink); font-weight: 600; }
.btn.link:hover { text-decoration: underline; background: none; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], select, textarea.field {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 14px;
  transition: border-color var(--fast), box-shadow var(--fast); }
textarea.field { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea.field:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
label.field { display: block; margin: 0 0 14px; }
label.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.error { color: var(--red); font-size: 13px; margin: 8px 0 0; }
.search { position: relative; }
.search svg.i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.search input { padding-left: 34px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  white-space: nowrap; background: var(--grey-soft); color: var(--grey); line-height: 1; flex: none; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.pill.plain::before { display: none; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.violet { background: var(--primary-soft); color: var(--primary-ink); }
.tone-green { color: var(--green); } .tone-amber { color: var(--amber); } .tone-red { color: var(--red); } .tone-blue { color: var(--blue); }
.tone-violet { color: var(--primary); } .tone-grey { color: var(--grey); }
.tint-green { background: var(--green-soft); } .tint-amber { background: var(--amber-soft); } .tint-red { background: var(--red-soft); }
.tint-blue { background: var(--blue-soft); } .tint-violet { background: var(--primary-soft); } .tint-grey { background: var(--grey-soft); }

.avatar { --c: var(--nobody); --c-soft: var(--nobody-soft); width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  background: var(--c-soft); color: var(--c); font-size: 11px; font-weight: 600; letter-spacing: 0.01em; }
.avatar.s { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.l { width: 34px; height: 34px; font-size: 12.5px; }
.avatar.relex { --c: var(--relex); --c-soft: var(--relex-soft); }
.avatar.acme { --c: var(--acme); --c-soft: var(--acme-soft); }
.avatar.meridian { --c: var(--meridian); --c-soft: var(--meridian-soft); }
.avatar svg.i { width: 14px; height: 14px; }
.org { font-weight: 600; }
.org.relex { color: var(--relex); } .org.acme { color: var(--acme); } .org.meridian { color: var(--meridian); }
.stack { display: inline-flex; }
.stack .avatar { box-shadow: 0 0 0 2px var(--panel); }
.stack .avatar + .avatar { margin-left: -6px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-1); }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r-m); background: var(--blue-soft); color: var(--text); font-size: 13.5px; line-height: 1.5; }
.callout svg.i { color: var(--blue); margin-top: 2px; width: 16px; height: 16px; }
.callout.amber { background: var(--amber-soft); } .callout.amber svg.i { color: var(--amber); }
.callout.red { background: var(--red-soft); } .callout.red svg.i { color: var(--red); }
.callout.green { background: var(--green-soft); } .callout.green svg.i { color: var(--green); }
.callout p { margin: 0; }

.skeleton { display: grid; gap: 14px; padding: 12px 0; }
.skeleton i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--sunken) 25%, var(--line) 37%, var(--sunken) 63%);
  background-size: 400% 100%; animation: sheen 1.4s ease infinite; }
@keyframes sheen { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.state { text-align: center; padding: 56px 16px; color: var(--text-2); }
.state .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--sunken); color: var(--text-3); display: inline-grid; place-items: center; margin-bottom: 12px; }
.state p { margin: 0 auto 4px; max-width: 420px; }
.state .btn { margin-top: 14px; }

.menu { position: fixed; z-index: 50; min-width: 220px; max-width: 320px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-3); animation: pop var(--fast) var(--ease); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 6px 10px; border: 0; background: none; border-radius: 8px;
  color: var(--text); font-size: 13.5px; text-align: left; transition: background var(--fast); }
.menu button:hover, .menu button:focus-visible { background: var(--hover); outline: none; }
.menu button svg.i { color: var(--text-3); width: 16px; height: 16px; }
.menu button .txt { flex: 1; min-width: 0; }
.menu button .sub { display: block; color: var(--text-3); font-size: 12px; line-height: 1.35; }
.menu button .aside { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.menu button .tick { color: var(--primary); }
.menu button.danger, .menu button.danger svg.i { color: var(--red); }
.menu .head { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 600; color: var(--text-3); letter-spacing: 0.02em; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(0.98); } }
dialog.sheet { border: 0; border-radius: var(--r-l); background: var(--panel); color: var(--text); padding: 22px; width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px); box-shadow: var(--shadow-3); animation: pop var(--mid) var(--ease); }
dialog.sheet::backdrop { background: rgba(12, 10, 24, 0.42); backdrop-filter: blur(2px); }
dialog.sheet h2 { margin: 0 0 14px; font-size: 18px; }
dialog.sheet .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.person-card { position: fixed; z-index: 55; width: 258px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-m); box-shadow: var(--shadow-3); pointer-events: none; animation: pop var(--fast) var(--ease); }
.person-card .top { display: flex; gap: 10px; align-items: center; }
.person-card .top b { display: block; font-size: 14px; font-weight: 600; }
.person-card .facts { display: flex; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.person-card .facts b { display: block; font-size: 15px; font-weight: 600; }
.person-card .facts span { color: var(--text-3); font-size: 11.5px; }
[data-person] { cursor: default; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
  padding: 10px 16px; border-radius: 999px; background: #111A2B; color: #EEF3FB; box-shadow: var(--shadow-3); font-size: 13.5px; animation: rise var(--mid) var(--ease); }
.toast svg.i { width: 16px; height: 16px; color: #8DB8FF; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ------------------------------------------------------------------ login */

.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 50% -10%, var(--primary-soft), transparent 60%), var(--bg); }
.login form { width: min(380px, 100%); padding: 32px 28px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); }
.login .logo { margin: 0 0 18px; }
.login .wordmark { font-weight: 600; font-size: 20px; letter-spacing: 0.22em; margin: 0 0 4px; }
.login .tagline { color: var(--text-3); font-size: 13px; margin: 0 0 22px; }
.login h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.01em; margin: 0 0 6px; }
.login p { color: var(--text-3); margin: 0 0 22px; font-size: 14px; }
.login .btn { margin-top: 6px; }

/* ------------------------------------------------------------------ the chat */

.chat { display: flex; flex-direction: column; min-height: 100%; }
.chat .thread { flex: 1; display: flex; flex-direction: column; gap: 30px; padding: 20px 0 28px; }
.chat.empty { justify-content: center; padding-bottom: 8vh; }
.chat.empty .thread { flex: 0; padding: 0; }
.hello { text-align: center; margin: 0 0 26px; }
.hello .logo { margin: 0 auto 18px; }
.hello h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 8px; }
.hello p { color: var(--text-3); font-size: 15px; margin: 0; }
.suggest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.suggest button { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--panel);
  color: var(--text-2); font-size: 13.5px; line-height: 1.45; text-align: left; box-shadow: var(--shadow-1);
  transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast), color var(--fast); }
.suggest button:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); color: var(--text); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.suggest button .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.suggest button .ic svg.i { width: 15px; height: 15px; }
.suggest.loading button { color: transparent; }

.exchange { display: flex; flex-direction: column; gap: 16px; }
.you { align-self: flex-end; max-width: 82%; padding: 10px 16px; border-radius: 20px 20px 6px 20px; background: var(--primary-soft); color: var(--text);
  font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply { min-width: 0; }
.read-as { display: flex; gap: 7px; align-items: flex-start; margin: 0 0 12px; color: var(--text-3); font-size: 13px; line-height: 1.45; }
.read-as svg.i { width: 15px; height: 15px; margin-top: 2px; }
.read-as b { color: var(--text-2); font-weight: 600; }
.working { padding: 4px 0; }
.working .now { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.working .now .btn { margin-left: 4px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--primary-soft); border-top-color: var(--primary); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.shimmer { background: linear-gradient(90deg, var(--text-3) 0%, var(--text) 45%, var(--text-3) 90%); background-size: 220% 100%; -webkit-background-clip: text;
  background-clip: text; color: transparent; animation: glide 1.8s linear infinite; }
@keyframes glide { from { background-position: 110% 0; } to { background-position: -110% 0; } }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 12px; max-width: 280px; }
.steps i { height: 3px; border-radius: 2px; background: var(--line); transition: background var(--mid); }
.steps i.on { background: var(--primary); }
.stale { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stale .btn { margin-left: auto; }

.answer .verdict { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--text); margin: 0 0 20px; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.claims { display: flex; flex-direction: column; gap: 22px; }
.claim-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.claim-text { font-size: 15.5px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.claim-head .pill { margin-top: 3px; }
.claim.gone .claim-text { color: var(--text-3); }
.receipts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
/* Keep the absolute screen-reader label inside its card, so long chats cannot extend the outer document. */
.receipt { --c: var(--nobody); position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; gap: 11px; align-items: start; width: 100%; padding: 11px 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: var(--r-m); background: var(--panel); color: var(--text); text-align: left;
  box-shadow: var(--shadow-1); transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast); }
.receipt.relex { --c: var(--relex); } .receipt.acme { --c: var(--acme); } .receipt.meridian { --c: var(--meridian); }
.receipt:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.receipt:active { transform: none; }
.receipt .q { font-family: var(--serif); font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.receipt .by { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 5px; color: var(--text-3); font-size: 12.5px; line-height: 1.4; }
.receipt .by b { color: var(--text); font-weight: 600; }
.receipt .by .dot::before { content: "·"; }
.receipt .by svg.i { width: 13px; height: 13px; }
.receipt .note { display: block; margin-top: 4px; color: var(--amber); font-size: 12px; }
.receipt .go { color: var(--text-3); opacity: 0; transition: opacity var(--fast); margin-top: 3px; }
.receipt:hover .go, .receipt:focus-visible .go { opacity: 1; }
.receipt.unmatched { border-left-style: dashed; }
@media (hover: none) { .receipt .go { opacity: 0.7; } }
.more { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 30px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text-2); font-size: 12.5px; transition: border-color var(--fast), color var(--fast); }
.more:hover { border-color: var(--line-2); color: var(--text); }
.more .stack .avatar { box-shadow: 0 0 0 2px var(--panel); }
.history-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--text-3); font-size: 12.5px; }
.history-toggle:hover { color: var(--text); }
.history-toggle svg.i { width: 14px; height: 14px; transition: transform var(--fast); }
.history-toggle[aria-expanded="true"] svg.chev { transform: rotate(180deg); }
.timeline { list-style: none; margin: 10px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 12px 12px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel);
  border: 2px solid var(--line-2); }
.timeline li.now::before { border-color: var(--primary); background: var(--primary); }
.timeline li .when { display: block; color: var(--text-3); font-size: 12px; }
.timeline li.lit, .claim-text.lit { background: var(--primary-soft); border-radius: 8px; box-shadow: 0 0 0 6px var(--primary-soft); transition: background var(--fast); }

/* the drawn journey: one point per statement, the line broken where the records disagree */
.journey-wrap { margin: 16px 0 2px; }
.journey { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0; margin: 0; padding: 0; list-style: none; }
.journey li { display: flex; align-items: center; }
.journey .join { width: 22px; height: 2px; margin: 0 0 17px; background: var(--line-2); flex: none; }
.journey .join.broken { background: none; border-top: 2px dashed var(--red); }
.journey .pt { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 76px; padding: 0 2px; border: 0;
  background: none; cursor: pointer; }
.journey .dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.journey .pt.here .dot { background: currentColor; box-shadow: 0 0 0 4px var(--blue-soft); }
.journey .pt .when { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.journey .pt:hover .when, .journey .pt:focus-visible .when { color: var(--text); }
.journey-line { margin: 6px 0 0; font-size: 12.5px; }
.notes { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.followups { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel);
  color: var(--text-2); font-size: 13.5px; line-height: 1.35; text-align: left; transition: border-color var(--fast), background var(--fast), color var(--fast); }
.chip svg.i { width: 15px; height: 15px; color: var(--text-3); }
.chip:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--line-2)); background: var(--primary-soft); color: var(--primary-ink); }
.chip:hover svg.i { color: var(--primary); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; color: var(--text-3); font-size: 12.5px; }
.meta > span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg.i { width: 14px; height: 14px; }
.meta .ok { color: var(--green); }
.meta button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 6px; margin-left: -6px; border-radius: 6px; color: var(--text-3); font-size: 12.5px; }
.meta button:hover { background: var(--hover); color: var(--text); }
.meta button[aria-expanded="true"] svg.i { transform: rotate(180deg); }
.details { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 16px; margin-top: 10px; padding: 14px 16px; border-radius: var(--r-m);
  background: var(--sunken); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.details dt { color: var(--text-3); }
.details dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }

.composer-wrap { position: sticky; bottom: 0; padding: 12px 0 18px; background: linear-gradient(to bottom, transparent, var(--bg) 26px); z-index: 2; }
.chat.empty .composer-wrap { position: static; padding: 0; background: none; }
.composer { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--shadow-2);
  transition: border-color var(--fast), box-shadow var(--fast); }
.composer:focus-within { border-color: color-mix(in srgb, var(--primary) 55%, var(--line-2)); box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-2); }
.composer textarea { display: block; width: 100%; min-height: 54px; max-height: 240px; padding: 14px 18px 4px; border: 0; background: transparent; resize: none; outline: none;
  font-size: 15px; line-height: 1.5; color: var(--text); }
.composer textarea::placeholder { color: var(--text-3); }
.composer .bar { display: flex; align-items: center; gap: 2px; padding: 6px 8px 8px 10px; }
.composer .bar .grow { flex: 1; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--text-2);
  font-size: 13px; transition: background var(--fast), color var(--fast); }
.tool:hover { background: var(--hover); color: var(--text); }
.tool.icon { width: 32px; padding: 0; justify-content: center; }
.tool svg.i { width: 17px; height: 17px; }
.tool .chev { width: 14px; height: 14px; color: var(--text-3); }
.send { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); margin-left: 4px;
  transition: background var(--fast), transform var(--fast), opacity var(--fast); }
.send svg.i { width: 18px; height: 18px; stroke-width: 2.2; }
.send:hover:not(:disabled) { background: var(--primary-hover); transform: scale(1.05); }
.send:disabled { background: var(--line-2); color: var(--panel); cursor: default; }
.focus-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 0; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 3px 0 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink);
  font-size: 12.5px; font-weight: 600; }
.fchip svg.i { width: 13px; height: 13px; }
.fchip button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: none; color: inherit; display: inline-grid; place-items: center; opacity: 0.7; }
.fchip button:hover { opacity: 1; background: var(--hover); }
.pick { max-height: 52dvh; overflow-y: auto; margin: 12px -8px 0; }
.pick button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 10px;
  text-align: left; transition: background var(--fast); }
.pick button:hover { background: var(--hover); }
.pick button b { font-weight: 600; font-size: 14px; }
.pick button span { color: var(--text-3); font-size: 12.5px; line-height: 1.4; }

/* the passage beside the answer */
.passage .turn { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 8px; border-radius: 10px; }
.passage .turn + .turn { margin-top: 2px; }
.passage .turn.focus { background: var(--primary-soft); }
.passage .who { font-size: 12.5px; color: var(--text-3); line-height: 1.4; margin-bottom: 2px; }
.passage .who b { color: var(--text); font-weight: 600; }
.passage .said { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
mark { background: var(--mark); color: var(--mark-ink); border-radius: 3px; padding: 0 2px; }

/* ------------------------------------------------------------------ the views */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 22px 0 20px; }
.page-head p { margin: 5px 0 0; color: var(--text-3); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 24px; }
.stat { padding: 14px 16px; }
.stat .n { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.stat .l small { display: block; color: var(--text-3); font-size: 11.5px; opacity: 0.85; margin-top: 2px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.toolbar .search { flex: 1 1 220px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--sunken); border: 1px solid var(--line); border-radius: 10px; }
.seg button { height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: none; color: var(--text-2); font-size: 13px; white-space: nowrap;
  transition: background var(--fast), color var(--fast); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: var(--shadow-1); }
.drop { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel);
  color: var(--text-2); font-size: 13px; box-shadow: var(--shadow-1); transition: border-color var(--fast), color var(--fast); }
.drop:hover { color: var(--text); border-color: var(--text-3); }
.drop.set { border-color: color-mix(in srgb, var(--primary) 45%, var(--line-2)); background: var(--primary-soft); color: var(--primary-ink); }
.drop svg.i { width: 14px; height: 14px; }
.list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-1); overflow: hidden; }
.row { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: none;
  text-align: left; color: var(--text); transition: background var(--fast); }
.list > .row:last-child, .list > .item:last-child .row { border-bottom: 0; }
button.row:hover, a.row:hover { background: var(--sunken); }
.row .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.row .ic svg.i { width: 17px; height: 17px; }
.row .body { flex: 1; min-width: 0; }
.row .t { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.row .s { color: var(--text-2); font-size: 13.5px; line-height: 1.5; margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .f { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; color: var(--text-3); font-size: 12.5px; }
.row .f > span { display: inline-flex; align-items: center; gap: 4px; }
.row .f svg.i { width: 13px; height: 13px; }
.row .end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.item .open { padding: 4px 16px 18px 62px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.item .open .receipts { margin-top: 12px; }
.item .open h3 { margin: 16px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.more-rows { display: flex; justify-content: center; padding: 14px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
.section-title h2 { margin: 0; }
.section-title a, .section-title button { font-size: 13px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; }
.bar-line { height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.bar-line i { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
.receipt-paper { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; padding: 22px 22px 26px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px 6px 0 0; box-shadow: var(--shadow-2); position: relative; margin-bottom: 14px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x; }
.receipt-paper h3 { font-family: var(--sans); margin: 0 0 12px; text-align: center; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.receipt-paper .line { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line-2); padding: 3px 0; }
.receipt-paper .line span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.receipt-paper .stamp { display: inline-block; margin-top: 14px; padding: 4px 10px; border: 2px solid var(--green); color: var(--green); border-radius: 6px;
  font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-3deg); }
.wizard { list-style: none; display: flex; gap: 6px; margin: 0 0 24px; padding: 0; }
.wizard li { flex: 1; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--text-3); min-width: 0; }
.wizard li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); transition: background var(--mid); }
.wizard li.done::before, .wizard li.now::before { background: var(--primary); }
.wizard li.done { color: var(--text-2); }
.wizard li.now { color: var(--text); font-weight: 600; }
.wizard li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.choice button { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--panel);
  text-align: left; transition: border-color var(--fast), background var(--fast); }
.choice button:hover { border-color: var(--line-2); }
.choice button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.choice button b { font-weight: 600; font-size: 14px; }
.choice button span { color: var(--text-2); font-size: 13px; line-height: 1.45; }
.dropzone { display: grid; place-items: center; gap: 6px; padding: 26px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r-m); background: var(--sunken);
  color: var(--text-2); text-align: center; transition: border-color var(--fast), background var(--fast); }
.dropzone.over { border-color: var(--primary); background: var(--primary-soft); }
.dropzone svg.i { width: 24px; height: 24px; color: var(--text-3); }
.stepper { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-3); }
.stepper li .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.stepper li.done { color: var(--text); } .stepper li.done .dot { border-color: var(--green); background: var(--green); color: #fff; }
.stepper li.done .dot svg.i { width: 12px; height: 12px; stroke-width: 3; }
.stepper li.now { color: var(--text); font-weight: 600; } .stepper li.now .dot { border-color: var(--primary); border-top-color: transparent; animation: spin 0.8s linear infinite; }

@media (max-width: 767px) {
  .suggest { grid-template-columns: minmax(0, 1fr); }
  .hello h1 { font-size: 30px; }
  .claim-head { flex-direction: column-reverse; gap: 6px; }  /* no room at the right: the word stands above its sentence */
  .claim-head .pill { margin-top: 0; }
  .details { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .details dd { margin-bottom: 8px; }
  .grid2, .choice { grid-template-columns: minmax(0, 1fr); }
  .item .open { padding-left: 16px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wizard li:not(.now) span { display: none; }
  .kv dd { margin-bottom: 8px; }
}
@media (pointer: coarse) { .btn, .tool, .nav a, .seg button, .drop { min-height: 40px; } .send { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
