/* WalCado Labs – Brain Health app v2 (demo). Design tokens follow the WalCado site and dashboard. */
:root {
  --navy: #132D89;
  --navy-2: #1E3C9C;
  --ink: #0B1B57;
  --blue-3: #2E469E;
  --blue-4: #7C90DB;
  --blue-5: #BEC9F1;
  --blue-6: #E3E8FA;
  --mist: #F0EFF4;
  --white: #fff;
  --orange: #FF4000;
  --orange-2: #FF7A3D;
  --orange-soft: #FFF1EB;
  --green: #1F9D67;
  --green-soft: #E5F6EE;
  --amber: #C98A00;
  --amber-soft: #FFF6DE;
  --red: #C43200;
  --muted: #5B6BA8;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(19,45,137,.04), 0 12px 32px -16px rgba(19,45,137,.22);
  --shadow-lg: 0 30px 60px -24px rgba(8,19,61,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
  --side: 264px;
  --font: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--mist); color: var(--navy); font-family: var(--font); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.5; min-height: 100vh; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--orange); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; }
@supports (-moz-appearance: none) { * { scrollbar-width: thin; scrollbar-color: var(--blue-5) transparent; } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--blue-5); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: var(--len, 200); } to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; width: var(--side); flex: 0 0 auto; background: #fff; display: flex; flex-direction: column; padding: 24px 14px 18px; gap: 26px; box-shadow: 1px 0 0 rgba(19,45,137,.06); overflow-y: auto; z-index: 30; }
.side .logo { padding: 2px 10px; display: flex; }
.side .logo img { height: 30px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-sep { height: 1px; background: var(--mist); margin: 10px 10px; }
.nav a { display: flex; align-items: center; gap: 13px; height: 46px; padding: 0 14px; border-radius: 14px; color: var(--blue-3); font-weight: 650; font-size: 15px; white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover { background: var(--mist); color: var(--navy); }
.nav a.on { background: var(--navy); color: #fff; font-weight: 750; }
.nav a svg { flex: 0 0 auto; }
.nav a .soon { margin-left: auto; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--mist); color: var(--muted); }
.nav a.on .soon { background: rgba(255,255,255,.18); color: #fff; }
.side-card { margin-top: auto; border-radius: 22px; padding: 18px; background: linear-gradient(150deg, var(--navy) 0%, #2440B0 100%); color: #fff; position: relative; overflow: hidden; }
.side-card .t { font-weight: 800; font-size: 15px; line-height: 1.3; }
.side-card .s { font-size: 13px; color: var(--blue-5); margin-top: 4px; }
.side-card .bar { height: 6px; border-radius: 9px; background: rgba(255,255,255,.18); margin-top: 12px; overflow: hidden; }
.side-card .bar i { display: block; height: 100%; background: var(--orange); border-radius: 9px; }
.side-foot { font-size: 12px; color: var(--muted); padding: 0 10px; }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.top { position: relative; z-index: 25; display: flex; align-items: center; gap: 14px; width: 100%; max-width: 1320px; margin: 0 auto; padding: 32px 40px 0; }
.top .greet { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.top .greet .eb { font-size: 12px; font-weight: 700; letter-spacing: .4em; text-transform: uppercase; color: var(--orange); white-space: nowrap; }
.top .greet h1 { font-size: 32px; line-height: 40px; font-weight: 800; letter-spacing: -.01em; }
.top .sub { font-size: 14px; font-weight: 600; color: #2E469E; text-align: right; white-space: nowrap; }
@media (max-width: 1180px) { .top .sub { display: none; } }
.top .icon-btn, .top .avatar { width: 46px; height: 46px; }
.top .sp { flex: 1; }
.top .mlogo { display: none; }
.icon-btn { position: relative; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--navy); box-shadow: 0 8px 20px -12px rgba(19,45,137,.45); transition: color .2s, transform .2s; }
.icon-btn:hover { color: var(--orange); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--mist), 0 0 0 5px transparent; transition: box-shadow .2s; }
.avatar.open { box-shadow: 0 0 0 3px var(--mist), 0 0 0 5px var(--orange); }
.demo-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--orange-soft); color: var(--red); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; border: 1px solid #FFD5C2; }
.demo-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 2s infinite; }

.content { width: 100%; max-width: 1320px; padding: 28px 40px 60px; margin: 0 auto; animation: fade .35s var(--ease); }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 8px 16px 28px; }
.tabbar { display: none; }

/* dropdowns */
.pop { position: absolute; top: calc(100% + 10px); right: 0; width: 340px; max-width: calc(100vw - 24px); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 10px; z-index: 60; animation: rise .22s var(--ease); }
.pop h3 { font-size: 15px; font-weight: 800; padding: 10px 12px 6px; display: flex; justify-content: space-between; align-items: center; }
.pop h3 a { font-size: 12.5px; font-weight: 750; }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 12px; font-weight: 650; font-size: 14.5px; color: var(--navy); }
.menu-item:hover { background: var(--mist); }
.menu-item small { color: var(--muted); font-weight: 700; font-size: 12px; }
.menu-head { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--mist); margin-bottom: 6px; }
.menu-head b { display: block; font-size: 15px; }
.menu-head span { font-size: 12.5px; color: var(--muted); }
.notif { display: flex; gap: 12px; padding: 12px; border-radius: 14px; }
.notif:hover { background: var(--mist); }
.notif .ic { width: 36px; height: 36px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--blue-6); color: var(--navy); }
.notif.unread .ic { background: var(--orange-soft); color: var(--orange); }
.notif b { font-size: 14px; display: block; line-height: 1.35; }
.notif span { font-size: 12.5px; color: var(--muted); }
.anchor { position: relative; }

