:root {
  --bg: #f6f5f1; --card: #ffffff; --ink: #1c1d1f; --muted: #5e6166; --line: #dedcd5;
  --brand: #0f5c4d; --brand-ink: #ffffff; --accent: #b5401f; --ok: #1f7a3a; --chip: #eef3f1;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", "Noto Sans Telugu", sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 18px; margin: 0 0 12px; }
.tagline { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.langs button { border: 1px solid var(--line); background: var(--card); padding: 4px 10px;
  border-radius: 999px; font-size: 14px; cursor: pointer; }
.langs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.langs button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.big { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--card);
  border-radius: 12px; padding: 18px 16px; margin-bottom: 12px; cursor: pointer; font-size: 18px; font-weight: 600; color: var(--ink); }
.big small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 4px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); }
textarea { min-height: 72px; }
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 12px 18px; font: inherit; font-weight: 600;
  background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none; text-align: center; }
.btn.wide { display: block; width: 100%; margin-top: 16px; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn.call { background: var(--ok); font-size: 20px; }
.link { background: none; border: 0; color: var(--brand); font: inherit; padding: 8px 0; cursor: pointer; text-decoration: underline; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 500; }
.chips input { display: none; }
.status { font-size: 14px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--chip); }
.s-complete { background: #e3f3e7; color: var(--ok); }
.s-open, .s-mine { background: #e6eef9; color: #1d4f91; }
.s-refused, .s-wrong_number, .s-exhausted { background: #fbe9e3; color: var(--accent); }
.chips span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--chip); cursor: pointer; font-size: 15px; }
.chips input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.say { background: #fff8e8; border-left: 4px solid #d9a521; padding: 10px 12px; border-radius: 6px; margin: 12px 0 8px; }
.muted { color: var(--muted); font-size: 14px; }
.blo-name { font-size: 20px; font-weight: 700; margin: 2px 0 4px; }
.booth { font-size: 18px; font-weight: 600; margin: 2px 0; }
.badge { display: inline-block; background: #fbe9e3; color: var(--accent); border-radius: 6px; padding: 2px 8px; font-size: 14px; font-weight: 600; }
.err { background: #fde8e8; color: #8a1c1c; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.hidden { display: none !important; }
.aware summary { cursor: pointer; list-style: none; }
.aware summary::-webkit-details-marker { display: none; }
.aware summary strong::before { content: "▸ "; }
.aware[open] summary strong::before { content: "▾ "; }
.aware h3 { font-size: 16px; margin: 16px 0 6px; }
.aware ul { margin: 4px 0 0; padding-left: 20px; }
.aware li { margin: 3px 0; }
.aware-date { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: #fff8e8; border-left: 4px solid #d9a521; font-weight: 600; }
.aware-key { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #e3f3e7; color: #14532d; font-weight: 600; }
.phase { display: flex; gap: 12px; border-top: 1px solid var(--line); padding: 10px 0; }
.phase-n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 700; }
@media (prefers-color-scheme: dark) { .aware-key { background: #1d3a26; color: #bfe8cb; } .aware-date { background: #2e2a1d; } }
.list-item { border-top: 1px solid var(--line); padding: 10px 0; }
.who { font-size: 14px; color: var(--muted); }
#busy { position: fixed; inset: 0; background: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #151716; --card: #1f2221; --ink: #ecebe7; --muted: #a5a8a6; --line: #343836; --chip: #2a2f2d; }
  input, select, textarea { background: #181a19; color: var(--ink); }
  .say { background: #2e2a1d; }
  .badge { background: #3a2520; color: #f0a48c; }
  #busy { background: rgba(0,0,0,.5); }
}
  
