/* FDOS — From Day One Operating System.
   Anchored on the canon's cpv1-* classes (cpv1-page-head, cpv1-tbl, cpv1-badge,
   cpv1-btn-primary, compact-* — all loaded app-wide via `:app`). This file holds
   ONLY the FDOS-specific bits: the subnav, the cycle chip, the lane tabs, the
   cpv1-badge color variants Priority needs (built from canonical status-color
   tokens) and the intake reader column. All scoped
   under `.fdos` so nothing leaks to sibling modules. */

/* ===== intra-tool subnav pills — bordered, dark-active (the screening /
   demand-gen subnav convention + the brief mockup); the only top chrome FDOS
   renders. (Geometry intentionally differs from Audience-Eval's borderless pills.) ===== */
.fdos .fdos-subnav { padding: 9px 22px; border-bottom: 1px solid var(--border); display: flex; gap: 6px; align-items: center; background: var(--paper); }
.fdos .fdos-pill { padding: 5px 11px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-pill); font-size: 12.5px; color: var(--fg-muted); line-height: 1.3; cursor: pointer; white-space: nowrap; }
.fdos .fdos-pill:hover { background: var(--surface-2); color: var(--fg); }
.fdos .fdos-pill--active, .fdos .fdos-pill--active:hover { background: var(--color-slate-900); color: #fff; border-color: var(--color-slate-900); }

/* dropdown pill (shared-page-shell canon: child pages in the pill's menu,
   current child as a subtitle) — menu treatment mirrors campaign-subnav */
.fdos .fdos-subnav-group { position: relative; }
.fdos .fdos-pill--drop { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; }
.fdos .fdos-pill-current { color: var(--fg-faint); padding-left: 7px; border-left: 1px solid var(--border); }
.fdos .fdos-pill--active .fdos-pill-current { color: rgba(255, 255, 255, .75); border-left-color: rgba(255, 255, 255, .3); }
.fdos .fdos-pill-arrow { opacity: .55; transition: transform .15s; }
.fdos .fdos-subnav-group:has(.fdos-subnav-menu:not([hidden])) .fdos-pill-arrow { transform: rotate(180deg); }
.fdos .fdos-subnav-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 10rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-modal); box-shadow: var(--sh-menu); padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.fdos .fdos-subnav-menu[hidden] { display: none; }
.fdos .fdos-subnav-menu a { display: block; padding: 7px 10px; border-radius: 5px; color: var(--color-slate-700); font-size: 12.5px; text-decoration: none; white-space: nowrap; }
.fdos .fdos-subnav-menu a:hover { background: var(--color-slate-100); color: var(--color-slate-800); }
.fdos .fdos-subnav-menu a.fdos-subnav-menu-item-current { background: #eff6ff; color: #1d4ed8; font-weight: 600; }

/* ===== cycle chip — readable, sentence case (sits in cpv1-page-title-actions) ===== */
.fdos .cyc-sel { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-input); font-size: 13px; color: var(--fg); }
.fdos .cyc-sel .lab { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-faint); font-weight: 600; }
/* cycle switcher — chip opens a dropdown of cycles (reuses cpv1-state-menu toggle) */
.fdos .cyc-sel-wrap { position: relative; display: inline-block; }
.fdos .cyc-sel-btn { cursor: pointer; font-family: inherit; }
.fdos .cyc-sel-btn:hover { background: var(--color-bg-hover); border-color: var(--border-strong); }
.fdos .cyc-caret { color: var(--fg-faint); font-size: 9px; margin-left: 1px; }
.fdos .cyc-menu { display: none; position: absolute; top: calc(100% + 4px); right: 0; min-width: 230px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--sh-menu); padding: 4px; z-index: 50; }
.fdos .cyc-menu.cpv1-state-menu--open { display: block; }
.fdos .cyc-menu-item { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 7px 10px; font-size: 13px; color: var(--fg); text-decoration: none; }
.fdos .cyc-menu-item:hover { background: var(--color-slate-50); }
.fdos .cyc-menu-item--current { background: var(--color-slate-100); font-weight: 600; }
.fdos .cyc-menu-range { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-faint); white-space: nowrap; }
.fdos .cyc-menu-sep { height: 1px; background: var(--border); margin: 4px 2px; }
.fdos .cyc-menu-manage { color: var(--color-blue-700); font-size: 12.5px; }

