/* Vestar Today — brand tokens and layout.
   Colors and type come from the owner-supplied Vestar Brand Standards 2021
   (see docs/BRAND_SOURCE_RECORD_2026-09-19.md). Neutral surfaces are tints of the
   brand palette mixed with white or Dynamic Navy; no other hues are introduced. */

@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 200 700; font-display: swap; src: url('./brand/fonts/Oswald-variable.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('./brand/fonts/PlayfairDisplay-variable.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url('./brand/fonts/PlayfairDisplay-italic-variable.woff2') format('woff2'); }

:root {
  color-scheme: light dark;
  /* Vestar palette (Brand Standards 2021, Color Guide) */
  --vt-indigo: #1A519B;   /* Innovative Indigo, PMS 7686 C — primary */
  --vt-blue: #246CB6;     /* Biltmore Blue, PMS 660 C — primary */
  --vt-navy: #082949;     /* Dynamic Navy, PMS 289 C — secondary */
  --vt-violet: #5F005E;   /* Vestar Violet, PMS 2623 C — tertiary */
  --vt-fuchsia: #9A0098;  /* Focused Fuchsia, PMS 254 C — specialty */
  --vt-black: #000000;    /* Rich Black */
  --vt-white: #FFFFFF;
  /* Derived neutrals: brand colors mixed with white */
  --vt-bg: var(--vt-white);
  --vt-surface: var(--vt-white);
  --vt-surface-2: color-mix(in srgb, var(--vt-indigo) 7%, var(--vt-white));
  --vt-border: color-mix(in srgb, var(--vt-navy) 16%, var(--vt-white));
  --vt-text: var(--vt-navy);
  --vt-muted: color-mix(in srgb, var(--vt-navy) 68%, var(--vt-white));
  --vt-focus: var(--vt-blue);
  --vt-shadow: 0 12px 32px color-mix(in srgb, var(--vt-navy) 18%, transparent);
  /* Typography (Brand Standards 2021, Fonts): Playfair Display for headlines, Oswald for the message */
  --vt-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --vt-font-body: 'Oswald', 'Arial Narrow', 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --vt-bg: var(--vt-navy);
    --vt-surface: color-mix(in srgb, var(--vt-navy) 88%, var(--vt-white));
    --vt-surface-2: color-mix(in srgb, var(--vt-navy) 78%, var(--vt-white));
    --vt-border: color-mix(in srgb, var(--vt-white) 18%, var(--vt-navy));
    --vt-text: var(--vt-white);
    --vt-muted: color-mix(in srgb, var(--vt-white) 72%, var(--vt-navy));
    --vt-focus: var(--vt-white);
    --vt-shadow: 0 12px 32px color-mix(in srgb, var(--vt-black) 45%, transparent);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--vt-font-body); font-weight: 400; line-height: 1.5; color: var(--vt-text); background: var(--vt-bg); }
button { font: inherit; cursor: pointer; border-radius: 999px; border: 1px solid var(--vt-indigo); padding: .55rem 1.1rem; background: var(--vt-indigo); color: var(--vt-white); font-weight: 500; letter-spacing: .02em; }
button:hover { background: var(--vt-navy); border-color: var(--vt-navy); }
button:disabled { cursor: not-allowed; background: var(--vt-surface-2); border-color: var(--vt-border); color: var(--vt-muted); }
:focus-visible { outline: 3px solid var(--vt-focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -6rem; z-index: 2; padding: .75rem 1rem; background: var(--vt-surface); color: var(--vt-indigo); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
[hidden] { display: none !important; }

/* App frame: top bar, compact sidebar, conversation, footer */
.shell { height: 100dvh; display: grid; grid-template-columns: 17rem minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "topbar topbar" "sidebar main" "footer footer"; }
.shell[data-sidebar="closed"] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "topbar" "main" "footer"; }
.shell[data-sidebar="closed"] .sidebar { display: none; }

/* Top bar: left = menu and clock, center = logo and Vestar Today, right = the signed-in person */
.topbar { grid-area: topbar; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: .7rem clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--vt-border); background: var(--vt-surface); }
.topbar-left { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.menu-toggle { padding: .45rem .9rem; background: transparent; color: var(--vt-indigo); border-color: var(--vt-border); }
.menu-toggle:hover { background: var(--vt-surface-2); color: var(--vt-indigo); border-color: var(--vt-indigo); }
.clock { display: grid; line-height: 1.2; min-width: 0; }
.clock-date { font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--vt-muted); white-space: nowrap; }
.clock-time { font-size: 1.05rem; font-weight: 500; color: var(--vt-text); white-space: nowrap; }
.identity { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: .85rem; min-width: 0; }
.logo { height: 2.4rem; width: auto; display: block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }
.wordmark { font-family: var(--vt-font-display); font-style: italic; font-weight: 700; font-size: 1.45rem; color: var(--vt-indigo); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .wordmark { color: var(--vt-white); } }

/* Account control */
.account { grid-column: 3; position: relative; display: flex; justify-content: flex-end; min-width: 0; }
.account-button { display: flex; align-items: center; gap: .65rem; padding: .35rem .9rem .35rem .4rem; background: transparent; color: var(--vt-text); border-color: var(--vt-border); max-width: 100%; text-align: left; }
.account-button:hover { background: var(--vt-surface-2); color: var(--vt-text); border-color: var(--vt-indigo); }
.account-button:disabled { background: transparent; color: var(--vt-muted); }
.account[data-state="signed-out"] .account-button { padding: .5rem 1.1rem; background: var(--vt-indigo); color: var(--vt-white); border-color: var(--vt-indigo); }
.account[data-state="signed-out"] .account-button:hover { background: var(--vt-navy); border-color: var(--vt-navy); }
.account[data-state="signed-out"] .account-button:disabled { background: var(--vt-surface-2); color: var(--vt-muted); border-color: var(--vt-border); }
.account[data-state="signed-out"] .avatar, .account[data-state="pending"] .avatar { display: none; }
.avatar { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--vt-indigo); color: var(--vt-white); font-size: .85rem; font-weight: 500; letter-spacing: .04em; }
.account-text { display: grid; line-height: 1.2; min-width: 0; }
.account-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-role { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--vt-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-role:empty { display: none; }
.account-menu { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 3; min-width: 16rem; padding: 1rem; border: 1px solid var(--vt-border); border-radius: .9rem; background: var(--vt-surface); box-shadow: var(--vt-shadow); }
.account-menu p { margin: 0 0 .25rem; overflow-wrap: anywhere; }
.menu-name { font-weight: 500; }
.menu-role { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--vt-muted); }
.menu-mail { font-size: .85rem; color: var(--vt-muted); }
.menu-item { width: 100%; margin-top: .85rem; }

