:root{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:#283f35;background:#f4f3ea;font-synthesis:none;--green:#3f6047;--line:#d6dacb;--muted:#667367;--paper:#fffef8;--app-height:100dvh}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #cd9e34;outline-offset:3px}[hidden]{display:none!important}a{color:var(--green);text-underline-offset:4px}p{line-height:1.75}h1,h2,h3,p{margin-top:0}button{min-height:44px}.entry{max-width:520px;min-height:100dvh;margin:auto;padding:max(30px,env(safe-area-inset-top)) 26px max(24px,env(safe-area-inset-bottom));position:relative}.wordmark{display:flex;align-items:center;gap:10px;font-weight:600;font-size:17px;margin-bottom:48px}.leafmark{display:grid;place-items:center;background:#dce5c7;color:#476341;width:36px;height:36px;border-radius:50% 50% 50% 6px;font-size:27px}.edition{margin-left:auto;font-size:12px;font-weight:400;border:1px solid #b4c0ac;padding:5px 9px;border-radius:30px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;color:#788270;margin:0 0 14px}.entry h1{font-family:"Songti SC","STSong",serif;font-weight:500;font-size:43px;line-height:1.3;letter-spacing:-1.5px;margin-bottom:20px}.entry h1 em{font-style:normal;color:#647c49}.lede{font-size:15px;color:var(--muted);margin-bottom:26px}.entry footer{font-size:12px;line-height:1.8;color:var(--muted);border-top:1px solid var(--line);margin-top:26px;padding-top:18px}.version{font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted);overflow-wrap:anywhere}.theme-options{border:0;padding:0;margin:18px 0 22px;display:grid;gap:12px;grid-template-columns:1fr 1fr}.theme-options legend{font-size:14px;margin-bottom:10px}.theme-card{display:block;position:relative;cursor:pointer;border:1px solid #c7d2b4;border-radius:15px;padding:14px 12px 12px;background:#edf0e1;min-height:132px}.theme-card.warm-card{background:#fcf0c5;border-color:#d9c88e;color:#263b56}.theme-card:has(input:checked){outline:2px solid var(--green);outline-offset:3px}.theme-card input{position:absolute;right:10px;top:10px;width:18px;height:18px;accent-color:var(--green)}.theme-art{height:44px;display:flex;align-items:center;margin-bottom:10px;gap:5px}.theme-art i{display:block;width:20px;height:36px;background:#a6b488;border-radius:90% 0 90% 0;transform:rotate(-15deg)}.theme-art i:nth-child(2){height:27px;transform:rotate(65deg);background:#758954}.warm-card .theme-art i{width:33px;height:33px;background:#eac053;border-radius:50%;transform:none}.warm-card .theme-art i:nth-child(2){width:28px;height:28px;background:#e49770;border:2px solid #344764;border-radius:50% 50% 8px 8px}.theme-card strong{font-size:15px;display:block}.theme-card small{font-size:11px;display:block;margin-top:5px;color:#6a735e}.primary,.secondary{width:100%;min-height:49px;padding:12px 16px;border-radius:28px;border:1px solid var(--green);font-weight:600}.primary{background:var(--green);color:white}.secondary{background:transparent;color:var(--green);margin-top:10px}.fineprint{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 0 0}.field{display:flex;flex-direction:column;gap:8px;margin:16px 0;font-size:14px;font-weight:500}.field input,.field select,.field textarea,.filters select{background:white;border:1px solid #cbd1c3;border-radius:8px;padding:12px;font-weight:400;width:100%;min-height:46px;color:#283f35;font-size:16px}.field textarea{resize:vertical;line-height:1.7;min-height:134px}.field small{font-weight:400;color:var(--muted);line-height:1.6}.error{color:#923f2c;background:#fff1e9;padding:12px;border-radius:8px;line-height:1.7;font-size:14px}.success{color:#35593f;background:#edf4e5;padding:14px;border-radius:10px}.reviewbar{height:46px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d6dacb;background:#f3f2e9;padding:0 10px;flex-shrink:0}.reviewbar button{border:0;background:transparent;color:#3b5842;font-size:13px;padding:0 8px;min-height:40px}.review-actions{display:flex;gap:4px}.review-actions button:first-child{background:#e1e7d5;border-radius:18px;min-height:32px;padding:0 13px}.reviewbar #exit-experience{font-size:24px;display:flex;align-items:center;gap:6px}.reviewbar #exit-experience span{font-size:12px}#experience{height:var(--app-height);max-width:520px;margin:auto;display:flex;flex-direction:column;background:var(--paper);padding-top:env(safe-area-inset-top)}#patient{width:100%;flex:1;border:0;min-height:0;background:var(--paper)}body:has(#experience:not([hidden])){overflow:hidden}dialog{color:#283f35;background:var(--paper);border:1px solid #e0e3d6;border-radius:22px 22px 0 0;max-width:520px;width:100%;margin:auto auto 0;padding:0 22px max(22px,env(safe-area-inset-bottom));max-height:90dvh;overflow:auto;overscroll-behavior:contain;box-shadow:0 -12px 70px #1b32212a}dialog::backdrop{background:#1d2a2580;backdrop-filter:blur(3px)}.sheet-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;background:var(--paper);z-index:2;padding:18px 0 12px;gap:8px}.sheet-head h2{font-size:20px;margin:0;font-weight:600}.icon-button{border:0;background:transparent;font-size:25px;width:44px;color:#62705e}.scene-label{background:#eef0e6;border-left:3px solid #9cab7b;padding:12px 14px;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.scene-label small{display:block;color:var(--muted);font-size:11px}.checks{display:flex;flex-wrap:wrap;gap:10px 18px;margin:18px 0}.checks label{display:flex;align-items:center;gap:7px;min-height:34px;font-size:14px}.checks input{width:19px;height:19px;accent-color:var(--green)}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0 0}.tool-grid button{border:1px solid var(--line);background:#f5f6ef;padding:12px;border-radius:10px;font-size:14px;color:var(--green)}.receipt-card{border:1px solid var(--line);border-radius:12px;padding:17px;margin-bottom:12px;overflow-wrap:anywhere}.receipt-card p{white-space:pre-wrap;font-size:14px;margin-bottom:10px}.receipt-card small{display:block;line-height:1.8;color:var(--muted)}.receipt-id{font-family:ui-monospace,monospace;font-size:14px;letter-spacing:.5px}.tag{display:inline-block;border:1px solid #bcc9b3;color:#4d6847;padding:3px 8px;border-radius:30px;font-size:11px}.toast{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:90%;padding:12px 18px;background:#253d32;color:white;border-radius:14px;box-shadow:0 4px 20px #0002;z-index:20;font-size:14px;text-align:center}.row-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.row-actions button,.small-button{border:1px solid var(--line);color:var(--green);background:#f5f6ef;border-radius:9px;padding:9px 14px;min-height:42px}.status-line{font-size:12px;color:var(--muted);margin-top:10px}.admin{max-width:1120px;margin:0 auto;padding:30px 24px}.admin-header{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-bottom:30px}.admin-header h1{font-size:27px;font-weight:500;margin-bottom:6px}.admin-header p{color:var(--muted);font-size:13px;margin:0}.admin .login-card{max-width:430px;padding:24px;border:1px solid var(--line);background:var(--paper);border-radius:15px}.filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:18px;background:#e9eddf;border-radius:12px;margin-bottom:18px}.filters label{font-size:12px;display:flex;flex-direction:column;gap:7px;flex:1;min-width:140px}.filters select{font-size:14px;padding:9px}.feedback-table{width:100%;border-collapse:collapse;font-size:14px;background:var(--paper)}.feedback-table td,.feedback-table th{border-bottom:1px solid var(--line);padding:15px 12px;text-align:left;vertical-align:top}.feedback-table th{font-size:12px;color:var(--muted);font-weight:500}.feedback-table td.message{max-width:370px;white-space:pre-wrap;overflow-wrap:anywhere}.feedback-table td small{display:block;color:var(--muted);font-size:11px;margin-top:6px;line-height:1.7}.history{border-left:1px solid #bbc8ab;padding-left:16px}.history p{font-size:14px;white-space:pre-wrap;margin-bottom:4px}.history small{color:var(--muted);font-size:11px}.pagination{display:flex;justify-content:space-between;align-items:center;margin:18px 0;font-size:13px}.detail-message{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f5ed;padding:18px;border-radius:10px;line-height:1.8}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media(min-width:700px){dialog{margin:auto;border-radius:22px}.entry{padding-top:42px}#experience{box-shadow:0 0 60px #263b2222}.wordmark{margin-bottom:44px}}@media(max-width:650px){.admin{padding:22px 16px}.admin-header{align-items:flex-start}.feedback-table thead{display:none}.feedback-table,.feedback-table tbody,.feedback-table tr,.feedback-table td{display:block}.feedback-table tr{border:1px solid var(--line);border-radius:12px;margin-bottom:14px;padding:8px}.feedback-table td{border:0;padding:8px;max-width:none!important}.feedback-table td.message{padding-top:0}.two-columns{grid-template-columns:1fr}.entry h1{font-size:40px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}

body[data-theme="warm"]{--green:#243652;--paper:#fffcf3;--line:#ded7c7;--muted:#62616a}body[data-theme="warm"] .reviewbar{background:#fbefc6;border-color:#e0d4ad}body[data-theme="warm"] .reviewbar button{color:#243652}body[data-theme="warm"] .review-actions button:first-child{background:#f8d976}body[data-theme="warm"] .primary,body[data-theme="warm"] .secondary{border-radius:8px}body[data-theme="warm"] .scene-label{background:#fff3cc;border-left-color:#e0bd56}dialog{max-height:min(90dvh,calc(var(--app-height) - 16px))}
