/* Sign Team Time Off, Oct 2026 redesign (Micky's mockups): warm cream paper, heavy rounded headings,
   pastel tiles, one color per person (avatar + calendar bar), blackouts as banners. */
:root {
  --bg: #F6F1E7; --surface: #FFFDF9; --surface-2: #FBF7EF; --sand: #EFE6D6; --sand-2: #F4ECDF;
  --rule: #E6DDCC; --rule-2: #D6C9B2;
  --ink: #221B13; --ink-2: #4C4235; --ink-3: #6A5E4E;           /* ink-3 on bg = 5.5:1 */
  --accent: #1F6FEB; --accent-ink: #1653B5; --accent-soft: #DCE8FB;
  --green: #1E8E5A; --green-ink: #13663F; --green-soft: #D3EEDD; --green-tile: #CDEBD9;
  --amber: #C98A12; --amber-ink: #6E4A00; --amber-soft: #FBEBC2; --amber-tile: #F6E2A3;
  --purple: #6B4FBB; --purple-ink: #4B3390; --purple-soft: #E7DFF8; --purple-tile: #D9CDF4;
  --peach-tile: #F7CFBB; --peach-ink: #8A3B17;
  --red: #C2362F; --red-ink: #8E211B; --red-soft: #F8DCD8;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(60,40,10,.05), 0 8px 24px rgba(60,40,10,.05);
  --head: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15.5px/1.5 var(--body); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; letter-spacing: -.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin-bottom: 6px; }
