/* ================= The alternate UX: the OKR application =================
   okrs.html loads this for the flow dialog, import/export panes and drawer chrome (JS/features/okr-flow.js, okr-import.js
   emit `.a-okr-*`). Scoped to `.alt-app`; CSS/okr.css owns the classic names. Colours: `--a-*` and `--okr-*`, no raw hex.
   alt-responsive.css loads after; section 12 uses only its six breakpoints (1699/1499/1179/1023/820/639). */


/* ================= 1 - The status colour system, declared once =================
   `okrTokenFor(status)` returns one of six stems; markup carries `st-<stem>`, which sets `--okr-c` (solid), `--okr-ct`
   (text variant) and `--okr-cs` (soft wash, checked against `--okr-ct`). They inherit, so one class on a container
   reaches every child. Colour never carries status alone (pill label, stat caption; section 11 prints in black). */
.alt-app .st-behind  { --okr-c:var(--okr-behind);   --okr-ct:var(--okr-behind-text);   --okr-cs:var(--okr-behind-soft); }
.alt-app .st-slightly{ --okr-c:var(--okr-slightly); --okr-ct:var(--okr-slightly-text); --okr-cs:var(--okr-slightly-soft); }
.alt-app .st-ontrack { --okr-c:var(--okr-ontrack);  --okr-ct:var(--okr-ontrack-text);  --okr-cs:var(--okr-ontrack-soft); }
.alt-app .st-ahead   { --okr-c:var(--okr-ahead);    --okr-ct:var(--okr-ahead-text);    --okr-cs:var(--okr-ahead-soft); }
.alt-app .st-done    { --okr-c:var(--okr-done);     --okr-ct:var(--okr-done-text);     --okr-cs:var(--okr-done-soft); }
.alt-app .st-idle    { --okr-c:var(--okr-idle);     --okr-ct:var(--okr-idle-text);     --okr-cs:var(--okr-idle-soft); }
/* `st-quiet` is not a seventh row in this pattern: copying the shape measured pixel-identical to
   `.st-idle`. It is hollow: `--okr-c` carries a measured-different border/dot colour and
   `--okr-cs` is `transparent`, so the pill reads as an outline. */
.alt-app .st-quiet   { --okr-c:var(--okr-quiet);    --okr-ct:var(--okr-quiet);         --okr-cs:transparent; }
/* The fallback is per-declaration, not per-container: every `var(--okr-c, ...)` carries its own
   neutral, because a container default can't express the places where the correct neutral is
   `transparent` (an unscored row's spine). */


/* ================= 2 - The shared atoms =================
   The small things every surface draws: a shape plus the three status properties from section 1;
   no component below restates a colour. */

/* The tiny uppercase caption, identical to `.a-field > span` (alt-components.css): a caption over
   a select and over a figure are the same object. */
.alt-app .a-okr-lbl{
  font:700 var(--a-fs-11)/var(--a-lh-tight) var(--a-body); letter-spacing:.08em; text-transform:uppercase;
  color:var(--a-dim); white-space:nowrap; flex:0 0 auto;
}

/* Tabular numerals so a column of percentages lines up on the decimal. */
.alt-app .a-okr-num{
  font-family:var(--a-body); font-variant-numeric:tabular-nums; font-size:var(--a-fs-ctl-sm);
  color:var(--a-text); white-space:nowrap;
}

/* The health dot. 8px on an objective, 6px on a key result — a measure's verdict is subordinate
   to the objective's, and the size says so before the colour does. */
.alt-app .a-okr-dot{
  width:8px; height:8px; border-radius:50%; flex:0 0 auto; display:inline-block;
  background:var(--okr-c, var(--a-line-strong));
}
.alt-app .a-okr-dot.is-kr{ width:6px; height:6px; }

/* The status pill: an outlined badge on the wash its own text is measured against. `--okr-cs`
   under `--okr-ct` has a ratio recorded in CSS/tokens.css for both themes, so no light override. */
.alt-app .a-okr-pill{
  display:inline-flex; align-items:center; gap:5px; min-height:24px; padding:0 9px;
  border-radius:var(--a-r-pill); font:600 var(--a-fs-11)/var(--a-lh-ui) var(--a-body); white-space:nowrap;
  border:1px solid var(--okr-c, var(--a-line-strong));
  background:var(--okr-cs, var(--a-raised));
  color:var(--okr-ct, var(--a-dim));
  max-width:100%; overflow:hidden; text-overflow:ellipsis;
}
/* The dot is drawn only if the markup didn't draw one: the wireframes put a dot in every status
   chip, but which surface's markup emits it varies, and two dots look like a fault. `:has()` asks
   rather than guesses; where unsupported the pill keeps its word, which carries the meaning. */
.alt-app .a-okr-pill:not(:has(.a-okr-dot))::before{
  content:''; width:6px; height:6px; border-radius:50%; flex:0 0 auto;
  background:var(--okr-c, currentColor);
}

/* The progress track. The `:not(.a-toolbar)` qualifier is a leftover from a toolbar meaning
   `.a-okr-bar` no longer has; harmless, left as-is. */
.alt-app .a-okr-bar:not(.a-toolbar){
  height:6px; border-radius:var(--a-r-pill); overflow:hidden; display:flex; min-width:0;
  background:var(--a-line-soft);
}
.alt-app .a-okr-bar:not(.a-toolbar) > i{
  display:block; height:100%; background:var(--okr-c, var(--a-blue-fill));
  transition:width var(--dur-progress, 420ms) var(--a-ease);
}

