/* The OKR page in the suite's styling: builds the context toolbar and gives the shared OKR
   components the suite's control language. Class names stay, scoped under `.alt-app`.
   No token is redefined; health colour comes from `--okr-*` in CSS/tokens.css. */

/* ================= 1 · THE PAGE ================= */

/* The suite's page rhythm: the shell's own bands use --a-3/--a-4, and the
   board should sit on the same grid rather than at the classic 16/20. */
.alt-app main.okr-main{ padding:var(--a-3) var(--a-4) var(--a-6); }

/* The board must scroll: alt-shell.css fixes `.alt-app` to 100dvh with overflow hidden at 1024+,
   so `main.okr-main` (holding `#okrObjectives`) becomes a growing `min-height:0` scroller.
   Below 1024 the document scrolls and the scroller releases; otherwise it would scroll at
   zero height. */
.alt-app #okrApp{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
@media (min-width:1024px){
  /* The scrollport gives up its top padding: a sticky offset measures from the scroller's
   content box, so padding-top would pin the header below the scrollport's top. The rhythm
   moves to the header itself (§4), inside an opaque background. */
  .alt-app main.okr-main{ flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden; padding-top:0; }
  /* The pinned header re-anchors with it. `top` is deliberately not declared here: a media query
   adds no specificity, so the later base rule in §4 always won. `top` is owned in one place;
   see §4 PINNING. */
}

/* Headings in the suite's display face — the OKR surface draws several
   of its headings as spans and divs, and these are the ones that read as titles. */
.alt-app .okr-group-title,
.alt-app .okr-obj-title,
.alt-app .okr-detail-title{ font-family:var(--a-display); }

/* Numbers are figures, and figures line up: the body face with tabular numerals (DS-53, DS-63); --a-mono is for code and keyboard hints only. */
.alt-app .okr-stat-n,
.alt-app .okr-obj-pct,
.alt-app .okr-donut-num{ font-family:var(--a-body); font-variant-numeric:tabular-nums; }

/* 2 - The holding area for the controls the shared top adopts (okrs.html #okrCtx). The view row and the Focus strip
   (CSS/alt/alt-page-top.css) draw the top; this box is only seen before they mount and on the dead-end screens, where it
   holds the team switch so a reader can still leave. No panel of its own: an empty card would read as a fault. The page
   heading inside it is visually hidden (`.a-sr`). */
.alt-app .okr-ctx{ display:flex; align-items:flex-end; gap:var(--a-2) var(--a-3); flex-wrap:wrap; }
.alt-app .okr-ctx:has(> .okr-team-switch:not([style*="none"])){ margin-bottom:var(--a-3); }

/* Team switch (accounts with more than one team): `.a-field` from alt-components.css; its gap must equal the caption gap (okr-team-switch-alignment.test.js).
   `margin-left:0` and `align-items:flex-start` undo okr.css's topbar rule, keeping the select at content width. */
.alt-app .okr-team-switch{
  display:flex; flex-direction:column; gap:var(--a-gap-label); min-width:0;
  flex:0 0 auto; align-self:flex-start; align-items:flex-start; margin-left:0;
}
.alt-app .okr-team-switch .switcher-label{
  font-size:var(--a-fs-11); font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--a-dim); line-height:var(--a-lh-tight);
}
/* No height here — it takes `--a-ctl` from `.alt-app select:not(.a-select)` below, the same
   declaration the quarter picker takes it from, so the two stay the same height. */
.alt-app .okr-team-switch select{ width:auto; min-width:130px; }

/* The adopted controls before the top mounts: one wrapping run. */
.alt-app .okr-ctx-controls{ display:flex; align-items:center; gap:var(--a-2); flex-wrap:wrap; min-width:0; }

/* Clear all is the filter indicator as well as the action — okrRenderControls() reveals it
   whenever any filter or the search is narrowing the board — so it is coloured like a live
   state rather than like one more grey button. */
.alt-app .okr-ctx-clear{
  border-color:var(--a-blue); color:var(--a-blue-text); background:var(--a-blue-soft);
}

/* ---- Filters: progressive disclosure, with no second popover implementation ----
   Opened through JS/components/popover.js as a plain `<button>` rather than a `<details>`, for
   outside-click dismissal — see okrs.html's own comment on `#okrFiltersPop` for the reasoning. */
.alt-app .okr-filters-pop{
  position:absolute; top:calc(100% + 6px); left:0; z-index:var(--z-float);
  /* Standard padding (owner: "the controls are too tight"). `--a-4` is the token ladder's next
   step up and suits a floating panel with three stacked controls. */
  /* Spacing is adjacent-sibling margins, not `gap`: this surface opens through
     JS/components/popover.js, whose inline `display:block` beats a stylesheet `display:flex`,
     so `gap` can never apply. Margins work in either. Fixing popover.js is out of proportion
     (six pages, nine modules); the next flex or grid popover will hit the same override. */
  min-width:240px; padding:var(--a-4);
  background:var(--a-float); border:1px solid var(--a-line-strong);
  border-radius:var(--a-r); box-shadow:var(--a-shadow);
}
/* At the right-hand edge of a narrow window the panel would hang off the page. */
@media (max-width:820px){
  .alt-app .okr-filters-pop{ left:auto; right:0; }
}
.alt-app .okr-filters-pop > * + *{ margin-top:var(--a-4); }
.alt-app .okr-filters-pop select{ width:100%; }

/* ================= 3 · THE SUITE'S CONTROL LANGUAGE, ON THE CLASSIC COMPONENTS ================= */

/* Buttons: `.btn` is what every shared OKR module renders (editor Save, detail actions,
   Re-evaluate, empty-state links, settings rows). One rule pair gives them the suite's button
   without markup edits in files this page does not own. */
.alt-app .btn{
  gap:6px;
  background:var(--a-raised); color:var(--a-text);
  border:1px solid var(--a-ctl-edge); border-radius:var(--a-r-sm);
}
.alt-app .btn:hover:not(:disabled){ border-color:var(--a-ctl-edge); color:var(--a-text); }
.alt-app .btn.primary,
.alt-app .btn.primary:hover:not(:disabled){ background:var(--a-blue-fill); border-color:transparent; color:#fff; }
/* DS-19: the danger tier is the red wash, the red edge and red text, so a destructive button reads as one beside a plain Cancel. */
.alt-app .btn.danger{ background:var(--a-red-soft); border-color:var(--a-red); color:var(--a-red); }
.alt-app .btn.danger:hover:not(:disabled){ background:var(--a-red-soft); border-color:var(--a-red); color:var(--a-red); }
/* Hover must not outrank the state: `.btn:hover` above matches at higher specificity than this
   rule did, so a pressed toggle under a resting pointer showed only a background change until
   the mouse moved away. Specificity raised to match keeps the full lit state on press. */
.alt-app .btn.active,
.alt-app .btn.active:hover:not(:disabled),
.alt-app .a-btn.active,
.alt-app .a-btn.active:hover:not(:disabled){ background:var(--a-blue-soft); border-color:var(--a-blue); color:var(--a-blue-text); }
.alt-app .btn.icon-only{ width:var(--a-ctl); padding:0; }
.alt-app .btn:focus-visible,
.alt-app .a-btn:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }

