@import url('./note-peel.css');
:root{font-family:'Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#172a43;background:#eaf0f5;font-synthesis:none;--blue:#1762ef;--ink:#172a43;--muted:#718092;--paper:#f6f8fb;--lime:#e0f89a}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #fbad30;outline-offset:4px}button{touch-action:manipulation}button:active{transform:scale(.97)}a{color:inherit;text-decoration:none}.phone-shell{max-width:460px;min-height:100dvh;margin:auto;background:var(--paper);position:relative;overflow:hidden}#app{min-height:100dvh;padding:25px 22px 105px}.desktop-note{display:none}.brand{font-size:26px;font-weight:900;letter-spacing:-1px;display:flex;align-items:center;gap:12px}.brand span{font-size:10px;letter-spacing:2px;max-width:70px;line-height:1.5;color:var(--muted)}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.avatar-mini{width:44px;height:44px;border-radius:16px;background:#d8eaff;display:grid;place-items:center;font-size:22px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:2px;color:var(--muted)}h1,h2,h3,p{margin:0}h2{font-size:27px;letter-spacing:-1px}h3{font-size:18px}.muted{color:var(--muted);font-size:14px}.greeting{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.date-pill{font-size:12px;background:white;border-radius:20px;padding:8px 12px}.hero{position:relative;background:var(--blue);border-radius:30px;color:white;padding:26px 24px;overflow:hidden;min-height:0;padding-bottom:22px;box-shadow:0 14px 30px #1762ef20}.hero .eyebrow{color:#c8dcff}.amount{font-size:60px;font-weight:800;letter-spacing:-3px;line-height:1.2;margin-top:12px;font-variant-numeric:tabular-nums}.amount small{font-size:17px;letter-spacing:0;font-weight:500;margin-left:7px}.hero-sub{font-size:14px;color:#dceaff;margin-top:6px}.hero-bottom{position:relative;z-index:2;margin-top:30px}.progress-head{display:flex;justify-content:space-between;font-size:13px;margin-bottom:10px}.track{height:7px;background:#ffffff36;border-radius:6px;overflow:hidden}.fill{height:100%;background:var(--lime);border-radius:6px;transition:width .6s}.mascot{position:absolute;width:145px;height:145px;object-fit:contain;right:-1px;top:61px;filter:drop-shadow(0 15px 13px #00378825);transform:rotate(8deg);animation:bob 4s ease-in-out infinite}.hero-mark{position:absolute;right:16px;top:78px;font-size:100px;opacity:.85}.hero:after{content:'';position:absolute;width:380px;height:170px;background:#ffffff09;border-radius:50%;bottom:-78px;right:-80px;transform:rotate(-15deg)}.section-head{display:flex;align-items:center;justify-content:space-between;margin:26px 0 14px}.text-button{background:none;color:var(--blue);font-size:14px;padding:5px 0}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.quick{padding:18px 5px 14px;background:white;border:1px solid #e6ebf2;border-radius:20px;display:flex;align-items:center;flex-direction:column;gap:5px;box-shadow:0 3px 0 #e9edf3}.quick:nth-child(2){background:#e5efff;border-color:#c9ddff}.quick strong{font-size:23px;letter-spacing:-1px}.quick small{font-size:12px;color:var(--muted)}.cup-icon{font-size:23px;line-height:1.3;margin-bottom:4px}.custom{width:100%;border:1px dashed #bccada;border-radius:16px;padding:13px;margin-top:13px;background:transparent;font-size:14px}.community{display:flex;gap:12px;align-items:center;background:#eaf0e0;border-radius:20px;padding:16px;margin-top:22px}.community p{font-size:14px;font-weight:600}.community small{font-size:12px;color:#667854}.cluster{font-size:22px;white-space:nowrap}.nav{position:fixed;bottom:0;width:min(100%,460px);margin-left:-22px;background:#fffffff2;backdrop-filter:blur(20px);border-top:1px solid #e6eaf0;display:flex;z-index:10;padding:10px 17px calc(12px + env(safe-area-inset-bottom))}.nav button{flex:1;display:flex;gap:4px;align-items:center;flex-direction:column;background:none;font-size:12px;color:#8793a2;padding:5px}.nav button.active{color:var(--blue);font-weight:800}.nav svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8}.preview-label{font-size:11px;color:#8894a1;text-align:center;margin-top:24px;letter-spacing:1px}.log-row{display:flex;justify-content:space-between;align-items:center;padding:16px 0;border-bottom:1px solid #e8edf3;font-size:14px}.log-row small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.log-row strong{font-size:18px}.empty{padding:28px 14px;text-align:center;color:var(--muted);font-size:14px;background:white;border-radius:20px;line-height:1.8}#toast{position:fixed;bottom:96px;left:50%;transform:translateX(-50%) translateY(15px);background:#162a43;color:white;padding:13px 20px;border-radius:18px;box-shadow:0 8px 24px #14294033;font-size:14px;opacity:0;pointer-events:none;transition:.25s;z-index:40;max-width:90%;width:max-content}#toast.show{opacity:1;transform:translateX(-50%);pointer-events:auto}#toast button{background:none;color:#dff89c;font-weight:700;margin-left:20px}.picker{padding-top:12px;text-align:center}.picker .eyebrow{margin-top:38px}.picker h1{font-size:34px;letter-spacing:-1.5px;line-height:1.4;margin:10px 0}.picker .intro{color:var(--muted);font-size:14px;line-height:1.9}.carousel{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;margin:30px -22px 15px;padding:20px calc(50% - 52px);scrollbar-width:none;align-items:center;min-height:170px}.carousel::-webkit-scrollbar{display:none}.person{flex:0 0 104px;scroll-snap-align:center;border-radius:32px;height:128px;background:#e4ebf3;opacity:.55;transform:scale(.86);transition:.25s;display:grid;place-content:center;gap:9px}.person.selected{background:#d9e9ff;box-shadow:0 0 0 3px var(--blue),0 12px 25px #1762ef22;opacity:1;transform:scale(1)}.person .face{font-size:39px}.person .name{font-size:14px;font-weight:700}.picker-hint{font-size:12px;color:var(--muted);margin-bottom:25px}.primary{background:var(--blue);color:white;border-radius:17px;padding:16px 20px;width:100%;font-weight:700;font-size:16px}.all-members{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.member-option{background:#f1f5fa;border-radius:12px;padding:12px 5px;font-size:14px}.member-option.selected{background:#dceaff;color:var(--blue)}.picker-footer{background:#e9efdf;border-radius:20px;padding:20px;margin-top:30px;text-align:left;display:flex;gap:13px}.picker-footer strong{font-size:14px}.picker-footer p{font-size:12px;color:#697c5b;line-height:1.8;margin-top:5px}dialog{border:0;border-radius:28px;padding:26px;width:min(420px,calc(100% - 28px));color:var(--ink);box-shadow:0 25px 100px #14294030;max-height:85dvh;overflow:auto}dialog::backdrop{background:#13283d66;backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.close{background:#f0f3f7;border-radius:50%;width:34px;height:34px;font-size:23px}label{display:block;font-size:14px;margin:16px 0 8px}input{width:100%;min-width:0;padding:14px;border:1px solid #d7e0ea;border-radius:13px;background:#f7f9fc;color:var(--ink);font-size:18px}input:focus{outline:2px solid var(--blue)}.field-hint{font-size:12px;color:var(--muted);line-height:1.8;margin:12px 0 20px}.form-error{color:#b63636;font-size:14px;margin:8px 0}.segmented{display:flex;background:#e8edf4;border-radius:14px;padding:4px;margin:22px 0}.segmented button{flex:1;padding:10px 5px;border-radius:11px;background:none;font-size:14px}.segmented button.active{background:white;color:var(--blue);font-weight:700;box-shadow:0 2px 5px #172a4310}.rank-hero{background:var(--lime);border-radius:26px;padding:22px;margin-bottom:20px;position:relative}.rank-hero h3{font-size:21px;margin:6px 0}.rank-hero p{font-size:13px;color:#586a39;max-width:85%;line-height:1.8}.rank-hero .trophy{position:absolute;right:21px;top:22px;font-size:36px}.rank-row{display:flex;align-items:center;gap:12px;padding:15px 12px;border-bottom:1px solid #e7edf4}.rank-row.me{background:#e7f0ff;border-radius:17px;border:0}.rank-number{width:23px;text-align:center;font-size:17px;font-weight:700;color:#7b8ba0}.rank-avatar{height:43px;width:43px;border-radius:15px;background:#e9edf5;display:grid;place-items:center;font-size:24px}.rank-info{flex:1}.rank-info strong{font-size:14px}.rank-info small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.rank-score{font-size:21px;font-weight:800;color:var(--blue)}.rank-score small{font-size:12px;font-weight:500;margin-left:3px}.mini-tag{font-size:10px;border-radius:5px;background:var(--blue);color:white;padding:2px 4px;margin-left:4px}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.stat{padding:20px 16px;background:white;border:1px solid #e7edf4;border-radius:22px}.stat span{font-size:13px;color:var(--muted)}.stat strong{display:block;font-size:28px;letter-spacing:-1px;margin-top:10px}.stat small{font-size:12px;font-weight:400;letter-spacing:0;margin-left:3px}.stat:nth-child(1){background:var(--blue);color:white;border-color:var(--blue)}.stat:nth-child(1) span{color:#d8e7ff}.calendar{background:white;border-radius:24px;padding:18px}.calendar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.calendar-head button{width:34px;height:34px;background:#f0f5fa;border-radius:11px}.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.weekday{text-align:center;font-size:12px;color:var(--muted);padding:5px 0 12px}.day{aspect-ratio:1;background:#f2f5f9;border-radius:12px;font-size:13px;position:relative}.day.done{background:#dff29e;color:#445c15}.day.recorded{background:#e4eeff;color:var(--blue)}.day.today{box-shadow:inset 0 0 0 2px var(--blue);font-weight:800}.day:disabled{opacity:.3;cursor:default}.legend{display:flex;gap:14px;font-size:11px;color:var(--muted);margin-top:16px}.legend i{width:8px;height:8px;border-radius:3px;display:inline-block;margin-right:4px}.profile{display:flex;align-items:center;gap:14px}.profile .avatar-mini{height:60px;width:60px;font-size:33px;border-radius:22px}.profile h2{font-size:25px}.badge-strip{display:flex;gap:10px}.badge{flex:1;background:#eef2e6;border-radius:18px;text-align:center;padding:16px 5px;font-size:12px;color:#687653}.badge span{display:block;font-size:27px;margin-bottom:8px}.badge.locked{filter:grayscale(1);opacity:.5}.settings{display:flex;justify-content:space-between;margin-top:22px;gap:16px}.settings button{font-size:13px;background:none;color:var(--muted);padding:8px 0}.footnote{font-size:12px;line-height:1.9;color:var(--muted);margin-top:17px}.splash{animation:splash .5s ease-out}.rules{font-size:14px;line-height:1.9;color:#5c6e82}.rules p{margin:12px 0}.audit{padding:12px 0;font-size:13px;border-bottom:1px solid #e7edf4}.audit small{display:block;color:var(--muted);margin-top:5px}.danger{background:none;color:#b84343;font-size:14px;padding:12px;width:100%;margin-top:10px}@keyframes bob{50%{transform:translateY(-9px) rotate(3deg)}}@keyframes splash{50%{transform:scale(1.025)}}@media(min-width:900px){body{display:flex;align-items:flex-start;justify-content:center;gap:105px;padding:35px 40px;background:radial-gradient(ellipse at 20% 20%,#deebfa,transparent 65%),#eef2f6}.desktop-note{display:block;position:sticky;top:70px;padding-top:28px;max-width:380px}.desktop-note h1{font-size:51px;line-height:1.35;letter-spacing:-3px;margin:110px 0 22px}.desktop-note p{font-size:16px;color:var(--muted)}.desktop-stamp{margin-top:45px;border-top:1px solid #ccdae8;padding-top:25px;font-size:14px}.desktop-note>small{display:block;font-size:12px;color:var(--muted);margin-top:120px}.phone-shell{width:430px;margin:0;border-radius:35px;box-shadow:0 20px 90px #1c416014;min-height:calc(100dvh - 70px);border:6px solid white}.nav{width:418px;bottom:35px;border-radius:0 0 28px 28px}#app{min-height:calc(100dvh - 82px)}#toast{left:auto;right:50px;transform:translateY(15px)}#toast.show{transform:translateY(0)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-width:360px){#app{padding-left:16px;padding-right:16px}.nav{margin-left:-16px}.amount{font-size:50px}.mascot{width:120px}.hero{padding:24px 20px}.carousel{margin-left:-16px;margin-right:-16px}}
.week-summary{background:#e8effa;border-radius:20px;padding:18px}.week-summary>div:first-child{display:flex;justify-content:space-between;font-size:14px;margin-bottom:13px}.week-summary span{color:var(--blue);font-weight:800}.week-summary .track{background:#ccdcf3}.week-summary .fill{background:var(--blue)}.week-summary p{font-size:12px;color:var(--muted);margin-top:10px}.detail-total{font-size:45px;font-weight:800;letter-spacing:-2px;margin:12px 0}.detail-total small{font-size:16px;letter-spacing:0;margin-left:8px;font-weight:500}.calendar-head button:disabled{opacity:.3;cursor:default}.hero-sub{max-width:235px;position:relative;z-index:2}.amount{position:relative;z-index:2}.mascot{right:-5px;top:86px;width:130px;height:130px}.picker-footer{margin-bottom:15px}body:has(dialog[open]){overflow:hidden}.greeting h2{font-size:24px;margin-top:5px}.greeting .eyebrow{font-size:10px;letter-spacing:1px}.date-pill{white-space:nowrap}
.brand{font-size:23px;letter-spacing:-.8px}.brand span{font-size:9px;max-width:55px;letter-spacing:1.7px}.inline-water{display:flex;gap:10px;margin-bottom:12px}.volume-field{position:relative;flex:1;min-width:0}.volume-field input{height:62px;background:white;font-size:23px;font-weight:700;border:1.5px solid #cedbf0;padding:14px 44px 14px 16px;border-radius:17px}.volume-field input::placeholder{font-size:19px;font-weight:400;color:#95a3b4}.volume-field>span{position:absolute;right:15px;top:21px;font-size:14px;color:var(--muted)}.inline-water>button{padding:0 22px;border-radius:17px;background:var(--blue);color:white;font-size:16px;font-weight:700;white-space:nowrap}.quick{flex-direction:row;justify-content:center;padding:13px 6px;gap:4px;border-radius:13px;box-shadow:none}.quick strong{font-size:18px;letter-spacing:0}.quick:nth-child(2){background:white;border-color:#e6ebf2}.quick small{font-size:12px}.inline-error{color:#b63636;font-size:13px;margin-bottom:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hero-sub{font-size:13px;max-width:215px}.carousel{padding-left:calc(50% - 52px + 22px);padding-right:calc(50% - 52px + 22px)}
.user-avatar{display:block;width:100%;height:100%;flex-shrink:0}.person .face{display:block;width:54px;height:54px;margin:0 auto}.avatar-mini,.rank-avatar{background:transparent;padding:0}.avatar-mini .user-avatar,.rank-avatar .user-avatar{border-radius:inherit}.member-option{display:flex;align-items:center;gap:7px;justify-content:center}.member-option .user-avatar{width:25px;height:25px}.cluster{display:flex;align-items:center;padding-right:2px}.cluster .user-avatar{width:34px;height:34px;border:2px solid #eaf0e0;border-radius:13px}.cluster .user-avatar+.user-avatar{margin-left:-8px}
/* Keep navigation stable while the page content scrolls independently. */
body:has(.nav){height:100dvh;overflow:hidden}.phone-shell:has(.nav){height:100dvh;min-height:0}#app:has(.nav){height:100%;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-top:95px;padding-top:0}.topbar{position:relative}#app:has(.nav)>.topbar{position:sticky;top:0;z-index:8;background:var(--paper);padding-top:18px;padding-bottom:13px;margin-bottom:12px;min-height:74px}#app:has(.nav)>.topbar:after{content:'';position:absolute;inset:0 -22px;z-index:-1;background:var(--paper);border-bottom:1px solid #e6ebf2}.phone-shell:has(.nav) .nav{position:absolute;bottom:0}.phone-shell:has(.nav) .nav{width:100%;left:0;margin-left:0}#app.rank-page{overflow:hidden;display:flex;flex-direction:column;padding-bottom:85px}#app.rank-page>.topbar{position:relative;flex-shrink:0;margin-bottom:0;min-height:68px}#app.rank-page>.topbar h2{font-size:23px}#app.rank-page>.topbar .eyebrow{display:none}.rank-fixed{flex-shrink:0;background:var(--paper);padding-bottom:10px}.rank-fixed .segmented{margin:4px 0 12px}.rank-summary{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:13px;color:var(--muted)}.rank-summary strong{color:var(--blue);font-size:14px}.rank-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;margin:0 -10px;padding:0 10px 20px;scrollbar-width:thin}.rank-scroll .section-head{margin:12px 0 6px}.rank-scroll .section-head h3{font-size:15px}.rank-scroll .section-head .muted{font-size:12px}.rank-page .preview-label{margin-top:18px}.rank-period{font-size:12px;color:var(--muted);margin-top:7px}.rank-row{min-height:76px}
@media(min-width:900px){body:has(.nav){height:100dvh}.phone-shell:has(.nav){height:calc(100dvh - 70px)}#app:has(.nav){min-height:0}.phone-shell:has(.nav) .nav{bottom:0;width:100%;border-radius:0 0 28px 28px}}
@media(max-width:360px){#app:has(.nav)>.topbar:after{inset:0 -16px}}
@media(max-height:650px){#app:has(.nav)>.topbar{min-height:60px;padding-top:10px;padding-bottom:9px}#app.rank-page>.topbar{min-height:55px}.rank-fixed .segmented{margin-bottom:8px}.rank-period{display:none}.rank-fixed{padding-bottom:8px}}
body.saving{cursor:progress}body.saving .inline-water>button{opacity:.65}body.saving .primary{opacity:.65}
/* V2: personal cup, explicit save feedback, and keyboard-sized working area. */
.my-cup{display:flex;align-items:stretch;margin-top:12px;border:1px solid #cbdcf5;border-radius:16px;background:#e8f0fd;overflow:hidden}.cup-add{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;background:none;padding:14px 16px;min-width:0}.cup-add>span{font-size:14px;color:#476386}.cup-add strong{font-size:19px;color:var(--blue);white-space:nowrap}.cup-add small{font-size:12px;font-weight:500}.cup-edit{background:none;border-left:1px solid #cbdcf5;padding:12px 15px;font-size:14px;color:var(--blue)}.request-feedback{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13px;line-height:1.6;min-height:0;margin:0;color:var(--muted)}.request-feedback:not(.idle){padding:8px 0 12px}.request-feedback.success{color:#287346}.request-feedback.error{color:#a13d27}.request-feedback button{background:#fff0e8;color:#9a3824;padding:8px 12px;border-radius:10px;font-weight:600}.save-spinner{width:14px;height:14px;border:2px solid #c5d7f0;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}.inline-water>button{min-width:100px}.inline-error:empty{display:none}dialog .request-feedback:not(.idle){padding-top:14px}.keyboard-open .nav{display:none}.keyboard-open #app:has(.nav){padding-bottom:24px}.keyboard-open #toast{bottom:calc(var(--keyboard-inset,0px) + 12px)}.keyboard-open .phone-shell:has(.nav){position:fixed;top:var(--visible-top,0px);left:0;right:0;margin:auto;height:var(--visible-height,100dvh);width:100%;max-width:460px}.keyboard-open #app>.topbar{min-height:54px;padding-top:8px;padding-bottom:8px}.keyboard-open dialog{max-height:calc(var(--visible-height,100dvh) - 24px);top:calc(var(--visible-top,0px) + 12px);bottom:auto;margin:0 auto;padding:20px}input{scroll-margin-block:85px}input[type=number]{appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:360px){.inline-water>button{min-width:86px;padding:0 14px}.cup-add{padding:13px 12px}.cup-edit{padding:10px 12px}}
/* V3: personal cup on the left, direct entry on the right. */
.drinking-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px;align-items:stretch}.personal-cup{background:none;display:flex;flex-direction:column;overflow:hidden}.cup-art{display:block;aspect-ratio:1;width:100%;background-image:url('assets/cups-atlas-v2.png');background-size:400% 300%;background-position:var(--cup-x) var(--cup-y);background-repeat:no-repeat}.cup-display{background:none;padding:4px 8px 2px;display:flex;flex-direction:column;align-items:center;flex:1;min-height:0}.cup-display .cup-art{width:76px;max-width:100%;height:76px}.cup-display>span:last-child{font-size:12px;color:#536f95;line-height:1.4}.cup-display i{font-style:normal;margin-left:2px}.cup-dose{background:none;border:0;padding:9px 3px;color:var(--blue);font-size:19px;font-weight:800;white-space:nowrap}.cup-dose small{font-size:12px;font-weight:500}.manual-controls{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:12px}.manual-controls .inline-water{gap:7px;margin:0}.manual-controls .volume-field input{height:61px;padding:12px 30px 12px 10px;font-size:21px;border-radius:15px}.manual-controls .volume-field input::placeholder{font-size:16px}.manual-controls .volume-field>span{right:9px;top:21px;font-size:12px}.manual-controls .inline-water>button{min-width:0;width:59px;flex:0 0 59px;padding:0;font-size:15px;border-radius:15px}.manual-controls .quick-grid{grid-template-columns:1fr 1fr;gap:8px}.manual-controls .quick{padding:14px 3px}.manual-controls .quick strong{font-size:19px}.rank-avatar:has(.rank-cup){width:46px;height:46px;border-radius:15px;background:#edf2fa}.rank-cup{width:46px;height:46px}.cup-dialog{padding:20px;max-width:420px}.cup-dialog .modal-head{margin-bottom:10px}.cup-menu-preview{display:flex;align-items:center;justify-content:center;gap:15px;background:#edf3fd;border-radius:20px;margin-bottom:16px;min-height:100px}.cup-menu-preview .cup-art{width:94px;height:94px}.cup-menu-preview strong{font-size:20px}.cup-menu-preview p{font-size:12px;color:var(--muted);margin-top:7px}.cup-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.cup-choice{background:#f5f7fb;border:2px solid transparent;border-radius:16px;padding:3px 5px 9px;display:flex;flex-direction:column;align-items:center;min-width:0;gap:1px}.cup-choice .cup-art{width:72px;height:72px;max-width:100%}.cup-choice>span:last-child{font-size:12px}.cup-choice.selected{border-color:var(--blue);background:#e6efff;color:var(--blue)}.cup-choice:focus-visible{outline-offset:1px}.cup-menu-bottom{position:sticky;bottom:-20px;background:white;padding:8px 0 16px;z-index:2;border-top:1px solid #e7edf5;margin-top:14px}.cup-menu-bottom label{margin:5px 0 7px;display:flex;justify-content:space-between}.cup-menu-bottom label>span{color:var(--muted)}.cup-menu-bottom input{padding:10px 14px;font-size:19px}.cup-menu-bottom .field-hint{margin:7px 0 10px;font-size:11px}.cup-menu-bottom .primary{padding:12px}.cup-menu-bottom .form-error:empty{display:none}.cup-dialog form{margin:0}.keyboard-open .cup-dialog .cup-menu-bottom{position:static}.keyboard-open .cup-gallery,.keyboard-open .cup-menu-preview{display:none}
@media(max-width:360px){.drinking-controls{gap:9px}.manual-controls .inline-water>button{width:50px;flex-basis:50px}.manual-controls .volume-field input{font-size:19px;padding-left:8px}.manual-controls .volume-field input::placeholder{font-size:14px}.cup-dose{font-size:17px}.cup-display{padding-left:4px;padding-right:4px}.cup-display .cup-art{width:68px;height:68px}}

.my-cup-setting{display:flex;align-items:center;width:100%;gap:12px;padding:8px 12px;margin:0 0 18px;background:white;border:1px solid #e3eaf4;border-radius:20px;text-align:left}.my-cup-setting>.cup-art{width:64px;height:64px;flex-shrink:0}.my-cup-setting strong,.my-cup-setting small{display:block}.my-cup-setting strong{font-size:16px}.my-cup-setting small{font-size:12px;color:var(--muted);margin-top:6px}.cup-setting-link{margin-left:auto;color:var(--blue);font-size:14px;white-space:nowrap}

.cup-art.cup-single{background-size:contain;background-position:center}.hero .mascot{top:64px;width:120px;height:120px}

/* One outlined tap target for the cup and its capacity. */
.personal-cup{border:1.5px solid #cbdaf2;border-radius:18px;padding:4px 0;background:transparent;cursor:pointer;transition:border-color .15s,background-color .15s,transform .15s;align-items:stretch}.personal-cup:hover{border-color:var(--blue)}.personal-cup:active{background:#e9f0ff;transform:scale(.97)}.personal-cup:focus-visible{outline:3px solid #9fbdff;outline-offset:3px}.personal-cup .cup-display{justify-content:center}.personal-cup .cup-dose{display:block;padding:7px 3px}

.drinking-character{position:absolute;right:10px;top:58px;width:116px;height:118px;object-fit:contain;pointer-events:none;animation:none;filter:none;transform:none}.hero .hero-sub{max-width:calc(100% - 110px)}@media(max-width:360px){.drinking-character{right:6px;top:67px;width:88px;height:90px}.hero .hero-sub{max-width:calc(100% - 76px)}}
/* V6: prioritize cup artwork and give the submit action more room. */
.personal-cup{padding:2px 0}.personal-cup .cup-display{padding:0 3px;flex:1}.personal-cup .cup-display .cup-art{width:102px;height:102px;max-width:100%;background-size:contain}.personal-cup .cup-dose{font-size:15px;line-height:20px;padding:2px 3px 5px}.personal-cup .cup-dose small{font-size:11px}.manual-controls .inline-water>button{width:72px;flex-basis:72px}.manual-controls .volume-field{min-width:0}.manual-controls .volume-field input{width:100%;min-width:0}@media(max-width:360px){.personal-cup .cup-display .cup-art{width:88px;height:88px}.manual-controls .inline-water>button{width:62px;flex-basis:62px}.manual-controls .volume-field input::placeholder{font-size:13px}}

/* V7: larger static character, moved up and left. */
.drinking-character{right:6px;top:34px;width:132px;height:134px}@media(max-width:360px){.drinking-character{right:10px;top:53px;width:100px;height:102px}}

.hero .amount-long{font-size:44px;line-height:1.2;min-height:77px;display:flex;align-items:baseline;padding-top:12px}.hero .amount-long small{margin-left:5px}@media(max-width:360px){.hero .amount-long{font-size:36px;min-height:65px;padding-top:10px}}

.announcement-dialog{max-width:390px}.announcement-art{display:flex;justify-content:center;align-items:center;gap:7px;padding:10px 0 16px}.announcement-art .cup-art{width:80px;height:90px}.announcement-art .cup-art:nth-child(2){width:90px;height:110px}.announcement-copy{font-size:14px;line-height:1.85;color:#53657b}.announcement-copy p{margin-bottom:14px}.announcement-copy strong{color:var(--ink)}.announcement-error{font-size:12px;color:#a13d27;line-height:1.6;margin-bottom:10px}.announcement-error:empty{display:none}.settings{flex-wrap:wrap;gap:8px 16px}

.cup-nameplate{position:relative;max-width:calc(100% - 10px);align-self:center;margin:-10px 5px 1px;padding:3px 8px;border-radius:8px;background:rgba(255,255,255,.78);border:1px solid rgba(204,218,239,.65);color:#3e5677;font-size:12px;font-weight:800;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;backdrop-filter:blur(6px)}.personal-cup .cup-dose{padding-top:3px}.rank-info{min-width:0}.rank-name-line{display:flex;align-items:center;gap:7px;min-width:0}.rank-name-line strong{flex-shrink:0}.rank-cup-name{font-size:10px;color:#63728a;background:#eaf0f6;border-radius:5px;padding:3px 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.rank-score,.rank-avatar,.rank-number{flex-shrink:0}.cup-menu-bottom #cup-name{font-size:16px;padding:9px 12px}

/* Local upgrade: weekly statistics inside the shared week/month records card. */
.weekly-report{padding:0;overflow:hidden}
.week-navigation{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:8px}
.week-navigation>strong{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums;color:#536982;font-weight:600}
.week-navigation button{width:40px;height:40px;flex-shrink:0;background:transparent;color:var(--blue);font-size:26px}
.week-navigation button:disabled{color:#bcc7d6;cursor:default}
.weekly-metrics{display:grid;grid-template-columns:1fr 1fr 1.3fr;margin:12px 10px 20px 16px}
.weekly-metrics>div{min-width:0;text-align:left}
.weekly-metrics>div+div{border-left:1px solid #e8edf5;padding-left:12px}
.weekly-metrics span{display:block;font-size:12px;color:#65768b;margin-bottom:8px}
.weekly-metrics strong{display:block;font-size:27px;line-height:1.15;font-variant-numeric:tabular-nums;letter-spacing:-.8px}
.weekly-metrics small{font-size:11px;color:var(--muted);font-weight:500;margin-left:4px;letter-spacing:0}
.week-chart-caption{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#65768b;margin-bottom:20px}
.week-chart-caption small{font-size:11px;margin-left:3px;color:var(--muted)}
.week-goal-key{display:flex;align-items:center;gap:5px;font-size:11px;color:#7d8ca1}
.week-goal-key:before{content:"";width:15px;border-top:1px dashed #aebfd7}
.week-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;position:relative}
.week-goal{position:absolute;left:0;right:0;border-top:1px dashed #bdcce0;pointer-events:none}
.week-day{padding:0;min-width:0;display:flex;flex-direction:column;align-items:center;background:transparent;position:relative}
.week-plot{height:96px;width:100%;display:flex;align-items:flex-end;justify-content:center}
.week-bar{position:relative;display:block;width:24px;max-width:70%;border-radius:6px 6px 2px 2px;background:#b9d0f7;min-height:2px}
.week-volume{position:absolute;z-index:1;background:white;border-radius:3px;padding:0 2px;bottom:100%;left:50%;transform:translateX(-50%);font-size:12px;font-weight:600;line-height:20px;font-variant-numeric:tabular-nums;color:#526681;white-space:nowrap}
.week-day.qualified .week-bar{background:#bddd6e}
.week-day.today .week-bar{background:var(--blue)}
.week-day.today .week-day-label,.week-day.today .week-day-status{color:var(--blue);font-weight:700}
.week-day.future .week-bar,.week-day.before .week-bar,.week-day.missing .week-bar{background:#e1e7f0;width:12px}
.week-day.future,.week-day.before{opacity:.5;cursor:default}
.week-day-label{font-size:12px;line-height:20px;margin-top:8px}
.week-day-status{font-size:10px;line-height:16px;min-height:16px;color:var(--muted);white-space:nowrap}
.week-volume-total{display:flex;justify-content:space-between;align-items:center;gap:5px;flex-wrap:wrap;border-top:1px solid #edf1f6;margin-top:10px;padding-top:12px;font-size:12px;color:#65768b}
.week-volume-total strong{color:var(--blue);margin-left:4px;font-size:14px}
.week-volume-total small{font-size:11px}
@media(max-width:360px){.drinking-history{padding:16px 11px}.week-navigation button{width:28px}.weekly-metrics strong{font-size:23px}.week-volume{font-size:11px}}

.drinking-history{background:white;border:1px solid #e3eaf4;border-radius:22px;padding:16px 15px;margin-top:18px}
.history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.history-heading h3{font-size:18px}
.history-switch{display:flex;gap:2px;background:#edf2f9;padding:3px;border-radius:12px}
.history-switch button{width:48px;min-height:34px;border-radius:9px;font-size:13px;background:transparent;color:#718092;font-weight:600}
.history-switch button.active{background:var(--blue);color:white;box-shadow:0 2px 5px #1762ef20}
.drinking-history .history-calendar{border:0;background:transparent;border-radius:0;padding:0;margin:12px 0 0;box-shadow:none}
.history-calendar .calendar-head{margin-bottom:12px}
.history-calendar .calendar-head button{width:40px;height:40px;background:transparent;color:var(--blue);font-size:26px}
.history-calendar .calendar-head strong{font-size:13px;color:#536982}
.calendar-hint{font-size:11px;line-height:1.65;color:var(--muted);margin-top:15px}
.history-calendar .legend{margin-top:13px}
@media(max-width:360px){.drinking-history{padding:16px 11px}.week-navigation>strong{font-size:12px}.history-switch button{width:43px}}

/* Daily note: a quiet paper entry and a downloadable stationery card. */
.daily-note-entry{display:flex;align-items:center;width:100%;min-height:54px;gap:11px;background:#fff;border:1px solid #e6ebf2;border-radius:16px;margin-top:14px;padding:12px 16px;text-align:left}
.note-entry-icon{display:grid;place-items:center;color:#8795a6;width:24px;height:28px;flex-shrink:0}
.note-entry-icon svg{display:block;width:21px;height:21px}
.daily-note-entry>span:nth-child(2){min-width:0}
.daily-note-entry strong{display:block;font-size:14px;font-weight:600;color:#536277}
.note-entry-arrow{margin-left:auto;color:#98a4b3;font-size:22px;line-height:1}
.daily-note-entry:disabled{opacity:.65;cursor:progress}
/* Use the card's own palette for the whole modal, including its action. */
.note-dialog{--note-ink:#89634c;--note-paper:#fffaf0;--note-shell:#f1e8dc;--note-muted:#a18a72;width:calc(100% - 28px);max-width:382px;padding:14px 10px 12px;max-height:calc(var(--visible-height,100dvh) - 24px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:var(--note-shell);border:1px solid #ffffff70;border-radius:26px;box-shadow:0 24px 80px #30251935}
.note-dialog::backdrop{background:#26322e66;backdrop-filter:blur(6px)}
.note-dialog .modal-head{margin:0 8px 8px}
.note-dialog .modal-head h3{font-size:15px;font-weight:600;letter-spacing:1px;color:var(--note-ink)}
.note-dialog .close{background:#ffffff66;color:var(--note-ink);width:36px;height:36px;border:1px solid #ffffff70}
.note-paper-preview{display:flex;justify-content:center;min-width:0;max-width:100%;filter:drop-shadow(0 4px 5px #6d513811)}
.daily-note-image{display:block;width:100%;height:auto;max-height:calc(100dvh - 237px);object-fit:contain;user-select:auto;-webkit-touch-callout:default}
.note-dialog .note-download{width:auto;min-width:0;display:flex;align-items:center;justify-content:center;gap:9px;text-align:center;background:var(--note-ink);color:var(--note-paper);margin:12px 8px 0;padding:12px;border:1px solid #ffffff25;border-radius:15px;font-size:15px;font-weight:650;box-shadow:0 3px 0 #4836260a;transition:filter .15s,transform .15s}
.note-dialog .note-download:hover{filter:brightness(1.07)}
.note-dialog .note-download:active{transform:scale(.98)}
.note-dialog :is(button,a):focus-visible{outline-color:var(--note-ink);outline-width:2px}
.note-save-hint{text-align:center;color:var(--note-ink);opacity:.7;font-size:11px;line-height:1.6;margin-top:8px}
.note-undo{display:block;margin:7px auto 0;color:var(--note-ink);font-size:12px;min-height:32px}
.note-dialog .request-feedback{display:none}
@media(max-height:650px){.note-dialog{padding:10px}.note-dialog .modal-head{margin-bottom:6px}.daily-note-image{max-height:calc(100dvh - 222px)}.note-dialog .note-download{padding:11px;margin-top:9px}.note-undo{margin-top:3px}}

/* Give the unchanged card more room; short viewports can still scroll vertically. */
.note-dialog .note-composition{width:100%;min-width:0;max-width:clamp(140px,calc((var(--visible-height,100dvh) - 190px)*720/1040),100%)}
.note-dialog .daily-note-image{max-height:none}
@media(max-height:650px){.note-dialog .note-composition{max-width:clamp(140px,calc((var(--visible-height,100dvh) - 170px)*720/1040),100%)}}

/* One compact team switch in profile; direct team choices before sign-in. */
.rank-team-label{display:block;font-size:13px;font-weight:500;color:#718092;margin-top:5px;letter-spacing:0}
.my-team-inline{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:4px 4px 18px;margin-top:-5px;font-size:15px;font-weight:600;color:#607287}
.my-team-inline>strong{font-size:16px;color:#42658d;font-weight:600}
.team-select-wrap{position:relative;max-width:70%;color:#42658d;z-index:12}
.team-select-trigger{display:flex;align-items:center;gap:16px;font-size:16px;font-weight:600;color:inherit;background:#edf2f9;border:1px solid #dce5f1;border-radius:13px;min-height:48px;max-width:100%;padding:11px 16px;cursor:pointer}
.team-select-trigger svg{width:16px;height:16px;fill:none;stroke:#7189a6;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s}
.team-select-trigger[aria-expanded="true"]{background:#e6eef9;border-color:#bacde8}
.team-select-trigger[aria-expanded="true"] svg{transform:rotate(180deg)}
.team-select-trigger:focus-visible{outline:2px solid #759bd1;outline-offset:3px}
.team-select-menu{position:absolute;right:0;top:calc(100% + 8px);width:184px;max-width:calc(100vw - 44px);padding:6px;background:#fff;border:1px solid #e3eaf3;border-radius:16px;box-shadow:0 8px 28px #233e641a;max-height:240px;overflow-y:auto;overscroll-behavior:contain}
.team-select-menu[hidden]{display:none}
.team-select-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 12px;text-align:left;background:transparent;border-radius:10px;font-size:14px;font-weight:550;color:#52677e}
.team-select-menu button[aria-checked="true"]{color:#2e65af;background:#edf3fc;font-weight:650}
.team-select-menu button:hover,.team-select-menu button:focus-visible{background:#e8f0fb;outline:2px solid #b5cdee;outline-offset:-2px}
.team-select-menu button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;visibility:hidden;flex-shrink:0}
.team-select-menu button[aria-checked="true"] svg{visibility:visible}
.team-select-trigger:active,.team-select-menu button:active{transform:none}
.picker .carousel{margin-top:18px}
.picker-team-tabs{display:flex;gap:6px;padding:5px;background:#e9eef5;border-radius:17px;margin:0 0 24px;overflow-x:auto;scrollbar-width:none}
.picker-team-tabs::-webkit-scrollbar{display:none}
.picker-team-tabs button{flex:1;min-width:115px;padding:10px 12px;border-radius:13px;background:transparent;text-align:left;transition:background .15s,color .15s;color:#78889b}
.picker-team-tabs button.active{background:#fff;color:#245eb2;box-shadow:0 2px 7px #1b365612}
.picker-team-tabs strong{display:block;font-size:15px;line-height:1.4;font-weight:700}
.picker-team-tabs span{display:block;font-size:11px;line-height:1.5;margin-top:3px;color:#8898ab}
.picker-team-tabs button.active span{color:#6a89b2}
.picker-actions{display:flex;justify-content:center;gap:24px;margin-top:20px}
.member-team-label{font-size:13px;color:#718092;margin-bottom:14px}.member-tabs{margin-bottom:16px}.member-search-results{max-height:42dvh;overflow-y:auto;overscroll-behavior:contain;margin-top:12px}.member-search-row{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:13px 4px;background:transparent;border-bottom:1px solid #edf0f5}.member-search-row .user-avatar{width:38px;height:38px;flex-shrink:0}.member-search-row>span:nth-child(2){min-width:0;flex:1}.member-search-row strong{font-size:15px;overflow-wrap:anywhere}.member-search-row small{display:block;font-size:11px;line-height:1.5;margin-top:4px;color:#718092}.member-search-row>span:last-child{font-size:12px;color:#718092;flex-shrink:0}.member-search-row:disabled{opacity:.5;cursor:default}.member-confirm{text-align:center;padding:16px 0 22px}.member-confirm .user-avatar{width:64px;height:64px;margin-bottom:12px}.member-confirm h2{font-size:24px;overflow-wrap:anywhere}.member-confirm p{font-size:15px;margin:10px 0}.member-confirm small{font-size:12px;color:#718092}.team-back{display:block;margin:16px auto 0}.duplicate-hint{font-size:13px;color:#97612d;margin-top:14px}.same-name-confirm{display:flex;align-items:flex-start;gap:8px;font-size:12px!important;line-height:1.6}.same-name-confirm input{width:16px!important;margin:2px 0 0!important;flex-shrink:0}.person .name{font-size:19px;max-width:110px;overflow-wrap:anywhere}.member-option{overflow-wrap:anywhere;min-width:0}.rank-name-line strong{overflow-wrap:anywhere}.profile h2{overflow-wrap:anywhere}.community p{line-height:1.5}
.greeting>div{min-width:0}.greeting h2{overflow-wrap:anywhere}.greeting .date-pill{flex-shrink:0;margin-left:10px}.profile{min-width:0}.profile>div{min-width:0}.picker #enter{overflow-wrap:anywhere;line-height:1.5}

.announcement-goals{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 20px}.announcement-goals>div{padding:16px 12px;background:#edf3fc;border-radius:16px}.announcement-goals span{display:block;color:#61758e;font-size:13px;margin-bottom:6px}.announcement-goals strong{display:block;font-size:27px;line-height:1.3;font-variant-numeric:tabular-nums}.announcement-goals small{font-size:13px;font-weight:500}.announcement-source{display:inline-block;font-size:12px;color:#61758e;margin:0 0 20px;text-underline-offset:3px}

.detail-actions{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:10px;margin-top:18px}.detail-actions button{min-width:0;min-height:50px;padding:14px 8px;border-radius:15px;font-size:15px;font-weight:700}.detail-note{background:#eaf1fd;color:var(--blue);border:1px solid #d4e2fa}.detail-note:disabled{background:#f0f3f7;color:#929dab;border-color:#e6eaf0;cursor:default}.detail-note[aria-busy="true"]{opacity:.6}
/* Personal timetable pilot: scoped selectors, fixed controls and one scroll area. */
.course-entry{width:100%;display:flex;align-items:center;gap:14px;text-align:left;padding:17px 18px;margin:14px 0;background:#fff;border:1px solid #e1e8f1;border-radius:20px;color:#213851}.course-entry-icon{font-size:29px;color:#6b89b2}.course-entry strong{display:block;font-size:16px}.course-entry small{display:block;margin-top:5px;font-size:12px;color:#8290a1}.course-arrow{margin-left:auto;font-size:27px;color:#91a0b2}
#modal.timetable-dialog{width:min(480px,calc(100vw - 24px));height:min(780px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:22px 20px;box-sizing:border-box;overflow:hidden;background:#f6f8fc}#modal.timetable-dialog[open]{display:flex;flex-direction:column;gap:0}.timetable-dialog .modal-head{flex-shrink:0;margin-bottom:8px}.course-fixed{flex-shrink:0}.course-term{font-size:12px;color:#8a96a6;margin:4px 0 12px}.course-next{padding:12px 14px;background:#edf2f9;border-radius:14px;margin-bottom:14px}.course-next strong{display:block;font-size:14px}.course-next small{display:block;font-size:11px;color:#7a8ca1;margin-top:6px;line-height:1.5}.course-tabs{display:flex;gap:4px;background:#e8edf5;padding:4px;border-radius:13px}.course-tabs button{flex:1;border:0;background:transparent;border-radius:10px;padding:10px;color:#79879a;font-size:14px}.course-tabs button[aria-pressed=true]{background:white;color:#2765bc;font-weight:700;box-shadow:0 1px 4px #23415c0a}.course-week-nav{display:flex;align-items:center;gap:9px;padding:15px 0}.course-week-nav>div{flex:1;text-align:center}.course-week-nav strong{font-size:15px}.course-week-nav small{display:block;font-size:11px;color:#8b98a8;margin-top:4px}.course-week-nav button{background:white;border:1px solid #e2e8f1;border-radius:11px;min-width:34px;min-height:36px;font-size:24px;color:#617996}.course-week-nav button:disabled{opacity:.35}.course-week-nav #course-current{font-size:12px;padding:0 9px}.course-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding-top:5px}.course-day{display:flex;gap:12px;padding:9px 0}.course-day-label{width:39px;flex-shrink:0;padding-top:9px}.course-day-label strong{font-size:12px}.course-day-label span{display:block;font-size:11px;color:#8c99a9;margin-top:4px}.course-day-label em{display:block;font-style:normal;font-size:10px;color:#3776cc;margin-top:4px}.course-lessons{flex:1;min-width:0}.course-lesson{display:block;text-align:left;width:100%;border:0;border-left:3px solid #99b6df;border-radius:13px;background:#eaf0fa;padding:12px 14px;margin-bottom:8px;color:#293c54}.course-lesson.online{background:#f0edf8;border-color:#b5a7cd}.course-lesson.fieldwork{background:#f7f0e7;border-color:#d6b693}.course-time{display:block;font-size:11px;color:#6b7f99;margin-bottom:6px}.course-lesson strong{font-size:15px;line-height:1.5;display:block}.course-lesson small{display:block;font-size:11px;line-height:1.6;color:#7b8a9c;margin-top:5px}.course-empty{font-size:12px;color:#a0aab6;padding:4px 13px}.course-foot{text-align:center;color:#9aa5b2;font-size:11px;padding:18px 0 8px}.course-list-item{display:block;text-align:left;width:100%;border:1px solid #e7ecf3;border-radius:15px;background:white;padding:17px;margin:10px 0;color:#293c54}.course-list-item strong{display:block;font-size:15px}.course-list-item strong span{float:right;color:#91a1b3}.course-list-item small{display:block;color:#8592a2;font-size:12px;margin-top:8px}.course-detail p{font-size:14px;line-height:1.8}.course-detail-note{color:#8491a2}.course-date-item{display:flex;justify-content:space-between;border-bottom:1px solid #e6ecf2;padding:9px 0}.course-date-item span{color:#7c8c9f}.course-back,.course-retry{border:0;background:#e6edf8;color:#3167a9;border-radius:12px;padding:12px 20px}.course-loading{color:#8795a7;font-size:14px}.course-loading button{display:block;margin-top:16px}
/* Full-page timetable: MEM period grid with Water Buddy typography and color. */
body.course-page-open{overflow:hidden;background:#f5f8fc;display:block}.course-page-open>.phone-shell,.course-page-open>.desktop-note{visibility:hidden}.course-page{position:fixed;inset:0;margin:auto;max-width:1080px;z-index:30;background:#f5f8fc;display:flex;flex-direction:column;padding:0 32px;box-sizing:border-box;color:#20354d}.course-page-header{display:flex;align-items:center;gap:20px;min-height:82px;flex-shrink:0}.course-page-header h1{font-size:23px;margin:0;flex:1;outline:none}.course-return{background:none;color:#4176b8;padding:10px 0;font-size:28px;display:flex;align-items:center;gap:8px}.course-return span{font-size:13px}.course-pilot{font-size:12px;color:#94a1b2}.course-page .course-fixed{padding-bottom:8px}.course-page .course-term{margin-top:0}.course-page .course-tabs{max-width:330px}.course-page .course-week-nav{max-width:430px}.course-page .course-scroll{padding-bottom:env(safe-area-inset-bottom);scrollbar-width:thin}.course-grid{display:grid;grid-template-columns:60px repeat(7,minmax(0,1fr));isolation:isolate}.cg-corner{font-size:11px;line-height:1.6;color:#94a0b1;text-align:center;padding:10px 0}.cg-heading{text-align:center;padding:10px 2px 18px;position:sticky;top:0;background:#f5f8fc;z-index:1}.cg-heading span{display:block;font-size:12px;color:#8392a5}.cg-heading strong{display:block;font-size:23px;font-weight:600;margin-top:8px}.cg-today{background:#eaf1fc66}.cg-heading.cg-today{background:#eaf1fc;color:#2e6cc6;border-radius:12px 12px 0 0}.cg-period{display:flex;flex-direction:column;justify-content:center;align-items:center;color:#8493a6;gap:12px}.cg-period strong{font-size:12px;font-weight:500}.cg-period small{font-size:11px;text-align:center;line-height:1.4}.cg-cell{min-width:0;min-height:155px;border-left:1px solid #dfe7f066;padding:7px 5px;display:flex;flex-direction:column;gap:7px}.cg-lesson{width:100%;border:0;border-radius:13px;min-height:140px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;text-align:left;padding:15px 10px;gap:12px;overflow-wrap:anywhere;background:#e6edf9;color:#48668f}.cg-lesson strong{font-size:15px;line-height:1.6;font-weight:650}.cg-lesson span{font-size:12px;line-height:1.6}.cg-lesson b{display:block;font-size:14px;font-weight:600}.cg-lesson small{font-size:10px}.cg-color-1{background:#f6eade;color:#927054}.cg-color-2{background:#e9e6f6;color:#736295}.cg-color-3{background:#e1eef0;color:#537d85}.cg-color-4{background:#f5e6ec;color:#97677e}.cg-color-5{background:#e8eddf;color:#71865b}.cg-color-6{background:#e3eafa;color:#5e76a0}.course-page .course-list-item{max-width:680px}.course-page .course-day{max-width:680px}.course-page>.course-loading{padding:28px}
@media(max-width:600px){.course-page{padding:0 12px}.course-page-header{min-height:70px;gap:16px}.course-page-header h1{font-size:19px}.course-pilot{display:none}.course-page .course-fixed{padding:0 6px 4px}.course-page .course-tabs{max-width:none}.course-page .course-week-nav{padding:12px 0}.course-grid{grid-template-columns:36px repeat(7,minmax(0,1fr))}.cg-heading{padding-bottom:12px}.cg-heading span{font-size:10px}.cg-heading strong{font-size:18px}.cg-cell{padding:5px 2px;min-height:154px}.cg-lesson{border-radius:8px;padding:10px 4px;min-height:140px;gap:9px}.cg-lesson strong{font-size:12px;line-height:1.55}.cg-lesson span{font-size:10px}.cg-lesson b{font-size:11px}.cg-period strong{font-size:10px}.cg-period small{font-size:9px}.cg-corner{font-size:9px}.course-page .course-term{font-size:11px}.course-page .course-scroll{margin:0 -3px}.course-page .course-day,.course-page .course-list-item{margin-left:6px;margin-right:6px;width:auto}}

.course-entry-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:13px;background:#edf3fb;color:#6084b3}.course-entry-icon svg{display:block;width:25px;height:25px}