/* ===== lane tabs strip (Committed / Intake / Backlog) — uses the canon
   .cpv1-tab atom for the tabs; this is just the flex baseline strip ===== */
.fdos .views-row { display: flex; border-bottom: 1px solid var(--border); margin-top: 12px; }

/* ===== cpv1-badge color variants for Priority status/pace =====
   The cpv1-badge BASE supplies geometry + Title-Case sans; these add the
   semantic tint from canonical status-color tokens (the house pattern — cf.
   cpv1-badge--planning-* / --sending-*). */
.fdos .cpv1-badge--ontrack   { background: var(--color-info-bg);    color: var(--color-info-text);    border-color: var(--color-info-border); }
.fdos .cpv1-badge--at-risk   { background: var(--color-warning-bg); color: var(--color-warning-text); border-color: var(--color-warning-border); }
.fdos .cpv1-badge--off-track { background: var(--color-danger-bg);  color: var(--color-danger-text);  border-color: var(--color-danger-border); }
.fdos .cpv1-badge--done      { background: var(--color-success-bg); color: var(--color-success-text); border-color: var(--color-success-border); }
.fdos .cpv1-badge--neutral   { background: var(--surface-2);        color: var(--fg-muted);           border-color: var(--border); }
.fdos .cpv1-badge--deleted   { background: var(--color-danger-bg);  color: var(--color-danger-text);  border-color: var(--color-danger-border); text-decoration: line-through; }


/* ===== intake form (Submit an idea) — canon Intake archetype ===== */
.fdos .reader { max-width: 880px; margin: 0 auto; padding: 4px 28px 30px; }
.fdos .head { padding: 22px 0 18px; border-bottom: 1px solid var(--border); display: flex; align-items: baseline; gap: 22px; }
.fdos .head-block { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fdos .head-prefix { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-faint); font-weight: 700; }
.fdos .head-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-faint); margin-top: 6px; }
.fdos .head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.fdos .head-name-input { font-size: 26px; font-weight: 700; letter-spacing: -.015em; line-height: 1.15; color: var(--fg); font-family: inherit; border: 1px solid transparent; border-radius: var(--r-input); background: var(--surface-2); padding: 3px 8px; margin: 2px 0 0; width: 100%; outline: none; }
.fdos .head-name-input::placeholder { color: var(--fg-faint); font-weight: 700; }
.fdos .head-name-input:focus { border-color: var(--color-blue-700); }
.fdos .badge-unsaved { display: inline-flex; align-items: center; padding: 3px 9px; font-size: 12px; font-weight: 600; border: 1px solid var(--fg-faint); border-radius: var(--r-pill); background: var(--paper); color: var(--fg-muted); white-space: nowrap; line-height: 1.3; }
.fdos .section { margin-top: 28px; }
.fdos .section-heading { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg); font-weight: 700; margin: 0 0 10px; border-bottom: 2px solid var(--fg); padding-bottom: 5px; }
.fdos .field { margin-bottom: 16px; }
.fdos .label { display: block; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-faint); font-weight: 600; margin-bottom: 5px; }
.fdos .textarea { width: 100%; font-family: var(--font-sans); font-size: 13.5px; padding: 7px 10px; border: 1px solid transparent; border-radius: var(--r-input); background: var(--surface-2); color: var(--fg); resize: vertical; line-height: 1.55; min-height: 120px; }
.fdos .textarea::placeholder { color: var(--fg-faint); }
.fdos .submit-bar { margin-top: 24px; padding: 14px 0 0; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.fdos .submit-status { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); flex: 1; }
/* match cpv1-btn-primary geometry exactly so FDOS has one primary look */
.fdos .btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 13px; font-size: 12.5px; font-weight: 500; border-radius: var(--r-pill); cursor: pointer; font-family: inherit; line-height: 1.3; text-decoration: none; }
.fdos .btn--primary { background: var(--color-slate-900); color: #fff; border: 1px solid var(--color-slate-900); }
.fdos .btn--secondary { background: var(--surface); color: var(--fg); border: 1px solid var(--border-strong); font-weight: 500; }

/* ===== index: widen the Due column so the full "Jun 30, 2026" fits ===== */
.fdos .cpv1-tbl .cpv1-col-date { width: 116px; }

/* ===== detail: pace row state-menu inline (reuses cpv1-state-menu) ===== */
.fdos .compact-row .cpv1-badge--clickable { cursor: pointer; }
.fdos .disc { display: flex; flex-direction: column; gap: 4px; }

/* ===== detail: Description — always-visible focal long-form box ===== */
.fdos .fdos-desc-box {
  width: 100%;
  min-height: 150px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-input);
  background: var(--paper);
  color: var(--fg);
  resize: vertical;
  box-sizing: border-box;
}
.fdos .fdos-desc-box:focus { outline: none; border-color: var(--color-blue-700); }
.fdos .fdos-desc-box::placeholder { color: var(--fg-faint); }
.fdos .fdos-desc-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.fdos .fdos-desc-error { margin-right: auto; align-self: center; font-size: 12px; color: var(--color-danger-text); }
/* read state — readable prose (the primary story), preserves paragraph breaks */
.fdos .fdos-desc-prose { font-size: 14px; line-height: 1.65; color: var(--fg); white-space: pre-wrap; }
.fdos .fdos-desc-empty { font-size: 13.5px; font-style: italic; color: var(--fg-faint); }
/* Save: present at all times in edit mode, greyed until the value changes */
.fdos .btn--primary:disabled { background: var(--color-slate-300); border-color: var(--color-slate-300); color: var(--paper); cursor: not-allowed; }