/* Fields: restates okrs.html's <style> in suite terms; wins by load order. `:not(.a-input)`
   matters: `.a-input`/`.a-select`/`.a-textarea` fields belong to alt-components.css, and
   without it a bare `input[type=search]` outranked the magnifier/keycap padding rules and drew
   the glyph over the text (search-field-chrome.test.js; sys_design-system.md §2). */
.alt-app input[type=text]:not(.a-input),
.alt-app input[type=email]:not(.a-input),
.alt-app input[type=password]:not(.a-input),
.alt-app input[type=date]:not(.a-input),
.alt-app input[type=number]:not(.a-input),
.alt-app input[type=tel]:not(.a-input),
.alt-app input[type=search]:not(.a-input),
.alt-app input[type=url]:not(.a-input),
.alt-app select:not(.a-select),
.alt-app textarea:not(.a-textarea){
  font-family:var(--a-body); font-size:var(--a-fs-ctl); font-weight:400; line-height:var(--a-lh-ctl);
  background:var(--a-field-bg); color:var(--a-text);
  border:1px solid var(--a-ctl-edge); border-radius:var(--a-r-sm);
  height:var(--a-ctl); padding:0 10px;
}
/* The multi-line field (DS-37): 13px/1.6, padding 8px 10px, only its height varies by host. */
.alt-app textarea:not(.a-textarea){ height:auto; padding:8px 10px; line-height:var(--a-lh-body); }
/* A multi-select with size>1 has to keep its rows; height is the single-row control's rule. */
.alt-app select[multiple][size]:not([size="1"]){ height:auto; padding:6px 8px; }

/* Same collision with okrs.html's inline block, which outranks a bare class by one attribute
   selector (sys_design-system.md §2). Only properties nothing else claims are restated;
   height, horizontal padding and width are omitted on purpose because `.a-search .a-input`
   ties and loads earlier. Keep `.alt-app input:focus` below this rule so the focus border wins. */
.alt-app .a-input{
  background:var(--a-field-bg);
  border:1px solid var(--a-ctl-edge); border-radius:var(--a-r-sm);
  padding-top:0; padding-bottom:0;
}

/* DS-36, DS-71: the accent border and the ONE ring (2px --a-ring, offset 2px, no halo). The `outline:none`
   that stood here is gone: a field that takes focus by keyboard now draws the ring beside the accent edge. */
.alt-app input:focus,
.alt-app select:focus,
.alt-app textarea:focus{ border-color:var(--a-blue); }
.alt-app input:focus-visible,
.alt-app select:focus-visible,
.alt-app textarea:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
.alt-app ::placeholder{ color:var(--a-placeholder); opacity:1; }

/* Segmented control: the Filters popover's Your role uses `.at-tabs`/`.at-tab` from CSS/alt/alt-components.css (the view
   tabs and List | Kanban are the shared top's). Its captioned field: `.a-field` supplies column and caption; `flex:0 0 auto`
   because a segmented control has a content width. */
.alt-app .okr-seg-field{ flex:0 0 auto; }

/* Captions left-align to their controls (owner request; centred was rejected). Team follows via `align-items:flex-start` on
   `.okr-team-switch`. Written against this page's own field class (the Filters popover's Your role), since a `.a-field > span`
   rule would reach every other popover field; okrs-chrome.test.js pins it. */
.alt-app .okr-seg-field > span{ text-align:left; }

/* Health chip: shape only. Colours stay `--okr-*` from CSS/okr.css (the same roles the suite
   resolves). Matches `.a-chip` height, radius, spacing and weight so a status here and on the
   team board read as one system. */
.alt-app .okr-pill{
  font-family:var(--a-body); font-size:var(--a-fs-11); font-weight:600; letter-spacing:.02em; line-height:var(--a-lh-ctl);
  height:24px; padding:0 9px; border-radius:var(--a-r-pill);
}

/* ---- surfaces: cards, groups, panels, dividers ---- */
/* The ladder in one line, at the foot of the strip's breakdown (okrLadderHtml(), JS/pages/okrs.js): the three nouns a reader
   meets here first. A caption, so it spans the breakdown's columns rather than taking one. */
.alt-app .okr-band-ladder{
  grid-column:1 / -1; margin:0; font-size:var(--a-fs-11); line-height:var(--a-lh-ui); color:var(--a-dim);
}
.alt-app .okr-band-ladder b{ color:var(--a-text); font-weight:600; }
.alt-app .okr-empty > .okr-band-ladder{ margin:var(--a-4) auto 0; }
/* The breakdown's key-result column: the caption over the bar, centred against the donut beside it. */
.alt-app .okr-krbar-col{ display:flex; flex-direction:column; justify-content:center; gap:var(--a-2); min-width:0; }

.alt-app .okr-group,
.alt-app .okr-card,
.alt-app .okr-empty{
  background:var(--a-panel); border:1px solid var(--a-line); border-radius:var(--a-r);
}
.alt-app .okr-group{ margin-bottom:var(--a-3); }
.alt-app .okr-group-head:hover,
.alt-app .okr-obj-head:hover{ background:var(--a-raised); }
.alt-app .okr-group-body,
.alt-app .okr-obj{ border-color:var(--a-line-soft); }
.alt-app .okr-group-rule{ background:var(--a-line-soft); }
.alt-app .okr-stat{ border-radius:var(--a-r-sm); border-color:var(--a-line); }
.alt-app .okr-stat:hover{ border-color:var(--a-line-strong); }
.alt-app .okr-stat.active{ border-color:var(--a-blue); background:var(--a-blue-soft); }
.alt-app .okr-kr{ border-radius:var(--a-r-sm); }

/* Dialogs keep their workflow and take the suite's surface: the objective and key result
   editors, detail panel and settings dialog are drawn on a card matching
   CSS/alt/alt-shared-dialogs.css, so dialogs here and on the team board are the same object. */
.alt-app .okr-modal-pane{
  background:var(--a-panel); border:1px solid var(--a-line-strong);
  border-radius:var(--a-r-lg); box-shadow:var(--a-shadow-lg);
}
.alt-app .okr-modal-head{ border-bottom:1px solid var(--a-line); }
.alt-app .okr-modal-head h2{ font-family:var(--a-display); font-size:var(--a-fs-16); font-weight:600; line-height:var(--a-lh-tight); }
.alt-app .okr-modal-foot{ border-top:1px solid var(--a-line); }

/* The list head keeps every control (Sort, Hide completed, Assigned to me, Re-evaluate, the
   fold pairs; see okrs.html); this only sets the suite's spacing so it reads as the caption. */
.alt-app .okr-list-head{
  gap:var(--a-2); padding:0 2px;
  /* Clean break between header stack and board: only the context strip and band pin, so this row
   needs space below it. Not a rule line; the `.stuck` shadow is the page's one separator. */
  margin:var(--a-4) 0 var(--a-4);
}
.alt-app .okr-sort > span{
  font-size:var(--a-fs-11); font-weight:700; letter-spacing:.08em; line-height:var(--a-lh-tight); color:var(--a-dim);
}
.alt-app .okr-list-head .okr-sort select{ height:var(--a-ctl-sm); font-size:var(--a-fs-ctl-sm); padding:0 8px; }
.alt-app .okr-list-title{ font-family:var(--a-display); font-size:var(--a-fs-16); }
.alt-app .vrule{ background:var(--a-line); }

/* The hairline between the two folding axes is not styled here: when the controls wrap apart it
   divides nothing. A breakpoint cannot express "did these land on one line", so
   okrFoldRuleWrap() in JS/pages/okrs.js asks after layout. Do not reintroduce a width rule here. */

