:root{color:#183c34;background:#f4f2ec;font-family:Avenir Next,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #183c34;--ink-soft: #49655c;--green: #145c4b;--green-deep: #0c4437;--mint: #dcebe2;--cream: #f6efe0;--paper: #fdfcf8;--line: #dde1d8;--orange: #d27245;--orange-soft: #f7e5d8;--shadow: 0 20px 60px rgba(25, 59, 50, .08)}*{box-sizing:border-box}html{min-width:320px;min-height:100%}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 10% 10%,rgba(208,224,212,.8),transparent 26rem),linear-gradient(180deg,#f6f4ef,#eeece5)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #d87a49;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.6}a{color:var(--green)}h1,h2,h3,p{margin:0}input,textarea,select{width:100%;min-height:50px;border:1px solid #ccd4ca;border-radius:12px;background:#fff;color:var(--ink);padding:12px 14px;font-size:16px;outline:none;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}textarea{resize:vertical;min-height:94px}input:focus,textarea:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #145c4b1f}.brand{display:inline-flex;align-items:center;gap:12px;color:var(--ink)}.brand>span:last-child{display:flex;flex-direction:column;gap:2px}.brand strong{font-size:21px;letter-spacing:.08em}.brand small{font-size:10px;color:var(--ink-soft);letter-spacing:.2em}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px 14px 14px 4px;background:var(--green);box-shadow:0 8px 20px #145c4b3d}.brand-mark svg{width:29px;fill:none;stroke:var(--cream);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.brand-compact strong{font-size:18px}.brand-compact .brand-mark{width:36px;height:36px;border-radius:11px 11px 11px 4px}.brand-compact .brand-mark svg{width:24px}.eyebrow{display:block;color:var(--orange);font-size:10px;font-weight:800;letter-spacing:.2em;margin-bottom:9px}.eyebrow.light{color:#bad4c8}.button{border:0;border-radius:14px;min-height:50px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.button:not(:disabled):hover{transform:translateY(-1px)}.button-primary{background:var(--green);color:#fff;box-shadow:0 10px 22px #145c4b2e}.button-primary:not(:disabled):hover{background:var(--green-deep)}.button-dark{background:var(--ink);color:#fff}.button-outline{border:1px solid #cbd5ca;background:#ffffffb8;color:var(--ink)}.button-quiet{background:var(--mint);color:var(--green)}.button-full{width:100%;min-height:50px}.button-small{min-height:44px;padding:0 14px;font-size:13px}.text-button{border:0;min-height:44px;background:transparent;color:var(--green);padding:5px 7px;font-size:13px;font-weight:700}.text-button.danger{color:#a34234}.spinner{width:18px;height:18px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.18fr) minmax(430px,.82fr);background:var(--green-deep);position:relative;overflow:hidden}.auth-intro{color:#fff;padding:54px clamp(36px,7vw,110px);display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;position:relative;z-index:1}.auth-intro .brand,.auth-intro .brand small{color:#fff}.auth-intro .brand-mark{background:var(--cream);box-shadow:none}.auth-intro .brand-mark svg{stroke:var(--green)}.auth-copy{max-width:720px;margin:7vh 0;animation:rise-in .62s ease both}.auth-copy h1{font-family:Songti SC,STSong,"Noto Serif CJK SC",serif;font-size:clamp(48px,5.6vw,82px);line-height:1.2;font-weight:600;letter-spacing:-.045em}.auth-copy p{margin-top:30px;color:#ffffffb8;max-width:560px;font-size:16px;line-height:1.9}.auth-features{display:flex;flex-wrap:wrap;gap:12px}.auth-features span{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid rgba(255,255,255,.13);border-radius:999px;font-size:12px;color:#ffffffc7}.auth-features i{color:#e8b083;font-size:9px;font-style:normal;letter-spacing:.08em}.auth-panel{min-height:100vh;background:var(--paper);display:flex;align-items:center;justify-content:center;padding:36px clamp(32px,5vw,80px);border-radius:42px 0 0 42px;position:relative;z-index:2;box-shadow:-30px 0 80px #031d1633}.auth-panel-inner{width:min(100%,430px);animation:rise-in .65s .1s ease both}.mobile-logo{display:none;margin-bottom:40px}.auth-panel h2{font-family:Songti SC,STSong,"Noto Serif CJK SC",serif;font-size:38px;font-weight:600;margin-bottom:10px}.auth-hint{color:var(--ink-soft);font-size:15px;line-height:1.75;margin-bottom:27px}.segmented{display:grid;grid-template-columns:1fr 1fr;padding:5px;gap:4px;border-radius:14px;background:#e9ece5;margin-bottom:24px}.segmented button{border:0;border-radius:10px;min-height:48px;padding:11px;background:transparent;color:#718078;font-size:15px;font-weight:700}.segmented button.active{background:#fff;color:var(--ink);box-shadow:0 4px 14px #1e393014}.form-stack{display:flex;flex-direction:column;gap:18px}.form-stack label{display:flex;flex-direction:column;gap:8px}.form-stack label>span,.client-picker legend{color:#3f5a51;font-size:14px;font-weight:800}.auth-form{margin-bottom:24px}.video-url-field small{color:#6b7f75;font-size:12px;line-height:1.7}.auth-submit{margin-top:5px}.auth-forgot{display:flex;align-items:center;justify-content:flex-end;gap:2px;margin:-9px 0 15px;color:#718078;font-size:13px}.auth-forgot .text-button{min-height:44px;padding-right:0}.auth-legal{color:#687a72;font-size:12px;line-height:1.75;text-align:center}.recovery-note{color:#687a72;font-size:13px;line-height:1.75;padding:13px 14px;border-radius:12px;background:#edf3ee}.recovery-success{display:flex;flex-direction:column;align-items:center;gap:15px;text-align:center}.recovery-success-mark{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;color:#fff;background:var(--green);font-size:25px;font-weight:800}.recovery-success h3{font-family:Songti SC,STSong,serif;font-size:24px;font-weight:600}.recovery-success>p{color:var(--ink-soft);font-size:14px;line-height:1.8}.recovery-success .recovery-note{width:100%;text-align:left}.temporary-password{display:flex;flex-direction:column;gap:17px;color:var(--ink-soft);font-size:14px;line-height:1.8}.temporary-password strong{color:var(--ink)}.temporary-password-value{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.temporary-password-value input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:18px;font-weight:800;letter-spacing:.055em}.auth-ambient{position:absolute;border-radius:50%;border:1px solid rgba(249,235,202,.09);pointer-events:none}.auth-ambient-one{width:580px;height:580px;left:-170px;bottom:-220px}.auth-ambient-two{width:380px;height:380px;left:230px;top:-220px;background:#d0e2d30a}@keyframes rise-in{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.boot-screen{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:26px;color:var(--green)}.app-page{min-height:100vh}.top-bar{height:74px;max-width:1240px;margin:0 auto;padding:0 28px;display:flex;align-items:center;position:relative;z-index:10}.top-role{margin-left:15px}.top-role span{font-size:12px;font-weight:700;letter-spacing:.08em;color:var(--green);background:#dfebe3;padding:5px 9px;border-radius:99px}.account-wrap{margin-left:auto;position:relative}.top-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.top-actions .account-wrap{margin-left:0}.message-entry{position:relative;min-height:44px;border:1px solid #d3dbd2;border-radius:99px;background:#ffffffb8;color:var(--green);padding:0 13px 0 11px;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:800;transition:background .15s ease,border-color .15s ease}.message-entry:hover{border-color:#aabcb2;background:#fff}.message-entry svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.message-entry b{position:absolute;top:-6px;right:-4px;min-width:20px;height:20px;border:2px solid var(--paper);border-radius:99px;background:#c85d38;color:#fff;padding:0 5px;display:grid;place-items:center;font-size:9px;line-height:1}.account-button{border:0;background:#ffffffa6;border-radius:99px;padding:5px 10px 5px 5px;display:flex;align-items:center;gap:9px;color:var(--ink)}.account-avatar,.client-avatar,.check-avatar{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:50%;background:var(--cream);color:var(--green);font-weight:800}.account-name{font-size:13px;font-weight:700}.account-chevron{color:#8b9a93;font-size:14px}.account-menu{position:absolute;top:48px;right:0;z-index:30;width:150px;padding:6px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}.account-menu button{display:block;width:100%;border:0;border-radius:9px;background:transparent;text-align:left;padding:10px 12px;color:var(--ink);font-size:13px}.account-menu button:hover{background:#f2f4ef}.modal-card.messages-modal{width:min(100%,980px);max-height:min(92vh,800px);padding:0;overflow:hidden}.modal-card.messages-patient-modal{width:min(100%,760px)}.messages-modal>.modal-head{margin:0;padding:23px 26px 17px;border-bottom:1px solid var(--line)}.messages-modal>.modal-head h2{font-size:27px}.messages-shell{height:min(72vh,620px);min-height:0;display:grid;grid-template-columns:minmax(250px,310px) minmax(0,1fr);overflow:hidden}.messages-shell.is-patient{grid-template-columns:minmax(0,1fr)}.messages-inbox{min-width:0;display:flex;flex-direction:column;border-right:1px solid var(--line);background:#f3f4ee}.messages-inbox-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:56px;border-bottom:1px solid #e1e5dd;padding:0 16px}.messages-inbox-head>span{color:var(--ink);font-size:13px;font-weight:800}.messages-inbox-head small{color:var(--orange);font-size:10px;font-weight:700}.conversation-list{min-height:0;overflow-y:auto;padding:6px}.conversation-row{width:100%;min-height:70px;border:0;border-radius:13px;background:transparent;color:var(--ink);padding:10px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left}.conversation-row:hover{background:#ffffffad}.conversation-row.active{background:#fff;box-shadow:0 7px 20px #1e393014}.conversation-info{min-width:0}.conversation-info>span{display:flex;align-items:center;justify-content:space-between;gap:7px}.conversation-info strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.conversation-info time{flex:0 0 auto;color:#9aa39e;font-size:9px}.conversation-info small{display:block;overflow:hidden;color:#7d8a83;font-size:10px;line-height:1.5;margin-top:4px;text-overflow:ellipsis;white-space:nowrap}.conversation-unread{min-width:19px;height:19px;border-radius:99px;background:#c85d38;color:#fff;padding:0 5px;display:grid;place-items:center;font-size:9px}.messages-list-loading,.messages-list-empty{min-height:180px;display:grid;place-content:center;justify-items:center;gap:7px;color:#7b8981;text-align:center;padding:20px}.messages-list-empty strong{color:var(--ink);font-family:Songti SC,STSong,serif;font-size:17px}.messages-list-empty span{font-size:11px}.messages-conversation{min-width:0;min-height:0;display:flex;flex-direction:column;background:radial-gradient(circle at 100% 100%,rgba(220,235,226,.55),transparent 18rem),#fbfaf6}.messages-conversation.is-placeholder{display:grid;place-items:center}.messages-placeholder{max-width:310px;display:flex;flex-direction:column;align-items:center;text-align:center;color:#7c8982;padding:24px}.messages-placeholder>span{width:60px;height:60px;border-radius:20px 20px 20px 7px;background:var(--mint);color:var(--green);display:grid;place-items:center;margin-bottom:16px}.messages-placeholder svg{width:29px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.messages-placeholder strong{color:var(--ink);font-family:Songti SC,STSong,serif;font-size:20px}.messages-placeholder p{margin-top:7px;font-size:12px;line-height:1.7}.messages-conversation-head{flex:0 0 auto;min-height:60px;border-bottom:1px solid #e6e8e1;background:#ffffffc7;padding:9px 18px;display:flex;align-items:center;gap:10px}.messages-conversation-head>div{min-width:0}.messages-conversation-head strong,.messages-conversation-head span{display:block}.messages-conversation-head strong{font-size:14px}.messages-conversation-head>div>span{color:#849089;font-size:10px;margin-top:2px}.messages-back{display:none;flex:0 0 auto;width:42px;height:42px;border:0;border-radius:50%;background:#edf1eb;color:var(--green);font-size:30px;line-height:1}.message-safety{flex:0 0 auto;background:#fff3e6;color:#74513a;padding:8px 18px;font-size:10px;line-height:1.6}.messages-list{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:18px;display:flex;flex-direction:column;gap:13px}.messages-thread-loading,.messages-thread-empty{margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#7b8981;text-align:center;font-size:11px}.messages-thread-empty{padding:22px}.messages-thread-empty strong{color:var(--ink);font-family:Songti SC,STSong,serif;font-size:18px}.messages-thread-empty p{max-width:280px;line-height:1.7}.message-bubble{width:fit-content;max-width:min(76%,540px);border-radius:17px;padding:10px 13px 12px}.message-bubble.is-theirs{align-self:flex-start;border-bottom-left-radius:5px;background:#fff;box-shadow:0 7px 22px #1f393112}.message-bubble.is-mine{align-self:flex-end;border-bottom-right-radius:5px;background:#e1eee5}.message-bubble-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#87938c;font-size:9px;margin-bottom:5px}.message-bubble-meta>span{color:#52685f;font-weight:800}.message-text{color:#263f36;font-size:14px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.message-audio-card{min-width:min(280px,55vw);display:flex;align-items:flex-start;gap:9px}.message-audio-card>span{flex:0 0 auto;width:32px;height:32px;border-radius:11px;background:var(--green);color:#fff;display:grid;place-items:center;font-family:Songti SC,STSong,serif;font-size:13px}.message-audio-card>div{min-width:0;flex:1}.message-audio-card strong{display:block;color:#405b50;font-size:11px;margin:1px 0 5px}.message-audio-card audio,.recording-review audio{width:100%;height:34px}.message-composer{flex:0 0 auto;border-top:1px solid #e2e6de;background:#ffffffeb;padding:13px 18px 16px}.composer-tabs{max-width:330px;margin:0 auto 12px}.message-compose-pane[hidden]{display:none}.audio-composer{max-width:520px;margin:0 auto}.record-main-button{width:100%;min-height:74px;border:1px solid #cbd9cf;border-radius:17px;background:#eff5ef;color:var(--green);padding:12px 18px;display:flex;align-items:center;justify-content:center;gap:13px;text-align:left}.record-main-button:hover{border-color:var(--green);background:#e5f0e7}.record-icon{flex:0 0 auto;width:43px;height:43px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;box-shadow:0 7px 18px #145c4b30}.record-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.record-main-button strong,.record-main-button small{display:block}.record-main-button strong{font-size:15px}.record-main-button small{color:#71837a;font-size:10px;margin-top:4px}.recording-tip{color:#7a8780;font-size:10px;line-height:1.6;text-align:center;margin-top:8px}.recording-status{min-height:90px;border-radius:17px;background:#eff3ed;display:flex;align-items:center;justify-content:center;gap:10px;color:#61736a;font-size:13px}.recording-live{border-radius:17px;background:#fff1e8;padding:13px}.recording-live-copy{display:flex;align-items:center;gap:10px;color:#7a4a31}.recording-pulse{flex:0 0 auto;width:17px;height:17px;border-radius:50%;background:#c85d38;box-shadow:0 0 0 7px #c85d3821;animation:recording-pulse 1.2s ease-in-out infinite}.recording-live-copy>div{min-width:0;flex:1}.recording-live-copy strong{display:block;font-size:14px}.recording-live-copy p{color:#9a745f;font-size:10px;margin-top:2px}.recording-live-copy time{font-family:Avenir Next,monospace;font-size:14px;font-weight:800}.record-stop-button{width:100%;min-height:52px;border:0;border-radius:13px;background:#b94f30;color:#fff;font-size:15px;font-weight:800;margin-top:11px}.recording-review{border:1px solid #dce2da;border-radius:17px;background:#fafbf8;padding:14px}.recording-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.recording-review-head strong,.recording-review-head span{display:block}.recording-review-head strong{font-size:13px}.recording-review-head span{color:#7d8b84;font-size:10px;margin-top:3px}.send-recording-button{min-height:52px;margin-top:11px}.recording-unsupported{border:1px dashed #d7c6b9;border-radius:16px;background:#fbf4ed;padding:18px;text-align:center}.recording-unsupported strong,.recording-unsupported span{display:block}.recording-unsupported strong{color:#7e4d32;font-size:13px}.recording-unsupported span{color:#90705f;font-size:10px;margin-top:5px}.text-composer{max-width:620px;margin:0 auto}.text-composer>label{color:#52675e;font-size:11px;font-weight:800}.text-composer textarea{min-height:68px;margin-top:7px}.text-composer-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px}.text-composer-foot>span{color:#9aa39e;font-size:9px}.text-composer-foot .button{min-width:122px;min-height:48px}@keyframes recording-pulse{50%{box-shadow:0 0 0 11px #c85d380d}}.client-layout,.admin-layout{max-width:1240px;margin:0 auto;padding:30px 28px 60px}.welcome-row{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin:20px 0 28px}.welcome-row h1,.admin-heading h1{font-family:Songti SC,STSong,"Noto Serif CJK SC",serif;font-size:clamp(30px,3.5vw,48px);font-weight:600;line-height:1.3;letter-spacing:-.03em}.welcome-row p,.admin-heading p{color:var(--ink-soft);margin-top:8px;font-size:13px}.daily-note{max-width:270px;border-left:2px solid var(--orange);padding-left:15px}.daily-note span{color:var(--orange);font-size:10px;font-weight:800;letter-spacing:.12em}.daily-note p{color:#6b7872;font-size:12px;line-height:1.7;margin-top:4px}.loading-card{min-height:180px;border:1px solid var(--line);border-radius:20px;background:#fff9;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--ink-soft)}.progress-hero{border-radius:28px;background:var(--green);color:#fff;padding:36px 42px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:36px;overflow:hidden;position:relative;box-shadow:0 20px 50px #145c4b2e}.progress-ring{--progress: 0%;flex:0 0 auto;width:132px;height:132px;padding:8px;border-radius:50%;background:conic-gradient(var(--cream) var(--progress),rgba(255,255,255,.15) 0);position:relative;z-index:1}.progress-ring:after{content:"";position:absolute;top:8px;right:8px;bottom:8px;left:8px;border-radius:inherit;background:var(--green)}.progress-ring>div{position:absolute;top:8px;right:8px;bottom:8px;left:8px;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.progress-ring strong{font-size:32px;line-height:1}.progress-ring span{color:#bcd0c7;font-size:10px;margin-top:7px;letter-spacing:.08em}.progress-copy{position:relative;z-index:1}.progress-copy h2{font-family:Songti SC,STSong,serif;font-size:clamp(24px,3vw,36px);font-weight:600;line-height:1.35}.progress-copy p{color:#c7d9d1;line-height:1.8;margin-top:10px;font-size:14px}.hero-action{position:relative;z-index:1}.button-hero{min-width:142px;min-height:58px;padding:0 24px;border-radius:16px;background:var(--cream);color:var(--green-deep);font-size:15px;box-shadow:0 12px 28px #03201833}.button-hero:not(:disabled):hover{background:#fffaf0}.hero-complete-mark{width:58px;height:58px;border:1px solid rgba(255,255,255,.24);border-radius:50%;display:grid;place-items:center;color:var(--cream);font-size:30px;font-weight:700;position:relative;z-index:1}.hero-pattern{position:absolute;width:420px;height:420px;right:-150px;bottom:-260px;border:1px solid rgba(255,255,255,.1);border-radius:50%;box-shadow:0 0 0 52px #ffffff06,0 0 0 110px #ffffff06}.client-grid,.admin-content-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.75fr);gap:18px;margin-top:18px;align-items:start}.content-section{border:1px solid var(--line);border-radius:22px;background:#fffc;padding:25px;box-shadow:0 12px 40px #2a3f370a}.section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.section-head h2{font-family:Songti SC,STSong,serif;font-size:25px;font-weight:600}.section-count{padding:5px 10px;border-radius:99px;background:#ecede7;color:#6d7a74;font-size:11px;font-weight:700}.task-list{display:flex;flex-direction:column;gap:14px}.task-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;padding:20px;border:1px solid #e1e4dc;border-radius:16px;background:var(--paper);transition:border-color .16s ease,transform .16s ease}.task-card:hover{border-color:#bfcfc4;transform:translateY(-1px)}.task-card.is-done{background:#edf3ed}.task-index{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#e9ece5;color:var(--ink-soft);font-size:13px;font-weight:800}.is-done .task-index{background:var(--green);color:#fff}.task-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.task-title-row h3{font-size:19px;line-height:1.4}.category-pill{display:inline-block;border-radius:99px;padding:4px 8px;background:var(--orange-soft);color:#a54f2c;font-size:10px;font-weight:800;letter-spacing:.04em;width:fit-content}.task-description{color:#536b62;font-size:14px;line-height:1.75;margin:9px 0 14px}.task-video-link,.checkin-video-link{width:fit-content;min-height:44px;border:1px solid #bfd4c8;border-radius:12px;background:#edf5ef;color:var(--green-deep);display:inline-flex;align-items:center;gap:8px;padding:8px 12px;font-size:13px;font-weight:800;text-decoration:none}.task-video-link{margin:-3px 0 13px}.task-video-link>span,.checkin-video-link>span{color:var(--orange);font-size:12px}.task-video-link small,.checkin-video-link small{color:#6e8177;font-size:10px;font-weight:600}.checkin-video-link{width:100%;min-height:52px;justify-content:flex-start}.checkin-video-link small{margin-left:auto}.task-progress-label{display:flex;align-items:baseline;justify-content:space-between;gap:14px}.task-progress-label strong{color:var(--ink);font-size:15px}.task-progress-label span{color:#6c7d75;font-size:12px}.task-meta{display:flex;gap:15px;color:#74847c;font-size:12px;margin-top:9px}.mini-progress{width:100%;height:7px;border-radius:99px;background:#e4e7e0;margin-top:8px;overflow:hidden}.mini-progress i{display:block;height:100%;border-radius:inherit;background:var(--green)}.task-card .button{min-width:128px;min-height:56px;padding:0 22px;border-radius:15px;font-size:15px}.task-card .button:disabled{opacity:1}.safety-notice{display:flex;align-items:flex-start;gap:11px;border:1px solid #efd5bc;border-radius:14px;background:#fff6e9;padding:13px 15px;margin:-2px 0 16px}.safety-notice>strong{flex:0 0 auto;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--orange);color:#fff;font-size:14px}.safety-notice p{color:#71543f;font-size:13px;line-height:1.7}.safety-notice b{color:#5e3f2c}.timeline{display:flex;flex-direction:column}.timeline-item{display:grid;grid-template-columns:12px 1fr;gap:12px;position:relative;padding:0 0 22px}.timeline-item:not(:last-child):before,.drawer-timeline>div:not(:last-child):before{content:"";position:absolute;left:4px;top:12px;bottom:-2px;width:1px;background:#d8ded6}.timeline-dot{width:9px;height:9px;margin-top:4px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 4px var(--orange-soft);position:relative;z-index:1}.timeline-top{display:flex;justify-content:space-between;gap:12px}.timeline-top h3{font-size:14px}.timeline-top span{flex:0 0 auto;color:var(--green);font-size:12px;font-weight:800}.timeline-item p{color:#5d7168;font-size:13px;line-height:1.7;margin:5px 0}.timeline-item time{color:#75857d;font-size:11px}.timeline-item a,.drawer-timeline a{display:block;font-size:10px;margin-top:5px;text-decoration:none}.empty-state{min-height:170px;border:1px dashed #d6dbd2;border-radius:16px;padding:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-icon{width:44px;height:44px;border-radius:14px;background:#e9eee8;display:grid;place-items:center;margin-bottom:13px}.empty-icon svg{width:26px;fill:none;stroke:var(--green);stroke-width:2;stroke-linecap:round}.empty-state h3{font-family:Songti SC,STSong,serif;font-size:18px;font-weight:600}.empty-state p{color:#7b8881;font-size:12px;line-height:1.7;margin:7px 0 16px}.app-footer{color:#8b9690;text-align:center;font-size:10px;letter-spacing:.05em;padding:30px}.admin-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:20px 0 26px}.heading-actions{display:flex;gap:10px}.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:20px;background:#ffffffb8;overflow:hidden}.admin-stats article{padding:22px 24px;border-right:1px solid var(--line)}.admin-stats article:last-child{border-right:0}.admin-stats span{display:block;color:#718078;font-size:11px}.admin-stats strong{display:block;font-family:Songti SC,STSong,serif;font-size:36px;font-weight:500;margin:8px 0 3px}.admin-stats small{color:#98a19c;font-size:10px}.admin-stats .stat-attention{background:var(--green);color:#fff}.admin-stats .stat-attention span,.admin-stats .stat-attention small{color:#bfd3c9}.admin-tabs{display:flex;gap:28px;margin:24px 0 16px;border-bottom:1px solid var(--line)}.admin-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:#7c8982;font-size:13px;font-weight:700;padding:10px 3px 13px}.admin-tabs button.active{color:var(--ink);border-color:var(--green)}.admin-content-grid{margin-top:0}.attention-list{display:flex;flex-direction:column;gap:3px}.attention-row{width:100%;border:0;border-bottom:1px solid #edf0ea;background:transparent;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 2px;text-align:left;color:var(--ink)}.attention-row:last-child{border-bottom:0}.attention-info{min-width:0}.attention-info strong{display:block;font-size:13px}.attention-info small{display:block;color:#8b9690;font-size:10px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attention-count{color:var(--orange);font-size:11px;font-weight:800}.row-arrow{color:#a8b1ac;font-size:18px}.recent-checkins{display:flex;flex-direction:column}.recent-checkins>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;border-bottom:1px solid #edf0ea;padding:10px 0}.recent-checkins>div:last-child{border-bottom:0}.client-avatar.subtle{background:#edf1ea;color:#546c61}.recent-checkins p{min-width:0}.recent-checkins strong{display:block;font-size:12px}.recent-checkins p span{display:block;color:#849089;font-size:10px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-checkins time{color:#9aa39e;font-size:9px}.client-table{overflow-x:auto}.client-table-head,.client-table-row{min-width:810px;display:grid;grid-template-columns:1.15fr .7fr 1.4fr .8fr 42px;align-items:center;gap:16px}.client-table-head{padding:0 10px 10px;color:#8c9791;font-size:10px;border-bottom:1px solid var(--line)}.client-table-row{padding:13px 10px;border-bottom:1px solid #edf0ea;font-size:12px}.client-table-row:last-child{border-bottom:0}.client-cell{display:flex;align-items:center;gap:10px}.client-cell strong{display:block}.client-cell small{display:block;color:#929d97;font-size:9px;margin-top:3px}.client-task-summary{color:#61716a;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-done,.status-wait,.status-muted{display:inline-flex;width:fit-content;align-items:center;gap:5px;border-radius:99px;padding:4px 8px;font-size:9px;font-weight:800}.status-done{background:#dcece2;color:#19614e}.status-wait{background:#f6e4d7;color:#a2522d}.status-muted{background:#ecece8;color:#888f8a}.task-library-workspace{display:flex;flex-direction:column;gap:18px}.library-guide{max-width:820px;color:#5e746a;font-size:13px;line-height:1.75;margin:-3px 0 16px}.template-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.template-filters button{min-height:40px;border:1px solid #d5ddd6;border-radius:999px;background:#f8f8f4;color:#5d7067;padding:0 14px;font-size:12px;font-weight:700}.template-filters button.active{border-color:var(--green);background:var(--green);color:#fff}.template-grid,.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.template-card,.library-card{border:1px solid #e0e4dc;border-radius:16px;background:var(--paper);padding:18px;min-height:220px;display:flex;flex-direction:column}.template-card-top,.library-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.template-card-top small{color:#88968f;font-size:10px}.template-card h3,.library-card h3{font-size:17px;margin:13px 0 8px}.template-card p,.library-card p{color:#61736a;font-size:12px;line-height:1.75;margin-bottom:17px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}.template-card-foot,.library-card-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#89968f;font-size:10px}.template-card-foot>span{line-height:1.5}.template-card-foot .button{flex:0 0 auto}.template-expand{margin:16px auto 0;min-width:190px}.saved-task-library{margin-top:0}.video-status{border-radius:99px;background:#ecefe9;color:#7d8983;padding:4px 8px;font-size:9px;font-weight:700;white-space:nowrap}.video-status.has-video{background:#e0efe6;color:#17604c}.library-actions{display:inline-flex;align-items:center;gap:2px}.library-actions a{min-height:40px;display:inline-flex;align-items:center;padding:0 5px;color:var(--green);font-size:11px;font-weight:700;text-decoration:none}.library-actions .text-button{font-size:11px}.inline-empty{border:1px dashed #d6dbd2;border-radius:16px;background:#fafaf6;padding:28px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}.inline-empty strong{font-family:Songti SC,STSong,serif;font-size:18px}.inline-empty span{color:#72837b;font-size:12px}.admin-footnote{margin-top:15px;color:#7d8983;font-size:11px}.password-resets-section .library-guide{margin-bottom:20px}.password-reset-list{display:flex;flex-direction:column;gap:11px}.password-reset-card{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(240px,1fr) auto;align-items:center;gap:18px;padding:17px 18px;border:1px solid var(--line);border-radius:16px;background:#fff}.password-reset-person{display:flex;align-items:center;gap:11px;min-width:0}.password-reset-person>span:last-child,.password-reset-meta{display:flex;flex-direction:column;gap:3px;min-width:0}.password-reset-person strong{color:var(--ink)}.password-reset-person small,.password-reset-meta small{color:#74847c;font-size:12px;line-height:1.55}.reset-identity{align-self:flex-start;padding:3px 8px;border-radius:99px;font-size:11px;font-weight:800}.reset-identity.matched{color:var(--green);background:#e2f0e6}.reset-identity.unverified{color:#9a4f28;background:var(--orange-soft)}.modal-layer,.drawer-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;background:#0b231c70;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);display:grid;place-items:center;padding:20px;animation:fade-in .15s ease both}.modal-card{width:min(100%,520px);max-height:min(90vh,760px);overflow-y:auto;border-radius:24px;background:var(--paper);padding:28px;box-shadow:0 30px 100px #041f184d;animation:modal-in .22s ease both}.modal-wide{width:min(100%,660px)}.modal-head,.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.modal-head h2,.drawer-head h2{font-family:Songti SC,STSong,serif;font-size:28px;font-weight:600}.modal-head p{color:#63776e;font-size:14px;margin-top:6px}.icon-button{border:0;width:44px;height:44px;border-radius:50%;background:#ebeee8;color:#66736d;font-size:23px;line-height:1}.duration-fieldset{border:0;padding:0;margin:0}.duration-fieldset legend{color:var(--ink);font-size:17px;font-weight:800;margin-bottom:13px}.duration-options{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.duration-option{min-width:0;min-height:58px;border:1px solid #ccd7ce;border-radius:13px;background:#fff;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:18px;font-weight:800}.duration-option small{color:#71837a;font-size:10px;font-weight:600}.duration-option.active{border-color:var(--green);background:var(--green);color:#fff;box-shadow:0 8px 18px #145c4b2e}.duration-option.active small{color:#d7e8df}.custom-duration{display:grid!important;grid-template-columns:auto minmax(0,150px);justify-content:space-between;align-items:center;gap:14px!important;margin-top:13px;color:#50675e;font-size:13px;font-weight:700}.duration-input-wrap{display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:8px!important;color:#657970;font-size:13px!important}.duration-input-wrap input{text-align:center}.optional-details{border:1px solid #dce2da;border-radius:14px;background:#f5f6f2}.optional-details summary{position:relative;min-height:54px;padding:10px 40px 10px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;color:var(--ink);font-size:14px;font-weight:800;list-style:none}.optional-details summary::-webkit-details-marker{display:none}.optional-details summary:after{content:"＋";color:var(--green);font-size:20px}.optional-details[open] summary:after{content:"－"}.optional-details summary small{margin-left:auto;color:#77877f;font-size:11px;font-weight:600}.optional-fields{display:flex;flex-direction:column;gap:15px;border-top:1px solid #dfe4dd;padding:16px 14px 17px}.optional-fields label{display:flex;flex-direction:column;gap:8px}.optional-fields label>span{color:#4e665c;font-size:13px;font-weight:700}.safety-note{display:flex;align-items:flex-start;gap:11px;border-radius:14px;background:#fff3e6;padding:13px 14px}.safety-note>strong{flex:0 0 auto;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:var(--orange);color:#fff;font-size:14px}.safety-note p{color:#75543e;font-size:13px;line-height:1.75}.safety-note b{color:#593b28}.form-grid{display:grid;grid-template-columns:1fr 1fr .7fr;gap:12px}.client-picker{border:1px solid var(--line);border-radius:16px;padding:14px;max-height:250px;overflow-y:auto}.client-picker legend{padding:0 7px}.checkbox-row{display:flex!important;flex-direction:row!important;align-items:center;gap:10px!important;padding:8px;border-radius:10px;cursor:pointer}.checkbox-row:hover{background:#f1f3ee}.checkbox-row input{width:16px;margin:0;accent-color:var(--green)}.check-avatar{width:29px;height:29px;font-size:11px}.checkbox-row strong,.checkbox-row small{display:block}.checkbox-row strong{font-size:12px}.checkbox-row small{color:#909b95;font-size:9px;margin-top:2px}.drawer-layer{justify-items:end;padding:0}.drawer{width:min(100%,520px);height:100vh;overflow-y:auto;background:var(--paper);padding:28px;box-shadow:-30px 0 90px #041f183d;animation:drawer-in .24s ease both}.drawer-loading{min-height:220px;display:grid;place-items:center}.client-profile{display:flex;align-items:center;gap:15px;background:#ecf1eb;border-radius:17px;padding:17px}.client-big-avatar{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--green);color:#fff;font-family:Songti SC,STSong,serif;font-size:22px}.client-profile strong,.client-profile span,.client-profile small{display:block}.client-profile strong{font-size:14px}.client-profile span{color:#64746d;font-size:11px;margin:4px 0}.client-profile small{color:#929d97;font-size:9px}.drawer-message-button{flex:0 0 auto;margin-left:auto}.drawer-section{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.drawer-section-title{display:flex;justify-content:space-between;margin-bottom:13px}.drawer-section-title h3{font-family:Songti SC,STSong,serif;font-size:19px;font-weight:600}.drawer-section-title span{color:#97a09b;font-size:10px}.muted{color:#849089;font-size:11px;line-height:1.7}.compact-task,.assignment-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid #edf0ea}.compact-task:last-child,.assignment-row:last-child{border-bottom:0}.compact-task strong,.compact-task span,.assignment-row strong,.assignment-row span{display:block}.compact-task strong,.assignment-row strong{font-size:12px}.compact-task>div>span,.assignment-row>div>span{color:#85918a;font-size:9px;margin-top:4px}.drawer-timeline{display:flex;flex-direction:column}.drawer-timeline>div{display:grid;grid-template-columns:10px 1fr;gap:11px;position:relative;padding-bottom:18px}.drawer-timeline p strong,.drawer-timeline p small,.drawer-timeline p em{display:block}.drawer-timeline p strong{font-size:12px}.drawer-timeline p small{color:#909b95;font-size:9px;margin:4px 0}.drawer-timeline p em{color:#68766f;font-size:10px;font-style:normal;line-height:1.6}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%);z-index:120;border-radius:99px;padding:11px 18px 11px 13px;background:#173d33;color:#fff;box-shadow:0 16px 40px #0a2c233d;font-size:12px;display:flex;align-items:center;gap:8px;animation:toast-in .2s ease both}.toast span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#d7eadf;color:var(--green);font-weight:900}@keyframes fade-in{0%{opacity:0}}@keyframes modal-in{0%{opacity:0;transform:translateY(10px) scale(.985)}}@keyframes drawer-in{0%{transform:translate(32px);opacity:0}}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,10px)}}@media (max-width: 1000px){.auth-page{grid-template-columns:1fr}.auth-intro{display:none}.auth-panel{min-height:100vh;border-radius:0}.mobile-logo{display:block}.client-grid,.admin-content-grid{grid-template-columns:1fr}.template-grid,.library-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 720px){.top-bar{height:66px;padding:0 16px}.brand-compact .brand-mark{width:33px;height:33px}.top-role{display:none}.top-actions{gap:6px}.message-entry{min-height:42px;padding:0 10px}.message-entry svg{width:19px;height:19px}.message-entry span{font-size:12px}.account-name{display:none}.account-button{padding-right:8px}.client-layout,.admin-layout{padding:18px 14px 45px}.welcome-row,.admin-heading{display:block;margin-top:12px}.daily-note{margin-top:18px}.progress-hero{padding:25px 20px;gap:20px;border-radius:21px;grid-template-columns:auto minmax(0,1fr)}.progress-ring{width:96px;height:96px}.progress-ring strong{font-size:24px}.progress-copy h2{font-size:22px}.progress-copy p{font-size:13px}.hero-action{grid-column:1 / -1}.button-hero{width:100%;min-height:56px}.hero-complete-mark{grid-column:1 / -1;justify-self:start}.content-section{padding:18px;border-radius:18px}.task-card{grid-template-columns:auto minmax(0,1fr);gap:13px;padding:16px}.task-card .button{grid-column:1 / -1;width:100%;min-height:56px}.task-meta{flex-direction:column;gap:4px}.task-progress-label{align-items:flex-start;flex-direction:column;gap:4px}.task-description{font-size:14px}.heading-actions{margin-top:18px}.heading-actions .button{flex:1}.admin-stats{grid-template-columns:1fr 1fr}.admin-stats article{padding:17px;border-bottom:1px solid var(--line)}.admin-stats article:nth-child(2){border-right:0}.admin-stats article:nth-child(3),.admin-stats article:nth-child(4){border-bottom:0}.admin-stats strong{font-size:30px}.admin-tabs{overflow-x:auto;gap:22px}.admin-tabs button{flex:0 0 auto}.password-reset-card{grid-template-columns:1fr;align-items:stretch}.password-reset-card .button{width:100%;min-height:48px}.template-grid,.library-grid{grid-template-columns:1fr}.template-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px}.template-filters button{flex:0 0 auto}.template-card,.library-card{min-height:0}.template-card p,.library-card p{-webkit-line-clamp:4}.modal-layer{padding:10px}.modal-card{max-height:94vh;padding:20px;border-radius:19px}.duration-options{grid-template-columns:repeat(3,1fr)}.custom-duration{grid-template-columns:1fr;align-items:stretch}.duration-input-wrap{width:100%;grid-template-columns:1fr auto}.optional-details summary{align-items:flex-start;flex-direction:column;gap:3px}.optional-details summary small{margin-left:0}.optional-details summary:after{top:9px;right:14px}.form-grid{grid-template-columns:1fr 1fr}.form-grid label:last-child{grid-column:1 / -1}.drawer{padding:20px}.client-profile{flex-wrap:wrap}.drawer-message-button{width:100%;margin-left:0}.modal-card.messages-modal{width:100%;max-height:calc(100dvh - 20px);border-radius:19px}.messages-modal>.modal-head{padding:17px 17px 13px}.messages-modal>.modal-head h2{font-size:24px}.messages-modal>.modal-head p{font-size:11px;line-height:1.55}.messages-modal>.modal-head .icon-button{flex:0 0 auto}.messages-shell{height:calc(100dvh - 124px);display:block}.messages-inbox{width:100%;height:100%;border-right:0}.messages-shell.is-admin .messages-conversation{display:none;height:100%}.messages-shell.is-admin.has-thread .messages-inbox{display:none}.messages-shell.is-admin.has-thread .messages-conversation,.messages-shell.is-patient .messages-conversation{display:flex;height:100%}.conversation-list{padding:7px}.conversation-row{min-height:74px;padding:11px}.messages-back{display:grid;place-items:center}.messages-conversation-head{min-height:56px;padding:7px 12px}.message-safety{padding:7px 13px;font-size:9px}.messages-list{padding:13px 12px;gap:10px}.message-bubble{max-width:88%}.message-text{font-size:14px}.message-audio-card{min-width:min(245px,68vw)}.message-composer{padding:10px 12px 12px}.composer-tabs{margin-bottom:9px}.composer-tabs button{min-height:44px;padding:8px;font-size:13px}.record-main-button{min-height:72px;padding:10px 13px;gap:10px}.record-icon{width:40px;height:40px}.record-main-button strong{font-size:14px}.recording-tip{font-size:9px;margin-top:6px}.recording-live{padding:11px}.record-stop-button{min-height:50px;margin-top:9px}.recording-status{min-height:82px}.recording-review{padding:11px}.send-recording-button{min-height:50px;margin-top:9px}.text-composer textarea{min-height:62px}.text-composer-foot .button{min-height:46px}.auth-panel{padding:30px 22px}.auth-panel h2{font-size:32px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
