
:root{--ink:#243650;--muted:#718197;--green:#117a70;--mint:#e5f7f0;--line:#e2e9ef;--bg:#f3f6fa;--gold:#ffce68;--ruby:#ed6488}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px system-ui,-apple-system,sans-serif}button,input,select,textarea{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;min-height:44px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink);padding:10px 15px;font-weight:600;box-shadow:0 2px 0 #21334c08;transition:background .15s,transform .15s}button:hover{border-color:#8bbdb4;background:#f1faf7}button:active{transform:translateY(1px)}button:disabled{opacity:.55;cursor:wait}.primary{background:linear-gradient(135deg,#198d80,#13746c);color:white;border-color:#13746c;box-shadow:0 4px 10px #147e6e20}.primary:hover{background:#106e63}.shell{display:grid;grid-template-columns:246px minmax(0,1fr);max-width:1480px;margin:auto;min-height:100vh}aside{padding:30px 22px;background:#fff;border-right:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}.brand-mark{display:flex}.brand-mark .v-icon{width:48px;height:48px}.brand-word{font-size:30px;font-weight:850;letter-spacing:-1.5px}.brand-caption{display:block;color:var(--muted);font-size:10px;font-weight:650;letter-spacing:1px;margin-top:2px}nav{display:grid;gap:7px;margin-top:36px}nav button{justify-content:flex-start;text-align:left;border:0;background:transparent;color:var(--muted);box-shadow:none;padding:12px}nav button.active{background:var(--mint);color:#17766a;box-shadow:inset 3px 0 #21b39a;font-weight:750}.motto{font-size:12px;line-height:1.9;color:var(--muted);margin-top:48px}main{padding:32px 38px;min-width:0}header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}small{color:var(--muted);font-weight:650;font-size:11px;letter-spacing:.7px}#workspace{display:block;overflow-wrap:anywhere}h1{font-size:29px;letter-spacing:-1px;margin:6px 0 8px}h2{font-size:22px;margin:0 0 16px;letter-spacing:-.5px}h3{font-size:17px;margin:0 0 8px}p{line-height:1.6;color:var(--muted)}.v-icon{width:23px;height:23px;flex:0 0 auto;vertical-align:middle}button .v-icon{width:20px;height:20px}.character-avatar{width:82px;height:82px;flex:0 0 auto;display:inline-block;filter:drop-shadow(0 5px 7px #203d5710)}.legacy-avatar{display:inline-flex;align-items:center;justify-content:center;font-size:48px;background:#eef3fc;border-radius:50%}.journey-banner{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;overflow:hidden;background:linear-gradient(120deg,#233855,#264a64 65%,#28716f);border-radius:24px;padding:27px 30px;margin-bottom:24px;box-shadow:0 9px 22px #273e5510;color:#fff}.journey-banner::before{content:'';position:absolute;width:220px;height:220px;border:1px solid #ffffff12;border-radius:50%;right:-25px;top:-70px}.journey-banner::after{content:'';position:absolute;width:160px;height:160px;border:26px solid #ffffff06;border-radius:50%;right:12px;bottom:-105px}.banner-copy{position:relative;z-index:1;max-width:640px}.banner-copy small{color:#c6efe6;letter-spacing:1.4px;font-size:10px}.banner-copy h2{font-size:clamp(23px,3vw,31px);margin:10px 0 8px;line-height:1.2}.banner-copy p{color:#ccdde6;font-size:14px;margin:0 0 12px}.banner-art{position:relative;flex:0 0 126px;height:135px;z-index:1}.banner-art .character-avatar{width:108px;height:108px;position:absolute;left:8px;top:10px;filter:drop-shadow(0 12px 12px #00162540)}.banner-art .orbit-star{position:absolute;width:32px;height:32px;top:0;right:0;transform:rotate(13deg)}.banner-art .orbit-ruby{position:absolute;width:34px;height:34px;bottom:0;left:0;transform:rotate(-12deg)}.points-row{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.points-chip{display:inline-flex;align-items:center;gap:5px;background:#fff7e2;border:1px solid #f6e5b8;border-radius:12px;padding:7px 10px;font-size:12px;color:#936829;white-space:nowrap}.points-chip strong{font-size:16px}.points-chip.ruby{background:#fff0f4;border-color:#f8d7e2;color:#ad4c6a}.points-chip .v-icon{width:22px;height:22px}.journey-banner .points-chip{background:#ffffff12;border-color:#ffffff19;color:#fff}.hero{border-radius:22px;background:linear-gradient(120deg,#e3f6ee,#ebf4ff);padding:26px;margin-bottom:24px;border:1px solid #d8ede5}.hero h2{font-size:30px;max-width:590px;margin-top:12px}.hero p{max-width:600px}.panel,.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:23px;margin-bottom:16px;box-shadow:0 5px 18px #28425704}.card{transition:border-color .2s}.card:hover{border-color:#c9dcd9}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.grid .card{margin:0}.row{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.quest-emblem{position:relative;display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;background:#ecf7f1;border-radius:18px;margin-bottom:14px}.quest-emblem .v-icon{width:36px;height:36px}.quest-emblem>span{position:absolute;right:-4px;bottom:-4px;font-size:19px;background:#fff;border-radius:50%;padding:3px;border:1px solid var(--line)}.reward-emblem{background:#fff0f4}.wallet-amount,.xp-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.wallet-amount .v-icon,.xp-heading .v-icon{width:45px;height:45px}.level-track{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0 8px}.level-track>span{font-weight:750;display:flex;align-items:center;gap:6px}.level-track .v-icon{width:28px;height:28px}progress{display:block;width:100%;height:13px;border:0;border-radius:10px;overflow:hidden;background:#e8edf3;accent-color:#26b79c}progress::-webkit-progress-bar{background:#e8edf3;border-radius:10px}progress::-webkit-progress-value{background:linear-gradient(90deg,#178f80,#55d0a2);border-radius:10px}progress::-moz-progress-bar{background:linear-gradient(90deg,#178f80,#55d0a2);border-radius:10px}.xp-progress{height:17px;accent-color:#efb642}.xp-progress::-webkit-progress-value{background:linear-gradient(90deg,#f0ad43,#ffe394)}.xp-progress::-moz-progress-bar{background:linear-gradient(90deg,#f0ad43,#ffe394)}label{display:block;font-size:14px;font-weight:600;margin-bottom:16px}input,select,textarea{width:100%;margin-top:8px;padding:12px;border:1px solid #cbd7e0;border-radius:12px;color:var(--ink);background:#fff;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #47bba6;outline-offset:2px}textarea{min-height:100px}input[type=checkbox]{width:20px;vertical-align:middle;margin:0 8px 0 0;accent-color:#178e7d}select[multiple]{min-height:100px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.metrics .panel{margin:0}.metric{font-size:32px;font-weight:800;display:block;margin-top:10px;color:#208373}.pill{font-size:11px;font-weight:700;background:var(--mint);color:#25806a;padding:6px 10px;border-radius:20px;display:inline-block}.empty{padding:30px;text-align:center;border:1px dashed #c0d4d2;border-radius:18px;color:var(--muted)}#status{min-height:24px;margin-bottom:16px;font-size:13px;color:#23816e}#status.error,#editError{color:#b34762}dialog{border:1px solid var(--line);border-radius:24px;padding:26px;width:min(600px,94vw);max-height:90vh;overflow:auto;color:var(--ink);box-shadow:0 25px 80px #152a4b40}dialog::backdrop{background:#172d4e80}footer{margin-top:40px;font-size:11px;color:var(--muted)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line)}th{color:#587088}.celebrate{animation:celebrate .55s ease}@keyframes celebrate{50%{background:#e0f6cf}}[hidden]{display:none!important}.picker,.avatar-picker{border:0;padding:0;margin:0 0 20px;min-width:0}.picker legend,.avatar-picker legend{font-size:14px;font-weight:650;margin-bottom:10px}.picker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}.picker-option{display:flex;align-items:center;gap:8px;min-height:48px;padding:12px;border:1px solid #cbd7e0;border-radius:12px;margin:0;cursor:pointer;font-weight:500}.picker-option input[type=checkbox]{flex:0 0 20px;height:20px;margin:0}.picker-option:has(input:checked){background:var(--mint);border-color:#4bb19f}.picker-option:focus-within,.avatar-choice:focus-within{outline:2px solid #188b7b;outline-offset:2px}.picker-option span{overflow-wrap:anywhere}.field-help{font-size:13px;margin:-8px 0 16px}#editPending .panel{padding:16px}#editPending button{margin:4px 8px 0 0}.avatar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.avatar-choice{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;border:2px solid #e8edf3;border-radius:17px;padding:12px 5px;margin:0;font-size:11px;text-align:center;background:#fff;min-width:0}.avatar-choice input{position:absolute;top:8px;left:8px;margin:0;width:15px;accent-color:#169b85}.avatar-choice .character-avatar{width:64px;height:64px}.avatar-choice:has(input:checked){background:#ecf9f1;border-color:#32b99e;box-shadow:0 3px 10px #27b59f15}.passphrase-control{display:flex;gap:8px;align-items:stretch;margin-bottom:16px}.passphrase-control input{flex:1;margin:0}.passphrase-control button{flex:0 0 auto}button.processing{gap:8px;opacity:.85}.button-spinner{display:inline-block;flex:0 0 16px;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:button-spin .75s linear infinite}@keyframes button-spin{to{transform:rotate(360deg)}}.mobile-menu,.mobile-ledger{display:none}.transaction-card{padding:14px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.transaction-card:last-child{border-bottom:0}.transaction-card .row{align-items:flex-start}.transaction-card strong{font-size:14px}.transaction-card p{font-size:13px;margin:8px 0 0}.transaction-amount{font-weight:750;white-space:nowrap}
@media(max-width:760px){.shell{display:block}aside{padding:16px 18px;border-right:0;border-bottom:1px solid var(--line)}.brand-mark .v-icon{width:37px;height:37px}.brand-word{font-size:26px}.brand-caption{font-size:9px}.motto{display:none}.mobile-menu{display:flex;justify-content:space-between;width:100%;margin-top:15px;background:#eef6f5;font-size:13px}.mobile-menu::after{content:'⌄';margin-left:8px}.mobile-menu[aria-expanded=true]::after{content:'⌃'}nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;margin-top:8px;gap:6px}nav button{white-space:normal;text-align:left;min-width:0;font-size:12px;padding:11px 8px}aside[data-menu-open=false] nav{display:none}main{padding:22px 16px}h1{font-size:25px}.journey-banner{padding:22px 18px;border-radius:21px;gap:10px;margin-bottom:18px}.banner-copy h2{font-size:22px}.banner-copy p{font-size:12px}.banner-art{flex-basis:80px;width:80px;height:100px}.banner-art .character-avatar{width:74px;height:74px;left:0;top:10px}.banner-art .orbit-star,.banner-art .orbit-ruby{width:25px;height:25px}.points-chip{padding:5px 7px;font-size:10px;gap:3px}.points-chip strong{font-size:13px}.points-chip .v-icon{width:19px;height:19px}.hero{padding:22px;border-radius:20px}.hero h2{font-size:27px}.metrics{gap:7px}.metrics .panel{padding:12px 10px;border-radius:16px}.metric{font-size:25px}.metrics small{font-size:9px;letter-spacing:.3px}.panel,.card{padding:18px;border-radius:19px}.grid{grid-template-columns:1fr}.mobile-ledger{display:block}.desktop-ledger{display:none}header{align-items:flex-start}header #switch{max-width:46%;flex-shrink:0;font-size:12px;padding:10px 12px}header h1{overflow-wrap:anywhere}.avatar-grid{gap:8px}.avatar-choice{padding:14px 4px 10px;font-size:10px}.avatar-choice .character-avatar{width:56px;height:56px}dialog{padding:20px}.level-track small{letter-spacing:0}.xp-heading .v-icon,.wallet-amount .v-icon{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.photo-avatar{border-radius:50%;object-fit:cover}.photo-studio{border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:20px}.photo-studio summary{font-weight:700;cursor:pointer}.photo-studio p{font-size:13px}.photo-previews{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.photo-previews>div{min-width:0;background:#f4f7fb;border-radius:16px;padding:10px;text-align:center}.photo-previews canvas,.photo-previews img{display:block;width:100%;max-width:256px;aspect-ratio:1;object-fit:cover;border-radius:50%;margin:auto}.photo-previews span{display:block;font-size:11px;margin-top:10px}.photo-consent{line-height:1.6;font-weight:500}.photo-studio input[type=range]{padding:0;accent-color:var(--green)}#photoStatus{color:var(--green);overflow-wrap:anywhere}@media(max-width:420px){.photo-previews{grid-template-columns:1fr}.photo-previews canvas,.photo-previews img{max-width:190px}}
header{flex-wrap:wrap}header>.actions{margin-left:auto}header #switch{max-width:none}@media(max-width:760px){header>.actions{width:100%;margin-left:0;justify-content:flex-end}header>.actions button{font-size:12px}}
.routine-item{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:12px;background:#fff}.routine-item label{display:flex;align-items:center;gap:10px;flex:1;min-width:0;margin:0}.routine-item label span{overflow-wrap:anywhere}.routine-item input{flex:0 0 auto}.routine-position{font-size:13px;color:var(--muted);min-width:18px;text-align:center}.routine-handle{touch-action:none;cursor:grab;flex:0 0 48px;padding:10px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.routine-handle:focus-visible{outline:3px solid var(--green);outline-offset:3px}.routine-item.dragging{background:var(--mint);border-color:var(--green);box-shadow:0 5px 16px #147e6e24}.routine-item.dragging .routine-handle{cursor:grabbing}#routineDragHelp,#routineDragStatus{font-size:12px;line-height:1.5}#routineDragStatus:empty{display:none}
.quest-day-summary{margin:0 0 20px}.quest-day-summary h2{margin:0}.quest-day-summary .row>span{font-size:13px;color:var(--muted)}.quest-day-summary progress{margin-top:10px}.child-quest{margin-top:12px;margin-bottom:14px;padding:16px}.child-quest-top{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}.child-quest-top h3{min-width:0;overflow-wrap:anywhere;line-height:1.45;margin:0}.quest-state{white-space:normal;text-align:center;flex:0 0 auto;font-size:10px;max-width:104px}.quest-state.terminal{background:#e9eef8;color:#405a83}.child-quest-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;flex-wrap:wrap}.child-quest-bottom .points-row{gap:6px}.quest-instructions{margin-top:12px;border-top:1px solid var(--line);padding-top:10px;font-size:13px}.quest-instructions summary{cursor:pointer;color:var(--green);min-height:32px;display:list-item}.quest-instructions p{font-size:13px;margin:8px 0}.quest-instructions small{display:block;margin:10px 0}.routine-section{padding:16px;margin-bottom:20px}.routine-section>summary{font-weight:750;font-size:17px;cursor:pointer;min-height:44px;list-style-position:inside}.routine-section>summary .pill{float:right;margin-left:8px}.routine-summary,.quest-blocked,.parent-note,.reward-shortfall{font-size:12px;line-height:1.6}.parent-note{background:#fff5dd;padding:10px;border-radius:10px;color:#705726}.routine-section .child-quest:last-child{margin-bottom:0}.upcoming-quests{margin-top:24px}.upcoming-quests>summary{cursor:pointer;font-weight:700;min-height:44px}.upcoming-item{padding:15px 0;border-top:1px solid var(--line);margin-top:10px}.upcoming-item p{font-size:12px;margin-bottom:0}@media(max-width:760px){.child-quest{padding:14px}.child-quest-top h3{font-size:15px}.child-quest .points-chip{font-size:10px;padding:5px 7px}.child-quest .points-chip strong{font-size:12px}.child-quest-bottom>button{font-size:13px;padding:10px 14px}.routine-section{padding:14px}.routine-section>summary{font-size:15px}.quest-state{max-width:90px;font-size:9px}.quest-day-summary h2{font-size:20px}}
.advanced-builder{border:1px solid var(--line);border-radius:16px;padding:14px;margin:18px 0}.advanced-builder>summary{cursor:pointer;font-weight:750;min-height:44px}.advanced-builder fieldset{border:1px solid var(--line);border-radius:14px;margin:18px 0;padding:14px;min-width:0}.advanced-builder legend{font-weight:700}.advanced-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.advanced-step-row{padding:12px 0;border-bottom:1px solid var(--line)}.quest-step-check{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;margin:12px 0}.quest-step-check span{flex:1;min-width:0}.quest-step-check small{display:block;font-size:11px;margin-top:8px}.quest-proof-image{max-width:192px;max-height:192px;border-radius:14px;margin-top:10px}.proof-review{padding:12px 0}.proof-review summary{cursor:pointer}.achievement-card>span{font-size:44px}.achievement-card{text-align:center}#questTaskError{color:#ad354d}@media(max-width:420px){.advanced-pair{grid-template-columns:1fr}.advanced-builder fieldset{padding:10px}}



.goal-image{width:100%;max-width:320px;height:190px;object-fit:contain;border-radius:18px;background:#edf2fb;display:block;margin:0 auto 16px}.goal-placeholder{height:96px;display:grid;place-items:center;background:linear-gradient(135deg,#e8e0ff,#dff6f0);border-radius:18px}.goal-placeholder svg{width:52px;height:52px}.goal-card .row{align-items:flex-start;flex-wrap:wrap}.goal-card h3{margin:0;overflow-wrap:anywhere}.goal-progress{width:100%;margin:12px 0}.child-goal-dialog{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:22px;border:0;border-radius:24px}.child-goal-dialog form{display:grid;gap:14px}.child-goal-dialog .row h2{font-size:24px}.child-goal-dialog fieldset{min-width:0}.self-profile>.rqa-avatar{width:110px;height:110px}.motivation-goal>summary{font-weight:700;font-size:18px}.motivation-goal .goal-card{margin:14px 0 0}.motivation-goal .goal-image{height:130px}.goal-photo p{font-size:13px}@media(max-width:480px){.child-goal-dialog{padding:16px}.goal-card .actions{flex-wrap:wrap}.goal-card .actions button{flex:1}.child-goal-dialog .avatar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}



.tool-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.weekly-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.weekly-metrics>div{padding:14px;background:#edf5f7;border-radius:16px}.weekly-metrics strong{display:block;font-size:28px;color:#24566b}.weekly-metrics span{font-size:13px}.weekly-card h2{overflow-wrap:anywhere}.appreciation>summary{font-weight:700}.appreciation .card{margin-top:12px}.appreciation p{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:480px){.tool-filters{grid-template-columns:1fr}.weekly-metrics>div{padding:12px}}

/* Notification controls: contain native iOS time fields within their cards. */
.notification-settings{min-width:0;max-width:100%}
.notification-settings fieldset{box-sizing:border-box;min-width:0;min-inline-size:0;width:100%;max-width:100%;margin:0 0 20px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#f8fbfa}
.notification-settings legend{max-width:100%;padding:0 6px;color:var(--ink);font-size:15px;font-weight:700;white-space:normal}
.notification-settings label{min-width:0;max-width:100%;line-height:1.5}
.notification-settings .notification-check{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:10px;font-size:14px;font-weight:600}
.notification-settings .notification-check input[type=checkbox]{width:22px;height:22px;min-width:22px;max-width:22px;margin:0;padding:0;align-self:start;accent-color:var(--green)}
.notification-settings input[type=time]{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;inline-size:100%;max-inline-size:100%;min-inline-size:0;height:48px;padding:10px 12px;font-size:16px;line-height:1.4;background:#fff;color:var(--ink);border:1px solid #cddbdc;border-radius:12px;-webkit-appearance:none;appearance:none}
.notification-settings input[type=time]::-webkit-date-and-time-value{min-width:0;text-align:center}
.notification-settings input[type=time]::-webkit-datetime-edit{min-width:0;padding:0}
.notification-settings .notification-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.notification-settings .notification-times label{margin-bottom:0}
.notification-settings fieldset p{font-size:13px;margin:14px 0 0;overflow-wrap:anywhere}
.notification-settings .actions{gap:10px}
.notification-settings .actions button{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
.notification-settings #reminderSaveStatus:empty{display:none}
@media(max-width:420px){.notification-settings{padding:18px}.notification-settings fieldset{padding:14px}.notification-settings .notification-times{grid-template-columns:minmax(0,1fr)}.notification-settings .actions{display:grid;grid-template-columns:minmax(0,1fr)}.notification-settings .actions button{width:100%}}



body{padding-bottom:env(safe-area-inset-bottom)}