@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700;750&family=Manrope:wght@500;600;700;750;800&family=Noto+Sans+Myanmar:wght@400;500;600;700&display=swap');
@import url('theme.css');
:root{view-transition-name:none;}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:500 14px 'DM Sans',system-ui,sans-serif}button,input,textarea,select{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;transition:background .18s,color .18s,transform .18s var(--ease),box-shadow .18s}button:disabled{opacity:.5;cursor:default}button:active{transform:scale(.97)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--accent-mid);outline-offset:4px}h1:focus{outline:none}h1,h2,h3,p{margin-top:0}h1{font:800 clamp(32px,4vw,44px)/1.15 Manrope,system-ui,sans-serif;letter-spacing:-1.8px;margin-bottom:9px}h2{font:800 20px Manrope,system-ui,sans-serif;letter-spacing:-.6px}h3{font:750 16px Manrope,system-ui,sans-serif}main{max-width:940px;padding:38px 40px 145px;margin:auto;view-transition-name:page-content}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:65px}.wordmark{font:800 18px Manrope,system-ui,sans-serif;letter-spacing:-.7px;display:flex;align-items:center;gap:7px}.brand-dot{color:var(--accent);margin-left:-7px}.page-ident{font-size:9px;font-weight:700;letter-spacing:1.2px;color:var(--faint)}.headline{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:36px}.subtitle{font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:0}.primary{background:var(--accent);color:var(--on-accent);padding:12px 18px;font-size:12px;font-weight:750;border-radius:11px;display:inline-flex;gap:8px;align-items:center;justify-content:center;white-space:nowrap}.primary:hover{background:var(--accent-hover);box-shadow:0 4px 12px var(--accent-shadow)}.secondary{background:var(--surface-subtle);color:var(--muted);padding:11px 15px;border-radius:10px;font-weight:700;font-size:11px}.secondary:hover{color:var(--ink);background:var(--line)}.icon-button{background:transparent;color:var(--faint);padding:5px 8px;font-size:20px;border-radius:7px}.icon-button:hover{background:var(--accent-soft);color:var(--accent-text)}.task-layout{max-width:100%}.schedule-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:25px}.tabs{display:inline-flex;gap:5px;padding:4px;background:var(--surface-subtle);border-radius:11px}.tabs button{padding:9px 16px;font-size:12px;font-weight:700;background:transparent;color:var(--muted);border-radius:8px}.tabs button.active{color:var(--accent);background:var(--surface);box-shadow:0 1px 4px var(--accent-shadow)}.date-control{display:flex;align-items:center;gap:5px}.date-control input{background:transparent;border:0;font-size:11px;font-weight:700;width:132px;padding:8px 0}.date-control button{background:transparent;color:var(--muted);padding:6px 9px;font-size:18px;border-radius:7px}.date-control button:hover{background:var(--accent-soft);color:var(--accent-text)}.schedule-summary{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:0 2px 12px}.schedule-summary span:first-child{font-weight:750;color:var(--ink)}.day-progress{height:3px;background:var(--line);border-radius:5px;overflow:hidden;margin-bottom:19px}.day-progress span{display:block;height:100%;background:var(--accent);border-radius:5px;transition:width .4s var(--ease)}.schedule{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:0 22px}.task-row{display:flex;align-items:center;gap:14px;padding:22px 0;border-bottom:1px solid var(--line)}.task-row:last-child{border:0}.task-time{width:52px;flex-shrink:0;font-size:11px;font-weight:650;color:var(--muted)}.task-check{appearance:none;width:21px;min-width:21px;flex:0 0 21px;height:21px;border:1.5px solid var(--line);border-radius:7px;display:grid;place-items:center;padding:0;margin:0;cursor:pointer;transition:background .2s,border-color .2s}.task-check:checked{background:var(--accent);border-color:var(--accent)}.task-check:checked:after{content:'\2713';color:var(--on-accent);font-size:13px;font-weight:800}.task-info{flex:1;min-width:0}.task-name{font-size:14px;font-weight:700;overflow-wrap:anywhere}.task-name.done{text-decoration:line-through;color:var(--faint)}.task-sub{font-size:10px;color:var(--muted);margin-top:6px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.category-dot{width:4px;height:4px;background:var(--accent-mid);border-radius:50%}.task-actions{display:flex;align-items:center;gap:3px}.row-action{background:var(--accent-pale);color:var(--accent-text);border-radius:7px;font-size:10px;font-weight:700;padding:8px 10px;white-space:nowrap}.row-action:hover{background:var(--accent-soft)}.empty{padding:55px 16px;text-align:center;font-size:12px;line-height:1.8;color:var(--muted)}.empty strong{display:block;color:var(--ink);font-size:16px;font-weight:750;margin-bottom:6px}.add-inline{background:none;color:var(--accent);padding:19px 4px;font-size:12px;font-weight:700;display:flex;align-items:center;gap:9px}.add-inline span{font-size:20px}.history-date{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:11px;font-weight:750;padding:23px 0 8px;color:var(--accent)}.history-date small{font-size:10px;font-weight:650;color:var(--muted)}.history-tools{padding-top:6px}.history-tools .chips{margin-bottom:14px}.log-row{font-size:12px;line-height:1.8;padding:16px 0;border-bottom:1px solid var(--line)}.log-row:last-child{border:0}.log-row small{font-size:10px;display:block;color:var(--muted)}
/* One color language for notes, health, and conversation. */
.search-input{width:100%;background:var(--surface-subtle);border:0!important;font-size:12px;padding:11px 13px!important;margin-bottom:12px}.note-editor{padding:25px;display:flex;flex-direction:column;min-width:0}.editor-top{display:flex;align-items:center;justify-content:space-between;color:var(--faint);font-size:10px;margin-bottom:19px}.note-title{border:0!important;background:transparent!important;font:800 26px Manrope,system-ui,sans-serif!important;letter-spacing:-.8px;padding:0!important}.note-body{border:0!important;background:transparent!important;line-height:1.9;min-height:270px;flex:1;resize:vertical;padding:17px 0!important}.editor-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px;color:var(--muted);margin-top:15px}.notes-empty{min-height:400px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px;text-align:center;color:var(--muted);font-size:12px}.notes-empty>span{font-size:36px;color:var(--accent);margin-bottom:18px}.notes-empty h2{color:var(--ink);font-size:18px;margin-bottom:10px}.health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.health-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:25px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:25px}.card-head h2{margin:0;font-size:18px}.badge,.page-tag{background:var(--accent-soft);color:var(--accent-text);border-radius:7px;padding:7px 9px;font-size:10px;font-weight:750}.page-tag{background:var(--surface-subtle);color:var(--muted);font-size:9px}.water-value{font:800 39px Manrope,system-ui,sans-serif;letter-spacing:-1.5px;margin-bottom:7px}.water-value small{font:650 14px 'DM Sans',system-ui,sans-serif;letter-spacing:0;color:var(--muted)}.water-copy{font-size:11px;color:var(--muted)}.glasses{display:flex;gap:8px;margin:28px 0}.glass{flex:1;min-width:12px;height:39px;border:1.5px solid var(--accent-mid);border-top:0;border-radius:1px 1px 7px 7px;background:var(--accent-pale);transform:perspective(80px) rotateX(-7deg)}.glass.filled{background:linear-gradient(to top,var(--accent-mid) 82%,var(--accent-pale) 82%);border-color:var(--accent)}.water-actions{display:flex;gap:9px}.water-actions .primary{flex:1}.health-foot{font-size:10px;line-height:1.7;color:var(--muted);margin-top:17px;margin-bottom:0}.movement-total{font:800 34px Manrope,system-ui,sans-serif;letter-spacing:-1px;margin-bottom:23px}.movement-total small{font:600 12px 'DM Sans',system-ui,sans-serif;color:var(--muted);letter-spacing:0}.exercise-row{display:flex;align-items:center;gap:9px;padding:13px 0;border-top:1px solid var(--line);font-size:12px}.exercise-row>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:700}.exercise-row small{font-size:10px;color:var(--muted)}.chat-shell{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.chat-messages{height:335px;overflow:auto;display:flex;flex-direction:column;gap:17px;padding:24px;scroll-behavior:smooth}.message{max-width:83%;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;animation:message-in .25s var(--ease)}.message.gem{align-self:flex-start;background:var(--surface-subtle);border-radius:3px 16px 16px 16px;padding:14px 17px}.message.user{align-self:flex-end;background:var(--accent-soft);border-radius:16px 3px 16px 16px;padding:14px 17px}.message time{display:block;font-size:9px;color:var(--muted);margin-top:7px}.chat-suggestions{display:flex;gap:7px;flex-wrap:wrap;padding:10px 23px 0}.chat-suggestions button{background:var(--accent-pale);border:1px solid var(--accent-soft);color:var(--accent-text);font-size:10px;font-weight:650;border-radius:15px;padding:7px 10px}.chat-form{display:flex;align-items:flex-end;gap:10px;padding:17px 23px}.chat-form textarea{min-height:46px;height:46px;max-height:120px;resize:vertical;background:var(--bg);font-size:12px}.chat-form .primary{min-height:46px;padding:12px 17px;font-size:19px}.chat-caption{font-size:9px;color:var(--muted);text-align:center;margin:0;padding:0 20px 15px}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--surface)}input::placeholder,textarea::placeholder{color:var(--faint)}label{display:block;font-size:12px;font-weight:700;margin-bottom:8px}.form-row{display:flex;gap:11px;margin:16px 0}.form-row>div{flex:1;min-width:0}.form-row>input{min-width:0}.field{margin-bottom:17px}.modal-backdrop{position:fixed;inset:0;background:var(--scrim);backdrop-filter:blur(5px);z-index:40;display:grid;place-items:center;padding:20px;animation:backdrop-in .2s var(--ease)}.modal{width:min(100%,470px);background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:27px;max-height:90dvh;overflow:auto;box-shadow:var(--shadow);animation:menu-in .25s var(--ease)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:12px}.modal-head h2{margin:0}.modal .primary{width:100%;margin-top:8px}
/* The persistent spark and its expanding navigation. */
.dock-wrap{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;z-index:30}#flame{position:relative;isolation:isolate;width:61px;height:61px;border-radius:21px;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;box-shadow:0 6px 21px var(--accent-glow),0 0 0 6px var(--bg);touch-action:none;transition:transform .3s var(--ease),box-shadow .3s,background .3s}#flame:hover{transform:translateY(-3px);background:var(--accent-hover);box-shadow:0 9px 27px var(--accent-hover-glow),0 0 0 6px var(--bg)}#flame[aria-expanded=true]{transform:scale(.94);background:var(--accent-hover)}.quick-menu{width:min(326px,calc(100vw - 32px));background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:13px 16px 18px;margin-bottom:19px;box-shadow:var(--shadow);transform-origin:50% 100%;animation:menu-in .3s var(--ease) both}.quick-menu[hidden]{display:none}.quick-menu.is-closing{pointer-events:none;animation:menu-out .18s var(--ease) both}.menu-top{display:flex;align-items:center;justify-content:space-between;padding-left:5px;color:var(--faint);font-size:9px;font-weight:700;letter-spacing:1.2px}.menu-top button{background:transparent;color:var(--muted);font-size:21px;padding:0 5px;border-radius:7px}.quick-options{display:flex;justify-content:space-between;gap:7px;margin-top:10px}.quick-options button{background:transparent;padding:4px;font-size:10px;font-weight:700;color:var(--muted);display:grid;justify-items:center;gap:9px;animation:icon-in .38s var(--ease) both}.quick-options button:nth-child(1){animation-delay:35ms}.quick-options button:nth-child(2){animation-delay:75ms}.quick-options button:nth-child(3){animation-delay:115ms}.quick-options button:nth-child(4){animation-delay:155ms}.quick-options button>span{display:grid;place-items:center;width:50px;height:50px;border-radius:15px;background:var(--surface-subtle);color:var(--muted);transition:background .2s,transform .2s var(--ease),color .2s}.quick-options button:hover>span{background:var(--accent-soft);color:var(--accent-text);transform:translateY(-3px)}.quick-options button[aria-current=page]{color:var(--accent)}.quick-options button[aria-current=page]>span{background:var(--accent-soft);color:var(--accent-text)}.quick-options svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#toast{position:fixed;bottom:122px;left:50%;transform:translateX(-50%) translateY(6px);background:var(--ink);color:var(--on-accent);border-radius:11px;padding:12px 19px;font-size:12px;box-shadow:var(--shadow);z-index:60;opacity:0;pointer-events:none;max-width:90vw;transition:opacity .2s,transform .2s var(--ease)}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@keyframes flame-flicker{0%,100%{transform:rotate(-3deg) scale(.98,1)}35%{transform:rotate(2deg) scale(1.02,.95)}70%{transform:rotate(-1deg) scale(.96,1.04)}}@keyframes flame-core{0%,100%{transform:scale(1);opacity:.85}50%{transform:translateY(-1px) scale(.92,1.1);opacity:1}}@keyframes spark-breathe{0%,100%{transform:scale(1);opacity:.1}50%{transform:scale(1.13);opacity:.45}}@keyframes menu-in{from{opacity:0;transform:translateY(14px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes menu-out{to{opacity:0;transform:translateY(9px) scale(.96)}}@keyframes icon-in{from{opacity:0;transform:translateY(11px) scale(.92)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes message-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes backdrop-in{from{opacity:0}to{opacity:1}}@keyframes page-out{to{opacity:0;transform:translateY(-7px)}}@keyframes page-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
::view-transition-group(page-content){animation-duration:320ms;animation-timing-function:var(--ease)}::view-transition-old(page-content){animation:page-out 140ms ease both}::view-transition-new(page-content){animation:page-in 300ms var(--ease) 50ms both}::view-transition{pointer-events:none}
@media(max-width:700px){main{padding:26px 22px 140px}.page-head{margin-bottom:46px}.page-ident{font-size:8px}.headline{margin-bottom:30px;gap:15px}.headline .primary{font-size:11px;padding:11px 14px}.subtitle{font-size:12px}.note-editor{padding:21px}.health-card{padding:22px}.health-grid{gap:16px}.glasses{gap:6px}.task-actions{gap:0}.task-name{font-size:13px}.schedule{padding:0 17px}.task-time{width:43px}.task-row{gap:11px}.row-action{padding:7px 8px}}
@media(max-width:520px){main{padding:24px 18px 135px}.page-head{margin-bottom:38px}.wordmark{font-size:17px}.headline{align-items:center}.headline h1{font-size:34px;letter-spacing:-1.4px}.headline .subtitle{font-size:11px}.headline>.primary{padding:11px 12px;font-size:11px}.schedule-top{gap:7px}.tabs{gap:0}.tabs button{font-size:11px;padding:9px 12px}.date-control{gap:0}.date-control input{width:120px;font-size:10px}.date-control button{padding:6px}.schedule-summary{font-size:10px}.task-row{flex-wrap:wrap;padding:19px 0;gap:10px}.task-row .task-info{flex-basis:calc(100% - 96px);min-width:0}.task-actions{margin-left:74px}.task-time{width:43px;font-size:10px}.task-name{font-size:13px}.note-editor{padding:21px}.note-body{min-height:230px}.note-title{font-size:24px!important}.notes-empty{min-height:270px}.health-grid{grid-template-columns:1fr}.health-card{padding:23px}.glasses{gap:9px}.chat-messages{height:40dvh;min-height:250px;padding:20px 16px}.chat-form{padding:16px}.chat-suggestions{padding:10px 16px 0}.message{max-width:90%;font-size:12px}.chat-caption{font-size:8px}.modal{padding:23px}.modal h2{font-size:20px}.dock-wrap{bottom:max(17px,env(safe-area-inset-bottom))}#flame{width:58px;height:58px;border-radius:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}::view-transition-old(page-content),::view-transition-new(page-content),::view-transition-group(page-content){animation:none!important}}
/* Gem uses the visible phone viewport, so the composer stays above the keyboard. */

/* Corner navigation: five actions unfold along a quarter circle. */
.menu-scrim{position:fixed;inset:0;z-index:29;background:var(--scrim);backdrop-filter:blur(3px);cursor:default;animation:backdrop-in .18s ease}
.menu-scrim[hidden]{display:none}
.dock-wrap{top:max(22px,env(safe-area-inset-top));left:max(22px,env(safe-area-inset-left));bottom:auto;transform:none;align-items:flex-start}
/* The menu button is clear glass holding the four logo tiles; opening the menu sends the tiles flying out and leaves a small ×. */
#flame{width:50px;height:50px;border-radius:17px;padding:0;display:grid;place-items:center;background:var(--glass);border:1px solid var(--glass-edge);box-shadow:inset 0 1px 0 var(--glass-edge),0 8px 22px color-mix(in srgb,var(--ink) 12%,transparent);backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%);color:var(--accent);z-index:2;touch-action:manipulation}
#flame:hover{transform:none;background:var(--glass);box-shadow:inset 0 1px 0 var(--glass-edge),0 10px 26px color-mix(in srgb,var(--ink) 16%,transparent)}
#flame[aria-expanded=true]{transform:none;background:var(--glass)}
.glass-tiles{overflow:visible}.glass-tiles rect{fill:color-mix(in srgb,var(--accent) 14%,transparent);stroke:var(--accent);stroke-width:1.6}.glass-tiles path{fill:none;stroke:var(--accent);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.glass-tiles path.fill{fill:var(--accent);stroke-width:1.2}
.ft{transform-box:fill-box;transform-origin:center;transition:transform .45s var(--ease),opacity .3s ease}
#flame[aria-expanded=true] .ft1{transform:translate(-14px,-14px) scale(.3);opacity:0}#flame[aria-expanded=true] .ft2{transform:translate(14px,-14px) scale(.3);opacity:0}#flame[aria-expanded=true] .ft3{transform:translate(-14px,14px) scale(.3);opacity:0}#flame[aria-expanded=true] .ft4{transform:translate(14px,14px) scale(.3);opacity:0}
.fx{opacity:0;transform:rotate(-90deg) scale(.5);transform-box:fill-box;transform-origin:center;transition:opacity .25s ease .12s,transform .35s var(--ease) .12s;stroke-width:2.6!important}#flame[aria-expanded=true] .fx{opacity:1;transform:none}
.page-head{min-height:40px;padding-left:58px}
.quick-menu{position:absolute;top:0;left:0;width:284px;height:284px;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;animation:backdrop-in .18s ease;pointer-events:none;transform-origin:24px 24px}
.quick-menu.is-closing{animation:corner-out .18s ease both}
.menu-top{display:none}
.quick-options{display:block;margin:0}
.quick-options button{position:absolute;left:0;top:0;width:62px;padding:0;gap:5px;color:var(--ink);pointer-events:auto;font-size:10px;animation:corner-action .38s var(--ease) both;transform:translate(var(--x),var(--y));text-shadow:0 1px 6px var(--surface)}
.quick-options button>span{width:48px;height:48px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--muted);box-shadow:0 5px 18px color-mix(in srgb,var(--ink) 9%,transparent)}
.quick-options button:nth-child(1){--x:210px;--y:0px;animation-delay:0ms}
.quick-options button:nth-child(2){--x:194px;--y:80px;animation-delay:35ms}
.quick-options button:nth-child(3){--x:148px;--y:148px;animation-delay:70ms}
.quick-options button:nth-child(4){--x:80px;--y:194px;animation-delay:105ms}
.quick-options button:nth-child(5){--x:0px;--y:210px;animation-delay:140ms}
.quick-options button:active{transform:translate(var(--x),var(--y)) scale(.96)}
.quick-options button[aria-current=page]>span{border-color:var(--accent-mid)}
.chat-sharing{flex-shrink:0;padding:8px 20px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.chat-sharing summary{cursor:pointer;font-weight:700}
.chat-sharing summary small{float:right;font-size:9px;font-weight:500;color:var(--faint)}
.chat-sharing>div{display:flex;gap:14px;flex-wrap:wrap;padding-top:12px}
.chat-sharing label,.remember-key{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:500;cursor:pointer}
.chat-sharing input,.remember-key input{width:15px;height:15px;accent-color:var(--accent);flex-shrink:0}
.chat-sharing p{font-size:10px;line-height:1.6;margin:5px 0}
.gem-status{flex-shrink:0;font-size:11px;line-height:1.6;color:var(--accent);padding:0 18px;overflow-wrap:anywhere;max-height:85px;overflow:auto}
.gem-status:empty{display:none}


.key-state{font-size:11px;color:var(--accent-text);padding:10px 12px;background:var(--accent-pale);border-radius:9px;margin-bottom:20px}
#keyFeedback{font-size:11px;color:var(--muted);line-height:1.6}

@keyframes corner-action{from{opacity:0;transform:translate(0,0) scale(.4)}to{opacity:1;transform:translate(var(--x),var(--y)) scale(1)}}
@keyframes corner-out{to{opacity:0;transform:scale(.92)}}
@media(max-width:700px){
  .dock-wrap{top:max(14px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left))}
  .page-head{padding-left:57px;min-height:38px}
  #flame{width:46px;height:46px;border-radius:15px}


}
@media(prefers-reduced-motion:reduce){.quick-options button{transform:translate(var(--x),var(--y));opacity:1}}

.backup-feedback{font-size:11px;line-height:1.6;color:var(--accent);margin:12px 0 0}.backup-feedback:empty{display:none}
.health-date{display:flex;align-items:center;gap:12px;margin-bottom:20px;font-size:11px;color:var(--muted)}.health-date>span{flex:1;font-weight:750;color:var(--ink)}.date-control button:disabled{opacity:.35;pointer-events:none}

.quick-options button>span.nav-label{display:block;width:auto;height:auto;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;transform:none;line-height:1.3}
html:lang(my) *{letter-spacing:0!important}html:lang(my) body,html:lang(my) button,html:lang(my) input,html:lang(my) textarea,html:lang(my) select,html:lang(my) h1,html:lang(my) h2,html:lang(my) .subtitle{font-family:'Noto Sans Myanmar','Myanmar Text','Padauk','DM Sans',system-ui,sans-serif!important}html:lang(my) h1,html:lang(my) h2,html:lang(my) .subtitle,html:lang(my) .empty,html:lang(my) .health-foot,html:lang(my) .message{line-height:1.7!important}html:lang(my) .quick-options button>span.nav-label{font-size:9px}

.page-head-end{display:flex;align-items:center;gap:12px}
.avatar-button{width:38px;height:38px;border-radius:50%;background:var(--accent-soft);color:var(--accent-text);font-size:14px;font-weight:750;display:grid;place-items:center;flex-shrink:0;padding:0}
.avatar-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.avatar-button:hover{background:var(--accent-mid)}
.avatar-button[aria-current=page]{background:var(--accent);color:var(--on-accent)}
.dash-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px;align-items:start}
.dash-col{display:grid;gap:18px;min-width:0}
.dash-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;min-width:0}
.dash-card h2{font-size:15px;margin:0 0 14px}
.dash-label{font-size:11px;color:var(--muted)}
.rings{display:flex;align-items:center;gap:8px;margin-top:10px}
.ring,.minutes-stat{flex:1;display:grid;justify-items:center;gap:3px;background:transparent;padding:6px 4px;border-radius:14px;color:var(--ink);position:relative}
.ring:hover,.minutes-stat:hover{background:var(--surface-subtle)}
.ring svg{width:84px;height:84px}
.ring circle{fill:none;stroke-width:8;stroke-linecap:round}
.ring-track{stroke:var(--surface-subtle)}
.ring-fill{stroke:var(--accent);transition:stroke-dasharray .6s var(--ease)}
.ring-value{position:absolute;top:34px;font-size:14px;font-weight:750}
.minutes-stat strong{font:800 34px/84px Manrope,system-ui,sans-serif;height:84px;color:var(--accent)}
.week-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.week-badge{font-size:10px;font-weight:700;color:var(--accent-text);background:var(--accent-soft);padding:4px 8px;border-radius:7px;white-space:nowrap}
.tracker{display:grid;grid-template-columns:minmax(0,1fr) repeat(7,28px) 40px;gap:6px;align-items:center;font-size:12px}
.tracker .day{text-align:center;color:var(--muted);font-size:10px;overflow:hidden}
.tracker .day.is-today{color:var(--accent);font-weight:750}
.row-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tick{height:28px;border-radius:7px;background:var(--surface-subtle);display:grid;place-items:center;color:var(--on-accent)}
.tick.full{background:var(--accent)}
.tick.half{background:var(--accent-mid)}
.tick.future{background:transparent;border:1px dashed var(--line)}
.tick svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.row-streak{color:var(--accent);font-weight:750;text-align:right;white-space:nowrap;font-size:11px}
.heatmap{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.heat{aspect-ratio:1;border-radius:6px;background:var(--surface-subtle)}
.heat.l1{background:var(--accent-soft)}
.heat.l2{background:var(--accent-mid)}
.heat.l3{background:color-mix(in srgb,var(--accent) 70%,var(--accent-mid))}
.heat.l4{background:var(--accent)}
.heat.future{background:transparent;border:1px dashed var(--line)}
.heat.is-today{outline:2px solid var(--ink);outline-offset:1px}
.heat-legend{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:10px;font-size:10px;color:var(--muted)}
.heat-legend .heat{width:11px;height:11px;border-radius:3px}
.win-row{display:flex;align-items:center;gap:10px;padding:9px 0;font-size:13px}
.win-row+.win-row{border-top:1px solid var(--line)}
.win-row .tick{width:20px;height:20px;flex-shrink:0;border-radius:6px}
.win-row .tick svg{width:12px;height:12px}
.win-row span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.win-row small{font-size:10px;color:var(--muted)}
.dash-empty{font-size:12px;color:var(--muted);margin:0}
@media(max-width:700px){.dash-grid{grid-template-columns:1fr}.page-head-end .page-ident{display:none}.tracker{grid-template-columns:minmax(0,1fr) repeat(7,24px) 34px;gap:5px}.tick{height:24px}}
@media(max-width:380px){.tracker{grid-template-columns:minmax(0,1fr) repeat(7,21px) 30px;gap:4px}.tick{height:21px}.ring svg{width:74px;height:74px}.ring-value{top:30px}}
@media(prefers-reduced-motion:reduce){.ring-fill{transition:none}}
.avatar-button[aria-expanded=true]{background:var(--accent);color:var(--on-accent)}
.profile-panel{position:fixed;inset:0;z-index:35;background:var(--bg);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.profile-sheet{max-width:880px;margin:0 auto;padding:max(28px,env(safe-area-inset-top)) 32px 80px}
.profile-close{position:fixed;z-index:2;background:var(--accent);color:var(--on-accent)}
.profile-close:hover{background:var(--accent-hover)}
.profile-close svg{width:18px;height:18px;stroke-width:2.2}
.profile-panel-head{padding:6px 60px 26px 0}
.profile-panel-head h2{font:800 44px/1.1 Manrope,system-ui,sans-serif;letter-spacing:-1.6px;margin:0}
.profile-panel-head h2:focus{outline:none}
.profile-panel-head .subtitle{margin:8px 0 0}

html.profile-open,html.profile-open body{overflow:hidden}
@media(max-width:700px){.profile-sheet{padding:max(22px,env(safe-area-inset-top)) 18px 60px}.profile-panel-head h2{font-size:34px;letter-spacing:-1.2px}}
.quick-options button[hidden]{display:none}
.feature-list{display:grid;margin-top:4px}
.feature-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;font-size:13px;font-weight:650;cursor:pointer}
.feature-row+.feature-row{border-top:1px solid var(--line)}
.feature-row .switch{appearance:none;-webkit-appearance:none;width:44px;height:26px;padding:0;margin:0;border-radius:999px;background:var(--surface-subtle);border:1px solid var(--line);position:relative;cursor:pointer;flex-shrink:0;transition:background .2s,border-color .2s}
.feature-row .switch::after{content:'';position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:var(--surface);box-shadow:0 1px 3px rgb(0 0 0 / 25%);transition:transform .2s var(--ease)}
.feature-row .switch:checked{background:var(--accent);border-color:var(--accent)}
.feature-row .switch:checked::after{transform:translateX(18px)}
.feature-row .switch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.finance-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.month-label{font-size:12px;font-weight:750;min-width:128px;text-align:center}
.premium-badge,.premium-tag{font-size:10px;font-weight:700;color:var(--accent-text);background:var(--accent-soft);padding:4px 8px;border-radius:7px;white-space:nowrap}
.premium-tag{margin-left:6px;font-size:9px;padding:2px 6px;vertical-align:1px}
.finance-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:18px;align-items:start}
.money-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px}


