/* Brain Logic Lounge PWA — BLL adult palette (from v11):
   bg #f4f6f3, surface #ffffff, ink #1c2420, ink-soft #43524a,
   line #c9d4c9, accent #17573f, accent-soft #dcebe2, warm #9a4a12. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f4f6f3; color: #1c2420; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.5; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #f4f6f3; padding-bottom: 84px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #17573f; color: #fff; }
.brand { font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.account-btn { background: #fff; color: #17573f; border: none; border-radius: 999px; padding: 10px 18px; font-size: 16px; font-weight: 700; min-height: 44px; cursor: pointer; }
main { padding: 18px; }
.view { display: none; }
.view.active { display: block; }
h1 { font-size: 28px; line-height: 1.25; margin: 6px 0 10px; }
h2 { font-size: 24px; margin: 6px 0 10px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lede { color: #43524a; margin: 0 0 16px; }
.fineprint { color: #43524a; font-size: 15px; margin-top: 18px; }
.note { background: #f7e8d8; border: 1px solid #e3cdb2; border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.example-tag, .demo-tag { display: inline-block; background: #a02318; color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.demo-tag { background: #9a4a12; }
.status-card { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; background: #fff; border: 1px solid #c9d4c9; border-radius: 14px; padding: 14px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(23,45,33,.10); }
.status-card.big { display: block; }
.status-label { color: #43524a; font-size: 15px; width: 100%; }
.status-value { font-weight: 700; font-size: 20px; }
.status-detail { margin: 8px 0 0; color: #43524a; }
.install-card, .panel, .progress-card { background: #fff; border: 1px solid #c9d4c9; border-radius: 14px; padding: 16px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(23,45,33,.10); }
.install-card h2 { font-size: 21px; }
.ios-steps { margin: 10px 0 0; padding-left: 22px; }
.installed-note { color: #1d6b34; font-weight: 700; }
.escape-banner { margin: 14px 18px 0; background: #f9e2de; border: 2px solid #a02318; border-radius: 14px; padding: 16px; }
.cards { display: grid; gap: 12px; }
.card { text-align: left; background: #fff; border: 1px solid #c9d4c9; border-radius: 14px; padding: 16px; font: inherit; color: inherit; cursor: pointer; box-shadow: 0 2px 10px rgba(23,45,33,.10); text-decoration: none; display: block; width: 100%; }
.card p { margin: 0 0 8px; color: #43524a; }
.card .go { color: #17573f; font-weight: 700; }
.btn-primary { display: inline-block; background: #17573f; color: #fff; border: none; border-radius: 12px; padding: 14px 20px; font-size: 18px; font-weight: 700; min-height: 54px; cursor: pointer; text-decoration: none; text-align: center; font-family: inherit; }
.btn-primary.block, .btn-ghost.block { display: block; width: 100%; margin-top: 10px; }
.btn-ghost { background: #fff; color: #17573f; border: 2px solid #17573f; border-radius: 12px; padding: 12px 18px; font-size: 17px; font-weight: 700; min-height: 54px; cursor: pointer; font-family: inherit; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; background: #fff; border-top: 1px solid #c9d4c9; padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.tab { flex: 1; background: none; border: none; padding: 12px 2px; font-size: 14px; font-family: inherit; color: #43524a; min-height: 56px; cursor: pointer; }
.tab.active { color: #17573f; font-weight: 700; box-shadow: inset 0 3px 0 #17573f; }
.q-meta { color: #43524a; font-size: 15px; margin: 0 0 8px; }
.q-stimulus { background: #dcebe2; border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; }
.q-text { font-size: 20px; white-space: pre-line; margin: 0 0 14px; }
.q-text.big { font-size: 30px; text-align: center; }
.q-options { display: grid; gap: 10px; }
.q-opt { background: #fff; border: 2px solid #c9d4c9; border-radius: 12px; padding: 14px; font-size: 18px; font-family: inherit; text-align: left; min-height: 54px; cursor: pointer; color: #1c2420; }
.q-opt.correct { border-color: #1d6b34; background: #dff0e2; }
.q-opt.wrong { border-color: #a02318; background: #f9e2de; }
.q-feedback { min-height: 26px; margin: 12px 0 0; font-weight: 600; }
.q-feedback.good { color: #1d6b34; }
.q-feedback.bad { color: #a02318; }
.q-hint { background: #f7e8d8; border-radius: 12px; padding: 12px 14px; }
.q-row { display: flex; gap: 10px; margin-top: 12px; }
.q-row .btn-primary { flex: 1; }
.q-done { color: #43524a; }
.access-gate { background: #fff; border: 2px solid #9a4a12; border-radius: 14px; padding: 18px; }
form label { display: block; font-weight: 700; margin-bottom: 12px; }
form input { display: block; width: 100%; margin-top: 6px; padding: 14px; font-size: 18px; font-family: inherit; border: 2px solid #c9d4c9; border-radius: 12px; background: #fff; color: #1c2420; }
.form-msg.good { color: #1d6b34; font-weight: 700; }
.form-msg.bad { color: #a02318; font-weight: 700; }
.state-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.plain-list { margin: 0; padding-left: 20px; }
.plain-list li { margin-bottom: 10px; }
.progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.progress-name { font-weight: 700; font-size: 20px; margin: 0; }
.sparks-pill { background: #17573f; color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; margin: 0; }
.progress-sub { color: #43524a; margin: 0 0 8px; }
.topic-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e3eae3; }
.topic-row:last-child { border-bottom: none; }
.tstats { color: #43524a; white-space: nowrap; }