/* Owner: avatar and name as one object so a row can clip the name without orphaning the face.
   `min-width:0` on the flex child is load-bearing: without it the text sizes the box and the
   ellipsis never happens. */
.alt-app .a-okr-av{
  display:inline-flex; align-items:center; gap:6px; min-width:0; max-width:100%;
  font-size:var(--a-fs-ctl-sm); color:var(--a-dim);
}
/* The initials chip is drawn separately from its container: `.a-okr-av` doing both rendered a
   15x15 square with low-contrast text (2.6:1 blue, 1.83:1 red). Now round, sized, white, like
   ALT Tasks/Team. */
.alt-app .a-okr-av > .av{
  flex:0 0 auto; width:20px; height:20px; border-radius:var(--a-r-pill);
  display:inline-flex; align-items:center; justify-content:center;
  font:600 var(--a-fs-11)/var(--a-lh-ctl) var(--a-body); color:#fff; letter-spacing:.02em;
}
.alt-app .a-okr-av.sm > .av{ width:18px; height:18px; font-size:var(--a-fs-11); letter-spacing:0; }
.alt-app .a-okr-av > .nm{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.alt-app .a-okr-av > span{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.alt-app .a-okr-av .a-av{ flex:0 0 auto; }

/* The local empty state — a panel, a column or a group with nothing in it. `.a-empty` is the
   page-sized one; this is its inline sibling, quiet enough that six of them in a Kanban row do
   not read as an error. */
.alt-app .a-okr-empty{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  padding:var(--a-4) var(--a-3); text-align:center;
  font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-body); color:var(--a-faint);
}

/* Square, not the task list's circle — this selects a row for bulk action and completes
   nothing; a circle reading as "done" is the fastest way to archive an objective by accident. */
.alt-app .a-okr-check{
  width:var(--a-okr-checkw, 16px); height:var(--a-okr-checkw, 16px);
  flex:0 0 auto; margin:0; cursor:pointer;
  accent-color:var(--a-blue-fill);
}
/* Only ever the control itself — putting the class on the surrounding <label> forces the whole
   row to this box's 16×16 size (measured: three two-line rows collapsed into one square). */
.alt-app label.a-okr-check,
.alt-app .a-check-l.a-okr-check{
  width:auto; height:auto; display:flex; align-items:flex-start; gap:var(--a-2);
  cursor:pointer;
}
.alt-app .a-okr-check:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
/* `.a-input.sm`/`.a-select.sm` live in alt-components.css, shared by every page. This rule
   (three classes, so it wins regardless of order) is this page's search-in-strip geometry:
   `.a-search .a-input` and `.a-input.sm` are a same-file source-order tie. */
.alt-app .a-search .a-input.sm{ padding-left:28px; }

/* Which filters are on, visibly — a filter the reader can't see is one that silently narrows
   their data. Full width under the strip, read as a consequence of the row above. */
.alt-app .a-okr-chips{
  display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-width:0;
  padding:var(--a-2) 0 0; border-top:1px solid var(--a-line-soft);
}
/* The clear affordance inside a chip. It is inside the chip's own button, so it needs no target
   of its own — but it does need to look like the thing that will happen. */
.alt-app .a-okr-chips .a-chip .x{
  margin-left:2px; font-size:var(--a-fs-11); line-height:var(--a-lh-ctl); opacity:.7;
}
.alt-app .a-okr-chips .a-chip:hover .x{ opacity:1; }

/* ---- The filter chips: "Filter..." and "Clear filters", matching tasks.html's pair ----
   `.n` duplicates alt-tasks.css's `.a-btn .n` rule deliberately: that file belongs to another
   lane (Definition of Done rule 11) and okrs.html doesn't load it. Promote to
   alt-components.css if a third page wants it. */
#okrFiltersSummary .n,
#okrClearAll .n{ margin-left:5px; font:600 var(--a-fs-11)/var(--a-lh-ctl) var(--a-body); font-variant-numeric:tabular-nums; opacity:.8; }

/* `#okrFiltersSummary` takes tasks.html's quiet-pill face (owner request: round corners and
   the filter icon). Mirrored, not reused, because the rule that draws it is in another lane's
   file (Definition of Done rule 11). `color:var(--a-dim)` and the hover step travel with the
   ground. `#okrFiltersSummary.on` below still wins: id+class outranks a bare id. */
#okrFiltersSummary{
  background:transparent; border-color:var(--a-line-soft); border-radius:var(--a-r-pill);
  color:var(--a-dim);
}
#okrFiltersSummary:hover{
  background:var(--a-raised); color:var(--a-text); border-color:var(--a-line-strong);
}

/* `.on` lights "Filter..." whenever a filter is active (from okrActiveFilterCount(), independent
   of whether the popover is open). Same blue-soft wash as `.okr-ctx-clear` (CSS/okr-suite.css),
   this board's one "selected" language. An id, so it wins over that file's class rule
   regardless of load order. */
#okrFiltersSummary.on{
  border-color:var(--a-blue); color:var(--a-blue-text); background:var(--a-blue-soft);
}

/* The one property the popover conversion needed to change: outside-click dismissal (see
   okrs.html's comment on `#okrFiltersPop`). The rest is CSS/okr-suite.css's; only
   `position:absolute` assumed an ancestor (the retired `<details>`). An id wins over that
   file's class regardless of load order. */