.type-toggle{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:var(--surface-subtle);border-radius:12px;margin-bottom:14px}
.type-toggle button{padding:9px;border-radius:9px;background:transparent;font-weight:700;font-size:12px;color:var(--muted)}
.type-toggle button.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgb(0 0 0 / 12%)}
#financeForm .form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.finance-day{font-size:10px;font-weight:750;letter-spacing:1px;color:var(--faint);margin:14px 0 2px}
.money-entry{display:grid;grid-template-columns:28px minmax(0,1fr) auto 28px;align-items:center;gap:10px;padding:10px 0;font-size:13px}
.money-entry+.money-entry{border-top:1px solid var(--line)}
.money-entry small{display:block;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.money-icon{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;font-weight:800;background:var(--accent-soft);color:var(--accent-text)}
.money-icon.income{background:var(--positive-soft);color:var(--positive)}
.amount{font-weight:750;white-space:nowrap}
.amount.income{color:var(--positive)}
.money-dash-row{display:flex;justify-content:space-between;width:100%;padding:8px 0;font-size:13px;background:transparent;color:var(--ink)}
.money-dash-row+.money-dash-row{border-top:1px solid var(--line)}
.money-dash-row strong{font-weight:800}
@media(max-width:700px){.finance-grid{grid-template-columns:1fr}.finance-head{flex-wrap:wrap}}

#onboarding{position:fixed;inset:0;z-index:45;background:var(--bg);overflow-y:auto;display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) 18px 32px}
#onboarding[hidden]{display:none}
html.onboarding-open,html.onboarding-open body{overflow:hidden}
.onboarding-sheet{width:min(520px,100%);display:grid;gap:26px}
.onboarding-top{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:32px}
.onboarding-dots{display:flex;gap:6px}
.onboarding-dots span{width:8px;height:8px;border-radius:99px;background:var(--line);transition:width .25s var(--ease),background .25s}
.onboarding-dots .active{width:26px;background:var(--accent)}
.onboarding-dots .done{background:var(--accent-mid)}
.onboarding-step{display:grid;gap:14px;animation:onb-in .35s var(--ease)}
@keyframes onb-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.onboarding-step h2{font:800 34px/1.15 Manrope,system-ui,sans-serif;letter-spacing:-1.2px;margin:0}
.onboarding-step h2:focus{outline:none}
.onboarding-step .subtitle{margin:0}
.onboarding-step .field input,.onboarding-step .field textarea{font-size:16px}
.choices{display:grid;gap:10px}
.choice{padding:16px 18px;border-radius:14px;border:1px solid var(--line);background:var(--surface);text-align:left;font-size:15px;font-weight:700;color:var(--ink)}
.choice.selected{border-color:var(--accent-text);background:var(--accent-soft);color:var(--accent-text)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:9px 13px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:12px;font-weight:650;color:var(--ink)}
.chip:hover{border-color:var(--accent-mid)}
.chip.selected{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}
.onboarding-mark{display:block;width:64px;height:64px}
.onboarding-nav{display:flex;justify-content:space-between;align-items:center;gap:12px}
.onboarding-nav .primary{min-width:140px}
@media(prefers-reduced-motion:reduce){.onboarding-step{animation:none}}
@media(max-width:520px){.onboarding-step h2{font-size:28px;letter-spacing:-.8px}}
/* Voice notes: the record button sits beside Save and pulses while recording. */
.voice-button{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.voice-button.recording{color:var(--accent);border-color:var(--accent);animation:voice-pulse 1.4s ease-in-out infinite}@keyframes voice-pulse{50%{box-shadow:0 0 0 5px var(--accent-soft)}}
/* Notes: an iPhone-style list, and a full-width editor with a back button. */
.notes-page{max-width:760px}.note-rows{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.note-row{display:block;width:100%;text-align:left;background:transparent;padding:15px 18px;border-bottom:1px solid var(--line);border-radius:0}.note-row:last-child{border-bottom:0}.note-row:hover{background:var(--surface-subtle)}
.note-row strong{display:block;font-size:14px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:4px}.note-row span{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.note-row small{color:var(--ink);font-size:11px;font-weight:650;margin-right:8px}
.notes-page .notes-empty{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.note-editor{max-width:760px;min-height:calc(100dvh - 230px);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.note-editor .editor-top{font-size:11px}.note-back{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700}.note-back span{font-size:20px;line-height:1}.editor-meta{display:flex;align-items:center;gap:10px}
.note-editor .editor-bottom{justify-content:center;margin-top:10px}.note-editor .voice-button{padding:12px 20px;border-radius:999px;font-size:13px}
.feature-sub{padding-left:18px}.feature-sub small{display:block;font-size:10px;font-weight:500;color:var(--muted);margin-top:3px}
@media(max-width:520px){.note-row{padding:14px 15px}.note-editor{min-height:calc(100dvh - 200px)}}
/* Gem: a bottom-right corner button with a line-drawn face, and a full-screen chat sheet that grows out of it. */
.gem-fab{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:28;width:58px;height:58px;padding:0;border-radius:50%;display:grid;place-items:center;background:var(--surface);border:1.5px solid color-mix(in srgb,var(--accent) 22%,var(--line));box-shadow:0 8px 22px color-mix(in srgb,var(--accent) 16%,transparent);touch-action:manipulation}
.gem-fab[hidden]{display:none}.gem-fab:hover{transform:translateY(-1px)}.gem-fab:active{transform:scale(.95)}
.gem-face{width:36px;height:36px;overflow:visible}.gem-leaf-l{fill:var(--accent)}.gem-leaf-r{fill:var(--accent-mid)}.gem-face circle{fill:var(--ink)}.gem-face .gem-dot{fill:var(--accent)}.gem-face .ink-line{fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gem-bob{animation:gem-bob 3s ease-in-out infinite}.gem-eye{transform-box:fill-box;transform-origin:center;animation:gem-blink 4.6s infinite}.gem-leaf-l{transform-box:fill-box;transform-origin:100% 100%;animation:gem-flick 4.6s ease-in-out infinite}.gem-leaf-r{transform-box:fill-box;transform-origin:0 100%;animation:gem-sway 3.2s ease-in-out infinite}
.is-thinking .gem-leaf{animation:none}.is-thinking .gem-look{animation:gem-up 1.4s ease-in-out infinite}.gem-dot{animation:gem-dots 1.2s infinite}.gem-dot:nth-of-type(2){animation-delay:.2s}.gem-dot:nth-of-type(3){animation-delay:.4s}.is-pleased .gem-mouth{transform-box:fill-box;transform-origin:center;animation:gem-grin 1.6s ease-in-out infinite}
@keyframes gem-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.2px)}}@keyframes gem-blink{0%,91%,100%{transform:scaleY(1)}94%{transform:scaleY(.1)}}@keyframes gem-flick{0%,58%,100%{transform:rotate(0)}64%,78%{transform:rotate(-10deg) translateY(-.6px)}}@keyframes gem-sway{0%,100%{transform:rotate(0)}50%{transform:rotate(4deg)}}@keyframes gem-up{0%,100%{transform:translate(0,0)}50%{transform:translate(1px,-1.6px)}}@keyframes gem-dots{0%,100%{opacity:.2}50%{opacity:1}}@keyframes gem-grin{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
.gem-panel{position:fixed;left:0;right:0;top:var(--gem-viewport-top,0px);height:var(--gem-viewport-height,100dvh);z-index:35;background:var(--bg);display:flex;flex-direction:column}
html.gem-open,html.gem-open body{overflow:hidden;overscroll-behavior-y:none}
.gem-sheet{width:100%;max-width:760px;margin:0 auto;flex:1;min-height:0;display:flex;flex-direction:column;padding:max(18px,env(safe-area-inset-top)) 20px max(16px,env(safe-area-inset-bottom))}
.gem-head{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-shrink:0}.gem-avatar{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--surface);border:1.5px solid color-mix(in srgb,var(--accent) 22%,var(--line));flex-shrink:0}.gem-avatar .gem-face{width:30px;height:30px}
.gem-close{font-size:20px}
.gem-sheet .chat-shell{flex:1;min-height:0;display:flex;flex-direction:column}.gem-sheet .chat-messages{flex:1;height:auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}.gem-sheet .chat-form{flex-shrink:0}.gem-sheet .chat-suggestions,.gem-sheet .chat-caption{flex-shrink:0}
@media(max-width:700px){.gem-fab{width:54px;height:54px}.gem-sheet{padding:max(12px,env(safe-area-inset-top)) 12px max(10px,env(safe-area-inset-bottom))}.gem-sheet .chat-messages{padding:17px 15px}.gem-sheet .chat-form{margin:0;padding:12px;background:var(--surface);border-top:1px solid var(--line)}.gem-sheet .chat-form textarea{font-size:16px;line-height:1.4;resize:none;min-width:0;height:48px;min-height:48px}.gem-sheet .chat-form .primary{height:48px;min-height:48px;flex-shrink:0}.gem-sheet .chat-sharing{padding:8px 12px}.gem-sheet .chat-caption{font-size:8px;padding:0 12px 10px}
  .gem-keyboard .gem-sheet{padding:8px 10px max(8px,env(safe-area-inset-bottom))}.gem-keyboard .gem-head{margin-bottom:8px}.gem-keyboard .chat-suggestions,.gem-keyboard .chat-caption{display:none}.gem-keyboard .chat-form{padding:9px}}
/* Gem composer microphone and action cards. */
.gem-voice{flex-shrink:0;min-width:48px;height:46px;padding:0 12px;border-radius:14px;font-size:16px;white-space:nowrap}.gem-voice.recording{color:var(--accent);border-color:var(--accent);font-size:12px;font-weight:750;animation:voice-pulse 1.4s ease-in-out infinite}
.gem-action{align-self:flex-start;max-width:90%;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:11px 13px;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--line));border-radius:14px;background:var(--surface);font-size:12px;margin-top:-8px}
.gem-action-text{flex:1 1 180px;font-weight:650;overflow-wrap:anywhere}.gem-action-buttons{display:flex;gap:6px}.gem-action-buttons button{padding:7px 12px;font-size:11px;min-height:0;margin:0;width:auto}.action-state{font-size:11px;color:var(--muted);font-weight:650}.action-state.done{color:var(--accent)}.gem-action.done,.gem-action.skipped,.gem-action.missing,.gem-action.failed{border-color:var(--line)}
@media(max-width:700px){.gem-sheet .gem-voice{height:48px}}
/* Compact Gem composer: a single rounded box like common chat apps, with icon buttons inside. */
.gem-sheet .chat-form.composer{display:flex;align-items:flex-end;gap:4px;margin:8px 10px 6px;padding:5px;border:1px solid var(--line);border-radius:24px;background:var(--surface);box-shadow:0 2px 10px color-mix(in srgb,var(--ink) 5%,transparent);transition:border-color .2s,box-shadow .2s}
.gem-sheet .chat-form.composer:focus-within{border-color:var(--accent-mid);box-shadow:0 0 0 3px var(--accent-soft)}
.gem-sheet .composer textarea{flex:1;min-width:0;height:auto;min-height:36px;max-height:132px;margin:0;padding:8px 6px;border:0!important;outline:none;background:transparent!important;resize:none;font-size:14px;line-height:1.45;box-shadow:none!important;overflow-y:auto}
.composer .ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.composer .ico .solid{fill:currentColor;stroke:none}
.gem-sheet .composer .gem-voice{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:36px;height:36px;padding:0 9px;margin:0;border:0;border-radius:18px;background:transparent;color:var(--muted);font-size:12px;font-weight:750;animation:none}
.gem-sheet .composer .gem-voice:hover{background:var(--surface-subtle);color:var(--ink)}
.gem-sheet .composer .gem-voice.recording{background:var(--accent-soft);color:var(--accent-text);animation:voice-pulse 1.4s ease-in-out infinite}
.gem-sheet .composer .gem-voice #gemVoiceLabel:empty{display:none}
.composer-send{flex-shrink:0;display:grid;place-items:center;width:36px;height:36px;padding:0;margin:0;border:0;border-radius:50%;background:var(--surface-subtle);color:var(--muted);transition:background .2s,color .2s,transform .15s}
.composer.has-text .composer-send{background:var(--accent);color:var(--on-accent)}.composer-send:active{transform:scale(.92)}.composer-send:disabled{opacity:.5}
.composer-spin{width:14px;height:14px;border-radius:50%;border:2px solid var(--accent-soft);border-top-color:var(--accent);animation:composer-spin .8s linear infinite}@keyframes composer-spin{to{transform:rotate(360deg)}}
.gem-sheet .chat-caption{font-size:9px;padding:0 14px 6px;opacity:.85}
.gem-sheet .chat-sharing{padding:6px 14px;font-size:11px}
@media(max-width:700px){.gem-sheet .chat-form.composer{margin:6px 4px 4px;padding:4px;border-top:1px solid var(--line)}.gem-sheet .composer textarea{font-size:16px;height:auto;min-height:36px}.gem-keyboard .chat-form.composer{padding:4px;margin:4px 2px}}
/* Feedback link on the Plan card. */
.feedback-link{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--accent)}
/* Google's sign-in button sits where the plain button was. */
.google-signin{min-height:44px;align-items:center}.onb-account{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
/* Plan comparison and locked features. */
.plan-compare{margin:14px 0}.plan-compare table{width:100%;border-collapse:collapse;font-size:12px}.plan-compare th,.plan-compare td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:center}.plan-compare tbody th{text-align:left;font-weight:600;color:var(--ink)}.plan-compare thead th{font-size:10px;letter-spacing:.6px;color:var(--muted)}
.plan-compare .current{background:var(--accent-pale);color:var(--accent-text);font-weight:750}.plan-compare .yes{color:var(--accent);font-weight:800}.plan-compare .no{color:var(--faint)}.plan-compare .soon{font-size:10px;font-weight:700;color:var(--accent)}
.locked{opacity:.75}.locked .premium-tag{margin-left:4px}
/* Account deletion and reporting Gem replies. */
.danger-link{color:var(--muted);font-size:11px;margin-top:6px;text-decoration:underline}.danger-link:hover{color:var(--accent)}
.primary.danger{background:#b3261e}.primary.danger:disabled{opacity:.45}.confirm-check{margin:14px 0 4px}.modal-actions{margin-top:12px}
.msg-report{background:none;border:0;padding:0 2px;margin-left:4px;font-size:11px;color:var(--faint);cursor:pointer;vertical-align:baseline}.msg-report:hover{color:var(--accent)}
.report-reasons .feature-row{padding:8px 0}
.field-hint{display:block;margin-top:6px;color:var(--muted);font-size:.8rem;line-height:1.4}
.row-icon{width:36px;height:36px;flex:0 0 36px;display:inline-grid;place-items:center;padding:0;border-radius:11px;background:var(--surface-subtle);color:var(--muted)}.row-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.row-icon:hover{background:var(--accent-soft);color:var(--accent-text)}.row-icon.danger:hover{background:#fbe4e1;color:#c2352b}.task-actions{gap:8px}.row-action{min-height:36px;border-radius:11px;font-size:11px;padding:0 12px}
@media(max-width:700px){.task-actions{gap:6px}}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .row-icon.danger:hover{background:#3d1f1c;color:#ff8a7d}}:root[data-theme=dark] .row-icon.danger:hover{background:#3d1f1c;color:#ff8a7d}
:root{--fin-0:var(--accent);--fin-1:color-mix(in srgb,var(--accent) 74%,var(--surface));--fin-2:color-mix(in srgb,var(--accent) 52%,var(--surface));--fin-3:color-mix(in srgb,var(--accent) 36%,var(--surface));--fin-4:color-mix(in srgb,var(--accent) 24%,var(--surface));--fin-5:color-mix(in srgb,var(--muted) 30%,var(--surface))}
.close-button{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;padding:0;border-radius:50%;background:var(--surface-subtle);color:var(--ink)}.close-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round}.close-button:hover{background:var(--accent-soft);color:var(--accent-text)}
.note-back{min-height:38px;padding:0 14px 0 10px;border-radius:11px}.note-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.date-control button{width:34px;height:34px;padding:0;display:grid;place-items:center;font-size:20px;border-radius:10px;background:var(--surface-subtle);color:var(--ink)}.date-control button:disabled{opacity:.35}
.finance-head{flex-wrap:wrap}.cur-tabs button{padding:8px 13px}
.money-card{padding:20px}.money-balance{display:flex;flex-direction:column;gap:4px}.money-balance span,.money-split span{font-size:11px;font-weight:700;color:var(--muted)}.money-balance strong{font:800 clamp(26px,7vw,32px)/1.15 Manrope,system-ui,sans-serif;letter-spacing:-1px;overflow-wrap:anywhere}.money-balance strong.negative{color:var(--accent)}
.money-split{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.money-split>div{background:var(--surface-subtle);border-radius:13px;padding:11px 13px;display:flex;flex-direction:column;gap:4px;min-width:0}.money-split strong{font-size:15px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.money-split strong.in{color:var(--positive)}
.cat-head{margin-top:20px}.cat-head h3{font-size:13px;margin:0 0 10px}.cat-stack{display:flex;gap:2px;height:10px;border-radius:6px;overflow:hidden;margin-bottom:8px}.cat-stack i{min-width:3px}
.cat-list{display:grid}.cat-item{display:grid;grid-template-columns:10px minmax(0,1fr) auto 38px;align-items:center;gap:10px;width:100%;padding:10px 6px;margin:0 -6px;width:calc(100% + 12px);background:transparent;border-radius:10px;text-align:left;font-size:13px}.cat-item:hover{background:var(--surface-subtle)}.cat-item.selected{background:var(--accent-pale)}.cat-dot{width:10px;height:10px;border-radius:50%}.cat-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.cat-amt{font-weight:700;font-size:12px}.cat-item small{text-align:right;color:var(--muted);font-size:11px}
.cat-more summary{cursor:pointer;list-style:none;font-size:12px;font-weight:750;color:var(--accent);padding:10px 0 2px}.cat-more summary::-webkit-details-marker{display:none}.cat-more summary:after{content:' ▾'}.cat-more[open] summary:after{content:' ▴'}
.fin-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:4px 0 6px}.fin-filters .tabs button{padding:8px 13px}.fin-filters .chip{padding:7px 12px}
.finance-day{display:flex;justify-content:space-between;align-items:baseline}.finance-day small{font-size:10px;letter-spacing:0;color:var(--muted)}
.money-entry{grid-template-columns:30px minmax(0,1fr) auto 36px}
@media(min-width:701px){.finance-grid .dash-col:first-child{position:sticky;top:20px}}
.plan-compare td strong{display:block;font-size:12px;white-space:nowrap}.plan-compare td small{display:block;font-size:9.5px;color:var(--muted);font-weight:600;line-height:1.35}.plan-compare tbody th{min-width:92px}.plan-compare td.current small{color:var(--accent)}
#remindersCard .feature-row small{display:block;font-size:11px;font-weight:500;color:var(--muted);margin-top:3px;line-height:1.45}
.buy-row{margin:6px 0 4px}.buy-row .primary,.buy-row .secondary{flex:1}


.order-list{margin-top:16px}.order-list h3{font-size:13px;margin-bottom:6px}.order-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}.order-row div{display:flex;flex-direction:column;gap:3px;min-width:0}.order-row small{font-size:11px;color:var(--muted)}.order-reason{color:var(--accent)!important}
.order-status{font-size:10px;font-weight:800;letter-spacing:.5px;padding:5px 9px;border-radius:999px;background:var(--surface-subtle);color:var(--muted);white-space:nowrap}.pending .order-status{background:var(--warning-soft);color:var(--warning)}.approved .order-status{background:var(--positive-soft);color:var(--positive)}.rejected .order-status{background:var(--accent-pale);color:var(--accent-text)}
.admin-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-bottom:18px}.admin-stat{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:4px;min-width:0}.admin-stat span{font-size:11px;font-weight:700;color:var(--muted)}.admin-stat strong{font:800 22px Manrope,system-ui,sans-serif;overflow-wrap:anywhere}.admin-stat small{font-size:11px;color:var(--muted)}
.link-button{background:none;padding:0;color:var(--accent);font-weight:750;font-size:11px;text-align:left}.admin-tabs,.admin-filters{display:flex;flex-wrap:wrap;margin-bottom:14px}.admin-filters{margin-bottom:10px}
.admin-order{border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:12px}.admin-order-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.admin-order-body div{display:flex;flex-direction:column;gap:4px;font-size:13px}.admin-order-body small{font-size:11px;color:var(--muted)}.admin-order code{font-size:12px;background:var(--surface-subtle);padding:1px 5px;border-radius:5px}
.admin-proof{display:block;width:100%;max-width:360px;margin-top:10px;border-radius:12px;border:1px solid var(--line)}.admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.admin-reject{display:flex;gap:8px;flex:1;min-width:220px}.admin-reject input{flex:1;min-width:0}.danger-text{color:var(--accent)}
.admin-user{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 0;border-top:1px solid var(--line)}.admin-user>div{flex:1;min-width:180px;display:flex;flex-direction:column;gap:3px}.admin-user small{font-size:11px;color:var(--muted)}.admin-grant{display:flex;gap:8px;flex-wrap:wrap}.admin-grant input{width:80px}
.admin-code-list{margin-top:14px}.admin-code-list pre{background:var(--surface-subtle);border-radius:12px;padding:12px;font-size:13px;overflow:auto;user-select:all}
/* Tablets and laptops: tighter top spacing, the menu button lined up with the content, Profile cards flowing in two
   columns without gaps, and on laptops everything scaled up a little so text is not tiny on a big screen. */
:root{--z:1}
@media(min-width:701px){
  .page-head{margin-bottom:40px;padding-left:64px;min-height:50px}
  .dock-wrap{top:max(calc(38px*var(--z)),env(safe-area-inset-top));left:max(calc(40px*var(--z)),calc((100vw - 940px*var(--z))/2 + 40px*var(--z)))}
  .headline{margin-bottom:28px}
  .notes-page{max-width:none}


}
@media(min-width:1100px){:root{--z:1.1}main,.profile-sheet,.modal,.onboarding-sheet,.checkout-sheet{zoom:var(--z)}}
@media(min-width:1400px){:root{--z:1.18}}
@media(min-width:701px){.note-editor{max-width:none}}
/* Scaled content keeps screen-height boxes within the screen. */
@media(min-width:1100px){.note-editor{min-height:calc((100dvh - 230px*var(--z))/var(--z))}.modal{max-height:calc(90dvh/var(--z))}}
/* Profile as a settings screen (iOS Settings style). */
.settings{max-width:620px;margin:0 auto}
.settings .profile-panel-head{padding-bottom:20px}
.settings-me{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:18px;text-align:left;margin-bottom:24px;color:var(--ink)}
.settings-me:hover{background:var(--surface-subtle)}
.settings-avatar{width:54px;height:54px;flex:0 0 54px;border-radius:50%;background:var(--accent-soft);color:var(--accent-text);display:grid;place-items:center;font:800 21px Manrope,system-ui,sans-serif}.settings-avatar svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2}
.settings-me-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.settings-me-text strong{font-size:16px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-me-text small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-group{margin-bottom:22px}.settings-group h3{font-size:11px;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);margin:0 0 8px 16px;font-weight:750}
.settings-list{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.settings-row{display:flex;align-items:center;gap:13px;width:100%;min-height:54px;padding:11px 14px 11px 14px;background:transparent;text-align:left;position:relative;color:var(--ink);text-decoration:none;font-size:14px;font-weight:650;border-radius:0}
.settings-row+.settings-row:before{content:'';position:absolute;top:0;left:58px;right:0;border-top:1px solid var(--line)}
.settings-row:hover{background:var(--surface-subtle)}.settings-row:active{transform:none;background:var(--line)}
.settings-icon{width:31px;height:31px;flex:0 0 31px;border-radius:9px;display:grid;place-items:center;color:#fff}.settings-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tone-blue{background:#3b82f6}.tone-amber{background:#f59e0b}.tone-red{background:var(--accent)}.tone-slate{background:#64748b}.tone-purple{background:#8b5cf6}.tone-pink{background:#ec4899}.tone-teal{background:#14a3a3}.tone-green{background:#22a06b}
.settings-label{flex:1;min-width:0}.settings-value{color:var(--muted);font-weight:500;font-size:13px;max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
.settings-chevron{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:var(--faint);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.settings-foot{text-align:center;font-size:11px;color:var(--faint);margin:8px 0 0}
.settings-back{display:inline-flex;align-items:center;gap:4px;min-height:38px;padding:0 14px 0 8px;border-radius:11px;background:var(--accent-pale);color:var(--accent-text);font-weight:750;font-size:13px}.settings-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.settings-title{font:800 30px/1.15 Manrope,system-ui,sans-serif;letter-spacing:-1px;margin:18px 0 18px}
.settings-sub>.health-card>h2:first-child,.settings-sub>form.health-card>h2:first-child{display:none}
.settings-sub>.health-card{padding:22px}
.sign-in-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:6px}.sign-in-hint .health-foot{margin:0;flex:1;min-width:180px}
/* Gem Live (spec 6.24): a calm full-screen call with Gem's face, what was said, and two big buttons. */

.live-panel{position:fixed;inset:0;z-index:60;background:var(--bg);display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom));animation:menu-in .25s var(--ease)}
.live-sheet{width:min(100%,460px);display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.live-face{width:148px;height:148px;border-radius:50%;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;box-shadow:0 0 0 0 var(--accent-glow);animation:live-pulse 2.4s ease-in-out infinite}
.live-face .gem-face{width:96px;height:96px}.live-face.is-pleased{animation-duration:1.1s}.live-face.is-thinking{animation:none;opacity:.8}
@keyframes live-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 22%,transparent)}50%{box-shadow:0 0 0 22px color-mix(in srgb,var(--accent) 0%,transparent)}}
.live-state{font:750 15px Manrope,system-ui,sans-serif;color:var(--muted);margin:0}


