
/* The same family as Daily Balancing: a quiet header over a cool working surface, eucalyptus green for
   "do this / you are here". Each duty has a tone (its card colour); leave is grey and hatched. */
:root {
    --bg: #eef2f0; --surface: #ffffff; --surface-2: #f6f8f7; --surface-3: #e6ece9;
    --ink: #13201c; --ink-2: #34433e; --muted: #5d6c67; --faint: #98a49f; --line: #dde4e1; --line-2: #c8d2ce;
    --accent: #0f6b57; --accent-2: #0b5a49; --accent-soft: #e2f0eb; --accent-ink: #ffffff;
    --ok: #157347; --ok-bg: #e1f2e8; --warn: #95590a; --warn-bg: #fcf0d9; --bad: #b3261e; --bad-bg: #fbe6e4; --info: #2a5b9a; --info-bg: #e6eef9;
    --t-yellow: #d9a300; --t-amber: #dd7a12; --t-green: #1d8f4e; --t-pink: #d14d72; --t-rose: #a8324f; --t-blue: #2f6fd6; --t-plum: #7a3e73; --t-slate: #5d6c67; --t-teal: #138a8a;
    --display: "Figtree", "Segoe UI", system-ui, sans-serif;
    --body: "Figtree", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(15, 30, 26, .05), 0 10px 28px -20px rgba(15, 30, 26, .3);
    --shadow-lg: 0 24px 60px -20px rgba(15, 30, 26, .35), 0 2px 6px rgba(15, 30, 26, .08);
    --focus: 0 0 0 3px rgba(15, 107, 87, .3);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --spring: cubic-bezier(.34, 1.4, .64, 1);
    --hatch: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(93, 108, 103, .09) 6px 12px);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0e1412; --surface: #161e1b; --surface-2: #1a2420; --surface-3: #232f2b;
        --ink: #e5ede9; --ink-2: #c3cfca; --muted: #93a39d; --faint: #67756f; --line: #28332f; --line-2: #36433e;
        --accent: #5ec3a5; --accent-2: #7ad1b6; --accent-soft: #163029; --accent-ink: #06201a;
        --ok: #5bc98a; --ok-bg: #16301f; --warn: #e8ad4f; --warn-bg: #33270e; --bad: #f27c85; --bad-bg: #3a1a1d; --info: #8fb4ea; --info-bg: #1b2a3d;
        --t-yellow: #e6bd3a; --t-amber: #f0a050; --t-green: #5cc98a; --t-pink: #ee8aa7; --t-rose: #e07b93; --t-blue: #7fa8f2; --t-plum: #d08cc5; --t-slate: #93a39d; --t-teal: #5cc7c7;
        --shadow: 0 1px 2px rgba(0,0,0,.35); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
        --hatch: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(255, 255, 255, .05) 6px 12px);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0e1412; --surface: #161e1b; --surface-2: #1a2420; --surface-3: #232f2b;
    --ink: #e5ede9; --ink-2: #c3cfca; --muted: #93a39d; --faint: #67756f; --line: #28332f; --line-2: #36433e;
    --accent: #5ec3a5; --accent-2: #7ad1b6; --accent-soft: #163029; --accent-ink: #06201a;
    --ok: #5bc98a; --ok-bg: #16301f; --warn: #e8ad4f; --warn-bg: #33270e; --bad: #f27c85; --bad-bg: #3a1a1d; --info: #8fb4ea; --info-bg: #1b2a3d;
    --t-yellow: #e6bd3a; --t-amber: #f0a050; --t-green: #5cc98a; --t-pink: #ee8aa7; --t-rose: #e07b93; --t-blue: #7fa8f2; --t-plum: #d08cc5; --t-slate: #93a39d; --t-teal: #5cc7c7;
    --shadow: 0 1px 2px rgba(0,0,0,.35); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
    --hatch: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(255, 255, 255, .05) 6px 12px);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--body); }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }
[hidden] { display: none !important; }
.tnum, td { font-variant-numeric: tabular-nums; }
h1, h2, h3 { text-wrap: balance; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================= HEADER ================= */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { padding: 10px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.brand { justify-self: start; display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; min-width: 0; }
.brand-mark { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transition: transform .45s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand b { display: block; font: 800 17px/1.1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.brand small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.datectl { justify-self: center; display: flex; align-items: stretch; height: 42px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--surface); overflow: hidden; box-shadow: 0 1px 2px rgba(15, 30, 26, .04); }
.datectl button { border: 0; background: none; cursor: pointer; color: var(--ink-2); transition: background .2s, color .2s; }
.datectl .round { width: 40px; display: grid; place-items: center; }
.datectl .round:hover { background: var(--accent-soft); color: var(--accent); }
.datebtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 230px; padding: 0 16px; border-left: 1px solid var(--line) !important; border-right: 1px solid var(--line) !important; font-weight: 700; font-size: 15px; white-space: nowrap; }
.datebtn:hover { background: var(--accent-soft); color: var(--accent); }
.datebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.datectl .today { padding: 0 14px; font-weight: 700; font-size: 13.5px; border-left: 1px solid var(--line) !important; }
.datectl .today:hover { background: var(--accent-soft); color: var(--accent); }
.hdr-r { justify-self: end; display: flex; align-items: center; gap: 10px; min-width: 0; }
.me { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px 0 4px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); cursor: pointer; font-weight: 700; font-size: 14px; min-width: 0; transition: border-color .2s; }
.me:hover { border-color: var(--accent); }
.me .av { width: 32px; height: 32px; font-size: 12px; }
.me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: grid; line-height: 1.1; text-align: left; }
.me small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.mode-pill { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: var(--info-bg); color: var(--info); white-space: nowrap; }
.mode-pill.ro { background: var(--warn-bg); color: var(--warn); }

.subnav { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-top: 1px solid var(--line); min-height: 50px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; padding: 3px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; transition: background .2s, color .2s; white-space: nowrap; }
.tabs a:hover { background: var(--surface); color: var(--ink); }
.tabs a.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(15, 30, 26, .1); }
.tabs a .n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.subnav .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; }