/* ===== detail: Milestones — simple one-line checklist ===== */
.fdos .fdos-checklist { list-style: none; margin: 0; padding: 0; }
.fdos .fdos-check-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.fdos .fdos-check { width: 17px; height: 17px; flex: none; border: 1.5px solid var(--border-strong); border-radius: var(--r-pill); background: var(--paper); cursor: pointer; font-size: 11px; line-height: 1; color: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.fdos .fdos-check--done { background: var(--color-success); border-color: var(--color-success); }
/* Done items stay fully readable — the checked box is the only done signal
   (reading the milestone is the point, not striking it out). */
.fdos .fdos-check-text { flex: 1; font-size: 13.5px; color: var(--fg); }
.fdos .fdos-check-text--done { color: var(--fg); }
.fdos .fdos-milestone-due { flex: none; }
.fdos .fdos-milestone-date-trigger { font-size: 11.5px; white-space: nowrap; }
.fdos .fdos-check-x { flex: none; border: none; background: none; color: var(--fg-faint); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.fdos .fdos-check-x:hover { color: var(--color-danger); }
.fdos .fdos-check-add { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.fdos .fdos-check--add { border-style: dashed; color: var(--fg-faint); cursor: default; }
/* Attachments — uploaded documents, same row rhythm as the checklist. */
.fdos .fdos-attach-list { list-style: none; margin: 0; padding: 0; }
.fdos .fdos-attach-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.fdos .fdos-attach-name { flex: 1; font-size: 13.5px; color: var(--fg); text-decoration: none; }
.fdos .fdos-attach-name:hover { text-decoration: underline; }
.fdos .fdos-attach-size { flex: none; font-size: 11.5px; color: var(--fg-faint); }
.fdos .fdos-attach-add { display: flex; align-items: center; padding: 7px 0; }
.fdos .fdos-attach-upload { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--fg-faint); }
.fdos .fdos-attach-upload:hover .fdos-attach-upload-label { color: var(--fg); }
.fdos .fdos-check-input { flex: 1; border: none; background: none; font-size: 13.5px; color: var(--fg); outline: none; padding: 2px 0; }
.fdos .fdos-check-input::placeholder { color: var(--fg-faint); }

/* ===== CONFIG (design handoff 2026-06) — canon page-head + panels,
   cycles as links + ⋯ overflow menu, teams as panels, checklist templates. ===== */
.fdos .config-page { padding: 18px 28px 30px; }
.fdos .config-page .row { position: relative; }
.fdos .cfg-row-left { display: flex; align-items: center; gap: 12px; }
.fdos .cfg-cyc-link { font-weight: 600; color: var(--fg); cursor: pointer; }
.fdos .cfg-cyc-link:hover { color: var(--color-blue-700); text-decoration: underline; }
.fdos .cfg-cyc-dates { font-family: var(--font-mono); font-size: 12px; color: var(--fg); }
.fdos .row-overflow { border: none; background: none; color: var(--fg-faint); font-size: 15px; cursor: pointer; padding: 2px 8px; line-height: 1; border-radius: var(--r-input); }
.fdos .row-overflow:hover { color: var(--fg); background: var(--surface-2); }
.fdos .panel--menu { overflow: visible; }
.fdos .cfg-menu { display: none; position: absolute; top: calc(100% - 2px); right: 8px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--sh-menu); padding: 4px; z-index: 20; min-width: 160px; }
.fdos .cfg-menu.cpv1-state-menu--open { display: block; }
.fdos .cfg-menu-item { display: block; width: 100%; text-align: left; padding: 6px 10px; font-size: 12.5px; color: var(--fg); cursor: pointer; border-radius: var(--r-input); white-space: nowrap; background: none; border: none; font-family: inherit; }
.fdos .cfg-menu-item:hover { background: var(--color-slate-50); }
.fdos .cfg-menu-item--danger { color: var(--color-danger-text); }
.fdos .cfg-menu-item--disabled { color: var(--fg-faint); cursor: not-allowed; }
.fdos .cfg-menu-item--disabled:hover { background: none; }
.fdos .cfg-menu-sep { height: 1px; background: var(--border); margin: 4px 2px; }
.fdos .cfg-menu-form { display: block; margin: 0; }
.fdos .cfg-editrow, .fdos .cfg-addrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.fdos .cfg-addrow { padding: 10px 14px; border-top: 1px dashed var(--border); background: var(--surface-2); }
.fdos .cfg-input { flex: 1; min-width: 150px; font-family: var(--font-sans); font-size: 13px; padding: 6px 9px; border: 1px solid var(--border-strong); border-radius: var(--r-input); background: var(--paper); color: var(--fg); }
.fdos .cfg-input:focus { outline: none; border-color: var(--color-blue-700); }
.fdos .cfg-datein { font-family: var(--font-sans); font-size: 13px; padding: 5px 9px; border: 1px solid var(--border-strong); border-radius: var(--r-input); background: var(--paper); color: var(--fg); }
.fdos .cfg-dsep { color: var(--fg-faint); font-size: 12px; }
/* custom cycle date field — value-trigger replacing the native date input (P0.12) */
.fdos .cfg-datefield { position: relative; display: inline-block; }
.fdos .cfg-datetrigger { display: inline-flex; align-items: center; gap: 8px; min-width: 130px; font-family: var(--font-sans); font-size: 13px; padding: 5px 9px; border: 1px solid var(--border-strong); border-radius: var(--r-input); background: var(--paper); color: var(--fg); cursor: pointer; }
.fdos .cfg-datetrigger:hover { border-color: var(--color-blue-700); }
.fdos .cfg-save { background: var(--color-slate-900); color: #fff; border: 1px solid var(--color-slate-900); font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: var(--r-input); cursor: pointer; font-family: inherit; }
.fdos .cfg-cancel { background: none; border: none; color: var(--fg-muted); font-size: 12.5px; cursor: pointer; font-family: inherit; padding: 6px 8px; }
.fdos .cfg-action { background: none; border: none; color: var(--color-blue-700); font-size: 12.5px; cursor: pointer; padding: 3px 7px; border-radius: var(--r-input); font-family: inherit; white-space: nowrap; }
.fdos .cfg-action:hover { background: var(--color-slate-50); }
.fdos .cfg-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 10px; flex-wrap: wrap; }
.fdos .cfg-group-title { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg); font-weight: 700; }
.fdos .cfg-addteam { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 4px; }
.fdos .panel-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.fdos .panel-head .cfg-inline { margin-right: auto; }
.fdos .panel-del { font-size: 12.5px; color: var(--color-danger-text); cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; }
.fdos .panel-del:hover { text-decoration: underline; }
.fdos .cfg-inline { border: 1px solid transparent; border-radius: var(--r-input); padding: 1px 5px; margin: -1px -5px; cursor: text; }
.fdos .cfg-inline:hover { border-color: var(--border); }
.fdos .cfg-members { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 12px 14px; }
.fdos .cfg-tmpl { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.fdos .cfg-tmpl:last-child { border-bottom: none; }
.fdos .cfg-tmpl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.fdos .cfg-tmpl-type { font-weight: 600; font-size: 13px; color: var(--fg); }
.fdos .cfg-tmpl-items { margin: 0; padding-left: 18px; font-size: 13px; color: var(--fg-muted); line-height: 1.75; }
.fdos .cfg-tmpl-empty { font-size: 12.5px; font-style: italic; color: var(--fg-faint); }
.fdos .cfg-tmpl-editrow { margin-top: 6px; }
.fdos .cfg-tmpl-textarea { width: 100%; font-family: var(--font-sans); font-size: 13px; line-height: 1.6; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-input); background: var(--paper); color: var(--fg); resize: vertical; box-sizing: border-box; }
.fdos .cfg-tmpl-textarea:focus { outline: none; border-color: var(--color-blue-700); }
.fdos .cfg-tmpl-actions { display: flex; gap: 10px; margin-top: 8px; }

