/* UniAuth's shared shadcn palette. Values stay HSL channels so controls,
   overlays and the evidence viewer share one light/dark color contract. */
:root {
  color-scheme: light;
  --font-sans: "Geist Sans", system-ui, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --background: 0 0% 100%;
  --foreground: 0 0% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 3.9%;
  --primary: 0 0% 9%;
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 96.1%;
  --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 96.1%;
  --muted-foreground: 0 0% 45.1%;
  --accent: 0 0% 96.1%;
  --accent-foreground: 0 0% 9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --ring: 0 0% 3.9%;
  --radius: .5rem;
  --sidebar-background: 0 0% 98%;
  --sidebar-foreground: 240 5.3% 26.1%;
  --sidebar-primary: 240 5.9% 10%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 240 4.8% 95.9%;
  --sidebar-accent-foreground: 240 5.9% 10%;
  --sidebar-border: 220 13% 91%;
  --sidebar-ring: 217.2 91.2% 59.8%;
  --success: 142 71% 29%;
  --success-surface: 138 76% 97%;
  --success-border: 141 55% 84%;
  --warning: 32 81% 29%;
  --warning-surface: 48 100% 96%;
  --warning-border: 43 83% 82%;
  --danger: 0 72% 42%;
  --danger-surface: 0 86% 97%;
  --danger-border: 0 74% 87%;
  --info: 215 72% 39%;
  --info-surface: 214 95% 97%;
  --info-border: 213 73% 87%;
  --highlight: 48 100% 92%;
  --highlight-strong: 46 93% 72%;
  --media-canvas: 0 0% 96%;
  --canvas: hsl(var(--background));
  --paper: hsl(var(--card));
  --ink: hsl(var(--foreground));
  --text-muted: hsl(var(--muted-foreground));
  --forest: hsl(var(--primary));
  --forest-dark: hsl(var(--primary) / .9);
  --teal: hsl(var(--primary));
  --line: hsl(var(--border));
  --wash: hsl(var(--muted));
  --error: hsl(var(--danger));
  font-family: var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root.dark {
  color-scheme: dark;
  --background: 0 0% 3.9%;
  --foreground: 0 0% 98%;
  --card: 0 0% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 0 0% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 0 0% 9%;
  --secondary: 0 0% 14.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 14.9%;
  --muted-foreground: 0 0% 63.9%;
  --accent: 0 0% 14.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 14.9%;
  --input: 0 0% 14.9%;
  --ring: 0 0% 83.1%;
  --sidebar-background: 240 5.9% 10%;
  --sidebar-foreground: 240 4.8% 95.9%;
  --sidebar-primary: 224.3 76.3% 48%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 240 3.7% 15.9%;
  --sidebar-accent-foreground: 240 4.8% 95.9%;
  --sidebar-border: 240 3.7% 15.9%;
  --sidebar-ring: 217.2 91.2% 59.8%;
  --success: 142 69% 70%;
  --success-surface: 145 38% 12%;
  --success-border: 143 40% 24%;
  --warning: 45 93% 72%;
  --warning-surface: 35 45% 13%;
  --warning-border: 36 50% 28%;
  --danger: 0 91% 78%;
  --danger-surface: 0 40% 13%;
  --danger-border: 0 42% 28%;
  --info: 213 94% 78%;
  --info-surface: 217 43% 14%;
  --info-border: 217 47% 29%;
  --highlight: 40 45% 18%;
  --highlight-strong: 40 65% 30%;
  --media-canvas: 0 0% 8%;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select, textarea { color: inherit; }
button { border: 0; }
button:disabled { cursor: wait; opacity: .55; }
input, textarea, select { max-width: 100%; }
input:not([type="radio"]):not([type="checkbox"]), textarea, select { min-width: 0; border: 1px solid var(--line); border-radius: calc(var(--radius) - 2px); background: hsl(var(--card)); outline: none; min-height: 40px; padding: 8px 12px; }
input:not([type="radio"]):not([type="checkbox"]):focus, textarea:focus, select:focus { border-color: hsl(var(--border)); box-shadow: 0 0 0 3px hsl(0 0% 0% / .08); }
input::placeholder, textarea::placeholder { color: hsl(var(--muted-foreground)); opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--teal); }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid hsl(var(--ring)); outline-offset: 3px; }
svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 600; overflow-wrap: break-word; }
h2 { margin-bottom: 0; font-size: 18px; letter-spacing: -.4px; }
[hidden] { display: none !important; }

.brand { display: flex; align-items: center; gap: 8px; margin: 0; color: hsl(var(--foreground)); font-size: 16px; font-weight: 700; letter-spacing: -.3px; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand svg { width: 20px; height: 20px; color: hsl(var(--foreground)); flex: none; }
.local-dot { display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 50%; background: hsl(var(--primary)); }
.workspace { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 10; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--line); padding: 0 32px; color: hsl(var(--muted-foreground)); font-size: 12px;
  background: hsl(var(--background) / .92); backdrop-filter: saturate(180%) blur(8px); }