/* 4 - Pinning. #okrPinHead is one sticky box (toolbar, summary, list head). `.a-top` is also
   sticky at top:0 in the same scroll root, so this needs an offset: `--okr-shell-h` is set by
   okrs.html from the bar's measured height (56px fallback). Content showing above a pinned
   header is not a z-index fault; see the `top` note below. */
/* The shared top's rows carry their own gutter (`.a-viewrow`'s margin, `.a-fstrip.a-band.a-card`'s, CSS/alt/alt-page-top.css), as on
   Tasks and the board, so the header spans main.okr-main's side padding rather than adding to it (otherwise the view row sat 32px
   in while the strip sat at 16). `--okr-gutter` is that padding; the header's own non-row children take it back as padding. The
   bottom padding is the gap to the content, inside the opaque pinned background. */
.alt-app .okr-pinhead{ --okr-gutter:var(--a-4); padding:0 0 var(--a-3); margin:0 calc(-1 * var(--okr-gutter)); }
.alt-app .okr-pinhead > .okr-ctx{ padding-inline:var(--okr-gutter); }
.alt-app .okr-pinhead.pinned{
  /* One `top` declaration in the file. A media query adds no specificity, so a second `top:0`
   at the same specificity would win by source order and reopen the gap. Let the breakpoint
   re-point the input instead; a second `top:` on this selector is a test failure. */
  --okr-pin-top:var(--okr-shell-h, 56px);
  top:var(--okr-pin-top);
  z-index:calc(var(--z-sticky) - 1);
  background:var(--a-bg);
  /* The pinned header may not eat the screen: the cap is 60% of `100dvh - --okr-shell-h` (what is
   left, not the window, or the shell is charged twice). `vh` first as a fallback for engines
   without `dvh`. */
  /* The cap is a re-pointable input for the same reason `top` is: a second `max-height` on this
     selector races on source order, which okr-pin-header.test.js fails the build over. The
     phone block re-points `--okr-pin-cap`; it does not re-declare max-height. */
  --okr-pin-cap-vh:calc(60vh - 0.6 * var(--okr-shell-h, 56px));
  --okr-pin-cap:calc(60dvh - 0.6 * var(--okr-shell-h, 56px));
  max-height:var(--okr-pin-cap-vh);
  max-height:var(--okr-pin-cap);
}

/* At 1024+ the pin offset is zero because §1 moved the scroll root into main.okr-main, which
   already begins under the shared bar. Below 1024 the document is the root and `.a-top` is sticky
   within it, so the offset is wanted (the default). Keep this block AFTER the default: equal
   specificity, source order decides. */
@media (min-width:1024px){
  .alt-app .okr-pinhead.pinned{ --okr-pin-top:0px; }
  /* No top padding: the view row brings its own (`.a-viewrow` padding-top), so the row starts under the shared bar at the same
     y as on Tasks and the board (97 at 1440). */
}
.alt-app .okr-pinhead.pinned.stuck{ border-bottom:1px solid var(--a-line); box-shadow:var(--a-shadow-sm); }

/* 5 - Responsive: the suite's three stops (CSS/alt/alt-responsive.css): desk, laptop, phone.
   Nothing is removed; the toolbar reflows and every control stays reachable. */

@media (max-width:820px){
  .alt-app main.okr-main{ padding:var(--a-2) var(--a-3) var(--a-5); }
  .alt-app .okr-pinhead{ --okr-gutter:var(--a-3); }
}

/* Phone: the header stops pinning and the team switch takes a full line (the shared top reflows its own rows). */
@media (max-width:639px){
  /* The header does not pin on a phone: the 60% cap leaves no room for the board, and
     shrinking it would mean choosing which controls to keep. Below 640 the document is the
     scroll root. The preference is not overwritten (`okrPrefs.pinHeader` stays true, so a
     laptop still pins): a responsive rule may decide there is no room, not what someone wants. */
  .alt-app .okr-pinhead.pinned{
    position:static; box-shadow:none; border-bottom:0;
    /* The input, not the declaration — see §4 · PINNING. Static needs no cap. */
    --okr-pin-cap-vh:none; --okr-pin-cap:none;
  }
  .alt-app .okr-team-switch{ flex:1 1 100%; }
  /* `width:100%`, not `flex:1 1 auto`: the field is a column now, so a flex-grow on its child
     grows it downwards instead of filling the phone's row. Width is the axis this needs. */
  .alt-app .okr-team-switch select{ width:100%; min-width:0; }
  /* `min-width:0` is what still visibly acts here, loosening the 240px floor on a phone;
     `left`/`right` lose to the inline position `positionPopover()` writes on open. */
  .alt-app .okr-filters-pop{ left:0; right:0; min-width:0; }
}

/* 6 - Motion: alt-tokens.css zeroes --a-quick and the --dur-* family under `.alt-app` for
   reduced motion, so token-driven transitions are covered. The details disclosure has none. */

/* 7 - The outside-the-range list: okrOutsidePanelHtml() in JS/features/okr-board.js and the
   "+N outside" badge (badge look stays in CSS/okr.css). Scoped `body.alt-app` because the host
   is a div appended to <body> (okrOutsideHost()). Reuses `.cfg-popover`, `.a-chip`, `.okr-dot`;
   only layout is added here. */

body.alt-app .okr-outside-pop{
  /* Wider than `.cfg-popover`'s 236px: these rows carry a measure's TITLE, and a title wrapped
     to four words a line is a list nobody scans. Capped against the viewport so the phone gets
     a panel with gutters rather than one clamped by positionPopover() at the last moment. */
  width:min(360px, calc(100vw - 32px));
  padding:var(--a-3);
  /* A LONG TAIL SCROLLS RATHER THAN OVERFLOWING THE SCREEN. positionPopover() measures
     offsetHeight after display:block, so a capped panel is positioned against its real height
     and flips above the badge correctly instead of hanging off the bottom. */
  max-height:min(60vh, 440px); overflow-y:auto;
  display:flex; flex-direction:column; gap:var(--a-3);
  font-family:var(--a-body);
}
body.alt-app .okr-outside-pop:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }

body.alt-app .okr-outside-head{ display:flex; flex-direction:column; gap:2px; }
/* Two text tiers, not three, by measurement: `--a-faint` is 4.13:1 dark / 4.33:1 light on this
   panel (below WCAG 1.4.3's 4.5:1); `--a-dim` is 6.5:1+. Hierarchy comes from size, weight and
   case. */
body.alt-app .okr-outside-title{
  margin:0; font-family:var(--a-display);
  font-size:var(--a-fs-11); font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--a-dim); line-height:var(--a-lh-tight);
}
/* The objective these belong to. Two lines at most — it is context for the list, not the
   heading of it, and a five-line title would push the measures under the fold. */
body.alt-app .okr-outside-obj{
  margin:0; font-size:var(--a-fs-ctl); font-weight:600; line-height:var(--a-lh-ui); color:var(--a-text);
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
}

body.alt-app .okr-outside-group{ display:flex; flex-direction:column; gap:var(--a-1); }
/* The quarter is the heading. Not sticky: a sticky caption needs an opaque background of its own
   and `.cfg-popover`'s surface is a token this file must not restate. The lists are short. */
