@charset "UTF-8";
.hero{position:relative}
:root{--ink:#243e35;--muted:#6e7c74;--green:#205d4b;--sage:#e8efe5;--bg:#f6f7f2;--line:#e3e8de;--amber:#a16825;--red:#ab4d3a;--radius:20px;font-family:"Segoe UI","Microsoft JhengHei","PingFang TC",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.65}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;transition:background .18s,transform .18s}button:disabled{cursor:not-allowed;opacity:.45}button:not(:disabled):active{transform:translateY(1px)}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #b3cd79;outline-offset:3px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sprite{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:#fff;border-right:1px solid var(--line);padding:38px 24px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;font-size:26px;font-weight:750;letter-spacing:2px;line-height:1.3}.brand-mark{background:var(--green);color:#ebf1d8;width:45px;height:49px;border-radius:15px;display:grid;place-items:center}.brand-mark svg{width:27px;height:27px}.brand small{display:block;font-size:8px;letter-spacing:1.5px;font-weight:500;margin-top:6px}.nav-label{font-size:11px;color:#9aa59e;margin:52px 14px 14px;letter-spacing:2px}.nav-button{border:0;border-radius:12px;background:none;color:#758379;display:flex;align-items:center;gap:14px;width:100%;padding:15px 17px;text-align:left;margin:6px 0}.nav-button.active{background:var(--sage);color:var(--green);font-weight:650}.nav-button:hover{background:#f0f4ec}.sidebar-note{margin-top:auto;border:1px solid var(--line);border-radius:16px;background:#fafbf7;padding:20px 16px;font-size:11px;color:var(--muted)}.sidebar-note strong{display:block;color:var(--green);font-size:14px}.sidebar-note p{font-size:13px;margin:8px 0 20px}.small-leaf{font-size:30px;color:#8fa578}.local-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#7b9867;margin-right:7px}main{margin-left:244px;max-width:1620px;padding:0 50px}.topbar{height:100px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}.topbar b{font-weight:500;color:var(--ink)}.top-slash{margin:0 12px;color:#bdc4ba}.profile-avatar{background:#e9eddf;border:4px solid white;border-radius:50%;height:39px;width:39px;display:grid;place-items:center;font-size:12px}.hero{min-height:300px;background:#e8efdf;border:1px solid #e0e8d8;border-radius:24px;display:flex;align-items:center;justify-content:space-between;padding:36px 44px;overflow:hidden}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;color:#7b927a;display:block}.hero h1{font-size:38px;line-height:1.45;letter-spacing:1px;margin:12px 0}.hero em{font-style:normal;color:#56815f}.hero p{font-size:14px;color:#6c7d67;margin:12px 0 22px}.primary,.secondary{border:0;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 20px;border-radius:10px;font-weight:600;min-height:46px;font-size:14px}.primary{color:#fff;background:var(--green)}.primary:hover:not(:disabled){background:#164b3b}.secondary{background:#fff;border:1px solid #dbe2d5;color:var(--ink)}.secondary:hover{background:#f0f4ed}.hero-art{position:relative;width:280px;height:245px;margin:0 15px}.orbit{position:absolute;border:1px solid #d1ddc7;border-radius:50%;width:260px;height:260px;top:-9px;left:8px}.orbit-two{width:207px;height:207px;top:17px;left:34px}.art-card{position:absolute;background:#fffef8;width:145px;height:190px;border-radius:18px;top:30px;left:55px;transform:rotate(-12deg);box-shadow:10px 18px 28px #375e3520;padding:22px}.art-cross{color:#668a66;background:#edf1e6;width:38px;height:38px;display:grid;place-items:center;font-size:26px;border-radius:10px}.art-lines{margin-top:18px}.art-lines i{display:block;height:5px;background:#e6eadf;border-radius:6px;margin:10px 0}.art-lines i:nth-child(2){width:67%}.art-pill{position:absolute;width:85px;height:35px;border-radius:40px;border:4px solid #fff;bottom:25px;right:-23px;background:linear-gradient(90deg,#94a978 50%,#d3dec1 50%);transform:rotate(-29deg);box-shadow:0 6px 12px #294e3820}.floating-leaf{position:absolute;font-size:96px;color:#85a576;right:5px;top:-18px;transform:rotate(-25deg)}.art-badge{position:absolute;bottom:-4px;left:55px;background:#fffefa;padding:9px 15px;border-radius:12px;color:var(--green);font-size:18px;box-shadow:0 4px 18px #45653110;transform:rotate(3deg);white-space:nowrap}.art-badge span{font-size:11px;margin-left:6px}.overview{display:grid;grid-template-columns:1fr 1fr 1.2fr;border:1px solid var(--line);background:#fff;border-radius:16px;padding:24px 27px;margin:22px 0 34px;gap:25px}.overview>div{display:flex;gap:14px;align-items:center;border-right:1px solid var(--line)}.overview>div:last-child{border:0}.stat-icon{background:#eff4ec;color:#5f8155;border-radius:12px;width:47px;height:47px;display:grid;place-items:center}.stat-icon.amber{background:#f9f2e7;color:#ab8a50}.overview strong{font-size:24px;font-weight:600;display:block;line-height:1.2}.overview small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.overview-note{font-size:13px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr);gap:32px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.section-head h2{margin:5px 0 4px;font-size:19px;font-weight:650}.text-button{border:0;background:none;color:var(--green);font-size:13px;display:inline-flex;gap:6px;align-items:center;justify-content:center;padding:8px}.text-button svg{width:17px}.muted{color:var(--muted);font-size:13px}.compact{margin:8px 0 18px;line-height:1.7}.time-label{font-size:12px;font-weight:600;color:#84917e;margin:24px 0 12px;display:flex;gap:10px;align-items:center}.time-label:after{content:"";height:1px;background:var(--line);flex:1}.med-card{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:10px;overflow:hidden}.med-top{display:flex;align-items:start;gap:12px;padding:18px 18px 12px}.pill-icon{background:#f1f3ed;color:#8d9b7a;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;flex-shrink:0}.med-info{flex:1;min-width:0}.med-info strong{font-size:15px;font-weight:650}.med-info small{display:block;font-size:10px;color:#8d958c;word-break:break-word}.med-dose{font-size:12px;font-weight:600;color:#4c6556;text-align:right;max-width:145px}.med-note{font-size:11px;color:#8c968b;margin-top:5px}.med-note.important{color:#a06420}.med-card details{font-size:12px;border-top:1px solid #f1f3ec}.med-card summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;padding:10px 18px;color:#7b8976}.med-card summary:after{content:'＋';font-size:14px}.med-card details[open] summary:after{content:'−'}.med-detail{padding:0 18px 15px;color:#586c5d}.med-detail p{margin:0 0 8px}.med-actions{display:flex;gap:15px;justify-content:flex-end}.danger-text{color:#a76558}.small-note{font-size:11px;line-height:1.8;color:#879080;margin:12px 0}.live-label{font-size:10px;color:#89977f;background:#ebf0e4;padding:4px 9px;border-radius:15px;white-space:nowrap}.alert-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;margin-top:13px;position:relative}.alert-card.avoid{border-color:#ead7c8;background:#fdf7f0}.alert-label{display:inline-flex;align-items:center;font-size:10px;padding:2px 8px;border-radius:5px;background:#f3eadb;color:#8e6b33;margin-bottom:7px;letter-spacing:.5px}.avoid .alert-label{background:#f1dfd1;color:#a45d3a}.info .alert-label{background:#ebf0e4;color:#708259}.alert-card h3{font-size:14px;margin:0 0 7px;line-height:1.6}.alert-card p{font-size:12px;color:#7b8072;margin:0 0 8px;line-height:1.9}.source-link{font-size:10px;color:#8a9481;text-decoration:underline;text-underline-offset:3px}.related{font-size:10px;color:#87927f;margin:10px 0}.food-promo{margin-top:20px;width:100%;border:1px solid #dce7d4;background:#eaf0e3;padding:20px;border-radius:14px;display:flex;align-items:center;justify-content:space-between;color:var(--green);text-align:left}.food-promo span>svg{display:block;margin-bottom:10px}.food-promo b{display:block;font-size:14px}.food-promo small{display:block;font-size:11px;color:#809072;margin-top:5px}footer{padding:40px 0 24px;color:#9aa293;font-size:10px;letter-spacing:.5px}footer span{float:right}.page-heading{padding:20px 0 25px}.page-heading h1{font-size:30px;font-weight:650;margin:10px 0}.page-heading p{color:var(--muted);font-size:14px}.food-grid,.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:25px;margin-bottom:20px}.panel h2{font-size:18px;margin:0 0 14px}.panel h3{font-size:15px}.panel p{font-size:13px;color:var(--muted)}.badge{font-size:10px;background:#f5f0e4;color:#9a7c42;padding:4px 8px;border-radius:6px}.photo-placeholder{text-align:center;border:1px dashed #ccd9c3;border-radius:14px;background:#f8faf5;padding:28px 12px;margin:18px 0}.camera-circle{margin:auto;display:grid;place-items:center;background:#e9f0e0;color:#739065;width:54px;height:54px;border-radius:18px}.camera-circle svg{width:28px;height:28px}.photo-placeholder h3{margin:12px 0 3px}.photo-placeholder p{font-size:12px}.button-row{display:flex;gap:10px;margin:12px 0}.button-row>*{flex:1}.full{width:100%;margin-top:10px}#photo-preview{width:100%;max-height:310px;object-fit:contain;border-radius:12px;background:#f2f5ee;margin:15px 0}input:not([type=checkbox]),select,textarea{border:1px solid #dae1d4;background:#fcfdf9;border-radius:9px;color:var(--ink);padding:11px 12px;width:100%;min-height:44px}label{display:block;font-size:12px;color:#70806d;margin:14px 0 6px}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#a0a99a}input[type=checkbox]{accent-color:var(--green);width:17px;height:17px;flex-shrink:0}.check-row{display:flex;align-items:flex-start;gap:9px;line-height:1.7;font-size:12px}.category-options{display:flex;flex-wrap:wrap;gap:8px}.category-options button{border:1px solid #e3e9dc;background:#f8faf4;color:#6b8062;font-size:12px;border-radius:9px;padding:7px 10px}.category-options button:hover{background:#e6eddc}.candidate{border:1px solid var(--line);border-radius:12px;padding:12px;margin:12px 0;background:#fcfdf9}.candidate-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.candidate-head input{border:0!important;background:transparent!important;padding:4px!important;font-size:14px;font-weight:600}.candidate select{font-size:12px;padding:8px;min-height:38px}.candidate .small-note{margin:6px 0}.remove-item{border:0;background:none;font-size:20px;color:#a5ac9b;min-width:32px}.empty{padding:24px 15px;color:#9aa58f;font-size:12px;text-align:center;border:1px dashed var(--line);border-radius:12px}.context-details{margin-top:16px;border-bottom:1px solid var(--line);padding-bottom:12px}.context-details summary{font-size:12px;color:#809274;cursor:pointer}.confirm-row{padding:14px 0}.message{font-size:12px!important;color:#a66b42!important}.result-heading{font-size:18px;margin:20px 0 5px}.source-panel{grid-column:1/-1}.sources-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.sources-grid a{font-size:12px}.panel hr{border:0;border-top:1px solid var(--line);margin:25px 0}.panel #save-settings{margin-top:20px}.panel textarea{background:#fafcf7}.mobile-only{display:none}dialog{border:1px solid var(--line);border-radius:22px;box-shadow:0 20px 80px #243e3530;padding:30px;width:min(560px,calc(100% - 30px));max-height:90dvh;overflow:auto;color:var(--ink);background:#fff}dialog::backdrop{background:#23372f55;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:start}.dialog-head h2{margin:6px 0}.close-button{background:#f1f4eb;border:0;border-radius:50%;width:32px;height:32px;font-size:22px;color:#89947f}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-30%);background:#254b3d;color:#fff;padding:13px 22px;border-radius:12px;box-shadow:0 5px 24px #254b3d30;font-size:13px;z-index:20;max-width:90%;display:flex;align-items:center;gap:15px}.toast button{background:#ffffff22;border:0;border-radius:6px;padding:6px 12px;color:#fff}.panel ol{font-size:12px;color:#7b8974;padding-left:20px}.missing-badge{display:inline-block;color:#ac793e;background:#faf2e4;font-size:10px;padding:2px 6px;border-radius:5px;margin-top:5px}.settings-grid .panel{margin-bottom:0}
@media(min-width:1500px){main{padding:0 70px}.hero{padding:40px 55px}.hero-art{margin-right:70px}.hero h1{font-size:43px}}
@media(max-width:1150px){.sidebar{width:205px;padding:30px 17px}main{margin-left:205px;padding:0 28px}.brand{font-size:23px}.brand small{font-size:6px}.hero{padding:30px}.hero-art{margin:0;width:230px;transform:scale(.88);transform-origin:center}.hero h1{font-size:32px}.dashboard-grid{gap:20px;grid-template-columns:1.15fr 1fr}.overview{padding:20px;gap:16px}.overview-note{font-size:11px}.med-top{padding:15px 12px}.pill-icon{width:30px;height:30px}.med-dose{max-width:110px;font-size:11px}}
@media(max-width:850px){.sidebar{width:170px;padding:26px 12px}.brand{font-size:21px;gap:8px}.brand-mark{width:35px;height:40px}.brand small{font-size:5px}.nav-button{padding:13px 10px;font-size:13px;gap:10px}.sidebar-note{padding:14px 12px}main{margin-left:170px;padding:0 22px}.hero-art{display:none}.hero{padding:28px}.hero h1{font-size:34px}.dashboard-grid,.food-grid,.settings-grid{grid-template-columns:1fr}.source-panel{grid-column:auto}.overview-note{display:none!important}.overview{grid-template-columns:1fr 1fr}.overview>div:nth-child(2){border:0}.sources-grid{grid-template-columns:1fr 1fr}.attention-area{margin-top:10px}.form-two{grid-template-columns:1fr 1fr}.topbar{height:80px}}
@media(max-width:600px){body{font-size:14px}.sidebar{inset:auto 0 0;width:100%;height:calc(72px + env(safe-area-inset-bottom));padding:6px 10px env(safe-area-inset-bottom);background:#fffffff5;backdrop-filter:blur(12px);border:0;border-top:1px solid var(--line)}.sidebar .brand,.nav-label,.sidebar-note{display:none}.sidebar nav{display:flex;justify-content:space-around;gap:6px}.nav-button{margin:0;display:flex;flex-direction:column;gap:3px;padding:7px 8px;font-size:10px;line-height:1.5;width:100px;border-radius:10px}.nav-button svg{width:21px;height:21px}.nav-button.active{background:#f0f4e9}main{margin:0;padding:0 18px 80px}.topbar{height:68px;font-size:10px}.top-slash{margin:0 8px}.profile-avatar{width:32px;height:32px}.hero{padding:27px;border-radius:20px;min-height:285px}.hero h1{font-size:31px}.eyebrow{font-size:8px;letter-spacing:1.7px}.hero p{font-size:12px}.hero .primary{font-size:12px;min-height:43px;padding:10px 17px}.hero-art{display:block;position:absolute;width:135px;height:150px;right:20px;transform:scale(.58);transform-origin:top right;top:125px;opacity:.28;pointer-events:none}.hero>div:first-child{z-index:1}.overview{padding:17px 16px;gap:12px;margin:16px 0 28px;border-radius:13px}.overview strong{font-size:22px}.overview small{font-size:10px}.stat-icon{width:37px;height:37px}.stat-icon svg{width:19px;height:19px}.overview>div{gap:10px}.section-head h2{font-size:18px}.compact{font-size:11px}.med-top{padding:15px 14px}.med-info strong{font-size:14px}.med-dose{font-size:11px;max-width:125px}.med-info small{font-size:9px}.med-card summary{font-size:11px}.small-note{font-size:10px}.alert-card h3{font-size:14px}.alert-card p{font-size:12px}.page-heading{padding:12px 0 18px}.page-heading h1{font-size:26px}.page-heading p{font-size:12px}.panel{padding:19px;border-radius:16px}.panel h2{font-size:16px}.food-grid{gap:0}.food-grid>div{min-width:0}.sources-grid{grid-template-columns:1fr}input:not([type=checkbox]),select,textarea{font-size:16px}.candidate select{font-size:16px}.candidate-head input{font-size:16px}dialog{padding:23px;max-height:85dvh}.form-two{grid-template-columns:1fr;gap:0}.toast{bottom:90px;left:50%;transform:translateX(-50%);width:max-content;max-width:90%;font-size:12px}.toast button{white-space:nowrap}footer{font-size:9px;padding:30px 0 16px}footer span{float:none;display:block;margin-top:4px}.settings-grid{gap:18px}.button-row .secondary{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.profile-switch{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:30px;background:#fff;padding:6px 12px 6px 6px;color:var(--green);max-width:48%;cursor:pointer}.profile-switch #active-profile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-switch .profile-avatar{flex-shrink:0}.profile-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left;margin:10px 0;color:var(--ink)}.profile-option.selected{border-color:var(--green);background:#edf4e9}.profile-option strong,.profile-option small{display:block}.profile-option small{color:#64765e;margin-top:5px}.profile-option b{white-space:nowrap;color:var(--green)}
.scan-panel{margin:18px 0;padding:18px;background:#f4f7ef;border-radius:14px}.scan-panel h3{margin:0}.scan-panel .button-row{flex-wrap:wrap}.scan-panel img{display:block;width:100%;max-height:260px;object-fit:contain;background:#e5ebde;border-radius:10px}.scan-panel progress{width:100%;height:10px;accent-color:var(--green)}.scan-panel textarea{background:#fff}.scan-panel .check-row{font-weight:600;color:var(--ink)}
.reminder-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:25px;align-items:start}.reminder-limit{background:#fbf6e9}.reminder-med{border-bottom:1px solid var(--line);padding:22px 0}.reminder-med:first-child{padding-top:8px}.reminder-med:last-child{border-bottom:0}.reminder-med strong{font-size:19px}.reminder-med p{margin:5px 0 12px}.time-chips{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.time-chip{border:1px solid #adc4a5;background:#edf4e6;border-radius:20px;padding:9px 13px;color:#295539;min-height:44px;font-variant-numeric:tabular-nums}.time-entry{display:flex;gap:10px}.time-entry input{flex:1;min-width:0}.time-entry button{flex-shrink:0}.alarm-med{padding:14px 0;border-bottom:1px solid var(--line)}.alarm-med strong,.alarm-med span,.alarm-med small{display:block}.alarm-med strong{font-size:21px}.alarm-med small{margin-top:6px;color:#63735d}
.diet-intro{display:flex;align-items:center;gap:30px;background:#eaf1e3;margin-bottom:25px}.diet-intro>div:first-child{flex:1}.diet-intro h2{margin:14px 0}.plate-art{width:175px;height:175px;border:12px solid #fff;border-radius:50%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:3px;overflow:hidden;transform:rotate(-8deg);box-shadow:0 6px 25px #32533914;flex-shrink:0}.plate-art span{display:flex;align-items:center;justify-content:center;font-size:15px;color:#345037;background:#d9e6bd}.plate-art span:first-child{grid-row:1/3;background:#a8c895}.plate-art span:last-child{background:#edcbaa}.daily-meals{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;margin:25px 0 35px}.meal-card{background:white;border:1px solid var(--line);border-radius:20px;padding:26px}.meal-card-head{display:flex;align-items:center;gap:15px}.meal-icon{width:50px;height:50px;background:#edf3e5;border-radius:16px;display:grid;place-items:center;font-size:28px;color:#577c46}.meal-card h2{margin:0;font-size:24px}.meal-card small{color:#708065}.meal-card ul{padding-left:22px;line-height:1.9;margin:20px 0}.meal-card p{padding-top:15px;border-top:1px solid var(--line);color:#596c52;line-height:1.8}.diet-bottom{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:start}
/* Larger default reading size, including medication instructions and secondary text. */
body{font-size:18px;line-height:1.75}button,input,select,textarea{font:inherit}button{min-height:44px}.topbar{font-size:15px}.profile-switch{font-size:16px}.primary,.secondary,.text-button{font-size:17px;line-height:1.5}.nav-button{font-size:17px}.nav-label{font-size:13px}.sidebar-note p,.sidebar-note{font-size:15px}.brand small{font-size:8px}.eyebrow{font-size:11px}.hero h1{font-size:42px}.hero p{font-size:18px}.hero .primary{font-size:18px}.overview small{font-size:16px}.overview-note{font-size:16px}.overview-note small{font-size:15px}.section-head h2,.panel h2{font-size:23px}.compact,.muted{font-size:16px}.time-label{font-size:18px}.med-info strong{font-size:20px}.med-info small{font-size:15px}.med-note,.med-note.important{font-size:16px;line-height:1.6}.med-dose{font-size:18px;max-width:145px}.med-card summary{font-size:16px;padding-top:10px;padding-bottom:10px}.med-detail p,.alert-card p,.panel p{font-size:17px;line-height:1.8}.alert-card h3{font-size:20px;line-height:1.5}.alert-label,.related,.source-link,.badge,.live-label,.missing-badge{font-size:14px}.small-note,.panel .small-note,.candidate .small-note{font-size:15px;line-height:1.8;color:#596b54}.alert-card .related{font-size:15px}.food-promo b{font-size:18px}.food-promo small{font-size:15px}.page-heading h1{font-size:36px}.page-heading p{font-size:18px}.photo-placeholder p{font-size:16px}.category-options button{font-size:16px;min-height:44px}.candidate-head input{font-size:18px!important}.candidate select{font-size:17px;min-height:44px}.check-row, label{font-size:17px}.context-details summary{font-size:17px}.empty{font-size:16px;color:#61745a}.message{font-size:16px!important}.sources-grid a{font-size:15px}.result-heading{font-size:24px}.toast{font-size:16px}.panel ol{font-size:16px}input:not([type=checkbox]),select,textarea{font-size:18px}input[type=checkbox]{width:21px;height:21px;margin-top:4px}dialog{width:min(680px,calc(100% - 30px))}.close-button{min-width:44px;min-height:44px}.button-row{flex-wrap:wrap}.button-row>*{min-width:130px}footer{font-size:14px}.form-two{grid-template-columns:1fr}.med-top{flex-wrap:wrap;column-gap:12px}.med-info{min-width:0;flex:1}.med-dose{overflow-wrap:anywhere}.med-info strong,.med-note,.alert-card p,.profile-option strong{overflow-wrap:anywhere}
@media(max-width:1150px){.dashboard-grid{grid-template-columns:1fr}.hero h1{font-size:38px}.overview-note{display:none!important}.overview{grid-template-columns:1fr 1fr}.reminder-grid,.diet-bottom{grid-template-columns:1fr}.nav-button{font-size:16px;gap:8px}.plate-art{width:145px;height:145px}.profile-switch{max-width:54%}}
@media(max-width:850px){.daily-meals{grid-template-columns:1fr}.topbar>span{font-size:14px}.topbar>span .top-slash{margin:0 4px}.topbar{gap:10px}.diet-intro{gap:15px}.plate-art{width:125px;height:125px;border-width:8px}.plate-art span{font-size:12px}.med-dose{max-width:120px}}
@media(max-width:600px){body{font-size:18px}.sidebar{height:calc(82px + env(safe-area-inset-bottom));padding:5px 3px env(safe-area-inset-bottom)}.sidebar nav{gap:0}.nav-button{font-size:12px;padding:9px 2px;min-width:0;flex:1;gap:5px}.nav-button svg{width:24px;height:24px}main{padding:0 16px 95px}.topbar{height:auto;min-height:82px;flex-wrap:wrap;padding:14px 0;gap:8px}.topbar>span{font-size:14px}.profile-switch{max-width:100%;font-size:16px;margin-left:auto}.hero{padding:25px;min-height:300px}.hero h1{font-size:34px}.hero p,.hero .primary{font-size:18px}.hero-art{display:none}.eyebrow{font-size:10px}.overview{padding:16px 12px}.overview small{font-size:15px}.overview strong{font-size:26px}.stat-icon{width:32px;height:36px}.overview>div{gap:8px}.section-head{gap:10px;align-items:start}.section-head h2{font-size:22px}.section-head .live-label{font-size:13px;white-space:nowrap}.med-top{padding:18px 14px;align-items:start}.med-info strong{font-size:20px}.med-info small{font-size:14px}.med-note{font-size:16px}.med-dose{font-size:17px;max-width:100%;flex-basis:100%;text-align:left;margin-left:42px;margin-top:7px}.med-card summary{font-size:16px}.small-note,.panel .small-note{font-size:15px}.alert-card h3{font-size:20px}.alert-card p{font-size:17px}.page-heading h1{font-size:31px}.page-heading p{font-size:18px}.panel{padding:20px}.panel h2{font-size:22px}.panel p{font-size:17px}.button-row .secondary{font-size:17px}.daily-meals{gap:18px}.meal-card{padding:22px}.meal-card p{font-size:16px}.meal-card li{font-size:18px}.meal-card small{font-size:15px}.diet-intro{display:block}.plate-art{display:none}.diet-bottom{gap:10px}.time-entry{flex-wrap:wrap}.time-entry input{min-width:150px}.reminder-med p{font-size:16px}dialog{padding:22px 18px;max-height:88dvh}.scan-panel{padding:14px}.toast{font-size:16px;bottom:100px}.profile-option{font-size:17px}.profile-option small,.profile-option b{font-size:15px}footer{font-size:13px}.badge{font-size:13px}.panel .section-head{flex-wrap:wrap}.sources-grid{grid-template-columns:1fr}}


.gpt-panel{padding:18px;border:1px solid #c8d8cd;border-radius:14px;margin:20px 0;background:#f8faf6}.gpt-panel>summary{font-size:19px;font-weight:600;cursor:pointer;color:var(--green);min-height:44px}.gpt-panel p{font-size:16px}.gpt-handoff{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.gpt-handoff>summary{font-size:17px;cursor:pointer}.gpt-thread{max-height:380px;overflow:auto;overscroll-behavior:contain}.chat-bubble{padding:14px;background:#fff;border:1px solid var(--line);border-radius:13px;margin:12px 0}.chat-bubble.user{background:#e8f1e2}.chat-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.gpt-draft{background:white;border:1px solid #b6cbaa;border-radius:14px;padding:16px;margin:15px 0}.gpt-draft h4{font-size:21px;margin:0}.gpt-draft dl{display:grid;grid-template-columns:90px 1fr;gap:7px;font-size:16px}.gpt-draft dt{color:#5a7250}.gpt-draft dd{margin:0;overflow-wrap:anywhere}.link-button{display:flex;align-items:center;justify-content:center;text-decoration:none}#gpt-verify-row{font-weight:600;color:var(--green)}

.potassium-examples{border-top:1px solid #decfb7;padding-top:14px}.potassium-details{margin:15px 0 0}.potassium-details>summary{font-size:17px;font-weight:600;cursor:pointer;min-height:44px;color:#5a633c}.potassium-reference{margin-top:12px}.potassium-reference p{font-size:16px!important;line-height:1.8}.potassium-products{padding:15px;background:#fff7e6;border-radius:12px;margin:15px 0}.potassium-products p{margin:6px 0 0}.potassium-table-wrap{overflow:auto;border:1px solid #dedfce;border-radius:12px;background:#fff}.potassium-table{width:100%;border-collapse:collapse;font-size:17px}.potassium-table caption{padding:12px;text-align:left;font-weight:600;background:#f2f5e9}.potassium-table th{padding:10px 12px;text-align:left;font-size:15px;background:#f8faf4}.potassium-table td{border-top:1px solid #e4e8da;padding:13px 12px;vertical-align:middle}.potassium-table td:last-child{font-size:22px;font-variant-numeric:tabular-nums;color:#31523e;text-align:right;white-space:nowrap}.potassium-table small{display:block;font-size:14px;font-weight:400;color:#61735a;white-space:normal;margin-top:3px}.potassium-table td:last-child small{display:inline;margin-left:4px}.potassium-table strong{font-size:17px;line-height:1.5}

.med-food-details{margin:5px 0 24px}.med-food-details h3{font-size:22px;margin:0 0 8px}.food-rule{border-left:4px solid #b8bca6;background:#f6f8f1;padding:17px;margin:14px 0;border-radius:0 12px 12px 0}.food-rule.avoid{border-color:#b86451;background:#fff1eb}.food-rule.check{border-color:#bd984c;background:#fff8eb}.food-rule.limit{border-color:#9b9f53}.rule-level{display:block;font-size:15px;color:#73633b;margin-bottom:5px}.food-rule strong{font-size:19px}.food-rule p{margin:8px 0;font-size:17px}.food-rule .source-link{display:block}.personal-food-note{padding:16px;border:1px dashed #98af8b;border-radius:12px}.personal-food-note p{white-space:pre-wrap}.personal-food-note small{font-size:15px}.muted,.hero p,.page-heading p,.panel p{color:#52664e}

.review-panel{margin:0 0 28px}.review-panel ol{padding-left:25px}.review-panel li{margin:12px 0;font-size:18px}.review-panel summary{font-size:18px;font-weight:600;cursor:pointer;padding:14px 0}.review-panel textarea{font-size:17px}.consultation-record{background:#f1f5e9;border-radius:10px;padding:12px;overflow-wrap:anywhere}.consultation-record small{font-size:15px}.missing-badge{white-space:normal;line-height:1.6}.review-panel .section-head{flex-wrap:wrap}

.database-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}.database-stats>div{background:#e8efe0;border-radius:16px;padding:20px}.database-stats strong{display:block;font-size:30px;color:#205d4b}.database-stats span{font-size:16px}.database-entry{padding:0;margin-bottom:14px}.database-entry>summary{padding:22px;display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer}.database-entry>summary strong{display:block;font-size:22px}.database-entry>summary small{display:block;font-size:15px;color:#61725e;overflow-wrap:anywhere}.database-entry-body{padding:0 22px 22px}.database-entry>summary:after{content:"＋"}.database-entry[open]>summary:after{content:"−"}.database-entry .badge{flex-shrink:0}.database-search input{min-height:52px}@media(max-width:700px){.sidebar nav{grid-template-columns:repeat(6,minmax(0,1fr))}.database-stats{gap:8px}.database-stats>div{padding:14px 10px}.database-stats strong{font-size:26px}.database-stats span{font-size:14px}.database-entry>summary{padding:18px 15px;gap:8px;flex-wrap:wrap}.database-entry>summary>span:first-child{flex:1;min-width:180px}.database-entry>summary strong{font-size:20px}.database-entry-body{padding:0 15px 18px}}

.topbar{gap:12px}.topbar-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.appearance-button{display:flex;align-items:center;gap:6px;background:white;color:var(--green);border:1px solid var(--line);border-radius:24px;padding:10px 15px;font-size:17px;min-height:44px}.appearance-presets{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.palette-preset{gap:8px}.palette-preset>span{width:27px;height:27px;display:grid;place-items:center;border:2px solid;border-radius:50%}.palette-preset i{display:block;width:12px;height:12px;border-radius:50%}#appearance-dialog{max-width:650px}#appearance-dialog input[type=color]{height:58px;padding:5px;cursor:pointer}.topbar>span{min-width:0}
html[data-colors=on]{background:var(--bg);color:var(--ink)}
html[data-colors=on] :is(.sidebar,.med-card,.panel,.alert-card,.overview,.secondary,dialog,.profile-option,.gpt-draft,.candidate,.photo-placeholder,.database-entry,.meal-card,.potassium-table-wrap,.potassium-table,.appearance-button){background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-colors=on] :is(.hero,.scan-panel,.gpt-panel,.database-stats>div,.profile-switch,.nav-button.active,.food-promo,.diet-intro,.food-rule,.art-card,.profile-avatar,.pill-icon,.stat-icon,.sidebar-note,.chat-bubble,.potassium-products,.personal-food-note){background:var(--soft);border-color:var(--line);color:var(--ink)}
html[data-colors=on] :is(h1,h2,h3,h4,strong,.database-stats strong,.med-dose,.med-info strong,.meal-card li){color:var(--ink)}
html[data-colors=on] :is(p,small,.muted,.small-note,.med-note,.time-label,.eyebrow,.topbar,.nav-label,.overview small,.med-info small,.database-entry>summary small,.sidebar-note p,.med-detail,.context-details,.med-card summary,.potassium-table small,.rule-level){color:var(--muted)}
html[data-colors=on] :is(a,.text-button,.nav-button,.hero em,.potassium-details>summary,.profile-option b){color:var(--green)}
html[data-colors=on] :is(input,textarea,select){background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-colors=on] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html[data-colors=on] .primary{background:var(--accent-fill);color:var(--accent-on)}
html[data-colors=on] .primary:hover:not(:disabled){background:var(--accent-fill);filter:brightness(.95)}
html[data-colors=on] :is(.secondary:hover,.nav-button:hover,.category-options button,.badge,.missing-badge,.live-label,.potassium-table th,.potassium-table caption){background:var(--soft);border-color:var(--line);color:var(--ink)}
html[data-colors=on] :is(.alert-card.avoid,.food-rule.avoid){background:var(--avoid-bg);border-color:var(--avoid-ink)}
html[data-colors=on] :is(.alert-card.avoid,.food-rule.avoid) :is(h3,p,strong,.rule-level,a){color:var(--avoid-ink)}
html[data-colors=on] :is(.alert-card.check,.food-rule.check,.potassium-products){background:var(--check-bg);border-color:var(--check-ink)}
html[data-colors=on] :is(.alert-card.check,.food-rule.check,.potassium-products) :is(h3,p,strong,.rule-level,a,summary){color:var(--check-ink)}
html[data-colors=on] :is(.alert-label,.rule-level){background:transparent;color:inherit}
html[data-colors=on] :is(.potassium-table td,.potassium-table th,.med-card details){border-color:var(--line)}
html[data-colors=on] .potassium-table td:last-child{color:var(--ink)}
html[data-colors=on] :is(.close-button,.remove-item){color:var(--ink)}
@media(max-width:600px){.topbar-actions{gap:6px}.appearance-button{padding:8px 10px;font-size:16px}.topbar-actions .profile-switch{max-width:155px}.topbar>span{font-size:12px}.appearance-presets{gap:8px}.palette-preset{padding:10px 12px;font-size:16px}}

/* Mobile installation */
.mobile-entry{width:100%;display:flex;align-items:center;gap:14px;text-align:left;padding:16px 20px;margin:4px 0 22px;border:1px solid var(--line);border-radius:18px;background:var(--surface,#fff);color:var(--ink)}
.mobile-entry>span:nth-child(2){flex:1}.mobile-entry strong{display:block;font-size:19px}.mobile-entry small{display:block;font-size:15px;color:var(--muted)}.mobile-entry-icon{width:42px;height:48px;display:grid;place-items:center;font-size:32px;background:var(--sage);border-radius:12px;color:var(--green)}
.mobile-dialog{max-width:780px}.mobile-dialog h2{font-size:27px}.mobile-dialog h3{font-size:21px;margin:12px 0}.mobile-subtitle{color:var(--muted);margin:4px 0 22px}.offline-box{display:flex;gap:12px;padding:20px;border-radius:16px;background:var(--sage);margin-bottom:18px}.offline-box strong{font-size:20px}.offline-box p{font-size:17px;margin:6px 0 0}.mobile-status-dot{width:10px;height:10px;flex-shrink:0;border-radius:50%;background:var(--green);margin-top:12px}.mobile-platforms{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.mobile-platforms section{padding:20px;border:1px solid var(--line);border-radius:16px}.mobile-platforms ol{padding-left:24px;font-size:18px}.mobile-platforms li{margin:12px 0}.mobile-notes{border-top:1px solid var(--line);padding-top:12px}.mobile-notes p{font-size:17px}.mobile-settings-button{margin-bottom:22px}
@media(max-width:600px){main{padding-bottom:calc(100px + env(safe-area-inset-bottom));padding-top:env(safe-area-inset-top)}.mobile-entry{padding:14px;gap:10px}.mobile-entry strong{font-size:18px}.mobile-entry small{font-size:14px}.mobile-platforms{grid-template-columns:1fr}.mobile-dialog{padding:22px 18px}.mobile-dialog h2{font-size:24px}.offline-box{padding:16px}.mobile-dialog .dialog-head{align-items:flex-start}.mobile-dialog .close-button{flex-shrink:0}.mobile-dialog .badge{font-size:16px}}

/* Medication draft flow */
#med-dialog{max-width:760px}#med-dialog h3{font-size:22px;margin:8px 0 14px}
#med-dialog input,#med-dialog textarea,#med-dialog select{font-size:20px}
#med-dialog .small-note{font-size:16px}#med-dialog summary{cursor:pointer;font-size:18px;padding:12px 0;min-height:48px}
#med-photo-frame{position:relative;line-height:0;max-width:100%;overflow:hidden}
#med-photo-frame img{display:block;width:100%;max-height:none;object-fit:contain;margin:0;border-radius:8px;user-select:none}
#med-photo-frame.cropping{touch-action:none;cursor:crosshair}
#med-crop-box{position:absolute;border:3px solid #067cc1;background:#2a98d322;pointer-events:none;box-shadow:0 0 0 1500px #0004}
.crop-inputs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.crop-inputs input{width:100%}
.med-draft-fields,.med-save-panel{padding:18px 0}.med-save-panel{border-top:1px solid var(--line)}
.med-extra{margin:20px 0}.med-save-panel .check-row{font-weight:600}
#med-draft-status:empty,#med-ocr-status:empty,#gpt-import-status:empty{display:none}
#gpt-drafts input{max-width:100%}#gpt-import-file-button{margin-top:12px}
@media(max-width:600px){#med-dialog{padding:20px 16px;width:calc(100% - 16px)}.crop-inputs{grid-template-columns:1fr 1fr}#med-dialog .button-row{flex-wrap:wrap}#med-dialog .button-row button{flex:1;min-width:125px}.gpt-panel{padding:14px}.gpt-draft{padding:12px}}

/* Offline product catalog */
.catalog-filters{flex-wrap:wrap;margin:16px 0}.catalog-filters [aria-pressed="true"]{background:var(--ink);color:var(--paper,#fff)}.catalog-checkbox{display:flex;align-items:center;gap:12px;font-size:18px}.catalog-checkbox input{width:24px;height:24px;flex:0 0 24px}.catalog-entry p{overflow-wrap:anywhere}.catalog-entry summary strong{font-size:20px}.catalog-entry summary small{font-size:16px}.catalog-pagination{margin:18px 0 32px}.catalog-rules-heading{margin-top:32px}.catalog-intro details{margin-top:16px}
.palette-preset[aria-pressed="true"]{outline:2px solid var(--green);outline-offset:2px}

/* Six-character app name */
.sidebar .brand{font-size:22px;letter-spacing:.5px}.sidebar .brand-mark{flex-shrink:0}.sidebar .brand>span:last-child{min-width:0;white-space:nowrap}
/* Medication review: original image and editable cards share one clear flow. */
#med-dialog:has(.med-review){width:min(1120px,calc(100vw - 24px));max-width:1120px}
.review-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px;margin:22px 0 12px}
.review-heading h3,.review-heading p{margin:0}
.review-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(320px,1.2fr);gap:20px;align-items:start}
.review-layout:not(:has(.review-photo)){grid-template-columns:1fr}
.review-photo{position:sticky;top:12px;background:var(--sage);border-radius:14px;padding:10px}
.review-photo img{display:block;width:100%;max-height:62vh;object-fit:contain;border-radius:8px}
.review-cards{min-width:0}.review-card{border:1px solid var(--line);border-radius:16px;padding:18px;margin-bottom:16px;background:var(--paper,#fff)}
.review-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.review-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.review-field{min-width:0}.review-field label{font-size:17px;display:block;margin:14px 0 6px}.review-field input{font-size:19px;width:100%;min-height:48px;box-sizing:border-box}
.review-field.needs-value input{border:2px solid #ac6a1e}.review-field:has(input:focus){outline-offset:4px}
.review-card details{margin:14px 0}.review-card summary{font-size:18px;cursor:pointer;min-height:32px}
.review-card pre,.saved-source,#med-source-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:var(--sage);padding:12px;border-radius:10px;max-height:240px;overflow:auto}
.review-save{margin-top:20px;padding:18px;background:var(--sage);border-radius:16px}.review-save .primary{min-height:54px;font-size:21px}
.product-choice{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;width:100%;margin:8px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--paper,#fff);color:var(--ink);white-space:normal;overflow-wrap:anywhere}
.product-choice strong{font-size:19px}.product-choice span,.product-choice small{font-size:16px}
@media(max-width:760px){.review-layout{grid-template-columns:1fr}.review-photo{position:static}.review-photo img{max-height:230px}.review-grid{gap:10px}.review-card{padding:14px}.review-field label{font-size:16px}.review-field input{font-size:18px}.review-heading{display:block}.review-heading p{margin-top:6px}}
@media(max-width:380px){.review-grid{grid-template-columns:1fr}}

.review-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.review-quick button{min-height:44px;padding:8px 12px;font-size:16px}

.review-crop img{display:block;width:100%;max-height:180px;object-fit:contain;border:1px solid var(--line);border-radius:10px;margin:8px 0 16px;background:white}.review-name-options{border:1px solid var(--line);border-radius:12px;padding:12px;margin:12px 0}.review-name-options button{margin:4px;min-height:46px}

/* Label choices: large touch targets, no automatic dose or schedule defaults. */
.med-choices{display:flex;flex-wrap:wrap;gap:8px;margin:9px 0 12px}.med-choices .secondary{min-height:46px;font-size:18px;padding:8px 13px}.med-choices [aria-pressed="true"]{background:var(--green);color:var(--surface,#fff);border-color:var(--green)}.med-choice-group .small-note{margin-bottom:6px}.review-field input{min-width:0}.med-draft-fields .form-two{align-items:start}

.has-update::after{content:'有新版';display:inline-block;font-size:14px;padding:2px 8px;border-radius:12px;background:var(--green);color:#fff;margin-left:8px}
#med-photo-viewport{max-height:65vh;overflow:auto;border-radius:12px;overscroll-behavior:contain;background:#172a24}
#med-photo-frame{max-width:none;width:100%;touch-action:none;cursor:grab}
#med-photo-frame.cropping{cursor:crosshair}
#med-crop-box{pointer-events:auto;cursor:move;touch-action:none}
.photo-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.photo-tools output{min-width:54px;text-align:center}
#med-crop-box .crop-handle{position:absolute;width:28px;height:28px;min-height:28px;padding:0;border:3px solid #fff;border-radius:50%;background:#067cc1;box-shadow:0 0 0 1px #067cc1;touch-action:none}
.crop-nw{left:-14px;top:-14px;cursor:nwse-resize}.crop-ne{right:-14px;top:-14px;cursor:nesw-resize}.crop-sw{left:-14px;bottom:-14px;cursor:nesw-resize}.crop-se{right:-14px;bottom:-14px;cursor:nwse-resize}
#med-photo-frame:not(.cropping) #med-crop-box{pointer-events:none}#med-photo-frame:not(.cropping) .crop-handle{display:none}
/* Personal measurements are numeric; context uses large native selectors. */
.measure-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:16px 0}.measure-fields label{display:block}.measure-fields input,.measure-fields select,#reading-note-choice{width:100%;font-size:20px;min-height:48px}.metric-result strong{font-size:28px}#measurement-panel details{margin:18px 0}#measurement-panel summary{font-size:21px;cursor:pointer}#reading-error{color:#a22b27}.measurement-table-wrap{overflow-x:auto}.measurement-table{border-collapse:collapse;width:100%;font-size:18px}.measurement-table th,.measurement-table td{border-bottom:1px solid #bbc7c2;padding:12px 8px;text-align:left;vertical-align:top}.measurement-table th{white-space:nowrap}#measurement-print{display:none}#side-effects-panel:empty{display:none}
@media print{body.printing-measurements>*{display:none!important}body.printing-measurements>#measurement-print{display:block!important;color:#111;background:white;font-size:12pt}.printing-measurements .measurement-table-wrap{overflow:visible}.printing-measurements .measurement-table{font-size:10pt}.printing-measurements .measurement-table tr{break-inside:avoid}.printing-measurements .measurement-table thead{display:table-header-group}}

.effect-group,.effect-urgent{margin:12px 0;padding:14px;border:1px solid #bbc7c2;border-radius:12px}.effect-group summary,.effect-urgent summary{font-size:20px;cursor:pointer}.effect-urgent{border-color:#b15b45}.effect-group p,.effect-urgent p{font-size:18px}
