/* Kyoi base: tokens, elements and shared components.
   Depth comes from surfaces, not lines: a pale canvas, raised white panels
   with a hairline ring and a soft shadow, and recessed gray fills for inputs,
   code and hover. Borders are kept to translucent hairlines. Modelled on
   Vercel Geist "materials", Linear's background levels and shadcn/ui. */

:root {
  color-scheme: light;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Surfaces, from back to front. */
  --canvas: #ffffff;          /* the page */
  --panel: #f7f7f8;           /* cards, lists, tables: a fill, not a frame */
  --panel-hover: #f1f1f3;
  --raised: #ffffff;          /* floating: the composer, drawers, menus, selected pills */
  --sunken: #f0f0f2;          /* code, chips, the user's bubble */
  --hover: rgba(0, 0, 0, .045);
  --active: rgba(0, 0, 0, .075);

  /* Text. */
  --foreground: #18181b;
  --muted: #6b6b73;
  --faint: #9a9aa2;

  /* Lines and elevation. */
  --line: rgba(0, 0, 0, .06);
  --line-strong: rgba(0, 0, 0, .1);
  --ring: 0 0 0 1px rgba(0, 0, 0, .06);
  --shadow-sm: 0 0 0 1px rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 0 0 1px rgba(0, 0, 0, .05), 0 1px 1px rgba(0, 0, 0, .02), 0 4px 8px -4px rgba(0, 0, 0, .05), 0 16px 24px -8px rgba(0, 0, 0, .07);
  --shadow-lg: 0 0 0 1px rgba(0, 0, 0, .05), 0 8px 16px -4px rgba(0, 0, 0, .06), 0 24px 48px -12px rgba(0, 0, 0, .14);
  --focus: 0 0 0 3px rgba(24, 24, 27, .14);

  /* Accents stay neutral: the primary is ink. */
  --primary: #18181b;
  --primary-hover: #3f3f46;
  --on-primary: #fafafa;
  --scrim: rgba(24, 24, 27, .28);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  /* The one corner that rounds a panel into the frame: a drawer or a sheet that
     sits under the header rather than over it. A role, not a literal, so the
     next surface that meets the header matches this one. */
  --radius-2xl: 30px;

  /* The one gap the pages use between a block and what follows it: the space
     under a heading, between form actions and between cards. */
  --space-4: 16px;

  /* Kept so the component renderer and older rules resolve. */
  --background: var(--canvas);
  --surface: var(--panel);
  --border: var(--line);
  --control-line: var(--line-strong);
  --ash: var(--primary-hover);
  --paper: var(--foreground);
  --border-radius: var(--radius);

  --terminal-background: #ffffff; --terminal-foreground: #18181b; --terminal-cursor: #18181b; --terminal-selection: #d4d4d8;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0c0c0e;
  --panel: #151517;
  --panel-hover: #1b1b1e;
  --raised: #1a1a1d;
  --sunken: #1d1d20;
  --hover: rgba(255, 255, 255, .05);
  --active: rgba(255, 255, 255, .085);
  --foreground: #ededef;
  --muted: #9b9ba3;
  --faint: #6e6e76;
  --line: rgba(255, 255, 255, .06);
  --line-strong: rgba(255, 255, 255, .1);
  --ring: 0 0 0 1px rgba(255, 255, 255, .06);
  --shadow-sm: 0 0 0 1px rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 0 0 1px rgba(255, 255, 255, .07), 0 4px 8px -4px rgba(0, 0, 0, .5), 0 16px 24px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 48px -12px rgba(0, 0, 0, .7);
  --focus: 0 0 0 3px rgba(237, 237, 239, .2);
  --primary: #ededef;
  --primary-hover: #d4d4d8;
  --on-primary: #18181b;
  --scrim: rgba(0, 0, 0, .55);
  --terminal-background: #161618; --terminal-foreground: #ededef; --terminal-cursor: #ededef; --terminal-selection: #3f3f46;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --canvas: #0c0c0e;
    --panel: #151517;
    --panel-hover: #1b1b1e;
    --raised: #1a1a1d;
    --sunken: #1d1d20;
    --hover: rgba(255, 255, 255, .05);
    --active: rgba(255, 255, 255, .085);
    --foreground: #ededef;
    --muted: #9b9ba3;
    --faint: #6e6e76;
    --line: rgba(255, 255, 255, .06);
    --line-strong: rgba(255, 255, 255, .1);
    --ring: 0 0 0 1px rgba(255, 255, 255, .06);
    --shadow-sm: 0 0 0 1px rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 0 0 1px rgba(255, 255, 255, .07), 0 4px 8px -4px rgba(0, 0, 0, .5), 0 16px 24px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 48px -12px rgba(0, 0, 0, .7);
    --focus: 0 0 0 3px rgba(237, 237, 239, .2);
    --primary: #ededef;
    --primary-hover: #d4d4d8;
    --on-primary: #18181b;
    --scrim: rgba(0, 0, 0, .55);
    --terminal-background: #161618; --terminal-foreground: #ededef; --terminal-cursor: #ededef; --terminal-selection: #3f3f46;
  }
}