/* Sidebar */
.sidebar { grid-area: sidebar; display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem 1rem; border-right: 1px solid var(--vt-border); background: var(--vt-surface-2); overflow: auto; }
.new-conversation { width: 100%; }
.sidebar-section h2 { margin: 0 0 .2rem; font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--vt-muted); }
.sidebar-section p { margin: 0 0 1rem; font-size: .9rem; }
.muted { color: var(--vt-muted); }
.sidebar-note { margin-top: auto; font-size: .8rem; color: var(--vt-muted); }

/* Conversation */
main { grid-area: main; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.intro { width: min(100% - 2rem, 46rem); margin: 0 auto; padding: clamp(2rem, 8vh, 5rem) 0 1rem; }
.eyebrow { margin: 0 0 .75rem; font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--vt-blue); }
h1 { margin: 0 0 1rem; font-family: var(--vt-font-display); font-style: italic; font-weight: 700; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.12; letter-spacing: -.01em; color: var(--vt-indigo); }
@media (prefers-color-scheme: dark) { h1 { color: var(--vt-white); } }
.lead { margin: 0; max-width: 36rem; font-size: 1.05rem; font-weight: 300; }
.status { width: min(100% - 2rem, 46rem); margin: 1.25rem auto; padding: 1rem 1.2rem; border: 1px solid var(--vt-border); border-left: 4px solid var(--vt-blue); border-radius: .75rem; background: var(--vt-surface); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.status p { margin: 0; }
.canvas { flex: 1; min-height: 0; display: flex; width: min(100%, 92rem); margin: 0 auto; padding: 0 clamp(.5rem, 2vw, 1.5rem) .5rem; }
.canvas-mount { flex: 1; min-height: 0; min-width: 0; position: relative; }
/* Starter prompts on an empty conversation */
.vt-starters { position: absolute; left: 50%; bottom: 4.6rem; transform: translateX(-50%); width: min(100% - 2rem, 58rem); display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; z-index: 1; pointer-events: none; }
.vt-starters > * { pointer-events: auto; }
/* While a filing panel or the file-or-help bar sits above the composer, the welcome chips step aside (owner screenshot,
   September 21: the two overlapped). */
.canvas-mount:has(.vt-intake) .vt-starters, .canvas-mount:has(.vt-file-offer) .vt-starters { display: none; }
/* And once any line exists in the conversation, drawn by the agent or by the page, the chips are gone for good. */
.canvas-mount:has(.webchat__basic-transcript__activity) .vt-starters { display: none; }
.vt-starters-hello { flex-basis: 100%; margin: 0 0 .35rem; text-align: center; font-family: var(--vt-font-display); font-style: italic; font-weight: 700; font-size: 1.35rem; line-height: 1.3; color: var(--vt-indigo); }
.vt-starters-lead { flex-basis: 100%; margin: 0 0 .25rem; text-align: center; font-size: .9rem; color: var(--vt-muted); }
.vt-starter { padding: .5rem .95rem; font-size: .92rem; font-weight: 400; letter-spacing: 0; background: var(--vt-surface); color: var(--vt-indigo); border: 1px solid var(--vt-border); border-radius: 999px; box-shadow: 0 2px 10px color-mix(in srgb, var(--vt-navy) 8%, transparent); }
.vt-starter:hover { background: var(--vt-indigo); color: var(--vt-white); border-color: var(--vt-indigo); }
@media (max-width: 48rem) { .vt-starters { bottom: 4.2rem; } .vt-starter { font-size: .85rem; padding: .4rem .75rem; } }

/* Composer attach control (owner direction): Web Chat's upload button rendered as a "+" like
   ChatGPT and Claude. Only the icon is replaced; behavior stays Microsoft's. */
.webchat__upload-button .webchat__attachment-icon svg { display: none; }
.webchat__upload-button .webchat__attachment-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--vt-indigo); color: var(--vt-indigo); background: transparent; }
.webchat__upload-button .webchat__attachment-icon::before { content: '+'; font-family: var(--vt-font-body); font-size: 1.45rem; font-weight: 400; line-height: 1; transform: translateY(-1px); }
.webchat__upload-button .webchat__icon-button:hover .webchat__attachment-icon { background: var(--vt-indigo); color: var(--vt-white); }
.webchat__upload-button .webchat__icon-button:focus-visible .webchat__attachment-icon { outline: 3px solid var(--vt-focus); outline-offset: 2px; }

.footer { grid-area: footer; padding: .7rem clamp(1rem, 3vw, 2rem); font-size: .78rem; letter-spacing: .04em; color: var(--vt-muted); border-top: 1px solid var(--vt-border); background: var(--vt-surface); }

@media (max-width: 64rem) {
  .clock-date { display: none; }
  .account-role { display: none; }
}