/* ===== Meetings index — grouped table furniture ===== */
.fdos .mtg-strip { padding: 10px 0 12px; font-size: 13px; color: var(--fg-muted); }
.fdos .mtg-strip b { color: var(--fg); font-weight: 600; }
.fdos .mtg-when { font-size: 12px; color: var(--fg); }
.fdos .mtg-notes { font-size: 12.5px; color: var(--fg-muted); }
.fdos .mtg-notes--none { color: var(--fg-faint); }
/* ===== Meetings — new-meeting form ===== */
.fdos .cpv1-tbl .cpv1-col-datetime { width: 238px; }
.fdos .cfg-cyc-row { cursor: pointer; }
.fdos .cfg-cyc-row:hover { background: var(--color-slate-50); }

/* ===== Meeting detail — priorities-chosen row-collection + add picker ===== */
.fdos .compact-section--prio { position: relative; }
/* No overflow:hidden — owner pickers / the create add-row's owner combobox open
   downward and would be clipped by the collection box. Rows carry no background,
   so nothing pokes past the 4px radius. */
.fdos .prio-coll { border: 1px solid var(--border); border-radius: var(--r-card); }
.fdos .prio-row { display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--border); font-size: 13px; }
.fdos .prio-row:last-child { border-bottom: none; }
.fdos .prio-pt { flex: 1; font-weight: 500; color: var(--fg); text-decoration: none; }
.fdos .prio-pt:hover { color: var(--color-blue-700); text-decoration: underline; }
.fdos .prio-owner { font-size: 12px; color: var(--fg-muted); white-space: nowrap; }
.fdos .prio-owner--none { color: var(--fg-faint); font-style: italic; }
.fdos .compact-section .row-x { border: none; background: none; color: var(--fg-faint); font-size: 14px; cursor: pointer; padding: 2px 6px; line-height: 1; }
.fdos .compact-section .row-x:hover { color: var(--color-danger); }
/* Pin the picker to the Inter data font AND normal tracking — it's anchored
   inside the mono uppercase section eyebrow, and the rows use font/tracking
   inherit, so without these the picker renders in IBM Plex Mono with the
   eyebrow's letter-spacing. */
