/* Study V2: an annotated legal studio. Shared tokens are owned by the shell. */
.study,.study-surface,.case-surface,.visual-surface,.study-map-dialog{--study-ink:var(--ink);--study-paper:var(--paper);--study-rose:var(--socren-rose);--study-rule:var(--line);--study-panel:var(--panel);--study-panel-alt:var(--panel-2);--study-muted:var(--muted);color:var(--study-ink)}
.study-surface{width:min(100% - 48px,1280px);padding:clamp(30px,5vw,74px) 0 88px}.study-surface-head{position:relative;max-width:870px;margin:0 0 46px;padding:0 0 28px;border-bottom:1px solid var(--study-rule)}.study-surface-head:after{position:absolute;right:0;bottom:-5px;width:clamp(90px,18vw,250px);height:9px;background:var(--socren-rose);content:"";transform:skewX(-23deg)}.study-surface-head .eyebrow,.visual-overview .eyebrow,.case-evaluation .eyebrow{color:var(--study-muted);letter-spacing:.16em;font-size:.7rem;font-weight:800}.study-surface-head h1,.case-page-title,.visual-page-title,.case-evaluation-head h1,.case-evaluation-head h2{font-family:var(--font-display,Fraunces,Georgia,serif);font-weight:650;letter-spacing:-.06em;line-height:.94;color:var(--study-ink)}.study-surface-head h1{max-width:12ch;margin:.13em 0;font-size:clamp(3.2rem,7.5vw,6.4rem)}.study-surface-head p{max-width:58ch;color:var(--study-muted);font-size:1.06rem;line-height:1.65}
/* Hubs are brief boards: deliberate choices to the left, a live archive beside them. */
.case-hub,.visual-hub{display:grid;grid-template-columns:minmax(285px,.78fr) minmax(0,1.55fr);gap:0;border:1px solid var(--study-rule);background:linear-gradient(130deg,color-mix(in srgb,var(--socren-blue) 18%,transparent),transparent 44%),var(--study-panel)}.study-form{position:sticky;top:22px;align-self:start;display:grid;gap:17px;padding:clamp(22px,3vw,38px);border:0;border-right:1px solid var(--study-rule);border-radius:0;background:linear-gradient(160deg,var(--socren-blue),color-mix(in srgb,var(--socren-burgundy) 55%,var(--socren-blue)));box-shadow:none}.study-form:before{color:var(--socren-rose);font-size:.7rem;font-weight:800;letter-spacing:.16em;content:"BRIEF DE PREPARACIÓN"}.study-form h2{margin:-8px 0 4px;font-family:var(--font-display,Fraunces,Georgia,serif);font-size:clamp(2rem,3.4vw,3.2rem);letter-spacing:-.06em;line-height:.94;color:var(--study-ink)}.study-form label{display:grid;gap:6px;color:var(--study-ink);font-size:.78rem;font-weight:780;letter-spacing:.08em;text-transform:uppercase}.study-form input{width:100%;border:0;border-bottom:1px solid color-mix(in srgb,var(--study-ink) 38%,transparent);border-radius:0;background:transparent;color:var(--study-ink);font:inherit;font-size:1.08rem;padding:10px 2px}.study-form input::placeholder{color:var(--study-muted);opacity:1}.study-form input:focus-visible{outline:2px solid var(--socren-rose);outline-offset:5px}
.study-choice-field{min-inline-size:0;margin:0;padding:0;border:0}.study-choice-field legend{margin:0 0 8px;color:var(--study-ink);font-size:.72rem;font-weight:780;letter-spacing:.1em;text-transform:uppercase}.study-choice-rail{display:grid;gap:6px}.study-choice-option{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;width:100%;padding:10px 11px;text-align:left;border:1px solid color-mix(in srgb,var(--study-ink) 28%,transparent);border-radius:0;background:transparent;color:var(--study-ink);transition:transform .18s ease,background .18s ease,border-color .18s ease}.study-choice-option strong{font-family:var(--font-display,Fraunces,Georgia,serif);font-size:1.03rem;letter-spacing:-.02em}.study-choice-option span{align-self:center;color:var(--study-muted);font-size:.72rem}.study-choice-option[aria-pressed="true"]{border-color:var(--socren-rose);background:var(--socren-rose);color:var(--socren-blue);transform:translateX(7px)}.study-choice-option[aria-pressed="true"] span{color:var(--socren-blue)}.study-choice-option:hover,.study-choice-option:focus-visible{border-color:var(--socren-rose);outline:none}.study-choice-native{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}.study-form .primary{min-height:49px;margin-top:5px;border:1px solid var(--socren-rose);border-radius:0;background:var(--socren-burgundy);color:var(--study-ink);box-shadow:5px 5px 0 color-mix(in srgb,var(--socren-blue) 75%,transparent);font-weight:800}.study-form .primary:hover,.study-form .primary:focus-visible{background:var(--socren-rose);color:var(--socren-blue);outline-color:var(--study-ink)}.study-form .form-status{min-height:1.25em;margin:0;color:var(--study-ink);font-size:.86rem}
.study-history{position:relative;min-height:495px;padding:clamp(25px,4vw,52px);border:0;border-radius:0;background:linear-gradient(165deg,transparent 0 72%,color-mix(in srgb,var(--socren-rose) 9%,transparent) 72%);box-shadow:none}.study-history:before{display:block;margin-bottom:10px;color:var(--study-muted);font-size:.7rem;font-weight:800;letter-spacing:.15em;content:"ARCHIVO DE TRABAJO"}.study-history>h2{max-width:11ch;margin:0 0 26px;font-family:var(--font-display,Fraunces,Georgia,serif);font-size:clamp(2.1rem,4.5vw,4rem);letter-spacing:-.06em;line-height:.94;color:var(--study-ink)}.study-history .collections-controls{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 23px;padding:9px;border:1px solid var(--study-rule);background:var(--study-panel-alt)}.study-history .collections-controls input{flex:1 1 100%;min-width:min(100%,180px)}.study-history .collections-controls input,.study-history .collections-controls select{min-height:43px;border:1px solid var(--study-rule);border-radius:0;background:var(--study-panel);color:var(--study-ink);font:inherit;padding:7px 10px}.study-history .collections-controls select{flex:1 1 150px}.study-history .collections-view-toggle{display:flex;gap:2px;padding:2px;border:1px solid var(--study-rule);border-radius:0}.study-history .collections-view-button{min-height:34px;padding:4px 9px;border:0;border-radius:0;color:var(--study-muted);font-size:.76rem}.study-history .collections-view-button[aria-pressed="true"]{background:var(--socren-burgundy);color:var(--study-ink)}
.study-history .collections-results{display:grid;gap:0;border-top:1px solid var(--study-rule)}.study-history .collections-item{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;padding:19px 3px;text-align:left;border:0;border-bottom:1px solid var(--study-rule);border-radius:0;color:var(--study-ink);background:transparent;transition:padding .18s ease,background .18s ease}.study-history .collections-item:before{width:0;background:var(--socren-rose);content:"";transition:width .18s ease}.study-history .collections-item strong{font-family:var(--font-display,Fraunces,Georgia,serif);font-size:1.22rem;font-weight:620}.study-history .collections-item span{grid-column:1/-1;color:var(--study-muted);font-size:.89rem}.study-history .collections-item small{grid-column:2;grid-row:1;align-self:center;color:var(--study-muted)}.study-history .collections-item:hover,.study-history .collections-item:focus-visible,.study-history .collections-item[aria-pressed="true"]{padding-left:15px;background:color-mix(in srgb,var(--socren-rose) 10%,transparent);outline:none}.study-history .collections-item:hover:before,.study-history .collections-item:focus-visible:before,.study-history .collections-item[aria-pressed="true"]:before{width:6px}.study-history .collections-grid{grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:11px;border:0}.study-history .collections-grid .collections-item{min-height:160px;padding:18px;border:1px solid var(--study-rule);background:var(--study-panel)}.study-history .collections-detail{margin-top:21px;padding:18px 0 0;border-top:3px solid var(--socren-rose);color:var(--study-muted)}.study-history .collections-detail h3{font-family:var(--font-display,Fraunces,Georgia,serif);color:var(--study-ink)}.study-history .collections-open{border-radius:0;background:var(--socren-burgundy);color:var(--study-ink)}
/* The case is a dossier, then a paced sequence. */
.case-page-head,.visual-page-head{width:min(100% - 48px,1360px);margin:28px auto 25px;padding:0 0 16px;border-bottom:1px solid var(--study-rule);align-items:baseline}.case-page-head .study-back,.visual-page-head .study-back{color:var(--study-muted)}.case-page-title,.visual-page-title{font-size:clamp(2rem,4vw,3.8rem)}.case-surface .case-desk{width:min(100% - 48px,1160px);margin:0 auto;padding-bottom:62px}.case-scenario{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(210px,.6fr);gap:18px;margin:0 0 36px;padding:clamp(22px,4vw,48px);border:1px solid var(--study-rule);border-radius:0;background:linear-gradient(135deg,color-mix(in srgb,var(--socren-blue) 30%,transparent),transparent 62%),var(--study-panel);box-shadow:10px 10px 0 var(--socren-burgundy)}.case-scenario details:first-child{grid-row:span 3}.case-scenario summary{font-family:var(--font-display,Fraunces,Georgia,serif);font-size:clamp(1.65rem,3.1vw,2.7rem);color:var(--study-ink)}.case-scenario p{max-width:76ch;margin:18px 0 0;line-height:1.75}.case-scenario details:not(:first-child),.case-scenario .field{padding:11px;border-top:1px solid var(--study-rule)}.case-progress{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;align-content:start;margin:0;padding:11px 0;border-top:3px solid var(--socren-rose);color:var(--study-ink)}.case-progress-label{font-size:.7rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.case-progress-count{font-family:var(--font-display,Fraunces,Georgia,serif);font-size:1.15rem}.case-progress-meter{grid-column:1/-1;width:100%;height:7px;accent-color:var(--socren-rose)}.case-scenario .case-continue,.case-scenario .primary{border-radius:0}.case-question-card{max-width:860px;margin:0 auto 28px;padding:clamp(23px,4vw,45px);border:1px solid var(--study-rule);border-radius:0;background:var(--study-panel);box-shadow:11px 11px 0 var(--socren-rose)}.case-question-card:before{display:block;margin-bottom:14px;color:var(--socren-burgundy);font-size:.7rem;font-weight:800;letter-spacing:.16em;content:"CUESTIÓN PARA RESOLVER"}.case-question-card h2{font-family:var(--font-display,Fraunces,Georgia,serif);font-size:clamp(1.65rem,3vw,2.35rem);line-height:1.08;color:var(--study-ink)}.case-question-card textarea,.case-submitted-answer{border:0;border-left:3px solid var(--socren-rose);border-radius:0;background:var(--study-panel-alt);color:var(--study-ink);padding:15px;line-height:1.72}.case-question-card textarea:focus-visible{outline:2px solid var(--socren-rose);outline-offset:3px}.case-question-card .primary,.evaluation-actions .primary{border-radius:0;background:var(--socren-burgundy);color:var(--study-ink)}
.case-evaluation{max-width:1180px;margin:0 auto}.case-evaluation-head{position:relative;max-width:840px;padding:30px 0 36px}.case-evaluation-head:after{position:absolute;bottom:18px;left:0;width:min(420px,80%);height:4px;background:var(--socren-rose);content:""}.case-evaluation-head h2{margin:.15em 0;font-size:clamp(2.4rem,5vw,5rem)}.evaluation-actions{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 22px}.evaluation-layout{gap:clamp(18px,4vw,48px)}.evaluation-index{border-top:2px solid var(--socren-rose)}.evaluation-index-item{border-radius:0;border-bottom:1px solid var(--study-rule);color:var(--study-muted);text-align:left}.evaluation-index-item:hover,.evaluation-index-item:focus-visible{background:var(--study-panel-alt);color:var(--study-ink)}.evaluation-question{border-radius:0;border:1px solid var(--study-rule);background:var(--study-panel);box-shadow:8px 8px 0 color-mix(in srgb,var(--socren-burgundy) 65%,transparent)}.evaluation-question h2{font-family:var(--font-display,Fraunces,Georgia,serif);font-size:clamp(1.45rem,2.5vw,2.25rem);line-height:1.1}
/* The map remains a functional canvas; controls float over it without competing. */
#view:has(.is-map-reader){padding:0 0 56px;background:var(--study-paper)}.visual-surface:has(.is-map-reader){width:min(100% - 48px,1440px)}.visual-reader.is-map-reader{color:var(--study-ink)}.visual-overview{margin:0 0 17px;padding:17px 0;border-bottom:1px solid var(--study-rule)}.visual-overview summary{color:var(--study-muted)}.is-map-reader .study-map{border:1px solid var(--study-rule);border-radius:0;background:var(--socren-blue);box-shadow:13px 13px 0 var(--socren-burgundy)}.is-map-reader .study-map-controls,.study-map-dialog .study-map-controls{position:relative;z-index:3;gap:7px;padding:10px;border-color:var(--study-rule);border-radius:0;background:color-mix(in srgb,var(--socren-blue) 88%,var(--study-panel));color:var(--study-ink);box-shadow:0 8px 24px color-mix(in srgb,var(--socren-blue) 45%,transparent)}.study-map-controls .study-map-zoom{border-radius:0;color:var(--study-ink)}.study-map-controls .study-map-zoom:hover:not(:disabled){background:var(--socren-rose);color:var(--socren-blue)}.study-map-legend{color:var(--study-ink)}.study-mermaid-canvas,.is-map-reader .study-mermaid-canvas,.study-map-dialog .study-map-body>.study-mermaid-canvas{background:radial-gradient(circle,color-mix(in srgb,var(--socren-rose) 42%,transparent) 1px,transparent 1.5px) 0 0/24px 24px,linear-gradient(135deg,var(--socren-blue),color-mix(in srgb,var(--socren-burgundy) 54%,var(--socren-blue)))}.study-mermaid-canvas>svg .node rect{fill:var(--study-panel)!important;stroke:var(--socren-rose)!important;stroke-width:2px!important}.study-mermaid-canvas>svg text{fill:var(--study-ink)!important}.study-mermaid-canvas>svg .edgePaths path{stroke:var(--socren-rose)!important}.study-mermaid-canvas>svg .edgeLabels rect{fill:var(--socren-blue)!important}.study-mermaid-canvas>svg .edgeLabels text{fill:var(--study-ink)!important}.study-map-body>.study-map-detail,.study-map.is-article-open .study-map-body>.study-map-article{border-color:var(--socren-rose);border-radius:0;background:var(--study-panel);color:var(--study-ink);box-shadow:10px 12px 0 color-mix(in srgb,var(--socren-burgundy) 62%,transparent)}.study-map-article p,.study-map-detail p{line-height:1.7}.study-map-reference{border-color:var(--study-rule);background:var(--study-panel-alt);color:var(--study-ink);border-radius:0}.study-map-reference:hover,.study-map-reference:focus-visible{background:var(--socren-rose);color:var(--socren-blue);outline-color:var(--study-ink)}.study-map-reference-badge rect{fill:var(--socren-burgundy)!important;stroke:var(--socren-rose)!important}.study-mermaid-canvas .node .study-map-reference-badge text{fill:var(--socren-paper)!important}.study-map-reference-badge:hover rect,.study-map-reference-badge:focus-visible rect{fill:var(--socren-rose)!important;stroke:var(--socren-paper)!important}.study-mermaid-canvas .node .study-map-reference-badge:hover text,.study-mermaid-canvas .node .study-map-reference-badge:focus-visible text{fill:var(--socren-blue)!important}.is-map-reader .study-map-controls,.study-map-dialog .study-map-controls{flex-wrap:wrap;align-items:center}.is-map-reader .study-map-legend-group,.study-map-dialog .study-map-legend-group{flex:1 0 100%;width:100%;margin-right:0}.is-map-reader .study-map-zoom,.study-map-dialog .study-map-zoom{flex:0 0 auto}.study-map-export-status{order:3;flex:1 0 100%;margin:4px 0 0;color:var(--study-ink);font-size:.82rem}.study-map-export-link{order:4;flex:0 0 auto;color:var(--socren-rose);font-weight:700;text-decoration:underline;text-underline-offset:3px}.study-map-export-link:hover,.study-map-export-link:focus-visible{color:var(--socren-paper)}
@media (max-width:800px){.study-surface{width:min(100% - 28px,1280px);padding-top:36px}.study-surface-head h1{font-size:clamp(3rem,14vw,4.8rem)}.case-hub,.visual-hub{grid-template-columns:1fr}.study-form{position:static;border-right:0;border-bottom:1px solid var(--study-rule)}.study-choice-rail{grid-template-columns:repeat(3,minmax(0,1fr))}.study-choice-option{grid-template-columns:1fr}.study-choice-option span{display:none}.study-history{min-height:0;padding:30px 22px}.case-page-head,.visual-page-head,.case-surface .case-desk,.visual-surface:has(.is-map-reader){width:min(100% - 28px,1360px)}.case-scenario{grid-template-columns:1fr;box-shadow:6px 6px 0 var(--socren-burgundy)}.case-scenario details:first-child{grid-row:auto}.case-question-card{box-shadow:6px 6px 0 var(--socren-rose)}.is-map-reader .study-map{box-shadow:6px 6px 0 var(--socren-burgundy)}}@media (max-width:1150px){.evaluation-layout{grid-template-columns:minmax(0,1fr)}.evaluation-index{position:static;display:flex;grid-template-columns:none;max-width:100%;overflow-x:auto;padding:7px;scrollbar-gutter:stable}.evaluation-index-item{flex:0 0 auto;min-width:max-content;padding-inline:11px}}@media (prefers-reduced-motion:no-preference){.case-hub,.visual-hub{animation:study-board-in .42s ease both}@keyframes study-board-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}}
/* Desktop hubs: one compact brief board before the horizontal archive. */
.study-surface-head{max-width:none;margin-bottom:28px;padding-bottom:19px}.study-surface-head h1{max-width:none;font-size:clamp(3rem,4.25vw,4.1rem);letter-spacing:-.042em;line-height:1}.case-hub,.visual-hub{grid-template-columns:1fr}.study-form{position:relative;top:auto;grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;gap:14px 12px;padding:28px 32px;border-right:0;border-bottom:1px solid var(--study-rule)}.study-form:before{grid-column:1/-1;grid-row:1;content:"PREPARA TU PRÁCTICA"}.study-form h2{grid-column:1/3;grid-row:2;margin:0;font-size:clamp(2rem,3vw,2.75rem)}.study-form>.study-topic-field{grid-column:3/-1;grid-row:2;min-width:0}.study-form>.case-subject{grid-column:1/3;grid-row:3}.study-form>.case-difficulty{grid-column:3/5;grid-row:3}.study-form>.case-count{grid-column:5/-1;grid-row:3}.visual-hub .study-form>.visual-layout{grid-column:1/5;grid-row:3}.study-form .primary{grid-column:5/-1;grid-row:4;margin:0;min-height:45px}.study-form .form-status{grid-column:1/5;grid-row:4;min-height:0}.study-choice-rail{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.study-choice-option{grid-template-columns:1fr;min-height:64px;padding:8px}.study-choice-option span{font-size:.66rem}.study-choice-option[aria-pressed="true"]{transform:translateY(-4px)}.study-history{min-height:0;padding:27px 32px 35px}.study-history:before{display:inline-block;margin:0 16px 0 0}.study-history>h2{display:inline;margin:0;font-size:clamp(1.8rem,2.8vw,2.6rem);line-height:1;letter-spacing:-.04em}.study-history .collections-controls{margin-top:22px}.study-history .collections-controls input{flex:2 1 380px}.study-history .collections-controls select{flex:1 1 170px}
.visual-hub .study-form:before{content:"TRAZA UN TEMA"}
@media (max-width:800px){.study-surface-head h1{font-size:clamp(2.8rem,12vw,4rem)}.study-form{grid-template-columns:1fr;padding:24px 22px}.study-form h2,.study-form>.study-topic-field,.study-form>.case-subject,.study-form>.case-difficulty,.study-form>.case-count,.visual-hub .study-form>.visual-layout,.study-form .primary,.study-form .form-status{grid-column:1;grid-row:auto}.study-choice-rail{grid-template-columns:repeat(3,minmax(0,1fr))}.study-history{padding:28px 22px}.study-history>h2{display:block;margin-top:6px}}
/* Operational material: separated rounded panels make the studio legible at a glance. */
.case-hub,.visual-hub{gap:18px;border:0;background:transparent}.study-form{border:1px solid color-mix(in srgb,var(--study-ink) 24%,transparent);border-radius:22px;background:linear-gradient(160deg,var(--socren-blue),color-mix(in srgb,var(--socren-burgundy) 55%,var(--socren-blue)));box-shadow:0 16px 36px color-mix(in srgb,var(--socren-blue) 30%,transparent)}.study-form input{border:1px solid color-mix(in srgb,var(--study-ink) 30%,transparent);border-radius:12px;background:color-mix(in srgb,var(--study-paper) 7%,transparent);padding:11px 12px}.study-choice-option{position:relative;border-color:color-mix(in srgb,var(--study-ink) 34%,transparent);border-radius:12px;background:color-mix(in srgb,var(--study-paper) 5%,transparent)}.study-choice-option[aria-pressed="true"]{border-color:var(--socren-rose);box-shadow:inset 0 0 0 1px var(--socren-rose),0 7px 16px color-mix(in srgb,var(--socren-blue) 32%,transparent)}.study-choice-option[aria-pressed="true"]:after{position:absolute;top:-5px;right:-5px;display:grid;width:16px;height:16px;place-items:center;border-radius:50%;background:var(--socren-blue);color:var(--socren-paper);font-size:.68rem;font-weight:900;content:"✓"}.study-form .primary,.study-history .collections-open{border-radius:12px;box-shadow:0 7px 16px color-mix(in srgb,var(--socren-blue) 34%,transparent)}.study-history{border:1px solid var(--study-rule);border-radius:22px;background:linear-gradient(165deg,transparent 0 72%,color-mix(in srgb,var(--socren-rose) 9%,transparent) 72%),var(--study-panel);box-shadow:0 14px 32px color-mix(in srgb,var(--socren-blue) 12%,transparent)}.study-history .collections-controls{border-radius:14px}.study-history .collections-controls input,.study-history .collections-controls select,.study-history .collections-view-toggle{border-radius:10px}.study-history .collections-view-button{border-radius:8px}.study-history .collections-item{margin:5px 0;border:1px solid transparent;border-radius:12px;padding:15px 11px}.study-history .collections-item:hover,.study-history .collections-item:focus-visible,.study-history .collections-item[aria-pressed="true"]{padding-left:14px;border-color:color-mix(in srgb,var(--socren-rose) 58%,var(--study-rule));background:color-mix(in srgb,var(--socren-rose) 12%,var(--study-panel))}.study-history .collections-grid .collections-item{border-radius:16px}.case-scenario{border-radius:22px;box-shadow:0 16px 36px color-mix(in srgb,var(--socren-blue) 17%,transparent)}.case-scenario details:not(:first-child),.case-scenario .field{border:1px solid var(--study-rule);border-radius:12px}.case-scenario .case-continue,.case-scenario .primary,.case-question-card .primary,.evaluation-actions .primary{border-radius:12px}.case-question-card{border-radius:20px;box-shadow:0 16px 34px color-mix(in srgb,var(--socren-blue) 16%,transparent)}.case-question-card textarea,.case-submitted-answer{border:1px solid var(--study-rule);border-left:3px solid var(--socren-rose);border-radius:12px}.case-evaluation-head{border:1px solid var(--study-rule);border-radius:22px;padding:30px;box-shadow:0 14px 30px color-mix(in srgb,var(--socren-blue) 12%,transparent)}.evaluation-index{border:1px solid var(--study-rule);border-radius:16px;padding:7px}.evaluation-index-item{border-radius:10px}.evaluation-question{border-radius:20px;box-shadow:0 14px 32px color-mix(in srgb,var(--socren-blue) 13%,transparent)}.is-map-reader .study-map{border-color:color-mix(in srgb,var(--study-ink) 30%,transparent);box-shadow:0 18px 38px color-mix(in srgb,var(--socren-blue) 35%,transparent)}.study-map-body>.study-map-detail,.study-map.is-article-open .study-map-body>.study-map-article{border-radius:18px;box-shadow:0 14px 30px color-mix(in srgb,var(--socren-blue) 26%,transparent)}.study-map-reference{border-radius:10px}
.study-history{overflow:hidden;background:linear-gradient(142deg,transparent 0 61%,color-mix(in srgb,var(--socren-rose) 18%,transparent) 61% 64%,transparent 64% 70%,color-mix(in srgb,var(--socren-burgundy) 18%,transparent) 70% 73%,transparent 73%),linear-gradient(165deg,transparent 0 72%,color-mix(in srgb,var(--socren-rose) 10%,transparent) 72%),var(--study-panel)}.study-history:after{position:absolute;right:-14%;bottom:-34%;width:62%;height:68%;border:1px solid color-mix(in srgb,var(--socren-rose) 42%,transparent);border-radius:50%;content:"";pointer-events:none;transform:rotate(-21deg)}.study-history>*{position:relative;z-index:1}.study-history:before{position:relative;color:var(--socren-rose);text-shadow:0 1px 0 color-mix(in srgb,var(--socren-blue) 65%,transparent)}.study-history>h2{position:relative}.study-history>h2:after{display:inline-block;width:clamp(38px,7vw,92px);height:7px;margin:0 0 .25em 14px;background:var(--socren-rose);content:"";transform:skewX(-26deg)}
.is-map-reader .study-map{padding:clamp(12px,1.6vw,22px);border-radius:18px}.is-map-reader .study-map-controls,.study-map-dialog .study-map-controls{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--study-ink) 18%,transparent);border-radius:14px;background:color-mix(in srgb,var(--study-panel) 84%,transparent);box-shadow:0 10px 24px color-mix(in srgb,var(--socren-blue) 42%,transparent);backdrop-filter:blur(14px)}.study-map-zoom-cluster,.study-map-actions{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid color-mix(in srgb,var(--study-ink) 16%,transparent);border-radius:999px;background:color-mix(in srgb,var(--socren-blue) 48%,transparent)}.study-map-actions{margin-left:auto;gap:5px;padding:3px 5px}.study-map-zoom-cluster .study-map-zoom,.study-map-actions .study-map-zoom{min-width:32px;min-height:32px;padding:5px 8px;border:0;border-radius:999px;background:transparent}.study-map-actions .study-map-zoom{font-size:.78rem}.study-map-zoom-cluster .study-map-zoom:hover:not(:disabled),.study-map-actions .study-map-zoom:hover:not(:disabled){background:var(--socren-rose);color:var(--socren-blue)}.is-map-reader .study-map-legend-group,.study-map-dialog .study-map-legend-group{order:4;flex:1 0 100%;width:auto;margin:1px 3px 0;color:var(--study-muted);font-size:.72rem}.study-map-export-status{order:5}.study-map-export-link{order:6}@media (max-width:700px){.is-map-reader .study-map{padding:10px;border-radius:14px}.is-map-reader .study-map-controls,.study-map-dialog .study-map-controls{border-radius:12px}.study-map-zoom-cluster{order:1}.study-map-actions{order:2;margin-left:0}.study-map-zoom-cluster .study-map-zoom,.study-map-actions .study-map-zoom{min-height:34px}.study-map-export-status{flex-basis:100%}.study-map-export-link{flex-basis:auto}}
@media (max-width:480px){.study-choice-option{min-height:58px;padding:7px 4px;overflow-wrap:anywhere;font-family:var(--font-body,system-ui,sans-serif)}.study-choice-option strong{font-family:var(--font-body,system-ui,sans-serif);font-size:clamp(.72rem,3.2vw,.8rem);font-weight:780;letter-spacing:0;line-height:1.05}.study-choice-option span{display:block;font-size:.65rem;line-height:1.1}.study-choice-option[aria-pressed="true"]:after{display:none}.study-choice-option[aria-pressed="true"]{transform:translateY(-2px)}}
.case-progress-notice{grid-column:1/-1;margin:0;padding:9px 11px;border:1px solid var(--study-rule);border-radius:10px;background:var(--study-panel-alt);color:var(--study-muted);line-height:1.45}.case-progress-notice.error{border-color:var(--socren-rose);color:var(--study-ink)}
.is-map-reader .study-map-controls,.study-map-dialog .study-map-controls{flex-wrap:wrap}.study-map-zoom-cluster,.study-map-actions{flex-wrap:wrap;max-width:100%}@media (max-width:700px){.is-map-reader .study-map-controls,.study-map-dialog .study-map-controls{align-items:flex-start}.study-map-zoom-cluster,.study-map-actions{flex:0 1 auto}.study-map-export-status,.study-map-export-link{min-width:0;overflow-wrap:anywhere}}
.study-mermaid-canvas .node .study-map-reference-badge rect{fill:var(--socren-burgundy)!important;stroke:var(--socren-rose)!important}.study-mermaid-canvas .node .study-map-reference-badge:hover rect,.study-mermaid-canvas .node .study-map-reference-badge:focus-visible rect{fill:var(--socren-rose)!important;stroke:var(--socren-paper)!important}
html[data-motion="false"] .case-hub,html[data-motion="false"] .visual-hub{animation:none}