.topbar strong { font-weight: 500; color: hsl(var(--foreground)); }
.slash { padding: 0 14px; color: hsl(var(--muted-foreground)); }
.topbar-right { display: flex; align-items: center; gap: 8px; font-size: 12px; color: hsl(var(--muted-foreground)); white-space: nowrap; }
.topbar-right .local-dot { width: 5px; height: 5px; }
.page-content { max-width: 1040px; margin: 0 auto; padding: 40px 32px 32px; }
.page-heading { margin-bottom: 32px; }
h1 { margin-bottom: 10px; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -1.25px; line-height: 1.2; font-weight: 600; }
.subtitle { color: hsl(var(--muted-foreground)); font-size: 12px; margin-bottom: 0; }
.capture-panel { padding: 24px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 2px hsl(0 0% 0% / .05); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.panel-heading h2 { font-size: 16px; letter-spacing: -.3px; }
.subtle { color: var(--text-muted); font-size: 12px; line-height: 1.65; }
.field-label { display: block; margin-bottom: 8px; color: hsl(var(--foreground)); font-size: 12px; font-weight: 500; }
.optional { color: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 400; margin-left: 5px; }
.capture-url-row { display: flex; gap: 12px; align-items: stretch; }
.url-field { display: flex; align-items: center; flex: 1; min-width: 0; border: 1px solid hsl(var(--border)); background: hsl(var(--muted) / .5); border-radius: calc(var(--radius) - 2px); }
.url-field:focus-within { border-color: hsl(var(--border)); box-shadow: 0 0 0 3px hsl(0 0% 0% / .08); }
.url-field > span { padding-left: 15px; font-size: 19px; color: hsl(var(--muted-foreground)); }
.url-field input#capture-url { width: 100%; height: 38px; min-height: 38px; padding: 8px 12px; background: transparent; border: 0; box-shadow: none; font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid transparent; border-radius: calc(var(--radius) - 2px); font-size: 14px; font-weight: 500; line-height: 1.4; text-align: center; white-space: nowrap; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.button:hover { text-decoration: none; }
.button.primary, button.primary { background: var(--teal); color: hsl(var(--muted-foreground)); box-shadow: 0 2px 3px hsl(0 0% 0% / .08); }
.button.primary:hover, button.primary:hover { background: hsl(var(--primary)); }
.button.secondary, button.secondary { background: hsl(var(--card)); border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.button.secondary:hover, button.secondary:hover { background: hsl(var(--muted) / .5); border-color: hsl(var(--border)); }
.capture-options { display: grid; grid-template-columns: 1fr auto; gap: 24px; margin-top: 20px; align-items: end; }
.note-field input { width: 100%; background: hsl(var(--card)); font-size: 12px; }
.view-field { min-width: 0; border: 0; margin: 0; padding: 0; }
.view-field legend { padding: 0; }
.segmented { display: flex; border: 1px solid var(--line); border-radius: calc(var(--radius) - 2px); padding: 3px; background: hsl(var(--muted) / .5); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: block; padding: 8px 13px; border: 1px solid transparent; border-radius: 4px; color: hsl(var(--muted-foreground)); font-size: 12px; white-space: nowrap; }
.segmented input:checked + span { background: hsl(var(--card)); border-color: hsl(var(--border)); box-shadow: 0 1px 3px hsl(0 0% 0% / .08); color: hsl(var(--foreground)); }
.segmented input:focus-visible + span { outline: 2px solid hsl(var(--ring)); outline-offset: 1px; }
.segmented small { font-size: 12px; color: hsl(var(--muted-foreground)); margin-left: 3px; }
.capture-footnote { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: hsl(var(--muted-foreground)); font-size: 12px; }
.capture-footnote > span { font-size: 13px; color: hsl(var(--muted-foreground)); }
.inline-error { margin: 14px 0 0; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); padding: 10px 12px; color: hsl(var(--foreground)); background: hsl(var(--muted) / .5); font-size: 12px; overflow-wrap: anywhere; }
.library { margin-top: 37px; }
.library.is-empty :is(.search-field, .library-toolbar, .table-heading) { display: none; }
.library.is-empty .library-heading { margin-bottom: 18px; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.library-heading h2 { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.library-heading p { margin: 5px 0 0; font-size: 12px; }
.search-field { display: flex; align-items: center; width: 223px; height: 40px; border: 1px solid hsl(var(--border)); border-radius: 6px; background: hsl(var(--card)); }
.search-field > span { margin-left: 11px; font-size: 20px; color: hsl(var(--muted-foreground)); line-height: 1; }
.search-field input#capture-search { width: 100%; border: 0; padding: 9px 10px; box-shadow: none; font-size: 12px; background: transparent; }
.search-field:focus-within { border-color: hsl(var(--border)); box-shadow: 0 0 0 3px hsl(0 0% 0% / .08); }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 16px; border-bottom: 1px solid hsl(var(--border)); }
.filter-tabs { display: flex; align-items: stretch; gap: 24px; }
.filter-tabs button { display: flex; align-items: center; gap: 8px; padding: 0 0 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; background: transparent; font-size: 12px; color: hsl(var(--muted-foreground)); white-space: nowrap; }
.filter-tabs button[aria-pressed="true"] { border-color: hsl(var(--border)); color: hsl(var(--foreground)); font-weight: 600; }
.filter-tabs button span { min-width: 15px; text-align: center; padding: 0 4px; border-radius: 3px; background: hsl(var(--muted) / .5); font-size: 12px; color: hsl(var(--muted-foreground)); }
.filter-tabs button[aria-pressed="true"] span { background: hsl(var(--muted) / .5); color: hsl(var(--foreground)); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 0; background: transparent; color: hsl(var(--muted-foreground)); font-size: 12px; }
.text-button:hover { color: var(--forest); }
.library-toolbar .text-button { align-self: flex-start; padding-top: 0; font-size: 12px; }
.table-heading, .capture-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 184px 16px; align-items: center; gap: 16px; }
/* The evidence itself, at a glance. A library of captures that shows none
   of what was captured is a log. */
.row-thumb { position: relative; display: flex; flex: none; align-items: center; justify-content: center; width: 104px; height: 64px; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); background: hsl(var(--muted) / .5); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.row-thumb-fallback { color: hsl(var(--muted-foreground)); font-size: 18px; }
.capture-row:hover .row-thumb { border-color: hsl(var(--ring) / .35); }
.table-heading { padding: 0 16px 8px; color: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 500; }
.capture-list { display: flex; flex-direction: column; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); overflow: hidden; }
.capture-row { width: 100%; padding: 16px; border: 0; border-top: 1px solid hsl(var(--border)); background: transparent; text-align: left; transition: background-color .12s; }
.capture-row:first-child { border-top: 0; }
.capture-row:hover { text-decoration: none; background: hsl(var(--muted) / .45); }
.capture-row:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: -2px; }
.row-page { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-page > div:last-child { min-width: 0; }
.row-page > span:last-child { min-width: 0; }
.page-icon { width: 36px; height: 39px; display: flex; align-items: center; justify-content: center; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--muted) / .5); color: hsl(var(--muted-foreground)); font-size: 21px; flex: none; }
.page-icon svg { width: 18px; height: 18px; }
.row-title { display: block; margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: hsl(var(--foreground)); font-size: 12px; font-weight: 600; }
.row-title > strong { display: block; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.row-url { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: hsl(var(--muted-foreground)); font-size: 12px; }
.row-note { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: hsl(var(--muted-foreground)); font-size: 12px; }
.row-meta { color: hsl(var(--foreground)); font-size: 12px; }
.row-meta small, .row-meta > span { display: block; color: hsl(var(--muted-foreground)); font-size: 12px; margin-top: 4px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; width: max-content; max-width: 100%; padding: 3px 7px; border: 1px solid hsl(var(--border)); border-radius: 4px; background: hsl(var(--muted) / .5); color: hsl(var(--foreground)); font-size: 12px; font-weight: 500; white-space: nowrap; }
.status-badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-badge.complete { color: hsl(var(--foreground)); background: hsl(var(--muted) / .5); border-color: hsl(var(--border)); }
.status-badge.partial { color: hsl(var(--foreground)); background: hsl(var(--muted) / .5); border-color: hsl(var(--border)); }
.status-badge.failed { color: hsl(var(--foreground)); background: hsl(var(--muted) / .5); border-color: hsl(var(--border)); }
.status-badge.queued, .status-badge.capturing { color: hsl(var(--foreground)); background: hsl(var(--muted) / .5); border-color: hsl(var(--border)); }
.status-badge.capturing::before { animation: pulse 1.6s ease-in-out infinite; }
.anchor-label { display: block; margin-top: 4px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.row-arrow { color: hsl(var(--muted-foreground)); font-size: 14px; transition: color .12s, transform .12s; }
.capture-row:hover .row-arrow { color: hsl(var(--foreground)); transform: translateX(2px); }
.empty-state { padding: 45px 24px 48px; border: 1px dashed hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--muted) / .5); text-align: center; }
.empty-icon { display: inline-flex; width: 42px; height: 45px; align-items: center; justify-content: center; margin-bottom: 13px; color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--muted) / .5); font-size: 26px; }
.empty-state h3 { margin-bottom: 6px; color: hsl(var(--foreground)); font-size: 13px; font-weight: 500; }
.empty-state p { max-width: 400px; margin: 0 auto; color: hsl(var(--muted-foreground)); font-size: 12px; line-height: 1.7; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 39px; border-top: 1px solid hsl(var(--border)); padding-top: 17px; color: hsl(var(--muted-foreground)); font-size: 12px; }

