:root{color:#203e35;font-synthesis:none;--green:#164e44;--green-dark:#103b33;--muted:#54655b;--line:#dce1d6;--cream:#f4f5ef;--red:#9b2828;background:#f4f5ef;font-family:Microsoft YaHei,PingFang SC,system-ui,sans-serif;font-size:17px;line-height:1.6}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{touch-action:manipulation}button{cursor:pointer;background:var(--green);color:#fff;border:1px solid #0000;border-radius:12px;min-height:48px;padding:11px 20px;font-weight:650;transition:background .15s}button:hover{background:var(--green-dark)}button:disabled{cursor:default;opacity:.65}button.secondary{color:#244838;background:#edf2e9;border-color:#cbd6c6}button.secondary:hover{background:#dde8d7}button.plain{color:#325644;background:0 0;border-color:#0000}button.plain:hover{background:#e8eee2}button.danger{background:var(--red)}.danger-text,.expiry-warning{color:var(--red)!important}a{color:#164e44;text-underline-offset:4px}a:hover{color:#082c24}:focus-visible{outline-offset:4px;outline:3px solid #ad5800}input,select,textarea{color:#203e35;background:#fff;border:1px solid #aab9a6;border-radius:10px;width:100%;max-width:100%;min-height:50px;margin-top:6px;padding:11px 13px;display:block}input[readonly]{background:#eef0e9}input[type=checkbox],input[type=radio]{width:24px;height:24px;min-height:24px;accent-color:var(--green);flex-shrink:0;margin:0}textarea{resize:vertical;min-height:95px}label{margin:15px 0;font-weight:550;display:block}label.check{align-items:center;gap:12px;min-height:48px;font-weight:400;display:flex}fieldset{border:1px solid var(--line);border-radius:12px;margin:18px 0;padding:12px}legend{padding:0 7px}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.04em;margin-bottom:12px;font-size:2rem;font-weight:750;line-height:1.4}h2{margin-bottom:16px;font-size:1.35rem;line-height:1.5}h3{margin-bottom:8px;font-size:1.1rem;line-height:1.5}p{margin-bottom:14px}small,.fine{color:var(--muted);font-size:.8rem;line-height:1.7}.muted{color:var(--muted)}.eyebrow{letter-spacing:.17em;color:#526f4b;margin-bottom:12px;font-size:.68rem;font-weight:750}.icon{flex-shrink:0;width:25px;height:25px}.full{width:100%;margin-top:12px}.between,.section-heading,.management-row{justify-content:space-between;align-items:center;gap:18px;display:flex}.between h2{margin-bottom:0}.section-heading{margin-bottom:30px}.section-heading p:last-child{margin-bottom:0}.actions{flex-wrap:wrap;gap:10px;margin:18px 0 0;display:flex}.actions>button{flex:0 auto}.form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.form-row label{min-width:0}.message{color:#2a4c30;overflow-wrap:anywhere;background:#e9f0e6;border:1px solid #cbdac4;border-radius:12px;margin:15px 0;padding:15px 18px}.message.warning{color:#763c16;background:#fff0e5;border-color:#ddbda2}.message h3,.message p:last-child{margin-bottom:0}.panel{background:#fff;border:1px solid #dfe5d9;border-radius:20px;margin-bottom:24px;padding:26px;box-shadow:0 3px 12px #253e2c03}.badge{color:#315323;background:#e3efdc;border-radius:7px;align-items:center;gap:5px;padding:4px 10px;font-size:.73rem;font-weight:650;line-height:1.5;display:inline-flex}.badge.neutral{color:#56624e;background:#f0f1eb}.badge.attention{color:#7d440e;background:#fff0da}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:22px;display:grid}.card-grid .panel{margin-bottom:0}.empty{text-align:center;color:var(--muted);padding:32px 10px}.empty h3{color:#385940;margin:14px 0 10px}.empty p{max-width:27em;margin:0 auto}.empty-mark{color:#5e7855;background:#eef1e7;border-radius:18px;place-items:center;width:54px;height:54px;margin:auto;font-size:26px;display:grid}.segmented{background:#e8ece1;border-radius:14px;flex-wrap:wrap;gap:5px;width:fit-content;max-width:100%;margin-bottom:25px;padding:6px;display:flex}.segmented button{color:#485e42;background:0 0;padding:9px 17px}.segmented button.active{color:#173f32;background:#fff;box-shadow:0 2px 5px #223d2010}.stats{background:#e9eddf;border:1px solid #dce3d0;border-radius:18px;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:28px;padding:24px;display:grid}.stats>div{border-right:1px solid #cbd5c1;flex-direction:column;padding-left:20px;display:flex}.stats>div:last-child{border:0}.stats strong{font-size:2rem;line-height:1.2}.stats span{color:#516149;margin-top:8px;font-size:.8rem}.search-label{max-width:450px;margin-bottom:25px;font-size:.85rem}.search-label input{background:#fff}.brand{letter-spacing:-.03em;align-items:center;gap:12px;font-size:1.5rem;font-weight:750;line-height:1.3;display:flex}.brand img{width:44px;height:44px}.brand small{letter-spacing:.04em;margin-top:5px;font-size:.65rem;font-weight:400;display:block}.app{min-height:100vh}.sidebar{border-right:1px solid var(--line);background:#fbfcf7;flex-direction:column;width:244px;padding:36px 22px 22px;display:flex;position:fixed;inset:0 auto 0 0}.sidebar .brand{padding:0 12px 45px}.sidebar nav{flex-direction:column;gap:10px;display:flex}.nav-item{color:#53654b;text-align:left;background:0 0;align-items:center;gap:16px;min-height:60px;padding:16px 20px;font-size:.95rem;font-weight:550;display:flex}.nav-item.active{color:#244627;background:#dfead5}.nav-item:hover{background:#edf1e6}.sidebar-bottom{border-top:1px solid var(--line);align-items:center;gap:12px;margin-top:auto;padding:25px 10px 0;display:flex}.sidebar-bottom small{display:block}.avatar{color:#405f36;background:#e4e9db;border-radius:15px;flex-shrink:0;place-items:center;width:43px;height:43px;font-size:1rem;font-weight:650;display:grid}.workspace{margin-left:244px}.topbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:18px;height:92px;padding:0 42px;display:flex}.topbar-note{color:var(--muted);font-size:.8rem}.group-picker{align-items:center;gap:12px;margin:0;font-size:.8rem;display:flex}.group-picker span{white-space:nowrap;color:var(--muted)}.group-picker select{background:0 0;border:0;max-width:240px;margin:0;font-size:.9rem}.workspace main{max-width:1500px;min-height:70vh;margin:0 auto;padding:40px 42px 24px}footer{color:var(--muted);text-align:center;padding:26px 42px;font-size:.72rem}.mobile-brand{display:none}.date-tile{text-align:center;background:#e9eddf;border-radius:14px;min-width:85px;padding:9px 20px}.date-tile span{color:#53684b;font-size:.65rem;display:block}.date-tile strong{font-size:1.8rem;line-height:1.4}.quick-actions{grid-template-columns:1.4fr 1fr 1fr;gap:17px;margin-bottom:32px;display:grid}.quick-card{color:#294d37;text-align:left;background:#fff;border-color:#dce4d4;border-radius:18px;align-items:center;gap:15px;min-height:124px;padding:24px 20px;display:flex}.quick-card:hover{background:#e9efdf}.quick-card>.icon{width:34px;height:34px;padding:2px}.quick-card strong{font-size:.98rem;line-height:1.6;display:block}.quick-card small{margin-top:4px;font-size:.7rem;font-weight:400;display:block}.quick-card.scan-card{color:#fff;background:#164e44;border-color:#164e44}.scan-card:hover{background:#0e3f35}.scan-card small{color:#dbe9e0}.scan-card>span:last-child{margin-left:auto}.home-columns{grid-template-columns:1.4fr 1fr;align-items:start;gap:25px;display:grid}.today-panel{padding:26px 23px}.completion{color:#52654b;font-size:.72rem}.todo-list{margin-top:22px}.todo-row{border-top:1px solid #e2e7da;padding:21px 14px}.todo-row.next{background:#f0f5e9;border:1px solid #cbdbbc;border-radius:14px;margin-top:16px}.todo-row.overdue{border-left:4px solid #9b2828}.todo-main{gap:15px;display:flex}.todo-info{flex:1;min-width:0}.todo-time{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:6px;font-size:.9rem;font-weight:700;display:flex}.todo-info h3{overflow-wrap:anywhere;font-size:1.2rem}.todo-info p{margin-bottom:5px;font-size:.85rem}.todo-info p.fine{font-size:.75rem}.todo-actions{justify-content:flex-end;gap:8px;margin-top:14px;display:flex}.todo-actions button{min-height:44px;font-size:.8rem}.dose-check{color:#49643c;background:#fff;border:1.5px solid #9eaf91;border-radius:10px;flex-shrink:0;place-items:center;width:48px;height:48px;min-height:48px;padding:0;font-size:27px;display:grid}.dose-check.checked{opacity:1;background:#dcebd4;border-color:#bdd2b1}.todo-row.taken,.todo-row.skipped{color:#52694a}.record-status{color:#2c5a31;font-weight:600}.state-text{color:#58694c;font-size:.72rem}.family-panel{padding:26px 23px}.family-row{text-align:left;color:#294631;border-bottom:1px solid var(--line);background:0 0;border-radius:0;align-items:center;gap:13px;width:100%;padding:21px 0;display:flex}.family-row:last-child{border-bottom:0;padding-bottom:0}.family-row:hover{background:#f1f5eb}.family-row strong,.family-row small{display:block}.family-row>span:last-child{margin-left:auto}.family-row small{margin-top:4px;font-size:.72rem;font-weight:400}.expiry-panel{background:#fffaf0;border-color:#e8d6b5;justify-content:space-between;align-items:center;gap:20px;margin-top:8px;display:flex}.expiry-panel h2{margin:12px 0 8px;font-size:1.1rem}.expiry-panel p{margin:0;font-size:.85rem}.dose-amount{margin:17px 0 8px;font-size:2rem;font-weight:750;line-height:1.5}.dose-amount span{color:var(--muted);font-size:.85rem;font-weight:400}.times{letter-spacing:.03em;color:#355635;font-weight:650}.stock-meter{background:#e7ecdf;border-radius:6px;height:6px;margin:20px 0}.stock-meter span{background:#6c8956;border-radius:6px;height:100%;display:block}.stock-card h2{margin-top:20px}.stock-card>p{font-size:.85rem}.stock-card .actions button{padding:9px 14px;font-size:.8rem}.history-row{border-bottom:1px solid var(--line);flex-wrap:wrap;gap:14px;padding:16px 0;display:flex}.history-row small{margin-left:auto}.history-row strong{flex:1}.sources{background:#f2f5eb;border-radius:12px;margin:22px 0;padding:16px}.sources h3{font-size:.9rem}.sources a{overflow-wrap:anywhere;min-height:32px;margin:12px 0;font-size:.85rem;display:block}.medicine-preview{background:#eef4e8;border-radius:14px;margin:20px 0;padding:18px}.scan-name{margin-top:20px;font-size:2rem}.management-row{border-bottom:1px solid var(--line);flex-wrap:wrap;padding:16px 0}.management-row:last-child{border-bottom:0}.management-row p{margin:0}.management-row .actions{margin-top:0}.management-row code{overflow-wrap:anywhere}.weekday{flex-wrap:wrap;gap:10px;display:flex}.weekday .check{padding:5px}.quick-replies{flex-wrap:wrap;gap:10px;margin:12px 0;display:flex}.quick-replies button{font-size:.85rem}.chat-layout{grid-template-columns:1.5fr 1fr;align-items:start;gap:25px;display:grid}.chat-messages{scrollbar-gutter:stable;min-height:280px;max-height:60vh;padding:12px 0;overflow-y:auto}.bubble{overflow-wrap:anywhere;background:#f0f3e9;border-radius:15px;margin:15px 22px 15px 0;padding:15px 18px}.bubble.user{background:#e2ecd8;margin:15px 0 15px 28px}.bubble p{white-space:pre-wrap;margin:5px 0 0}.bubble-label{color:#53664b;font-size:.7rem;font-weight:650}.drafts h2{margin-top:10px}.draft-card h3{margin-top:15px}.draft-card p{font-size:.9rem}.probe-result{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f4eb;border-radius:12px;max-height:500px;padding:20px;font-size:.8rem;overflow:auto}.secret{overflow-wrap:anywhere;-webkit-user-select:all;user-select:all;background:#f0f3e9;margin:20px 0;padding:20px;display:block}.recovery{padding-left:30px}.recovery li{overflow-wrap:anywhere;padding:9px 0}.loading{text-align:center;justify-content:center;margin:22vh auto;display:grid}.loading img{width:70px;margin:0 auto 25px}.binding-page{max-width:760px;margin:5vh auto;padding:25px}.binding-page .brand{margin-bottom:30px}.login{grid-template-columns:1fr 1fr;max-width:1200px;min-height:100vh;margin:auto;display:grid}.login-intro{flex-direction:column;justify-content:center;padding:70px 60px;display:flex}.login-intro .brand{margin-bottom:70px}.login-intro h1{letter-spacing:-.055em;margin-bottom:24px;font-size:3rem;line-height:1.45}.login-intro>p:not(.eyebrow){color:#55684d;font-size:1.12rem}.login-art{color:#62734e;align-items:center;gap:15px;padding:30px 0;font-size:.8rem;display:flex}.login-art .icon{width:46px;height:46px}.login-form{background:#fff;border-left:1px solid #dfe5d8;flex-direction:column;justify-content:center;padding:50px 60px;display:flex}.login-form h2{font-size:1.7rem}.login-form>.fine{margin-top:35px}.login-form .segmented{width:100%;margin-top:15px}.login-form .segmented button{flex:1;font-size:.8rem}.login-form details{margin:20px 0}summary{cursor:pointer;padding:12px 0}.skip-link{z-index:10;background:#fff;padding:20px;position:fixed;top:-100px;left:260px}.skip-link:focus{top:10px}dialog{color:#203e35;background:#fff;border:1px solid #cbd5c1;border-radius:22px;width:calc(100% - 30px);max-width:680px;max-height:calc(100dvh - 40px);padding:30px;overflow-y:auto;box-shadow:0 20px 80px #102b2340}dialog::backdrop{background:#0d261dc2}.modal-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;display:flex}.modal-heading h2{margin:0}.modal-heading button{white-space:nowrap}.dose-summary{background:#eef3e7;border-radius:14px;margin-bottom:23px;padding:20px}.dose-summary h2{margin:6px 0 9px}.dose-summary p{margin:0}.dose-summary>span{color:#52664a;font-size:.85rem}.amount-control{align-items:center;gap:10px;margin:15px 0 28px;display:flex}.amount-control button{min-width:60px;height:60px;font-size:26px}.amount-control input{text-align:center;min-width:0;margin:0;font-size:1.7rem}.amount-control strong{white-space:nowrap;font-size:1.1rem}.box-option{cursor:pointer;border:1px solid #d6dfce;border-radius:13px;align-items:center;gap:14px;margin:12px 0;padding:18px;font-weight:400;display:flex}.box-option:has(input:checked){background:#eaf3e0;border:2px solid #6b8e53}.box-option>span{flex-direction:column;gap:4px;display:flex}.box-option strong{font-size:1rem}.box-option span span{font-size:.85rem}.box-option.expired{color:#9b2828;background:#fff2ee;border-color:#cb9288}.scanner{object-fit:contain;background:#152e24;border-radius:14px;width:100%;max-height:40vh}hr{border:0;border-top:1px solid var(--line);margin:25px 0}.elderly{font-size:22px;line-height:1.5}.elderly h1{font-size:1.65rem}.elderly h2{font-size:1.45rem}.elderly h3{font-size:1.35rem}.elderly button,.elderly input,.elderly select,.elderly summary{min-height:60px;font-size:1rem}.elderly button{min-width:60px}.elderly small,.elderly .fine,.elderly .badge,.elderly .completion,.elderly .state-text,.elderly .todo-info p,.elderly .todo-actions button,.elderly .quick-card small,.elderly .dose-amount span,.elderly .box-option span span{font-size:1rem}.elderly .sidebar{width:250px}.elderly .workspace{margin-left:250px}.elderly .workspace main{padding:30px}.elderly .quick-actions{grid-template-columns:1fr;margin-top:25px}.elderly .quick-card{min-height:100px;padding:24px}.elderly .quick-card strong{font-size:1.2rem}.elderly .today-panel{padding:24px}.elderly .todo-list{margin-top:20px}.elderly .todo-row{padding:25px 15px}.elderly .todo-time{font-size:1.2rem}.elderly .todo-info h3{font-size:1.4rem}.elderly .todo-info p{font-size:1rem}.elderly .dose-check{width:60px;height:60px;font-size:32px}.elderly .todo-actions{flex-wrap:wrap}.elderly .home-columns{display:block}.elderly .card-grid,.elderly .chat-layout{grid-template-columns:1fr}.elderly .chat-messages{max-height:none}.elderly .topbar-note,.elderly .eyebrow,.elderly .quick-card small{display:none}.elderly .sources a{min-height:60px;padding:15px 0;font-size:1rem}.elderly .bubble-label{font-size:1rem}.elderly .box-option{min-height:100px}.elderly .expiry-panel{flex-wrap:wrap}.elderly .form-row{grid-template-columns:1fr}.elderly label.check{min-height:60px}.elderly input[type=checkbox],.elderly input[type=radio]{width:30px;height:30px;min-height:30px}.elderly .topbar{height:auto;min-height:88px;padding:15px 30px}@media (width>=1500px){.workspace main{padding-top:50px}.quick-actions{gap:24px}.quick-card{padding:30px 25px}.home-columns{grid-template-columns:1.45fr 1fr}.panel{padding:30px}}@media (width<=1200px){.sidebar{width:210px;padding:30px 15px}.workspace{margin-left:210px}.topbar{padding:0 28px}.workspace main{padding:30px 28px}.quick-actions{grid-template-columns:1fr 1fr}.scan-card{grid-column:1/-1;min-height:100px}.home-columns,.chat-layout{grid-template-columns:1fr}.date-tile{display:none}.quick-card{min-height:105px}}@media (width<=800px){:root{font-size:16px}.sidebar,.elderly .sidebar{width:100%;padding:6px 4px max(6px,env(safe-area-inset-bottom));z-index:5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fbfcf7f5;border-top:1px solid #cbd5bf;border-right:0;height:auto;inset:auto 0 0}.sidebar .brand,.sidebar-bottom{display:none}.sidebar nav{grid-template-columns:repeat(5,1fr);gap:3px;display:grid}.nav-item{text-align:center;border-radius:12px;flex-direction:column;gap:4px;min-height:65px;padding:9px 3px;display:flex;font-size:.7rem!important}.nav-item .icon{width:23px;height:23px}.workspace,.elderly .workspace{margin-left:0;padding-bottom:90px}.topbar,.elderly .topbar{height:auto;min-height:82px;padding:14px 20px}.topbar-note{display:none}.mobile-brand{white-space:nowrap;align-items:center;gap:9px;font-size:1.2rem;font-weight:750;display:flex}.mobile-brand img{width:34px;height:34px}.group-picker>span{display:none}.group-picker select{max-width:170px;padding:9px 0;font-size:.85rem}.workspace main,.elderly .workspace main{padding:26px 18px}.section-heading{align-items:flex-start;gap:12px;margin-bottom:24px}.section-heading h1{font-size:1.7rem}.section-heading>.button{flex-shrink:0}.section-heading>button{white-space:nowrap;padding:10px 14px;font-size:.8rem}.section-heading p.muted{font-size:.82rem}.quick-actions{gap:12px;margin-bottom:25px}.quick-card{gap:12px;padding:20px 15px}.quick-card .icon{width:29px;height:29px}.quick-card small{display:none}.quick-card strong{font-size:1rem}.panel{border-radius:16px;padding:22px 18px}.home-columns{gap:0}.completion{font-size:.75rem}.between{gap:10px}.between h2{font-size:1.2rem}.todo-row{padding:19px 3px}.todo-row.next{padding:19px 10px}.todo-actions{padding-left:58px}.todo-actions button{flex:1}.todo-main{gap:12px}.expiry-panel{flex-wrap:wrap;gap:16px}.expiry-panel button{width:100%}.stats{gap:10px;padding:20px 12px}.stats>div{padding-left:6px}.stats strong{font-size:1.7rem}.stats span{font-size:.72rem}.segmented{gap:2px}.segmented button{padding:10px 12px;font-size:.85rem}.form-row{gap:12px}dialog{border-radius:18px;width:calc(100% - 18px);max-height:calc(100dvh - 25px);padding:22px 18px}.modal-heading{gap:5px}.modal-heading h2{font-size:1.25rem}.modal-heading button{padding:8px;font-size:.85rem}.box-option{padding:16px 12px}.chat-layout{gap:12px}.chat-main{padding:20px 16px}.bubble{margin-right:10px;padding:15px}.bubble.user{margin-left:10px}.login{display:block}.login-intro{padding:40px 25px 20px}.login-intro .brand{margin-bottom:32px}.login-intro h1{font-size:2.3rem}.login-intro>p:not(.eyebrow),.login-art{display:none}.login-form{border:0;border-radius:28px 28px 0 0;min-height:60vh;padding:32px 25px}.skip-link{left:20px}footer{padding:20px;font-size:.7rem}.management-row{align-items:flex-start;gap:12px}.management-row .actions{width:100%}.history-row{gap:8px}.history-row small{width:100%}.history-row strong{min-width:150px}.elderly .nav-item{gap:8px;min-width:0;min-height:76px;font-size:.65rem!important}.elderly .nav-item .icon{width:25px;height:25px}.elderly .sidebar nav{gap:0}.elderly .workspace{padding-bottom:105px}.elderly .topbar{padding:15px}.elderly .group-picker select{max-width:155px;font-size:.85rem}.elderly .quick-actions{grid-template-columns:1fr}.elderly .scan-card{grid-column:auto}.elderly .today-panel{padding:20px 14px}.elderly .today-panel>.between{flex-wrap:wrap}.elderly .between h2{font-size:1.45rem}.elderly .todo-main{gap:12px}.elderly .todo-info h3{font-size:1.3rem}.elderly .todo-actions{gap:8px;padding-left:0}.elderly .todo-actions button{padding:12px}.elderly .todo-row{padding:22px 9px}.elderly .todo-info p{font-size:1rem}.elderly .modal-heading{align-items:flex-start}.elderly .modal-heading h2{font-size:1.4rem}.elderly .amount-control{flex-wrap:wrap}.elderly .amount-control input{flex:1;width:90px}.elderly .amount-control button{width:60px}.elderly .section-heading{flex-direction:column}.elderly .stats{grid-template-columns:1fr;gap:18px}.elderly .stats>div{border:0;flex-direction:row;align-items:center;gap:18px}.elderly .stats span{font-size:1rem}.elderly .segmented{width:100%}.elderly .segmented button{flex:1}.elderly .badge{white-space:normal}.elderly .completion{font-size:1rem}.elderly .quick-card{gap:12px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.elderly .nav-item,.elderly p,.elderly small,.elderly .fine,.elderly .badge,.elderly .completion,.elderly .state-text,.elderly footer,.elderly .probe-result,.elderly .bubble-label{font-size:1rem!important}.elderly .dose-amount{font-size:2rem!important}.elderly a:not(.skip-link){min-height:60px;padding-top:10px;padding-bottom:10px;display:inline-block}.elderly .today-panel h1{margin:0}@media (width<=800px){:root.elderly{font-size:22px}.elderly .sidebar nav{grid-template-columns:repeat(3,1fr)}.elderly .nav-item:nth-child(3),.elderly .nav-item:nth-child(4){display:none}.elderly .nav-item{font-size:1rem!important}.elderly .group-picker select{max-width:170px;font-size:1rem}.elderly .stock-card>p,.elderly .stock-card .actions button,.elderly .draft-card p,.elderly .expiry-panel p,.elderly .todo-info p.fine{font-size:1rem}}