@media (max-width: 48rem) {
  .shell, .shell[data-sidebar="closed"] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "topbar" "main" "footer"; }
  .sidebar { display: none; }
  .shell[data-sidebar="open"] .sidebar { display: flex; grid-area: main; border-right: 0; }
  .shell[data-sidebar="open"] main { display: none; }
  .topbar { grid-template-columns: auto 1fr auto; padding: .6rem 1rem; gap: .6rem; }
  .identity { justify-content: center; }
  .wordmark { font-size: 1.15rem; }
  .logo { height: 2rem; }
  .clock { display: none; }
  .account-text { display: none; }
  .account[data-state="signed-in"] .account-button { padding: .25rem; }
  .intro { padding-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Workspace sidebar: projects, pins, past conversations */
.new-scope { margin: -.6rem 0 0; font-size: .8rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.section-action { padding: .15rem .6rem; font-size: .78rem; background: transparent; color: var(--vt-indigo); border-color: var(--vt-border); }
.section-action:hover { background: var(--vt-surface); border-color: var(--vt-indigo); color: var(--vt-indigo); }
.section-list { list-style: none; margin: .25rem 0 .5rem; padding: 0; display: grid; gap: .2rem; }
.section-note { font-size: .85rem; margin: 0 0 .5rem; }
.list-item { display: flex; align-items: stretch; gap: .2rem; }
.list-item.is-active .item-open { background: var(--vt-surface); border-color: var(--vt-indigo); }
.list-item.is-open .item-primary::before { content: ''; display: inline-block; width: .45rem; height: .45rem; margin-right: .4rem; border-radius: 50%; background: var(--vt-blue); vertical-align: middle; }
.item-open { flex: 1; min-width: 0; display: grid; gap: .1rem; text-align: left; padding: .45rem .6rem; border-radius: .6rem; background: transparent; color: var(--vt-text); border: 1px solid transparent; font-weight: 400; letter-spacing: 0; }
.item-open:hover { background: var(--vt-surface); color: var(--vt-text); border-color: var(--vt-border); }
.item-primary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-secondary { font-size: .74rem; color: var(--vt-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-remove, .item-edit { flex: none; width: 1.9rem; padding: 0; border-radius: .5rem; background: transparent; color: var(--vt-muted); border-color: transparent; font-weight: 400; }
.item-remove:hover, .item-edit:hover { background: var(--vt-surface); color: var(--vt-indigo); border-color: var(--vt-border); }

/* Pin control on canvas messages */
.webchat__basic-transcript__activity { position: relative; }
.history-search { width: 100%; margin: 0 0 .5rem; padding: .45rem .7rem; font: inherit; font-size: .88rem; color: var(--vt-text); background: var(--vt-surface); border: 1px solid var(--vt-border); border-radius: .6rem; }
.history-search:focus { border-color: var(--vt-indigo); outline: none; }
/* Answer controls: Pin, Copy, Word, Excel, PDF appear on hover or focus at the message's top right. */
.vt-actions { display: flex; flex-wrap: wrap; gap: .3rem; margin: -.15rem 0 .5rem 3.3rem; opacity: 0; transition: opacity .15s; }
.webchat__basic-transcript__activity[data-vt-role="user"] .vt-actions { justify-content: flex-end; margin-left: 0; margin-right: .6rem; }
.webchat__basic-transcript__activity:hover .vt-actions, .vt-actions:focus-within, .webchat__basic-transcript__activity:focus-within .vt-actions { opacity: 1; }
@media (max-width: 48rem) { .vt-actions { margin-left: .6rem; } }
.vt-pin { padding: .1rem .55rem; font-size: .72rem; border-radius: 999px; background: var(--vt-surface); color: var(--vt-indigo); border: 1px solid var(--vt-border); }
.vt-pin:hover { background: var(--vt-indigo); color: var(--vt-white); border-color: var(--vt-indigo); }
.vt-pin:disabled { color: var(--vt-muted); background: var(--vt-surface-2); border-color: var(--vt-border); }
/* File card inside a message: name, size and a Download link, built in the browser. */
.vt-file { display: inline-flex; align-items: center; gap: .7rem; margin: .5rem 0 .1rem; padding: .55rem .85rem; border: 1px solid var(--vt-border); border-radius: .7rem; background: var(--vt-surface); color: var(--vt-text); text-decoration: none; max-width: 100%; }
.vt-file:hover { border-color: var(--vt-indigo); background: var(--vt-surface-2); }
.vt-file-icon { flex: none; display: grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .4rem; border-radius: .5rem; background: var(--vt-indigo); color: var(--vt-white); font-weight: 600; font-size: .8rem; letter-spacing: .04em; }
.vt-file-text { display: grid; line-height: 1.25; min-width: 0; }
.vt-file-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-file-meta { font-size: .8rem; color: var(--vt-indigo); }
/* A visible Send beside the microphone (a first-time user should never have to know about Enter). */
.vt-send { align-self: center; margin: 0 .35rem 0 .25rem; padding: .35rem .9rem; border-radius: 999px; background: var(--vt-indigo); color: var(--vt-white); border: 1px solid var(--vt-indigo); font-size: .85rem; letter-spacing: .04em; }
.vt-send:hover { background: var(--vt-navy); border-color: var(--vt-navy); }
@media (pointer: coarse) { .vt-actions { opacity: 1; } }

/* Read-only transcript of a past conversation */
.transcript { width: min(100% - 2rem, 80rem); margin: 1.25rem auto; }
.transcript-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start; border-bottom: 1px solid var(--vt-border); padding-bottom: 1rem; }
.transcript-head h2 { margin: 0 0 .25rem; font-family: var(--vt-font-display); font-style: italic; font-weight: 700; font-size: 1.6rem; color: var(--vt-indigo); }
@media (prefers-color-scheme: dark) { .transcript-head h2 { color: var(--vt-white); } }
.transcript-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.transcript-back { background: transparent; color: var(--vt-indigo); border-color: var(--vt-border); }
.transcript-back:hover { background: var(--vt-surface-2); color: var(--vt-indigo); border-color: var(--vt-indigo); }
.transcript-list { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; gap: .9rem; }
.transcript-message { max-width: 64rem; padding: .8rem 1rem; border-radius: 14px; background: var(--vt-surface-2); }
.transcript-message.from-user { margin-left: auto; background: var(--vt-indigo); color: var(--vt-white); }
.transcript-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.transcript-text.is-rendered { white-space: normal; }
.transcript-text.is-rendered p, .transcript-text.is-rendered ul, .transcript-text.is-rendered ol { margin: 0 0 .5rem; }
.transcript-text.is-rendered table { border-collapse: collapse; margin: .3rem 0 .6rem; max-width: 100%; }
.transcript-text.is-rendered th, .transcript-text.is-rendered td { border: 1px solid var(--vt-border); padding: .25rem .5rem; text-align: left; vertical-align: top; }
.transcript-text.is-rendered th { background: var(--vt-surface-2); }
.transcript-meta { display: flex; gap: .75rem; align-items: center; margin-top: .4rem; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.transcript-pin { margin-left: auto; padding: .1rem .55rem; font-size: .72rem; background: transparent; color: inherit; border-color: currentColor; text-transform: none; letter-spacing: 0; }

/* Project dialog */
.project-dialog { border: 1px solid var(--vt-border); border-radius: 1rem; padding: 0; width: min(100% - 2rem, 34rem); background: var(--vt-surface); color: var(--vt-text); box-shadow: var(--vt-shadow); }
.project-dialog::backdrop { background: color-mix(in srgb, var(--vt-navy) 45%, transparent); }
.project-form { display: grid; gap: .6rem; padding: 1.25rem; }
.project-form h2 { margin: 0 0 .25rem; font-family: var(--vt-font-display); font-style: italic; font-weight: 700; color: var(--vt-indigo); }
.project-form label { font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--vt-muted); }
.project-form input, .project-form textarea { font: inherit; width: 100%; padding: .6rem .75rem; border: 1px solid var(--vt-border); border-radius: .6rem; background: var(--vt-bg); color: var(--vt-text); }
.project-form .hint { margin: 0; font-size: .8rem; color: var(--vt-muted); }
.dialog-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .5rem; }
.dialog-delete { margin-right: auto; background: transparent; color: var(--vt-fuchsia); border-color: var(--vt-border); }
.dialog-delete:hover { background: var(--vt-fuchsia); color: var(--vt-white); border-color: var(--vt-fuchsia); }
.dialog-cancel { background: transparent; color: var(--vt-indigo); border-color: var(--vt-border); }
.dialog-cancel:hover { background: var(--vt-surface-2); color: var(--vt-indigo); border-color: var(--vt-indigo); }

/* Project files in the dialog */
.files-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; }
.dialog-add-files { padding: .3rem .8rem; font-size: .8rem; background: transparent; color: var(--vt-indigo); border-color: var(--vt-border); }
.dialog-add-files:hover { background: var(--vt-surface-2); color: var(--vt-indigo); border-color: var(--vt-indigo); }
.project-files { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; max-height: 10rem; overflow: auto; }
.project-file { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem; border: 1px solid var(--vt-border); border-radius: .5rem; background: var(--vt-surface-2); }
.project-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-file-size { font-size: .74rem; color: var(--vt-muted); }

/* Conversation tabs (owner direction): several conversations open at once, like editor tabs.
   Each tab keeps its own live canvas or read-only transcript; switching hides the others. */
.tabstrip { flex: none; display: flex; align-items: flex-end; gap: .15rem; padding: .5rem clamp(.5rem, 2vw, 1.5rem) 0; border-bottom: 1px solid var(--vt-border); background: var(--vt-surface); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.tab { position: relative; flex: 0 1 14rem; min-width: 7rem; display: flex; align-items: center; gap: .4rem; padding: .5rem .45rem .5rem .85rem; margin-bottom: -1px; border: 1px solid transparent; border-bottom-color: var(--vt-border); border-radius: .65rem .65rem 0 0; color: var(--vt-muted); cursor: pointer; user-select: none; }
.tab:hover { background: var(--vt-surface-2); color: var(--vt-text); }
.tab[aria-selected="true"] { background: var(--vt-bg); color: var(--vt-text); border-color: var(--vt-border); border-bottom-color: var(--vt-bg); }
.tab[aria-selected="true"]::before { content: ''; position: absolute; left: .65rem; right: .65rem; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--vt-indigo); }
.tab[data-state="connecting"] .tab-title { opacity: .7; }
.tab[data-state="failed"]::before { background: var(--vt-fuchsia); }
.tab-kind { flex: none; font-size: .66rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--vt-blue); }
.tab-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; font-weight: 400; }
.tab-close { flex: none; width: 1.45rem; height: 1.45rem; padding: 0; border-radius: 50%; background: transparent; color: inherit; border-color: transparent; font-size: 1rem; line-height: 1; font-weight: 400; opacity: .55; }
.tab:hover .tab-close, .tab[aria-selected="true"] .tab-close, .tab-close:focus-visible { opacity: 1; }
.tab-close:hover { background: var(--vt-surface); color: var(--vt-indigo); border-color: var(--vt-border); }
.tab-new { flex: none; align-self: center; width: 1.9rem; height: 1.9rem; margin: 0 0 .25rem .25rem; padding: 0; border-radius: 50%; background: transparent; color: var(--vt-indigo); border-color: transparent; font-size: 1.3rem; line-height: 1; font-weight: 400; }
.tab-new:hover { background: var(--vt-surface-2); color: var(--vt-indigo); border-color: var(--vt-border); }
.tab-new:disabled { background: transparent; border-color: transparent; }
.panes { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pane { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.pane-chat { overflow: hidden; }
.status-close { background: transparent; color: var(--vt-indigo); border-color: var(--vt-border); }
.status-close:hover { background: var(--vt-surface-2); color: var(--vt-indigo); border-color: var(--vt-indigo); }
@media (max-width: 48rem) {
  .tabstrip { padding-left: .5rem; padding-right: .5rem; }
  .tab { min-width: 6rem; padding-left: .6rem; }
}

/* Voice mode toggle (owner direction): talk with Vestar Today hands-free through Azure AI Speech. */
/* Voice beside the account (owner direction, September 20), one short line. */
.voice-toggle { display: inline-flex; align-items: center; gap: .45rem; margin-right: .6rem; padding: .4rem .85rem; white-space: nowrap; background: transparent; color: var(--vt-indigo); border-color: var(--vt-border); }
.voice-toggle:hover { background: var(--vt-surface-2); color: var(--vt-indigo); border-color: var(--vt-indigo); }
.voice-toggle:disabled { display: none; }
.voice-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--vt-muted); }
.voice-toggle[data-state="idle"] { border-color: var(--vt-indigo); }
.voice-toggle[data-state="idle"] .voice-dot { background: var(--vt-indigo); }
.voice-toggle[data-state="listening"] { background: var(--vt-fuchsia); color: var(--vt-white); border-color: var(--vt-fuchsia); }
.voice-toggle[data-state="listening"] .voice-dot { background: var(--vt-white); animation: vt-pulse 1.2s ease-in-out infinite; }
.voice-toggle[data-state="thinking"] .voice-dot { background: var(--vt-blue); animation: vt-pulse .8s ease-in-out infinite; }
.voice-toggle[data-state="speaking"] { background: var(--vt-indigo); color: var(--vt-white); border-color: var(--vt-indigo); }
.voice-toggle[data-state="speaking"] .voice-dot { background: var(--vt-white); }
@keyframes vt-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }
@media (max-width: 48rem) { .voice-text { display: none; } .voice-toggle { padding: .4rem .55rem; margin-right: .3rem; } }
@media (prefers-reduced-motion: reduce) { .voice-dot { animation: none !important; } }