dialog { max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); color: var(--ink); border: 1px solid hsl(var(--border)); padding: 0; background: hsl(var(--card)); box-shadow: 0 28px 120px hsl(0 0% 0% / .08); }
dialog::backdrop { background: hsl(var(--primary)); backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
.detail-dialog { width: 1090px; border-radius: var(--radius); overflow: hidden; }
#detail-content { max-height: calc(100dvh - 50px); display: flex; flex-direction: column; overflow: hidden; }
.detail-header { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 25px 30px 22px; border-bottom: 1px solid var(--line); }
.detail-header > div { min-width: 0; }
.detail-header .eyebrow { margin-bottom: 8px; }
.detail-title { margin: 0 0 6px; font-size: 23px; font-weight: 600; letter-spacing: -.7px; overflow-wrap: anywhere; }
.detail-subtitle { margin: 0; font-size: 12px; color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
.detail-subtitle a { color: inherit; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; flex: none; border: 1px solid hsl(var(--border)); border-radius: 6px; background: hsl(var(--muted) / .5); color: hsl(var(--muted-foreground)); font-size: 23px; line-height: 1; }
.icon-button:hover { color: hsl(var(--foreground)); background: hsl(var(--muted) / .5); }
.detail-tabs { display: flex; flex: none; gap: 24px; padding: 0 30px; border-bottom: 1px solid var(--line); background: hsl(var(--card)); overflow-x: auto; }
.detail-tabs button { padding: 16px 0 13px; border-bottom: 2px solid transparent; background: transparent; color: hsl(var(--muted-foreground)); font-size: 12px; white-space: nowrap; }
.detail-tabs button[aria-selected="true"], .detail-tabs button.active, .detail-tabs button[aria-pressed="true"] { color: var(--teal); border-color: var(--teal); font-weight: 600; }
.detail-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 30px 30px; background: hsl(var(--muted) / .5); }
.detail-body > .row-note { margin: 0 0 17px; white-space: normal; overflow-wrap: anywhere; color: hsl(var(--foreground)); line-height: 1.8; }
.detail-body > .info-card { margin-top: 22px; }
.detail-body > .detail-actions { margin: 0 0 18px; }
#vantage-select { margin-left: 9px; padding: 7px 10px; font-size: 12px; }
.detail-soundness { display: grid; flex: none; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: hsl(var(--card)); border-bottom: 1px solid var(--line); }
.fact { display: block; min-width: 0; padding: 14px 18px 15px; border: 0; border-left: 1px solid var(--line); background: transparent; color: inherit; text-align: left; font: inherit; }
.fact:first-child { border-left: 0; padding-left: 30px; }
.fact:last-child { padding-right: 30px; }
button.fact { cursor: pointer; }
button.fact:hover { background: hsl(var(--muted) / .5); }
.fact-label { display: block; margin-bottom: 5px; color: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 500; }
.fact-value { display: block; color: hsl(var(--foreground)); font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.fact-note { display: block; margin-top: 3px; color: hsl(var(--muted-foreground)); font-size: 12px; overflow-wrap: anywhere; }
.fact.tone-good .fact-value, .fact.tone-warn .fact-value, .fact.tone-bad .fact-value { display: flex; align-items: center; gap: 6px; }
.fact.tone-good .fact-value::before, .fact.tone-warn .fact-value::before, .fact.tone-bad .fact-value::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.fact.tone-good .fact-value { color: hsl(var(--success)); }
.fact.tone-warn .fact-value { color: hsl(var(--warning)); }
.fact.tone-bad .fact-value { color: hsl(var(--danger)); font-weight: 650; }
/* One height for both columns, so each scrolls inside itself. With the list
   unbounded, fourteen artifacts made it 939px tall inside a 648px window: the
   body became a 1,520px scroller, and reaching the last file took the preview
   and its toolbar off screen with it. */
.detail-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: stretch; gap: 18px; height: clamp(380px, calc(100dvh - 420px), 820px); }
.artifact-list { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--radius); background: hsl(var(--card)); }
.artifact-item { flex: none; }
.artifact-group { position: sticky; top: 0; z-index: 1; margin: 0; padding: 9px 15px; border-bottom: 1px solid hsl(var(--border)); background: linear-gradient(hsl(var(--muted) / .5), hsl(var(--muted) / .5)), hsl(var(--card)); color: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 500; }
.artifact-item { display: block; width: 100%; padding: 13px 15px; border: 0; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: inherit; text-align: left; }
.artifact-item:last-child { border-bottom: 0; }
.artifact-item:hover { background: hsl(var(--muted) / .5); }
.artifact-item.active, .artifact-item[aria-pressed="true"], .artifact-item[aria-selected="true"] { background: hsl(var(--muted) / .5); box-shadow: inset 3px 0 0 hsl(0 0% 0% / .08); }
.artifact-name { display: block; font-size: 12px; color: hsl(var(--foreground)); font-weight: 550; overflow-wrap: anywhere; }
.artifact-meta { display: block; margin-top: 4px; font-size: 12px; color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
.artifact-item:disabled { opacity: .5; cursor: default; }
.preview-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: hsl(var(--card)); min-width: 0; }
.preview-title { flex: none; }
.preview-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 15px; border-bottom: 1px solid var(--line); color: hsl(var(--foreground)); font-size: 12px; }
.preview-title strong, .preview-title > span { min-width: 0; overflow-wrap: anywhere; }
.preview-file { display: flex; align-items: baseline; gap: 10px; }
.preview-file small { color: hsl(var(--muted-foreground)); font-size: 12px; }
.preview-digest { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.preview-digest small { flex: none; white-space: nowrap; color: hsl(var(--muted-foreground)); }
.preview-digest code { font: 12px/1.6 var(--font-mono); overflow-wrap: anywhere; }
.preview-title select { font-size: 12px; padding: 5px 8px; }
.preview-content { flex: 1 1 auto; min-height: 0; overflow: auto; background: hsl(var(--muted) / .5); }
.preview-content img, .preview-content video { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.preview-content img { object-fit: contain; }
.preview-content pre, .json-preview { margin: 0; padding: 20px; max-width: 100%; overflow: auto; background: hsl(var(--muted) / .5); color: hsl(var(--foreground)); font: 12px/1.7 var(--font-mono); tab-size: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-placeholder { height: 100%; min-height: 200px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; padding: 35px; color: hsl(var(--muted-foreground)); font-size: 12px; }
.preview-placeholder p { margin: 0; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.detail-actions .subtle { flex-basis: 100%; margin-bottom: 0; }
.info-card, .warning-card { margin: 0 0 18px; padding: 19px 21px; border: 1px solid var(--line); border-radius: var(--radius); background: hsl(var(--card)); overflow-wrap: anywhere; }
.info-card h3, .warning-card h3 { margin: 0 0 9px; font-size: 14px; font-weight: 600; }
.info-card p, .warning-card p { font-size: 12px; line-height: 1.8; color: hsl(var(--muted-foreground)); }
.info-card p:last-child, .warning-card p:last-child { margin-bottom: 0; }
.info-card details { margin-top: 17px; font-size: 12px; color: hsl(var(--foreground)); }
.info-card summary { cursor: pointer; padding: 7px 0; }
.info-card details .json-preview { margin-top: 8px; border: 1px solid var(--line); border-radius: calc(var(--radius) - 2px); }
.info-card input:not([type="checkbox"]):not([type="radio"]) { width: 100%; font-size: 12px; }
.info-card .field-label { margin-top: 17px; }
.failure-note { margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius); background: hsl(var(--card)); font-size: 12px; overflow-wrap: anywhere; }
.failure-note > summary { padding: 13px 20px; cursor: pointer; color: hsl(var(--foreground)); font-weight: 550; }
.failure-note[open] > summary { border-bottom: 1px solid var(--line); }
.failure-note ul { margin: 0; padding: 14px 20px 16px 38px; display: grid; gap: 7px; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.failure-note strong { color: hsl(var(--foreground)); font-weight: 550; }
.warning-card { color: hsl(var(--foreground)); background: hsl(var(--muted) / .5); border-color: hsl(var(--border)); }
.warning-card p { color: hsl(var(--foreground)); }
.receipts { display: grid; gap: 10px; margin-top: 17px; }
.receipt { border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px; background: hsl(var(--muted) / .5); }
.receipt > p { margin: 0; font-size: 12px; line-height: 1.7; }
.receipt-name { font-family: var(--font-mono); color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
.receipt-state { margin-top: 5px !important; color: hsl(var(--foreground)); font-weight: 500; }
.receipt-calendars { margin-top: 4px !important; color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
.commitment-actions { margin: 12px 0 14px; }
.hash-value { display: block; padding: 12px 14px; background: hsl(var(--muted) / .5); border: 1px solid hsl(var(--border)); border-radius: 6px; overflow-wrap: anywhere; font: 12px/1.9 var(--font-mono); color: hsl(var(--foreground)); }
.verification-slot > .verification-result { margin: 0 0 16px; }
.verification-result { margin-top: 17px; padding: 15px 18px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--muted) / .5); font-size: 12px; color: hsl(var(--foreground)); overflow-wrap: anywhere; }
.verification-result p { margin: 6px 0 0; }
.verification-result ul { margin: 10px 0 0; padding-left: 20px; }
.check-good { color: hsl(var(--foreground)); }
.check-bad { color: hsl(var(--foreground)); }
.verification-result.check-bad { border-color: hsl(var(--border)); background: hsl(var(--muted) / .5); }
.card-divider { margin: 22px 0 20px; border: 0; border-top: 1px solid var(--line); }
.info-card .card-divider + h3 { margin-top: 0; }
.share-toolbar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-top: 18px; color: hsl(var(--foreground)); font-size: 12px; }
.share-toolbar-actions { display: flex; gap: 16px; }
.share-list { display: flex; flex-direction: column; max-height: 244px; overflow-y: auto; overscroll-behavior: contain; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 8px; background: hsl(var(--card)); }
.share-footer { position: sticky; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 14px -21px -19px; padding: 14px 21px 19px; border-top: 1px solid var(--line); border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); background: hsl(var(--card)); }
.share-footer .subtle { flex: 1 1 300px; margin: 0; line-height: 1.7; }
.share-item { display: flex; flex: none; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid hsl(var(--border)); cursor: pointer; }
.share-item:last-child { border-bottom: 0; }
.share-item:hover { background: hsl(var(--muted) / .5); }
.share-item input { width: 15px; height: 15px; flex: none; margin: 0; }
.share-item > span, .share-item > div { min-width: 0; flex: 1; }
.share-item strong { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.share-item small { display: block; margin-top: 3px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.anchor-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.loading-state { display: flex; justify-content: center; align-items: center; min-height: 200px; padding: 40px; color: hsl(var(--muted-foreground)); font-size: 12px; }
.help-dialog { width: 540px; padding: 36px; border-radius: var(--radius); }
.dialog-close { position: absolute; top: 18px; right: 18px; }
.help-dialog .eyebrow { margin-top: 3px; }
.help-dialog h2 { margin-bottom: 26px; padding-right: 5px; font-size: 23px; line-height: 1.35; letter-spacing: -.7px; }
.help-steps { display: flex; flex-direction: column; gap: 22px; list-style: none; margin: 0 0 26px; padding: 0; }
.help-steps li { display: flex; gap: 18px; }
.help-steps li > span { padding-top: 2px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.help-steps h3 { margin-bottom: 6px; font-size: 13px; }
.help-steps p { margin: 0; font-size: 12px; line-height: 1.85; color: hsl(var(--muted-foreground)); }
.help-note { border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; line-height: 1.85; color: hsl(var(--muted-foreground)); margin-bottom: 23px; }
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: calc(100vw - 48px); }
.toast-region > div, .toast { padding: 13px 19px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--primary)); box-shadow: 0 4px 20px hsl(0 0% 0% / .08); color: hsl(var(--muted-foreground)); font-size: 12px; overflow-wrap: anywhere; }


/* State colors describe evidence/job state only; the product chrome is neutral. */
.button.primary, button.primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: none; }
.button.primary:hover, button.primary:hover { background: hsl(var(--primary) / .9); }
.button.secondary, button.secondary { color: hsl(var(--foreground)); background: hsl(var(--background)); border-color: hsl(var(--input)); }
.button.secondary:hover, button.secondary:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); border-color: hsl(var(--input)); }
.brand, .brand svg { color: hsl(var(--foreground)); }
.topbar { position: sticky; top: 0; z-index: 9; background: hsl(var(--background) / .95); backdrop-filter: blur(12px); }
.breadcrumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.product-attribution { display: inline-flex; align-items: center; min-height: 28px; border: 1px solid hsl(var(--border)); border-radius: 999px; padding: 4px 10px; background: hsl(var(--muted) / .4); color: hsl(var(--muted-foreground)); font-size: 11px; font-weight: 500; white-space: nowrap; }
.product-attribution:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); text-decoration: none; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 64px; min-height: 40px; padding: 8px; border-radius: calc(var(--radius) - 2px); background: transparent; color: hsl(var(--muted-foreground)); font-size: 14px; white-space: nowrap; }
.theme-toggle:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.theme-toggle svg { width: 16px; height: 16px; }
.topbar strong, .field-label, .row-title, .artifact-name, .preview-title { color: hsl(var(--foreground)); }
.field-label, .url-field input#capture-url, .note-field input, .search-field input#capture-search { font-size: 14px; }
.url-field, .search-field { background: hsl(var(--background)); border-color: hsl(var(--input)); }
.segmented { background: hsl(var(--muted)); }
.segmented input:checked + span { background: hsl(var(--background)); color: hsl(var(--foreground)); border-color: hsl(var(--border)); }
.status-badge { border-radius: 999px; font-size: 12px; }
.status-badge.complete { color: hsl(var(--success)); background: hsl(var(--success-surface)); border-color: hsl(var(--success-border)); }
.status-badge.partial { color: hsl(var(--warning)); background: hsl(var(--warning-surface)); border-color: hsl(var(--warning-border)); }
.status-badge.failed { color: hsl(var(--danger)); background: hsl(var(--danger-surface)); border-color: hsl(var(--danger-border)); }
.status-badge.queued, .status-badge.capturing { color: hsl(var(--info)); background: hsl(var(--info-surface)); border-color: hsl(var(--info-border)); }
.local-dot { background: hsl(var(--success)); }
.warning-card { color: hsl(var(--warning)); background: hsl(var(--warning-surface)); border-color: hsl(var(--warning-border)); }
.failure-note { border-color: hsl(var(--warning-border)); background: hsl(var(--warning-surface)); }
.failure-note > summary, .failure-note strong { color: hsl(var(--warning)); }
.failure-note[open] > summary { border-color: hsl(var(--warning-border)); }
.failure-note ul { color: hsl(var(--warning)); }
.warning-card p { color: hsl(var(--warning)); }
.inline-error { color: hsl(var(--danger)); background: hsl(var(--danger-surface)); border-color: hsl(var(--danger-border)); }
.verification-result { color: hsl(var(--success)); background: hsl(var(--success-surface)); border-color: hsl(var(--success-border)); }
.check-good { color: hsl(var(--success)); }
.check-bad { color: hsl(var(--danger)); }
.verification-result.check-bad { background: hsl(var(--danger-surface)); border-color: hsl(var(--danger-border)); }
.artifact-item.active, .artifact-item[aria-pressed="true"], .artifact-item[aria-selected="true"] { background: hsl(var(--accent)); box-shadow: inset 3px 0 0 hsl(var(--primary)); }
.icon-button { width: 40px; height: 40px; color: hsl(var(--muted-foreground)); }
dialog { box-shadow: 0 24px 80px hsl(0 0% 0% / .25); }
dialog::backdrop { background: hsl(0 0% 0% / .6); }
.toast-region > div, .toast { background: hsl(var(--popover)); color: hsl(var(--popover-foreground)); border-color: hsl(var(--border)); }

