:root{--blue:#154360;--blue-soft:#1e5c79;--gold:#caa255;--bg:#eef4f6;--ink:#21323b;--muted:#687a84;--line:#dce6ea;--soft:#eaf3f5;--warm:#fbf6ea;--green:#e5f1ec;--red:#fcecea;--white:#fff}*{box-sizing:border-box}html{width:100%;min-height:100%}body{background:var(--bg);width:100%;min-height:100%;color:var(--ink);margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;overflow-x:hidden}button,input,textarea{font:inherit}button,.secondary-link{background:var(--blue);min-height:48px;color:var(--white);cursor:pointer;white-space:normal;border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;max-width:100%;padding:12px 16px;font-weight:800;text-decoration:none;display:inline-flex}:is(button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible){outline:3px solid var(--gold);outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.5}.secondary,.secondary-link{background:var(--white);color:var(--blue);border:1px solid var(--line)}.shell{width:min(1180px,100% - 24px);margin:0 auto;padding:24px 0 48px}.clinic-header,.patient-hero,.public-hero{background:linear-gradient(140deg, var(--blue), var(--blue-soft));color:var(--white);border-radius:8px;justify-content:space-between;align-items:flex-start;gap:24px;padding:26px;display:flex;box-shadow:0 14px 34px #15436029}.clinic-header h1,.patient-hero h1,.public-hero h1{letter-spacing:0;margin:4px 0 10px;font-size:3rem;line-height:1.02}.clinic-header p,.patient-hero p,.public-hero p{max-width:760px;margin:0;font-size:1.05rem;line-height:1.55}.micro{color:var(--gold);text-transform:uppercase;letter-spacing:0;margin:0 0 6px;font-size:.77rem;font-weight:900}.status-pill,.step-chip,.action-flag{background:var(--warm);min-height:34px;color:var(--blue);white-space:nowrap;border-radius:999px;align-items:center;padding:7px 12px;font-weight:900;display:inline-flex}.role-tabs{gap:8px;margin:18px 0;display:flex}.role-tabs button{background:var(--white);color:var(--blue);border:1px solid var(--line)}.role-tabs .active{background:var(--blue);color:var(--white)}.dashboard-grid{grid-template-columns:290px minmax(0,1fr) 300px;align-items:start;gap:16px;display:grid}.fernanda-layout{grid-template-columns:minmax(0,1fr) 360px;gap:16px;display:grid}.panel,.screen-card,.response-panel,.public-actions{background:var(--white);border:1px solid var(--line);border-radius:8px;padding:18px;box-shadow:0 8px 24px #15436012}.panel-title h2,.response-panel h2,.screen-body h2,.public-screen h2{color:var(--blue);letter-spacing:0;margin:0 0 10px;font-size:1.55rem;line-height:1.1}.panel-title p,.detail-panel p,.script-box p,.ops-item p,.response-panel p,.screen-body p,.public-screen p,.public-actions p{line-height:1.55}.assignment-list,.material-stack,.ops-list,.form-stack{gap:10px;display:grid}.assignment-row{background:var(--white);width:100%;min-height:66px;color:var(--ink);border:1px solid var(--line);text-align:left;justify-content:space-between}.assignment-row.selected{border-color:var(--gold);background:var(--warm)}.assignment-row span{gap:2px;display:grid}.assignment-row small,.muted{color:var(--muted)}.metric-strip,.schema-note,.doctor-note,.privacy-footnote{border:1px solid var(--line);background:var(--soft);color:var(--blue);border-radius:8px;margin-top:14px;padding:12px;line-height:1.45}.metric-strip{gap:6px;font-weight:800;display:grid}.info-grid,.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0;display:grid}.info-item,.summary-block,.script-box,.ops-item,.material-mini{border:1px solid var(--line);background:#fbfdfe;border-radius:8px;padding:14px}.info-item span{color:var(--muted);margin-bottom:5px;font-size:.84rem;display:block}.info-item strong,.material-mini strong{color:var(--blue)}.summary-block h3,.ops-item h3,.script-box strong{color:var(--blue);margin:0 0 8px;font-size:1rem}.summary-block ul{margin:0;padding-left:20px}.summary-block li{margin:8px 0;line-height:1.45}.summary-block.alert{background:var(--red);border-color:#b54d4d}.action-bar,.ops-actions{flex-wrap:wrap;gap:10px;margin-top:16px;display:flex}.material-mini{gap:4px;display:grid}.patient-shell,.public-shell{width:min(720px,100% - 20px);margin:0 auto;padding:12px 0 48px}.patient-hero,.public-hero{margin:0 0 16px;display:block}.context-box{background:#ffffff17;border:1px solid #ffffff40;border-radius:8px;margin-top:16px;padding:12px}.progress-row{color:var(--blue);align-items:center;gap:10px;font-weight:900;display:flex}.progress-row span{min-width:64px}.progress-track{background:#e5edf0;border-radius:20px;flex:1;height:8px;overflow:hidden}.progress-track i{background:var(--gold);height:100%;display:block}.screen-body{padding:18px 0}.clinical-visual{border:1px solid var(--line);background:linear-gradient(145deg, var(--soft), var(--white));min-height:220px;color:var(--blue);border-radius:8px;align-items:center;gap:12px;margin:16px 0;padding:14px;font-weight:800;display:grid}.clinical-visual.compact{min-height:150px}.visual-code{background:var(--blue);color:var(--white);border-radius:999px;justify-self:start;padding:6px 10px;font-size:.8rem}.visual-stage{justify-content:center;align-items:end;gap:18px;min-height:112px;display:flex;position:relative}.clinical-visual.timeline .visual-stage{align-items:center}.clinical-visual.timeline i{background:var(--gold);border-radius:999px;width:72px;height:16px;position:relative}.clinical-visual.timeline i:after{content:"";background:var(--blue);width:24px;height:2px;position:absolute;top:50%;right:-12px}.clinical-visual.bars b{background:var(--gold);border-radius:8px 8px 0 0;width:56px}.clinical-visual.bars b:first-child{height:46px}.clinical-visual.bars b:nth-child(2){background:#b7c9d0;height:78px}.clinical-visual.bars b:nth-child(3){background:var(--blue);height:106px}.body-head,.body-line,.body-ring{position:absolute}.body-head{border:4px solid var(--blue);border-radius:50%;width:44px;height:44px;top:0}.body-line{background:var(--blue);border-radius:999px;width:8px;height:86px;top:48px}.body-ring{border:3px dashed var(--gold);border-radius:50%;width:170px;height:112px;top:18px}.clinical-visual.cycle i{border:8px solid var(--gold);border-left-color:var(--blue);border-radius:50%;width:54px;height:54px}.clinical-visual.calendar .visual-stage{grid-template-columns:repeat(4,40px);align-content:center;display:grid}.clinical-visual.calendar b{background:var(--white);border:1px solid var(--line);border-radius:6px;height:32px}.clinical-visual.calendar b:nth-child(4n){background:var(--gold)}.clinical-visual.compare .visual-stage{align-items:center}.clinical-visual.compare i{border:3px solid var(--line);background:var(--white);border-radius:50%;width:78px;height:78px}.clinical-visual.compare strong{background:var(--blue);border-radius:999px;width:70px;height:6px}.deeper,.evidence,.caution{border-left:4px solid var(--gold);background:var(--warm);border-radius:8px;margin-top:14px;padding:12px}.caution{background:var(--red);border-left-color:#b54d4d}summary{cursor:pointer;color:var(--blue);font-weight:900}.patient-nav{gap:10px;display:flex}.patient-nav button:last-child{flex:1}.response-panel{margin-top:16px}.field{border:1px solid var(--line);border-radius:8px;margin:0;padding:14px}.field legend{color:var(--blue);font-size:1.05rem;font-weight:900}.field p,.field small{color:var(--muted)}textarea,input[type=time],input[type=number]{background:var(--white);width:100%;min-height:48px;color:var(--ink);border:1px solid #c8d6dc;border-radius:8px;padding:12px}.choice-grid{gap:8px;display:grid}.choice{border:1px solid var(--line);background:var(--white);border-radius:8px;align-items:flex-start;gap:10px;min-height:48px;padding:12px;display:flex}.choice input{width:22px;height:22px;accent-color:var(--blue);flex:0 0 22px}.range-row{align-items:center;gap:12px;min-height:56px;display:flex}.range-row input{accent-color:var(--blue);flex:1}.range-row output{min-width:34px;color:var(--blue);font-size:1.3rem;font-weight:900}.pair-scale{grid-template-columns:1fr 1fr;gap:10px;display:grid}.pair-scale label{color:var(--blue);gap:6px;font-weight:800;display:grid}.completion-box{border:1px solid var(--line);background:var(--green);color:var(--blue);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding:12px;font-weight:900;display:flex}.public-content{gap:12px;display:grid}.public-screen{background:var(--white);border:1px solid var(--line);border-radius:8px;padding:18px}.public-actions{background:var(--warm);border-color:#e8d9b4;margin:16px 0}.public-picker{flex-wrap:wrap;gap:8px;display:flex}.public-picker a{border:1px solid var(--line);background:var(--white);min-height:44px;color:var(--blue);border-radius:999px;align-items:center;padding:8px 12px;font-weight:800;text-decoration:none;display:inline-flex}.pilot-shell,.pilot-reader-shell{width:min(680px,100%);max-width:calc(100vw - 20px);color:var(--ink);overflow-wrap:break-word;margin:0 auto}.pilot-shell{padding:14px 0 48px}.pilot-reader-shell{min-height:100vh;padding:10px 0 88px}.pilot-entry,.pilot-finish{background:var(--white);border:1px solid var(--line);border-radius:8px;align-content:center;gap:16px;min-width:0;max-width:100%;min-height:calc(100vh - 92px);padding:26px;display:grid;box-shadow:0 12px 32px #15436017}.pilot-entry>*,.pilot-finish>*,.pilot-screen>*,.pilot-share>*{min-width:0;max-width:100%}.pilot-entry h1,.pilot-finish h1,.pilot-screen h1{color:var(--blue);letter-spacing:0;margin:0;line-height:1.04}.pilot-entry h1,.pilot-finish h1{font-size:2.45rem}.pilot-entry p,.pilot-finish p{margin:0;font-size:1.08rem;line-height:1.55}.pilot-kicker,.pilot-kind{color:var(--gold);text-transform:uppercase;letter-spacing:0;margin:0;font-size:.77rem;font-weight:900}.pilot-entry-title{border-left:5px solid var(--gold);background:var(--warm);color:var(--blue);border-radius:8px;padding:14px;font-weight:900;line-height:1.35}.pilot-start{text-transform:uppercase;width:100%;max-width:100%;min-height:58px;margin-top:8px}.pilot-reader-top{min-height:48px;color:var(--blue);justify-content:space-between;align-items:center;gap:14px;font-size:.94rem;display:flex}.pilot-reader-top strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pilot-reader-top span{flex:none;font-weight:900}.pilot-progress{background:#e5edf0;border-radius:999px;height:5px;margin-bottom:12px;overflow:hidden}.pilot-progress i{background:var(--gold);height:100%;display:block}.pilot-screen{background:var(--white);border:1px solid var(--line);border-radius:8px;align-content:start;gap:12px;min-width:0;max-width:100%;min-height:calc(100vh - 170px);padding:18px;display:grid;box-shadow:0 10px 28px #15436012}.pilot-screen h1{font-size:2rem}.pilot-essential{margin:0;font-size:1.12rem;line-height:1.55}.pilot-deeper,.pilot-action{border-radius:8px;padding:12px;line-height:1.48}.pilot-deeper{border-left:4px solid var(--gold);background:var(--warm)}.pilot-action{background:var(--green);color:var(--blue);border:1px solid #c9ddd5;font-weight:900}.pilot-footer{z-index:20;border-top:1px solid var(--line);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#eef4f6f5;grid-template-columns:.8fr 1.2fr;gap:10px;width:min(680px,100vw - 20px);padding:10px;display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.pilot-footer button{text-transform:uppercase;min-width:0;min-height:58px;padding-inline:10px}.pilot-visual{border:1px solid var(--line);background:radial-gradient(circle at 18% 20%, #caa25529, transparent 30%), linear-gradient(145deg, #fbfdfe, var(--soft));border-radius:8px;grid-template-rows:1fr auto;gap:10px;width:100%;max-width:100%;min-height:260px;padding:14px;display:grid;overflow:hidden}.pilot-visual.compact{min-height:180px}.pilot-visual-scene{border-radius:8px;min-height:178px;position:relative}.human,.scene-line,.scene-card,.scene-arrow{display:block;position:absolute}.human{background:linear-gradient(180deg, #d9b193 0 26%, var(--blue) 26% 100%);border-radius:28px 28px 18px 18px;width:56px;height:82px;bottom:18px;left:50%;transform:translate(-50%);box-shadow:0 10px 20px #15436021}.human:before{content:"";background:#c89474;border-radius:50%;width:27px;height:27px;position:absolute;top:-28px;left:15px}.human.secondary{opacity:.58;background:linear-gradient(#c89474 0 30%,#b7c9d0 30% 100%);width:42px;height:64px;left:72%}.scene-line{background:var(--gold);border-radius:999px;height:6px}.scene-line.one{width:76%;bottom:16px;left:12%}.scene-line.two{background:#1543602e;width:46%;bottom:52px;left:27%}.scene-card{border:1px solid var(--line);background:var(--white);border-radius:8px;width:70px;height:54px}.scene-card.a{top:18px;left:8%}.scene-card.b{top:30px;right:10%}.scene-card.c{bottom:58px;left:18%}.scene-arrow{background:var(--gold);border-radius:999px;width:80px;height:8px;top:54px;left:45%}.scene-arrow:after{content:"";border-left:14px solid var(--gold);border-top:10px solid #0000;border-bottom:10px solid #0000;position:absolute;top:-6px;right:-6px}.visual-caption{flex-wrap:wrap;gap:8px;display:flex}.visual-caption span{background:var(--white);border:1px solid var(--line);min-height:34px;color:var(--blue);border-radius:999px;align-items:center;padding:6px 10px;font-size:.86rem;font-weight:900;display:inline-flex}.pilot-visual.timeline .human,.pilot-visual.duration .human,.pilot-visual.oscillation .human,.pilot-visual.session-summary .human,.pilot-visual.sleep-record .human,.pilot-visual.still-limits .human,.pilot-visual.fear-damage .human,.pilot-visual.movement-return .human{display:none}.pilot-visual.timeline .scene-card,.pilot-visual.duration .scene-card,.pilot-visual.session-summary .scene-card,.pilot-visual.sleep-record .scene-card,.pilot-visual.movement-return .scene-card{width:24%;height:72px;top:46px}.pilot-visual.timeline .scene-card.a,.pilot-visual.duration .scene-card.a,.pilot-visual.session-summary .scene-card.a,.pilot-visual.sleep-record .scene-card.a,.pilot-visual.movement-return .scene-card.a{left:5%}.pilot-visual.timeline .scene-card.b,.pilot-visual.duration .scene-card.b,.pilot-visual.session-summary .scene-card.b,.pilot-visual.sleep-record .scene-card.b,.pilot-visual.movement-return .scene-card.b{left:38%;right:auto}.pilot-visual.timeline .scene-card.c,.pilot-visual.duration .scene-card.c,.pilot-visual.session-summary .scene-card.c,.pilot-visual.sleep-record .scene-card.c,.pilot-visual.movement-return .scene-card.c{top:46px;bottom:auto;left:71%}.pilot-visual.good-day-limit .human.main{left:28%}.pilot-visual.good-day-limit .human.secondary{opacity:.78;left:73%}.pilot-visual.good-day-limit .scene-arrow,.pilot-visual.prediction-experience .scene-arrow,.pilot-visual.sleep-pain .scene-arrow{top:84px;left:42%}.pilot-visual.oscillation .scene-line.one{width:70%;height:10px;bottom:58px;left:15%;transform:rotate(-8deg)}.pilot-visual.oscillation .scene-line.two{background:#b54d4d;width:28%;height:10px;bottom:68px;left:45%;transform:rotate(18deg)}.pilot-visual.still-limits .scene-card.a,.pilot-visual.still-limits .scene-card.b,.pilot-visual.fear-damage .scene-card.a,.pilot-visual.fear-damage .scene-card.b,.pilot-visual.fear-damage .scene-card.c,.pilot-visual.bad-night-pattern .scene-card.a,.pilot-visual.bad-night-pattern .scene-card.b,.pilot-visual.bad-night-pattern .scene-card.c{height:96px}.pilot-visual.red-route{background:linear-gradient(145deg, var(--red), #fbfdfe)}.pilot-visual.one-change .scene-card.a{border-color:var(--gold);width:96px;height:96px;top:22px;left:36%;box-shadow:0 0 0 8px #caa25524}.keeper-list{margin:0;padding-left:22px}.keeper-list li{margin:10px 0;font-size:1.04rem;line-height:1.45}.pilot-share{background:var(--warm);border:1px solid #e8d9b4;border-radius:8px;margin-top:16px;padding:16px}.pilot-share p{color:var(--blue);margin:0 0 10px;font-weight:900}.pilot-share a{background:var(--blue);min-height:48px;color:var(--white);border-radius:8px;justify-content:center;align-items:center;padding:12px 16px;font-weight:900;text-decoration:none;display:inline-flex}@media (max-width:980px){.dashboard-grid,.fernanda-layout,.info-grid,.summary-grid{grid-template-columns:1fr}.clinic-header{display:block}.status-pill{margin-top:16px}}@media (max-width:520px){.clinic-header,.patient-hero,.public-hero,.panel,.screen-card,.response-panel,.public-screen{padding:16px}.clinic-header h1,.patient-hero h1,.public-hero h1{font-size:2rem}.pilot-entry,.pilot-finish,.pilot-screen{padding:16px}.pilot-entry h1,.pilot-finish h1,.pilot-screen h1{font-size:1.72rem}.pilot-essential{font-size:1.02rem}.pilot-visual{min-height:230px}.pilot-footer{width:100%}.pair-scale,.completion-box{grid-template-columns:1fr;display:grid}.action-bar,.ops-actions,.patient-nav{display:grid}}
