/* Get Home Realty HRMS — "navy" look (2026-10-17).
   Every class name from the previous stylesheet is kept, so all pages
   pick up the new look without template changes. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
* { box-sizing: border-box; }
:root {
  --brand: #c0272d;          /* Get Home Realty red — main buttons, active item */
  --brand-dark: #9a1f24;
  --brand-light: #fdeeee;
  --accent: #f6c5c7;
  --navy: #0f1d36;           /* sidebar */
  --navy-2: #172a4d;
  --navy-text: #b8c3d9;
  --navy-muted: #7484a3;
  --bg: #f4f6fa;             /* page background */
  --panel: #f6f7f9;
  --card: #ffffff;
  --text: #1b2333;
  --text-2: #475467;
  --muted: #667085;
  --border: #e4e8ef;
  --border-2: #eef1f5;
  --danger: #b42318;
  --ok: #0f7b55;
  --warn: #b54708;
  --info: #1d5bd6;
  --chart: #34518c;          /* chart bars */
  --gold: #e0a100;           /* stars */
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --sidebar-w: 248px;
}
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
td, .stat .num, .num { font-variant-numeric: tabular-nums; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8;
        stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- sidebar ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--navy); color: var(--navy-text);
  display: flex; flex-direction: column;
  overflow-y: auto; z-index: 20;
}
.brand { padding: 18px 16px 6px; text-align: center; }
.brand-logo { background: #fff; border-radius: 10px; padding: 10px 12px; }
.brand-logo img { width: 100%; height: auto; display: block; }
.brand > span { display: block; margin-top: 8px; color: var(--navy-muted); font-size: 11px; font-weight: 600; letter-spacing: 4px; }
.menu-toggle { display: none; }   /* phones only — see the 800px block */
.sidebar nav { flex: 1; display: flex; flex-direction: column; padding: 6px 12px 16px; }
.sidebar nav .nav-group {
  margin: 18px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy-muted);
}
.sidebar nav a {
  display: flex; align-items: center; gap: 11px; position: relative;
  color: var(--navy-text); text-decoration: none; padding: 8px 10px; margin: 1px 0;
  border-radius: 8px; font-size: 14px; font-weight: 500;
}
.sidebar nav a:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: rgba(255,255,255,.08); color: #fff; font-weight: 600; }
.sidebar nav a.active::before {
  content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--brand);
}
.sidebar nav a.active svg.i { color: #ff6b70; }
.navbadge {
  display: inline-block; margin-left: auto; background: var(--brand); color: #fff;
  border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 600;
}
.sidebar nav a.active .navbadge { background: var(--brand); color: #fff; }
.sidebar-footer { padding: 12px 18px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer a { color: var(--navy-text); display: block; margin-top: 6px; }
.whoami { color: #fff; margin-bottom: 6px; }
.whoami small { color: var(--navy-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 15; height: 64px;
  margin-left: var(--sidebar-w);
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 32px;
}
.crumbs { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs b { color: var(--text); font-weight: 600; }
.top-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 0 12px; height: 38px; width: 280px; color: var(--muted);
}
.top-search input { border: 0; background: transparent; outline: none; padding: 0; height: 100%; font-size: 13.5px; }
.top-search input:focus { outline: none; }
.top-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); background: #fff; }
.topbar .spacer { margin-left: auto; }
.iconbtn {
  position: relative; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; display: grid; place-items: center; color: var(--text-2);
}
.iconbtn:hover { background: var(--bg); text-decoration: none; }
.iconbtn .dot {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600;
  display: grid; place-items: center; border: 2px solid #fff;
}
.usermenu { position: relative; }
.usermenu summary {
  list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 4px 6px 4px 4px; border-radius: 10px;
}
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--bg); }
.usermenu .who { line-height: 1.2; }
.usermenu .who b { display: block; font-size: 13px; color: var(--text); }
.usermenu .who small { color: var(--muted); font-size: 12px; }
.usermenu .menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; z-index: 30;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16,24,40,.14); padding: 6px;
}
.usermenu .menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px;
  color: var(--text); font-size: 13.5px;
}
.usermenu .menu a:hover { background: var(--bg); text-decoration: none; }
.usermenu .menu .menu-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 6px;
  border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left;
}
.usermenu .menu .menu-btn:hover { background: var(--bg); }
.usermenu .menu hr { border: 0; border-top: 1px solid var(--border-2); margin: 4px 0; }
.initials {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand-dark); font-size: 13px; font-weight: 600; flex-shrink: 0;
}