.fdos .cpv1-picker { font-family: var(--font-sans); letter-spacing: normal; }
/* "+ Add existing" two-field rows — match the Salesforce-mirror Manage Columns
   treatment: the source (backlog / intake) is a quiet right-aligned mono meta,
   not crammed against the title. */
.fdos .cpv1-picker-row-subject { margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; }

/* Two head actions ("+ Create new · + Add existing") right-aligned in the
   section eyebrow (P0.1). The cluster carries the margin-left:auto; the actions
   inside reset their own. */
.fdos .prio-head-actions { margin-left: auto; display: inline-flex; align-items: baseline; gap: 9px; }
.fdos .prio-head-actions .compact-eyebrow-action { margin-left: 0; }
.fdos .prio-head-sep { color: var(--fg-faint); font-size: 12px; }

/* ===== "+ Create new" inline add-row — a new priority is added straight onto
   the cycle board (canon Sub-family B append-editable-row; mirrors the board row
   shape + the checklist/config add-rows). Title + Owner combobox + slate-900
   Create. Revealed by the "+ Create new" head action (fdos-row-edit). ===== */
.fdos .prio-add-form { margin: 0; }
.fdos .prio-addrow { display: flex; align-items: center; gap: 12px; padding: 9px 13px; background: var(--color-slate-50); border-top: 1px solid var(--border); }
.fdos .prio-add-title { flex: 1; font-family: var(--font-sans); font-size: 13px; font-weight: 500; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: var(--r-input); background: var(--paper); color: var(--fg); outline: none; }
.fdos .prio-add-title:focus { border-color: var(--color-blue-700); }
.fdos .prio-add-title::placeholder { color: var(--fg-faint); font-weight: 400; }
.fdos .prio-addrow .cpv1-combobox { flex: 0 0 auto; width: 156px; }
.fdos .prio-add-create { background: var(--color-slate-900); color: #fff; border: 1px solid var(--color-slate-900); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: var(--r-input); cursor: pointer; white-space: nowrap; font-family: inherit; }
.fdos .prio-add-create:hover { background: var(--color-slate-800); }
.fdos .prio-addrow-x { border: none; background: none; color: var(--fg-faint); font-size: 15px; cursor: pointer; padding: 2px 4px; line-height: 1; }
.fdos .prio-addrow-x:hover { color: var(--fg); }
.fdos .prio-add-error { padding: 8px 13px; font-size: 12px; color: var(--color-danger-text); background: var(--color-danger-bg); border-top: 1px solid var(--border); }

/* ===== Scorecard (MVP) — monthly index + manual board ===== */
.fdos .sc-line { font-weight: 500; color: var(--fg); }
.fdos .sc-type { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-faint); margin-left: 8px; }
.fdos .sc-valcell { width: 240px; }
.fdos .sc-val { width: 100%; font-family: var(--font-mono); font-size: 12.5px; padding: 5px 9px; border: 1px solid var(--border-strong); border-radius: var(--r-input); background: var(--paper); color: var(--fg); box-sizing: border-box; }
.fdos .sc-val:focus { outline: none; border-color: var(--color-blue-700); }
.fdos .sc-val::placeholder { color: var(--fg-faint); font-family: var(--font-sans); font-size: 11.5px; }
.fdos .sc-val--empty { background: var(--surface-2); }
.fdos .sc-pair { display: flex; gap: 16px; }
.fdos .sc-pairf { display: flex; flex-direction: column; gap: 3px; }
.fdos .sc-val--sm { width: 72px; }
.fdos .sc-pairl { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-faint); }
.fdos .sc-month { font-weight: 600; color: var(--fg); }
.fdos .sc-tag { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-blue-700); border: 1px solid var(--color-info-border); background: var(--color-info-bg); border-radius: var(--r-pill); padding: 1px 6px; margin-left: 9px; }
.fdos .sc-when { font-size: 12px; color: var(--fg); }
.fdos .sc-saverow { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 0 0; }
/* scorecard board: department bands are static dividers (no collapse) */
.fdos .compact-section .cpv1-group-band td { position: static; cursor: default; }
.fdos .compact-section .cpv1-group-band .cpv1-group-band-name { color: var(--fg); }
/* let head-anchored popovers (scope dropdown, new-scorecard month picker) escape the head */
.fdos .cpv1-page-head { overflow: visible; }

