/* Public pages (cover page + Get help now) — design doc §15, 25 Oct 2026.
   Same black-and-white theme and colour rules as the app: neutral UI, teal/gold only for block edges
   and lines, red only for emergencies. Light + dark (follows the device or the app's switch). */
:root {
  --paper: #F4F4F4; --panel: #FFFFFF; --ink: #111111; --ink-soft: #555555; --line: #D4D4D4;
  --teal: #3E6259; --gold: #B8874F; --danger: #A3423A; --ok: #2F6B45;
  --accent: #111111; --accent-ink: #FFFFFF; --tint: color-mix(in srgb, #000 5%, #fff);
  --page-max: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A0A0A; --panel: #161616; --ink: #F2F2F2; --ink-soft: #A6A6A6; --line: #333333;
    --teal: #6FA396; --gold: #D3A468; --ok: #7FBE93; --danger: #B5483F;
    --accent: #F2F2F2; --accent-ink: #000000; --tint: color-mix(in srgb, #fff 6%, #161616);
  }
}
:root[data-theme="dark"] {
  --paper: #0A0A0A; --panel: #161616; --ink: #F2F2F2; --ink-soft: #A6A6A6; --line: #333333;
  --teal: #6FA396; --gold: #D3A468; --ok: #7FBE93; --danger: #B5483F;
  --accent: #F2F2F2; --accent-ink: #000000; --tint: color-mix(in srgb, #fff 6%, #161616);
}
* { box-sizing: border-box; }
html { height: 100%; }
body.pub {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); line-height: 1.45;
  font-family: 'Noto Sans', 'Noto Sans Sinhala', system-ui, sans-serif;
}
.si { font-family: 'Noto Sans Sinhala', 'Noto Sans', system-ui, sans-serif; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- top bar ---------- */
.pub-top { background: #000; color: #fff; display: flex; align-items: center; gap: 16px; padding: 10px max(20px, calc((100% - var(--page-max)) / 2 + 20px)); border-bottom: 1px solid var(--line); }
.pub-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; min-width: 0; }
.pub-emblem { width: 64px; height: 64px; flex: none; }
.pub-brand-text { display: flex; flex-direction: column; min-width: 0; }
.pub-brand-name { font-size: 1.4rem; font-weight: 700; line-height: 1.15; }
.pub-brand-name .brand-si { font-family: 'Noto Sans Sinhala', 'Noto Sans', sans-serif; margin-right: 6px; }
.pub-brand-tag { font-size: 0.85rem; opacity: 0.85; }
.pub-top-link { margin-left: auto; flex: none; color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: 700; border: 1px solid rgba(255,255,255,0.7); border-radius: 8px; padding: 7px 12px; }
.pub-top-link:hover { background: rgba(255,255,255,0.12); }

/* ---------- emergency bar (red = emergency only) ---------- */
.emg-bar { background: var(--danger); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px max(20px, calc((100% - var(--page-max)) / 2 + 20px)); }
.emg-label { font-weight: 700; font-size: 0.85rem; }
.emg-label .si { margin-left: 6px; font-weight: 500; opacity: 0.9; }
.emg-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; }
.emg-call { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.8); border-radius: 999px; padding: 4px 11px 4px 8px; font-size: 0.82rem; }
.emg-call:hover { background: rgba(255,255,255,0.14); }
.emg-icon { width: 15px; height: 15px; }
.emg-num { font-weight: 700; font-size: 0.95rem; }
.emg-name { opacity: 0.92; }

/* ---------- footer ---------- */
.pub-foot { padding: 10px 20px 14px; font-size: 0.76rem; color: var(--ink-soft); text-align: center; }
.pub-foot p { margin: 2px auto; max-width: 900px; }

/* ---------- cover page: three doors ---------- */
.doors { flex: 1; width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 28px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.door { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 14px; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.door-help { border-top-color: var(--gold); }
.door-icon { width: 52px; height: 52px; color: var(--ink); }
.door-svg { width: 52px; height: 52px; }
.door h2 { margin: 4px 0 0; font-size: 1.35rem; line-height: 1.2; }
.door h2 .si, .door p .si { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); margin-top: 3px; }
.door p { margin: 0; color: var(--ink-soft); flex: 1; }
.door-btn { display: block; text-align: center; text-decoration: none; font-weight: 700; font-size: 1rem; padding: 12px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); cursor: pointer; }
.door-btn:hover:not(:disabled) { filter: brightness(1.15); }
.door-btn-2 { background: transparent; color: var(--ink); }
.door-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.door-soon { align-self: flex-start; font-size: 0.78rem; font-weight: 700; border: 1px solid var(--gold); border-radius: 999px; padding: 2px 10px; }
.door-soon .si { font-weight: 500; margin-left: 4px; }
@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; padding: 18px 16px; gap: 14px; }
  .door-help { order: -1; }          /* phones: Get help now first */
  .door { padding: 20px 18px; }
}