body.alt-app .okr-outside-qtr{
  margin:0; padding:0 0 var(--a-1);
  display:flex; align-items:center; gap:var(--a-2);
  font-size:var(--a-fs-11); font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--a-dim);
  border-bottom:1px solid var(--a-line-soft); line-height:var(--a-lh-tight);
}
body.alt-app .okr-outside-qtr-l{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Pushed to the far end; `.a-chip` already owns everything else about how it looks. */
body.alt-app .okr-outside-n{ margin-left:auto; flex:0 0 auto; }

body.alt-app .okr-outside-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
body.alt-app .okr-outside-row{
  display:flex; align-items:flex-start; gap:var(--a-2);
  padding:var(--a-2) 0;
  border-bottom:1px solid var(--a-line-soft);
}
body.alt-app .okr-outside-row:last-child{ border-bottom:0; }
/* The dot is a marker on a text row, not a bullet centred on a two-line block — nudged down to
   sit on the first line's baseline the way the List row's own does. */
body.alt-app .okr-outside-row .okr-dot{ flex:0 0 auto; margin-top:4px; }
body.alt-app .okr-outside-kr{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:1px; }
body.alt-app .okr-outside-kr-title{ font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-text); }
body.alt-app .okr-outside-kr-meta{
  display:flex; flex-wrap:wrap; gap:var(--a-1) var(--a-2);
  font-size:var(--a-fs-11); line-height:var(--a-lh-ui); color:var(--a-dim);
}
/* A long name ellipses rather than wrapping under itself: the meta line is a second, quieter
   line under the measure's title, and a name that takes two of its own turns one row into
   three. Everything else about how it reads it inherits from `.okr-outside-kr-meta`. */
body.alt-app .okr-outside-owner{ max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.alt-app .okr-outside-arch{
  color:var(--a-dim); text-transform:uppercase; letter-spacing:.3px; font-weight:600;
}
/* Archived measures are still counted by the badge, so they are still listed — quietly, so the
   eye lands on the live ones first. */
body.alt-app .okr-outside-row.is-archived .okr-outside-kr-title{ color:var(--a-dim); }
body.alt-app .okr-outside-pct{
  flex:0 0 auto; font-size:var(--a-fs-ctl-sm); font-weight:600; color:var(--a-text);
  font-variant-numeric:tabular-nums; padding-top:1px;
}

body.alt-app .okr-outside-foot{
  margin:0; padding-top:var(--a-1);
  border-top:1px solid var(--a-line-soft);
  /* IT IS THE ONE INSTRUCTION ON THE PANEL — what to do about what you are looking at — so it
     is the last text here that may sit below AA. See the tier note above. */
  font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-dim);
}

/* The badge as a control. okr.css gives `.okr-hidden-krs` its box, and that footprint is
   load-bearing (the Kanban card title shares its row). This adds only a pointer, a hover that
   moves the border colour, and an `outline` focus ring. Beats okr.css's `cursor:default` by
   specificity and load order (okrs.html). */
.alt-app .okr-hidden-krs.is-pressable{ cursor:pointer; }
.alt-app .okr-hidden-krs.is-pressable:hover,
.alt-app .okr-hidden-krs.is-pressable[aria-expanded="true"]{ border-color:var(--warn-text); }
.alt-app .okr-hidden-krs.is-pressable:focus-visible{
  outline:var(--a-focus); outline-offset:var(--a-focus-offset);
}

@media (max-width:719px){
  body.alt-app .okr-outside-pop{ width:min(320px, calc(100vw - 24px)); max-height:min(58vh, 380px); }
}

/* "What this counts" popover behind Objectives in view. The figure counts objectives filed in
   the quarter OR with a key result due in it, so it can exceed the number filed there
   (okrInViewPop() in JS/pages/okrs.js). Scoped like `.okr-outside-pop`; the float comes from
   `.alt-app .cfg-popover` (alt-message-center.css). */
body.alt-app .okr-inview-pop{
  /* Wider than `.cfg-popover`'s 236px — that is a picker width and this is three sentences.
     Capped against the viewport so the phone gets gutters rather than a panel positionPopover()
     clamps at the last moment. */
  width:min(320px, calc(100vw - 32px));
  padding:var(--a-3);
  font-family:var(--a-body);
}
body.alt-app .okr-inview-pop:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
body.alt-app .okr-inview-title{
  margin:0 0 var(--a-2); font-family:var(--a-display);
  font-size:var(--a-fs-11); font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--a-dim); line-height:var(--a-lh-tight);
}
body.alt-app .okr-inview-p{
  margin:0 0 var(--a-2); font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-dim);
}
body.alt-app .okr-inview-p:last-child{ margin-bottom:0; }
/* The words carrying the rule — "filed in", "or", "due during". The loud tier rather than a
   second colour: this is an explanation, not a warning. */
body.alt-app .okr-inview-p strong{ font-weight:600; color:var(--a-text); }

/* 8 - "Nothing matches" names the filters (okrNothingMatchesHtml() in JS/features/okr-board.js):
   the count and the filters that produced it, as a caption over a list. The list is centred
   but its items are chips, since bullets hang in the middle of a centred box. `.a-chip`'s
   recipe is not reused: these are not interactive and must not read as pressable. */
.alt-app .okr-empty-why{
  /* Overrides .okr-empty p's 16px bottom margin: this is the caption OF the list below it. */
  margin:0 auto 6px; font-size:var(--a-fs-ctl-sm); color:var(--a-dim);
}
.alt-app .okr-empty-filters{
  list-style:none; margin:0 auto var(--a-4); padding:0;
  display:flex; flex-wrap:wrap; gap:var(--a-1) var(--a-2); justify-content:center;
  max-width:420px;
}
.alt-app .okr-empty-filters li{
  font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-text);
  background:var(--a-raised); border:1px solid var(--a-line);
  border-radius:var(--a-r-pill); padding:2px 10px;
  /* A pasted search term is the one item here that can be long. It wraps inside its own chip
     rather than widening the row past the panel's measure. */
  max-width:100%; overflow-wrap:anywhere;
}

/* 9 - The push indicator: okrPushChipHtml() in JS/pages/okrs.js, on the objective row, Kanban
   card and key-result row. `.a-chip` is the whole look. Not `.a-okr-pill st-<token>` (status
   colour is for health bands; an objective can be On Track and pushed twice) and not
   `.okr-hidden-krs` (amber means warning; a moved date is history). Below is placement only. */

/* Must not shrink: both host rows have a flex-growing sibling, so without this the chip is
   what gives way when a long title takes the row, collapsing "Pushed twice" to "Pushed tw…". */
.alt-app .okr-push-chip{
  flex:0 0 auto;
  /* `.a-chip` clamps to 170px with an ellipsis, right for a tag somebody typed; this chip's
     text is never user-supplied, so that clamp could only ever truncate a label that fit. */
  max-width:none;
  /* The 24px chip (DS-26) like the two pills beside it, exempt from the narrow bump: an inert `<span>` with no role or tab stop, so no touch floor applies. */
  height:24px; min-height:0;
}
.alt-app .okr-push-chip svg{ flex:0 0 auto; }

/* On a key-result row it sits on the first line beside the numbers. `.okr-kr-head` is
   `align-items:start`, so the chip sits 2px low unless pulled up; the negative margin fits inside
   `.okr-kr`'s padding at both densities. The other two clusters are `align-items:center`. */
