/* Deal Vision App — app-level styles on top of the design system (design/dv.css v0.1.0).
   dv.css owns tokens, the shell and the components; this file adds the glue (full-height shell, self-hosted
   Inter), the My Loop record layout, Settings and the sign-in page. Nothing here redefines a token. */

/* ---------- Font: Inter (SIL Open Font License), self-hosted (design README open item) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../design/fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Glue ---------- */
html, body { height: 100%; }
body { overscroll-behavior-y: none; }
.dv-app { height: 100%; }
#shell { display: contents; }
.dv-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: var(--dv-r-md); background: var(--dv-text); color: var(--dv-bg); }
.dv-skip:focus { left: 8px; }
.no-js .js-only, .js .js-hide { display: none !important; }
.dv-mark-img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.dv-env { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
@container dvapp (max-width: 599px) { .dv-appbar .dv-env { display: none; } }
.dv-appbar .dv-avatar, .dv-appbar__brand { text-decoration: none; color: inherit; }
.dv-backlink .dv-ico { transform: scaleX(-1); }
.dv-navitem, .dv-tab { text-decoration: none; }
.dv-tabbar { grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); }
.dv-badge.is-zero { display: none; }
.dv-seg__link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 1; min-height: 38px; padding: 0 14px; border-radius: 8px; color: var(--dv-text-2); font: 650 var(--dv-fs-sm)/1 var(--dv-font); text-decoration: none; }
.dv-seg__link[aria-pressed="true"] { background: var(--dv-surface); color: var(--dv-text); box-shadow: var(--dv-shadow-1); }
/* #1282: a segmented switch never lets a label run past its own box. Each segment is at least as wide as its text, and when
   they do not all fit (the 380 px list column: the book's Contacts / Companies / Duplicates / Tasks) the switch wraps to
   a second row. When they fit, nothing changes (flex: 1 still shares the width equally). The doubled classes outrank a
   screen rule that lets a segment shrink below its text (contacts/booknav.css sets min-width: 0). */
.dv-seg { flex-wrap: wrap; max-width: 100%; }
.dv-seg.dv-seg .dv-seg__link.dv-seg__link, .dv-seg.dv-seg button { min-width: max-content; }
.dv-row__body { min-width: 0; }
.dv-row__cover { position: absolute; inset: 0; z-index: 1; }
.dv-row--module { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; min-height: 56px; }
.dv-row--module[aria-disabled="true"] { color: var(--dv-text-2); }
.dv-row--ungraded { grid-template-columns: auto minmax(0, 1fr); }
.dv-row--ungraded .grade-buttons { margin-top: 10px; }
.dv-row__title.row-link { color: inherit; text-decoration: none; }
.dv-row__title.row-link:hover { text-decoration: underline; }
.dv-row[aria-selected="true"] .dv-row__title, .dv-row[aria-selected="true"] .dv-faint { color: inherit; }
.dv-fchip--radio { position: relative; }
.dv-fchip--radio input { position: absolute; opacity: 0; pointer-events: none; }
.dv-fchip--radio:has(input:checked) { background: var(--dv-selected); border-color: var(--dv-selected); color: var(--dv-on-selected); }
.dv-fchip--radio:has(input:focus-visible) { outline: 2px solid var(--dv-focus); outline-offset: 2px; }
.dv-outcomes--3 { grid-template-columns: 1fr 1fr 1fr; }
.dv-outcomes .dv-outcome--wide { grid-column: 1 / -1; } /* #2633: the odd last button spans the row */
.dv-outcomes a.dv-outcome { text-decoration: none; }
.grade-mix { display: flex; flex-wrap: wrap; gap: var(--dv-s3) var(--dv-s5); margin: var(--dv-s4) 0 0; }
.grade-mix > div { display: flex; align-items: center; gap: var(--dv-s2); }
.grade-mix dt, .grade-mix dd { margin: 0; }
.grade-mix dd { font-variant-numeric: tabular-nums; font-weight: 650; }
.lede { margin-bottom: var(--dv-s3); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--dv-s3); padding-top: var(--dv-s3); }
.search { margin-bottom: var(--dv-s3); }
.dv-table { width: 100%; border-collapse: collapse; font-size: var(--dv-fs-sm); }
.dv-table th, .dv-table td { padding: 8px 6px; border-bottom: 1px solid var(--dv-line); text-align: left; }
.dv-table thead th { color: var(--dv-text-2); font: 700 var(--dv-fs-xs)/1.2 var(--dv-font); letter-spacing: 0.06em; text-transform: uppercase; }
.dv-check { display: inline-grid; place-items: center; min-width: var(--dv-touch-min); min-height: var(--dv-touch-min); cursor: pointer; }
.dv-check input { width: 20px; height: 20px; accent-color: var(--dv-primary); }
.dv-flaggrid { margin-top: var(--dv-s3); overflow-x: auto; }