/* Start my day (D-039): secondary sidebar action, shown only when the day brief is enabled. */
.start-day { width: 100%; margin-top: -.5rem; background: transparent; color: var(--vt-indigo); border-color: var(--vt-indigo); }
.start-day:hover { background: var(--vt-indigo); color: var(--vt-white); }
/* Export control (owner direction, September 19 evening): PDF, Word, Excel from the conversation on screen. */
.export { position: relative; margin-right: .6rem; }
.export-toggle { padding: .4rem .85rem; background: transparent; color: var(--vt-indigo); border-color: var(--vt-border); }
.export-toggle:hover { background: var(--vt-surface-2); color: var(--vt-indigo); border-color: var(--vt-indigo); }
.export-toggle:disabled { display: none; }
.export-toggle[data-busy="1"] { color: var(--vt-muted); }
.export-toggle[data-issue="1"] { border-color: var(--vt-fuchsia); color: var(--vt-fuchsia); }
.export-menu { position: absolute; right: 0; top: calc(100% + .4rem); min-width: 16rem; padding: .4rem; display: grid; gap: .15rem; background: var(--vt-surface); border: 1px solid var(--vt-border); border-radius: .6rem; box-shadow: 0 10px 30px rgba(8, 41, 73, .15); z-index: 30; }
.export-menu .menu-item { text-align: left; }
.export-note { margin: .35rem .5rem .2rem; font-size: .8rem; line-height: 1.35; color: var(--vt-muted); }
/* Drawn charts: shown at their natural size, never upscaled to the bubble, capped to the viewport height. */
/* Web Chat shows an image attachment as a fixed 240 px box (its bubbleImageHeight) with the
   picture absolutely positioned and centred inside it, so a tall chart was cropped to a
   240 px strip (owner, September 20: "it must fully display"). The box grows with the
   picture and the picture sits in normal flow at its own size, never wider than the bubble. */
