/* Shifts — "the schedule sheet by the pass". Quiet neutral surfaces, navy ink for action, coral only for what
   needs you, green for done. The dashed pencil line is how many people a day needs. One-hand phone layout.
   Unslop pass (unslop by Damir Sokolovsky, @heydamir, CC BY 4.0): 4px spacing grid, solid surfaces, one accent. */
:root {
  --ink: #171923; --ink2: rgb(var(--inkc) / .68); --ink3: rgb(var(--inkc) / .56); --line: rgb(var(--inkc) / .09);
  --inkc: 23 25 35; /* the ink colour as r g b, for see-through tints: rgb(var(--inkc) / .06) */
  --navy: #141a3d; --coral: #e0484e; --green: #15905f; --blue: #3d63dd; --amber: #d9821f;
  --act: #141a3d; --onact: #ffffff; --sheet: #ffffff; --rail: #141a3d; --page: #f5f6f8;
  --greenink: #0c7a51; --amberink: #a85a00; --coralink: #c7343c; --blueink: #2f4fb8;
  --hdr: rgba(245, 246, 248, .86); --panelbg: #ffffff; --tabbar: #141a3d; --pill: #ffffff;
  --tile: rgb(var(--inkc) / .045); --ai: #eceef6;
  --glass: #ffffff; --glass-b: rgb(var(--inkc) / .08);
  --shadow: 0 1px 2px rgb(0 0 0 / .04);
  --float: 0 8px 24px rgb(0 0 0 / .1);
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Inter, system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: var(--ease);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
/* Dark: follows the phone or computer setting. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark;
  --inkc: 236 237 240; --ink: #ecedf0; --act: #ecedf0; --onact: #141a3d; --sheet: #1b1c20; --rail: #0c0d10; --page: #111215;
  --liftshadow: 0 10px 28px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .06);
  --greenink: #4fd39b; --amberink: #ffb45e; --coralink: #ff8a8e; --blueink: #8fa8ff; --ai: rgba(143, 168, 255, .14);
  --glass: #18191d; --glass-b: rgb(var(--inkc) / .08);
  --shadow: none; --float: 0 12px 32px rgb(0 0 0 / .5);
  --hdr: rgba(17, 18, 21, .86); --panelbg: #1b1c20; --tabbar: #222327; --pill: #ecedf0;
} }
:root[data-theme="dark"] {
  color-scheme: dark;
  --inkc: 236 237 240; --ink: #ecedf0; --act: #ecedf0; --onact: #141a3d; --sheet: #1b1c20; --rail: #0c0d10; --page: #111215;
  --liftshadow: 0 10px 28px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .06);
  --greenink: #4fd39b; --amberink: #ffb45e; --coralink: #ff8a8e; --blueink: #8fa8ff; --ai: rgba(143, 168, 255, .14);
  --glass: #18191d; --glass-b: rgb(var(--inkc) / .08);
  --shadow: none; --float: 0 12px 32px rgb(0 0 0 / .5);
  --hdr: rgba(17, 18, 21, .86); --panelbg: #1b1c20; --tabbar: #222327; --pill: #ecedf0;
}
* { box-sizing: border-box; }
html { background: var(--page); }
html, body { margin: 0; min-height: 100%; overscroll-behavior: none; overflow-x: hidden; }
body { font: 15px/1.4 -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, system-ui, sans-serif; color: var(--ink); background: var(--page); min-height: 100vh; min-height: 100dvh; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.ic { flex-shrink: 0; display: block; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.muted { color: var(--ink2); } .faint { color: var(--ink3); }
.small { font-size: 13px; }
.b { font-weight: 600; }
.coral { color: var(--coralink); } .green { color: var(--greenink); }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hidden { display: none !important; }
.hp { position: absolute; left: -9999px; }
/* Short day names written in capitals (MON) read as sentence case (Mon). */
.datechip span, .sgrid .gh { text-transform: lowercase; }
.datechip span::first-letter, .sgrid .gh::first-letter { text-transform: uppercase; }

/* ---------- surfaces ---------- */
.glass, .card, .banner, .group, .sched {
  background: var(--glass); border: 1px solid var(--glass-b); border-radius: 16px; box-shadow: var(--shadow);
}
.glass, .card { padding: 16px; display: block; min-width: 0; }
.glass.col, .card.col { display: flex; }
.glass.row { display: flex; }
.glass.calm { color: var(--ink2); font-size: 15px; }
.glass.calm.row { gap: 12px; color: var(--ink); }
.glass.list, .card .list { padding: 4px 16px; }
button.glass, .glass[data-a] { width: 100%; text-align: left; transition: transform .16s var(--ease), border-color .16s var(--ease); }
button.glass:active, .glass[data-a]:active { transform: scale(.98); }
@media (hover: hover) { button.glass:hover { border-color: rgb(var(--inkc) / .18); } }
.card.dark { background: var(--act); color: var(--onact); border-color: transparent; }
.card.dark .muted { color: color-mix(in srgb, var(--onact) 68%, transparent); }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.group { padding: 0 16px; }
.group > * + *, .list > * + * { border-top: 1px solid var(--line); }
.group.empty-g { padding: 16px; color: var(--ink2); }
.tile { background: var(--tile); border-radius: 10px; padding: 12px; }
.tiles2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tiles4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.grid3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.statt { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 92px; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pagecols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pagecols > * { min-width: 0; }

/* ---------- type ---------- */
.lbl { font-size: 13px; font-weight: 500; color: var(--ink2); }
.num { font-weight: 500; letter-spacing: -.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.bignum { font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.sect { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sect-h { padding: 0 4px; }
.sect-h h3 { font-family: var(--display); font-size: 18px; font-weight: 600; }
.sect-h p { margin: 4px 0 0; font-size: 13px; color: var(--ink2); }
.hsub { font-size: 13px; font-weight: 500; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- atoms ---------- */
.av { border-radius: 99px; color: #141a3d; font-weight: 600; display: inline-grid; place-items: center; flex-shrink: 0; box-shadow: 0 0 0 2px var(--sheet); }
.av.dark { background: var(--act); color: var(--onact); }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--green); display: inline-block; flex-shrink: 0; }
.dot.coral { background: var(--coral); } .dot.off { background: rgb(var(--inkc) / .18); } .dot.navy { background: var(--act); width: 6px; height: 6px; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--tile); color: var(--ink2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill.coral { background: rgb(224 72 78 / .1); color: var(--coralink); } .pill.green { background: rgb(21 144 95 / .1); color: var(--greenink); }
.pill.navy { background: var(--act); color: var(--onact); } .pill.ai { background: var(--ai); color: var(--ink); }
.aichip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--ai); color: var(--ink); font-size: 12px; font-weight: 500; white-space: nowrap; align-self: flex-start; }
.prog { display: block; height: 6px; border-radius: 3px; background: rgb(var(--inkc) / .08); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 3px; background: var(--act); transition: width .5s var(--ease); }
.prog.coral i { background: var(--coral); }
.tag { display: inline-flex; align-self: flex-start; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag-sick { background: rgb(224 72 78 / .12); color: var(--coralink); }
.tag-swap { background: rgb(var(--inkc) / .08); color: var(--ink); }
.tag-open { background: rgb(21 144 95 / .12); color: var(--greenink); }
.tag-off { background: rgb(61 99 221 / .12); color: var(--blueink); }
.nbadge { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--coral); color: #fff; font-size: 10px; font-style: normal; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 24px 12px; color: var(--ink3); font-size: 14px; }
.linkname { font-weight: 500; text-align: left; text-decoration: underline; text-decoration-color: rgb(var(--inkc) / .25); text-underline-offset: 3px; }

/* buttons: press feedback on touch-down */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; background: var(--act); color: var(--onact); font-weight: 500; font-size: 15px; line-height: 1.15; text-align: center; transition: transform .12s var(--ease), opacity .16s var(--ease), background-color .16s var(--ease); }
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn:hover { opacity: .9; } }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn.soft { background: rgb(var(--inkc) / .07); color: var(--ink); }
.btn.white { background: #fff; color: var(--navy); }
.btn.glass { background: var(--glass); border: 1px solid var(--glass-b); color: var(--ink); box-shadow: none; padding: 0 12px; width: auto; }
.btn.ghost { background: transparent; color: var(--ink2); }
.btn.danger { background: rgb(224 72 78 / .1); color: var(--coralink); }
.btn.full { width: 100%; }
.round { width: 36px; height: 36px; border-radius: 99px; background: rgb(var(--inkc) / .06); color: var(--ink2); display: inline-grid; place-items: center; flex-shrink: 0; transition: background-color .16s var(--ease); }
@media (hover: hover) { button.round:hover { background: rgb(var(--inkc) / .1); } }
.round.dark { background: var(--act); color: var(--onact); }
.round.coral { background: rgb(224 72 78 / .12); color: var(--coralink); }
.iconbtn { width: 44px; height: 44px; border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-b); color: var(--ink); display: grid; place-items: center; position: relative; flex-shrink: 0; transition: transform .12s var(--ease); }
.iconbtn:active, .me:active { transform: scale(.96); }
.iconbtn .badge { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 99px; background: var(--coral); box-shadow: 0 0 0 2px var(--glass); }
.me { border-radius: 99px; flex-shrink: 0; transition: transform .12s var(--ease); }
.trial { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; background: var(--glass); border: 1px solid var(--glass-b); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
.trial.coral { color: var(--coralink); }

/* forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field input, .field select, .field textarea { min-height: 48px; border-radius: 10px; background: rgb(var(--inkc) / .04); border: 1px solid var(--line); padding: 0 12px; font-size: 16px; outline: none; width: 100%; transition: border-color .16s var(--ease), background-color .16s var(--ease); }
.field textarea { height: 96px; padding: 12px; resize: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgb(var(--inkc) / .4); background: var(--sheet); }
.tinput { height: 36px; border-radius: 8px; border: 1px solid var(--line); background: rgb(var(--inkc) / .04); padding: 0 8px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 36px; padding: 0 12px; border-radius: 8px; background: rgb(var(--inkc) / .06); font-weight: 500; font-size: 14px; color: var(--ink2); transition: transform .12s var(--ease), background-color .16s var(--ease); }
.chips button:active { transform: scale(.97); }
.chips button.on { background: var(--act); color: var(--onact); }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-width: 0; }
.item.tap { cursor: pointer; }
.item.tap:active { opacity: .7; }
.datechip { width: 44px; height: 44px; border-radius: 10px; background: rgb(var(--inkc) / .06); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.datechip span { font-size: 11px; font-weight: 500; color: var(--ink3); line-height: 1.2; }
.datechip b { font-size: 16px; font-weight: 600; font-family: var(--display); font-variant-numeric: tabular-nums; }
.datechip.hot { background: var(--act); } .datechip.hot span { color: color-mix(in srgb, var(--onact) 64%, transparent); } .datechip.hot b { color: var(--onact); }
.balances .item b.num { font-size: 22px; }

/* bar chart */
.bars { display: flex; align-items: flex-end; gap: 8px; }
.bars .b1 { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.bars .b1 i { width: 100%; max-width: 16px; border-radius: 3px; background: rgb(var(--inkc) / .14); }
.bars .b1.hi i { background: var(--act); }
.bars .b1 small { font-size: 11px; color: var(--ink3); }
.bars .tip { position: absolute; top: -28px; padding: 4px 8px; border-radius: 6px; background: var(--act); color: var(--onact); font-size: 12px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- journal pieces ---------- */
/* note: one thing that needs you, with its fix */
.note { padding: 0; overflow: hidden; transition: height .36s var(--ease), opacity .3s var(--ease), margin .36s var(--ease), transform .16s var(--ease); }
.note-in { display: flex; flex-direction: column; gap: 12px; padding: 16px; cursor: pointer; }
.note .ntitle { font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.3; }
.note.big .ntitle { font-size: 18px; }
.note .why { margin: 0; font-size: 15px; color: var(--ink2); line-height: 1.45; }
.nact { gap: 8px; }
.nact .btn { white-space: normal; }
.note.big .nact .btn.grow { flex: 1; }
.note.busy { opacity: .6; pointer-events: none; }
.note.done { background: rgb(21 144 95 / .08); border-color: rgb(21 144 95 / .2); }
.note-done { display: flex; align-items: center; gap: 12px; padding: 16px; color: var(--greenink); animation: pop .3s var(--ease); }
.note.fold { height: 0 !important; opacity: 0; margin-top: -12px; border-width: 0; padding: 0; }
@keyframes pop { from { transform: scale(.98); opacity: 0; } }
/* today's team */
.band { display: flex; flex-direction: column; gap: 4px; }
.band > b { font-family: var(--display); font-size: 16px; font-weight: 600; }
.bubbles { display: flex; margin-top: 8px; padding-left: 8px; }
.tb { margin-left: -8px; border-radius: 99px; display: inline-flex; }
.tb .av { box-shadow: 0 0 0 2px var(--glass); }
.tb.sick .av { box-shadow: 0 0 0 2px var(--coral); opacity: .55; }
.tb.more { width: 38px; height: 38px; border-radius: 99px; background: var(--act); color: var(--onact); font-size: 12px; font-weight: 600; place-items: center; display: inline-grid; box-shadow: 0 0 0 2px var(--glass); }
.suprow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 15px; }
.bigtile { display: flex; flex-direction: column; gap: 4px; }
.bigtile b { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.bigtile span { font-size: 14px; color: var(--ink2); }
.qtile { display: flex; flex-direction: column; gap: 8px; }
.qtile .round { margin-bottom: 4px; border-radius: 10px; }
.hours { padding-top: 32px; }
/* time-off request card */
.reqcard { display: flex; align-items: center; gap: 12px; }
.reqcard b { font-family: var(--display); font-size: 16px; font-weight: 600; }
.daysn { display: flex; flex-direction: column; align-items: center; min-width: 48px; padding: 8px; border-radius: 10px; background: rgb(61 99 221 / .1); color: var(--blueink); }
.daysn b { font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
.daysn span { font-size: 11px; font-weight: 500; }
.stack > .reqcard + .reqcard, .sect > .reqcard + .reqcard { margin-top: 0; }
/* team bubbles with an hours ring */
.teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.member { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 12px; text-align: center !important; }
.member b { margin-top: 8px; font-size: 15px; font-weight: 500; }
.ringwrap { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.ringwrap .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgb(var(--inkc) / .08); stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--act); stroke-width: 4; stroke-linecap: round; transition: stroke-dasharray .6s var(--ease); }
.ring-fg.over { stroke: var(--coral); }
.member.add .round { width: 48px; height: 48px; }

/* ---------- phone layout ---------- */
.phone { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.ph { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-t) + 8px) 16px 12px;
  background: var(--hdr); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 var(--line); }
.ph h1 { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pbody { flex: 1; display: flex; flex-direction: column; gap: 24px; padding: 16px 16px calc(var(--safe-b) + 112px); }
.pbody .pagecols, .pbody .stack { gap: 24px; }
/* tab bar: a solid navy bar with a sliding highlight, assistant square beside it */
.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 12px); z-index: 40; display: flex; gap: 8px; align-items: stretch; pointer-events: none; }
.tabs { --i: 0; position: relative; flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px; border-radius: 20px; background: var(--tabbar); box-shadow: var(--float); pointer-events: auto; }
.tabpill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / var(--n)); border-radius: 14px; background: var(--pill); transition: transform .36s var(--ease); }
.tabs button { position: relative; z-index: 1; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 500; transition: color .2s var(--ease); }
.tabs button.on { color: #141a3d; }
.tabs button:active .ic { transform: scale(.92); }
.tabs .ic { transition: transform .12s var(--ease); }
.tabs .nbadge { position: absolute; top: 4px; right: calc(50% - 20px); }
.aisq { width: 64px; flex-shrink: 0; border-radius: 20px; background: var(--act); color: var(--onact); display: grid; place-items: center; box-shadow: var(--float); pointer-events: auto; transition: transform .12s var(--ease); }
.aisq:active { transform: scale(.96); }
/* schedule day strip */
.daystrip { --i: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-b); box-shadow: var(--shadow); }
.daystrip button { height: 52px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background-color .2s var(--ease), color .2s var(--ease); }
.daystrip button small { font-size: 11px; font-weight: 500; color: var(--ink3); }
.daystrip button b { font-size: 16px; font-weight: 600; font-family: var(--display); font-variant-numeric: tabular-nums; }
.daystrip button.on { background: var(--act); color: var(--onact); } .daystrip button.on small { color: color-mix(in srgb, var(--onact) 64%, transparent); }
.daystrip button.short::after { content: ''; width: 4px; height: 4px; border-radius: 99px; background: var(--coral); margin-top: 2px; }
.chiprow { display: flex; gap: 8px; flex-wrap: wrap; }
.chiprow button, .chiprow label { min-height: 36px; padding: 0 12px; border-radius: 8px; background: var(--glass); border: 1px solid var(--glass-b); color: var(--ink); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.chiprow input { background: none; border: 0; color: var(--ink); font-size: 14px; width: 124px; }
.chiprow .chipbtn { background: var(--act); color: var(--onact); border-color: transparent; }
.weekpick { height: 36px; border-radius: 8px; border: 1px solid var(--glass-b); background: var(--glass); color: var(--ink); padding: 0 12px; font-size: 14px; }
.cal7 { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.cal7 .dw { text-align: center; font-size: 11px; font-weight: 500; color: var(--ink3); padding-bottom: 4px; }
.cal7 button { height: 40px; border-radius: 8px; font-size: 14px; font-weight: 500; text-align: center; font-variant-numeric: tabular-nums; }
.cal7 button.sel { background: var(--act); color: var(--onact); font-weight: 600; }
.cal7 button.past { color: var(--ink3); }
.cal7 button.blk { background: repeating-linear-gradient(135deg, rgb(var(--inkc) / .08) 0 4px, transparent 4px 8px); color: var(--ink3); }
.cal7 button.mine { box-shadow: inset 0 0 0 1.5px var(--act); }
.cal7 button.today { font-weight: 600; color: var(--blueink); }

/* ---------- website: rail | journal ---------- */
.desk { display: grid; grid-template-columns: 240px minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.rail { background: var(--rail); color: #fff; display: flex; flex-direction: column; gap: 4px; padding: 20px 12px 16px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.brandrow { display: flex; align-items: center; gap: 12px; padding: 0 8px 20px; }
.brandrow .small { color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: #fff; color: var(--navy); display: inline-grid; place-items: center; font-weight: 600; font-size: 16px; font-family: var(--display); flex-shrink: 0; }
.railnav { --i: 0; position: relative; display: flex; flex-direction: column; gap: 4px; }
.railpill { position: absolute; left: 0; right: 0; top: 0; height: 44px; border-radius: 10px; background: #fff; transition: transform .36s var(--ease); }
.railbtn { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px; color: rgba(255, 255, 255, .72); font-weight: 500; font-size: 15px; transition: color .2s var(--ease), background-color .16s var(--ease); }
.railbtn:hover:not(.on) { background: rgba(255, 255, 255, .07); color: #fff; }
.railbtn.on { color: #141a3d; }
.railask { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 500; font-size: 15px; transition: transform .12s var(--ease), background-color .16s var(--ease); }
.railask:hover { background: rgba(255, 255, 255, .14); }
.railask:active { transform: scale(.97); }
.railme { display: flex; align-items: center; gap: 12px; padding: 12px 8px 0; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1); color: #fff; }
.railme .small { color: rgba(255, 255, 255, .6); }
.railme .av.dark { background: rgba(255, 255, 255, .16); box-shadow: none; }
.dmain { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 32px 16px; }
.dhead h1 { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.dbody { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 32px 32px; display: flex; flex-direction: column; gap: 24px; scrollbar-width: thin; }
.dbody .pagecols { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.dbody .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dbody .grid3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
.dbody .teamgrid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
@media (max-width: 1099px) {
  .desk { grid-template-columns: 76px minmax(0, 1fr); }
  .rail { padding: 20px 12px; align-items: stretch; }
  .brandrow { justify-content: center; padding: 0 0 20px; } .brandrow .col { display: none; }
  .railbtn, .railask { justify-content: center; padding: 0; gap: 0; }
  .railbtn span.grow, .railask span, .railme .col { display: none; }
  .railbtn .nbadge { position: absolute; top: 4px; right: 6px; }
  .railme { justify-content: center; }
  .dbody .pagecols { grid-template-columns: minmax(0, 1fr); }
}

/* schedule grid (website) */
.sched { overflow: auto; padding: 0; flex-shrink: 0; }
.sgrid { display: grid; grid-template-columns: 192px repeat(7, minmax(92px, 1fr)) 112px; min-width: 980px; }
.sgrid > div { min-height: 48px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 8px; }
.sgrid .h { min-height: 48px; justify-content: center; flex-direction: column; gap: 0; cursor: pointer; }
.sgrid .h b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; } .sgrid .h small { font-size: 12px; color: var(--ink3); }
.sgrid .h.today b { color: var(--blueink); } .sgrid .h.today { box-shadow: inset 0 -2px var(--act); }
.sgrid .h.focus { background: rgb(61 99 221 / .08); }
.sgrid .who { padding-left: 16px; gap: 12px; font-weight: 500; font-size: 14px; }
.sgrid .cell { cursor: pointer; justify-content: center; transition: background-color .12s var(--ease); }
.sgrid .cell:hover { background: rgb(var(--inkc) / .03); }
.sgrid .hrs { justify-content: flex-end; padding-right: 16px; gap: 8px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sp { width: 100%; height: 32px; border-radius: 6px; background: rgb(var(--inkc) / .06); color: var(--ink); font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid transparent; font-variant-numeric: tabular-nums; }
.sp.draft { background: var(--ai); border-color: rgb(var(--inkc) / .25); }
.sp.open { background: rgb(224 72 78 / .06); color: var(--coralink); border: 1px dashed rgb(224 72 78 / .5); }
.sp.ask { box-shadow: inset 0 0 0 1.5px var(--coral); }
.sp.ask.sto { box-shadow: inset 0 0 0 1.5px var(--amber); }
.sp.off { background: repeating-linear-gradient(135deg, rgb(var(--inkc) / .05) 0 6px, transparent 6px 12px); color: var(--ink3); border: 1px dashed var(--line); }
.blockedcol { background: repeating-linear-gradient(135deg, rgb(var(--inkc) / .035) 0 6px, transparent 6px 12px); }
.wv.mark { background: rgb(61 99 221 / .08); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.tapcard { cursor: pointer; transition: transform .16s var(--ease); }
.tapcard:active { transform: scale(.98); }

/* rows used inside pop-ups (bell list etc.) */
.frow { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 0; cursor: pointer; min-width: 0; }
.frow + .frow { border-top: 1px solid var(--line); }
.frow:active { opacity: .7; }
.frow b { font-size: 16px; font-weight: 500; line-height: 1.25; white-space: normal; }
.frow .btn { flex-shrink: 0; max-width: 46%; white-space: normal; }
.nrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; font-size: 16px; text-align: left; }
.fix { background: var(--glass); border: 1px solid var(--glass-b); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }

/* ---------- pop-ups: bottom sheet on phones, side sheet on the website ---------- */
#layer { position: fixed; inset: 0; z-index: 50; display: none; }
#layer.on { display: block; }
.scrim { position: absolute; inset: -50vh 0; background: rgb(0 0 0 / .32); opacity: 0; transition: opacity .3s var(--ease); }
#layer.in .scrim { opacity: 1; }
.panel { position: absolute; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--panelbg); box-shadow: 0 24px 64px rgb(0 0 0 / .18); transition: transform .42s var(--ease); }
.panel h2 { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.25; }
.phead { display: flex; align-items: flex-start; gap: 12px; }
.phead .round[data-close] { flex-shrink: 0; }
.grab { display: none; }
/* phone: slides up from the bottom; drag the handle down to close */
@media (max-width: 899px) {
  .panel { left: 0; right: 0; bottom: var(--kb, 0px); max-height: calc(var(--vvh, 100vh) - var(--safe-t) - 12px); border-radius: 20px 20px 0 0; padding: 8px 16px calc(var(--safe-b) + 16px); transform: translateY(105%); }
  .panel.chatp { height: calc(var(--vvh, 100vh) - var(--safe-t) - 12px); }
  .kbd .panel { padding-bottom: 16px; }
  .grab { display: block; position: sticky; top: -8px; z-index: 2; margin: 0 -16px -8px; padding: 8px 0 12px; touch-action: none; cursor: grab; background: linear-gradient(var(--panelbg) 60%, transparent); }
  .grab::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: rgb(var(--inkc) / .18); margin: 0 auto; }
  .panel.dragging { transition: none; }
}
/* website: a detail sheet slides in from the right, the journal stays in view */
@media (min-width: 900px) {
  .panel { top: 12px; right: 12px; bottom: 12px; width: 440px; max-width: calc(100% - 24px); border-radius: 20px; padding: 24px; transform: translateX(calc(100% + 24px)); }
  .panel.wide { width: 560px; }
  .scrim { background: rgb(0 0 0 / .14); }
}
#layer.in .panel { transform: none; }
.panel.chatp { overflow: hidden; }
.panel.chatp .chat { flex: 1; min-height: 0; }
.chat { flex: 1; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; min-height: 120px; padding-right: 2px; }
.bub { align-self: flex-end; max-width: 85%; background: var(--act); color: var(--onact); padding: 8px 12px; border-radius: 16px 16px 4px 16px; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.bot { font-size: 15px; word-break: break-word; display: flex; flex-direction: column; gap: 8px; }
.bot p { margin: 0; }
.bot ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.bot li { position: relative; padding-left: 16px; }
.bot li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 4px; height: 4px; border-radius: 99px; background: var(--ink2); }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 16px; border-radius: 10px; background: var(--act); color: var(--onact); font-size: 15px; font-weight: 500; transition: transform .12s var(--ease); }
.opt:active { transform: scale(.98); }
.opt.done { background: rgb(21 144 95 / .1); color: var(--greenink); }
.prop { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgb(var(--inkc) / .04); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.inputbar { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 4px 0 16px; border-radius: 12px; background: rgb(var(--inkc) / .05); border: 1px solid var(--line); }
.inputbar input { flex: 1; border: 0; background: none; outline: none; font-size: 16px; min-width: 0; } /* 16px: iPhone won't zoom */
.inputbar > .ic { color: var(--ink3); }
.sendbtn { width: 40px; height: 40px; border-radius: 8px; background: var(--act); color: var(--onact); display: grid; place-items: center; flex-shrink: 0; }
.aiq { margin-top: auto; padding-top: 4px; }
.typing { display: inline-flex; gap: 4px; } .typing i { width: 6px; height: 6px; border-radius: 99px; background: var(--ink3); animation: blink 1.2s infinite; } .typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
/* time-off summary timeline */
.sum { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-radius: 10px; background: rgb(61 99 221 / .08); font-size: 15px; }
.sum b { font-size: 18px; font-weight: 600; font-family: var(--display); font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl-day { display: flex; gap: 12px; padding: 12px 0; }
.tl-day + .tl-day { border-top: 1px solid var(--line); }
.tl-date { width: 44px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.tl-date b { font-size: 12px; font-weight: 500; color: var(--ink2); }
.tl-date span { font-size: 20px; font-weight: 600; font-family: var(--display); font-variant-numeric: tabular-nums; }
.tl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.tl-shift { display: flex; flex-direction: column; gap: 2px; }
.tl-fix b { color: var(--greenink); }
.tl-fix .muted { font-size: 13px; }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
@media (min-width: 900px) { #toasts { bottom: 28px; } }
.toast { background: var(--act); color: var(--onact); padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; box-shadow: var(--float); opacity: 0; transform: translateY(8px); transition: opacity .2s var(--ease), transform .3s var(--ease); max-width: 90vw; text-align: center; }
.toast.err { background: #c7343c; color: #fff; }
.toast.in { opacity: 1; transform: none; }

/* ---------- sign-in pages + admin ---------- */
.auth { min-height: 100vh; min-height: 100dvh; width: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: calc(var(--safe-t) + 20px) 20px calc(var(--safe-b) + 24px); }
.auth .box { width: 100%; background: var(--glass); border: 1px solid var(--glass-b); border-radius: 16px; padding: 24px 20px; box-shadow: var(--shadow); animation: rise .42s var(--ease) both .06s; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; padding: 0 4px; }
.brand .logo { background: var(--act); color: var(--onact); }
.auth h1 { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.ahero { display: flex; flex-direction: column; gap: 8px; padding: 12px 4px 4px; animation: rise .42s var(--ease) both; }
.ahero h1 { font-size: 32px; letter-spacing: -.02em; }
.ahero p { margin: 0; font-size: 16px; color: var(--ink2); }
.arow { display: flex; align-items: center; gap: 12px; padding: 16px; text-decoration: none; color: inherit; animation: rise .42s var(--ease) both .12s; }
.arow .round { border-radius: 10px; }
.desk:has(.dsheet) { display: block; height: auto; overflow: visible; }
.top { display: flex; align-items: center; gap: 16px; padding: 16px 28px; }
.top .side { display: flex; align-items: center; gap: 12px; } .top .side.r { margin-left: auto; }
.top .name { font-weight: 600; font-size: 17px; }
.dsheet { margin: 0 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.hero { padding: 8px 32px 20px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }

/* ---------- motion: one short rise when a screen opens; live updates redraw in place ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.anim .pbody > *, .anim .dbody > *, .anim .pagecols > .stack > * { animation: rise .4s var(--ease) both; }
.anim .pbody > :nth-child(2), .anim .dbody > :nth-child(2), .anim .pagecols > .stack > :nth-child(2) { animation-delay: .04s; }
.anim .pbody > :nth-child(3), .anim .dbody > :nth-child(3), .anim .pagecols > .stack > :nth-child(3) { animation-delay: .08s; }
.anim .pbody > :nth-child(n+4), .anim .pagecols > .stack > :nth-child(n+4) { animation-delay: .12s; }
/* ---------- calendar colours: green working, red urgent (steady ring), orange asked for a change or day off, grey not working ---------- */
.stg { background: rgb(21 144 95 / .13) !important; color: var(--greenink) !important; }
.sto { background: rgb(217 130 31 / .16) !important; color: var(--amberink) !important; }
.stx { background: rgb(var(--inkc) / .05) !important; color: var(--ink3) !important; font-weight: 500 !important; }
.str { background: rgb(224 72 78 / .13) !important; color: var(--coralink) !important; box-shadow: inset 0 0 0 1.5px var(--coral); }
.sd { width: 8px; height: 8px; border-radius: 99px; flex-shrink: 0; display: inline-block; }
.sd.g { background: var(--green); } .sd.o { background: var(--amber); } .sd.x { background: var(--ink3); opacity: .5; }
.sd.r { background: var(--coral); }
.calleg { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--ink2); }
.calleg span { display: inline-flex; align-items: center; gap: 8px; }
.segm { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: rgb(var(--inkc) / .05); border: 1px solid var(--line); }
.segm button { min-height: 32px; padding: 0 16px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--ink2); transition: background-color .2s var(--ease), color .16s var(--ease); }
.segm button.on { background: var(--act); color: var(--onact); }
.pbody > .segm { width: 100%; }
.tiles3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; }
.sgrid .gh { grid-column: 1 / -1; display: block; min-height: 32px; line-height: 32px; padding-left: 16px; font-size: 12px; font-weight: 500; color: var(--ink3); background: rgb(var(--inkc) / .03); }
.daystrip button.st-r::after, .daystrip button.st-o::after { content: ''; width: 4px; height: 4px; border-radius: 99px; margin-top: 2px; }
.daystrip button.st-r::after { background: var(--coral); } .daystrip button.st-o::after { background: var(--amber); }
.stcal { row-gap: 8px; column-gap: 4px; }
.stcal button { height: 40px; }
.stcal button.today { box-shadow: inset 0 0 0 2px var(--act); color: inherit; }
.stcal button.past { opacity: .55; }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.mgrid .dw { font-size: 12px; color: var(--ink3); padding: 0 8px 4px; }
.mday { min-height: 84px; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; text-align: left; background: rgb(var(--inkc) / .03); transition: background-color .16s var(--ease); }
.mday:hover { background: rgb(var(--inkc) / .07); }
.mday b { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mday.today b { color: var(--blueink); } .mday.today { box-shadow: inset 0 0 0 2px var(--act); }
.mday.past { opacity: .6; }
.mday .sp { height: auto; min-height: 24px; padding: 4px 8px; font-size: 12px; line-height: 1.2; text-align: center; }
.needs { box-shadow: 0 0 0 2px var(--coral), var(--shadow); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }
/* ---------- availability, team, settings, labour, payroll ---------- */
.avchip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.av-all { background: rgb(21 144 95 / .13); color: var(--greenink); }
.av-some { background: rgb(61 99 221 / .13); color: var(--blueink); }
.av-none { background: repeating-linear-gradient(135deg, rgb(var(--inkc) / .09) 0 5px, transparent 5px 10px); color: var(--ink2); }
.avstrip { display: inline-flex; gap: 4px; }
.avstrip span { width: 16px; height: 16px; border-radius: 4px; font-size: 10px; font-weight: 600; display: inline-grid; place-items: center; }
.trow .avstrip { flex-shrink: 0; }
@media (max-width: 520px) { .trow .avstrip { display: none; } }
.teamcols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.dbody .teamcols { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); align-items: start; }
.chips label.chip { min-height: 36px; padding: 0 12px; border-radius: 8px; background: rgb(var(--inkc) / .06); font-weight: 500; font-size: 14px; color: var(--ink2); display: inline-flex; align-items: center; cursor: pointer; }
.chips label.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chips label.chip:has(input:checked) { background: var(--act); color: var(--onact); }
label.item input[type=radio], label.item input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; }
.glass.list, .glass > .list { padding-block: 4px; }
.bars .b1 .bline { position: absolute; left: 4px; right: 4px; border-top: 1.5px dashed rgb(var(--inkc) / .4); }
.bars .b1.over i { background: var(--coral); }
.ptable { display: flex; flex-direction: column; font-size: 13px; overflow-x: auto; }
.ptable > div { display: grid; grid-template-columns: minmax(110px, 1.6fr) repeat(3, minmax(56px, .8fr)) minmax(64px, .9fr); gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--line); align-items: center; }
.ptable > div > :not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.ptable .pt-h { font-size: 12px; font-weight: 500; color: var(--ink3); }
.ptable .pt-t { font-weight: 600; border-bottom: 0; }
.sgrid .ft { min-height: 40px; justify-content: center; }
.staffdesk { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.dbody .stcal button { height: 64px; font-size: 16px; }
.linkbtn { color: var(--blueink); font-weight: 500; font-size: 13px; }
/* ---------- Today: live numbers, needs you, working today, the week chart ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 8px; text-align: left; min-width: 0; transition: transform .12s var(--ease), border-color .16s var(--ease); }
.stat:active { transform: scale(.98); }
.stat .num { white-space: nowrap; font-size: 32px; font-weight: 500; font-family: var(--display); letter-spacing: -.01em; }
.stat.hot { border-color: var(--coral); box-shadow: inset 0 0 0 1px var(--coral), var(--shadow); }
.ringsm { width: 40px; height: 40px; transform: rotate(-90deg); }
.ringsm .rbg { fill: none; stroke: rgb(var(--inkc) / .1); stroke-width: 4; }
.ringsm .rfg { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; }
.ringsm .rfg.over { stroke: var(--coral); }
.anim .ringsm .rfg { animation: ringin 1s var(--ease) both; }
@keyframes ringin { from { stroke-dashoffset: var(--c); } }
.homecols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.frow.urgent > .sd.r { margin-right: 2px; }
.anim .alerts .frow { animation: rise .4s var(--ease) both; }
.anim .alerts .frow:nth-child(2) { animation-delay: .04s; } .anim .alerts .frow:nth-child(3) { animation-delay: .08s; } .anim .alerts .frow:nth-child(4) { animation-delay: .12s; }
.todayteam { gap: 12px; }
.incharge { display: flex; align-items: center; gap: 12px; padding: 8px; margin: -4px -4px 0; border-radius: 10px; background: rgb(var(--inkc) / .05); transition: background-color .16s var(--ease); }
@media (hover: hover) { .incharge:hover { background: rgb(var(--inkc) / .08); } }
.tgroup { display: flex; flex-direction: column; gap: 8px; }
.tchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: rgb(var(--inkc) / .06); font-size: 13px; font-weight: 500; }
.tchip small { font-weight: 400; color: var(--ink2); font-variant-numeric: tabular-nums; }
/* The week chart: neutral bars, today's bar in ink, coral only for a day that needs someone, the dashed pencil line is how many people a day needs. */
.wkc { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 16px; }
.wkcol { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; transition: background-color .16s var(--ease); }
.wkcol:hover { background: rgb(var(--inkc) / .04); }
.wkcol.today { background: rgb(var(--inkc) / .05); }
.wkcol.past { opacity: .55; }
.wkcount { font: 600 16px var(--display); font-variant-numeric: tabular-nums; }
.wkcol .bar { position: relative; width: 100%; max-width: 44px; height: 140px; display: flex; align-items: flex-end; }
.wkcol .bar i { width: 100%; border-radius: 6px; transform-origin: bottom; }
.wkcol .bar .need { position: absolute; left: -4px; right: -4px; border-top: 1.5px dashed rgb(var(--inkc) / .5); }
.wkcol small { font-size: 12px; color: var(--ink3); }
.wkdate { font: 500 15px var(--display); font-variant-numeric: tabular-nums; }
.wkcol.today .wkdate { color: var(--blueink); }
.b-g { background: rgb(var(--inkc) / .24); } .b-o { background: var(--amber); } .b-x { background: rgb(var(--inkc) / .1); }
.wkcol.today .bar i.b-g { background: var(--act); }
.b-r { background: var(--coral); }
.anim .wkcol .bar i { animation: grow .6s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
i.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
i.lg.need { background: none; border-top: 1.5px dashed rgb(var(--inkc) / .5); height: 0; margin-top: 4px; border-radius: 0; }
@media (max-width: 1099px) { .homecols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 899px) {
  .stats { gap: 8px; } .stats .stat { padding: 12px; }
  .stat .num { font-size: 28px; }
  .wkc { gap: 4px; padding: 12px 8px 8px; }
  .wkcol .bar { height: 100px; max-width: 28px; }
}
.todayteam.tap { cursor: pointer; transition: border-color .16s var(--ease); }
@media (hover: hover) { .todayteam.tap:hover { border-color: rgb(var(--inkc) / .18); } }
.linkbtn .ic { display: inline-block; vertical-align: -2px; }
/* ---------- Payroll: hours (and pay, owners) per person and period, in priority order with Hold ---------- */
.paytable { display: flex; flex-direction: column; flex-shrink: 0; padding: 4px 16px; overflow-x: auto; }
.paytable > div { display: grid; grid-template-columns: minmax(180px, 1.6fr) repeat(4, minmax(80px, 1fr)) 168px; gap: 12px; padding: 10px 0; align-items: center; border-top: 1px solid var(--line); }
.paytable > div:first-child { border-top: 0; }
.paytable > div > :not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.paytable .pt-h { font-size: 12px; font-weight: 500; color: var(--ink3); padding-block: 6px; }
.pth { font: inherit; color: inherit; text-align: right; justify-self: end; padding: 4px 6px; margin-right: -6px; border-radius: 6px; }
@media (hover: hover) { .pth:hover { background: rgb(var(--inkc) / .05); color: var(--ink); } }
.pth.on { color: var(--ink); font-weight: 600; }
.paytable .pt-t { font-weight: 600; border-top: 1px solid rgb(var(--inkc) / .18); }
.pc { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.pc b { font-weight: 500; } .pt-t .pc b, .paylist .pc b { font-weight: 600; }
.pc small { font-size: 12px; color: var(--ink2); }
.item.ptot { font-weight: 600; border-top: 1px solid rgb(var(--inkc) / .18); }
.pname { gap: 10px; text-align: left; border-radius: 8px; }
.pname .b5 { font-weight: 500; }
@media (hover: hover) { button.pname:hover .b5 { text-decoration: underline; text-underline-offset: 3px; } }
.pnum { width: 20px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink3); flex-shrink: 0; }
.ptools { gap: 6px; justify-content: flex-end; }
.ptools .round { width: 32px; height: 32px; }
.ptools .round:disabled { opacity: .35; }
.holdbtn { min-width: 76px; justify-content: center; }
.held .av, .held .b5 { opacity: .6; }
.paylist .item { gap: 10px; }
:root { --liftshadow: 0 8px 24px rgb(20 26 61 / .14), 0 1px 3px rgb(20 26 61 / .08); }
.prow { position: relative; }
.prow.lift { z-index: 2; background: var(--sheet); border-radius: 10px; }
.prow.grabbed { box-shadow: var(--liftshadow); cursor: grabbing; transition: box-shadow .2s var(--ease); }
@media (pointer: fine) { .paytable .prow { cursor: grab; } .paytable .prow button { cursor: pointer; } }
.ptools .round, .holdbtn { transition: transform .1s ease-out, background-color .16s var(--ease); }
.ptools .round:active:not(:disabled), .holdbtn:active { transform: scale(.92); }
@media (max-width: 520px) { .paylist .item { gap: 8px; } .paylist .av { display: none; } .holdbtn { min-width: 0; padding: 0 10px; } }