/* Elements */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--canvas); color: var(--foreground); font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a, a:visited { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -.022em; }
h2 { margin: 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; letter-spacing: -.012em; }
h3 { margin: 0; font-size: .9375rem; font-weight: 600; }
code, pre, kbd { font-family: var(--mono); }
::selection { background: rgba(120, 120, 130, .22); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 99px; background: var(--line-strong) padding-box; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
.icon { width: 18px; height: 18px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Utilities in use */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted, .help { color: var(--muted); }
.mono { font: 12.5px/1.6 var(--mono); }
.w-full { width: 100%; }
.mb-4 { margin-bottom: var(--space-4); }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--sunken); color: var(--muted); font: 500 11px/1 var(--font); font-variant-numeric: tabular-nums; vertical-align: 2px; }
.badge { display: inline-flex; align-items: center; height: 22px; white-space: nowrap; padding: 0 8px; border-radius: 99px; background: var(--sunken); color: var(--foreground); font: 500 11.5px/1 var(--font); }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.lead { color: var(--muted); font-size: 1.0625rem; line-height: 1.6; }
.skip-link { position: absolute; z-index: 100; top: 8px; left: 8px; padding: 8px 12px; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Header: a quiet bar that leaves the canvas to the page. The bar itself stays
   transparent — the brand floats in the left corner, the nav in the right —
   and a veil fades in behind both once the page scrolls, driven by scroll
   position instead of by a script. */
.app-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; height: 56px; padding: 0 clamp(16px, 3vw, 28px); background: none; }
.app-header::after { position: absolute; z-index: -1; inset: 0; opacity: 0; background: transparent; pointer-events: none; content: ""; }
@supports (animation-timeline: scroll()) {
  .app-header::after { background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); animation: header-veil linear both; animation-timeline: scroll(root block); animation-range: 0 64px; }
  @keyframes header-veil { from { opacity: 0; } to { opacity: 1; } }
}
/* Without scroll-driven animations the veil cannot fade in, so it stays on:
   a sticky bar over moving content must never be bare. Still borderless. */
@supports not (animation-timeline: scroll()) {
  .app-header::after { opacity: 1; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
}
.brand, .brand:visited { display: inline-flex; align-items: center; gap: 8px; color: var(--foreground); font-size: 17px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { flex: none; width: 22px; height: 22px; }
.app-header nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.app-header nav > a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.app-header nav > a:hover { background: var(--hover); color: var(--foreground); }
.app-header nav > a[aria-current] { background: var(--sunken); color: var(--foreground); }
.user-name { max-width: 180px; margin-left: 8px; }

.page-container { width: 100%; max-width: 1180px; min-width: 0; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 80px; overflow-wrap: anywhere; }
.page-head { margin-bottom: 28px; }
.page-head h1 { margin-bottom: 8px; }
.page-description { max-width: 46rem; margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.page-head .section-heading { margin-bottom: 8px; }
.page-head .section-heading h1 { margin: 0; }

/* Controls */
.input { min-width: 0; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--radius); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--foreground); line-height: 1.5; transition: box-shadow .15s; }
.input::placeholder { color: var(--faint); }
.input:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16); }
html[data-theme="dark"] .input:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.input:focus, .input:focus-visible { box-shadow: inset 0 0 0 1px var(--muted), var(--focus); border-radius: var(--radius); }
.input[readonly] { background: var(--sunken); box-shadow: none; }
textarea.input { resize: vertical; }
.label { display: block; margin-bottom: 6px; color: var(--foreground); font-size: 13px; font-weight: 500; }
.help { margin: -6px 0 18px; font-size: 13px; line-height: 1.6; }
.help code, .page-description code { padding: 1px 5px; border-radius: 5px; background: var(--sunken); font-size: .9em; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius); background: var(--raised); box-shadow: var(--shadow-sm); color: var(--foreground); cursor: pointer; font-size: 14px; font-weight: 500; text-decoration: none !important; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.button:hover:not(:disabled) { background: var(--sunken); }
.button.primary, .button.primary:visited { background: var(--primary); box-shadow: none; color: var(--on-primary); }
.button.primary:hover:not(:disabled) { background: var(--primary-hover); }
.button.secondary, .button.secondary:visited { background: var(--raised); color: var(--foreground); }
.button.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.button:disabled { cursor: default; opacity: .5; }
.text-button { padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 500; }
.text-button:hover { color: var(--foreground); }
.text-button.danger { color: var(--danger); }
.text-button.danger:hover { color: var(--danger); text-decoration: underline; }
.text-button.text-body { font-size: 14px; }
.icon-button, .icon-button:visited { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; text-decoration: none; }
.icon-button:hover { background: var(--hover); color: var(--foreground); }

