/* B[AI] OS · THE B[AI]NG OFFICE. Colours, type and radii come from tokens.css (design system v2.0). Fonts are self-hosted, no outside requests. */
@font-face { font-family: Montserrat; font-weight: 400; src: url(../brand/fonts/montserrat-latin-400-normal.ttf); font-display: swap; }
@font-face { font-family: Montserrat; font-weight: 500; src: url(../brand/fonts/montserrat-latin-500-normal.ttf); font-display: swap; }
@font-face { font-family: Montserrat; font-weight: 600; src: url(../brand/fonts/montserrat-latin-600-normal.ttf); font-display: swap; }
@font-face { font-family: Montserrat; font-weight: 700; src: url(../brand/fonts/montserrat-latin-700-normal.ttf); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; src: url(../brand/fonts/jetbrains-mono-latin-400-normal.ttf); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; src: url(../brand/fonts/jetbrains-mono-latin-500-normal.ttf); font-display: swap; }
/* Short names used through this file, pointed at the v2.0 tokens. --ink, --paper, --stone, --mint, --amber, --sand, --line, --panel and --white keep their token names. */
:root {
  --green: var(--office-green); --deep: var(--deep-green); --leaf: var(--leaf-tint);
  --body: var(--body-grey); --pale: var(--pale-mint); --signal: var(--signal-green);
  --good: #2E7D4F; --warn: #D99A00; --bad: #C4432B; --good-bg: #E3F2E8; --warn-bg: #FCF1CF; --bad-bg: #FBE4DE; --warn-ink: #7A5600; --bad-ink: #8F2A17;
  --sans: var(--font-sans);
  --mono: var(--font-mono);
  --r-card: var(--radius-card); --r-panel: var(--radius-panel); --shadow: var(--shadow-card); --float: var(--shadow-float);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 400 13px/1.45 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 16px; } h3 { font-size: 13px; }