main { padding: 28px 32px 48px; max-width: none; }
main.with-sidebar { margin-left: var(--sidebar-w); }

h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 14px; color: var(--text); }
h3 { color: var(--text); }
.page-sub { color: var(--text-2); margin: 0 0 22px; font-size: 14px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

/* ---------- cards & tables ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 22px; margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; min-width: 160px; box-shadow: var(--shadow); position: relative;
}
.stat::before {
  content: ""; position: absolute; left: 20px; top: 0; width: 28px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--brand);
}
.stat .num { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin-top: 4px; }
.stat .lbl { color: var(--text-2); font-size: 13px; font-weight: 500; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; color: var(--muted); font-weight: 600; font-size: 12px;
  letter-spacing: .02em; background: #f9fafb; white-space: nowrap;
}
th, td { padding: 11px 12px; border-bottom: 1px solid var(--border-2); vertical-align: top; }
td { color: var(--text-2); }
td strong, td b { color: var(--text); }
tr:last-child td { border-bottom: none; }
tbody tr:hover td, tr:hover td { background: #fafbfc; }
td.num, th.num { text-align: right; }

/* ---------- forms & buttons ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: var(--text); }
input, select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 14px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
textarea { min-height: 70px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox-line { display: flex; align-items: center; gap: 8px; margin: 14px 0; }
.checkbox-line input { width: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #fff; border: 1px solid transparent;
  padding: 8px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  text-decoration: none; font-family: inherit; line-height: 1.3;
  box-shadow: 0 1px 2px rgba(16,24,40,.08);
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn-sm { padding: 4px 10px; font-size: 12.5px; }
.btn-outline { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg); border-color: #d0d5dd; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #912018; }
.btn-success { background: var(--ok); }
.btn-success:hover { background: var(--ok); }
.btn-success[disabled] { opacity: 1; cursor: default; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--bg); }
.inline-form { display: inline; }
.actions { margin-top: 18px; display: flex; gap: 10px; }

/* ---------- badges & flash ---------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-Active, .badge-Approved, .badge-Hired, .badge-Paid, .badge-Completed, .badge-Present { background: #e7f6ef; color: var(--ok); }
.badge-Inactive, .badge-Denied, .badge-Rejected, .badge-Absent, .badge-Unauthorised, .badge-Declined, .badge-Cancelled { background: #fdeceb; color: var(--danger); }
.badge-Accepted { background: #e7f6ef; color: var(--ok); }
.badge-Awaiting { background: #fef4e6; color: var(--warn); }
.badge-Pending, .badge-Offer, .badge-Late { background: #fef4e6; color: var(--warn); }
.badge-Applied, .badge-WFH { background: #eaf1fd; color: var(--info); }
.badge-Screening { background: #f1ecfb; color: #5b3aa8; }
.badge-Interview, .badge-Half-day { background: #e3f4f7; color: #1c6b7d; }
.badge-in-progress { background: var(--brand-light); color: var(--brand-dark); }
.badge-admin { background: var(--brand-light); color: var(--brand-dark); }
.badge-viewer { background: #eef1f5; color: var(--text-2); }

/* flashes float as toasts (top-right) so they're visible at any scroll
   position — the page no longer needs to jump to the top to show them */
#toasts { position: fixed; top: 76px; right: 24px; z-index: 1000;
          display: flex; flex-direction: column; gap: 8px; max-width: 440px; }
.flash { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500;
         background: #fff; border: 1px solid var(--border); border-left-width: 4px;
         box-shadow: 0 12px 32px rgba(16,24,40,.14); cursor: pointer;
         animation: toast-in .25s ease-out; }
.flash::after { content: " ✕"; opacity: .45; font-size: 12px; }
@keyframes toast-in { from { transform: translateY(-8px); opacity: 0; }
                      to { transform: none; opacity: 1; } }