/* Forms */
.settings-form { max-width: 640px; }
.settings-form label { display: block; margin-bottom: 18px; }
.settings-form label.radio { display: flex; align-items: center; gap: 10px; min-height: 32px; margin-bottom: 0; font-size: 14px; }
.settings-form label.radio input { width: 16px; height: 16px; accent-color: var(--primary); }
.settings-fieldset { min-inline-size: 0; margin: 0 0 20px; padding: 18px 20px; border: 0; border-radius: var(--radius-lg); background: var(--panel); }
.settings-fieldset > legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; font-size: 15px; font-weight: 600; }
.settings-fieldset > legend + * { clear: both; }
.settings-fieldset .help { margin-top: 0; }
/* Two settings on one line: a model input at two thirds and its effort at one, so
   three roles fit without the page growing tall. A phone stacks the pair. */
.settings-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; gap: 12px; }
@media (max-width: 560px) { .settings-row { grid-template-columns: minmax(0, 1fr); } }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; font-size: 14px; }
.row-actions { display: flex; align-items: center; gap: 14px; font-size: 13px; white-space: nowrap; }
.row-actions form { margin: 0; }
.settings-table td:last-child:has(.row-actions, form) { width: 1%; white-space: nowrap; }
.row-actions a { color: var(--muted); text-decoration: none; }
.row-actions a:hover { color: var(--foreground); }
.secret-header-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: end; gap: 12px; margin-bottom: 12px; }
.secret-header-row label { margin-bottom: 0; }
.secret-header-row .text-button { height: 40px; }
.secret-header-name { margin-right: 4px; }
.password-field { display: flex; align-items: stretch; min-width: 0; }
.password-field > .input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.password-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; border: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--sunken); color: var(--muted); cursor: pointer; }
.password-toggle:hover, .password-toggle[aria-pressed="true"] { color: var(--foreground); }

