.cv-proportion-lab { margin: 2.5rem 0; padding: clamp(1rem,3vw,2rem); border: 2px solid var(--ink); border-radius: 17px; background: var(--white); color: var(--ink); min-width: 0; scroll-margin-top: 7rem; }
.article-body .cv-proportion-lab h2 { margin: .35rem 0 1rem; font-size: clamp(1.5rem,4vw,2rem); line-height: 1.25; }
.article-body .cv-proportion-lab h3 { margin: 0 0 .7rem; font-size: 1.25rem; line-height: 1.35; }
.article-body .cv-proportion-lab p { font-size: 1rem; line-height: 1.65; }
.article-body .cv-proportion-lab .cv-prop-kicker, .article-body .cv-proportion-lab .cv-prop-kind { margin: 0 0 .4rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cv-proportion-lab [hidden] { display: none !important; }
.cv-prop-controls { margin: 1.5rem 0; }
.cv-prop-controls fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.cv-prop-controls legend { font-size: 1.05rem; font-weight: 800; padding: 0 0 .8rem; }
.cv-prop-controls label { display: block; font-size: 1rem; font-weight: 700; }
.cv-prop-controls label strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.cv-prop-controls input { display: block; width: 100%; min-width: 0; min-height: 48px; margin: .25rem 0; padding: .5rem 0; accent-color: var(--ink); cursor: pointer; }
.cv-prop-presets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; }
.cv-prop-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin: .25rem 0 .9rem; }
.cv-prop-preview > div { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; border-left: 3px solid var(--ink); background: #f1f3e5; padding: .5rem .7rem; }
.cv-prop-preview span { display: block; font-size: .875rem; color: #42594e; }
.cv-prop-preview strong { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cv-prop-presets button { min-height: 48px; font-size: .9375rem; padding: .7rem .5rem; white-space: normal; }
.cv-proportion-lab :disabled { opacity: .55; cursor: not-allowed; }
.cv-proportion-lab :focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.article-body .cv-proportion-lab .cv-prop-help, .article-body .cv-proportion-lab .cv-prop-scale, .article-body .cv-proportion-lab .cv-prop-condition { color: #42594e; font-size: .9375rem; margin: .7rem 0; }
.cv-prop-change { background: #e8f0d3; padding: .9rem 1rem; border-left: 4px solid var(--ink); font-weight: 700; }
.cv-prop-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.cv-prop-card { min-width: 0; padding: 1.1rem; border: 1px solid #799489; border-radius: 10px; background: #fffef9; }
.article-body .cv-prop-card .cv-prop-condition { min-height: 5rem; margin-bottom: 1.1rem; }
.cv-prop-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .7rem; margin-top: 1rem; font-size: .95rem; }
.cv-prop-row strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cv-prop-track { height: 26px; border: 1px solid #587769; background: #edf0e5; position: relative; margin: .45rem 0 .8rem; }
.cv-prop-track::after { content: ''; position: absolute; top: -4px; bottom: -4px; left: 25%; border-left: 2px dashed #0b2d26; }
.cv-prop-track span { display: block; height: 100%; background: #b8d94f; }
.cv-prop-card-inverse .cv-prop-track span { background: repeating-linear-gradient(135deg,#ffc391 0,#ffc391 5px,#b86a2a 5px,#b86a2a 7px); }
.cv-prop-verdict { font-weight: 700; }
.cv-prop-equation { border-left: 3px solid var(--ink); padding: .65rem .75rem; background: #f1f3e5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cv-prop-invariant { border-top: 1px solid var(--line-strong); padding-top: .8rem; }
.cv-prop-reason, .cv-prop-question details { border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper); margin-top: 1.5rem; }
.cv-proportion-lab summary { min-height: 48px; padding: .85rem 1rem; font-size: 1rem; font-weight: 750; cursor: pointer; }
.cv-proportion-lab details p { margin: .4rem 1rem 1rem; }
.cv-prop-question { border-top: 1px solid var(--line-strong); margin-top: 1.5rem; padding-top: 1.5rem; }
.cv-prop-question details { margin-top: .75rem; }
.cv-prop-error { padding: .8rem; border: 1px solid #9b281d; color: #792116; background: #fff0eb; }
.cv-prop-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width:760px) { .cv-prop-cards { grid-template-columns: minmax(0,1fr); } .cv-prop-presets { grid-template-columns: repeat(2,minmax(0,1fr)); } .article-body .cv-prop-card .cv-prop-condition { min-height: 0; } }
@media(max-width:380px) { .cv-prop-preview strong { font-size: 1.05rem; } }
