.patient-page{background:radial-gradient(ellipse at 10% 0%,#e1f2e7,transparent 45%),radial-gradient(ellipse at 95% 40%,#fff,transparent 55%),#faf8f1!important;color:#26463c;max-width:740px!important;margin:auto;display:flex;flex-direction:column;height:100dvh;overflow:hidden}.patient-header{padding:18px 22px 14px;display:flex;align-items:center;gap:14px;border-bottom:1px solid #dfe8db;background:#ffffff77;flex:none}.patient-header h1{font-size:19px;margin:0;letter-spacing:-.025em}.patient-header small{font-size:10px;color:#748b7b;display:block;margin-top:3px}.patient-header .tx-button{margin-left:auto;font-size:12px;background:#fff}.patient-modes{display:flex;background:#eaf0e5;padding:4px;border-radius:14px;gap:4px}.patient-modes button{flex:1;min-height:40px;border:0;border-radius:11px;font-size:13px;color:#66816e;background:transparent;cursor:pointer}.patient-modes [aria-pressed=true]{background:#fff;color:#245d46;box-shadow:0 3px 12px #33492e09;font-weight:600}.patient-settings{padding:14px 22px 12px;flex:none;display:flex;flex-direction:column;gap:10px}.patient-voice-settings{display:flex;align-items:center;gap:7px;font-size:11px;color:#6c816f}.patient-voice-settings select{flex:1;min-width:0;min-height:36px;background:#ffffff80;border:1px solid #e1e7db;border-radius:10px;padding:5px 8px;color:#476a50;font-size:11px}.patient-voice-settings button{border:0;background:none;color:#587a60;min-height:36px;font-size:11px;cursor:pointer}.patient-log{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:24px;padding:18px 22px 28px!important;scrollbar-width:thin}.patient-message{max-width:91%;align-self:flex-start}.patient-message small{display:block;font-size:10px;color:#859784;margin-bottom:7px}.patient-message p{padding:18px 20px;background:#ffffffeb;border:1px solid #fff;border-radius:5px 20px 20px 20px;margin:0;font-size:16px;line-height:1.85;white-space:pre-wrap;color:#335644;box-shadow:0 5px 20px #536e3c04}.patient-self{align-self:flex-end}.patient-self small{text-align:right}.patient-self p{background:#e1eee0;color:#32563a;border-radius:20px 5px 20px 20px;border-color:#d9e8d4}.patient-welcome{flex:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:12px 8px 24px;position:relative}.patient-welcome img{width:160px;height:150px;object-fit:contain;opacity:.94;margin-bottom:24px;mask-image:linear-gradient(0deg,transparent,#000 20%)}.patient-welcome h2{font-size:26px;line-height:1.6;margin:0;font-weight:600;letter-spacing:-.04em}.patient-welcome p{font-size:13px;color:#7c8c75;line-height:1.7;margin:10px 0 24px}.patient-welcome .tx-actions{gap:8px}.patient-welcome .tx-button{font-size:11px;background:#fff9;border-radius:999px;min-height:38px;padding:9px 12px;border-color:#e2e9da}.patient-composer{flex:none;padding:14px 22px max(18px,env(safe-area-inset-bottom));background:#fffdf8e8;border-top:1px solid #dfe8db;display:flex;flex-direction:column;gap:10px}.patient-composer textarea{min-height:64px;max-height:120px;font-size:16px;background:#fff;border-color:#d8e3d1;resize:vertical}.patient-composer .tx-actions{align-items:center;gap:8px}.patient-composer .tx-button{font-size:12px;padding:8px 13px}.patient-composer .tx-button.primary{margin-left:auto;background:#306a50;border-color:#306a50}.patient-status{font-size:11px;color:#57714e;margin:0;line-height:1.6}.patient-live{padding:10px 14px;border-left:2px solid #98b086;font-size:14px;color:#6d8560}.patient-disclaimer{margin:0;color:#88937e;font-size:10px;line-height:1.6}.patient-summary-page{max-width:900px!important;margin:0 auto;min-height:100dvh;height:auto!important;overflow:visible!important}.patient-summary-main{display:flex;flex-direction:column;gap:24px;padding:28px 24px 40px!important;overflow:visible!important}.summary-hero{position:relative;padding:10px 0 6px}.summary-hero h1{font-size:30px;line-height:1.5;margin:0;letter-spacing:-.035em;font-weight:600}.summary-hero p{font-size:13px;color:#7b8a73;line-height:1.7;max-width:440px;margin:8px 0 0}.summary-card{background:#fffffff0;border:1px solid #fff;border-radius:24px;padding:26px;display:flex;flex-direction:column;gap:24px;box-shadow:0 10px 30px #39522a06}.summary-field{display:flex;flex-direction:column;gap:8px}.summary-field-head{display:flex;align-items:center;gap:10px}.summary-field-head button{border:1px solid #bbceb2;color:#2b6845;background:#edf5e6;border-radius:7px;width:28px;height:28px;padding:0;font-size:13px;cursor:pointer}.summary-field-head h2{font-size:15px;flex:1;margin:0}.summary-field-head small{font-size:10px;color:#9c852b;background:#fcf5dd;border-radius:999px;padding:3px 8px}.summary-field textarea{font-size:15px;line-height:1.7;background:#f9fcf6;border-color:#e2e9dc;min-height:80px}.summary-footer{display:flex;flex-direction:column;gap:12px}.summary-footer p{font-size:11px;color:#7c8e75;margin:0;line-height:1.7}.summary-print{display:none;white-space:pre-wrap;line-height:2;font-size:14px}
@media(max-width:430px){.patient-header{padding:14px 16px;gap:10px}.patient-header h1{font-size:17px}.patient-settings{padding:12px 16px 8px}.patient-log{padding:14px 16px 22px!important;gap:20px}.patient-composer{padding:12px 16px max(16px,env(safe-area-inset-bottom))}.patient-welcome{padding:0 4px 10px}.patient-welcome h2{font-size:25px}.patient-welcome img{width:135px;height:120px;margin-bottom:16px}.patient-composer .tx-actions{flex-wrap:wrap}.patient-composer .tx-button{font-size:11px;padding:8px 10px}.patient-summary-main{padding:20px 16px 32px!important;gap:20px}.summary-card{padding:20px}.summary-hero h1{font-size:27px}}
.patient-entry{display:flex;align-items:stretch;gap:8px}.patient-entry textarea{flex:1;min-width:0}.patient-entry>.tx-button.primary{margin:0;min-width:44px;border-radius:16px;font-size:20px;background:#306a50;border-color:#306a50}.patient-composer .tx-actions{padding-right:60px}.patient-summary-page .patient-header{background:#ffffff77}
@media print{body,.patient-summary-page{background:white!important}.patient-header,.patient-summary-main{display:none!important}.summary-print{display:block;padding:20mm 16mm}.tx-sidebar{display:none!important}}

.patient-live{max-height:110px;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere}