/* ---------- My Loop: list in the content column, the open contact in the record panel ---------- */
.list-pane .dv-list > li:first-child .dv-row { border-top: 1px solid var(--dv-line); }
.dv-backlink { display: inline-flex; margin: var(--dv-s3) var(--dv-s3) 0; }
/* Under the laptop width the panel replaces the list when a contact is chosen (the Back link brings the list back). */
@container dvapp (max-width: 1023px) {
  #shell.has-selection .dv-main { display: none; }
  #shell.has-selection .dv-panel { display: block; flex: 1; min-height: 0; overflow-y: auto; background: var(--dv-surface); }
}
@container dvapp (min-width: 600px) and (max-width: 1023px) {
  #shell.has-selection .dv-panel { grid-area: main; }
}
@container dvapp (min-width: 1024px) {
  .dv-backlink { display: none; }
}
.dv-record .block { display: grid; gap: var(--dv-s2); }
.dv-record .dv-card + .dv-card { margin-top: var(--dv-s2); }
.dv-record .dv-kv > :last-child { font-weight: 500; }   /* #2045: wrapping is the shell rule (dv.css .dv-kv) */
.dv-record .dv-kv > .kv-wrap { line-height: 1.4; }
.cadence-line { font-size: var(--dv-fs-sm); }
.cadence-line.is-overdue strong { color: var(--dv-warn); }
.cadence-basis { display: block; margin-top: 2px; }
.dv-reach { display: flex; align-items: center; flex-wrap: wrap; gap: var(--dv-s2); }
.reach .is-preferred { border-color: var(--dv-primary-edge); color: var(--dv-primary-text); }
.quick-log .dv-outcomes { grid-template-columns: 1fr 1fr; }
.undo-inline { display: flex; align-items: center; gap: var(--dv-s2); }
.tasks { display: grid; gap: var(--dv-s2); }
.task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--dv-s2); align-items: center; }
.task .check { width: 28px; height: 28px; border: 2px solid var(--dv-line-strong); border-radius: 50%; background: none; cursor: pointer; }
.task .check:hover { border-color: var(--dv-ok); background: var(--dv-ok-soft); }
.task-subject { overflow-wrap: anywhere; }
.task-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--dv-s2); align-items: center; }
.task-form input[type="text"], .task-form input:not([type]) { grid-column: 1 / -1; }
.task-form input, .log-form input, .log-form textarea { width: 100%; min-height: var(--dv-touch-min); padding: 0 14px; border: 1px solid var(--dv-line-strong); border-radius: var(--dv-r-md); background: var(--dv-surface); color: var(--dv-text); font-size: var(--dv-fs-md); }
.log-form textarea { min-height: 72px; padding: 10px 14px; }
.task-form .dv-btn { grid-column: 1 / -1; }
.log-block > summary { list-style: none; }
.log-block > summary::-webkit-details-marker { display: none; }
.log-form { display: grid; gap: var(--dv-s3); margin-top: var(--dv-s3); }
.kinds { display: flex; flex-wrap: wrap; gap: var(--dv-s2); margin: 0; padding: 0; border: 0; }
.kinds legend { padding: 0; margin-bottom: 6px; }
.kinds .kind input { accent-color: var(--dv-primary); }
.form-error { color: var(--dv-bad); }
.description p { white-space: pre-line; }

/* The server toast inside the loop shell (works without JavaScript); the JS toast layer handles the rest. */
.loop-toast { display: none; }
.loop-toast.is-visible { display: grid; }
.loop-toast form { display: contents; }

/* ---------- Sign-in and other signed-out pages ---------- */
.dv-entrance { height: 100%; overflow-y: auto; display: grid; place-items: center; padding: var(--dv-s6) var(--dv-s4); }
.dv-signin { width: min(420px, 100%); display: grid; gap: var(--dv-s4); justify-items: center; text-align: center; }
.dv-signin__mark { width: 72px; height: 72px; border-radius: 18px; }
.dv-signin__title { font-size: var(--dv-fs-xl); }
.dv-signin__google, .dv-signin__local, .dv-signin__form { width: 100%; display: grid; gap: var(--dv-s3); }
.dv-signin__local > summary { list-style: none; justify-self: center; }
.dv-signin__local > summary::-webkit-details-marker { display: none; }
.dv-signin__form { text-align: left; }
.dv-signin .dv-banner { width: 100%; text-align: left; }

/* ---------- Settings ---------- */
.dv-seg form, form .dv-seg { width: 100%; }

/* ---------- Secrets inventory (names only; admin) ---------- */
.dv-table--secrets code { font-size: var(--dv-fs-xs); word-break: break-all; }
.dv-table--secrets td, .dv-table--secrets th { vertical-align: top; }
@container dvapp (max-width: 599px) {
  .dv-table--secrets thead { display: none; }
  .dv-table--secrets tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--dv-line); }
  .dv-table--secrets th, .dv-table--secrets td { display: block; padding: 0; border: 0; }
  .dv-table--secrets th[scope="row"] { grid-column: 1 / -1; }
  .dv-table--secrets td:nth-child(5) { grid-column: 2; grid-row: 2 / span 3; text-align: right; }
  .dv-table--secrets td[data-label]::before { content: attr(data-label) ": "; color: var(--dv-text-3); }
}


/* ---------- Deals board and record (1.1.4 v1) ---------- */
.deal-group { margin: var(--dv-s3) 0 4px; }
.dv-row--deal .dv-row__end { align-self: center; }
/* WO-003: a shared deal says whose it is on the first meta line (D-120: one role, so no role word); the stage and
   estimate line stays the owner's layout, which fits at 390 px. */
.share-mark { color: var(--dv-link); font-weight: 600; }
.share-mark .dv-ico { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
/* A long stage chip left no room for the estimate at 390 px ("Est. $72,…", owner rows too): wrap it under the
   chip instead of cutting the number. */
.dv-row--deal .dv-metaline { flex-wrap: wrap; row-gap: 4px; }
.dv-list--plain { list-style: none; margin: 0; padding: 0; }
.dv-row--compact { padding: 8px 0; border-bottom: 1px solid var(--dv-line); display: flex; align-items: center; gap: var(--dv-s2); }
.dv-row--compact .dv-row__body { flex: 1; min-width: 0; }
.next-step-form { display: grid; gap: 8px; padding: 12px; }
.next-step-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.next-step-row .dv-input { flex: 1; min-width: 150px; }
/* D-171 Access card (WO-067): code masked until tapped, Copy beside it, notes plain; the Closed/Lost prompt wraps on a phone. */
.lockbox-form { display: grid; gap: 8px; padding: 12px; }
.lockbox-row { display: grid; gap: 4px; min-width: 0; }
.lockbox-code-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lockbox-code-wrap .dv-input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.lockbox-mask { justify-self: start; min-height: 44px; letter-spacing: .2em; }
.lockbox-mask .dv-faint { letter-spacing: normal; margin-left: 6px; }
.lockbox-stamp { margin: 0; font-size: var(--dv-fs-xs); }   /* #1295: a token, so it steps up on a phone */
.dv-banner.lockbox-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.lockbox-prompt__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lockbox-prompt__actions form { margin: 0; }
.dv-timeline { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--dv-line); display: grid; gap: 12px; }
.dv-timeline__item { display: grid; gap: 2px; }
.dv-timeline__item p { margin: 0; }
.channels .dv-fchip { cursor: pointer; }
.stage-form .dv-select { max-width: 320px; }