.alt-app .okr-kr-head .okr-push-chip{ margin-top:-2px; }

/* The Kanban card keeps the whole label: `.okr-card-side` wraps, so the chip drops to its own
   line instead of competing with the title. "Pushed" is not split into a droppable span like
   `.okr-hidden-krs-l`: without the verb the direction is lost. */

/* A credit is the same chip as a push, with border and text in `--a-green` (contrast checked
   by okr-push-chip-probe.py). The measure is signed: later is "Pushed", earlier is "Pulled back"
   (JS/services/okr-push-count.js). `st-complete` is not reused because it would claim the item
   is finished. Verb and arrow carry direction, so report and print emit no credit colour. */
.alt-app .okr-push-chip.is-credit{
  border-color:var(--a-green);
  color:var(--a-green);
}

/* THE PORTFOLIO GRID'S OWN CHOOSER: picks the rows and columns of "OKRs by area, by quarter"
   (okrGridShowHtml(), JS/features/okr-overview.js). Not blue, so it is not confused with the
   page filter's wash in okr.css: shown is neutral raised, hidden is dashed and dimmed.
   Lives here because okr-overview.js loads only on okrs.html. */

.alt-app .okr-grid-show{
  display:flex; align-items:center; flex-wrap:wrap; gap:var(--a-2);
  /* On .okr-card-sub's own 12px text indent, so the caption, this control and the table read
     as one left edge rather than three. */
  padding-left:12px; margin:0 0 var(--a-3);
}

/* The disclosure carries a real border rather than transparent-until-hover: this control is
   the entire entry point to the thing it opens, and one that only announces itself under the
   pointer is not discoverable. Drawn as the same object as the reset beside it. */
.alt-app .okr-grid-show-toggle{
  display:inline-flex; align-items:center; gap:6px;
  height:var(--a-ctl-sm); padding:0 9px;
  background:transparent; border:1px solid var(--a-line); border-radius:var(--a-r-sm);
  font:600 var(--a-fs-ctl-sm)/var(--a-lh-ctl) var(--a-body); color:var(--a-text); cursor:pointer;
}
.alt-app .okr-grid-show-toggle:hover{ background:var(--a-raised); border-color:var(--a-line-strong); }
.alt-app .okr-grid-show-toggle:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
.alt-app .okr-grid-show-caret{ font-size:var(--a-fs-11); line-height:var(--a-lh-ctl); color:var(--a-dim); }

/* WHAT IS ON SCREEN, IN WORDS. Not a control — an inert label beside one — so it takes no
   height floor and no hover, the same distinction CSS/alt/alt-responsive.css already draws
   between a pressable chip and a chip that is only a label. */
.alt-app .okr-grid-show-summary{ font-size:var(--a-fs-ctl-sm); color:var(--a-dim); }

/* The way back, shown only while an axis is narrowed: okrGridShowHtml() emits neither this nor
   the per-axis button otherwise (an affordance is absent until it has something to say). */
.alt-app .okr-grid-show-reset,
.alt-app .okr-grid-show-axis-all{
  height:var(--a-ctl-sm); padding:0 9px;
  background:transparent; border:1px solid var(--a-line); border-radius:var(--a-r-sm);
  font:600 var(--a-fs-ctl-sm)/var(--a-lh-ctl) var(--a-body); color:var(--a-text); cursor:pointer;
}
.alt-app .okr-grid-show-reset:hover,
.alt-app .okr-grid-show-axis-all:hover{ border-color:var(--a-line-strong); background:var(--a-raised); }
.alt-app .okr-grid-show-reset:focus-visible,
.alt-app .okr-grid-show-axis-all:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }

/* THE PANEL TAKES THE WHOLE ROW under the summary — `flex-basis:100%` rather than a second
   wrapper, since the control row is already the flex container it needs to break out of. */
.alt-app .okr-grid-show-panel{
  flex:0 0 100%; display:flex; flex-direction:column; gap:var(--a-2);
  margin-top:var(--a-1); padding:var(--a-2) var(--a-3);
  background:var(--a-raised); border:1px solid var(--a-line-soft); border-radius:var(--a-r-sm);
}
/* STATED, because the rule above sets `display` and would otherwise beat the UA's own
   `[hidden]{display:none}` — a disclosure that cannot close. */
.alt-app .okr-grid-show-panel[hidden]{ display:none; }

/* THE SCOPE, IN THE PANEL, because the whole risk in two filters on one page is a reader
   assuming this one narrowed the objectives list too. */
.alt-app .okr-grid-show-note{
  margin:0; font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-faint);
}

.alt-app .okr-grid-show-row{
  display:flex; align-items:center; flex-wrap:wrap; gap:var(--a-2);
}
.alt-app .okr-grid-show-lbl{
  font-size:var(--a-fs-11); font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--a-dim);
  /* The two axis labels line their chips up with each other. Matched to the widest of the two
     words at this size rather than guessed. */
  flex:0 0 62px; line-height:var(--a-lh-tight);
}
.alt-app .okr-grid-show-chips{
  display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-width:0; flex:1 1 auto;
}

/* SHOWN vs HIDDEN, in the card's own vocabulary and not in its filter's. 26px is the suite's
   pressable floor (CSS/alt/alt-responsive.css), which applies here because every one of these
   IS pressable. */
.alt-app .okr-grid-show-chip{
  height:var(--a-ctl-sm); padding:0 9px;
  border:1px dashed var(--a-line); border-radius:var(--a-r-pill);
  background:transparent; color:var(--a-faint);
  font:600 var(--a-fs-ctl-sm)/var(--a-lh-ctl) var(--a-body); cursor:pointer; white-space:nowrap;
}
.alt-app .okr-grid-show-chip.on{
  border-style:solid; border-color:var(--a-line-strong);
  background:var(--a-panel); color:var(--a-text); font-weight:600;
}
.alt-app .okr-grid-show-chip:hover{ border-color:var(--a-line-strong); color:var(--a-text); }
.alt-app .okr-grid-show-chip:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }

/* THE ONE SENTENCE THE TWO FILTERS CAN NEED BETWEEN THEM: the page filter is narrowed to
   something this grid is not drawing, so the caption's promise of blue has nothing to point at.
   Amber rather than red — it is a state to explain, not a fault to fix. */
.alt-app .okr-grid-show-gap{
  margin:0 0 var(--a-3); padding:var(--a-2) var(--a-3);
  background:var(--a-amber-soft); border:1px solid var(--a-amber); border-radius:var(--a-r-sm);
  font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-text);
}

/* What the period keeps off the card: the page filter can remove whole objectives from the grid,
   and this line stops that being silent (okrGridHiddenByPeriod()). A note, not a warning: quiet
   raised ground, reserving amber for the genuine contradiction note. */
.alt-app .okr-grid-outside{
  display:flex; align-items:center; flex-wrap:wrap; gap:var(--a-2);
  margin:0 0 var(--a-3); padding:var(--a-2) var(--a-3);
  background:var(--a-raised); border:1px solid var(--a-line-soft); border-radius:var(--a-r-sm);
  font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-dim);
}
.alt-app .okr-grid-outside-t{ flex:1 1 220px; min-width:0; }
.alt-app .okr-grid-outside-t b{ color:var(--a-text); font-variant-numeric:tabular-nums; }
/* The same object as the chooser's own resets — one "put it back" control on this card, drawn
   one way. */
