:root {
  --bg: #0a0a0a;
  --card: #151515;
  --card2: #1d1d1d;
  --line: #2a2a2a;
  --txt: #f2f2f2;
  --dim: #9a9a9a;
  --gold: #ffd23e;
  --gold-dim: #8a7320;
  --green: #5fd38a;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 86px; min-height: 100vh;
  background-image: radial-gradient(1200px 400px at 50% -140px, rgba(255,210,62,0.10), transparent 70%);
}
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: baseline; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 16px) 20px 14px;
  background: linear-gradient(#0a0a0aee, #0a0a0ab0); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; }
.bolt { color: var(--gold); text-shadow: 0 0 14px rgba(255,210,62,0.6); }
.tag { color: var(--dim); font-size: 13px; }

main { padding: 18px 16px 10px; max-width: 640px; margin: 0 auto; }

.hero { margin: 4px 2px 18px; }
.hero h1 { font-size: 20px; margin: 0 0 6px; line-height: 1.25; }
.hero p { color: var(--dim); font-size: 14px; margin: 0; line-height: 1.5; }

.progress-wrap { margin: 2px 2px 18px; }
.progress-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.progress-bar { height: 8px; background: var(--card2); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); transition: width .35s ease; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; margin-bottom: 12px;
}
.check-row { display: flex; align-items: flex-start; gap: 13px; cursor: pointer; }
.check-row .box {
  flex: 0 0 26px; width: 26px; height: 26px; margin-top: 2px;
  border: 2px solid var(--line); border-radius: 8px;
  display: grid; place-items: center; font-size: 15px; color: transparent;
  transition: all .15s ease;
}
.check-row.done .box { background: var(--green); border-color: var(--green); color: #0a0a0a; }
.check-row .meta { flex: 1; }
.check-row .t { font-weight: 650; font-size: 15px; }
.check-row.done .t { color: var(--dim); text-decoration: line-through; }
.check-row .d { color: var(--dim); font-size: 13px; margin-top: 3px; line-height: 1.45; }
.pill { font-size: 11px; color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }

.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--dim); margin: 22px 4px 10px; }

.principle { }
.principle .num { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: 1px; }
.principle h3 { margin: 4px 0 8px; font-size: 17px; line-height: 1.3; }
.principle p { color: var(--dim); font-size: 14px; line-height: 1.55; margin: 0 0 10px; }
.principle ul { margin: 0; padding-left: 18px; }
.principle li { color: var(--txt); font-size: 14px; line-height: 1.55; margin-bottom: 4px; }

.rem-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.rem-row:last-child { border-bottom: 0; }
.rem-row input[type=time] {
  background: var(--card2); color: var(--txt); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px; font-size: 15px; font-family: inherit;
}
.rem-row .rtxt { flex: 1; min-width: 0; }
.rem-row .rtxt .rt { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rem-row .rtxt .rb { color: var(--dim); font-size: 12px; margin-top: 2px; }

.switch { position: relative; width: 46px; height: 27px; flex: 0 0 46px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slide { position: absolute; inset: 0; background: var(--card2); border: 1px solid var(--line); border-radius: 99px; transition: .2s; }
.slide:before { content: ""; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; background: #888; border-radius: 50%; transition: .2s; }
.switch input:checked + .slide { background: rgba(255,210,62,0.25); border-color: var(--gold-dim); }
.switch input:checked + .slide:before { transform: translateX(19px); background: var(--gold); }

.btn {
  display: block; width: 100%; text-align: center;
  background: var(--gold); color: #0a0a0a; font-weight: 750; font-size: 15px;
  border: none; border-radius: 14px; padding: 15px; margin: 14px 0 6px; cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--gold); border: 1px solid var(--gold-dim); }
.btn:disabled { opacity: .5; }

.note { color: var(--dim); font-size: 12.5px; line-height: 1.5; margin: 8px 2px; }
.status { font-size: 13px; padding: 10px 12px; border-radius: 10px; margin: 6px 0; }
.status.ok { background: rgba(95,211,138,0.12); color: var(--green); border: 1px solid rgba(95,211,138,0.3); }
.status.warn { background: rgba(255,210,62,0.1); color: var(--gold); border: 1px solid var(--gold-dim); }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; background: #0c0c0cf2; backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1; background: none; border: none; color: var(--dim);
  font-size: 11px; font-family: inherit; padding: 10px 0 12px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.tab span { font-size: 19px; line-height: 1; }
.tab.active { color: var(--gold); }
.foot { text-align: center; color: #555; font-size: 11px; margin: 20px 0 6px; }
.foot a { color: #777; }