/* ===== Floating picker anchor — makes any cpv1-picker rendered into a frame
   inside an FDOS picker-filter wrapper overlay (below-left of the trigger)
   instead of rendering in-flow. The campaign overlay rule only fires under
   .cpv1-facts-v / .cpv1-head-launch, so FDOS needs its own. ===== */
.fdos .fdos-picker-anchor { position: relative; display: inline-block; }
.fdos .fdos-picker-anchor > turbo-frame > .cpv1-picker {
  position: absolute; top: 100%; left: 0; right: auto; z-index: 100;
  min-width: 280px; width: max-content; max-width: min(560px, calc(100vw - 60px));
  margin-top: 6px; background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--sh-menu); max-height: 420px; overflow: auto;
}
.fdos .fdos-picker-anchor--right > turbo-frame > .cpv1-picker { left: auto; right: 0; }
/* quick-add date/time fields — anchor fills the grid cell so the trigger spans it */
.fdos .cpv1-quick-add-row .qa-pickfield { display: block; }
/* date trigger — looks like the value at rest, bordered affordance on hover (P0.5 picker field) */
.fdos .fdos-date-trigger { background: none; border: 1px solid transparent; border-radius: var(--r-input); padding: 1px 6px; margin: -1px -6px; font: inherit; color: var(--fg); cursor: pointer; }
.fdos .fdos-date-trigger:hover { border-color: var(--border-strong); background: var(--surface); }
.fdos .fdos-date-empty { color: var(--fg-faint); }
/* The canonical datetime picker card is taller than the generic popover cap —
   let it size itself (its time picklist scrolls internally). */