#okrFiltersPop{ position:fixed; }
.alt-app .a-okr-panel{
  display:flex; flex-direction:column; gap:var(--a-2); min-width:0;
  padding:var(--a-3); border-radius:var(--a-r-lg);
  background:var(--a-panel); border:1px solid var(--a-line-soft);
}

/* A wide table scrolls in its own box and the page never does. Every table here is wrapped in
   this; otherwise a seven-column breakdown at 700px scrolls the whole document.
   `overscroll-behavior-x:contain` keeps a sideways flick from navigating back. */
.alt-app .a-okr-tscroll{
  min-width:0; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain;
  padding-bottom:2px;
}

/* The table is for a real `<table>` so a screen reader can say "row 4, column Progress". The
   `display:table-*` lines are a safety net so a div rendering is still a grid. */
/* `min-width:max-content` replaces a magic number per breakpoint: `width:100%` in a narrow panel
   crushes (seven columns in 360px, "Completed" read "Complet..."); content width as the floor
   scrolls at any width. */
.alt-app .a-okr-table{
  width:100%; min-width:max-content; border-collapse:collapse; font-size:var(--a-fs-ctl-sm);
}
.alt-app div.a-okr-table{ display:table; }
.alt-app div.a-okr-table .a-okr-tr{ display:table-row; }
.alt-app div.a-okr-table .a-okr-th,
.alt-app div.a-okr-table .a-okr-td{ display:table-cell; }
/* The header sticks to the top of its own scroller so a twenty-row breakdown stays readable.
   `z-index:1` is a stacking context over the rows it scrolls past, not a layer for layers.js. */
.alt-app .a-okr-th{
  position:sticky; top:0; z-index:1;
  padding:6px 10px; text-align:left; white-space:nowrap;
  font:700 var(--a-fs-11)/var(--a-lh-tight) var(--a-body); letter-spacing:.08em; text-transform:uppercase;
  color:var(--a-dim); background:var(--a-panel);
  border-bottom:1px solid var(--a-line);
}
.alt-app .a-okr-th.num{ text-align:right; }
.alt-app .a-okr-tr{ border-bottom:1px solid var(--a-line-soft); }
.alt-app .a-okr-tr:last-child{ border-bottom:0; }
.alt-app .a-okr-tr:hover{ background:var(--a-raised); }
/* A ROW THAT IS A DESTINATION SAYS SO. Some breakdown rows navigate — press "Site Tech" and the
   objectives narrow to it — and a row that does nothing must not wear the same cursor. */
.alt-app .a-okr-tr[tabindex],
.alt-app .a-okr-tr[role="button"]{ cursor:pointer; }
.alt-app .a-okr-tr:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
/* The totals row is part of the table, not a fourth component (a rule above and a heavier face);
   a separate strip lets a total disagree with the column it totals. */
.alt-app .a-okr-tr.total,
.alt-app .a-okr-table tfoot .a-okr-tr{
  border-top:1px solid var(--a-line); border-bottom:0; font-weight:600;
}
.alt-app .a-okr-tr.total:hover,
.alt-app .a-okr-table tfoot .a-okr-tr:hover{ background:transparent; }
.alt-app .a-okr-td{
  padding:7px 10px; color:var(--a-text); vertical-align:middle;
}
/* FIGURES RIGHT, TABULAR, AND ON THE STATUS COLOUR WHEN THE CELL CARRIES A STEM. A column of
   counts that is left-aligned cannot be compared down the page, which is the only reason the
   column exists. */
.alt-app .a-okr-td.num{
  text-align:right; font-family:var(--a-body); font-variant-numeric:tabular-nums;
  white-space:nowrap; color:var(--okr-ct, var(--a-text));
}
/* A zero in a status column is information, and it is quiet information. */
.alt-app .a-okr-td.num.is-zero{ color:var(--a-faint); }
.alt-app .a-okr-td .a-okr-bar:not(.a-toolbar){ min-width:70px; }
/* Row grid is `.okr-report-objrow.a-okr-row` in CSS/okr-report-card.css (same specificity, loads later, so it wins).
   `--a-okr-disc` and `--a-okr-checkw` size `.a-okr-disc` (row disclosure) and `.a-okr-check` (selection checkbox);
   `.a-okr-c-title`'s sub-line indent reads both. Declared once on `.alt-app`. */
.alt-app{
  --a-okr-disc:22px;
  --a-okr-checkw:16px;
}
.alt-app .a-okr-row{
  display:grid; align-items:center; gap:var(--a-3); min-width:0;
}

/* The group: a heading, its counts, and a body that folds. `.collapsed` hides the body, not the
   group, so a folded area still reports what is inside. */
.alt-app .a-okr-group{
  display:flex; flex-direction:column; min-width:0;
  border-top:1px solid var(--a-line-soft);
}
.alt-app .a-okr-group:first-child{ border-top:0; }
.alt-app .a-okr-group.collapsed .a-okr-group-b{ display:none; }
.alt-app .a-okr-group-h{
  display:flex; align-items:center; gap:var(--a-2); min-width:0; width:100%;
  padding:9px var(--a-3); border:0; border-radius:var(--a-r-sm);
  background:transparent; color:var(--a-text); text-align:left; cursor:pointer;
  font:700 var(--a-fs-ctl-sm)/var(--a-lh-ui) var(--a-body);
}
.alt-app .a-okr-group-h:hover{ background:var(--a-raised); }
.alt-app .a-okr-group-h:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
/* The chevron turns rather than swapping glyph, so the two states are one object in two
   positions. `--a-quick` is zeroed for anybody who asked for less movement. */
