@font-face { font-family: Inter; src: url(/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #111214; --ink-2: #4a4d55; --ink-3: #7c808a; --line: #e6e7ea; --bg: #f6f6f4; --card: #fff;
  --green: #17803d; --green-bg: #e8f5ec; --red: #c4321c; --red-bg: #fcebe7; --gold: #a86b00; --gold-bg: #fbf1dc;
  --blue: #1f5fbf; --blue-bg: #e7eefa; --grey-bg: #efeff1;
  --r: 12px; --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { padding: var(--s7); color: var(--ink-3); text-align: center; }

/* layout */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #fff; padding: var(--s5) var(--s4); display: flex; flex-direction: column; gap: var(--s1); position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s2) var(--s5); font-weight: 650; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.brand small { display: block; font-weight: 400; color: #9a9ca3; font-size: 12px; }
.nav a { display: flex; align-items: center; justify-content: space-between; padding: 9px var(--s3); border-radius: 8px; text-decoration: none; color: #c9cbd1; font-size: 14px; }
.nav a:hover { background: #1f2125; color: #fff; }
.nav a.on { background: #fff; color: var(--ink); font-weight: 600; }
.nav .group { color: #6f727a; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: var(--s4) var(--s3) var(--s1); }
.badge { background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; font-weight: 600; }
.side .me { margin-top: auto; font-size: 13px; color: #9a9ca3; padding: var(--s3); border-top: 1px solid #26282d; }
.side .me button { background: none; border: 0; color: #fff; padding: 0; cursor: pointer; text-decoration: underline; }
main { padding: var(--s6) var(--s6) var(--s7); max-width: 1080px; width: 100%; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
h1 { font-size: 26px; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.sub { color: var(--ink-2); margin: var(--s1) 0 0; }
h2 { font-size: 16px; margin: 0 0 var(--s1); letter-spacing: -.01em; }
.hint { color: var(--ink-3); font-size: 13px; margin: 0 0 var(--s3); }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); margin-bottom: var(--s4); }
.grid { display: grid; gap: var(--s4); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.stat .n { font-size: 32px; font-weight: 650; letter-spacing: -.02em; }
.stat .l { color: var(--ink-3); font-size: 13px; }
.warn { background: var(--gold-bg); border: 1px solid #efd9a8; color: #5b3d00; border-radius: var(--r); padding: var(--s3) var(--s4); margin-bottom: var(--s4); font-size: 14px; }
.err { background: var(--red-bg); border: 1px solid #f3c7bd; color: #7a1d0e; border-radius: var(--r); padding: var(--s3) var(--s4); margin-bottom: var(--s4); font-size: 14px; }
.okmsg { background: var(--green-bg); border: 1px solid #bfe3cb; color: #0e5226; border-radius: var(--r); padding: var(--s3) var(--s4); margin-bottom: var(--s4); font-size: 14px; }

/* Sandra hero */
.hero { display: flex; align-items: center; gap: var(--s5); }
.hero img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.hero .t { flex: 1; }
.hero .state { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--ink-3); }
.dot.on { background: #1fa14d; box-shadow: 0 0 0 4px #1fa14d22; }
.dot.off { background: var(--red); }

/* switch */
.switch { position: relative; width: 64px; height: 36px; border-radius: 99px; background: #d4d5da; border: 0; cursor: pointer; transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px #0003; }
.switch.on { background: #1fa14d; }
.switch.on::after { transform: translateX(28px); }

/* buttons + forms */
.btn { display: inline-flex; align-items: center; gap: var(--s2); border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 8px; cursor: pointer; font-weight: 550; font-size: 14px; text-decoration: none; }
.btn:hover { background: #2a2c31; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-3); }
.btn.danger { background: #fff; color: var(--red); border-color: #f0c4ba; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; }
.row { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.field { margin-bottom: var(--s4); }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: var(--s1); }
.field .h { color: var(--ink-3); font-size: 12px; margin-top: var(--s1); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: #fff; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px #1112141a; }
textarea { min-height: 80px; resize: vertical; }
.check { display: flex; gap: var(--s2); align-items: center; font-weight: 500; }
.list-edit .it { display: flex; gap: var(--s2); margin-bottom: var(--s2); }
.list-edit .it textarea, .list-edit .it input { flex: 1; min-height: 0; }
.days { display: grid; grid-template-columns: 70px 90px 1fr 1fr; gap: var(--s2) var(--s3); align-items: center; max-width: 520px; }
.savebar { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: var(--s5) 0 var(--s2); display: flex; gap: var(--s3); align-items: center; }
.tabs { display: flex; gap: var(--s1); border-bottom: 1px solid var(--line); margin-bottom: var(--s5); overflow-x: auto; }
.tabs a { padding: var(--s2) var(--s3); text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 14px; }
.tabs a.on { color: var(--ink); border-color: var(--ink); font-weight: 600; }

/* tables / call list */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); }
td { padding: var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #fafafa; }
tr.done td { color: var(--ink-3); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--grey-bg); color: var(--ink-2); white-space: nowrap; }
.pill.red { background: var(--red-bg); color: var(--red); } .pill.gold { background: var(--gold-bg); color: var(--gold); }
.pill.blue { background: var(--blue-bg); color: var(--blue); } .pill.green { background: var(--green-bg); color: var(--green); }
.empty { text-align: center; color: var(--ink-3); padding: var(--s7) var(--s4); }
.filters { display: flex; gap: var(--s2); margin-bottom: var(--s4); flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 14px; cursor: pointer; font-size: 13px; }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* drawer */
.drawer-bg { position: fixed; inset: 0; background: #0006; z-index: 10; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; z-index: 11; overflow-y: auto; padding: var(--s5); box-shadow: -10px 0 40px #0002; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: var(--s2) var(--s3); font-size: 14px; margin-bottom: var(--s4); }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }
.transcript { background: var(--bg); border-radius: var(--r); padding: var(--s4); font-size: 14px; max-height: 360px; overflow-y: auto; }
.transcript p { margin: 0 0 var(--s2); } .transcript b { font-weight: 600; }
pre.instr { white-space: pre-wrap; background: var(--bg); padding: var(--s4); border-radius: var(--r); font-size: 13px; max-height: 480px; overflow: auto; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--bg); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.bar { height: 10px; background: var(--grey-bg); border-radius: 99px; overflow: hidden; margin: var(--s2) 0; }
.bar i { display: block; height: 100%; background: var(--ink); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: var(--s4); }
.login .card { width: min(400px, 100%); }
.login .head { text-align: center; margin-bottom: var(--s5); }
.login img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* call test */
.probeer { display: flex; align-items: center; gap: var(--s3); }
.probeer .live { color: var(--green); font-weight: 600; }

.mobile-top { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 20; transform: translateX(-100%); transition: transform .2s; height: auto; }
  .side.open { transform: none; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--s4); background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 5; }
  .mobile-top button { background: none; border: 1px solid #444; color: #fff; border-radius: 8px; padding: 6px 12px; }
  main { padding: var(--s5) var(--s4) var(--s7); }
  .g2 { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
  .g3 .stat { padding: var(--s3); } .stat .n { font-size: 24px; } .stat .l { font-size: 12px; line-height: 1.3; }
  form.g3 { grid-template-columns: 1fr; }
  .hide-m { display: none; }
  .days { grid-template-columns: 50px 70px 1fr 1fr; }
}