/* ---------- Get help now: 3 × 3 tiles ---------- */
.sd { flex: 1; width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 14px 20px 6px; display: flex; flex-direction: column; min-height: 0; }
.sd-head { margin-bottom: 10px; }
.sd-title { margin: 0; font-size: 1.35rem; }
.sd-title .si, .sd-lead .si { margin-left: 8px; font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.sd-lead { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.sd-viewport { flex: 1; min-height: 330px; display: flex; }
.sd-track { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sd-track::-webkit-scrollbar { display: none; }
.sd-page { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(88px, 1fr)); gap: 12px; padding: 2px; }
.sd-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px;
  padding: 10px 8px; cursor: pointer; min-width: 0;
}
.sd-tile:hover { background: var(--tint); }
.sd-tile[data-tile="crisis"] { border-left-color: var(--danger); }
.sd-tile-icon { width: clamp(28px, 6vh, 54px); height: clamp(28px, 6vh, 54px); flex: none; }
.sd-tile-en { font-weight: 700; font-size: clamp(0.74rem, 0.55rem + 0.9vh + 0.25vw, 1.08rem); line-height: 1.2; }
.sd-tile-si { font-size: clamp(0.66rem, 0.5rem + 0.7vh, 0.86rem); color: var(--ink-soft); line-height: 1.25; }
.sd-nav { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0 2px; }
.sd-nav-btn { width: 40px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.sd-nav-btn:disabled { opacity: 0.35; cursor: default; }
.sd-dots { display: flex; gap: 8px; }
.sd-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--ink-soft); background: transparent; padding: 0; cursor: pointer; }
.sd-dot.on { background: var(--ink); border-color: var(--ink); }
.sd-page-no { font-size: 0.78rem; color: var(--ink-soft); min-width: 86px; text-align: center; }

