:root {
  --ink: #16191c; --muted: #5d6368; --paper: #f3f4f1; --card: #ffffff; --line: #d9dcd7;
  --road: #23272b; --lane: #f2b705; --green: #1f6f4a; --red: #a3261b; --blue: #2342c9;
  --display: "Saira Condensed", "Noto Sans Devanagari", "Arial Narrow", Arial, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 1rem; line-height: 1.6; }
:lang(hi) body, body:lang(hi) { line-height: 1.75; }
a { color: var(--green); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top { background: var(--road); color: #fff; position: sticky; top: 0; z-index: 10; }
.top-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 6px; }
.plate { display: inline-block; background: #fdfdfb; color: #141414; border: 2px solid #111; border-radius: 6px; padding: 0 10px;
  font-family: "Saira Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: .03em; }
.brand { text-decoration: none; }
.lang-btn { background: transparent; color: #fff; border: 1px solid #5a6066; border-radius: 999px; padding: 4px 14px; font: 600 .95rem var(--text); cursor: pointer; }
.tabs { display: flex; gap: 4px; }
.tabs a { flex: 1; text-align: center; color: #cfd3d6; text-decoration: none; padding: 10px 4px 9px; font-family: var(--display); font-weight: 700; font-size: 1.08rem; border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--lane); }

main { padding-top: 18px; padding-bottom: 32px; min-height: 60vh; outline: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .4em; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { line-height: 1.4; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; margin-top: 1.2em; }
h3 { font-size: 1.15rem; }
.lead { color: var(--muted); margin: 0 0 1rem; }

.btn { display: inline-block; border: 0; border-radius: 10px; padding: 10px 16px; font: 600 1rem var(--text); cursor: pointer; text-decoration: none; text-align: center; }
.btn.primary { background: var(--green); color: #fff; }
.btn.gold { background: var(--lane); color: #16191c; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.small { padding: 6px 12px; font-size: .92rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.block { display: block; width: 100%; }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; font: .9rem var(--text); cursor: pointer; padding: 6px; }

.filters { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.filters label.lbl { display: block; font-weight: 600; font-size: .9rem; margin: 6px 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font: .9rem var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--road); color: #fff; border-color: var(--road); }
.search { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: 1rem var(--text); margin-top: 8px; }
.count { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }

.pillar { margin-top: 18px; }
.pillar > h2 { font-size: 1.35rem; border-bottom: 2px solid var(--road); padding-bottom: 4px; }
.sub h3 { color: var(--muted); font-size: 1.05rem; margin: 14px 0 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; }
.card.doing { border-left-color: var(--lane); background: #fffdf3; }
.card.done, .card.already { border-left-color: var(--green); }
.card h4 { margin: 0 0 4px; font-size: 1.05rem; }
.card p { margin: 0 0 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.tag { background: #eef0ec; border-radius: 6px; padding: 1px 8px; color: var(--ink); }
.tag.k-quick { background: #e6f0fb; } .tag.k-bigger { background: #fbefdc; } .tag.k-habit { background: #e5f3ea; }
.tag.st { background: var(--road); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.slots { display: grid; gap: 10px; }
.slot { background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; }
.slot.full { border-style: solid; border-left: 4px solid var(--lane); }
.slot .kind { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.slot .when { color: var(--muted); font-size: .9rem; margin: 4px 0 8px; }
.stats { display: flex; gap: 10px; margin: 8px 0 4px; }
.stat { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 1.8rem; line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
ul.plain li .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: .9rem; }

.form label { display: block; margin: 12px 0 4px; font-weight: 600; }
.form input[type=text], .form select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: 1rem var(--text); background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-weight: 400 !important; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.err { color: var(--red); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.benefits { padding-left: 1.2em; margin: 8px 0 14px; }
.code { font-family: var(--display); font-size: 2rem; letter-spacing: .18em; text-align: center; margin: 6px 0 10px; }
#qr { display: flex; justify-content: center; margin: 10px 0; }

.sheet { position: fixed; inset: 0; background: rgba(10, 12, 14, .55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { background: var(--paper); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 18px 16px 24px; }
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-card { border-radius: 16px; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; background: var(--road); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; max-width: 92vw; }
.foot { color: var(--muted); font-size: .85rem; padding-top: 10px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }
.foot .op { display: block; margin-top: 4px; }
.empty { text-align: center; color: var(--muted); padding: 18px 8px; }

ol.board { list-style: none; padding: 0; margin: 0; }
ol.board li { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; }
ol.board li.me { border-color: var(--lane); background: #fffdf3; }
ol.board .rk { font-family: var(--display); font-weight: 700; font-size: 1.2rem; width: 2em; text-align: center; color: var(--muted); }
ol.board .nm { flex: 1; min-width: 0; }
ol.board .nm small { display: block; color: var(--muted); font-size: .82rem; }
ol.board b { font-family: var(--display); font-size: 1.3rem; }
