@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F4F6F4; --panel: #FFFFFF; --panel-2: #F8FAF8; --ink: #0D1C17; --ink-2: #3B4A44; --muted: #6B7A74;
  --line: #E2E7E4; --line-2: #EDF1EE;
  --brand: #0A7A5C; --brand-ink: #FFFFFF; --brand-soft: #E3F3EC; --brand-deep: #075C45;
  --red: #B8322A; --red-soft: #FBE9E7; --amber: #8A5300; --amber-soft: #FBF0D9; --blue: #1F5FA8; --blue-soft: #E7EFFA;
  --side: #0D1C17; --side-ink: #C9D6D0; --side-active: #17302A;
  --radius: 12px; --shadow: 0 1px 2px rgba(13, 28, 23, .06), 0 4px 16px rgba(13, 28, 23, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1411; --panel: #121E1A; --panel-2: #17241F; --ink: #E6EEEA; --ink-2: #C2CEC8; --muted: #8FA099;
    --line: #23332D; --line-2: #1C2A25; --brand: #2FB487; --brand-ink: #06140F; --brand-soft: #143328; --brand-deep: #5CD3A8;
    --red: #F08A80; --red-soft: #3A1C19; --amber: #F2C26B; --amber-soft: #33270F; --blue: #8DB8F0; --blue-soft: #16253A;
    --side: #07100D; --side-ink: #A9BAB2; --side-active: #14251F; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1411; --panel: #121E1A; --panel-2: #17241F; --ink: #E6EEEA; --ink-2: #C2CEC8; --muted: #8FA099;
  --line: #23332D; --line-2: #1C2A25; --brand: #2FB487; --brand-ink: #06140F; --brand-soft: #143328; --brand-deep: #5CD3A8;
  --red: #F08A80; --red-soft: #3A1C19; --amber: #F2C26B; --amber-soft: #33270F; --blue: #8DB8F0; --blue-soft: #16253A;
  --side: #07100D; --side-ink: #A9BAB2; --side-active: #14251F; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* layout */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-weight: 800; font-size: 17px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; color: #fff; font-weight: 800; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--side-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a:hover { background: var(--side-active); color: #fff; }
.nav a.active { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 #3CC79B; }
.nav .ico { width: 18px; text-align: center; opacity: .9; }
.nav .badge { margin-left: auto; background: #3CC79B; color: #06140F; border-radius: 99px; padding: 0 8px; font-size: 12px; font-weight: 800; }
.nav-sep { height: 1px; background: #1E312B; margin: 10px 8px; }
.side-foot { margin-top: auto; padding: 10px; font-size: 12px; color: #7F938B; }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.top .title { font-weight: 800; font-size: 17px; }
.top .spacer { flex: 1; }
.content { padding: 24px 28px 60px; max-width: 1180px; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 9px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 14px; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.btn.danger.solid { background: var(--red); color: #fff; border-color: var(--red); }
.btn.wa { color: #0B7A3E; border-color: #BFE3CD; background: #F1FAF4; }
:root[data-theme="dark"] .btn.wa { color: #7BE0A6; border-color: #24503A; background: #0F2219; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.wa { color: #7BE0A6; border-color: #24503A; background: #0F2219; } }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.big { padding: 13px 22px; font-size: 15px; border-radius: 12px; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 9px 12px; outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { min-height: 80px; resize: vertical; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--ink-2); }
label.field small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; background: var(--panel); }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; }
.check b { display: block; font-size: 14px; }
.check small { color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head .spacer { flex: 1; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .k { font-size: 12px; font-weight: 700; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--muted); }
.stat.hero { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.stat.hero .k, .stat.hero .s { color: color-mix(in srgb, var(--brand-ink) 75%, transparent); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip.green { background: var(--brand-soft); color: var(--brand-deep); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.banner { border-radius: 10px; padding: 12px 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.banner.red { background: var(--red-soft); color: var(--red); }
.banner.amber { background: var(--amber-soft); color: var(--amber); }
.banner:not(.red):not(.amber):not(.green) { background: var(--panel-2); }
.banner.green { background: var(--brand-soft); color: var(--brand-deep); }

/* task card */
.task { padding: 0; overflow: hidden; }
.task-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.task-head .num { font-size: 22px; font-weight: 800; }
.task-head .spacer { flex: 1; }
.task-body { display: grid; grid-template-columns: 1.2fr 1fr; }
.task-body > div { padding: 20px 22px; }
.task-body > div + div { border-left: 1px solid var(--line); background: var(--panel-2); }
.task-foot { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--panel); }
.task-foot .spacer { flex: 1; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; font-size: 14px; }
.kv > b { color: var(--muted); font-weight: 600; font-size: 13px; }
.addr { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--panel); font-size: 15px; line-height: 1.45; }
.warns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.items { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel); }
.coll { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--bg); }
.coll.Zipper { background: #6B3FA0; color: #fff; }
.coll.Hoodie { background: var(--brand); color: #fff; }
.item .size { margin-left: auto; font-weight: 800; font-size: 15px; }
.cod { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.section-label { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .04em; margin: 16px 0 8px; }
.section-label:first-child { margin-top: 0; }
.wa-row { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { text-align: center; padding: 60px 20px; }
.empty .big { font-size: 42px; }
.dup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; padding: 20px 22px; }
.dup-card { border: 2px solid var(--line); border-radius: 12px; padding: 14px; background: var(--panel); }
.dup-card.keep { border-color: var(--brand); }
.dup-card.cancel { border-color: var(--red); opacity: .85; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: 7px 14px; font-weight: 700; cursor: pointer; font-size: 13px; }
.seg button.on.keep { background: var(--brand); color: #fff; }
.seg button.on.cancel { background: var(--red); color: #fff; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--panel-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.spark > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.spark i { display: block; width: 100%; max-width: 36px; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.spark span { font-size: 11px; color: var(--muted); }

/* shift pill */
.shift { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); font-weight: 700; font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.on { background: #22B07D; box-shadow: 0 0 0 3px rgba(34, 176, 125, .2); }
.dot.break { background: #E0A100; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--bg); }
.login { width: 100%; max-width: 400px; }
.login .brand { color: var(--ink); padding: 0 0 18px; }

/* modal + toast */
.modal-back { position: fixed; inset: 0; background: rgba(5, 12, 10, .55); display: grid; place-items: center; padding: 20px; z-index: 50; }
.modal { background: var(--panel); border-radius: 14px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal.wide { max-width: 760px; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-head .spacer { flex: 1; }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 10px; font-weight: 600; max-width: 380px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.toast.err { background: var(--red); color: #fff; }
.toast.ok { background: var(--brand); color: #fff; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 6px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
.tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.timeline { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.timeline div { display: flex; gap: 8px; }
.timeline time { color: var(--muted); white-space: nowrap; min-width: 112px; }
code.path { background: var(--line-2); padding: 2px 6px; border-radius: 6px; font-size: 12px; word-break: break-all; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .brand { padding: 4px 8px; }
  .nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .nav-sep, .side-foot { display: none; }
  .content, .top { padding-left: 16px; padding-right: 16px; }
  .top { flex-wrap: wrap; position: static; row-gap: 8px; }
  .top .spacer { flex-basis: 100%; height: 0; }
  .task-head { flex-wrap: wrap; }
  .cod { font-size: 22px; }
  .task-head .num { font-size: 20px; }
  .task-body, .grid2, .grid3 { grid-template-columns: 1fr; }
  .task-body > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }


/* v0.3 unified app: Customer Support/Admin rendered inside the main EPT shell */
.embed-app { min-height: 100vh; background: var(--bg); }
.embed-nav { display:flex; gap:6px; align-items:center; flex-wrap:wrap; padding:10px 12px; border-bottom:1px solid var(--line); background:var(--panel); position:sticky; top:0; z-index:5; }
.embed-nav .nav-sep { display:none; }
.embed-nav a { display:inline-flex; align-items:center; gap:7px; padding:8px 12px; border-radius:9px; color:var(--ink-2); text-decoration:none; font-size:13px; font-weight:700; }
.embed-nav a:hover { background:var(--panel-2); }
.embed-nav a.active { background:var(--brand-soft); color:var(--brand-deep); }
.embed-nav .badge { margin-left:3px; }
.embed-top { display:flex; align-items:center; gap:10px; padding:12px 16px 4px; }
.embed-top .title { font-size:20px; font-weight:800; }
.embed-top .spacer { flex:1; }
.embed-content { padding:12px 16px 24px; max-width:1500px; margin:0 auto; }
.embedded-mode body { background:var(--bg); }
@media (max-width: 760px) { .embed-top { flex-wrap:wrap; } .embed-content { padding:10px; } }

/* "Abhi kiye kaam" — undo strip (simple list, one button per line) */
.undo-box { padding: 10px 14px; margin-bottom: 14px; }
.undo-box summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 4px; }
.undo-box summary::-webkit-details-marker { display: none; }
.undo-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.undo-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); }
.undo-row.cancel { background: var(--amber-soft); }
.undo-row.bad { background: var(--red-soft); color: var(--red); }
.undo-ico { width: 20px; text-align: center; }
.undo-text { flex: 1; min-width: 0; }

/* v0.10 — CS board (sheet-like), attendance first, owner overview. Open, flat, no boxes in boxes. */
.autoheight, .autoheight body { height: auto; }
.autoheight .embed-app { min-height: 0; }
.autoheight .embed-nav { position: static; }
.autoheight .modal-back { position: absolute; top: var(--vp-top, 0px); left: 0; right: 0; bottom: auto; height: var(--vp-h, 100vh); }
.autoheight .modal { max-height: calc(var(--vp-h, 100vh) - 40px); }
.autoheight .toasts { position: absolute; top: calc(var(--vp-top, 0px) + var(--vp-h, 100vh) - 20px); bottom: auto; transform: translateY(-100%); }
.no-shift { display: none; }
.linkish { border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.linkish.on { color: var(--ink); background: var(--line-2); }
.btn.icon { padding: 3px 7px; min-height: 0; }
.input.sm { padding: 6px 8px; font-size: 13px; width: auto; min-width: 0; }

.gate { max-width: 460px; margin: 48px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gate-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--brand-soft); color: var(--brand-deep); }
.gate h1 { font-size: 26px; }
.gate p { margin: 0; }
.gate .btn.big { margin-top: 10px; }
.gate-lang { margin-top: 18px; display: flex; gap: 4px; }

.board-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.board-head .spacer { flex: 1; }
.target { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.target-bar { width: 160px; height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; display: block; }
.target-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.note-line { padding: 8px 0 8px 12px; border-left: 3px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.note-line.amber { border-left-color: var(--amber); color: var(--amber); }
.board-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 6px 0 0; }
.board-tabs button { border: 0; background: none; padding: 10px 0; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; }
.board-tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }
.board-tabs .count { font-size: 12px; background: var(--line-2); color: var(--ink-2); border-radius: 99px; padding: 1px 8px; }
.board-tabs button.on .count { background: var(--brand-soft); color: var(--brand-deep); }
.board-wrap { background: var(--panel); border-bottom: 1px solid var(--line); }
.table.board td { padding: 10px 10px; vertical-align: middle; }
.table.board th { padding: 10px; background: var(--panel); position: sticky; top: 0; }
.table.board .ord { font-weight: 800; }
.table.board .addr-cell { max-width: 260px; }
.table.board .clip { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; }
.table.board .note-cell { max-width: 220px; color: var(--ink-2); }
.table.board .decide-cell { white-space: nowrap; }
.table.board tr:hover td { background: var(--panel-2); }
.table.board tr.busy td { opacity: .55; }
.table.board tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.table.board tr.owner-note-row td { background: var(--amber-soft); color: var(--amber); border-bottom: 0; padding: 7px 10px; font-size: 13px; }
.table.board tr.has-note td { background: color-mix(in srgb, var(--amber-soft) 45%, transparent); }
.row.tight { gap: 6px; flex-wrap: nowrap; }
.decide { font-weight: 700; }
.in-modal .card.task { box-shadow: none; border: 0; margin: -20px -22px; border-radius: 0; }
.pick-list .check { margin-bottom: 6px; }
.cs-box { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 4px 0 12px; }

.kpis { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.kpi { flex: 1 1 140px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi + .kpi { border-left: 1px solid var(--line-2); }
.kpi b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 700; }
.kpi.warn b { color: var(--amber); }
section.plain { margin-bottom: 26px; }
section.plain > h2, section.plain > .row h2 { margin-bottom: 8px; }
.look { display: flex; flex-direction: column; }
.look-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.look-row .grow { flex: 1; min-width: 0; }
@media (max-width: 760px) { .kpi + .kpi { border-left: 0; } .target-bar { width: 100px; } }
.table.board select.decide { max-width: 170px; }
.table.board select.wa-pick { max-width: 130px; }

/* admin pages inside the portal: the portal already has the menu and the page title */
.embed-admin .embed-nav { display: none; }
.embed-admin .embed-top .title { display: none; }
.embed-admin .embed-top { padding-top: 4px; }

/* popup inside the portal: same dim inside this screen as the portal's dim outside it */
.autoheight .modal { box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }

/* v0.12 shift plan strip */
.plan-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.plan-strip.pace-tight { border-left-color: var(--amber); }
.plan-strip.pace-behind, .plan-strip.over, .plan-strip.pace-over { border-left-color: var(--red); }
.plan-clock { display: flex; flex-direction: column; min-width: 120px; }
.plan-time { font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--ink); }
.plan-strip.over .plan-time { color: var(--red); }
.plan-steps { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-arrow { color: var(--muted); }
.plan-step { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: none; border-radius: 99px; padding: 6px 12px 6px 6px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.plan-step .plan-n { width: 22px; height: 22px; border-radius: 50%; background: var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.plan-step.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.plan-step.on .plan-n { background: var(--brand); color: #fff; }
.plan-step.done .plan-n { background: var(--brand-soft); color: var(--brand-deep); }
.plan-step.later { opacity: .6; }
.plan-pace { display: flex; flex-direction: column; text-align: right; gap: 2px; font-size: 14px; }
.pace-ok .plan-pace b { color: var(--brand-deep); }
.pace-tight .plan-pace b { color: var(--amber); }
.pace-behind .plan-pace b, .pace-over .plan-pace b { color: var(--red); }
.board-tabs button.dim { opacity: .55; }
@media (max-width: 760px) { .plan-strip { grid-template-columns: 1fr; } .plan-pace { text-align: left; } }

/* v0.13 pending ladder + second number */
.ladder { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; margin-top: 4px; }
.ladder b { color: var(--blue); }
.ladder.ready { color: var(--brand-deep); font-weight: 700; }
.lad-step { font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); font-weight: 700; white-space: nowrap; }
.lad-step.done { background: var(--brand-soft); color: var(--brand-deep); }
.alt-box { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
.alt-box.hard { border-color: var(--red); background: var(--red-soft); }
.alt-box .input { max-width: 220px; }
.check.inline { display: inline-flex; gap: 6px; align-items: center; }