.flash-ok { border-left-color: var(--ok); color: #0b5c40; }
.flash-error { border-left-color: var(--danger); color: var(--danger); }

/* ---------- recruiting board ---------- */
.board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: start; }
.board-col { background: #eef1f5; border: 1px solid var(--border); border-radius: 12px; padding: 10px; min-height: 120px; }
.board-col h3 { margin: 2px 4px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cand-card { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; box-shadow: var(--shadow); }
.cand-card .name { font-weight: 600; font-size: 14px; color: var(--text); }
.cand-card .pos { color: var(--muted); margin: 2px 0 8px; }
.cand-card select { font-size: 12px; padding: 3px 6px; }
.cand-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- progress & charts ---------- */
.progress { background: #e9edf3; border-radius: 20px; height: 8px; min-width: 90px; overflow: hidden; }
.progress > div { background: var(--ok); height: 100%; border-radius: 20px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; }
.bar-row .bar-label { width: 130px; color: var(--text-2); }
.bar-row .bar-track { flex: 1; background: #eef1f5; border-radius: 6px; }
.bar-row .bar-fill { background: var(--chart); height: 16px; border-radius: 6px; min-width: 2px; }
.bar-row .bar-val { width: 60px; text-align: right; color: var(--muted); }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.report-grid .card { margin-bottom: 0; }
.funnel { display: flex; gap: 8px; flex-wrap: wrap; }
.funnel .fstep { flex: 1; min-width: 90px; text-align: center; background: #f4f6fa; border: 1px solid var(--border-2); border-radius: 10px; padding: 12px 6px; }
.funnel .fstep .n { font-size: 22px; font-weight: 700; color: var(--text); }
.funnel .fstep .s { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- avatars ---------- */
.avatar, .avatar-ph {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; background: var(--brand-light);
  box-shadow: 0 0 0 1px var(--border);
  flex-shrink: 0;
}
.avatar-ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-dark); font-size: 28px; font-weight: 700;
}
.avatar-sm, .avatar-ph-sm {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; background: var(--brand-light); box-shadow: 0 0 0 1px var(--border); flex-shrink: 0;
}
.avatar-ph-sm {
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-dark); font-size: 15px; font-weight: 600;
}
.profile-head { display: flex; align-items: center; gap: 16px; }

/* ---------- column chart (monthly reviews) ---------- */
.colchart { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 24px; }
.colchart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.colchart .colbar { width: 70%; background: var(--chart); border-radius: 6px 6px 0 0; min-height: 3px; position: relative; }
.colchart .colbar.empty { background: var(--panel); border: 1px dashed var(--border); }
.colchart .colval { font-size: 11px; font-weight: 700; color: var(--text); margin-bottom: 3px; height: 14px; }
.colchart .collbl { font-size: 10px; color: var(--muted); margin-top: 5px; white-space: nowrap; }

/* ---------- history sheet ---------- */
.htable th { position: sticky; top: 64px; z-index: 1; }
.htable td { vertical-align: middle; }
.htable .dcell strong { font-size: 14px; }
.htable .dcell small { color: var(--muted); margin-left: 4px; }
.htable tr.rnote td { padding: 5px 12px; }
.htable .note-text { color: #98a2b3; font-style: italic; font-size: 12.5px; }
.htable tr.tint-holiday td { background: #eef4fd; }
.htable tr.tint-leave td { background: #fef8ee; }
.htable tr.tint-unauth td { background: #fdf0ef; }
.htable tr.tint-weekend td { background: #f7f8fa; }
.htable tr.rfuture td { opacity: .65; }
.tasks-cell {
  font-size: 12.5px; color: var(--text-2); max-width: 260px; white-space: pre-line;
  border-left: 3px solid var(--border); padding-left: 8px !important;
}
.tasks-cell .t-short { white-space: normal; }   /* compact preview, no line breaks */
.tasks-cell .readmore { font-size: 12px; font-weight: 600; white-space: nowrap; }
.inout { white-space: nowrap; }
.inout .arrow { color: var(--muted); padding: 0 3px; }

/* ---------- login (split screen) ---------- */
.login-split { position: fixed; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; overflow: auto; background: #fff; }
.login-art {
  background: radial-gradient(1200px 600px at 10% 10%, #1d3466 0%, var(--navy) 55%, #0a1427 100%);
  color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.login-art::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 60px solid rgba(192,39,45,.18);
}
.login-art .brand-logo { width: 240px; }
.login-art .pitch { position: relative; z-index: 1; }
.login-art .pitch h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; max-width: 440px; margin: 0 0 14px; font-weight: 700; color: #fff; }
.login-art .pitch p { color: var(--navy-text); max-width: 420px; line-height: 1.6; margin: 0; }
.login-art .foot { color: var(--navy-muted); font-size: 12.5px; position: relative; z-index: 1; }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-panel .login-inner { width: 100%; max-width: 380px; }
.login-panel h1 { font-size: 26px; }
.login-panel .page-sub { margin-bottom: 18px; }
.login-panel input { height: 44px; }
.login-panel .btn { width: 100%; height: 44px; font-size: 14.5px; }
.login-panel .forgot { text-align: right; margin: 12px 0 0; font-size: 13px; }
/* show/hide password eye on the sign-in box */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; padding: 0;
}
.pw-toggle:hover { color: var(--text); background: var(--border-2); }
.pw-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-light); color: var(--text); }
.pw-toggle .eye-off { display: none; }
.pw-toggle.on .eye-open { display: none; }
.pw-toggle.on .eye-off { display: block; }
/* Edge's own reveal button would double up with ours */
.pw-wrap input::-ms-reveal, .pw-wrap input::-ms-clear { display: none; }

/* ---------- misc ---------- */
.login-box { max-width: 380px; margin: 90px auto; }
.login-box .brand-big { text-align: center; margin-bottom: 20px; }
.login-box .brand-big img { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto 6px; }
.login-box .brand-big small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 4px; }
.filters { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.filters input, .filters select { width: auto; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; font-size: 14px; }
.detail-grid dt { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .02em; margin-top: 12px; }
.detail-grid dd { margin: 2px 0 0; color: var(--text); }
.task-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-2); font-size: 14px; }
.task-line:last-child { border-bottom: none; }
.task-line.done .task-text { color: var(--muted); }
.task-line .task-text { flex: 1; }
.rating { color: var(--gold); letter-spacing: 2px; }

/* ---------- star ratings ---------- */
.stars-static {
  position: relative; display: inline-block; font-size: 16px;
  letter-spacing: 2px; line-height: 1; vertical-align: -1px;
}
.stars-static .stars-bg { color: #dfe3ea; }
.stars-static .stars-fill {
  position: absolute; top: 0; left: 0; overflow: hidden;
  white-space: nowrap; color: var(--gold);
}
.star-slider-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.star-slider-wrap .stars-static { font-size: 26px; }
.star-slider-wrap input[type=range] {
  flex: 1; min-width: 140px; max-width: 260px; padding: 0; box-shadow: none;
  accent-color: var(--brand); cursor: pointer;
}
.star-slider-wrap .star-value { min-width: 80px; font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
.att-select { max-width: 130px; }
.pay-input { max-width: 100px; text-align: right; }

@media (max-width: 1000px) {
  .board { grid-template-columns: repeat(3, 1fr); }
  .form-grid, .detail-grid, .report-grid { grid-template-columns: 1fr; }
  .top-search { width: 200px; }
}
@media (max-width: 800px) {
  /* compact bar: small logo + "☰ Menu"; the links open below it on tap */
  .sidebar { position: sticky; top: 0; bottom: auto; width: auto; overflow: visible; z-index: 30; }
  .brand { display: flex; align-items: center; gap: 10px; padding: 10px 16px; text-align: left; }
  .brand-logo { max-width: 128px; margin: 0; padding: 5px 8px; border-radius: 8px; }
  .brand > span { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  }
  .menu-toggle .i { width: 20px; height: 20px; }
  .menu-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .sidebar.open .menu-toggle { background: rgba(255,255,255,.16); }
  .sidebar nav { display: none; padding: 4px 12px 14px; border-top: 1px solid rgba(255,255,255,.08);
                 max-height: calc(100vh - 64px); overflow-y: auto; }
  .sidebar.open nav { display: flex; }
  .sidebar nav a.active::before { display: none; }
  .sidebar nav .nav-group { margin: 12px 10px 4px; }
  /* wide tables swipe sideways inside their own box instead of widening the page;
     the soft edge shadows show there is more to see */
  main table {
    display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    background:
      linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left center / 40px 100% no-repeat local,
      linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right center / 40px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(15,29,58,.18), transparent) left center / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(15,29,58,.18), transparent) right center / 12px 100% no-repeat scroll;
  }
  .topbar, main.with-sidebar { margin-left: 0; }
  .topbar { padding: 0 16px; position: static; }
  main { padding: 20px 16px 40px; }
  .top-search, .usermenu .who { display: none; }
  .board { grid-template-columns: 1fr; }
  .login-split { grid-template-columns: 1fr; }
  .login-art { display: none; }
}