.alert { padding: 12px 16px; border-radius: var(--radius); background: var(--panel); font-size: 14px; }
.alert.error { background: color-mix(in srgb, #e5484d 9%, var(--canvas)); }
.alert.success { background: color-mix(in srgb, #30a46c 9%, var(--canvas)); }

/* Dialog: the one thing a page hides behind a button. It floats as --raised on
   the scrim, radius 20, and the page behind neither scrolls nor takes focus —
   showModal() makes the rest of the document inert, and modal-open stops the
   scrollbar. A backdrop click and Escape close it, and both undo those two. */
html.modal-open, html.modal-open body { overflow: hidden; }
/* The dialog fills the viewport and the card floats inside it, so the only
   click targets are the card and the dialog itself: a click on the dialog is a
   click beside the card, which closes it. */
.modal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; background: none; color: inherit; overflow: auto; }
.modal[open] { display: flex; align-items: center; justify-content: center; }
.modal::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
.modal-card { display: flex; flex-direction: column; width: min(440px, 100%); max-height: min(calc(100dvh - 32px), 760px); margin: auto; overflow: hidden; border-radius: var(--radius-xl); background: var(--raised); box-shadow: var(--shadow-lg); }
.modal-head { display: flex; flex: none; align-items: center; gap: 8px; padding: 18px 14px 8px 22px; }
.modal-head h2 { flex: 1; min-width: 0; font-size: 17px; }
.modal-close { margin-left: auto; }
.modal-body { min-height: 0; padding: 4px 22px 20px; overflow: auto; overscroll-behavior: contain; }
.modal-body > .help { margin-top: 0; }
.modal-form label { display: block; margin-bottom: 14px; }
.modal-form .help { margin: 6px 0 0; }
.modal-error { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius); background: color-mix(in srgb, #e5484d 9%, var(--canvas)); font-size: 13.5px; line-height: 1.5; }
.modal-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.modal-foot .button { width: 100%; }
.modal-foot-note { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; text-align: center; }
.modal-details { margin: 16px 0 0; padding: 10px 12px; border-radius: var(--radius); background: var(--panel); font-size: 13.5px; }
.modal-details summary { cursor: pointer; font-weight: 500; }
.modal-details p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.modal-details strong { color: var(--foreground); font-weight: 500; }
@media (max-width: 560px) {
  .modal { padding: 10px; }
  .modal-card { max-height: calc(100dvh - 20px); }
  .modal-head { padding: 16px 12px 8px 18px; }
  .modal-body { padding: 4px 18px 18px; }
}

/* Panels */
.card { padding: 16px; border-radius: var(--radius-lg); background: var(--panel); }
.empty-card { padding: 48px 24px; border-radius: var(--radius-lg); background: var(--panel); color: var(--muted); text-align: center; }
.empty-card h2 { margin: 12px 0 6px; color: var(--foreground); }
.empty-card p { max-width: 30rem; margin: 0 auto 6px; font-size: 14px; line-height: 1.6; }
.empty-symbol { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--raised); box-shadow: var(--shadow-sm); color: var(--muted); font-size: 18px; }
.code-block { max-height: 460px; margin: 0; padding: 14px 16px; overflow: auto; border-radius: var(--radius); background: var(--sunken); color: var(--foreground); font: 12.5px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.code-block code { font: inherit; }
.error-output { background: color-mix(in srgb, #e5484d 8%, var(--sunken)); }

/* Tables: raised panel, row hairlines only. */
.table-card { overflow: auto; border-radius: var(--radius-lg); background: var(--panel); }
.settings-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.settings-table th { padding: 10px 16px; color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.settings-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.settings-table th.actions { width: 1%; }
.settings-table .table-empty { padding: 40px 16px; color: var(--muted); text-align: center; }
.settings-table td.file-path, .settings-table .table-empty { white-space: normal; }
.file-path { max-width: 520px; overflow-wrap: anywhere; }
.pagination-links { margin: 16px 0; font-size: 13px; }
.file-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.file-search .label { margin: 0 4px 0 0; }

/* Auth and landing */
.auth-card { max-width: 400px; margin: 8vh auto 0; padding: 32px; border-radius: var(--radius-xl); background: var(--raised); box-shadow: var(--shadow-md); }
.auth-card h1 { margin-bottom: 20px; font-size: 24px; }
.auth-card .settings-form { max-width: none; }
.landing-hero { max-width: 760px; padding: 56px 0 48px; }
.landing-hero h1 { margin-bottom: 16px; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.035em; }
.landing-tagline { max-width: 36rem; margin: 0 0 28px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.landing-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.landing-row { padding: 22px; border-radius: var(--radius-lg); background: var(--panel); }
.landing-num { color: var(--faint); font: 500 12px/1 var(--mono); }
.landing-row h3 { margin: 14px 0 6px; font-size: 16px; }
.landing-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 720px) {
  .app-header { gap: 12px; }
  .app-header nav > a { padding: 0 9px; }
  .page-container { padding-top: 28px; }
  .secret-header-row { grid-template-columns: minmax(0, 1fr); }
  .auth-card { margin-top: 24px; padding: 24px; }
}
@media (max-width: 560px) {
  /* The brand keeps its mark and its wordmark, so the nav buys the room back:
     tighter padding, a smaller wordmark, and an account name that ellipsises
     in place. The full name stays in the DOM and on Profile. */
  .app-header { gap: 10px; padding: 0 14px; }
  .brand { gap: 6px; font-size: 15px; }
  .brand-mark { width: 20px; height: 20px; }
  .app-header nav { min-width: 0; }
  .app-header nav > a { padding: 0 8px; font-size: 13.5px; }
  .user-name { min-width: 0; max-width: 5rem; margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Inside a raised card, groups recess instead of rising again. */
.auth-card .settings-fieldset { background: var(--sunken); box-shadow: none; }
.auth-card .input { background: var(--raised); }

/* Inside a panel, nested surfaces step back up to white so they still read. */
:is(.card, .table-card, .settings-fieldset, .tool-calls, .trace, .prompt-tools, .prompt-list, .context-card, .ui-section, .event-list, .entity-list) :is(.code-block, .count, .badge) { background: var(--raised); box-shadow: var(--ring); }
.settings-fieldset .password-toggle { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong); }
.settings-table tbody tr:hover td { background: var(--panel-hover); }
.account-card { max-width: 520px; }
.profile-tabs { margin-bottom: 20px; }
.settings-form select.input { appearance: auto; }
.model-effective { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.model-effective h2 { margin-bottom: 12px; }
.model-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.model-row .label { margin: 0; }
.model-row p { margin: 0; }
.model-detail { font-size: 12.5px; overflow-wrap: anywhere; }
.model-result { min-height: 0; margin: 6px 0 0; font-size: 13px; }
.model-result[data-state="ok"] { color: #218358; }
.model-result[data-state="error"] { color: #dc3e42; }
.prompt-source { margin-top: 2px !important; font-size: 12.5px !important; font-weight: 400 !important; }
