/* Guildhall employee portal.
   Plain CSS, no external fonts or scripts (CSP). Every class names the
   thing it styles. The look is a standard company intranet: light neutral
   surfaces, one blue accent, a white app bar, a quiet left navigation. */

:root {
  color-scheme: light;

  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #eef0f3;
  --ink: #1b1f24;
  --ink-2: #454c56;
  --ink-3: #6b7280;
  --line: #e3e6ea;
  --line-2: #cbd1d9;

  --accent: #2457c5;
  --accent-2: #1c47a4;
  --accent-soft: #e8eefb;
  --accent-ink: #1a3f8f;
  --accent-contrast: #ffffff;

  --ok: #1f7a48;
  --ok-soft: #e3f3ea;
  --warn: #a9580b;
  --warn-soft: #fcf0df;
  --danger: #c0202f;
  --danger-soft: #fce8ea;
  --neutral-soft: #eceff3;

  --side-bg: #fafbfc;
  --bar-bg: #ffffff;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.16);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bar-h: 56px;
  --side-w: 244px;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #121417;
    --surface: #1b1e23;
    --surface-2: #20242a;
    --surface-3: #272c33;
    --ink: #eef0f3;
    --ink-2: #c3c8d0;
    --ink-3: #8b929c;
    --line: #2b3038;
    --line-2: #3b424c;
    --accent: #6c9bff;
    --accent-2: #86adff;
    --accent-soft: #1f2a44;
    --accent-ink: #b6ccff;
    --accent-contrast: #0d1424;
    --ok: #5ec98d;
    --ok-soft: #173325;
    --warn: #f2b25b;
    --warn-soft: #3a2a12;
    --danger: #ff7a86;
    --danger-soft: #3d1a1f;
    --neutral-soft: #2a2f37;
    --side-bg: #171a1e;
    --bar-bg: #1b1e23;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 24px; line-height: 1.25; }
h2 { font-size: 15px; }
h3 { font-size: 14px; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: var(--ink); }
strong { font-weight: 600; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
svg.i.sm { width: 14px; height: 14px; vertical-align: -2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px; z-index: 99; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--ink-3); }

.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.problem { color: var(--danger); }
.link { color: var(--accent); text-decoration: underline; }
.footnote { font-size: 13px; color: var(--ink-3); margin-top: 14px; max-width: 80ch; }
.form input[readonly], .form textarea[readonly], .form select[disabled] { background: var(--neutral-soft); color: var(--ink-2); cursor: not-allowed; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Company mark ---------- */

.mark { display: block; width: 32px; height: 32px; flex: none; color: var(--ink); }
.mark.lg { width: 48px; height: 48px; }

/* ---------- Sign-in ---------- */

.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: relative; }
.signin .theme-btn { position: absolute; top: 12px; right: 16px; }
.signin-art { position: relative; overflow: hidden; background: #0a0e1c; color: #ffffff; --banner: #8db2ff; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px 40px; }
.signin-art.sky-day { color: #172140; --banner: #2457c5; }
.signin-art .art { position: absolute; inset: 0; width: 100%; height: 100%; animation: art-in 0.9s ease-out both; }
.signin-art .banner, .signin-art .flag { fill: var(--banner); }
.signin-art .celestial { animation: float 9s ease-in-out infinite alternate; }
.signin-art .clouds { animation: clouds-drift 150s linear infinite; }
.signin-art .hall-light { animation: hall-pulse 5s ease-in-out infinite alternate; transform-origin: 300px 598px; }
.signin-art .flag { animation: flag-wave 2.2s ease-in-out infinite; transform-origin: 300px 143px; }
.signin-art .banner { animation: banner-sway 3.6s ease-in-out infinite alternate; }
.signin-art .banner-l { transform-origin: 216px 452px; }
.signin-art .banner-r { transform-origin: 384px 452px; animation-delay: -1.8s; }
.signin-art .win-flicker { animation: flicker 3.2s ease-in-out infinite alternate; }
.signin-art .puff { animation: smoke 5s ease-out infinite; transform-origin: 363px 374px; }
.signin-art .puff.p1 { animation-delay: -1.7s; }
.signin-art .puff.p2 { animation-delay: -3.4s; }
.signin-art .wing { animation: flap 0.5s ease-in-out infinite alternate; transform-origin: 0 0; }
.signin-art .wing.bat { animation-duration: 0.16s; }
.signin-art .wing.w1 { animation-delay: -0.15s; }
.signin-art .wing.w2 { animation-delay: -0.3s; animation-duration: 0.42s; }
.signin-art .wing.w3 { animation-delay: -0.08s; animation-duration: 0.56s; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(0.25); } }
.signin-art .star { animation: twinkle 4s ease-in-out infinite; }
.signin-art .star.s1 { animation-duration: 5.5s; animation-delay: -1.2s; }
.signin-art .star.s2 { animation-duration: 3.4s; animation-delay: -2.1s; }
.signin-art .star.s3 { animation-duration: 6.2s; animation-delay: -0.6s; }
.signin-art .star.s4 { animation-duration: 4.6s; animation-delay: -3s; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes clouds-drift { from { transform: translateX(0); } to { transform: translateX(-600px); } }
@keyframes hall-pulse { from { transform: scale(0.94); } to { transform: scale(1.06); } }
@keyframes art-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes flag-wave { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-6deg) scaleX(0.94); } }
@keyframes banner-sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@keyframes flicker { from { opacity: 0.82; } to { opacity: 1; } }
@keyframes smoke { 0% { transform: translateY(0) scale(0.5); opacity: 0.45; } 100% { transform: translateY(-80px) scale(1.8); opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .signin-art .celestial, .signin-art .clouds, .signin-art .hall-light, .signin-art .art, .signin-art .flag, .signin-art .banner, .signin-art .win-flicker, .signin-art .puff, .signin-art .star, .signin-art .wing { animation: none; } }
.art-text { position: relative; }
.art-text h1 { color: inherit; }
.art-sub { font-size: 13px; opacity: 0.72; margin-top: 2px; }
.signin-panel { display: grid; place-items: center; padding: 48px 24px; }
.signin-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; display: grid; gap: 18px; }
.signin-card h1 { font-size: 20px; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-weight: 600;
}
.google-btn:hover { background: var(--surface-2); }
.google-btn svg { width: 18px; height: 18px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.preview-roles { display: grid; gap: 6px; }
.preview-role {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; text-align: left;
  padding: 8px 10px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; cursor: pointer;
}
.preview-role:hover { background: var(--surface-2); border-color: var(--line); }
.preview-role .who { font-weight: 600; }
.preview-role .blurb { color: var(--ink-3); font-size: 12.5px; }

/* ---------- Shell ---------- */

.shell { display: grid; grid-template-columns: var(--side-w) 1fr; grid-template-rows: var(--bar-h) 1fr; min-height: 100vh; }

.topbar {
  grid-column: 1 / -1; position: sticky; top: 0; z-index: 30; height: var(--bar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 20px 0 16px;
  background: var(--bar-bg); border-bottom: 1px solid var(--line);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; flex: 0 1 auto; }
.topbar .brand .company { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar .brand .portal { color: var(--ink-3); white-space: nowrap; }
.topbar .brand .portal::before { content: ""; display: inline-block; width: 1px; height: 16px; background: var(--line-2); margin: 0 10px 0 2px; vertical-align: -3px; }
.topbar .spacer { flex: 1; }
.search { position: relative; flex: 0 1 380px; margin: 0 auto; }
.search input {
  width: 100%; padding: 7px 12px 7px 36px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2);
}
.search input:focus { background: var(--surface); border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.search > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: inherit; }
.search-results a:hover, .search-results a.sel { background: var(--surface-2); text-decoration: none; }
.search-results .blurb { color: var(--ink-3); font-size: 12.5px; margin-left: auto; }
.search-results .none { padding: 8px 10px; color: var(--ink-3); }

.iconbtn { position: relative; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.iconbtn:hover { background: var(--surface-3); }
.iconbtn .badge { position: absolute; top: 5px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.menu-btn { display: none; }

.userbtn { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.userbtn:hover { background: var(--surface-3); }
.userbtn .uname { font-weight: 600; }
.userbtn .urole { color: var(--ink-3); font-size: 12px; margin-left: -4px; }

.popover { position: absolute; top: calc(var(--bar-h) - 6px); right: 16px; width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 40; overflow: hidden; }
.popover .pop-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.popover .pop-head h3 { font-size: 13px; }
.popover .pop-list { list-style: none; margin: 0; padding: 6px; max-height: 360px; overflow: auto; }
.popover .pop-list a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; color: inherit; }
.popover .pop-list a:hover { background: var(--surface-2); text-decoration: none; }
.popover .pop-list .t { font-weight: 600; }
.popover .pop-list .m { color: var(--ink-3); font-size: 12.5px; }
.popover .pop-empty { padding: 20px 16px; color: var(--ink-3); text-align: center; }
.popover .pop-user { padding: 14px 16px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.popover .pop-menu { padding: 6px; display: grid; }
.popover .pop-menu a, .popover .pop-menu button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; text-align: left; color: inherit; width: 100%; }
.popover .pop-menu a:hover, .popover .pop-menu button:hover { background: var(--surface-2); text-decoration: none; }
.popover.user { width: 260px; }
.pop-theme { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.pop-theme .seg .btn { padding: 3px 8px; font-size: 12px; }

.rail {
  background: var(--side-bg); border-right: 1px solid var(--line); padding: 16px 12px;
  display: flex; flex-direction: column; position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); overflow-y: auto;
}
.rail .group { font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 16px 12px 6px; }
.rail .group:first-child { padding-top: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px; margin: 1px 0; color: var(--ink-2); border-radius: 6px;
  text-decoration: none; border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer; font-weight: 500;
}
.nav-item:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.nav-item.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav-item .i { color: var(--ink-3); }
.nav-item.active .i { color: var(--accent-ink); }
.nav-item .count { margin-left: auto; font-size: 11.5px; font-weight: 600; min-width: 20px; padding: 1px 6px; border-radius: 10px; text-align: center; background: var(--neutral-soft); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.nav-item.active .count { background: var(--accent); color: var(--accent-contrast); }
.rail .help { margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.rail .help a { display: block; margin-top: 2px; }
.scrim { display: none; }

.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-ink); flex: none;
}
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.large { width: 48px; height: 48px; font-size: 16px; }
.avatar.bot { background: var(--neutral-soft); color: var(--ink-2); }

.main { padding: 28px 36px 64px; max-width: 1280px; width: 100%; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .crumb { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.page-head .crumb a { color: var(--ink-3); }
.page-head .crumb span::before { content: "/"; margin: 0 6px; color: var(--line-2); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Home ---------- */

.hello { margin-bottom: 20px; }
.hello .date { font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.hello p { color: var(--ink-2); margin-top: 4px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.section-title h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; }
.launcher { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  color: inherit; text-decoration: none; position: relative; transition: border-color 0.12s, transform 0.12s;
}
.tile:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.tile .tile-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.tile .tile-name, .tile .tile-blurb { display: block; }
.tile .tile-name { font-weight: 600; }
.tile .tile-blurb { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.tile .tile-count { position: absolute; top: 12px; right: 12px; min-width: 20px; padding: 1px 7px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; }
.announce { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 20px; }
.announce .a-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); font-weight: 600; }
.announce .a-text { margin-top: 2px; }
.announce .a-meta { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }

/* ---------- Sections ---------- */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 14px; }
.card-head a { font-size: 13px; }
.card-body { padding: 16px; }
.card-body.flush { padding: 0; }
.card-action { margin-top: 12px; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }

/* Stat tiles */
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; padding: 0; }
.summary .figure { display: flex; flex-direction: column-reverse; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.summary dt { color: var(--ink-3); font-size: 12.5px; }
.summary dd { margin: 0; font-weight: 600; font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.summary .figure.warn dd { color: var(--danger); }
.summary .figure.good dd { color: var(--ok); }

/* Status pills */
.status { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; padding: 2px 8px; border-radius: 999px; line-height: 1.4; text-transform: capitalize; }
.status.gem { background: var(--accent-soft); color: var(--accent-ink); }
.status.sash { background: var(--danger-soft); color: var(--danger); }
.status.gold { background: var(--warn-soft); color: var(--warn); }
.status.moss { background: var(--ok-soft); color: var(--ok); }
.status.grey { background: var(--neutral-soft); color: var(--ink-2); font-weight: 500; }
.role-chip { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--neutral-soft); color: var(--ink-2); white-space: nowrap; }
.role-chip.owner, .role-chip.it_admin { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.error { background: var(--danger); }
.dot.off { background: var(--line-2); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 13.5px; white-space: nowrap; text-decoration: none; color: var(--ink); line-height: 1.3;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary, .btn.gem { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); font-weight: 600; }
.btn.primary:hover, .btn.gem:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.sm { padding: 4px 10px; font-size: 12.5px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn[disabled], .btn.locked { opacity: 0.5; cursor: not-allowed; }
.btn.locked:hover { background: var(--surface); }
.btn .lock { display: inline-flex; }

.seg { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: var(--radius); gap: 2px; }
.seg .btn { border: 0; background: transparent; color: var(--ink-2); padding: 4px 12px; border-radius: 6px; }
.seg .btn:hover { background: var(--surface); }
.seg .btn.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }

/* ---------- Lists and tables ---------- */

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; }
.list .title .status { margin-left: 4px; }
.list .meta { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.list .right { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.list li.mandatory { box-shadow: inset 3px 0 0 var(--danger); }
.empty { padding: 28px 16px; color: var(--ink-3); text-align: center; }

.datebox { width: 52px; text-align: center; flex: none; padding: 6px 0; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.datebox-month { font-size: 11px; color: var(--danger); text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; }
.datebox-day { font-weight: 600; font-size: 22px; line-height: 1.1; }
.event-note { font-size: 13px; margin-top: 4px; }
.event-staffing { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.post-body { font-size: 13px; margin: 4px 0; color: var(--ink-2); }
.results { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.post-thumb { width: 44px; height: 44px; object-fit: cover; flex: none; border-radius: 6px; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.low td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.table-wrap { overflow-x: auto; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.table-wrap table { min-width: 900px; }
.table-wrap td:first-child { min-width: 220px; }
td.mono, td.nowrap, th { white-space: nowrap; }
.card > .table-wrap:first-child { border-radius: var(--radius-lg); }
.person-cell { display: flex; gap: 10px; align-items: center; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.toolbar input[type="search"], .toolbar select { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.toolbar input[type="search"] { min-width: 240px; }
.toolbar-check { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.toolbar-note { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }

.channel-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.channel-list li { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.channel-count { color: var(--ink-3); font-size: 12.5px; }
.channel-count::before { content: "· "; }

.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 10px; padding: 6px 0; align-items: flex-start; }
.checklist .tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; margin-top: 1px; color: transparent; }
.checklist .tick.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.bar { height: 6px; background: var(--surface-3); margin-bottom: 14px; border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

.person { display: flex; gap: 14px; padding: 16px; }
.person-name { font-weight: 600; }
.person-tags { margin: 8px 0; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Notices ---------- */

.notice { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.n-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); }
.notice.sash .n-ico { background: var(--danger-soft); color: var(--danger); }
.notice.gold .n-ico { background: var(--warn-soft); color: var(--warn); }
.notice.gem .n-ico { background: var(--accent-soft); color: var(--accent-ink); }
.notice > div { padding-top: 3px; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.form input, .form select, .form textarea { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus, .toolbar input:focus, .chat .compose input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form textarea { min-height: 96px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .actions, .doc-actions { display: flex; gap: 8px; justify-content: flex-end; }
.doc-actions { margin-top: 16px; }
.doc-body { margin-top: 12px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.checks { display: grid; gap: 4px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 400; padding: 6px 0; cursor: pointer; }
.checks label.off { opacity: 0.55; }
.checks input { width: auto; accent-color: var(--accent); }
.pick-person { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; }

/* ---------- Schedule ---------- */

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.week .day { border-right: 1px solid var(--line); padding: 12px; min-height: 160px; }
.week .day:last-child { border-right: 0; }
.week .day.today { background: var(--accent-soft); }
.week .dh { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.week .dn { font-weight: 600; font-size: 20px; margin-bottom: 10px; }
.week .day.today .dn { color: var(--accent-ink); }
.shift { font-size: 11.5px; line-height: 1.35; padding: 4px 7px; margin-bottom: 4px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); overflow-wrap: anywhere; }
.shift .when { display: block; white-space: nowrap; opacity: 0.85; }
.shift.me { background: var(--accent); color: var(--accent-contrast); font-weight: 600; }
.shift.off { background: var(--warn-soft); color: var(--warn); }
.shift.ev { background: var(--ok-soft); color: var(--ok); }

/* ---------- Messaging ---------- */

.chat { display: grid; grid-template-columns: 220px 1fr; min-height: 560px; }
.chat .threads { border-right: 1px solid var(--line); padding: 8px; background: var(--surface-2); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.chat .threads button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 7px 10px; border-radius: 6px; cursor: pointer; text-align: left; color: var(--ink-2); }
.chat .threads button:hover { background: var(--surface-3); }
.chat .threads button.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.chat .threads .unread { margin-left: auto; background: var(--accent); color: var(--accent-contrast); font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 10px; }
.thread-group { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; padding: 8px 10px 4px; }
.thread-group.later { padding-top: 16px; }
.thread-new { color: var(--accent) !important; }
.chat .pane { display: flex; flex-direction: column; min-width: 0; }
.chat .msgs { flex: 1; padding: 16px; display: grid; gap: 14px; align-content: start; }
.msg { display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.msg .who { font-weight: 600; }
.msg .when { color: var(--ink-3); font-size: 12px; margin-left: 8px; }
.chat .compose { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.chat .compose input { flex: 1; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }

/* ---------- Marketing composer ---------- */

.composer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.preview-label { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.preview { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface-2); }
.preview .ph { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.preview .pt { font-weight: 600; margin-bottom: 4px; }
.preview-img { width: 100%; max-height: 220px; object-fit: cover; margin-bottom: 10px; display: block; border-radius: 6px; }
.upload { position: relative; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 14px; background: var(--surface-2); }
.upload.over { border-color: var(--accent); background: var(--accent-soft); }
.upload.has { border-style: solid; }
.upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload.has input[type="file"] { display: none; }
.upload-empty { font-size: 13px; color: var(--ink-2); text-align: center; }
.upload-has { display: flex; gap: 12px; align-items: center; }
.upload-has img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.upload-name { font-weight: 600; }
.quick-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Modal and toast ---------- */

.modal-bg { position: fixed; inset: 0; background: rgba(16, 24, 40, 0.45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: min(620px, 100%); max-height: 90vh; overflow: auto; }
.modal .card-head h2 { font-size: 15px; }
.modal .close { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 6px; cursor: pointer; color: var(--ink-3); }
.modal .close:hover { background: var(--surface-3); color: var(--ink); }

#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(6px); background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 10px 16px; font-size: 13.5px; opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; z-index: 60; box-shadow: var(--shadow-lg); }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .launcher { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .composer { grid-template-columns: 1fr; }
  .topbar .brand .portal { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .topbar { padding: 0 12px 0 8px; gap: 8px; }
  .topbar .spacer { flex: 1 1 0; }
  .menu-btn { display: grid; }
  .search { display: none; }
  .userbtn .uname, .userbtn .urole { display: none; }
  .rail {
    position: fixed; top: var(--bar-h); left: 0; bottom: 0; width: min(280px, 85vw); z-index: 40; height: auto;
    transform: translateX(-100%); transition: transform 0.2s ease;
  }
  .shell.menu-open .rail { transform: none; box-shadow: var(--shadow-lg); }
  .scrim:not([hidden]) { display: block; position: fixed; inset: var(--bar-h) 0 0 0; background: rgba(16, 24, 40, 0.4); z-index: 35; }
  .main { padding: 20px 16px 48px; }
  .launcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signin { grid-template-columns: 1fr; grid-template-rows: 260px 1fr; }
  .signin-art { padding: 16px 20px; justify-content: flex-start; }
  .art-text h1 { font-size: 18px; }
  .art-sub { font-size: 12px; }
  .signin-panel { padding: 28px 16px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .week { grid-template-columns: 1fr; }
  .week .day { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .chat { grid-template-columns: 1fr; }
  .chat .threads { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .chat .threads button { width: auto; white-space: nowrap; }
  .thread-group { display: none; }
  .form .row { grid-template-columns: 1fr; }
  .popover { right: 8px; left: 8px; width: auto; }
}
@media (max-width: 480px) {
  .launcher, .summary { grid-template-columns: 1fr; }
}

/* ---------- IT tickets ---------- */

.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.ticket-layout .card + .card { margin-top: 18px; }
.ticket-num { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin-right: 6px; }
.ticket-subject { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.source-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.thread-list .msg { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.thread-list .msg:last-child { border-bottom: 0; }
.msg .body { white-space: pre-wrap; margin-top: 2px; overflow-wrap: anywhere; }
.msg.internal { background: var(--warn-soft); }
.msg .tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--warn); margin-left: 8px; }
.compose-box { display: grid; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.compose-box textarea { min-height: 84px; resize: vertical; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.compose-box textarea:focus { border-color: var(--accent); outline: none; }
.compose-box .row { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.detail-kv { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px 12px; font-size: 13.5px; margin: 0; align-items: center; }
.detail-kv dt { color: var(--ink-3); }
.detail-kv dd { margin: 0; min-width: 0; }
.detail-kv select { width: 100%; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.detail-kv select:focus { border-color: var(--accent); outline: none; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.timeline li { display: grid; grid-template-columns: 8px 1fr; gap: 10px; padding: 6px 0; align-items: start; }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); margin-top: 5px; }
.timeline .when { color: var(--ink-3); }
tr.urgent td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
@media (max-width: 1100px) { .ticket-layout { grid-template-columns: 1fr; } }

/* Lobby TV
   The signage tool: screens, the slide rotation, and the player preview.
   Slides carry their own colour, so the thumbnails echo the accents used on
   the panel rather than the portal's blue. */

.screen-list .meta + .meta { margin-top: 2px; }
.screen-list .right, .slide-list .right { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; max-width: 260px; }

.slide-list li.off { opacity: 0.55; }
.slide-thumb {
  width: 64px; height: 40px; flex: none;
  border-radius: 6px; border: 1px solid var(--line);
  object-fit: cover; background: var(--surface-3);
  display: grid; place-items: center; color: var(--ink-3);
}
.slide-thumb.ink { background: var(--neutral-soft); }
.slide-thumb.blue { background: var(--accent-soft); color: var(--accent-ink); }
.slide-thumb.gold { background: var(--warn-soft); color: var(--warn); }
.slide-thumb.moss { background: var(--ok-soft); color: var(--ok); }
.slide-thumb.sash { background: var(--danger-soft); color: var(--danger); }
.reorder { display: inline-flex; gap: 2px; }
.reorder .btn { min-width: 26px; padding: 2px 6px; line-height: 1.3; }
.reorder .btn[disabled] { opacity: 0.35; }

.pair-url { margin: 12px 0; padding: 12px 14px; background: var(--surface-3); border-radius: var(--radius); overflow-wrap: anywhere; }
.pair-url code { font-family: var(--mono); font-size: 13px; }
.devlog { max-height: 55vh; overflow: auto; margin: 0 0 12px; padding: 12px 14px; background: var(--surface-3); border-radius: var(--radius); font-family: var(--mono); font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.checks.pkgs { max-height: 50vh; overflow: auto; padding-right: 6px; }
.checks.pkgs .ver { color: var(--ink-3); font-size: 12.5px; font-family: var(--mono); }

/* The preview runs the real player page in an iframe at panel proportions. */
.tv-preview { width: 100%; background: #0d1017; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); }
.tv-preview.landscape { aspect-ratio: 16 / 9; }
.tv-preview.portrait { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }
.tv-preview iframe { width: 100%; height: 100%; border: 0; display: block; }

.slide-form .kind-only[hidden] { display: none; }   /* a class with display beats the UA rule for [hidden] */
.slide-form .kind-seg { margin: 4px 0 6px; }
.slide-form .block-head { font-weight: 600; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.slide-form .event-block { display: flex; flex-direction: column; gap: 14px; }
.slide-form .check-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.slide-form .check-line input { margin: 0; }
.checks.tight { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks.tight label { display: inline-flex; align-items: center; gap: 5px; }

.fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.fold > summary { padding: 10px 12px; cursor: pointer; font-weight: 600; }
.fold[open] > summary { border-bottom: 1px solid var(--line); }
.fold .fold-body { padding: 12px; display: flex; flex-direction: column; gap: 14px; }
.btn.ghost.danger { color: var(--danger); }

/* ---------- sign-in form, invites, and account ---------- */
.signin-card .form .actions { justify-content: stretch; }
.signin-card .form .actions .btn { flex: 1; }
.signin-error { padding: 10px 12px; border-radius: var(--radius); background: var(--danger-soft); color: var(--danger); font-size: 13px; }
.signin-note { padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.signin-note code { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.google-btn { text-decoration: none; }
.invite-url { padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface-2); font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; user-select: all; }
.shift { position: relative; }
.shift .del { position: absolute; top: 2px; right: 4px; border: 0; background: transparent; color: inherit; opacity: 0; cursor: pointer; font-size: 13px; line-height: 1; padding: 2px 3px; }
.shift:hover .del, .shift:focus-within .del { opacity: 0.8; }
.shift.cancelled { text-decoration: line-through; opacity: 0.6; }
.int-detail { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.checklist label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.muted-row td { opacity: 0.55; }
.results .status { cursor: help; }

/* Game colours: the same keys and colours as the website calendar. */
.gdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; background: #9ca3af; }
.gdot.magic { background: #a855f7; }
.gdot.pokemon { background: #facc15; }
.gdot.riftbound { background: #38bdf8; }
.gdot.cyberpunk { background: #ec4899; }
.gdot.one_piece { background: #fb923c; }
.gdot.sports_cards { background: #10b981; }
.gdot.other { background: #9ca3af; }
.gdot.prerelease { background: #ef4444; }
.seg.wrap-row { flex-wrap: wrap; margin: 0 0 12px; }

/* Personnel records (HR & documents): the on-screen record and the paper copy for signatures. */
.record-h { margin: 16px 0 4px; font-size: 14px; }
h4.record-h { font-size: 13px; color: var(--ink-2); }
.print-sig { display: none; }
@media print {
  body > *:not(.modal-bg) { display: none !important; }
  .modal-bg { position: static; background: none; padding: 0; display: block; }
  .modal { box-shadow: none; border: 0; max-height: none; width: 100%; overflow: visible; }
  .modal .close, .modal .actions, .modal form, .modal .doc-actions { display: none !important; }
  .print-sig { display: grid; gap: 28px; margin-top: 40px; font-size: 13px; }
}

/* ---------- HR ----------
   Two audiences on the same components: an employee on a phone reading a policy and
   signing it, and an owner at the counter working through who has not. Nothing here
   introduces a new visual language; it fills the gaps the shared components leave. */

.grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
.span-3 { grid-column: span 3; }
.hr-tabs { margin-bottom: 18px; max-width: 100%; overflow-x: auto; }
.hr-tabs .btn { white-space: nowrap; }
.hr-tabs .count { margin-left: 6px; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; }
.card.hr-clear .card-head h2 { color: var(--ok); }

.list.flush { border: 0; }
.bar.sm { height: 4px; margin: 6px 0 0; max-width: 260px; }

.hr-timeline > li { position: relative; padding-left: 30px; }
.hr-timeline .hr-dot { position: absolute; left: 16px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hr-timeline > li::before { content: ""; position: absolute; left: 19.5px; top: 26px; bottom: -12px; width: 1px; background: var(--line); }
.hr-timeline > li:last-child::before { display: none; }
.hr-history .meta { text-transform: none; }

/* The document being read before it is signed. Scrolls on its own so the signature
   controls stay reachable on a phone without scrolling the whole modal. */
.hr-doc-body { max-height: 46vh; overflow-y: auto; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); line-height: 1.65; }
.hr-sign { margin-top: 16px; }
/* A tick box sits beside its words, not stretched across the form like a text field.
   Scoped to .form so it fixes every checkbox in a dialog, not only HR's. */
.form .check-line { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.form .check-line input[type="checkbox"] { width: auto; margin: 2px 0 0; flex: none; }
.hr-receipt .mono { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.hr-sig-img { max-width: 320px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.hr-manage .summary { margin-bottom: 18px; }
.hr-manage .list { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }

/* The app bar's search styling, reused in the HR page header rather than centred in it. */
.hr-search { flex: 0 1 240px; margin: 0; }
@media (max-width: 860px) { .hr-search { max-width: none; width: 100%; } }
tr.hr-row { cursor: pointer; }
tr.hr-row:hover td { background: var(--surface-2); }

@media (max-width: 1100px) { .span-3 { grid-column: span 2; } }
@media (max-width: 860px) {
  .span-3 { grid-column: auto; }
  .hr-doc-body { max-height: 40vh; }
  /* Row actions sit under the text rather than squeezing it on a narrow screen. */
  .list > li { flex-wrap: wrap; }
  .list .right { flex-direction: row; align-items: center; width: 100%; justify-content: flex-start; }
  .hr-tabs { display: flex; width: 100%; }
}