h1 .lite { color: #8C8172; font-weight: 700; }
h2 { font-size: 22px; font-weight: 800; margin: 28px 0 12px; }
h3 { font-size: 17px; font-weight: 800; margin: 18px 0 8px; }
.sub { font-family: var(--head); font-size: 19px; font-weight: 700; color: var(--ink-2); margin: 0 0 22px; letter-spacing: -.01em; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.small { font-size: .88rem; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: .92em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 26px 28px 60px; }
@media (max-width: 720px) { .wrap { padding: 18px 16px 48px; } }

/* ---- top bar ---- */
.top { background: var(--bg); border-bottom: 1px solid var(--rule); display: flex; align-items: stretch; gap: 26px; padding: 0 28px; min-height: 60px; position: sticky; top: 0; z-index: 20; }
.brand { text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: -.02em; display: flex; align-items: center; white-space: nowrap; }
.tabs { display: flex; gap: 4px; align-items: stretch; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: center; gap: 6px; padding: 0 12px; text-decoration: none; color: var(--ink-3); font-weight: 600; font-size: 15.5px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.right { display: flex; align-items: center; gap: 6px; }
.badge { background: var(--red); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; font-weight: 700; line-height: 18px; min-width: 18px; text-align: center; }
.more { position: relative; }
.more > summary { list-style: none; cursor: pointer; padding: 7px 12px; border: 1px solid var(--rule-2); border-radius: 99px; font-weight: 600; font-size: 14px; color: var(--ink-2); background: var(--surface); }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.more .menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 210px; z-index: 30; }
.more .menu a, .more .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; background: none; border: 0; cursor: pointer; font-family: var(--body); }
.more .menu a:hover, .more .menu button:hover { background: var(--sand-2); }
.more .menu hr { border: 0; border-top: 1px solid var(--rule); margin: 6px 4px; }
.more .menu .who { padding: 8px 12px 4px; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 720px) {
  .top { flex-wrap: wrap; gap: 0 10px; padding: 0 12px; }
  .brand { font-size: 17px; height: 50px; }
  .right { margin-left: auto; }
  .tabs { order: 3; flex-basis: 100%; height: 44px; border-top: 1px solid var(--rule); }
  .tabs a { font-size: 14.5px; padding: 0 10px; }
  .tabs a.wide { display: none; }
}
.foot { text-align: center; color: var(--ink-3); font-size: 13px; padding: 28px 16px; }

/* ---- buttons ---- */
button, .btn { font: 600 14.5px/1.2 var(--body); border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .12s, border-color .12s, transform .05s; }
button:hover, .btn:hover { background: var(--sand-2); border-color: var(--ink-3); }
button:active, .btn:active { transform: translateY(1px); }
.btn.primary, button.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover, button.primary:hover { background: #3A2F22; }
.btn.ok, button.ok { background: var(--green); color: #fff; border-color: var(--green); }
.btn.ok:hover, button.ok:hover { background: var(--green-ink); }
.btn.danger, button.danger { color: var(--red-ink); border-color: #E7B9B3; }
.btn.danger:hover, button.danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn.sm, button.sm { padding: 6px 12px; font-size: 13.5px; border-radius: 10px; }
.btn.pill, button.pill { border-radius: 99px; padding: 7px 18px; }
.btn.icon, button.icon { width: 48px; height: 46px; padding: 0; font-size: 20px; }
button.link { border: 0; background: none; padding: 0; color: var(--accent-ink); font-weight: 600; text-decoration: underline; }
.inline { display: inline; }

/* ---- cards, layout ---- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.tight { padding: 14px 16px; }
.card.flat { box-shadow: none; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.side { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 860px) { .grid.two, .grid.side { grid-template-columns: 1fr; } }

/* ---- pastel stat tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 26px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .tiles, .tiles.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 340px) { .tiles, .tiles.three { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .tile { min-height: 112px; padding: 14px 14px 12px; } .tile .n { font-size: 32px; } .tile .k { font-size: 13.5px; } }
.tile { border-radius: var(--radius); padding: 18px 20px 16px; min-height: 132px; display: flex; flex-direction: column; position: relative; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); }
.tile .k { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.tile .n { font-family: var(--head); font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .n small { font-size: .62em; font-weight: 800; margin-left: 2px; }
.tile .l { font-size: 14px; color: var(--ink-2); margin-top: auto; padding-top: 8px; }
.tile svg { display: block; margin-top: auto; width: 100%; }
.tile.green { background: var(--green-tile); border-color: #B5DEC6; }
.tile.amber { background: var(--amber-tile); border-color: #EBD088; }
.tile.purple { background: var(--purple-tile); border-color: #C7B8EC; }
.tile.peach { background: var(--peach-tile); border-color: #EDB89F; }
.tile.low .n { color: var(--red-ink); }
a.tile:hover { filter: brightness(.98); }

/* ---- avatars & person colors ---- */
.av { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font: 700 13.5px/1 var(--body); letter-spacing: .02em; flex: none; }
.av.sm { width: 24px; height: 24px; font-size: 10px; }
.av.lg { width: 44px; height: 44px; font-size: 15px; }
.avs { display: flex; margin-top: auto; }
.avs .av { border: 3px solid var(--peach-tile); margin-left: -8px; width: 42px; height: 42px; }
.avs .av:first-child { margin-left: 0; }
.p0 { --pc: #2F7FD8; --pb: #A8D1F6; } .p1 { --pc: #7B5BD6; --pb: #D9CEF7; } .p2 { --pc: #B9800F; --pb: #F5D88E; }
.p3 { --pc: #2E8F52; --pb: #C3E6CA; } .p4 { --pc: #D23A80; --pb: #F5ADCF; } .p5 { --pc: #D9563B; --pb: #F8BEAC; }
.p6 { --pc: #1F8D80; --pb: #AEE0D9; } .p7 { --pc: #56677A; --pb: #CED7E1; }
.av[class*=" p"], .av[class^="p"] { background: var(--pc); }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person .nm { font-weight: 700; font-size: 16px; line-height: 1.25; }
.person .meta { font-size: 13.5px; color: var(--ink-3); }

/* ---- flash / alerts ---- */
.flash, .alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 14.5px; font-weight: 500; border: 1px solid; }
.flash.ok, .alert.ok { background: var(--green-soft); border-color: #B5DEC6; color: #0E4D2F; }
.flash.err, .alert.err { background: var(--red-soft); border-color: #EDB8B1; color: var(--red-ink); }
.alert.warn { background: var(--amber-soft); border-color: #EBD088; color: var(--amber-ink); }
.alert.info { background: var(--accent-soft); border-color: #B9CFF4; color: var(--accent-ink); }

/* ---- banners (blackouts) ---- */
.banner { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.banner svg { flex: none; }
.banner.block { background: #F3C9C2; color: #6E1A14; }
.banner.warn { background: #F4D584; color: #4E3600; }
.banner.closed { background: #D8CCF3; color: #3B2775; }
.banner .when { font-weight: 800; }

/* ---- forms ---- */
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 5px; color: var(--ink-2); }
label.inline-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; color: var(--ink); font-size: 14.5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  font: 15px var(--body); width: 100%; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--surface); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(31,111,235,.18); outline-offset: 0; }
input.w-sm, select.w-sm { width: auto; min-width: 120px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); }
textarea { min-height: 84px; resize: vertical; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1; min-width: 140px; }
.row > .fixed { flex: 0 0 auto; min-width: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
details > summary { cursor: pointer; font-weight: 700; color: var(--ink); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-weight: 700; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 12px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.inactive td { color: var(--ink-3); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
/* tables that turn into stacked cards on a phone: each td carries data-l="Label" */
@media (max-width: 720px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--rule); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; background: var(--surface); }
  table.stack td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.stack td::before { content: attr(data-l); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: left; flex: none; padding-top: 2px; }
  table.stack td[data-l=""]::before { content: none; }
  table.stack td.first { text-align: left; justify-content: flex-start; }
}

/* ---- team rows (Overview) ---- */
.team { display: grid; gap: 8px; }
.team .hd, .team .tr { display: grid; grid-template-columns: minmax(220px, 2.2fr) 1.4fr 1fr 1fr 1fr 110px; align-items: center; gap: 12px; }
.team .tr > :last-child { text-align: right; }
.team .hd { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding: 0 19px 4px; }
.team .tr { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 18px; }
.team .tr.inactive { opacity: .6; }
.team .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.team .lbl { display: none; }
.ring { display: flex; align-items: center; gap: 10px; }
.ring svg { flex: none; }
.ring .pct { font-weight: 700; line-height: 1.2; }
.ring .of { font-size: 12.5px; color: var(--ink-3); }
.chip { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 700; margin-left: 6px; white-space: nowrap; }
.chip.low { background: var(--amber-soft); color: var(--amber-ink); }
.chip.off { background: var(--sand); color: var(--ink-2); }
.v.low { color: var(--amber-ink); }
@media (max-width: 860px) {
  .team .hd { display: none; }
  .team .tr { grid-template-columns: 1fr 1fr 1fr; row-gap: 10px; }
  .team .tr > :first-child { grid-column: 1 / -1; }
  .team .tr > .ring { grid-column: 1 / -1; }
  .team .tr > :last-child { grid-column: 1 / -1; }
  .team .tr > :last-child .btn, .team .tr > :last-child button { width: 100%; }
  .team .lbl { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
}
.bulk { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1.5px dashed var(--rule-2); border-radius: 14px; padding: 12px 18px; margin-top: 10px; color: var(--ink-2); }
.bulk b { color: var(--ink); }

/* ---- dialogs (Adjust, bulk) ---- */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(40,25,5,.25); }
dialog::backdrop { background: rgba(34,27,19,.45); }
dialog form { padding: 22px 24px 20px; }
dialog h3 { margin: 0 0 4px; font-size: 22px; }
dialog .seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--sand-2); border-radius: 12px; padding: 4px; gap: 4px; margin-top: 14px; }
dialog .seg label { margin: 0; text-align: center; padding: 8px 6px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
dialog .seg input { position: absolute; opacity: 0; pointer-events: none; }
dialog .seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
dialog .seg.two { grid-template-columns: 1fr 1fr; }

/* ---- pills (status) ---- */
.pill { display: inline-block; font-weight: 700; font-size: 12.5px; padding: 3px 10px; border-radius: 99px; line-height: 1.4; white-space: nowrap; }
.pill.approved { background: var(--green-soft); color: var(--green-ink); }
.pill.pending { background: var(--amber-soft); color: var(--amber-ink); }
.pill.denied { background: var(--red-soft); color: var(--red-ink); }
.pill.withdrawn, .pill.soft, .pill.employee { background: var(--sand); color: var(--ink-2); }
.pill.admin { background: var(--ink); color: #fff; }
.pill.warn { background: var(--amber-soft); color: var(--amber-ink); }
.pill.block { background: var(--red-soft); color: var(--red-ink); }
.pill.closed { background: var(--purple-soft); color: var(--purple-ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.chips .chip { cursor: pointer; border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); margin: 0; padding: 5px 12px; font-size: 13px; }
.chips .chip:hover { background: var(--sand-2); }

/* ---- approvals ---- */
.approval { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
@media (max-width: 860px) { .approval { grid-template-columns: 1fr; } }
.approval .when { font-family: var(--head); font-size: 20px; font-weight: 800; margin: 10px 0 4px; letter-spacing: -.01em; }
.approval .hot { color: var(--red-ink); font-weight: 700; font-size: 13.5px; }
.approval .reason { background: var(--surface-2); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; margin: 10px 0; white-space: pre-wrap; font-size: 14.5px; }
.approval .meta { color: var(--ink-2); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.approval .meta b { color: var(--ink); }
.conflicts { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.decide { background: var(--surface-2); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; }
.decide label:first-child { margin-top: 0; }

/* ---- calendar ---- */
.calpage { display: grid; grid-template-columns: 1fr 300px; gap: 0; margin: -26px -28px 0; min-height: calc(100vh - 61px); }
.calmain { padding: 22px 28px 30px; min-width: 0; }
.calside { border-left: 1px solid var(--rule); padding: 30px 26px; }
@media (max-width: 1060px) { .calpage { grid-template-columns: 1fr; margin: -18px -16px 0; } .calmain { padding: 18px 16px; } .calside { border-left: 0; border-top: 1px solid var(--rule); padding: 20px 16px; } }
.calbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.calbar h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.035em; }
.calbar .nav { display: flex; gap: 10px; }
.cal { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--surface); }
.cal .dows { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg); }
.cal .dows div { text-align: center; font-weight: 700; font-size: 15px; padding: 8px 0 10px; color: var(--ink); }
.cal .wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 34px; grid-auto-rows: 30px; min-height: 104px; border-top: 1px solid var(--rule); position: relative; }
.cal .wk:first-of-type { border-top: 0; }
.cal .dc { border-left: 1px solid var(--rule); padding: 7px 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.cal .dc:first-child { border-left: 0; }
.cal .dc.we { background: var(--sand-2); }
.cal .dc.out { color: #A79A86; }
.cal .dc.block { background: #FBE7E3; }
.cal .dc.warn { background: #FCF1D2; }
.cal .dc.closed { background: #EEE8FB; }
.cal .dc.today { background: #DCE8FB; }
.cal .dc .d { display: inline-grid; place-items: center; min-width: 24px; height: 24px; }
.cal .dc.today .d { background: var(--accent); color: #fff; border-radius: 50%; width: 34px; height: 34px; font-size: 15px; margin: -4px 0 0 -4px; }
.cal .ev { z-index: 1; margin: 2px 6px; display: flex; align-items: center; gap: 7px; background: var(--pb); color: var(--ink); border-radius: 99px; padding: 2px 10px 2px 3px; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-decoration: none; min-width: 0; line-height: 1.15; }
.cal .ev .av { width: 22px; height: 22px; font-size: 9.5px; }
.cal .ev .t { overflow: hidden; text-overflow: ellipsis; }
.cal .ev .t small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-2); }
.cal .ev.short { border-radius: 12px; border: 1.5px solid var(--pc); }
.cal .ev.one { font-size: 12px; gap: 5px; padding-right: 6px; }
.cal .ev.one .av { width: 18px; height: 18px; font-size: 8px; }
.cal .ev.one .t small { font-size: 10.5px; }
.cal .ev.two { grid-row-end: span 2; border-radius: 14px; }
.cal .ev.pending { background: repeating-linear-gradient(45deg, var(--pb), var(--pb) 6px, var(--surface) 6px, var(--surface) 10px); border: 1.5px dashed var(--pc); }
.cal a.ev:hover { filter: brightness(.96); }
.cal .ev.cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.cal .ev.cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 13.5px; margin-top: 12px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.legend .sw-we { background: var(--sand-2); border: 1px solid var(--rule); }
.legend .sw-block { background: #FBE7E3; border: 1px solid #EDB8B1; }
.legend .sw-warn { background: #FCF1D2; border: 1px solid #EBD088; }
.legend .sw-closed { background: #EEE8FB; border: 1px solid #C7B8EC; }
.side h2 { font-size: 26px; margin: 0 0 6px; }
.side .blk { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--rule); }
.side .blk:last-child { border-bottom: 0; }
.side .person { margin-top: 14px; }
.side .person .meta { font-size: 15px; color: var(--ink-2); }
.side .none { color: var(--ink-2); font-size: 16px; }
.agenda { display: none; }
@media (max-width: 720px) {
  .cal { display: none; }
  .legend { display: none; }
  .agenda { display: block; }
  .agenda .d { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
  .agenda .d.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
  .agenda .d .person { margin: 0; }
  .calbar { flex-wrap: wrap; }
  .calbar .nav { width: 100%; }
  .calbar .nav .btn:last-child { flex: 1; }
  .agenda .d .h { font-family: var(--head); font-weight: 800; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; }
  .agenda .d .person { margin-top: 6px; }
  .agenda .tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
}

/* ---- login ---- */
.login { max-width: 430px; margin: 9vh auto 0; padding: 30px 30px 26px; }
.login h1 { font-size: 34px; }
.login input { font-size: 17px; }
.login .pin { letter-spacing: .35em; font-size: 26px; text-align: center; }
.login .actions button { width: 100%; }

.newpin { background: var(--green-soft); border: 2px solid var(--green); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.newpin .pin { font-size: 34px; font-weight: 800; letter-spacing: .22em; font-family: var(--head); }
.hours-preview { margin-top: 12px; font-size: 15px; }
.hours-preview b { font-family: var(--head); font-size: 26px; }
.how { font-size: 14.5px; }
.how ul { padding-left: 18px; margin: 6px 0; }
.how li { margin: 5px 0; }
.hidden { display: none !important; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; }
.kv b { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.list .person { padding: 10px 0; border-top: 1px solid var(--rule); }
.list .person:first-child { border-top: 0; }

/* ===== TV display: same look, sized for across the room ===== */
body.tv .wrap { max-width: none; padding: 0; }
body.tv .tvbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 30px 10px; }
body.tv .tvbar h1 { font-size: 64px; margin: 0; }
body.tv .tvbar .clock { font-family: var(--head); font-size: 46px; font-weight: 800; font-variant-numeric: tabular-nums; }
body.tv .tvbar .nav a { margin-left: 8px; }
body.tv .tvtoday { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 0 30px 14px; font-size: 22px; }
body.tv .tvtoday .lbl { font-family: var(--head); font-weight: 800; font-size: 26px; margin-right: 6px; }
body.tv .tvtoday .person { background: var(--pb); padding: 4px 16px 4px 4px; border-radius: 99px; }
body.tv .tvtoday .person .nm { font-size: 22px; }
body.tv .tvbody { padding: 0 30px 20px; }
body.tv .banner { font-size: 21px; padding: 12px 18px; }
body.tv .cal .dows div { font-size: 20px; }
body.tv .cal .wk { grid-template-rows: 42px; grid-auto-rows: 40px; min-height: calc((100vh - 290px) / 6); }
body.tv .cal.rows-5 .wk { min-height: calc((100vh - 290px) / 5); }
body.tv .cal .dc { font-size: 19px; }
body.tv .cal .ev { font-size: 19px; }
body.tv .cal .ev.one { font-size: 16px; }
body.tv .cal .ev .av { width: 30px; height: 30px; font-size: 12px; }
body.tv .cal .ev .t small { font-size: 14px; }
body.tv .legend { font-size: 17px; }
body.tv .tvfoot { padding: 0 30px 16px; color: var(--ink-3); font-size: 14px; }
@media (max-width: 720px) { body.tv .cal { display: block; } body.tv .agenda { display: none; } body.tv .legend { display: flex; } body.tv .tvbar h1 { font-size: 34px; } body.tv .tvbar .clock { font-size: 24px; } body.tv .cal .ev { font-size: 12px; } }
.pin-gate { max-width: 420px; margin: 12vh auto 0; }
.pin-gate input { font-size: 28px; text-align: center; letter-spacing: .4em; }
.pin-gate button { width: 100%; margin-top: 14px; }