/* ================= COMMON ================= */
main { padding: 20px 20px 80px; }
main.narrow { max-width: 1160px; margin: 0 auto; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 20px; }
.page-h h1 { margin: 0; font: 800 clamp(26px, 3.4vw, 34px)/1.1 var(--display); letter-spacing: -.03em; }
.page-h p { margin: 6px 0 0; color: var(--muted); max-width: 72ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-h h3 { margin: 0; font: 700 16px var(--display); }
.card-h p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.card-b { padding: 16px 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 7px 13px; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s, background .2s, transform .15s; }
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn.danger:hover:not(:disabled) { border-color: var(--bad); color: var(--bad); }
.btn.ghost { border-color: transparent; background: none; }
.btn.ghost:hover:not(:disabled) { background: var(--surface-3); border-color: transparent; color: var(--ink); }
.btn.sm { padding: 4px 9px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { flex: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; background: var(--surface-3); color: var(--muted); }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--info); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.callout { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.callout.warn { background: var(--warn-bg); color: var(--warn); } .callout.info { background: var(--info-bg); color: var(--info); } .callout.bad { background: var(--bad-bg); color: var(--bad); } .callout.ok { background: var(--ok-bg); color: var(--ok); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty h3 { margin: 0 0 6px; color: var(--ink); font: 700 18px var(--display); }

/* avatars: initials on a colour from the name */
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 12.5px var(--display); color: #fff; background: var(--c, var(--accent)); letter-spacing: .02em; }
.emp { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); color: var(--muted); }
.emp.part_time { background: color-mix(in srgb, var(--t-amber) 18%, var(--surface)); color: color-mix(in srgb, var(--t-amber) 80%, var(--ink)); }
.emp.casual { background: color-mix(in srgb, var(--t-plum) 18%, var(--surface)); color: var(--t-plum); }
.emp.flexible { background: color-mix(in srgb, var(--t-teal) 18%, var(--surface)); color: var(--t-teal); }

/* form controls */
.inp, select.inp, textarea.inp { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
textarea.inp { height: auto; min-height: 70px; padding: 9px 11px; resize: vertical; line-height: 1.4; }
.inp:focus { border-color: var(--accent); box-shadow: var(--focus); outline: none; }
.inp.sm { height: 32px; padding: 0 8px; font-size: 13.5px; border-radius: 8px; }
input[type=time].inp { padding-right: 6px; }
.fld { display: grid; gap: 5px; }
.fld > span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.fld > small { font-size: 12px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.chk input { width: 17px; height: 17px; accent-color: var(--accent); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg button:hover { background: var(--surface); }
.seg button.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(15, 30, 26, .12); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 800; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--surface-2); }
.tbl td.num, .tbl th.num { text-align: right; }
.scroll-x { overflow-x: auto; }

/* ================= WEEK GRID ================= */
.wk-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.wk-wrap.nopanel { grid-template-columns: minmax(0, 1fr); }
.wk-scroll { overflow: auto; max-height: calc(100vh - 150px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.wk { display: grid; grid-template-columns: 210px repeat(var(--days), minmax(170px, 1fr)); min-width: calc(210px + var(--days) * 170px); }
.wk > div { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.wk > div:nth-child(var(--cols)) { border-right: 0; }
.wk .hd { position: sticky; top: 0; z-index: 5; background: var(--surface-2); padding: 10px 12px 9px; min-height: 92px; }
.wk .hd.corner { left: 0; z-index: 7; display: flex; flex-direction: column; justify-content: space-between; }
.wk .hd .d1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wk .hd .dn { font: 800 24px/1 var(--display); letter-spacing: -.02em; }
.wk .hd .dw { font-size: 13px; color: var(--muted); font-weight: 600; }
.wk .hd .dm { font-size: 12px; color: var(--muted); display: flex; gap: 10px; }
.wk .hd.today .dn { color: var(--accent); }
.wk .hd.holiday { background: var(--hatch), var(--surface-2); }
.wk .hd .iss { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.wk .hd .iss button { border: 0; cursor: pointer; }
.wk .note { grid-column: auto; font-size: 12.5px; color: var(--ink-2); padding: 7px 12px; background: var(--surface); min-height: 34px; cursor: pointer; white-space: pre-line; line-height: 1.35; }
.wk .note:hover { background: var(--accent-soft); }
.wk .note.hol { background: var(--hatch), color-mix(in srgb, var(--warn-bg) 60%, var(--surface)); color: var(--warn); font-weight: 700; }
.wk .note.empty-n { color: var(--faint); }
.wk .note.label { cursor: default; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); position: sticky; left: 0; z-index: 3; }
.wk .note.label:hover { background: var(--surface); }
.wk .cov { padding: 7px 10px; display: flex; flex-wrap: wrap; gap: 4px; background: var(--surface); }
.wk .cov .label { font-weight: 700; }
.covchip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); cursor: pointer; border: 0; }
.covchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--lc, var(--muted)); }
.covchip.bad { background: var(--bad-bg); color: var(--bad); } .covchip.warn { background: var(--warn-bg); color: var(--warn); }
.wk .grp { grid-column: 1 / -1; position: sticky; left: 0; padding: 6px 12px; background: var(--surface-3); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-right: 0; }
.wk .who { position: sticky; left: 0; z-index: 3; background: var(--surface); padding: 10px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 82px; }
.wk .who:hover { background: var(--surface-2); }
.wk .who b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk .who small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.wk .who small.over { color: var(--warn); font-weight: 700; }
.wk .who .meta { min-width: 0; }
.wk .cell { padding: 5px; min-height: 82px; position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--surface); transition: background .15s; }
.wk .cell.hol { background: var(--hatch), var(--surface); }
.wk .cell.drop { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.wk .cell .add { flex: 1; min-height: 70px; border: 1px dashed transparent; border-radius: 10px; background: none; color: var(--faint); cursor: pointer; font-size: 12px; text-align: left; padding: 7px 9px; display: flex; flex-direction: column; justify-content: center; gap: 2px; transition: border-color .15s, color .15s, background .15s; }
.wk .cell:hover .add { border-color: var(--line-2); color: var(--muted); }
.wk .cell .add:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.wk .cell .add b { font-size: 12.5px; }
.wk .cell .add .plus { font-size: 18px; line-height: 1; }
.wk .cell .add.ghost-def { opacity: 0; } .wk .cell:hover .add.ghost-def { opacity: 1; }

/* a shift: tone bar on the left, tinted */
.sc { position: relative; border-radius: 10px; padding: 6px 9px 6px 12px; background: color-mix(in srgb, var(--tc) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tc) 30%, var(--line)); cursor: pointer; text-align: left; width: 100%; font-size: 12.5px; line-height: 1.3; color: var(--ink); transition: transform .12s, box-shadow .2s; overflow: hidden; }
.sc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tc); }
.sc:hover { box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--tc) 60%, transparent); transform: translateY(-1px); }
.sc[draggable=true] { cursor: grab; }
.sc.dragging { opacity: .4; }
.sc b { display: block; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 14px; }
.sc .l2, .sc .l3 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.sc .l3 { color: var(--muted); font-size: 12px; }
.sc .dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; }
.sc .dot.conflict { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.sc .dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.sc .chg { position: absolute; bottom: 5px; right: 7px; font-size: 10px; font-weight: 800; color: var(--info); text-transform: uppercase; letter-spacing: .04em; }
.tone-yellow { --tc: var(--t-yellow); } .tone-amber { --tc: var(--t-amber); } .tone-green { --tc: var(--t-green); } .tone-pink { --tc: var(--t-pink); }
.tone-rose { --tc: var(--t-rose); } .tone-blue { --tc: var(--t-blue); } .tone-plum { --tc: var(--t-plum); } .tone-slate { --tc: var(--t-slate); } .tone-teal { --tc: var(--t-teal); }
/* leave: grey, hatched */
.lv { border-radius: 10px; padding: 6px 9px 6px 12px; background: var(--hatch), var(--surface-3); border: 1px solid var(--line-2); cursor: pointer; text-align: left; width: 100%; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); position: relative; }
.lv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--faint); border-radius: 10px 0 0 10px; }
.lv b { display: block; font-weight: 700; color: var(--ink); font-size: 13px; }
.lv.off { background: var(--surface-2); border-style: dashed; }
.lv.avail { background: var(--surface); border-style: dotted; }
.lv.part { padding: 3px 8px 3px 12px; font-size: 12px; }
.lv.part b { display: inline; font-size: 12px; }
.lv:hover { border-color: var(--accent); }

