:root {
  --ink: #0E1A2B;
  --ink-2: #4A5668;
  --ink-3: #8A94A3;
  --bg: #F3F5F8;
  --card: #FFFFFF;
  --line: #E3E7ED;
  --brand: #0E1A2B;
  --accent: #1FA971;
  --accent-ink: #0B7A50;
  --accent-soft: #E3F6EE;
  --amber: #B7791F;
  --amber-soft: #FDF3E1;
  --red: #C53030;
  --red-soft: #FDECEC;
  --blue: #2B6CB0;
  --blue-soft: #E8F1FB;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 4px 14px rgba(14, 26, 43, .05);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px; background: var(--brand); color: #fff; }
.brand { font-weight: 500; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.brand b { font-weight: 700; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(31,169,113,.25); }
.spacer { flex: 1; }
.icon-btn { background: none; border: 0; color: #fff; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; }
.icon-btn:active { background: rgba(255,255,255,.12); }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); background: #2c3b52 center/cover; color: #fff; font-weight: 600; cursor: pointer; }

main { max-width: 640px; margin: 0 auto; padding: 14px 14px calc(110px + var(--safe-b)); }

/* Login */
.login { min-height: calc(100vh - 140px); display: grid; place-items: center; text-align: center; }
.login h1 { font-size: 24px; margin: 18px 0 6px; }
.login p { color: var(--ink-2); margin: 0 0 26px; }
.login .mark { width: 72px; height: 72px; border-radius: 20px; background: var(--brand); display: grid; place-items: center; margin: 0 auto; }
.login .mark span { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 8px rgba(31,169,113,.25); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.block { width: 100%; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:active { background: var(--accent-ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn.danger { background: var(--card); border-color: #F2C4C4; color: var(--red); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }

/* Tabs */
.tabs { display: flex; background: #E6EAF0; border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px 0; border-radius: 9px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.tabs .n { font-weight: 500; color: var(--ink-3); margin-left: 4px; }

.section-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 18px 4px 8px; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 10px; }
.task-card { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; position: relative; padding-left: 18px; }
.task-card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--line); }
.task-card.s-progress::before { background: var(--blue); }
.task-card.s-overdue::before { background: var(--red); }
.task-card.s-done::before { background: var(--accent); }
.task-card.s-failed::before { background: var(--ink-3); }
.task-card h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.3; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--ink-2); font-size: 13px; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #EDF0F4; color: var(--ink-2); white-space: nowrap; }
.pill.inprog { background: var(--blue-soft); color: var(--blue); }
.pill.overdue { background: var(--red-soft); color: var(--red); }
.pill.done { background: var(--accent-soft); color: var(--accent-ink); }
.pill.failed { background: #EDF0F4; color: var(--ink-2); }
.pill.type { background: #F1EEFB; color: #5B44B2; }
.grade { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.grade.A { background: var(--accent-soft); color: var(--accent-ink); }
.grade.B { background: var(--blue-soft); color: var(--blue); }
.grade.C { background: var(--amber-soft); color: var(--amber); }
.grade.D { background: var(--red-soft); color: var(--red); }

.empty { text-align: center; color: var(--ink-3); padding: 48px 12px; }

/* Detail */
.detail-head h2 { font-size: 20px; margin: 6px 0 10px; line-height: 1.25; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; word-break: break-word; }
details.guide { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; }
details.guide summary { list-style: none; padding: 14px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
details.guide summary::-webkit-details-marker { display: none; }
details.guide summary::after { content: "+"; color: var(--ink-3); font-size: 18px; line-height: 1; }
details.guide[open] summary::after { content: "–"; }
details.guide .body { padding: 0 14px 14px; color: var(--ink-2); font-size: 14px; }
details.guide .txt { white-space: pre-wrap; }
details.guide h4 { margin: 10px 0 4px; color: var(--ink); font-size: 13px; }

.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; background: rgba(243,245,248,.92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 14px calc(10px + var(--safe-b)); }
.actionbar .inner { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; }
.actionbar .inner > * { flex: 1; }

/* Forms */
.field { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 10px; }
.field label.lbl { display: flex; align-items: baseline; gap: 6px; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--red); font-size: 12px; font-weight: 600; }
.field .pts { color: var(--ink-3); font-size: 12px; font-weight: 500; margin-left: auto; white-space: nowrap; }
.field .hint { color: var(--ink-3); font-size: 13px; margin: -2px 0 8px; }
.field.missing { box-shadow: 0 0 0 2px #F2C4C4; }
input.in, select.in, textarea.in { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #FBFCFD; outline: none; }
input.in:focus, select.in:focus, textarea.in:focus { border-color: var(--accent); background: #fff; }
textarea.in { min-height: 96px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices button { border: 1px solid var(--line); background: #FBFCFD; border-radius: 10px; padding: 9px 14px; cursor: pointer; font-weight: 500; }
.choices button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.group-note { background: var(--amber-soft); color: var(--amber); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 10px; }
.group-note.ok { background: var(--accent-soft); color: var(--accent-ink); }
.form-section { font-weight: 700; margin: 20px 4px 8px; font-size: 14px; }

.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #E9EDF2 center/cover; display: grid; place-items: center; font-size: 11px; color: var(--ink-2); }
.thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(14,26,43,.7); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.thumb .bar { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.7); overflow: hidden; }
.thumb .bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.thumb.err { background: var(--red-soft); color: var(--red); }
.add-media { aspect-ratio: 1; border: 1.5px dashed #C5CDD8; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; background: #FBFCFD; font-size: 12px; text-align: center; padding: 4px; }
.add-media svg { display: block; margin: 0 auto 2px; }

/* Preview */
.issues { background: var(--red-soft); color: var(--red); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.issues ul { margin: 6px 0 0; padding-left: 18px; }
.scorebox { display: flex; align-items: center; gap: 14px; }
.scorebox .big { font-size: 40px; font-weight: 700; line-height: 1; }
.scorebox .big small { font-size: 16px; color: var(--ink-3); font-weight: 500; }
.ded { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; }
.ded li { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.ded li b { color: var(--red); min-width: 36px; }
.pv-row { padding: 10px 0; border-top: 1px solid var(--line); }
.pv-row:first-child { border-top: 0; }
.pv-row .k { font-size: 13px; color: var(--ink-3); }
.pv-row .v { margin-top: 2px; white-space: pre-wrap; }
.pv-row .v.none { color: var(--amber); }
.pv-row .media { margin-top: 6px; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }

/* Lamp count / installation */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; text-align: center; }
.stat b { display: block; font-size: 20px; }
.stat span { font-size: 12px; color: var(--ink-3); }
.lamp-row { display: flex; gap: 12px; align-items: center; }
.lamp-row .q { min-width: 52px; text-align: center; background: var(--accent-soft); color: var(--accent-ink); border-radius: 10px; padding: 6px 4px; font-weight: 700; }
.lamp-row .q small { display: block; font-weight: 500; font-size: 11px; }
.lamp-row .info { flex: 1; min-width: 0; }
.progress { height: 8px; background: #E6EAF0; border-radius: 6px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--accent); }
.day { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.day:first-child { border-top: 0; }

.result { text-align: center; padding: 30px 10px; }
.result .ring { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 40px; font-weight: 700; background: conic-gradient(var(--accent) calc(var(--p) * 1%), #E6EAF0 0); position: relative; }
.result .ring::after { content: ""; position: absolute; inset: 10px; background: var(--bg); border-radius: 50%; }
.result .ring span { position: relative; z-index: 1; }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px); white-space: pre-wrap; z-index: 20; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); }

.spinner { width: 28px; height: 28px; border: 3px solid #D5DBE3; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.sheet-bg { position: fixed; inset: 0; background: rgba(14,26,43,.45); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 16px 14px calc(16px + var(--safe-b)); }
.sheet h3 { margin: 4px 4px 12px; }
.muted { color: var(--ink-3); font-size: 13px; }
.warn { background: var(--amber-soft); color: var(--amber); padding: 10px 12px; border-radius: 12px; font-size: 13px; margin-bottom: 10px; }

/* Alerts */
.alert-banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; cursor: pointer; background: var(--red); color: #fff; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(197,48,48,.25); }
.alert-banner .ic { font-size: 22px; animation: pulse 1.6s ease-in-out infinite; }
.alert-banner span:nth-child(2) { flex: 1; }
.alert-banner small { opacity: .85; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.alert-card { box-shadow: 0 0 0 2px #F2C4C4, var(--shadow); }
.alert-line { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--red); }
.alert-box { background: var(--red-soft); color: var(--red); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; font-weight: 600; }
.alert-box small { font-weight: 500; }
.section-title.red { color: var(--red); }
.tabs.scope { background: var(--ink); }
.tabs.scope button { color: rgba(255,255,255,.7); }
.tabs.scope button.on { background: #fff; color: var(--ink); }
.viewonly { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 14px; color: var(--ink-2); text-align: center; }
.guide-imgs { display: grid; gap: 10px; margin-bottom: 6px; }
.guide-img { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink-2); }
.guide-img img { display: block; width: 100%; height: auto; }
.guide-img span { display: block; padding: 6px 10px; font-size: 12px; }

/* Review */
.pill.review { background: var(--amber-soft); color: var(--amber); }
.review-line { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--amber); }
.review-box { background: var(--amber-soft); color: var(--amber); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; font-weight: 600; }
.review-banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; cursor: pointer; background: var(--amber); color: #fff; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.review-banner .ic { font-size: 20px; }
.review-banner span:nth-child(2) { flex: 1; }
.chips { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 13px; cursor: pointer; }
.chip b { margin-left: 4px; }
.chip.red { color: var(--red); border-color: #F2C4C4; }
.chip.red.on { background: var(--red); color: #fff; border-color: var(--red); }
.chip.amber { color: var(--amber); border-color: #F3DDB3; }
.chip.amber.on { background: var(--amber); color: #fff; border-color: var(--amber); }
.pick-list { max-height: 260px; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; }
.pick-list button { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: #fff; padding: 10px 12px; cursor: pointer; }
.pick-list button:first-child { border-top: 0; }
.pick-list button small { display: block; color: var(--ink-3); font-size: 12px; }
.picked { display: flex; align-items: center; gap: 8px; justify-content: space-between; background: var(--accent-soft); color: var(--accent-ink); border-radius: 10px; padding: 8px 10px; }
a.thumb { text-decoration: none; }

/* Attendance & groups */
.late-box { background: var(--red-soft); color: var(--red); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 10px; }
.att { display: flex; flex-wrap: wrap; gap: 6px; }
.att-p { display: inline-flex; flex-direction: column; padding: 6px 10px; border-radius: 10px; font-weight: 600; font-size: 13px; }
.att-p small { font-weight: 500; font-size: 11px; opacity: .8; }
.att-p.ok { background: var(--accent-soft); color: var(--accent-ink); }
.att-p.late { background: var(--red-soft); color: var(--red); }
.att-p.help { background: var(--blue-soft); color: var(--blue); }
.grp { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #FBFCFD; }
.grp-sum { margin-top: 10px; background: var(--accent-soft); color: var(--accent-ink); border-radius: 12px; padding: 10px 12px; }
.picked span { flex: 1; }

.time-box { background: var(--red-soft); color: var(--red); border: 1px solid #F2C4C4; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; font-size: 14px; }
.time-box b { display: block; margin-bottom: 4px; }

#busy { position: fixed; inset: 0; z-index: 50; background: rgba(14,26,43,.35); display: none; align-items: center; justify-content: center; }
#busy.show { display: flex; }
#busy .busy-box { background: #fff; border-radius: 14px; padding: 18px 26px; text-align: center; font-weight: 600; box-shadow: var(--shadow); }
.day[role=button] { cursor: pointer; }
.day[role=button]:active { background: #F6F8FA; }

.att-p.absent { background: #fff; color: var(--red); border: 1.5px dashed #F2A3A3; }
.wl { cursor: pointer; }
.wl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; text-align: center; }
.wl-grid div { background: #F6F8FA; border-radius: 10px; padding: 8px 4px; }
.wl-grid b { display: block; font-size: 18px; }
.wl-grid span { font-size: 11px; color: var(--ink-3); }
.red { color: var(--red) !important; }
/* workload & performance */
.stat b.amber { color: var(--amber); }
.sat { position: relative; height: 8px; background: #EEF1F4; border-radius: 6px; overflow: hidden; }
.sat i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--accent); }
.sat.under i { background: #F0B44C; }
.sat.over i { background: #E5484D; }
.sat em { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,.18); }
.sat-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 3px 0 8px; vertical-align: -1px; background: var(--accent); }
.sat-key.under { background: #F0B44C; } .sat-key.over { background: #E5484D; }
.legend { font-size: 11px; margin-top: 8px; }
.wl-table .wl-tr { display: grid; grid-template-columns: 1.2fr 1.4fr 44px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #F0F2F4; cursor: pointer; }
.wl-table .wl-tr.th { border-top: 0; padding-top: 0; font-size: 11px; color: var(--ink-3); cursor: default; }
.wl-tr small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.wl-tr > span:last-child { text-align: right; }
.flag { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 10px; margin: 2px 4px 2px 0; background: #F2F4F6; color: var(--ink-2); }
.flag.bad { background: #FDECEC; color: #C62828; } .flag.over { background: #FDECEC; color: #C62828; }
.flag.under, .flag.warn { background: var(--amber-soft); color: var(--amber); }
.att-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid #F0F2F4; cursor: pointer; flex-wrap: wrap; }
.att-row:first-child { border-top: 0; }
.cat-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cat-t th { font-weight: 500; color: var(--ink-3); font-size: 11px; text-align: center; padding: 4px 2px; }
.cat-t th:first-child, .cat-t td:first-child { text-align: left; }
.cat-t td { text-align: center; padding: 6px 2px; border-top: 1px solid #F0F2F4; }
.cat-t td small { display: block; color: var(--ink-3); font-size: 11px; }
.cat-t td.red { color: #C62828; font-weight: 600; }
.perf { display: inline-flex; align-items: center; gap: 6px; } .perf small { color: var(--ink-3); font-size: 11px; }
.part { display: grid; grid-template-columns: 130px 1fr 30px; gap: 8px; align-items: center; font-size: 13px; margin: 5px 0; }
.part small { color: var(--ink-3); } .part b { text-align: right; }
.pbar { height: 6px; background: #EEF1F4; border-radius: 4px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--accent); } .pbar i.mid { background: #F0B44C; } .pbar i.bad { background: #E5484D; }
.wl .more { font-size: 12px; text-align: center; margin-top: 8px; }
.how summary { cursor: pointer; font-weight: 600; } .how p, .how li { font-size: 13px; color: var(--ink-2); } .how ul { padding-left: 18px; }
/* overdue (strong) vs failed (normal) */
.overdue-banner { background: var(--red); color: #fff; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(198,40,40,.25); animation: ob-pulse 2.4s ease-in-out infinite; }
@keyframes ob-pulse { 50% { box-shadow: 0 6px 26px rgba(198,40,40,.45); } }
.overdue-banner .ob-head { display: flex; gap: 10px; align-items: flex-start; }
.overdue-banner .ic { font-size: 22px; line-height: 1; }
.overdue-banner small { opacity: .92; }
.ob-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; margin-top: 8px; padding: 10px 12px; border: 0; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; font: inherit; }
.ob-row small { display: block; opacity: .9; font-size: 12px; margin-top: 2px; }
.ob-go { background: #fff; color: var(--red); font-weight: 700; border-radius: 999px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.ob-more { margin-top: 8px; background: none; border: 0; color: #fff; font-weight: 600; cursor: pointer; padding: 4px 0; }
.overdue-card { box-shadow: 0 0 0 2px var(--red), var(--shadow); background: #FFF6F6; }
.overdue-line { margin-top: 8px; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--red); border-radius: 8px; padding: 6px 10px; }
.failed-line { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.overdue-box { background: var(--red); color: #fff; border-radius: var(--radius); padding: 14px; margin-bottom: 10px; line-height: 1.45; }
.overdue-box .big { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.overdue-box small { opacity: .9; }
.chip.red.hot:not(.on) { background: #FDECEC; }
.chip.grey { color: var(--ink-2); }
.chip.grey.on { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.remote-box { background: #EEF4FF; color: #1D4ED8; border: 1px solid #C7D7FE; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: 13px; line-height: 1.45; }