/* ---------- Records: Contacts / Companies / Assets lists, the duplicates review (1.1.4 v2) ---------- */
.dv-record__head:not(.person-head) { display: grid; gap: 2px; }
.book-export { margin-left: auto; }
.book-filters { display: grid; gap: var(--dv-s2); }
.book-more > summary { list-style: none; justify-self: start; cursor: pointer; }
.book-more > summary::-webkit-details-marker { display: none; }
.book-filter-grid { display: grid; gap: var(--dv-s3); margin-top: var(--dv-s2); }
.book-filter-grid .dv-field { display: grid; gap: 4px; }
.book-loop { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; justify-self: start; }
.book-loop input { accent-color: var(--dv-primary); }
.book-views { display: flex; flex-wrap: wrap; gap: var(--dv-s2); padding-top: 0; }
.book-view { display: inline-flex; align-items: center; gap: 2px; }
.book-view form { display: contents; }
.book-save { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--dv-s2); align-items: center; padding-top: 0; }
.dv-row--book .dv-row__end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; align-self: center; }
.dup-list { display: grid; gap: var(--dv-s4); padding: 0 var(--dv-s4) var(--dv-s4); }
.dup-sides { display: grid; gap: var(--dv-s2); margin: var(--dv-s2) 0; }
.dup-side { display: grid; gap: 4px; }
.dup-side form { margin-top: var(--dv-s2); }
.dup-dismiss { display: flex; justify-content: flex-end; }
.related-deals + .related-assets { margin-top: var(--dv-s2); }
.dv-eyebrow { margin: 0 0 2px; }
@container dvmain (min-width: 600px) {
  .book-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
  .dup-sides { grid-template-columns: 1fr 1fr; }
}

/* ---------- Deal sharing (1.1.5) ---------- */
.sharing-banner { margin: 0 0 var(--dv-s2); }
.share-row form { display: inline; }
.share-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--dv-s2); margin-top: var(--dv-s3); align-items: center; }
.share-form .dv-select:first-of-type { grid-column: 1 / -1; }
@container dvmain (min-width: 600px) { .share-form { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; } .share-form .dv-select:first-of-type { grid-column: auto; } }