@keyframes pulse { 50% { opacity: .35; } }
@media (min-width: 1600px) { .page-content { padding-top: 40px; } }
@media (max-width: 1180px) {
  .brand { margin-left: 7px; }
  .workspace { margin-left: 210px; }
  .topbar { padding: 0 32px; }
  .page-content { padding: 37px 32px 25px; }
  .capture-panel { padding: 23px 24px 18px; }
  .table-heading, .capture-row { grid-template-columns: minmax(0, 1fr) 105px 108px 14px; gap: 14px; }
  .table-heading { font-size: 12px; }
  .capture-options { gap: 18px; }
  .segmented span { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 950px) {
  .brand { font-size: 23px; gap: 9px; }
  .brand svg { width: 29px; }
  .workspace { margin-left: 190px; }
  .topbar { padding: 0 24px; height: 64px; }
  .page-content { padding: 32px 24px 23px; }
  .panel-heading .subtle { display: none; }
  .capture-options { grid-template-columns: 1fr; gap: 15px; }
  .view-field { width: max-content; }
  .capture-footnote { line-height: 1.7; align-items: flex-start; }
  .table-heading, .capture-row { grid-template-columns: minmax(0, 1fr) 105px 13px; gap: 13px; }
  .table-heading > :nth-child(2), .capture-row > .row-meta { display: none; }
  .filter-tabs { gap: 16px; }
  .filter-tabs button { font-size: 12px; }
  .search-field { width: 180px; }
  .detail-dialog { width: 900px; }
  .detail-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 14px; }
  .fact { padding: 13px 15px 14px; }
  .fact:first-child { padding-left: 23px; }
  .fact:last-child { padding-right: 23px; }
}
@media (max-width: 720px) {
  .brand { margin: 0 auto 0 0; font-size: 21px; gap: 9px; }
  .brand svg { width: 25px; height: 29px; }
  .workspace { margin-left: 0; }
  .topbar { height: 56px; padding: 0 23px; font-size: 12px; }
  .slash { padding: 0 9px; }
  .page-content { padding: 30px 23px 22px; }
  .page-heading { margin-bottom: 26px; }
  h1 { font-size: 29px; }
  .subtitle { font-size: 12px; line-height: 1.7; }
  .heading-mark { width: 37px; height: 40px; flex: none; font-size: 21px; }
  .capture-panel { padding: 22px; }
  .capture-options { grid-template-columns: 1fr 245px; gap: 17px; }
  .capture-url-row { gap: 9px; }
  .button { gap: 12px; padding-left: 15px; padding-right: 15px; }
  .library { margin-top: 30px; }
  .library-heading h2 { font-size: 15px; }
  .table-heading, .capture-row { grid-template-columns: minmax(0, 1fr) 110px 13px; }
  .detail-header { padding: 21px 23px 18px; }
  .detail-title { font-size: 21px; }
  .detail-tabs { padding: 0 23px; gap: 23px; }
  .detail-body { padding: 20px 23px 25px; }
  .stat { padding: 12px 14px; }
  .detail-soundness { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fact:nth-child(odd) { padding-left: 23px; }
  .fact:nth-child(even) { padding-right: 23px; }
  .detail-grid { grid-template-columns: 1fr; height: auto; }
  .artifact-list { max-height: 195px; }
  .artifact-item { padding: 10px 13px; }
  .preview-panel { height: 520px; }
  .help-dialog { padding: 31px 27px; }
}
@media (max-width: 540px) {
  .topbar { padding: 0 20px; }
  .topbar-right { font-size: 12px; gap: 5px; }
  .page-content { padding: 28px 19px 20px; }
  .page-heading { gap: 12px; }
  h1 { font-size: 27px; letter-spacing: -.9px; }
  .heading-mark { display: none; }
  .capture-panel { padding: 20px 18px 17px; }
  .panel-heading { margin-bottom: 20px; }
  .capture-url-row { flex-direction: column; gap: 10px; }
  .url-field input#capture-url { padding-top: 8px; padding-bottom: 8px; font-size: 12px; }
  #capture-submit { padding: 13px 16px; gap: 13px; font-size: 12px; }
  .capture-options { grid-template-columns: 1fr; gap: 16px; margin-top: 17px; }
  .view-field { width: 100%; }
  .segmented { width: 100%; }
  .segmented label { flex: 1; text-align: center; }
  .segmented span { padding-top: 9px; padding-bottom: 9px; font-size: 12px; }
  .capture-footnote { margin-top: 17px; font-size: 12px; gap: 6px; }
  .library-heading { flex-direction: column; align-items: stretch; gap: 16px; }
  .search-field { width: 100%; height: 37px; }
  .search-field input#capture-search { font-size: 12px; }
  .library-toolbar { margin-top: 18px; gap: 8px; }
  .filter-tabs { gap: 15px; }
  .filter-tabs button { gap: 4px; font-size: 12px; padding-bottom: 12px; }
  .filter-tabs button span { min-width: 13px; padding: 0 3px; font-size: 12px; }
  .library-toolbar .text-button { font-size: 14px; line-height: 1; }
  #refresh-library span { display: none; }
  .table-heading { display: none; }
  .capture-list { margin-top: 14px; }
  .capture-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 12px; }
  .row-page { gap: 10px; }
  .page-icon { width: 29px; height: 34px; border-radius: 6px; font-size: 17px; }
  .row-title { font-size: 12px; }
  .row-url { font-size: 12px; }
  .row-note { font-size: 12px; }
  .status-badge { font-size: 12px; gap: 4px; padding: 3px 5px; }
  .anchor-label { font-size: 12px; text-align: right; }
  .row-arrow { display: none; }
  .page-footer { flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 29px; font-size: 12px; }
  .empty-state { padding: 34px 20px; }
  dialog { max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .detail-dialog { border-radius: var(--radius); }
  #detail-content { max-height: calc(100dvh - 22px); }
  .detail-header { padding: 20px 17px 17px; gap: 12px; }
  .detail-header .eyebrow { font-size: 12px; }
  .detail-title { font-size: 19px; line-height: 1.35; }
  .detail-subtitle { font-size: 12px; }
  .detail-soundness { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(odd), .fact:nth-child(even) { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 12px; align-items: baseline; border-left: 0; border-bottom: 1px solid var(--line); padding: 10px 17px 11px; }
  .fact:last-child { border-bottom: 0; }
  .fact-label { grid-column: 1; margin-bottom: 0; }
  .fact-value, .fact-note { grid-column: 2; }
  .detail-tabs { padding: 0 17px; gap: 21px; }
  .detail-tabs button { padding-top: 14px; font-size: 12px; }
  .detail-body { padding: 17px 15px 21px; }
  .stat { padding: 10px 12px; }
  .detail-actions { gap: 8px; }
  .detail-actions .button { flex: 1; font-size: 12px; padding-left: 9px; padding-right: 9px; }
  .info-card, .warning-card { padding: 17px 15px; }
  .info-card p, .warning-card p { font-size: 12px; }
  .info-card h3, .warning-card h3 { font-size: 13px; }
  .hash-value { font-size: 12px; padding: 10px 12px; }
  .anchor-actions .button { flex: 1; font-size: 12px; }
  .preview-title { padding: 11px 12px; font-size: 12px; }
  .preview-title .button { font-size: 12px; padding: 7px 10px; }
  .preview-panel { height: 440px; }
  .share-list { max-height: 180px; }
  .share-footer { margin-left: -15px; margin-right: -15px; padding-left: 15px; padding-right: 15px; }
  .preview-content pre, .json-preview { padding: 14px; font-size: 12px; }
  .preview-placeholder { padding: 22px; font-size: 12px; }
  .help-dialog { padding: 33px 23px 25px; }
  .help-dialog h2 { font-size: 21px; margin-bottom: 24px; }
  .help-steps { gap: 20px; }
  .help-steps li { gap: 14px; }
  .help-steps h3 { font-size: 12px; }
  .help-steps p { font-size: 12px; }
  .help-note { font-size: 12px; }
  .toast-region { right: 14px; bottom: 14px; max-width: calc(100vw - 28px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Keep small-screen controls readable without pushing the document sideways. */
@media (max-width: 950px) {
  .brand-sub { font-size: 10px; letter-spacing: .5px; }
  .product-attribution { display: none; }
  .topbar-actions { gap: 12px; }
}
@media (max-width: 720px) {
  .brand { font-size: 20px; }
  .brand-sub { display: none; }
  .topbar-right { font-size: 11px; letter-spacing: 0; }
  .capture-options { grid-template-columns: 1fr; }
  .text-button, .filter-tabs button { min-height: 40px; }
}
@media (max-width: 540px) {
  .topbar { gap: 8px; font-size: 12px; }
  .topbar-right { font-size: 10px; }
  .topbar-actions .topbar-right { display: none; }
  .theme-toggle { min-width: 56px; font-size: 12px; }
  .page-content { padding: 24px 16px; }
  .capture-panel { padding: 20px 16px; }
  .url-field input#capture-url, #capture-submit { font-size: 14px; }
  .segmented span { font-size: 12px; }
  .library-toolbar { align-items: flex-start; }
  .filter-tabs { flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
  .filter-tabs button { font-size: 12px; }
  .filter-tabs button span { font-size: 11px; }
  .library-toolbar .text-button { flex: none; width: 32px; }
  .row-title { font-size: 13px; }
  .row-url, .row-note, .status-badge, .anchor-label { font-size: 12px; }
  .row-page { gap: 8px; }
  .status-badge { padding: 3px 6px; }
}

/* Sign-in / refusal page. Centred card in the same language as the workspace:
   wordmark, bold heading, muted sentence-case body, one primary action. */
.signin-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 24px; background: hsl(var(--background)); }
.signin { width: 100%; max-width: 420px; text-align: center; }
.signin-brand { display: inline-flex; margin: 0 0 32px; justify-content: center; }
.signin-brand svg { width: 28px; height: 32px; }
.signin-title { margin-bottom: 12px; font-size: 26px; font-weight: 600; letter-spacing: -.8px; line-height: 1.2; }
.signin-body-text { margin-bottom: 24px; color: hsl(var(--muted-foreground)); font-size: 14px; line-height: 1.6; }
.signin-action { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; padding: 8px 16px; border-radius: calc(var(--radius) - 2px); background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-size: 14px; font-weight: 500; text-decoration: none; }
.signin-action:hover { opacity: .9; }
.signin-foot { margin-top: 28px; color: hsl(var(--muted-foreground)); font-size: 12px; line-height: 1.6; }
.signin-site { display: inline-block; margin-top: 20px; color: hsl(var(--muted-foreground)); font-size: 12px; }
.signin-site:hover { color: hsl(var(--foreground)); }

.topbar-signout { margin-left: 4px; padding: 6px 10px; border-radius: calc(var(--radius) - 2px); color: hsl(var(--muted-foreground)); font-size: 12px; text-decoration: none; white-space: nowrap; }
.topbar-signout:hover { background: hsl(var(--muted) / .6); color: hsl(var(--foreground)); }

/* Bar actions that read as links rather than buttons. */
.topbar-link { padding: 6px 10px; border-radius: calc(var(--radius) - 2px); background: transparent; color: hsl(var(--muted-foreground)); font-size: 12px; white-space: nowrap; }
.topbar-link:hover { background: hsl(var(--muted) / .6); color: hsl(var(--foreground)); text-decoration: none; }