.mono { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.muted { color: var(--stone); } .num { font-variant-numeric: tabular-nums; }

/* Shell */
.app { display: grid; grid-template-columns: 216px 1fr; height: 100%; }
.rail { background: var(--white); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; padding: 14px 10px 10px; }
.brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px 14px; font-weight: 700; font-size: 15px; }
.brand b { color: var(--green); } .brand svg { width: 30px; height: 30px; }
.rail h4 { margin: 14px 8px 4px; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.rail a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; font-weight: 500; color: var(--body); }
.rail a:hover { background: var(--paper); color: var(--ink); }
.rail a[aria-current="page"] { background: var(--leaf); color: var(--deep); font-weight: 600; }
.rail a .n { margin-left: auto; font: 500 11px/1 var(--mono); background: var(--ink); color: #fff; border-radius: 9px; padding: 3px 6px; }
.rail a.soon { color: #9A9EA2; } .rail a.soon::after { content: attr(data-phase); margin-left: auto; font: 500 9px/1 var(--mono); color: #A9ADB0; border: 1px solid var(--line); border-radius: 4px; padding: 2px 4px; }
.rail .foot { margin-top: auto; padding: 12px 8px 4px; font-size: 11px; color: var(--stone); }
.rail .foot button { border: 0; background: none; padding: 0; color: var(--green); font-weight: 600; }
.main { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.top { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1; max-width: 520px; }
.search input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 12px 8px 32px; }
.search::before { content: ""; position: absolute; left: 11px; top: 10px; width: 10px; height: 10px; border: 1.6px solid var(--stone); border-radius: 50%; }
.search::after { content: ""; position: absolute; left: 21px; top: 20px; width: 6px; height: 1.6px; background: var(--stone); transform: rotate(45deg); }
.results { position: absolute; z-index: 30; left: 0; right: 0; top: 40px; background: #fff; border-radius: var(--r-card); box-shadow: var(--float); padding: 6px; max-height: 420px; overflow: auto; }
.results a { display: flex; gap: 10px; align-items: baseline; padding: 7px 9px; border-radius: 6px; }
.results a:hover, .results a.on { background: var(--leaf); }
.results small { color: var(--stone); margin-left: auto; white-space: nowrap; }
.demo { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1.5px dashed var(--stone); color: var(--stone); padding: 5px 8px; border-radius: 4px; margin-left: auto; white-space: nowrap; }
.who { display: flex; align-items: center; gap: 8px; }
.who select { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 8px; font-weight: 600; }
.view { flex: 1; overflow: auto; padding: 18px 20px 40px; }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.head p { margin: 4px 0 0; color: var(--body); max-width: 70ch; }

/* Controls */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--panel); border-radius: 8px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 6px; font-weight: 600; color: var(--body); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.f { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0 4px 0 10px; height: 32px; }
.f span { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.f select, .f input { border: 0; background: none; height: 30px; font-weight: 600; max-width: 190px; outline-offset: -2px; }
.f.set { border-color: var(--green); background: #F4FAF6; }
.btn { border: 0; background: var(--green); color: #fff; font-weight: 600; padding: 8px 14px; border-radius: 8px; box-shadow: 0 4px 12px rgba(46,125,79,.22); }
.btn.sec { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #D5DDDA; }
.btn.sm { padding: 5px 10px; font-size: 12px; box-shadow: none; } .btn.sec.sm { box-shadow: inset 0 0 0 1.5px #D5DDDA; }
.link { border: 0; background: none; color: var(--green); font-weight: 600; padding: 0; }
.count { color: var(--stone); margin-left: auto; }

/* Chips, IDs, bots */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; padding: 5px 7px; white-space: nowrap; }
.chip.working { color: var(--deep); background: var(--leaf); } .chip.working::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.chip.approval { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.approved { color: #fff; background: var(--deep); }
.chip.wait { color: var(--body); background: var(--panel); }
.chip.risk { color: #5B4107; background: #FBE9C2; } .chip.risk::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.chip.stop { color: var(--stone); background: none; box-shadow: inset 0 0 0 1px var(--line); text-decoration: line-through; }
.chip.plain { color: var(--body); background: none; box-shadow: inset 0 0 0 1px var(--line); }
.id { font: 500 11px/1 var(--mono); letter-spacing: .02em; color: var(--deep); background: #F1F7F3; border-radius: 4px; padding: 3px 5px; white-space: nowrap; }
a.id:hover { background: var(--leaf); }
.gate { display: inline-block; width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); flex: none; }
.gate.open { background: none; box-shadow: inset 0 0 0 1.5px var(--stone); } .gate.done { background: var(--green); }
.bot { flex: none; border-radius: 50%; background: var(--leaf); display: inline-grid; place-items: center; }
.bot svg { display: block; }
.person { flex: none; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 10px; }
.owner { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.late { color: #9A5B00; font-weight: 600; }

/* Panels and tables */
.panel { background: #fff; border-radius: var(--r-panel); box-shadow: var(--shadow); }
.pad { padding: 16px 18px; }
.frame { position: relative; }
.frame::before, .frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--green); pointer-events: none; }
.frame::before { left: 0; top: 0; border-left-width: 3px; border-top-width: 3px; border-top-left-radius: 2px; }
.frame::after { right: 0; bottom: 0; border-right-width: 3px; border-bottom-width: 3px; }
table { width: 100%; border-collapse: collapse; }
th { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--stone); text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: #fff; z-index: 2; }
th button { border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; padding: 0; }
th[aria-sort] button { color: var(--ink); } th[aria-sort="ascending"] button::after { content: " ↑"; } th[aria-sort="descending"] button::after { content: " ↓"; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.row { cursor: pointer; } tr.row:hover td { background: #F7F9F6; }
tr.grp td { background: var(--paper); font-weight: 700; padding: 7px 10px; position: sticky; top: 33px; z-index: 1; }
tr.grp small { font-weight: 500; color: var(--stone); margin-left: 6px; }
tr.best td { background: var(--leaf); font-weight: 600; }
td.r, th.r { text-align: right; }
.t2 { display: block; color: var(--stone); font-size: 11.5px; }
.scroll { overflow: auto; max-height: calc(100vh - 230px); border-radius: var(--r-panel); }

/* Board */
.board { display: grid; grid-template-columns: repeat(8, minmax(168px, 1fr)); gap: 10px; min-width: 1400px; }
.lanehead { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; margin: 12px 0 0; font-weight: 700; }
.lanehead small { color: var(--stone); font-weight: 500; }
.col { background: var(--panel); border-radius: var(--r-card); padding: 8px; min-height: 60px; }
.colh { display: flex; justify-content: space-between; padding: 2px 4px 8px; }
.card { display: block; background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 10px; margin-bottom: 8px; border-left: 3px solid transparent; }
.card:hover { box-shadow: var(--float); }
.card.needs { border-left-color: var(--ink); } .card.atrisk { border-left-color: var(--amber); }
.card .l1 { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; } .card .l1 .due { margin-left: auto; font-size: 11px; color: var(--stone); }
.card b { display: block; font-weight: 600; line-height: 1.3; }
.card .meta { color: var(--stone); font-size: 11.5px; margin: 3px 0 8px; }
.card .l3 { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.boardwrap { overflow-x: auto; padding-bottom: 8px; }

/* Timeline */
.gantt { display: grid; grid-template-columns: 300px 1fr; background: #fff; border-radius: var(--r-panel); box-shadow: var(--shadow); overflow: hidden; }
.glabels { border-right: 1px solid var(--line); }
.gscroll { overflow-x: auto; position: relative; }
.ghead { height: 44px; position: relative; border-bottom: 1px solid var(--line); background: #fff; }
.glabels .ghead { display: flex; align-items: flex-end; padding: 0 12px 8px; }
.gmonth { position: absolute; top: 6px; font-weight: 700; font-size: 12px; padding-left: 6px; border-left: 1px solid var(--line); height: 38px; white-space: nowrap; }
.gweek { position: absolute; bottom: 4px; font: 400 9.5px/1 var(--mono); color: var(--stone); padding-left: 3px; }
.grow { height: 34px; position: relative; border-bottom: 1px solid #EEEFEB; }
.grow.g { background: var(--paper); height: 28px; font-weight: 700; display: flex; align-items: center; padding: 0 12px; }
.glabels .grow:not(.g) { display: flex; align-items: center; gap: 8px; padding: 0 12px; white-space: nowrap; overflow: hidden; }
.glabels .grow span.t { overflow: hidden; text-overflow: ellipsis; }
.gbar { position: absolute; top: 9px; height: 16px; border-radius: 4px; }
.gbar.done { background: var(--pale); } .gbar.now { background: var(--green); } .gbar.plan { background: #fff; box-shadow: inset 0 0 0 1.5px var(--pale); }
.gbar.stop { background: repeating-linear-gradient(135deg, #E3E4DF 0 4px, #F2F2EE 4px 8px); }
.gbar.crit { box-shadow: inset 0 0 0 1.5px var(--deep); } .gbar.done.crit { box-shadow: none; }
.gbar.risk { background: var(--amber); }
.gdia { position: absolute; top: 12px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg); background: #fff; box-shadow: inset 0 0 0 1.5px var(--stone); z-index: 2; }
.gdia.done { background: var(--green); box-shadow: none; } .gdia.now { background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.gtoday { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); z-index: 3; pointer-events: none; }
.gtoday::before { content: "today"; position: absolute; top: 2px; left: 5px; font: 500 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.ghol { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(240,178,62,.22) 0 5px, rgba(240,178,62,.08) 5px 10px); z-index: 0; pointer-events: none; }
.ghol span { position: absolute; top: 46px; left: 3px; font: 500 9px/1.2 var(--mono); color: #7A5600; white-space: nowrap; }
.gbody { position: relative; }
.gdeps { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--body); font-size: 12px; margin-top: 10px; }
.legend i { display: inline-block; width: 22px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }

/* Pipeline */
.pipe { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; align-items: start; }
.funnel .rowf { display: grid; grid-template-columns: 130px 1fr 36px; gap: 10px; align-items: center; padding: 7px 0; }
.stack { display: flex; height: 26px; border-radius: 5px; overflow: hidden; background: var(--paper); }
.stack a { display: block; min-width: 3px; } .stack a:hover { filter: brightness(.92); }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.tile { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 12px 14px; }
.tile b { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.lost li { margin: 0 0 10px; } .lost ul { list-style: none; padding: 0; margin: 10px 0 0; }

/* Project page */
.crumb { display: flex; gap: 6px; align-items: center; color: var(--stone); margin-bottom: 8px; }
.ptitle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 14px; color: var(--body); }
.facts div b { display: block; color: var(--ink); font-weight: 600; }
.track { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 4px 0 16px; }
.track div { position: relative; padding: 8px 8px 9px; background: var(--panel); border-radius: 6px; font-weight: 600; font-size: 12px; color: var(--stone); }
.track div.done { background: var(--pale); color: var(--deep); } .track div.now { background: var(--green); color: #fff; } .track div.stop { background: var(--panel); text-decoration: line-through; }
.track small { display: block; font: 400 10px/1.3 var(--mono); margin-top: 3px; opacity: .9; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs a { padding: 9px 12px; font-weight: 600; color: var(--body); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--deep); border-bottom-color: var(--green); }
.tabs a small { font: 500 10px/1 var(--mono); color: var(--stone); margin-left: 4px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
/* Action tones: white/light = ok, light yellow = needs action, light red = urgent. Whole box is the hit target when linked. */
.needbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: var(--r-panel); padding: 14px 18px; margin-bottom: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.needbar .mono { color: var(--stone); } .needbar b { display: block; font-size: 14px; font-weight: 600; margin-top: 5px; color: var(--ink); } .needbar small { color: var(--body); display: block; margin-top: 4px; }
.needbar .go { flex: none; font: 600 12px/1 var(--sans); color: var(--deep); background: #fff; border: 1.5px solid var(--green); border-radius: 999px; padding: 8px 12px; white-space: nowrap; }
.needbar.tone-action, .needbar.action { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); border-left: 5px solid var(--warn); }
.needbar.tone-action .mono, .needbar.action .mono { color: var(--warn-ink); }
.needbar.tone-urgent, .needbar.urgent { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); border-left: 5px solid var(--bad); }
.needbar.tone-urgent .mono, .needbar.urgent .mono { color: var(--bad-ink); }
.needbar[data-href], a.needbar, .needbar.record-target { cursor: pointer; }
.needbar[data-href]:hover, a.needbar:hover, .needbar.record-target:hover { box-shadow: var(--float); }
.tone-ok { background: #fff; }
.tone-action { background: var(--warn-bg) !important; }
.tone-urgent { background: var(--bad-bg) !important; }
a.tile.tone-action, a.tile.tone-urgent { box-shadow: var(--shadow); }
a.tile.tone-action { border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); border-left: 4px solid var(--warn); }
a.tile.tone-urgent { border: 1px solid color-mix(in srgb, var(--bad) 30%, var(--line)); border-left: 4px solid var(--bad); }
a.tile.tone-action b, .tl li.tone-action .late { color: var(--warn-ink); }
a.tile.tone-urgent b { color: var(--bad-ink); }
.tl li.tone-action, .tl li.tone-urgent { border-radius: 8px; padding: 8px 10px; margin: 2px 0; border-bottom-color: transparent; }
.tl li.tone-action { background: var(--warn-bg); }
.tl li.tone-urgent { background: var(--bad-bg); }
.tl li.record-target:hover { filter: brightness(0.98); }
.arow.tone-action { background: var(--warn-bg); }
.arow.tone-urgent { background: var(--bad-bg); }
.arow.tone-action:hover, .arow.tone-urgent:hover { filter: brightness(0.97); }
.card.needs, .card.tone-action { background: var(--warn-bg); border-left-color: var(--warn); }
.card.atrisk, .card.tone-urgent { background: var(--bad-bg); border-left-color: var(--bad); }
.cev.tone-action, .cev.late-ev:not(.st-overdue) { background: var(--warn-bg); }
.cev.tone-urgent, .cev.st-overdue { background: var(--bad-bg); }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 9px; padding-left: 14px; border-left: 1.5px solid var(--pale); }
.tree li { padding: 4px 0; } .tree li > span { color: var(--body); margin-left: 6px; }
.thread { border-bottom: 1px solid var(--line); } .thread summary { display: flex; align-items: center; gap: 10px; padding: 12px 18px; cursor: pointer; list-style: none; }
.thread summary::-webkit-details-marker { display: none; } .thread summary b { font-weight: 600; }
.msgs { padding: 0 18px 14px; display: grid; gap: 8px; }
.msg { max-width: 76%; background: var(--paper); border-radius: 10px; padding: 9px 12px; }
.msg.out { margin-left: auto; background: var(--leaf); } .msg.draft { margin-left: auto; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.msg .mh { display: flex; gap: 8px; align-items: baseline; font-size: 11px; color: var(--stone); margin-bottom: 3px; } .msg .sub { font-weight: 600; }
.msg > div:not(.mh):not(.sub) { white-space: pre-wrap; word-break: break-word; line-height: 1.45; margin-top: 4px; }
.hist { list-style: none; margin: 0; padding: 0; } .hist li { display: grid; grid-template-columns: 96px 150px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: center; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; } .kv dt { color: var(--stone); } .kv dd { margin: 0; font-weight: 600; }
.soonpage { max-width: 62ch; } .soonpage li { margin: 4px 0; }
.empty { padding: 28px; text-align: center; color: var(--stone); }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } .rail { display: none; } .cols, .pipe { grid-template-columns: 1fr; } .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: no-preference) { .card, .rail a, .seg button { transition: background .12s, box-shadow .12s; } }

/* Fixes after the first browser check */
.board { grid-template-columns: repeat(8, minmax(186px, 1fr)); min-width: 1560px; }
.card .l3 .owner { min-width: 0; max-width: 100%; } .card .l3 .owner .muted { overflow: hidden; text-overflow: ellipsis; }
.gtoday::before { top: 27px; left: -1px; background: var(--ink); color: #fff; padding: 3px 5px; border-radius: 0 3px 3px 0; }
.gdia:not(.done):not(.now) { width: 7px; height: 7px; margin-left: -3.5px; top: 13.5px; box-shadow: inset 0 0 0 1.2px var(--pale); }

/* Approvals */
.appr { display: grid; grid-template-columns: 230px minmax(320px, 1fr) minmax(380px, 1.1fr); gap: 12px; align-items: start; }
.aq { max-height: calc(100vh - 250px); overflow: auto; padding-bottom: 6px; }
.qrow { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 12px; font-weight: 500; color: var(--body); }
.qrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .qrow b { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--stone); } .qrow .gate { width: 6px; height: 6px; }
.qrow:hover { background: var(--paper); } .qrow.on { background: var(--leaf); color: var(--deep); font-weight: 600; }
.alistwrap { overflow: hidden; } .abatch { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-height: 48px; }
.alist { max-height: calc(100vh - 300px); overflow: auto; }
.arow { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; border-left: 3px solid transparent; }
.arow:hover { background: #F7F9F6; } .arow.on { background: #F1F7F3; border-left-color: var(--green); }
.arow b { font-weight: 600; display: block; line-height: 1.35; } .arow input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--green); } .arow .nochk { padding: 5px 4px 0; }
.adue { font-size: 11.5px; color: var(--stone); white-space: nowrap; padding-top: 2px; }
.rdot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--pale); }
.adetail { position: sticky; top: 0; } .abody { margin: 0 18px; background: var(--paper); border-radius: 8px; }
.abody pre { margin: 8px 0 0; font: 400 13px/1.55 var(--sans); white-space: pre-wrap; word-break: break-word; }
.aback { display: none; margin-bottom: 10px; }
.mnav { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 8px; font-weight: 600; }

/* Today */
.today { max-width: 1180px; } .cbohead { display: flex; gap: 14px; align-items: center; } .cbo h1 { margin-top: 4px; }
.brief { margin: 14px 0 12px; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14px; } .brief li { padding-left: 16px; position: relative; } .brief li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.brief a, .today .reply a:not(.id) { color: var(--deep); font-weight: 600; text-decoration: underline; text-decoration-color: var(--pale); text-underline-offset: 3px; }
.ask { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .askb { border-radius: 16px; padding: 6px 12px; background: var(--paper); font-weight: 600; } .askb:hover, .askb.on { background: var(--leaf); color: var(--deep); }
.reply { margin-top: 12px; background: var(--paper); border-radius: 10px; padding: 12px 14px; } .reply p { margin: 6px 0; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; } .tgrid .wide { grid-column: 1 / -1; }
.sh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.tl { list-style: none; margin: 0; padding: 0; } .tl li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); } .tl li:last-child { border-bottom: 0; }
.tl li > span:not(.id) { flex: 1; min-width: 0; } .tl small { color: var(--stone); white-space: nowrap; font-size: 11.5px; }
.agents { display: flex; flex-wrap: wrap; gap: 8px; } .agent { display: grid; justify-items: center; gap: 3px; padding: 10px 12px; border-radius: 10px; min-width: 122px; text-align: center; } .agent:hover { background: var(--paper); } .agent b { font-weight: 600; font-size: 12px; }

@media (max-width: 1250px) { .appr { grid-template-columns: 200px 1fr; } .appr .adetail { grid-column: 1 / -1; position: static; } }
@media (max-width: 900px) {
  .mnav { display: block; } .top { flex-wrap: wrap; padding: 8px 12px; gap: 8px; } .demo, .who .mono { display: none; } .search { order: 3; flex-basis: 100%; max-width: none; } .who { margin-left: auto; } .who select { max-width: 150px; }
  .view { padding: 14px 12px 40px; } .tgrid { grid-template-columns: 1fr; }
  .appr { grid-template-columns: 1fr; } .aq { max-height: none; display: flex; overflow-x: auto; padding: 6px; gap: 4px; } .aq > .mono { display: none !important; } .qrow { width: auto; flex: none; border-radius: 16px; background: var(--paper); padding: 7px 11px; }
  .alist { max-height: none; } .appr:not(.has-sel) .adetail { display: none; } .appr.has-sel .aq, .appr.has-sel .alistwrap { display: none; } .aback { display: inline-block; }
  .adetail .btn { flex: 1; padding: 13px 14px; }
}

/* Team */
.botbig { flex: none; display: block; }
.podh { margin: 18px 0 8px; font-size: 13px; color: var(--body); font-weight: 600; } .podh:first-of-type { margin-top: 0; }
.acards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .acards.lead { grid-template-columns: minmax(0, 2fr) 1fr; }
.acard { display: flex; gap: 14px; align-items: center; padding: 16px 18px 16px 12px; } .acard:hover { box-shadow: var(--float); }
.acard h3 { font-size: 15px; margin: 5px 0 4px; } .acard p { margin: 0 0 10px; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acards.lead .acard { background: linear-gradient(100deg, #fff 55%, var(--leaf)); } .acards.lead .acard h3 { font-size: 19px; }
.acf { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.orgwrap { overflow-x: auto; padding-bottom: 6px; } .org { position: relative; width: 1120px; height: 716px; margin: 0 auto; } .org > svg { position: absolute; inset: 0; }
.onode { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 9px 12px; }
.onode:hover { box-shadow: var(--float); } .onode b { display: block; font-weight: 600; } .onode small { display: block; color: var(--stone); font-size: 11.5px; } .onode > span:not(.chip):not(.bot):not(.person) { flex: 1; min-width: 0; }
.org > .onode { position: absolute; min-height: 58px; } .cbo-n { padding: 10px 16px 10px 8px; } .cbo-n b { font-size: 17px; margin: 3px 0 2px; } .person-n { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.opod { position: absolute; width: 352px; height: 280px; background: var(--panel); border-radius: 12px; padding: 12px 10px 10px; display: flex; flex-direction: column; gap: 8px; } .opod > .mono { color: var(--ink); padding: 0 4px; } .opod > small { color: var(--stone); padding: 0 4px; margin: -4px 0 2px; }
.onote { position: absolute; width: 230px; font-size: 11.5px; color: var(--stone); line-height: 1.4; }
.ovault { position: absolute; left: 0; width: 1120px; height: 54px; border-radius: 12px; background: var(--deep); color: #fff; display: flex; align-items: center; gap: 14px; padding: 0 18px; } .ovault b { font-size: 15px; } .ovault span { color: var(--pale); }
.ahead { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; } .ahead h1 { margin: 6px 0 4px; font-size: 26px; } .mission { margin: 0 0 10px; font-size: 14.5px; color: var(--body); max-width: 68ch; }
.maygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .may { list-style: none; margin: 8px 0 0; padding: 0; } .may li { position: relative; padding: 3px 0 3px 18px; } .may li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.may.not li::before { border: 0; width: 9px; height: 2px; top: 11px; background: var(--ink); transform: none; }

/* Chat and Give a task */
.chatwrap { display: grid; grid-template-columns: 290px minmax(0, 860px); gap: 12px; align-items: start; }
.chatlist { padding: 6px; } .crow { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; } .crow:hover { background: var(--paper); } .crow.on { background: var(--leaf); }
.crow b { display: block; font-weight: 600; } .crow small { display: block; color: var(--stone); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.chatlog { display: grid; gap: 10px; align-content: start; max-height: calc(100vh - 420px); min-height: 180px; overflow: auto; padding: 2px 2px 10px; }
.bub { display: flex; gap: 8px; align-items: flex-start; max-width: 88%; } .bub > div { background: var(--paper); border-radius: 4px 12px 12px 12px; padding: 9px 13px; min-width: 0; } .bub p { margin: 0 0 6px; } .bub p:last-child { margin: 0; }
.bub.me { margin-left: auto; } .bub.me > div { background: var(--ink); color: #fff; border-radius: 12px 4px 12px 12px; }
.bub .tl li { border-color: #DFE1DB; } .bub a:not(.id):not(.chip) { color: var(--deep); font-weight: 600; text-decoration: underline; text-decoration-color: var(--pale); text-underline-offset: 3px; }
.chatprompts { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); } .chatprompts .askb { border: 0; }
.chatin { display: flex; gap: 8px; } .chatin input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; }
.give { display: grid; gap: 14px; } .give label { display: grid; gap: 5px; font-weight: 600; } .give textarea, .give select, .give input { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: #fff; font-weight: 400; width: 100%; } .giverow { display: grid; grid-template-columns: 1fr 170px; gap: 12px; }
@media (max-width: 1100px) { .acards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .acards, .acards.lead, .chatwrap, .maygrid, .giverow { grid-template-columns: 1fr; } .ahead { flex-direction: column; align-items: flex-start; } .chatlist { display: flex; overflow-x: auto; } .crow small { display: none; } .chatlog { max-height: none; } }

.legend .chip i.gate { width: 6px; height: 6px; margin: 0; border-radius: 0; }

/* Company logo, bottom-left corner of the app */
.cologo { display: block; padding: 12px 8px 6px; border-top: 1px solid var(--line); margin-top: 8px; } .cologo img { display: block; }

/* Chat as a workspace: list, conversation, and the work beside it */
.chatwrap { grid-template-columns: 280px minmax(0, 1fr) 340px; }
.clhead { padding: 4px 4px 8px; } .clhead .seg { display: flex; } .clhead .seg button { flex: 1; }
.chatlist { max-height: calc(100vh - 190px); overflow: auto; } .crow > span:not(.id):not(.bot):not(.n) { flex: 1; min-width: 0; } .crow small { max-width: none; }
.crow .n { font: 500 11px/1 var(--mono); background: var(--ink); color: #fff; border-radius: 9px; padding: 3px 6px; } .crow .gate { width: 7px; height: 7px; }
.chatlog { max-height: calc(100vh - 470px); }
.composer { border-top: 1px solid var(--line); padding-top: 10px; } .cmode { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.composer .chatprompts { border-top: 0; padding: 0 0 10px; } .give.inline { gap: 10px; } .give.inline textarea { resize: vertical; }
.ctx { display: grid; gap: 16px; align-content: start; max-height: calc(100vh - 190px); overflow: auto; } .ctx section .tl li { padding: 6px 0; } .ctx .tl .bot { align-self: center; }
.ctxhead h2 { margin: 6px 0 2px; font-size: 16px; line-height: 1.3; } .ctxhead p { margin: 0 0 8px; } .agentctx { display: flex; gap: 10px; align-items: center; }
@media (max-width: 1250px) { .chatwrap { grid-template-columns: 250px minmax(0, 1fr); } .ctx { grid-column: 1 / -1; max-height: none; grid-template-columns: repeat(2, 1fr); } .ctxhead { grid-column: 1 / -1; } }
@media (max-width: 900px) { .chatwrap { grid-template-columns: 1fr; } .ctx { grid-template-columns: 1fr; } .chatlist { max-height: none; flex-wrap: nowrap; } .clhead { flex: none; } .crow { flex: none; } }
.tl li > .bot, .tl li > .person { flex: none; align-self: center; }
.bub.agent { display: flex; justify-items: initial; text-align: left; padding: 0; min-width: 0; border-radius: 0; } .bub.agent:hover { background: none; }

.brand small { font: 500 11px/1 var(--mono); color: var(--stone); margin-left: 2px; }

/* Process Hub */
.phub.rec { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 12px; align-items: start; }
.prec { display: grid; gap: 12px; align-content: start; position: sticky; top: 0; max-height: calc(100vh - 150px); overflow: auto; } .prec h2 { font-size: 17px; line-height: 1.3; }
.pnote { background: var(--paper); border-radius: 8px; padding: 10px 12px; margin-top: 8px; } .pnote p { margin: 5px 0 0; }
.ptree { padding: 6px 0; } .pl0 { display: flex; gap: 10px; align-items: baseline; padding: 10px 16px; }
.ptree summary { display: flex; align-items: center; gap: 10px; padding: 9px 16px; cursor: pointer; list-style: none; background: var(--paper); border-top: 1px solid var(--line); } .ptree summary::-webkit-details-marker { display: none; }
.ptree summary b { font-size: 14px; } .pbots { display: flex; gap: 3px; } .pl { display: flex; gap: 6px; margin-left: auto; } .ptree summary .link { margin-left: 10px; }
.prow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 16px 8px 34px; border-top: 1px solid var(--line); }
.prow:hover { background: #F7F9F6; } .prow.on { background: #F1F7F3; box-shadow: inset 3px 0 0 var(--green); } .pn { font-weight: 600; } .pn .gate { margin: 0 6px 0 10px; } .pn small { font-weight: 400; color: var(--stone); }
.pbp { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.wfstage { position: relative; height: 470px; overflow: hidden; cursor: grab; touch-action: none; background: radial-gradient(circle, #DADCD6 1px, transparent 1.2px) 0 0 / 22px 22px, #FBFBF9; } .wfstage.drag { cursor: grabbing; }
.wfinner { position: absolute; left: 0; top: 0; transform-origin: 0 0; } .wfinner > svg { position: absolute; inset: 0; }
.wn { position: absolute; background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 9px 12px; display: flex; flex-direction: column; justify-content: center; gap: 3px; overflow: hidden; }
.wn p { margin: 0; font-weight: 600; line-height: 1.3; font-size: 12.5px; } .wn small { color: var(--stone); font-size: 11px; } .wn b { font-weight: 600; line-height: 1.25; }
.wn.step { border-top: 4px solid var(--green); } .wn.step.on, a.wn:hover { box-shadow: 0 0 0 2px var(--green), var(--float); } .wh { display: flex; align-items: center; gap: 5px; } .wh .chip { margin-left: auto; padding: 4px 6px; }
.wn.trig { border-radius: 38px; padding: 9px 20px; box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; } .wn.inst { background: var(--leaf); box-shadow: none; border-radius: 6px; border: 1.5px dashed var(--green); }
.wn.if { background: var(--sand); box-shadow: inset 0 0 0 1.5px #D8CDB8; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%); padding: 8px 22px; }
.wn.wait { background: var(--panel); box-shadow: none; } .wn.human { background: var(--ink); color: #fff; } .wn.human .mono { color: var(--mint); }
.wl { border-radius: 3px !important; } .wl.trig { box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 6px !important; } .wl.step { background: #fff; border-top: 3px solid var(--green); box-shadow: var(--shadow); } .wl.inst { background: var(--leaf); border: 1px dashed var(--green); } .wl.if { background: var(--sand); } .wl.wait { background: var(--panel); } .wl.human { background: var(--ink); }
.tm { position: relative; overflow: hidden; } .tm1 { position: absolute; box-shadow: inset 0 0 0 1.5px #fff; background: var(--panel); } .tm1 span { display: block; padding: 4px 8px; font: 500 10px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm2 { position: absolute; background: var(--leaf); box-shadow: inset 0 0 0 1.5px #fff; padding: 6px 8px; overflow: hidden; color: var(--deep); } .tm2:hover, .tm2.on { box-shadow: inset 0 0 0 2.5px var(--green); } .tm2.bad { background: #FBE9C2; color: #5B4107; }
.tm2 b { font: 600 11px/1 var(--mono); display: block; } .tm2 span { display: block; font-size: 11.5px; line-height: 1.25; margin-top: 3px; } .tm2 em { position: absolute; right: 7px; bottom: 5px; font-style: normal; font-weight: 700; font-size: 15px; }
.ig { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-top: 10px; } .ig h3 { margin-bottom: 2px; }
@media (max-width: 1250px) { .phub.rec { grid-template-columns: 1fr; } .prec { position: static; max-height: none; } }
@media (max-width: 900px) { .ig { grid-template-columns: 1fr; } .prow { grid-template-columns: 40px 1fr; } .pbp { display: none; } }

/* Records */
.chip.tier { color: var(--deep); background: var(--leaf); }
.tile { display: block; } a.tile:hover { box-shadow: var(--float); }
.meters { display: grid; gap: 12px; margin-top: 12px; } .meter > div { display: flex; justify-content: space-between; margin-bottom: 5px; } .meter i { display: block; height: 8px; border-radius: 4px; background: var(--panel); overflow: hidden; } .meter u { display: block; height: 100%; background: var(--green); border-radius: 4px; text-decoration: none; } .meter u.low { background: var(--amber); }
.shipgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.facts a, .ptitle a { text-decoration: underline; text-decoration-color: var(--pale); text-underline-offset: 3px; } td a:not(.id):not(.chip):hover { text-decoration: underline; }

/* Product Lifecycle */
.good { color: var(--deep); font-weight: 600; }
.cbar { display: block; height: 8px; background: var(--paper); border-radius: 4px; overflow: hidden; } .cbar u { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.palert { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fff; border-radius: var(--r-panel); box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 10px; border-left: 4px solid var(--amber); color: var(--ink); text-decoration: none; }
.palert.down { border-left-color: var(--green); } .palert.near, .palert.review, .palert.low { border-left-color: var(--warn); } .palert.up, .palert.gap { border-left-color: var(--bad); }
.palert b { display: block; font-weight: 600; margin: 5px 0 2px; font-size: 14px; } .palert p { margin: 0; color: var(--body); } .palert .mono a { color: var(--deep); }
.palert[data-href], a.palert, .palert.record-target { cursor: pointer; }
.palert[data-href]:hover, a.palert:hover, .palert.record-target:hover { box-shadow: var(--float); }
.track.life { grid-template-columns: repeat(6, 1fr); margin: 12px 0 14px; }
@media (max-width: 900px) { .palert { flex-direction: column; align-items: flex-start; } }

/* Left panel: five named sections, Settings lower, demo block with both logos */
.rail { padding: 14px 10px 12px; }
.sec { padding: 9px 0 7px; border-top: 1px solid var(--line); } .brand + .sec { border-top: 0; padding-top: 2px; }
.rail .sec h4 { display: flex; align-items: center; gap: 8px; margin: 0 6px 5px; font: 700 10.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.sico { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--sc); display: grid; place-items: center; }
.sec a { margin-left: 15px; padding: 6px 8px 6px 12px; border-radius: 0 7px 7px 0; border-left: 2px solid var(--line); }
.sec a:hover { border-left-color: var(--sc); } .sec a[aria-current="page"] { border-left-color: var(--sc); }
.sec.on h4 { color: var(--sc); } .sec[style*="3CC872"].on h4 { color: var(--deep); }
.rail .low { margin-top: auto; padding-top: 18px; } .setsec { border-top: 0; padding: 0 0 8px; } .setsec a { margin-left: 0; border-left: 0; border-radius: 7px; padding-left: 8px; }
.demoblock { border: 1.5px dashed #C9CFCB; border-radius: 10px; padding: 9px 10px 8px; display: grid; gap: 9px; justify-items: start; }
.dhead { display: flex; justify-content: space-between; align-items: center; width: 100%; } .dlabel { font: 600 11px/1 var(--mono); letter-spacing: .16em; color: #fff; background: var(--ink); border-radius: 4px; padding: 4px 7px; }
.dhead button { border: 0; background: none; padding: 0; color: var(--green); font-weight: 600; font-size: 11px; }
.custlogo { display: block; width: 150px; max-height: 52px; object-fit: contain; object-position: left center; } .custname { font-size: 13px; }
.cologo { display: block; padding: 8px 0 0; margin: 0; border-top: 1px solid var(--line); width: 100%; } .cologo img { display: block; }

.rail { padding-bottom: 0; } .sec a { padding-top: 5px; padding-bottom: 5px; }
.rail .low { position: sticky; bottom: 0; background: #fff; padding: 10px 0 12px; box-shadow: 0 -8px 10px -8px rgba(28,35,41,.10); }
.demoblock { gap: 8px; } .dlogos { display: flex; align-items: center; gap: 10px; width: 100%; } .custlogo { width: 98px; max-height: 40px; }
.dlogos .cologo { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 10px; width: auto; }

.app { grid-template-rows: minmax(0, 1fr); } .rail, .main { min-height: 0; }
.demoblock { min-width: 0; overflow: hidden; } .dlogos { justify-content: space-between; gap: 8px; } .custlogo { width: 80px; max-height: 34px; flex: none; } .dlogos .cologo { padding-left: 8px; flex: none; } .dlogos .cologo img { width: 64px; height: auto; }

/* v0.5: title case, coloured modules, bigger identity, summaries, split intake, side-scroll bar, visible Settings */
.head h1, .tabs a, .seg button, .rail .sec a, .sh h2, .tog, .ipane h2, .podh { text-transform: capitalize; }
.brand.hero { display: flex; align-items: center; gap: 10px; padding: 14px 10px 14px 8px; margin: -4px -2px 22px; border-radius: 14px; background: linear-gradient(135deg, var(--leaf), #fff 85%); box-shadow: inset 0 0 0 1px #CFE6D7; }
.brand.hero img { display: block; flex: none; } .brand.hero span { display: grid; gap: 2px; min-width: 0; } .osname { font-size: 23px; font-weight: 800; letter-spacing: -.01em; line-height: 1; color: var(--ink); } .osname i { font-style: normal; color: var(--green); }
.brand.hero small { margin: 2px 0 0; justify-self: start; font: 600 10px/1 var(--mono); color: #fff; background: var(--deep); border-radius: 4px; padding: 3px 6px; } .brand.hero em { font-style: normal; font-size: 10.5px; line-height: 1.3; color: var(--body); }
.brand + .sec { border-top: 0; }
.sec { --st: color-mix(in srgb, var(--sc) 13%, #fff); } .sico { color: #fff; }
.sec a[aria-current="page"] { background: var(--st); color: color-mix(in srgb, var(--sc) 82%, #000); border-left-color: var(--sc); } .sec a:hover { background: color-mix(in srgb, var(--sc) 7%, #fff); }
.rail .sec h4 { color: color-mix(in srgb, var(--sc) 88%, #000); } .sec.on h4, .sec[style*="3CC872"].on h4 { color: color-mix(in srgb, var(--sc) 88%, #000); }
.setsec { display: grid; gap: 6px; } .setlink { display: flex !important; align-items: center; gap: 9px; margin: 0 !important; border: 0 !important; border-radius: 9px !important; padding: 8px 9px !important; font-weight: 700 !important; color: var(--ink) !important; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.setlink:hover { background: var(--panel) !important; } .setlink[aria-current="page"] { background: var(--ink) !important; color: #fff !important; } .setlink[aria-current="page"] .sico { background: #fff; color: var(--ink); }
.gear { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 10px; font-weight: 600; white-space: nowrap; } .gear:hover, .gear[aria-current="page"] { border-color: var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font: 700 10.5px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: color-mix(in srgb, var(--sc) 88%, #000); margin-bottom: 8px; } .eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--sc); }
.head { display: block; } .head > div { display: block; } .head .seg { margin-top: 10px; }
.sumrow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 12px; margin-bottom: 14px; align-items: stretch; } .sumrow.solo { grid-template-columns: 1fr; }
.tiles.sum { grid-template-columns: repeat(3, 1fr); margin: 0; } .tiles.sum .tile { border-top: 3px solid color-mix(in srgb, var(--sc, #2E7D4F) 55%, #fff); } .tile small { display: block; color: var(--stone); font-size: 11px; }
.dist { padding: 12px 14px; display: grid; gap: 3px; align-content: start; } .dist > .mono { margin-bottom: 5px; }
.drow { display: grid; grid-template-columns: 124px 1fr 26px; gap: 8px; align-items: center; padding: 2px 0; font-size: 12px; } .drow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .drow i { height: 9px; border-radius: 5px; background: var(--paper); overflow: hidden; }
.drow u { display: block; height: 100%; border-radius: 5px; background: color-mix(in srgb, var(--sc, #2E7D4F) 80%, #fff); } .drow b { text-align: right; } .drow:hover span { text-decoration: underline; }
.tog { border: 1px solid var(--line); background: #fff; border-radius: 8px; height: 32px; padding: 0 12px; font-weight: 600; color: var(--body); } .tog[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.isplit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; } .isplit.REQ, .isplit.NPP { grid-template-columns: 1fr; }
.ipane header { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); } .ipane h2 { font-size: 16px; } .ipane header p { margin: 4px 0 0; max-width: 46ch; }
.icount { text-align: right; display: grid; gap: 4px; justify-items: end; align-content: start; } .icount b { font-size: 26px; line-height: 1; }
.ilist { max-height: calc(100vh - 330px); min-height: 220px; overflow-y: auto; } .irow { padding: 11px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 5px; } .irow.on { background: #F1F7F3; box-shadow: inset 3px 0 0 var(--green); }
.irow b { font-weight: 600; } .irow p { margin: 0; color: var(--body); font-size: 12px; } .i1, .i3, .i4 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .i3 { justify-content: space-between; font-size: 12px; }
.hsnav { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 11.5px; color: var(--body); } .hsnav span { white-space: nowrap; font-weight: 600; }
.hsnav button { flex: none; width: 30px; height: 26px; border-radius: 7px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 11px; line-height: 1; } .hsnav button:disabled { background: #fff; color: #B4B8BA; border-color: var(--line); cursor: default; }
.hstrack { position: relative; flex: 1; height: 8px; border-radius: 4px; background: var(--panel); } .hstrack i { position: absolute; top: 0; height: 100%; border-radius: 4px; background: var(--ink); min-width: 18px; }
.owner .muted { margin-left: 4px; }
@media (max-width: 1250px) { .sumrow { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .isplit { grid-template-columns: 1fr; } .tiles.sum { grid-template-columns: repeat(2, 1fr); } .gear { display: none; } .ilist { max-height: none; } }
.drow span, .track div, .colh .mono, .lanehead { text-transform: capitalize; } .colh .mono { text-transform: uppercase; }

/* Office Brain */
.brainwrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; align-items: start; }
.bstage { position: relative; background: radial-gradient(ellipse at 50% 42%, #1F4A33, #14301F 70%); border-radius: var(--r-panel); overflow: hidden; }
.bstage canvas { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; }
.bbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; } .bhint { margin: 0; padding: 0 16px 14px; color: #B9D6C4; font-size: 12px; }
.seg.dark { background: rgba(255,255,255,.08); } .seg.dark button { color: #D6E6DC; display: inline-flex; align-items: center; gap: 6px; } .seg.dark button[aria-pressed="true"] { background: #fff; color: var(--ink); } .seg.dark button[aria-pressed="false"] .k { opacity: .45; }
.k { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; } .seg .k { margin-right: 0; }
.bside { display: grid; gap: 12px; } .bregion h2 { margin: 8px 0 6px; font-size: 17px; line-height: 1.3; } .bregion p { margin: 0 0 10px; } .bregion .mono .k { box-shadow: 0 0 0 1px #9AA09D; }
.blist { padding: 8px; max-height: 330px; overflow: auto; } .blh { display: block; padding: 8px 8px 4px; } .blh .k { box-shadow: 0 0 0 1px #9AA09D; }
.brow { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 7px; font-weight: 500; color: var(--body); } .brow:hover { background: var(--paper); } .brow.on { background: var(--leaf); color: var(--deep); font-weight: 600; }
.chip .k { width: 7px; height: 7px; margin-right: 0; }
@media (max-width: 1250px) { .brainwrap { grid-template-columns: 1fr; } }

/* v0.7: identity, people and org chart, internal chat (people, channels, two windows per project) */
.brand.hero { background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 6px 18px rgba(28,35,41,.06); }
.osname { color: #000; font-size: 25px; } .osname i { color: var(--green); } .brand.hero em { color: var(--ink); font-weight: 500; font-size: 11px; }
.acards.people { grid-template-columns: repeat(3, 1fr); } .pcard { align-items: flex-start; padding: 16px 18px; } .pcard .person { font-size: 17px; margin-top: 2px; } .pcard h3 { margin: 4px 0 3px; } .pcard p { margin: 0 0 9px; }
.pcard .acf { gap: 6px; }
.odept { position: absolute; top: 0; width: 176px; height: 276px; background: var(--panel); border-radius: 12px; padding: 10px 7px 8px; display: flex; flex-direction: column; gap: 6px; }
.odept > .mono { color: var(--ink); padding: 0 4px; } .odept > small { color: var(--stone); padding: 0 4px; margin: -3px 0 2px; font-size: 11px; }
.pnode { padding: 7px 8px; gap: 8px; min-height: 0; } .pnode b, .pnode small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pnode b { font-size: 12px; } .pnode small { font-size: 10.5px; }
.pnode.sub { margin-left: 12px; position: relative; } .pnode.sub::before { content: ""; position: absolute; left: -8px; top: -6px; bottom: 50%; width: 8px; border-left: 2px solid var(--pale); border-bottom: 2px solid var(--pale); border-radius: 0 0 0 5px; }
.pnode.me { box-shadow: inset 0 0 0 2px var(--ink); } .pnode .person { font-size: 10px; }
.clhead .seg button { padding: 6px 2px; font-size: 12px; }
.clgroup { font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--stone); padding: 12px 10px 5px; }
.crow time { font-size: 10.5px; color: var(--stone); white-space: nowrap; align-self: flex-start; margin-top: 3px; } .crow small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hash { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--leaf); color: var(--deep); display: grid; place-items: center; font: 700 17px/1 var(--mono); }
.roomhead { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); } .roomhead > div:not(.dots) { flex: 1; min-width: 0; } .roomhead b { display: block; font-size: 15px; font-weight: 700; }
.roomhead small { display: block; color: var(--stone); font-size: 12px; } .roomhead .person { font-size: 13px; } .dots { display: flex; } .dots > * { margin-left: -7px; box-shadow: 0 0 0 2px #fff; border-radius: 50%; background-color: #fff; } .dots > :first-child { margin-left: 0; } .dots .person { background: var(--ink); font-size: 10px; }
.lock { flex: none; font-size: 11.5px; font-weight: 600; color: var(--body); background: var(--paper); border-radius: 999px; padding: 5px 10px; }
.winsw { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; } .winsw .seg button { padding: 7px 14px; }
.daysep { display: flex; align-items: center; gap: 10px; color: var(--stone); font-size: 11px; font-weight: 600; margin: 4px 0; } .daysep::before, .daysep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sysline { text-align: center; color: var(--stone); font-size: 11.5px; }
.bub .by { display: flex; align-items: baseline; gap: 7px; margin-bottom: 3px; font-size: 12px; } .bub .by b { font-weight: 700; } .bub .by i { font-style: normal; color: var(--deep); font-size: 10.5px; font-weight: 600; } .bub .by time { color: var(--stone); font-size: 10.5px; margin-left: auto; padding-left: 10px; }
.bub .person { font-size: 10px; margin-top: 2px; } .chatlog.room { max-height: calc(100vh - 500px); min-height: 220px; } .chatlog .empty { padding: 40px 10px; }
.mdept { margin-top: 8px; } .mdept > .mono { display: block; margin-bottom: 2px; } .mrow { display: flex; align-items: center; gap: 9px; padding: 5px 0; } .mrow > span:not(.person) { flex: 1; min-width: 0; } .mrow b { display: block; font-weight: 600; font-size: 12.5px; }
.mrow small { display: block; color: var(--stone); font-size: 11px; } .mrow > small { flex: none; } .mrow .person { font-size: 9px; } .mrow .link { font-size: 12px; flex: none; }
.addrow { display: flex; gap: 8px; margin-top: 10px; } .addrow select { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; }
.minitiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .minitiles div { background: var(--paper); border-radius: 9px; padding: 9px 10px; } .minitiles b { display: block; font-size: 19px; font-weight: 700; } .minitiles span { font-size: 10.5px; color: var(--body); text-transform: capitalize; }
.agentctx .person { font-size: 18px; }
@media (max-width: 1100px) { .acards.people { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 900px) { .acards.people { grid-template-columns: 1fr; } .winsw .seg { display: flex; width: 100%; } .winsw .seg button { flex: 1; } }

/* v0.7: calendar */
.calnav { display: inline-flex; gap: 4px; } .calnav button { height: 32px; min-width: 32px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-weight: 600; padding: 0 9px; font-size: 11px; } .calnav button.now { font-size: 12.5px; padding: 0 12px; } .calnav button:hover { border-color: var(--ink); }
.caltitle { font-size: 15px; font-weight: 700; margin: 0 6px 0 2px; white-space: nowrap; }
.calweek { display: grid; grid-template-columns: repeat(7, minmax(178px, 1fr)); gap: 10px; min-width: 1320px; } .calboard { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 10px; min-width: 1260px; }
.calcol { min-height: 240px; } .calcol .colh { display: flex; align-items: baseline; gap: 7px; padding: 2px 4px 8px; } .calcol .colh b { font-size: 13px; } .calcol.today { background: var(--leaf); box-shadow: inset 0 0 0 1.5px var(--green); } .calcol.weekend { background: #F0F0EB; }
.calnone { padding: 4px; margin: 0; font-size: 12px; } .hol { background: #FBE9C2; color: #5B4107; border-radius: 6px; padding: 4px 8px; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.cev { display: block; background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 8px 9px 7px 11px; margin-bottom: 7px; border-left: 3px solid var(--kc); } .cev:hover { box-shadow: var(--float); }
.cev b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 12.5px; line-height: 1.3; } .cev > span { display: block; color: var(--stone); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 6px; }
.cev small { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--body); } .cev small em { font-style: normal; color: var(--kc); font-weight: 700; } .cev small time { color: var(--stone); } .cev small u { text-decoration: none; margin-left: auto; color: var(--stone); } .cev small u.late { color: #9A5B00; font-weight: 700; }
.cev.done { opacity: .55; } .cev.late-ev { background: #FFFBF1; } .cev .person { font-size: 7.5px; }
.calmonth { overflow: hidden; } .cmhead { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--panel); } .cmhead span { padding: 8px 10px; } .cmgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cmcell { min-height: 118px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 5px 6px 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; } .cmcell:nth-child(7n+1) { border-left: 0; } .cmcell.out { background: #FAFAF8; } .cmcell.out .cmday { color: #B4B8BA; }
.cmcell.holiday { background: #FFF8E6; } .cmcell.today { box-shadow: inset 0 0 0 2px var(--green); } .cmday { font-weight: 700; font-size: 12px; display: flex; gap: 6px; align-items: baseline; } .cmday small { font-weight: 600; font-size: 10px; color: #7A5A12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cmcell.today .cmday { color: var(--deep); }
.cmev { display: block; font-size: 11px; line-height: 1.25; padding: 2px 6px; border-radius: 4px; border-left: 3px solid var(--kc); background: color-mix(in srgb, var(--kc) 9%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cmev:hover { background: color-mix(in srgb, var(--kc) 18%, #fff); } .cmev.done { opacity: .5; }
.cmmore { font-size: 10.5px; font-weight: 700; color: var(--green); padding-left: 2px; }
.calyear { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .cymonth { padding: 12px 14px; } .cymonth.now { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--green); } .cyname { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 14px; margin-bottom: 8px; } .cyname small { font: 500 11px/1 var(--mono); color: var(--stone); } .cyname:hover { color: var(--deep); }
.cygrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; } .cygrid a, .cygrid i, .cyleg i { aspect-ratio: 1.25; border-radius: 3px; display: block; } .cygrid a { background: #F0F0EB; } .cygrid a:hover { outline: 2px solid var(--ink); }
.h1 { background: #CFE6D7 !important; } .h2 { background: #8FD9AE !important; } .h3 { background: #2E7D4F !important; } .h4 { background: #1F5A3C !important; } .cygrid a.holiday { box-shadow: inset 0 0 0 2px #F0B23E; } .cygrid a.today { outline: 2px solid var(--ink); outline-offset: 1px; }
.cymarks { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 9px; font-size: 11px; color: var(--body); } .cyleg { display: inline-flex; gap: 3px; } .cyleg i { width: 16px; height: 12px; margin: 0; }
@media (max-width: 1250px) { .calyear { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 900px) { .calyear { grid-template-columns: repeat(2, 1fr); } .cmcell { min-height: 76px; } .cmev { font-size: 0; padding: 3px 0; } .cmhead span { padding: 6px 4px; font-size: 9px; } }

/* v0.8: reports and activity logs */
.tiles.rep { grid-template-columns: repeat(6, 1fr); } .tiles.rep .tile { border-top: 3px solid color-mix(in srgb, var(--sc, #3F5B8A) 55%, #fff); } .tiles.rep .tile b { font-size: 21px; white-space: nowrap; }
.reph { font-size: 14px; margin: 0 0 8px; text-transform: capitalize; }
.rb { display: block; position: relative; height: 9px; border-radius: 5px; background: var(--panel); min-width: 60px; flex: 1; } .rb u { display: block; height: 100%; border-radius: 5px; background: var(--green); } .rb u.low { background: var(--amber); } .rb.mg s { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.rbrow { display: flex; align-items: center; gap: 9px; } .rbrow b { width: 52px; text-align: right; font-weight: 600; }
.wkbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; margin-top: 10px; } .wkbars > div { display: grid; gap: 4px; text-align: center; } .wkbars .stack { height: 120px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.wkbars u { display: block; background: var(--green); border-radius: 3px; min-height: 0; } .wkbars u.p { background: var(--ink); } .wkbars b { font-size: 11px; font-weight: 600; min-height: 14px; } .wkbars span { font-size: 10px; color: var(--stone); white-space: nowrap; }
.dist.flat { padding: 0; box-shadow: none; background: none; } .dist.flat .drow { grid-template-columns: 170px 1fr 30px; }
.actchart { margin-bottom: 14px; } .actchart svg { display: block; margin-top: 8px; } .actchart a:hover rect:first-of-type { fill: var(--paper); } .actchart .axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--stone); margin-top: 4px; }
.actlog .dayrow td { background: var(--paper); font-weight: 700; padding: 7px 12px; position: sticky; top: 33px; z-index: 1; } .actlog .dayrow small { font-weight: 500; color: var(--stone); margin-left: 10px; } .actlog .chip { text-transform: capitalize; } .actlog .owner { display: inline-flex; align-items: center; gap: 8px; }
.f input[type="search"] { width: 170px; outline: 0; }
@media (max-width: 1250px) { .tiles.rep { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 900px) { .tiles.rep { grid-template-columns: repeat(2, 1fr); } .wkbars span { display: none; } }
.rail .brand.hero .osname, .brand.hero b.osname { color: #000; } .rail .brand.hero .osname i, .brand.hero b.osname i { color: var(--green); font-style: normal; }
.crow > .person, .crow > .hash, .mrow > .person { flex: none; } .ctx > *, .ctx section { min-width: 0; } .dots > * { margin-left: -5px; }
.calweek { grid-template-columns: repeat(7, minmax(156px, 1fr)); min-width: 1150px; } .tiles.rep .tile .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tl li > span.person, .tl li > span.bot { flex: 0 0 auto; }

/* v0.9: one good / close / bad scale (green, yellow, red), week labels, item highlights, reporting periods and targets */
:root { --good: #2E7D4F; --warn: #D99A00; --bad: #C4432B; --good-bg: #E3F2E8; --warn-bg: #FCF1CF; --bad-bg: #FBE4DE; --warn-ink: #7A5600; --bad-ink: #8F2A17; }
.rag { font-weight: 700; white-space: nowrap; } .rag i { font-style: normal; font-size: .72em; margin-right: 4px; vertical-align: 1px; } .rag.good { color: var(--good); } .rag.warn { color: var(--warn-ink); } .rag.bad { color: var(--bad); }
td .rag.warn, dd .rag.warn, dd.rag.warn, td.rag.warn { background: var(--warn-bg); border-radius: 5px; padding: 1px 6px; } td .rag.bad, dd .rag.bad, dd.rag.bad, td.rag.bad { background: var(--bad-bg); border-radius: 5px; padding: 1px 6px; } dd.rag, td.rag { display: table-cell; } dd.rag { display: inline-block; justify-self: start; }
.ragpill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 10px 4px 8px; white-space: nowrap; } .ragpill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ragpill.good { background: var(--good-bg); color: var(--deep); } .ragpill.warn { background: var(--warn-bg); color: var(--warn-ink); } .ragpill.bad { background: var(--bad-bg); color: var(--bad-ink); } .ragpill.none { background: var(--panel); color: var(--body); }
.ragdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; flex: none; } .ragdot.good { background: var(--good); } .ragdot.warn { background: var(--warn); } .ragdot.bad { background: var(--bad); } .legend .ragdot { width: 10px; height: 10px; border-radius: 50%; }
.ragrow.bad td:first-child { box-shadow: inset 4px 0 0 var(--bad); } .ragrow.warn td:first-child { box-shadow: inset 4px 0 0 var(--warn); } .ragrow.good td:first-child { box-shadow: inset 4px 0 0 var(--good); }
.ragcount { display: inline-flex; gap: 6px; flex-wrap: wrap; } .ragcount b { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 10px; } .ragcount .good { background: var(--good-bg); color: var(--deep); } .ragcount .warn { background: var(--warn-bg); color: var(--warn-ink); } .ragcount .bad { background: var(--bad); color: #fff; }
.ragline { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 2px; }
.wktag { display: inline-grid; line-height: 1.15; vertical-align: middle; } .wktag b { font-weight: 700; } .wktag small { font: 600 .72em/1.3 var(--mono); letter-spacing: .06em; color: var(--stone); margin-top: 3px; }
.caltitle .wktag small { font-size: 11px; } .rper { font-size: 15px; font-weight: 700; margin: 0 8px 0 4px; white-space: nowrap; } .rtitle { font-size: 24px; margin: 6px 0 6px; } .rtitle .wktag small { font-size: 13px; margin-top: 5px; } .rnext { font-weight: 700; font-size: 12px; text-align: right; }
.cbohead .ragcount { margin-left: auto; align-self: flex-start; }
.watch { margin-bottom: 12px; } .watch .sh { align-items: center; margin-bottom: 10px; } .watch h2 { font-size: 16px; margin: 0; } .wgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.wcard { display: block; border-radius: 10px; padding: 12px 14px 11px 16px; border-left: 5px solid var(--warn); background: var(--warn-bg); } .wcard.bad { border-left-color: var(--bad); background: var(--bad-bg); } .wcard:hover { box-shadow: var(--float); }
.wcard .mono { color: var(--warn-ink); font-weight: 700; } .wcard.bad .mono { color: var(--bad-ink); } .wcard b { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; margin: 5px 0 4px; } .wcard p { margin: 0 0 8px; color: var(--ink); font-size: 12.5px; } .wcard em { font-style: normal; font-weight: 700; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.fine { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; } .fine a { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--deep); background: var(--good-bg); border-radius: 999px; padding: 4px 11px 4px 9px; font-weight: 600; } .fine i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.allgood { margin: 0; font-weight: 600; color: var(--deep); }
.tiles.rep.three { grid-template-columns: repeat(3, 1fr); } .tiles.rep .tile small .rag i, .tile small.rag i { margin-right: 4px; } .tile small.rag { display: block; font-size: 11px; }
.ragtile.good { border-top-color: var(--good) !important; } .ragtile.warn { border-top-color: var(--warn) !important; } .ragtile.bad { border-top-color: var(--bad) !important; } .ragtile.good b { color: var(--good); } .ragtile.warn b { color: var(--warn-ink); } .ragtile.bad b { color: var(--bad); }
.tglist { padding: 4px 16px; } .tglist.flat { padding: 0; } .tgrow { display: grid; grid-template-columns: minmax(200px, 1.5fr) 150px minmax(150px, 1.2fr) 110px; gap: 16px; align-items: center; padding: 11px 0 11px 12px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--stone); margin-left: -4px; } .tgrow:last-child { border-bottom: 0; }
.tgrow.good { border-left-color: var(--good); } .tgrow.warn { border-left-color: var(--warn); } .tgrow.bad { border-left-color: var(--bad); } .tgname b { display: block; font-weight: 600; } .tgname small, .tgval small, .tgbar small { display: block; color: var(--stone); font-size: 11.5px; }
.tgval b { font-size: 17px; font-weight: 700; } .tgrow.bad .tgval b { color: var(--bad); } .tgrow.warn .tgval b { color: var(--warn-ink); } .tgrow.good .tgval b { color: var(--good); }
.tgbar i { display: block; position: relative; height: 10px; border-radius: 5px; background: var(--panel); } .tgbar u { display: block; height: 100%; border-radius: 5px; background: var(--stone); } .tgrow.good .tgbar u { background: var(--good); } .tgrow.warn .tgbar u { background: var(--warn); } .tgrow.bad .tgbar u { background: var(--bad); }
.tgbar s { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); } .tgbar small { margin-top: 5px; } .tgrow .ragpill { justify-self: end; }
.hlbox { border-top: 4px solid var(--good); } .hlbox.bad { border-top-color: var(--bad); } .hl { list-style: none; margin: 0; padding: 0; } .hl li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); } .hl li:last-child { border-bottom: 0; }
.hl li > i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--good); transform: translateY(-1px); } .hl li.warn > i { background: var(--warn); } .hl li.bad > i { background: var(--bad); } .hl li > span { flex: 1; min-width: 0; } .hl .link { flex: none; font-size: 12px; }
.wkbars .wl { display: grid; line-height: 1.2; white-space: nowrap; font-size: 10px; color: var(--body); } .wkbars .wl b { font-size: 10px; font-weight: 600; min-height: 0; } .wkbars .wl small { font: 600 9.5px/1.3 var(--mono); color: var(--stone); letter-spacing: .04em; } .wkbars u.l { background: var(--warn); } .wkbars .now .stack { box-shadow: 0 0 0 2px var(--ink); border-radius: 4px; } .wkbars .stack { background: var(--paper); border-radius: 4px; overflow: hidden; }
@media (max-width: 1100px) { .tgrow { grid-template-columns: 1fr 130px; } .tgbar { grid-column: 1 / -1; order: 3; } .tgrow .ragpill { justify-self: start; } }
@media (max-width: 900px) { .tiles.rep.three { grid-template-columns: 1fr; } .wkbars .wl small { display: none; } }
.ragrow.good, .tgrow.good, .hl li.good, .tile.ragtile.good, .wcard.good, .hlbox.good { color: var(--ink); font-weight: 400; } .ragrow.good td { font-weight: 400; }
.tiles.rep { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tile small.rag { white-space: normal; line-height: 1.3; margin-top: 3px; } .tiles.rep .tile small { line-height: 1.3; }
@media (max-width: 1250px) { .tiles.rep, .tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 900px) { .tiles.rep, .tiles.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .wkbars span.wl { display: grid; } .wkbars .wl small { display: block; } }

/* ---- v0.10: commercial layer. Alerts in words, value basis tags, the cost ladder, rebate stages, period selectors ---- */
.seg .segb { border: 0; background: none; padding: 6px 12px; border-radius: 6px; font-weight: 600; color: var(--body); text-transform: capitalize; white-space: nowrap; cursor: pointer; }
.seg .segb[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.seg .segb.off { color: #A9ADAA; cursor: not-allowed; text-decoration: line-through; text-decoration-color: #C9CFCB; }
.alertbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; border-radius: var(--r-panel); padding: 11px 16px; margin-bottom: 10px; border-left: 6px solid var(--good); background: var(--good-bg); color: var(--ink); }
.alertbar b { font-weight: 700; font-size: 14px; } .alertbar span { color: var(--body); flex: 1 1 320px; } .alertbar .btn { flex: none; }
.alertbar.warn { border-left-color: var(--warn); background: var(--warn-bg); } .alertbar.warn b { color: var(--warn-ink); }
.alertbar.bad { border-left-color: var(--bad); background: var(--bad-bg); } .alertbar.bad b { color: var(--bad-ink); }
.alertbar.good b { color: var(--deep); }
.notice { background: #fff; border-radius: var(--r-panel); box-shadow: inset 0 0 0 1.5px var(--pale); padding: 10px 14px; margin-bottom: 10px; color: var(--body); } .notice b { color: var(--ink); }
.hint { margin: 12px 0 0; padding: 9px 12px; border-radius: 8px; background: var(--leaf); color: var(--deep); } .hint b { font-weight: 700; }
.purpose { margin: -6px 0 12px; color: var(--body); max-width: 96ch; }
.btag { display: inline-block; font: 600 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; padding: 4px 6px; margin-right: 4px; white-space: nowrap; background: var(--panel); color: var(--body); }
.btag.estimated { background: none; outline: 1px dashed #8A8F94; outline-offset: -1px; } .btag.quoted { background: var(--sand); color: #5B4107; } .btag.agreed { background: var(--leaf); color: var(--deep); } .btag.actual { background: var(--ink); color: #fff; } .btag.missing { background: var(--bad-bg); color: var(--bad-ink); }
table.ladder td { vertical-align: top; } table.ladder tr.lvl td { background: var(--paper); border-top: 2px solid var(--line); } table.ladder tr.lvl td:nth-child(3) { font-weight: 700; font-size: 14px; }
table.ladder tr.part td { padding-top: 5px; padding-bottom: 5px; color: var(--body); } table.ladder .sub { padding-left: 14px; position: relative; } table.ladder .sub::before { content: "+"; position: absolute; left: 0; color: var(--stone); }
table.ladder tr.gapline td { box-shadow: inset 0 -2px 0 var(--bad); } table.ladder td .chip { margin-left: 4px; }
.perbar { margin: 10px 0 8px; gap: 8px 14px; } .perinfo { color: var(--body); } .perinfo b { color: var(--ink); font-weight: 700; }
.scn { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; margin-top: 10px; } .scn > span { font-weight: 600; }
.funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.fstep { background: var(--paper); border-radius: 10px; padding: 10px 12px; border-top: 4px solid var(--stone); min-width: 0; } .fstep b { display: block; font-size: 17px; font-weight: 700; margin: 6px 0 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fstep i { display: block; height: 6px; border-radius: 3px; background: var(--panel); } .fstep i u { display: block; height: 100%; border-radius: 3px; background: var(--stone); } .fstep small { display: block; margin-top: 7px; color: var(--body); font-size: 11px; line-height: 1.3; }
.fstep.t { border-top-color: #B5B9B4; } .fstep.g { border-top-color: var(--good); } .fstep.g i u { background: var(--good); } .fstep.o { border-top-color: var(--warn); } .fstep.o i u { background: var(--warn); } .fstep.b { border-top-color: var(--bad); background: var(--bad-bg); } .fstep.b i u { background: var(--bad); }
.repmeta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: -4px 0 12px; color: var(--body); font-size: 12px; } .repmeta b { font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--stone); margin-right: 6px; }
.calday { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; align-items: start; }
.cev.st-planned { border-left-style: dashed; } .cev.st-overdue { border-left-color: var(--bad); background: #FFF6F3; } .cev.st-overdue small u.late { color: var(--bad); }
.stk { display: inline-block; width: 4px !important; height: 14px !important; border-radius: 0 !important; background: none !important; border-left: 4px solid var(--stone); vertical-align: -3px !important; } .stk.planned { border-left-style: dashed; } .stk.overdue { border-left-color: var(--bad); } .stk.completed { opacity: .45; }
.tile small { display: block; } a.rag { text-decoration: underline; text-underline-offset: 2px; }
td .t2.rag { display: block; background: none !important; padding: 0 !important; font-size: 11px; }
@media (max-width: 1250px) { .funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .scn { grid-template-columns: 1fr; } }
@media print { .rail, .top, .bar, .tabs, .hsnav, .btn { display: none !important; } .app { display: block; } .main, .view { overflow: visible !important; height: auto !important; } body { background: #fff; } .panel, .tile { box-shadow: none; border: 1px solid var(--line); break-inside: avoid; } }

/* ---- v0.11: Artworks & Design. Previews, galleries, the label matrix, review threads, how a request was catalogued, the journey ---- */
.pv { display: block; width: 100%; height: auto; background: #FAFAF8; border-radius: 8px; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.acard2 { display: flex; flex-direction: column; overflow: hidden; padding: 0; } .acard2:hover { box-shadow: var(--float); }
.pvbox { height: 168px; display: flex; align-items: center; justify-content: center; background: #FAFAF8; border-bottom: 1px solid var(--line); overflow: hidden; padding: 8px; } .pvbox .pv { max-height: 152px; width: auto; max-width: 100%; background: none; }
.ameta { padding: 10px 12px 12px; display: grid; gap: 6px; } .ameta b { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .ameta .acf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pvdoc { width: 112px; height: 144px; background: #fff; border: 1px solid #C9CFCB; border-radius: 4px; padding: 12px 10px; display: grid; gap: 7px; align-content: start; box-shadow: var(--shadow); } .pvdoc .mono { font-size: 8.5px; line-height: 1.3; color: var(--deep); } .pvdoc i { display: block; height: 5px; border-radius: 2px; background: var(--panel); }
.pvbig .pv { margin-top: 8px; } .docpv { margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px 26px; max-height: 720px; overflow: auto; line-height: 1.55; }
.docpv h2 { font-size: 19px; margin: 0 0 8px; } .docpv h3 { font-size: 15px; margin: 18px 0 6px; } .docpv h4, .docpv h5 { font-size: 13px; margin: 14px 0 4px; } .docpv p { margin: 0 0 8px; } .docpv ul { margin: 0 0 10px; padding-left: 20px; } .docpv table { margin: 6px 0 12px; font-size: 12px; } .docpv th, .docpv td { border: 1px solid var(--line); } .docpv blockquote { margin: 0 0 10px; padding: 8px 12px; border-left: 4px solid var(--pale); background: var(--paper); }
table.lmx th { text-align: center; white-space: normal; min-width: 54px; vertical-align: bottom; } table.lmx th:first-child { text-align: left; } table.lmx th small { display: block; font: 500 8.5px/1.2 var(--mono); letter-spacing: 0; text-transform: none; color: var(--stone); margin-top: 3px; } table.lmx td.c { text-align: center; } table.lmx td.c .rag { background: none !important; padding: 0 !important; font-size: 14px; }
.rvthread { display: grid; gap: 10px; margin-top: 8px; } .rv { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 10px; background: var(--paper); } .rv.chg { background: var(--warn-bg); } .rv.ok { background: var(--good-bg); }
.rv .by { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .rv .by i { font-style: normal; color: var(--stone); font-size: 11px; } .rv .by time { color: var(--stone); font-size: 11px; margin-left: auto; } .rv p { margin: 3px 0 5px; } .rv > div { flex: 1; min-width: 0; }
.triage { margin: 10px 0 4px; padding: 14px 16px; background: #F6FAF7; border-radius: 10px; } .triage .kv { margin-top: 8px; } .askbox { margin-top: 12px; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff; } .askbox .mono { color: var(--mint); } .askbox ol { margin: 6px 0 0; padding-left: 20px; } .askbox li { margin: 3px 0; }
.tchip { display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; padding: 6px 9px; border-radius: 8px; background: #F6FAF7; font-size: 12px; color: var(--body); } .tchip b { color: var(--ink); font-weight: 600; } .tchip:hover { background: var(--leaf); }
.jgrid { display: grid; grid-template-columns: repeat(7, minmax(190px, 1fr)); gap: 10px; min-width: 1380px; align-items: start; }
.jcol { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 12px; border-top: 4px solid var(--panel); display: grid; gap: 6px; align-content: start; } .jcol.done { border-top-color: var(--good); } .jcol.now { border-top-color: var(--ink); box-shadow: var(--float); } .jcol.none { opacity: .5; }
.jh b { display: block; font-size: 14px; margin: 5px 0 2px; } .jh small { color: var(--stone); } .jtouch { margin: 0; padding: 6px 8px; border-radius: 6px; background: var(--sand); font-size: 11.5px; }
.jasset { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 6px; background: var(--paper); font-size: 11.5px; } .jasset span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .jasset:hover { background: var(--leaf); } .jasset .chip { font-size: 8.5px; padding: 3px 5px; }

/* ---- v0.12: review fixes. A person's approval and supplier progress are not agent green. ---- */
.chip.ok { color: var(--deep); background: #fff; box-shadow: inset 0 0 0 1.5px var(--deep); }
.chip.transit { color: #2C4470; background: #E4EAF4; }
.cols > *, .tgrid > * { min-width: 0; }
.dchip { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; padding: 4px 8px; border-radius: 6px; background: var(--paper); font-size: 11.5px; }
.refbar { display: flex; gap: 8px; align-items: center; margin-top: 6px; } .refbar select { max-width: 340px; }
tr.sel td { background: #F1F7F3; }

/* Record entry and revision review use the existing form and button styles. */
.settoolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.setgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.setform .sh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.setform input[type="number"] { font-variant-numeric: tabular-nums; }
.record-editor, .record-history { max-width: 900px; }
.record-editor textarea { font: inherit; resize: vertical; min-height: 130px; }
.record-editor input, .record-editor select { min-height: 42px; }
.editor-actions, .record-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.editor-actions { border-top:1px solid var(--line); padding-top:16px; }
#record-error:empty { display:none; }
.head.with-actions { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.head.with-actions > :first-child { flex:1; }
.record-actions { flex-shrink:0; }
.record-history { margin-top:24px; }
.revision { padding:20px 0; border-top:1px solid var(--line); }
.revision header { display:flex; gap:12px; flex-wrap:wrap; justify-content:space-between; margin-bottom:16px; }
.revision time { color:var(--body); font-size:12px; }
.revision-change { display:grid; grid-template-columns:120px 1fr 1fr; gap:16px; margin-bottom:16px; }
.revision-change p { margin:4px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.revision-change .muted { font-size:12px; }
.record-trail { display:flex; gap:20px; align-items:baseline; margin-bottom:18px; font-size:12px; }
.record-trail > div { display:flex; gap:8px; flex-wrap:wrap; }
.back-link { flex-shrink:0; font-weight:600; }
@media(max-width:600px) {
  .head.with-actions { align-items:flex-start; flex-direction:column; }
  .revision-change { grid-template-columns:1fr; gap:8px; }
  .record-trail { flex-direction:column; gap:8px; }
}
.editor-actions .btn, .record-actions .btn, .revision > .btn { padding:9px 14px; text-decoration:none; }

.record-target { cursor:pointer; transition:background-color .12s ease, box-shadow .12s ease; }
.record-target:hover { filter:brightness(0.985); }
.record-target:focus-visible { outline:2px solid var(--green); outline-offset:-2px; }
.record-target.tone-ok:hover, tr.record-target:hover td { background-color:#f0f6f2; }
@media(prefers-reduced-motion:reduce) { .record-target { transition:none; } }

.change-request-dialog { width:min(720px,calc(100vw - 32px)); max-height:90vh; overflow:auto; border:1px solid var(--line); border-radius:14px; padding:24px; color:var(--ink); background:#fff; box-shadow:0 20px 80px #0003; }
.change-request-dialog::backdrop { background:rgb(20 35 28 / .4); }
.change-request-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.change-request-head h2 { margin:0; }
.change-request-head p { margin:6px 0 0; }
.change-request-fields { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.change-request-dialog textarea { font:inherit; resize:vertical; }
.change-request-dialog .btn { padding:9px 14px; }
#change-request-error:empty { display:none; }
@media(max-width:600px) { .change-request-fields { grid-template-columns:1fr; } .change-request-dialog { padding:18px; } }

/* ---- Internal OS additions ---------------------------------------------------------------------------------------- */
.signin { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; }
.signin h1 { margin: 6px 0 0; font: 700 28px/1.1 var(--sans); letter-spacing: -.01em; }
.signin h1 i { font-style: normal; color: var(--green); }
.signin .btn { margin-top: 10px; }
.signin-msg { min-height: 18px; margin: 0; color: var(--bad-ink); font-weight: 500; }
.palette { position: fixed; inset: 0; z-index: 50; display: grid; justify-items: center; align-content: start; padding-top: 12vh; background: rgba(28,35,41,.32); }
.palette[hidden], .signin[hidden], .app[hidden] { display: none; }
.headact { display: flex; align-items: center; gap: 10px; margin-top: 10px; } .head .headact .seg { margin-top: 0; }
.board.b5 { grid-template-columns: repeat(5, minmax(190px, 1fr)); min-width: 980px; }
.colh { display: flex; align-items: baseline; gap: 6px; margin: 2px 4px 8px; font: 700 11px/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--body); }
.colh small { font: 500 11px/1 var(--mono); color: var(--stone); letter-spacing: 0; }
.colempty { margin: 6px 4px; color: var(--stone); font-size: 12px; }
.card.frame { padding-top: 12px; } .card .l1 .chip { padding: 3px 5px; }
.agentdot { flex: none; border-radius: 50%; background: var(--leaf); }
.twocol { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; } .grow { min-width: 0; }
.tpanel { position: sticky; top: 0; } .tpanel .ph { margin: 0 0 12px; font: 700 15px/1.2 var(--sans); }
.fld { display: grid; gap: 4px; margin-bottom: 10px; min-width: 0; flex: 1; }
.fld span { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.fld input, .fld select, .fld textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; font: inherit; color: inherit; }
.fld textarea { resize: vertical; } .fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; }
.frow { display: flex; gap: 8px; align-items: flex-start; } .frow .btn { text-align: center; }
.formmsg { min-height: 18px; margin: 0 0 8px; color: var(--bad-ink); font-weight: 600; }
.notice { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--bad-bg); color: var(--bad-ink); font-weight: 600; }
.f input[type="search"] { min-width: 140px; }
@media (max-width: 1100px) { .twocol { grid-template-columns: 1fr; } .tpanel { position: static; } }
a.btn { display: inline-block; white-space: nowrap; } .frow > .btn { flex: none; }
.sech { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); font: 700 13px/1.2 var(--sans); }
.sech small { font: 500 11px/1 var(--mono); color: var(--stone); }
.ilist2 { list-style: none; margin: 0; padding: 0; }
.irow { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); } .irow:last-child { border-bottom: 0; }
.irow.urgent { background: var(--warn-bg); } .irow .what { flex: 1; min-width: 0; font-weight: 600; } a.what:hover { color: var(--deep); text-decoration: underline; }
.irow .when { flex: none; color: var(--body); } .irow .acts { display: flex; gap: 6px; flex: none; }
.caltitle2 { margin-left: 6px; font-size: 15px; }
.cal7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.calhead span { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--stone); padding: 0 8px; }
.cday { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 8px; min-height: 220px; min-width: 0; cursor: pointer; }
.cal7.month .cday { min-height: 118px; } .cday.out { background: none; box-shadow: inset 0 0 0 1px var(--line); } .cday.out h3 { color: var(--stone); }
.cday.today { box-shadow: inset 0 0 0 2px var(--green), var(--shadow); }
.cday h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 4px; font: 700 12px/1.2 var(--sans); }
.cadd { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--stone); font-weight: 700; } .cadd:hover { background: var(--leaf); color: var(--deep); }
.cit { display: block; border-radius: 6px; padding: 5px 7px; margin-top: 5px; background: var(--paper); font-size: 12px; font-weight: 600; line-height: 1.3; border-left: 3px solid var(--ink); overflow: hidden; text-overflow: ellipsis; }
.cit small { display: block; font: 500 9.5px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--stone); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cit.agent { border-left-color: var(--green); background: #F1F7F3; } .cit.rem { border-left-color: var(--amber); background: var(--warn-bg); }
.cit.done { opacity: .55; text-decoration: line-through; } .cit:hover { box-shadow: var(--shadow); }
.cmore { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 600; color: var(--green); }
@media (max-width: 900px) { .cal7 { grid-template-columns: 1fr; } .calhead { display: none; } .cday, .cal7.month .cday { min-height: 0; } }
.cday { text-align: left; }
.star { border: 0; background: none; padding: 0 0 0 8px; font-size: 16px; line-height: 1; color: var(--stone); vertical-align: middle; } .star[aria-pressed="true"] { color: var(--amber); } .star:hover { color: var(--ink); }
.secbtn { border: 0; background: none; padding: 0; margin: 0; width: 100%; display: flex; align-items: center; gap: 8px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-align: left; }
.secbtn .chev { margin-left: auto; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); opacity: .5; flex: none; }
.secbtn[aria-expanded="false"] .chev { transform: rotate(-45deg); } .secbtn:hover .chev { opacity: 1; }
.sec.shut { padding-bottom: 2px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); } .kv span { color: var(--stone); } .kv b { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
