/* Professor layout: natural content height, scoped exclusively to the module. */
.jprof-module .source-manager [data-source-category][aria-pressed=true]{border-color:#55dce8;box-shadow:inset 0 -3px #55dce8;font-weight:700}
.jprof-module{display:grid;grid-template-columns:238px minmax(0,1fr);gap:20px;width:100%;max-width:1800px;margin:0 auto;color:#e5f5ff;background:#031321;font:14px/1.45 'Segoe UI',sans-serif;padding:16px;box-sizing:border-box}
.jprof-module [hidden]{display:none!important}
.jprof-module *{box-sizing:border-box;min-width:0}
.jprof-module button,.jprof-module select,.jprof-module input,.jprof-module textarea{font:inherit;color:inherit;border:1px solid #21536d;border-radius:8px;background:#082b43;max-width:100%}
.jprof-module button{padding:10px 12px;cursor:pointer;white-space:normal;overflow-wrap:anywhere;min-height:40px}
.jprof-module button:hover,.jprof-module button[aria-current=page]{border-color:#65e3ed;background:#10475a}
.jprof-module button:focus-visible{outline:3px solid #64e4ed;outline-offset:2px}
.jprof-module button:disabled{opacity:.55;cursor:default}
.jprof-module h1,.jprof-module h2,.jprof-module h3,.jprof-module h4,.jprof-module p{margin:0 0 10px}
.jprof-module h1{font-size:26px}.jprof-module h2{font-size:17px}.jprof-module h3{font-size:16px}.jprof-module small{font-size:12px;display:block}
.jprof-module label{display:grid;gap:5px;margin:8px 0}.jprof-module select,.jprof-module input{padding:9px;width:100%}
.jprof-sidebar{display:flex;flex-direction:column;gap:16px;border-right:1px solid #17435c;padding:6px 14px 16px 0;align-self:start}
.jprof-brand{color:#ffcb4c;padding:10px 0 20px;border-bottom:1px solid #21536d}.jprof-brand strong{font-size:23px}.jprof-brand small{color:#e5f5ff}
.jprof-sidebar>h2{color:#ffcb4c;font-size:14px}.jprof-sidebar nav{display:grid;gap:5px}.jprof-sidebar nav button{text-align:left;background:transparent;border-color:transparent}
.jprof-exits{display:flex;flex-wrap:wrap;gap:6px}.jprof-exits button{flex:1}
.jprof-main{display:flex;flex-direction:column;gap:18px}.jprof-view-root{width:100%}
.jprof-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;padding:18px;background:linear-gradient(100deg,#052338,#093448);border:1px solid #26728c;border-radius:12px}
.jprof-header-left{display:flex;align-items:center;flex-wrap:wrap;gap:14px;flex:1 1 430px}.jprof-header-left h1{margin:0;font:700 28px Georgia,serif}
.jprof-header-juris{display:flex;align-items:center;gap:12px;flex:1 1 370px}.jprof-header-juris>div{flex:1}.jprof-header-juris .jprof-portrait{width:64px;height:70px;object-fit:contain}
.jprof-footer{border-top:1px solid #21536d;text-align:center;color:#ffcb4c;padding:20px;margin-top:12px}
.app-shell.approved-module-mode:has(.jprof-dashboard:not([hidden]))>.content{padding:0}
/* Official 18 September dashboard; shared shell visuals are scoped to this view. */
.jprof-icon{display:block;width:24px;height:24px;flex-shrink:0}
.jprof-brand-mark,.jprof-nav-icon{display:none}
.jprof-module:has(.jprof-dashboard:not([hidden])){grid-template-columns:204px minmax(0,1fr);padding:26px 7px 8px;gap:10px;background:#020e1e;min-height:100vh}
.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-sidebar{gap:8px;padding:0 10px 12px 0}
.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-brand{display:grid;grid-template-columns:46px minmax(0,1fr);gap:4px 8px;padding:0;border:0}
.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-brand-mark{display:block;grid-row:span 2;align-self:center;color:#eabb42}
.jprof-brand-mark .jprof-icon{width:46px;height:62px}
.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-brand strong{font-size:18px}
.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-brand small{font-size:10px}
.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-sidebar>h2{border:1px solid #20354d;border-radius:7px;padding:9px 4px;font-size:11px;text-align:center;margin:0}
.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-exits button{font-size:10px;padding:6px;min-height:34px;white-space:nowrap}
.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-sidebar nav{gap:2px;border:1px solid #122d49;border-radius:8px;padding:2px}
.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-sidebar nav button{display:flex;align-items:center;gap:9px;min-height:29px;font-size:10px;font-weight:400;padding:5px 7px}
.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-sidebar nav button[aria-current=page]{background:linear-gradient(100deg,#08396d,#031a39);border-color:#1f5282}
.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-nav-icon{display:block;color:#b7c8dc}.jprof-nav-icon .jprof-icon{width:16px;height:16px}
/* Dashboard composition: compact cards, natural rows, independent of workspace. */
.jprof-dashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.28fr);gap:8px;align-items:start;font-size:11px;line-height:1.3}
.jprof-dash-main{display:contents}
.jprof-dashboard button{min-height:26px;padding:5px 7px;font-size:11px;font-weight:400;background:linear-gradient(135deg,#052148,#02142b);border-color:#123957;border-radius:6px}
.jprof-dashboard h2{font-size:12px;font-weight:400;margin:0}.jprof-dashboard h3{font-size:10px;font-weight:400;margin:0 0 5px}.jprof-dashboard small{font-size:9px}
.jprof-dashboard p{margin:0 0 6px}.jprof-dashboard label{gap:3px;margin:0;font-size:9px}.jprof-dashboard select{padding:3px;font-size:9px;background:#031327}
.jprof-module i{font-style:normal;font-size:24px;color:#61dce9;display:block}.jprof-dashboard i{font-size:21px}
.jprof-dash-header{grid-column:1;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #214256;padding-bottom:5px}
.jprof-dash-header h1{font-size:24px;margin-bottom:5px}.jprof-dash-header p{max-width:720px}
.jprof-dash-account{display:flex;gap:7px;align-items:center;flex-shrink:0}.jprof-dash-account small{font-size:9px}
.jprof-dash-upper{grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.34fr);gap:10px;align-items:stretch}
.jprof-dash-primary,.jprof-dash-right{display:grid;gap:10px;align-content:start}
.jprof-dash-overview{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.2fr);gap:10px;align-items:center}
.jprof-dash-identity{display:flex;gap:10px;align-items:center}.jprof-dash-identity p{margin:5px 0}.jprof-dash-avatar{border:1px solid #ddba60;border-radius:50%;padding:20px;color:#b3c7df;flex-shrink:0;background:linear-gradient(135deg,#19334e,#08182a)}.jprof-dash-avatar .jprof-icon{width:46px;height:46px}.jprof-dash-identity h2{font-weight:600;font-size:15px}
.jprof-dash-badge{display:inline-block;padding:2px 5px;border:1px solid #b29442;border-radius:5px;color:#ffce51;font-size:10px}
.jprof-dash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.jprof-dash-kpis strong{font-size:20px;display:block}
.jprof-dash-card{border:1px solid #12324e;border-radius:8px;background:#021225;padding:9px;display:flex;flex-direction:column;gap:6px}
.jprof-dash-quick{padding:3px 10px;gap:3px}.jprof-dash-quick>div{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.jprof-dash-quick h2{text-align:center;font-size:12px}
.jprof-dash-quick button,.jprof-dash-materials button,.jprof-dash-kpis button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.jprof-dash-quick button span{max-width:11ch}.jprof-dash-quick button{padding:4px 3px;font-size:10px}.jprof-dash-kpis button{flex-direction:row;text-align:left;padding:7px 5px;gap:7px}.jprof-dash-kpis small{font-size:8px}.jprof-dash-kpis strong{font-size:18px}
.jprof-dash-tabs{display:flex;gap:4px;flex-wrap:wrap}.jprof-dash-tabs button{font-size:8.5px;padding:3px;min-height:20px}
.jprof-dash-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:14px;row-gap:9px;margin-inline-end:8px;align-items:stretch}
.jprof-dash-tools>.jprof-dash-card{height:auto;min-height:0;overflow:visible}
.jprof-dash-question-settings{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:5px}.jprof-dash-counts{display:flex;gap:3px}.jprof-dash-counts button{flex:1;padding:4px;min-height:25px;font-size:11px}
.jprof-dash-exam-types{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.jprof-dash-exam-types button{font-size:8px;padding:5px 2px}.jprof-dash-exam-types .jprof-icon{width:16px;height:16px}
.jprof-dash-materials>div{display:grid;grid-auto-rows:1fr;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.jprof-dash-materials>div button{padding:6px 4px;gap:3px}
.jprof-dash-wide{width:100%}.jprof-dash-empty{display:grid;gap:6px;text-align:center;padding:10px 0}.jprof-dash-students>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.jprof-dash-students article{border:1px solid #153049;border-radius:5px;padding:14px 3px;text-align:center}.jprof-dash-students strong{font-size:20px}.jprof-dash-status-1{color:#3ad4ef}.jprof-dash-status-2{color:#eec655}.jprof-dash-status-3{color:#ff5a79}
.jprof-dash-community>header h2{font-size:16px}.jprof-dash-community>header small{margin-top:8px}.jprof-dash-community-grid p{font-size:9.5px}.jprof-dash-community-grid nav button,.jprof-dash-moderation button{display:flex;align-items:center;gap:8px;text-align:left}.jprof-dash-community-grid .jprof-icon{width:12px;height:12px}.jprof-dash-community{grid-column:1;display:grid;gap:11px;padding:9px 8px 8px}.jprof-dash-community>header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.jprof-dash-community>header>div:last-child{display:flex;gap:5px}
.jprof-dash-community-grid{display:grid;grid-template-columns:minmax(110px,.72fr) minmax(0,2.1fr) minmax(155px,1fr) minmax(135px,.9fr);gap:8px}
.jprof-dash-community-grid nav,.jprof-dash-moderation,.jprof-dash-community-activity,.jprof-dash-feed{display:grid;gap:5px;align-content:start}
.jprof-dash-community-grid article,.jprof-dash-moderation,.jprof-dash-community-activity{border:1px solid #21445c;border-radius:7px;padding:7px}.jprof-dash-feed h3{color:#ffcf4e}.jprof-dash-feed button{min-height:35px}.jprof-dash-community-grid button{font-size:9px;padding:5px 6px}.jprof-dash-community-grid nav{border:1px solid #153049;border-radius:5px;padding:6px 6px 30px;background:#03152b;gap:0;align-self:start}.jprof-dash-community-grid nav button{min-height:24px;padding:3px 6px;border-color:transparent;background:transparent;text-align:left}.jprof-dash-feed article:first-of-type{border-color:#8e7132}.jprof-dash-community-activity p{border:1px solid #153049;border-radius:5px;padding:9px;margin:0;display:flex;align-items:center;gap:10px;font-size:9px}.jprof-dash-community-activity strong{color:#36caee}.jprof-dash-community-activity{gap:6px}.jprof-dash-moderation{align-self:start}.jprof-dash-community-grid .jprof-dash-tabs{font-size:8px;justify-content:space-between}.jprof-dash-community>header button{display:flex;align-items:center;gap:5px}.jprof-dash-community>header button:first-child{background:#302610;border-color:#987422;color:#ffc846}
.jprof-dashboard-guide{grid-column:2;grid-row:2/4;margin-top:11px;border:1px solid #20506a;border-radius:10px;padding:13px 12px;display:grid;gap:8px;overflow-wrap:anywhere}
.jprof-dashboard-guide>header{display:flex;align-items:center;gap:5px;padding-bottom:0}.jprof-dashboard-guide>header strong{flex:1;color:#e5f5ff;font-size:11px}
.jprof-dashboard-guide-body{display:grid;gap:4px;font-size:9px}.jprof-dashboard-guide-body h3{font-size:9px;margin:0}.jprof-dashboard-guide-body p{margin:0}.jprof-dashboard-guide-body label{font-size:10px}.jprof-dashboard-guide .jprof-portrait{width:120px;height:62px;object-fit:cover;object-position:50% 15%;border:1px solid #175875;border-radius:10px}
.jprof-guide-actions{display:flex;flex-wrap:wrap;gap:6px}.jprof-guide-actions button{font-size:10px;padding:8px 9px;flex:0 1 auto}.jprof-guide-voice{display:flex;gap:5px}.jprof-guide-status:empty{display:none}
.jprof-dashboard-footer{margin:36px 0 0;grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 18px;border-top:1px solid #21536d;padding:10px 0;color:#ffcb4c;font-size:9px}
.jprof-dash-tools .jprof-dash-card{gap:3px;padding-inline:10px}.jprof-dash-tools p{margin:0;font-size:9px;line-height:1.7}.jprof-dash-tools label{margin:0}.jprof-dash-tools .jprof-dash-wide,.jprof-dash-tools>section>button:last-of-type,.jprof-dash-agenda>button{display:flex;align-items:center;justify-content:center;gap:6px;background:linear-gradient(#0b448d,#042352)}
.jprof-dash-tools>section>button:last-of-type{margin-top:auto}.jprof-dash-config-note{font-size:8px!important}.jprof-dash-kpis .jprof-icon{width:21px;height:21px}.jprof-dash-quick .jprof-icon{width:26px;height:26px}.jprof-dash-empty{padding:24px 0}.jprof-dash-empty i{justify-self:center}.jprof-dash-students>button{display:flex;align-items:center;justify-content:flex-start;background:transparent;border-color:transparent;padding:9px}
.jprof-portrait{width:100%;max-height:200px;object-fit:contain}
.jprof-legacy-view{width:100%}.jprof-legacy-view #professor-view-stage{display:block;width:100%;max-width:none;height:auto;overflow:visible;margin:0}.jprof-legacy-view #professor-view-stage>header{display:none}.jprof-legacy-view #professor-view-content{padding:0}
@media(max-width:1450px){.jprof-module{grid-template-columns:205px minmax(0,1fr);gap:14px}.jprof-dashboard{grid-template-columns:minmax(0,1fr) 235px;gap:10px}.jprof-dash-upper{grid-template-columns:minmax(0,1fr) 195px}.jprof-dash-overview{grid-template-columns:1fr}.jprof-dash-community-grid{grid-template-columns:100px minmax(0,1fr) 135px 115px}.jprof-dash-header{flex-wrap:wrap}.jprof-dash-tools{grid-template-columns:repeat(3,minmax(0,1fr))}.jprof-dash-exam-types{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.jprof-dashboard{grid-template-columns:1fr}.jprof-dashboard-guide{grid-column:1;grid-row:auto}.jprof-dash-upper{grid-template-columns:1fr}.jprof-dash-right{grid-template-columns:1fr 1fr}.jprof-dash-community-grid{grid-template-columns:110px minmax(0,1fr)}.jprof-dash-moderation,.jprof-dash-community-activity{grid-row:2}.jprof-dash-quick>div{grid-template-columns:repeat(4,minmax(0,1fr))}.jprof-dashboard-guide-body{grid-template-columns:130px minmax(0,1fr)}.jprof-dash-account{flex-wrap:wrap}.jprof-dash-question-settings{grid-template-columns:1fr}}
@media(max-width:800px){.jprof-module:has(.jprof-dashboard:not([hidden])){grid-template-columns:1fr}.jprof-module{grid-template-columns:1fr;padding:10px}.jprof-sidebar{border-right:0;border-bottom:1px solid #21445c;padding:0 0 12px}.jprof-sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr))}.jprof-sidebar nav button{padding:7px;font-size:12px}.jprof-brand{padding:0 0 10px}.jprof-header{padding:12px}.jprof-dash-header h1{font-size:23px}}
@media(max-width:500px){.jprof-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.jprof-dash-tools,.jprof-dash-right,.jprof-dash-community-grid{grid-template-columns:1fr}.jprof-dash-moderation,.jprof-dash-community-activity{grid-row:auto}.jprof-dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.jprof-dash-quick>div{grid-template-columns:repeat(2,minmax(0,1fr))}.jprof-dashboard-guide-body{grid-template-columns:1fr}.jprof-header-juris{flex-wrap:wrap}.jprof-header-juris>button{width:100%}.jprof-dash-account{flex-shrink:1}}
.jprof-module[hidden]{display:none!important}
.jprof-workspace-view{display:grid;grid-template-columns:minmax(0,.43fr) minmax(0,.57fr);gap:18px;align-items:start}
.jprof-workspace-view>.jprof-left,.jprof-workspace-view>.jprof-right{border:1px solid #26708b;border-radius:12px;padding:16px;background:#062333;display:flex;flex-direction:column;gap:16px}
.jprof-panel-heading,.jprof-result-heading{border-bottom:1px solid #206078;padding-bottom:12px}.jprof-result-heading{display:flex;align-items:start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.jprof-approved-chat-form,.jprof-approved-chat-shell{display:flex;flex-direction:column;gap:14px;margin:0;width:100%}
.jprof-approved-chat-shell{background:#072a3a;border:1px solid #246079;border-radius:10px;padding:14px}
.jprof-approved-input-label textarea{display:block;width:100%;resize:vertical;min-height:130px;padding:14px;border-radius:10px;line-height:1.6}
.jprof-approved-old-companion{display:none}
.jprof-question-actions{display:flex;flex-direction:column;gap:12px}
.jprof-primary-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}
.jprof-primary-actions>small,.jprof-primary-actions>.jprof-conversation-status{grid-column:1/-1}
.jprof-primary-actions>button:last-of-type{color:#03222f;background:#64e4ed;font-weight:700}
.jprof-approved-task-grid,.jprof-start-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.jprof-approved-advanced,.jprof-sources,.jprof-landing-reading{display:grid;gap:12px}
.jprof-module details{border:1px solid #23526b;border-radius:8px;padding:10px}.jprof-module summary{cursor:pointer;font-weight:600}
.jprof-landing-reading{line-height:1.65;overflow-wrap:anywhere}.jprof-landing-reading .source-guide-answer{white-space:pre-wrap;margin:0}
.jprof-tabs{grid-column:1/-1;display:none;gap:8px}
.jprof-response-actions{display:flex;gap:8px;flex-wrap:wrap}
.jprof-initial-result-hero{display:flex;flex-direction:column;gap:16px}
.jprof-initial-hero-grid{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:center;border:1px solid #285770;border-radius:10px;padding:14px}
.jprof-initial-hero-center{text-align:center}.jprof-initial-hero-center img{width:100%;max-height:340px;object-fit:contain}.jprof-hero-brand{display:block;color:#ffcf4e}
.jprof-initial-hero-left,.jprof-initial-hero-right{display:flex;flex-direction:column;gap:12px}.jprof-hero-rail-item{border-bottom:1px solid #27566b;padding:8px 0;font-size:11px}.jprof-hero-rail-item span{color:#61e2eb;font-size:20px;margin-right:8px}.jprof-initial-speech{padding:12px;border:1px solid #ceb64b;border-radius:10px}.jprof-initial-speech strong{display:block;font-size:24px}.jprof-initial-hero-left blockquote{margin:0;padding-top:10px;border-top:1px solid #ddbf57;font-family:Georgia,serif}
.jprof-start-card{display:flex;flex-direction:column;align-items:start;gap:5px;text-align:left}.jprof-start-icon{font-size:22px;color:#60e1eb}.jprof-start-arrow{align-self:end}.jprof-ethics-note{font-size:11px}
.jprof-chat-history-list{display:grid;gap:10px}.jprof-chat-turn{display:grid;gap:8px}.jprof-chat-bubble{border:1px solid #2b6277;border-radius:10px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere}.jprof-chat-bubble strong{display:block}.jprof-chat-bubble-user{background:#103b51}.jprof-chat-bubble-juris{background:#092e3e}
.jprof-current-question:empty{display:none}.jprof-conversation-status{font-size:14px;line-height:1.5}.jprof-conversation-status:empty{display:none}
.jprof-document-chat{display:flex;flex-direction:column;gap:14px}
.jprof-module dialog.jprof-dialog{width:min(1500px,96vw);max-width:96vw;max-height:94dvh;background:#052336;color:#e5f5ff;border:1px solid #2b738b;border-radius:12px;padding:16px}
.jprof-dialog .document-juris-header{display:flex;flex-wrap:wrap;align-items:center;gap:12px;justify-content:space-between}
.jprof-approved-grid{display:grid;grid-template-columns:minmax(0,.43fr) minmax(0,.57fr);gap:18px}.jprof-dialog .document-workspace-scroll{height:auto;max-height:none;overflow:visible}.jprof-dialog .document-workspace-grid>section{min-width:0}
.jprof-dialog textarea{width:100%;resize:vertical;min-height:150px}.jprof-dialog .jprof-companion{display:flex;gap:12px;align-items:center}.jprof-companion>img,.jprof-companion .juris-hologram{width:100px}.jprof-dialog .jprof-question-actions{display:flex;flex-wrap:wrap;gap:8px}.jprof-dialog .jprof-area-bar{display:flex;gap:8px;justify-content:space-between}.jprof-inline-document-body{max-height:50vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.jprof-dialog .jprof-inline-document-header{padding:10px}.jprof-dialog .jprof-inline-document-header>*{display:block}.jprof-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}

@media(max-width:1100px){.jprof-initial-hero-grid{grid-template-columns:1fr 1fr}.jprof-initial-hero-left{display:none}}
@media(max-width:800px){.jprof-workspace-view,.jprof-approved-grid{grid-template-columns:1fr}.jprof-tabs{display:flex}.jprof-tabs button{flex:1}.jprof-initial-hero-grid{grid-template-columns:1fr 1fr}}
@media(max-width:500px){.jprof-workspace-view>.jprof-left,.jprof-workspace-view>.jprof-right{padding:12px}.jprof-primary-actions>button{font-size:12px;padding:8px 4px}.jprof-initial-hero-grid{grid-template-columns:1fr}.jprof-initial-hero-center img{max-height:240px}.jprof-start-cards{grid-template-columns:1fr}.jprof-report-inbox{width:100%}}

/* Presentation migrated from the document and conversation services. */
.jprof-module .jprof-workspace-panel-1{border-top:1px solid #398197;padding:14px 0;margin-top:16px;overflow-wrap:anywhere;}
.jprof-module .jprof-workspace-a-2{display:block;padding:8px 0;}
.jprof-module .jprof-workspace-a-3{display:block;min-height:44px;padding:8px 0;}
.jprof-module .jprof-workspace-reader-4{width:min(1440px,96vw);max-width:96vw;height:92dvh;max-height:92dvh;box-sizing:border-box;padding:16px;background:#061b2b;color:#eaf6fc;border:1px solid #265166;border-radius:12px;}
.jprof-module .jprof-workspace-readerLayout-5{display:flex;flex-direction:column;height:100%;min-height:0;gap:12px;}
.jprof-module .jprof-workspace-readerHeader-6{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;flex-shrink:0;}
.jprof-module .jprof-workspace-readerBody-7{overflow:auto;min-height:0;flex:1;overflow-wrap:anywhere;}
.jprof-module .jprof-workspace-text-8{white-space:pre-wrap;overflow-wrap:anywhere;max-height:none;font-size:18px;line-height:1.6;}
.jprof-module .jprof-workspace-editor-9{display:block;width:100%;}
.jprof-module .jprof-workspace-editor-10{display:block;width:100%;max-width:none;box-sizing:border-box;min-height:55dvh;font-size:18px;line-height:1.6;}
.jprof-module .jprof-conversation-status-1{grid-column:1 / -1;box-sizing:border-box;width:100%;color:#b6f7ff;background:#103440;border-left:3px solid #5fe2eb;border-radius:4px;}
.jprof-module .jprof-conversation-panel-2{white-space:normal;padding:16px;border:2px solid #60e3eb;border-radius:8px;}
.jprof-module .jprof-conversation-input-3{display:block;width:100%;max-width:200px;min-height:44px}
.jprof-module .jprof-conversation-topic-4{display:block;width:100%;min-height:90px}
.jprof-module .jprof-conversation-exports-5{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;padding-top:12px;border-top:1px solid #245065;white-space:normal;}
.jprof-module .jprof-conversation-notice-6{flex-basis:100%;font-size:14px;}
.jprof-module .jprof-conversation-b-7{min-height:44px;padding:10px 12px;white-space:normal;}
.jprof-module .jprof-conversation-copy-8{min-height:44px;padding:10px 12px;white-space:normal;}
/* The hero actions use the same content-driven grid as the conversation tasks. */
.jprof-initial-result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.jprof-hero-right-item{padding:8px 0;border-bottom:1px solid #245166;font-size:12px}
.jprof-module button{overflow-wrap:normal;word-break:normal}
@media(max-width:500px){.jprof-initial-result-actions{grid-template-columns:1fr}}
.jprof-sidebar button{min-height:32px;padding:6px 9px;font-size:13px}

.jprof-voice-controls{width:100%}
@media(max-width:800px){.jprof-sidebar button{min-height:42px}}

/* Local Beta candidate; workspace and legacy view layouts remain independent. */
.jprof-sidebar .jprof-nav-group{padding:0;border:0}.jprof-nav-group summary{padding:10px 8px;cursor:pointer;font-size:13px;font-weight:500}.jprof-nav-group button{display:block;width:100%;text-align:left}
.jprof-module:has(.jprof-dashboard:not([hidden])){grid-template-columns:210px minmax(0,1fr);gap:24px;padding:24px 20px;min-height:100vh}
.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-sidebar{gap:20px;padding-right:16px}.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-brand strong{font-size:17px}.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-sidebar nav{border:0;padding:0;gap:6px}.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-sidebar nav button{font-size:13px;padding:10px 8px;min-height:38px}.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-exits{margin-top:18px}
.jprof-dashboard{grid-template-columns:minmax(0,1fr) 270px;gap:20px;font-size:14px;line-height:1.5}.jprof-dash-main{display:flex;flex-direction:column;gap:20px;grid-column:1}.jprof-dash-header{gap:16px;padding:0 0 16px;flex-wrap:wrap}.jprof-dash-header h1{font-size:27px}.jprof-dashboard h2{font-size:17px;font-weight:500}.jprof-dashboard p{margin:0;color:#bdd2e3}.jprof-dashboard button{font-size:13px;min-height:38px;padding:8px 12px}.jprof-dashboard small{font-size:11px}
.jprof-dash-kpis{gap:12px}.jprof-dash-kpis button{justify-content:flex-start;padding:14px;gap:12px}.jprof-dash-kpis small{font-size:12px}.jprof-dash-kpis strong{font-size:22px}.jprof-dash-card{padding:18px;gap:12px}.jprof-dash-quick>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.jprof-dash-quick h2{text-align:left;font-size:17px}.jprof-dash-quick button{flex-direction:row;justify-content:flex-start;gap:12px;padding:18px;font-size:15px}.jprof-dash-quick button span{max-width:none}
.jprof-beta-summaries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.jprof-dash-agenda>button,.jprof-dash-students>button{margin-top:auto}.jprof-dash-students article{padding:10px 3px}.jprof-dash-students small{font-size:10px}.jprof-dash-community{display:flex;gap:12px;padding:18px}.jprof-dash-community>button{align-self:flex-start;display:flex;align-items:center;gap:8px}.jprof-evaluation-options>div{display:flex;flex-wrap:wrap;gap:10px}
.jprof-dashboard-guide{grid-column:2;grid-row:1;margin:0;padding:16px;gap:14px}.jprof-dashboard-guide>header strong{font-size:17px}.jprof-dashboard-guide>header button{min-height:30px;padding:3px 8px}.jprof-dashboard-guide-body{display:flex;flex-direction:column;gap:14px;font-size:13px}.jprof-dashboard-guide-body h3{font-size:13px;margin:0}.jprof-dashboard-guide .jprof-portrait{width:120px;height:72px;align-self:center}.jprof-guide-actions{display:flex;flex-direction:column;gap:8px}.jprof-guide-actions button{font-size:13px;padding:9px}.jprof-guide-voice{flex-wrap:wrap;margin-top:12px}.jprof-guide-voice button{font-size:11px;padding:6px}.jprof-dashboard-guide-body label{font-size:12px;margin-top:10px}.jprof-dashboard-guide-body select{font-size:12px;padding:8px}.jprof-voice-details summary{font-size:12px}.jprof-dashboard-footer{margin:4px 0 0;font-size:10px}
@media(max-width:1100px){.jprof-dashboard{grid-template-columns:1fr}.jprof-dashboard-guide{grid-column:1;grid-row:auto}.jprof-module:has(.jprof-dashboard:not([hidden])){gap:18px}.jprof-dash-kpis button{padding:10px;gap:6px}.jprof-dash-kpis small{font-size:11px}}
@media(max-width:800px){.jprof-module:has(.jprof-dashboard:not([hidden])){grid-template-columns:1fr;padding:16px}.jprof-module:has(.jprof-dashboard:not([hidden])) .jprof-sidebar{padding:0 0 16px;gap:12px}.jprof-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.jprof-dash-main{gap:16px}.jprof-dash-header h1{font-size:23px}}
@media(max-width:500px){.jprof-dashboard{gap:16px}.jprof-dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.jprof-dash-quick>div,.jprof-beta-summaries{grid-template-columns:1fr}.jprof-dash-quick button{padding:14px}.jprof-dash-card{padding:14px}.jprof-sidebar nav{grid-template-columns:1fr}.jprof-dash-account{flex-wrap:wrap}}

/* Long conversations scroll within their own history, never the whole page. */
.jprof-workspace-view .jprof-chat-history-list{max-height:55vh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}

/* Workspace owns the remaining viewport; long text owns its scroll surface. */
.jprof-workspace-view[data-conversation-started=true] .jprof-approved-chat-shell>.jprof-question{order:2}
.jprof-workspace-view[data-conversation-started=true] .jprof-approved-chat-shell>.jprof-consent{order:3}
.jprof-workspace-view[data-conversation-started=true] .jprof-chat-history{order:1}
.jprof-workspace-view[data-conversation-started=true] .jprof-current-question{display:none}
.jprof-workspace-view[data-conversation-started=true] .jprof-approved-input-label textarea{height:54px!important;min-height:54px;max-height:90px;padding:7px}
.jprof-workspace-view[data-conversation-started=true] .jprof-chat-history-list{max-height:45dvh}
.jprof-workspace-view .jprof-chat-turn{display:flex;flex-direction:column;align-items:flex-start}
.jprof-workspace-view .jprof-chat-bubble{max-width:94%;margin:0}
.jprof-workspace-view .jprof-chat-bubble-user{align-self:flex-end;background:#145365}
.jprof-presence{position:relative;width:100%;max-width:180px;margin:auto;isolation:isolate}
.jprof-presence-body{position:relative;aspect-ratio:4/5;animation:jprof-breathe 5s ease-in-out infinite;transform-origin:50% 80%}
.jprof-presence-body img{display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain}
.jprof-presence-head,.jprof-presence-hand{position:absolute;inset:0;pointer-events:none}
.jprof-presence-head{clip-path:polygon(28% 5%,67% 6%,64% 29%,36% 30%);transform-origin:48% 28%;animation:jprof-attentive 7s ease-in-out infinite}
.jprof-presence-hand{clip-path:polygon(15% 35%,22% 33%,37% 41%,36% 50%,18% 57%);transform-origin:20% 56%}
.jprof-presence-eyes{position:absolute;inset:0;pointer-events:none;animation:jprof-blink 6s infinite}
.jprof-presence-eyes:before,.jprof-presence-eyes:after{content:'';position:absolute;top:17%;left:40%;width:5%;height:3%;border-radius:50%;background:#7896ab}
.jprof-presence-eyes:after{top:19%;left:51%}
.jprof-presence-light{position:absolute;inset:5% -10% 14%;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,#6deaff55,transparent 65%);filter:blur(8px);opacity:.5}
.jprof-presence-caption{text-align:center;color:#a2f1f4;min-height:18px}
.jprof-presence[data-emotion=greeting] .jprof-presence-hand{animation:jprof-wave 1.5s ease-in-out 2}
.jprof-presence[data-emotion=listening] .jprof-presence-head{animation:none;transform:rotate(-3deg)}
.jprof-presence[data-emotion=thinking] .jprof-presence-head{animation:jprof-reflect 2.5s ease-in-out infinite}
.jprof-presence[data-emotion=thinking] .jprof-presence-hand{animation:jprof-reflect-hand 2.5s ease-in-out infinite}
.jprof-presence[data-emotion=discovery] .jprof-presence-light{background:radial-gradient(ellipse,#fff5ba,#6deaff88 35%,transparent 68%);animation:jprof-discovery .9s ease-out both}
.jprof-presence[data-emotion=discovery] .jprof-presence-body{animation:jprof-found .9s ease-out both}
.jprof-presence[data-emotion=speaking] .jprof-presence-hand{animation:jprof-wave 2.4s ease-in-out infinite}
.jprof-presence[data-emotion=presenting] .jprof-presence-hand{animation:jprof-present 1.6s ease-in-out both}
.jprof-presence-compact{width:36px;max-width:36px;margin:0;flex-shrink:0}
.jprof-presence-compact .jprof-presence-caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.jprof-workspace-view .jprof-result-heading:has(.jprof-presence-compact){align-items:center;flex-wrap:nowrap}
.jprof-result-heading:has(.jprof-presence-compact)>div{flex:1}
.jprof-module dialog.jprof-guide-dialog{width:min(680px,94vw)}
.jprof-guide-dialog p{white-space:pre-line}
@keyframes jprof-breathe{50%{transform:translateY(-2px) scale(1.012)}}
@keyframes jprof-attentive{0%,80%,100%{transform:rotate(0)}40%{transform:rotate(1.3deg)}}
@keyframes jprof-blink{0%,42%,46%,100%{opacity:0}43%,45%{opacity:1}}
@keyframes jprof-wave{0%,100%{transform:rotate(0)}40%{transform:rotate(5deg) translateY(-1%)}}
@keyframes jprof-reflect{50%{transform:rotate(-3deg) translateY(-1%)}}
@keyframes jprof-reflect-hand{50%{transform:translate(5%,-5%) rotate(7deg)}}
@keyframes jprof-discovery{0%{opacity:.3;transform:scale(.85)}40%{opacity:1;transform:scale(1.12)}100%{opacity:.65;transform:scale(1)}}
@keyframes jprof-found{40%{transform:translateY(-4px) scale(1.025)}100%{transform:none}}
@keyframes jprof-present{40%,75%{transform:translateX(3%) rotate(-5deg)}}
@media(prefers-reduced-motion:reduce){.jprof-presence *{animation:none!important;transition:none!important}.jprof-presence-eyes{opacity:0}}
@media(min-width:1100px){
  body:has(.jprof-module:not([hidden]) .jprof-workspace-view:not([hidden])){height:100dvh;max-height:100dvh;overflow:hidden;padding-bottom:0!important}
  .app-shell:has(.jprof-module:not([hidden]) .jprof-workspace-view:not([hidden])){height:100dvh;min-height:0;max-height:100dvh;padding-bottom:62px;overflow:hidden}
  .app-shell.approved-module-mode:has(.jprof-module:not([hidden]) .jprof-workspace-view:not([hidden]))>.content{height:100%;display:flex;flex-direction:column;min-height:0;padding:6px 14px;gap:4px}
  .app-shell.approved-module-mode:has(.jprof-module:not([hidden]) .jprof-workspace-view:not([hidden]))>.content>.topbar{display:flex!important;margin:0;flex-shrink:0}
  .app-shell:has(.jprof-module:not([hidden]) .jprof-workspace-view:not([hidden])) .topbar h1{font-size:22px}
  .app-shell:has(.jprof-module:not([hidden]) .jprof-workspace-view:not([hidden])) .topbar .eyebrow{margin:0}
  .app-shell:has(.jprof-module:not([hidden]) .jprof-workspace-view:not([hidden])) .demo-banner{margin:0;padding:6px 12px;flex-shrink:0}
  .app-shell:has(.jprof-module:not([hidden]) .jprof-workspace-view:not([hidden])) #app-message{margin:0;min-height:0;flex-shrink:0}
  body:has(.jprof-module:not([hidden]) .jprof-workspace-view:not([hidden]))>p:has(a[href='/app/perfiles.html']){position:fixed;bottom:15px;left:20px;margin:0;max-width:calc(100% - 350px)}
  .jprof-module:has(.jprof-workspace-view:not([hidden])){flex:1;min-height:0;padding:6px 0;gap:16px}
  .jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-main{min-height:0;gap:8px}
  .jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-header{flex-shrink:0;min-height:78px;padding:6px 12px;gap:12px;flex-wrap:nowrap}
  .jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-header-left{flex:1 1 auto;gap:10px}
  .jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-header-left h1{font-size:24px}
  .jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-header-juris{flex:0 1 330px;gap:8px}
  .jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-header-juris .jprof-portrait{width:48px;height:60px}
  .jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-view-root{flex:1;min-height:0}
  .jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-footer{flex-shrink:0;margin:0;padding:4px}
  .jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-sidebar{height:100%;min-height:0;gap:8px;padding-top:0;padding-bottom:0}
  .jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-brand{padding:4px 0 8px}
  .jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-sidebar nav{min-height:0;overflow:auto;gap:2px}
  .jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-nav-group summary{padding:6px 8px}
  .jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-exits{flex-shrink:0}
  .jprof-workspace-view{height:100%;min-height:0;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:12px;align-items:stretch}
  .jprof-workspace-view>.jprof-left,.jprof-workspace-view>.jprof-right{min-height:0;padding:10px;gap:6px;overflow:auto;overscroll-behavior:contain}
  .jprof-workspace-view h3,.jprof-workspace-view h4,.jprof-workspace-view p{margin:0 0 4px}
  .jprof-workspace-view button{min-height:34px;padding:6px 9px}
  .jprof-workspace-view .primary{margin-top:0}
  .jprof-workspace-view .jprof-conversation-exports-5 button{min-height:32px;padding:5px 8px}
  .jprof-workspace-view label{margin:2px 0;gap:3px}
  .jprof-workspace-view select{padding:5px}
  .jprof-workspace-view details{padding:6px 8px}
  .jprof-panel-heading,.jprof-result-heading{padding-bottom:6px;flex-shrink:0}
  .jprof-workspace-view .jprof-approved-chat-form{flex:1;min-height:0;gap:6px}
  .jprof-workspace-view .jprof-approved-chat-shell{flex:1;min-height:180px;padding:8px;gap:4px;overflow:auto;overscroll-behavior:contain}
  .jprof-workspace-view .jprof-approved-chat-shell>*{flex-shrink:0}
  .jprof-workspace-view .jprof-approved-input-label textarea{min-height:90px;height:clamp(90px,11vh,125px);max-height:125px;padding:8px;resize:none}
  .jprof-workspace-view .jprof-current-question{max-height:42px;overflow:auto}
  .jprof-workspace-view .jprof-chat-history{display:flex;flex-direction:column;flex:1;min-height:100px}
  .jprof-workspace-view .jprof-chat-history-list{flex:1;min-height:0;max-height:none;align-content:start;gap:6px}
  .jprof-workspace-view[data-conversation-started=true] .jprof-chat-history-list{max-height:none}
  .jprof-workspace-view .jprof-chat-bubble{padding:8px}
  .jprof-workspace-view .jprof-question-actions{gap:6px;flex-shrink:0}
  .jprof-workspace-view .jprof-approved-advanced{display:block;flex-shrink:0;max-height:30vh;overflow:auto}
  .jprof-workspace-view .jprof-landing-reading{display:flex;flex-direction:column;flex:1;min-height:100px;gap:5px;overflow:auto;overscroll-behavior:contain}
  .jprof-workspace-view .source-guide-answer{display:flex;flex-direction:column;flex:1;min-height:0;gap:5px;overflow:auto}
  .jprof-workspace-view .source-guide-answer>span:first-child:not([role]){flex:1;min-height:50px;overflow:auto;overscroll-behavior:contain}
  .jprof-workspace-view .source-guide-answer>*{flex-shrink:0}
  .jprof-workspace-view .jprof-conversation-exports-5{gap:5px;margin-top:4px;padding-top:5px}
  .jprof-workspace-view .jprof-response-actions{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:5px;flex-shrink:0;align-items:start}
  .jprof-workspace-view .jprof-initial-result-hero{flex:1;min-height:100px;overflow:auto;gap:6px}
  .jprof-workspace-view[data-jprof-state=initial] .jprof-landing-reading{flex:0 0 auto;min-height:0;max-height:25%}
  .jprof-workspace-view .jprof-initial-hero-grid{padding:8px;gap:8px}
  .jprof-workspace-view .jprof-initial-hero-center .jprof-presence{max-width:135px}
  .jprof-workspace-view .jprof-initial-hero-left,.jprof-workspace-view .jprof-initial-hero-right{gap:6px}
  .jprof-workspace-view .jprof-hero-rail-item{padding:4px 0}
  .jprof-workspace-view .jprof-initial-hero-left blockquote{padding-top:6px;line-height:1.3}
  .jprof-workspace-view .jprof-hero-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 6px}
  .jprof-workspace-view .jprof-initial-speech{line-height:1.35}
  .jprof-workspace-view .jprof-initial-speech strong{font-size:22px}
  .jprof-workspace-view .jprof-initial-result-actions{gap:6px;flex-shrink:0}
  .jprof-workspace-view .jprof-start-card{display:grid;grid-template-columns:26px minmax(0,1fr) 14px;grid-template-rows:auto auto;gap:2px 8px;padding:8px;min-height:68px;align-content:center;align-items:center}
  .jprof-workspace-view .jprof-start-icon{grid-column:1;grid-row:1/3}
  .jprof-workspace-view .jprof-start-card>strong{grid-column:2;grid-row:1}
  .jprof-workspace-view .jprof-start-card>small{grid-column:2;grid-row:2;line-height:1.3}
  .jprof-workspace-view .jprof-start-arrow{grid-column:3;grid-row:1/3;align-self:center}
  .jprof-workspace-view .jprof-ethics-note{line-height:1.3}
  .jprof-workspace-view .jprof-initial-speech{padding:6px}
  .jprof-workspace-view .jprof-voice-controls,.jprof-workspace-view .jv-reader{display:contents}
  .jprof-workspace-view .jv-reader button{min-height:32px!important;padding:5px 8px!important}
  .jprof-workspace-view .jv-reader details{margin:0}
  .jprof-workspace-view .jv-excerpt{grid-column:1/-1;max-height:60px;overflow:auto;padding:5px 8px;margin:0}
  .jprof-workspace-view .jv-controls{grid-column:1/-1;margin:0;gap:4px}
  .jprof-workspace-view .jv-controls label{margin:0;gap:0}
  .jprof-workspace-view .jv-reader input[type=range]{min-height:22px}
  .jprof-workspace-view .jv-status{grid-column:1/-1;margin:0!important}
}
@media(min-width:1100px) and (max-height:950px){
  .jprof-workspace-view .jprof-chat-history{min-height:100px}
  .jprof-workspace-view .jprof-approved-chat-shell{padding:6px;gap:2px}
  .jprof-workspace-view .jprof-approved-chat-shell label{margin:0;line-height:1.3}
  .jprof-workspace-view .jprof-approved-input-label textarea{height:90px}
  .jprof-workspace-view .jprof-current-question{max-height:20px;margin:0;line-height:20px}
  .jprof-workspace-view .jprof-approved-chat-shell select{padding:3px}
  .jprof-workspace-view .jprof-question-actions,.jprof-workspace-view .jprof-approved-task-grid{gap:4px}
}

/* Conversation identity stays to the left of each message, at every width. */
.jprof-workspace-view .jprof-chat-history-list{gap:18px}
.jprof-workspace-view .jprof-chat-turn{gap:12px}
.jprof-workspace-view .jprof-chat-message{width:100%;display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:start}
.jprof-workspace-view .jprof-chat-identity{padding-top:12px;font-size:12px;color:#77e3ee;text-align:left}
.jprof-workspace-view .jprof-chat-bubble{width:100%;max-width:100%;align-self:start;margin:0;padding:12px 14px;line-height:1.65;text-align:left}
.jprof-sidebar-tasks{border-top:1px solid #21536d;padding-top:12px}
.jprof-sidebar-tasks .jprof-approved-task-grid{grid-template-columns:1fr;gap:6px}
.jprof-sidebar-tasks button{text-align:left;min-height:44px}
@media(max-width:500px){.jprof-workspace-view .jprof-chat-message{grid-template-columns:51px minmax(0,1fr);gap:6px}.jprof-workspace-view .jprof-chat-bubble{padding:10px}}

@media(max-width:800px){
  .jprof-workspace-view .jprof-result-heading:has(.jprof-presence-compact){flex-wrap:wrap}
  .jprof-workspace-view .jprof-result-heading>.jprof-presence-compact{flex:0 0 36px}
  .jprof-workspace-view .jprof-result-heading>div:not(.jprof-presence){flex:1 1 180px}
  .jprof-workspace-view .jprof-result-heading>.jprof-report-inbox{flex-basis:100%}
}

/* Approved first screen: history, composer, send; header belongs to work area. */
.jprof-workspace-view{grid-template-columns:minmax(0,.48fr) minmax(0,.52fr)}
.jprof-workspace-view>.jprof-left{gap:8px}
.jprof-workspace-view .jprof-approved-chat-form{gap:6px}
.jprof-workspace-view .jprof-approved-chat-shell{padding:0;border:0;background:transparent;gap:6px;overflow:hidden}
.jprof-workspace-view .jprof-current-question{display:none}
.jprof-workspace-view .jprof-chat-history{order:0!important;margin:0;min-height:0}
.jprof-workspace-view .jprof-chat-history>h4{display:none}
.jprof-workspace-view .jprof-chat-history-list{gap:12px;max-height:48dvh;overflow-y:auto;overflow-anchor:none}
.jprof-workspace-view .jprof-approved-input-label{margin:0}
.jprof-workspace-view .jprof-approved-input-label textarea{height:70px!important;min-height:70px;max-height:140px;padding:8px}
.jprof-workspace-view .jprof-question-actions{gap:4px}
.jprof-workspace-view .jprof-send-shortcut{font-size:11px;color:#a9c8d6}
.jprof-workspace-view .jprof-workspace-empty{color:#a9c8d6;padding:12px 0}
.jprof-workspace-view .jprof-tabs{display:none}
.jprof-module .jprof-workspace-view .jprof-header{flex-wrap:wrap;gap:8px;padding:10px;min-height:0}
.jprof-module .jprof-workspace-view .jprof-header-left{flex:1 1 100%;gap:6px}
.jprof-module .jprof-workspace-view .jprof-header-left h1{font-size:21px}
.jprof-module .jprof-workspace-view .jprof-header-juris{flex:1 1 100%;gap:8px;flex-wrap:nowrap}
.jprof-module .jprof-workspace-view .jprof-header-juris>button{width:auto}
.jprof-module .jprof-workspace-view .jprof-header-juris .jprof-portrait{width:36px;height:42px}
.jprof-workspace-view[data-jprof-state=initial] .jprof-result-heading .jprof-report-inbox{display:none}
@media(min-width:1100px){
  .jprof-workspace-view .jprof-approved-chat-shell{min-height:0;flex:1}
  .jprof-workspace-view .jprof-chat-history-list,.jprof-workspace-view[data-conversation-started=true] .jprof-chat-history-list{max-height:none}
  .jprof-workspace-view .jprof-approved-input-label{flex-shrink:0}
}
@media(max-width:800px){
  .jprof-workspace-view{grid-template-columns:1fr}
  .jprof-workspace-view>.jprof-left,.jprof-workspace-view>.jprof-right{gap:10px}
  .jprof-workspace-view .jprof-chat-history-list,.jprof-workspace-view[data-conversation-started=true] .jprof-chat-history-list{max-height:45dvh}
}

/* Professor session preparation: scoped to the existing shell. */
.jprof-teacher-box{display:flex;flex-direction:column;align-items:center;gap:6px;border:1px solid #26708b;border-radius:10px;padding:8px;background:#062333;flex-shrink:0}
.jprof-teacher-avatar{width:54px;height:54px;display:grid;place-items:center;border-radius:50%;background:#16445a;color:#9ae8f1;font-size:36px}
.jprof-teacher-box img,.jprof-teacher-box video{width:100%;max-height:140px;object-fit:contain;border-radius:8px}
.jprof-teacher-box>strong{text-align:center;font-size:13px}.jprof-teacher-box>button{width:100%}
.jprof-media-controls{display:flex;flex-wrap:wrap;gap:4px}.jprof-media-controls:empty{display:none}
.jprof-main>.jprof-exits{justify-content:flex-start;flex-shrink:0}.jprof-main>.jprof-exits button{flex:0 1 auto;min-height:32px;padding:5px 12px}
.jprof-workspace-view .jprof-chat-history>h4{display:block;font-size:12px;color:#a9c8d6}
.jprof-module .jprof-live-dialog{width:min(850px,94vw)}
.jprof-live-heading{display:flex;justify-content:space-between;gap:10px}
.jprof-live-dialog form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.jprof-live-dialog form>section,.jprof-live-dialog form>p{grid-column:1/-1}
.jprof-live-dialog p{white-space:pre-line;overflow-wrap:anywhere}
.jprof-live-dialog button,.jprof-live-dialog a{margin:3px;min-height:44px}
.jprof-invite-summary ul{max-height:160px;overflow:auto;padding-left:20px}
.jprof-student-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.jprof-student-results{max-height:42dvh;overflow:auto}
.jprof-module .jprof-student-results label{display:flex;align-items:center;gap:8px;border-bottom:1px solid #21536d;padding:8px}
.jprof-module .jprof-student-results input{width:24px;flex-shrink:0;min-height:24px}
@media(min-width:1100px){.jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-brand small{display:none}.jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-sidebar-tasks{padding-top:6px}.jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-sidebar-tasks button{min-height:34px}.jprof-module:has(.jprof-workspace-view:not([hidden])) .jprof-sidebar{overflow:auto}}
@media(max-width:800px){.jprof-teacher-box{display:grid;grid-template-columns:54px minmax(0,1fr)}.jprof-teacher-box>button,.jprof-teacher-box>.jprof-media-controls,.jprof-teacher-box>small{grid-column:1/-1}.jprof-student-filters,.jprof-live-dialog form{grid-template-columns:1fr}}

.app-shell:has(.jprof-module:not([hidden])) #logout{display:none}

/* Workspace reading: a single output menu and a compact, visible voice control. */
.jprof-workspace-view .jprof-response-actions{display:flex;flex-wrap:wrap;align-items:center;margin-top:auto;padding-top:8px;border-top:1px solid #2b6277;gap:8px}
.jprof-workspace-view .jprof-output-actions:empty{display:none}
.jprof-workspace-view .jprof-conversation-exports-5{white-space:normal;position:relative}
.jprof-workspace-view .jprof-conversation-exports-5[open]{display:flex;flex-direction:column;gap:6px}
.jprof-workspace-view .jprof-voice-controls{display:block;flex:1 1 210px}
.jprof-workspace-view .jv-reader.jv-compact{display:flex;flex-direction:column;gap:3px;margin:0;padding:0;border:0;background:transparent}
.jprof-workspace-view .jv-compact>button{background:#176b62!important;border:1px solid #65ead1!important;color:#edfff9!important;font-weight:700}
.jprof-workspace-view .jv-compact>button[aria-pressed=false]{background:#32475d!important}
.jprof-workspace-view .jv-compact .jv-status{font-size:11px;line-height:1.3;margin:0!important}
.jprof-workspace-view .jprof-chat-bubble{font-size:16px;line-height:1.7}
.jprof-workspace-view .jprof-chat-identity{font-size:13px;font-weight:700}
.jprof-workspace-view .jprof-chat-turn{gap:14px}
.jprof-workspace-view .jprof-conversation-status{font-size:15px!important;font-weight:600;color:#77f1d7!important;line-height:1.45;padding:5px 8px;border-left:3px solid #77f1d7}
.jprof-workspace-view .jprof-presence-caption{font-size:14px;color:#77f1d7}
.jprof-workspace-view .jprof-landing-reading{align-content:start}
@media(min-width:1100px){.jprof-workspace-view[data-jprof-state=active] .jprof-landing-reading{flex:1;min-height:160px}.jprof-workspace-view .jprof-response-actions{flex-shrink:0}.jprof-workspace-view .jprof-response-actions>details{font-size:12px}}

@media(min-width:1100px){.jprof-workspace-view .jprof-initial-hero-left blockquote{font-size:12px;line-height:1.25}.jprof-workspace-view .jprof-initial-speech{font-size:12px}}

.jprof-presence-body .jprof-approved-animation{width:100%;height:100%;position:absolute;inset:0;object-fit:contain}
.jprof-presence-body.jprof-video-playing{animation:none}
.jprof-video-playing>img,.jprof-video-playing>.jprof-presence-eyes{visibility:hidden}
@media(prefers-reduced-motion:reduce){.jprof-approved-animation{display:none}.jprof-video-playing>img{visibility:visible}}
.jprof-conversation-manager{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}
.jprof-conversation-manager input{min-width:100px;flex:1}
.jprof-mindmap{width:100%;height:55vh;min-height:340px;max-height:620px;overflow:auto;touch-action:pan-x pan-y;border:1px solid #367187;border-radius:10px}
.jprof-mindmap svg{display:block;width:100%;min-width:1200px;height:auto}
.jprof-map-controls{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.jprof-map-node{cursor:pointer;outline:none}
.jprof-map-node:focus rect,.jprof-map-node[aria-pressed=true] rect{stroke:white;stroke-width:4}
.jprof-map-feedback{padding:10px;border-left:3px solid #77f1d7;white-space:pre-wrap}

/* Generic workspace viewer: local zoom, original semantic content preserved. */
.jprof-workspace-view .jprof-initial-hero-center .jprof-presence{max-width:260px;min-width:180px}
.jprof-workspace-view .jprof-initial-hero-grid{grid-template-columns:minmax(0,1fr) minmax(180px,1.5fr) minmax(0,1fr)}
.jprof-workspace-view .jprof-landing-reading.jprof-viewer{display:flex;flex-direction:column;overflow:hidden;min-width:0;min-height:180px;padding:0}
.jprof-viewer-tools{display:flex;align-items:center;gap:4px;justify-content:flex-end;flex-shrink:0;padding:4px}
.jprof-module .jprof-viewer-tools button{font-size:13px;min-width:34px;min-height:34px;padding:4px 8px}
.jprof-viewer-viewport{overflow:auto;min-width:0;min-height:140px;max-height:65dvh;flex:1;overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-gutter:stable}
.jprof-viewer-canvas{box-sizing:border-box;padding:8px;font-size:clamp(18px,1.25vw,19px);line-height:1.65;overflow-wrap:anywhere}
.jprof-module .jprof-viewer-canvas :is(p,li,label,input,textarea,select,.jprof-conversation-answer){font-size:inherit;line-height:inherit}
.jprof-viewer-canvas .jprof-mindmap text{font-size:18px}
.jprof-viewer-canvas .jprof-map-feedback{font-size:18px;line-height:1.6}
@media(max-width:750px){.jprof-workspace-view .jprof-initial-hero-grid{grid-template-columns:1fr}.jprof-workspace-view .jprof-initial-hero-center .jprof-presence{width:240px;min-width:0;max-width:100%}.jprof-viewer-tools button{min-height:40px}.jprof-viewer-viewport{max-height:65dvh}}

.jprof-workspace-view textarea:not(.jprof-conversation-topic-4){font-size:clamp(17px,1.25vw,18px);line-height:1.5}
.jprof-map-node{cursor:pointer}.jprof-map-node.jprof-map-hover rect,.jprof-map-node[aria-pressed=true] rect{stroke:#ffe070;stroke-width:4}
.jprof-map-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:6px 0}.jprof-map-breadcrumb button{font-size:14px}
.jprof-map-feedback a{display:block;overflow-wrap:anywhere}.jprof-map-feedback button{min-height:40px;margin:4px}

.juris-export-branding{border-top:1px solid #557789;padding:12px;margin-top:20px;font-size:13px;color:#b9d1dd}.juris-export-branding p{margin:4px 0}.juris-export-branding a{color:#92e2f0}.jprof-map-controls .jprof-export-options{display:flex;flex-wrap:wrap;gap:6px}

.jprof-guide-controls{display:flex;flex-wrap:wrap;gap:6px}.jprof-legal-guide{border:1px solid #557789;padding:10px;border-radius:10px}.jprof-legal-guide svg{float:left;margin-right:10px}.jprof-legal-guide select{max-width:100%;font:inherit}.jprof-legal-guide p{white-space:normal}.jprof-map-feedback h5{margin-bottom:4px}


/* JURIS_OUTPUT_TOOLBAR_COMPACT_V1
   Modalidades de salida: una sola fila, compacta y secundaria. */

.jprof-workspace-view
.jprof-output-actions:has(.juris-output-toolbar){
  flex:1 0 100%;
  width:100%;
  min-width:0;
  display:block;
  order:50;
}

.jprof-workspace-view
.juris-output-toolbar{
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:
    repeat(5,minmax(0,1fr));
  align-items:stretch;
  gap:4px;
  margin:2px 0 0;
  padding:0;
  border:0;
  background:transparent;
}

.jprof-workspace-view
.juris-output-mode-button{
  width:100%;
  min-width:0;
  min-height:32px;
  height:auto;
  margin:0;
  padding:4px 5px;
  overflow:hidden;

  color:#dff7fc;
  border:1px solid #285f77;
  border-radius:6px;
  background:#082d42;

  font-size:clamp(8.5px,.58vw,10px);
  font-weight:600;
  line-height:1.12;
  text-align:center;
  white-space:normal;

  box-shadow:none;
}

.jprof-workspace-view
.juris-output-mode-button:hover{
  color:#fff;
  border-color:#48cbd8;
  background:#0a3d54;
}

.jprof-workspace-view
.juris-output-mode-button[
  aria-pressed="true"
]{
  color:#fff;
  border-color:#63dfe9;
  background:#0b596f;
  box-shadow:
    inset 0 0 0 1px rgba(99,223,233,.14);
}

.jprof-workspace-view
.jprof-conversation-exports-5{
  font-size:10px;
}

.jprof-workspace-view
.jprof-conversation-exports-5>summary{
  white-space:nowrap;
}


/* En pantallas menores se conserva UNA sola fila:
   si no cabe, se desplaza horizontalmente. */

@media(max-width:900px){

  .jprof-workspace-view
  .jprof-output-actions:has(.juris-output-toolbar){
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:thin;
  }

  .jprof-workspace-view
  .juris-output-toolbar{
    min-width:680px;
  }
}


/* JURIS_WORKSPACE_SOURCE_LAYOUT_V2 */

/* Area de trabajo | zoom | buzon en una misma fila. */

.jprof-workspace-view .jprof-result-heading{
  display:grid;
  grid-template-columns:
    minmax(0,1fr) auto auto !important;
  align-items:center !important;
  gap:8px !important;
}

.jprof-workspace-view
.jprof-result-heading
>.jprof-viewer-tools{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:5px !important;
  margin:0 !important;
  padding:0 !important;
}

.jprof-workspace-view
.jprof-result-heading
>.jprof-viewer-tools button{
  min-width:34px !important;
  height:34px !important;
  min-height:34px !important;
  margin:0 !important;
  padding:5px 8px !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1 !important;
}

.jprof-workspace-view
.jprof-result-heading
>.jprof-viewer-tools button:nth-child(2){
  min-width:48px !important;
}

.jprof-workspace-view .jprof-report-inbox{
  min-height:34px !important;
  margin:0 !important;
  padding:5px 10px !important;
  font-size:12px !important;
  white-space:nowrap !important;
}


/* El contenedor de acciones no consume una columna propia. */

.jprof-workspace-view .jprof-output-actions{
  display:contents !important;
}


/* Profundizar + Ayuda + Voz en una sola franja. */

.jprof-workspace-view .jprof-response-actions{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:8px !important;
  margin-top:auto !important;
  padding-top:7px !important;
}

.jprof-workspace-view .juris-deepen-action{
  order:10 !important;
  flex:0 0 auto !important;
  min-height:38px !important;
  margin:0 !important;
  padding:7px 12px !important;
  font-size:13px !important;
  font-weight:700 !important;
}

.jprof-workspace-view .juris-help-action{
  order:11 !important;
  flex:0 0 auto !important;
  margin:0 !important;
}

.jprof-workspace-view
.juris-help-action>summary{
  display:flex !important;
  align-items:center !important;
  min-height:38px !important;
  padding:7px 12px !important;
  font-size:13px !important;
  font-weight:700 !important;
}


/* Voz: ya no ocupa casi todo el ancho. */

.jprof-workspace-view .jprof-voice-controls{
  order:12 !important;
  flex:0 0 230px !important;
  width:230px !important;
  max-width:230px !important;
  min-width:210px !important;
  margin:0 0 0 auto !important;
}

.jprof-workspace-view
.jv-reader.jv-compact{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:2px !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}

.jprof-workspace-view
.jv-reader.jv-compact>button{
  width:100% !important;
  height:38px !important;
  min-height:38px !important;
  margin:0 !important;
  padding:7px 10px !important;
  font-size:13px !important;
  font-weight:700 !important;
}

.jprof-workspace-view
.jv-reader.jv-compact .jv-status{
  margin:0 !important;
  color:#a9c7d2 !important;
  font-size:10px !important;
  line-height:1.15 !important;
  white-space:nowrap !important;
}


/* Cinco modalidades: tipografia legible. */

.jprof-workspace-view .juris-output-toolbar{
  order:20 !important;
  flex:1 0 100% !important;
  width:100% !important;
  min-width:0 !important;

  display:grid !important;
  grid-template-columns:
    repeat(5,minmax(0,1fr)) !important;

  gap:7px !important;
  margin:2px 0 0 !important;
}

.jprof-workspace-view .juris-output-mode-button{
  width:100% !important;
  min-width:0 !important;
  min-height:48px !important;
  height:auto !important;
  margin:0 !important;
  padding:8px 9px !important;

  color:#ffffff !important;
  border:1px solid #72e4ed !important;
  border-radius:7px !important;
  background:#0a3953 !important;

  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  text-align:center !important;
  white-space:normal !important;
}

.jprof-workspace-view
.juris-output-mode-button:hover{
  background:#0d4b66 !important;
  border-color:#9bf3fa !important;
}

.jprof-workspace-view
.juris-output-mode-button[aria-pressed="true"]{
  color:#fff !important;
  background:#0b647a !important;
  border-color:#b0f9ff !important;
  box-shadow:
    inset 0 0 0 1px
    rgba(176,249,255,.24) !important;
}


/* Acciones finales siempre visibles. */

.jprof-workspace-view
.jprof-conversation-exports-5{
  order:21 !important;
  flex:1 0 100% !important;
  width:100% !important;

  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;

  gap:7px !important;
  margin:0 !important;
  padding:5px 0 0 !important;

  border-top:0 !important;
}

.jprof-workspace-view
.jprof-conversation-exports-5>summary{
  flex:1 0 100% !important;
  margin:0 !important;
  padding:3px 0 !important;

  color:#b9d5df !important;
  font-size:12px !important;
  font-weight:700 !important;
}

.jprof-workspace-view
.jprof-conversation-exports-5>button{
  min-height:38px !important;
  margin:0 !important;
  padding:7px 10px !important;

  color:#f3fcff !important;
  border-color:#36778d !important;
  background:#093248 !important;

  font-size:13px !important;
  font-weight:700 !important;
  line-height:1.15 !important;
}


/* Respuesta adaptable sin volver ilegible el texto. */

@media(max-width:1150px){

  .jprof-workspace-view
  .juris-output-toolbar{
    overflow-x:auto !important;

    grid-template-columns:
      repeat(5,minmax(150px,1fr)) !important;
  }

  .jprof-workspace-view
  .jprof-voice-controls{
    flex-basis:210px !important;
    width:210px !important;
  }
}

/* JURIS_RESPONSE_ACTION_HUB_V4 */

.jprof-workspace-view .jprof-response-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
  margin-top:auto!important;
  padding-top:7px!important;
}

.jprof-output-actions{
  flex:1 1 390px;
  min-width:0;
}

.juris-output-trigger{
  width:100%;
  min-height:42px;
  padding:9px 16px;
  border:2px solid #f2c94c;
  border-radius:9px;
  background:#123f59;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.juris-output-trigger:hover,
.juris-output-trigger:focus-visible{
  border-color:#ffe27a;
  box-shadow:0 0 0 3px rgba(242,201,76,.18);
}

@keyframes jurisNextStepPulse{
  0%{box-shadow:0 0 0 0 rgba(242,201,76,.55)}
  60%{box-shadow:0 0 0 7px rgba(242,201,76,0)}
  100%{box-shadow:0 0 0 0 rgba(242,201,76,0)}
}

.juris-next-step-pulse{
  animation:jurisNextStepPulse 1.15s ease-out 3;
}

.juris-output-dialog{
  width:min(720px,calc(100vw - 28px));
  max-height:84vh;
  padding:0;
  border:1px solid #9eb4c1;
  border-radius:14px;
  background:#fff;
  color:#17242c;
  overflow:hidden;
}

.juris-output-dialog::backdrop{
  background:rgba(5,20,30,.56);
}

.juris-output-dialog-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px 14px;
  padding:18px 20px 14px;
  border-bottom:1px solid #d7e0e5;
}

.juris-output-dialog-header h3,
.juris-output-dialog-header p{
  margin:0;
}

.juris-output-dialog-header p{
  grid-column:1/-1;
}

.juris-output-dialog-body{
  display:grid;
  gap:15px;
  padding:16px 20px 20px;
  overflow:auto;
  max-height:calc(84vh - 110px);
}

.juris-output-step,
.juris-output-research{
  display:grid;
  gap:9px;
}

.juris-output-step h4,
.juris-output-research h4{
  margin:0;
}

.juris-output-step-2,
.juris-output-research{
  padding-top:13px;
  border-top:1px solid #d7e0e5;
}

.juris-output-levels,
.juris-output-action-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.juris-output-mode-button,
.juris-output-action{
  width:100%;
  min-height:42px;
  text-align:left;
}

.juris-output-mode-button[aria-pressed="true"]{
  border:2px solid #195f7a;
  background:#eaf5f8;
  font-weight:700;
}

.jprof-report-inbox,
.juris-help-action{
  flex:0 0 auto;
}

@media(max-width:700px){
  .jprof-output-actions{flex:1 1 100%}

  .jprof-report-inbox,
  .juris-help-action{
    flex:1 1 calc(50% - 4px);
  }

  .juris-output-levels,
  .juris-output-action-grid{
    grid-template-columns:1fr;
  }

  .juris-output-dialog{
    width:calc(100vw - 16px);
    max-height:90vh;
  }

  .juris-output-dialog-body{
    max-height:calc(90vh - 110px);
    padding:14px;
  }
}

/* JURIS_OUTPUT_HUB_VISUAL_FIX_20260926 */

.juris-output-trigger{
  background:#073a5c !important;
  color:#ffffff !important;
  border:2px solid #d6aa2b !important;
  font-weight:700 !important;
  opacity:1 !important;
}

.juris-output-trigger:hover,
.juris-output-trigger:focus-visible{
  background:#0b4b75 !important;
  color:#ffffff !important;
}

.juris-output-dialog button{
  color:#ffffff !important;
  opacity:1 !important;
}

.juris-output-dialog button:not(.secondary){
  background:#073a5c !important;
  border:1px solid #27c7d8 !important;
}

.juris-output-dialog button:not(.secondary):hover,
.juris-output-dialog button:not(.secondary):focus-visible{
  background:#0b526f !important;
}

.juris-output-dialog button:disabled{
  color:#9eb3bf !important;
  opacity:.55 !important;
}

/* JURIS_OUTPUT_HUB_VISUAL_FIX_V2_20260926 */

/* ===== BARRA INFERIOR: 3 CONTROLES EN UNA SOLA LINEA ===== */

.jprof-response-actions{
  display:grid !important;
  grid-template-columns:
    minmax(320px,2fr)
    minmax(170px,.85fr)
    minmax(240px,1.15fr) !important;
  gap:10px !important;
  align-items:stretch !important;
}

.jprof-response-actions > .jprof-output-actions{
  grid-column:auto !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
}

.jprof-output-actions .juris-output-trigger{
  width:100% !important;
  height:100% !important;
  min-height:46px !important;

  background:#075078 !important;
  color:#ffffff !important;

  border:2px solid #e0b52f !important;
  border-radius:9px !important;

  font-weight:800 !important;
  font-size:14px !important;

  opacity:1 !important;
  visibility:visible !important;
  filter:none !important;
  text-shadow:none !important;
}

.jprof-output-actions .juris-output-trigger:hover,
.jprof-output-actions .juris-output-trigger:focus-visible{
  background:#09618f !important;
  color:#ffffff !important;
  border-color:#ffd85a !important;
}


/* Ayuda del panel */

.jprof-response-actions > .juris-help-action{
  width:100% !important;
  min-height:46px !important;
  margin:0 !important;

  background:#0b3d5a !important;
  color:#ffffff !important;

  border:1px solid #39c7da !important;
  border-radius:9px !important;

  opacity:1 !important;
}


/* Voz de Juris */

.jprof-response-actions .jv-compact{
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
}

.jprof-response-actions .jv-compact > button{
  width:100% !important;
  min-height:46px !important;

  background:#31556e !important;
  color:#ffffff !important;

  border:1px solid #55d9df !important;
  border-radius:9px !important;

  font-weight:800 !important;
  opacity:1 !important;
}


/* ===== DIALOGO ===== */

.juris-output-dialog{
  color:#15222b !important;
}

.juris-output-dialog h3,
.juris-output-dialog p,
.juris-output-dialog strong,
.juris-output-dialog label{
  color:#15222b !important;
}


/* TODOS LOS BOTONES ACTIVOS DEL DIALOGO */

.juris-output-dialog button:not(:disabled){
  background:#084a6a !important;
  color:#ffffff !important;

  border:1px solid #28bfd0 !important;

  opacity:1 !important;
  filter:none !important;

  font-weight:700 !important;
  text-shadow:none !important;
}

.juris-output-dialog button:not(:disabled):hover,
.juris-output-dialog button:not(:disabled):focus-visible{
  background:#0a607f !important;
  color:#ffffff !important;
  border-color:#51dbea !important;
}


/* NIVEL SELECCIONADO */

.juris-output-dialog button[aria-pressed="true"],
.juris-output-dialog button.selected,
.juris-output-dialog button.is-selected{
  background:#137f90 !important;
  color:#ffffff !important;
  border:2px solid #67e3e7 !important;
}


/* BOTONES DESHABILITADOS */

.juris-output-dialog button:disabled{
  background:#d7e0e5 !important;
  color:#58666f !important;
  border:1px solid #aebbc2 !important;

  opacity:1 !important;
  cursor:not-allowed !important;
}


/* CERRAR */

.juris-output-dialog-header button{
  background:#0b405e !important;
  color:#ffffff !important;
  opacity:1 !important;
}


/* RESPONSIVE: solo se apilan cuando realmente falta espacio */

@media (max-width:900px){

  .jprof-response-actions{
    grid-template-columns:1fr !important;
  }

  .jprof-response-actions > .jprof-output-actions,
  .jprof-response-actions > .juris-help-action,
  .jprof-response-actions .jv-compact{
    width:100% !important;
  }

}

/* JURIS_OUTPUT_HUB_LAYOUT_FIX_V3_20260926 */

.jprof-response-actions{
  display:grid !important;
  grid-template-columns:
    minmax(0,1.8fr)
    minmax(150px,.75fr)
    minmax(220px,1fr) !important;
  gap:10px !important;
  align-items:start !important;
  height:auto !important;
  min-height:0 !important;
}

.jprof-response-actions > *{
  align-self:start !important;
  min-height:0 !important;
}

.jprof-response-actions > .jprof-output-actions{
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
}

.jprof-output-actions .juris-output-trigger{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  width:100% !important;
  height:46px !important;
  min-height:46px !important;
  max-height:46px !important;

  padding:0 18px !important;

  background:#075078 !important;
  color:#ffffff !important;
  border:2px solid #e0b52f !important;
  border-radius:9px !important;

  font-weight:800 !important;
  opacity:1 !important;
}

.jprof-response-actions > .juris-help-action{
  height:46px !important;
  min-height:46px !important;
  max-height:46px !important;
  margin:0 !important;
}

.jprof-response-actions .jv-compact{
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
}

.jprof-response-actions .jv-compact > button{
  height:46px !important;
  min-height:46px !important;
  max-height:46px !important;
  margin:0 !important;
}

/* Contraste de acciones del diálogo */
.juris-output-dialog button:not(:disabled){
  color:#ffffff !important;
  opacity:1 !important;
}

.juris-output-dialog button:disabled{
  background:#d9e2e7 !important;
  color:#41515b !important;
  opacity:1 !important;
}

@media (max-width:900px){
  .jprof-response-actions{
    grid-template-columns:1fr !important;
  }
}

/* JURIS_OUTPUT_HUB_READABLE_ROW5_20260926 */

/* ========================================
   TRES CONTROLES INFERIORES EN UNA FILA
   ======================================== */

@media (min-width:561px){

  .jprof-response-actions{
    display:grid !important;
    grid-template-columns:
      minmax(0,1.75fr)
      minmax(145px,.75fr)
      minmax(200px,1fr) !important;

    gap:10px !important;
    align-items:center !important;

    width:100% !important;
    height:auto !important;
    min-height:0 !important;
  }

  .jprof-response-actions > .jprof-output-actions,
  .jprof-response-actions > .juris-help-action,
  .jprof-response-actions .jv-compact{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    align-self:center !important;
  }

  .jprof-output-actions .juris-output-trigger,
  .jprof-response-actions > .juris-help-action,
  .jprof-response-actions .jv-compact > button{
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;

    margin:0 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
}


/* BOTON PRINCIPAL */

.jprof-output-actions .juris-output-trigger{
  padding:0 18px !important;

  background:#075078 !important;
  color:#ffffff !important;

  border:2px solid #e0b52f !important;
  border-radius:9px !important;

  font-size:16px !important;
  line-height:1.2 !important;
  font-weight:800 !important;

  opacity:1 !important;
}


/* AYUDA DEL PANEL */

.jprof-response-actions > .juris-help-action{
  background:#0b3d5a !important;
  color:#ffffff !important;

  border:1px solid #39c7da !important;
  border-radius:9px !important;

  font-size:15px !important;
  font-weight:700 !important;
}


/* VOZ */

.jprof-response-actions .jv-compact > button{
  background:#31556e !important;
  color:#ffffff !important;

  border:1px solid #55d9df !important;
  border-radius:9px !important;

  font-size:15px !important;
  font-weight:800 !important;
}


/* ========================================
   DIALOGO: TEXTO MAS GRANDE Y LEGIBLE
   ======================================== */

.juris-output-dialog{
  color:#15222b !important;
  font-size:15px !important;
}

.juris-output-dialog-header h3{
  font-size:20px !important;
  line-height:1.25 !important;
  font-weight:800 !important;
  color:#10242f !important;
}

.juris-output-dialog-header p{
  font-size:15px !important;
  line-height:1.5 !important;
  color:#314651 !important;
}


/* títulos Paso 1, Paso 2 e Investigar más */

.juris-output-dialog h4,
.juris-output-dialog .juris-output-step > strong{
  font-size:16px !important;
  line-height:1.35 !important;
  font-weight:800 !important;
  color:#10242f !important;
}


/* botones Paso 1 */

.juris-output-dialog .juris-output-mode,
.juris-output-dialog button[data-mode]{
  min-height:52px !important;
  padding:11px 16px !important;

  font-size:17px !important;
  line-height:1.25 !important;
  font-weight:800 !important;
}


/* botones Paso 2 */

.juris-output-dialog .juris-output-actions-grid button,
.juris-output-dialog .juris-output-actions button{
  min-height:50px !important;
  padding:11px 15px !important;

  font-size:15px !important;
  line-height:1.25 !important;
  font-weight:750 !important;

  background:#084a6a !important;
  color:#ffffff !important;

  border:1px solid #28bfd0 !important;

  opacity:1 !important;
}


/* cualquier botón activo */

.juris-output-dialog button:not(:disabled){
  color:#ffffff !important;
  opacity:1 !important;
}


/* seleccionado */

.juris-output-dialog button[aria-pressed="true"],
.juris-output-dialog button.selected,
.juris-output-dialog button.is-selected{
  background:#137f90 !important;
  color:#ffffff !important;

  border:2px solid #67e3e7 !important;
}


/* deshabilitado */

.juris-output-dialog button:disabled{
  background:#d9e2e7 !important;
  color:#41515b !important;

  border:1px solid #aebbc2 !important;

  opacity:1 !important;
}


/* cerrar */

.juris-output-dialog-header button{
  min-height:42px !important;
  padding:9px 16px !important;

  font-size:15px !important;
  font-weight:750 !important;

  background:#0b405e !important;
  color:#ffffff !important;

  opacity:1 !important;
}


/* Investigar más */

.juris-output-research{
  font-size:16px !important;
  font-weight:800 !important;
}

.juris-output-research[hidden]{
  display:none !important;
}


/* Solo teléfono estrecho */

@media (max-width:560px){

  .jprof-response-actions{
    grid-template-columns:1fr !important;
  }

}

/* JURIS_OUTPUT_HUB_FLEX_ROW6_20260926 */

/* PWA, escritorio y tablet: tres controles SIEMPRE en una sola fila */
@media (min-width:561px){

  .jprof-workspace-view .jprof-response-actions{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;

    align-items:flex-start !important;
    justify-content:stretch !important;

    gap:10px !important;

    width:100% !important;
    height:auto !important;
    min-height:0 !important;
  }

  /* ¿Qué puedo hacer...? */
  .jprof-workspace-view .jprof-response-actions > .jprof-output-actions{
    display:block !important;
    flex:1.7 1 0 !important;
    width:auto !important;
    min-width:0 !important;

    margin:0 !important;

    grid-column:auto !important;
    grid-row:auto !important;
  }

  /* Ayuda del panel */
  .jprof-workspace-view .jprof-response-actions > .juris-help-action{
    flex:.8 1 0 !important;
    width:auto !important;
    min-width:0 !important;

    margin:0 !important;

    grid-column:auto !important;
    grid-row:auto !important;
  }

  /* Voz de Juris */
  .jprof-workspace-view .jprof-response-actions > .jprof-voice-controls{
    flex:1 1 0 !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;

    margin:0 !important;

    grid-column:auto !important;
    grid-row:auto !important;
  }

  .jprof-workspace-view .jprof-response-actions > .jprof-voice-controls .jv-compact{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  .jprof-workspace-view .jprof-response-actions > .jprof-output-actions,
  .jprof-workspace-view .jprof-response-actions > .juris-help-action,
  .jprof-workspace-view .jprof-response-actions > .jprof-voice-controls{
    align-self:start !important;
  }

  /* Keep empty output hosts out of the welcome layout. */
  .jprof-workspace-view .jprof-response-actions > .jprof-output-actions:empty{
    display:none !important;
  }

  .jprof-workspace-view .jprof-response-actions > .juris-help-action{
    padding:0 !important;
  }

  .jprof-workspace-view .jprof-response-actions > .juris-help-action > summary{
    min-height:0 !important;
    padding:0 8px !important;
    text-align:center;
  }

  .jprof-workspace-view .jprof-output-actions .juris-output-trigger{
    padding:0 8px !important;
    font-size:clamp(12px,1.1vw,16px) !important;
  }

  .jprof-workspace-view .jprof-response-actions > .juris-help-action > summary,
  .jprof-workspace-view .jprof-response-actions .jv-compact > button{
    padding:0 4px !important;
    font-size:clamp(11px,1vw,13px) !important;
    line-height:1.15 !important;
  }

  /* Los tres botones con la misma altura */
  .jprof-workspace-view .jprof-output-actions .juris-output-trigger,
  .jprof-workspace-view .jprof-response-actions > .juris-help-action,
  .jprof-workspace-view .jprof-response-actions .jv-compact > button{
    width:100% !important;

    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;

    margin:0 !important;
  }
}

/* Solo teléfono realmente estrecho */
@media (max-width:560px){

  .jprof-workspace-view .jprof-response-actions{
    display:flex !important;
    flex-direction:column !important;
  }

  .jprof-workspace-view .jprof-response-actions > .juris-help-action:not([open]){
    padding:0 !important;
  }

  .jprof-workspace-view .jprof-response-actions > .jprof-output-actions,
  .jprof-workspace-view .jprof-response-actions > .juris-help-action,
  .jprof-workspace-view .jprof-response-actions > .jprof-voice-controls,
  .jprof-workspace-view .jprof-response-actions .jv-compact{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    flex:0 0 auto !important;
  }
}


/* CSP: active conversation UX rules, formerly injected by jurisEnsureUxStyles. */
.juris-compact-question{
  max-height:6.2em !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  white-space:pre-wrap !important;
  overflow-wrap:anywhere !important;
  scrollbar-gutter:stable;
}

.jprof-chat-bubble-user{
  max-height:5.8em !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scrollbar-gutter:stable;
  line-height:1.45 !important;
}

.juris-conversation-manager{
  display:grid !important;
  grid-template-columns:
    minmax(0,1fr) auto auto auto;
  gap:.4rem;
  width:100%;
}

@media(max-width:700px){
  .juris-conversation-manager{
    grid-template-columns:
      1fr 1fr !important;
  }

  .juris-conversation-manager input{
    grid-column:1 / -1;
    width:100%;
    min-width:0;
  }

  .juris-conversation-manager button{
    display:block !important;
    width:100%;
    min-width:0;
  }
}

.jprof-chat-history{
  height:auto !important;
  min-height:0 !important;
  max-height:14rem !important;
  overflow-y:auto !important;
  margin-top:.25rem !important;
  margin-bottom:.25rem !important;
  padding-bottom:0 !important;
}

.jprof-chat-history-list{
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
}

.jprof-chat-turn{
  margin-top:.25rem !important;
  margin-bottom:.35rem !important;
}

@media(max-width:700px){
  .jprof-chat-history{
    max-height:11rem !important;
  }
}

.jprof-chat-message{
  margin-top:.1rem !important;
  margin-bottom:.22rem !important;
}

.jprof-chat-bubble{
  margin-top:0 !important;
  margin-bottom:.18rem !important;
}

.juris-workspace-selectable,
.juris-workspace-selectable *{
  -webkit-user-select:text !important;
  user-select:text !important;
}

/* Copy confirmation only; never intercepts pointer interaction. */
.juris-copy-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10050;max-width:calc(100vw - 40px);padding:12px 20px;border:1px solid #8bc4b4;border-radius:12px;background:#153e38;color:#fff;box-shadow:0 5px 22px #0003;font:600 15px/1.4 system-ui,sans-serif;pointer-events:none}.juris-copy-toast[hidden]{display:none}

/* Contextual developer tools remain in the visible response controls, including short social replies. */

/* Nonmodal contextual teaching in the existing right work area. */
.jprof-developer-host:empty{display:none}.juris-developer-panel{border:1px solid #c7d5df;border-radius:12px;background:var(--surface,#fff);color:var(--text,#173747);padding:1rem;margin-bottom:1rem;min-width:0;position:relative}
.juris-developer-panel>header{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.juris-developer-panel>header h3{flex:1;margin:.2rem 0}.juris-developer-scroll{max-height:70vh;overflow-y:auto;overscroll-behavior:contain;min-width:0}.juris-developer-scroll[hidden]{display:none}.juris-developer-panel nav{display:grid;gap:.35rem}.juris-developer-original{padding:.7rem;border-bottom:1px solid #c7d5df;margin-bottom:.7rem}.juris-developer-original p{white-space:pre-wrap;overflow-wrap:anywhere;margin:.25rem 0 .7rem}.juris-developer-panel textarea,.juris-developer-panel input:not([type=checkbox]),.juris-developer-panel select{max-width:100%;box-sizing:border-box}.juris-developer-panel textarea{width:100%}
@media(max-width:800px){.juris-developer-scroll{max-height:65vh}.juris-developer-original{border-left:3px solid #547b90}.juris-developer-panel{padding:.6rem}}
.jprof-developer-workspace:has(>.jprof-developer-host>.juris-developer-panel)>:not(.jprof-developer-host):not(.jprof-response-actions){display:none}.jprof-developer-workspace:has(>.jprof-developer-host>.juris-developer-panel)>.jprof-developer-host{display:flex;flex:1;min-height:0;flex-direction:column}.jprof-developer-workspace .juris-developer-panel{display:flex;flex-direction:column;max-height:calc(100dvh - 180px);min-height:0}.juris-developer-panel>header{flex-shrink:0}.juris-developer-panel .juris-developer-scroll{flex:1;min-height:0}

/* Sole contextual control group: right response area, with developer immediately below the response action. */
.jprof-contextual-host>.juris-response-context-actions{display:flex;flex-direction:column;align-items:stretch;gap:.35rem;width:100%;grid-column:1/-1}.jprof-contextual-host>.juris-response-context-actions[hidden]{display:none}.juris-response-context-actions>[data-developer-context]{display:block;width:100%}.juris-response-context-actions>[data-developer-context]>button{width:100%}.juris-selected-response-label{font-size:.85rem;white-space:pre-wrap;overflow-wrap:anywhere;margin:.25rem 0}.jprof-chat-turn[tabindex]{cursor:pointer}.jprof-chat-turn.juris-selected-response{outline:2px solid #547b90;outline-offset:2px;border-radius:8px}

.juris-response-editor{display:flex;align-items:start;gap:.5rem;margin:.6rem 0}.juris-response-editor textarea{flex:1;min-width:0}.juris-custom-responses{border-top:1px solid #c7d5df;margin-top:1rem;padding-top:.7rem}.juris-custom-response{margin:.6rem 0}.juris-custom-response textarea,.juris-legal-definition-editor{width:100%;box-sizing:border-box;min-height:8rem;resize:vertical}.juris-legal-definition-editor{min-height:18rem}

.jprof-contextual-host{flex-shrink:0;min-width:0;margin-bottom:.6rem}.jprof-contextual-host .juris-output-trigger,.jprof-contextual-host [data-developer-mode]{min-height:44px;font-size:1rem;line-height:1.35;font-weight:600;padding:.65rem .85rem;border:1px solid #315f78;background:#0b3d5a;color:#ffffff;text-align:left}.jprof-contextual-host .juris-response-context-actions>p{order:2;margin:.15rem 0;max-height:5rem;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.jprof-contextual-host>.juris-response-context-actions{gap:.4rem}.jprof-contextual-host .juris-output-trigger{order:0}.jprof-contextual-host [data-developer-context]{order:1}.jprof-contextual-host .juris-response-context-actions>section{order:3}.jprof-contextual-host .juris-output-trigger:focus-visible,.jprof-contextual-host [data-developer-mode]:focus-visible{outline:3px solid #bf7b13;outline-offset:2px}

/* Persistent footer controls: directly above help/voice, overriding the legacy single-row footer. */
.jprof-workspace-view .jprof-response-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-auto-flow:row;gap:8px!important;flex-shrink:0}
.jprof-workspace-view .jprof-response-actions>.jprof-contextual-host{display:block;grid-column:1/-1!important;grid-row:2!important;width:100%;min-width:0;margin:0}
.jprof-workspace-view .jprof-response-actions>.jprof-output-actions{grid-column:1/-1!important;grid-row:1!important}
.jprof-workspace-view .jprof-response-actions>.juris-help-action{grid-column:1!important;grid-row:3!important}
.jprof-workspace-view .jprof-response-actions>.jprof-voice-controls{grid-column:2!important;grid-row:3!important}
.jprof-contextual-host [data-developer-mode]{order:1;width:100%}.jprof-contextual-host [data-developer-mode][hidden]{display:none!important}.juris-initial-general-tools{max-height:24vh;overflow:auto}.juris-initial-general-tools[hidden]{display:none}.juris-context-startup-status:empty{display:none}
.jprof-workspace-view .jprof-response-actions>.jprof-contextual-host .juris-output-trigger,.jprof-workspace-view .jprof-response-actions>.jprof-contextual-host [data-developer-mode]{width:100%!important;min-height:44px!important;font-size:16px!important;line-height:1.35!important;white-space:normal!important;background:#0b3d5a!important;color:#ffffff!important;padding:10px 12px!important;border:1px solid #315f78!important}
@media(max-width:560px){.jprof-workspace-view .jprof-response-actions{grid-template-columns:minmax(0,1fr)!important}.jprof-workspace-view .jprof-response-actions>.jprof-voice-controls{grid-column:1!important;grid-row:4!important}}

/* Four existing controls in one nonwrapping row. Preserve the existing button palette. */
.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer{display:grid!important;grid-template-columns:minmax(0,2.3fr) minmax(0,1.35fr) minmax(0,1.15fr) minmax(0,1.45fr)!important;align-items:stretch!important;gap:6px!important;min-width:0;max-width:100%;width:100%;grid-auto-flow:row}
.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer>.jprof-contextual-host,.jprof-workspace-view .jprof-contextual-host>.juris-response-context-actions,.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer>.jprof-voice-controls,.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer>.jprof-voice-controls>.jv-compact{display:contents!important}
.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer .juris-output-trigger{grid-column:1!important;grid-row:1!important}
.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer [data-developer-mode]{grid-column:2!important;grid-row:1!important}
.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer>.juris-help-action{grid-column:3!important;grid-row:1!important}
.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer .jprof-voice-toggle{grid-column:4!important;grid-row:1!important}
.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer .juris-output-trigger,.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer [data-developer-mode],.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer>.juris-help-action,.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer .jprof-voice-controls .jv-compact>button.jprof-voice-toggle,.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer .jprof-voice-toggle{display:flex!important;align-items:center!important;justify-content:center!important;align-self:stretch!important;width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;max-height:none!important;min-height:52px!important;margin:0!important;padding:8px 5px!important;box-sizing:border-box;font-family:inherit!important;font-size:15px!important;font-weight:700!important;line-height:1.35!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer [data-developer-mode][hidden]{display:none!important}
.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer>.jprof-output-actions,.jprof-workspace-view .jprof-contextual-host .juris-response-context-actions>p,.jprof-workspace-view .jprof-contextual-host .juris-response-context-actions>section,.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer .jv-compact>p,.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer .jv-compact>small{grid-column:1/-1!important;grid-row:auto!important;min-width:0;max-width:100%}
.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer:has([data-developer-mode][hidden]){grid-template-columns:minmax(0,2.3fr) minmax(0,1.15fr) minmax(0,1.45fr)!important}.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer:has([data-developer-mode][hidden])>.juris-help-action{grid-column:2!important}.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer:has([data-developer-mode][hidden]) .jprof-voice-toggle{grid-column:3!important}

/* DEV-DARK-BUTTONS-20261025-10: color-only correction, approved four-control row unchanged. */
.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer :is(.juris-output-trigger,[data-developer-mode],button.juris-help-action,button.jprof-voice-toggle){background-color:#0b3d5a!important;background-image:none!important;color:#ffffff!important;border-color:#315f78!important;opacity:1!important}
.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer :is(.juris-output-trigger,[data-developer-mode],button.juris-help-action,button.jprof-voice-toggle):hover:not(:disabled){background-color:#134f70!important;border-color:#447d9a!important;color:#ffffff!important}
.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer :is(.juris-output-trigger,[data-developer-mode],button.juris-help-action,button.jprof-voice-toggle):focus-visible{outline:3px solid #e0b52f!important;outline-offset:2px!important}
.jprof-workspace-view .jprof-response-actions.jprof-four-button-footer :is(.juris-output-trigger,[data-developer-mode],button.juris-help-action,button.jprof-voice-toggle):disabled{background-color:#344b5b!important;color:#e4edf3!important;border-color:#526c80!important;opacity:1!important;cursor:not-allowed}

/* DEV-UNIFORM-DARK-20261025-12. Stable component selectors; geometry unchanged. */
.jprof-workspace-view .jprof-response-actions .jprof-contextual-host .juris-response-context-actions button.juris-output-trigger,
.jprof-workspace-view .jprof-response-actions .jprof-contextual-host .juris-response-context-actions button[data-developer-mode],
.jprof-workspace-view .jprof-response-actions .jprof-output-actions button.juris-output-trigger,
.jprof-workspace-view .jprof-response-actions>button.juris-help-action,
.jprof-workspace-view .jprof-response-actions .jprof-voice-controls button.jprof-voice-toggle,
.jprof-workspace-view .jprof-response-actions .jprof-voice-controls .jv-compact>button{background:#0b3d5a!important;color:#ffffff!important;border-color:#315f78!important;opacity:1!important}
.jprof-workspace-view .jprof-response-actions .jprof-contextual-host .juris-response-context-actions button.juris-output-trigger:hover:not(:disabled),
.jprof-workspace-view .jprof-response-actions .jprof-contextual-host .juris-response-context-actions button[data-developer-mode]:hover:not(:disabled),
.jprof-workspace-view .jprof-response-actions .jprof-output-actions button.juris-output-trigger:hover:not(:disabled),
.jprof-workspace-view .jprof-response-actions>button.juris-help-action:hover:not(:disabled),
.jprof-workspace-view .jprof-response-actions .jprof-voice-controls button.jprof-voice-toggle:hover:not(:disabled),
.jprof-workspace-view .jprof-response-actions .jprof-voice-controls .jv-compact>button:hover:not(:disabled){background:#134f70!important;color:#ffffff!important;border-color:#447d9a!important}
.jprof-workspace-view .jprof-response-actions .jprof-contextual-host .juris-response-context-actions button.juris-output-trigger:active:not(:disabled),
.jprof-workspace-view .jprof-response-actions .jprof-contextual-host .juris-response-context-actions button[data-developer-mode]:active:not(:disabled),
.jprof-workspace-view .jprof-response-actions .jprof-output-actions button.juris-output-trigger:active:not(:disabled),
.jprof-workspace-view .jprof-response-actions>button.juris-help-action:active:not(:disabled),
.jprof-workspace-view .jprof-response-actions .jprof-voice-controls button.jprof-voice-toggle:active:not(:disabled),
.jprof-workspace-view .jprof-response-actions .jprof-voice-controls .jv-compact>button:active:not(:disabled){background:#164f6c!important;color:#ffffff!important;border-color:#447d9a!important}
.jprof-workspace-view .jprof-response-actions .jprof-contextual-host .juris-response-context-actions button.juris-output-trigger[aria-pressed="true"]:not(:disabled),
.jprof-workspace-view .jprof-response-actions .jprof-contextual-host .juris-response-context-actions button[data-developer-mode][aria-pressed="true"]:not(:disabled),
.jprof-workspace-view .jprof-response-actions .jprof-output-actions button.juris-output-trigger[aria-pressed="true"]:not(:disabled),
.jprof-workspace-view .jprof-response-actions>button.juris-help-action[aria-pressed="true"]:not(:disabled),
.jprof-workspace-view .jprof-response-actions .jprof-voice-controls button.jprof-voice-toggle[aria-pressed="true"]:not(:disabled),
.jprof-workspace-view .jprof-response-actions .jprof-voice-controls .jv-compact>button[aria-pressed="true"]:not(:disabled){background:#0b3d5a!important;color:#ffffff!important;border-color:#447d9a!important}
.jprof-workspace-view .jprof-response-actions .jprof-contextual-host .juris-response-context-actions button.juris-output-trigger:focus-visible,
.jprof-workspace-view .jprof-response-actions .jprof-contextual-host .juris-response-context-actions button[data-developer-mode]:focus-visible,
.jprof-workspace-view .jprof-response-actions .jprof-output-actions button.juris-output-trigger:focus-visible,
.jprof-workspace-view .jprof-response-actions>button.juris-help-action:focus-visible,
.jprof-workspace-view .jprof-response-actions .jprof-voice-controls button.jprof-voice-toggle:focus-visible,
.jprof-workspace-view .jprof-response-actions .jprof-voice-controls .jv-compact>button:focus-visible{outline:3px solid #e0b52f!important;outline-offset:2px!important;color:#ffffff!important}
.jprof-workspace-view .jprof-response-actions .jprof-contextual-host .juris-response-context-actions button.juris-output-trigger:disabled,
.jprof-workspace-view .jprof-response-actions .jprof-contextual-host .juris-response-context-actions button[data-developer-mode]:disabled,
.jprof-workspace-view .jprof-response-actions .jprof-output-actions button.juris-output-trigger:disabled,
.jprof-workspace-view .jprof-response-actions>button.juris-help-action:disabled,
.jprof-workspace-view .jprof-response-actions .jprof-voice-controls button.jprof-voice-toggle:disabled,
.jprof-workspace-view .jprof-response-actions .jprof-voice-controls .jv-compact>button:disabled{background:#344b5b!important;color:#ffffff!important;border-color:#526c80!important;opacity:1!important;cursor:not-allowed}

/* DEV-REAL-BETA-20261025-16 — component-owned controls; no outer footer changes. */
.jprof-workspace-view .juris-developer-panel{background:#f5f9fc!important;color:#173747!important;font-family:inherit;font-size:16px;line-height:1.5;max-width:100%;box-sizing:border-box;overflow:hidden}
.jprof-workspace-view .juris-developer-panel :is(p,label,span,strong,h3,h4,summary){color:#173747!important;opacity:1;overflow-wrap:anywhere;white-space:normal}
.jprof-workspace-view .juris-developer-panel :is(section,nav,details){min-width:0;max-width:100%;box-sizing:border-box;overflow:visible;max-height:none}
.jprof-workspace-view .juris-developer-panel .juris-developer-scroll{overflow-y:auto;overflow-x:hidden;min-height:0;min-width:0;scrollbar-gutter:stable;overscroll-behavior:contain;padding-right:.35rem}
.jprof-workspace-view .juris-developer-panel>header{gap:.4rem;flex-shrink:0}.jprof-workspace-view .juris-developer-panel>header h3{min-width:0}
.jprof-workspace-view .juris-developer-panel button,.juris-developer-panel button.juris-developer-control{background:#0b3d5a!important;background-image:none!important;color:#fff!important;border:1px solid #315f78!important;font:inherit!important;font-weight:600!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere;min-height:42px;max-width:100%;height:auto;opacity:1!important;filter:none!important;-webkit-text-fill-color:#FFFFFF!important;font-size:16px!important;text-shadow:none!important;padding:.5rem .65rem;box-sizing:border-box;cursor:pointer}
.jprof-workspace-view .juris-developer-panel button:hover:not(:disabled),.juris-developer-panel button.juris-developer-control:hover:not(:disabled){background:#134f70!important;color:#fff!important}.jprof-workspace-view .juris-developer-panel button:active:not(:disabled),.juris-developer-panel button.juris-developer-control:active:not(:disabled){background:#062d45!important;color:#fff!important}
.jprof-workspace-view .juris-developer-panel button:disabled,.juris-developer-panel button.juris-developer-control:disabled{background:#344b5b!important;color:#FFFFFF!important;border-style:dashed!important;cursor:not-allowed}
.jprof-workspace-view .juris-developer-panel :is(button,input,textarea,select,summary):focus-visible,.juris-developer-panel button.juris-developer-control:focus-visible{outline:3px solid #ad7500!important;outline-offset:2px}
.jprof-workspace-view .juris-developer-panel :is(input:not([type=checkbox]),textarea,select){background:#fff!important;color:#173747!important;border:1px solid #547b90!important;font:inherit!important;line-height:1.5!important;max-width:100%;min-width:0;box-sizing:border-box;padding:.5rem;opacity:1!important}
.jprof-workspace-view .juris-developer-panel textarea{display:block;width:100%;white-space:pre-wrap;overflow-wrap:anywhere;resize:vertical;min-height:5rem}
.jprof-workspace-view .juris-developer-panel input[type=checkbox]{appearance:auto!important;accent-color:#0b3d5a;width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;flex:none;padding:0;margin:.25rem .35rem .25rem 0;opacity:1!important;position:static!important;vertical-align:middle}
.jprof-workspace-view .juris-developer-panel .juris-response-editor{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:.45rem}.jprof-workspace-view .juris-developer-panel .juris-response-editor button{grid-column:2;justify-self:start}
.jprof-workspace-view .juris-developer-panel .juris-custom-response{padding:.5rem 0}.jprof-workspace-view .juris-developer-panel .juris-custom-response textarea{min-height:8rem}
.jprof-workspace-view .juris-developer-panel details{margin:.7rem 0;border:1px solid #b6cbd7;border-radius:8px;padding:.5rem}.jprof-workspace-view .juris-developer-panel summary{cursor:pointer;font-weight:600;min-height:32px}
.jprof-workspace-view .juris-developer-panel .juris-developer-original p{white-space:pre-wrap;max-height:none;overflow:visible}.jprof-workspace-view .juris-developer-panel nav{display:grid;grid-template-columns:minmax(0,1fr);gap:.4rem}
.jprof-workspace-view .jprof-developer-workspace:has(.juris-developer-panel){overflow:hidden}

/* DEV-WHITE-TEXT-20261025-17: developer buttons only; every state and text descendant. */
.jprof-workspace-view .juris-developer-panel button,
.jprof-workspace-view .juris-developer-panel button:hover,
.jprof-workspace-view .juris-developer-panel button:focus,
.jprof-workspace-view .juris-developer-panel button:focus-visible,
.jprof-workspace-view .juris-developer-panel button:active,
.jprof-workspace-view .juris-developer-panel button:disabled,
.jprof-workspace-view .juris-developer-panel button[aria-disabled="true"],
.jprof-workspace-view .juris-developer-panel button *,
.jprof-workspace-view .juris-developer-panel button:hover *,
.jprof-workspace-view .juris-developer-panel button:focus *,
.jprof-workspace-view .juris-developer-panel button:focus-visible *,
.jprof-workspace-view .juris-developer-panel button:active *,
.jprof-workspace-view .juris-developer-panel button:disabled *,
.jprof-workspace-view .juris-developer-panel button[aria-disabled="true"] *,
.jprof-workspace-view .jprof-response-actions [data-developer-mode],
.jprof-workspace-view .jprof-response-actions [data-developer-mode]:hover,
.jprof-workspace-view .jprof-response-actions [data-developer-mode]:focus,
.jprof-workspace-view .jprof-response-actions [data-developer-mode]:focus-visible,
.jprof-workspace-view .jprof-response-actions [data-developer-mode]:active,
.jprof-workspace-view .jprof-response-actions [data-developer-mode]:disabled,
.jprof-workspace-view .jprof-response-actions [data-developer-mode][aria-disabled="true"],
.jprof-workspace-view .jprof-response-actions [data-developer-mode] *,
.jprof-workspace-view .jprof-response-actions [data-developer-mode]:hover *,
.jprof-workspace-view .jprof-response-actions [data-developer-mode]:focus *,
.jprof-workspace-view .jprof-response-actions [data-developer-mode]:focus-visible *,
.jprof-workspace-view .jprof-response-actions [data-developer-mode]:active *,
.jprof-workspace-view .jprof-response-actions [data-developer-mode]:disabled *,
.jprof-workspace-view .jprof-response-actions [data-developer-mode][aria-disabled="true"] *{color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important}

/* JURIS002-SEARCH-VISIBLE-20261026 */
.juris-developer-panel .juris-knowledge-controls{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;position:sticky;top:0;background:#f5f9fc;z-index:2;padding:.5rem 0}
.juris-developer-panel .juris-knowledge-controls input{flex:1 1 12rem;width:auto}
.juris-developer-panel .juris-knowledge-status{flex:1 0 100%;margin:.25rem 0;padding:.45rem;border-left:3px solid #315f78;min-height:1.5em}
.juris-developer-panel .juris-knowledge article{padding:.65rem 0;border-bottom:1px solid #b6cbd7;overflow-wrap:anywhere}
.juris-developer-panel .juris-knowledge article h5{font:inherit;font-weight:700;color:#173747;margin:.4rem 0}
.juris-developer-panel .juris-knowledge p{white-space:pre-wrap}

/* DEV-FLOAT-SUPERVISED-20261026-v1: normal right-side controls cannot receive input. */
.jprof-developer-workspace.juris-developer-open>*{visibility:hidden!important;pointer-events:none!important}
.juris-developer-panel.juris-developer-floating{position:fixed!important;z-index:1000;display:flex!important;flex-direction:column;box-sizing:border-box;min-width:0;min-height:0;max-width:none!important;max-height:none!important;margin:0!important;padding:.7rem!important;border:1px solid #547b90;border-radius:10px;background:#f5f9fc!important;color:#173747!important;box-shadow:0 8px 32px #102e4540;overflow:hidden!important;font:16px/1.5 system-ui,sans-serif}
.juris-developer-floating [hidden]{display:none!important}
.juris-developer-floating>header{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;flex:none;cursor:grab;touch-action:none;padding-bottom:.5rem;border-bottom:1px solid #b6cbd7;user-select:none}
.juris-developer-floating>header h3{font-size:1.05rem;flex:1 1 10rem;margin:0}
.juris-developer-floating .juris-developer-function-title{flex:1 0 100%;font-size:1.05rem}
.juris-developer-floating .juris-developer-scroll{flex:1;min-height:0;max-height:none!important;overflow:auto!important;padding:.45rem .25rem .45rem 0;overscroll-behavior:contain}
.juris-developer-floating .juris-developer-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:.7rem 0}
.juris-developer-floating :is(button,input,select,textarea){font:inherit;box-sizing:border-box;max-width:100%}
.juris-developer-floating button{background:#0b3d5a!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #315f78;border-radius:5px;padding:.4rem .6rem;min-height:38px;line-height:1.3;cursor:pointer;white-space:normal}
.juris-developer-floating button:hover:not(:disabled){background:#134f70!important}
.juris-developer-floating button:disabled{background:#344b5b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;cursor:not-allowed}
.juris-developer-floating>header button{font-size:.85rem;min-height:34px;padding:.35rem .5rem}
.juris-developer-floating :is(p,label,span,strong,h3,h4,h5,summary){color:#173747;overflow-wrap:anywhere}
.juris-developer-floating p{margin:.4rem 0;white-space:pre-wrap}
.juris-developer-floating :is(input:not([type=checkbox]),select,textarea){background:#fff;color:#173747;border:1px solid #547b90;border-radius:4px;padding:.5rem;min-width:0}
.juris-developer-floating textarea{width:100%;resize:vertical;min-height:8rem}
.juris-developer-floating input[type=checkbox]{appearance:auto;width:20px;height:20px;accent-color:#0b3d5a;vertical-align:middle}
.juris-developer-floating :is(button,input,select,textarea,summary):focus-visible{outline:3px solid #ad7500;outline-offset:2px}
.juris-developer-floating details{border:1px solid #b6cbd7;border-radius:6px;padding:.5rem;margin:.6rem 0}
.juris-developer-floating summary{cursor:pointer;font-weight:600}
.juris-developer-floating .juris-developer-original{padding:.35rem 0}
.juris-developer-floating .juris-developer-original>p{max-height:8rem;overflow:auto}
.juris-developer-floating .juris-knowledge-controls{position:static!important;display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}
.juris-developer-floating .juris-knowledge-controls input{flex:1 1 12rem;width:auto}
.juris-developer-floating .juris-knowledge-status{flex:1 0 100%;border-left:3px solid #315f78;padding:.4rem}
.juris-developer-floating .juris-knowledge article{border-bottom:1px solid #b6cbd7;padding:.6rem 0}
.juris-developer-floating .juris-developer-resize{position:absolute;z-index:3;touch-action:none}
.juris-resize-n,.juris-resize-s{left:8px;right:8px;height:6px;cursor:ns-resize}.juris-resize-n{top:0}.juris-resize-s{bottom:0}
.juris-resize-e,.juris-resize-w{top:8px;bottom:8px;width:6px;cursor:ew-resize}.juris-resize-e{right:0}.juris-resize-w{left:0}
.juris-resize-ne,.juris-resize-nw,.juris-resize-se,.juris-resize-sw{width:12px;height:12px}.juris-resize-ne{right:0;top:0;cursor:nesw-resize}.juris-resize-nw{left:0;top:0;cursor:nwse-resize}.juris-resize-se{right:0;bottom:0;cursor:nwse-resize}.juris-resize-sw{left:0;bottom:0;cursor:nesw-resize}
@media(max-width:679px){.juris-developer-floating .juris-developer-resize{display:none}.juris-developer-floating .juris-developer-menu{grid-template-columns:minmax(0,1fr)}.juris-developer-floating>header{cursor:default;gap:.25rem}.juris-developer-floating>header button{font-size:.8rem}.juris-developer-floating{padding:.5rem!important}}

.juris-developer-panel.juris-developer-floating>header button.juris-developer-control{font:inherit!important;font-size:.85rem!important;min-height:34px!important;line-height:1.3!important;padding:.35rem .5rem!important}

.juris-developer-floating .juris-developer-discard{position:absolute;z-index:5;top:4.5rem;left:.75rem;right:.75rem;padding:1rem;border:2px solid #ad7500;border-radius:8px;background:#fff;box-shadow:0 4px 24px #102e4560}.juris-developer-discard button{margin:.3rem}

/* DEV-FLOAT-SUPERVISED-20261026-v4 */

/* JURIS-V6-20261026-r2 */
.juris-knowledge-find{position:sticky;top:0;z-index:4;background:#fff;padding:.6rem;border:2px solid #245f86}.juris-knowledge-find[hidden]{display:none!important}.juris-find-match{background:#ffe57d;color:#101820}.juris-find-match.is-active{background:#ef6c00;color:white;outline:2px solid #172b4d}.juris-knowledge-find input{max-width:100%}

/* JURIS-V7-20261026-r1 */
.juris-document-admin{min-height:100%;width:100%}.juris-document-admin article{border-bottom:1px solid #adc2cf;padding:.5rem}.juris-document-text{box-sizing:border-box;display:block;width:100%;min-height:18rem;max-height:65vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.55 ui-monospace,Consolas,monospace;padding:.7rem;color:#172b3a;background:#fff}.juris-document-text[hidden]{display:none!important}.juris-document-confirm{position:absolute;z-index:20;inset:4.5rem .65rem .65rem;padding:1rem;background:#fff;border:2px solid #245f86;border-radius:.5rem;overflow:auto;box-shadow:0 4px 24px #102e4560}.juris-document-confirm strong{display:block;margin-bottom:1rem}.juris-document-confirm pre{white-space:pre-wrap;max-height:55vh;overflow:auto}.juris-document-confirm button{margin:.4rem}

.juris-document-admin p{overflow-wrap:anywhere}.juris-document-admin button{max-width:100%;white-space:normal}

/* V8 documentary explorer */
.juris-document-admin article{padding:12px 0;border-bottom:1px solid #53647755;overflow-wrap:anywhere}
.juris-document-admin input[type=search]{width:100%;box-sizing:border-box;min-width:0}
.juris-document-admin mark{background:#ffe382;color:#17202b}
.juris-document-admin .document-search-tools{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.juris-document-admin button.document-title{font-weight:700;text-align:left;text-decoration:underline;white-space:normal}
.juris-document-admin details{margin:8px 0;font-size:.9em}
.juris-document-admin pre{white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}
@media(max-width:640px){.juris-document-admin .document-search-tools>*{max-width:100%}.juris-document-admin button{white-space:normal}}

/* V8.1 compact search: controls remain outside the scrolling results */
.juris-document-admin .document-search-header{display:grid;gap:5px;margin-bottom:8px}
.juris-document-admin .document-search-line{display:flex;gap:6px;align-items:center}
.juris-document-admin .document-search-line input{flex:1;min-width:0}
.juris-document-admin .document-search-help,.juris-document-admin .document-search-examples{margin:0;font-size:.85em;line-height:1.35}
.juris-document-admin .document-search-examples{opacity:.85}
.juris-document-admin .document-search-nav{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.juris-document-admin nav.document-search-nav{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.juris-document-admin .document-search-level{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:4px;text-align:center}
.juris-document-admin .document-search-nav button{min-width:40px;min-height:40px;padding:4px 10px}
.juris-document-admin .document-search-results{max-height:55vh;overflow:auto;overscroll-behavior:contain;scroll-padding:8px;border-top:1px solid #53647755}
.juris-document-admin .document-search-results article{scroll-margin:8px;padding:10px}
.juris-document-admin article.document-selected{outline:2px solid #bb9149;outline-offset:-2px;background:#bb914910}
.juris-document-admin .document-search-interpretation{margin:0;font-size:.9em;overflow-wrap:anywhere}
.juris-document-admin .document-search-hit{padding:8px;border-left:3px solid #bb9149}
.juris-document-admin .document-search-hit p{margin:3px 0}
.juris-document-admin .document-search-status{margin:0;font-size:.85em}
@media(max-width:640px){.juris-document-admin .document-search-line{align-items:stretch}.juris-document-admin .document-search-line button{padding:5px 9px}.juris-document-admin .document-search-results{max-height:48vh}.juris-document-admin .document-search-nav{gap:3px;font-size:.85em}.juris-document-admin .document-search-examples{font-size:.78em}.juris-document-admin nav.document-search-nav{grid-template-columns:1fr}}

/* V8.2 source-bound reader; controls consume layout, never overlay legal text. */
.juris-document-admin [hidden]{display:none!important}
.juris-norm-reader{display:grid;gap:7px;min-width:0}
.juris-norm-reader h4,.juris-norm-reader p{margin:3px 0}
.juris-norm-reader .reader-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.juris-norm-reader .reader-nav{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;text-align:center;gap:4px}
.juris-norm-reader button{min-height:40px;white-space:normal}
.juris-norm-reader .reader-navs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.juris-norm-reader .reader-scroll{max-height:58vh;overflow:auto;overscroll-behavior:contain;scroll-padding:10px;border-top:1px solid #53647755}
.juris-norm-reader .reader-unit{padding:12px 6px;border-bottom:1px solid #53647755}
.juris-norm-reader .reader-unit pre{font:inherit;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;margin:8px 0}
.juris-norm-reader .reader-active{outline:2px solid #bb9149;outline-offset:-2px}
.juris-norm-reader .reader-active-hit{background:#ffbd44;color:#17202b;outline:2px solid #947029}
.juris-norm-reader .reader-toc{max-height:25vh;overflow:auto}
.juris-norm-reader .reader-toc button{display:block;text-align:left;width:100%;margin:2px 0}
.juris-norm-reader .reader-notice{padding:7px;border-left:3px solid #bb9149;font-size:.9em}
.juris-norm-reader input[type=search]{flex:1;min-width:140px}
@media(max-width:640px){.juris-norm-reader .reader-navs{grid-template-columns:1fr}.juris-norm-reader .reader-scroll{max-height:48vh}.juris-norm-reader .reader-unit pre{font-size:1rem}.juris-norm-reader .reader-tools{gap:4px;font-size:.9em}}
