:root {
  --bg: #050716;
  --bg-2: #0b1024;
  --card: #11182f;
  --card-2: #151f3d;
  --line: rgba(255,255,255,.12);
  --text: #f7f8ff;
  --muted: #aeb6d3;
  --dim: #737d9f;
  --blue: #0758ff;
  --blue-2: #2f75ff;
  --purple: #b9b8ea;
  --ok: #21c27a;
  --warn: #f4b740;
  --bad: #ff4d5e;
  --info: #5bbcff;
  --radius: 18px;
  --shadow: 0 22px 70px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { padding-bottom: env(safe-area-inset-bottom); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.login-screen { min-height: 100vh; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 28px; background: radial-gradient(circle at top right, rgba(7,88,255,.35), transparent 34%), linear-gradient(180deg, #050716, #080b19 70%); }
.brand-lockup { display: flex; align-items: center; gap: 16px; max-width: 560px; margin: 0 auto; width: 100%; }
.mark { width: 68px; height: 68px; border-radius: 22px; background: var(--blue); display: grid; place-items: center; color: white; font-weight: 900; letter-spacing: -.08em; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 4px; color: var(--purple); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; letter-spacing: -.04em; font-size: 30px; }
h2 { font-size: 22px; letter-spacing: -.03em; }
h3 { font-size: 16px; margin-bottom: 8px; }
.subtle, .muted { color: var(--muted); }
.tiny { color: var(--dim); font-size: 12px; line-height: 1.45; margin: 12px 0 0; }
.login-card, .card { background: rgba(17,24,47,.94); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.login-card { max-width: 560px; margin: 0 auto; width: 100%; padding: 22px; }
.input, select, textarea { width: 100%; background: #0a0f22; border: 1px solid var(--line); color: var(--text); border-radius: 14px; padding: 14px 14px; outline: none; }
.input:focus, select:focus, textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(7,88,255,.22); }
.primary-btn, .secondary-btn, .danger-btn, .ghost-btn, .status-btn { border: 0; border-radius: 14px; padding: 13px 14px; min-height: 48px; font-weight: 800; color: var(--text); }
.primary-btn { background: var(--blue); }
.primary-btn:hover { background: var(--blue-2); }
.secondary-btn { background: var(--card-2); border: 1px solid var(--line); }
.danger-btn { background: rgba(255,77,94,.18); color: #ffd8dc; border: 1px solid rgba(255,77,94,.35); }
.ghost-btn { background: transparent; border: 1px solid var(--line); }
.full { width: 100%; margin-top: 12px; }
.app { min-height: 100vh; background: radial-gradient(circle at top right, rgba(7,88,255,.18), transparent 28%), var(--bg); padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 20; padding: 16px 16px 12px; display: flex; justify-content: space-between; align-items: center; background: rgba(5,7,22,.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 20px; margin: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 900; }
.view { padding: 16px; max-width: 980px; margin: 0 auto; }
.grid { display: grid; gap: 12px; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 16px; }
.card.compact { padding: 12px; }
.card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.badge, .chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge { background: rgba(185,184,234,.16); color: #e2e1ff; }
.chip.ok { background: rgba(33,194,122,.16); color: #baf7d8; }
.chip.warn { background: rgba(244,183,64,.16); color: #ffe2a4; }
.chip.bad { background: rgba(255,77,94,.16); color: #ffd8dc; }
.chip.info { background: rgba(91,188,255,.16); color: #d6efff; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.5; }
.big-number { font-size: 34px; font-weight: 900; letter-spacing: -.05em; margin: 0; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.shift-card { display: grid; gap: 12px; }
.progress { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; display:flex; }
.progress span { display:block; min-width:0; }
.progress .met { background: var(--ok); }
.progress .noshow { background: var(--bad); }
.progress .done { background: var(--blue-2); }
.progress .late { background: var(--warn); }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.status-btn { text-align: left; background: #0a0f22; border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.status-btn strong { font-size: 18px; }
.status-btn[data-status="met"] { border-color: rgba(33,194,122,.3); }
.status-btn[data-status="noshow"] { border-color: rgba(255,77,94,.3); }
.status-btn[data-status="done"] { border-color: rgba(47,117,255,.3); }
.status-btn[data-status="late"] { border-color: rgba(244,183,64,.3); }
.note-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(5,7,22,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.nav-btn { min-height: 52px; border: 0; border-radius: 16px; background: transparent; color: var(--muted); font-weight: 900; font-size: 12px; }
.nav-btn.active { background: var(--blue); color: white; }
.list { display: grid; gap: 10px; }
.timeline-item { position: relative; padding-left: 18px; }
.timeline-item:before { content:""; position:absolute; left:0; top:4px; width:9px; height:9px; border-radius:50%; background:var(--blue-2); box-shadow:0 0 0 4px rgba(7,88,255,.16); }
.timeline-item:after { content:""; position:absolute; left:4px; top:18px; bottom:-18px; width:1px; background:var(--line); }
.timeline-item:last-child:after { display:none; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.scenario-steps { margin: 10px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }
.segmented { display:flex; gap:8px; overflow:auto; padding: 0 0 10px; }
.segmented button { white-space: nowrap; border:1px solid var(--line); background:var(--card); color:var(--muted); border-radius:999px; padding:10px 12px; font-weight:800; }
.segmented button.active { background:var(--blue); color:white; border-color:var(--blue); }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.62); display: flex; align-items: end; justify-content: center; padding: 16px; }
.modal-panel { width: 100%; max-width: 720px; max-height: 88vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 16px; }
.modal-head { display:flex; align-items:center; justify-content:space-between; gap: 12px; margin-bottom: 14px; }
.modal-head h2 { margin:0; }
pre { white-space: pre-wrap; word-break: break-word; background:#070b18; border:1px solid var(--line); padding:12px; border-radius:14px; color:#dfe6ff; }
@media (min-width: 760px) {
  .status-grid { grid-template-columns: repeat(4, 1fr); }
  .filters { grid-template-columns: 160px 1fr 1fr; }
  .grid.desktop-2 { grid-template-columns: 1.1fr .9fr; }
  .bottom-nav { left: 50%; transform: translateX(-50%); max-width: 760px; border-radius: 22px 22px 0 0; }
}
