/* NewEra Desks, in the NewEra brand: black #060606, royal #173DC9, navy #000D8B, electric #0076FC, Geist.
   The frame (sidebar, phone bars, sign-in, the Today stage) is always the dark side of the brand;
   the working area follows the viewer's light or dark setting. Colours are tokens; components only use tokens. */
:root {
  --bg: #f3f4f8; --surface: #ffffff; --surface-2: #f6f7fb; --sunk: #eceef5;
  --ink: #060606; --ink-2: #2b3050; --muted: #6b7095; --line: #e5e7ef; --line-2: #d3d7e4;
  --brand: #173dc9; --brand-ink: #ffffff; --navy: #000d8b; --electric: #0076fc; --brand-soft: #ebeffd; --brand-line: #c6d1f8;
  --good: #0b7a55; --good-soft: #e3f4ec; --warn: #9a5a00; --warn-soft: #fff2d9; --bad: #c22c27; --bad-soft: #fde8e7;
  --title: linear-gradient(100deg, #060606 0%, #0d1d74 55%, #173dc9 100%);
  --shadow: 0 1px 2px rgba(6, 10, 40, .05), 0 14px 34px -20px rgba(6, 13, 80, .24);
  --shadow-hi: 0 26px 60px -26px rgba(0, 13, 139, .6);
  --royal-fill: linear-gradient(180deg, #2b55e8 0%, #173dc9 100%);
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 40'%3E%3Cpath fill='%23ffffff' fill-opacity='.1' d='M0.643 19.619C0.188 19.619-0.123 20.079 0.047 20.501L5.894 35.023C5.992 35.266 6.229 35.427 6.491 35.415C12.348 35.133 16.266 29.173 14.057 23.684L13.201 21.558C12.852 20.692 13.494 19.750 14.431 19.750H15.370C15.912 19.750 16.400 20.078 16.600 20.579L24.008 38.975C24.106 39.218 24.343 39.379 24.605 39.368C31.986 39.084 36.946 31.596 34.170 24.700L32.904 21.556C32.556 20.691 33.197 19.750 34.135 19.750H43.752C44.207 19.750 44.518 19.290 44.348 18.868L38.501 4.346C38.403 4.103 38.166 3.942 37.904 3.954C32.047 4.237 28.128 10.196 30.337 15.684L31.194 17.813C31.543 18.678 30.901 19.619 29.964 19.619H28.892C28.350 19.619 27.862 19.291 27.662 18.790L20.256 0.395C20.158 0.151 19.921-0.010 19.659 0.001C12.278 0.285 7.318 7.773 10.093 14.669L11.359 17.813C11.708 18.678 11.066 19.619 10.129 19.619H0.643Z'/%3E%3C/svg%3E");
  --radius: 18px; --radius-sm: 12px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --tabbar: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05060b; --surface: #0c0f1d; --surface-2: #11152a; --sunk: #080a15;
    --ink: #f2f4fc; --ink-2: #c1c7de; --muted: #878eae; --line: #1b2037; --line-2: #293151;
    --brand: #7491ff; --brand-ink: #ffffff; --navy: #0b1660; --electric: #4aa3ff; --brand-soft: #131b45; --brand-line: #2c3c88;
    --good: #4fd29c; --good-soft: #0d2a20; --warn: #f3b453; --warn-soft: #2e220b; --bad: #ff7d76; --bad-soft: #351416;
    --title: linear-gradient(100deg, #ffffff 0%, #dbe3ff 50%, #8fa8ff 100%);
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -22px rgba(0, 0, 0, .85);
    --shadow-hi: 0 26px 60px -24px rgba(23, 61, 201, .75);
    color-scheme: dark;
  }
}
/* the dark frame of the brand: same look in either setting */
.side, .top, .tabbar, .signin, .todaycard, .toast, .devbar, .boot {
  --bg: #060606; --surface: #0e1121; --surface-2: #151a2f; --sunk: #0a0d1b;
  --ink: #f4f6fd; --ink-2: #c7cde3; --muted: #8b92b3; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .15);
  --brand: #86a0ff; --brand-soft: rgba(45, 106, 255, .16); --brand-line: rgba(134, 160, 255, .4); --electric: #4aa3ff;
  --good: #5ad7a4; --good-soft: rgba(90, 215, 164, .14); --warn: #ffc66e; --warn-soft: rgba(255, 198, 110, .14); --bad: #ff8a83; --bad-soft: rgba(255, 138, 131, .14);
  --title: linear-gradient(100deg, #ffffff 0%, #d4ddff 50%, #86a0ff 100%);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .85);
  color-scheme: dark;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { min-height: 100dvh; }
::selection { background: rgba(45, 106, 255, .28); }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.18; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: 26px; font-weight: 600; }
h2 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
small { font-size: 12.5px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; color: var(--muted); margin-top: 8px; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.nowrap { white-space: nowrap; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.big { width: 44px; height: 44px; stroke-width: 1.5; }
.g { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 70%, transparent); outline-offset: 2px; }

/* ------------------------------------------------------------ brand */
.lockup { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); white-space: nowrap; line-height: 1; }
.lockup .mark { width: 27px; height: 24px; flex: none; fill: #2d6aff; filter: drop-shadow(0 0 12px rgba(45, 106, 255, .5)); }
.lockup b { font-weight: 700; font-size: 12.5px; letter-spacing: .22em; }
.lockup i { font-style: normal; font-weight: 400; font-size: 12.5px; letter-spacing: .22em; color: var(--brand); padding-left: 11px; border-left: 1px solid var(--line-2); }
.lockup.xl .mark { width: 34px; height: 30px; }
.lockup.xl b, .lockup.xl i { font-size: 14px; }
.wordmark { font-weight: 700; letter-spacing: .2em; font-size: 13px; white-space: nowrap; }
.boot { min-height: 100dvh; display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 55%, rgba(23, 61, 201, .35) 0%, transparent 70%), #060606; }
.boot .lockup { animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; width: fit-content; padding: 6px 12px; border-radius: 8px; background: rgba(23, 61, 201, .22); color: #a9bcff; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(6px); }
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: #2d6aff; box-shadow: 0 0 10px #2d6aff; }

/* ------------------------------------------------------------ shell */
.shell { min-height: 100dvh; }
.side { display: none; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px; background: rgba(6, 6, 6, .9); backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line); }
.bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink-2); }
.bell:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.bell em, .badge { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.bell em { position: absolute; top: 3px; right: 2px; box-shadow: 0 0 0 2px #060606; }
.main { min-width: 0; padding: 18px 16px calc(var(--tabbar) + env(safe-area-inset-bottom, 0px) + 104px); max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.tabbar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); display: flex; gap: 4px; justify-content: space-around; padding: 6px;
  border-radius: 22px; background: rgba(9, 11, 22, .9); backdrop-filter: saturate(150%) blur(18px); border: 1px solid var(--line); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7); }
.tabbar a, .tabbar button { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px; border: 0; background: none; color: var(--muted); font-size: 10.5px; font-weight: 500; border-radius: 16px; cursor: pointer; white-space: nowrap; }
.tabbar span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tabbar .on { color: #fff; background: linear-gradient(180deg, rgba(45, 106, 255, .34), rgba(23, 61, 201, .14)); box-shadow: inset 0 0 0 1px rgba(134, 160, 255, .24); }
.tabbar .on .ic { color: #a3b7ff; }
.tabbar .badge { position: absolute; top: 2px; left: calc(50% + 6px); }
@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); }
  .top, .tabbar { display: none; }
  .side { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100dvh; overflow: hidden auto; padding: 26px 16px 18px; border-right: 1px solid rgba(255, 255, 255, .06);
    background: var(--mark) right -64px bottom 200px / 220px auto no-repeat, radial-gradient(130% 45% at 0% 100%, rgba(23, 61, 201, .42) 0%, transparent 62%), radial-gradient(90% 30% at 100% 0%, rgba(0, 118, 252, .12) 0%, transparent 70%), #060606; }
  .side .brand { padding: 4px 10px 0; }
  .sidenav { display: flex; flex-direction: column; gap: 3px; }
  .sidenav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; transition: background .15s ease, color .15s ease; }
  .sidenav a .ic { color: var(--muted); transition: color .15s ease; }
  .sidenav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
  .sidenav a:hover .ic { color: var(--ink-2); }
  .sidenav a.on { color: #fff; background: linear-gradient(90deg, rgba(45, 106, 255, .3), rgba(23, 61, 201, .08)); box-shadow: inset 0 0 0 1px rgba(134, 160, 255, .2); }
  .sidenav a.on .ic { color: #a3b7ff; }
  .sidenav a.on::before { content: ''; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #2d6aff; box-shadow: 0 0 14px 1px #2d6aff; }
  .sidenav .badge { margin-left: auto; }
  .sidefoot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
  .main { padding: 38px 44px 124px; width: 100%; }
}
.linkbtn { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); cursor: pointer; font-size: 14px; text-align: left; }
.linkbtn:hover { background: var(--surface-2); color: var(--ink); }
.side .linkbtn .ic { color: var(--muted); }
.side .linkbtn:hover { background: rgba(255, 255, 255, .05); }
.who { display: flex; align-items: center; gap: 11px; padding: 14px 10px 2px; border-top: 1px solid var(--line); margin-top: 8px; }
.who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.who b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 650; letter-spacing: .03em; }
.who .av { background: linear-gradient(140deg, #2d6aff, #000d8b); color: #fff; box-shadow: 0 0 0 2px #060606, 0 0 0 3px rgba(134, 160, 255, .45); }
.av.sm { width: 24px; height: 24px; font-size: 9.5px; border: 2px solid var(--surface); margin-left: -6px; }
.avs { display: inline-flex; padding-left: 6px; }

.devbar { position: relative; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: calc(env(safe-area-inset-top, 0px) + 7px) 16px 7px; background: #000; color: #d9def0; font-size: 12.5px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.devbar b { color: #fff; font-weight: 600; }
.devbar em { color: #ffcf6e; font-style: normal; }
.devbar .pill { background: #ffcf6e; color: #060606; font-weight: 700; border-radius: 999px; padding: 1px 8px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.devbar .jumps { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
@media (max-width: 700px) { .devbar { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; } .devbar .jumps { overflow: visible; } }
.devbar button { border: 1px solid #2a3150; background: #0e1224; color: #e6e9f5; border-radius: 7px; padding: 3px 9px; font-size: 12px; cursor: pointer; }
.devbar button:hover { border-color: #6d8bff; }

/* ------------------------------------------------------------ building blocks */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.card .h { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.count { font-style: normal; background: var(--bad-soft); color: var(--bad); font-size: 12px; padding: 1px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.pad { padding: 16px 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.wrap > * { flex: 1 1 140px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding-bottom: 4px; }
.pagehead small { display: flex; align-items: center; gap: 9px; color: var(--brand); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 8px; }
.pagehead small::before { content: ''; width: 8px; height: 8px; border-radius: 2.5px; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent); flex: none; }
.pagehead h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; padding-block: .04em; background: var(--title); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.weeknav { display: flex; align-items: center; gap: 12px; }
.weeknav > div { min-width: 0; }
.iconbtn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; flex: none; box-shadow: 0 1px 2px rgba(6, 10, 40, .05); transition: border-color .15s, color .15s, transform .12s; }
.iconbtn:hover:not(:disabled) { border-color: var(--brand-line); color: var(--brand); }
.iconbtn:active:not(:disabled) { transform: scale(.96); }
.iconbtn:disabled { opacity: .35; cursor: default; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(0, 13, 139, .4); background: var(--royal-fill); color: #fff; font-weight: 600; padding: 10px 18px; border-radius: 12px; cursor: pointer; white-space: nowrap; letter-spacing: .005em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 20px -10px rgba(23, 61, 201, .85); transition: filter .15s, box-shadow .15s, transform .12s; text-decoration: none; }
.btn:hover:not(:disabled) { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 26px -10px rgba(23, 61, 201, .95); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(6, 10, 40, .05); }
.btn.ghost:hover:not(:disabled) { filter: none; border-color: var(--brand-line); color: var(--brand); box-shadow: 0 1px 2px rgba(6, 10, 40, .05); }
.btn.ghost.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.btn.sm { padding: 7px 13px; font-size: 13.5px; border-radius: 10px; }
.btn .ic { width: 16px; height: 16px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; background: var(--sunk); border: 1px solid var(--line); border-radius: 13px; align-items: center; }
.seg button { border: 0; background: none; padding: 6px 13px; border-radius: 9px; color: var(--muted); cursor: pointer; font-size: 13.5px; font-weight: 500; transition: color .15s, background .15s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(6, 10, 40, .08), 0 4px 12px -6px rgba(6, 13, 80, .25); }
.seg .input.sm { border-color: transparent; background: var(--surface); }
.seg.wrap { max-width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid var(--line); }
.chip .ic { width: 13px; height: 13px; }
.chip.brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.chip.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.banner { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-radius: 14px; background: var(--brand-soft); color: var(--ink); font-size: 14px; border: 1px solid var(--brand-line); }
.banner .ic { color: var(--brand); }
.banner.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 22%, transparent); } .banner.warn .ic { color: var(--warn); }
.banner.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 22%, transparent); } .banner.bad .ic { color: var(--bad); }
.banner.good { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 22%, transparent); } .banner.good .ic { color: var(--good); }
.banner.link { color: var(--ink); transition: border-color .15s; } .banner.link span { flex: 1; } .banner.link:hover { border-color: var(--brand); }
.input { width: 100%; min-width: 0; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; padding: 9px 12px; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line-2)); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.input.sm { width: auto; padding: 6px 10px; font-size: 14px; }
.input.mono { font-family: var(--mono); font-size: 13px; }
textarea.input { resize: vertical; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
label small { font-weight: 400; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); }
label.check input { width: 18px; height: 18px; accent-color: #173dc9; }
label.file { display: inline-flex; flex-direction: row; cursor: pointer; color: var(--brand); font-weight: 600; }
label.file input { display: none; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { padding: 0 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pair { display: flex; gap: 8px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.list li > span:first-child, .list li > div:first-child { flex: 1 1 200px; display: flex; flex-direction: column; min-width: 0; }
.list li small { color: var(--muted); }
.list li > span.av:first-child { flex: 0 0 34px; display: inline-grid; }
.list.review li > span:nth-child(2) { flex: 1 1 160px; display: flex; flex-direction: column; min-width: 0; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.people li { display: flex; align-items: center; gap: 10px; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.skeleton { display: flex; flex-direction: column; gap: 16px; }
.skeleton div { height: 92px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border: 1px solid var(--line); }
.skeleton div:first-child { height: 56px; width: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------ My week */
.summary { gap: 12px; padding: 18px 20px; }
.need { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.need p b { font-weight: 600; }
.dots { display: flex; gap: 6px; }
.dots i { width: 30px; height: 7px; border-radius: 4px; background: var(--sunk); border: 1px solid var(--line-2); }
.dots i.on { background: linear-gradient(90deg, #2d6aff, #173dc9); border-color: transparent; box-shadow: 0 0 12px -2px rgba(45, 106, 255, .7); }
.dots i.extra { background: var(--electric); border-color: var(--electric); opacity: .55; }
.deadline { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.deadline .ic { color: var(--brand); }
.deadline.open .ic { color: var(--good); }
.rules { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 13px; }
.rules:empty { display: none; }
.rules li { display: flex; align-items: center; gap: 6px; }
.rules .ic { width: 15px; height: 15px; }
.rules li.bad { color: var(--bad); font-weight: 600; }
.days { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .days { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.day { position: relative; isolation: isolate; overflow: hidden; text-align: left; display: flex; flex-direction: column; gap: 11px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; min-height: 150px; min-width: 0;
  transition: transform .18s cubic-bezier(.2, .7, .3, 1), border-color .18s ease, box-shadow .18s ease; }
.day:hover:not([aria-disabled]) { border-color: var(--brand-line); transform: translateY(-2px); box-shadow: var(--shadow), 0 18px 36px -22px rgba(23, 61, 201, .45); }
.day[aria-disabled] { cursor: default; }
.day:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.dhead { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.dow { font-weight: 600; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dnum { order: 3; flex-basis: 100%; font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--ink); }
.dnum small { font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--muted); margin-left: 2px; }
.date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.tag { margin-left: auto; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); background: var(--brand-soft); padding: 3px 8px; border-radius: 999px; }
.dstate { display: flex; align-items: flex-start; gap: 10px; }
.dstate > .ic { margin-top: 1px; color: var(--muted); }
.dstate > div { display: flex; flex-direction: column; min-width: 0; }
.dstate b { font-weight: 600; letter-spacing: -.005em; }
.dstate span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.dstate .lk { margin-left: auto; width: 16px; height: 16px; opacity: .8; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.cap { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.cap small { color: var(--muted); font-size: 12px; }
.bar { height: 5px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #173dc9, #2d6aff); border-radius: 3px; width: 0; }
.bar i.tight { background: var(--warn); } .bar i.full { background: var(--bad); }
.mates { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.cut { color: var(--muted); font-size: 12px; }
.day.office { border-color: rgba(134, 160, 255, .35); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 22px 44px -24px rgba(23, 61, 201, .9);
  background: var(--mark) right -20px top -14px / 104px auto no-repeat, radial-gradient(120% 80% at 100% 0%, rgba(74, 163, 255, .45) 0%, transparent 55%), linear-gradient(165deg, #0a1680 0%, #173dc9 58%, #2d6aff 100%); }
.day.office:hover:not([aria-disabled]) { border-color: rgba(190, 205, 255, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 26px 50px -22px rgba(23, 61, 201, 1); }
.day.office .dnum, .day.office .dstate b { color: #fff; }
.day.office .dow, .day.office .dnum small, .day.office .date, .day.office .dstate span, .day.office .dstate > .ic, .day.office .cap small, .day.office .mates, .day.office .cut { color: rgba(255, 255, 255, .74); }
.day.office .tag { color: #fff; background: rgba(255, 255, 255, .18); }
.day.office .chip { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .12); }
.day.office .chip.warn { background: #ffcf6e; color: #3a2600; }
.day.office .bar { background: rgba(255, 255, 255, .18); }
.day.office .bar i { background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .7); } .day.office .bar i.tight { background: #ffcf6e; } .day.office .bar i.full { background: #ff9a94; }
.day.office .av.sm { border-color: #173dc9; background: #fff; color: #173dc9; }
.day.pending { outline: 2px dashed var(--electric); outline-offset: 3px; }
.day.home.pending { background: var(--surface-2); }
.day.off { background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--surface-2) 10px 20px); box-shadow: none; }
.day.past { box-shadow: none; background: var(--surface-2); }
.day.past .dnum { color: var(--muted); }
.day.past.st-attended .dstate .ic { color: var(--good); }
.day.past.st-late .dstate .ic { color: var(--warn); }
.day.past.st-missed .dstate .ic { color: var(--bad); }
.day.err { outline: 2px solid var(--bad); outline-offset: 3px; }
.day.is-today:not(.office) { border-color: var(--brand); box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.calrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; }
.calrow .linkbtn { color: var(--brand); padding-left: 0; font-weight: 600; }
.calrow .linkbtn:hover { background: none; text-decoration: underline; }
.savebar { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px) + 22px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  justify-content: space-between; padding: 12px 14px 12px 18px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); border: 1px solid var(--brand-line); box-shadow: 0 22px 50px -16px rgba(0, 13, 139, .45); animation: rise .22s cubic-bezier(.2, .7, .3, 1); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.savebar .msg { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; min-width: 0; }
.savebar p { display: flex; align-items: flex-start; gap: 6px; }
.savebar .ic { width: 17px; height: 17px; margin-top: 1px; }
.savebar .bad { color: var(--bad); } .savebar .ok { color: var(--good); }
.savebar .acts { display: flex; gap: 8px; }
@media (min-width: 960px) { .savebar { left: calc(264px + 44px); right: 44px; bottom: 22px; max-width: 1072px; margin: 0 auto; } }

/* ------------------------------------------------------------ Today: the check-in stage */
.todaycard { position: relative; overflow: hidden; isolation: isolate; align-items: center; text-align: center; padding: 44px 20px 40px; border: 1px solid rgba(134, 160, 255, .2); box-shadow: var(--shadow-hi);
  background: var(--mark) right -60px bottom -70px / 300px auto no-repeat, radial-gradient(55% 65% at 50% 38%, rgba(45, 106, 255, .34) 0%, transparent 70%),
    linear-gradient(rgba(134, 160, 255, .07) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(134, 160, 255, .07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, #08134d 0%, #060606 100%); }
.todaycard h2 { font-size: 24px; letter-spacing: -.025em; }
.checkin, .checked, .quiet { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.zone { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); }
.todaycard .zone { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.bigbtn { position: relative; isolation: isolate; width: 188px; height: 188px; border-radius: 50%; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 18px;
  background: radial-gradient(circle at 32% 24%, #7da2ff 0%, #2d6aff 24%, #173dc9 56%, #000d8b 100%); color: #fff; font-size: 18px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -14px 30px rgba(0, 6, 60, .45), 0 0 0 12px rgba(45, 106, 255, .1), 0 0 0 1px rgba(134, 160, 255, .5), 0 30px 70px -20px rgba(45, 106, 255, .95); transition: transform .12s ease; }
.bigbtn::before, .bigbtn::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 1.5px solid rgba(134, 160, 255, .55); z-index: -1; animation: ring 3s cubic-bezier(.2, .6, .3, 1) infinite; pointer-events: none; }
.bigbtn::after { animation-delay: 1.5s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.bigbtn .ic { width: 40px; height: 40px; stroke-width: 2; }
.bigbtn:hover:not(:disabled) { transform: scale(1.02); }
.bigbtn:active { transform: scale(.97); }
.bigbtn.late { background: radial-gradient(circle at 32% 24%, #ffd08a 0%, #ffb648 26%, #d97a00 62%, #7a4300 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -14px 30px rgba(60, 30, 0, .4), 0 0 0 12px rgba(255, 182, 72, .1), 0 30px 70px -20px rgba(217, 122, 0, .9); }
.bigbtn.late::before, .bigbtn.late::after { border-color: rgba(255, 198, 110, .55); }
.bigbtn:disabled { opacity: .6; }
.net { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.net.ok { color: var(--good); } .net.no { color: var(--warn); }
.checked .ic.big { color: var(--good); background: var(--good-soft); border-radius: 50%; padding: 16px; width: 84px; height: 84px; box-shadow: 0 0 0 10px color-mix(in srgb, var(--good) 8%, transparent), 0 0 50px -6px color-mix(in srgb, var(--good) 55%, transparent); margin-bottom: 6px; }
.checked.late .ic.big { color: var(--warn); background: var(--warn-soft); box-shadow: 0 0 0 10px color-mix(in srgb, var(--warn) 8%, transparent), 0 0 50px -6px color-mix(in srgb, var(--warn) 55%, transparent); }
.quiet .ic.big { color: var(--brand); width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); box-sizing: content-box; }
.quiet p, .checked p { color: var(--ink-2); }

/* ------------------------------------------------------------ Attendance */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.tile::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--line-2); }
.tile span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tile b { font-size: 34px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile.st-attended::before { background: var(--good); } .tile.st-late::before { background: var(--warn); } .tile.st-missed::before { background: var(--bad); } .tile.st-excused::before { background: var(--brand); }
.tile.st-attended b { color: var(--good); } .tile.st-late b { color: var(--warn); } .tile.st-missed b { color: var(--bad); } .tile.st-excused b { color: var(--brand); }
.month { gap: 6px; }
.mgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mgrid.head span { font-size: 11.5px; color: var(--muted); font-weight: 600; text-align: center; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 4px; }
.mcell { min-height: 68px; border-radius: 12px; background: var(--surface-2); padding: 7px 8px; display: flex; flex-direction: column; gap: 3px; position: relative; overflow: hidden; }
.mcell small { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.mcell .ic { width: 16px; height: 16px; }
.mcell em { font-style: normal; font-size: 11px; line-height: 1.2; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcell.out { background: none; }
.st-attended.mcell, .cell.st-attended { background: var(--good-soft); color: var(--good); }
.st-late.mcell, .cell.st-late { background: var(--warn-soft); color: var(--warn); }
.st-missed.mcell, .cell.st-missed { background: var(--bad-soft); color: var(--bad); }
.st-excused.mcell, .cell.st-excused { background: var(--brand-soft); color: var(--brand); }
.st-booked.mcell, .cell.st-booked { background: var(--royal-fill); color: #fff; }
.st-booked.mcell small { color: rgba(255, 255, 255, .8); }
.st-wfh.mcell, .cell.st-wfh { background: var(--surface-2); color: var(--muted); }
.st-holiday.mcell, .st-leave.mcell, .cell.st-holiday, .cell.st-leave { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--sunk) 6px 12px); color: var(--ink-2); }
@media (max-width: 520px) { .mcell em { display: none; } .mcell { min-height: 52px; } }

/* ------------------------------------------------------------ Team grid and tables */
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.grid th, .grid td, .data th, .data td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.grid thead th, .data thead th { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; background: var(--surface); position: sticky; top: 0; white-space: nowrap; }
.grid thead th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.grid tbody th, .data tbody th { font-weight: 600; min-width: 150px; }
.grid tbody th small, .data tbody th small { display: block; color: var(--muted); font-weight: 400; }
.grid tbody th a, .data tbody th a { color: var(--ink); }
.grid tbody th a:hover, .data tbody th a:hover { color: var(--brand); }
.grid tbody th { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.grid tbody tr:hover td, .grid tbody tr:hover th, .data tbody tr:hover td, .data tbody tr:hover th { background: color-mix(in srgb, var(--brand) 3%, var(--surface)); }
.grid tbody tr:last-child th, .grid tbody tr:last-child td, .data tbody tr:last-child th, .data tbody tr:last-child td { border-bottom: 0; }
.cell { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 500; position: relative; white-space: nowrap; }
.cell .ic { width: 14px; height: 14px; }
.cell em { font-style: normal; }
.cell.st-none { padding: 4px; }
.cell .mk { position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--electric); border: 2px solid var(--surface); }
.cell .ap { position: absolute; bottom: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); border: 2px solid var(--surface); }
@media (max-width: 760px) { .grid .cell em { display: none; } }
td.short { color: var(--bad); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 13px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); align-items: center; }
.legend > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.legend .mk { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--electric); }
tr.inactive { opacity: .55; }
.data .barcell { min-width: 90px; }
.data td:nth-child(2) { white-space: nowrap; }
.filters label { flex-direction: row; align-items: center; gap: 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 13.5px; min-width: 0; }
.crumbs button { border: 0; background: none; padding: 5px 7px; border-radius: 8px; color: var(--brand); font: inherit; font-weight: 500; cursor: pointer; }
.crumbs button:hover { background: var(--brand-soft); }
.crumbs span { color: var(--muted); }
.crumbs b { font-weight: 600; padding: 5px 3px; }
.data.lines td:last-child { text-align: right; white-space: nowrap; }
.data.lines th .open { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--brand); cursor: pointer; text-align: left; }
.data.lines th .open:hover { text-decoration: underline; }
.data td.nowrap { white-space: nowrap; }
.data.lines tr.self th, .data.lines tr.self td { background: var(--surface-2); }
.appr .acts { display: flex; gap: 8px; }
.appr .note { font-style: italic; }
.notes li.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--electric); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 8px var(--electric); }
.mails details { width: 100%; }
.mails summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; padding: 0 18px; }
.mails summary::-webkit-details-marker { display: none; }
.mails summary > span:first-child { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mails li { padding: 12px 0; }
.mails pre { white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); margin: 10px 18px 0; padding: 12px; border-radius: 10px; color: var(--ink-2); }
.mails .bad { color: var(--bad); padding: 0 18px; }

/* ------------------------------------------------------------ language switch */
.lang2 { display: inline-flex; gap: 2px; padding: 3px; background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; flex: none; }
.lang2 button { border: 0; background: none; padding: 4px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted); cursor: pointer; }
.lang2 button:hover { color: var(--ink); }
.lang2 button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.side .lang2, .top .lang2, .signin .lang2 { background: rgba(255, 255, 255, .04); }
.side .lang2 button.on, .top .lang2 button.on, .signin .lang2 button.on { background: rgba(45, 106, 255, .3); color: #fff; }
.topr { display: flex; align-items: center; gap: 4px; }
.brandrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.menu-lang { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.side .menu-lang { gap: 10px; padding: 6px 4px 6px 12px; font-size: 14px; color: var(--ink-2); }
.side .menu-lang .ic { color: var(--muted); }
.menu-lang .lang2 { margin-left: auto; }

/* ------------------------------------------------------------ floor plan */
.planbar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.dchip { flex: none; min-width: 70px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: border-color .15s, transform .12s; box-shadow: 0 1px 2px rgba(6, 10, 40, .04); }
.dchip:hover { border-color: var(--brand-line); }
.dchip small { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dchip b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dchip em { font-style: normal; font: 600 11px var(--mono); color: var(--brand); min-height: 15px; }
.dchip.on { border-color: transparent; background: var(--royal-fill); color: #fff; box-shadow: 0 10px 22px -12px rgba(23, 61, 201, .9); }
.dchip.on small, .dchip.on em { color: rgba(255, 255, 255, .8); }
.planstatus { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.planstatus p { display: flex; align-items: center; gap: 8px; }
.planstatus .ic { color: var(--brand); }
.planbox { overflow: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.plan { display: block; width: 100%; min-width: 980px; height: auto; }
.plan .floor { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 3; }
.plan .core { fill: url(#nd-hatch); stroke: var(--line-2); stroke-width: 2; }
.plan .hatch-line { stroke: var(--line-2); stroke-width: 2; }
.plan .fx rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 2; }
.plan .fx.room rect { fill: color-mix(in srgb, var(--electric) 7%, var(--surface)); }
.plan .fx text { font: 600 19px var(--font); fill: var(--ink-2); }
.plan .fx .code { font: 500 16px var(--mono); fill: var(--muted); }
.plan .area { fill: color-mix(in srgb, var(--brand) 3%, transparent); stroke: color-mix(in srgb, var(--brand) 32%, var(--line-2)); stroke-width: 2; stroke-dasharray: 8 6; }
.plan .area.home { fill: color-mix(in srgb, var(--brand) 9%, transparent); stroke: var(--brand); stroke-dasharray: none; stroke-width: 3; }
.plan .area.dim { fill: color-mix(in srgb, var(--ink) 2%, transparent); stroke: var(--line-2); }
.plan .zl { font: 600 26px var(--font); fill: var(--brand); letter-spacing: -.01em; }
.plan .zl.sm { font-size: 17px; }
.plan .area-g.dim .zl { fill: var(--muted); }
.plan .zc { font: 500 17px var(--mono); fill: var(--muted); }
.plan .tb rect { fill: color-mix(in srgb, var(--brand) 18%, var(--line-2)); }
.plan .dk { cursor: pointer; outline: none; }
.plan .dk .chair { fill: var(--line-2); }
.plan .dk .dtop { fill: color-mix(in srgb, var(--brand) 12%, var(--surface)); stroke: var(--brand); stroke-width: 1.5; transition: fill .15s; }
.plan .dk .id { font: 600 16px var(--mono); fill: var(--brand); }
.plan .dk .tag { fill: var(--electric); }
.plan .dk .tag-t { font-family: var(--font); font-weight: 700; fill: #fff; }
.plan .dk.free:hover .dtop, .plan .dk.free:focus .dtop { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 3; }
.plan .dk.mine .dtop { fill: #173dc9; stroke: #2d6aff; stroke-width: 2; }
.plan .dk.mine .chair { fill: #2d6aff; }
.plan .dk.mine .id { fill: #fff; }
.plan .dk.mine .tag { fill: #fff; }
.plan .dk.mine .tag-t { fill: #173dc9; }
.plan .dk.mate .dtop { fill: color-mix(in srgb, var(--electric) 14%, var(--surface)); stroke: var(--electric); }
.plan .dk.taken .dtop { fill: var(--sunk); stroke: none; }
.plan .dk.taken .id, .plan .dk.no .id, .plan .dk.locked .id { fill: var(--muted); }
.plan .dk.no .dtop { fill: var(--surface-2); stroke: var(--line-2); }
.plan .dk.no { opacity: .55; cursor: default; }
.plan .dk.locked .dtop { fill: url(#nd-lock); stroke: var(--line-2); }
.plan .lock-bg { fill: var(--surface); }
.plan .lock-line { stroke: var(--line-2); stroke-width: 3; }
.plan .dk.off { opacity: .35; }
.plan .dk.flash .dtop { stroke: var(--electric); stroke-width: 6; }
.planbox.editing .dk { cursor: pointer; }
.plan-legend { border: 0; padding: 0; }
.lg { display: inline-block; width: 16px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; border: 1.5px solid var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.lg.mine { background: #173dc9; border-color: #2d6aff; }
.lg.mate { border-color: var(--electric); background: color-mix(in srgb, var(--electric) 14%, var(--surface)); }
.lg.taken { border-color: transparent; background: var(--sunk); }
.lg.locked { border-color: var(--line-2); background: repeating-linear-gradient(135deg, var(--surface) 0 3px, var(--line-2) 3px 5px); }
.lg.no { border-color: var(--line-2); background: var(--surface-2); opacity: .55; }
.pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); width: fit-content; }
.pick .ic { width: 16px; height: 16px; }
.day:hover .pick { text-decoration: underline; text-underline-offset: 3px; }
.day.office .pick { color: #fff; }

/* ------------------------------------------------------------ sheets and toast */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(3, 5, 22, .55); backdrop-filter: blur(6px); animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 24px 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
  display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--brand-line); box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, .45); animation: up .22s cubic-bezier(.2, .7, .3, 1); }
.sheet::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, #2d6aff, transparent); }
.sheet .close { position: absolute; top: 14px; right: 14px; border: 0; }
.sheet > .chip { align-self: flex-start; }
.sheet h2 { padding-right: 44px; font-size: 21px; letter-spacing: -.025em; }
@keyframes up { from { transform: translateY(40px); } }
@media (min-width: 720px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); border-radius: 24px; border: 1px solid var(--line); padding: 26px 24px; animation: none; }
}
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 0; background: none; color: var(--ink); font-size: 15px; cursor: pointer; text-align: left; }
.menu a .ic, .menu button .ic, .menu-lang .ic { color: var(--brand); }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu .badge { margin-left: auto; }
.toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px) + 28px); max-width: min(520px, calc(100vw - 32px));
  background: rgba(10, 12, 24, .94); backdrop-filter: blur(12px); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; border: 1px solid rgba(134, 160, 255, .3); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); animation: rise .2s ease-out; }
.toast.good { border-color: rgba(90, 215, 164, .45); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(90, 215, 164, .1); }
.toast.bad { background: rgba(70, 14, 14, .95); border-color: rgba(255, 138, 131, .5); }
@media (min-width: 960px) { .toast { bottom: 30px; left: calc(50% + 132px); } }

/* ------------------------------------------------------------ sign-in */
.signin { position: relative; isolation: isolate; overflow: hidden; min-height: 100dvh;
  background: radial-gradient(70% 55% at 15% 0%, rgba(23, 61, 201, .55) 0%, transparent 65%), radial-gradient(60% 50% at 90% 100%, rgba(0, 118, 252, .18) 0%, transparent 70%), #060606; }
.signin::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(rgba(134, 160, 255, .05) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(134, 160, 255, .05) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: radial-gradient(90% 70% at 30% 40%, #000 0%, transparent 85%); mask-image: radial-gradient(90% 70% at 30% 40%, #000 0%, transparent 85%); }
.bp { position: absolute; z-index: -1; pointer-events: none; width: 900px; max-width: none; left: 50%; top: 250px; transform: translateX(-50%) perspective(1400px) rotateX(56deg) rotateZ(-30deg); opacity: .8;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
.bp .f { fill: rgba(23, 61, 201, .1); stroke: rgba(134, 160, 255, .5); stroke-width: 3; }
.bp .a { fill: rgba(45, 106, 255, .03); stroke: rgba(134, 160, 255, .32); stroke-width: 2; stroke-dasharray: 10 8; }
.bp .x { fill: rgba(134, 160, 255, .04); stroke: rgba(134, 160, 255, .2); stroke-width: 2; }
.bp .d { fill: rgba(45, 106, 255, .14); stroke: rgba(150, 175, 255, .65); stroke-width: 1.5; }
.bp .d.on { animation: lit 5s ease-in-out infinite; }
.bp .d.on:nth-of-type(3n) { animation-delay: 1.2s; } .bp .d.on:nth-of-type(3n+1) { animation-delay: 2.4s; } .bp .d.on:nth-of-type(4n) { animation-delay: 3.6s; } .bp .d.on:nth-of-type(5n) { animation-duration: 6.5s; }
@keyframes lit { 0%, 100% { fill: rgba(45, 106, 255, .14); } 45%, 60% { fill: rgba(74, 140, 255, .9); stroke: #c9d6ff; } }
/* phone: one column, the sign-in card straight after the headline, the facts after it */
.signin .hero { display: contents; }
.signin { display: flex; flex-direction: column; gap: 18px; padding: calc(env(safe-area-inset-top, 0px) + 24px) 20px 32px; }
.signin .hero .eyebrow { margin-top: 14px; }
.signin .hero h1 { font-size: 36px; font-weight: 600; letter-spacing: -.04em; line-height: 1.08; max-width: 14ch; padding-block: .05em; background: var(--title); -webkit-background-clip: text; background-clip: text; color: transparent; }
.signin .hero p { color: #b8c2e6; max-width: 46ch; font-size: 15.5px; }
.signin .login { order: 2; }
.signin .facts, .signin .policy { order: 3; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 0; margin: 4px 0 0; }
.stats div { padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column-reverse; gap: 2px; }
.stats div:first-child { padding-left: 0; border-left: 0; }
.stats dt { font-size: 12px; color: #8b92b3; letter-spacing: .02em; }
.stats dd { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #fff; line-height: 1.1; }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.facts li { display: flex; align-items: center; gap: 10px; color: #dfe5fb; font-size: 14.5px; }
.facts .ic { color: #86a0ff; width: 18px; height: 18px; }
.policy { color: #6e78a3; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.signin .login { position: relative; margin: 6px 0 4px; border-radius: 24px; padding: 24px 20px; gap: 14px; background: rgba(13, 16, 32, .7); backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 40px 90px -30px rgba(0, 0, 0, .9); }
.signin .login::before { content: ''; position: absolute; top: 0; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, transparent, #2d6aff, transparent); }
.signin .login h2 { font-size: 24px; letter-spacing: -.03em; }
.langs { display: flex; justify-content: flex-end; margin: -8px -8px 0 0; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 16px; border-radius: 13px; border: 1px solid transparent; background: #fff; color: #060606; font-weight: 600; font-size: 15px; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 14px 30px -14px rgba(45, 106, 255, .8); transition: transform .12s, box-shadow .15s; }
.gbtn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 18px 36px -14px rgba(45, 106, 255, 1); }
.gbtn:disabled { opacity: .45; cursor: not-allowed; }
.gbtn.inline { width: auto; align-self: flex-start; border-color: var(--line-2); background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(6, 10, 40, .05); }
.devpick { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.devpick h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: 6px; }
.ppl { display: grid; grid-template-columns: 1fr; gap: 6px; }
.ppl button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.ppl button:hover { border-color: var(--brand-line); background: rgba(45, 106, 255, .08); }
.ppl span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ppl small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 560px) { .bp { width: 1100px; top: 200px; } }
@media (min-width: 900px) {
  .signin { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 0; gap: 0; }
  .signin .hero { display: flex; flex-direction: column; gap: 18px; }
  .stats { margin-top: 10px; } .stats div { padding: 0 26px; } .stats dd { font-size: 34px; }
  .policy { margin-top: auto; padding-top: 8px; }
  .signin::before { -webkit-mask-image: radial-gradient(70% 80% at 25% 50%, #000 0%, transparent 85%); mask-image: radial-gradient(70% 80% at 25% 50%, #000 0%, transparent 85%); }
  .bp { width: 1320px; left: 33%; top: auto; bottom: -380px; filter: drop-shadow(0 0 24px rgba(45, 106, 255, .35)); }
  .signin .hero { padding: 56px 56px 44px; min-height: 100dvh; }
  .signin .hero h1 { font-size: clamp(44px, 4.4vw, 60px); }
  .signin .login { margin: 56px auto; width: min(460px, calc(100% - 48px)); max-height: calc(100dvh - 112px); overflow: auto; align-self: center; order: 0; }
  .ppl { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.ipseen { display: block; font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.mails summary .bad { padding: 0; overflow-wrap: anywhere; }
.plan .dk.taken .tag { fill: var(--muted); }
.plan .dk.taken .tag-t { fill: var(--surface); }