/* ---------- Cash Flow Outlook: import, preflight review, versions (1.3.3) ---------- */
.cfo-import { padding-top: 0; }
.cfo-import__form, .cfo-start__form { display: grid; gap: var(--dv-s3); }
.cfo-import__more > summary { list-style: none; justify-self: start; cursor: pointer; }
.cfo-import__more > summary::-webkit-details-marker { display: none; }
.cfo-import__grid { display: grid; gap: var(--dv-s3); margin-top: var(--dv-s2); }
.cfo-file { padding-top: 10px; padding-bottom: 10px; height: auto; min-height: var(--dv-touch-min); }
.cfo-bad { color: var(--dv-bad); }
.cfo-warn { color: var(--dv-warn); }
.cfo-ready__note { margin: var(--dv-s2) 0 0; }
.cfo-findings__list { display: grid; gap: var(--dv-s2); margin: 0; padding: 0; list-style: none; }
.cfo-finding { display: grid; gap: 6px; padding: var(--dv-s3); }
.cfo-findings--blocker .cfo-finding { border-left: 3px solid var(--dv-bad); }
.cfo-findings--confirm .cfo-finding { border-left: 3px solid var(--dv-warn); }
.cfo-findings--confirm .cfo-finding.is-confirmed { border-left-color: var(--dv-ok); }
.cfo-finding__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cfo-rule { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.cfo-finding__where { color: var(--dv-text-2); font-size: var(--dv-fs-xs); overflow-wrap: anywhere; }
.cfo-finding__msg { margin: 0; font-size: var(--dv-fs-sm); line-height: 1.45; overflow-wrap: anywhere; }
.cfo-finding.is-confirmed .cfo-finding__msg { color: var(--dv-text-2); }
.cfo-finding__act { display: flex; align-items: center; gap: var(--dv-s2); }
.cfo-rr > summary { cursor: pointer; }
.cfo-rr__list { display: grid; gap: var(--dv-s2); margin: var(--dv-s3) 0 0; padding: 0; list-style: none; }
.cfo-rr__row + .cfo-rr__row { border-top: 1px solid var(--dv-line); padding-top: var(--dv-s2); }
.cfo-rr__name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cfo-rr__row .dv-help { margin: 2px 0 0; }
.cfo-versions { margin: var(--dv-s2) 0 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: var(--dv-fs-sm); }
.cfo-version-form { display: grid; gap: var(--dv-s3); }
.cfo-sha { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 500; }
@container dvmain (min-width: 600px) { .cfo-import__grid { grid-template-columns: 1fr 1fr; } }
/* check sheet and editor (1.3.4) */
.cfo-actions { display: flex; flex-wrap: wrap; gap: var(--dv-s2); }
.cfo-progress { height: 6px; border-radius: 3px; background: var(--dv-surface-2); overflow: hidden; }
.cfo-progress > span { display: block; height: 100%; background: var(--dv-ok); }
.cfo-legend > summary, .cfo-sec > summary, .cfo-crow summary { cursor: pointer; list-style: none; }
.cfo-legend > summary::-webkit-details-marker, .cfo-sec > summary::-webkit-details-marker, .cfo-crow summary::-webkit-details-marker { display: none; }
.cfo-legend__list { display: grid; gap: 6px; margin: var(--dv-s3) 0 var(--dv-s2); }
.cfo-legend__list > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: var(--dv-s2); align-items: start; }
.cfo-legend__list dd { margin: 0; font-size: var(--dv-fs-sm); }
.cfo-basis { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.cfo-sec { border-top: 1px solid var(--dv-line); padding-top: var(--dv-s3); display: grid; gap: var(--dv-s2); }
.cfo-sec__head { display: flex; align-items: center; justify-content: space-between; gap: var(--dv-s2); min-height: var(--dv-touch-min); }
.cfo-sec__title { font-weight: 650; overflow-wrap: anywhere; }
.cfo-tagform { display: grid; gap: var(--dv-s3); }
.cfo-basis-fields { display: grid; gap: var(--dv-s2); }
.cfo-tagform__btns { display: flex; flex-wrap: wrap; gap: var(--dv-s2); }
.cfo-rows { margin: 0; padding: 0; list-style: none; display: grid; }
.cfo-crow { border-bottom: 1px solid var(--dv-line); }
.cfo-crow__head { display: flex; align-items: center; justify-content: space-between; gap: var(--dv-s2); min-height: var(--dv-touch-min); padding: 4px 0; }
.cfo-crow__label { min-width: 0; overflow-wrap: anywhere; font-size: var(--dv-fs-sm); }
.cfo-crow.is-done .cfo-crow__label { color: var(--dv-text-2); }
.cfo-crow details[open] { padding-bottom: var(--dv-s3); }
.cfo-vals { margin: 0 0 var(--dv-s3); padding: 0; list-style: none; display: grid; gap: 4px; font-size: var(--dv-fs-sm); }
.cfo-vals li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cfo-vals__name { color: var(--dv-text-2); }
.cfo-vals__val { font-weight: 600; overflow-wrap: anywhere; }
.cfo-vals__src { font-size: var(--dv-fs-xs); }
.cfo-editform { display: grid; gap: var(--dv-s3); }
.cfo-fields { display: grid; gap: var(--dv-s3); }
.cfo-field.is-changed .dv-input, .cfo-field.is-changed .dv-select { border-color: var(--dv-primary-edge); }
.cfo-field.has-finding .dv-input, .cfo-field.has-finding .dv-select { border-color: var(--dv-warn); }
.cfo-field__finding { display: block; font-size: var(--dv-fs-xs); line-height: 1.4; color: var(--dv-warn); overflow-wrap: anywhere; }
.cfo-field__finding--blocker { color: var(--dv-bad); }
.cfo-field__finding--info { color: var(--dv-text-2); }
.cfo-changes ul { margin: var(--dv-s2) 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: var(--dv-fs-sm); overflow-wrap: anywhere; }
.cfo-check-result { margin: 0; font-size: var(--dv-fs-sm); }
.cfo-field { display: grid; gap: 4px; min-width: 0; }
/* S15 autosave: saved tick, Undo, the changed value's basis */
.cfo-field__state { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--dv-fs-xs); }
.cfo-saved { display: inline-flex; align-items: center; gap: 4px; color: var(--dv-ok); font-weight: 600; }
.cfo-undo { min-height: var(--dv-touch-min); padding-inline: var(--dv-s2); }
.cfo-field__basis { display: grid; gap: var(--dv-s2); padding: var(--dv-s2); border-left: 2px solid var(--dv-primary-edge); }
.cfo-field__basis[hidden] { display: none; }
/* Nick 10/18: tick, Undo and the basis toggle sit on the label's line; nothing below the input until asked for */
.cfo-field__head { display: flex; align-items: center; justify-content: space-between; gap: 4px 8px; min-height: 22px; }
.cfo-field__head .dv-label { margin: 0; min-width: 0; }
.cfo-field__head .cfo-field__state { flex: none; flex-wrap: nowrap; gap: 8px; }
.cfo-field__head .cfo-undo { min-height: var(--dv-touch-min); margin-block: -11px; padding-inline: 8px; }
.cfo-more { display: inline-flex; align-items: center; gap: 2px; min-height: var(--dv-touch-min); margin-block: -11px; padding: 0 4px; border: 0; background: none; color: var(--dv-text-2); font: 600 var(--dv-fs-xs)/1 var(--dv-font); cursor: pointer; }
.cfo-more .dv-ico { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .15s; }
.cfo-more[aria-expanded="true"] .dv-ico { transform: rotate(-90deg); }
.cfo-open { display: inline-flex; align-items: center; gap: 3px; min-height: var(--dv-touch-min); margin-block: -11px; padding: 0 4px; font: 600 var(--dv-fs-xs)/1 var(--dv-font); }
.cfo-open .dv-ico { width: 13px; height: 13px; }
.cfo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dv-warn); margin-right: 3px; }
.cfo-field__was { margin: 0; font-size: var(--dv-fs-xs); }
.cfo-my { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--dv-s2); }
.cfo-field__ro { margin: 0; min-height: var(--dv-touch-min); display: inline-flex; align-items: center; gap: 6px; font-size: var(--dv-fs-sm); }
/* WO-051: the Financing switch spans the field grid; the side in force is shown pressed, not greyed out */
.cfo-field--fin { grid-column: 1 / -1; }
.cfo-field--fin .dv-seg button { min-height: var(--dv-touch-min); }
.cfo-field--fin .dv-seg button:disabled { cursor: default; color: var(--dv-text); }
.cfo-autostatus { display: grid; gap: 4px; }
.cfo-autostatus__line, .cfo-autostatus__links { margin: 0; font-size: var(--dv-fs-sm); overflow-wrap: anywhere; }
/* #1558: a save that did not come back OK — the field keeps the typed value, says so, and offers a retry */
.cfo-autostatus__unsaved { margin: 0; font-size: var(--dv-fs-sm); font-weight: 600; color: var(--dv-bad); overflow-wrap: anywhere; }
.cfo-autostatus__unsaved[hidden] { display: none; }
.cfo-field.is-unsaved .dv-input, .cfo-field.is-unsaved .dv-select { border-color: var(--dv-bad); }
.cfo-retry { justify-self: start; max-width: 100%; min-height: var(--dv-touch-min); white-space: normal; }
.cfo-edited { display: flex; flex-wrap: wrap; align-items: center; gap: var(--dv-s2); }
.htmx-request.cfo-field .dv-input, .htmx-request.cfo-field .dv-select { opacity: .7; }
@container dvmain (min-width: 600px) { .cfo-basis-fields { grid-template-columns: 12em minmax(0, 1fr); } .cfo-fields { grid-template-columns: 1fr 1fr; } }
.cfo-table { display: grid; gap: var(--dv-s2); }
.cfo-table__title { margin-top: var(--dv-s3); font-size: var(--dv-fs-sm); }
.cfo-sec--new .cfo-sec__title { color: var(--dv-link); }
/* CFO 1.3.4: template start, standing assumptions */
.cfo-start { padding-bottom: 0; }
.cfo-links { margin: var(--dv-s2) 0 0; font-size: var(--dv-fs-sm); }
/* Cash Flow Outlook on the deal and asset records (task 1.3.6) */
.cfo-linked__list { margin-bottom: var(--dv-s2); }
.cfo-linked__kpis a { font-weight: 600; }
.cfo-linked__op { flex: none; align-self: center; }
.cfo-linked__actions { display: flex; flex-wrap: wrap; gap: var(--dv-s2); margin: var(--dv-s2) 0 var(--dv-s3); }
.cfo-linked__start { display: grid; gap: var(--dv-s2); }
.settings-contact { display: grid; gap: var(--dv-s2); }
.cfo-offers { display: grid; gap: var(--dv-s2); margin-bottom: var(--dv-s3); }
.cfo-offers__list { display: grid; gap: 2px; margin: 0 0 var(--dv-s2); }
.cfo-offer { display: grid; grid-template-columns: var(--dv-touch-min) 1fr; align-items: center; min-height: var(--dv-touch-min); border-bottom: 1px solid var(--dv-line); }
.cfo-offer label { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; cursor: pointer; padding: 6px 0; }
.cfo-offer__box { width: 20px; height: 20px; justify-self: center; accent-color: var(--dv-primary); text-align: center; }
.cfo-offer--done { color: var(--dv-text-2); }
.cfo-idle { margin: var(--dv-s2) 0 0; }
.cfo-page .dv-pad + .dv-pad { padding-top: 0; }
.cfo-saform { display: grid; gap: var(--dv-s3); }
.cfo-salist__row { display: flex; justify-content: space-between; gap: var(--dv-s2); align-items: center; padding: 8px 0; border-bottom: 1px solid var(--dv-line); }
.cfo-salist__row p { margin: 2px 0 0; }
.cfo-salist__row.is-overridden { opacity: 0.6; }
.cfo-checkline { display: flex; gap: 8px; align-items: center; min-height: var(--dv-touch-min); }

