:root{font-family:DM Sans,PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:#193c32;background:#e9eee6;font-synthesis:none;--forest: #224d3d;--ink: #1b392e;--muted: #52695e;--paper: #fafaf3;--rule: #d7dfd1;--lime: #d6efa6;--warn: #943e2c}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none;min-height:44px}button:disabled{opacity:.5;cursor:default}button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #8bab47;outline-offset:2px}button:hover:not(:disabled){filter:brightness(.96)}h1,h2,h3,p{margin:0}code,.heading>small,.ticket-foot>span,.lane-title b,.demo-mark{font-family:IBM Plex Mono,ui-monospace,monospace;font-variant-numeric:tabular-nums}code{font-size:11px;letter-spacing:.05em}svg{flex-shrink:0}.stage{min-height:100vh;min-height:100dvh;display:flex;align-items:center;flex-direction:column;background-color:#e8ede5;background-image:radial-gradient(#abb9a980 .8px,transparent .8px);background-size:17px 17px;gap:15px;padding:12px 16px}.controls{display:flex;z-index:1;align-items:center;justify-content:center;gap:8px;flex-shrink:0;color:#344b3d}.role-switch,.tools{display:flex;align-items:center;background:#fbfcf8;border:1px solid #cbd5c5;border-radius:14px;padding:3px;box-shadow:0 2px 5px #25463308}.controls button{display:flex;align-items:center;justify-content:center;gap:6px;border-radius:10px;padding:0 12px;font-size:13px;font-weight:650}.role-switch button[aria-pressed=true]{color:#fff;background:var(--forest)}.tools button:last-child{width:44px;padding:0;border-left:1px solid var(--rule);border-radius:0 9px 9px 0}.device{height:min(866px,calc(100vh - 92px));height:min(866px,calc(100dvh - 92px));aspect-ratio:402/866;border:6px solid #252a27;box-shadow:0 0 0 2px #8a958d,inset 0 0 0 1px #fff,0 18px 40px -13px #263d3550;border-radius:clamp(27px,4.8vh,46px);background:var(--paper);display:flex;flex-direction:column;overflow:hidden;isolation:isolate;position:relative}.phone-status{height:32px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:6px 21px 0;font-size:12px;color:#15231a}.phone-status>i{position:absolute;left:50%;transform:translate(-50%);width:25%;height:19px;background:#101412;border-radius:20px;top:6px}.phone-status>i:after{content:"";position:absolute;right:8px;top:5px;width:8px;height:8px;border-radius:50%;background:radial-gradient(at 65% 33%,#355369,#0a120e 70%)}.phone-status span,.brand,.mode,.duty,.ticket-top,.ticket-foot,.ticket-foot>span,.ticket-foot button,.secondary,.primary,.lane-title,.sheet h2,.alert-box strong,.guide,.back{display:flex;align-items:center}.phone-status svg{width:13px;height:13px}.phone-status svg:last-child{width:19px}.brand{gap:6px;min-height:45px;padding:2px 16px;border-bottom:1px solid var(--rule);flex:none}.brand-logo{display:grid;place-items:center;width:26px;height:26px;border-radius:9px;color:var(--lime);background:var(--forest)}.brand strong{font-size:14px}.brand small{font-size:10px;color:var(--muted)}.brand-divider{height:10px;width:1px;background:#bcc8b8}.capsule{display:flex;align-items:center;gap:6px;margin-left:auto;border-radius:20px;border:1px solid #cfd6cb;padding:2px 8px;font-size:14px;background:#ffffff90;color:#17251e}.capsule i{height:12px;width:1px;background:#ced1c9}.scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a8b5a8 transparent}.content{padding:17px clamp(13px,2vh,20px) 0;overflow-wrap:anywhere}.heading{position:relative;margin:3px 0 15px}.heading>small{display:block;font-size:9px;letter-spacing:.14em;color:#5c7163;font-weight:700}.heading h1,.record-head h1{font-size:clamp(25px,3.4vh,34px);margin:5px 0;line-height:1.25;letter-spacing:-.045em}.duty{font-size:11px;gap:6px;color:#536756}.duty i{background:#6b9942;width:6px;height:6px;border-radius:50%}.danger-strip{border:1px solid #e3b9a7;color:#8a3729;background:#faece0;width:100%;display:flex;align-items:center;padding:7px 10px;border-radius:8px;gap:8px}.danger-strip>svg:first-child{width:19px}.danger-strip strong{font-size:13px}.danger-strip span{margin-left:auto;font-size:12px}.expanded>svg:last-child{transform:rotate(90deg)}.alert-box,.error{background:#fbece2;border:1px solid #e7c4b2;border-radius:10px;margin:8px 0 12px;padding:12px;color:#803929;font-size:13px}.alert-box p{line-height:1.65;margin:5px 0}.alert-box strong{gap:5px}.lane-title{margin:16px 0 8px;gap:7px;font-size:15px}.lane-title i{border-radius:2px;background:#b08035;height:13px;width:4px}.lane-1 i{background:#729561}.lane-title b{margin-left:auto;font-weight:500;font-size:11px;border-bottom:1px solid var(--rule);color:var(--muted)}.ticket{border-radius:13px;padding:12px 14px 5px;border:1px solid #ced7c7;background:#fffef8;margin-bottom:8px;overflow:hidden}.ticket-0{background:#254e3e;color:#f6faeb;border-color:#244d3c}.ticket-top,.ticket-foot{justify-content:space-between;gap:5px}.ticket-top code{color:#647969}.ticket-0 .ticket-top code{color:#d7e8cc}.mode{font-size:10px;gap:4px}.patient{display:flex;align-items:center;gap:11px;margin:9px 0 6px}.patient img,.pet-row img,.pet-picks img{object-fit:cover;object-position:center 40%;border-radius:50%;width:50px;height:50px;background:#e4e5da}.patient img{border:2px solid #ebf0df}.patient h3{font-size:22px;line-height:1.15}.patient span{font-size:11px}.ticket>p{font-size:13px;line-height:1.55;margin:8px 0 9px}.ticket-foot{border-top:1px dashed #c7cebf}.ticket-0 .ticket-foot{border-color:#7d9886}.ticket-foot>span{font-size:10px;gap:4px}.ticket-foot button{font-weight:650;font-size:12px;gap:5px}.ticket-0 .ticket-foot button{color:#d9f3a9}.app-nav{display:flex;border-top:1px solid var(--rule);flex:none;padding:2px 18px;background:#f8faf1}.app-nav button{flex:1;display:flex;gap:7px;align-items:center;justify-content:center;font-size:12px;color:#67796b}.app-nav button[aria-current=page]{font-weight:750;color:#214f39}.home-line{height:13px;display:grid;place-items:center}.home-line i{width:30%;height:4px;border-radius:4px;background:#222920}h2{font-size:16px;line-height:1.45;margin:14px 0 8px}.sheet h2{gap:7px;margin:0 0 10px}.sheet h2 svg{width:17px;height:17px}.sheet,.desk-list,.ledger article{border:1px solid var(--rule);background:#fffef9;border-radius:12px;padding:14px;margin:12px 0}.pet-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 4px;border-bottom:1px solid var(--rule)}.pet-row>span{flex:1;min-width:0}.pet-row img{width:42px;height:42px}.pet-row strong,.pet-row small,.pet-row code{display:block}.pet-row em{font-size:11px;font-style:normal;font-weight:400;margin-left:6px}.pet-row small,.pet-row code{font-size:11px;color:var(--muted);margin-top:3px}.pet-picks,.choices,.pair,.dialog-actions,.balances{display:flex;gap:7px}.pet-picks button,.choices button{flex:1;min-width:0;background:#fffef8;border:1px solid var(--rule);border-radius:10px;padding:8px 6px}.pet-picks button{display:flex;gap:5px;align-items:center}.pet-picks img{width:35px;height:35px}.pet-picks span{text-align:left}.pet-picks small,.choices small{display:block;font-size:10px;color:#52695e}.pet-picks button[aria-pressed=true],.choices button[aria-pressed=true],.filters button[aria-pressed=true]{border-color:#507850;background:#e5efd9;color:#254b33}.choices button{display:grid;justify-items:center;gap:3px}.choices b{font-size:13px}.field{display:flex;flex-direction:column;gap:6px;margin:13px 0;font-size:13px;font-weight:600}.field input,.field select,textarea,input[type=search]{width:100%;min-width:0;border:1px solid #becdbd;background:#fffef9;border-radius:8px;padding:10px;font-weight:400;min-height:44px;font-size:14px}.pair .field{flex:1;min-width:0}.pair select{padding:7px}.field textarea{min-height:76px;resize:vertical}.fine,.empty,.guide{font-size:12px;color:var(--muted);line-height:1.6}.empty{border:1px dashed var(--rule);padding:14px;border-radius:8px}.primary,.secondary{justify-content:center;gap:6px;width:100%;border-radius:8px;padding:8px 12px;font-weight:650;margin:8px 0;font-size:14px}.primary{background:var(--forest);color:#fff}.secondary{border:1px solid #bbcbb7;background:#f4f8ec}.back,.text-btn{color:#365e4d;font-size:12px;gap:5px;padding:0 5px}.record-head{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:8px 0}.record-head img{width:64px;height:64px;border-radius:14px;object-fit:cover}.record-head small{display:block;font-size:13px;font-weight:400;letter-spacing:0;margin:4px 0}.stamp{display:inline-flex;align-items:center;border-radius:4px;padding:3px 7px;color:#36553a;background:#e5efde;font-size:11px}.stamp.red{background:#f4dfd5;color:#873b27}.lines{margin:7px 0}.lines>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px solid #e4e9dd;padding:7px 0;font-size:12px}.lines dt{color:var(--muted);flex-shrink:0}.lines dd{margin:0;text-align:right;overflow-wrap:anywhere}.lines>div:last-child{border:0}blockquote{border-left:3px solid #a4bc7f;padding-left:9px;font-size:14px;line-height:1.65;margin:10px 0}.history{font-size:12px;border-top:1px dashed var(--rule);padding:8px 0;line-height:1.6}.history span{color:var(--muted)}summary{cursor:pointer;font-size:13px;font-weight:650;padding:14px 0}.guide{gap:6px}.guide button{margin-left:auto;min-width:44px}.demo-mark,footer{text-align:center;font-size:10px;color:#66766a}.demo-mark{margin:20px 0 0}footer{padding:14px 8px 18px}.console{display:flex;flex-direction:column;width:min(1040px,100%);background:var(--paper);border:1px solid #becbbb;border-radius:15px;min-height:65vh;box-shadow:0 10px 24px -18px #31533d}.console .brand{height:60px;padding:0 28px}.console .brand .stamp{margin-left:auto}.console .content{padding:24px 34px}.console .scroll{overflow:visible}.console h1{font-size:34px}.console .ledger{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:12px}.ledger article>div{display:flex;align-items:center;justify-content:space-between}.ledger code{display:block;margin-top:9px}.balances div{flex:1;min-width:0;background:#e6ecdf;padding:17px;border-radius:9px}.balances div:last-child{background:var(--forest);color:#fff}.balances strong{display:block;font-size:clamp(17px,2.4vw,30px);margin-top:5px}.balances small{font-size:12px}.console .fine{margin:12px 0}.filters{display:flex;gap:5px;margin-top:14px}.filters button{border-radius:7px;border:1px solid var(--rule);font-size:13px;padding:0 13px}.console .secondary,.console .primary{width:fit-content;min-width:150px}.console .record-head{max-width:640px}.desk-list .pet-row{padding:13px 7px}.error button{font-weight:700;text-decoration:underline}.console footer{border-top:1px solid var(--rule)}dialog{width:min(340px,90vw);border:1px solid var(--rule);border-radius:15px;padding:22px;background:var(--paper);color:var(--ink);box-shadow:0 18px 70px #12352330}dialog::backdrop{background:#152a2190}dialog h2{margin:0 0 9px}dialog p{font-size:14px;line-height:1.65}.dialog-actions{margin-top:12px}@media (max-width: 700px){.stage{gap:0;padding:env(safe-area-inset-top) 0 0;background:var(--paper);height:100vh;height:100dvh;min-height:0}.controls{width:100%;align-items:stretch;justify-content:space-between;padding:3px 6px;gap:3px;border-bottom:1px solid #c6d1c1;background:#eaf0e4}.role-switch,.tools{padding:0;background:none;border:0;border-radius:0;box-shadow:none}.role-switch{flex:1}.controls button{padding:0 6px;gap:3px;font-size:12px;border-radius:6px}.role-switch button{min-width:44px;flex:1}.role-switch svg{display:none}.tools button:last-child{width:44px;border:0}.device,.console{width:100%;flex:1;min-height:0;height:auto;aspect-ratio:auto;border:0;box-shadow:none;border-radius:0}.phone-status,.home-line{display:none}.brand,.console .brand{min-height:46px;height:46px;padding:0 16px}.content,.console .content{padding:19px 16px 0}.scroll,.console .scroll{overflow:auto}.app-nav{padding-bottom:env(safe-area-inset-bottom)}.console footer{padding-bottom:calc(18px + env(safe-area-inset-bottom))}.balances{gap:5px}.balances div{padding:10px 7px}.balances strong{font-size:18px}.console .ledger{grid-template-columns:1fr}.console .ledger article{margin:5px 0}.desk-list{padding:5px}.heading h1{font-size:31px}}@media (max-height: 750px) and (min-width: 701px){.content{padding-top:10px}.heading{margin-bottom:10px}.ticket{padding:8px 10px 2px}.patient{margin:5px 0}.patient img{width:38px;height:38px}.phone-status{padding:3px 12px 0}.brand{padding:0 9px;gap:4px}.brand small{font-size:9px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}.ticket-foot button.shift{margin-left:auto;color:inherit;font-size:11px;font-weight:400;padding:0 5px}.device{background:radial-gradient(ellipse at top right,#d9eddf 0,transparent 48%),#f7faf6}.device .scroll{padding-bottom:calc(80px + env(safe-area-inset-bottom))}.device .app-nav{position:absolute;inset:auto 14px calc(16px + env(safe-area-inset-bottom));padding:4px;isolation:isolate;border:1px solid #ffffffdf;border-radius:30px;background:#eef8f2b8;backdrop-filter:blur(24px) saturate(180%);-webkit-backdrop-filter:blur(24px) saturate(180%);box-shadow:inset 0 1px 1px #fff,0 5px 20px #23473628}.nav-slider{position:absolute;inset:4px auto 4px 4px;width:calc(50% - 4px);z-index:-1;border-radius:inherit;background:#ffffffd9;box-shadow:0 1px 6px #3c65501c;transition:transform .38s cubic-bezier(.2,1.28,.35,1)}.nav-slider.right{transform:translate(100%)}@media (prefers-reduced-motion: reduce){.nav-slider{transition:none}}.option-set{border:0;margin:16px 0;padding:0;min-width:0}.option-set legend{font-weight:700;margin-bottom:8px}.option-set>div{display:flex;flex-wrap:wrap;gap:6px}.option-set label{display:inline-flex;position:relative;cursor:pointer}.option-set input{position:absolute;opacity:0;width:1px;height:1px}.option-set span{display:grid;place-items:center;min-height:44px;padding:6px 10px;background:#fff;border:1px solid #bccfc2;border-radius:12px;font-size:13px}.option-set input:checked+span{background:#24513f;color:#fff}.option-set input:focus-visible+span{outline:3px solid #668e36;outline-offset:2px}.pet-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}.pet-gallery article{overflow:hidden;display:grid;background:#fff;border-radius:18px;padding-bottom:12px}.pet-gallery img{width:100%;aspect-ratio:1.5;object-fit:cover}.pet-gallery strong,.pet-gallery small{margin:5px 12px 0}.owner-progress{border-left:4px solid #40755c;background:#e5f1e8;padding:14px;margin:12px 0;border-radius:10px}.owner-progress h2{margin:4px 0}.owner-progress p{font-size:14px}textarea{resize:vertical}.management{display:grid;grid-template-columns:152px minmax(0,1fr);gap:22px}.management nav{display:flex;flex-direction:column;align-self:start;gap:4px}.management nav button{text-align:left;padding:8px 14px;border-radius:9px}.management nav button[aria-current]{background:#204d3d;color:#fff}.management section{min-width:0}.management input[type=search]{margin:14px 0}.table-scroll{overflow-x:auto;margin-bottom:16px}.table-scroll table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}.table-scroll th,.table-scroll td{text-align:left;padding:9px;border-bottom:1px solid var(--rule)}.table-scroll th{background:#e9f0e8}.table-scroll td button{color:#245e47;text-decoration:underline}.device .app-nav button{flex-direction:column;gap:1px;padding:2px}@media (max-width: 700px){.management{grid-template-columns:minmax(0,1fr);gap:12px}.management nav{flex-direction:row;flex-wrap:wrap}}