/* ================= CHECKS PANEL ================= */
.checks { width: 340px; position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; }
.checks .card-h { position: sticky; top: 0; background: var(--surface); z-index: 2; border-radius: var(--radius) var(--radius) 0 0; }
.ck-day { padding: 8px 14px 4px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ck { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; padding: 8px 14px; cursor: pointer; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.35; }
.ck:hover { background: var(--surface-2); }
.ck i { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; }
.ck i.conflict { background: var(--bad); } .ck i.warn { background: var(--warn); } .ck i.note { background: var(--info); }
.ck small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.checks .card-h { display: grid; gap: 10px; }
.sevtabs { display: flex; gap: 2px; }
.sevtabs button { padding: 4px 9px; font-size: 12.5px; }
@media (max-width: 1280px) { .wk-wrap { grid-template-columns: minmax(0, 1fr); } .checks { width: auto; position: static; max-height: none; } }

/* ================= DAY TIMELINE ================= */
.tl-card { margin-bottom: 16px; }
.tl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl-head .lc { width: 12px; height: 12px; border-radius: 4px; background: var(--lc); }
.tl { --pad: 190px; position: relative; padding: 6px 16px 12px; overflow-x: auto; }
.tl-in { position: relative; min-width: 860px; }
.tl-axis { position: relative; height: 22px; margin-left: var(--pad); border-bottom: 1px solid var(--line); }
.tl-axis span { position: absolute; top: 2px; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tl-rows { position: relative; }
.tl-grid { position: absolute; left: var(--pad); right: 0; top: 0; bottom: 0; pointer-events: none; }
.tl-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-grid i.oc { background: none; border-left: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.tl-row { position: relative; display: flex; align-items: center; height: 40px; }
.tl-row .nm { width: var(--pad); flex: none; padding-right: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; min-width: 0; }
.tl-row .nm .av { width: 26px; height: 26px; font-size: 10.5px; }
.tl-row .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-row .lane { position: relative; flex: 1; height: 100%; }
.bar { position: absolute; top: 7px; height: 26px; border-radius: 7px; background: color-mix(in srgb, var(--tc) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tc) 50%, var(--line)); cursor: pointer; overflow: hidden; display: flex; align-items: center; padding: 0 8px; font-size: 11.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.bar:hover { box-shadow: 0 0 0 2px var(--tc); }
.bar.away { opacity: .55; border-style: dashed; }
.brk { position: absolute; top: 4px; bottom: 4px; border-radius: 5px; background: var(--surface); border: 1.5px solid var(--tc); display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: var(--tc); }
.brk.lunch { background: repeating-linear-gradient(45deg, var(--surface) 0 4px, color-mix(in srgb, var(--tc) 20%, var(--surface)) 4px 8px); }
.lvb { position: absolute; top: 4px; bottom: 4px; border-radius: 5px; background: var(--hatch), var(--surface-3); border: 1px solid var(--line-2); font-size: 10.5px; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.tl-cov { display: flex; align-items: stretch; height: 46px; margin-top: 6px; }
.tl-cov .nm { width: var(--pad); flex: none; padding-right: 10px; font-size: 12px; color: var(--muted); font-weight: 700; display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.tl-cov .lane { position: relative; flex: 1; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.cv { position: absolute; bottom: 0; background: color-mix(in srgb, var(--ok) 45%, var(--surface)); }
.cv.low { background: color-mix(in srgb, var(--warn) 55%, var(--surface)); }
.cv.bad { background: color-mix(in srgb, var(--bad) 32%, var(--surface)); }
.cvn { position: absolute; top: 2px; font-size: 10.5px; font-weight: 800; color: var(--ink-2); transform: translateX(2px); }
.tl-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 0 16px 12px; }
.tl-legend i { display: inline-block; width: 12px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.daystat { display: flex; gap: 6px; flex-wrap: wrap; }

/* ================= SHEET (editor) ================= */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(10, 20, 17, .32); animation: fade .2s var(--ease); }
.sheet { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slidein .28s var(--ease); }
.sheet-h { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.sheet-h h2 { margin: 0; font: 800 19px/1.2 var(--display); letter-spacing: -.01em; }
.sheet-h p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.sheet-b { flex: 1; overflow: auto; padding: 18px 20px; display: grid; gap: 16px; align-content: start; }
.sheet-f { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface-2); }
.x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.x:hover { background: var(--surface-3); color: var(--ink); }
.items { display: flex; gap: 6px; flex-wrap: wrap; }
.items button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 9px; padding: 5px 10px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.items button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.brow { display: grid; grid-template-columns: 120px 110px 90px 1fr 32px; gap: 8px; align-items: center; }
.brow .end { font-size: 12.5px; color: var(--muted); }
.sum { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.iss-list { display: grid; gap: 6px; }
.iss { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 9px; font-size: 13px; line-height: 1.35; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.iss i { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; }
.iss i.conflict { background: var(--bad); } .iss i.warn { background: var(--warn); } .iss i.note { background: var(--info); }
.sec-t { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 -6px; }

/* dialogs */
.dlg { position: fixed; z-index: 91; left: 50%; top: 12vh; transform: translateX(-50%); width: min(520px, calc(100vw - 32px)); max-height: 76vh; overflow: auto; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .25s var(--spring); }
.dlg-b { padding: 20px 22px; display: grid; gap: 12px; }
.dlg-b h2 { margin: 0; font: 800 20px/1.2 var(--display); }
.dlg-b p { margin: 0; color: var(--ink-2); }
.dlg-f { padding: 12px 22px 18px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.scrim.top { z-index: 90; }

/* toasts */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--ink); color: var(--surface); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: up .3s var(--spring); max-width: calc(100vw - 32px); }
.toast.bad { background: var(--bad); color: #fff; }
.toast button { border: 0; background: color-mix(in srgb, var(--surface) 18%, transparent); color: inherit; font-weight: 800; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }

/* staff and patterns */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.pcard { padding: 14px; display: grid; gap: 8px; cursor: pointer; transition: border-color .2s, transform .15s; }
.pcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.pcard .top-r { display: flex; gap: 10px; align-items: center; }
.pcard b { font-size: 15px; }
.pcard.inactive { opacity: .6; }
.skill { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); }
.skill.blue { background: color-mix(in srgb, var(--t-blue) 16%, var(--surface)); color: var(--t-blue); }
.pat { display: grid; gap: 8px; }
.pat-row { display: grid; grid-template-columns: 52px 150px minmax(0,1fr); gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.pat-row .wd { font-weight: 800; padding-top: 6px; }
.pat-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pat-fields .brks { grid-column: 1 / -1; }
@media (max-width: 760px) { .pat-row { grid-template-columns: 1fr; } .pat-fields { grid-template-columns: 1fr 1fr; } }

/* reports */
.heat td.h { text-align: center; font-weight: 700; border-radius: 6px; }
.bar-mini { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; min-width: 80px; }
.bar-mini i { display: block; height: 100%; background: var(--accent); }
.bar-mini i.over { background: var(--warn); }

@keyframes fade { from { opacity: 0; } }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
@keyframes pop { from { transform: translateX(-50%) scale(.96); opacity: 0; } }
@keyframes up { from { transform: translateY(12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 900px) { .brand small { display: none; } .datebtn { min-width: 0; } .me span { display: none; } .me { padding: 0 4px; } }
@media (max-width: 640px) {
    .top-in { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 14px; }
    .datectl { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; } .datebtn { flex: 1; }
    .brand > span:last-child { display: none; }
    .subnav { padding: 0 14px; } main { padding: 14px 14px 80px; }
    .brow { grid-template-columns: 1fr 1fr 70px 32px; } .brow .end { display: none; }
    .tabs { max-width: 100%; overflow-x: auto; }
    .wk { grid-template-columns: 130px repeat(var(--days), minmax(160px, 1fr)); min-width: calc(130px + var(--days) * 160px); }
    .wk .who .av { display: none; }
}

/* printing the week: the grid only, landscape */
@media print {
    @page { size: A4 landscape; margin: 8mm; }
    body { background: #fff; font-size: 10px; }
    .top, .checks, .toasts, .no-print, .wk .cell .add { display: none !important; }
    main { padding: 0; }
    .wk-wrap { display: block; }
    .wk-scroll { overflow: visible; max-height: none; border: 0; box-shadow: none; }
    .wk { grid-template-columns: 130px repeat(var(--days), 1fr); min-width: 0; }
    .wk .hd { position: static; min-height: 0; padding: 4px 6px; }
    .wk .who { position: static; min-height: 0; padding: 4px 6px; }
    .wk .who .av { display: none; }
    .wk .cell { min-height: 0; padding: 2px; }
    .sc, .lv { font-size: 9px; padding: 2px 4px 2px 7px; box-shadow: none; break-inside: avoid; }
    .sc b, .lv b { font-size: 9.5px; }
    .print-title { display: block !important; font: 800 16px var(--display); margin: 0 0 6px; }
}
.print-title { display: none; }

/* ================= v2: teams, setup, drafts, published ================= */
.dlg.wide { width: min(720px, calc(100vw - 32px)); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger.solid:hover:not(:disabled) { color: #fff; filter: brightness(1.08); }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 13px; }
.crumb:hover { color: var(--accent); }
.team-title { display: grid; line-height: 1.15; min-width: 0; }
.team-title b { font: 800 17px/1.15 var(--display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-in.plain { grid-template-columns: minmax(0, 1fr) auto; }

/* landing */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 12px 0 22px; }
.hero h1 { margin: 0; font: 800 clamp(30px, 4vw, 40px)/1.05 var(--display); letter-spacing: -.035em; }
.hero p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.team-card { padding: 18px; display: grid; gap: 14px; align-content: start; }
.team-card h2 { margin: 0; font: 800 21px/1.15 var(--display); letter-spacing: -.02em; }
.team-card p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.team-card .facts { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.team-card .facts b { font: 800 18px var(--display); display: block; color: var(--ink); }
.team-card .acts2 { display: flex; gap: 8px; flex-wrap: wrap; }
.team-new { border: 2px dashed var(--line-2); background: none; box-shadow: none; display: grid; place-items: center; text-align: center; min-height: 190px; cursor: pointer; color: var(--muted); font-weight: 700; transition: border-color .2s, color .2s, background .2s; }
.team-new:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.team-new span { font-size: 34px; line-height: 1; display: block; margin-bottom: 6px; }

/* setup checklist and settings */
.set-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.set-nav { position: sticky; top: 130px; display: grid; gap: 2px; padding: 8px; }
.set-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.set-nav a:hover { background: var(--surface-2); color: var(--ink); }
.set-nav a.on { background: var(--accent-soft); color: var(--accent); }
.set-nav a i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; }
.set-nav a i.done { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (max-width: 860px) { .set-wrap { grid-template-columns: 1fr; } .set-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.steps { display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; }
.step:hover { border-color: var(--accent); }
.step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface-3); color: var(--muted); }
.step.done .n { background: var(--ok); color: #fff; }
.step b { display: block; } .step small { color: var(--muted); }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.list-row:first-child { border-top: 0; }
.list-row:hover { background: var(--surface-2); }
.list-row b { font-size: 15px; }
.list-row .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--c); vertical-align: -1px; margin-right: 6px; }
.form { display: grid; gap: 14px; }
.hrs-grid { display: grid; grid-template-columns: 70px 90px 130px 130px; gap: 8px 10px; align-items: center; }
.tier { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.tier-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mini-brk { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; }
.mini-brk input, .mini-brk select { height: 28px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.cklist { display: grid; gap: 6px; }
.cklist .row { flex-wrap: nowrap; }

/* default-shift calendar */
.pcal { display: grid; grid-template-columns: 70px repeat(var(--n, 7), minmax(110px, 1fr)); gap: 6px; min-width: calc(70px + var(--n, 7) * 116px); }
.pcal .h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 6px; }
.pcal .wk-l { font-weight: 800; font-size: 13px; padding-top: 10px; }
.pday { min-height: 92px; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--surface); padding: 8px 9px; text-align: left; cursor: pointer; font-size: 12.5px; line-height: 1.3; color: var(--muted); display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, background .15s; }
.pday:hover { border-color: var(--accent); }
.pday.work { border-style: solid; background: color-mix(in srgb, var(--tc) 12%, var(--surface)); border-color: color-mix(in srgb, var(--tc) 35%, var(--line)); color: var(--ink-2); box-shadow: inset 4px 0 0 var(--tc); }
.pday.work b { color: var(--ink); font-size: 13px; }
.pday.off { background: var(--hatch), var(--surface-2); border-style: solid; color: var(--ink-2); }
.pday.closed { opacity: .55; }
.avail-grid { display: grid; grid-template-columns: 90px 260px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
@media (max-width: 640px) { .avail-grid { grid-template-columns: 70px 1fr; } .avail-grid > :nth-child(3n) { grid-column: 2; } }

/* draft markers in the editor */
.sc.draft { border-style: dashed; border-width: 1.5px; }
.tag-draft { position: absolute; bottom: 5px; right: 7px; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; background: var(--warn-bg); color: var(--warn); }
.lv.draft { border-style: dashed; border-color: var(--warn); }
.was { font-size: 11.5px; color: var(--faint); text-decoration: line-through; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gone { border: 1.5px dashed var(--bad); border-radius: 10px; padding: 6px 9px; font-size: 12px; color: var(--bad); background: color-mix(in srgb, var(--bad-bg) 50%, transparent); text-align: left; width: 100%; cursor: default; }
.gone s { color: var(--muted); }
.pubst { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; border: 0; cursor: pointer; }
.pubst.published { background: var(--ok-bg); color: var(--ok); }
.pubst.changed { background: var(--warn-bg); color: var(--warn); }
.pubst.unpublished { background: var(--surface-3); color: var(--muted); }
.pubst.empty { display: none; }
.wk .hd.st-changed, .wk .hd.st-unpublished { box-shadow: inset 0 -3px 0 var(--warn); }
.wk .hd.st-published { box-shadow: inset 0 -3px 0 var(--ok); }
.pubdays { display: grid; gap: 6px; }
.pubday { display: grid; grid-template-columns: 20px 110px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.pubday input { width: 17px; height: 17px; accent-color: var(--accent); }
.pubday span { color: var(--muted); font-size: 13px; }
.pubday.changed span, .pubday.unpublished span { color: var(--warn); font-weight: 700; }
.pubday.empty { opacity: .5; cursor: default; }
.checklist { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.checklist .sec-t { margin: 0 0 2px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 18px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; border: 1.5px solid var(--line-2); }
.legend i.d { border-style: dashed; border-color: var(--warn); } .legend i.r { border-style: dashed; border-color: var(--bad); }

/* ================= published roster: read, don't edit ================= */
.pub { --pt: 16px; font-size: var(--pt); }
.pub-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.pub-head h1 { margin: 0; font: 800 clamp(26px, 3.4vw, 36px)/1.1 var(--display); letter-spacing: -.03em; }
.pub-head p { margin: 6px 0 0; color: var(--muted); }
.pub-week { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.pw { display: grid; grid-template-columns: 200px repeat(var(--days), minmax(150px, 1fr)); min-width: calc(200px + var(--days) * 150px); }
.pw > div { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 10px 12px; }
.pw .ph { background: var(--surface-2); position: sticky; top: 0; z-index: 2; }
.pw .ph b { font: 800 22px/1 var(--display); } .pw .ph span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.pw .ph.today { background: var(--accent-soft); } .pw .ph.today b { color: var(--accent); }
.pw .pn { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.pw .pn small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.pw .pn.me { background: var(--accent-soft); }
.pw .pc { display: grid; gap: 6px; align-content: start; }
.pw .pc.me { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.pw .pnote { font-size: 13px; color: var(--ink-2); white-space: pre-line; background: var(--surface); }
.pw .pnote.hol { color: var(--warn); font-weight: 700; background: var(--hatch), var(--surface); }
.pw .nopub { color: var(--faint); font-size: 13px; font-style: italic; }
.ps { border-radius: 10px; padding: 7px 10px 7px 13px; background: color-mix(in srgb, var(--tc) 12%, var(--surface)); position: relative; overflow: hidden; }
.ps::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tc); }
.ps .t { font: 800 16px/1.2 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ps .w { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.ps .b { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ps .n { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; font-style: italic; }
.pl { border-radius: 10px; padding: 7px 10px; background: var(--hatch), var(--surface-3); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.pl small { display: block; font-weight: 500; color: var(--muted); }
.pub-loc { margin-bottom: 18px; }
.pub-loc h2 { margin: 0; font: 800 20px var(--display); display: flex; align-items: center; gap: 10px; }
.pub-loc h2 i { width: 14px; height: 14px; border-radius: 4px; background: var(--lc); }
.pub-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 14px 18px 18px; }
.pub-person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.pub-person b { font-size: 16px; display: block; }
.pub-person .t { font: 800 17px var(--display); font-variant-numeric: tabular-nums; }
.pub-person .muted { font-size: 13.5px; }
.mine { display: grid; gap: 10px; }
.mine-day { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 18px; border-top: 1px solid var(--line); align-items: start; }
.mine-day:first-child { border-top: 0; }
.mine-day .d b { font: 800 26px/1 var(--display); display: block; } .mine-day .d span { color: var(--muted); font-weight: 700; }
.mine-day.today { background: var(--accent-soft); }
.mine-day .t { font: 800 22px/1.15 var(--display); font-variant-numeric: tabular-nums; }
.mine-day .w { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.mine-day .b { font-size: 14px; color: var(--muted); margin-top: 4px; }
.pub-big { font-size: 18px; }
@media (max-width: 640px) { .pw { grid-template-columns: 120px repeat(var(--days), minmax(140px, 1fr)); min-width: calc(120px + var(--days) * 140px); } .pw .pn .av { display: none; } .mine-day { grid-template-columns: 70px minmax(0, 1fr); } }
@media print {
    .pub-week { overflow: visible; border: 0; box-shadow: none; }
    .pw { min-width: 0; grid-template-columns: 120px repeat(var(--days), 1fr); }
    .pw > div { padding: 4px 6px; } .pw .ph, .pw .pn { position: static; }
    .ps, .pl { padding: 3px 5px 3px 8px; } .ps .t { font-size: 11px; } .ps .w, .ps .b { font-size: 9px; }
}
.teams-grid > .card + .card, .staff-grid > .card + .card, .set-wrap > .card + div .card:first-child { margin-top: 0; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.toolbar .sp { flex: 1; }
.sc.draft .l3 { padding-right: 44px; }