/* Cash Flow Outlook results, compare (task 1.3.5) */
.cfo-run-form { display: grid; gap: var(--dv-s2); margin-top: var(--dv-s3); }
.cfo-run-busy { display: none; }
.htmx-request .cfo-run-label, .cfo-run-form [disabled] .cfo-run-label { display: none; }
.htmx-request .cfo-run-busy, .cfo-run-form [disabled] .cfo-run-busy { display: inline; }
.cfo-lastruns { margin-top: var(--dv-s3); }
.cfo-alt-form { margin-top: var(--dv-s2); }
.cfo-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dv-s2); }
.cfo-kpi { padding: var(--dv-s3); display: grid; gap: 2px; align-content: start; }
.dv-record .cfo-kpis > .dv-card { margin-top: 0; }
.cfo-kpi .dv-label, .cfo-kpi .dv-help { margin: 0; }
.cfo-kpi__v { margin: 0; font: 700 1.35rem/1.15 var(--dv-font); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cfo-kpi--hot { border-top: 3px solid var(--dv-primary); }
@container dvmain (min-width: 600px) { .cfo-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container dvmain (min-width: 860px) { .cfo-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cfo-files { display: flex; flex-wrap: wrap; gap: var(--dv-s2); align-items: center; }
.cfo-files > .dv-help { flex-basis: 100%; margin: 0; }
.cfo-pdf { display: contents; }
.cfo-pdf > .dv-help { flex-basis: 100%; margin: 0; }
.cfo-pdf form { display: inline; }
.cfo-spin { display: inline-block; width: 0.9em; height: 0.9em; margin-right: 6px; vertical-align: -1px; border: 2px solid var(--dv-line); border-top-color: var(--dv-text-2); border-radius: 50%; animation: cfo-spin 0.8s linear infinite; }
@keyframes cfo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cfo-spin { animation: none; } }
.cfo-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0; }
.cfo-scroll:focus-visible { outline: 2px solid var(--dv-accent); outline-offset: 2px; }
.cfo-cf, .cfo-cmp { min-width: max-content; }
.cfo-cf th[scope=row], .cfo-cmp th[scope=row] { position: sticky; left: 0; background: var(--dv-surface); white-space: nowrap; font-weight: 500; z-index: 1; box-shadow: inset -1px 0 var(--dv-line); }
/* The header's first cell is sticky too, opaque and above the row labels, so year headings slide under it (phone
   report 2026-10-16: the corner scrolled away and "YR 1 · 2027" showed through). */
.cfo-cf thead th:first-child, .cfo-cmp thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--dv-surface); box-shadow: inset -1px 0 var(--dv-line); }
.cfo-cf td, .cfo-cmp td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cfo-cf tr.is-total th, .cfo-cf tr.is-total td, .cfo-cmp tr.is-total th, .cfo-cmp tr.is-total td { font-weight: 700; }
.cfo-cmp thead th { white-space: normal; min-width: 9.5em; vertical-align: bottom; text-transform: none; letter-spacing: 0; }
.cfo-cmp__sec th { color: var(--dv-text-2); font: 700 var(--dv-fs-xs)/1.2 var(--dv-font); letter-spacing: 0.06em; text-transform: uppercase; padding-top: var(--dv-s3); }
.cfo-cmp__sec-label { position: sticky; left: var(--dv-s3); }   /* a section heading spans every column; its text stays in view */
.cfo-cmp tr.is-changed th, .cfo-cmp tr.is-changed td { background: color-mix(in srgb, var(--dv-warn) 10%, transparent); }
.cfo-cmp tr.is-changed th[scope=row] { background: color-mix(in srgb, var(--dv-warn) 10%, var(--dv-surface)); }   /* opaque: values scroll under it */
.cfo-delta { display: block; font-size: var(--dv-fs-xs); color: var(--dv-text-2); }
.cfo-cmp__note { display: block; font-size: var(--dv-fs-xs); }
.cfo-delta--up { color: var(--dv-ok); }
.cfo-delta--down { color: var(--dv-bad); }
.cfo-loops { display: grid; gap: var(--dv-s2); margin: 0; padding: 0; list-style: none; }
@container dvmain (min-width: 600px) { .cfo-loops { grid-template-columns: 1fr 1fr; } }
.cfo-loop { padding: var(--dv-s3); display: grid; gap: 4px; }
.cfo-loop__top { display: flex; justify-content: space-between; align-items: center; gap: var(--dv-s2); }
.cfo-loop__name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cfo-loop .dv-help, .cfo-loop__rent { margin: 0; font-size: var(--dv-fs-sm); }
.cfo-loop__rent { font-variant-numeric: tabular-nums; }
.cfo-warnlist { margin: var(--dv-s2) 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: var(--dv-fs-sm); }
.cfo-cmp-form { display: grid; gap: var(--dv-s3); margin-top: var(--dv-s2); }
.cfo-picks { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.cfo-pick { display: flex; gap: var(--dv-s2); align-items: flex-start; min-height: var(--dv-touch-min); padding: 6px 0; font-size: var(--dv-fs-sm); }
.cfo-pick input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

/* ---------- Seat B · WO-006 (D-118): no save buttons — the saved line on the deal's Next step and the feature grid ---------- */
.dv-saved { display: inline-flex; align-items: center; gap: 4px; color: var(--dv-ok); font-weight: 600; }
.dv-saved-error { color: var(--dv-bad); font-weight: 600; }
.next-step-state, .flags-saved { margin: 0; min-height: 1.4em; }
.flags-saved { margin-top: var(--dv-s3); }
.next-step-over { display: contents; }

/* ---------- Seat B · WO-007 (D-131): My defaults and the firm card — one row per setting, saved on change ---------- */
.bs-rows { display: grid; gap: var(--dv-s3); }
.bs-row + .bs-row { border-top: 1px solid var(--dv-line); padding-top: var(--dv-s3); }
.bs-form { display: grid; gap: 6px; margin: 0; }
.bs-head { display: flex; align-items: center; justify-content: space-between; gap: var(--dv-s2); min-height: var(--dv-touch-min); }
.bs-head .dv-label { margin: 0; }
.bs-reset { flex: none; font-size: var(--dv-fs-sm); }
.bs-control { display: flex; align-items: center; gap: var(--dv-s2); }
.bs-control .dv-input { flex: 1; min-width: 0; }
.bs-num { max-width: 120px; }
.bs-stages { display: grid; gap: 6px; }
.bs-stage { display: flex; align-items: center; justify-content: space-between; gap: var(--dv-s2); }
.bs-stage > span:first-child { min-width: 0; }
.bs-stage .bs-control { flex: none; }
.bs-fixed { margin: 0; font-size: var(--dv-fs-sm); }
.bs-help, .bs-state { margin: 0; }
.bs-state:empty { display: none; }
.bs-switch { display: inline-flex; align-items: center; gap: var(--dv-s2); min-height: var(--dv-touch-min); }
.bs-switch input:checked ~ .bs-switch__off, .bs-switch input:not(:checked) ~ .bs-switch__on { display: none; }

/* ---------- Seat B · WO-008: CFO Confirm checklist (one button) and Source Ledger tags ---------- */
.cfo-confirm { display: grid; gap: var(--dv-s2); }
.cfo-confirm__tools { display: flex; gap: var(--dv-s2); flex-wrap: wrap; }
.cfo-confirm__label { display: flex; gap: var(--dv-s3); align-items: flex-start; cursor: pointer; min-height: var(--dv-touch-min); }
.cfo-confirm__box { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--dv-accent); }
.cfo-confirm__body { display: grid; gap: 4px; min-width: 0; }
.cfo-confirm__body .cfo-finding__msg { margin: 0; }
.cfo-confirm__by { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: var(--dv-ok); }
.cfo-confirm__row:has(.cfo-confirm__box:checked) { border-color: var(--dv-line-strong); }
.cfo-confirm__bar { position: sticky; bottom: 0; z-index: 2; display: grid; gap: 4px; padding: var(--dv-s2) 0;
  background: var(--dv-surface); box-shadow: 0 -8px 12px -8px rgba(0, 0, 0, .35); }