.alt-app .okr-grid-outside-btn{
  height:var(--a-ctl-sm); padding:0 9px; flex:0 0 auto;
  background:transparent; border:1px solid var(--a-line); border-radius:var(--a-r-sm);
  font:600 var(--a-fs-ctl-sm)/var(--a-lh-ctl) var(--a-body); color:var(--a-text); cursor:pointer; white-space:nowrap;
}
.alt-app .okr-grid-outside-btn:hover{ border-color:var(--a-line-strong); background:var(--a-panel); }
.alt-app .okr-grid-outside-btn:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }

/* Comments dialog in-body header (okrOpenComments() in JS/features/okr-editor.js): subject line
   and newest/oldest control in one row, flush right. `.okr-modal-head`'s shape without its
   chrome, since okr-modal.js already supplies padding and hairline. The button is `.a-btn` via
   JS/components/comment-order.js. */
.okr-cmt-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin:0 0 13px;
}
.okr-cmt-head > .okr-hint{ margin:0; flex:1 1 auto; min-width:0; }
.okr-cmt-head-end{ flex:0 0 auto; display:flex; align-items:center; gap:8px; }

/* Objective actions panel, foldable, with the Insight on a row of its own (okr-objective-actions.js; the box itself is in
   CSS/okr.css). The heading row is the fold button. Under it the buttons, with Created by at the end of that row; the
   Insight is a full-width row below, under a hairline, and its paragraph is held to three lines with "Show full insight"
   (owner, 2026-11-10: "Insight row below", "3 lines"; it used to share a column with Created by and make the panel as
   tall as the paragraph). The markup is unchanged: the meta wrapper and the two-column wrapper carry no role, so they are
   `display:contents` and their two children are placed on this grid. Shut, only the heading shows, as a strip with the
   summary. Display none, as every other fold here: the hidden controls leave the Tab order. The fold chevron takes its
   clock from CSS/components.css. */
.okr-obj .okr-objactions{
  display:grid; grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"head head" "body created" "insight insight";
  column-gap:18px; row-gap:10px; align-items:start;
}
.okr-objactions-fold{ grid-area:head; padding:0; color:var(--text); }
.okr-objactions-fold:hover .okr-objactions-title{ color:var(--accent-text); }
.okr-objactions > .okr-objactions-main{ grid-area:body; }
.okr-obj .okr-objactions > .okr-objactions-meta,
.okr-obj .okr-objactions .okr-objmeta-cols{ display:contents; }
.okr-objactions .okr-objmeta-col--created{ grid-area:created; align-self:center; justify-self:end; }
.okr-objactions .okr-objmeta-col--insight{
  grid-area:insight; display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px;
  border-left:0; padding:10px 0 0; border-top:1px solid var(--border-soft);
}
.okr-objactions .tsec-summary{ display:none; }

/* The Insight row's header line: the bulb and INSIGHT, then the written-when line (and the stale note), then the button at
   the end; the paragraph takes the next line whole, then the toggle. The facts wrapper and the insight panel are flattened
   (display:contents) so the renderer's own order (paragraph, written line, button) is set by `order` and nothing is
   marked up twice. Scoped to the objective panel: the key result and the digest share the renderer and are not touched. */
.okr-objactions .okr-objmeta-col--insight .okr-objmeta-fact,
.okr-objactions .okr-objmeta-col--insight .okr-insight{ display:contents; }
.okr-objactions .okr-objmeta-col--insight .okr-objmeta-icon{ order:0; margin-top:0; display:flex; }
.okr-objactions .okr-objmeta-col--insight .okr-fact-l{ order:0; }
.okr-objactions .okr-insight-working{ order:1; margin:0; }
.okr-objactions .okr-insight-prov{ order:1; margin:0; padding-left:0; flex:1 1 auto; min-width:0; }
.okr-objactions .okr-objmeta-col--insight [data-regen]{ order:2; margin-left:auto; }
.okr-objactions .okr-insight-text{ order:3; flex:1 1 100%; min-width:0; margin:0; }
/* After the toggle: with no key the standard sentence is a note under the whole insight, not between the text and its toggle. */
.okr-objactions .okr-objmeta-col--insight .okr-insight-none{ order:5; flex:1 1 100%; min-width:0; margin:0; }
.okr-objactions .okr-insight-text{
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden;
}
.okr-objactions .okr-insight-text.is-open{ display:block; -webkit-line-clamp:unset; line-clamp:unset; overflow:visible; }
.okr-objactions .okr-insight-more{
  order:4; margin:0 0 0 14px; padding:0; background:none; border:0; cursor:pointer;
  font:inherit; font-size:var(--a-fs-ctl-sm); font-weight:600; color:var(--accent-text);
  text-decoration:underline; text-underline-offset:2px;
}
.okr-objactions .okr-insight-more:hover{ color:var(--text); }
.okr-objactions .okr-insight-more:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); border-radius:var(--a-r-sm); }

/* Below 1100px the buttons would crowd Created by out of their row: it sits beside the heading and the buttons take the row. */
@media (max-width:1100px){
  .okr-obj .okr-objactions{ grid-template-areas:"head created" "body body" "insight insight"; }
  .okr-objactions .okr-objmeta-col--created{ align-self:center; }
}
/* On a phone every part takes its own row, as the panel always did. */
@media (max-width:620px){
  .okr-obj .okr-objactions{ grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "body" "created" "insight"; }
  .okr-objactions .okr-objmeta-col--created{ justify-self:start; }
  .okr-objactions .okr-objmeta-col--insight [data-regen]{ margin-left:0; }
}
.okr-obj .okr-objactions.is-folded{
  grid-template-columns:minmax(0,1fr); grid-template-areas:"head"; padding-block:8px;
}
.okr-obj .okr-objactions.is-folded .okr-objactions-main,
.okr-obj .okr-objactions.is-folded > .okr-objactions-meta,
.okr-obj .okr-objactions.is-folded .okr-objactions-sub{ display:none; }
.okr-objactions.is-folded .tsec-summary{ display:block; }
.okr-objactions.is-folded .tsec-chev{ transform:rotate(-90deg); }
/* Shut and narrow: the heading keeps one line and the summary drops under it, aligned with the heading text. */
.okr-objactions.is-folded .okr-objactions-title{ white-space:nowrap; }
@media (max-width:620px){
  .okr-objactions.is-folded .okr-objactions-fold{ flex-wrap:wrap; row-gap:2px; }
  .okr-objactions.is-folded .tsec-summary{ flex:1 1 100%; padding-left:55px; }
}

/* 11 - Re-evaluate's one status line, moved under the Focus strip by okrWireChrome() (spec O22): a line of its own while the
   request runs, so the tools row does not move. okrReevalSay() shows and hides it. */
.alt-app .okr-pinhead > .okr-reeval-status{ display:block; margin:0; padding:var(--a-1) calc(var(--okr-gutter) + var(--a-3)) 0; }

/* 10 - The shared top (CSS/alt/alt-page-top.css draws the view row and the Focus strip; this file keeps only what is OKR's).
   THE HEALTH FIGURES: okrStripFigures() (JS/pages/okrs.js) tags each with `st-<status>`, the one state vocabulary CSS/okr.css
   keys every --okr-* colour off, and `is-kr` when it counts key results. The count takes the state's text colour and a marker
   leads it in the state's fill: the objective's diamond, or the key result's circle (the `.okr-dot` shapes), so the colour is
   never the only signal. The marker is drawn inside the count (`b::before`) and the figure gives its left padding to it, so a
   marked figure is only the marker wider than Tasks' and the seven figures hold one strip line at 1440. `is-zero` (a count of 0)
   grays the count and the marker, as Tasks' empty figures are gray (§4c-2 States); it comes last so it wins at equal weight.
   Selected on `.a-stat` under the page's own header, never on the component's anatomy classes (page-top-css-scope.test.js). Both
   themes come from CSS/tokens.css. */