.alt-app .a-okr-group-h .cv{
  display:flex; flex:0 0 auto; color:var(--a-faint);
  transition:transform var(--a-quick) var(--a-ease);
}
.alt-app .a-okr-group-h .cv > svg{ width:14px; height:14px; }
.alt-app .a-okr-group-h[aria-expanded="false"] .cv{ transform:rotate(-90deg); }
.alt-app .a-okr-group-h .nm{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* THE GROUP'S OWN SENTENCE — "9 in flight · 7 behind · 0 slightly behind · 0 on track". Quiet,
   pushed to the right, and it is the reason a folded group is still worth folding. */
.alt-app .a-okr-group-meta{
  display:flex; align-items:center; flex-wrap:wrap; gap:var(--a-2); min-width:0;
  margin-left:auto; font:600 var(--a-fs-11)/var(--a-lh-ui) var(--a-body); color:var(--a-faint);
  font-variant-numeric:tabular-nums;
}
.alt-app .a-okr-group-meta > *{ flex:0 0 auto; }
.alt-app .a-okr-group-b{ display:flex; flex-direction:column; gap:2px; min-width:0; padding-bottom:var(--a-2); }

/* The row is dense by construction: a minimum well under `--a-row`, one line of title, everything
   else in a fixed track. The left edge carries health as a 3px spine (zero width cost), never the
   only signal; the status column holds the word. */
.alt-app .a-okr-row{
  padding:6px var(--a-3); min-height:34px;
  border:1px solid transparent; border-left:3px solid var(--okr-c, transparent);
  border-radius:var(--a-r-sm); background:transparent; cursor:pointer;
  color:inherit; font:inherit; text-align:left; width:100%;
}
.alt-app .a-okr-row:hover{ background:var(--a-raised); border-color:var(--a-line-soft); border-left-color:var(--okr-c, var(--a-line)); }
.alt-app .a-okr-row:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
/* An objective is the headline and a key result the evidence. The objective is heavier at the
   left margin; the measure is indented inside its own cell, not by a different track count, so
   every column stays under its header. */
.alt-app .a-okr-row.is-obj{ min-height:38px; }
.alt-app .a-okr-row.is-obj .a-okr-t{ font-weight:600; }
.alt-app .a-okr-row.is-kr{ min-height:32px; }
.alt-app .a-okr-row.is-kr .a-okr-c-title{ padding-left:var(--a-6); }
.alt-app .a-okr-row.is-kr .a-okr-t{ font-size:var(--a-fs-ctl-sm); color:var(--a-dim); }
/* Selected for a bulk action, and open in the drawer, are two different states that can both be
   true. Selection is a ground; open is a spine and a border, so a selected-and-open row still
   reads as both. */
.alt-app .a-okr-row.sel{ background:var(--a-blue-soft); border-color:var(--a-blue); }
.alt-app .a-okr-row.open{ background:var(--a-raised); border-color:var(--a-line-strong); }
.alt-app .a-okr-row.open .a-okr-t{ color:var(--a-text); }

/* The disclosure is its own target inside the title cell: it opens the measures, the title opens
   the objective. 26px is above the 24px target floor. */
.alt-app .a-okr-disc{
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  width:var(--a-okr-disc, 22px); height:var(--a-okr-disc, 22px);
  padding:0; border:0; border-radius:var(--a-r-sm);
  background:transparent; color:var(--a-faint); cursor:pointer;
  transition:transform var(--a-quick) var(--a-ease);
}
.alt-app .a-okr-disc:hover{ background:var(--a-panel); color:var(--a-text); }
.alt-app .a-okr-disc:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
.alt-app .a-okr-disc > svg{ width:14px; height:14px; }
.alt-app .a-okr-disc[aria-expanded="false"]{ transform:rotate(-90deg); }
/* A row with nothing under it keeps the space but not the control, so titles start on one
   vertical line. The list emits an empty `<span class="a-okr-disc">`; a span is not a button, so
   it must not answer a hover as one. */
.alt-app span.a-okr-disc{ pointer-events:none; }
.alt-app .a-okr-disc.none{ visibility:hidden; pointer-events:none; }

/* THE TITLE CELL: disclosure, selection, dot, title, and an optional second line. One line by
   construction — `white-space:nowrap` on the title, not a hope that the content is short. */
.alt-app .a-okr-c-title{
  display:flex; align-items:center; flex-wrap:wrap; gap:1px var(--a-2); min-width:0;
}
/* `flex:1 1 0`, not `flex:1 1 auto`: a wrapping flex container breaks lines on each item's
   flex-basis, so a long title's full-width `auto` basis pushed it onto its own line, leaving a
   lone coloured dot. Zero basis keeps the title on the control's line. */
.alt-app .a-okr-t{
  min-width:0; flex:1 1 0; font-size:var(--a-fs-ctl); line-height:var(--a-lh-ui); color:var(--a-text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
/* The sub-line ("Lena Marsh - 2026 Q3 - 3 key results") is optional and one line: it separates
   objectives with similar titles, and a wrapping one makes rows different heights. */
.alt-app .a-okr-sub{
  min-width:0; font-size:var(--a-fs-11); line-height:var(--a-lh-ui); color:var(--a-faint);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
/* A title that opens something is a real `<button>`, but `.a-btn` is inline-flex and
   `text-overflow:ellipsis` doesn't apply to a flex container, so a long title pushed the health
   chip off the line. Blockifying restores the ellipsis and strips the chrome. */
.alt-app button.a-okr-t{
  display:block; height:auto; min-height:0; padding:0; text-align:left;
  background:none; border:0; border-radius:var(--a-r-sm);
  color:var(--a-text); font-family:var(--a-body); font-weight:600; cursor:pointer;
}
.alt-app button.a-okr-t:hover{ color:var(--a-blue-text); text-decoration:underline; }
.alt-app button.a-okr-t:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }

/* The sub-line takes its own line only where it is a second row of a horizontal line: the list's
   title cell and the drawer's measure headline (`flex:1 1 100%`). Not on the base class:
   `.a-okr-sub` is also a direct child of the column `.a-okr-krrow`, where a 100% basis means
   100% of the height. Controls stay on the title's line since they act on the objective. */
.alt-app .a-okr-c-title > .a-okr-sub,
.alt-app .a-okr-krrow-t > .a-okr-sub{ flex:1 1 100%; }
/* The indent is computed from the controls actually present, so the second line starts under the
   first line's text, not its chevron. The two cases differ by the selection box (objectives
   only); `:has()` asks instead of guessing. Both sums use the custom properties the controls are
   sized with, so the phone's larger targets move the indent with them. */
.alt-app .a-okr-c-title > .a-okr-sub{
  padding-left:calc(var(--a-okr-disc, 22px) + 6px + var(--a-2) * 2);
}
.alt-app .a-okr-c-title:has(> .a-okr-check) > .a-okr-sub{
  padding-left:calc(var(--a-okr-checkw, 16px) + var(--a-okr-disc, 22px) + 8px + var(--a-2) * 3);
}
/* Progress is a bar then a number: the bar is the comparison, the figure the fact. The figure is
   fixed-width and tabular so bars end in the same place. An objective with no key results writes
   an em dash, which must line up with the percentages above. */
.alt-app .a-okr-c-progress{
  display:flex; align-items:center; gap:var(--a-2); min-width:0;
}
.alt-app .a-okr-c-progress .a-okr-bar:not(.a-toolbar){ flex:1 1 auto; min-width:44px; }
.alt-app .a-okr-c-progress .a-okr-num{ flex:0 0 40px; text-align:right; color:var(--a-text); }


/* ---------- the canonical progress control, in a list cell ----------
   The key-result row carries the classic board's control; the product's promise (help/help-okrs.html) is "the
   progress bar is the control". The slider has a 32px touch target (was 16px), padded without moving anything,
   and the check-in prompt is floated out of flow under its bar so the list doesn't jump mid-gesture. */
.alt-app .a-okr-c-progress{ position:relative; }
.alt-app .a-okr-c-progress .okr-progress-row{ flex:1 1 auto; min-width:0; margin-top:0; }
.alt-app .a-okr-c-progress .okr-prog-num input{ width:62px; }
.alt-app .a-okr-c-progress .okr-progress-live{ padding:13px 0; margin:-13px 0; }
.alt-app .a-okr-c-progress .okr-checkin-prompt{
  position:absolute; top:calc(100% + 4px); right:0; z-index:2; width:min(300px, 80vw);
}
@media (max-width:820px){
  .alt-app .a-okr-c-progress{ flex:1 1 210px; min-width:200px; }
}

/* ---------- the flow dialogs: templates, import, export, print, bulk ----------
   A flex item with `overflow:auto` has a min-content height of zero, which made sections of
   these dialogs invisible (a 389px table in a 2px box). `flex:0 0 auto` on every direct child
   makes each section as tall as its contents, so the pane scrolls. */
.alt-app .a-okr-flow-b > *{ flex:0 0 auto; }

/* The dialog is as tall as what it holds: `.a-modal`'s fixed height (alt-shell.css) suits the
   settings dialog but left 300px of empty box under three template cards. A maximum keeps the cap. */
.alt-app .a-modal.a-okr-flow{ height:auto; max-height:min(760px, 88vh); }

/* The shared bulk pane's markup: okr-bulk.js emits these classes and no stylesheet defines them
   (the classic page renders them undressed too). Dressed here, not in CSS/okr.css, because this
   page is what puts the pane in front of somebody. */
.alt-app .okr-bulk-tools{
  display:flex; align-items:center; flex-wrap:wrap; gap:var(--a-2);
  padding-bottom:var(--a-2); border-bottom:1px solid var(--a-line-soft);
}
.alt-app .okr-bulk-count{ font:600 var(--a-fs-ctl-sm)/var(--a-lh-ctl) var(--a-body); color:var(--a-dim); }
.alt-app .okr-bulk-list{
  display:flex; flex-direction:column; gap:2px;
  max-height:min(46vh, 340px); overflow-y:auto; margin:var(--a-2) 0;
}
.alt-app .okr-bulk-list label{
  display:flex; align-items:flex-start; gap:var(--a-2);
  padding:6px var(--a-2); border-radius:var(--a-r-sm); cursor:pointer; min-height:32px;
}
.alt-app .okr-bulk-list label:hover{ background:var(--a-raised); }
.alt-app .okr-bulk-status{ font-size:var(--a-fs-ctl-sm); color:var(--a-dim); min-height:18px; }
.alt-app .okr-bulk-status.err{ color:var(--a-red); }
.alt-app .group-pick-main{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.alt-app .group-pick-name{
  font:600 var(--a-fs-ctl)/var(--a-lh-ui) var(--a-body); color:var(--a-text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.alt-app .group-pick-sub{ font-size:var(--a-fs-11); color:var(--a-faint); }

/* A measure in the drawer is a block, not a row: a wrapping flex row put the drag control and
   four buttons on the headline's line and made every measure a different height. The row
   carries `data-kr-row` and holds several controls, so no `cursor:pointer`. */
.alt-app .a-okr-krlist{ display:flex; flex-direction:column; gap:var(--a-2); min-width:0; }
.alt-app .a-okr-krrow{
  display:flex; flex-direction:column; align-items:stretch; gap:6px; min-width:0; width:100%;
  padding:9px var(--a-3); border-radius:var(--a-r-sm);
  border:1px solid var(--a-line-soft); border-left:3px solid var(--okr-c, var(--a-line-strong));
  background:var(--a-panel); color:inherit; text-align:left;
}
.alt-app .a-okr-krrow:focus-within{ border-color:var(--a-line-strong); border-left-color:var(--okr-c, var(--a-line-strong)); }
/* The headline: dot, title, health, and the trend pushed to the far end by `.a-spacer`. */
.alt-app .a-okr-krrow-t{
  display:flex; align-items:center; flex-wrap:wrap; gap:6px var(--a-2); min-width:0;
}
/* Everything on this line holds its size except the title, which gives: `flex:0 0 auto` suits
   the dot/chip/trend but a long title pushed its chip to a second line. Zero basis on the title
   means it can't overflow; source order settles the specificity tie. */
.alt-app .a-okr-krrow-t > *{ flex:0 0 auto; }
.alt-app .a-okr-krrow-t > .a-okr-t{ flex:1 1 0; min-width:0; }
.alt-app .a-okr-krrow-t .a-spacer{ flex:1 1 auto; min-width:0; }
/* The facts line wraps (five labelled facts, three lines at 390px): clipping it would hide the
   pace that explains the health chip. The list's sub-line stays one line, where every row must
   be the same height. */
.alt-app .a-okr-krrow > .a-okr-sub{
  flex:0 0 auto; white-space:normal; overflow:visible; line-height:var(--a-lh-body);
}
.alt-app .a-okr-krrow > .a-okr-bar:not(.a-toolbar){ min-width:60px; }


/* ================= 9 - Flows, templates, import/export and settings =================
   Multi-step surfaces hosted in the shared modal, whose frame, elevation and dismissal come from
   alt-shell.css; this is only the inside. */
.alt-app .a-okr-flow{
  display:flex; flex-direction:column; min-width:0; min-height:0; gap:0; flex:1 1 auto;
}
.alt-app .a-okr-flow-h{
  flex:0 0 auto; display:flex; align-items:center; gap:var(--a-2); flex-wrap:wrap; min-width:0;
  padding:var(--a-3) var(--a-4); border-bottom:1px solid var(--a-line);
  font:700 var(--a-fs-16)/var(--a-lh-tight) var(--a-display); color:var(--a-text);
}
.alt-app .a-okr-flow-h .a-spacer{ flex:1 1 auto; }
.alt-app .a-okr-flow-b{
  flex:1 1 auto; min-height:0; min-width:0; overflow-y:auto; overflow-x:hidden;
  display:flex; flex-direction:column; gap:var(--a-4); padding:var(--a-4);
}
/* Sticky for the same reason the drawer's footer is: on a short window the flow's body scrolls
   and "Upload & preview" must not be a screen below the fold of the thing it acts on. */
.alt-app .a-okr-flow-f{
  flex:0 0 auto; position:sticky; bottom:0;
  display:flex; align-items:center; flex-wrap:wrap; gap:var(--a-2); min-width:0;
  padding:var(--a-3) var(--a-4);
  padding-bottom:calc(var(--a-3) + env(safe-area-inset-bottom, 0px));
  background:var(--a-raised); border-top:1px solid var(--a-line);
}
.alt-app .a-okr-flow-f .a-spacer{ flex:1 1 auto; }

/* The drop zone is dashed because it accepts something, and a real control with a focus ring and
   keyboard path, since a drop target reachable only by dragging excludes keyboard users. */
.alt-app .a-okr-drop{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--a-2);
  min-height:150px; padding:var(--a-5); text-align:center;
  border:2px dashed var(--a-line); border-radius:var(--a-r-lg);
  background:var(--a-panel); color:var(--a-dim); font-size:var(--a-fs-ctl); line-height:var(--a-lh-body);
  transition:border-color var(--a-quick) var(--a-ease), background var(--a-quick) var(--a-ease);
}
.alt-app .a-okr-drop:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
.alt-app .a-okr-drop.over,
.alt-app .a-okr-drop.dragover{ border-color:var(--a-blue); background:var(--a-blue-soft); color:var(--a-blue-text); }
.alt-app .a-okr-drop small{ font-size:var(--a-fs-11); color:var(--a-faint); }

/* COLUMN MAPPING. One row per source column: what the file called it, and what it becomes. Two
   fixed tracks and a middle that gives, so the selects all line up down the page. */
.alt-app .a-okr-map{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.alt-app .a-okr-maprow{
  display:grid; align-items:center; gap:var(--a-2); min-width:0;
  grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);
  padding:6px var(--a-2); border-radius:var(--a-r-sm);
  border:1px solid var(--a-line-soft); background:var(--a-panel);
  font-size:var(--a-fs-ctl-sm);
}
.alt-app .a-okr-maprow > .src{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--a-dim); }
.alt-app .a-okr-maprow > .arw{ color:var(--a-faint); text-align:center; }
/* A column the mapper could not place is not an error, it is a decision waiting — amber, because
   nothing is wrong yet and red would say something is. */
.alt-app .a-okr-maprow.unmapped{ border-color:var(--a-amber); background:var(--a-amber-soft); }
.alt-app .a-okr-maprow.invalid{ border-color:var(--a-red); background:var(--a-red-soft); }

/* THE IMPORT PREVIEW. It is the widest thing in this application and it scrolls in its own box —
   the same rule as every other table here, and the same reason. */
.alt-app .a-okr-preview{
  min-width:0; max-width:100%; max-height:46vh;
  overflow:auto; overscroll-behavior:contain;
  border:1px solid var(--a-line-soft); border-radius:var(--a-r);
}
.alt-app .a-okr-preview .a-okr-table{ font-size:var(--a-fs-ctl-sm); }
.alt-app .a-okr-preview .a-okr-td{ padding:5px 8px; white-space:nowrap; }


/* ================= 11 - Print =================
   A printed OKR review is a document: chrome off, black on white. Status survives in words, so every pill
   prints as an outlined box with its label (markup must emit the status word in the pill).
   `print-color-adjust:exact` is only on the bars, where a magnitude is worth keeping in colour. */
@media print{
  .alt-app .a-top,
  .alt-app .a-status,
  .alt-app .a-scrim,
  .alt-app .a-okr-chips,
  .alt-app .a-okr-print .a-btn,
  .alt-app .a-okr-print .a-okr-check,
  .alt-app .a-okr-print .a-okr-disc,
  .alt-app .a-okr-print .a-okr-tscroll::-webkit-scrollbar{ display:none; }

  .alt-app,
  .alt-app .a-page,
  .alt-app .a-main,
  .alt-app .a-centre{
    height:auto; max-height:none; overflow:visible; display:block;
    background:#fff; color:#000;
  }
  .alt-app .a-okr-print{
    display:block; background:#fff; color:#000;
    font-family:var(--a-body); font-size:11pt; line-height:var(--a-lh-ui);
  }
  /* AN OBJECTIVE AND ITS MEASURES ARE ONE THING, so they do not break across a page. */
  .alt-app .a-okr-print .a-okr-group,
  .alt-app .a-okr-print .a-okr-row.is-obj,
  .alt-app .a-okr-print .a-okr-krrow{ break-inside:avoid; page-break-inside:avoid; }
  .alt-app .a-okr-print .a-okr-group-h{ break-after:avoid; page-break-after:avoid; }

  .alt-app .a-okr-print .a-okr-row,
  .alt-app .a-okr-print .a-okr-krrow,
  .alt-app .a-okr-print .a-okr-tr{
    border-color:#999; border-left-color:#999; background:#fff; color:#000;
  }
  .alt-app .a-okr-print .a-okr-t,
  .alt-app .a-okr-print .a-okr-td,
  .alt-app .a-okr-print .a-okr-num{ color:#000; }
  .alt-app .a-okr-print .a-okr-sub,
  .alt-app .a-okr-print .a-okr-lbl,
  .alt-app .a-okr-print .a-okr-th{ color:#333; background:#fff; }
  /* THE WORD, IN A BOX. No wash — a 16%-alpha tint prints as a grey smear that makes the label
     harder to read, which is the opposite of what it is here for. */
  .alt-app .a-okr-print .a-okr-pill{
    background:#fff; color:#000; border:1px solid #000;
    -webkit-print-color-adjust:exact; print-color-adjust:exact;
  }
  .alt-app .a-okr-print .a-okr-pill::before{ display:none; }
  /* The dot alone means nothing on paper, so it is drawn as an outline the caption sits beside
     rather than as a filled disc that reads as a printing artefact. */
  .alt-app .a-okr-print .a-okr-dot{ background:#fff; border:1px solid #000; }
  .alt-app .a-okr-print .a-okr-bar:not(.a-toolbar){
    border:1px solid #000; background:#fff;
    -webkit-print-color-adjust:exact; print-color-adjust:exact;
  }
  .alt-app .a-okr-print .a-okr-bar:not(.a-toolbar) > i{
    -webkit-print-color-adjust:exact; print-color-adjust:exact;
  }
  /* The board and tables stop scrolling and start wrapping — a scroll container prints only its
     visible slice, the most common way a printed report loses half its data. */
  .alt-app .a-okr-print .a-okr-tscroll,
  .alt-app .a-okr-print .a-okr-preview{ overflow:visible; max-height:none; }
  .alt-app .a-okr-print .a-okr-panel{
    background:#fff; border:1px solid #000; break-inside:avoid; page-break-inside:avoid;
  }
  /* The sticky headers un-stick: on paper "sticky" means the header prints once, at the top of
     page one, and every following page is unlabelled columns. */
  .alt-app .a-okr-print .a-okr-th{ position:static; background:#fff; }
  /* The chart's strokes are inline `style` (`stroke:var(--a-blue)`), which no rule can override
       without `!important`; redefining the two tokens inside the printable view reaches them
       through the cascade, and everything else in there too. */
  .alt-app .a-okr-print{ --a-blue:#000; --a-blue-text:#000; --a-blue-fill:#000; --a-dim:#555; }
}


/* ================= 12 - Responsive =================
   The same six breakpoints as alt-responsive.css, no seventh (a breakpoint here would be a second
   responsive story for one page). At every width there is no horizontal page scroll, 1920 down
   to 320; wide content scrolls inside its own box. */


/* ---------- <=1179: the tightest the list goes ----------
   Below this tracks would be narrower than their content, so <=1023 stacks instead. The old two-row grid is
   gone for the same reason as the base rule's seven tracks (see `.alt-app .a-okr-row`); CSS/okr-report-card.css
   ties and loads later. `row-gap` and the two sibling rules below are not declared there, so they still apply. */
@media (max-width:1179px){
  .alt-app .a-okr-row{ row-gap:3px; }
  .alt-app .a-okr-c-title{ grid-column:1 / -1; }
  .alt-app .a-okr-c-progress{ min-width:90px; }
}


/* ---------- <=820: tablet portrait. The list stops being a grid ----------
   Seven tracks in 780px is seven ellipses, so the row becomes a wrapping flex box: title on its
   own line, then health, progress, owner, area, updated (the wireframe's mobile order); nothing
   is dropped. The header goes with the grid it named; each remaining cell is self-describing. */
@media (max-width:820px){
  .alt-app .a-okr-row{
    display:flex; flex-wrap:wrap; align-items:center; gap:6px var(--a-2);
    padding:8px var(--a-2); min-height:var(--a-row);
  }
  .alt-app .a-okr-c-title{ flex:1 1 100%; }
  .alt-app .a-okr-c-progress{ flex:1 1 130px; min-width:110px; }
  .alt-app .a-okr-row.is-kr .a-okr-c-title{ padding-left:var(--a-5); }
}

/* ---------- <=639: phone ----------
   alt-responsive.css raises `--a-row` to 48px and control heights to 34/38 here, so a list row
   inherits its minimum from the token. Below is what the token can't say. */
@media (max-width:639px){

  /* THE ROW KEEPS THE PHONE'S TARGET HEIGHT, which is `--a-row` — 48px here, set by the token.
     Restating 48 as a literal would be a second answer to a question already answered. */
  .alt-app .a-okr-row{ min-height:var(--a-row); padding:9px var(--a-2); }
  .alt-app .a-okr-row.is-obj,
  .alt-app .a-okr-row.is-kr{ min-height:var(--a-row); }
  .alt-app .a-okr-row.is-kr .a-okr-c-title{ padding-left:var(--a-4); }
  .alt-app .a-okr-t{ font-size:var(--a-fs-14); }
  /* Tap targets. The 22px disclosure is too small for a thumb; 32px is the phone floor, raised via the shared token
       so the sub-line indent follows. `--a-okr-checkw` is not raised: `.a-okr-check` sits inside `label.a-check-l`,
       which alt-responsive.css sizes with a 32px `min-height` and a selector that outranks `.alt-app .a-okr-check`
       (a bigger box would never paint). It stays 18px for the `.a-okr-sub` padding calc. */
  .alt-app{ --a-okr-disc:32px; --a-okr-checkw:18px; }
  .alt-app .a-okr-group-h{ min-height:40px; }
  .alt-app .a-okr-krrow{ min-height:40px; }
  .alt-app .a-okr-pill{ min-height:26px; }
  .alt-app .a-okr-chips .a-chip{ min-height:var(--a-chip-h); }   /* 26px at this width: the narrow ladder line sets --a-chip-h (alt-responsive.css) */
  .alt-app .a-okr-maprow{ grid-template-columns:minmax(0,1fr); gap:4px; }
  .alt-app .a-okr-maprow > .arw{ text-align:left; }
  .alt-app .a-okr-flow-b{ padding:var(--a-3); gap:var(--a-3); }
  .alt-app .a-okr-flow-h,
  .alt-app .a-okr-flow-f{ padding:var(--a-2) var(--a-3); }
  .alt-app .a-okr-drop{ min-height:120px; padding:var(--a-4); }
}

/* ================= Motion: the micro response =================
   Bars, ring and chevrons already animate (`--dur-progress`, `--a-quick`); this adds `--dur-micro` (140ms linear,
   sys_design-system.md §2b) for hover rules, including the six status filter tiles. Colour/background only: no
   `box-shadow` (paint the compositor can't skip) or layout properties. alt-tokens.css zeroes `--dur-micro` for reduced motion. */
.alt-app .a-okr-row,
.alt-app button.a-okr-t,
.alt-app .a-okr-tr,
.alt-app .a-okr-group-h,
.alt-app .a-okr-check,
.alt-app .okr-bulk-list label,
.alt-app .a-okr-chips .a-chip .x{
  transition:background-color var(--dur-micro, 140ms) linear,
             border-color     var(--dur-micro, 140ms) linear,
             color            var(--dur-micro, 140ms) linear,
             opacity          var(--dur-micro, 140ms) linear;
}
/* Both halves on one control: rotation is the disclosure's travel (`--a-quick`), ground and
   glyph colour are the hover (`--dur-micro`). Restated together because a bare `transition`
   would replace the rule above. */
.alt-app .a-okr-disc{
  transition:transform        var(--a-quick) var(--a-ease),
             background-color var(--dur-micro, 140ms) linear,
             color            var(--dur-micro, 140ms) linear;
}
