* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Sirius XD brand system. Signal accent is two-tone:
     #4AECFD on dark surfaces, #00B8CC on light surfaces. Used sparingly. */
  --sidebar-bg: #0A0A0A;       /* Ink */
  --sidebar-text: #9b9b9b;
  --sidebar-active: #1A1A1A;   /* Surface */
  --accent: #00B8CC;           /* Signal Light — light surfaces */
  --accent-dark: #009db0;
  --accent-bright: #4AECFD;    /* Signal — dark surfaces only */
  --bg: #F4F2ED;               /* Bone */
  --card: #ffffff;
  --text: #0A0A0A;             /* Ink */
  --muted: #7A7A7A;            /* Ash */
  --border: #D4D1CA;           /* Wire */
  --green: #128241;            /* brand success */
  --yellow: #E0A12E;           /* warning */
  --red: #CC2222;              /* brand error */
  --radius: 10px;
}

html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.app { display: flex; height: 100vh; overflow: hidden; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
}
.logo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 18px 18px; text-decoration: none; color: inherit; cursor: pointer; }
.logo-img { width: 142px; height: auto; display: block; }
.logo-sub { font-size: 10px; font-weight: 700; letter-spacing: 3px; color: var(--accent); }
/* legacy fallbacks (login card centers its own) */
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.logo-text { color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .3px; }
.nav { display: flex; flex-direction: column; padding: 8px; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--sidebar-text); text-decoration: none; font-size: 14px;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: #fff; }
.nav-icon { width: 18px; text-align: center; color: var(--accent-bright); opacity: 1; }