/* ---------- primitives ---------- */
.grid { display: grid; gap: 20px; }
.g-today { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.card { background: #fff; border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow); animation: rise .45s var(--ease) both; min-width: 0; }
.card.dark { background: radial-gradient(120% 120% at 100% 0%, #2B49C2 0%, var(--navy) 45%, #0C1E63 100%); color: #fff; }
.card.flat { box-shadow: none; background: rgba(255,255,255,.6); }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-h h2 { font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.005em; }
.card-h p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.dark .card-h p { color: var(--blue-5); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dark .eyebrow { color: var(--blue-5); }
.h-xl { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.h-l { font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 99px; font-weight: 800; font-size: 15px; transition: transform .15s var(--ease), background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--orange); color: #fff; box-shadow: 0 10px 22px -10px rgba(255,64,0,.7); }
.btn.pri:hover { background: #E83A00; color: #fff; }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-2); color: #fff; }
.btn.ghost { background: var(--mist); color: var(--navy); }
.btn.ghost:hover { background: var(--blue-6); color: var(--navy); }
.btn.line { border: 1.5px solid var(--blue-5); color: var(--navy); background: #fff; }
.btn.line:hover { border-color: var(--orange); color: var(--orange); }
.dark .btn.ghost { background: rgba(255,255,255,.12); color: #fff; }
.dark .btn.ghost:hover { background: rgba(255,255,255,.2); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { white-space: nowrap; font-weight: 800; color: var(--navy-2); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { color: var(--orange); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 800; background: var(--mist); color: var(--blue-3); white-space: nowrap; }
.chip.or { background: var(--orange-soft); color: var(--red); }
.chip.gr { background: var(--green-soft); color: var(--green); }
.chip.am { background: var(--amber-soft); color: var(--amber); }
.chip.wh { background: rgba(255,255,255,.14); color: #fff; }
.sample { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); border: 1px dashed #E8C766; white-space: nowrap; }
.pill-tog { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--mist); gap: 2px; }
.pill-tog button { height: 32px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 750; color: var(--blue-3); }
.pill-tog button.on { background: #fff; color: var(--navy); box-shadow: 0 4px 10px -6px rgba(19,45,137,.4); }

.bar { height: 8px; border-radius: 9px; background: var(--mist); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 9px; background: var(--navy); transition: width .8s var(--ease); }
.bar.thin { height: 5px; }

.c-ex { --c: oklch(0.45 0.13 150); } .c-good, .c-mod { --c: oklch(0.5 0.12 70); } .c-elev, .c-crit { --c: #C43200; }
.band { color: var(--navy); font-weight: 800; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 500; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); animation: sheet .3s var(--ease); max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; }
.toast i { color: var(--orange-2); font-style: normal; }

/* ---------- Today ---------- */
.mission { position: relative; overflow: hidden; padding: 28px; }
.mission .ttl { font-size: clamp(24px, 3vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; margin-top: 12px; max-width: 520px; }
.mission .how { color: var(--blue-5); margin-top: 8px; max-width: 520px; font-size: 15px; }
.mission .acts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin-top: 24px; }
.mission .acts .btn { height: 54px; }
.mission .acts .btn.ghost { font-weight: 750; }
.mission .state { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.1); animation: pop .45s var(--ease); }
.mission .state .ok { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mission .state b { display: block; font-size: 16px; }
.mission .state span { color: var(--blue-5); font-size: 13.5px; }
.mission .state .link { color: #fff; margin-left: auto; font-size: 13px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 28px; height: 8px; border-radius: 9px; background: rgba(255,255,255,.2); }
.dots i.on { background: var(--orange); }
.easy-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #FFD8C7; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; border-radius: 16px; font-size: 12px; font-weight: 750; color: var(--muted); }
.wd.today { background: var(--mist); color: var(--navy); }
.wd .b { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--blue-5); color: var(--blue-4); }
.wd .b.done { background: var(--orange); border: 0; color: #fff; }
.wd .b.skip { background: var(--mist); border: 0; color: var(--blue-4); }
.wd .b.later { border: 1.5px solid var(--blue-4); color: var(--blue-3); }
.wd .b.mood { font-size: 13px; }

.mood { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mood button { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 6px; border-radius: 14px; background: var(--mist); font-size: 14px; font-weight: 750; color: var(--navy); line-height: 1.2; text-align: center; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.mood button:hover { border-color: var(--blue-5); background: #fff; }
.mood button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.brainmap { position: relative; }
.brainmap svg { width: 100%; height: auto; display: block; }
.brainmap svg { overflow: visible; }
.brainmap .edge { stroke: rgba(210,251,255,.07); stroke-width: .6; }
.brainmap .edge.f { stroke: rgba(210,251,255,.4); }
.brainmap .edge.lit { stroke: var(--orange-2); stroke-width: 1.3; filter: drop-shadow(0 0 3px rgba(255,90,30,.75)); animation: glow 6s ease-in-out var(--dl, 0s) infinite; }
.brainmap .edge.new { stroke-dasharray: var(--len); animation: draw 1.4s var(--ease) both; }
.brainmap .node { fill: #d2fbff; opacity: .3; animation: twinkle var(--d, 6s) ease-in-out var(--dl, 0s) infinite; }
.brainmap .node.on { opacity: 1; filter: drop-shadow(0 0 4px rgba(210,251,255,.9)); animation-name: twinkleOn; }
.brainmap .node.lit { fill: #fff; opacity: 1; filter: drop-shadow(0 0 4px rgba(255,140,90,.9)); animation-name: twinkleLit; }
.brainmap .spark { stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 5 var(--len); stroke-dashoffset: 5; opacity: 0; filter: drop-shadow(0 0 3px rgba(210,251,255,.9)); animation: spark var(--d, 4s) ease-in-out var(--dl, 0s) infinite; }
.brainmap .spark.on { filter: drop-shadow(0 0 3px rgba(255,170,120,.95)); }
.brainmap .bm-float { transform-origin: 50% 50%; transform-box: fill-box; animation: bmfloat 9s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .1; } 50% { opacity: .22; } }
@keyframes twinkleOn { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
@keyframes twinkleLit { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
@keyframes glow { 0%, 100% { stroke-opacity: .75; } 50% { stroke-opacity: 1; } }
@keyframes spark { 0% { stroke-dashoffset: 5; opacity: 0; } 10% { opacity: .9; } 45% { opacity: .9; } 55%, 100% { stroke-dashoffset: calc(-1 * var(--len)); opacity: 0; } }
@keyframes bmfloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.012); } }
@media (prefers-reduced-motion: reduce) { .brainmap .node, .brainmap .edge.lit, .brainmap .bm-float { animation: none; } .brainmap .spark { display: none; } }
.bm-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.bm-stats b { font-size: 26px; font-weight: 800; display: block; line-height: 1.1; }
.bm-stats span { font-size: 12.5px; color: var(--blue-5); font-weight: 650; }

.mini-wci { display: flex; gap: 18px; align-items: center; }
.ring { position: relative; flex: 0 0 auto; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring .v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .v b { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.ring .v span { font-size: 11.5px; font-weight: 750; color: var(--muted); margin-top: 3px; }
.ring circle { transition: stroke-dashoffset 1.2s var(--ease); }

.notice { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 22px; background: linear-gradient(120deg, #FFF1EB, #FFE4D6); color: var(--ink); animation: rise .45s var(--ease) both; }
.notice .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.notice b { display: block; font-size: 15.5px; }
.notice span { font-size: 13.5px; color: #7A3A1E; }
.notice .btn { margin-left: auto; }
.notice.blue { background: linear-gradient(120deg, #E8ECFC, #DCE3FB); }
.notice.blue .ic { background: var(--navy); }
.notice.blue span { color: var(--blue-3); }

/* ---------- plan ---------- */
.prop { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 24px; border: 2px solid transparent; background: var(--mist); text-align: left; transition: border-color .2s, background .2s, transform .2s; position: relative; }
.prop:hover { background: #E8E9F3; }
.prop.on { border-color: var(--orange); background: #fff; box-shadow: var(--shadow); }
.prop .fimg { width: 64px; height: 64px; border-radius: 18px; background: #fff center / 120% no-repeat; flex: 0 0 auto; }
.prop.on .fimg { background-color: var(--mist); }
.prop .t { font-size: 17px; font-weight: 800; line-height: 1.25; }
.prop .why { font-size: 13px; color: var(--muted); line-height: 1.45; }
.prop .tick { position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--blue-5); display: flex; align-items: center; justify-content: center; }
.prop.on .tick { background: var(--orange); border-color: var(--orange); color: #fff; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--mist); border-radius: 99px; padding: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; background: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.stepper button:hover { color: var(--orange); }
.stepper b { min-width: 44px; text-align: center; font-size: 20px; }
.switch { position: relative; width: 50px; height: 30px; flex: 0 0 auto; border-radius: 99px; background: var(--blue-5); transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch.on { background: var(--orange); }
.switch.on::after { transform: translateX(20px); }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--mist); }
.opt-row:first-child { border-top: 0; }
.opt-row b { display: block; font-size: 15px; }
.opt-row span { font-size: 13px; color: var(--muted); }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lib-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: var(--mist); text-align: left; transition: background .2s; }
.lib-item:hover { background: var(--blue-6); }
.lib-item .fimg { width: 44px; height: 44px; border-radius: 14px; background: #fff center / 120% no-repeat; flex: 0 0 auto; }
.lib-item b { font-size: 14px; display: block; line-height: 1.3; }
.lib-item span { font-size: 12px; color: var(--muted); }

/* ---------- profile ---------- */
.wci-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.scale { position: relative; height: 10px; border-radius: 9px; background: linear-gradient(90deg, #FF4000 0 44.6%, #fff 44.6% 45.4%, #FF8A4C 45.4% 59.6%, #fff 59.6% 60.4%, oklch(0.8 0.15 80) 60.4% 69.6%, #fff 69.6% 70.4%, oklch(0.78 0.15 125) 70.4% 79.6%, #fff 79.6% 80.4%, oklch(0.68 0.15 150) 80.4% 100%); margin-top: 26px; }
.scale .mk { position: absolute; top: -7px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); transform: translateX(-50%); box-shadow: 0 4px 10px rgba(19,45,137,.3); transition: left 1s var(--ease); }
.scale-l { position: relative; height: 18px; font-size: 11.5px; font-weight: 750; color: var(--muted); margin-top: 8px; }
.scale-l span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); font-size: 11px; }
.complete { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--mist); }
.complete .bar { flex: 1; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ftile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); text-align: left; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; min-height: 170px; animation: rise .45s var(--ease) both; }
.ftile:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -22px rgba(19,45,137,.45); }
.ftile .img { position: absolute; right: -14px; top: -10px; width: 96px; height: 96px; background: center / contain no-repeat; opacity: .9; }
.ftile .n { font-size: 15px; font-weight: 800; line-height: 1.25; max-width: calc(100% - 70px); }
.ftile .s { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin-top: auto; }
.ftile .s small { font-size: 14px; color: var(--muted); font-weight: 700; }
.ftile .meta { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 750; color: var(--muted); }
.ftile > .btn, .ftile > .chip { align-self: flex-start; }
.res-fx { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.res-fx span { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: 18px; background: var(--mist); min-width: 180px; }
.res-fx small { font-size: 12px; font-weight: 750; color: var(--muted); }
.res-fx b { font-size: 16px; color: var(--navy); }
.fgrid.in .ftile { background: #F0EFF4; box-shadow: none; }
.fgrid.in .ftile:hover { background: #fff; box-shadow: 0 30px 50px -24px rgba(120,124,160,.6); }
.fgrid.in .ftile.ctx { background: #F0EFF4; }
.f-legend { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: #2E469E; }
.f-legend span { display: flex; gap: 6px; align-items: center; }
.f-legend i { width: 8px; height: 8px; border-radius: 50%; }
.ftile.ctx { background: linear-gradient(160deg, #fff, #F3F4FB); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--mist); stroke-width: 1; }
.chart .ax { font-size: 11px; fill: var(--muted); font-weight: 700; font-family: var(--font); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; font-weight: 750; color: var(--blue-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.bench { display: flex; flex-direction: column; gap: 14px; }
.bench .r { display: grid; grid-template-columns: 150px minmax(0, 1fr) 36px; gap: 12px; align-items: center; font-size: 13.5px; font-weight: 700; }
.bench .r b { text-align: right; }
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--mist); }
.li:first-child { border-top: 0; }
.li .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--mist); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--navy); }
.li b { display: block; font-size: 14.5px; line-height: 1.3; }
.li span { font-size: 12.5px; color: var(--muted); }
.li .end { margin-left: auto; text-align: right; flex: 0 0 auto; }
.sdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 26px 16px; border-radius: 20px; background: var(--mist); color: var(--blue-3); }
.empty b { font-size: 15px; color: var(--navy); }
.empty span { font-size: 13px; max-width: 360px; }

/* ---------- progress ---------- */
.season { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.sw { height: 34px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; font-size: 12px; white-space: nowrap; font-weight: 800; color: var(--blue-5); border: 1.5px solid transparent; }
.sw.rhythm { background: var(--orange); color: #fff; }
.sw.pause { background: rgba(255,255,255,.18); color: #fff; }
.sw.missed { background: rgba(255,255,255,.06); border-color: rgba(190,201,241,.25); }
.sw.current { border-color: #fff; color: #fff; }
.sw.current.rhythm { border-color: #FFD8C7; }
.slegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; font-weight: 700; color: var(--blue-5); }
.slegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ms { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.badge { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; background: var(--mist); position: relative; }
.badge .md { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--blue-5); border: 2px dashed var(--blue-5); }
.badge.got { background: linear-gradient(160deg, #fff, #FFF3ED); box-shadow: var(--shadow); }
.badge.got .md { background: linear-gradient(140deg, var(--orange), #FF8A4D); color: #fff; border: 0; box-shadow: 0 10px 20px -8px rgba(255,64,0,.6); }
.badge b { font-size: 14.5px; line-height: 1.25; }
.badge span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.pattern { display: flex; gap: 14px; padding: 18px; border-radius: 22px; background: var(--mist); }
.pattern .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pattern b { font-size: 15px; line-height: 1.4; display: block; }
.pattern span { font-size: 12.5px; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 10px; }
.spark i { flex: 1; border-radius: 3px; background: var(--blue-5); min-height: 3px; }
.spark i.hi { background: var(--orange); }

/* ---------- drawer & overlays ---------- */
.scrim { position: fixed; inset: 0; background: rgba(11,27,87,.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 200; animation: fade .2s ease; }
.drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(560px, calc(100vw - 24px)); background: #fff; border-radius: 28px; z-index: 210; overflow-y: auto; animation: slideIn .35s var(--ease); box-shadow: var(--shadow-lg); }
.drawer .dh { position: relative; padding: 28px 28px 24px; background: radial-gradient(120% 140% at 100% 0%, #2B49C2, var(--navy) 55%); color: #fff; border-radius: 28px 28px 0 0; overflow: hidden; }
.drawer .dh .img { position: absolute; right: -10px; top: 0; width: 170px; height: 170px; background: center / contain no-repeat; opacity: .55; }
.drawer .db { padding: 24px 28px 32px; display: flex; flex-direction: column; gap: 22px; }
.x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 2; }
.x:hover { background: rgba(255,255,255,.25); }
.x.dk { background: var(--mist); color: var(--navy); }
.sec-t { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.kv { display: flex; flex-direction: column; gap: 8px; }
.kv .it { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--mist); font-size: 14px; }
.kv .it svg { flex: 0 0 auto; margin-top: 2px; }
.kv .it b { display: block; font-size: 14px; }
.kv .it span { font-size: 12.5px; color: var(--muted); }
.sim { padding: 18px; border-radius: 20px; background: linear-gradient(120deg, #E8ECFC, #F4F6FE); }
.sim b { font-size: 16px; }
.doctor { padding: 18px; border-radius: 20px; border: 1.5px solid #E8C766; background: var(--amber-soft); }
.doctor h4 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; color: #7A5600; }
.doctor ul { margin: 10px 0 0 18px; font-size: 13.5px; color: #5F4A12; display: flex; flex-direction: column; gap: 6px; }

.full { position: fixed; inset: 0; z-index: 300; background: var(--mist); overflow-y: auto; animation: fade .25s ease; }
.full-in { max-width: 760px; margin: 0 auto; padding: 24px 20px 40px; min-height: 100%; display: flex; flex-direction: column; }
.sv-top { display: flex; align-items: center; gap: 14px; }
.sv-top .bar { flex: 1; height: 8px; }
.sv-top .bar i { background: linear-gradient(90deg, var(--navy), var(--orange)); }
.sv-q { margin-top: 36px; animation: rise .35s var(--ease); }
.sv-fac { display: flex; align-items: center; gap: 12px; }
.sv-fac .fimg { width: 52px; height: 52px; border-radius: 16px; background: #fff center / 120% no-repeat; }
.sv-q h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; line-height: 1.2; letter-spacing: -.015em; margin-top: 22px; }
.sv-tip { margin-top: 10px; font-size: 14px; color: var(--muted); }
.sv-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.sv-opts button { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 20px; border-radius: 18px; background: #fff; font-weight: 750; font-size: 16px; text-align: left; box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.sv-opts button:hover { border-color: var(--blue-5); }
.sv-opts button.on { border-color: var(--orange); }
.sv-opts button .k { width: 30px; height: 30px; border-radius: 50%; background: var(--mist); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: 0 0 auto; }
.sv-opts button.on .k { background: var(--orange); color: #fff; }

.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; background: #fff; border-radius: 28px; z-index: 210; padding: 28px; animation: sheet .3s var(--ease); box-shadow: var(--shadow-lg); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: var(--mist); text-align: left; border: 2px solid transparent; transition: border-color .2s, background .2s; }
.choice b { font-size: 14.5px; }
.choice span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.choice.on { border-color: var(--orange); background: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { height: 36px; padding: 0 14px; border-radius: 99px; background: var(--mist); font-size: 13.5px; font-weight: 750; color: var(--blue-3); border: 1.5px solid transparent; }
.tag.on { background: #fff; border-color: var(--orange); color: var(--navy); }
textarea.inp, input.inp { width: 100%; border: 1.5px solid var(--blue-5); border-radius: 16px; padding: 12px 14px; background: #fff; outline: none; transition: border-color .2s; }
input.inp { height: 50px; }
textarea.inp { min-height: 84px; resize: vertical; }
.inp:focus { border-color: var(--navy); }
label.fl { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
label.fl small { font-weight: 650; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--blue-3); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--orange); flex: 0 0 auto; margin-top: 1px; }

/* ---------- welcome ---------- */
.welcome { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; }
.w-left { padding: 40px clamp(20px, 5vw, 72px); display: flex; flex-direction: column; gap: 28px; }
.w-right { position: relative; background: radial-gradient(120% 100% at 80% 10%, #2B49C2, var(--navy) 50%, #081648); color: #fff; overflow: hidden; display: flex; align-items: flex-end; padding: 48px; }
.w-right img.hero { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; mix-blend-mode: screen; }
.w-right .quote { position: relative; max-width: 420px; }
.w-right .quote b { font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.w-right .quote p { color: var(--blue-5); margin-top: 10px; }
.w-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.w-feat div { padding: 16px; border-radius: 20px; background: var(--mist); }
.w-feat b { display: block; font-size: 22px; font-weight: 800; color: var(--orange); }
.w-feat span { font-size: 13px; color: var(--blue-3); font-weight: 650; line-height: 1.35; display: block; margin-top: 2px; }
.persona { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 22px; border: 1.5px solid var(--blue-5); text-align: left; width: 100%; transition: border-color .2s, transform .2s; }
.persona:hover { border-color: var(--orange); transform: translateY(-2px); }
.persona .av { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto; }
.persona b { display: block; font-size: 15.5px; }
.persona span { font-size: 13px; color: var(--muted); }

/* ---------- coach ---------- */
.chat { display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.msg { max-width: 82%; padding: 14px 16px; border-radius: 20px; font-size: 14.5px; line-height: 1.55; animation: rise .3s var(--ease); white-space: pre-line; }
.msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: var(--mist); border-bottom-left-radius: 6px; }
.msg .src { display: flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 11.5px; font-weight: 800; color: var(--green); white-space: normal; }
.msg .src.no { color: var(--muted); }
.composer { display: flex; gap: 10px; margin-top: 16px; }
.composer input { flex: 1; }
.prompts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- knowledge ---------- */
.kb p { font-size: 15px; line-height: 1.7; color: var(--blue-3); margin-top: 10px; }
.kb h3 { font-size: 18px; font-weight: 800; margin-top: 26px; }
.kb ul { margin: 10px 0 0 20px; color: var(--blue-3); line-height: 1.7; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  :root { --side: 236px; }
  .g-today { grid-template-columns: minmax(0, 1fr); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .welcome { grid-template-columns: 1fr; }
  .w-right { min-height: 320px; order: -1; padding: 28px 20px; }
  .w-right .quote b { font-size: 21px; }
}
@media (max-width: 860px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-105%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); width: min(300px, 86vw); }
  .side.open { transform: none; }
  .side-scrim { position: fixed; inset: 0; z-index: 29; background: rgba(11,27,87,.35); animation: fade .2s; }
  .top { position: sticky; top: 0; max-width: none; padding: 12px 16px; gap: 8px; background: rgba(240,239,244,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
  .top .mlogo { display: flex; }
  .top .greet { gap: 2px; }
  .top .greet .eb { font-size: 10px; letter-spacing: .3em; }
  .top .greet h1 { font-size: 20px; line-height: 26px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .top .sub { display: none; }
  .top .icon-btn, .top .avatar { width: 44px; height: 44px; }
  .demo-pill span { display: none; }
  .demo-pill { padding: 0 12px; }
  .content { padding: 4px 16px 110px; }
  .foot { padding-bottom: 100px; }
  .grid, .stack { gap: 14px; }
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 20px; border-radius: 24px; }
  .mission { padding: 22px; }
  .mission .acts { grid-template-columns: 1fr 1fr; }
  .mission .acts .btn.pri { grid-column: 1 / -1; }
  .wci-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .bench .r { grid-template-columns: 110px minmax(0, 1fr) 30px; font-size: 12.5px; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ftile { min-height: 150px; padding: 14px; }
  .ftile .img { width: 72px; height: 72px; }
  .ftile .n { font-size: 13.5px; }
  .ftile .s { font-size: 26px; }
  .ftile .meta { gap: 6px; }
  .ftile .aw { display: none; }
  .season { gap: 6px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sw { border-radius: 8px; font-size: 10px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom) * .5); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 6px; border-radius: 18px; font-size: 11px; font-weight: 750; color: var(--blue-3); }
  .tabbar a.on { background: var(--navy); color: #fff; }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; border-radius: 28px 28px 0 0; animation: sheet .35s var(--ease); }
  .drawer .dh, .drawer .db { padding-left: 20px; padding-right: 20px; }
  .modal { top: auto; bottom: 0; transform: none; left: 0; width: 100%; border-radius: 28px 28px 0 0; max-height: 92vh; padding: 24px 20px; }
  .notice { flex-wrap: wrap; }
  .notice .btn { margin-left: 0; width: 100%; }
  .pop { position: fixed; top: 70px; right: 12px; left: 12px; width: auto; }
  .w-feat { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .w-feat div { padding: 12px; }
  .w-feat b { font-size: 18px; }
  .w-feat span { font-size: 12px; }
}
@media (max-width: 520px) {
  .top .greet .eb { display: none; }
  .top .greet h1 { font-size: 18px; line-height: 23px; }
  .mood { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mood button { font-size: 13px; }
}

/* re-renders after the first one do not replay entrance animations */
.still *, .still *::before, .still *::after { animation: none !important; }
.still .brainmap .edge.new { animation: draw 1.4s var(--ease) both !important; }
.still .brainmap .node { animation: twinkle var(--d, 6s) ease-in-out var(--dl, 0s) infinite !important; }
.still .brainmap .node.on { opacity: 1; filter: drop-shadow(0 0 4px rgba(210,251,255,.9)); animation-name: twinkleOn; }
.brainmap .node.lit { animation-name: twinkleLit !important; }
.still .brainmap .edge.lit:not(.new) { animation: glow 6s ease-in-out var(--dl, 0s) infinite !important; }
.still .brainmap .spark { animation: spark var(--d, 4s) ease-in-out var(--dl, 0s) infinite !important; }
.still .brainmap .bm-float { animation: bmfloat 9s ease-in-out infinite !important; }
@media (prefers-reduced-motion: reduce) { .still .brainmap .node, .still .brainmap .edge.lit, .still .brainmap .bm-float { animation: none !important; } }
.still .toast { animation: sheet .3s var(--ease) !important; }
@media (max-width: 860px) { .scale-l span:nth-child(3), .scale-l span:nth-child(4) { display: none; } }
.still .mission .state.fresh { animation: pop .45s var(--ease) !important; }

/* ---------- login (same look as the previous dashboard) ---------- */
.login { position: fixed; inset: 0; z-index: 300; background: #132D89; overflow-y: auto; display: flex; animation: fade .35s ease; }
.lg-brain { position: absolute; top: 50%; right: 2%; transform: translateY(-50%); width: min(820px, calc(100% - 580px)); max-height: 90%; aspect-ratio: 4 / 3; pointer-events: none; }
.lg-brain canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lg-in { position: relative; z-index: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 36px 56px; display: flex; flex-direction: column; gap: 40px; min-height: 100%; }
.lg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.lg-top img { height: 36px; width: auto; display: block; }
.lg-tag { font-size: 12px; font-weight: 700; letter-spacing: .4em; text-transform: uppercase; color: #BEC9F1; }
.lg-mid { flex: 1; display: flex; align-items: center; }
.lg-col { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 26px; animation: rise .5s var(--ease); }
.lg-head { display: flex; flex-direction: column; gap: 12px; }
.lg-eye { font-size: 12px; font-weight: 700; letter-spacing: .4em; text-transform: uppercase; color: #FF4000; }
.lg-head h1 { font-size: 46px; font-weight: 800; line-height: 54px; color: #fff; }
.lg-head p { font-size: 17px; font-weight: 500; line-height: 26px; color: #C8D2F2; }
.lg-form { display: flex; flex-direction: column; gap: 16px; }
.lg-form label { display: flex; flex-direction: column; gap: 8px; }
.lg-form .lb { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; color: #C8D2F2; }
.lg-forgot { color: #BEC9F1; font-weight: 700; }
.lg-forgot:hover { color: #FF4000; }
.lg-inp { width: 100%; height: 54px; padding: 0 20px; border-radius: 14px; border: 1.5px solid rgba(190,201,241,.3); background: rgba(255,255,255,.06); color: #fff; font-size: 16px; font-weight: 600; outline: none; }
.lg-inp::placeholder { color: #7A89C1; }
.lg-inp:focus { border-color: #FF4000; background: rgba(255,255,255,.1); }
.lg-pw { position: relative; display: flex; }
.lg-pw .lg-inp { padding-right: 64px; }
.lg-pw button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 10px; border-radius: 10px; color: #BEC9F1; font-size: 12px; font-weight: 800; }
.lg-pw button:hover { color: #fff; }
.lg-form label.lg-check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; line-height: 19px; color: #C8D2F2; cursor: pointer; }
.lg-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lg-check .bx { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(190,201,241,.5); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 800; }
.lg-check input:checked + .bx { background: #FF4000; border-color: #FF4000; }
.lg-check input:checked + .bx::after { content: "✓"; }
.lg-check input:focus-visible + .bx { outline: 3px solid #FF4000; outline-offset: 2px; }
.lg-check a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: #FF4000; text-underline-offset: 3px; }
.lg-err { padding: 12px 16px; border-radius: 12px; background: rgba(255,64,0,.14); color: #FFB599; font-size: 14px; font-weight: 700; }
.lg-btn { margin-top: 6px; height: 56px; border-radius: 100px; background: #FF4000; color: #fff; font-size: 16px; font-weight: 700; transition: filter .2s, box-shadow .2s; }
.lg-btn:hover { filter: brightness(1.08); box-shadow: 0 14px 34px rgba(255,64,0,.28); }
.lg-switch { display: flex; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 600; color: #C8D2F2; }
.lg-switch a { color: #fff; font-weight: 800; border-bottom: 2px solid #FF4000; padding-bottom: 1px; }
.lg-switch a:hover { color: #FF4000; }
.lg-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; font-weight: 500; line-height: 18px; color: #7C90DB; }
.lg-foot div { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.lg-foot a { color: #BEC9F1; font-weight: 700; }
.lg-foot a:hover { color: #FF4000; }
@media (max-width: 760px) {
  .lg-in { padding: 22px 22px 26px; gap: 28px; }
  .lg-top img { height: 28px; }
  .lg-head h1 { font-size: 32px; line-height: 38px; }
}

/* ---------- Brain Health Factors (layout of the previous dashboard) ---------- */
.kb-wrap { display: flex; align-items: flex-start; gap: 20px; animation: rise .4s var(--ease); }
.kb-nav { position: sticky; top: 92px; flex: 0 0 270px; background: #fff; border-radius: 28px; padding: 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 40px 80px -40px rgba(120,124,160,.45); }
.kb-it { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px 6px 6px; border-radius: 16px; color: var(--navy); transition: background .2s; }
.kb-it:hover { background: var(--mist); color: var(--navy); }
.kb-it.on, .kb-it.on:hover { background: var(--navy); color: #fff; }
.kb-it .th { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--mist) center / 82% no-repeat; }
.kb-it.on .th { background-color: rgba(255,255,255,.14); }
.kb-it .nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 18px; }
.kb-it .sc { flex: 0 0 auto; font-size: 13px; font-weight: 800; }
.kb-it.sm { min-height: 46px; padding: 4px 12px 4px 4px; border-radius: 12px; }
.kb-it.sm .th { width: 36px; height: 36px; border-radius: 10px; }
.kb-mob { display: none; position: relative; width: 100%; }
.kb-sel { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px 8px 8px; border-radius: 18px; background: #fff; color: var(--navy); text-align: left; }
.kb-sel .th { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--mist) center / 82% no-repeat; }
.kb-sel .pos { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #FF4000; }
.kb-sel b { font-size: 15px; font-weight: 800; }
.kb-sel svg { transform: rotate(90deg); }
.kb-drop { position: absolute; z-index: 30; top: 62px; left: 0; right: 0; background: #fff; border-radius: 18px; padding: 6px; box-shadow: 0 20px 50px -10px rgba(19,45,137,.35); display: flex; flex-direction: column; gap: 2px; animation: fade .15s ease; }
.kb-art { flex: 1 1 auto; min-width: 0; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(120,124,160,.45); }
.kb-hero { position: relative; overflow: hidden; background: #132D89; color: #fff; padding: 44px 48px; display: flex; flex-direction: column; gap: 16px; }
.kb-hero .img { position: absolute; right: -56px; top: -28px; width: clamp(240px, 40%, 340px); aspect-ratio: 1; background: center / contain no-repeat; pointer-events: none; }
.kb-hero .pos { position: relative; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #FF8A5C; }
.kb-hero h2 { position: relative; max-width: calc(100% - 230px); font-size: 40px; font-weight: 800; line-height: 46px; }
.kb-hero p { position: relative; max-width: min(640px, calc(100% - 230px)); font-size: 16px; font-weight: 500; line-height: 26px; color: #DCE3FA; }
.kb-score { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 100px; background: rgba(255,255,255,.1); white-space: nowrap; }
.kb-score span { font-size: 13px; font-weight: 600; color: #BEC9F1; }
.kb-score b { font-size: 18px; font-weight: 800; color: #fff; }
.kb-body { padding: 44px 48px 40px; display: flex; flex-direction: column; gap: 36px; }
.kb-sec { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.kb-sec .n { font-size: 14px; font-weight: 800; color: #FF4000; padding-top: 4px; }
.kb-sec .c { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.kb-sec h3 { font-size: 22px; font-weight: 800; line-height: 28px; color: var(--navy); }
.kb-p { font-size: 15px; font-weight: 500; line-height: 25px; color: var(--blue-3); }
.kb-item { padding: 16px 18px; border-radius: 18px; background: var(--mist); display: flex; flex-direction: column; gap: 6px; }
.kb-item b { font-size: 15px; font-weight: 800; color: var(--navy); }
.kb-item p { font-size: 14px; font-weight: 500; line-height: 22px; color: var(--blue-3); }
.kb-concl { padding: 26px 28px; border-radius: 22px; background: var(--mist); display: flex; flex-direction: column; gap: 10px; }
.kb-concl .pos { font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #FF4000; }
.kb-concl p { font-size: 16px; font-weight: 600; line-height: 26px; color: var(--navy); }
.kb-refs-t { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--navy); }
.kb-refs-t:hover { color: #FF4000; }
.kb-refs { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.kb-refs li { font-size: 13px; font-weight: 500; line-height: 20px; color: #7A89C1; overflow-wrap: anywhere; }
.kb-pn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding-top: 28px; border-top: 1px solid #EEF0F7; }
.kb-pn a { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--mist); min-width: 0; }
.kb-pn a:hover { background: #E6E8F2; }
.kb-pn span { font-size: 12px; font-weight: 700; color: #7A89C1; }
.kb-pn b { font-size: 15px; font-weight: 800; line-height: 19px; color: var(--navy); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .kb-wrap { flex-direction: column; align-items: stretch; gap: 14px; }
  .kb-nav { display: none; }
  .kb-mob { display: block; }
  .kb-hero { padding: 24px 20px; }
  .kb-hero .img { width: 190px; right: -56px; top: -24px; opacity: .35; }
  .kb-hero h2 { max-width: 100%; font-size: 26px; line-height: 32px; }
  .kb-hero p { max-width: 100%; font-size: 15px; line-height: 23px; }
  .kb-body { padding: 24px 20px 22px; gap: 26px; }
  .kb-sec { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .kb-sec h3 { font-size: 19px; line-height: 25px; }
  .kb-concl { padding: 18px; }
  .kb-pn { padding-top: 20px; }
}

/* ---------- Luci floating chat ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 150; height: 60px; padding: 0 22px 0 18px; border-radius: 30px; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; box-shadow: 0 18px 36px -12px rgba(19,45,137,.6); transition: transform .2s var(--ease), background .2s; }
.fab:hover { transform: translateY(-2px); background: var(--navy-2); }
.chatbox { position: fixed; right: 24px; bottom: 24px; z-index: 150; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 48px)); background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: sheet .3s var(--ease); }
.chatbox header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 20px; background: var(--navy); color: #fff; }
.chatbox header b { display: block; font-size: 16px; }
.chatbox header span { font-size: 12.5px; color: var(--blue-5); }
.chatbox header .x { position: static; }
.ai-av { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.chatbox .chat { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px; gap: 12px; }
.chatbox .msg { max-width: 88%; font-size: 14px; }
.chatbox .prompts { padding: 0 16px 10px; flex-wrap: nowrap; overflow-x: auto; }
.chatbox .prompts .tag { white-space: nowrap; flex: 0 0 auto; }
.chatbox .composer { margin: 0; padding: 12px 16px 16px; border-top: 1px solid var(--mist); }
.chatbox .composer .btn { width: 50px; padding: 0; height: 50px; flex: 0 0 auto; }
@media (max-width: 860px) {
  .fab { right: 16px; bottom: 96px; height: 54px; padding: 0 18px 0 14px; }
  .chatbox { right: 0; left: 0; bottom: 0; width: 100%; height: min(86vh, 680px); border-radius: 28px 28px 0 0; z-index: 260; }
}
.card-h:has(.f-legend) { flex-wrap: wrap; align-items: flex-end; }

/* ---------- several missions a day ---------- */
.mt-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.mt-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: rgba(255,255,255,.08); transition: background .25s; }
.mt-row.done { background: rgba(255,255,255,.14); }
@keyframes rowpop { 0% { transform: scale(.97); } 60% { transform: scale(1.015); } 100% { transform: none; } }
.mt-row.fresh { animation: rowpop .45s var(--ease); }
.mt-row .fimg { width: 48px; height: 48px; border-radius: 14px; background: #fff center / 80% no-repeat; flex: 0 0 auto; }
.mt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mt-txt b { font-size: 16px; line-height: 1.3; }
.mt-txt span { font-size: 13px; color: var(--blue-5); }
.mt-txt .mt-easy { display: inline-flex; align-items: center; gap: 5px; color: #FFD8C7; font-size: 12.5px; }
.mt-act { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.mt-act .btn.ghost { background: rgba(255,255,255,.12); color: #fff; }
.mt-act .btn.ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.mt-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; color: var(--blue-5); }
.mt-st.ok { color: #fff; background: var(--orange); height: 34px; padding: 0 14px; border-radius: 99px; }
.mt-undo { font-size: 12.5px; font-weight: 750; color: var(--blue-5); text-decoration: underline; padding: 6px; }
.mt-add { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 800; font-size: 14px; color: #fff; padding: 10px 16px; border-radius: 99px; border: 1.5px dashed rgba(190,201,241,.5); }
.mt-add:hover { border-color: #fff; }
.still .mt-row.fresh { animation: rowpop .45s var(--ease) !important; }
.wd .b .cnt { font-size: 14px; font-weight: 800; }
.wm-list { display: flex; flex-direction: column; gap: 12px; }
.wm { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 22px; background: var(--mist); }
.wm .fimg { width: 64px; height: 64px; border-radius: 18px; background: #fff center / 80% no-repeat; flex: 0 0 auto; }
.wm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wm-t b { font-size: 17px; line-height: 1.3; }
.wm-a { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn.sm { width: 38px; height: 38px; }
.rv-ms { display: flex; flex-direction: column; gap: 6px; }
.rv-ms div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--mist); font-size: 14px; }
.cc { display: flex; align-items: center; gap: 22px; border: 2px solid #FFD5C2; }
.cc-ring { flex: 0 0 auto; }
.cc-ring .ring .v b { font-size: 22px; }
.cc-ring .ring .v span { font-size: 10px; }
.cc-txt { flex: 1; min-width: 0; }
.cc-act { display: flex; flex-direction: column; gap: 8px; align-items: stretch; flex: 0 0 auto; }
.how-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; text-align: left; }
.hs { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.modal .hs { background: var(--mist); box-shadow: none; }
.hs .n { width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hs b { font-size: 15.5px; }
.hs p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.intro-how { margin-top: 8px; }
@media (max-width: 760px) {
  .mt-row { flex-wrap: wrap; }
  .mt-act { width: 100%; padding-left: 62px; }
  .mt-act .btn { flex: 1; }
  .wm { flex-wrap: wrap; }
  .wm-a { width: 100%; justify-content: flex-end; }
  .cc { flex-direction: column; align-items: stretch; text-align: left; gap: 14px; }
  .cc-ring { align-self: flex-start; }
}
.pill-tog button { white-space: nowrap; }
.card-h:has(.pill-tog) { flex-wrap: wrap; }

/* Today: WCI card with focus factors */
.wci-card { position: relative; }
.wci-card .mini-wci { padding-right: 44px; }
.wci-go { position: absolute; top: 18px; right: 18px; background: var(--mist); box-shadow: none; }
.wf { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(19,45,137,.08); }
.wf-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; color: var(--navy); font-weight: 700; font-size: 14.5px; border-bottom: 1px solid rgba(19,45,137,.06); }
.wf-row:last-child { border-bottom: 0; padding-bottom: 0; }
.wf-row:first-of-type { margin-top: 6px; }
.wf-row b { font-size: 16px; font-weight: 800; }
.wf-row:hover span { color: var(--orange); }
.wf-row b small { font-size: 11px; font-weight: 700; color: var(--muted); margin-left: 1px; }
.bm-legend { display: grid; gap: 10px; margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--blue-5); }
.bm-legend > div { display: flex; gap: 10px; align-items: flex-start; }
.bm-legend b { color: #fff; font-weight: 750; }
.bm-legend i { flex: 0 0 auto; margin-top: 5px; }
.bm-legend .dot { width: 9px; height: 9px; border-radius: 50%; background: #d2fbff; box-shadow: 0 0 6px rgba(210,251,255,.8); }
.bm-legend .ln { width: 14px; height: 2px; margin-top: 9px; border-radius: 2px; background: var(--orange-2); box-shadow: 0 0 5px rgba(255,90,30,.8); }
/* Today: both columns end at the same height (last card stretches). */
.g-today { align-items: stretch; }
.g-today > .stack { display: flex; flex-direction: column; }
.g-today > .stack > :last-child { flex: 1 1 auto; }
.brainmap { display: flex; flex-direction: column; }
.brainmap > svg { margin: auto 0; }
.lg-sample { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 4px; padding: 14px 18px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; text-align: left; transition: background .2s, border-color .2s; }
.lg-sample:hover { background: rgba(255,255,255,.14); border-color: #FF4000; }
.lg-sample .av { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #132D89; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.lg-sample > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.lg-sample b { font-size: 15px; font-weight: 800; }
.lg-sample small { font-size: 13px; color: #C8D2F2; font-weight: 600; }

/* ---------- Profile journey: chapters, quick question, unlocks (UX audit 2026-11) ---------- */
.cc.pj { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
.pj-h { display: flex; gap: 20px; align-items: center; }
.pj-h .cc-txt { flex: 1; min-width: 0; }
.pj-h .cc-act { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.chaps { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.chap { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 16px; background: var(--mist); text-align: center; border: 1.5px solid transparent; transition: border-color .2s, background .2s; min-width: 0; }
.chap:hover { border-color: var(--blue-5); background: #fff; }
.chap.cur { border-color: var(--orange); background: #fff; }
.chap .cr { position: relative; width: 48px; height: 48px; border-radius: 50%; background: conic-gradient(var(--orange) calc(var(--p) * 1%), #DCDFEA 0); display: flex; align-items: center; justify-content: center; }
.chap.ok .cr { background: var(--green); }
.chap .th { width: 40px; height: 40px; border-radius: 50%; background: #fff center / 130% no-repeat; }
.chap .cr i { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.chap .nm { font-size: 11.5px; font-weight: 800; color: var(--navy); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.4em; }
.chap .pc { font-size: 11px; font-weight: 750; color: var(--muted); }
.chap.ok .pc { color: var(--green); }
.unl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.unl > div { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1.5px dashed var(--blue-5); }
.unl > div.got { border-style: solid; border-color: var(--green-soft); background: var(--green-soft); }
.unl .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--mist); color: var(--blue-3); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.unl .got .ic { background: var(--green); color: #fff; }
.unl b, .fd-list b, .mt-lock b { display: block; font-size: 14px; color: var(--navy); }
.unl small, .fd-list small, .mt-lock small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.qq h2 { font-size: 19px; }
.qq-o { display: flex; flex-wrap: wrap; gap: 8px; }
.qq-o button { flex: 1 1 0; min-width: 92px; min-height: 46px; padding: 6px 10px; border-radius: 14px; background: var(--mist); font-size: 13.5px; font-weight: 750; color: var(--navy); border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.qq-o button:hover { border-color: var(--orange); background: #fff; }
.mt-lock { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: 18px; border: 1.5px dashed rgba(190,201,241,.45); color: #fff; text-align: left; transition: border-color .2s, background .2s; }
.mt-lock:hover { border-color: var(--orange); background: rgba(255,255,255,.06); }
.mt-lock > span:nth-child(2) { flex: 1; min-width: 0; }
.mt-lock b { color: #fff; }
.mt-lock small { color: var(--blue-5); }
.mt-lock .ic { width: 34px; height: 34px; border-radius: 12px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.estl { display: block; font-size: 11.5px; font-weight: 650; color: var(--muted); margin-top: 1px; }
.ch-done { max-width: 720px; }
.ch-card { padding: 28px 24px; }
.ch-top { display: flex; gap: 14px; align-items: center; }
.ch-top .fimg { width: 64px; height: 64px; border-radius: 20px; background: var(--mist) center / 120% no-repeat; flex: 0 0 auto; }
.ch-score { display: flex; gap: 20px; align-items: center; margin-top: 20px; }
.ch-done .chaps { margin-top: 16px; padding: 12px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.ch-done .chap { background: var(--mist); }
.fd-list { display: flex; flex-direction: column; gap: 10px; text-align: left; max-width: 460px; margin-left: auto; margin-right: auto; }
.fd-list > div { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--mist); }
.fd-list .ic { width: 34px; height: 34px; border-radius: 12px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.content { padding-bottom: 110px; } /* room for the floating Ask Luci button */
@media (max-width: 1100px) { .chaps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pj-h { flex-wrap: wrap; }
  .pj-h .cc-act { width: 100%; }
  .unl { grid-template-columns: 1fr; }
  .chap .cr { width: 42px; height: 42px; } .chap .th { width: 35px; height: 35px; }
  .mood { gap: 6px; } .mood button { font-size: 12.5px; min-height: 48px; padding: 6px 2px; }
  .ch-score { flex-wrap: wrap; }
}
@media (max-width: 520px) { .mood { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } .qq-o button { min-width: 0; flex-basis: calc(50% - 4px); } .chaps { gap: 6px; } .chap { padding: 8px 2px; } .chap .nm { font-size: 10.5px; } }
@media (max-width: 760px) { .pj-h { flex-direction: column; align-items: flex-start; gap: 14px; } }
@media (max-width: 520px) { .chap .nm { font-size: 9.5px; letter-spacing: -.01em; } .chap { padding: 8px 1px; } .qq-o button:last-child { flex-basis: 100%; } }

/* ---------- login: test accounts + demo account ---------- */
.lg-or { display: flex; align-items: center; gap: 14px; color: #9FB0E8; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 2px 0; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.18); }
.empty .bar { margin-top: 12px; }