.webchat__stacked-layout__attachment-row .webchat__bubble, .webchat__stacked-layout__attachment-row .webchat__bubble > *, .webchat__stacked-layout__attachment-row .webchat__bubble__content > div { height: auto !important; max-height: none !important; overflow: visible !important; position: static !important; }
.webchat__stacked-layout__attachment-row .webchat__bubble__content > div > img { position: static !important; transform: none !important; left: auto !important; top: auto !important; }
.webchat__stacked-layout__attachment-row img { cursor: pointer; display: block; width: auto !important; height: auto !important; max-width: 100% !important; margin: 0 auto; background: var(--vt-white); border: 1px solid var(--vt-border); border-radius: .6rem; padding: .5rem; }
.webchat__stacked-layout__attachment-row img:hover { border-color: var(--vt-indigo); }
@media (max-width: 48rem) { .export { margin-right: .3rem; } .export-toggle { padding: .4rem .55rem; } }
.voice-toggle[data-issue="1"] { border-color: var(--vt-fuchsia); color: var(--vt-fuchsia); }
.voice-toggle[data-issue="1"] .voice-dot { background: var(--vt-fuchsia); animation: none; }

/* Dark scheme: transparent controls read in white; indigo-on-navy is too dim. */
@media (prefers-color-scheme: dark) {
  .menu-toggle, .voice-toggle, .export-toggle, .section-action, .vt-pin, .vt-starter, .status-close, .transcript-pin, .history-search { color: var(--vt-white); border-color: var(--vt-border); }
  .menu-toggle:hover, .voice-toggle:hover, .section-action:hover, .vt-pin:hover, .vt-starter:hover { background: var(--vt-white); color: var(--vt-navy); border-color: var(--vt-white); }
  .voice-dot, .voice-toggle[data-state="idle"] .voice-dot { background: var(--vt-white); }
  .voice-toggle[data-state="idle"] { border-color: var(--vt-white); }
  .vt-starters-hello { color: var(--vt-white); }
  .start-day { color: var(--vt-white); border-color: var(--vt-white); }
  .start-day:hover { background: var(--vt-white); color: var(--vt-navy); }
  .start-day[disabled] { opacity: .55; }
  .vt-file-meta, .body a { color: color-mix(in srgb, var(--vt-blue) 45%, var(--vt-white)); }
  .vt-file-icon { background: var(--vt-blue); }
  .item-open:hover, .list-item.is-active .item-open { background: color-mix(in srgb, var(--vt-white) 10%, transparent); }
}

/* Drawn charts saved with a past conversation. */
.transcript-image { display: block; width: auto; max-width: 100%; height: auto; margin: 12px 0 4px; background: var(--vt-white); border: 1px solid var(--vt-border); border-radius: 8px; padding: 8px; }


/* Working line under the transcript while an answer is on its way. */
.vt-working { position: absolute; left: 50%; bottom: 5.2rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem; border-radius: 999px; background: var(--vt-surface, #fff); border: 1px solid var(--vt-border); color: var(--vt-muted); font-size: .82rem; box-shadow: 0 2px 8px rgba(8, 41, 73, .08); pointer-events: none; z-index: 3; white-space: nowrap; max-width: calc(100% - 2rem); overflow: hidden; text-overflow: ellipsis; }
.vt-working[hidden] { display: none; }
.vt-working-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--vt-blue); animation: vt-pulse 1.2s ease-in-out infinite; }
@keyframes vt-pulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .vt-working-dot { animation: none; } }
/* The agent's "Based on:" sources line, quiet and small. */
.webchat__render-markdown p.vt-sources, .webchat__render-markdown .vt-sources li { font-size: .84rem; color: var(--vt-muted); }
.webchat__render-markdown p.vt-sources { margin-top: .9rem; padding-top: .5rem; border-top: 1px solid var(--vt-border); }

