/* CXI Mobile — mobile-first styles, CXI brand palette. */
:root {
  --bg: #f5f5f9;
  --panel: #ffffff;
  --ink: #20234f;
  --muted: #60637e;
  --line: #d9d9e6;
  --accent: #2b2d62;
  --accent-dark: #20234f;
  --accent-soft: #e8e6f0;
  --ok: #0a7c4a;
  --ok-soft: #e1f5ee;
  --warn: #b45309;
  --warn-soft: #faeeda;
  --danger: #b42318;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* The [hidden] attribute must always win, even over our display rules below
   (.chip/.field set display, which would otherwise override the UA hidden rule). */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.45;
  padding-bottom: env(safe-area-inset-bottom);
}

/* App bar */
.appbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: var(--accent-dark); color: #fff;
}
.appbar-logo { height: 22px; width: auto; display: block; }
.appbar-sub { font-size: 12px; opacity: 0.7; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px; }
.appbar-spacer { flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; border: 0; border-radius: 999px;
  padding: 5px 10px; color: #fff; background: rgba(255,255,255,0.16);
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip-net[data-state="online"] { color: #8ef0bf; }
.chip-net[data-state="offline"] { color: #ffb4a8; }
.chip-outbox { color: #ffd9a8; }

/* Views */
.view { padding: 16px 16px 40px; max-width: 640px; margin: 0 auto; }

/* Login */
.login-card { text-align: center; padding-top: 28px; }
.login-logo { height: 40px; margin: 12px auto 18px; }
.login-card h1 { font-size: 22px; margin: 0 0 6px; }
.gate-ico { font-size: 56px; display: block; margin: 24px 0 8px; }
.gate-skip { display: inline-block; margin-top: 16px; color: var(--muted); }

/* Home */
.home-greet { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 4px; }
.home-greet h2 { margin: 0; font-size: 24px; }
.section-label { text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; color: var(--muted); margin: 22px 0 10px; font-weight: 700; }

.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 10px; min-height: 110px; font-size: 15px; font-weight: 600; color: var(--ink);
  text-align: center; cursor: pointer; transition: transform 0.06s, border-color 0.15s;
}
.type-btn:active { transform: scale(0.97); border-color: var(--accent); }
.type-ico { font-size: 30px; line-height: 1; }

.outbox-panel { background: var(--warn-soft); border: 1px solid #f0d9b3; border-radius: var(--radius); padding: 14px; margin-top: 18px; }
.outbox-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.outbox-head strong { font-size: 20px; color: var(--warn); }

.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-item { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 2px; }
.recent-type { font-weight: 600; }
.recent-meta { font-size: 13px; color: var(--muted); }
.recent-empty { padding: 8px 2px; }

/* Form */
.form-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.form-head h2 { margin: 0; font-size: 20px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
input[type="text"], input[type="datetime-local"], select, textarea {
  width: 100%; font-size: 16px; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-family: inherit;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.loc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.loc-readout { font-size: 13px; }
.event-map { height: 200px; border-radius: 10px; margin: 8px 0; border: 1px solid var(--line); overflow: hidden; z-index: 0; }

.photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-x { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }

/* Buttons */
.btn { font-family: inherit; font-size: 15px; font-weight: 600; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; padding: 11px 16px; cursor: pointer; }
.btn:active { transform: scale(0.98); }
.btn-small { font-size: 14px; padding: 8px 12px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:disabled { opacity: 0.6; }
.btn-block { display: block; width: 100%; padding: 15px; font-size: 17px; margin-top: 8px; }
.btn-orb { height: 20px; width: 20px; vertical-align: -5px; margin-right: 9px; }
.link { background: none; border: 0; color: var(--accent); font-size: 14px; font-weight: 600; padding: 6px 2px; cursor: pointer; }

/* Text */
.muted { color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--accent-dark); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 50; max-width: 90%; text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.toast-ok { background: var(--ok); }
.toast-warn { background: var(--warn); }

/* ── Persistent top bar ─────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 6px;
  padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
  background: var(--accent-dark); color: #fff;
}
.topbar-logo { height: 20px; width: auto; display: block; margin-left: 2px; }
.topbar-sub { font-size: 12px; color: #fff; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-left: 2px; }
.topbar-spacer { flex: 1; }
.iconbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent;
  color: #fff; font-size: 19px; cursor: pointer;
}
.iconbtn:active { background: rgba(255,255,255,0.14); }
.hamburger, .hamburger::before, .hamburger::after { content: ""; display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; }
.hamburger::before { position: absolute; top: -6px; }
.hamburger::after { position: absolute; top: 6px; }
.badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ── Drawer ──────────────────────────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity 0.22s; z-index: 40; }
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 82%; max-width: 300px; z-index: 41;
  background: var(--panel); box-shadow: 2px 0 24px rgba(0,0,0,0.18);
  transform: translateX(-100%); transition: transform 0.24s ease;
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top);
}
body.drawer-open .drawer { transform: none; }
.drawer-head { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.drawer-logo { height: 26px; }
.drawer-sub { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.drawer-nav { flex: 1; padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; }
.drawer-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-radius: 9px; padding: 9px 10px; font-size: 15px; font-weight: 600; color: var(--ink); font-family: inherit; cursor: pointer; }
.drawer-item:active { background: var(--accent-soft); }
.drawer-ico { font-size: 18px; width: 22px; text-align: center; }
.drawer-item-danger { color: var(--danger); }
.drawer-foot { padding: 8px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.drawer-credit { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 10px; line-height: 1.35; color: var(--muted); }
.drawer-credit img { height: 20px; width: auto; display: block; }
.drawer-credit-copy { font-size: 9px; }

/* Drawer profile (compact, top): name + role */
.drawer-profile { padding: 8px 16px 10px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.dp-name { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.15; }
.dp-role { font-size: 12px; }

/* Line manager (compact, bottom) + Shared Support */
.dp-manager { margin: 0 12px 8px; background: var(--accent-soft); border-radius: 10px; padding: 8px 10px; }
.dp-mgr-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dp-mgr-id { display: flex; flex-direction: column; min-width: 0; }
.dp-mgr-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.dp-mgr-name { font-size: 14px; font-weight: 700; color: var(--accent-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.ca { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); font-size: 16px; text-decoration: none; }
.ca:active { transform: scale(0.94); }
.ca svg { width: 17px; height: 17px; }
.ca-call { background: #e1f5ee; border-color: #bfe6d6; }
.ca-wa { background: #25d366; border-color: #1da851; }
.ca-wa svg { display: block; }
.ca-sms { background: #eef1fb; border-color: #d6ddf3; }
.ca-mail { background: #eef1fb; border-color: #d6ddf3; }
.dp-support { display: flex; align-items: center; gap: 10px; text-decoration: none; background: var(--accent-dark); color: #fff; border-radius: 10px; padding: 8px 10px; margin: 0 12px 10px; }
.dp-support:active { transform: scale(0.99); }
.dp-support-ico { font-size: 18px; }
.dp-support-txt { display: flex; flex-direction: column; line-height: 1.2; }
.dp-support-txt strong { font-size: 13px; }
.dp-support-txt small { font-size: 10px; opacity: 0.85; }

/* ── Pages ───────────────────────────────────────────────────────────────────── */
.page { padding: 16px 16px 48px; max-width: 640px; margin: 0 auto; }
.page > h2 { margin: 6px 0 16px; font-size: 22px; }
.danger-title { color: var(--danger); }
.cta {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--accent); color: #fff; border: 0; border-radius: var(--radius);
  padding: 18px; font-family: inherit; cursor: pointer; box-shadow: 0 4px 14px rgba(43,45,98,0.25);
}
.cta:active { transform: scale(0.99); }
.cta-ico { font-size: 28px; }
.cta-text { flex: 1; display: flex; flex-direction: column; }
.cta-text strong { font-size: 17px; }
.cta-text small { font-size: 13px; opacity: 0.85; }
.cta-arrow { font-size: 26px; opacity: 0.7; }
.placeholder { text-align: center; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 20px; margin-top: 10px; }
.placeholder-ico { font-size: 44px; display: block; margin-bottom: 12px; }
.placeholder p { margin: 6px 0; }
.placeholder-danger { border-color: #f0c5c0; background: #fdf3f2; }

/* ── ID & Accreditation card ───────────────────────────────────────────────────── */
.id-state { padding: 28px 16px; text-align: center; }
.idcard {
  position: relative; overflow: hidden; border-radius: 18px;
  background: linear-gradient(135deg, #20234f 0%, #2b2d62 55%, #3a3d82 100%);
  color: #fff; padding: 16px; box-shadow: 0 10px 28px rgba(32,35,79,0.35);
}
/* The "moving part": a holographic sheen that sweeps continuously — impossible in a static image. */
.idcard-sheen {
  position: absolute; top: -60%; left: -30%; width: 60%; height: 220%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.05) 35%, rgba(160,200,255,0.45) 50%, rgba(255,255,255,0.05) 65%, transparent 100%);
  transform: rotate(8deg); pointer-events: none;
  animation: idSheen 3.8s linear infinite;
}
@keyframes idSheen { 0% { left: -40%; } 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .idcard-sheen { animation-duration: 9s; } }
.idcard-top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.idcard-logo { height: 26px; width: auto; display: block; }
.idcard-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; background: rgba(255,255,255,0.14); padding: 3px 9px; border-radius: 999px; }
.idcard-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,0.7); animation: idPulse 1.6s ease-out infinite; }
@keyframes idPulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); } 70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.idcard-body { position: relative; display: flex; gap: 16px; align-items: center; margin: 16px 0; }
.idcard-photo-wrap { flex: 0 0 auto; width: 96px; height: 120px; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.5); }
.idcard-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.idcard-fields { flex: 1; min-width: 0; }
.idcard-name { font-size: 22px; font-weight: 800; line-height: 1.15; }
.idcard-role { font-size: 14px; opacity: 0.92; margin-top: 4px; }
.idcard-dept { font-size: 13px; opacity: 0.8; margin-top: 2px; }
.idcard-foot { position: relative; display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 10px; }
.idcard-foot-label { font-size: 11px; opacity: 0.8; line-height: 1.3; }
.idcard-stamp { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.idcard-date { font-size: 11px; opacity: 0.85; }
.idcard-clock { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

.acc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.acc-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-title { font-weight: 700; font-size: 15px; }
.acc-exp { font-size: 12px; color: var(--muted); white-space: nowrap; }
.acc-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.acc-badge-ok, .acc-badge-green { background: var(--ok-soft); color: var(--ok); }
.acc-badge-amber { background: var(--warn-soft); color: var(--warn); }
.acc-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.id-qr-wrap { margin-top: 14px; }
.id-qr-panel { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.id-qr-code { width: 200px; height: 200px; }
.id-qr-code svg { width: 100%; height: 100%; display: block; }

/* ── Emergency ─────────────────────────────────────────────────────────────────── */
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:disabled { opacity: 0.6; }
.emg-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.emg-card-danger { border-color: #f0c5c0; background: #fdf3f2; }
.emg-lead { margin: 0 0 8px; font-size: 15px; }
.emg-list { margin: 0 0 12px; padding-left: 20px; }
.emg-list li { margin: 4px 0; }
.emg-warn { font-weight: 700; color: var(--danger); margin: 12px 0; }
.emg-card .btn-danger { margin-top: 4px; }
.emg-card-active { border-color: var(--danger); border-width: 2px; }
.emg-active-head { font-size: 18px; font-weight: 800; color: var(--danger); margin: 0 0 6px; }
.emg-call-lead { font-weight: 700; margin: 14px 0 8px; }
.emg-contacts { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.emg-contact { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.emg-c-role { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.emg-c-name { font-size: 15px; font-weight: 700; }
.emg-call { display: inline-flex; align-items: center; gap: 6px; background: var(--danger); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.emg-remind { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.emg-remind p { margin: 0 0 10px; }

/* ── Messages / notifications ──────────────────────────────────────────────────── */
/* Unread → the envelope flashes (emoji can't recolour, so we pulse a ring + the badge). */
.iconbtn.has-unread { background: rgba(255,255,255,0.12); animation: mailPulse 1.3s ease-in-out infinite; }
@keyframes mailPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,120,100,0); } 50% { box-shadow: 0 0 0 3px rgba(255,120,100,0.55); } }
.has-unread .badge { animation: badgePulse 1.2s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.28); } }

.msg-modal { position: fixed; inset: 0; z-index: 80; background: rgba(20,23,50,0.78); display: flex; align-items: center; justify-content: center; padding: 20px; }
.msg-modal-card { background: var(--panel); border-radius: var(--radius); padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); max-width: 420px; width: 100%; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.msg-modal-ico { font-size: 44px; display: block; }
.msg-modal-pri { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--danger); }
.msg-modal-card h2 { margin: 10px 0 8px; font-size: 20px; }
.msg-modal-card p { margin: 0 0 12px; white-space: pre-wrap; }
.msg-modal-card .muted { font-size: 12px; }

.msg-inbox { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg-empty { padding: 24px; text-align: center; }
.msg-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.msg-item.msg-unread { border-left: 4px solid var(--accent); }
.msg-item-head { display: flex; align-items: center; gap: 8px; }
.msg-item-title { font-weight: 700; font-size: 15px; }
.msg-pri-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; background: var(--danger); padding: 2px 7px; border-radius: 999px; }
.msg-item-body { margin: 6px 0; font-size: 14px; white-space: pre-wrap; }
.msg-item-meta { font-size: 12px; color: var(--muted); }

/* ── Event reporting overlay ───────────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; }
.overlay-bar { position: sticky; top: 0; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 10px 10px; background: var(--accent-dark); color: #fff; }
.overlay-bar h2 { flex: 1; margin: 0; font-size: 18px; text-align: center; }
.overlay-bar .link { color: #fff; }
.overlay-bar .iconbtn { width: 36px; height: 36px; }
.overlay-body { flex: 1; overflow-y: auto; padding: 16px 16px 48px; max-width: 640px; width: 100%; margin: 0 auto; -webkit-overflow-scrolling: touch; }

/* ── Dynamic question fields ───────────────────────────────────────────────────── */
.q-field { margin-bottom: 18px; }
.q-field.q-hidden { display: none; }
.q-conditional { border-left: 3px solid var(--accent-soft); padding-left: 12px; margin-left: 2px; }
.q-missing { border-left: 3px solid var(--danger); padding-left: 12px; margin-left: 2px; }
.q-missing .q-label { color: var(--danger); }
.q-missing .q-input input, .q-missing .q-input textarea, .q-missing .q-input select { border-color: var(--danger); }
.q-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.q-num { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; margin-right: 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; vertical-align: 1px; }
.q-input .q-ctl { width: 100%; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-weight: 600; cursor: pointer; }
.seg-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chk { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; }
.chk input { width: 20px; height: 20px; }