.fdos .fdos-picker-anchor > turbo-frame > .cpv1-dtp { max-height: none; overflow: visible; }

/* ===== P0.2 absence line — single italic muted line for empty panel/section
   bodies (the canon one-liner; cpv1-empty-block stays for index pages only) ===== */
.fdos .fdos-empty-line { margin: 0; padding: 10px 2px; font-size: 12.5px; font-style: italic; color: var(--fg-faint); }
/* panel head must not clip the floating member picker that anchors inside it */
.fdos .panel-head { overflow: visible; }

/* ===== Meeting-detail priority-row owner trigger (opens the owner picker) ===== */
.fdos .prio-owner-trigger { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border-strong); border-radius: var(--r-pill); padding: 2px 8px; font: inherit; font-size: 12px; color: var(--fg-muted); cursor: pointer; white-space: nowrap; }
.fdos .prio-owner-trigger:hover { background: var(--surface); color: var(--fg); }
.fdos .prio-owner-caret { color: var(--fg-faint); font-size: 9px; }

/* ============================== TIMELINE ==============================
   Upcoming rail + weekday calendar. Type markers carry the colour (text stays
   neutral): meeting = blue ring, priority = filled amber diamond, milestone =
   hollow amber diamond (same family — a milestone belongs to a priority),
   cycle = solid slate diamond. No strikethrough; dateless rows carry no time. */
.fdos .tl-toggle { display: inline-flex; gap: 6px; }

.fdos .tl-legend { display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--fg-muted); padding: 12px 18px 14px; }
.fdos .tl-leg { display: inline-flex; align-items: center; gap: 7px; }
.fdos .tl-sw { flex: none; }
.fdos .tl-sw--cyc { width: 10px; height: 10px; background: var(--color-slate-900); transform: rotate(45deg); }
.fdos .tl-sw--mtg { width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--color-blue-600); }
.fdos .tl-sw--pri { width: 10px; height: 10px; background: #d97706; transform: rotate(45deg); }
.fdos .tl-sw--ms  { width: 10px; height: 10px; background: var(--paper); border: 2px solid #d97706; transform: rotate(45deg); }

.fdos .tl-rail { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--sh-card); }
.fdos .tl-month { border-bottom: 1px solid var(--border-faint); }
.fdos .tl-month:last-child { border-bottom: 0; }
.fdos .tl-month-h { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 14px 20px 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-slate-700); }
.fdos .tl-month-h::-webkit-details-marker { display: none; }
.fdos .tl-month-h:hover { background: var(--color-slate-50); }
.fdos .tl-chev { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--fg-faint); flex: none; transition: transform .12s; }
.fdos .tl-month:not([open]) .tl-chev { transform: rotate(-90deg); }
.fdos .tl-body { position: relative; padding: 6px 20px 12px; }
.fdos .tl-body::before { content: ""; position: absolute; left: 106px; top: 4px; bottom: 8px; width: 1px; background: var(--border-strong); }

