:root{--wine:#781e2a;--deep:#621922;--rose:#ca9786;--cream:#f2e4db;--paper:#faf7f3;--surface:#fffdfa;--ink:#49372f;--muted:#8b776c;--line:#eadfd5;--sage:#e6ebe0;--gold:#a38758;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;background:none;border:0}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}svg{flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bc8f86;outline-offset:3px}h1,h2,h3,h4,p{margin:0}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400}h1{font-size:33px;letter-spacing:-.8px;line-height:1.2;color:var(--deep)}h2{font-size:29px;line-height:1.3;color:var(--deep)}h3{font-size:22px;line-height:1.35;color:#806153}p{line-height:1.7}small{font-size:10px;line-height:1.5}input,select,textarea{min-height:41px;border:1px solid #dfcfc2;padding:10px 12px;border-radius:8px;background:#fffdfa;color:var(--ink);font-size:12px;max-width:100%}select{cursor:pointer;padding-right:28px}textarea{resize:vertical;min-height:120px}input::placeholder,textarea::placeholder{color:#ac9788}input[type=checkbox]{min-height:auto;accent-color:var(--wine);width:17px;height:17px}input[type=range]{accent-color:var(--wine);padding:0;min-height:30px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:7px;font-size:11px;min-height:39px;padding:10px 14px;line-height:1.4;font-weight:500;transition:background .15s,transform .15s;white-space:nowrap}.btn:hover{filter:brightness(.96);transform:translateY(-1px)}.primary,.btn.primary{background:var(--wine);border-color:var(--wine);color:#fff4e9}.secondary,.btn.secondary{background:#fffaf4;border:1px solid #dfcdbd;color:#896e59}.ghost,.btn.ghost{background:transparent;color:var(--muted)}.btn.cream{background:#f3e2d2;color:var(--deep);border-color:#f3e2d2}.btn.compact,.btn.small{min-height:32px;padding:7px 10px;font-size:10px}.btn.full{width:100%}.icon-btn{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:7px;color:#a48671;border-radius:7px}.icon-btn:hover{background:#f2e6da;color:var(--wine)}.icon-btn.bordered{border:1px solid var(--line)}.text-btn{display:inline-flex;align-items:center;gap:6px;color:#a2726c;font-size:10px;padding:5px 0}.text-btn:hover{text-decoration:underline;text-underline-offset:4px}.eyebrow{font-family:Arial,Helvetica,sans-serif;font-size:8px;letter-spacing:1.8px;font-weight:500;color:#ab8b77;line-height:1.6}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.stack{display:flex;flex-direction:column;gap:18px}.small-text{font-size:11px;line-height:1.7}.grid2,.grid3{display:grid;grid-template-columns:1fr;gap:21px}.card,.panel{border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}.card{padding:23px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px 23px 18px}.panel-head .eyebrow{font-size:7px;margin-bottom:7px}.panel-head h3{font-size:21px}.panel-body{padding:22px}.panel-head+.panel-body{padding-top:0}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.toolbar.between{justify-content:space-between}.toolbar .row{flex-wrap:wrap}.toolbar h3{font-size:20px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;text-align:left;width:100%;font-size:12px;white-space:nowrap}th{padding:16px 19px;font-size:9px;font-weight:500;background:#f8f0e6;color:#a78b71;letter-spacing:.6px;border-bottom:1px solid var(--line)}td{padding:18px 19px;border-bottom:1px solid #eee3d7;color:#9b7d64}td strong{display:block;font-weight:500;color:#80624e;font-size:11px}td small{display:block;font-size:9px;margin-top:6px;color:#b1977e}tr:last-child td{border:0}.tag{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:5px;border:1px solid #e7d8c7;background:#f7efe4;color:#aa8b67;font-size:8px;white-space:nowrap;line-height:1.4}.tag.success,.tag.green{background:#eef1e6;border-color:#dfe6d1;color:#829269}.tag.warning,.tag.amber{background:#faf0df;color:#b1955f}.tag.danger,.tag.red{background:#f6e3dd;border-color:#edd4cb;color:#b07e70}.avatar{height:43px;width:43px;min-width:43px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#947265;font-weight:500;font-size:12px;background:#e9d4cb}.avatar.small{height:32px;width:32px;min-width:32px;font-size:9px}.avatar.burgundy{background:#ecd8d0;color:var(--wine)}.progress{height:5px;border-radius:20px;background:#efe5d9;overflow:hidden}.progress>span,.progress>i,.progress>div{display:block;height:100%;background:#b3817a;border-radius:20px;max-width:100%}.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;text-align:center;padding:40px 20px;color:#ac8b72;font-size:12px;line-height:1.7}.empty h3{font-size:24px}.field{display:flex;flex-direction:column;gap:8px;color:#947258;font-size:11px}.field>span{font-weight:500}.fields{display:grid;grid-template-columns:1fr;gap:17px}.fields>label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#947258}.fields .full,.field.full{grid-column:1/-1}.field small,.fields small{font-size:9px;color:#b09579}.form-actions,.dialog-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:25px;padding-top:20px;border-top:1px solid var(--line);flex-wrap:wrap}.check-field,.checkbox-field{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.7;color:#a08770}.check-field input{margin-top:4px}.pills,.tabs{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.pills button,.tabs button{border:1px solid #e4d4c4;background:#fffbf5;border-radius:20px;padding:8px 13px;font-size:10px;color:#a28265;white-space:nowrap}.pills button.active,.pills button[aria-selected=true],.tabs button.active{background:var(--wine);color:#fff1e1;border-color:var(--wine)}.preserve{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}.loading{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:25px;padding:30px}.loading img{width:260px;mix-blend-mode:multiply}.loading p{font-size:13px;color:#aa896d;text-align:center}.skip{position:fixed;left:20px;top:-80px;z-index:200;background:var(--wine);color:white;border-radius:7px;padding:14px;font-size:12px}.skip:focus{top:12px}.app-shell{min-height:100vh}.sidebar{width:238px;position:fixed;inset:0 auto 0 0;background:#fffcf8;border-right:1px solid var(--line);z-index:50;display:flex;flex-direction:column;padding:22px 18px 0;transform:translateX(-100%);transition:transform .2s;overflow-y:auto}.brand{display:flex;flex-direction:column;align-items:center;padding:0 0 24px}.brand img{width:176px;height:116px;object-fit:cover;mix-blend-mode:multiply}.brand>span{font-size:7px;letter-spacing:2.1px;color:#a98b76;margin-top:-2px}.workspace-label{display:flex;align-items:center;gap:8px;font-size:10px;background:#f4eadf;border:1px solid #ebdfd0;border-radius:7px;padding:12px 9px;margin-bottom:24px;color:#9e8165}.green-dot{width:5px;height:5px;background:#8c9d76;border-radius:50%}.tiny{font-size:7px;letter-spacing:.8px;margin-left:auto;border:1px solid #e1cfba;border-radius:3px;padding:2px 3px}.nav-caption{font-size:7px;letter-spacing:1.7px;color:#ae9580;padding-left:13px;margin-bottom:12px}.sidebar nav{display:flex;flex-direction:column;gap:4px}.sidebar nav button{display:flex;align-items:center;gap:12px;min-height:42px;padding:11px 13px;border-radius:7px;text-align:left;color:#9d8066;font-size:11px;width:100%}.sidebar nav button:hover{background:#f4ebe2;color:var(--wine)}.sidebar nav button.active{background:#efdfd9;color:var(--wine);box-shadow:inset 2px 0 var(--wine);font-weight:500}.sidebar nav button small{margin-left:auto;background:#e1c7bd;border-radius:4px;padding:2px 6px;font-size:8px}.sidebar nav .portal-nav{margin-top:18px;border-top:1px solid var(--line);border-radius:0;padding-top:20px;min-height:57px;color:#9e6964}.portal-nav svg:last-child{margin-left:auto}.sidebar-bottom{margin-top:auto;padding-top:24px}.sidebar-quote{border:1px solid #e8d8c5;border-radius:9px;text-align:center;background:#f8efe2;color:#ad9173;padding:20px 10px;margin-bottom:17px}.sidebar-quote p{font-family:Georgia,serif;font-size:13px;line-height:1.7;margin-top:9px}.sidebar-quote em{color:#bca48a}.about-button{display:flex;gap:10px;align-items:center;font-size:10px;padding:10px 13px;color:#a5876a}.profile{display:flex;align-items:center;gap:10px;margin:15px -18px 0;padding:17px 20px;border-top:1px solid var(--line)}.profile>div{flex:1}.profile strong{font-size:10px;display:block}.profile small{font-size:8px;color:#a88c72}.profile .icon-btn{min-width:25px;padding:2px}.nav-overlay{display:none;position:fixed;inset:0;background:#3b172c66;z-index:45}.nav-open .sidebar{transform:translateX(0)}.nav-open .nav-overlay{display:block}.workspace{min-width:0}.topbar{height:69px;background:#fffdf9;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 20px}.breadcrumb{display:flex;align-items:center;gap:11px;font-size:9px;color:#b19a84}.breadcrumb strong{font-weight:400;color:#997b62}.breadcrumb>span{color:#c5b29c}.top-actions{display:flex;align-items:center;gap:12px}.saved{display:none;align-items:center;gap:5px;color:#97a17e;font-size:8px}.top-actions .avatar{display:none}.main-content{padding:28px 20px 0;max-width:1610px;margin:auto}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:23px}.page-heading .eyebrow{font-size:7px;margin-bottom:10px}.page-heading h1{margin-bottom:10px}.page-heading p:last-child{font-size:11px;color:#ae937c}.date-label{display:none;align-items:center;gap:7px;font-size:9px;color:#b2987b;white-space:nowrap;padding:10px 11px;border:1px solid var(--line);border-radius:7px;margin-top:29px}.account-strip{display:flex;align-items:center;gap:7px;padding:9px 10px;background:#f2e9dc;border:1px solid #e8d9c4;border-radius:6px;font-size:8px;color:#ae9273;margin-bottom:24px;line-height:1.5}.account-strip strong{font-weight:500}.account-strip>span:last-of-type{display:none}.account-strip button{margin-left:auto;color:#ac8c6b;display:flex;padding:0}.account-dot{width:5px;height:5px;background:#bb9e75;border-radius:50%;flex-shrink:0}.view{display:flex;flex-direction:column;gap:24px;outline:none}.welcome-grid{display:grid;grid-template-columns:1fr;gap:20px}.hero{position:relative;overflow:hidden;border-radius:14px;background:linear-gradient(105deg,#751f2c,#954658);padding:31px 25px;color:#fceade;min-height:285px}.hero>div:first-child{position:relative;z-index:2}.hero .eyebrow.light{color:#e2b4ac;font-size:7px;letter-spacing:1.8px}.hero h2{color:#fff0df;font-size:32px;line-height:1.3;letter-spacing:-.4px;margin:21px 0 15px}.hero h2 em{color:#e5b3ac}.hero p:not(.eyebrow){font-size:10px;color:#e0b5ac;line-height:1.9;margin-bottom:23px}.hero .btn{font-size:10px;min-height:34px}.hero-circles{position:absolute;inset:0 0 0 auto;width:260px;opacity:.3;z-index:1}.hero-circles>span{position:absolute;border:1px solid #ecc7bb;border-radius:50%;width:200px;height:200px;right:-70px;top:30px;transform:rotate(-30deg)}.hero-circles>span:nth-child(2){width:170px;height:250px;right:20px;top:60px}.hero-circles>span:nth-child(3){width:150px;height:190px;right:-50px;top:130px;background:#f1c3b416}.hero-circles>i{position:absolute;bottom:22px;right:23px;text-align:center;font-family:Georgia,serif;font-size:13px;line-height:1.5;color:#f4cfc4;display:none}.intention{display:none;text-align:center;border:1px solid #e6d4bd;background:#f0e3d0;border-radius:14px;flex-direction:column;align-items:center;justify-content:center;padding:24px 18px}.round-icon{width:45px;height:45px;display:flex;align-items:center;justify-content:center;border:1px solid #d4b99a;border-radius:50%;color:#b19472;background:#f4e6d3;flex-shrink:0}.intention .eyebrow{font-size:7px;margin:15px 0 13px;color:#b19879}.intention blockquote{font-family:Georgia,serif;font-size:23px;color:#a18260;line-height:1.4;margin:0}.intention blockquote em{color:#b79674}.intention>small{font-size:8px;color:#b79e7e;margin-top:17px}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.stat{padding:18px 15px;background:var(--surface);border:1px solid var(--line);border-radius:11px;min-width:0}.stat>.row>span,.stat>span{font-size:9px;color:#aa8e74}.stat>strong{display:block;font-family:Georgia,serif;font-size:28px;letter-spacing:-.6px;font-weight:400;color:#8c6a51;line-height:1.15;margin:15px 0 7px}.stat>small{font-size:8px;color:#b69e84}.stat-icon{height:31px;width:31px;border-radius:7px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.rose{background:#f0dcd6;color:#b3827a}.sage{background:#e6ecdc;color:#94a37d}.sand{background:#f2e7d2;color:#baa06b}.lilac{background:#e8e0ea;color:#ad97b1}.dashboard-lower{display:grid;grid-template-columns:1fr;gap:22px}.today-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 23px;padding:11px 0 15px;border-bottom:1px solid var(--line);font-size:10px;color:#ad9276;text-transform:capitalize}.today-label strong{font-size:9px;font-weight:500}.session-list{padding:0 23px}.session-row{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid #f0e4d8}.session-row:last-child{border:0}.session-time{width:41px;flex-shrink:0}.session-time strong{font-size:12px;font-weight:500;color:#ac896d}.session-time small{display:block;font-size:8px;color:#bba287;margin-top:6px}.session-row .avatar{height:34px;width:34px;min-width:34px;font-size:10px}.session-row .grow>strong{font-size:11px;font-weight:500;color:#8d6b53}.session-row .grow>small{display:block;font-size:8px;color:#ba9f82;margin-top:7px}.session-row>.tag{display:none}.panel-bottom{margin:14px 23px 20px;width:calc(100% - 46px);font-size:9px;min-height:34px;background:#fbf3e7}.care-panel{display:flex;flex-direction:column}.soft-heart{background:#f4e6dc;border-radius:50%;display:flex;align-items:center;justify-content:center;height:33px;width:33px;color:#bc8d7e}.care-list{padding:0 23px}.care-item{display:flex;align-items:flex-start;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.care-item:last-child{border:0}.material-icon{display:inline-flex;align-items:center;justify-content:center;height:43px;width:37px;border:1px solid #e8d6c5;border-radius:6px;flex-shrink:0}.care-item strong{display:block;font-size:10px;font-weight:500;color:#a08064;margin-bottom:5px}.care-item small{display:block;font-size:8px;color:#ba9d7f;margin-bottom:7px}.care-item .tag{font-size:7px;padding:2px 4px}.care-panel>.panel-bottom{margin-top:17px}.care-footer{border-top:1px solid var(--line);background:#faf3e7;display:flex;justify-content:center;gap:6px;align-items:center;font-size:8px;padding:12px;color:#b79a7c;margin-top:auto;border-radius:0 0 12px 12px}.bridge{border:1px solid #e9d5c6;background:#f4e6dd;border-radius:11px;padding:23px;display:flex;align-items:center;gap:17px;flex-wrap:wrap}.bridge .round-icon{border:0;background:#ebd8cd;color:#b18a76;width:42px;height:42px}.bridge>div{flex:1;min-width:190px}.bridge h3{font-size:19px;margin-bottom:5px;color:#a27863}.bridge p{font-size:9px;color:#b5967b}.bridge>.btn{font-size:9px;background:transparent;border-color:#d9bca5;color:#ad8b6b}.scope-hero{display:flex;align-items:center;gap:27px;background:#f0e3d9;border:1px solid #e6d2c1;padding:25px;border-radius:13px}.scope-hero>img{width:135px;height:135px;object-fit:cover;mix-blend-mode:multiply}.scope-hero h2{font-size:30px;margin:10px 0;color:#95614f}.scope-hero h2 em{color:#b58872}.scope-hero p:last-child{font-size:12px;color:#af8d73}.card ul{padding-left:18px;margin:18px 0 0;font-size:12px;line-height:1.9;color:#a3856a}.card .eyebrow{margin-bottom:10px}.roadmap{padding:0 23px 23px;display:grid;grid-template-columns:1fr;gap:13px}.roadmap>div{border:1px solid var(--line);border-radius:9px;padding:20px;display:flex;flex-direction:column;gap:9px;color:#ac8a6d}.roadmap b{font-family:Georgia,serif;font-size:26px;font-weight:400;color:#bc9c7c}.roadmap strong{font-size:11px;font-weight:500}.roadmap small{font-size:10px;color:#baa087}.roadmap .current{border-color:#bd8c7d;background:#f4e5de}.roadmap .current b{color:var(--wine)}.notice-box{background:#f2e7d7;border:1px solid #e3cfb6;padding:25px;border-radius:11px}.notice-box h3{font-size:23px;margin-bottom:15px}.notice-box p{font-size:12px;line-height:1.85;color:#aa8b6e;margin-bottom:12px}footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:8px;color:#bba186;padding:23px 0 20px}.footer-brand{font-family:Georgia,serif;font-size:13px;color:#b18775}.footer-brand>i{font-family:Arial,sans-serif;font-style:normal;font-size:8px;color:#c1a78c;display:none}footer>span:last-child{display:flex;align-items:center;gap:5px}
dialog{border:1px solid #e7cfbc;border-radius:16px;max-width:730px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);padding:25px;background:#fffaf3;color:var(--ink);box-shadow:0 20px 80px #36162430;overflow-y:auto}dialog::backdrop{background:#30152680;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:23px}.dialog-head h2{font-size:28px;margin-top:9px}.dialog-head .eyebrow{font-size:7px}.dialog-content p{font-size:13px;color:#a47f61}.dialog-content{line-height:1.8}.dialog-content .btn{margin-top:16px}#toast{position:fixed;z-index:200;bottom:20px;left:50%;transform:translate(-50%,12px);display:flex;align-items:center;gap:12px;max-width:calc(100% - 30px);width:max-content;background:#fffaf1;border:1px solid #d9bda4;box-shadow:0 5px 40px #32172a22;border-radius:10px;padding:15px 18px;font-size:12px;color:#947355;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}#toast.visible{opacity:1;transform:translate(-50%,0)}#toast>svg{color:#93a174}.entry{min-height:100vh;display:grid;grid-template-columns:1fr;background:#fffaf4}.entry-art{display:none}.entry-card{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:18px;padding:28px;max-width:500px;margin:0 auto;min-height:100vh}.entry-logo{width:230px;height:150px;object-fit:cover;mix-blend-mode:multiply;align-self:center;margin-bottom:5px}.entry-card>.eyebrow{text-align:center;font-size:8px}.entry-card>h2{text-align:center;font-size:33px}.entry-card>p:not(.eyebrow){font-size:12px;color:#a98a70;text-align:center;line-height:1.8}.role-card{display:flex;align-items:center;gap:14px;border:1px solid #e1cbb8;border-radius:11px;padding:18px 15px;text-align:left;background:#fffdf8;min-height:88px}.role-card:hover{background:#f5e6dc;border-color:#ba8d77}.role-icon{height:43px;width:43px;display:flex;align-items:center;justify-content:center;background:#f0dfd4;color:#a06e5e;border-radius:10px}.role-icon.soft{background:#e9ebdf;color:#a1aa87}.role-card>span:nth-child(2){flex:1}.role-card strong{display:block;font-family:Georgia,serif;font-size:20px;font-weight:400;color:#956c55;margin-bottom:8px}.role-card small{display:block;font-size:9px;color:#b2987c;line-height:1.5}.role-card>svg{color:#c2a386}.entry-note{display:flex;align-items:flex-start;gap:10px;background:#f5ebdf;padding:16px;border:1px solid #e7d7c4;border-radius:9px;color:#b59a7c}.entry-note p{font-size:10px;line-height:1.8}.entry-note strong{color:#a58565;font-weight:500}.entry-note svg{margin-top:3px}.entry-bottom{font-size:8px;text-align:center;color:#c0a78b;margin-top:6px}
/* Module components */
.patient-grid,.material-grid,.resource-grid,.portal-grid{display:grid;grid-template-columns:1fr;gap:20px}.patient-card h3{font-size:24px;margin-top:17px}.patient-card p{font-size:11px;color:#ad8e71}.patient-card .progress{margin:12px 0}.patient-card .btn{margin-top:14px}.patient-meta{display:flex;gap:10px;align-items:center;font-size:11px;color:#b09376;margin:17px 0}.search-box{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #deccba;border-radius:8px;background:#fffaf3;color:#b5997d}.search-box input{border:0;background:transparent;font-size:11px;width:200px;padding:9px 0}.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:15px;border-bottom:1px solid var(--line)}.week-strip button{padding:12px 3px;border-radius:8px;display:flex;flex-direction:column;align-items:center;gap:7px;color:#b2987a;font-size:9px}.week-strip button strong{font-family:Georgia,serif;font-size:24px;font-weight:400}.week-strip button.active{background:var(--wine);color:#fff1df}.appointment-item,.appointment-row{display:flex;align-items:center;gap:14px;padding:18px;border-bottom:1px solid var(--line);flex-wrap:wrap}.appointment-item .grow small,.appointment-row .grow small{display:block;color:#b4987c;font-size:10px}.note-card{padding:23px;background:#fffaf2;border:1px solid var(--line);border-radius:12px}.note-card h3{margin:12px 0}.note-card p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.85;color:#ab896b}.note-card .eyebrow{font-size:8px}.material-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px;display:flex;flex-direction:column;gap:14px}.material-card h3{font-size:24px}.material-card>p{font-size:12px;color:#af8c6c}.material-art{min-height:110px;background:#eddbd0;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#b78a79}.material-art svg{height:35px;width:35px}.portal-hero{background:#f0dfd7;border:1px solid #e6cbbc;border-radius:13px;padding:28px}.portal-hero h2{font-size:34px;margin:14px 0}.portal-hero p{font-size:12px;color:#ad896e}.portal-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:8px}.mood-grid,.mood-options{display:flex;gap:8px;flex-wrap:wrap}.mood-button{display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid #e2ccb4;border-radius:9px;background:#faf0e3;padding:13px;min-width:55px;font-size:10px;color:#b09172}.mood-button.active,.mood-button[aria-pressed=true]{border-color:var(--wine);background:#edd5cd;color:var(--wine)}.habit-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:14px 0}.habit-days{display:flex;gap:6px;flex-wrap:wrap}.habit-day{min-height:33px;min-width:33px;display:flex;align-items:center;justify-content:center;border:1px solid #e2ccb4;border-radius:6px;color:#b69b7a;font-size:10px}.habit-day.checked,.habit-day[aria-pressed=true]{background:#e8ecde;color:#92a175;border-color:#c6d1ad}.coping-card{padding:24px;background:#efe0d1;border:1px solid #dec6ad;border-radius:13px}.coping-card h3{font-size:25px;color:#aa7f60;margin-bottom:15px}.coping-card p{font-family:Georgia,serif;font-size:20px;font-style:italic;line-height:1.65;color:#b49170;white-space:pre-wrap}.chart-bars{display:flex;gap:25px;align-items:flex-end;min-height:180px;padding:25px}.chart-bar{flex:1;display:flex;flex-direction:column;align-items:center;gap:10px;font-size:10px;color:#b29270}.chart-bar>i{display:block;background:#b57d78;border-radius:6px 6px 0 0;width:100%;max-width:70px}.receipt{padding:20px;display:flex;flex-direction:column;gap:17px;font-size:13px;color:#9e7759}.receipt h2{font-size:42px}.report-metric{font-family:Georgia,serif;font-size:45px;color:var(--wine)}.needs-list label{display:flex;flex-direction:column;gap:10px;margin-bottom:20px}.file-drop{border:1px dashed #d4b391;background:#f5e9d8;padding:25px;border-radius:11px;text-align:center;font-size:12px;color:#af8a66}.helper{font-size:10px;color:#b29171;line-height:1.7}.auth-tabs{display:flex;border-bottom:1px solid var(--line);gap:20px}.auth-tabs button{padding:10px 0;font-size:12px;color:#af8e6d}.auth-tabs button.active{border-bottom:2px solid var(--wine);color:var(--wine)}.auth-form{display:flex;flex-direction:column;gap:15px}.auth-form label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#a58162}.auth-form .btn{width:100%}.auth-divider{display:flex;align-items:center;gap:12px;font-size:9px;color:#b4987b}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:var(--line);flex:1}.auth-error{font-size:11px;color:#a64845;background:#f8e4dc;border:1px solid #ebc6b8;border-radius:7px;padding:12px}.cloud-strip{background:#edf0e3;border-color:#dde3c8;color:#8a9670}.cloud-strip .account-dot{background:#8fa06c}.binding-box{border:1px solid #e2cdb9;border-radius:10px;padding:20px;background:#f7ecdf;display:flex;flex-direction:column;gap:12px}.binding-box code{font-size:12px;overflow-wrap:anywhere;background:#fffaf3;padding:10px;border:1px solid #e6d4c1;border-radius:6px}.readonly-note{background:#f4e8da;border:1px solid #dfc7aa;padding:12px 15px;border-radius:8px;font-size:11px;color:#ad865f}
@media(min-width:560px){.main-content{padding:31px 27px 0}.topbar{padding:0 27px}.saved{display:flex}.top-actions .avatar{display:inline-flex}.stats{gap:18px}.stat{padding:19px}.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}.patient-grid,.material-grid,.resource-grid,.portal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.session-row>.tag{display:inline-flex}.account-strip>span:last-of-type{display:inline}.footer-brand>i{display:inline}.fields{grid-template-columns:1fr 1fr}.hero{padding:33px}.hero h2{font-size:36px}.hero-circles{opacity:.7}.hero-circles>i{display:block}.roadmap{grid-template-columns:1fr 1fr}.entry-card{padding:35px;max-width:530px}.stats.three{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:980px){.sidebar{transform:translateX(0)}.workspace{margin-left:238px}.mobile-menu{display:none}.topbar{padding:0 30px;height:74px}.main-content{padding:33px 30px 0}.welcome-grid{grid-template-columns:minmax(0,1fr) 240px}.intention{display:flex}.hero{padding:31px;min-height:287px}.hero h2{font-size:34px}.hero-circles{opacity:.35;right:-30px}.hero-circles>i{display:none}.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stat{padding:18px 15px}.stat-icon{width:28px;height:28px}.stat>strong{font-size:27px}.stat>.row{gap:5px}.stat>.row>span{font-size:8px}.dashboard-lower{grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr)}.date-label{display:flex}.patient-grid,.material-grid,.resource-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.grid3{grid-template-columns:repeat(3,minmax(0,1fr))}.entry{grid-template-columns:minmax(0,1fr) minmax(450px,.85fr)}.entry-art{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:55px 55px;background:#efe1d5;position:relative;overflow:hidden}.entry-art>img{width:145px;height:145px;object-fit:cover;mix-blend-mode:multiply;margin-bottom:42px}.entry-art>.eyebrow{color:#b58c73;font-size:8px}.entry-art>h1{font-size:43px;margin:23px 0;color:#985d4c;line-height:1.25}.entry-art>h1 em{color:#b8876f}.entry-art>p:not(.eyebrow){color:#b28b70;font-size:12px;line-height:1.9}.entry-steps{display:flex;gap:33px;border-top:1px solid #d8bba0;padding-top:30px;margin-top:45px;color:#b98c6b}.entry-steps>span{font-size:11px}.entry-steps b{font-weight:500;font-size:11px;display:block;margin-top:9px;color:#a0795c}.entry-card{padding:38px 40px;width:100%}.entry-card>h2{font-size:35px}.entry-logo{height:150px}.nav-open .nav-overlay{display:none}}
@media(min-width:1280px){.main-content{padding:35px 42px 0}.topbar{padding:0 42px}.welcome-grid{grid-template-columns:minmax(0,1fr) 270px;gap:23px}.hero{padding:33px 36px;min-height:288px}.hero h2{font-size:38px}.hero p:not(.eyebrow){font-size:11px}.hero-circles{right:0;opacity:.75}.hero-circles>i{display:block}.hero-circles>span:first-child{right:-10px}.hero-circles>span:nth-child(2){right:53px}.hero-circles>span:nth-child(3){right:10px}.stat{padding:19px 20px}.stat>strong{font-size:31px}.stat>small{font-size:9px}.stat-icon{width:32px;height:32px}.stat>.row>span{font-size:10px}.dashboard-lower{grid-template-columns:minmax(0,1.6fr) minmax(310px,1fr);gap:23px}.panel-head{padding:23px 25px 19px}.care-list{padding:0 25px}.care-item strong{font-size:11px}.care-item small{font-size:9px}.care-footer{font-size:9px}.page-heading h1{font-size:36px}.page-heading p:last-child{font-size:12px}.intention blockquote{font-size:24px}.entry-art{padding-left:90px;padding-right:70px}.entry-art>h1{font-size:49px}.entry-card{max-width:535px;padding:35px 40px}.roadmap{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:559px){.topbar{height:63px}.top-actions{gap:7px}.top-actions>.btn>span{display:none}.page-heading h1{font-size:29px}.hero{min-height:290px}.hero h2{font-size:31px}.stat-icon{display:none}.stat>strong{font-size:25px}.stat>small{font-size:8px}.toolbar{align-items:stretch}.toolbar>select,.toolbar>input,.toolbar>.search-box{width:100%}.toolbar>.row{width:100%}.toolbar>.row>.btn{flex:1}.panel-head{padding:20px 17px 16px}.session-list{padding:0 17px}.session-row{gap:9px}.session-row .grow>strong{font-size:10px}.panel-head h3{font-size:19px}.hero-circles{opacity:.23}.bridge>.btn{width:100%}.scope-hero{gap:15px;padding:20px}.scope-hero>img{width:80px;height:80px}.scope-hero h2{font-size:25px}.scope-hero .eyebrow{font-size:6px}.scope-hero p:last-child{font-size:10px}.card{padding:20px}.stats.three{grid-template-columns:1fr}.week-strip{gap:0;padding:8px}.week-strip button{font-size:8px}.week-strip button strong{font-size:22px}.dialog-head h2{font-size:25px}dialog{padding:22px 18px}.entry-card{padding:25px;gap:17px}.entry-logo{width:210px;height:140px}.entry-card>h2{font-size:30px}.role-card strong{font-size:19px}.role-card small{font-size:8px}.role-card{padding:16px 13px}.role-icon{height:39px;width:39px}.care-panel>.panel-bottom{margin-top:18px}.fields{gap:16px}.form-actions>.btn,.dialog-actions>.btn{flex:1}.session-row .tag{font-size:7px}.breadcrumb{font-size:8px;gap:7px}.account-strip{font-size:7px}.roadmap>div{padding:18px}.view{gap:21px}.footer-brand{font-size:12px}footer>span:last-child{font-size:7px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{body{background:white;color:#222}.sidebar,.topbar,.page-heading,.account-strip,footer,.toolbar,.btn,.icon-btn,.no-print,.nav-overlay,#toast,.skip{display:none!important}.workspace{margin:0}.main-content{padding:0}.view{display:block}.panel,.card,.stat{break-inside:avoid;box-shadow:none;margin-bottom:15px;border-color:#ddd}.stats{display:grid;grid-template-columns:1fr 1fr}.app-shell:has(~dialog[open]){display:none!important}body:has(dialog[open]) #app{display:none!important}dialog[open]{position:static;max-width:none;max-height:none;width:100%;border:0;box-shadow:none;overflow:visible;padding:20px}dialog::backdrop{background:white}.dialog-head{display:none}.receipt{color:#222}.receipt img{max-width:220px}}
/* Text remains readable at ordinary browser scale. */
.sidebar nav button{font-size:12px}.breadcrumb{font-size:10px}.eyebrow{font-size:9px;color:#926d58}.page-heading p:last-child{color:#917660}.stat>.row>span,.stat>span{font-size:11px;color:#94755d}.stat>small{font-size:10px;color:#9a7c62}.account-strip{font-size:9px;color:#947552}.care-item strong{font-size:12px;color:#8f6c50}.care-item small{font-size:10px;color:#9d7e61}.session-row .grow>strong{font-size:12px}.session-row .grow>small{font-size:10px;color:#a18164}.panel-head .eyebrow{font-size:8px}.text-btn{font-size:11px;color:#9b625d}.date-label{color:#967354}.tag{font-size:9px}.care-footer{font-size:10px}.entry-card>p:not(.eyebrow){color:#927056}.entry-note{color:#977552}.entry-note p,.entry-note.small-text{font-size:11px;line-height:1.7}.saved{font-size:9px;color:#738159}.entry-bottom{font-size:9px;color:#9c7c60}.sidebar-quote{color:#99734f}.intention>small{color:#9d7e57;font-size:9px}.intention .eyebrow{color:#997650}.hero .eyebrow.light{font-size:8px;color:#efcfc4}.hero p:not(.eyebrow){color:#f0d0c5}.roadmap small{color:#9e7e60}.notice-box p{color:#916f52}.card ul{color:#937153}.view .card .muted{color:#8b776c}label.field{margin-bottom:13px}
@media(max-width:559px){.account-strip{font-size:8px}.sidebar nav button{font-size:12px}.stat>.row>span{font-size:10px}.stat>small{font-size:9px}.session-row .grow>strong{font-size:11px}.session-row .grow>small{font-size:9px}.care-item strong{font-size:11px}.care-item small{font-size:9px}}
/* Account access and first-use password screens. */
.access-page{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:32px 20px;background:radial-gradient(ellipse at top left,#f1e0d4,transparent 65%),var(--paper)}.access-card{width:100%;max-width:470px;background:#fffdf9;border:1px solid #e6d4c7;border-radius:18px;padding:30px 36px;box-shadow:0 15px 70px #7b4e2b0a}.access-logo{display:block;width:225px;height:135px;object-fit:cover;mix-blend-mode:multiply;margin:0 auto 22px}.access-card>.eyebrow{text-align:center;margin-bottom:10px}.access-card h1{font-size:31px;text-align:center;margin:10px 0 15px}.access-description{font-size:12px;color:#94745f;line-height:1.85;text-align:center;margin-bottom:18px}.access-symbol{width:48px;height:48px;border:1px solid #dec3b2;border-radius:50%;background:#f6e9df;color:#9f6b53;display:grid;place-items:center;margin:0 auto 19px}.access-card .auth-form{margin-top:22px}.access-card .btn.ghost{margin-top:12px}.access-back{margin:21px auto 17px;display:flex;justify-content:center}.account-email{font-size:12px;text-align:center;color:#835e4c;overflow-wrap:anywhere;background:#f7ece2;border:1px solid #eddbcd;border-radius:8px;padding:10px 13px;margin:15px 0 21px}.password-control{display:block;position:relative;width:100%}.password-control input{width:100%;padding-right:44px;min-height:43px}.password-toggle{position:absolute;right:4px;top:3px;min-height:36px;min-width:36px;padding:8px;display:flex;align-items:center;justify-content:center;color:#a58169;border-radius:6px}.password-toggle:hover,.password-toggle[aria-pressed=true]{background:#f2e4d8;color:var(--wine)}.auth-success{font-size:11px;line-height:1.8;color:#75825f;background:#f0f3e6;border:1px solid #dfe7ce;border-radius:8px;padding:12px 14px}.auth-form [hidden]{display:none}.account-grid{align-items:start}.account-grid h2{font-size:28px;margin:12px 0 20px}.account-summary dl{margin:0 0 22px}.account-summary dl>div{padding:15px 0;border-bottom:1px solid var(--line)}.account-summary dt{font-size:10px;color:#aa8b75;margin-bottom:8px}.account-summary dd{font-size:13px;color:#8c6850;margin:0;overflow-wrap:anywhere}.account-code{display:block;overflow-wrap:anywhere;background:#f7ede1;border:1px solid #ead7c5;border-radius:8px;padding:13px;font-size:12px;color:#966b50;margin:13px 0 18px}.account-password-intro{margin-bottom:21px}.account-summary .form-actions{justify-content:flex-start}.account-strip{background:#edf0e3;border-color:#dde3c8;color:#829066}.account-strip .account-dot{background:#8fa06c}.entry-note{margin-top:3px}.entry-card .auth-tabs{width:100%}.entry-card .password-control input{padding-right:44px}.entry-card .helper{line-height:1.8}.access-card .auth-form .field{margin-bottom:0}.account-grid .auth-form .field{margin-bottom:0}
@media(max-width:559px){.access-page{padding:18px 14px;align-items:flex-start}.access-card{padding:24px 22px;border-radius:14px;margin:12px 0}.access-card h1{font-size:28px}.access-logo{width:210px;height:125px;margin-bottom:18px}.access-description{font-size:11px}.account-grid h2{font-size:26px}.account-strip{font-size:8px}.account-grid .auth-form .btn{white-space:normal}.access-card .auth-form{gap:16px}}

/* Refined Psicurando interface. */
:root{--paper:#f7f4f0;--surface:#fffdfa;--ink:#382d2c;--muted:#7e716c;--line:#e9dfd7;--soft-rose:#f4e7e2;--shadow:0 4px 24px #61212b06}
body{font-size:14px;background:var(--paper)}
h1,h2,h3,h4{font-family:Arial,Helvetica,sans-serif;letter-spacing:normal;color:var(--ink);font-weight:600}
h1{font-size:30px;line-height:1.3}h2{font-size:21px}h3{font-size:17px;line-height:1.4}
input,select,textarea{min-height:46px;border-color:#ded2c9;border-radius:9px;background:#fffdfa;font-size:14px;padding:12px 14px;transition:border-color .15s,box-shadow .15s}
input::placeholder,textarea::placeholder{color:#a09289}
input:focus,select:focus,textarea:focus{border-color:#ac7977;box-shadow:0 0 0 3px #781e2a09}
.btn{min-height:43px;font-size:12px;line-height:1.4;font-weight:600;border-radius:9px;padding:11px 16px;gap:8px;transition:background .15s,border-color .15s,box-shadow .15s}
.btn:hover{transform:none;filter:none}.btn.primary{box-shadow:0 3px 8px #781e2a12}.btn.primary:hover{background:var(--deep);border-color:var(--deep);box-shadow:0 5px 12px #781e2a20}
.btn.secondary{background:#fffdfa;border-color:#e0d3c9;color:#63504a}.btn.secondary:hover{background:#f5ece6;border-color:#cdb2a7}
.btn.ghost{color:var(--wine)}.btn.compact,.btn.small{min-height:36px;font-size:11px;padding:9px 12px}
.icon-btn{color:#8c736b;min-height:38px;min-width:38px;border-radius:9px}.icon-btn:hover{background:#f3e8e1;color:var(--wine)}
.text-btn{font-size:12px;font-weight:600;color:var(--wine);min-height:34px;gap:6px}
.eyebrow{font-size:11px;letter-spacing:.4px;font-weight:600;color:var(--muted)}
.small-text,.helper{font-size:12px;line-height:1.7;color:var(--muted)}
.field,.fields>label,.auth-form label{font-size:12px;font-weight:500;color:#69564e}.field small,.fields small{font-size:11px;color:var(--muted)}
.card,.panel,.stat,.note-card,.material-card{background:var(--surface);border-color:var(--line);border-radius:13px;box-shadow:var(--shadow)}
.card,.note-card,.material-card{padding:24px}.panel{overflow:hidden}.panel-head{padding:22px 24px;border-bottom:1px solid #f0e8e1}.panel-head h3{font-size:16px;font-weight:600;color:#4c3533}
.panel-body{padding:24px}.panel-head .eyebrow{font-size:11px;margin-bottom:4px}
.view{gap:24px}.grid2,.grid3,.patient-grid,.material-grid,.resource-grid,.portal-grid{gap:20px}
.sidebar{width:252px;background:#fffcf8;border-right:1px solid var(--line);padding:18px 16px 0}.brand{padding:0 0 14px;display:flex;justify-content:center;min-height:116px}
.brand img{width:180px;height:110px;object-fit:cover;mix-blend-mode:multiply}.brand>span{display:none}
.workspace-label{display:none}.sidebar nav{gap:0}.nav-group{margin-bottom:14px}.nav-group-label{padding:6px 13px 9px;font-size:10px;text-transform:uppercase;letter-spacing:1.35px;font-weight:600;color:#8b7463}
.sidebar nav button{min-height:43px;font-size:12px;font-weight:500;color:#80695d;padding:11px 13px;border-radius:8px;margin-bottom:2px;gap:11px}
.sidebar nav button svg{opacity:.83}.sidebar nav button:hover{background:#f7eee7;color:var(--wine)}
.sidebar nav button.active{background:#f1e2dc;color:var(--wine);box-shadow:inset 2px 0 var(--wine);font-weight:600}.sidebar nav button.active svg{opacity:1}
.sidebar nav button small{font-size:10px;background:#ead1c7;color:var(--wine);min-width:20px;text-align:center;padding:2px 5px}
.sidebar nav .portal-nav{margin-top:0;border:0;border-radius:8px;padding:11px 13px;min-height:43px;color:#80695d}.sidebar nav .portal-nav.active{color:var(--wine)}
.sidebar-bottom{padding-top:14px}.about-button{font-size:12px;color:#8e7467;padding:10px 13px}.about-button:hover{color:var(--wine)}
.profile{margin:12px -16px 0;padding:18px 16px;gap:10px;background:#fbf5ef;border-color:var(--line)}.profile strong{font-size:12px;color:#67483f;line-height:1.5}.profile small{font-size:10px;color:#8b7362}
.avatar{color:#78574e;border-radius:10px}.avatar.burgundy{background:#ecdad2;color:var(--wine)}
.topbar{height:76px;background:#fffdf9;padding:0 28px;border-color:var(--line)}.topbar-start,.topbar-context{display:flex;align-items:center;gap:12px;min-width:0}
.context-icon{width:37px;height:37px;display:grid;place-items:center;color:var(--wine);background:#f3e7e1;border:1px solid #ead7cc;border-radius:10px}
.context-copy{display:flex;flex-direction:column;gap:3px}.context-copy>span{font-size:10px;color:#866d5d}.context-copy>strong{font-size:12px;color:#735349;font-weight:600}
.top-actions{gap:14px}.top-actions-divider{height:24px;width:1px;background:var(--line)}.top-account{border:0!important;background:transparent!important;padding:8px!important}.top-account:hover{color:var(--wine)}
.top-actions .avatar.small{width:34px;height:34px;display:flex;font-size:11px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb strong{font-weight:500}
.main-content{padding:32px 28px 40px;max-width:1490px}.page-heading{align-items:center;gap:18px;margin-bottom:27px}.page-heading h1{font:400 32px/1.3 Georgia,'Times New Roman',serif;letter-spacing:-.55px;margin:0;color:#5b2d2c}
.date-label{margin-top:0;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:#fffaf5;font-size:11px;color:#836955;gap:7px}
.overview-summary{display:flex;flex-direction:column;gap:20px}.overview-summary-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.overview-summary-head h2{font-size:14px;font-weight:600;color:#806757}.overview-actions{gap:9px;margin:0}.overview-actions .btn{min-height:39px}
.stats{gap:18px}.stat{padding:22px;min-height:135px;position:relative}.stat>.row>span,.stat>span{font-size:12px;color:#876a5b;font-weight:500}
.stat>strong{font-family:Arial,Helvetica,sans-serif;font-size:31px;font-weight:500;letter-spacing:-1px;line-height:1.2;color:#644036;margin:21px 0 0}.stat>small{font-size:11px;color:var(--muted)}
.stat-icon{width:35px;height:35px;border-radius:10px;background:#f5e9e2;color:#a7665f}.stat-icon.rose{background:#f5e5e2;color:#a45c5d}.stat-icon.sage{background:#edf0e6;color:#8c9d77}.stat-icon.sand{background:#f8efdf;color:#b89860}.stat-icon.lilac{background:#f0e8ef;color:#ac879d}
.dashboard-lower{gap:22px;align-items:start}.panel-heading-group{display:flex;align-items:center;gap:10px}.panel-heading-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#f6ece6;color:#a56d5d}.panel-footer-actions{border-top:1px solid #f0e8e1;padding:13px 24px;display:flex;justify-content:flex-end}
.session-list,.care-list{padding:0 24px}.session-row{padding:17px 0;border-color:#eee3d9}.session-time strong{font-size:13px;color:#785342}.session-time small,.session-row .grow>small{font-size:11px;color:#8f7562}.session-row .grow>strong{font-size:13px;color:#785342}
.care-item{padding:17px 0}.care-item strong{font-size:13px;color:#785342}.care-item small{font-size:11px;color:#8f7562}
.dashboard-empty{padding:38px 12px;display:flex;align-items:center;flex-direction:column;gap:10px;min-height:218px;justify-content:center;text-align:center}.empty-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:15px;background:#f7ede5;color:#c2a28b;margin-bottom:5px}.dashboard-empty strong{font-size:13px;font-weight:500;color:#89654e}.dashboard-empty p{font-size:12px;color:#896c56;line-height:1.7}
.panel-bottom{margin:16px 24px 22px;width:calc(100% - 48px);font-size:12px;min-height:39px;background:#fffaf5;border-color:#e8d6c8}
.tag{font-size:10px;padding:5px 8px;border-radius:6px;background:#f7eee5;color:#ad8b62;border-color:#eedfcb}.tag.success,.tag.green{background:#edf2e6;color:#5c7141;border-color:#dce5cd}.tag.danger,.tag.red{background:#faece8;color:#974a43;border-color:#efcfc8}.tag.warning,.tag.amber{background:#fcf3e3;color:#8b662b;border-color:#eee0bd}
table{font-size:13px}th{font-size:10px;font-weight:600;letter-spacing:.7px;background:#faf5ee;color:#8e725c;padding:15px 20px}td{font-size:13px;color:#85624d;padding:18px 20px;border-color:#eee4da}td strong{font-size:13px;color:#795540}td small{font-size:11px;color:#8e6c52}
.table-wrap{background:#fffdfa;border-color:var(--line);border-radius:12px;box-shadow:var(--shadow)}.management-table-grid tbody tr:hover{background:#fff9f2}.management-row-actions{gap:5px;flex-wrap:nowrap}.management-person{gap:12px}.management-person:hover{color:var(--wine)}.management-empty{padding:44px 20px}.management-empty-icon{height:48px;width:48px;display:grid;place-items:center;background:#f7ece3;color:#c3a087;border-radius:14px;margin:0 auto 15px}.management-empty h3{font-size:17px;font-weight:500;margin-bottom:8px}.management-empty p{font-size:12px;line-height:1.7}
.empty{color:#8d6c53;font-size:13px;line-height:1.7}.empty h3{font-size:18px}.patient-card h3,.material-card h3,.note-card h3{font-size:18px}.patient-card p,.material-card>p,.note-card p{font-size:13px;color:var(--muted)}.material-art{display:none}.material-icon{background:#f5e7df;color:#ad7968;border-color:#e9d6c8;height:37px;width:35px;border-radius:10px}.patient-meta{font-size:12px;color:var(--muted)}
.pills button,.tabs button{font-size:12px;border-radius:8px;background:#fffcf7;border-color:#e7d7c8;color:#a17e65;padding:10px 14px;min-height:39px}.pills button.active,.pills button[aria-selected=true],.tabs button.active{background:var(--wine);color:#fff;border-color:var(--wine)}
.portal-hero{background:#fffaf4;border-color:var(--line);padding:24px;border-radius:13px}.portal-hero h2{font-size:22px;margin:0 0 12px}.portal-hero p{font-size:13px;color:var(--muted)}.portal-tabs{padding-bottom:2px}.coping-card{background:#fffdfa;border-color:var(--line);border-radius:13px;padding:24px}.coping-card h3{font-size:18px;color:var(--ink);margin-bottom:12px}.coping-card p{font-family:Arial,Helvetica,sans-serif;font-size:15px;font-style:normal;color:#7e5e4b;line-height:1.8}
.binding-box,.notice-box,.readonly-note{background:#faf1e8;border-color:#e9d6c4;border-radius:11px;padding:18px}.binding-box{gap:12px}.binding-box h3,.notice-box h3{font-size:16px;color:#805b3f}.notice-box p,.readonly-note{font-size:12px;line-height:1.7;color:#916e50}.binding-box code,.account-code{background:#fffaf4;border-color:#e9d6c4;color:#92643f;font-size:12px}
.mood-button{background:#fffaf4;border-color:#e6d2c0;font-size:12px;color:#9e7556;padding:13px;min-width:56px}.habit-day{font-size:12px;min-height:37px;min-width:37px}.habit-row{font-size:13px}.search-box{background:#fffdfa;border-color:#e2d1c1;border-radius:9px}.search-box input{font-size:13px}.file-drop{background:#fcf4e9;border-color:#ddc7af;color:#ac8a6a;font-size:13px}
dialog{background:#fffdfa;border-color:#e3cdbc;border-radius:15px;padding:28px;box-shadow:0 20px 70px #4d192425}dialog::backdrop{background:#3d192d66;backdrop-filter:blur(4px)}.dialog-head{margin-bottom:24px}.dialog-head h2{font-size:23px;margin-top:0;color:#7a463f}.dialog-content p{font-size:13px;color:#a18167}.form-actions,.dialog-actions{margin-top:24px;padding-top:19px}.check-field,.checkbox-field{font-size:12px;color:#a18167}#toast{font-size:13px;color:#91684f;background:#fffaf4;border-color:#e4ccb8;box-shadow:0 8px 30px #6b302516;border-radius:11px}
.entry.clean-login.refined-login{display:flex;align-items:center;justify-content:center;min-height:100dvh;padding:32px 20px;background:#fff}
.login-layout{display:block;width:100%;max-width:400px;min-height:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.login-brand-panel{display:none}
.login-brand-panel:after{content:'';position:absolute;inset:18px;border:1px solid #d8a99a25;border-radius:12px;pointer-events:none}
.login-brand-name{font:400 31px/1.3 Georgia,serif;letter-spacing:1px;align-self:flex-start;position:relative;z-index:1}.login-brand-visual{display:flex;align-items:center;justify-content:center;width:100%;flex:1}.login-brand-visual img{width:310px;max-width:110%;height:auto;filter:grayscale(1) invert(1);mix-blend-mode:screen;opacity:.7}
.login-brand-rule{display:block;width:52px;height:1px;background:#d8a99a77;margin-bottom:4px}
.entry.clean-login .entry-card{width:100%;max-width:none;min-height:0;margin:0;padding:30px;gap:20px;background:#fff;border:0;border-radius:0;justify-content:center}
.login-heading{display:flex;flex-direction:column;align-items:center;gap:20px}.entry-logo{width:190px;height:106px;object-fit:contain;margin:0;align-self:center;mix-blend-mode:multiply}.login-heading h1,.entry-card>h1,.entry-card>h2{font:400 23px/1.3 Georgia,serif;text-align:center;margin:0;color:var(--ink);letter-spacing:-.4px}
.auth-tabs{gap:3px;padding:4px;background:#f5eee7;border:1px solid #ede0d4;border-radius:9px;display:grid;grid-template-columns:1fr 1fr}.auth-tabs button{font-size:12px;color:#8c6b50;padding:10px 14px;min-height:38px;border-radius:6px;border:0!important}.auth-tabs button.active{color:var(--wine);font-weight:600;background:#fffdf9;box-shadow:0 1px 4px #69392810}
.auth-form{gap:18px}.auth-form label{font-size:12px}.auth-form .helper{font-size:12px;line-height:1.7}.auth-form .btn{min-height:45px;margin-top:3px}.auth-error,.auth-success{font-size:12px;line-height:1.7;border-radius:9px}.entry-card #reset-password{align-self:center;min-height:30px}.entry-card .password-control input{min-height:46px}.password-toggle{right:5px;top:5px;color:#987659}.password-toggle:hover,.password-toggle[aria-pressed=true]{background:#f2e3d7;color:var(--wine)}
.access-page{background:radial-gradient(ellipse at top left,#edddd066,transparent 65%),var(--paper);padding:32px 20px}.access-card{max-width:450px;padding:34px;background:#fffdfa;border-color:#e7d4c4;border-radius:18px;box-shadow:0 15px 50px #6933230c}.access-logo{width:190px;height:108px;object-fit:cover;margin:0 auto 22px}.access-card h1{font:400 28px/1.3 Georgia,serif;color:#7f4a3f;margin:0 0 15px}.access-description{font-size:13px;color:#916e50;line-height:1.7;margin-bottom:18px}.access-card .auth-form{margin-top:23px}.access-back{margin:20px auto 0}.account-email{font-size:13px;background:#f8ebdd;border-color:#ebd4bd;color:#9e704c;margin:14px 0 22px}.account-grid h2{font-size:20px;margin:0 0 20px}.account-summary dt{font-size:12px;color:#987354}.account-summary dd{font-size:14px;color:#9e704c}.account-password-intro{margin-bottom:20px}.account-summary dl>div{padding:15px 0}.help-content{max-width:760px}.help-content h2{font-size:17px;margin:26px 0 9px}.help-content h2:first-child{margin-top:0}.help-content p{font-size:13px;line-height:1.8;color:#a17f63}
/* Anéis do loading de perfis, com a identidade Psicurando. */
.profile-loading{width:100%;min-height:100vh;min-height:100dvh;gap:22px;padding:32px 24px;padding:max(32px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));background:#fff;text-align:center;color:var(--wine)}
.profile-loading>img{width:200px;max-width:70vw;height:125px;object-fit:cover;object-position:center;mix-blend-mode:multiply}
.profile-loading .pl{display:block;width:clamp(88px,23vw,112px);height:auto;aspect-ratio:1;max-width:100%;flex-shrink:0;overflow:visible}
.profile-loading .pl__ring{animation:psi-profile-ring-a 2s linear infinite}
.profile-loading .pl__ring--a{stroke:var(--wine,#781e2a)}
.profile-loading .pl__ring--b{animation-name:psi-profile-ring-b;stroke:var(--rose,#ca9786)}
.profile-loading .pl__ring--c{animation-name:psi-profile-ring-c;stroke:var(--gold,#a38758)}
.profile-loading .pl__ring--d{animation-name:psi-profile-ring-d;stroke:#b77873}
.profile-loading__message{max-width:28rem;overflow-wrap:anywhere}
.profile-loading h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:25px;line-height:1.3;letter-spacing:-.45px;margin-bottom:7px;color:var(--wine,#781e2a)}
.profile-loading p{font-size:13px;line-height:1.65;color:var(--muted,#8b776c)}
.profile-loading>.btn{min-height:44px;min-width:88px;margin-top:2px}
@keyframes psi-profile-ring-a{
 from,4%{stroke-dasharray:0 660;stroke-width:20;stroke-dashoffset:-330}
 12%{stroke-dasharray:60 600;stroke-width:30;stroke-dashoffset:-335}
 32%{stroke-dasharray:60 600;stroke-width:30;stroke-dashoffset:-595}
 40%,54%{stroke-dasharray:0 660;stroke-width:20;stroke-dashoffset:-660}
 62%{stroke-dasharray:60 600;stroke-width:30;stroke-dashoffset:-665}
 82%{stroke-dasharray:60 600;stroke-width:30;stroke-dashoffset:-925}
 90%,to{stroke-dasharray:0 660;stroke-width:20;stroke-dashoffset:-990}
}
@keyframes psi-profile-ring-b{
 from,12%{stroke-dasharray:0 220;stroke-width:20;stroke-dashoffset:-110}
 20%{stroke-dasharray:20 200;stroke-width:30;stroke-dashoffset:-115}
 40%{stroke-dasharray:20 200;stroke-width:30;stroke-dashoffset:-195}
 48%,62%{stroke-dasharray:0 220;stroke-width:20;stroke-dashoffset:-220}
 70%{stroke-dasharray:20 200;stroke-width:30;stroke-dashoffset:-225}
 90%{stroke-dasharray:20 200;stroke-width:30;stroke-dashoffset:-305}
 98%,to{stroke-dasharray:0 220;stroke-width:20;stroke-dashoffset:-330}
}
@keyframes psi-profile-ring-c{
 from{stroke-dasharray:0 440;stroke-width:20;stroke-dashoffset:0}
 8%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-5}
 28%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-175}
 36%,58%{stroke-dasharray:0 440;stroke-width:20;stroke-dashoffset:-220}
 66%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-225}
 86%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-395}
 94%,to{stroke-dasharray:0 440;stroke-width:20;stroke-dashoffset:-440}
}
@keyframes psi-profile-ring-d{
 from,8%{stroke-dasharray:0 440;stroke-width:20;stroke-dashoffset:0}
 16%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-5}
 36%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-175}
 44%,50%{stroke-dasharray:0 440;stroke-width:20;stroke-dashoffset:-220}
 58%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-225}
 78%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-395}
 86%,to{stroke-dasharray:0 440;stroke-width:20;stroke-dashoffset:-440}
}
@media(max-width:480px){.profile-loading{gap:20px}.profile-loading>img{width:180px;height:113px}.profile-loading h1{font-size:23px}}
@media(max-height:500px) and (orientation:landscape){.profile-loading{gap:12px;padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(18px,env(safe-area-inset-bottom))}.profile-loading>img{width:140px;height:87px}.profile-loading .pl{width:72px}.profile-loading h1{font-size:21px}}
body:has(.pwa-tools button:not([hidden])) .profile-loading{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
@media(prefers-reduced-motion:reduce){
 .profile-loading .pl__ring{animation:none}
 .profile-loading .pl__ring--a{stroke-dasharray:100 560;stroke-dashoffset:-75}
 .profile-loading .pl__ring--b{stroke-dasharray:32 188;stroke-dashoffset:-40}
 .profile-loading .pl__ring--c{stroke-dasharray:64 376;stroke-dashoffset:-155}
 .profile-loading .pl__ring--d{stroke-dasharray:64 376;stroke-dashoffset:-350}
}
@media(min-width:980px){.workspace{margin-left:252px}.main-content{padding:34px 34px 40px}.topbar{padding:0 34px;height:76px}.dashboard-lower{grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr)}}
@media(min-width:1280px){.main-content{padding:36px 42px 44px}.topbar{padding:0 42px}.stat{padding:23px}.dashboard-lower{gap:24px}}
@media(max-width:760px){.entry.clean-login.refined-login{padding:28px 18px}.login-layout{display:block;max-width:400px;min-height:0;border-radius:10px}.login-brand-panel{display:none}.entry.clean-login .entry-card{padding:30px;gap:20px}.login-heading{align-items:center}.entry-logo{align-self:center;width:190px;height:106px}.login-heading h1{text-align:center;font-size:23px}.entry-card #reset-password{align-self:center}.top-account>svg{display:none}.topbar-context{gap:9px}.context-icon{width:32px;height:32px}.top-actions{gap:9px}.top-actions-divider{display:none}}
@media(max-width:559px){.main-content{padding:24px 17px 30px}.topbar{padding:0 14px;height:67px}.page-heading h1{font-size:28px}.view{gap:20px}.stats{gap:12px}.stat{padding:17px;min-height:125px}.stat>strong{font-size:27px;margin-top:18px}.stat>.row>span{font-size:11px}.stat-icon{width:27px;height:27px}.panel-head{padding:18px;gap:10px}.panel-head h3{font-size:14px}.panel-heading-icon{width:29px;height:29px}.panel-head .btn.compact{font-size:10px;padding:8px 10px}.session-list,.care-list{padding:0 18px}.session-row .grow>strong{font-size:12px}.session-row .grow>small{font-size:10px}.session-time strong{font-size:12px}.panel-bottom{margin:14px 18px 20px;width:calc(100% - 36px)}.panel-footer-actions{padding:12px 18px}.dashboard-empty{min-height:200px;padding:30px 6px}.dashboard-empty p{font-size:11px}.dashboard-empty strong{font-size:12px}.overview-summary{gap:17px}.overview-summary-head{gap:10px}.overview-summary-head h2{font-size:13px}.overview-actions .btn{min-height:37px;padding:9px 12px;font-size:11px}.entry.clean-login.refined-login{padding:20px 16px}.entry.clean-login .entry-card{padding:26px 22px}.entry-logo{width:175px;height:98px}.access-page{padding:20px 16px;align-items:center}.access-card{padding:30px 24px;margin:0}.access-card h1{font-size:26px}.access-description{font-size:12px}.account-grid h2{font-size:20px}.card,.note-card,.material-card{padding:20px}.grid2,.grid3{gap:18px}.session-row .tag{font-size:9px}.context-copy>span{font-size:9px}.context-copy>strong{font-size:11px}.top-actions .avatar.small{display:none}.top-account{font-size:11px!important}.topbar-start{gap:7px}.top-refresh{min-width:32px}.management-empty{padding:34px 18px}th,td{padding:14px 16px}.nav-group{margin-bottom:11px}}
/* Patient invitations and mobile installation. */
.login-invitation-note{padding:12px 14px;border:1px solid #e3cbbd;background:#faf0e7;border-radius:10px;font-size:12px;line-height:1.65;color:#805b46}
.invitation-page{min-height:100dvh;padding:36px 20px;display:flex;align-items:center;justify-content:center;background:var(--paper)}
.invitation-card{width:100%;max-width:520px;padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.invitation-card h1{font:400 29px/1.3 Georgia,serif;color:#6f3532;margin:8px 0 18px}.invitation-card>img{display:block;width:180px;height:100px;object-fit:cover;margin:0 auto 20px;mix-blend-mode:multiply}
.invitation-card p{font-size:13px;line-height:1.75;color:#7e675a}.invitation-summary{margin:20px 0;padding:18px;background:#f8eee5;border:1px solid #e9d5c6;border-radius:11px;display:grid;gap:10px}
.invitation-summary strong{font-size:15px;color:#785040}.invitation-summary span,.invitation-summary small{font-size:12px;color:#8a6b56}.invitation-summary dl{margin:0}.invitation-summary dt{font-size:11px;color:#8a6b56;margin-bottom:5px}.invitation-summary dd{margin:0 0 12px;font-size:14px;color:#785040;overflow-wrap:anywhere}
.invitation-actions,.invite-share-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.invitation-notice{margin-top:18px;padding:13px 15px;font-size:12px;line-height:1.7;color:#85624c;background:#faf3ea;border:1px solid #e8d5bf;border-radius:10px}
.invite-link-box{display:block;width:100%;padding:13px;background:#faf3ec;border:1px solid #e5cdbb;border-radius:9px;overflow-wrap:anywhere;font:12px/1.7 ui-monospace,monospace;color:#8d6042;margin:16px 0}.invite-link-box input,.invite-link-box textarea{width:100%;font-size:12px}
.invite-code-box,.invite-code-input{display:block;width:100%;min-height:88px;padding:12px;font:13px/1.8 ui-monospace,monospace;overflow-wrap:anywhere;word-break:break-word;resize:vertical;background:#fff;border:1px solid var(--line);border-radius:9px}.invite-code-box{color:var(--wine);background:#fffaf6}.entry-card .login-invite-action{align-self:center;justify-content:center;min-height:40px;text-align:center}
.invite-list{display:grid;gap:12px;margin-top:18px}.invite-list-item{padding:17px;border:1px solid #e7d5c5;border-radius:11px;background:#fffaf4;display:flex;flex-direction:column;gap:10px}.invite-list-item strong{font-size:14px;color:#79533e}.invite-list-item p,.invite-list-item small{font-size:12px;color:#8d6e56;overflow-wrap:anywhere}.invite-list-item .toolbar{gap:8px;margin:3px 0 0}
.patient-code-note,.patient-code-confirm{margin:16px 0;padding:15px;border:1px solid var(--line);border-radius:10px;background:#fffaf6;font-size:13px;line-height:1.75;overflow-wrap:anywhere}.patient-code-confirm strong{color:var(--wine)}
.invite-status{font-size:11px;line-height:1.4;display:inline-flex;align-items:center;align-self:flex-start;border-radius:6px;padding:5px 8px;background:#f5ead9;color:#8a662b}.invite-status.accepted{background:#edf2e7;color:#5d7440}.invite-status.revoked,.invite-status.expired{background:#f2ebe5;color:#8f7560}
.pwa-tools{position:fixed;right:20px;bottom:max(18px,env(safe-area-inset-bottom));z-index:35;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - 32px)}
.pwa-tools [hidden]{display:none!important}.pwa-tools button{min-height:43px;padding:11px 15px;border:1px solid #d8b9a7;border-radius:11px;background:#fffaf4;color:var(--wine);font-size:12px;font-weight:600;box-shadow:0 4px 20px #61212b18;display:flex;align-items:center;gap:8px}
.pwa-tools button:hover{background:#f4e5d9;border-color:#bc8b79}.pwa-tools #pwa-update{background:var(--wine);color:#fff3e5;border-color:var(--wine)}
.pwa-dialog{max-width:480px;padding:26px}.pwa-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.pwa-dialog-header h2{font-size:21px;color:#79503e}.pwa-dialog-close{width:35px;height:35px;min-width:35px;display:grid;place-items:center;border:1px solid #e2cbbb;border-radius:9px;color:#956d53;font-size:20px;line-height:1}
.pwa-dialog-body{font-size:13px;line-height:1.8;color:#81614a}.pwa-dialog-body p{margin:12px 0;color:#81614a}.pwa-note{padding:13px 15px;border:1px solid #ead6bf;background:#faf0e1;border-radius:10px;font-size:12px;line-height:1.7;color:#8c6949}.pwa-steps{margin:18px 0;padding-left:23px;color:#81614a;font-size:13px;line-height:1.8}.pwa-steps li{padding-left:4px;margin:10px 0}.pwa-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:22px}.pwa-dialog-action{min-height:42px;padding:11px 16px;border-radius:9px;background:var(--wine);color:#fff8ee;font-size:12px;font-weight:600}.pwa-dialog-action:disabled{opacity:.55}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body:has(.pwa-tools button:not([hidden])) .main-content{padding-bottom:110px}
@media(max-width:559px){.invitation-page{padding:24px 16px}.invitation-card{padding:26px 22px}.invitation-card h1{font-size:26px}.invitation-actions .btn,.invite-share-actions .btn{flex:1;min-width:120px}.pwa-tools{right:14px;bottom:max(12px,env(safe-area-inset-bottom));gap:7px}.pwa-tools button{min-height:42px;padding:11px 13px;font-size:11px}.pwa-dialog{padding:24px 21px}.pwa-dialog-header h2{font-size:20px}.pwa-dialog-action{flex:1}.invite-list-item{padding:15px}.entry.clean-login.refined-login:has(~.pwa-tools button:not([hidden])){padding-bottom:80px}}
@media print{.pwa-tools,.pwa-dialog,.invitation-actions,.invite-share-actions{display:none!important}}
@media(max-width:559px){body:has(.pwa-tools button:not([hidden])) .entry.clean-login.refined-login,body:has(.pwa-tools button:not([hidden])) .access-page,body:has(.pwa-tools button:not([hidden])) .invitation-page{padding-bottom:90px}}
.pwa-dialog-close-button{min-height:40px;padding:10px 16px;border:1px solid #e2cbbb;background:#fffaf4;color:#8d6045;border-radius:9px;font-size:12px;font-weight:600}.invite-share-actions a.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.binding-box>.row.between{flex-wrap:wrap;align-items:flex-start;gap:16px}.binding-box>.row.between>.row{flex-wrap:wrap;gap:8px;max-width:100%}

/* Invitation ticket dialogs keep their existing form semantics. */
.ticket-success-note{text-align:center;margin:12px 0 20px}.invitation-card:has(.psi-ticket){max-width:560px}.invitation-card .psi-ticket-wrap{margin:20px auto}.invitation-card .access-logo{display:none}.dialog-content>.psi-ticket-wrap{margin-top:8px}dialog:has(.psi-ticket){max-width:min(680px,calc(100vw - 24px))}

/* Conexões: apenas o necessário para escolher a ficha e compartilhar. */
.connection-person{display:flex;align-items:center;gap:12px;background:#faf3ee;border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:4px 0 20px}
.connection-person>span{display:flex;align-items:center;justify-content:center;flex:0 0 38px;height:38px;border-radius:50%;background:#f0dcd6;color:var(--wine)}
.connection-person>div{min-width:0}.connection-person small{display:block;font-size:10px;color:var(--muted);margin-bottom:3px}.connection-person strong{display:block;font-size:14px;font-weight:500;color:var(--wine);overflow-wrap:anywhere}
.connection-recipient{font-size:13px;line-height:1.65;color:var(--muted);margin:0 0 12px;overflow-wrap:anywhere}.connection-recipient strong{font-weight:500;color:var(--wine)}
.connection-options{margin:14px 0;border-top:1px solid var(--line);padding-top:5px}.connection-options>summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:12px;color:var(--wine);line-height:1.5}.connection-options>summary:focus-visible{outline:2px solid var(--wine);outline-offset:3px;border-radius:4px}.connection-options>.field{margin-top:10px}
.connection-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.connection-actions>.btn{min-height:44px;flex:1 1 130px;white-space:normal;text-align:center}.connection-share-note{margin-top:13px}
.connection-launch>.row{gap:18px;flex-wrap:wrap}.connection-launch>.row>.connection-actions{flex:0 1 auto}.connection-launch>.connection-options{margin-bottom:0}.connection-launch .connection-options .connection-actions{justify-content:flex-start}.connection-launch .connection-options .btn{flex:0 1 auto}
dialog:has(.connection-person),dialog:has([data-invite-recipient]),dialog:has([name="patientCode"]){max-width:min(480px,calc(100vw - 24px))}
@media(max-width:559px){.connection-launch>.row>.connection-actions{width:100%;flex:1 1 100%}.connection-person{padding:12px}.connection-actions>.btn{font-size:12px}.connection-options>summary{font-size:13px}}

#document-upload{min-width:0;max-width:100%}#document-upload .fields{grid-template-columns:minmax(0,1fr)}#document-upload .field,#document-upload .fields>label,#document-upload [data-file-selection]{min-width:0;max-width:100%}#document-upload input[type=file],#document-upload select{width:100%;min-width:0;max-width:100%}#document-upload input[type=file]{font-size:12px}#document-upload [data-file-selection] strong{overflow-wrap:anywhere}@media(min-width:560px){#document-upload .fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Responsive workspace: content can grow without pushing its container. */
.refined-shell .workspace,.refined-shell .main-content,.refined-shell .view{min-width:0;max-width:100%}
.refined-shell :is(.grid2,.grid3,.stats,.dashboard-lower,.patient-grid,.material-grid,.resource-grid,.portal-grid,.account-grid)>*{min-width:0}
.refined-shell :is(h1,h2,h3,h4,p,.profile strong,.context-copy strong,.session-row strong,.care-item strong){overflow-wrap:anywhere}
.refined-shell :is(.page-heading,.overview-summary-head,.panel-head,.panel-heading-group,.row.between){flex-wrap:wrap;min-width:0}
.refined-shell .page-heading>div,.refined-shell .panel-heading-group,.refined-shell .profile>div,.refined-shell .context-copy{min-width:0}
.refined-shell .overview-summary-head{align-items:flex-start}
.refined-shell .overview-actions{flex-wrap:wrap}
.refined-shell .panel-head h3{line-height:1.5}
.refined-shell .profile strong{line-height:1.5}
.refined-shell .sidebar{max-width:calc(100vw - 48px);height:100dvh;padding-bottom:env(safe-area-inset-bottom);overscroll-behavior:contain}
.refined-shell .sidebar nav button{min-height:44px}
.refined-shell .sidebar nav button span{min-width:0;overflow-wrap:anywhere}
.refined-shell .topbar{height:auto;min-height:76px;padding-block:12px}
.refined-shell .topbar-start{flex:1;min-width:0}
.refined-shell .topbar-context{min-width:0}
.refined-shell .context-icon{flex:0 0 37px}
.refined-shell .context-copy>strong{line-height:1.4}
.refined-shell .top-actions{flex-shrink:0}
.refined-shell .top-actions>.btn.top-account>span{display:inline}
.refined-shell .icon-btn{min-width:42px;min-height:42px}
.refined-shell .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}
.refined-shell .stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}
.refined-shell .overview-summary .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.refined-shell .stat>strong{font-size:clamp(24px,2.2vw,31px);overflow-wrap:anywhere;font-variant-numeric:tabular-nums;letter-spacing:-.6px}
.refined-shell .stat>small{display:block;margin-top:8px;font-size:12px;line-height:1.55}
.refined-shell .stat>.row{align-items:flex-start;gap:10px}
.refined-shell .stat>.row>span{min-width:0;line-height:1.5}
.refined-shell .toolbar{min-width:0;gap:12px}
.refined-shell .toolbar>.field{flex:1 1 170px;max-width:340px}
.refined-shell .toolbar .field,.refined-shell .search-box{min-width:0}
.refined-shell .toolbar input,.refined-shell .toolbar select{width:100%;min-width:0}
.refined-shell .table-wrap{position:relative;max-width:100%;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#c9aca0 #f7eee8}
.refined-shell .table-wrap:focus-visible{outline:2px solid var(--wine);outline-offset:3px}
.refined-shell .management-table-grid{min-width:620px;white-space:normal}
.refined-shell .management-table-grid th{white-space:nowrap}
.refined-shell .management-table-grid td{overflow-wrap:anywhere;line-height:1.6}
.refined-shell .management-table-grid td:first-child{min-width:180px;max-width:310px}
.refined-shell .management-person{justify-content:flex-start;text-align:left;max-width:300px}
.refined-shell .management-person>span:last-child{min-width:0;overflow-wrap:anywhere}
.refined-shell .management-row-actions{flex-wrap:wrap;min-width:210px;max-width:330px;gap:7px}
.refined-shell .management-row-actions .btn{min-height:39px;padding:9px 12px;flex:0 1 auto}
.refined-shell .management-view .panel>.toolbar{padding:20px 22px}
.refined-shell .management-view .panel>.toolbar+.pills{padding:0 22px 18px}
.refined-shell .management-view .panel>:is(h3,p,.stack){margin:18px 22px}
.refined-shell .management-view .panel>h3{line-height:1.5}
.refined-shell .session-row .grow,.refined-shell .care-item .grow{overflow-wrap:anywhere}
.refined-shell .scope-hero{flex-wrap:wrap}
.refined-shell .scope-hero>div{flex:1 1 220px;min-width:0}
.refined-shell .account-grid .card{min-width:0}
.refined-shell .account-grid .form-actions{justify-content:flex-start}
.refined-shell .account-grid .form-actions .btn{flex:1 1 150px}
.refined-shell footer{flex-wrap:wrap;line-height:1.6;font-size:11px}
.refined-shell footer>span:last-child{font-size:11px}

/* Module styles are injected after the shared stylesheet. Scope these rules to the shell. */
.refined-shell .clinical-module .cl-patient{flex-wrap:wrap}
.refined-shell .clinical-module .cl-patient-info{min-width:0;flex:1 1 200px}
.refined-shell .clinical-module .cl-patient-select{flex:1 1 220px;min-width:0;max-width:100%}
.refined-shell .clinical-module :is(.cl-record-header,.cl-record-footer,.cl-material-meta){flex-wrap:wrap}
.refined-shell .clinical-module .cl-record-header>div:first-child{min-width:0;flex:1 1 180px}
.refined-shell .clinical-module .cl-record-actions{flex-wrap:wrap}
.refined-shell .clinical-module :is(.cl-action,.cl-filter,.cl-read-button){min-height:42px}
.refined-shell .clinical-module .cl-action{min-width:42px}
.refined-shell .clinical-module :is(.cl-tab,.cl-material-actions .btn){min-height:44px}
.refined-shell .clinical-module :is(.cl-material,.cl-material-body,.cl-tabs){min-width:0;max-width:100%}
.refined-shell .patient-page :is(.patient-top,.patient-head,.patient-actions){flex-wrap:wrap}
.refined-shell .patient-page :is(.patient-stat,.patient-resource,.patient-resource-copy,.patient-journal,.patient-card,.patient-tabs){min-width:0;max-width:100%}
.refined-shell .patient-page :is(.patient-link,.patient-icon-btn,.patient-open,.patient-filters button,.patient-tabs button){min-height:44px}
.refined-shell .patient-page :is(.patient-icon-btn,.patient-open){min-width:44px}
.refined-shell .patient-page .patient-status{white-space:normal}
.refined-shell .patient-page .table-wrap{max-width:100%;overscroll-behavior-x:contain}
.refined-shell .patient-page .patient-habit-table :is(th,td){overflow-wrap:normal}

/* Forms retain their controls and labels at narrow widths and large text sizes. */
:where(.refined-shell,dialog,.access-card,.entry-card) :is(.fields,.field,.fields>label,.auth-form label){min-width:0;max-width:100%}
:where(.refined-shell,dialog,.access-card,.entry-card) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){min-width:0;width:100%;max-width:100%}
.fields{grid-template-columns:minmax(0,1fr)}
dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:26px;scroll-padding-block:24px;overscroll-behavior:contain}
.dialog-head{gap:16px;align-items:flex-start}
.dialog-head>div{min-width:0}
.dialog-head h2{overflow-wrap:anywhere;line-height:1.4}
.dialog-head .icon-btn{min-width:44px;min-height:44px;flex-shrink:0}
.dialog-content{min-width:0;max-width:100%;overflow-wrap:anywhere}
.dialog-content .fields+ p{margin-top:16px}
.dialog-content .toolbar{margin-top:20px}
.dialog-content :is(.toolbar,.form-actions,.dialog-actions)>.btn{white-space:normal;overflow-wrap:anywhere;min-height:44px}
#toast{bottom:max(20px,env(safe-area-inset-bottom));overflow-wrap:anywhere;line-height:1.6}

@media(min-width:560px){.fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1280px){.refined-shell .overview-summary .stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:979px){.refined-shell .main-content{padding-bottom:max(36px,calc(env(safe-area-inset-bottom) + 24px))}}
@media(max-width:640px){
 .refined-shell .clinical-module .cl-patient-info{flex-basis:130px}
 .refined-shell .clinical-module .cl-patient-select{flex-basis:100%}
 .refined-shell .patient-page .patient-assignment-copy{min-width:0;flex:1 1 150px}
 .refined-shell .patient-page .patient-assignment .patient-status{margin-left:0}
}
@media(max-width:559px){
 .refined-shell .topbar{min-height:72px;padding-inline:12px;gap:8px}
 .refined-shell .topbar-start{gap:6px}
 .refined-shell .topbar-context{gap:8px}
 .refined-shell .context-icon{flex-basis:30px;width:30px;height:32px}
 .refined-shell .top-actions{gap:4px}
 .refined-shell .top-account{min-height:44px;padding:8px 5px!important}
 .refined-shell .top-refresh{min-width:40px}
 .refined-shell .main-content{padding-inline:16px}
 .refined-shell .page-heading h1{font-size:clamp(25px,7vw,30px)}
 .refined-shell .page-heading{gap:12px;margin-bottom:22px}
 .refined-shell .overview-summary-head{flex-direction:column;gap:12px}
 .refined-shell .overview-actions{width:100%}
 .refined-shell .overview-actions>.btn{flex:1 1 120px;min-height:44px;font-size:12px}
 .refined-shell .panel-head{gap:12px;padding:18px}
 .refined-shell .panel-head h3{font-size:16px}
 .refined-shell .panel-head .btn.compact{font-size:12px;min-height:44px}
 .refined-shell .panel-heading-group{flex:1 1 150px}
 .refined-shell .panel-body{padding:18px}
 .refined-shell .btn,.refined-shell .btn.compact,.refined-shell .btn.small,.refined-shell .icon-btn,.refined-shell .text-btn,.refined-shell .management-row-actions .btn{min-height:44px}
 .refined-shell .icon-btn{min-width:44px}
 .refined-shell .pills button,.refined-shell .tabs button{min-height:44px;white-space:normal}
 .refined-shell .stat{padding:18px;min-height:122px}
 .refined-shell .stat>.row>span{font-size:12px}
 .refined-shell .stat>strong{font-size:27px}
 .refined-shell .toolbar>.field{max-width:100%;flex-basis:100%}
 .refined-shell .toolbar>.row{flex-wrap:wrap;gap:8px}
 .refined-shell .management-view .panel>.toolbar{padding:18px}
 .refined-shell .management-view .panel>.toolbar+.pills{padding-inline:18px}
 .refined-shell .management-view .panel>:is(h3,p,.stack){margin-inline:18px}
 .refined-shell .session-row .grow>strong{font-size:13px}
 .refined-shell .session-row .grow>small{font-size:12px}
 .refined-shell .care-item small{font-size:12px}
 :where(.refined-shell,dialog,.access-card,.entry-card) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font-size:16px;min-height:46px}
 dialog{padding:22px 18px;border-radius:14px;max-height:calc(100dvh - 20px)}
 .dialog-head h2{font-size:22px}
 .dialog-content :is(.toolbar,.form-actions,.dialog-actions)>.btn{flex:1 1 120px}
 #document-upload input[type=file]{font-size:14px}
}
@media(max-width:379px){
 .refined-shell .topbar-context>.context-icon{display:none}
 .refined-shell .overview-summary .stats{grid-template-columns:minmax(0,1fr)}
 .refined-shell .patient-page .patient-moods{grid-template-columns:repeat(3,minmax(0,1fr))}
 .patient-dialog-moods{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Drawer controls and administration use the same spacing as the workspace. */
.refined-shell #close-menu{align-self:flex-end;margin-bottom:4px}
.refined-shell .view:has(#admin-public-config){display:grid;gap:24px}
.refined-shell .view:has(#admin-public-config)>.panel{padding:clamp(18px,3vw,28px);display:grid;gap:20px}
.refined-shell .view:has(#admin-public-config) .panel>h2{font-size:25px}
.refined-shell .view:has(#admin-public-config) details>summary{cursor:pointer;min-height:44px;line-height:1.6;padding-block:10px;color:var(--wine)}
.refined-shell .view:has(#admin-public-config) details>.muted{margin-block:14px}
.refined-shell .view:has(#admin-public-config) .toolbar{align-items:flex-end}
.refined-shell .view:has(#admin-public-config) .panel>.muted{font-size:14px}
.refined-shell .management-table-grid td:has([data-action="appointment-patient"]){min-width:220px}
.refined-shell [data-action="appointment-patient"]{text-align:left;justify-content:flex-start;white-space:normal;overflow-wrap:normal}
.refined-shell .agenda-week-navigation{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;width:100%}
.refined-shell .agenda-week-navigation>strong{font-size:13px;line-height:1.6;text-align:center;overflow-wrap:normal}
.refined-shell .agenda-week-navigation>.btn{min-width:44px;padding:10px;font-size:20px;flex:none}
dialog :is(.btn,.btn.compact,.icon-btn){min-height:44px;font-size:13px}
#dialog-form>.toolbar{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);justify-content:flex-end}
#dialog-form>.muted{margin-top:16px;font-size:13px;line-height:1.7}