.okr-pinhead .a-stat[class*=" st-"]{ padding-left:5px; }
.okr-pinhead .a-stat[class*=" st-"] b{ display:inline-flex; align-items:center; }
.okr-pinhead .a-stat[class*=" st-"] b::before{
  content:''; flex:0 0 auto; width:8px; height:8px; margin:0 5px 0 2px; border-radius:2px; transform:rotate(45deg);
  background:var(--okr-idle);
}
.okr-pinhead .a-stat.is-kr b::before{ border-radius:50%; transform:none; }
.okr-pinhead .a-stat.st-behind b::before{ background:var(--okr-behind); }
.okr-pinhead .a-stat.st-slightly_behind b::before{ background:var(--okr-slightly); }
.okr-pinhead .a-stat.st-on_track b::before{ background:var(--okr-ontrack); }
.okr-pinhead .a-stat.st-ahead b::before{ background:var(--okr-ahead); }
.okr-pinhead .a-stat.st-completed b::before{ background:var(--okr-done); }
.okr-pinhead .a-stat.st-behind b{ color:var(--okr-behind-text); }
.okr-pinhead .a-stat.st-slightly_behind b{ color:var(--okr-slightly-text); }
.okr-pinhead .a-stat.st-on_track b{ color:var(--okr-ontrack-text); }
.okr-pinhead .a-stat.st-ahead b{ color:var(--okr-ahead-text); }
.okr-pinhead .a-stat.st-completed b{ color:var(--okr-done-text); }
.okr-pinhead .a-stat.st-not_started b{ color:var(--okr-idle-text); }
.okr-pinhead .a-stat.is-zero b{ color:var(--a-dim); }
.okr-pinhead .a-stat.is-zero b::before{ background:var(--a-faint); }

/* 12 - The strip's tools (page-owned controls the renderer places in #okrTools), on Tasks' terms (#altStripTools, alt-tasks.css and
   alt-responsive.css): every button is the 32px suite control, and the secondary tools give way to their glyphs (named by
   aria-label; Organize keeps its words as the name), the quarter drops its " · current" hint, and the primary keeps its word.
   Tasks gives way at 1499 and 1799; this strip carries seven figures and two quick chips, so its tools give way below 1920, the
   width the shared fold's caption already shortens at. Measured 2026-11-08 at 1440 on Objectives: fold 95, seven figures 752, two
   quick chips 201, tools 314, one 46px strip line with 2px to spare. Re-evaluate (an AI key) adds 38 and so a second line there;
   at 1280 the line is about 140px short. Closing either means shorter figure or quick-chip words, which is a copy decision. */
#okrTools .okr-reeval{ display:flex; align-items:center; gap:6px; }
@media (max-width:1919px){
  #okrTools .a-lbl, #okrTools .okr-qg-cur{ display:none; }
  #okrTools .okr-qg-trigger{ min-width:0; }   /* the grid's own 160px floor (okr-quarter-grid.css) is for the long form */
  #okrTools #okrArrangementLink{ gap:0; padding:0 var(--a-2); min-width:var(--a-ctl-sm); justify-content:center; }   /* icon only: its words are the `.a-lbl` hidden above, the name is its aria-label */
}

/* ---- Overview: the Goals shown note and the Private-only list ----
   The note is `.okr-card-sub`'s voice (muted 13px) as its own line; the link is a quiet text button like `.okr-grid-outside-btn`. */
.okr-ov-note{margin:0 0 10px; padding-left:12px; font-size:var(--a-fs-ctl); color:var(--text-dim);}
.okr-ov-note-btn{
  background:none; border:0; padding:0; font:inherit; color:var(--accent-text); cursor:pointer;
  text-decoration:underline; text-underline-offset:2px; min-height:24px;
}
.okr-ov-note-btn:focus-visible{outline:var(--a-focus); outline-offset:var(--a-focus-offset); border-radius:var(--a-r-sm);}
.okr-card h2 svg{width:15px; height:15px; margin-right:6px; vertical-align:-2px; color:var(--text-dim);}
.okr-ov-priv-list{list-style:none; margin:0; padding:0;}
.okr-ov-priv{
  display:flex; align-items:center; gap:8px 12px; flex-wrap:wrap; padding:8px 12px; min-width:0;
  border-top:1px solid var(--border-soft);
}
.okr-ov-priv .okr-dot{flex:0 0 auto;}
.okr-ov-priv-t{
  flex:1 1 220px; min-width:0; background:none; border:0; padding:0; font:inherit; font-size:var(--a-fs-ctl); font-weight:600;
  color:var(--text); text-align:left; cursor:pointer; min-height:24px;
}
.okr-ov-priv-t:hover{color:var(--accent-text); text-decoration:underline; text-underline-offset:2px;}
.okr-ov-priv-t:focus-visible{outline:var(--a-focus); outline-offset:var(--a-focus-offset); border-radius:var(--a-r-sm);}
.okr-ov-priv-meta{font-size:var(--a-fs-ctl-sm); color:var(--text-dim);}
.okr-ov-priv-pct{font-size:var(--a-fs-ctl-sm); font-weight:700; font-variant-numeric:tabular-nums; min-width:34px; text-align:right;}
.okr-ov-priv-none{margin:0 0 12px; padding-left:12px; font-size:var(--a-fs-ctl); color:var(--text-dim);}

/* ---- objectives with no key results yet: one quiet panel above the list, a row per objective ----
   The card's own surface (`.okr-mk-card`), the group head's type (`.okr-mk-grp-btn`) and the role chip are reused. */
.okr-mk-nokrs{
  background:var(--panel-2); border:1px solid var(--border-soft); border-radius:var(--a-r-sm);
  margin:0 0 12px; min-width:0;
}
.okr-mk-nokrs-head{
  display:flex; align-items:baseline; gap:8px; padding:9px 12px; border-bottom:1px solid var(--border-soft);
  font-size:var(--a-fs-ctl); font-weight:700; color:var(--text);
}
.okr-mk-nokrs-t{flex:0 0 auto;}
.okr-mk-nokrs-list{list-style:none; margin:0; padding:0;}
.okr-mk-nokr{
  display:flex; align-items:center; gap:8px 12px; flex-wrap:wrap; padding:8px 12px; min-width:0;
  border-bottom:1px solid var(--border-soft);
}
.okr-mk-nokr:last-child{border-bottom:0;}
.okr-mk-nokr .okr-mk-obj{flex:1 1 220px; font-size:var(--a-fs-ctl); font-weight:600; min-width:0;}
.okr-mk-nokr-meta{display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:var(--a-fs-ctl-sm); color:var(--text-dim);}
.okr-mk-nokr-dim{color:var(--text-faint);}
.okr-mk-nokr-dim svg{width:12px; height:12px; vertical-align:-2px; margin-right:3px;}

