/* =========================================================
   MyHuff prototype — styles
   Brand: blue #76A9F8, orange #FFA12D (from constants/theme.ts + Figma)
   ========================================================= */

:root {
  --blue: #76A9F8;
  --blue-dark: #4F8CEB;
  --blue-soft: #F2F6FE;
  --orange: #FFA12D;
  --orange-dark: #F08C0E;
  --orange-soft: #FFF6EA;
  --ink: #141414;
  --muted: #7A7A7A;
  --faint: #A8A8A8;
  --line: #ECECEC;
  --bg: #FFFFFF;
  --danger: #E5484D;
  --success: #3DB07A;
  --radius: 20px;
  --pill: 30px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #E9EEF6;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }

/* ---------- Stage: panel + device ---------- */
.stage {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 32px;
}

.panel {
  width: 320px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(30, 60, 110, 0.08);
  font-size: 13px;
}
.panel h1 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.panel h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 8px; font-weight: 600; }
.panel p { color: var(--muted); line-height: 1.5; margin-top: 6px; }
.panel .seg { display: flex; background: var(--blue-soft); border-radius: 12px; padding: 4px; gap: 4px; }
.panel .seg button { flex: 1; padding: 8px 6px; border-radius: 9px; font-size: 12px; font-weight: 500; color: var(--muted); }
.panel .seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.panel ol { padding-left: 18px; color: var(--ink); line-height: 1.5; }
.panel ol li { margin-bottom: 6px; }
.panel .jump { display: flex; flex-wrap: wrap; gap: 6px; }
.panel .jump button { padding: 6px 10px; border-radius: 8px; background: #F5F5F5; font-size: 12px; }
.panel .jump button:hover { background: var(--blue-soft); color: var(--blue-dark); }
.panel .reset { margin-top: 20px; width: 100%; padding: 10px; border-radius: 12px; border: 1px solid var(--line); font-weight: 500; }
.panel .reset:hover { border-color: var(--blue); color: var(--blue-dark); }

.device {
  padding: 12px;
  background: #121212;
  border-radius: 64px;
  box-shadow: 0 30px 80px rgba(20, 40, 80, 0.25), inset 0 0 0 2px #333;
}
.phone {
  position: relative;
  width: 393px;
  height: 852px;
  border-radius: 52px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

/* On an actual phone: go full screen, no frame, no panel */
@media (max-width: 520px) {
  .stage { padding: 0; display: block; }
  .panel { display: none; }
  .device { padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .phone { width: 100vw; height: 100dvh; border-radius: 0; }
  .statusbar { display: none !important; }
}
@media (max-width: 900px) and (min-width: 521px) {
  .panel { display: none; }
}

/* ---------- Screen skeleton ---------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.screen.blue { background: var(--blue); }
.statusbar {
  height: 50px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 34px 0 44px;
  font-size: 15px; font-weight: 600;
}
.statusbar .icons { display: flex; gap: 6px; align-items: center; }
.screen.blue .statusbar { color: #fff; }

.content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 16px 28px; scrollbar-width: none; }
.content::-webkit-scrollbar { display: none; }
.content.flush { padding-left: 0; padding-right: 0; }

/* Header */
.hdr { flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 16px 12px; min-height: 72px; }
.hdr h1 { font-size: 20px; font-weight: 500; flex: 1; letter-spacing: -.01em; }
.hdr .sub1 { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hdr .title-wrap { flex: 1; min-width: 0; }
.hdr .title-wrap h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-r { display: flex; gap: 10px; align-items: center; margin-left: auto; }

.ibtn {
  width: 48px; height: 48px; flex: none;
  border: 1px solid var(--line); border-radius: 15px;
  display: grid; place-items: center; position: relative;
  background: #fff; color: #444;
  transition: background .15s;
}
.ibtn:active { background: var(--blue-soft); }
.ibtn.sm { width: 40px; height: 40px; border-radius: 12px; }
.ibtn.plain { border: 0; }
.ibtn .dot { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; }
.ibtn.on { color: var(--orange); }
.avatar {
  width: 48px; height: 48px; border-radius: 15px; flex: none;
  background: var(--blue-soft); color: var(--blue-dark);
  display: grid; place-items: center; font-weight: 600; font-size: 17px;
}

/* Typography */
.greet { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin-top: 18px; }
.sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.lead { color: var(--muted); font-size: 14px; line-height: 1.55; }
.sec { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 14px; }
.sec h3 { font-size: 17px; font-weight: 500; }
.sec .link { color: var(--blue-dark); font-size: 14px; font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; border-radius: var(--pill); width: 100%;
  font-size: 16px; font-weight: 500;
  background: var(--blue); color: #fff;
  transition: transform .08s, opacity .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn.orange { background: var(--orange); }
.btn.soft { background: var(--blue-soft); color: var(--blue-dark); }
.btn.soft-orange { background: var(--orange-soft); color: var(--orange-dark); }
.btn.outline-white { background: transparent; border: 1.5px solid #fff; }
.btn.ghost { background: transparent; color: var(--blue-dark); }
.btn.danger { background: #FDECEC; color: var(--danger); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.textlink { color: var(--blue-dark); font-weight: 500; }
.underline { text-decoration: underline; text-underline-offset: 3px; }

/* Forms */
.field { margin-bottom: 18px; }
.field label { display: block; color: #555; font-size: 14px; margin-bottom: 8px; }
.input {
  width: 100%; height: 54px; border: 1px solid var(--line); border-radius: var(--pill);
  padding: 0 20px; font-size: 16px; outline: none; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: 96px; padding: 14px 20px; border-radius: 20px; resize: none; line-height: 1.45; }
select.input { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23666' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(118,169,248,.15); }
.input.err { border-color: var(--danger); }
.err-msg { color: var(--danger); font-size: 13px; margin-top: 6px; padding-left: 16px; }
.pw-wrap { position: relative; }
.pw-wrap .eye { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); padding: 6px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; padding-left: 16px; }
.alert { background: #FDECEC; color: var(--danger); padding: 12px 16px; border-radius: 14px; font-size: 14px; margin-bottom: 18px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #444; line-height: 1.45; cursor: pointer; }
.check .box { width: 22px; height: 22px; flex: none; border: 1.5px solid #CFCFCF; border-radius: 7px; display: grid; place-items: center; color: #fff; }
.check.on .box { background: var(--blue); border-color: var(--blue); }

/* Choice cards (who is this for) */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; text-align: left;
  display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, background .15s;
}
.choice .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; }
.choice b { font-weight: 600; font-size: 15px; }
.choice span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.choice.on { border-color: var(--blue); background: var(--blue-soft); }
.choice.on .ic { background: var(--blue); color: #fff; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 20px; border: 1px solid var(--line); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 10px; font-size: 12px; font-weight: 500; background: var(--blue-soft); color: var(--blue-dark); }
.tag.orange { background: var(--orange-soft); color: var(--orange-dark); }
.tag.green { background: #E7F6EE; color: #22865A; }

/* ---------- Tab bar ---------- */
.tabbar {
  flex: none; height: 98px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: flex-start; padding: 12px 6px 0;
  background: #fff;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 70px; font-size: 11px; color: #666; }
.tab .tic { width: 56px; height: 52px; border-radius: 16px; display: grid; place-items: center; transition: background .15s, color .15s; }
.tab.on { color: var(--ink); }
.tab.on .tic { background: var(--orange); color: #fff; }

/* ---------- Cards ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  border-radius: 24px; padding: 18px 16px; min-height: 118px; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  transition: transform .1s;
}
.tile:active { transform: scale(.98); }
.tile .t-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.tile b { font-weight: 500; font-size: 16px; }
.tile span { font-size: 14px; line-height: 1.35; }
.tile.c0 { background: var(--blue-soft); } .tile.c0 span { color: var(--muted); } .tile.c0 svg { color: var(--blue); }
.tile.c1 { background: var(--orange); color: #fff; } .tile.c1 span { color: rgba(255,255,255,.88); }
.tile.c2 { background: var(--blue); color: #fff; } .tile.c2 span { color: rgba(255,255,255,.88); }
.tile.c3 { background: var(--orange-soft); } .tile.c3 span { color: var(--muted); } .tile.c3 svg { color: var(--orange); }

.stat { border-radius: 24px; padding: 16px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; text-align: left; }
.stat .t-top { display: flex; justify-content: space-between; font-size: 13px; line-height: 1.3; gap: 8px; }
.stat .num { font-size: 40px; font-weight: 500; letter-spacing: -.02em; }
.stat .num small { font-size: 15px; font-weight: 400; opacity: .85; margin-left: 4px; }
.stat.o { background: var(--orange); } .stat.b { background: var(--blue); }

/* Reminder rows */
.rem {
  display: flex; align-items: center; gap: 12px;
  background: var(--orange-soft); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  transition: opacity .2s, background .2s;
}
.rem .ric { width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--orange-dark); flex: none; }
.rem .rbody { flex: 1; min-width: 0; }
.rem b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rem .time { color: var(--blue-dark); font-size: 14px; margin-top: 3px; display: block; }
.rem .rep { color: var(--faint); font-size: 12px; margin-left: 8px; display: inline-flex; vertical-align: -1px; }
.tick { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1.5px solid #E0E0E0; display: grid; place-items: center; color: #fff; flex: none; transition: all .15s; }
.rem.done { background: #F6F6F6; }
.rem.done b { text-decoration: line-through; color: var(--faint); }
.rem.done .ric { color: var(--faint); }
.rem.done .tick { background: var(--success); border-color: var(--success); }
.rem.missed .time { color: var(--danger); }

/* Huff rows */
.huff { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; transition: background .15s; }
.huff.boxed { border: 1px solid var(--line); border-radius: 18px; }
.huff.active { background: var(--blue-soft); }
.huff .hbody { flex: 1; min-width: 0; }
.huff b { display: block; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.huff .meta { color: var(--muted); font-size: 14px; margin-top: 4px; display: flex; gap: 12px; align-items: center; }
.huff .meta .n { color: var(--blue-dark); display: inline-flex; gap: 4px; align-items: center; }
.huff .dur { font-weight: 600; color: #555; font-size: 15px; font-variant-numeric: tabular-nums; }
.huff.active .dur { color: var(--blue-dark); }
.play { width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue); background: #fff; flex: none; }
.play.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.month-label { font-size: 13px; color: var(--muted); font-weight: 500; padding: 18px 16px 6px; text-transform: uppercase; letter-spacing: .05em; }

.banner {
  display: flex; align-items: center; gap: 14px; border-radius: 22px; padding: 16px; margin: 6px 16px 10px;
  background: var(--blue); color: #fff; text-align: left; width: calc(100% - 32px);
}
.banner .bic { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; flex: none; }
.banner b { display: block; font-weight: 600; font-size: 16px; }
.banner span { font-size: 13px; opacity: .9; }
.banner.done { background: #E7F6EE; color: #1E7A51; }
.banner.done .bic { background: #fff; }

/* ---------- Calendar ---------- */
.divider { height: 1px; background: var(--line); margin: 0 -16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 14px; }
.cal-head b { font-weight: 500; font-size: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; text-align: center; margin-bottom: 18px; }
.cal .dow { font-size: 14px; color: var(--muted); padding-bottom: 8px; }
.cal .d { position: relative; height: 42px; display: grid; place-items: center; font-size: 15px; }
.cal .d span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.cal .d.today span { color: var(--blue-dark); font-weight: 700; }
.cal .d.sel span { background: var(--blue); color: #fff; font-weight: 500; }
.cal .d.other { color: #CFCFCF; }
.cal .d i { position: absolute; top: 3px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.cal .d.alldone span::after { content: ''; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--success); }
.week { display: grid; grid-template-columns: auto repeat(7, 1fr) auto; align-items: center; gap: 2px; margin: 14px 0 16px; }
.week .wd { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: 12px; position: relative; font-size: 13px; color: var(--muted); }
.week .wd b { font-size: 16px; color: var(--ink); font-weight: 500; }
.week .wd.sel { background: var(--blue); color: #fff; }
.week .wd.sel b { color: #fff; }
.week .wd i { position: absolute; top: 3px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* Empty states */
.empty { text-align: center; padding: 34px 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.empty .eic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.empty b { display: block; color: var(--ink); font-weight: 500; font-size: 16px; margin-bottom: 4px; }

/* ---------- Rating ---------- */
.rating { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rating button { height: 46px; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; color: #555; transition: all .12s; }
.rating button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.scale-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 18px; text-align: left; font-size: 16px; transition: all .12s; }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #CFCFCF; flex: none; display: grid; place-items: center; }
.opt.on { border-color: var(--blue); background: var(--blue-soft); }
.opt.on .radio { border: 7px solid var(--blue); }

/* Check-in summary + chart */
.card { border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.card.soft { background: var(--blue-soft); border: 0; }
.ci-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ci-top b { font-weight: 500; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.ci-vals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ci-vals div { background: #fff; border-radius: 14px; padding: 10px 6px; text-align: center; }
.ci-vals b { display: block; font-size: 18px; font-weight: 600; }
.ci-vals span { font-size: 11px; color: var(--muted); }
.chart-wrap { margin-top: 6px; }
.chart-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.chart-meta b { font-size: 22px; font-weight: 600; }

/* Progress (flows) */
.progress { height: 6px; background: #F0F0F0; border-radius: 3px; overflow: hidden; flex: 1; }
.progress i { display: block; height: 100%; background: var(--blue); border-radius: 3px; transition: width .25s; }
.flow { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; padding: 0 24px 34px; }
.foot { flex: none; padding: 12px 16px 16px; background: #fff; }
.flow .flow-top { display: flex; align-items: center; gap: 16px; padding: 10px 0 0; }
.flow .q { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.flow h2 { font-size: 26px; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 10px; }
.flow .qhint { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.flow .step { color: var(--blue-dark); font-size: 13px; font-weight: 500; margin-bottom: 10px; }

/* ---------- Huff player & recorder ---------- */
.wave { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 110px; margin: 18px 0; }
.wave i { flex: 1; max-width: 5px; border-radius: 3px; background: #E3E3E3; transition: background .1s; }
.wave i.p { background: var(--orange); }
.wave.live i { background: var(--orange); transition: height .09s; }
.player { display: flex; align-items: center; gap: 14px; }
.player .pbtn { width: 46px; height: 46px; border-radius: 13px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.bar { flex: 1; height: 5px; background: #EAEAEA; border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--blue); }
.player .t { font-weight: 600; color: #555; font-variant-numeric: tabular-nums; font-size: 15px; }

.rec { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 0 24px 24px; }
.timer-pill { background: var(--blue); color: #fff; font-weight: 600; padding: 7px 16px; border-radius: 20px; font-variant-numeric: tabular-nums; font-size: 16px; }
.timer-pill.live { background: var(--danger); }
.rec-tip { text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 300px; margin-top: 14px; min-height: 42px; }
.rec .wave { width: 100%; height: 130px; margin: 26px 0; }
.big-btn { width: 128px; height: 128px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; position: relative; transition: transform .1s; }
.big-btn:active { transform: scale(.96); }
.big-btn.rec-on { background: var(--danger); }
.big-btn.rec-on::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid rgba(229,72,77,.3); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }
.cap { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* Article */
.art h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin: 14px 0 8px; }
.art .ameta { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; margin-bottom: 20px; }
.art .abody { font-size: 16px; line-height: 1.65; color: #333; }
.art .abody p { margin-bottom: 16px; }
.art .abody h2 { font-size: 18px; font-weight: 600; margin: 24px 0 10px; color: var(--ink); }
.art .abody ul, .art .abody ol { margin: 0 0 16px 4px; padding-left: 18px; }
.art .abody li { margin-bottom: 8px; }
.art .abody ul li::marker { color: var(--orange); }
.art .abody ol li::marker { color: var(--blue-dark); font-weight: 600; }
.art .callout { background: var(--orange-soft); border-radius: 16px; padding: 14px 16px; font-size: 14px; color: #6A4A1A; margin-bottom: 16px; }
.video { position: relative; height: 196px; border-radius: 20px; background: linear-gradient(135deg, #8DB8F9, #5F95EE); margin: 6px 0 20px; display: grid; place-items: center; color: #fff; overflow: hidden; cursor: pointer; }
.video .vplay { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.28); display: grid; place-items: center; }
.video .vlabel { position: absolute; left: 14px; bottom: 12px; font-size: 13px; font-weight: 500; }
.helpful { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.helpful .chips .chip { padding: 7px 14px; }

/* Lists (articles, settings, notifications) */
.list-row { display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; width: 100%; text-align: left; transition: background .12s; }
.list-row:active { background: var(--blue-soft); }
.list-row + .list-row { border-top: 1px solid #F3F3F3; }
.list-row .lbody { flex: 1; min-width: 0; }
.list-row b { display: block; font-weight: 500; font-size: 15px; }
.list-row span.s { font-size: 13px; color: var(--muted); display: block; margin-top: 3px; }
.list-row .lic { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; flex: none; }
.list-row .chev { color: #C4C4C4; }
.group { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 16px; }
.group-title { font-size: 13px; color: var(--muted); font-weight: 500; margin: 22px 4px 10px; }

.notif { display: flex; gap: 14px; padding: 16px; cursor: pointer; position: relative; }
.notif.unread { background: var(--orange-soft); }
.notif .nic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--blue); }
.notif.k-missed .nic { background: var(--blue); color: #fff; }
.notif.k-reminder .nic { background: var(--orange); color: #fff; }
.notif .nbody { flex: 1; }
.notif b { font-weight: 500; font-size: 15px; display: block; padding-right: 18px; }
.notif p { color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 6px; }
.notif .when { font-size: 12px; color: var(--faint); margin-top: 8px; display: block; text-align: right; }
.notif .udot { position: absolute; right: 16px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.day-h { font-weight: 500; font-size: 16px; padding: 20px 16px 6px; }

.search { position: relative; margin: 16px 0; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 48px; }
.seg2 { display: flex; align-items: center; gap: 6px; }
.seg2 button { padding: 8px 16px; border-radius: 14px; font-size: 15px; color: var(--muted); }
.seg2 button.on { background: var(--blue-soft); color: var(--blue-dark); font-weight: 500; }

/* Toggle */
.toggle { width: 50px; height: 30px; border-radius: 15px; background: #E2E2E2; position: relative; flex: none; transition: background .15s; }
.toggle::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
.toggle.on { background: var(--blue); }
.toggle.on::after { left: 23px; }

/* Profile */
.pcard { display: flex; align-items: center; gap: 16px; background: var(--blue-soft); border-radius: 24px; padding: 18px; margin-top: 6px; }
.pcard .avatar { width: 60px; height: 60px; border-radius: 20px; background: var(--blue); color: #fff; font-size: 24px; }
.pcard b { font-size: 18px; font-weight: 600; display: block; }
.pcard span { color: var(--muted); font-size: 14px; }

/* ---------- Overlays ---------- */
.scrim { position: absolute; inset: 0; background: rgba(20, 20, 20, .38); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .18s; }
.scrim.bottom { align-items: flex-end; padding: 0; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 28px; padding: 24px; width: 100%; animation: pop .2s; }
.scrim.bottom .modal { border-radius: 28px 28px 0 0; max-height: 92%; overflow-y: auto; padding-bottom: 34px; animation: up .25s; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.modal .mh { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.modal h2 { font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.modal .mp { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: #E0E0E0; margin: -10px auto 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.toast {
  position: absolute; left: 16px; right: 16px; bottom: 112px; z-index: 60;
  background: #1D1D1F; color: #fff; border-radius: 18px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: up .25s;
}
.toast.notabs { bottom: 34px; }
.toast .tic { width: 28px; height: 28px; border-radius: 50%; background: var(--success); display: grid; place-items: center; flex: none; }
.toast .tmsg { flex: 1; line-height: 1.35; }
.toast button { color: var(--orange); font-weight: 600; padding: 4px 6px; }

/* Push notification banner (simulated) */
.push {
  position: absolute; left: 10px; right: 10px; top: 54px; z-index: 70;
  background: rgba(250,250,250,.96); backdrop-filter: blur(12px);
  border-radius: 22px; padding: 12px 14px; display: flex; gap: 12px; cursor: pointer;
  box-shadow: 0 12px 34px rgba(0,0,0,.18); animation: drop .35s;
}
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }
.push .pic { width: 38px; height: 38px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; flex: none; }
.push b { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; }
.push b small { font-weight: 400; color: var(--muted); font-size: 12px; }
.push p { font-size: 14px; color: #333; margin-top: 2px; line-height: 1.35; }

/* ---------- Auth ---------- */
.auth { padding: 0 24px 30px; display: flex; flex-direction: column; flex: 1; overflow-y: auto; scrollbar-width: none; }
.auth::-webkit-scrollbar { display: none; }
.wordmark { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; }
.wordmark .wm { font-family: 'Nunito', var(--font); font-weight: 900; font-size: 32px; color: var(--blue); letter-spacing: -.02em; line-height: 1; }
.auth h2 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin: 34px 0 8px; }
.auth .lead { margin-bottom: 26px; }
.privacy { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 14px; }
.privacy svg { color: var(--blue); flex: none; }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.code-boxes input { height: 58px; border: 1px solid var(--line); border-radius: 14px; text-align: center; font-size: 22px; font-weight: 600; outline: none; width: 100%; }
.code-boxes input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(118,169,248,.15); }
.done-ic { width: 84px; height: 84px; border-radius: 28px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 24px; }
.center-col { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.splash { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0 30px 34px; color: #fff; }
.splash .logo-big { margin-top: 130px; }
.splash .tagline { font-size: 17px; margin-top: 22px; opacity: .92; text-align: center; line-height: 1.45; }
.splash .btns { margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.splash .copy { font-size: 11px; opacity: .85; margin-top: 46px; }

/* Utility */
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.mb16 { margin-bottom: 16px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.disclaimer { font-size: 12px; color: var(--faint); line-height: 1.5; margin-top: 22px; text-align: center; }
