/* verba — soft editorial: cream paper, plum ink, rose accent */
:root {
  --bg: #FBF6F1;
  --bg2: #F6EEE8;
  --surface: #FFFFFF;
  --ink: #24172B;
  --ink2: #4A3B50;
  --muted: #6F6074;
  --line: #EDE2DB;
  --accent: #C93A63;
  --accent-ink: #FFFFFF;
  --accent-soft: #FCE6EC;
  --sage: #3A7454; --sage-soft: #E3F1E8;
  --lilac: #7C67E0; --lilac-soft: #EDE9FD;
  --butter: #8A6110; --butter-soft: #FDF1D6;
  --coral: #B8432A; --coral-soft: #FDE6DF;
  --shadow: 0 1px 2px rgba(60,30,60,.05), 0 8px 24px -8px rgba(80,30,70,.14);
  --shadow-lg: 0 2px 4px rgba(60,30,60,.05), 0 24px 48px -16px rgba(90,30,80,.25);
  --r: 22px;
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --blob1: rgba(247,170,192,.45);
  --blob2: rgba(176,160,245,.32);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16111A; --bg2: #1D1622; --surface: #221A28; --ink: #F7EEF4; --ink2: #D9CADB; --muted: #A493A8; --line: #33293A;
    --accent: #FF7397; --accent-ink: #1A0F15; --accent-soft: #3B1E2B;
    --sage: #7CCB9C; --sage-soft: #1C3127; --lilac: #A897FF; --lilac-soft: #2A2342;
    --butter: #F0C064; --butter-soft: #3A2E15; --coral: #FF8A6E; --coral-soft: #3D211B;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 48px -16px rgba(0,0,0,.6);
    --blob1: rgba(255,115,151,.16); --blob2: rgba(140,120,255,.16);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16111A; --bg2: #1D1622; --surface: #221A28; --ink: #F7EEF4; --ink2: #D9CADB; --muted: #A493A8; --line: #33293A;
  --accent: #FF7397; --accent-ink: #1A0F15; --accent-soft: #3B1E2B;
  --sage: #7CCB9C; --sage-soft: #1C3127; --lilac: #A897FF; --lilac-soft: #2A2342;
  --butter: #F0C064; --butter-soft: #3A2E15; --coral: #FF8A6E; --coral-soft: #3D211B;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 48px -16px rgba(0,0,0,.6);
  --blob1: rgba(255,115,151,.16); --blob2: rgba(140,120,255,.16);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(60vmax 40vmax at 110% -10%, var(--blob1), transparent 60%),
    radial-gradient(50vmax 36vmax at -20% 0%, var(--blob2), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
.serif { font-family: var(--serif); }

#app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
.boot { min-height: 80dvh; display: grid; place-items: center; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.logo i { color: var(--accent); font-style: normal; }

/* ── Top bar ── */
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 0 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; }
.pill.flame b { color: var(--coral); }

/* ── Type ── */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; margin: 0; font-variation-settings: "opsz" 144; }
h1 { font-size: 34px; line-height: 1.1; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 18px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.greet { margin: 14px 0 18px; }
.greet p { margin: 6px 0 0; color: var(--muted); }

/* ── Cards / surfaces ── */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px; }
.hero { position: relative; overflow: hidden; padding: 22px; }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--accent-soft); z-index: 0; }
.hero > * { position: relative; z-index: 1; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg2); color: var(--ink2); }
.chip.rose { background: var(--accent-soft); color: var(--accent); }
.chip.sage { background: var(--sage-soft); color: var(--sage); }
.chip.lilac { background: var(--lilac-soft); color: var(--lilac); }
.chip.butter { background: var(--butter-soft); color: var(--butter); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 700; font-size: 16px; background: var(--bg2); color: var(--ink); transition: transform .12s ease, filter .12s ease, background .2s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px var(--accent); }
.btn.ghost { background: transparent; color: var(--ink2); }
.btn.block { width: 100%; }
.btn.sm { padding: 9px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.iconbtn { border: 0; background: var(--surface); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); font-size: 18px; }
.linkbtn { border: 0; background: none; color: var(--accent); font-weight: 700; padding: 6px 0; }