/* ---------- a category: tile left (1/3), services right (2/3) ---------- */
.sd-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; padding-bottom: 12px; }
.sd-left { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 12px; }
.sd-back { align-self: flex-start; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 7px 12px; cursor: pointer; font-weight: 700; font-size: 0.85rem; }
.sd-back .si { margin-left: 6px; font-weight: 500; color: var(--ink-soft); font-size: 0.78rem; }
.sd-selected { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 190px;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 18px 14px; }
.sd-selected[data-tile="crisis"] { border-left-color: var(--danger); }
.sd-selected .sd-tile-icon { width: 60px; height: 60px; }
.sd-selected .sd-tile-en { font-size: 1.15rem; }
.sd-others-wrap summary { cursor: pointer; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); padding: 4px 0; }
.sd-others-wrap summary .si { margin-left: 6px; font-weight: 500; }
.sd-others { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.sd-other { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); padding: 7px 4px; cursor: pointer; font-size: 0.85rem; }
.sd-other:hover { background: var(--tint); }
.sd-other-icon { width: 18px; height: 18px; flex: none; }
.sd-cat-title { margin: 0; font-size: 1.4rem; }
.sd-cat-title .si { display: block; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.sd-intro { margin: 6px 0 14px; color: var(--ink-soft); }
.sd-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sd-card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 14px 16px; }
.sd-card.crisis { border-left-color: var(--danger); }
.sd-card-name { margin: 0; font-size: 1.05rem; }
.sd-card-about { margin: 4px 0 10px; font-size: 0.9rem; }
.sd-calls { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-call { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 7px 14px 7px 10px; font-size: 0.85rem; }
.sd-call:hover { filter: brightness(1.15); }
.sd-call-icon { width: 16px; height: 16px; }
.sd-call-num { font-weight: 700; font-size: 1rem; letter-spacing: 0.2px; }
.sd-call-label { opacity: 0.85; }
.sd-meta { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 10px 0 0; font-size: 0.85rem; }
.sd-meta dt { color: var(--ink-soft); }
.sd-meta dd { margin: 0; }
.sd-links { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85rem; }
.sd-link { overflow-wrap: anywhere; }
.sd-note { margin: 8px 0 0; font-size: 0.82rem; border-left: 3px solid var(--gold); padding-left: 8px; }
.sd-checked { margin: 10px 0 0; font-size: 0.74rem; color: var(--gold); }
.sd-checked.ok { color: var(--ok); }
.sd-source { color: var(--ink-soft); }
.sd-empty p { margin: 0 0 8px; }
.sd-empty .si { display: block; color: var(--ink-soft); font-size: 0.85rem; }
.sd-loading, .sd-noscript { padding: 20px; color: var(--ink-soft); }

/* view transition: the chosen tile slides to the left */
::view-transition-group(sd-selected) { animation-duration: 0.35s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---------- phones ---------- */
@media (max-width: 700px) {
  .pub-top { padding: 8px 14px; gap: 10px; }
  .pub-emblem { width: 44px; height: 44px; }
  .pub-brand-name { font-size: 1.1rem; }
  .pub-brand-tag { font-size: 0.74rem; }
  .pub-top-link { font-size: 0.75rem; padding: 6px 9px; }
  .emg-bar { padding: 7px 14px; gap: 6px; }
  .emg-name { display: none; }
  .sd { padding: 10px 12px 4px; }
  .sd-page { gap: 8px; grid-template-rows: repeat(3, minmax(96px, 1fr)); }
  .sd-tile { padding: 8px 4px; border-radius: 10px; }
  .sd-tile-si { display: none; }
  .sd-tile-en { font-size: clamp(0.7rem, 0.5rem + 0.8vh, 0.86rem); overflow-wrap: anywhere; hyphens: auto; }
  .sd-tile-icon { width: 30px; height: 30px; }
  .sd-detail { grid-template-columns: 1fr; gap: 14px; }
  .sd-left { position: static; }
  .sd-selected { display: none; }   /* phones: the heading below names the category (no duplicate band) */
  .sd-cat-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; border-left: 4px solid var(--teal); padding-left: 10px; }
  .sd-detail[data-crisis="1"] .sd-cat-title { border-left-color: var(--danger); }
  .sd-cat-title .si { flex-basis: 100%; }
}
@media (max-width: 420px) { .pub-brand-tag { display: none; } }
@media print { .emg-bar { background: none; color: #000; border: 1px solid #000; } .emg-call { color: #000; border-color: #000; } .pub-top { background: none; color: #000; } .sd-nav, .sd-back, .sd-others-wrap, .pub-top-link { display: none; } }

/* ---------- Find a counsellor (find.html) — design doc §15.1 ---------- */
.fd { flex: 1; width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 16px 20px 10px; }
.fd-head { margin-bottom: 12px; }
.fd-lead { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.92rem; max-width: 900px; }
.fd-lead .si, .fd-soon .si { display: block; font-size: 0.8rem; margin-top: 2px; }
.fd-soon { margin: 8px 0 0; display: inline-block; font-size: 0.8rem; font-weight: 700; border: 1px solid var(--gold); border-radius: 999px; padding: 3px 12px; }
.fd-soon .si { display: inline; margin-left: 6px; font-weight: 500; }
.fd-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 12px; padding: 12px 14px; }
.fd-filter { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fd-filter-label { font-size: 0.78rem; font-weight: 700; }
.fd-filter-label .si { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.72rem; }
.fd-select, .fd-search { width: 100%; font: inherit; font-size: 0.88rem; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); min-width: 0; }
.fd-bar { display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; }
.fd-count { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.fd-clear { margin-left: auto; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 5px 12px; cursor: pointer; font-size: 0.82rem; font-weight: 700; }
.fd-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; container-type: inline-size; }
.fd-empty { grid-column: 1 / -1; background: var(--panel); border: 1px dashed var(--line); border-radius: 12px; padding: 22px 20px; color: var(--ink-soft); }
.fd-empty strong { color: var(--ink); }
.fd-help { font-size: 0.85rem; color: var(--ink-soft); margin: 16px 0 4px; }
.fd-error { padding: 10px 0; }
.fc-card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; scroll-margin-top: 12px; }
.fc-card.fc-target { outline: 2px solid var(--gold); outline-offset: 2px; }
.fc-head { display: flex; gap: 12px; align-items: center; }
.fc-avatar { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; color: var(--ink-soft); }
.fc-avatar-icon { width: 26px; height: 26px; }
.fc-head-text { min-width: 0; }
.fc-name { margin: 0; font-size: 1.12rem; overflow-wrap: anywhere; }
.fc-prof { margin: 1px 0 0; font-size: 0.86rem; font-weight: 700; color: var(--ink-soft); }
.fc-prof .si { margin-left: 6px; font-weight: 500; font-size: 0.78rem; }
.fc-quals { margin: 0; padding-left: 18px; font-size: 0.85rem; }
.fc-about { margin: 0; font-size: 0.9rem; white-space: pre-line; overflow-wrap: anywhere; }
.fc-k { display: block; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.fc-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.fc-chips li { font-size: 0.78rem; border: 1px solid var(--line); background: var(--tint); border-radius: 999px; padding: 2px 9px; }
.fc-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: 0.85rem; align-items: start; }
.fc-meta dt { color: var(--ink-soft); }
.fc-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.fc-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.fc-btn { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px; padding: 7px 14px 7px 10px; font-size: 0.86rem; font-weight: 700; max-width: 100%; }
.fc-btn-2 { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.fc-btn:hover { filter: brightness(1.15); }
.fc-btn-icon { width: 16px; height: 16px; flex: none; }
.fc-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fc-foot { margin: 2px 0 0; font-size: 0.75rem; color: var(--ink-soft); }
.fc-who, .fc-what { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fc-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fc-more { align-self: flex-start; background: none; border: 0; padding: 0; margin-top: -4px; color: var(--ink); text-decoration: underline; cursor: pointer; font-size: 0.8rem; }
/* Wide list (find.html): one rectangular card per row — who · what & how · contact */
@container (min-width: 760px) {
  .fc-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 200px; column-gap: 24px; row-gap: 6px; padding: 14px 18px; align-items: start; }
  .fc-what { border-left: 1px solid var(--line); padding-left: 20px; }
  .fc-contact { flex-direction: column; align-items: stretch; margin-top: 0; }
  .fc-contact .fc-btn { justify-content: flex-start; }
  .fc-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
}
@media (max-width: 1000px) { .fd-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .fd { padding: 12px 16px 8px; }
  .fd-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
}

/* ---------- My listing (listing.html, behind the login) ---------- */
.ls-head { margin-bottom: 12px; }
.ls-status { border: 1px solid var(--line); border-left: 4px solid var(--teal); background: var(--panel); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: 0.9rem; }
.ls-status.ok { border-left-color: var(--ok); }
.ls-status.warn { border-left-color: var(--gold); }
.ls-status p { margin: 0; }
.ls-status p + p { margin-top: 6px; }
.ls-note { white-space: pre-line; }
.ls-visibility { margin: 0 0 12px; }
.ls-inline-msg { margin-left: 8px; font-size: 0.8rem; color: var(--ink-soft); }
.ls-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.ls-side { position: sticky; top: 12px; }
.ls-side-title { margin: 0 0 8px; font-size: 1rem; }
.ls-side-title .si { margin-left: 6px; font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.ls-preview { grid-template-columns: 1fr; }
.ls-form { display: flex; flex-direction: column; gap: 14px; }
.ls-set { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 12px 16px 14px; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ls-set[hidden] { display: none; }
.ls-set legend { font-weight: 700; padding: 0 6px; }
.ls-set legend .si { margin-left: 6px; font-weight: 500; font-size: 0.8rem; color: var(--ink-soft); }
.ls-field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.ls-field label .si { margin-left: 6px; font-weight: 500; font-size: 0.78rem; color: var(--ink-soft); }
.ls-field input, .ls-field select, .ls-field textarea { width: 100%; font: inherit; font-size: 0.92rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.ls-field textarea { resize: vertical; }
.ls-hint { margin: 4px 0 0; font-size: 0.78rem; color: var(--ink-soft); }
.ls-count { white-space: nowrap; }
.ls-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ls-checks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.ls-districts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ls-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.88rem; cursor: pointer; }
.ls-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.ls-check .si { display: block; font-size: 0.74rem; color: var(--ink-soft); }
.ls-consent { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.ls-msg:empty { display: none; }
.ls-msg { border-radius: 8px; padding: 9px 12px; font-size: 0.88rem; border: 1px solid var(--line); }
.ls-msg.err { border-color: var(--danger); color: var(--danger); }
.ls-msg.ok { border-color: var(--ok); color: var(--ok); }
.ls-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ls-btn { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); cursor: pointer; }
.ls-btn .si { display: block; font-size: 0.72rem; font-weight: 500; opacity: 0.85; }
.ls-btn-2 { background: transparent; color: var(--ink); }
.ls-btn:disabled { opacity: 0.5; cursor: wait; }
.ls-foot { margin: 18px 0 6px; font-size: 0.88rem; }
@media (max-width: 860px) {
  .ls-cols { grid-template-columns: 1fr; }
  .ls-side { position: static; }
  .ls-districts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .ls-checks-grid, .ls-districts { grid-template-columns: 1fr; } }

/* idle-logout warning (same as the account pages) */
.idle-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.idle-backdrop[hidden] { display: none; }
.idle-box { background: #fff; color: #000; border: 2px solid #000; border-radius: 10px; max-width: 420px; width: 100%; padding: 22px 22px 18px; font-family: 'Noto Sans', 'Noto Sans Sinhala', system-ui, sans-serif; }
.idle-box h2 { margin: 0 0 10px; font-size: 1.15rem; }
.idle-box .si { display: block; font-family: 'Noto Sans Sinhala', 'Noto Sans', system-ui, sans-serif; font-size: 0.8em; font-weight: 500; color: #4a4a4a; margin-top: 2px; }
.idle-box p { font-size: 0.9rem; margin: 0 0 10px; }
.idle-note { color: #4a4a4a; font-size: 0.8rem !important; }
.idle-stay { width: 100%; font: inherit; font-weight: 700; padding: 10px; border-radius: 6px; background: #000; color: #fff; border: 1px solid #000; cursor: pointer; }
.idle-stay .si { color: rgba(255,255,255,0.8) !important; }