/* Catch-up control when new content arrives below the fold. */
.webchat__scroll-to-end-button { background: var(--vt-indigo) !important; color: var(--vt-white) !important; border: 0 !important; border-radius: 999px !important; padding: .35rem .9rem !important; font: 600 .82rem/1 var(--vt-font-body) !important; letter-spacing: .02em; box-shadow: 0 4px 14px rgba(8, 41, 73, .18) !important; }
.webchat__scroll-to-end-button:hover { background: var(--vt-blue) !important; }
.vt-actions .vt-feedback[disabled] { opacity: .7; }

/* Sharper follow-up questions offered under an answer, one click to ask. */
.vt-followups { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .2rem 0 .35rem 3.3rem; }
.vt-followups-label { font-size: .78rem; color: var(--vt-muted); letter-spacing: .04em; text-transform: uppercase; }
.vt-followup { font: inherit; font-size: .86rem; line-height: 1.3; text-align: left; padding: .38rem .8rem; border-radius: 999px; border: 1px solid var(--vt-border); background: var(--vt-surface, #fff); color: var(--vt-indigo); cursor: pointer; max-width: 100%; }
.vt-followup:hover, .vt-followup:focus-visible { background: var(--vt-indigo); color: var(--vt-white); border-color: var(--vt-indigo); }
@media (prefers-color-scheme: dark) { .vt-followup { color: var(--vt-white); } .vt-followup:hover { background: var(--vt-white); color: var(--vt-navy); } }
@media (max-width: 700px) { .vt-followups { margin-left: 0; } }
/* Quick replies: the first button is the affirmative, shown filled. */
.vt-quick .vt-followup:first-of-type { background: var(--vt-indigo); color: var(--vt-white); border-color: var(--vt-indigo); }
.vt-quick .vt-followup[disabled] { opacity: .6; cursor: default; }

/* Lease review tab (D-053): Sidney Broadnax's reviewer cockpit as a Vestar Today tab. */
.pane-review .canvas { display: block; overflow: auto; }
.review { display: flex; flex-direction: column; gap: 12px; padding: 16px; min-height: 100%; font-family: var(--vt-font-body); color: var(--vt-text); }
.review-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--vt-border); }
.review-title h2 { margin: 0; font-family: var(--vt-font-display); font-size: 1.35rem; font-weight: 600; }
.review-title p { margin: 4px 0 0; }
.review-status { display: flex; align-items: center; gap: 10px; }
.review-pill { padding: 4px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 500; background: var(--vt-surface-2); border: 1px solid var(--vt-border); }
.review-pill[data-state="ready"] { background: color-mix(in srgb, var(--vt-blue) 18%, var(--vt-surface)); }
.review-pill[data-state="cleared"] { background: color-mix(in srgb, var(--vt-indigo) 22%, var(--vt-surface)); }
.review-head-actions { display: flex; gap: 8px; align-items: center; }
.review-primary { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--vt-indigo); background: var(--vt-indigo); color: var(--vt-white); font: inherit; cursor: pointer; }
.review-primary:disabled { opacity: 0.45; cursor: default; }
.review-help, .review-risks { padding: 12px 14px; border-radius: 10px; background: var(--vt-surface-2); border: 1px solid var(--vt-border); }
.review-help h3, .review-risks h3 { margin: 0 0 6px; font-size: 1rem; }
.review-help p { margin: 6px 0; }
.review-risks ul { margin: 0; padding-left: 18px; }
.review-body { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(360px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .review-body { grid-template-columns: 1fr; } }
.review-fields { display: flex; flex-direction: column; gap: 14px; }
.review-topic h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: var(--vt-indigo); }
.review-topic-count { font-size: 0.75rem; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--vt-fuchsia) 14%, var(--vt-surface)); color: var(--vt-text); }
.review-field { padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; border: 1px solid var(--vt-border); background: var(--vt-surface); }
.review-field[data-state="approved"] { border-color: color-mix(in srgb, var(--vt-blue) 45%, var(--vt-border)); }
.review-field[data-state="corrected"] { border-color: color-mix(in srgb, var(--vt-violet) 45%, var(--vt-border)); }
.review-field[data-state="back"] { border-color: color-mix(in srgb, var(--vt-fuchsia) 45%, var(--vt-border)); }
.review-field-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.review-field-name { font-weight: 600; }
.review-check { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.75rem; font-weight: 700; border: 1px solid var(--vt-border); }
.review-check[data-check="ok"] { background: color-mix(in srgb, var(--vt-blue) 22%, var(--vt-surface)); }
.review-check[data-check="near"] { background: color-mix(in srgb, var(--vt-violet) 18%, var(--vt-surface)); }
.review-check[data-check="bad"] { background: color-mix(in srgb, var(--vt-fuchsia) 22%, var(--vt-surface)); }
.review-conf { font-size: 0.75rem; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--vt-border); }
.review-conf[data-band="high"] { background: color-mix(in srgb, var(--vt-blue) 16%, var(--vt-surface)); }
.review-conf[data-band="low"] { background: color-mix(in srgb, var(--vt-fuchsia) 18%, var(--vt-surface)); }
.review-channel { margin-left: auto; font-size: 0.75rem; color: var(--vt-muted); }
.review-value { margin: 6px 0 4px; white-space: pre-wrap; word-break: break-word; }
.review-draft, .review-reason { margin: 2px 0; font-size: 0.85rem; }
.review-cites { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.review-state { display: inline-block; font-size: 0.8rem; color: var(--vt-muted); }
.review-state[data-state="approved"] { color: var(--vt-blue); }
.review-actions { margin-top: 6px; }
.review-approve { border-color: var(--vt-indigo); }
.review-editor { display: grid; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 8px; background: var(--vt-surface-2); }
.review-editor label { font-size: 0.8rem; color: var(--vt-muted); }
.review-input { font: inherit; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--vt-border); background: var(--vt-surface); color: var(--vt-text); }
.review-error { padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--vt-fuchsia) 14%, var(--vt-surface)); }
.review-saving { padding: 4px 0; }
.review-viewer { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 140px); }
.viewer-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.viewer-title { font-weight: 600; word-break: break-word; }
.viewer-nav { display: flex; align-items: center; gap: 6px; }
.viewer-page { font-size: 0.85rem; color: var(--vt-muted); min-width: 90px; text-align: center; }
.viewer-link { font-size: 0.85rem; color: var(--vt-blue); }
.viewer-stage { position: relative; overflow: auto; border-radius: 10px; border: 1px solid var(--vt-border); background: var(--vt-surface-2); min-height: 320px; }
.viewer-canvas { display: block; }
.viewer-marks { position: absolute; left: 0; top: 0; pointer-events: none; }
.viewer-mark { position: absolute; background: color-mix(in srgb, var(--vt-fuchsia) 35%, transparent); border-radius: 2px; }
.vt-review { border-color: var(--vt-indigo); font-weight: 600; }
.review-role { display: block; width: 100%; font-size: 0.8rem; }
.review-wait { font-size: 0.8rem; font-style: italic; }
/* Filing tab and the offer under the composer (owner ask, September 20). */
.pane-filing .canvas { display: block; overflow: auto; }
.filing { display: flex; flex-direction: column; gap: 10px; padding: 16px; max-width: 720px; font-family: var(--vt-font-body); color: var(--vt-text); }
.filing h2 { margin: 0; font-family: var(--vt-font-display); font-size: 1.35rem; font-weight: 600; }
.filing-form { display: grid; gap: 6px; }
.filing-form label { font-size: 0.8rem; color: var(--vt-muted); margin-top: 6px; }
.filing-files, .filing-results { margin: 0; padding-left: 18px; }
.filing-files li, .filing-results li { margin: 4px 0; word-break: break-word; }
.filing-destination { margin: 8px 0 4px; padding: 8px 10px; border-radius: 8px; background: var(--vt-surface-2); border: 1px solid var(--vt-border); font-size: 0.9rem; word-break: break-all; }
.filing-actions { margin: 6px 0 0; opacity: 1; }
.vt-file-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 14px; font-size: 0.85rem; color: var(--vt-text); background: color-mix(in srgb, var(--vt-indigo) 10%, var(--vt-surface)); border-top: 1px solid var(--vt-border); }
.vt-file { border-color: var(--vt-indigo); font-weight: 600; }
/* Armed confirmation state (inline confirmations replace browser dialogs). */
.is-armed, .review-primary.is-armed, .section-action.is-armed, .item-remove.is-armed { background: color-mix(in srgb, var(--vt-fuchsia) 22%, var(--vt-surface)); border-color: var(--vt-fuchsia); color: var(--vt-text); font-weight: 600; }
/* Review and filing action strips are always visible (the conversation's hover-only strip does not apply here). */
.review-actions, .filing-actions { opacity: 1; margin-left: 0; }
/* Citation panel: the quoted words, the check result, the SharePoint link; the page renders only on request. */
.viewer-cite { padding: 10px 12px; border-radius: 10px; background: var(--vt-surface-2); border: 1px solid var(--vt-border); }
.viewer-cite p { margin: 4px 0; }
.viewer-quote { margin: 4px 0 8px; padding-left: 10px; border-left: 3px solid var(--vt-indigo); font-style: italic; }

