body.respiratory-visual-modal-open{overflow:hidden}
.spg-trace-fullscreen-frame{position:relative;min-width:0;background:#f8fbfd;border-radius:14px;overflow:hidden}.spg-trace-fullscreen-frame>.respiratory-timeline-trace,.spg-trace-fullscreen-frame>.respiratory-trace{display:block;width:100%;max-width:100%}.spg-trace-fullscreen-button{position:absolute;top:8px;right:8px;z-index:8;min-height:36px;padding:6px 10px;font-size:.74rem;background:rgba(255,255,255,.94);box-shadow:0 3px 12px rgba(7,25,45,.16)}.spg-trace-fullscreen-frame:fullscreen{display:flex;align-items:center;justify-content:center;width:100vw;height:100dvh;padding:10px;background:#f8fbfd;border-radius:0}.spg-trace-fullscreen-frame:fullscreen>.respiratory-timeline-trace,.spg-trace-fullscreen-frame:fullscreen>.respiratory-trace{width:100%;height:100%;max-height:100dvh}
.respiratory-visual-workspace.respiratory-visual-modal-active{position:fixed;inset:2.5vh 1.5vw;z-index:1299;width:auto;height:95dvh;margin:0;padding:12px;border:1px solid var(--line);border-radius:22px;background:#f8fbfd;box-shadow:0 28px 80px rgba(0,0,0,.34);overflow:auto}
body.respiratory-visual-modal-open::before{content:"";position:fixed;inset:0;z-index:1298;background:rgba(7,25,45,.72)}
.respiratory-visual-toolbar{position:sticky;top:0;z-index:12;display:flex;justify-content:flex-end;gap:6px;margin:0 0 8px;padding:6px;border:1px solid var(--line);border-radius:12px;background:rgba(248,251,253,.97)}
.respiratory-visual-toolbar .btn{min-height:36px;padding:6px 10px;font-size:.74rem}
.respiratory-visual-rotate{display:none}
.respiratory-visual-workspace.respiratory-visual-modal-active .respiratory-visual-case{min-height:calc(95dvh - 48px)}
.respiratory-visual-confirm{position:absolute;inset:0;z-index:30;display:grid;place-items:center;padding:14px;background:rgba(7,25,45,.72)}
.respiratory-visual-confirm-dialog{width:min(560px,94%);padding:20px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.3)}
.respiratory-visual-confirm-dialog h3{margin:4px 0 8px;font-size:1.35rem}.respiratory-visual-confirm-dialog p{margin:0;color:var(--muted)}.respiratory-visual-confirm-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.respiratory-visual-hint{margin:10px 0;padding:10px 12px;border:1px solid #b7d5e8;border-radius:12px;background:#f2f9fd}.respiratory-visual-hint strong,.respiratory-visual-hint span{display:block}.respiratory-visual-hint span{margin-top:3px;line-height:1.4}
.respiratory-visual-workspace.respiratory-visual-modal-active [data-respiratory-visual-check]{display:none!important}
body.respiratory-walkthrough-open{overflow:hidden}
.respiratory-walkthrough-backdrop[hidden]{display:none!important}.respiratory-walkthrough-backdrop{position:fixed;inset:0;z-index:1450;display:grid;place-items:center;padding:2vh 1.5vw;background:rgba(7,25,45,.76)}
.respiratory-walkthrough-modal{width:min(1180px,97vw);height:min(94dvh,920px);display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:#f8fbfd;box-shadow:0 30px 90px rgba(0,0,0,.38)}
.respiratory-walkthrough-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px 8px;border-bottom:1px solid var(--line);background:#fff}.respiratory-walkthrough-head h2{margin:2px 0 0;font-size:1.25rem}.respiratory-walkthrough-head-actions{display:flex;align-items:center;gap:8px}.respiratory-walkthrough-head .visual-modal-close{position:static;flex:0 0 auto}
.respiratory-walkthrough-tabs{display:flex;gap:6px;padding:8px 10px;overflow-x:auto;overscroll-behavior-x:contain;border-bottom:1px solid var(--line);background:#f2f8fb}.respiratory-walkthrough-tab{flex:0 0 auto;min-height:42px;display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #b9ccd8;border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-weight:850;cursor:pointer;white-space:nowrap}.respiratory-walkthrough-tab span{width:24px;height:24px;display:grid;place-items:center;border-radius:999px;background:#edf4f7;color:#47606d;font-size:.72rem}.respiratory-walkthrough-tab.active{border-color:#168b94;background:#e6f6f5;box-shadow:inset 0 0 0 1px #168b94}.respiratory-walkthrough-tab.active span{background:#168b94;color:#fff}
.respiratory-walkthrough-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:7px 10px;border-bottom:1px solid var(--line);background:#fff}.respiratory-walkthrough-tools>span{color:var(--muted);font-size:.78rem;font-weight:700}.respiratory-walkthrough-tools label{display:flex;align-items:center;gap:6px;font-size:.78rem;font-weight:800}.respiratory-walkthrough-tools select{min-height:38px;max-width:290px;border:1px solid #b9ccd8;border-radius:9px;background:#fff;padding:6px 28px 6px 8px;color:var(--ink);font:inherit;font-size:.78rem}
.respiratory-walkthrough-main{min-height:0;overflow:auto;padding:10px}.respiratory-walkthrough-pane{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(280px,1fr);gap:8px;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.respiratory-walkthrough-definition{padding:10px 12px;border-bottom:1px solid var(--line);background:#fbfdfe}.respiratory-walkthrough-definition h3{margin:5px 0 7px;font-size:1.15rem}.respiratory-walkthrough-definition-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.respiratory-walkthrough-definition-row>div{padding:8px 9px;border:1px solid #d8e3e9;border-radius:10px;background:#fff}.respiratory-walkthrough-definition-row strong{display:block;color:#173b58;font-size:.78rem}.respiratory-walkthrough-definition-row p{margin:3px 0 0;color:var(--muted);font-size:.8rem;line-height:1.38}.respiratory-walkthrough-visual{min-height:0;padding:4px 6px 8px;display:flex;align-items:stretch}.respiratory-walkthrough-visual>.spg-trace-fullscreen-frame{width:100%;height:100%;min-height:280px}.respiratory-walkthrough-visual .respiratory-timeline-trace,.respiratory-walkthrough-visual .respiratory-trace{height:100%;object-fit:contain}
.respiratory-walkthrough-compare-grid{height:100%;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.respiratory-walkthrough-compare-grid .respiratory-walkthrough-pane{grid-template-rows:auto minmax(220px,1fr)}.respiratory-walkthrough-compare-grid .respiratory-walkthrough-definition-row{grid-template-columns:1fr}.respiratory-walkthrough-compare-grid .respiratory-walkthrough-definition-row p{font-size:.74rem}
.respiratory-walkthrough-footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:8px 10px;border-top:1px solid var(--line);background:#fff}.respiratory-walkthrough-footer [data-respiratory-walkthrough-prev]{justify-self:start}.respiratory-walkthrough-footer [data-respiratory-walkthrough-next]{justify-self:end}
@media(max-width:900px) and (orientation:landscape){
  .spg-trace-fullscreen-button{top:5px;right:5px;min-height:32px;padding:5px 8px;font-size:.68rem}
  .respiratory-walkthrough-backdrop{padding:0}.respiratory-walkthrough-modal{width:100vw;height:100dvh;border:0;border-radius:0;grid-template-rows:auto auto auto minmax(0,1fr) auto}.respiratory-walkthrough-head{padding:5px 8px 4px}.respiratory-walkthrough-head .eyebrow{display:none}.respiratory-walkthrough-head h2{font-size:.95rem}.respiratory-walkthrough-tabs{padding:4px 6px;gap:4px}.respiratory-walkthrough-tab{min-height:34px;padding:4px 7px;border-radius:9px;font-size:.68rem}.respiratory-walkthrough-tab span{width:20px;height:20px;font-size:.62rem}.respiratory-walkthrough-tools{padding:4px 6px;gap:5px}.respiratory-walkthrough-tools>span{display:none}.respiratory-walkthrough-tools .btn,.respiratory-walkthrough-tools select{min-height:32px;padding-top:4px;padding-bottom:4px;font-size:.68rem}.respiratory-walkthrough-main{overflow:hidden;padding:5px}.respiratory-walkthrough-pane{grid-template-rows:auto minmax(0,1fr);gap:4px;border-radius:10px}.respiratory-walkthrough-definition{padding:5px 7px}.respiratory-walkthrough-definition h3{margin:2px 0 3px;font-size:.82rem}.respiratory-walkthrough-definition .status{display:none}.respiratory-walkthrough-definition-row{gap:5px}.respiratory-walkthrough-definition-row>div{padding:4px 5px;border-radius:7px}.respiratory-walkthrough-definition-row strong{font-size:.62rem}.respiratory-walkthrough-definition-row p{font-size:.62rem;line-height:1.22}.respiratory-walkthrough-visual{padding:2px 3px 4px;min-height:0}.respiratory-walkthrough-visual>.spg-trace-fullscreen-frame{min-height:0;height:100%}.respiratory-walkthrough-compare-grid{gap:5px}.respiratory-walkthrough-compare-grid .respiratory-walkthrough-pane{grid-template-rows:auto minmax(0,1fr)}.respiratory-walkthrough-footer{padding:4px 6px}.respiratory-walkthrough-footer .btn{min-height:34px;padding:5px 8px;font-size:.68rem}
  .respiratory-visual-workspace.respiratory-visual-modal-active{inset:0;width:100vw;height:100dvh;border:0;border-radius:0;padding:6px 8px;overflow:hidden}
  .respiratory-visual-workspace.respiratory-visual-modal-active .respiratory-visual-case{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.85fr);grid-template-rows:auto minmax(0,1fr) auto auto auto;grid-template-areas:"progress progress" "trace prompt" "trace options" "trace feedback" "trace actions";gap:6px;overflow:hidden}
  .respiratory-visual-workspace.respiratory-visual-modal-active .respiratory-visual-progress{grid-area:progress;min-width:0}
  .respiratory-visual-workspace.respiratory-visual-modal-active .spg-trace-fullscreen-frame{grid-area:trace;width:100%;height:100%;min-height:0;align-self:stretch}
  .respiratory-visual-workspace.respiratory-visual-modal-active .spg-trace-fullscreen-frame>.respiratory-trace{width:100%;height:100%;min-height:0;align-self:stretch}
  .respiratory-visual-workspace.respiratory-visual-modal-active .respiratory-visual-prompt{grid-area:prompt;margin:0;font-size:.72rem;line-height:1.3;overflow:auto}
  .respiratory-visual-workspace.respiratory-visual-modal-active .respiratory-visual-options{grid-area:options;display:grid;grid-template-columns:1fr;gap:5px;min-height:0;overflow:auto}
  .respiratory-visual-workspace.respiratory-visual-modal-active .respiratory-visual-choice{min-height:40px;padding:7px 8px;font-size:.74rem}
  .respiratory-visual-workspace.respiratory-visual-modal-active .respiratory-visual-feedback{grid-area:feedback;max-height:30dvh;overflow:auto;margin:0;font-size:.7rem}
  .respiratory-visual-workspace.respiratory-visual-modal-active .respiratory-visual-case>.actions{grid-area:actions;margin:0;display:flex;flex-wrap:wrap;gap:5px}
  .respiratory-visual-workspace.respiratory-visual-modal-active .respiratory-visual-case>.actions .btn{width:auto;min-height:36px;padding:6px 8px;font-size:.72rem}
  .respiratory-visual-workspace.respiratory-visual-modal-active.respiratory-full-question .respiratory-visual-case{grid-template-columns:1fr;grid-template-areas:"progress" "prompt" "options" "feedback" "actions"}
  .respiratory-visual-workspace.respiratory-visual-modal-active.respiratory-full-question .spg-trace-fullscreen-frame{display:none}
  .respiratory-visual-toolbar{position:absolute;top:5px;right:7px;margin:0;padding:3px;border:0;background:rgba(255,255,255,.94)}
  .respiratory-visual-progress{padding-right:150px}
  .respiratory-visual-confirm-dialog{width:min(680px,96vw);padding:14px}.respiratory-visual-confirm-dialog h3{font-size:1.05rem}.respiratory-visual-confirm-dialog p{font-size:.78rem}.respiratory-visual-confirm-actions{margin-top:10px}
}
@media(max-width:900px) and (orientation:portrait){
  .resp-long-case-list,.respiratory-pattern-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.resp-long-case-button,.respiratory-pattern-button{min-height:66px!important;padding:9px!important}.resp-long-case-button span,.respiratory-pattern-button span{display:none!important}
  .respiratory-walkthrough-backdrop{padding:0}.respiratory-walkthrough-modal{width:100vw;height:100dvh;border:0;border-radius:0}.respiratory-walkthrough-head{padding:8px 10px}.respiratory-walkthrough-head h2{font-size:1rem}.respiratory-walkthrough-tabs{padding:6px}.respiratory-walkthrough-tools{padding:6px}.respiratory-walkthrough-tools>span{display:none}.respiratory-walkthrough-tools label{width:100%;justify-content:space-between}.respiratory-walkthrough-tools select{max-width:65%}.respiratory-walkthrough-main{padding:6px}.respiratory-walkthrough-pane{height:auto;min-height:100%;grid-template-rows:auto minmax(300px,1fr)}.respiratory-walkthrough-definition-row{grid-template-columns:1fr}.respiratory-walkthrough-compare-grid{height:auto;grid-template-columns:1fr}.respiratory-walkthrough-footer{grid-template-columns:1fr 1fr}.respiratory-walkthrough-footer [data-respiratory-walkthrough-compare]{display:none}.respiratory-walkthrough-footer [data-respiratory-walkthrough-next]{justify-self:stretch}.respiratory-walkthrough-footer [data-respiratory-walkthrough-prev]{justify-self:stretch}
  .respiratory-visual-workspace.respiratory-visual-modal-active{inset:0;width:100vw;height:100dvh;border:0;border-radius:0;padding:0;overflow:hidden}
  .respiratory-visual-workspace.respiratory-visual-modal-active>*:not(.respiratory-visual-rotate){visibility:hidden;pointer-events:none}
  .respiratory-visual-workspace.respiratory-visual-modal-active .respiratory-visual-rotate{visibility:visible;pointer-events:auto;position:absolute;inset:0;z-index:40;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:34px;text-align:center;background:#f7fbfd;color:var(--ink)}
  .respiratory-visual-rotate strong{font-size:1.35rem}.respiratory-visual-rotate span{max-width:30rem;color:var(--muted);font-weight:700;line-height:1.5}.respiratory-visual-rotate b{font-size:3rem;line-height:1}
}