.cfo-confirm__bar .dv-help { margin: 0; }
/* WO-1563 (D-345): confirmed items fold under "Confirmed · N"; "All confirmed" when none is open */
.cfo-confirm__bar button[disabled] { opacity: .55; cursor: not-allowed; }
.cfo-confirm__all { display: flex; align-items: center; gap: var(--dv-s2); margin: 0; }
.cfo-confirm__all > .dv-ico { color: var(--dv-ok); }
.cfo-confirm__done { display: grid; gap: var(--dv-s2); }
.cfo-confirm__summary { cursor: pointer; min-height: var(--dv-touch-min); padding: var(--dv-s2) 0; box-sizing: border-box;
  font-weight: 600; color: var(--dv-text-2); }
.cfo-confirm__done[open] > .cfo-confirm__summary { margin-bottom: var(--dv-s2); }
.cfo-confirm__done .cfo-confirm__row { display: grid; gap: var(--dv-s2); }
.cfo-confirm__reopen { justify-self: start; min-height: var(--dv-touch-min); }
.cfo-ledger-chip { font-size: var(--dv-fs-xs); }
.cfo-ledger { display: grid; gap: var(--dv-s2); }
.cfo-ledger__skips { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: var(--dv-fs-sm); }
.cfo-ledger-form { display: grid; gap: var(--dv-s2); margin-top: var(--dv-s3); }
/* ---------- Seat B · WO-009: the deal's document checklist fits a phone (a long rule note pushed the status chip and the
   whole deal panel sideways: 536–605 px wide at 390 px). .dv-row's grid expects an icon first; these rows have none, so
   the text landed in the icon's auto column. Two columns here: text, then the chip. The note wraps. ---------- */