/* ---- the private marker at the objective's NAME (owner option B, 2026-11-13) ----
   A "Private" chip after the name and a 3px left edge on a private row, card or key-result row. Both are the accent
   family already used for the filter's Private segment. The edge is `--accent-fill`. In light that EQUALS `--accent`,
   so colour does not tell it from selection: SHAPE does. The selected card draws a 2px all-sides ring (1px border
   plus a 1px inset), a private one a 3px LEFT-only edge (measured in the browser pass). The chip background is
   `--accent-soft` layered over `--panel`: alone it is translucent, and over a status wash the text fell to 4.0-4.3.
   The screen-reader text ("Private goal") is its own element, so the chip itself is aria-hidden. */
.okr-priv-chip{
  display:inline-flex; align-items:center; gap:4px; vertical-align:middle; margin-left:8px; height:24px; padding:0 9px;
  border:1px solid var(--accent); border-radius:999px;
  background:linear-gradient(var(--accent-soft), var(--accent-soft)), var(--panel); color:var(--accent-text);
  font-size:var(--a-fs-11); font-weight:600; line-height:var(--a-lh-ctl); white-space:nowrap; flex:0 0 auto;
}
.okr-priv-chip svg{width:12px; height:12px; flex:0 0 auto;}
.okr-card-titles > .okr-priv-chip{align-self:flex-start; margin-left:0;}
.okr-mk-objwrap{display:inline-flex; align-items:center; gap:8px; max-width:100%; min-width:0; align-self:flex-start;}
.okr-mk-objwrap .okr-priv-chip{margin-left:0;}
.okr-mk-nokr .okr-mk-objwrap{flex:1 1 220px;}
.okr-mk-objwrap .okr-mk-obj{flex:0 1 auto;}
.okr-ov-priv-t{flex:0 1 auto;}
.okr-ov-priv-meta{margin-left:auto;}
.okr-obj.is-private[data-status], .okr-obj.is-private .okr-kr{border-left:3px solid var(--accent-fill);}
.okr-detail-pane .okr-obj.is-private[data-status]{border:none;}
.okr-card-obj.is-private, .okr-mk-card.is-private, .okr-mk-nokr.is-private, .okr-ov-priv.is-private{border-left:3px solid var(--accent-fill);}
.okr-mk-row.is-private td:first-child{box-shadow:inset 3px 0 0 var(--accent-fill);}
@media (max-width:520px){
  .okr-priv-word{display:none;}
  .okr-priv-chip{padding:0 7px;}
}

/* ================= 10 · OKR SETTINGS: THE SHARED SETTINGS SURFACE (DS-70 to DS-81) =================
   The dialog borrows classic classes (.modal-tab, .pref-row, .pane-hint), so it is restyled for this pane only; the cards are `.a-card.stg-sec`
   (alt-settings-stride.css) under `.stg-shell`, fields and buttons are section 3's. */

/* The tab strip is the panel tab (DS-24, DS-75): 34px, 13px/600, padding 0 12px, a 2px underline. The selected tab keeps the
   settings ribbon (the same wash and underline My Settings draws on its own tabs); only geometry and type are unified. */
.alt-app .okr-settings-pane .modal-tabs{
  display:flex; gap:2px; margin:0; padding:0 var(--a-pad-body);
  background:transparent; border-radius:0; border-bottom:1px solid var(--a-line); overflow-x:auto;
}
.alt-app .okr-settings-pane .modal-tab{
  flex:0 0 auto; height:34px; padding:0 12px;
  background:transparent; border:0; border-radius:0; color:var(--a-dim);
  font-family:var(--a-body); font-size:var(--a-fs-ctl); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl);
  white-space:nowrap; cursor:pointer;
}
.alt-app .okr-settings-pane .modal-tab:hover{ color:var(--a-text); }
.alt-app .okr-settings-pane .modal-tab.active{
  background:var(--stg-ribbon-soft); box-shadow:inset 0 -2px 0 0 var(--stg-ribbon-to); color:var(--stg-text);
}
.alt-app .okr-settings-pane .modal-tab:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }

/* The panes stack their cards on the section rhythm; the body keeps the dialog's one padding. */
.alt-app .okr-settings-pane .modal-pane.active{ display:flex; flex-direction:column; gap:var(--a-gap-section); }

/* DS-79: header padding 12px 16px, row padding 12px vertical, body on the dialog's 16px. */
.alt-app .okr-settings-pane .stg-sec-h{ padding:var(--a-sp-12) var(--a-sp-16); }
.alt-app .okr-settings-pane .stg-sec-body{ padding:var(--a-pad-body); }
.alt-app .okr-settings-pane .pref-row{ padding:var(--a-sp-12) 0; }

/* DS-77: two label roles. A label above a field is the eyebrow (.okr-cfg-group, section 6); a row's label beside its switch
   or select is 13px/600, line-height 1.45, --a-text. */
.alt-app .okr-settings-pane .pref-title{ font-size:var(--a-fs-ctl); font-weight:600; line-height:var(--a-lh-ui); color:var(--a-text); }
/* DS-48: every hint is 12px/400, line-height 1.45, --a-faint. */
.alt-app .okr-settings-pane .pref-desc,
.alt-app .okr-settings-pane .pane-hint{ font-size:var(--a-fs-ctl-sm); font-weight:400; line-height:var(--a-lh-ui); color:var(--a-faint); }
.alt-app .okr-settings-pane .pane-hint{ margin:0 0 var(--a-sp-8); }
.alt-app .okr-settings-pane .pref-desc{ margin-top:var(--a-sp-2); }
.alt-app .okr-settings-pane .cfg-status,
.alt-app .okr-settings-pane .weather-empty{ font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); }
.alt-app .okr-settings-pane .weather-add-row{ gap:var(--a-sp-8); }

/* DS-81: a checkbox is 16x16 with the blue accent. The switch is `.pref-switch` (CSS/switch.css, 40x22): its hidden input
   is excluded, or this would shrink the switch's hit area. */
.alt-app .okr-settings-pane :not(.pref-switch) > input[type=checkbox]{ width:var(--a-check); height:var(--a-check); margin:0; accent-color:var(--a-blue); }

/* The dialog's head and foot are the shared bands (DS-40 to DS-42): 12px 16px, a divider, the footer actions to the right. The
   close is a ghost icon button on the md step. */
.alt-app .okr-modal-head{ padding:var(--a-sp-12) var(--a-sp-16); }
.alt-app .okr-modal-head .a-btn.icon{ width:var(--a-ctl); height:var(--a-ctl); flex:0 0 auto; }
.alt-app .okr-modal-foot{ padding:var(--a-sp-12) var(--a-sp-16); gap:var(--a-sp-8); }

/* ================= 11 · ITEM STATES (DS-06, DS-51) =================
   Every clickable item: hover lifts the ground one step (panel to raised), selected is the blue border and the blue wash.
   The Kanban card is an item, so it is the item radius (9px) and takes both; the readiness tile and the stat tile lift on hover. */
.alt-app .okr-card-obj{ border-radius:var(--a-r); }
.alt-app .okr-card-obj:hover{ background:var(--a-raised); border-color:var(--a-line-strong); }
.alt-app .okr-card-obj.is-open{ background:var(--a-blue-soft); border-color:var(--a-blue); box-shadow:inset 0 0 0 1px var(--a-blue); }
.alt-app .okr-tile:hover,
.alt-app .okr-stat:not(.active):hover{ background:var(--a-raised); }
