.case-wrap { max-width: 1440px; margin: 0 auto; padding: 28px 24px 64px; }
.case-wrap [hidden] { display: none !important; }
.case-breadcrumb, .case-help { color: #adbed1; font-size: .88rem; line-height: 1.65; }
.case-breadcrumb { margin-bottom: 26px; }
.case-wrap a { color: #73d8ff; }
.case-hero { max-width: 950px; padding: 12px 0 32px; }
.case-hero h1 { font-size: clamp(2rem, 4.2vw, 3.8rem); line-height: 1.1; letter-spacing: -.04em; margin: 14px 0 20px; }
.case-hero > p:not(.case-kicker) { color: #bccbe0; font-size: 1.1rem; line-height: 1.75; }
.case-kicker { font-size: .75rem; letter-spacing: .19em; color: #65dcf9; font-weight: 700; margin: 0 0 8px; }
.case-links, .case-toolbar, .case-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.case-toolbar .btn { width: auto; margin: 0; min-height: 44px; height: auto; line-height: 1.4; display: inline-flex; align-items: center; justify-content: center; }
.case-wrap .btn { color: #e5f4ff; white-space: normal; text-align: center; font-size: .85rem; }
.case-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 24px; align-items: start; margin-top: 20px; }
.case-layout > *, .case-fields > *, .case-metrics > * { min-width: 0; }
#case-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.case-card { background: rgba(12, 23, 40, .96); border: 1px solid #293f59; border-radius: 18px; padding: 24px; margin-bottom: 22px; }
.case-card h2 { font-size: 1.24rem; margin: 0 0 20px; color: #f0f6ff; }
.case-card h3 { font-size: 1rem; margin: 24px 0 12px; }
.case-card p { margin: 12px 0; line-height: 1.65; }
.case-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.case-wide { grid-column: 1 / -1; }
.case-wrap label { display: flex; flex-direction: column; gap: 8px; color: #cfdaeb; font-size: .84rem; line-height: 1.5; }
.case-wrap input, .case-wrap select { width: 100%; min-width: 0; background: #101e32; border: 1px solid #405571; color: #eef6ff; padding: 11px 10px; border-radius: 8px; font: inherit; min-height: 44px; }
.case-wrap select { text-overflow: ellipsis; }
.case-wrap input:invalid:not(:focus) { border-color: #a35c36; }
.case-wrap :focus-visible { outline: 3px solid #67d6ff; outline-offset: 3px; }
.case-wrap select:disabled { opacity: .7; }
.case-warning { border-left: 3px solid #ffb763; background: #382b23; color: #ffdcaf; padding: 12px 15px; border-radius: 5px; }
.case-pass { border-left: 3px solid #56d6a2; background: #183a32; color: #c1f4df; padding: 12px 15px; border-radius: 5px; }
.case-view-card { overflow: hidden; }
#case-original { margin-top: 18px; }
#case-original summary { cursor: pointer; color: #80ddff; padding: 8px 0; }
#case-illustration img { display: block; max-width: 100%; max-height: 620px; width: auto; height: auto; object-fit: contain; background: white; margin: 14px auto; border-radius: 6px; }
.case-view-header { display: flex; gap: 12px; justify-content: space-between; align-items: start; }
.case-chip { border: 1px solid #365570; padding: 7px 10px; border-radius: 7px; font-size: .82rem; color: #b9dbf0; white-space: nowrap; }
#case-view { width: 100%; min-height: 200px; aspect-ratio: 1.2; background: radial-gradient(ellipse at center, #1b3452 0%, #091423 75%); border-radius: 12px; touch-action: pan-y; cursor: grab; }
#case-view.case-dragging { cursor: grabbing; }
#case-view svg { width: 100%; height: 100%; display: block; user-select: none; }
#case-view text { fill: #e9f4ff; font-family: Inter, sans-serif; font-size: 13px; paint-order: stroke; stroke: #091423; stroke-width: 4px; stroke-linejoin: round; }
#case-view .case-dimension { fill: #99b7d5; font-size: 12px; }
.case-legend { font-size: .8rem; }
.case-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; background: currentColor; }
.case-cold { color: #56d9ff; }.case-hot { color: #ff9862; }.case-psu-key { color: #c6b7ff; }
.case-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.case-metrics > div { border: 1px solid #30455e; background: #101f34; border-radius: 12px; padding: 15px 10px; }
.case-metrics span { display: block; color: #b5c7dc; font-size: .74rem; }
.case-metrics strong { display: block; color: #70ddff; font-size: clamp(1.1rem, 1.7vw, 1.65rem); margin-top: 8px; overflow-wrap: anywhere; }
.case-fan-row { border-top: 1px solid #2c425b; padding: 12px 0; display: flex; flex-direction: column; gap: 5px; font-size: .9rem; }
.case-fan-row small { color: #b4c5d8; }
.case-alt { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid #2c425b; padding: 12px 0; }
.case-alt span { font-size: .83rem; line-height: 1.6; }
.case-alt button { flex-shrink: 0; }
.case-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; }
.case-wrap ul:not(.case-sources) { padding-left: 20px; line-height: 1.75; }
.case-wrap p, .case-wrap li, #case-model-info { overflow-wrap: anywhere; }
.case-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.case-flow-line { stroke-dasharray: 8 7; animation: case-flow 1.1s linear infinite; }
@keyframes case-flow { to { stroke-dashoffset: -30; } }
@media (prefers-reduced-motion: reduce) { .case-flow-line { animation: none; } }
@media (max-width: 1000px) { .case-layout { grid-template-columns: 1fr; }.case-output { min-width: 0; }#case-view { max-height: 630px; }.case-metrics strong { font-size: 1.55rem; } }
@media (max-width: 480px) { .case-wrap { padding: 20px 12px 40px; }.case-card { padding: 18px 14px; }.case-fields { grid-template-columns: 1fr; }.case-metrics { grid-template-columns: 1fr; }.case-metrics > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }.case-metrics strong { margin: 0; }.case-sources { grid-template-columns: 1fr; }.case-alt { align-items: start; }.case-toolbar .btn { padding: 10px; } }
@media (max-width: 480px) { #case-view { aspect-ratio: .95; }#case-view text { font-size: 22px; }#case-view .case-dimension { font-size: 20px; }.case-toolbar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }.case-toolbar .btn { width: 100%; max-width: none; } }