.checklist > li.dv-row { grid-template-columns: minmax(0, 1fr) auto; }
.checklist .dv-row__body { min-width: 0; }
.checklist .dv-row__title, .checklist .dv-row__meta { white-space: normal; }
/* ---------- Seat B · WO-012: Settings fits a phone (D-056, D-057). dv.css keeps .dv-kv values on one line (numbers on
   other screens rely on it); the App and Ops cards carry sentences there, which pushed the page 103–369 px sideways at
   390 px. On Settings only, a value wrapped inside its row; since #2045 every .dv-kv row does (dv.css). ---------- */
#settings-cards > .dv-card { min-width: 0; }
#settings-cards .bs-nowrap { white-space: nowrap; }          /* a D-number never splits at its hyphen */
/* #2045: a value wrapping in its row, and chips and buttons on one line, are now the shell's rule (dv.css .dv-kv). */

/* ---------- Seat A · stale tab after a deploy ---------- */
.dv-stale { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; max-width: calc(100vw - 32px);
  background: var(--dv-surface-2); color: var(--dv-text); border: 1px solid var(--dv-line-strong);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); font-size: var(--dv-fs-sm); }   /* #1295: a token */
.dv-stale span { white-space: nowrap; }
@media (min-width: 900px) { .dv-stale { bottom: 24px; } }

/* ---------- Seat B · WO-195 (task 2.1 part 2): the Claude assistant panel (core/_assistant_panel.html, flag `assistant`).
   Phone: a bottom sheet at 85% height over a scrim. 1024 px and up: a 380 px right panel and the shell narrows by the
   same width, so the record stays in view. 48 px targets; dark mode through the design tokens. ---------- */
/* #1241: the app bar's Ask is a 48 px square icon button (dv-iconbtn--lg): a "?" in a circle, named by aria-label. */
.asst-open .dv-ico { width: 24px; height: 24px; }
.asst[hidden] { display: none; }
.asst { position: absolute; inset: 0; z-index: var(--dv-z-sheet); }
.asst__scrim { position: absolute; inset: 0; background: var(--dv-overlay); }
.asst__box { position: absolute; left: 0; right: 0; bottom: 0; height: 85%; display: flex; flex-direction: column; min-height: 0;
  background: var(--dv-surface); color: var(--dv-text); border-top: 1px solid var(--dv-line-strong);
  border-radius: 16px 16px 0 0; box-shadow: var(--dv-shadow-2); padding-bottom: env(safe-area-inset-bottom, 0px); }
.asst__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--dv-s2);
  padding: var(--dv-s2) var(--dv-s2) var(--dv-s2) var(--dv-s4); border-bottom: 1px solid var(--dv-line); }
.asst__title { margin: 0; font-size: var(--dv-fs-lg); }
.asst .dv-iconbtn { width: 48px; height: 48px; }
.asst__about { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--dv-s2); margin: 0;
  padding: 0 var(--dv-s2) 0 var(--dv-s4); border-bottom: 1px solid var(--dv-line); color: var(--dv-text-2); font-size: var(--dv-fs-sm); }
