@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --ink: #21304b;
  --muted: #76839a;
  --blue: #5d96ee;
  --blue-deep: #3d75ce;
  --blue-soft: #e9f3ff;
  --pink: #ee8fb3;
  --pink-soft: #fff0f5;
  --cream: #f8f7f2;
  --card: rgba(255,255,255,.92);
  --line: #e8eaf0;
  --shadow: 0 16px 42px rgba(65, 87, 126, .09);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "DM Sans", "Noto Sans SC", sans-serif; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 220px; padding: 28px 22px; background: rgba(255,255,255,.82); border-right: 1px solid rgba(220,225,236,.8); backdrop-filter: blur(18px); z-index: 20; display: flex; flex-direction: column; }
.brand { border: 0; background: none; padding: 0 8px; display: flex; gap: 12px; align-items: center; text-align: left; cursor: pointer; }
.brand b { display: block; font-size: 18px; letter-spacing: -.03em; }
.brand small { color: var(--muted); font-size: 11px; }
.brand-mark { width: 39px; height: 39px; background: var(--blue-soft); border-radius: 12px; display: grid; place-content: center; grid-template-columns: repeat(3, 6px); gap: 2px; transform: rotate(-4deg); }
.brand-mark i { display:block; width:6px; height:6px; background:var(--blue); box-shadow:0 8px 0 var(--pink); }
.desktop-nav { margin-top: 48px; display: grid; gap: 8px; }
.nav-item { border: 0; background: transparent; border-radius: 14px; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; padding: 11px 12px; text-align:left; cursor:pointer; color:var(--muted); }
.nav-item span { grid-row:1/3; width:28px; height:28px; display:grid; place-items:center; border-radius:9px; font-size:18px; }
.nav-item b { font-size:14px; color:var(--ink); }
.nav-item small { font-size:10px; }
.nav-item.active { background:var(--blue-soft); color:var(--blue-deep); }
.nav-item.active span { background:white; box-shadow:0 3px 10px rgba(66,111,174,.12); }
.sidebar-card { margin-top:auto; padding:17px; border-radius:18px; background:linear-gradient(145deg,#edf6ff,#fff1f7); border:1px solid white; }
.sidebar-card strong { display:block; margin:7px 0 14px; font-size:13px; line-height:1.45; }
.sidebar-card small { font-size:10px; color:var(--muted); }
.mini-progress,.progress-track { height:6px; border-radius:99px; background:#e8edf5; overflow:hidden; }
.mini-progress i,.progress-track i { height:100%; display:block; background:linear-gradient(90deg,var(--blue),var(--pink)); border-radius:inherit; }
.main-content { margin-left:220px; padding: 0 46px 60px; max-width: 1640px; }
.site-legal-footer { margin-left:220px; padding:0 46px 28px; display:flex; justify-content:center; align-items:center; gap:8px; color:#8191a7; font-size:10px; line-height:1.7; text-align:center; }
.site-legal-footer a { color:inherit; text-decoration:none; }
.site-legal-footer a:hover,.site-legal-footer a:focus-visible { color:var(--blue-deep); text-decoration:underline; }
.topbar { min-height:116px; display:flex; align-items:center; justify-content:space-between; gap:30px; }
.topbar h1 { margin:4px 0 0; font-size:24px; letter-spacing:-.04em; }
.eyebrow { color:var(--blue-deep); text-transform:uppercase; font-size:10px; font-weight:700; letter-spacing:.14em; }
.profile-strip { display:flex; align-items:center; gap:18px; }
.level-badge { width:52px; height:52px; border-radius:17px; background:var(--ink); color:white; display:grid; place-content:center; text-align:center; box-shadow:0 9px 22px rgba(33,48,75,.18); }
.level-badge span { font-size:8px; letter-spacing:.1em; }
.level-badge b { font-size:19px; line-height:1; }
.currency { padding-left:18px; border-left:1px solid var(--line); }
.currency small,.currency b { display:block; }
.currency small { color:var(--muted); font-size:9px; margin-bottom:3px; }
.currency b { font-size:13px; }
.currency.coin b { color:#d27a9c; }
.avatar { width:42px; height:42px; border-radius:50%; border:3px solid white; background:linear-gradient(145deg,var(--blue-soft),var(--pink-soft)); box-shadow:0 4px 15px rgba(45,64,95,.12); color:var(--blue-deep); font-weight:700; cursor:pointer; }
.page { display:none; animation:pageIn .35s ease; }
.page.active { display:block; }
@keyframes pageIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.card { background:var(--card); border:1px solid rgba(230,233,239,.9); border-radius:var(--radius); box-shadow:var(--shadow); }
.hero-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(290px,.75fr); gap:20px; }
.welcome-card { min-height:300px; padding:34px 34px 28px; display:grid; grid-template-columns:1.1fr .9fr; overflow:hidden; position:relative; background:linear-gradient(135deg,#fff 0%,#f8fbff 55%,#fff4f8 100%); }
.welcome-card h2 { font-size:34px; margin:14px 0 10px; letter-spacing:-.05em; }
.welcome-card p { max-width:520px; color:var(--muted); line-height:1.8; font-size:14px; }
.date-chip,.soft-chip { display:inline-flex; align-items:center; padding:7px 11px; border-radius:99px; background:var(--blue-soft); color:var(--blue-deep); font-size:11px; font-weight:700; }
.primary-button,.secondary-button { border:0; border-radius:13px; padding:12px 17px; cursor:pointer; font-size:12px; font-weight:700; transition:.2s ease; }
.primary-button { color:white; background:var(--blue); box-shadow:0 8px 18px rgba(76,139,230,.23); }
.primary-button:hover { background:var(--blue-deep); transform:translateY(-1px); }
.secondary-button { background:white; border:1px solid var(--line); }
.secondary-button:hover { border-color:var(--blue); color:var(--blue-deep); }
.primary-button span,.secondary-button span { margin-left:8px; }
.mini-island { min-height:230px; position:relative; align-self:end; }
.pixel-sun { position:absolute; width:35px; height:35px; background:#ffd590; border-radius:50%; right:18%; top:8%; box-shadow:0 0 0 8px rgba(255,213,144,.15); }
.cloud { position:absolute; width:45px; height:12px; background:white; border-radius:20px; box-shadow:14px -6px 0 1px white; opacity:.9; }
.cloud-a { top:20%; left:5%; }.cloud-b { top:35%; right:2%; transform:scale(.7); }
.island-ground { position:absolute; left:14%; right:8%; bottom:33px; height:72px; background:#92c9a6; border-radius:50% 50% 40% 40%; box-shadow:inset 0 -15px 0 #73ad8a, 0 18px 0 -6px #bd966e; }
.academy { position:absolute; width:120px; height:62px; left:36%; bottom:87px; background:#e5a087; border:6px solid #fff8ea; box-shadow:inset 0 -8px 0 #d98570; }
.academy:before { content:""; position:absolute; width:78px; height:24px; left:15px; top:-29px; background:#627e9b; clip-path:polygon(50% 0,100% 100%,0 100%); }
.academy:after { content:""; position:absolute; width:14px; height:26px; background:#745f64; left:47px; bottom:0; }
.academy i { position:relative; display:inline-block; width:9px; height:13px; background:#a7d9e8; margin:14px 5px 0 10px; border:2px solid white; }
.water-line { position:absolute; height:3px; left:7%; right:0; bottom:15px; background:repeating-linear-gradient(90deg,var(--blue) 0 25px,transparent 25px 38px); opacity:.45; }
.direction-card { padding:28px; }
.card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.card-heading h3 { margin:5px 0 0; font-size:18px; letter-spacing:-.03em; }
.direction-list { margin-top:23px; display:grid; gap:13px; }
.direction-list>div { display:grid; grid-template-columns:34px 1fr auto; align-items:center; padding:12px; border-radius:14px; background:#fafbfd; }
.island-dot { width:30px; height:30px; border-radius:10px; display:block; background:var(--blue-soft); position:relative; }
.island-dot:after { content:""; position:absolute; width:14px; height:8px; border-radius:50%; background:currentColor; left:8px; top:12px; }
.island-dot.ai { color:#6a9fe8; }.island-dot.health { color:#82bc9b; background:#edf8f1; }.island-dot.study { color:#e9a0b9; background:#fff0f5; }
.direction-list p { margin:0; }.direction-list b,.direction-list small { display:block; }.direction-list b { font-size:12px; }.direction-list small { color:var(--muted); font-size:9px; margin-top:3px; }.direction-list strong { font-size:11px; color:var(--blue-deep); }
.dashboard-grid { display:grid; grid-template-columns:minmax(300px,.8fr) minmax(500px,1.2fr); gap:20px; margin-top:20px; }
.task-card,.bingo-card { padding:28px; }
.text-button,.icon-button { border:0; background:none; color:var(--blue-deep); font-size:11px; font-weight:700; cursor:pointer; }
.icon-button { width:32px; height:32px; border-radius:10px; background:var(--blue-soft); font-size:16px; }
.heading-actions { display:flex; gap:8px; align-items:center; }
.task-list { display:grid; gap:10px; margin-top:22px; }
.task-row { display:grid; grid-template-columns:24px 1fr auto; gap:10px; align-items:center; padding:11px 8px; border-bottom:1px solid #f0f1f4; }
.task-row-tools { display:flex; align-items:center; gap:5px; }
.icon-action { width:28px; height:28px; display:grid; place-items:center; border:1px solid #dce7f5; border-radius:8px; background:#f7fbff; color:#5c7da9; cursor:pointer; font-size:12px; }
.icon-action:hover { border-color:#8ebcf5; color:#2f78d8; background:#edf6ff; }
.icon-action.danger,.danger-button { color:#b95766; }
.icon-action.danger:hover { border-color:#e8a7b1; background:#fff2f4; }
.danger-button { border:1px solid #efc4ca; background:#fff5f6; border-radius:10px; padding:10px 13px; cursor:pointer; font-weight:700; }
.empty-task-message { color:var(--muted); font-size:11px; padding:18px 8px; margin:0; text-align:center; }
.dashboard-action-empty b,.dashboard-action-empty small { display:block; }.dashboard-action-empty b { color:#365a87; font-size:12px; }.dashboard-action-empty small { margin-top:5px; color:var(--muted); font-size:9px; }
.check-button { width:22px; height:22px; border-radius:8px; border:1.5px solid #ccd4e1; background:white; cursor:pointer; display:grid; place-content:center; color:white; }
.task-row.done .check-button { background:var(--blue); border-color:var(--blue); }.task-row.done .check-button:after { content:"✓"; font-size:12px; }.task-row.done .task-name { text-decoration:line-through; color:#9aa4b4; }
.task-name { font-size:12px; font-weight:600; }.task-meta { display:block; color:var(--muted); font-size:9px; margin-top:3px; }
.core-label { color:#d46f97; background:var(--pink-soft); border-radius:99px; padding:5px 8px; font-size:9px; }
.normal-label { color:var(--muted); font-size:9px; }
.task-footer { margin-top:17px; display:grid; grid-template-columns:auto 1fr; gap:14px; align-items:center; color:var(--muted); font-size:10px; }
.card-intro { color:var(--muted); font-size:11px; margin:10px 0 16px; }
.bingo-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.bingo-tile { aspect-ratio:1.15; border:1px solid #e4e8ef; border-radius:13px; background:#fbfcfe; padding:7px 4px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; cursor:pointer; transition:.18s ease; min-width:0; }
.bingo-tile:hover { transform:translateY(-2px); border-color:#b8d2f7; }.bingo-tile.done { background:linear-gradient(145deg,#dcecff,#edf5ff); border-color:#a9c9f5; box-shadow:inset 0 -3px 0 rgba(92,149,235,.13); }.bingo-tile:nth-child(5n+3).done { background:linear-gradient(145deg,#ffe4ee,#fff2f6); border-color:#f1bed1; }
.bingo-icon { font-size:17px; line-height:1; }.bingo-label { font-size:9px; font-weight:600; width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; text-align:center; }
.bingo-legend { display:flex; gap:18px; margin-top:15px; color:var(--muted); font-size:9px; align-items:center; }.legend-dot { display:inline-block; width:8px; height:8px; border-radius:3px; border:1px solid #cfd6e2; margin-right:5px; }.legend-dot.done { background:var(--blue); border-color:var(--blue); }.reward-note { margin-left:auto; color:#cf7898; }
.reflection-banner { margin-top:20px; padding:24px 28px; display:grid; grid-template-columns:54px 1fr auto; gap:20px; align-items:center; background:linear-gradient(100deg,#f0f7ff,#fff 55%,#fff0f5); }
.companion-orb { width:50px; height:50px; border-radius:18px; display:grid; place-items:center; background:var(--ink); color:white; font-size:22px; box-shadow:0 8px 18px rgba(33,48,75,.18); }
.reflection-banner h3 { margin:4px 0; font-size:16px; }.reflection-banner p { margin:0; color:var(--muted); font-size:10px; }
.section-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.segmented { display:flex; padding:5px; background:white; border:1px solid var(--line); border-radius:14px; box-shadow:0 6px 18px rgba(50,70,100,.05); }.segmented button { border:0; background:none; padding:10px 16px; border-radius:10px; color:var(--muted); cursor:pointer; font-size:11px; font-weight:700; }.segmented button.active { background:var(--blue-soft); color:var(--blue-deep); }.compact { padding:11px 15px; }
.quest-board { display:grid; gap:15px; }.quest-item { padding:22px 24px; }.quest-top { display:grid; grid-template-columns:auto 1fr auto; gap:15px; align-items:center; }.quest-symbol { width:43px; height:43px; border-radius:14px; display:grid; place-items:center; background:var(--blue-soft); font-size:20px; }.quest-title h3 { margin:0 0 4px; font-size:15px; }.quest-title p { margin:0; color:var(--muted); font-size:10px; }.quest-reward { text-align:right; }.quest-reward b,.quest-reward small { display:block; }.quest-reward b { font-size:13px; color:var(--blue-deep); }.quest-reward small { font-size:9px; color:var(--muted); }.milestones { margin:18px 0 0 58px; display:flex; gap:10px; flex-wrap:wrap; }.milestone { padding:8px 11px; border:1px solid var(--line); border-radius:10px; font-size:10px; color:var(--muted); }.milestone.done { background:var(--blue-soft); color:var(--blue-deep); border-color:#c9defa; }.quest-actions { display:flex; align-items:center; gap:12px; margin:17px 0 0 58px; }.quest-actions .progress-track { flex:1; }.quest-actions span { font-size:9px; color:var(--muted); }
.quest-item-daily { border-left:4px solid #4d9cff; background:linear-gradient(115deg,#fff,#f5faff); }
.quest-item-weekly { border-left:4px solid #6d8ee8; background:linear-gradient(115deg,#fff,#f6f6ff); }
.quest-item-epic { border-left:4px solid #d884b2; background:linear-gradient(115deg,#fff,#fff6fb); }
.quest-item-weekly .quest-symbol { background:#eef0ff; color:#657bce; }
.quest-item-epic .quest-symbol { background:#fff0f7; color:#bd6999; }
.subtask-section { margin:17px 0 0 58px; padding:13px; border:1px solid #e2eaf5; border-radius:12px; background:rgba(255,255,255,.72); }
.subtask-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.subtask-heading b { font-size:10px; color:#52739e; }
.subtask-heading button { border:0; background:none; color:#397fda; font-size:10px; font-weight:700; cursor:pointer; }
.subtask-list { display:grid; gap:5px; }
.subtask-list>small { color:var(--muted); padding:5px 0; }
.subtask-row { display:grid; grid-template-columns:20px minmax(0,1fr) 28px 28px; align-items:center; gap:7px; min-height:35px; padding:5px 6px; border-radius:8px; }
.subtask-row:hover { background:#f5f9ff; }
.subtask-row>span { font-size:11px; }
.subtask-row.done>span { text-decoration:line-through; color:#98a5b7; }
.subtask-row .check-button { width:18px; height:18px; }
.subtask-row .check-button.done { background:var(--blue); border-color:var(--blue); }
.subtask-row .check-button.done:after { content:'✓'; font-size:11px; }
.journey-intro { padding:28px 32px; display:flex; justify-content:space-between; align-items:center; gap:30px; background:linear-gradient(120deg,#fff,#eef7ff); }.journey-intro h2 { margin:6px 0 8px; font-size:25px; }.journey-intro p { margin:0; color:var(--muted); font-size:12px; }.journey-stat { min-width:220px; }.journey-stat small,.journey-stat strong { display:block; }.journey-stat small { color:var(--muted); font-size:9px; }.journey-stat strong { margin:3px 0 8px; font-size:23px; }
.island-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:20px; }.island-card { overflow:hidden; cursor:pointer; transition:.2s ease; }.island-card:hover { transform:translateY(-3px); box-shadow:0 20px 45px rgba(65,87,126,.14); }.island-scene { height:180px; position:relative; overflow:hidden; background:linear-gradient(#dceeff 0 68%,#9ed5ea 68%); }.island-scene.pink { background:linear-gradient(#ffe7ef 0 68%,#b2d9e9 68%); }.island-scene.green { background:linear-gradient(#e5f4ed 0 68%,#acd8e6 68%); }.island-shape { position:absolute; width:68%; height:42px; background:#7fb08f; border-radius:50%; left:16%; bottom:24px; box-shadow:0 11px 0 -2px #a88769; }.landmark { position:absolute; left:50%; bottom:58px; transform:translateX(-50%); color:#d3907a; filter:drop-shadow(0 5px 0 rgba(73,90,112,.1)); }.landmark.bpark { width:106px; height:48px; background:currentColor; border:7px solid #f3dec7; }.landmark.bpark:before { content:""; position:absolute; width:84px; height:30px; left:4px; top:-31px; background:#687c92; clip-path:polygon(0 100%,14% 32%,35% 32%,50% 0,65% 32%,87% 32%,100% 100%); }.landmark.academy-mark { width:112px; height:46px; background:#db8d75; box-shadow:inset 0 -8px #c87767; }.landmark.academy-mark:before { content:""; position:absolute; width:132px; height:28px; left:-10px; top:-26px; background:#586f85; clip-path:polygon(0 78%,45% 78%,50% 15%,55% 78%,100% 78%,92% 100%,8% 100%); }.landmark.globe { width:94px; height:55px; border-radius:48% 48% 10% 10%; background:#ead4b0; border:8px solid #9b6d5c; box-shadow:inset 0 0 0 9px #f6e9d2; }.landmark.bridge { width:120px; height:38px; background:#dfc6ad; border-radius:50% 50% 0 0; border:7px solid #b78e78; }.landmark.bridge:after { content:""; position:absolute; width:48px; height:32px; border-radius:50% 50% 0 0; background:#acd8e6; left:29px; bottom:-7px; }.landmark.stadium { width:128px; height:54px; border:10px solid #e8d7c4; border-radius:50%; background:#87ad75; transform:translateX(-50%) rotateX(55deg); }.island-label { padding:19px 20px 20px; }.island-label .row { display:flex; justify-content:space-between; gap:12px; }.island-label h3 { margin:4px 0 5px; font-size:15px; }.island-label p { margin:0; color:var(--muted); font-size:10px; }.stage { align-self:center; border-radius:99px; padding:6px 9px; background:var(--blue-soft); color:var(--blue-deep); font-size:9px; font-weight:700; }.island-label .progress-track { margin-top:14px; }
.companion-layout { display:grid; grid-template-columns:minmax(350px,.8fr) minmax(450px,1.2fr); gap:20px; }.journal-panel,.reflection-result { padding:30px; min-height:650px; }.journal-panel h2 { font-size:26px; margin:7px 0; }.journal-panel>p { color:var(--muted); font-size:11px; line-height:1.7; }.journal-panel textarea { width:100%; min-height:210px; resize:vertical; border:1px solid var(--line); background:#fbfcfe; border-radius:17px; padding:16px; margin:15px 0; outline:none; line-height:1.7; font-size:12px; }.journal-panel textarea:focus,.memory-field input:focus,.app-dialog input:focus,.app-dialog select:focus { border-color:#91baf2; box-shadow:0 0 0 3px rgba(94,150,237,.1); }.rating-row { display:flex; justify-content:space-between; align-items:center; padding:11px 3px; border-bottom:1px solid #f0f1f4; font-size:11px; }.rating { display:flex; gap:6px; }.rating button { width:27px; height:27px; border-radius:9px; border:1px solid var(--line); background:white; cursor:pointer; font-size:12px; }.rating button.active { color:white; background:var(--pink); border-color:var(--pink); }.memory-field { display:block; font-size:11px; font-weight:600; margin:17px 0; }.memory-field input { display:block; width:100%; border:1px solid var(--line); border-radius:12px; padding:12px; margin-top:8px; outline:none; }.full { width:100%; margin-top:7px; }.reflection-result { background:linear-gradient(145deg,#fff,#f8fbff); }.empty-reflection { height:100%; display:grid; place-content:center; text-align:center; max-width:330px; margin:auto; color:var(--muted); }.empty-reflection>span { width:58px; height:58px; margin:auto; display:grid; place-items:center; border-radius:20px; background:var(--blue-soft); color:var(--blue-deep); font-size:25px; }.empty-reflection h3 { color:var(--ink); font-size:17px; margin:17px 0 6px; }.empty-reflection p { font-size:11px; line-height:1.7; }.reflection-content h2 { font-size:23px; margin:7px 0 5px; }.reflection-content>p { color:var(--muted); font-size:11px; }.reflection-section { margin-top:23px; padding-top:18px; border-top:1px solid var(--line); }.reflection-section h3 { margin:0 0 12px; font-size:13px; }.reflection-section ol { margin:0; padding-left:22px; }.reflection-section li { margin:9px 0; font-size:11px; line-height:1.6; }.goal-analysis { display:grid; gap:9px; }.goal-row { display:grid; grid-template-columns:90px 24px 1fr; gap:10px; padding:10px 12px; background:white; border-radius:12px; font-size:10px; }.trend-up { color:#46a179; font-weight:700; }.trend-flat { color:#d18a62; font-weight:700; }.tomorrow-focus { margin-top:20px; padding:16px; border-radius:15px; background:linear-gradient(120deg,var(--blue-soft),var(--pink-soft)); }.tomorrow-focus small { color:var(--blue-deep); font-size:9px; font-weight:700; }.tomorrow-focus strong { display:block; margin-top:5px; font-size:13px; }
.mobile-nav { display:none; }
.app-dialog { width:min(720px,calc(100% - 30px)); max-height:85vh; border:0; border-radius:24px; padding:0; box-shadow:0 24px 90px rgba(33,48,75,.25); }.app-dialog::backdrop { background:rgba(33,48,75,.35); backdrop-filter:blur(4px); }.app-dialog form { padding:26px; }.dialog-heading { display:flex; justify-content:space-between; align-items:flex-start; }.dialog-heading h2 { margin:5px 0; }.dialog-close { width:36px; height:36px; border:0; border-radius:12px; background:#f4f5f7; cursor:pointer; font-size:22px; }.app-dialog>form>p { color:var(--muted); font-size:11px; }.bingo-editor { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:18px; max-height:48vh; overflow:auto; padding-right:5px; }.edit-row { display:grid; grid-template-columns:44px 1fr; gap:7px; }.edit-row input { min-width:0; border:1px solid var(--line); border-radius:10px; padding:9px; font-size:11px; }.dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }.small-dialog { width:min(480px,calc(100% - 30px)); }.small-dialog label { display:block; font-size:11px; font-weight:600; margin-top:15px; }.small-dialog input,.small-dialog select { width:100%; border:1px solid var(--line); border-radius:11px; padding:11px; margin-top:7px; outline:none; background:white; }.small-dialog .inline-check { display:flex; align-items:center; gap:8px; }.small-dialog .inline-check input { width:auto; margin:0; }.toast { position:fixed; z-index:100; left:50%; bottom:28px; transform:translate(-50%,30px); padding:11px 16px; background:var(--ink); color:white; border-radius:12px; font-size:11px; opacity:0; pointer-events:none; transition:.25s ease; box-shadow:0 12px 30px rgba(33,48,75,.2); }.toast.show { opacity:1; transform:translate(-50%,0); }
.task-dialog form { max-height:85vh; overflow:auto; }
.task-quick-fields { display:grid; gap:2px; }
.task-more-settings { margin-top:14px; border:1px solid #dfe9f5; border-radius:11px; background:#f8fbff; }
.task-more-settings summary { padding:11px 13px; color:#4779b4; font-size:10px; font-weight:700; cursor:pointer; list-style-position:inside; }
.task-more-settings-body { padding:0 13px 13px; border-top:1px solid #e5edf7; }
.task-period-fields { grid-template-columns:1fr 1fr; gap:10px; }
.task-period-fields:not([hidden]) { display:grid; }
.dialog-action-spacer { flex:1; }
.task-dialog-actions { align-items:center; }
.primary-button:disabled { opacity:.45; cursor:not-allowed; filter:grayscale(.25); }
.onboarding-dialog { width:min(880px,calc(100% - 30px)); max-height:min(820px,calc(100vh - 30px)); overflow:auto; padding:30px 34px 26px; background:linear-gradient(150deg,#fff 0 68%,#edf6ff); border:1px solid #d9e8f8; }
.onboarding-close { position:absolute; top:18px; right:18px; }
.onboarding-progress { display:flex; justify-content:center; gap:7px; }.onboarding-progress i { width:24px; height:5px; border-radius:4px; background:#dfe9f6; transition:.2s ease; }.onboarding-progress i.active { background:#4d98f4; }
.onboarding-step { min-height:300px; display:grid; place-content:center; justify-items:center; text-align:center; padding:25px 24px 12px; }.onboarding-step[hidden] { display:none; }.onboarding-visual { width:72px; height:72px; display:grid; place-items:center; margin-bottom:16px; border-radius:22px; background:linear-gradient(145deg,#e9f4ff,#fff0f6); font-size:36px; box-shadow:0 7px 0 #dbeaf9; }.onboarding-step>small { color:#4387dd; font-size:9px; font-weight:800; letter-spacing:.15em; }.onboarding-step h2 { margin:8px 0; color:#233c60; font-size:24px; }.onboarding-step p { max-width:540px; margin:0; color:#687d99; font-size:12px; line-height:1.8; }
.onboarding-islands { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; margin-top:18px; }.onboarding-islands span { padding:7px 10px; border:1px solid #d8e7f7; border-radius:8px; background:rgba(255,255,255,.85); color:#537092; font-size:9px; font-weight:700; }
.onboarding-actions { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:9px; padding-top:17px; border-top:1px solid #e4edf7; }
.onboarding-field { width:min(390px,100%); margin-top:22px; text-align:left; color:#4c6688; font-size:11px; font-weight:800; }.onboarding-field input,.onboarding-field select { width:100%; margin-top:7px; padding:12px 14px; border:1px solid #d7e5f5; border-radius:10px; background:#fff; color:#203a5d; font:inherit; }.onboarding-world-step { display:block; min-height:0; padding-top:24px; }.onboarding-selection-count { display:inline-block; margin:12px 0; padding:6px 12px; border-radius:999px; background:#e8f3ff; color:#2f7ddd; }.onboarding-island-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; text-align:left; }.onboarding-island-choice { min-height:150px; padding:14px; border:1px solid #dce9f7; border-radius:14px; background:rgba(255,255,255,.88); color:#496583; cursor:pointer; transition:.18s ease; }.onboarding-island-choice:hover { transform:translateY(-2px); border-color:#8fc0f8; }.onboarding-island-choice.selected { border-color:#378bf0; background:linear-gradient(145deg,#eaf5ff,#f7fbff); box-shadow:0 0 0 3px rgba(55,139,240,.13),0 5px 0 #cfe6ff; }.onboarding-island-choice span { display:block; font-size:28px; }.onboarding-island-choice b { display:block; margin:8px 0 5px; color:#274970; }.onboarding-island-choice small { font-size:9px; line-height:1.55; }.text-button { border:0; background:transparent; color:#6c83a0; font-weight:700; cursor:pointer; }

.user-avatar { display:grid; place-items:center; flex:0 0 auto; border:2px solid #8fc2f6; border-radius:32%; background:linear-gradient(145deg,#eaf5ff,#fff0f6); color:#23538a; font-weight:900; box-shadow:0 3px 0 #d2e7fb; }.user-avatar-xs { width:34px; height:34px; font-size:15px; }.user-avatar-sm { width:48px; height:48px; font-size:20px; }.user-avatar-lg { width:72px; height:72px; font-size:30px; }.player-card { width:100%; border:1px solid #dce8f5; text-align:left; cursor:pointer; color:inherit; }.player-card>span:last-child { min-width:0; display:block; }.player-card .xp-line { display:block; }
.profile-dialog { width:min(900px,calc(100% - 30px)); max-height:calc(100vh - 30px); overflow:auto; padding:26px; }.profile-dialog .dialog-heading p { margin:4px 0 0; color:#70839d; font-size:11px; }.profile-tabs { display:flex; gap:6px; margin:20px 0; padding:5px; border-radius:12px; background:#edf5fe; }.profile-tabs button { flex:1; padding:10px; border:0; border-radius:9px; background:transparent; color:#5d7592; font-weight:800; cursor:pointer; }.profile-tabs button.active { background:#fff; color:#287bdd; box-shadow:0 3px 10px rgba(64,120,180,.12); }.profile-panel { display:none; }.profile-panel.active { display:block; }.profile-form { display:grid; gap:16px; }.profile-form label { color:#425f80; font-size:11px; font-weight:800; }.profile-form input,.profile-form textarea,.add-island-form input,.managed-island-fields input { width:100%; margin-top:6px; padding:11px 12px; border:1px solid #d8e6f4; border-radius:9px; background:#fbfdff; color:#203a5d; font:inherit; box-sizing:border-box; }.profile-form input:focus,.profile-form textarea:focus,.add-island-form input:focus,.managed-island-fields input:focus { outline:3px solid rgba(62,145,240,.13); border-color:#5fa5f2; }.profile-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; }.profile-avatar-editor { display:flex; align-items:center; gap:18px; padding:18px; border:1px solid #dce9f6; border-radius:14px; background:linear-gradient(135deg,#f6fbff,#fff8fb); }.profile-avatar-editor b,.profile-avatar-editor small { display:block; }.profile-avatar-editor small { margin-top:6px; color:#7c8da4; font-size:9px; }.avatar-options { display:flex; flex-wrap:wrap; gap:7px; margin-top:9px; }.avatar-option { width:38px; height:38px; border:1px solid #d9e7f5; border-radius:10px; background:#fff; cursor:pointer; }.avatar-option.selected { border-color:#3d8ff0; box-shadow:0 0 0 3px rgba(61,143,240,.14); }.manual-choice-section { padding:15px; border:1px solid #dde9f5; border-radius:13px; background:#f9fcff; }.manual-choice-section>b { display:block; margin-bottom:10px; color:#2d4d73; }.manual-choice-section>small { display:block; margin-top:9px; color:#7b8ca2; }.choice-chips { display:flex; flex-wrap:wrap; gap:7px; }.choice-chip input { position:absolute; opacity:0; pointer-events:none; }.choice-chip span { display:block; padding:7px 10px; border:1px solid #d9e7f5; border-radius:999px; background:#fff; color:#617995; cursor:pointer; font-size:10px; }.choice-chip input:checked+span { border-color:#4a96ee; background:#eaf5ff; color:#286ebc; }.island-manager-intro { margin-bottom:14px; padding:14px; border-radius:12px; background:#eef7ff; color:#355b86; }.island-manager-intro p { margin:5px 0 0; color:#7188a3; font-size:10px; }.profile-island-list { display:grid; gap:10px; }.managed-island { padding:14px; border:1px solid #dae7f4; border-radius:13px; background:#fff; }.managed-island.sleeping { opacity:.68; background:#f4f6f9; }.managed-island-head { display:flex; gap:10px; align-items:center; }.managed-island-head>span { font-size:24px; }.managed-island-head b,.managed-island-head small { display:block; }.managed-island-head small { color:#7c8da2; font-size:9px; }.managed-island-fields { display:grid; grid-template-columns:70px 160px 1fr; gap:8px; margin-top:10px; }.managed-island-actions { display:flex; justify-content:flex-end; gap:7px; margin-top:10px; }.add-island-form { display:grid; grid-template-columns:70px 160px 1fr auto; gap:8px; margin-top:16px; padding-top:16px; border-top:1px solid #e1ebf5; }.profile-empty { color:#71849e; text-align:center; }
.custom-choice-add { display:flex; gap:7px; margin-top:10px; }.custom-choice-add input { margin:0; }.custom-choice-add button { flex:0 0 auto; }

@media (max-width:1100px) {
  .main-content { padding-left:28px; padding-right:28px; }
  .site-legal-footer { padding-left:28px; padding-right:28px; }
  .hero-grid,.dashboard-grid { grid-template-columns:1fr; }
  .island-grid { grid-template-columns:repeat(2,1fr); }
  .companion-layout { grid-template-columns:1fr; }.journal-panel,.reflection-result { min-height:auto; }
}

@media (max-width:760px) {
  body { padding-bottom:76px; }
  .site-legal-footer { margin-left:0; padding:2px 15px 24px; flex-wrap:wrap; gap:2px 7px; }
  .sidebar { display:none; }.main-content { margin-left:0; padding:0 15px 30px; }.topbar { min-height:86px; }.topbar h1 { font-size:18px; }.topbar .eyebrow { display:none; }.currency { display:none; }.profile-strip { gap:9px; }.level-badge { width:42px; height:42px; border-radius:14px; }.avatar { width:38px; height:38px; }
  .hero-grid { display:block; }.direction-card { display:none; }.welcome-card { min-height:260px; padding:24px; grid-template-columns:1.2fr .8fr; }.welcome-card h2 { font-size:26px; }.welcome-card p { font-size:11px; line-height:1.65; }.mini-island { min-height:180px; transform:scale(.78); transform-origin:right bottom; }.academy { left:24%; }.dashboard-grid { display:block; }.task-card,.bingo-card { padding:22px; margin-top:15px; }.bingo-grid { gap:5px; }.bingo-tile { border-radius:10px; aspect-ratio:.92; padding:4px 2px; }.bingo-icon { font-size:15px; }.bingo-label { font-size:8px; }.reflection-banner { grid-template-columns:42px 1fr; padding:20px; }.reflection-banner .secondary-button { grid-column:1/3; }.companion-orb { width:42px; height:42px; border-radius:14px; }.mobile-nav { position:fixed; display:grid; grid-template-columns:repeat(4,1fr); left:0; right:0; bottom:0; z-index:40; background:rgba(255,255,255,.93); border-top:1px solid var(--line); backdrop-filter:blur(15px); padding:8px 8px max(8px,env(safe-area-inset-bottom)); }.mobile-nav button { border:0; background:none; display:flex; flex-direction:column; align-items:center; gap:2px; color:var(--muted); font-size:9px; cursor:pointer; }.mobile-nav button span { font-size:17px; }.mobile-nav button.active { color:var(--blue-deep); font-weight:700; }.section-toolbar { align-items:stretch; gap:8px; flex-direction:column; }.segmented { width:100%; }.segmented button { flex:1; padding:9px 5px; }.quest-item { padding:18px; }.quest-top { grid-template-columns:38px 1fr; }.quest-reward { grid-column:2; text-align:left; }.milestones,.quest-actions { margin-left:0; }.journey-intro { display:block; padding:23px; }.journey-intro h2 { font-size:21px; }.journey-stat { margin-top:20px; min-width:0; }.island-grid { grid-template-columns:1fr; }.island-scene { height:165px; }.companion-layout { display:block; }.journal-panel,.reflection-result { padding:22px; margin-bottom:15px; }.journal-panel textarea { min-height:170px; }.bingo-editor { grid-template-columns:1fr; }.app-dialog form { padding:20px; }.task-dialog form { max-height:min(85vh,680px); }.task-dialog .dialog-actions { position:sticky; bottom:-20px; margin:16px -20px -20px; padding:13px 20px 18px; background:#fff; border-top:1px solid #e5edf7; }
  .onboarding-dialog { padding:24px 14px 14px; }.onboarding-step { min-height:330px; padding:32px 8px 12px; }.onboarding-world-step { min-height:0; padding-top:20px; }.onboarding-step h2 { font-size:21px; }.onboarding-step p { font-size:11px; }.onboarding-island-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.onboarding-island-choice { min-height:142px; padding:11px; }.onboarding-actions { position:sticky; bottom:-14px; margin:0 -14px -14px; padding:13px 14px max(14px,env(safe-area-inset-bottom)); background:rgba(255,255,255,.96); }.onboarding-actions button { padding:10px 11px; font-size:10px; }
  .profile-dialog { width:calc(100% - 16px); max-height:calc(100vh - 16px); padding:18px 14px; border-radius:18px; }.profile-dialog .dialog-heading h2 { font-size:21px; }.profile-tabs { position:sticky; top:-18px; z-index:2; margin:16px -6px; }.profile-tabs button { padding:9px 4px; font-size:10px; }.profile-grid { grid-template-columns:1fr; }.profile-avatar-editor { align-items:flex-start; padding:14px; }.managed-island-fields,.add-island-form { grid-template-columns:58px 1fr; }.managed-island-fields input:last-child,.add-island-form input:nth-child(3),.add-island-form button { grid-column:1/-1; }.managed-island-actions { flex-wrap:wrap; }.managed-island-actions button { flex:1; }.profile-dialog .dialog-actions { position:sticky; bottom:-18px; margin:16px -14px -18px; padding:12px 14px max(14px,env(safe-area-inset-bottom)); background:#fff; border-top:1px solid #e3edf6; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; } }