/* nested collapsible groups */
.nav-group { display: flex; flex-direction: column; }
.nav-group-header {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: none; background: none; cursor: pointer;
  color: var(--sidebar-text); font-size: 14px; font-family: inherit; border-radius: 8px; text-align: left;
}
.nav-group-header:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-group-label { flex: 1; }
.nav-chevron { opacity: .55; font-size: 16px; transition: transform .18s ease; }
.nav-group:not(.collapsed) .nav-chevron { transform: rotate(90deg); }
.nav-group-items { overflow: hidden; max-height: 420px; transition: max-height .2s ease; }
.nav-group.collapsed .nav-group-items { max-height: 0; }
.nav-item.nav-sub { padding-left: 40px; font-size: 13px; }
.nav-item.nav-sub .nav-icon { display: none; }
.sidebar-footer {
  padding: 14px 18px; color: var(--sidebar-text); font-size: 12px;
  display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(255,255,255,.08);
}
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #555f72; }
.rec-dot.live { background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Topbar ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.timer-controls { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.input {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; font-size: 14px; background: #fff; color: var(--text);
}
.input:focus { outline: 2px solid rgba(0,184,204,.35); border-color: var(--accent); }
#timer-note { flex: 1; min-width: 80px; }
#timer-project { max-width: 200px; }
.btn {
  border: none; border-radius: 8px; padding: 9px 16px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--red); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.timer-elapsed {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 20px;
  min-width: 96px; text-align: right;
}
.badge {
  background: #eef2f8; color: var(--muted); font-size: 12px;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.badge.on { background: #e3f3e9; color: var(--green); }

/* ---------- Content ---------- */
.content { flex: 1; overflow-y: auto; padding: 24px; }
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.page-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }

/* Overview: needs-attention strip + sparklines */
.att-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0; }
.att-tile { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; transition: box-shadow .12s, border-color .12s; }
.att-tile.att-on { border-color: var(--accent); }
.att-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.att-value { font-size: 28px; font-weight: 800; font-family: var(--mono); line-height: 1.1; margin-top: 4px; }
.att-tile.att-on .att-value { color: var(--accent); }
.att-hint { font-size: 11px; color: var(--muted); margin-top: 2px; }
.att-tile.att-on .att-hint { color: var(--accent); }
a:hover > .att-tile { box-shadow: 0 6px 18px -8px rgba(20,40,80,.25); }
.spark { width: 100%; height: 36px; display: block; margin-top: 10px; }
.mini-bar { height: 6px; border-radius: 999px; background: #e6ebf2; margin-top: 12px; overflow: hidden; }
.mini-fill { height: 100%; border-radius: 999px; background: var(--accent); }
.mini-fill.act-high { background: var(--green); } .mini-fill.act-mid { background: var(--yellow); } .mini-fill.act-low { background: var(--red); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px;
}
.stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.stat-value { font-size: 26px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-hint { color: var(--muted); font-size: 12px; margin-top: 4px; }

.grid-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; margin-bottom: 22px; }
@media (max-width: 980px) { .grid-2 { grid-template-columns: 1fr; } }
.card h3 { font-size: 15px; margin-bottom: 14px; }

.chart-svg { width: 100%; height: 220px; display: block; }
.chart-bar { fill: var(--accent); rx: 4; }
.chart-bar:hover { fill: var(--accent-dark); }
.chart-label { fill: var(--muted); font-size: 11px; }
.chart-val { fill: var(--text); font-size: 11px; font-weight: 600; }

.proj-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.proj-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.proj-name { flex: 1; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.proj-bar-track { height: 6px; background: #edf1f7; border-radius: 999px; overflow: hidden; margin-top: 4px; }
.proj-bar-fill { height: 100%; border-radius: 999px; }

/* ---------- Activity / Screenshots ---------- */
.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.shot-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.shot-card:hover { box-shadow: 0 4px 14px rgba(20,40,80,.12); }
.shot-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #dde3ec; }
.shot-meta { padding: 10px 12px; }
.shot-time { font-size: 13px; font-weight: 600; }
.shot-proj { font-size: 12px; color: var(--muted); margin-top: 2px; }
.activity-track { height: 6px; background: #edf1f7; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.activity-fill { height: 100%; border-radius: 999px; }
.activity-pct { font-size: 11px; color: var(--muted); margin-top: 4px; }
.act-high { background: var(--green); }
.act-mid { background: var(--yellow); }
.act-low { background: var(--red); }

.filter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding: 12px 14px; background: #f8fafd; border-bottom: 1px solid var(--border); }
.table td { padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.day-header { font-size: 14px; font-weight: 700; margin: 22px 0 10px; display: flex; justify-content: space-between; }
.day-total { color: var(--muted); font-weight: 600; }

/* ---------- Forms ---------- */
.form-row { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); gap: 20px; }
.setting-row:last-child { border-bottom: none; }
.setting-name { font-size: 14px; font-weight: 600; }
.setting-desc { font-size: 12px; color: var(--muted); margin-top: 3px; max-width: 480px; }

.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #cdd5e1; border-radius: 999px; cursor: pointer; transition: .15s; }
.switch .slider::before { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .15s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); }

.empty { text-align: center; color: var(--muted); padding: 48px 20px; font-size: 14px; }
.empty .big { font-size: 34px; margin-bottom: 10px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,22,38,.75); }
.modal-body { position: relative; max-width: 88vw; max-height: 88vh; background: var(--card); border-radius: 12px; padding: 14px; }
.modal-body img { max-width: 84vw; max-height: 74vh; display: block; border-radius: 8px; }
.modal-caption { padding-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.modal-close { position: absolute; top: -14px; right: -14px; width: 32px; height: 32px; border-radius: 50%; border: none; background: #fff; cursor: pointer; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #25303f; color: #fff; padding: 11px 18px; border-radius: 8px;
  font-size: 14px; z-index: 200; box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: opacity .25s;
}
.toast.hidden { opacity: 0; pointer-events: none; }

/* ---------- Admin additions ---------- */
.hidden { display: none !important; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--sidebar-bg); }
.login-card { background: var(--card); border-radius: 14px; padding: 34px 30px; width: 340px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.login-error { color: var(--red); font-size: 13px; text-align: center; }

/* ---------- Branded landing (login screen) ---------- */
.landing { display: flex; gap: 52px; align-items: center; justify-content: center; flex-wrap: wrap; max-width: 1000px; padding: 32px; }
.landing-hero { flex: 1; min-width: 300px; max-width: 520px; color: #fff; }
.landing-hero .logo-sub { letter-spacing: 3px; font-size: 11px; font-weight: 700; margin-top: 4px; }
.landing-h1 { font-size: 30px; line-height: 1.15; margin: 20px 0 10px; color: #fff; font-weight: 800; }
.landing-p { color: rgba(255,255,255,.72); font-size: 15px; margin: 0 0 22px; max-width: 440px; }
.dl-row { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; font-size: 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.dl-win { background: rgba(255,255,255,.12); color: #fff; }
.dl-win:hover { background: rgba(255,255,255,.2); }
.dl-btn.disabled { opacity: .45; pointer-events: none; }
.dl-note { color: rgba(255,255,255,.55); font-size: 12px; margin-top: 12px; max-width: 440px; }
.landing-steps { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: rgba(255,255,255,.5); font-size: 12px; font-family: var(--mono); }
.login-card-title { font-size: 19px; font-weight: 700; }
.login-card-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 760px) { .landing { gap: 28px; padding: 24px; } .landing-h1 { font-size: 24px; } }

.avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.avatar-img { object-fit: cover; background: #dde3ec; }

/* toggle switch (settings) */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cfd6e0; border-radius: 999px; transition: .15s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(20px); }
.user-cell { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #cdd5e1; }
.status-dot.live { background: var(--green); box-shadow: 0 0 0 3px rgba(52,181,111,.18); }
.chip { display: inline-block; background: #eef2f8; border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--muted); margin: 2px 3px 2px 0; }
.chip.live { background: #e3f3e9; color: var(--green); font-weight: 600; }

.check-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.check-list label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

.modal-form { width: 420px; max-width: 80vw; display: flex; flex-direction: column; gap: 12px; }
.modal-form h3 { font-size: 17px; }
.modal-form .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.modal-body img.shot-full { max-width: 84vw; max-height: 70vh; display: block; border-radius: 8px; }

.task-pill { display: inline-flex; align-items: center; gap: 6px; background: #eef2f8; border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; margin: 3px 4px 3px 0; }
.task-pill button { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 12px; }
.task-pill button:hover { color: var(--red); }

.range-tabs { display: inline-flex; background: #e9edf4; border-radius: 9px; padding: 3px; gap: 2px; }
.range-tabs button { border: none; background: none; padding: 6px 14px; border-radius: 7px; font-size: 13px; cursor: pointer; color: var(--muted); font-weight: 600; }
.range-tabs button.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(20,40,80,.12); }

/* ---------- Members & teams ---------- */
.modal-form.wide { width: 660px; max-width: 90vw; }
.mtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.mtabs button { border: none; background: none; padding: 9px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.mtabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.mtab-pane { display: none; max-height: 56vh; overflow-y: auto; padding-right: 4px; }
.mtab-pane.active { display: block; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.fgrid .full { grid-column: 1 / -1; }
.fld label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.fld .input { width: 100%; }
.search-input { min-width: 210px; }
.badge-warn { background: #fdf2dc; color: #a4781a; }
.badge-danger { background: #fde7e6; color: var(--red); }
.lead-star { color: var(--yellow); }
.app-row summary { cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
/* ===================== Glassy macOS theme ===================== */
:root { --radius: 14px; }

body {
  background:
    radial-gradient(1100px 560px at 10% -10%, rgba(0,184,204,.12), transparent 60%),
    radial-gradient(900px 680px at 102% -5%, rgba(0,184,204,.07), transparent 55%),
    radial-gradient(800px 800px at 50% 120%, rgba(0,184,204,.05), transparent 60%),
    linear-gradient(180deg, #eef2f7 0%, #e7edf3 100%);
  background-attachment: fixed;
}

/* frosted cards */
.card {
  background: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px;
  box-shadow: 0 12px 34px -14px rgba(20,32,54,.26), inset 0 1px 0 rgba(255,255,255,.65);
}

/* dark glass sidebar */
.sidebar {
  background: linear-gradient(180deg, rgba(20,22,28,.94), rgba(8,9,12,.97));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255,255,255,.06);
}
.nav-item.active {
  background: rgba(0,184,204,.16);
  box-shadow: inset 0 0 0 1px rgba(0,184,204,.35), 0 4px 14px -6px rgba(0,184,204,.5);
  color: #fff;
}

/* glass tables */
.table {
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 14px;
  box-shadow: 0 12px 30px -16px rgba(20,32,54,.22);
}
.table th { background: rgba(248,250,253,.55); }
.table tr:hover td { background: rgba(0,184,204,.04); }

/* glass inputs */
.input, select.input {
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: inset 0 1px 2px rgba(20,32,54,.05);
}

/* glossy buttons */
.btn-primary {
  background: linear-gradient(180deg, #1fd4e6 0%, #00B8CC 100%);
  box-shadow: 0 6px 16px -6px rgba(0,184,204,.65), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-primary:hover { background: linear-gradient(180deg, #16c4d8 0%, #009db0 100%); }
.btn-danger { box-shadow: 0 6px 16px -6px rgba(229,86,79,.6), inset 0 1px 0 rgba(255,255,255,.35); }

/* glass range tabs */
.range-tabs {
  background: rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6);
}
.range-tabs button.active { background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(20,32,54,.14); }

/* chips + badges frosted */
.chip { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* login card = frosted panel on the dark login screen */
.login-wrap {
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(0,184,204,.22), transparent 60%),
    radial-gradient(700px 600px at 100% 100%, rgba(0,184,204,.12), transparent 55%),
    #0b0c0f;
}
.login-card {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.7);
}

/* glass modals */
.modal-backdrop { background: rgba(12,18,30,.42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.modal-body {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  backdrop-filter: blur(34px) saturate(180%);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.5);
}

/* card hover lift on the screenshot tiles */
.shot-card { background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border:1px solid rgba(255,255,255,.6); border-radius:14px; }

/* ===== Brand corrections: Signal two-tone + warm neutrals ===== */
/* Dark surfaces use bright Signal #4AECFD */
.sidebar .logo-sub { color: var(--accent-bright); }
.nav-item.active {
  background: rgba(74,236,253,.14);
  box-shadow: inset 0 0 0 1px rgba(74,236,253,.32), 0 4px 14px -6px rgba(74,236,253,.45);
  color: #fff;
}
.login-wrap {
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(74,236,253,.20), transparent 60%),
    radial-gradient(700px 600px at 100% 100%, rgba(74,236,253,.10), transparent 55%),
    #0A0A0A;
}
/* warm the remaining cool-gray neutrals to the Bone/Wire family */
.table th { background: rgba(250,249,246,.6); }
.proj-bar-track, .activity-track { background: #e7e4dd; }
.badge { background: #eceae3; }
.badge.on { background: #dff0e6; color: var(--green); }

/* ===================== Typography system (Plus Jakarta Sans / IBM Plex Mono) ===================== */
:root {
  /* Primary UI typeface: Plus Jakarta Sans, paired with IBM Plex Mono. */
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Headings: tighter tracking, weight 700 */
.page-title { font-weight: 700; letter-spacing: -0.02em; }
.card h3, .day-header { font-weight: 700; letter-spacing: -0.015em; }
.logo-text { letter-spacing: -0.01em; }

/* Labels / metadata / captions -> IBM Plex Mono (the brand's signature) */
.stat-label, .table th, .logo-sub, .lbl, .badge,
.shot-proj, .activity-pct, .stat-hint, .meta-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.stat-label, .table th { font-size: 11px; }
.page-sub { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; }

/* Data values / numbers -> IBM Plex Mono, tabular, value-aligned */
.stat-value, .timer-elapsed, .proj-time, .day-total,
.shot-time, .activity-pct, .range-tabs button {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.stat-value { letter-spacing: -0.02em; }

/* Alignment: numeric columns in tables sit right, headers match */
.table td:last-child:not(:has(button)), .table th:last-child { text-align: left; }
.num, td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chip { font-family: var(--mono); letter-spacing: .02em; text-transform: none; }

/* alignment refinements */
.chip { white-space: nowrap; }
.table td { vertical-align: middle; }
.range-tabs button { font-size: 12.5px; }
.user-cell { align-items: center; }

/* ---------- Schedule grid ---------- */
.sched-table th, .sched-table td { text-align: center; padding: 8px 10px; }
.sched-table td:first-child, .sched-table th:first-child { text-align: left; }
.sched-cell { min-width: 92px; vertical-align: middle; }
.shift { background: rgba(0,184,204,.12); border: 1px solid rgba(0,184,204,.4); border-radius: 8px; padding: 6px 8px; font-size: 12px; font-family: var(--mono); cursor: pointer; color: var(--text); }
.shift:hover { background: rgba(0,184,204,.2); }
.shift-tracked { font-size: 10px; font-family: var(--mono); margin-top: 2px; }
.to-badge { border-radius: 8px; padding: 6px 8px; font-size: 11px; font-family: var(--mono); text-transform: capitalize; display: flex; align-items: center; justify-content: center; gap: 4px; }
.to-badge .x, .add-shift { border: none; background: none; cursor: pointer; color: inherit; opacity: .6; }
.to-badge .x:hover { opacity: 1; }
.add-shift { width: 26px; height: 26px; border-radius: 6px; color: var(--muted); font-size: 16px; }
.add-shift:hover { background: rgba(0,184,204,.12); color: var(--accent); }
.day-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; background: #f0eee7; padding: 4px 8px; border-radius: 7px; }

/* ---------- Roster coverage grid ---------- */
.roster-cell { min-width: 92px; cursor: pointer; vertical-align: middle; text-align: center; }
.roster-cell:hover { background: rgba(0,184,204,.06); }
.cov-badge { display: inline-block; border-radius: 7px; padding: 3px 9px; font-size: 12px; font-family: var(--mono); font-weight: 600; }
.cov-people { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; margin-top: 5px; }

/* ---------- Screenshot delete button ---------- */
.shot-card { position: relative; }
.shot-del {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 30px; height: 30px; border: none; border-radius: 8px; cursor: pointer;
  background: rgba(12,12,14,.55); color: #fff; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .12s ease; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.shot-card:hover .shot-del, .shot-del:focus { opacity: 1; }
.shot-del:hover { background: var(--red); }
@media (hover: none) { .shot-del { opacity: 1; } } /* always visible on touch devices */

/* ---------- Mobile sidebar drawer (hidden on desktop) ---------- */
.nav-toggle, .nav-scrim { display: none; }
.nav-toggle {
  position: fixed; top: 12px; left: 12px; z-index: 60;
  width: 42px; height: 42px; border: none; border-radius: 10px; cursor: pointer;
  background: var(--sidebar-bg, #0b0b0c); color: #fff; font-size: 18px;
  align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(20,32,54,.25);
}

/* ---------- Responsive: tablet & phone ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-scrim.show, body.nav-open .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 45;
    background: rgba(8,12,20,.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
    width: 248px; max-width: 84vw;
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.35);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .nav-toggle { display: none; } /* avoid overlapping the wordmark */
  .main { width: 100%; }
  .content { padding: 64px 14px 20px; }
  .page-title { font-size: 19px; }
  /* Tables and wide grids scroll horizontally instead of overflowing */
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid-2 { grid-template-columns: 1fr; }
  .shots-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .modal-body { max-width: 94vw; }
  .modal-form { width: auto !important; max-width: 88vw; }
  /* Header action rows wrap cleanly */
  .content > div:first-child { gap: 8px; }
  .range-tabs button { padding: 5px 10px; }
}
@media (max-width: 440px) {
  .cards { grid-template-columns: 1fr; }
  .shots-grid { grid-template-columns: 1fr; }
}
.cov-av { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