/* ── Mastery bar ── */
.mbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--bg2); margin: 14px 0 12px; }
.mbar span { display: block; height: 100%; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.mbar .m { background: var(--sage); }
.mbar .l { background: var(--lilac); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend b { color: var(--ink); font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 1px; }
.bignum { font-family: var(--serif); font-size: 44px; line-height: 1; font-weight: 500; letter-spacing: -.03em; }
.bignum small { font-size: 18px; color: var(--muted); font-family: var(--sans); letter-spacing: 0; font-weight: 500; }

/* ── Week ── */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; text-align: center; }
.week .d { font-size: 11px; color: var(--muted); font-weight: 600; }
.week .c { margin: 6px auto 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); font-size: 13px; }
.week .c.on { background: var(--accent); color: var(--accent-ink); }
.week .c.some { background: var(--accent-soft); color: var(--accent); }
.week .c.today { outline: 2px solid var(--ink); outline-offset: 2px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 .card { margin: 0; }
.tile { padding: 16px; }
.tile .k { font-family: var(--serif); font-size: 28px; line-height: 1; }
.tile .t { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ── Tab bar ── */
.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 4px; padding: 6px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 20; }
.tabs button { border: 0; background: transparent; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tabs button.on { background: var(--ink); color: var(--bg); }
.tabs svg { width: 18px; height: 18px; }
@media (max-width: 440px) { .tabs button { padding: 10px 12px; } .tabs button span { display: none; } .tabs button.on span { display: inline; } }
@media (max-width: 340px) { .tabs button { padding: 10px 10px; } }

/* ── Forms ── */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; }
.input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; outline: none; transition: border-color .15s; }
.input:focus { border-color: var(--accent); }
.err { background: var(--coral-soft); color: var(--coral); padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.ok { background: var(--sage-soft); color: var(--sage); padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.avatars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.avatars button { aspect-ratio: 1; border: 2px solid transparent; border-radius: 14px; background: var(--bg2); font-size: clamp(16px, 5vw, 22px); display: grid; place-items: center; padding: 0; min-width: 0; }
.avatars button.on { border-color: var(--accent); background: var(--accent-soft); }

.auth { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.auth .logo { font-size: 44px; }
.auth .tag { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink2); margin: 6px 0 26px; }

.seg { display: flex; background: var(--bg2); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setrow:last-child { border-bottom: 0; }
.setrow .lbl b { display: block; font-weight: 700; font-size: 15px; }
.setrow .lbl small { color: var(--muted); font-size: 13px; }
.setcol { padding: 14px 0; border-bottom: 1px solid var(--line); }
.setcol .lbl { margin-bottom: 10px; }
.setcol .lbl b { display: block; font-weight: 700; font-size: 15px; }
.setcol .lbl small { color: var(--muted); font-size: 13px; }
.toggle { position: relative; width: 50px; height: 30px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: .2s; }
.toggle span::after { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Lists ── */
.search { position: sticky; top: 0; z-index: 5; padding: calc(10px + env(safe-area-inset-top)) 0 10px; background: linear-gradient(var(--bg) 75%, transparent); }
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; border: 0; padding: 8px 14px; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 13px; color: var(--muted); box-shadow: var(--shadow); }
.filters button.on { background: var(--ink); color: var(--bg); }
.wlist { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.witem { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.witem:last-child { border-bottom: 0; }
.witem .w { flex: 1; min-width: 0; }
.witem .la { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.witem .en { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star { border: 0; background: none; font-size: 20px; color: var(--muted); opacity: .45; padding: 4px; line-height: 1; }
.star.on { color: #E0A21B; opacity: 1; }
.status { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--line); }
.status.learning, .status.review { background: var(--lilac); }
.status.mastered { background: var(--sage); }

.person { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.person .av { width: 44px; height: 44px; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; font-size: 22px; flex: none; }
.person .nm { flex: 1; min-width: 0; }
.person .nm b { display: block; }
.person .nm small { color: var(--muted); }
.person .rank { font-family: var(--serif); font-size: 20px; color: var(--muted); width: 22px; text-align: center; }
.person.me .av { background: var(--accent-soft); }

/* ── Sheet ── */
.scrim { position: fixed; inset: 0; background: rgba(20,10,20,.4); z-index: 40; animation: fade .2s; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 560px; background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); z-index: 41; animation: up .28s cubic-bezier(.2,.8,.2,1); max-height: 88dvh; overflow-y: auto; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
@keyframes up { from { transform: translate(-50%, 100%); } }
@keyframes fade { from { opacity: 0; } }

.toast { position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 60; animation: drop .3s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); max-width: 90vw; text-align: center; }
@keyframes drop { from { transform: translate(-50%, -30px); opacity: 0; } }

/* ── Study ── */
.study { position: fixed; inset: 0; background: var(--bg); z-index: 30; display: flex; flex-direction: column; padding: calc(12px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.study-top { display: flex; align-items: center; gap: 12px; }
.pbar { flex: 1; height: 10px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.pbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #F49A6B); border-radius: 999px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.left { font-weight: 700; font-size: 13px; color: var(--muted); min-width: 52px; text-align: right; }
.stage { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding: 16px 0; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.stage > :first-child { margin-top: auto; }
.stage > :last-child { margin-bottom: auto; }
.study { user-select: none; -webkit-user-select: none; }
@media (max-height: 640px) { .solo { padding: 18px 16px; } .word { font-size: clamp(28px, 8vw, 38px); } .face { padding: 20px 16px; } .opt { padding: 11px 14px; } .stage { padding: 8px 0; } }
.kind { text-align: center; margin-bottom: 14px; }

.flash { position: relative; perspective: 1400px; width: 100%; min-height: 300px; }
.flash .inner { position: relative; width: 100%; min-height: 300px; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3,.9,.3,1); }
.flash.flipped .inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 28px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.face.back { transform: rotateY(180deg); }
.word { font-family: var(--serif); font-size: clamp(32px, 9vw, 46px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; font-variation-settings: "opsz" 144; overflow-wrap: anywhere; }
.word.en { font-size: clamp(26px, 7vw, 36px); }
.gram { color: var(--muted); margin-top: 8px; font-size: 15px; }
.tapnote { position: absolute; bottom: 18px; left: 0; right: 0; font-size: 13px; color: var(--muted); }
.hook { margin-top: 16px; background: var(--butter-soft); color: var(--ink2); padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; text-align: left; max-width: 100%; }
.hook b { color: var(--butter); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.watch { margin-top: 8px; background: var(--lilac-soft); color: var(--ink2); padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; text-align: left; max-width: 100%; }
.watch b { color: var(--lilac); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.backsmall { font-family: var(--serif); color: var(--muted); font-size: 18px; margin-bottom: 6px; }

.solo { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 28px 22px; text-align: center; }
.newtag { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.divider { width: 40px; height: 2px; background: var(--line); margin: 16px auto; border-radius: 2px; }
.sayit { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.sayit svg { flex: none; color: var(--accent); }

.opts { display: grid; gap: 10px; margin-top: 18px; }
.opt { border: 2px solid var(--line); background: var(--surface); padding: 15px 16px; border-radius: 18px; text-align: left; font-weight: 600; font-size: 16px; display: flex; gap: 12px; align-items: center; transition: transform .1s, border-color .15s, background .15s; }
.opt .n { width: 24px; height: 24px; border-radius: 8px; background: var(--bg2); display: grid; place-items: center; font-size: 12px; color: var(--muted); flex: none; }
.opt.la { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.opt:active { transform: scale(.98); }
.opt.right { border-color: var(--sage); background: var(--sage-soft); }
.opt.right .n { background: var(--sage); color: #fff; }
.opt.wrong { border-color: var(--coral); background: var(--coral-soft); animation: shake .35s; }
.opt.dim { opacity: .45; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.actions { padding-top: 8px; }
.rate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rate button { border: 0; border-radius: 18px; padding: 12px 4px 10px; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform .1s; }
.rate button:active { transform: scale(.95); }
.rate button small { font-size: 11px; font-weight: 600; opacity: .75; }
.rate .r1 { background: var(--coral-soft); color: var(--coral); }
.rate .r2 { background: var(--butter-soft); color: var(--butter); }
.rate .r3 { background: var(--sage-soft); color: var(--sage); }
.rate .r4 { background: var(--lilac-soft); color: var(--lilac); }
.swipehint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
.feedback { text-align: center; font-weight: 700; margin-top: 14px; min-height: 24px; }
.feedback.good { color: var(--sage); }
.feedback.bad { color: var(--coral); }

/* ── Summary ── */
.summary { text-align: center; padding-top: 6dvh; }
.summary .big { font-family: var(--serif); font-size: 56px; font-style: italic; line-height: 1; color: var(--accent); }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }
.stats3 .card { margin: 0; padding: 16px 8px; }
.stats3 .k { font-family: var(--serif); font-size: 30px; line-height: 1; }
.stats3 .t { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.mastered-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0 20px; }
.mastered-list .chip { font-family: var(--serif); font-size: 15px; font-weight: 500; }

.science li { margin-bottom: 10px; }
.science b { color: var(--ink); }
.science { color: var(--ink2); font-size: 15px; padding-left: 18px; }

canvas.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; }

.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.copybox { display: flex; gap: 8px; align-items: center; background: var(--bg2); border-radius: 14px; padding: 8px 8px 8px 14px; margin-top: 12px; }
.copybox code { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.invrow:last-child { border-bottom: 0; }

@media (min-width: 700px) {
  #app { padding-top: 12px; }
  .flash, .flash .inner { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* v1.2: photos, email nudge */
.avimg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.gav { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.12em; line-height: 1.1em; text-align: center; }
.gav .avimg { width: 1.1em; height: 1.1em; }
.person .av { overflow: hidden; }
.me-av { display: flex; align-items: center; gap: 16px; margin: 14px 0 18px; }
.bigav { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: 44px; flex: none; overflow: hidden; box-shadow: var(--shadow); }
.me-av-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.me-av-btns .btn svg { margin-right: 2px; }
.nudge { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--butter-soft); box-shadow: none; padding: 14px 16px; }
.nudge b { display: block; font-size: 15px; }
.nudge small { color: var(--ink2); font-size: 13px; }
.hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.avatars { grid-template-columns: repeat(8, minmax(0, 1fr)); }

/* v1.3: quiz + groups */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 0; padding: 8px 13px; border-radius: 999px; background: var(--bg2); font-weight: 700; font-size: 13px; color: var(--ink2); }
.chips button.on { background: var(--ink); color: var(--bg); }
.grouprow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.btn.accent-soft { background: var(--accent-soft); color: var(--accent); }
.qform { margin-top: 16px; }
.qinput { font-size: 18px; padding: 16px 18px; text-align: center; }
.qwrong { margin-top: 12px; background: var(--coral-soft); color: var(--ink); padding: 12px 14px; border-radius: 14px; font-size: 15px; }
.qwrong > b { color: var(--coral); margin-right: 4px; }
.qres { flex: 1; overflow-y: auto; padding-bottom: 10px; }
.qscore { font-family: var(--serif); font-size: 52px; line-height: 1; margin: 18px 0 20px; }
.qscore small { font-family: var(--sans); font-size: 18px; color: var(--muted); margin-left: 6px; }
.qrow { cursor: default; align-items: flex-start; }
.qrow .en { white-space: normal; }
.qrow s { color: var(--coral); }
.qmark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 800; margin-top: 3px; }
.qrow.ok .qmark { background: var(--sage-soft); color: var(--sage); }
.qrow.bad .qmark { background: var(--coral-soft); color: var(--coral); }
.ged-body { flex: 1; overflow-y: auto; padding-bottom: 20px; }
.ged-tools { display: flex; gap: 8px; align-items: center; margin: 14px 0 10px; position: sticky; top: 0; background: var(--bg); padding: 6px 0; z-index: 2; }
.ged-tools .input { flex: 1; }
.gitem input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.paste { background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.paste summary { font-weight: 700; cursor: pointer; }
.paste textarea { resize: vertical; font-size: 15px; }

.auth b, .person .nm small, .person .nm b { overflow-wrap: anywhere; }

/* pronunciation */
.pron { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.pron.left { justify-content: flex-start; }
.pron .guide { font-size: 14px; color: var(--muted); letter-spacing: .02em; font-weight: 600; }
.sayb { border: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; flex: none; padding: 0; transition: transform .15s; }
.sayb svg { width: 18px; height: 18px; }
.sayb:active, .sayb.on { transform: scale(1.12); background: var(--accent); color: var(--accent-ink); }
.backsmall .pron { display: inline-flex; margin: 0 0 0 4px; vertical-align: middle; }
.backsmall .sayb { width: 28px; height: 28px; }
.backsmall .sayb svg { width: 15px; height: 15px; }

/* word list admin */
.fmt { background: var(--bg2); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink2); }
.dstats { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.dh { font-weight: 700; margin: 16px 0 6px; font-size: 14px; }
.dlist { margin: 0; padding-left: 18px; font-size: 14px; max-height: 260px; overflow-y: auto; }
.dlist li { margin: 3px 0; overflow-wrap: anywhere; }
code { font-size: 12px; background: var(--bg2); padding: 1px 5px; border-radius: 6px; }
a.btn { text-decoration: none; }
.pron.left { text-align: left; }
.pron .guide { overflow-wrap: anywhere; }

/* grammar */
.units { display: grid; gap: 0; }
.unit.focus { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.unit-head { display: flex; gap: 12px; align-items: flex-start; }
.unit-emoji { width: 44px; height: 44px; border-radius: 14px; background: var(--lilac-soft); display: grid; place-items: center; font-size: 22px; flex: none; }
.unit-n { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ubar { height: 8px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin: 14px 0 10px; }
.ubar span { display: block; height: 100%; background: var(--lilac); border-radius: 999px; transition: width .5s; }
.ubar span.m { background: var(--sage); }
.unit-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sage { color: var(--sage); font-weight: 700; }
.lesson { padding-top: 10px; }
.l-text { font-size: 16px; line-height: 1.55; color: var(--ink); margin: 14px 0; }
.l-tip { background: var(--butter-soft); border-radius: 14px; padding: 12px 14px; margin: 14px 0; font-size: 15px; line-height: 1.5; }
.l-tip b:first-child { display: block; color: var(--butter); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.l-tt { font-weight: 700; margin: 18px 0 6px; }
.l-table { overflow-x: auto; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.l-table table, .gchart { border-collapse: collapse; width: 100%; font-size: 15px; }
.l-table th, .l-table td, .gchart th, .gchart td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.l-table th, .gchart th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.l-table tr:last-child td, .gchart tr:last-child td { border-bottom: 0; }
.l-table td.rh, .gchart td.rh { font-weight: 700; color: var(--ink2); white-space: nowrap; }
.l-table td:not(.rh), .gchart td:not(.rh) { font-family: var(--serif); font-size: 17px; }
.l-ex { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; margin: 14px 0; }
.l-la { font-family: var(--serif); font-size: 22px; line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.l-la .pron { margin: 0; }
.l-en { color: var(--muted); margin-top: 4px; }
.l-marks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mkl { font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.mk { border-bottom: 3px solid; padding-bottom: 1px; }
.mk0 { border-color: var(--accent); } .mkl.mk0 { background: var(--accent-soft); }
.mk1 { border-color: var(--lilac); } .mkl.mk1 { background: var(--lilac-soft); }
.mk2 { border-color: var(--sage); } .mkl.mk2 { background: var(--sage-soft); }
.mk3 { border-color: var(--butter); } .mkl.mk3 { background: var(--butter-soft); }
.mkl.mk0, .mkl.mk1, .mkl.mk2, .mkl.mk3 { border: 0; }
.gq { text-align: center; padding: 22px 18px; }
.gq-k { font-weight: 700; color: var(--ink2); margin-bottom: 8px; }
.gq-form { font-family: var(--serif); font-size: clamp(30px, 8vw, 40px); line-height: 1.15; margin: 4px 0; }
.gq-sent { font-family: var(--serif); font-size: 22px; line-height: 1.45; margin: 6px 0; }
.gq-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.gap { display: inline-block; min-width: 64px; border-bottom: 3px solid var(--accent); color: var(--accent); text-align: center; font-family: var(--sans); font-weight: 800; }
.hl { background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 0 4px; }
.gfb { margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.gfb.good { background: var(--sage-soft); } .gfb.good > b { color: var(--sage); }
.gfb.bad { background: var(--coral-soft); } .gfb.bad > b { color: var(--coral); }
.gright { margin-top: 4px; }
.gexp { margin-top: 4px; color: var(--ink2); }
.breakdown { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bd { background: var(--surface); border-radius: 10px; padding: 3px 8px; font-size: 13px; }
.chartform { margin-top: 14px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.gchart td { padding: 7px 8px; }
.cin { width: 100%; min-width: 0; font: inherit; font-family: var(--serif); font-size: 17px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.cin:focus { outline: none; border-color: var(--accent); }
.cin.good, .qinput.good { border-color: var(--sage); background: var(--sage-soft); }
.cin.bad, .qinput.bad { border-color: var(--coral); background: var(--coral-soft); text-decoration: line-through; }
.cfix { font-size: 13px; color: var(--sage); font-weight: 700; margin-top: 2px; font-family: var(--sans); }
.gcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.avsvg { width: 100%; height: 100%; display: block; border-radius: 50%; }
.avatars { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.avatars button { padding: 3px; border-radius: 50%; background: transparent; border: 2.5px solid transparent; }
.avatars button.on { border-color: var(--accent); background: transparent; }
.gav .avsvg { width: 1.1em; height: 1.1em; }
.bigav .avsvg { width: 100%; height: 100%; }
.person .av { padding: 0; }
.person .av .avsvg { width: 100%; height: 100%; }
.supphoto { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.bigav.sm { width: 48px; height: 48px; font-size: 24px; }
.wtools { display: flex; gap: 8px; margin: 4px 4px 6px; flex-wrap: wrap; }
.chip.tiny { font-size: 11px; padding: 2px 8px; vertical-align: 2px; font-family: var(--sans); }
.checkrow { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.checkrow input { width: 20px; height: 20px; accent-color: var(--accent); }
.card.shaky { background: var(--butter-soft); box-shadow: none; }
/* definition-first cards */
.meaning { font-family: var(--serif); font-size: clamp(28px, 7.5vw, 38px); line-height: 1.15; font-weight: 600; color: var(--ink); letter-spacing: -.01em; overflow-wrap: anywhere; }
.extras { margin-top: 14px; display: grid; gap: 6px; text-align: left; max-width: 100%; }
.xhook, .xwatch { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--muted); }
.xhook svg, .xwatch svg { flex: none; margin-top: 2px; opacity: .8; }
.xhook .mine { color: var(--accent); font-style: normal; font-size: 12px; }
.linkbtn.tiny { font-size: 12px; padding: 0 2px; font-weight: 700; }
.hook-callout { margin-top: 10px; background: var(--butter-soft); color: var(--ink); padding: 10px 12px; border-radius: 12px; font-size: 15px; line-height: 1.45; text-align: left; }
.hook-callout b:first-child { display: block; color: var(--butter); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.hook-callout.empty { font-size: 13px; color: var(--muted); }
.backsmall { font-size: 16px; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; margin-left: 4px; }
.sug { border-top: 1px solid var(--line); padding: 14px 0; }
.sug:first-of-type { border-top: 0; }
.sug .field { margin-bottom: 8px; }
.micbtn { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 40px; margin: 26px auto 10px; display: grid; place-items: center; box-shadow: 0 10px 30px -10px var(--accent); transition: transform .15s; }
.micbtn.live { animation: pulse 1s infinite; background: var(--coral); }
@keyframes pulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 14px var(--coral-soft); } }
#recprev { width: 100%; margin-top: 10px; }
.sayb.rec { box-shadow: 0 0 0 2px var(--sage) inset; }

.chip.lilac { color: color-mix(in srgb, var(--lilac) 72%, var(--ink)); }
.chip.rose { color: color-mix(in srgb, var(--accent) 78%, var(--ink)); }
@media (max-width: 360px) { .avatars { gap: 6px; } }

/* ───────────────── Desktop & tablet (≥ 960px) ─────────────────
   Phones keep the single column + floating tab bar. On big screens:
   sidebar navigation, two-column dashboards, side-panel word details,
   and a focused (but larger) center stage for studying. */
@media (min-width: 960px) {
  body { padding-left: 232px; }
  #app { max-width: 1120px; padding: 28px 44px 64px; }
  .top { padding-top: 6px; }
  h1 { font-size: 40px; }

  /* Sidebar instead of the bottom pill */
  .tabs { left: 0; top: 0; bottom: 0; transform: none; width: 232px; flex-direction: column; align-items: stretch; gap: 4px;
          padding: 92px 16px 24px; border-radius: 0; box-shadow: none; border-right: 1px solid var(--line);
          background: color-mix(in srgb, var(--surface) 70%, transparent); }
  .tabs::before { content: "verba."; position: absolute; top: 28px; left: 28px; font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: -.02em; color: var(--ink); }
  .tabs button { justify-content: flex-start; padding: 12px 16px; font-size: 15px; gap: 12px; }
  .tabs button span { display: inline !important; }
  .tabs button:not(.on):hover { background: var(--bg2); color: var(--ink); }
  .tabs svg { width: 20px; height: 20px; }
  .top > .logo { display: none; }
  .top { justify-content: space-between; }

  /* Home: two columns */
  .dash { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .greet { margin: 6px 0 22px; }

  /* Quiz & Squad: two columns; Me: masonry columns */
  .qcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .qcols > .card { margin: 0; }
  .qcols > .card.hero { grid-row: span 3; }
  .mecols { columns: 2; column-gap: 20px; }
  .mecols > .card { break-inside: avoid; display: inline-block; width: 100%; }

  /* Words: two-column list; details open in a side panel */
  #wl { display: grid; grid-template-columns: 1fr 1fr; }
  #wl .witem:nth-child(odd) { border-right: 1px solid var(--line); }
  .search { position: static; background: none; }
  .scrim { background: rgba(20,10,20,.18); }
  .sheet { left: auto; right: 0; top: 0; bottom: 0; transform: none; width: 460px; max-width: 460px; max-height: none; border-radius: 28px 0 0 28px; padding: 28px 28px 32px; animation: side .28s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); }
  .sheet .grab { display: none; }
  @keyframes side { from { transform: translateX(100%); } }

  /* Grammar: unit cards in a grid */
  .units { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
  .units .card { margin: 0; }

  /* Admin: two-column lists */
  #apane .wlist { display: grid; grid-template-columns: 1fr 1fr; }
  #apane .wlist .witem:nth-child(odd) { border-right: 1px solid var(--line); }
  .sug .row2 { grid-template-columns: 1fr 1fr 1fr; }

  /* Study / quiz / drills / editors: full-screen focus, bigger center stage */
  .study { max-width: none; padding: 28px max(32px, calc(50vw - 360px)) 32px; }
  .study .stage { padding: 28px 0; }
  .flash, .flash .inner { min-height: 400px; }
  .word { font-size: 54px; }
  .word.en, .meaning { font-size: 42px; }
  .solo, .face { padding: 36px 32px; }
  .opts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .opt { padding: 18px; font-size: 17px; }
  .qinput { font-size: 21px; padding: 18px 20px; }
  .rate button { padding: 16px 6px 14px; font-size: 17px; }
  .gq-form { font-size: 48px; }
  .gq-sent { font-size: 26px; }
  .ged-body.lesson { max-width: 720px; margin: 0 auto; width: 100%; }
  .summary .big { font-size: 72px; }

  /* Sign-in screens */
  .auth { max-width: 460px; margin: 0 auto; }
  body:has(.auth) { padding-left: 0; }
  .toast { left: calc(50% + 116px); }
}
@media (min-width: 1400px) {
  #app { max-width: 1240px; }
  .units { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.keyhint { display: none; text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
@media (min-width: 960px) { .swipehint { display: none; } .keyhint { display: block; } }
/* Keyboard shortcut badges: desktop only */
.kbd { display: none; }
@media (min-width: 960px) {
  .kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 800;
         font-family: var(--sans); border: 1.5px solid currentColor; opacity: .7; line-height: 1; }
  .rate button { position: relative; }
  .rate button .kbd { position: absolute; top: 8px; left: 8px; }
  .btn .kbd { margin-left: 8px; opacity: .6; }
}
/* Pressed state (taps and keyboard shortcuts) */
.btn.pressed, .rate button.pressed, .opt.pressed { transform: scale(.94); filter: brightness(.92); box-shadow: inset 0 0 0 2px currentColor; }
.rate button.pressed .kbd { opacity: 1; background: currentColor; -webkit-text-fill-color: #fff; }
.rate button small { font-size: 10.5px; white-space: nowrap; }

/* ── Journey, ranks & badges (v1.7) ───────────────────────── */
.mbar .s { background: var(--accent); opacity: .85; }
.journey .jtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.jrank { display: flex; align-items: center; gap: 14px; margin-top: 12px; cursor: pointer; }
.jrank .emblem { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(135deg, var(--accent-soft), var(--lilac-soft)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.jrank .rk { font-family: var(--serif); font-size: 26px; line-height: 1.05; letter-spacing: -.02em; }
.nextrank { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--bg2); }
.nextrank .nr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.minibar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; margin-top: 8px; }
.minibar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--lilac)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.ladder { list-style: none; margin: 0; padding: 0; }
.ladder li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); opacity: .55; }
.ladder li:first-child { border-top: 0; }
.ladder li.done { opacity: 1; }
.ladder li.here { opacity: 1; background: var(--accent-soft); border-radius: 14px; padding: 10px; margin: 2px -10px; border-top-color: transparent; }
.ladder li.here + li { border-top-color: transparent; }
.ladder .li-ic { font-size: 24px; text-align: center; filter: grayscale(1); }
.ladder li.done .li-ic { filter: none; }
.ladder .line { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ladder .at { font-size: 12px; color: var(--muted); white-space: nowrap; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.bdg { border-radius: 18px; padding: 14px 12px; text-align: center; background: var(--bg2); display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.bdg .bi { font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); margin-bottom: 6px; filter: grayscale(1); opacity: .5; }
.bdg b { font-family: var(--serif); font-weight: 500; font-size: 16px; line-height: 1.15; }
.bdg small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.bdg .en { font-style: italic; }
.bdg .how { margin-top: 4px; }
.bdg .when { margin-top: 4px; font-weight: 600; }
.bdg .minibar { width: 80%; margin-top: 8px; }
.bdg.on { background: linear-gradient(160deg, var(--accent-soft), var(--lilac-soft)); }
.bdg.on .bi { filter: none; opacity: 1; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 25%, transparent); }
.bdg.on .when { color: var(--sage); }
.celeb { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 20px; background: rgba(20,10,20,.5); animation: fade .2s; }
.celeb .cbox { width: 100%; max-width: 380px; background: var(--surface); border-radius: 28px; padding: 28px 24px 22px; text-align: center; box-shadow: var(--shadow-lg); animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
.celeb .ceyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.celeb .cicon { font-size: 64px; width: 112px; height: 112px; margin: 14px auto 10px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, var(--lilac-soft) 70%); animation: glow 1.8s ease-in-out infinite; }
.celeb h2 { font-size: 28px; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent); } 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--accent) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .celeb .cbox, .celeb .cicon { animation: none; } }

/* ── Admin: activity (v1.8) ───────────────────────────────── */
.actlist { display: flex; flex-direction: column; gap: 8px; }
.actrow { display: grid; grid-template-columns: 44px 1fr 16px; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px; border: 0; border-radius: 18px; background: var(--bg2); color: inherit; font: inherit; cursor: pointer; transition: transform .12s, background .12s; }
.actrow:hover { background: var(--accent-soft); }
.actrow:active { transform: scale(.99); }
.actrow .av { width: 44px; height: 44px; }
.actrow .am { min-width: 0; }
.actrow .am > b { display: block; }
.actrow .am > small { display: block; font-size: 12.5px; margin-top: 1px; }
.actrow .quiet { color: var(--butter, #B7791F); font-weight: 600; }
.actrow .chev { color: var(--muted); font-size: 22px; }
.achips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.achips span { font-size: 12.5px; background: var(--surface); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.achips i { font-style: normal; color: var(--muted); }
.achips .warn { color: var(--butter, #B7791F); }
.actstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0 4px; }
.actstats > div { background: var(--bg2); border-radius: 16px; padding: 10px 12px; }
.actstats b { display: block; font-size: 17px; }
.actstats small { color: var(--muted); font-size: 12px; }
@media (min-width: 700px) { .actstats { grid-template-columns: repeat(4, 1fr); } }
.aday { border-top: 1px solid var(--line); padding: 12px 0; }
.aday:first-of-type { border-top: 0; }
.aday.empty { padding: 8px 0; opacity: .55; }
.ad-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ad-v { margin-top: 4px; }
.ad-x { margin-top: 6px; }
.ses { margin-top: 8px; padding: 8px 12px; background: var(--bg2); border-radius: 12px; }
.ses .st { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.chip.tiny { font-size: 11px; padding: 1px 7px; }