.asst__about[hidden] { display: none; }
.asst__about-text { min-width: 0; overflow-wrap: anywhere; }
.asst__about-name { color: var(--dv-text); }
.asst__log { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: var(--dv-s3); align-content: start; padding: var(--dv-s4); }
.asst__msg { margin: 0; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.asst__msg--user { justify-self: end; max-width: 85%; padding: var(--dv-s2) var(--dv-s3); border-radius: 12px; background: var(--dv-selected); color: var(--dv-on-selected); }
.asst__msg--claude { color: var(--dv-text); }
.asst__msg--wait { color: var(--dv-text-2); font-style: italic; }
.asst__msg--error { padding: var(--dv-s2) var(--dv-s3); border-radius: 12px; background: var(--dv-bad-soft); color: var(--dv-text); border: 1px solid var(--dv-bad); }
.asst__card { display: grid; gap: var(--dv-s2); padding: var(--dv-s3); border: 1px solid var(--dv-line-strong); border-radius: 12px; background: var(--dv-surface-2); }
.asst__card-title { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.asst__card-kv { margin: 0; display: grid; gap: 2px; font-size: var(--dv-fs-sm); color: var(--dv-text-2); overflow-wrap: anywhere; white-space: pre-wrap; }
.asst__card-kv b { color: var(--dv-text); font-weight: 600; }
.asst__draft { width: 100%; min-height: 140px; font: inherit; font-size: var(--dv-fs-sm); }
.asst__actions { display: flex; flex-wrap: wrap; gap: var(--dv-s2); }
.asst__actions .dv-btn { min-height: 48px; }
.asst__done { margin: 0; color: var(--dv-text-2); font-size: var(--dv-fs-sm); }
/* WO-219: quick-action answers (bullets, a ranked list) */
.asst__quick-summary { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.asst__quick-head { font-size: var(--dv-fs-sm); }
.asst__quick-bullets { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: var(--dv-fs-sm); overflow-wrap: anywhere; }
.asst__quick-list { margin: 0; padding-left: 1.4em; display: grid; gap: var(--dv-s2); }
.asst__quick-item { display: grid; gap: 2px; overflow-wrap: anywhere; }
.asst__quick-name { font-weight: 600; color: var(--dv-link, var(--dv-text)); min-height: 24px; }
.asst__quick-meta, .asst__quick-reason { font-size: var(--dv-fs-sm); color: var(--dv-text-2); }
.asst__chips { flex: none; padding: 0 var(--dv-s4); }
.asst__chipset { display: flex; flex-wrap: wrap; gap: var(--dv-s2); padding-top: var(--dv-s2); }
.asst__chipset[hidden] { display: none; }
.asst__chip { min-height: 48px; padding: 0 var(--dv-s3); border-color: var(--dv-line-strong); background: var(--dv-surface-2);
  color: var(--dv-text); font-size: var(--dv-fs-sm); white-space: normal; text-align: left; cursor: pointer; }
.asst__chip:hover { background: var(--dv-surface-3); }
.asst__form { flex: none; display: flex; align-items: flex-end; gap: var(--dv-s2); padding: var(--dv-s3) var(--dv-s4) var(--dv-s4); }
.asst__input { flex: 1; min-width: 0; min-height: 48px; max-height: 160px; resize: none; }
.asst__ask { min-height: 48px; flex: none; }
@container dvapp (min-width: 1024px) {
  .dv-app[data-assistant="open"] > .dv-shell { margin-right: 380px; }
  .asst { left: auto; width: 380px; }
  .asst__scrim { display: none; }
  .asst__box { top: 0; height: auto; border-top: 0; border-left: 1px solid var(--dv-line-strong); border-radius: 0; }
}

/* WO-383 (flag search_new): the palette's "＋ New…" row and its Contact / Company / Deal / Asset choices. Inline under
   the row (a tap expands it on a phone; hover or Right/Enter opens it on a laptop); every choice is a 44 px row. */
.dv-palette__new { display: block; }
.dv-palette__item--new > span { font-weight: 600; }
.dv-palette__item--new[aria-expanded="true"] { background: var(--dv-surface-2); }
.dv-palette__new-menu { display: grid; gap: 2px; margin: 2px 0 var(--dv-s2) var(--dv-s6); padding: var(--dv-s1);
  border: 1px solid var(--dv-line); border-radius: var(--dv-r-md); background: var(--dv-surface); }
@container dvapp (min-width: 600px) {
  .dv-palette__new-menu { max-width: 280px; box-shadow: var(--dv-shadow-menu); }
}
.dv-palette__new-item { display: flex; align-items: center; gap: var(--dv-s3); min-height: var(--dv-touch-min);
  padding: 0 var(--dv-s3); border-radius: var(--dv-r-sm); color: var(--dv-text); text-decoration: none; }
.dv-palette__new-item:hover, .dv-palette__new-item.is-active { background: var(--dv-surface-2); }
.dv-palette__new-item:focus-visible { outline: 2px solid var(--dv-focus); outline-offset: -2px; }

/* WO-301 (D-226): the global ＋ New menu. In the app bar from 600 px (a floating list); on More for a phone (inline).
   Every item is a 44 px row; theme tokens only. */
.dv-newmenu { display: none; position: relative; flex: none; }
@container dvapp (min-width: 600px) { .dv-newmenu { display: block; } }
.dv-newmenu__btn, .dv-newmore__btn { list-style: none; cursor: pointer; }
.dv-newmenu__btn::-webkit-details-marker, .dv-newmore__btn::-webkit-details-marker { display: none; }
.dv-newmenu__list { list-style: none; margin: 0; padding: var(--dv-s1); display: grid; gap: 2px; }
.dv-newmenu > .dv-newmenu__list { position: absolute; top: calc(100% + var(--dv-s1)); right: 0; min-width: 220px; z-index: var(--dv-z-bar);
  border: 1px solid var(--dv-line); border-radius: var(--dv-r-md); background: var(--dv-surface); box-shadow: var(--dv-shadow-2); }
.dv-newmenu__item { display: flex; align-items: center; min-height: var(--dv-touch-min); padding: 0 var(--dv-s3);
  border-radius: var(--dv-r-sm); color: var(--dv-text); text-decoration: none; }
.dv-newmenu__item:hover { background: var(--dv-surface-2); }
.dv-newmenu__item:focus-visible { outline: 2px solid var(--dv-focus); outline-offset: -2px; }
.dv-newmore { padding: var(--dv-s3) var(--dv-s4); }
/* Relay #1448: the avatar's account menu (Settings, Guide) when the guide flag is on; the New menu's list and items,
   at every width (a phone has no other way in from the bar). Closes on outside click and Escape like the New menu. */
.dv-usermenu { position: relative; flex: none; }
.dv-usermenu__btn { list-style: none; cursor: pointer; }
.dv-usermenu__btn::-webkit-details-marker { display: none; }
.dv-usermenu > .dv-newmenu__list { position: absolute; top: calc(100% + var(--dv-s1)); right: 0; min-width: 180px; z-index: var(--dv-z-bar);
  border: 1px solid var(--dv-line); border-radius: var(--dv-r-md); background: var(--dv-surface); box-shadow: var(--dv-shadow-2); }