.live-hint{color:var(--muted);font-size:13px;margin:auto 0 0}.live-error{color:var(--accent-text);font-size:13px;line-height:1.6;margin:0;background:var(--accent-pale);padding:10px 14px;border-radius:12px}
.live-controls{display:flex;gap:12px;width:100%}.live-controls button{flex:1;min-height:54px;border-radius:999px;font-weight:800;font-size:14px}
.live-mute{background:var(--surface-subtle);color:var(--ink)}.live-mute.on{background:var(--ink);color:var(--bg)}.live-end{background:#d93a2b;color:#fff}
@media(prefers-reduced-motion:reduce){.live-face{animation:none}}
/* Checkout (spec 6.23): full-screen steps with a sticky header and button, in the style of app-store purchases. */
.checkout-panel{position:fixed;inset:0;z-index:55;background:var(--bg);overflow-y:auto;overscroll-behavior:contain;animation:menu-in .25s var(--ease)}
.checkout-sheet{max-width:520px;min-height:100%;margin:0 auto;display:flex;flex-direction:column}
.checkout-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:max(14px,env(safe-area-inset-top)) 16px 12px;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.checkout-icon{width:40px;height:40px;flex:0 0 40px;border-radius:50%;display:grid;place-items:center;padding:0;background:var(--surface-subtle);color:var(--ink)}.checkout-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.checkout-icon-space{width:40px;flex:0 0 40px}
.checkout-progress{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px}.checkout-step-label{font-size:11px;font-weight:750;color:var(--muted);letter-spacing:.4px}
.checkout-bar{width:100%;max-width:220px;height:5px;border-radius:5px;background:var(--line);overflow:hidden}.checkout-bar i{display:block;height:100%;background:var(--accent);border-radius:5px;transition:width .35s var(--ease)}
.checkout-body{flex:1;padding:10px 20px 24px;display:flex;flex-direction:column;gap:16px}
.checkout-foot{position:sticky;bottom:0;padding:12px 20px max(16px,env(safe-area-inset-bottom));background:linear-gradient(transparent,var(--bg) 30%)}
.checkout-cta{width:100%;min-height:54px;border-radius:16px;font-size:15px}.checkout-error{margin:0 0 10px;padding:10px 14px;border-radius:12px;background:var(--accent-pale);color:var(--accent-text);font-size:13px;line-height:1.5}
.checkout-title{font:800 26px/1.2 Manrope,system-ui,sans-serif;letter-spacing:-.8px;margin:6px 0 0}.checkout-sub{color:var(--muted);font-size:14px;line-height:1.6;margin:-8px 0 0}.checkout-note{color:var(--muted);font-size:12px;line-height:1.6;margin:0}
.period-toggle{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:var(--surface-subtle);border-radius:14px}.period-toggle button{padding:11px 8px;border-radius:11px;background:transparent;font-weight:750;font-size:13px;color:var(--muted)}.period-toggle button.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px rgb(0 0 0/10%)}
.save-badge{display:inline-block;margin-left:4px;padding:2px 7px;border-radius:999px;background:var(--positive-soft);color:var(--positive);font-size:10px;font-weight:800}
.plan-cards{display:grid;gap:12px}
.plan-card{display:flex;flex-direction:column;gap:6px;width:100%;padding:18px;border-radius:20px;border:2px solid var(--line);background:var(--surface);text-align:left;color:var(--ink);transition:border-color .2s,box-shadow .2s}
.plan-card.selected{border-color:var(--accent);box-shadow:0 8px 24px var(--accent-shadow)}.plan-card:active{transform:scale(.99)}
.plan-card-top{display:flex;align-items:center;gap:8px}.plan-card-name{font:800 19px Manrope,system-ui,sans-serif}.plan-badge{padding:3px 9px;border-radius:999px;background:var(--accent-pale);color:var(--accent-text);font-size:10px;font-weight:800;letter-spacing:.3px}
.plan-radio{margin-left:auto;width:24px;height:24px;flex:0 0 24px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;color:transparent}.plan-radio svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.selected .plan-radio{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.plan-card-price{display:flex;align-items:baseline;gap:6px}.plan-card-price strong{font:800 28px Manrope,system-ui,sans-serif;letter-spacing:-.8px}.plan-card-price span{color:var(--muted);font-size:13px;font-weight:650}.plan-card-month{color:#1f6b3f;font-size:12px;font-weight:700;margin-top:-4px}
.plan-perks{display:grid;gap:7px;margin-top:6px}.plan-perks span{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.45;color:var(--ink)}.plan-perks svg{width:16px;height:16px;flex:0 0 16px;margin-top:1px;fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.wallet-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.wallet-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 12px 16px;border-radius:20px;border:2px solid var(--line);background:var(--surface);font-weight:750;font-size:14px;color:var(--ink)}.wallet-tile.selected{border-color:var(--accent);box-shadow:0 8px 24px var(--accent-shadow)}
.wallet-tile .plan-radio{position:absolute;top:10px;right:10px;margin:0}
.wallet-mark{display:block;width:40px;height:40px;border-radius:24%;object-fit:cover;background:#fff;box-shadow:0 0 0 1px var(--line)}.wallet-mark.big{width:58px;height:58px}
.checkout-summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;border-radius:16px;background:var(--surface-subtle);font-size:13px;font-weight:650;color:var(--muted)}.checkout-summary strong{color:var(--ink);font-size:15px}
.order-chip{display:inline-block;padding:5px 10px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font:800 13px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.5px;color:var(--ink)}
.pay-amount{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 10px;padding:4px 2px}.pay-amount span{grid-column:1;font-size:12px;font-weight:700;color:var(--muted)}.pay-amount strong{grid-column:1;font:800 34px Manrope,system-ui,sans-serif;letter-spacing:-1px}.pay-amount .copy-chip{grid-column:2;grid-row:1 / span 2}
.copy-chip{display:inline-flex;align-items:center;gap:6px;padding:9px 13px;border-radius:999px;background:var(--surface-subtle);color:var(--ink);font-weight:750;font-size:12px;text-decoration:none}.copy-chip svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.copy-chip:hover{background:var(--accent-soft);color:var(--accent-text)}
.qr-card{border-radius:22px;background:var(--surface);border:1px solid var(--line);overflow:hidden;display:flex;flex-direction:column;align-items:center;gap:12px;padding-bottom:16px}
.qr-card-head{width:100%;padding:12px;text-align:center;font-weight:800;font-size:14px}
.qr-card img{width:min(240px,70vw);height:auto;aspect-ratio:1;border-radius:14px;background:#fff;padding:8px;border:1px solid var(--line)}
.qr-card-who{display:flex;flex-direction:column;align-items:center;gap:2px}.qr-card-who strong{font-size:15px}.qr-card-who span{font:800 18px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:1px}
.qr-card-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.note-box{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:16px;border:2px dashed var(--accent-mid);background:var(--accent-pale)}.note-box div{display:flex;flex-direction:column;gap:3px}.note-box span{font-size:12px;font-weight:700;color:var(--accent)}.note-box strong{font:800 22px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:1px;color:var(--ink)}
.pay-steps{margin:0;padding-left:22px;display:grid;gap:8px;font-size:13px;line-height:1.6;color:var(--ink)}
.proof-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:200px;padding:20px;border-radius:20px;border:2px dashed var(--line);background:var(--surface);cursor:pointer;text-align:center;position:relative;overflow:hidden}
.proof-drop:hover{border-color:var(--accent-mid)}.proof-icon{width:56px;height:56px;border-radius:18px;background:var(--accent-pale);color:var(--accent-text);display:grid;place-items:center}.proof-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.proof-drop strong{font-size:15px}.proof-drop small{font-size:12px;color:var(--muted)}
.proof-drop.has-proof{padding:10px;border-style:solid;border-color:var(--accent)}.proof-drop.has-proof img{max-width:100%;max-height:320px;border-radius:12px}
.proof-change{position:absolute;bottom:14px;padding:7px 14px;border-radius:999px;background:rgb(0 0 0/62%);color:#fff;font-size:12px;font-weight:750}
.optional{font-weight:600;color:var(--muted);font-size:12px}
.done-hero{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding-top:20px}.done-hero .checkout-sub{margin:0}
.done-icon{width:84px;height:84px;border-radius:50%;background:#22a06b;color:#fff;display:grid;place-items:center;box-shadow:0 10px 30px rgb(34 160 107/35%);animation:menu-in .4s var(--ease)}.done-icon svg{width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.resume-order{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin:6px 0 2px;padding:12px 14px;border-radius:14px;background:var(--accent-pale);color:var(--accent-text);font-weight:750;font-size:13px;text-align:left}.resume-order .settings-chevron{stroke:currentColor}
.checkout-note a{color:var(--accent);font-weight:700}
.code-details{margin-top:12px}.code-details summary{cursor:pointer;list-style:none;font-size:13px;font-weight:700;color:var(--muted);padding:6px 0;display:inline-flex;align-items:center;gap:6px}.code-details summary::-webkit-details-marker{display:none}.code-details summary:after{content:"›";font-size:16px;transition:transform .2s}.code-details[open] summary:after{transform:rotate(90deg)}.code-details summary:hover{color:var(--accent)}.code-details .form-row{margin-top:8px}
.live-detail{display:block;margin-top:6px;font:600 11px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted);word-break:break-word}
.order-list>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;font-size:13px;font-weight:750}.order-list>summary::-webkit-details-marker{display:none}.order-list>summary>span:first-child:after{content:" ›";color:var(--muted);display:inline-block;transition:transform .2s}.order-list[open]>summary>span:first-child:after{transform:rotate(90deg)}
.order-status.pending{background:var(--warning-soft);color:var(--warning)}.order-status.approved{background:var(--positive-soft);color:var(--positive)}.order-status.rejected{background:var(--accent-pale);color:var(--accent-text)}
/* Gem chats (spec 6.25): a chat list beside the chat on wide screens, over it on phones. */
.gem-sheet{position:relative;flex-direction:row;gap:16px}
.gem-main{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}
.gem-icon-button{width:40px;height:40px;flex:0 0 40px;border-radius:12px;display:grid;place-items:center;padding:0;background:var(--surface-subtle);color:var(--ink)}.gem-icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.gem-icon-button:hover{background:var(--accent-soft);color:var(--accent-text)}

.chat-list{display:none;flex-direction:column;min-height:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.gem-sheet.list-open .chat-list{display:flex;position:absolute;inset:max(18px,env(safe-area-inset-top)) 20px max(16px,env(safe-area-inset-bottom));z-index:5;box-shadow:var(--shadow)}
.chat-list-head{display:grid;gap:8px;padding:12px;border-bottom:1px solid var(--line)}

.chat-list-head input{width:100%;background:var(--surface-subtle);border:0!important;font-size:13px;padding:10px 12px!important;border-radius:10px}
.chat-list-body{flex:1;overflow-y:auto;padding:6px 8px 12px}
.chat-list-body h4{font-size:10px;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);margin:14px 8px 6px;font-weight:800}
.chat-row{position:relative;display:flex;align-items:center;border-radius:11px}.chat-row.active{background:var(--accent-pale)}.chat-row:hover{background:var(--surface-subtle)}.chat-row.active:hover{background:var(--accent-pale)}
.chat-open{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:9px 8px 9px 10px;background:transparent;text-align:left;color:var(--ink)}
.chat-row-title{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650}.chat-row.active .chat-row-title{color:var(--accent);font-weight:750}.chat-open small{font-size:10px;color:var(--muted)}
.chat-more{width:32px;height:32px;flex:0 0 32px;border-radius:9px;background:transparent;color:var(--muted);font-size:18px;line-height:1;padding:0;margin-right:4px}.chat-more:hover{background:var(--line);color:var(--ink)}
.chat-menu{position:absolute;right:4px;top:calc(100% - 4px);z-index:3;display:flex;flex-direction:column;min-width:150px;padding:5px;border-radius:12px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.chat-menu button{padding:9px 12px;border-radius:8px;background:transparent;text-align:left;font-size:13px;font-weight:650;color:var(--ink)}.chat-menu button:hover{background:var(--surface-subtle)}.chat-menu .danger-text{color:var(--accent)}
.chat-rename{display:flex;gap:6px;padding:4px}.chat-rename input{flex:1;min-width:0;font-size:13px}.chat-rename .primary{padding:9px 12px}
.chat-empty{padding:20px 10px;font-size:12px;color:var(--muted);text-align:center}
@media(min-width:900px){.gem-sheet{max-width:1100px}.chat-list{display:flex;width:280px;flex:0 0 280px}.gem-sheet.list-open .chat-list{position:static;inset:auto;box-shadow:none}.chat-toggle{display:none}}
@media(min-width:900px){.chat-list-close{display:none}}
.wallet-country{font-size:11px;font-weight:700;color:var(--muted);margin-top:-6px}.wallet-grid .wallet-tile:last-child:nth-child(odd){grid-column:1 / -1}
/* Gem replies with formatting and message tools (spec 6.25). */
.message.gem{white-space:normal}
.md>*:first-child{margin-top:0}.md>*:last-child{margin-bottom:0}.md p{margin:0 0 8px}.md .md-h{font-weight:800;font-size:1.05em;margin:12px 0 6px}
.md ul,.md ol{margin:4px 0 8px;padding-left:20px}.md li{margin:3px 0}.md strong{font-weight:800}
.md code{font:12px ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:1px 5px}
.md pre{margin:6px 0 8px;padding:10px 12px;border-radius:10px;background:var(--surface);border:1px solid var(--line);overflow-x:auto;white-space:pre}.md pre code{border:0;padding:0;background:none}
.md a{color:var(--accent);font-weight:700}
.message time{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.msg-actions{display:inline-flex;align-items:center;gap:2px;margin-left:auto}
.msg-tool{width:28px;height:28px;display:grid;place-items:center;padding:0;border-radius:8px;background:transparent;color:var(--muted)}.msg-tool:hover{background:var(--surface);color:var(--accent)}.msg-tool svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.msg-reported{font-size:10px;color:var(--muted)}
/* Simple Gem page (spec 6.25): a sidebar with Gem, New chat, Live Gem, search, chats and sharing; the chat area keeps
   only the messages and the composer. On phones the sidebar slides in over a dimmed chat. */
.gem-bar{display:flex;align-items:center;gap:10px;min-height:44px;margin-bottom:10px}
.gem-bar-title{flex:1;min-width:0;font-weight:750;font-size:14px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
.gem-bar .gem-close{margin-left:auto}
.chat-brand{display:flex;align-items:center;gap:10px;padding:2px 2px 6px}.chat-brand strong{font:800 18px Manrope,system-ui,sans-serif;flex:1}.chat-brand .gem-avatar{width:36px;height:36px}
.side-item{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border-radius:12px;background:transparent;color:var(--ink);font-weight:700;font-size:14px;text-align:left}.side-item:hover{background:var(--surface-subtle)}
.side-item svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.side-live{color:var(--accent)}.side-live:hover{background:var(--accent-pale)}
.chat-list-head{gap:4px}.chat-list-head input{margin-top:6px}
.chat-scrim{display:none}
.chat-list{background:var(--surface)}
@media(max-width:899px){
  .gem-sheet.list-open .chat-list{position:fixed;inset:0 auto 0 0;width:min(86vw,330px);border-radius:0 20px 20px 0;border-left:0;z-index:7;animation:drawer-in .22s var(--ease)}
  .gem-sheet.list-open .chat-scrim{display:block;position:fixed;inset:0;z-index:6;background:rgb(0 0 0/32%);border:0;padding:0;border-radius:0}
}
@keyframes drawer-in{from{transform:translateX(-24px);opacity:.4}to{transform:none;opacity:1}}
@media(min-width:900px){.gem-bar-title{text-align:left;padding-left:4px}}
.gem-bar-title{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.gem-bar{justify-content:space-between}
.live-sheet{min-height:min(620px,86dvh);justify-content:center;gap:22px}.live-sheet .live-controls{margin-top:auto;padding-top:40px}.live-sheet .live-face{margin-top:auto;width:170px;height:170px}.live-sheet .live-face .gem-face{width:110px;height:110px}.live-state{font-size:16px}
/* Prices in kyat, baht or dollars (spec 6.23), and a Telegram contact for buyers without these wallets. */
.currency-switch{display:inline-flex;gap:4px;padding:4px;margin:4px 0 10px;border-radius:12px;background:var(--surface-subtle)}
.currency-switch button{padding:7px 12px;border-radius:9px;background:transparent;color:var(--muted);font-weight:750;font-size:12.5px}
.currency-switch button.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgb(0 0 0/10%)}
.plan-card-other{display:block;margin-top:2px;font-size:11.5px;color:var(--muted)}
.pay-contact{display:flex;align-items:center;gap:12px;margin-top:14px;padding:13px 14px;border:1px dashed var(--line);border-radius:14px;color:var(--ink);text-decoration:none}
.pay-contact:hover{border-color:#229ed9;background:color-mix(in srgb,#229ed9 6%,transparent)}
.pay-contact svg{width:22px;height:22px;flex:0 0 22px;fill:none;stroke:#229ed9;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.pay-contact span{display:grid;gap:2px}.pay-contact strong{font-size:13.5px}.pay-contact small{font-size:12px;color:var(--muted)}
/* Gem's daily limit (spec 3.2): what is left, then a clear card and a locked composer once it is used up. */
.gem-limit{display:flex;align-items:center;gap:12px;margin:0 0 10px;padding:12px 14px;border-radius:14px;background:var(--accent-pale);border:1px solid color-mix(in srgb,var(--accent) 30%,transparent)}
.gem-limit-icon{font-size:20px;line-height:1}
.gem-limit div{flex:1;min-width:0;display:grid;gap:3px}.gem-limit strong{font-size:13.5px;color:var(--ink)}.gem-limit small{font-size:12px;color:var(--muted);line-height:1.4}
.gem-limit button{white-space:nowrap;padding:9px 14px}
.gem-left{margin:0 0 6px;font-size:12px;font-weight:650;color:var(--muted);text-align:center}
.chat-form textarea:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:520px){.gem-limit{flex-wrap:wrap}.gem-limit div{flex:1 1 calc(100% - 40px)}.gem-limit button{flex:1 1 100%}}
/* Voice used up for today: the buttons look off and a tap explains why instead of recording. */
.voice-button.used-up,.gem-voice.used-up{opacity:.5;cursor:not-allowed}
/* The chats button on phones says what it is, not only an icon. */
@media(max-width:899px){.gem-bar .chat-toggle{width:auto;flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:0 14px 0 10px;font-weight:750;font-size:13.5px;border:1px solid var(--line)}.gem-bar .chat-toggle svg{width:20px;height:20px}}
/* Share context in the Gem menu: a big button under New chat that opens large rows, one per category. */
.share-box{margin:2px 0 4px}
.share-item{list-style:none;cursor:pointer;background:var(--surface-subtle);border:1px solid var(--line)}
.share-item::-webkit-details-marker{display:none}
.share-title{flex:1;min-width:0}
.share-count{font-size:12px;font-weight:750;color:var(--accent);white-space:nowrap}
.share-item .share-chevron{width:16px;height:16px;flex:0 0 16px;transition:transform .2s var(--ease)}
.share-box[open] .share-chevron{transform:rotate(90deg)}
.share-list{display:grid;gap:2px;padding:6px 2px 2px}
.share-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border-radius:10px;font-size:14px;font-weight:650;color:var(--ink);cursor:pointer}
.share-row:hover{background:var(--surface-subtle)}
.share-row input{width:20px;height:20px;accent-color:var(--accent);flex-shrink:0}
.share-note{font-size:11px;color:var(--muted);line-height:1.5;margin:4px 12px 4px}
/* Dashboard: the latest note at the foot (spec 6.x); the row looks like the Notes list and opens the note. */
.dash-note{margin-top:18px}
.dash-note .week-head{margin-bottom:8px}
.dash-note .note-row{border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.dash-note .note-row span{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.dash-note-all{background:transparent;border:0;padding:4px 0;color:var(--accent);font-weight:700;font-size:13px}
.dash-note-empty{display:block;width:100%;text-align:left;background:transparent;border:0;padding:6px 0}
/* One-time notice when Gem's sharing default changed for someone (V1 review). */
.gem-share-notice{margin:0 0 10px;padding:12px 14px;border-radius:14px;background:var(--accent-pale);border:1px solid color-mix(in srgb,var(--accent) 25%,transparent);font-size:13px}
.gem-share-notice p{margin:0 0 10px;line-height:1.45}
.gem-share-notice div{display:flex;gap:8px;justify-content:flex-end}.gem-share-notice button{padding:8px 14px}
/* Navigation (spec 6.26): a tab bar always visible at the bottom of phones and a sidebar from 900 px, replacing the
   corner menu. The logo goes Home. Gem is the soft round button at the far right (the foot of the sidebar). */
.quick-menu,.menu-scrim{display:none!important}
#flame{cursor:pointer}
.tab-bar{position:fixed;left:0;right:0;bottom:0;z-index:27;display:flex;align-items:stretch;gap:0;
  padding:4px max(6px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px,env(safe-area-inset-left));
  background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -6px 24px color-mix(in srgb,var(--ink) 5%,transparent)}
.tab-bar button{flex:1 1 0;min-width:0;height:60px;display:grid;justify-items:center;align-content:center;gap:4px;padding:0 2px;
  background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--muted);font-size:10.5px;font-weight:600;letter-spacing:.1px;line-height:1.1;
  transition:color .15s ease;-webkit-tap-highlight-color:transparent}
.tab-bar button:hover{background:transparent;transform:none}
.tab-bar button[hidden]{display:none}
.tab-icon{display:grid;place-items:center;width:52px;height:30px;border-radius:999px;transition:background .15s ease,transform .15s ease}
.tab-bar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.tab-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tab-bar button[aria-current=page]{color:var(--ink);font-weight:750}
.tab-bar button[aria-current=page] .tab-icon{background:var(--accent-soft);color:var(--accent-text)}
.tab-bar button:active .tab-icon{transform:scale(.92)}
.tab-bar button:focus-visible{outline:none}.tab-bar button:focus-visible .tab-icon{outline:2px solid var(--accent);outline-offset:2px}
main{padding-bottom:calc(150px + env(safe-area-inset-bottom))}
/* Gem: the soft round face it always had (white, a light accent edge, a gentle glow), lifted a little above the bar. */
.tab-bar .gem-tab{color:var(--muted);align-content:end;padding-bottom:7px}
.gem-tab .gem-fab-face{display:grid;place-items:center;width:54px;height:54px;margin-top:-22px;padding:6px;border-radius:50%;
  background:var(--surface);border:1.5px solid color-mix(in srgb,var(--accent) 22%,var(--line));box-shadow:0 8px 22px color-mix(in srgb,var(--accent) 16%,transparent);
  transition:transform .15s ease}
.gem-tab .gem-fab-face svg{width:100%;height:100%}
.gem-tab:active .gem-fab-face{transform:scale(.94)}
.gem-tab[aria-expanded=true]{color:var(--ink)}
.gem-tab:focus-visible .gem-fab-face{outline:2px solid var(--accent);outline-offset:3px}
/* Page changes animate only the page: the bar and the logo stay perfectly still (their own transition layers). */
.tab-bar{view-transition-name:tab-bar}.dock-wrap{view-transition-name:app-logo}
::view-transition-group(tab-bar),::view-transition-old(tab-bar),::view-transition-new(tab-bar),
::view-transition-group(app-logo),::view-transition-old(app-logo),::view-transition-new(app-logo){animation:none}
::view-transition-old(tab-bar),::view-transition-old(app-logo){display:none}
/* While typing (a note, Gem's composer), the bar steps aside to leave room above the keyboard. */
body:has(.note-body:focus) .tab-bar,body:has(.note-title:focus) .tab-bar,.gem-keyboard .tab-bar{display:none}
@media(min-width:900px){
  .tab-bar{top:0;right:auto;bottom:0;width:92px;flex-direction:column;align-items:center;gap:4px;padding:24px 8px 22px;
    border-top:0;border-right:1px solid var(--line);box-shadow:none}
  .tab-bar button{flex:0 0 auto;width:76px;height:62px;border-radius:14px;font-size:11px}
  .tab-bar button:hover .tab-icon{background:var(--surface-subtle)}
  .tab-bar button[aria-current=page]:hover .tab-icon{background:var(--accent-soft)}
  body{padding-left:92px}
  main{padding-bottom:120px}
  .tab-bar .gem-tab{margin-top:auto;height:auto;align-content:center;padding:6px 0}
  .gem-tab .gem-fab-face{width:52px;height:52px;margin-top:0}
}
/* The page never grows wider than the screen: a wider page made phones zoom out, so the tab bar jumped and the page
   slid sideways (the Tasks date control was 11 px too wide at 390 px). The Tasks header wraps when space runs out. */
html,body{overflow-x:clip}
.schedule-top{flex-wrap:wrap}
.date-control{min-width:0}
@media(max-width:520px){.date-control input{width:auto;flex:1 1 96px;min-width:0}}
/* Gem's composer: the typed text stays 16 px (smaller makes iPhones zoom in on focus), the hint is smaller and quieter,
   which matters for long Burmese hints. */
.composer textarea::placeholder{font-size:13.5px;line-height:1.5}
html[lang=my] .composer textarea::placeholder{font-size:12.5px}
/* Getting started (spec 6.27): a checklist card at the top of Home. */
.start-card{margin-bottom:18px}
.start-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.start-head h2{margin:0 0 3px}.start-head small{color:var(--muted);font-size:12px;font-weight:600}
.start-close{width:32px;height:32px;flex:0 0 32px}
.start-bar{height:6px;margin:12px 0 6px;border-radius:999px;background:var(--surface-subtle);overflow:hidden}
.start-bar span{display:block;height:100%;border-radius:999px;background:var(--accent);transition:width .3s var(--ease)}
.start-steps{list-style:none;margin:0;padding:0;display:grid}
.start-step{width:100%;display:flex;align-items:center;gap:12px;padding:11px 2px;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;color:var(--ink)}
.start-steps li:last-child .start-step{border-bottom:0}
.start-step:hover:not(:disabled){background:var(--surface-subtle)}
.start-step>span:nth-child(2){flex:1;min-width:0;display:grid;gap:2px}
.start-step strong{font-size:13.5px}.start-step small{font-size:12px;color:var(--muted);font-weight:500}
.start-check{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border-radius:50%;border:1.5px solid var(--line);font-size:13px;font-weight:800;color:var(--on-accent)}
.start-step.done{opacity:.6;cursor:default}.start-step.done strong{text-decoration:line-through}
.start-step.done .start-check{background:var(--accent);border-color:var(--accent)}
.start-go{font-size:22px;color:var(--muted);line-height:1}
/* Finance: two named buttons to record money, and a short form led by the amount. */
.fin-new{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 10px;padding:16px;border-radius:16px;background:var(--accent);color:var(--on-accent);font-size:15px;font-weight:800;box-shadow:0 6px 16px var(--accent-shadow)}
.fin-new:hover{background:var(--accent-hover)}
.fin-new span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:rgb(255 255 255 / 22%);font-size:20px;line-height:1}
.fin-tip{font-size:12px;color:var(--muted);line-height:1.6;margin:0 2px 22px}
.fin-empty .dash-empty{font-size:13px;line-height:1.6;margin-bottom:14px}.fin-empty .fin-new{margin-bottom:8px}
.fin-example{font-size:12px;color:var(--faint);margin:0 2px 12px}.fin-empty .fin-tip{margin-bottom:0}
.fin-field{margin-bottom:16px}
.fin-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.fin-label{display:block;font-size:13px;font-weight:800;color:var(--ink);margin:0 0 8px}
.fin-label-row .fin-label{margin:0}
.fin-amount{display:flex;align-items:center;gap:10px;margin-top:8px;padding:6px 16px;border:2px solid var(--line);border-radius:16px;background:var(--surface)}
.fin-form.expense .fin-amount:focus-within{border-color:var(--accent)}.fin-form.income .fin-amount:focus-within{border-color:var(--positive)}
.fin-sign{font:800 34px/1 Manrope,system-ui,sans-serif}.fin-form.expense .fin-sign{color:var(--accent)}.fin-form.income .fin-sign{color:var(--positive)}
#finAmount{flex:1;min-width:0;border:0;background:transparent;padding:8px 0;font:800 38px/1.1 Manrope,system-ui,sans-serif;letter-spacing:-1px;outline:none;box-shadow:none}
.fin-cur{background:var(--surface-subtle);color:var(--ink);padding:7px 11px;border-radius:9px;font-size:12px;font-weight:800}
#finCurrency{width:auto;padding:7px;border-radius:9px}
.fin-amount+.backup-feedback:empty{display:none}
.fin-pair{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:10px}
.fin-date,#finNote,#finDate{width:100%;min-height:46px;padding:10px 12px;border:2px solid var(--line);border-radius:12px;background:var(--surface);font-size:13px;font-weight:700;color:var(--ink);text-align:left}
#finNote{font-weight:600}
.fin-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:10px;padding-top:16px;border-top:1px solid var(--line)}
.fin-cancel{padding:14px 10px;border-radius:14px;border:2px solid var(--line);background:var(--surface);color:var(--ink);font-size:13.5px;font-weight:800}
.fin-save{padding:14px 10px;border-radius:14px;font-size:14px;font-weight:800}
.fin-save svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.fin-form.income .fin-save{background:var(--positive);color:var(--on-accent)}.fin-form.income .fin-save:hover{background:var(--positive);box-shadow:none;filter:brightness(1.08)}
.modal:has(#financeForm) #financeModalTitle{font-size:22px;letter-spacing:-.6px}
.modal:has(#financeForm){padding-bottom:0}
.fin-actions{position:sticky;bottom:0;z-index:1;background:var(--surface);padding:14px 0 20px}
.fin-form .fin-types{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fin-type{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;border:2px solid var(--line);background:var(--surface);color:var(--ink);font-size:13.5px;font-weight:800;text-align:left}
.fin-radio{width:20px;height:20px;flex:0 0 20px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center}
.fin-type.active .fin-radio:after{content:'';width:10px;height:10px;border-radius:50%;background:currentColor}
.fin-type.expense.active{border-color:var(--accent-text);background:var(--accent-soft);color:var(--accent-text)}.fin-type.expense.active .fin-radio{border-color:var(--accent)}
.fin-type.income.active{border-color:var(--positive);background:var(--positive-soft);color:var(--positive)}.fin-type.income.active .fin-radio{border-color:var(--positive)}
.fin-select{width:100%;min-height:50px;padding:11px 40px 11px 14px;border:2px solid var(--line);border-radius:12px;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/18px;appearance:none;-webkit-appearance:none;font-size:14px;font-weight:700;color:var(--ink)}
.fin-form.expense .fin-select:focus{border-color:var(--accent)}.fin-form.income .fin-select:focus{border-color:var(--positive)}
/* Unfinished tasks from the last 7 days, above today's list: move, done or delete each one. */
.carry-card{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:var(--radius);padding:16px 18px;margin-bottom:18px}
.carry-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.carry-head h2{font-size:16px;margin:0}
.carry-sub{font-size:12px;color:var(--muted);line-height:1.55;margin:4px 0 8px}
.carry-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.carry-row:last-child{border-bottom:0}
.carry-info{flex:1;min-width:0;display:grid;gap:3px}
.carry-info strong{font-size:13.5px;font-weight:700;overflow-wrap:anywhere}
.carry-info small{font-size:11px;color:var(--muted);font-weight:600}
.carry-actions{display:flex;align-items:center;gap:2px;flex-shrink:0}
.carry-move{background:var(--accent-soft);color:var(--accent-text);border-radius:9px;padding:8px 11px;font-size:11.5px;font-weight:800;white-space:nowrap}
.carry-move:hover{background:var(--accent);color:var(--on-accent)}
.carry-done svg{stroke-width:2.6}.carry-done:hover{color:var(--positive);background:var(--positive-soft)}
.carry-foot{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin-top:12px}
.carry-foot button{padding:12px 10px;font-size:12px}
/* Daily streak: one card on Home with this week, best, active days and milestones. */
.streak-main{display:grid;gap:12px}
.streak-top{display:flex;align-items:center;gap:14px}
.streak-flame{width:56px;height:56px;flex:0 0 56px;display:grid;place-items:center;border-radius:18px;background:var(--surface-subtle);font-size:30px;filter:grayscale(1);opacity:.55}
.streak-flame.lit{background:var(--accent-soft);filter:none;opacity:1}
.streak-top h2{margin:0;font-size:15px;color:var(--muted);font-weight:750}
.streak-top h2 strong{font:800 34px/1 Manrope,system-ui,sans-serif;color:var(--ink);letter-spacing:-1px;margin-right:2px}
.streak-top p{margin:4px 0 0;font-size:12px;color:var(--muted);line-height:1.5}
.streak-week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.streak-day{display:grid;justify-items:center;gap:5px}
.streak-day small{font-size:10px;font-weight:700;color:var(--muted)}
.streak-day.is-today small{color:var(--accent)}
.streak-day i{font-style:normal;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;font-size:16px;background:var(--surface-subtle);border:2px solid transparent}
.streak-day.on i{background:var(--accent-soft)}
.streak-day.rest i{background:#e5f1fb}
.streak-day.open i{border:2px dashed var(--accent-mid);background:transparent}
.streak-day.off i{background:var(--surface-subtle);opacity:.6}
.streak-day.future i{background:transparent;border:2px solid var(--line)}
.streak-rest{margin:0;font-size:11.5px;color:var(--muted);line-height:1.5}
.streak-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.streak-stats div{background:var(--surface-subtle);border-radius:13px;padding:10px;display:grid;gap:3px;min-width:0}
.streak-stats strong{font:800 16px Manrope,system-ui,sans-serif;white-space:nowrap}
.streak-stats span{font-size:10.5px;font-weight:650;color:var(--muted);line-height:1.35}
.streak-miles{display:flex;flex-wrap:wrap;gap:6px}
.mile{padding:5px 9px;border-radius:999px;border:1.5px solid var(--line);font-size:11px;font-weight:800;color:var(--faint)}
.mile.earned{border-color:var(--accent-text);background:var(--accent-soft);color:var(--accent-text)}
.streak-next{margin:0;font-size:12px;font-weight:700;color:var(--ink)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .streak-day.rest i{background:#1d2a36}}
:root[data-theme="dark"] .streak-day.rest i{background:#1d2a36}
/* Repeating tasks: the repeat field with day chips, the this-day/all choice, and the mark on a task. */
.repeat-days{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.day-chip{position:relative;cursor:pointer}
.day-chip input{position:absolute;opacity:0;width:1px;height:1px}
.day-chip span{display:grid;place-items:center;min-width:42px;padding:8px 6px;border-radius:10px;border:1.5px solid var(--line);font-size:12px;font-weight:750;color:var(--muted)}
.day-chip input:checked+span{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.day-chip input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.repeat-mark{font-size:11px}
.del-choices{display:grid;gap:8px}
.danger-text{color:var(--accent)}
.repeat-days[hidden]{display:none}
/* Burmese text: Myanmar script sits taller and wider than Latin at the same size, so headings, labels, buttons and
   hints step down a little in Burmese and long titles wrap less. */
html:lang(my) h1{font-size:clamp(26px,3.4vw,36px)}
@media(max-width:520px){html:lang(my) .headline h1{font-size:26px}}
html:lang(my) .subtitle{font-size:11.5px}
html:lang(my) .dash-card h2{font-size:14px}
html:lang(my) .card-head h2,html:lang(my) .health-card h2{font-size:16px}
html:lang(my) .modal h2{font-size:18px}
html:lang(my) label{font-size:11.5px}
html:lang(my) .field-hint{font-size:11px}
html:lang(my) .primary,html:lang(my) .secondary{font-size:11.5px}
html:lang(my) .chip{font-size:11.5px}
html:lang(my) .settings-row{font-size:13px}
html:lang(my) .settings-value{font-size:12px}
html:lang(my) .empty strong{font-size:14px}
html:lang(my) .task-name{font-size:13px}
html:lang(my) .tab-bar button{font-size:10px}
html:lang(my) .streak-top h2{font-size:13px}
html:lang(my) .streak-stats span{font-size:10px}
/* Gem tab button (owner pick "A"): a plain white circle with a thin neutral edge and a soft grey shadow, and one leaf
   colour, so it stays calm next to the other tabs. */
.gem-tab .gem-fab-face{border:1px solid var(--line);box-shadow:0 4px 12px rgb(0 0 0 / 8%)}
.gem-tab .gem-leaf-r{fill:var(--accent)}
/* Reminder guide in the task form and Settings: a turn-on offer, or the few steps a phone needs first. */
.remind-nudge{display:grid;gap:10px;margin-top:10px;padding:12px 14px;border-radius:12px;background:var(--surface-subtle);font-size:12.5px;line-height:1.55}
.remind-nudge p{margin:0}
.remind-nudge.ok strong{color:var(--positive)}
.remind-nudge .primary,.remind-nudge .secondary{justify-self:start}
.remind-steps{margin:0;padding-left:20px;display:grid;gap:6px;font-size:12.5px;line-height:1.55}
#remindersCard .remind-steps{margin:4px 0 12px}
/* Desktop navigation (owner's pick): from 900 px the menu is a worded list that sits right beside the page instead of
   at the screen edge, and Gem floats in the bottom-right corner like a chat button. Phones keep the bottom tab bar.
   The menu (190 px, then a 20 px gap) and the page (940 px, zoomed by --z on laptops) are centred together as one
   group, and the logo sits at the top of the menu. --nav-x is where the menu starts. */
:root{--nav-x:max(12px,calc((100vw - 210px - 940px*var(--z))/2))}
@media(min-width:900px){
  body{padding-left:0}
  main{margin:0 0 0 calc((var(--nav-x) + 210px)/var(--z))}
  .page-head{padding-left:0}
  .dock-wrap{top:38px;left:calc(var(--nav-x) + 10px)}
  .tab-bar{top:28px;bottom:auto;left:var(--nav-x);width:190px;height:auto;align-items:stretch;gap:2px;padding:70px 10px 10px;
    border:1px solid var(--line);border-radius:18px;background:var(--surface)}
  .tab-bar button{width:100%;height:44px;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:0 10px;
    border-radius:12px;font-size:13.5px;font-weight:650;color:var(--muted)}
  .tab-icon{width:28px;height:28px;flex:0 0 28px;border-radius:9px}
  .tab-bar svg{width:20px;height:20px}
  .tab-bar button:hover{background:var(--surface-subtle);color:var(--ink)}
  .tab-bar button:hover .tab-icon,.tab-bar button[aria-current=page]:hover .tab-icon{background:transparent}
  .tab-bar button[aria-current=page]{background:var(--accent-soft);color:var(--accent-text)}
  .tab-bar button[aria-current=page] .tab-icon{background:transparent}
  .tab-bar .gem-tab{position:fixed;right:28px;bottom:28px;width:auto;height:auto;margin:0;padding:0;background:transparent;display:grid;justify-items:center;gap:4px;font-size:11px}
  .tab-bar .gem-tab:hover{background:transparent}
  .gem-tab .gem-fab-face{width:60px;height:60px;margin:0;box-shadow:0 6px 18px rgb(0 0 0 / 10%)}
  .gem-tab:hover .gem-fab-face{transform:translateY(-2px)}
  html:lang(my) .tab-bar button{font-size:12.5px}
}
/* Colour audit fixes: control edges people must see (task checkbox, radio, day chips) use --control-edge (3:1 or
   more) and small labels people read use --muted instead of --faint. The Settings icons keep their own colours (owner's
   choice). */
.task-check,.fin-radio,.day-chip span{border-color:var(--control-edge)}
.task-check:checked{border-color:var(--accent)}
.day-chip input:checked+span{border-color:var(--accent)}
.page-ident,.finance-day,.fin-example,.editor-top{color:var(--muted)}
/* Layout check fixes. */
/* 1. Tap the task text to edit it. On phones a row stays one line: the actions fold into a ⋯ menu. */
.task-info[data-open-task]{cursor:pointer}
.task-more{display:none}
.task-menu{display:grid;gap:8px}
.task-menu button{width:100%;padding:14px;font-size:13.5px;justify-content:flex-start;text-align:left}
.modal-actions:empty{display:none}
@media(max-width:520px){
  .task-row{flex-wrap:nowrap}
  .task-row .task-info{flex:1 1 auto}
  .task-actions{margin-left:0}
  .task-actions>:not(.task-more){display:none}
  .task-more{display:grid;width:40px;height:40px}
  .task-more svg{fill:currentColor;stroke:none}
}
/* 2. The task tick looks a little bigger and can be tapped anywhere in a 44 px square around it. */
.task-check{position:relative;width:24px;min-width:24px;flex:0 0 24px;height:24px}
.task-check::before{content:'';position:absolute;inset:-10px}
/* 3. Small buttons reach a comfortable tap size. */
.date-control button{min-width:40px;min-height:40px}
#lessWater{min-width:44px}
/* 4. Desktop: the menu already shows the logo and the page title is big, so the header keeps only the avatar. */
@media(min-width:900px){.page-head .wordmark,.page-head .page-ident{display:none}.page-head{justify-content:flex-end}}
/* 5. Tablet and laptop Home: the week card spans both columns below them, so the two columns end at about the same
   height; phones keep it in its place in the single column. */
.week-wide{display:none}
@media(min-width:701px){.week-narrow{display:none}.week-wide{display:block;margin-top:18px}}
/* 6. In Burmese the Settings title matches the size of the other page titles. */
html:lang(my) .profile-panel-head h2{font-size:clamp(26px,3.4vw,36px);letter-spacing:-.8px}
/* Profile picture: pick an emoji (or the first letter) in About you; it shows on the avatar button and the Settings card. */
.field-label{display:block;font-size:12px;font-weight:700;margin-bottom:8px}
.avatar-pick{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;max-width:360px}
.avatar-choice{height:44px;border-radius:12px;border:1px solid var(--line);background:var(--subtle);font-size:22px;line-height:1;display:grid;place-items:center;padding:0;color:var(--ink)}
.avatar-choice.avatar-letter{font:800 17px Manrope,system-ui,sans-serif;color:var(--accent-text);background:var(--accent-soft)}
.avatar-choice[aria-pressed="true"]{border:2px solid var(--accent);background:var(--accent-soft)}
.avatar-emoji{font-size:21px;line-height:1}
.settings-avatar .avatar-emoji{font-size:30px}
/* Star challenge card and leaderboard. */
.ch-card{display:grid;gap:12px;margin-bottom:18px;border-color:var(--accent-mid);background:linear-gradient(135deg,var(--accent-pale),var(--surface) 60%)}
.ch-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ch-head h2{margin:0;font-size:17px}
.ch-badge{font-size:11px;font-weight:750;padding:4px 9px;border-radius:999px;background:var(--warning-soft);color:var(--warning);white-space:nowrap}
.ch-when{margin:0;font-weight:700;color:var(--accent-text)}
.ch-rules{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:13.5px}
.ch-rules li{display:flex;gap:8px;align-items:flex-start}
.ch-prizes,.ch-in,.ch-next{margin:0;font-size:13.5px;color:var(--muted)}
.ch-in{color:var(--positive);font-weight:700}
.ch-next{font-weight:700;color:var(--ink)}
.ch-join{display:grid;gap:8px;padding:12px;border-radius:12px;background:var(--subtle)}
.ch-join p{margin:0;font-size:13.5px}
.ch-today{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ch-star{display:grid;justify-items:center;gap:4px;padding:10px 6px;border-radius:12px;border:1px solid var(--line);background:var(--surface);text-align:center}
.ch-star b{font-size:22px;line-height:1;filter:grayscale(1);opacity:.55}
.ch-star.on{border-color:var(--accent);background:var(--accent-soft)}
.ch-star.on b{filter:none;opacity:1}
.ch-star small{font-size:11.5px;color:var(--muted);line-height:1.3}
.ch-total{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.ch-total strong{font-size:26px}
.ch-total span{color:var(--muted)}
.ch-total em{margin-left:auto;font-style:normal;font-weight:750;color:var(--accent-text)}
.ch-how summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--muted)}
.ch-how[open] summary{margin-bottom:8px}
.ch-board-btn{justify-self:start}
.ch-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;max-height:60vh;overflow:auto}
.ch-list li{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:var(--subtle)}
.ch-list li.me{background:var(--accent-soft);outline:1px solid var(--accent)}
.ch-rank{width:26px;text-align:right;font-weight:800;color:var(--muted)}
.ch-face{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-text);font-weight:800;font-size:17px;flex:0 0 32px}
.ch-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}
.ch-name small{color:var(--muted);font-weight:500}
.ch-mine{margin:10px 0 0;font-weight:700}
.ch-note{margin:12px 0 0;font-size:12px;color:var(--muted)}
/* Admin: challenge review. */
.admin-ch{flex-wrap:wrap}
.admin-late{color:var(--warning);font-weight:700}
.admin-ch-keep{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;margin:0}
.admin-ch-days{width:100%;border-collapse:collapse;font-size:12.5px;margin-top:8px}
.admin-ch-days th,.admin-ch-days td{padding:5px 6px;border-bottom:1px solid var(--line);text-align:center}
.admin-ch-days tr.late td{background:var(--warning-soft)}
/* Note editor: the title and body are bare writing areas, so focus shows as the caret instead of a box that touches the title. */
.note-title:focus-visible,.note-body:focus-visible{outline:none}
.note-cat-dd{position:relative;align-self:flex-start;margin-top:12px}
.note-cat-btn{display:inline-flex;align-items:center;gap:7px;padding:7px 10px 7px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface-subtle);color:var(--muted);font-size:12px;font-weight:650;transition:border-color .15s,background .15s,color .15s}
.note-cat-btn.set{background:var(--accent-soft);border-color:var(--accent-mid);color:var(--accent-text)}
.note-cat-btn[aria-expanded="true"]{border-color:var(--accent-mid)}
.note-cat-dot{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.7}
.note-cat-caret{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s var(--ease)}
.note-cat-btn[aria-expanded="true"] .note-cat-caret{transform:rotate(180deg)}
.note-cat-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:20;min-width:200px;max-height:280px;overflow:auto;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);animation:menu-in .18s var(--ease)}
.note-cat-menu[hidden]{display:none}
.note-cat-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:var(--ink);font-size:13px;font-weight:600;text-align:left}
.note-cat-item:hover,.note-cat-item:focus-visible{background:var(--surface-subtle);outline:none}
.note-cat-item.on{color:var(--accent-text);background:var(--accent-pale)}
.note-cat-item svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.note-cat-item.add{margin-top:4px;border-top:1px solid var(--line);border-radius:0 0 9px 9px;color:var(--accent-text)}
.note-cats{margin:0 0 12px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.note-cats .chip{flex:none}
.note-tag{font-style:normal;font-size:10px;font-weight:700;color:var(--accent-text);background:var(--accent-soft);border-radius:6px;padding:2px 7px;margin-right:7px}
/* Home goal: the goal from About you under the greeting. */
.dash-goal{display:flex;align-items:center;gap:13px;width:100%;margin:0 0 18px;padding:14px 16px;border:1px solid var(--accent-soft);border-radius:var(--radius);background:linear-gradient(135deg,var(--accent-pale),var(--surface) 70%);color:var(--ink);text-align:left}
.dash-goal-icon{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.06);font-size:20px}
.dash-goal-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.dash-goal-text small{font-size:10.5px;font-weight:700;color:var(--accent-text);letter-spacing:.2px}
.dash-goal-text strong{font-size:14px;font-weight:750;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.dash-goal.empty{border-style:dashed;background:var(--surface)}.dash-goal.empty strong{font-weight:650;color:var(--muted);font-size:13px}
.dash-goal-plus{flex:none;font-size:20px;color:var(--accent-text)}
/* Money: the balance includes what is left from earlier months. */
.money-carry{font-size:11px;font-weight:600;color:var(--muted)}
.money-none{margin:14px 0 0}