.fdos .tl-node { position: relative; display: grid; grid-template-columns: 86px 1fr; align-items: baseline; padding: 5px 0; }
.fdos .tl-when { text-align: right; padding-right: 26px; font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.fdos .tl-mk { position: absolute; left: 81px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--color-blue-600); z-index: 2; }
.fdos .tl-node--pri .tl-mk { border-radius: 0; transform: rotate(45deg); background: #d97706; border-color: #d97706; }
.fdos .tl-node--ms .tl-mk  { border-radius: 0; transform: rotate(45deg); background: var(--paper); border-color: #d97706; }
.fdos .tl-c { padding-left: 32px; font-size: 13.5px; }
.fdos .tl-node--pri .tl-c .tl-t { font-weight: 600; }
.fdos .tl-c .tl-meta { color: var(--fg-muted); font-size: 12.5px; }
.fdos .tl-c .tl-donetag { color: var(--color-success-text); font-size: 11.5px; font-weight: 600; }
.fdos a.tl-t { color: inherit; text-decoration: none; }
.fdos a.tl-t:hover { text-decoration: underline; }

/* cycle-transition day — the landmark: a full-bleed divider that breaks the rail
   into cycles. One cycle ends, the next begins, and the Cycle Session lands. */
.fdos .tl-cycday { position: relative; z-index: 1; display: grid; grid-template-columns: 86px 1fr; align-items: baseline; margin: 8px -20px; padding: 11px 20px; background: var(--color-slate-50); border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.fdos .tl-cyc-date { text-align: right; padding-right: 26px; font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.fdos .tl-cyc-main { padding-left: 32px; }
.fdos .tl-cyc-bound { font-weight: 700; font-size: 14px; letter-spacing: -.01em; color: var(--color-slate-900); }
.fdos .tl-cyc-sess { font-size: 12.5px; color: var(--fg-muted); margin-top: 3px; }
.fdos .tl-cyc-sess .tl-t { color: var(--fg-muted); }

.fdos .tl-empty { padding: 24px 4px; font-style: italic; color: var(--fg-faint); font-size: 13px; }

.fdos .tl-cal-bar { display: flex; align-items: center; gap: 14px; margin: 16px 0 12px; }
.fdos .tl-cal-m { font-size: 16px; font-weight: 700; }
.fdos .tl-cal-nav { border: 1px solid var(--border-strong); background: var(--paper); border-radius: var(--r-card); width: 28px; height: 28px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fdos .tl-cal-nav .ch { width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.fdos .tl-cal-nav.prev .ch { border-right: 5px solid var(--fg-muted); }
.fdos .tl-cal-nav.next .ch { border-left: 5px solid var(--fg-muted); }
.fdos .tl-cal-today { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r-card); background: var(--paper); font-size: 12.5px; font-weight: 600; color: var(--color-slate-900); text-decoration: none; }
.fdos .tl-cal-today:hover { background: var(--color-slate-50); }
.fdos .tl-cal { border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--paper); box-shadow: var(--sh-card); }
.fdos .tl-cal-dow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--color-slate-50); border-bottom: 1px solid var(--border); }
.fdos .tl-cal-dow span { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-faint); padding: 8px 10px; }
.fdos .tl-cal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.fdos .tl-cell { min-width: 0; border-right: 1px solid var(--border-faint); border-bottom: 1px solid var(--border-faint); min-height: 118px; padding: 7px 9px 9px; }
.fdos .tl-cell:nth-child(5n) { border-right: 0; }
.fdos .tl-cell.dim { background: var(--color-slate-50); }
.fdos .tl-cell.cyc-day { box-shadow: inset 0 3px 0 var(--color-slate-900); }
.fdos .tl-num { font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.fdos .tl-cell.today .tl-num { display: inline-block; background: var(--color-slate-900); color: #fff; border-radius: 50%; width: 20px; height: 20px; text-align: center; line-height: 20px; font-weight: 600; }
.fdos .tl-line { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--color-slate-800); }
.fdos .tl-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fdos .tl-line .tl-m { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--color-blue-600); }
.fdos .tl-line--pri .tl-m { border-radius: 0; transform: rotate(45deg); background: #d97706; border-color: #d97706; }
.fdos .tl-line--ms .tl-m  { border-radius: 0; transform: rotate(45deg); background: var(--paper); border-color: #d97706; }
.fdos .tl-line .tl-tm { flex: none; color: var(--fg-faint); font-variant-numeric: tabular-nums; font-size: 11px; }
.fdos .tl-line--pri { color: var(--color-slate-900); font-weight: 600; }
.fdos .tl-line--ms { color: var(--color-slate-700); }
.fdos .tl-line--cyc { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--color-slate-900); }

/* Scorecard v2 — read-only live board */
.fdos .sc2-col-value { text-align: right; font-family: var(--font-mono); font-size: 12.5px; }
.fdos .sc2-note { font-size: 11px; color: var(--fg-faint); max-width: 340px; }
.fdos .sc2-arrow { text-decoration: none; padding: 0 4px; color: var(--fg); }
.fdos .sc2-alert { font-family: var(--font-sans); font-size: 11px; color: #b45309; white-space: nowrap; margin-left: 8px; }

/* Clone-to-cycle (2026-08-06): lineage line under the head meta; button_to
   forms inside a state-menu must not break the item column */
.fdos-lineage{display:block;margin-top:2px;}
.fdos-lineage a{color:inherit;text-decoration:underline;text-decoration-style:dotted;}
.fdos-menu-form{display:contents;}
.fdos-menu-form .cpv1-state-menu-item{width:100%;}
.fdos-clone-mark{font-size:11px;color:var(--fg-muted);white-space:nowrap;text-decoration:none;}
.fdos-clone-mark:hover{color:var(--fg);text-decoration:underline;}
