/* shell.css — the rail, the topbar, the board and the one ticket row — part of the signed v3 console's styles (design/ui-lab/foundry-v3 at 0af1799be),
   every selector scoped to #app so the sign-in door in style.css keeps its own rules. Split in
   two because no served file may exceed 500 lines. */
/* app.css — the Codex baseline of 12 September, written out readably, plus the styles the kept
 * parts need (the confirm sheet, the folded record, the criteria list, the ask block, the class
 * marks). Tokens and component shapes are Codex's (reference/codex-reimagined.css); everything
 * below the "kept parts" line is new and follows them.
 *
 * One style. The three-style toggle of v2 is gone on the founder's ruling: "let's work from here".
 */
#app {
  --ink: #20252b; --muted: #68717d; --faint: #8c939c; --blue: #006ce0; --line: #e7e9ed;
  --bg: #f5f6f8; --green: #258265; --orange: #ab671a; --red: #b4433a; --violet: #7b5cc4;
  --radius: 18px;
  --control-height: 36px; --control-radius: 8px; --control-border: #ccd4df;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
#app * { box-sizing: border-box; }
#app { overflow-x: hidden; }
#app {
  margin: 0; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg); letter-spacing: -.015em;
}
#app button, #app input, #app textarea, #app select { font: inherit; }
#app button { cursor: pointer; border: 0; background: none; color: inherit; }
#app button:disabled { cursor: default; opacity: .5; }
#app button, #app a, #app input, #app textarea, #app summary, #app select { outline-offset: 4px; }
#app button:focus-visible, #app a:focus-visible, #app input:focus-visible, #app summary:focus-visible { outline: 3px solid #68aaf3; }
#app button { transition: background .16s, box-shadow .16s, transform .16s; }
#app button:hover { background: #edf0f4; }
#app svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.65; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
#app a { color: var(--blue); text-decoration: none; }
#app .skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
#app .skip:focus { left: 8px; }
/* ── shell ─────────────────────────────────────────────────────────────────────────────────── */
#app .shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: 100vh; }
#app .sidebar { background: #eff1f4; border-right: 1px solid #e2e5e9; padding: 30px 18px 20px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
#app .brand { font-size: 23px; font-weight: 700; letter-spacing: -1px; padding: 0 13px 37px; display: flex; gap: 10px; align-items: center; }
#app .brand svg { width: 25px; height: 25px; }
#app .project { margin: 0 4px 30px; padding: 12px; background: #fff9; border: 1px solid #dde1e7; border-radius: 12px; display: flex; align-items: center; gap: 10px; width: calc(100% - 8px); text-align: left; }
#app .project b { display: block; font-size: 13px; }
#app .project small { color: var(--muted); font-size: 11px; }
#app .project .square { height: 32px; width: 32px; border-radius: 9px; background: #e5edf8; display: grid; place-items: center; color: var(--blue); }
#app .navlabel { font-size: 10px; font-weight: 600; letter-spacing: .08em; color: #737b86; padding: 0 13px 9px; text-transform: uppercase; }
#app nav#nav { display: grid; gap: 4px; }
#app nav#nav a, #app .side-search { display: flex; align-items: center; gap: 11px; width: 100%; border-radius: 9px; padding: 10px 13px; text-align: left; font-size: 13px; font-weight: 500; color: #59616b; }
#app nav#nav a:hover { background: #e6eaef; }
#app nav#nav a[aria-current="page"] { background: #dfe9f7; color: #155dab; }
#app nav#nav .count { margin-left: auto; border-radius: 6px; padding: 0 6px; background: #cbdcf2; color: #215c9e; font-size: 11px; }
#app .side-search { margin-top: 28px; }
#app .shortcut { font-size: 10px; color: #8a919b; margin-left: auto; border: 1px solid #d9dde3; border-radius: 4px; padding: 1px 4px; }
#app .sidebottom { margin-top: auto; padding: 18px 12px 0; color: var(--muted); font-size: 11px; }
#app .avatar { display: inline-grid; place-items: center; background: #dadfe6; color: #596574; font-weight: 600; width: 29px; height: 29px; border-radius: 50%; margin-right: 8px; }
#app .identity { display: flex; align-items: center; border-bottom: 1px solid #dfe3e9; padding-bottom: 18px; margin-bottom: 16px; }
#app .identity b { font-size: 12px; color: #474f59; }
#app .sidebottom p { margin: 5px 0; }
#app .sidebottom button { padding: 0; color: var(--blue); font-size: 11px; }
#app .main { min-width: 0; }
#app .topbar { height: 70px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 42px; background: #ffffffa6; position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); }
#app .crumb { color: #707985; font-size: 12px; display: flex; gap: 12px; align-items: center; }
#app .crumb b { color: #343b44; font-weight: 500; }
#app .content { max-width: 1370px; margin: auto; padding: 36px 42px 60px; }
#app .content:focus { outline: none; }
#app .on-board .content { max-width: 1600px; padding-left: 28px; padding-right: 28px; }
#app .tabbar { display: none; }
/* ── type ──────────────────────────────────────────────────────────────────────────────────── */
#app .eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .105em; text-transform: uppercase; color: #7d8590; margin-bottom: 10px; }
#app h1 { font-size: 36px; letter-spacing: -1.5px; line-height: 1.17; font-weight: 650; margin: 0 0 12px; text-wrap: balance; }
#app h2 { font-size: 23px; letter-spacing: -.65px; line-height: 1.25; margin: 0; }
#app h3 { font-size: 15px; line-height: 1.4; margin: 0; }
#app h4 { font-size: 12px; margin: 14px 0 8px; color: var(--muted); font-weight: 600; }
#app .lead { font-size: 14px; color: var(--muted); margin: 0; max-width: 650px; }
#app .headingline { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
#app .quiet-link { color: var(--blue); font-size: 12px; padding: 7px 10px; border-radius: 7px; white-space: nowrap; background: none; }
#app .summaryline { display: flex; gap: 25px; margin: 25px 0 30px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
#app .summaryline b { color: var(--ink); font-size: 18px; margin-right: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
#app .summaryline .separator { height: 20px; width: 1px; background: #dce1e8; }
#app .summaryline a { color: inherit; }
#app .sectionhead { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 16px; gap: 12px; }
#app .sectionhead h2 { font-size: 19px; }
#app .sectionhead small { color: var(--muted); font-size: 11px; }
#app .sectionintro { font-size: 12px; color: var(--muted); max-width: 750px; margin: 12px 0 20px; }
#app .footnote { font-size: 10px; color: #89919b; margin: 12px 4px; }
#app .meta { color: var(--muted); font-size: 10px; word-break: break-word; }
#app .longtext { font-size: 12px; line-height: 1.75; color: #66717e; }
#app .note { color: var(--muted); background: #eceff3; padding: 15px 18px; border-radius: 10px; font-size: 12px; }
#app .resultnotice { border: 1px solid #c6dded; background: #f3f8fc; border-radius: 12px; padding: 14px 17px; margin-bottom: 22px; font-size: 12px; color: #406885; }
/* ── tags, chips, buttons ──────────────────────────────────────────────────────────────────── */
#app .tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; padding: 4px 8px; border-radius: 5px; background: #edf6f1; color: #37775e; font-weight: 550; white-space: nowrap; }
#app .tag.amber, #app .chip.t-call { background: #faf0e1; color: #976329; }
#app .tag.blue, #app .chip.t-plan { background: #edf4fc; color: #396eaa; }
#app .tag.grey, #app .chip.t-idle { background: #eef0f3; color: #6b7480; }
#app .tag.red, #app .chip.t-stop { background: #fbeaea; color: #a43d35; }
#app .tag.violet { background: #f0ebfa; color: #6a4fb3; }
#app .chip { display: inline-flex; align-items: center; font-size: 10px; padding: 4px 8px; border-radius: 5px; font-weight: 550; white-space: nowrap; background: #edf6f1; color: #37775e; }
#app .chip.t-live { background: #e3efff; color: #1e5fb4; }
#app .chip.t-done { background: #edf6f1; color: #37775e; }
#app .btn { min-height: var(--control-height); padding: 8px 14px; border: 1px solid var(--control-border); border-radius: var(--control-radius); font-size: 12px; line-height: 1.4; font-weight: 600; background: #fff; display: inline-flex; gap: 7px; align-items: center; justify-content: center; color: var(--ink); }
#app .btn:hover { background: #e6e9ee; }
#app .btn.primary, #app .btn.btn-primary { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 0 1px 2px #006ce01a; }
#app .btn.primary:hover, #app .btn.btn-primary:hover { background: #005bc3; }
#app .btn.btn-quiet { background: #fff; color: var(--ink); }
#app .btn.btn-quiet:hover { background: #edf0f4; }
#app .btn.btn-link { border-color: transparent; background: none; color: var(--blue); padding: 0 4px; }
#app .btn.grave, #app .btn.btn-grave { border-color: #e6c3bf; background: #fbeaea; color: #a43d35; }
#app .btn svg { width: 15px; height: 15px; }
#app .acts { display: flex; gap: 8px; flex-wrap: wrap; }
#app .idchip { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 0; white-space: nowrap; }
#app .filterbar { display: flex; gap: 5px; margin: 23px 0; flex-wrap: wrap; }
#app .filterbar a, #app .filterbar button { font-size: 12px; padding: 7px 13px; border-radius: 7px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
#app .filterbar a:hover { background: #e9edf2; }
#app .filterbar .is-on { background: #e1eaf6; color: #1763b9; }
#app .filterbar .n { font-size: 10px; background: #fff8; border-radius: 4px; padding: 0 5px; }
/* ── the dashboard: two blocks, glance and work ────────────────────────────────────────────── */
#app .block { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 22px; margin-top: 22px; }
#app .block-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
#app .block-head h2 { font-size: 15px; letter-spacing: -.2px; }
#app .block-head small { color: var(--muted); font-size: 11px; }
#app .block .segs { margin: 0; }
#app .block .cycle-acts { margin: 0; }
/* One control row: which cycle · what is true of it · what you can do to it. */
#app .cycle-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
#app .cycle-bar .segs { margin: 0; }
#app .cycle-pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
#app .cycle-bar .cycle-acts { margin-left: auto; }
#app .cycle-bar .btn { padding: 8px 13px; }
#app .cycle-bar .btn.btn-quiet { background: #fff; color: var(--ink); box-shadow: none; }
#app .cycle-bar .btn.btn-quiet:hover { background: #f4f6f9; }
#app .cycle-bar .btn[disabled] { color: var(--faint); box-shadow: none; background: #fff; cursor: not-allowed; }
/* The acceptance criteria: one line that says where they stand, the cards behind it. */
#app .acdrawer { border: 1px solid var(--line); border-radius: 12px; background: #fafbfd; margin: 0 0 4px; }
#app .acdrawer > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
#app .acdrawer > summary .tag { white-space: normal; }
#app .acdrawer > summary::-webkit-details-marker { display: none; }
#app .acdrawer .dr-t { font-size: 13px; font-weight: 600; }
#app .acdrawer .dr-x { margin-left: auto; color: var(--faint); font-size: 14px; line-height: 1; }
#app .acdrawer .dr-x::before { content: '›'; display: inline-block; transition: transform .15s; }
#app .acdrawer[open] .dr-x::before { transform: rotate(90deg); }
#app .acdrawer > summary:hover { background: #f2f5f9; border-radius: 12px; }
#app .acdrawer .dr-in { padding: 0 14px 14px; }
#app .acdrawer .points { margin-top: 0; }
#app .acdrawer .point { background: #fff; border: 1px solid var(--line); }
#app .block-cycle .goal { margin: 6px 0 18px; }
#app .block-cycle .goal h2 { font-size: 22px; letter-spacing: -.5px; line-height: 1.3; max-width: 820px; text-wrap: balance; }
#app .block-cycle .goal .meta-line { margin-top: 6px; }
#app .kanban-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
#app .kanban-head h3 { font-size: 13px; }
#app .kanban-head small { color: var(--muted); font-size: 11px; }
#app .block .dash { margin-top: 0; }
#app .block .tile { background: #f5f6f8; border: 0; }
#app .block .points { margin-top: 0; }
#app .block .point { background: #f5f6f8; border: 0; }
#app .block .footnote { margin: 12px 0 0; }
/* ── the board (Overview) ──────────────────────────────────────────────────────────────────── */
#app .board-brief { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 25px; padding: 12px 17px; background: #fff; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 12px; }
#app .board-brief b { color: var(--ink); font-weight: 550; }
#app .board-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 23px 0 20px; gap: 12px; flex-wrap: wrap; }
#app .board-toolbar .filterbar { margin: 0; }
#app .board-toolbar > span { font-size: 10px; color: var(--muted); }
#app .lane { background: #f2f4f7; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
#app .lane-heading { display: flex; align-items: center; gap: 7px; padding: 2px 4px 10px; }
#app .lane-heading > span { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
#app .lane-heading h2 { font-size: 12px; letter-spacing: -.1px; }
#app .lane-heading > b { font-size: 10px; font-weight: 500; margin-left: auto; background: #e1e5ea; color: #6b7480; padding: 1px 6px; border-radius: 5px; font-variant-numeric: tabular-nums; }
#app .lane-cards { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; gap: 7px; align-content: start; padding: 1px; scrollbar-width: thin; }
#app .taskcard { min-width: 0; }
#app .taskcard { border: 1px solid #e3e7ed; border-radius: 9px; background: white; padding: 9px 10px 8px; text-align: left; width: 100%; display: block; color: inherit; }
#app .taskcard:hover { border-color: #a9c6e9; box-shadow: 0 3px 12px #283e5812; }
#app .taskcard h3 { font-size: 12px; line-height: 1.35; font-weight: 600; letter-spacing: -.15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#app .taskcard h3.raw { font-family: var(--mono); font-weight: 400; font-size: 10.5px; color: var(--muted); }
#app .taskcard p { font-size: 10px; color: #78828f; line-height: 1.45; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#app .cardbottom { border-top: 1px solid #eef0f4; padding-top: 6px; display: flex; align-items: center; gap: 4px 7px; font-size: 9px; color: #8b949f; flex-wrap: wrap; min-width: 0; }
#app .cardbottom > span { white-space: nowrap; }
#app .cardbottom .idchip { margin-left: auto; font-size: 9px; }
#app .miniavatar { background: #edf0f6; border-radius: 50%; min-width: 18px; height: 18px; display: inline-grid; place-items: center; color: #697991; font-size: 8px; font-weight: 600; }
#app .lane-empty { border: 1px dashed #d3d9e1; border-radius: 9px; padding: 16px 10px; color: #949ca7; font-size: 11px; line-height: 1.5; }
#app .lane-empty.warn { border-color: #e6c9a0; color: #976329; background: #fdf8f1; }
#app .more-done { font-size: 10px; text-align: center; white-space: normal; width: 100%; }
/* ── the overview's three segments ─────────────────────────────────────────────────────────── */
#app .segs { display: inline-flex; gap: 3px; background: #e9edf2; padding: 4px; border-radius: 11px; margin: 4px 0 26px; }
#app .segs a { padding: 8px 16px; border-radius: 8px; font-size: 13px; color: var(--muted); display: inline-flex; gap: 7px; align-items: center; font-weight: 500; }
#app .segs a:hover { color: var(--ink); }
#app .segs a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #0e1a2a14; font-weight: 600; }
#app .segs .pill { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: #e1e5ea; color: #6b7480; }
#app .segs .pill.on { background: #dcefe6; color: #2a7a5b; }
#app .segs .pill.draft { background: #faf0e1; color: #976329; }
#app .segs .n { font-size: 10px; background: #dfe4ea; color: var(--muted); border-radius: 5px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
#app .segs a[aria-current] .n { background: #e1eaf6; color: #1763b9; }
#app .goalsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; }
#app .gp { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; }
#app .gp h3 { font-size: 12px; margin: 9px 0 4px; line-height: 1.4; }
#app .gp p { font-size: 11px; color: var(--muted); margin: 0; }
#app .fold-h { font-size: 13px; margin: 22px 0 6px; }
#app .fold .goalpanel { margin-top: 8px; }
#app .fold .path { margin-top: 14px; }
#app .nextgoal { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 2px 0 10px; }
#app .nextgoal h1 { font-size: 28px; margin: 12px 0 10px; }
#app .nextgoal .tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
#app .nextpoints { margin: 0 0 12px; font-size: 13px; line-height: 1.7; }
#app .howto { background: #f3f7fc; border-radius: 12px; padding: 16px 20px; margin: 22px 0 0; font-size: 12px; color: #4d6478; }
#app .howto h3 { font-size: 12px; margin: 0 0 6px; color: #385f8a; }
#app .howto ul { margin: 0; padding-left: 18px; line-height: 1.75; }
#app .howto p { margin: 10px 0 0; }
#app .rowwrap { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
#app .rowwrap:last-child { border-bottom: 0; }
#app .rowwrap .row { border-bottom: 0; flex: 1; min-width: 0; }
#app .rowwrap .rowacts { padding: 0 16px 0 0; flex-shrink: 0; }
#app .btn.pull { color: var(--blue); white-space: nowrap; }
#app details.done { border-bottom: 1px solid var(--line); padding: 0; }
#app details.done:last-child { border-bottom: 0; }
#app .done > summary { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: baseline; padding: 14px 21px; list-style: none; font-weight: 400; }
#app .done > summary::-webkit-details-marker { display: none; }
#app .done > summary:hover { background: #fafbfd; }
#app .done-t .raw { font-size: 12px; }
#app .done-when { font-size: 11px; color: var(--muted); white-space: nowrap; }
#app .done-span { font-size: 11px; color: var(--ink); font-weight: 550; white-space: nowrap; min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
#app .done-body { padding: 4px 21px 18px; }
#app .done-body h4 { margin: 16px 0 6px; }
#app .done-line { font-size: 11px; color: var(--muted); margin: 10px 0 8px; }
#app .facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
#app .fact { background: #f5f6f8; border-radius: 9px; padding: 10px 12px; min-width: 0; }
#app .fact b { display: block; font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 3px; }
#app .fact span { font-size: 13px; font-weight: 550; display: block; overflow-wrap: anywhere; }
#app .fact small { font-size: 10px; color: var(--faint); display: block; margin-top: 2px; }
/* ── the dashboard and the completion points ───────────────────────────────────────────────── */
#app .cycle-acts { flex-shrink: 1; min-width: 0; justify-content: flex-end; flex-wrap: wrap; }
#app .dash { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; }
#app .tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
#app .tile h3 { font-size: 9px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: #7d8590; margin: 0 0 4px; }
#app .big { display: block; color: var(--ink); margin: 0 0 4px; }
#app .big b { font-size: 24px; font-weight: 650; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
#app .big span { font-size: 11px; color: var(--muted); }
#app .big.warn b { color: var(--orange); }
#app .tl { display: block; font-size: 11px; color: var(--muted); margin: 0; line-height: 1.5; }
#app .units { display: flex; flex-wrap: wrap; gap: 3px; margin: 2px 0 8px; min-height: 12px; }
#app .u { width: 11px; height: 11px; border-radius: 3px; background: var(--c); display: block; }
#app .u.hollow { background: none; box-shadow: inset 0 0 0 1.5px var(--c); }
#app .u:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
#app .pts, #app .agents { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 4px; align-items: center; }
#app .pts .tl { margin-left: 4px; }
#app .dot { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 8px; font-weight: 700; color: #8b95a3; box-shadow: inset 0 0 0 1.5px #b9c0c9; }
#app .dot.on { background: var(--blue); color: #fff; box-shadow: none; }
#app .pts .dot.on { background: var(--green); }
/* ── the one ticket front page, worn by the card and the row ───────────────────────────────── */
#app .facetop { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-width: 0; flex-wrap: wrap; }
#app .facetop .idchip { font-size: 9px; }
#app .spill { display: inline-flex; align-items: center; min-height: 22px; font-size: 10px; line-height: 1.4; font-weight: 550; letter-spacing: 0; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
#app .facefoot { display: flex; align-items: center; gap: 4px 8px; font-size: 11px; color: var(--muted); flex-wrap: wrap; min-width: 0; }
#app .facefoot > span { white-space: nowrap; font-variant-numeric: tabular-nums; }
#app .taskcard .facefoot { border-top: 1px solid #eef0f4; padding-top: 6px; margin-top: 7px; }
#app .row .facefoot { flex-shrink: 0; justify-content: flex-end; }
#app a.tl { color: var(--blue); }
#app .tl.warn { color: var(--orange); }
#app .points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
#app .point { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
#app .point h3 { font-size: 12px; margin: 6px 0 0; line-height: 1.4; }
#app .point-h { display: flex; align-items: center; gap: 8px; width: 100%; }
#app .ac { white-space: nowrap; font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--ink); background: #e6e9ee; padding: 2px 6px; border-radius: 4px; letter-spacing: 0; }
#app .block-cycle .kanban-head:first-of-type { margin-top: 4px; }
#app .point p { font-size: 11px; color: var(--muted); margin: 0 0 6px; }
#app .point .btn { margin-top: auto; }
#app .btn.small { padding: 7px 12px; font-size: 12px; }
#app .points-sum { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
#app .meta-line { font-size: 11px; color: var(--faint); margin: 10px 0 0; }
#app .pickers { display: flex; gap: 10px; flex-wrap: wrap; margin: -10px 0 4px; }
#app .picker { min-height: var(--control-height); display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; }
#app .picker select { min-width: 0; flex: 1; font: inherit; font-size: 11.5px; color: var(--ink); border: 0; background: none; padding: 1px 2px; max-width: 190px; }
#app .morebar { display: flex; justify-content: center; margin-top: 12px; }
#app .cyc-crit { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
#app .cyc-crit h4 { font-size: 11px; font-weight: 650; color: #7d8590; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px; }
#app .cyc-none { font-size: 12px; color: var(--orange); margin: 0; }
#app .cyc-aclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
#app .cyc-aclist li { display: flex; align-items: center; gap: 9px; font-size: 12px; }
#app .cyc-aclist .ac-t { flex: 1; min-width: 0; }
/* a row that expands in place — same row, a chevron that turns */
#app .rowd { border-bottom: 1px solid var(--line); }
#app .rowd:last-child { border-bottom: 0; }
#app .rowd > summary { list-style: none; cursor: pointer; }
#app .rowd > summary::-webkit-details-marker { display: none; }
#app .rowd > summary .chevron { transition: transform .15s; }
#app .rowd[open] > summary .chevron { transform: rotate(90deg); }
#app .rowd .rowd-in { padding: 0 21px 16px 21px; }
#app .rowd .rowd-in h4 { font-size: 11px; font-weight: 650; color: #7d8590; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 6px; }
#app .rowd .rowd-in > p { font-size: 12px; color: var(--muted); margin: 0 0 10px; line-height: 1.6; }
#app .rowd .acts { margin-top: 10px; }
/* the block pinned above a table: the open cycle, the rules in force */
#app .pinned { margin: 4px 0 26px; }
#app .acdrawer.pin { background: none; border: 0; }
#app .acdrawer.pin > summary { padding: 0 2px 10px; }
#app .acdrawer.pin > summary:hover { background: none; }
#app .acdrawer.pin .dr-t { font-size: 15px; letter-spacing: -.2px; }
#app .acdrawer.pin .dr-in { padding: 0; }
#app .acdrawer .dr-t { flex-shrink: 0; }
#app .fromchip { font-family: var(--mono); font-size: 9px; color: var(--muted); background: #eef1f5; padding: 2px 6px; border-radius: 4px; }
#app .fromchip:hover { color: var(--blue); }
#app .headright { display: flex; align-items: center; gap: 10px; }
#app .list.pad { background: none; border: 0; padding: 0; }
#app .cyclist { display: grid; gap: 10px; margin-top: 4px; }
#app .cyccard { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; color: inherit; }
#app .cyccard:hover { border-color: #a9c6e9; }
#app .cyccard.full { display: block; margin-bottom: 8px; }
#app .cyc-body { flex: 1; min-width: 0; }
#app .cyc-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#app .cyc-h h3 { font-size: 15px; }
#app .cyc-dates { font-size: 11px; color: var(--muted); }
#app .cyc-goal { font-size: 13px; margin: 8px 0 4px; line-height: 1.6; max-width: 760px; }
#app .cyc-goal.none { color: var(--orange); }
#app .cyc-counts { font-size: 11px; color: var(--muted); margin: 0; }
#app .projlist { display: grid; gap: 8px; margin: 6px 0 14px; }
#app .projrow { display: flex; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; background: #fff; }
#app .projrow.is-on { border-color: #b4d3f6; background: #f4f8fe; }
#app .projrow .square { height: 34px; width: 34px; border-radius: 9px; background: #e5edf8; display: grid; place-items: center; color: var(--blue); flex-shrink: 0; }
#app .projmain { flex: 1; min-width: 0; }
#app .projmain b { display: block; font-size: 13px; }
#app .projmain small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
#app .projon { font-size: 11px; color: var(--blue); white-space: nowrap; }
#app .projrow.is-on .projon { color: var(--muted); }
#app .projline { font-size: 12px; padding: 4px 0; }
/* ── the desk ──────────────────────────────────────────────────────────────────────────────── */
#app .decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#app .decision-card { text-align: left; border: 1px solid var(--line); border-radius: 14px; background: white; padding: 23px; display: flex; flex-direction: column; align-items: flex-start; color: inherit; }
#app .decision-card:hover { border-color: #a9c6e9; }
#app .decision-card h3 { font-size: 17px; letter-spacing: -.4px; margin: 16px 0 8px; }
#app .decision-card p { font-size: 12px; color: var(--muted); line-height: 1.65; margin: 0 0 23px; }
#app .decision-card .waited { font-size: 10px; color: var(--faint); margin: -14px 0 18px; }
#app .decision-open { border-top: 1px solid var(--line); padding-top: 15px; width: 100%; margin-top: auto; color: var(--blue); font-size: 12px; display: flex; justify-content: space-between; }
/* ── Your desk: one ranked queue, a row per thing, the act as a button ─────────────────────── */
#app .queue { display: grid; gap: 8px; margin: 0 0 6px; }
#app .qrow { display: flex; align-items: center; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
#app .qrow:hover { border-color: #c9d2dd; }
#app .q-main { flex: 1; min-width: 0; display: block; }
#app .q-top { font-size: 9px; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
#app .q-top .idchip { font-size: 9px; }
#app .q-top .ac { font-size: 9px; padding: 1px 5px; }
#app .q-main h3 { color: var(--ink); }
#app .qrow h3 { font-size: 14px; line-height: 1.4; margin: 0; letter-spacing: -.1px; }
#app .q-why { font-size: 12px; color: var(--muted); margin: 4px 0 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#app .q-where { font-size: 11px; color: var(--faint); margin: 6px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
#app .q-facts { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
#app .q-act { display: grid; justify-items: stretch; gap: 8px; flex: 0 0 154px; }
#app .q-wait { text-align: right; }
#app .q-act .btn { width: 100%; }
#app .q-wait { font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
#app .cnt-jump { color: var(--muted); }
#app .cnt-jump:hover { color: var(--blue); }
#app .nextstrip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0 0; }
#app .nextstrip p { font-size: 12px; color: var(--muted); margin: 5px 0; }
#app .nextstrip h3 { font-size: 13px; }
#app .empty { padding: 65px 25px; text-align: center; color: var(--muted); }
#app .empty svg { width: 35px; height: 35px; color: var(--green); margin-bottom: 15px; }
#app .empty h2 { color: var(--ink); font-size: 23px; margin-bottom: 10px; }
#app .empty p { font-size: 13px; }
/* ── lists and rows ────────────────────────────────────────────────────────────────────────── */
#app .list { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
#app .row { padding: 17px 21px; display: flex; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); width: 100%; text-align: left; color: inherit; }
#app .row:last-child { border-bottom: 0; }
#app .row:hover { background: #fafbfd; }
#app .row .rowmain { flex: 1; min-width: 0; }
#app .row h3 { font-size: 14px; font-weight: 550; }
#app .row h3.raw { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted); }
#app .row p { font-size: 12px; color: var(--muted); margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
#app .row .chevron { color: #a5aebb; }
#app .searchbox { display: flex; align-items: center; gap: 10px; background: white; border: 1px solid #dce1e8; padding: 10px 14px; border-radius: 10px; margin: 24px 0 15px; }
#app .searchbox input { border: 0; background: none; width: 100%; outline: 0; font-size: 14px; }
#app .searchbox svg { color: var(--muted); }
/* ── the plan ──────────────────────────────────────────────────────────────────────────────── */
#app .path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 27px 0 17px; }
#app .pathnode { position: relative; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 19px; text-align: left; min-height: 177px; display: block; color: inherit; }
#app .pathnode:not(:last-child):after { content: '›'; position: absolute; right: -12px; top: 42%; z-index: 1; color: #8da0b8; font-size: 24px; }
#app .pathnode.current { border-color: #b4d3f6; background: #f4f8fe; }
#app .pathnode .number { font-size: 11px; color: #8a94a1; margin-bottom: 18px; }
#app .pathnode h3 { font-size: 14px; margin-bottom: 12px; }
#app .pathnode p { color: var(--muted); font-size: 11px; margin: 7px 0 0; }
#app .goalpanel { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
#app .goalcard { padding: 21px; border: 1px solid var(--line); background: white; border-radius: 14px; }
#app .goalcard h3 { margin: 10px 0; font-size: 14px; }
#app .goalcard p { color: var(--muted); font-size: 12px; margin: 0; }
#app .goalcard .gc-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
#app .goalcard .gc-list li { font-size: 11px; display: flex; gap: 8px; align-items: baseline; }
#app .goalcard .gc-list a { color: var(--ink); }
#app .goalcard .gc-list .basis { color: var(--faint); font-size: 10px; }
#app .goalcard .gc-none { font-size: 11px; color: var(--faint); margin-top: 12px; }
#app .goalhead { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
/* ── agreements ────────────────────────────────────────────────────────────────────────────── */
#app details { border-bottom: 1px solid var(--line); padding: 12px 0; }
#app details:last-child { border-bottom: 0; }
#app summary { font-size: 12px; font-weight: 550; cursor: pointer; }
#app summary.raw { font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 11px; }
#app details p { font-size: 12px; line-height: 1.65; color: #68717d; overflow-wrap: anywhere; }
#app details small { color: var(--muted); }
#app .list.pad { padding: 7px 21px; }
#app .opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
#app .opt .tag { margin-top: 2px; }
#app .opt b { font-size: 12px; display: block; }
#app .opt p { margin: 3px 0 0; font-size: 11px; }
#app .rules { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 21px; }
#app .pinned .cyccard.full { margin: 0; }
#app .ruling { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; }
#app .ruling .r-main { min-width: 0; }
#app .ruling .facetop { margin-bottom: 3px; }
#app .ruling:last-child { border-bottom: 0; }
#app .ruling .r-date { color: var(--faint); font-size: 10.5px; white-space: nowrap; flex-shrink: 0; padding-top: 14px; }
