/* =========================================================
   V-Spot Schedule — Design System
   Built by Ledwig for V-Spot Food
   ========================================================= */

:root {
  --bg: #0d0d0d;
  --bg-2: #141414;
  --surface: #1b1b1b;
  --surface-2: #232323;
  --surface-3: #2b2b2b;
  --border: #2e2e2e;
  --border-strong: #3d3d3d;

  --gold: #c9a24b;
  --gold-2: #e2c070;
  --gold-soft: rgba(201, 162, 75, 0.14);
  --red: #c0392b;
  --red-soft: rgba(192, 57, 43, 0.16);
  --green: #3f7a5a;
  --green-2: #5fa37d;
  --green-soft: rgba(63, 122, 90, 0.18);
  --blue-soft: rgba(72, 120, 180, 0.18);

  --text: #f4efe6;
  --text-2: #c9c3b7;
  --muted: #8f897d;
  --muted-2: #66615a;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 3px 12px rgba(0, 0, 0, 0.3);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, serif;

  --nav-h: 64px;
  --tab-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(201, 162, 75, 0.09), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(63, 122, 90, 0.10), transparent 60%);
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0; }
a { color: var(--gold-2); text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--text); }
::selection { background: var(--gold); color: #111; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.gold { color: var(--gold-2); }
.red { color: #e06a5e; }
.green { color: var(--green-2); }
.bold { font-weight: 600; }
.serif { font-family: var(--serif); }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Loading / boot ---------- */
#boot {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: var(--bg); z-index: 999;
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--border-strong); border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Auth screen ---------- */
.auth {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; padding: 24px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px 28px 26px;
  box-shadow: var(--shadow);
}
.brand { text-align: center; margin-bottom: 26px; }
.brand img { width: 150px; max-width: 70%; height: auto; display: block; margin: 0 auto 10px; }
.brand .wordmark {
  font-family: var(--serif); font-size: 26px; letter-spacing: 6px; color: var(--text);
}
.brand .tag {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-top: 4px;
}
.brand .sub { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s; min-height: 46px;
  appearance: none; -webkit-appearance: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a24b' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
input[type="date"].input, input[type="time"].input { color-scheme: dark; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.error-msg { color: #e06a5e; font-size: 13px; min-height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 11px 18px; font-weight: 600; letter-spacing: 0.2px; min-height: 44px;
  transition: transform .08s, background .15s, border-color .15s, opacity .15s;
  white-space: nowrap; user-select: none; -webkit-user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #151004; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.soft { background: var(--surface-2); color: var(--text); }
.btn.soft:hover { background: var(--surface-3); }
.btn.danger { background: var(--red-soft); color: #ef8a7f; border-color: rgba(192,57,43,.35); }
.btn.danger:hover { background: rgba(192,57,43,.28); }
.btn.success { background: var(--green-soft); color: var(--green-2); border-color: rgba(63,122,90,.4); }
.btn.success:hover { background: rgba(63,122,90,.32); }
.btn.sm { padding: 7px 12px; min-height: 36px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.icon { padding: 0; width: 40px; min-height: 40px; }
.btn.round { border-radius: 999px; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar {
  width: 240px; flex-shrink: 0; background: var(--bg-2); border-right: 1px solid var(--border);
  padding: 22px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; height: 100dvh;
}
.sidebar .brand { margin-bottom: 10px; }
.sidebar .brand img { width: 110px; }
.sidebar .brand .wordmark { font-size: 18px; letter-spacing: 4px; }
.sidebar .brand .tag { font-size: 9px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; background: transparent; border: 0; width: 100%; text-align: left;
  position: relative;
}
.nav-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active { background: var(--gold-soft); color: var(--gold-2); }
.nav-item .badge { margin-left: auto; }
.sidebar .spacer { flex: 1; }
.sidebar .user {
  padding: 12px 14px; border-top: 1px solid var(--border); margin-top: 6px;
  display: flex; align-items: center; gap: 10px;
}
.credit { color: var(--muted-2); font-size: 11px; text-align: center; padding: 8px 0 0; letter-spacing: .3px; }
.credit b { color: var(--muted); font-weight: 500; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 22px; padding-top: var(--safe-t); border-bottom: 1px solid var(--border);
  background: rgba(13,13,13,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 20px; }
.content { padding: 22px; max-width: 1240px; width: 100%; margin: 0 auto; padding-bottom: calc(30px + var(--safe-b)); }

/* Mobile tab bar */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(16,16,16,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  grid-auto-flow: column; grid-auto-columns: 1fr;
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: none; border: 0; color: var(--muted); font-size: 11px; font-weight: 500; position: relative;
}
.tab svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--gold-2); }
.tab .badge { position: absolute; top: 8px; left: calc(50% + 6px); }

@media (max-width: 860px) {
  .sidebar { display: none; }
  .tabbar { display: grid; }
  .content { padding: 16px; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
  .topbar { padding: 0 16px; padding-top: var(--safe-t); }
}

/* ---------- Components ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.card.pad-sm { padding: 14px; }
.card + .card { margin-top: 14px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-title h3 { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .num { font-size: 30px; font-weight: 600; line-height: 1; color: var(--text); }
.stat .lbl { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--red); color: #fff;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .3px; white-space: nowrap;
}
.pill.gold { background: var(--gold-soft); color: var(--gold-2); }
.pill.green { background: var(--green-soft); color: var(--green-2); }
.pill.red { background: var(--red-soft); color: #ef8a7f; }
.pill.gray { background: var(--surface-3); color: var(--text-2); }
.pill.blue { background: var(--blue-soft); color: #8fb6e6; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: #111; background: var(--gold); flex-shrink: 0;
  letter-spacing: .5px;
}
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }

.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
}
.item.clickable { cursor: pointer; transition: border-color .15s, background .15s; }
.item.clickable:hover { border-color: var(--border-strong); background: var(--surface-2); }

.empty {
  text-align: center; padding: 36px 16px; color: var(--muted); border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.empty .big { font-size: 34px; margin-bottom: 8px; }

.segmented {
  display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px;
}
.segmented button {
  border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px;
}
.segmented button.active { background: var(--surface-3); color: var(--text); }

.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; top: calc(14px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
  padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-weight: 500;
  animation: toastIn .25s ease; display: flex; gap: 10px; align-items: center;
}
.toast.ok { border-color: rgba(63,122,90,.6); }
.toast.err { border-color: rgba(192,57,43,.6); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Modal / sheet ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100; display: grid; place-items: center;
  padding: 18px; animation: fade .18s ease; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  width: 100%; max-width: 520px; max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); overflow: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow); animation: pop .2s ease;
}
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0 } to { transform: none; opacity: 1 } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h2 { font-size: 19px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }
@media (max-width: 600px) {
  .modal-back { align-items: end; padding: 0; }
  .modal { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: calc(22px + var(--safe-b)); animation: slideUp .22s ease; }
  @keyframes slideUp { from { transform: translateY(40px); opacity: .6 } to { transform: none; opacity: 1 } }
}

/* ---------- Schedule builder ---------- */
.week-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.week-nav .range { font-weight: 600; font-size: 16px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.sched-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.sched { display: grid; grid-template-columns: 170px repeat(7, minmax(126px, 1fr)); min-width: 1050px; }
.sched .hd {
  position: sticky; top: 0; z-index: 3; background: var(--surface-2); border-bottom: 1px solid var(--border);
  padding: 10px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600;
}
.sched .hd .d { display: block; font-size: 15px; color: var(--text); text-transform: none; letter-spacing: 0; margin-top: 2px; font-weight: 600; }
.sched .hd.today .d { color: var(--gold-2); }
.sched .hd.today::after { content: ""; display: block; height: 2px; background: var(--gold); margin-top: 6px; border-radius: 2px; }
.sched .emp {
  position: sticky; left: 0; z-index: 2; background: var(--surface); border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 10px; display: flex; align-items: center; gap: 10px;
}
.sched .hd.corner { left: 0; z-index: 4; border-right: 1px solid var(--border); }
.sched .emp .n { font-weight: 600; font-size: 14px; line-height: 1.2; }
.sched .emp .h { font-size: 11px; color: var(--muted); }
.sched .cell {
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 6px; min-height: 64px;
  display: flex; flex-direction: column; gap: 5px; cursor: pointer; transition: background .12s; position: relative;
}
.sched .cell:hover { background: rgba(201,162,75,.05); }
.sched .cell.today { background: rgba(201,162,75,.035); }
.sched .cell.drop { background: var(--gold-soft) !important; outline: 2px dashed var(--gold); outline-offset: -4px; }
.sched .cell.off { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(192,57,43,.08) 8px 10px); }
.sched .cell .off-tag { position: absolute; right: 6px; bottom: 4px; font-size: 10px; color: #e06a5e; letter-spacing: .5px; text-transform: uppercase; font-weight: 700; pointer-events: none; }
.sched .cell .unavail-tag { position: absolute; right: 6px; bottom: 4px; font-size: 10px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; font-weight: 700; pointer-events: none; }
.sched .total { background: var(--bg-2); border-top: 1px solid var(--border-strong); font-size: 12px; color: var(--muted); padding: 8px 10px; }
.sched .total.emp { font-weight: 600; }
.sched .total b { color: var(--text); font-size: 13px; }

.shift {
  border-radius: 8px; padding: 6px 8px; font-size: 12px; line-height: 1.25; color: #111; font-weight: 600;
  display: flex; flex-direction: column; gap: 2px; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.3);
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.shift:active { cursor: grabbing; }
.shift.dragging { opacity: .45; }
.shift .t { font-weight: 700; }
.shift .p { font-weight: 500; opacity: .85; font-size: 11px; }
.shift.draft { outline: 2px dashed rgba(0,0,0,.35); outline-offset: -2px; }
.shift.draft::after { content: "DRAFT"; position: absolute; top: 4px; right: 6px; font-size: 8px; letter-spacing: 1px; opacity: .7; }
.shift.open { background: transparent !important; color: var(--gold-2); border: 1px dashed var(--gold); }
.shift.mine { box-shadow: 0 0 0 2px var(--gold-2); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Employee schedule (mobile list) ---------- */
.day-group { margin-bottom: 18px; }
.day-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; padding: 0 2px; }
.day-head .dn { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.day-head .dd { font-size: 18px; font-weight: 600; }
.day-head.today .dd { color: var(--gold-2); }
.shift-card {
  display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); border-left: 5px solid var(--gold);
}
.shift-card .time { font-size: 17px; font-weight: 600; }
.shift-card .meta { color: var(--muted); font-size: 13px; }
.shift-card.off { border-left-color: var(--muted-2); opacity: .75; }

.next-shift {
  background: linear-gradient(135deg, #1e1a10, #151515 60%); border: 1px solid rgba(201,162,75,.35);
  border-radius: var(--radius-lg); padding: 22px; position: relative; overflow: hidden;
}
.next-shift::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; top: -90px; background: radial-gradient(circle, rgba(201,162,75,.22), transparent 65%); }
.next-shift .lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.next-shift .big { font-size: 30px; font-weight: 600; margin: 6px 0 2px; }
.next-shift .when { color: var(--text-2); font-size: 15px; }
.next-shift .cd { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Requests ---------- */
.req {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.req .head { display: flex; align-items: center; gap: 12px; }
.req .type { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.req .body { color: var(--text-2); font-size: 14px; }
.req .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.req.status-approved { border-left: 4px solid var(--green-2); }
.req.status-denied { border-left: 4px solid var(--red); opacity: .85; }
.req.status-pending { border-left: 4px solid var(--gold); }

/* ---------- Availability ---------- */
.avail-row { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.avail-row:last-child { border-bottom: 0; }
.avail-row .dn { font-weight: 600; }
.avail-row .ctrls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.avail-row .ctrls .input { max-width: 120px; min-height: 40px; padding: 8px 10px; }

/* ---------- Announcements ---------- */
.ann { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.ann.pinned { border-color: rgba(201,162,75,.4); }
.ann h3 { font-size: 17px; margin-bottom: 4px; }
.ann .meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.ann .body { white-space: pre-wrap; color: var(--text-2); line-height: 1.55; }

/* ---------- Team ---------- */
.team-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }
.team-row .n { font-weight: 600; }
.team-row .e { font-size: 12px; color: var(--muted); }
.team-row.inactive { opacity: .5; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.swatch.sel { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }

/* ---------- Install guide ---------- */
.install-steps { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.install-steps .step { display: flex; gap: 12px; align-items: flex-start; }
.install-steps .n { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #111; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; }
.ios-share { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; stroke: var(--gold-2); fill: none; stroke-width: 1.8; }

.banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--gold-soft); border: 1px solid rgba(201,162,75,.35); color: var(--text); margin-bottom: 14px; font-size: 14px;
}
.banner .btn { margin-left: auto; }

/* ---------- Misc ---------- */
.kbd-hint { font-size: 12px; color: var(--muted); }
.fab {
  position: fixed; right: 18px; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 25;
  width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #151004; border: 0; box-shadow: 0 8px 22px rgba(201,162,75,.35); font-size: 28px; line-height: 1; display: none;
}
@media (max-width: 860px) { .fab { display: grid; place-items: center; } }

.notif-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: 0; }
.notif-item .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.notif-item .ic svg { width: 18px; height: 18px; stroke: var(--gold-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notif-item .t { font-weight: 600; }
.notif-item .b { color: var(--text-2); font-size: 13px; }
.notif-item .w { color: var(--muted); font-size: 12px; margin-top: 2px; }
.notif-item.unread .t::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 7px; vertical-align: 2px; }

.printable { display: none; }
@media print {
  body { background: #fff; color: #000; }
  body::before, .sidebar, .topbar, .tabbar, .toolbar, .fab, #toasts { display: none !important; }
  .content { padding: 0; max-width: none; }
  .sched-wrap { border: 0; overflow: visible; }
  .sched { min-width: 0; }
  .shift { color: #000 !important; box-shadow: none; border: 1px solid #999; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