.review-field[data-state="confident"] { border-color: color-mix(in srgb, var(--vt-blue) 30%, var(--vt-border)); }
.review-state[data-state="confident"] { color: var(--vt-blue); }

/* Review tab: settled terms fold behind one line (owner direction, September 21). */
.review-toggle { display: block; width: 100%; text-align: left; margin: 0 0 10px; }
.review-empty { margin: 8px 0 14px; }

/* Admin button beside the clock (owner direction, September 21): the same pill as Voice, shown to administrators only. */
.admin-toggle { margin-right: 0; margin-left: .2rem; }
.admin-toggle[hidden] { display: none; }
@media (max-width: 48rem) { .admin-toggle { margin-left: 0; } }

/* Permissions view */
.admin { max-width: 72rem; }
.admin-status { margin: 0 0 .6rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-bottom: 1rem; }
.admin-table th, .admin-table td { padding: .35rem .45rem; border-bottom: 1px solid var(--vt-border); text-align: left; vertical-align: middle; }
.admin-table .admin-group { text-align: center; font-weight: 600; border-bottom: none; padding-top: .2rem; }
.admin-table .admin-col { font-weight: 500; font-size: .74rem; color: var(--vt-muted); writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.admin-table .admin-cell { text-align: center; }
.admin-person { min-width: 12rem; display: grid; }
.admin-email { font-size: .76rem; }
.admin-note { margin-left: .5rem; font-size: .76rem; }
.admin-add { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: .5rem; align-items: center; max-width: 44rem; margin: .4rem 0 .8rem; }
@media (max-width: 48rem) { .admin-add { grid-template-columns: 1fr; } .admin-table { display: block; overflow-x: auto; } }
/* Two actions in a section head (Admin: File a document, Permissions) stay on one line each. */
.section-head { flex-wrap: wrap; row-gap: .3rem; }
.section-action { white-space: nowrap; }
/* Permissions: directory lookup for Add a person */
.admin-add { grid-template-columns: auto 1fr auto; }
.admin-search { position: relative; }
.admin-results { list-style: none; margin: .25rem 0 0; padding: .25rem 0; border: 1px solid var(--vt-border); border-radius: 10px; background: var(--vt-surface); max-height: 14rem; overflow: auto; font-size: .85rem; }
.admin-result { padding: .4rem .7rem; cursor: pointer; }
.admin-result:hover, .admin-result:focus { background: var(--vt-surface-2); outline: none; }
.admin-results li.muted { padding: .4rem .7rem; }
.admin-chosen { margin: 0 0 .6rem; }
/* Document view (owner direction, September 21): evidence opens as a tab beside the conversation; a download is a press
   of Download, never automatic. */
.pane-document .canvas { display: block; overflow: auto; }
.docview { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; min-height: 100%; font-family: var(--vt-font-body); color: var(--vt-text); }
.docview-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .6rem 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--vt-border); }
.docview-title h2 { margin: 0; font-family: var(--vt-font-display); font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
.docview-title p { margin: .2rem 0 0; font-size: .82rem; overflow-wrap: anywhere; }
.docview-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.docview-open { text-decoration: none; }
.docview-status { margin: 0; font-size: .85rem; }
.docview-body { flex: 1; min-height: 0; }
.docview-pages { display: flex; flex-direction: column; align-items: center; gap: .8rem; padding-bottom: 1rem; }
.docview-page { display: block; max-width: 100%; height: auto; background: var(--vt-white); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.docview-more { align-self: center; }
.docview-markdown { max-width: 62rem; margin: 0 auto; line-height: 1.55; font-size: .95rem; }
.docview-markdown h1, .docview-markdown h2, .docview-markdown h3 { font-family: var(--vt-font-display); line-height: 1.25; margin: 1.4em 0 .5em; }
.docview-markdown h1 { font-size: 1.5rem; } .docview-markdown h2 { font-size: 1.2rem; } .docview-markdown h3 { font-size: 1.05rem; }
.docview-markdown table { border-collapse: collapse; width: 100%; margin: .8rem 0; font-size: .88rem; display: block; overflow-x: auto; }
.docview-markdown th, .docview-markdown td { border: 1px solid var(--vt-border); padding: .35rem .5rem; text-align: left; vertical-align: top; }
.docview-markdown th { background: var(--vt-surface-2); }
.docview-markdown pre { background: var(--vt-surface-2); padding: .6rem .8rem; border-radius: 8px; overflow-x: auto; font-size: .85rem; }
.docview-markdown blockquote { margin: .8rem 0; padding: .2rem .9rem; border-left: 3px solid var(--vt-indigo); color: var(--vt-muted); }
/* Librarian filing review (register D-055, slice 2): list to the left, the chosen document to the right; on a narrow
   screen the list and the detail take turns. */
.pane-queue .canvas { display: block; overflow: auto; }
.queue { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; min-height: 100%; font-family: var(--vt-font-body); color: var(--vt-text); }
.queue-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--vt-border); }
.queue-title h2 { margin: 0; font-family: var(--vt-font-display); font-size: 1.25rem; font-weight: 600; }
.queue-title p { margin: .2rem 0 0; font-size: .85rem; max-width: 46rem; }
.queue-controls { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.queue-filters { display: flex; gap: .3rem; }
.queue-filters button[aria-pressed="true"] { background: var(--vt-indigo); color: var(--vt-white); border-color: var(--vt-indigo); }
.queue-status { margin: 0; font-size: .85rem; }
.queue-error { color: var(--vt-danger, #a4262c); }
.queue-body { display: grid; grid-template-columns: minmax(16rem, 24rem) 1fr; gap: 1rem; flex: 1; min-height: 0; }
.queue-list { display: grid; gap: .4rem; align-content: start; }
.queue-row { display: grid; gap: .15rem; text-align: left; padding: .55rem .7rem; border: 1px solid var(--vt-border); border-radius: 10px; background: var(--vt-surface); cursor: pointer; font: inherit; color: inherit; }
.queue-row:hover, .queue-row:focus-visible { background: var(--vt-surface-2); outline: none; }
.queue-row.is-selected { border-color: var(--vt-indigo); box-shadow: inset 0 0 0 1px var(--vt-indigo); }
.queue-row-name { font-weight: 600; overflow-wrap: anywhere; }
.queue-row-meta, .queue-row-state { font-size: .78rem; color: var(--vt-muted); }
.queue-row-dest { font-size: .85rem; }
.queue-empty { margin: 0; }
.queue-detail { display: grid; gap: .5rem; align-content: start; padding: .8rem 1rem; border: 1px solid var(--vt-border); border-radius: 12px; background: var(--vt-surface); }
.queue-detail h3 { margin: 0; font-family: var(--vt-font-display); font-size: 1.05rem; overflow-wrap: anywhere; }
.queue-detail p { margin: 0; }
.queue-back { display: none; justify-self: start; }
.queue-dest { font-size: .95rem; }
.queue-missing { font-size: .9rem; }
.queue-answers { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.queue-actions, .queue-form-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.queue-hint { flex-basis: 100%; font-size: .82rem; }
.queue-form { display: grid; gap: .35rem; max-width: 30rem; padding: .7rem; border: 1px dashed var(--vt-border); border-radius: 10px; }
.queue-form label { font-size: .82rem; color: var(--vt-muted); }
.queue-dest-preview { font-size: .9rem; }
.queue-result { font-size: .9rem; min-height: 1.2em; }
.queue-done { font-weight: 600; }
.queue-open { text-decoration: none; margin-left: .3rem; }
@media (max-width: 52rem) {
  .queue-body { grid-template-columns: 1fr; }
  .queue[data-view="detail"] .queue-list { display: none; }
  .queue[data-view="list"] .queue-detail { display: none; }
  .queue-back { display: inline-flex; }
}
/* Filing intake (register D-055): the panel above the composer while attached files are being placed. */
.vt-intake { margin: 0 0 .5rem; padding: .7rem .9rem; border: 1px solid var(--vt-border); border-radius: 12px; background: var(--vt-surface); font-family: var(--vt-font-body); font-size: .9rem; display: grid; gap: .5rem; }
.vt-intake-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.vt-intake-list { display: grid; gap: .6rem; }
.vt-intake-item { display: grid; gap: .3rem; padding-top: .4rem; border-top: 1px solid var(--vt-border); }
.vt-intake-name { font-weight: 600; overflow-wrap: anywhere; }
.vt-intake-status { margin: 0; color: var(--vt-muted); }
.vt-intake-item.is-error .vt-intake-status { color: var(--vt-danger, #a4262c); }
.vt-intake-prompt { margin: .2rem 0; }
.vt-intake-choices { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.vt-intake-choices .review-input { max-width: 18rem; }
.vt-intake-error { margin: 0; color: var(--vt-danger, #a4262c); }
.vt-intake-open { text-decoration: none; }
.docview-figure { margin: 0; text-align: center; }
.docview-image { max-width: 100%; height: auto; background: var(--vt-white); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
