/* Record pages and companion interfaces share the workspace color tokens. */
.record-page { min-width: 0; padding-top: 34px; padding-bottom: 40px; }
.record-head { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.record-heading { min-width: 0; }
.record-heading h1 { margin: 0; color: var(--text); font-family: var(--display, Jost), sans-serif; font-size: 42px; font-weight: 600; line-height: 1.16; letter-spacing: -.035em; overflow-wrap: anywhere; }
.record-cover { display: grid; place-items: center; width: 112px; height: 112px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.record-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.record-cover > span { color: var(--muted); font-family: var(--display, Jost), sans-serif; font-size: 38px; font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.record-intro { max-width: 80ch; margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; }
.record-actions:empty { display: none; }
.record-actions .button { min-height: 48px; max-width: 100%; }
.record-actions .text-link { min-height: 44px; }
.record-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: start; gap: 36px; margin-top: 32px; }
.record-layout-single { grid-template-columns: minmax(0, 1fr); }
.record-main { min-width: 0; }
.record-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.record-section-heading h2 { margin: 0; color: var(--text); font-family: var(--display, Jost), sans-serif; font-size: 26px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.record-count { color: var(--muted); font: 400 13px/1.5 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
.script-section { min-width: 0; scroll-margin-top: 16px; }
.record-nav { position: sticky; top: 100px; min-width: 0; padding-left: 20px; border-left: 1px solid var(--line); }
.record-nav details { min-width: 0; }
.record-nav summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.5; list-style: none; cursor: pointer; }
.record-nav summary::-webkit-details-marker { display: none; }
.record-nav summary > .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .15s ease; }
.record-nav details[open] > summary > .icon { transform: rotate(180deg); }
.record-nav ol { max-height: min(480px, 60vh); margin: 8px 0 0; padding: 0; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.record-nav li { margin: 0; padding: 0; }
.record-nav li + li { border-top: 1px solid var(--line); }
.record-nav li a { display: flex; align-items: center; min-height: 44px; padding: 10px 0; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.record-nav li a:hover { color: var(--text); }
.record-nav-download { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--action); font-size: 13px; font-weight: 500; line-height: 1.5; }
.record-nav-download .icon { width: 16px; height: 16px; }
.record-nav-download:hover { text-decoration: underline; text-underline-offset: 4px; }
.record-executor .record-head { grid-template-columns: 64px minmax(0, 1fr); gap: 20px; }
.record-logo { width: 64px; height: 64px; background: var(--surface); }
.record-logo img { object-fit: contain; padding: 8px; }
.record-logo > span { font-size: 30px; }
.record-head .executor-badges { margin: 16px 0 0; }
.record-profile { grid-template-columns: minmax(0, 1fr) 260px; }
.record-facts { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.record-facts h2 { margin: 0 0 18px; color: var(--text); font-family: var(--display, Jost), sans-serif; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }
.record-facts dl { margin: 0; }
.record-facts dl > div { padding: 13px 0; border-top: 1px solid var(--line); }
.record-facts dl > div:first-child { padding-top: 0; border: 0; }
.record-facts dl > div:last-child { padding-bottom: 0; }
.record-facts dt { margin: 0 0 5px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.record-facts dd { margin: 0; color: var(--text); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.record-profile-facts-only { grid-template-columns: minmax(0, 1fr); }
.record-profile-facts-only .record-facts { max-width: 680px; }
.record-profile-facts-only .record-facts dl > div { display: grid; grid-template-columns: minmax(110px, .6fr) minmax(0, 1fr); gap: 20px; }
.record-profile-facts-only .record-facts dt { margin: 0; font-size: 14px; }
.executor-data > section + section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.executor-data h2 { margin: 0 0 18px; color: var(--text); font-family: var(--display, Jost), sans-serif; font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.record-source-description p { max-width: 76ch; margin: 0 0 1em; color: var(--muted); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.record-source-description p:last-child { margin-bottom: 0; }
.executor-data .feature-list { display: block; margin: 0; padding: 0; list-style: none; }
.executor-data .feature-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.executor-data .feature-list .icon { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 6px; color: var(--positive); }
.executor-data ol { margin: 0; padding-left: 22px; }
.executor-data ol li { padding-left: 6px; margin-bottom: 14px; color: var(--muted); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.executor-data ol li::marker { color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.executor-data li:last-child { margin-bottom: 0; }
.record-related { margin-top: 48px; }
.record-related .section-heading h2 { font-family: var(--display, Jost), sans-serif; font-size: 28px; font-weight: 500; }

.script-card { min-width: 0; padding: 24px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); scroll-margin-top: 16px; }
.script-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.script-heading > div { min-width: 0; }
.script-heading h3 { margin: 0; color: var(--text); font-family: var(--display, Jost), sans-serif; font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.script-heading .eyebrow { margin: 0 0 9px; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.script-permalink { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; font: 500 18px/1 'IBM Plex Mono', monospace; text-decoration: none; }
.script-permalink:hover { color: var(--action); border-color: var(--action); background: var(--surface-2); }
.script-card > p { margin: 18px 0; color: var(--muted); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.script-flags, .executor-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.script-card .pill, .executor-badges .pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.script-card .pill .icon, .executor-badges .pill .icon { flex: none; width: 14px; height: 14px; }
.script-card .pill-violet { color: var(--action); border-color: var(--surface-2); background: var(--surface-2); }
.script-card .pill-lime, .executor-badges .pill-lime { color: var(--positive); border-color: var(--positive-bg); background: var(--positive-bg); }
.script-card .feature-list { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 20px 0; list-style: none; }
.script-card .feature-list li { display: flex; align-items: flex-start; gap: 9px; max-width: 100%; color: var(--muted); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.script-card .feature-list .icon { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 4px; color: var(--positive); }

.code-block { min-width: 0; max-width: 100%; margin-top: 22px; overflow: hidden; border: 1px solid #30363e; border-radius: 6px; background: var(--code, #0c0e11); color: var(--code-text, #e4e7eb); }
.code-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 8px 12px 8px 18px; border-bottom: 1px solid #30363e; color: var(--code-text, #e4e7eb); font: 500 12px/1.5 'IBM Plex Mono', monospace; }
.code-toolbar > span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.code-toolbar .muted { color: #a9b0bc; }
.code-dot { display: inline-block; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: #c6d0de; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 92px; max-width: 100%; margin-left: auto; padding: 10px 13px; border: 1px solid #5d6877; border-radius: 5px; background: transparent; color: var(--code-text, #e4e7eb); font: 600 13px/1.4 Inter, sans-serif; text-align: center; cursor: pointer; }
.copy-button:hover { background: #222932; border-color: #c6d0de; }
.copy-button .icon { flex: none; width: 16px; height: 16px; }
.code-block pre { min-width: 0; max-width: 100%; margin: 0; padding: 20px; overflow-x: auto; color: var(--code-text, #e4e7eb); background: var(--code, #0c0e11); font: 400 13px/1.75 'IBM Plex Mono', monospace; white-space: pre; overflow-wrap: normal; word-break: normal; tab-size: 4; scrollbar-color: #5d6877 #0c0e11; }
.code-block code { padding: 0; color: inherit; background: transparent; font: inherit; white-space: inherit; }
.code-block pre:focus-visible { outline: 2px solid #c6d0de; outline-offset: -3px; }
.copy-button:focus-visible { outline: 2px solid #f1f3f5; outline-offset: 3px; }
.script-related { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.script-related > span { margin-right: 4px; color: var(--muted); font-size: 14px; }
.script-related .tag { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; max-width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: var(--surface); font-size: 14px; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.script-related .tag:hover { border-color: var(--action); color: var(--action); }
.script-related .tag > .icon { flex: none; width: 14px; height: 14px; }
.script-card .script-date { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 18px 0 0; font-size: 13px; line-height: 1.6; }
.script-date .icon { width: 15px; height: 15px; }
.record-head .notice, .script-section > .notice, .script-card .notice, .reviews-section .notice, .download-card .notice { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px; margin: 20px 0; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--surface-2); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.record-head .notice > .icon, .script-section > .notice > .icon, .script-card .notice > .icon { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }

.record-head .record-download-notice { display: flex; align-items: center; gap: 9px; margin: 18px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 14px; }
.record-head .record-download-notice > .icon { margin: 0; color: var(--muted); }

.reviews-section, .reviews, .srbx-reviews, .review-section { max-width: 860px; margin: 48px 0; scroll-margin-top: 16px; }
.reviews-section > h2, .reviews > h2, .srbx-reviews > h2, .review-section > h2 { margin: 0 0 24px; font-family: var(--display, Jost), sans-serif; font-size: 28px; font-weight: 500; line-height: 1.25; letter-spacing: -.035em; }
.review-target { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.review-target h3 { margin: 0; color: var(--text); font-family: var(--display, Jost), sans-serif; font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.review-summary { margin: 10px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.review-card { padding: 22px 24px; margin: 14px 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.review-card header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; color: var(--text); font-size: 16px; line-height: 1.5; }
.review-card header strong { max-width: 100%; font-weight: 600; overflow-wrap: anywhere; }
.review-card header > span { color: var(--positive); font-size: 14px; font-weight: 600; }
.review-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.review-card small, .review-meta { display: block; margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.review-form, .srbx-review-form { max-width: 860px; margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); scroll-margin-top: 16px; }
.review-form > label, .srbx-review-form > label { display: grid; gap: 8px; margin: 20px 0 0; color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.6; }
.review-form > label:first-of-type, .srbx-review-form > label:first-of-type { margin-top: 0; }
.review-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), .review-form select, .review-form textarea,
.srbx-review-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), .srbx-review-form select, .srbx-review-form textarea { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--text); font: 400 16px/1.5 Inter, sans-serif; }
.review-form textarea, .srbx-review-form textarea { min-height: 152px; resize: vertical; }
.review-form input:focus-visible, .review-form select:focus-visible, .review-form textarea:focus-visible,
.srbx-review-form input:focus-visible, .srbx-review-form select:focus-visible, .srbx-review-form textarea:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.review-form fieldset, .srbx-review-form fieldset { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.review-form legend, .srbx-review-form legend { margin-bottom: 10px; padding: 0; color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.6; }
.review-form .rating-picker, .srbx-review-form .rating-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.review-form .rating-picker > label, .srbx-review-form .rating-picker > label { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 50px; margin: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.3; cursor: pointer; }
/* The native radio remains focusable; its whole star-and-number label is the target. */
.rating-picker input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); accent-color: var(--action); }
.rating-picker label:has(input:checked) { border-color: var(--action); background: var(--surface-2); }
.rating-picker label:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 3px; }
.rating-picker label > span[aria-hidden], .rating-stars { color: var(--accent); font-size: 16px; }
.rating-picker > .field-error { flex-basis: 100%; }
.review-form .checkbox-label, .srbx-review-form .checkbox-label { display: flex; align-items: flex-start; gap: 11px; min-height: 44px; font-size: 14px; font-weight: 400; line-height: 1.65; }
.review-form .checkbox-label input, .srbx-review-form .checkbox-label input { flex: 0 0 20px; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--action); }
.review-form .checkbox-label a, .srbx-review-form .checkbox-label a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.review-form button[type="submit"], .srbx-review-form button[type="submit"] { min-height: 48px; margin-top: 24px; }
.review-form [aria-invalid="true"], .srbx-review-form [aria-invalid="true"] { border-color: var(--action); }
.review-form .field-error, .srbx-review-form .field-error, .review-error, .form-error { display: block; margin-top: 5px; color: var(--action); font-size: 14px; font-weight: 500; line-height: 1.6; }
.reviews-section .notice.success, .review-success, .form-success { border-color: var(--positive-bg); color: var(--positive); background: var(--positive-bg); }
.srbx-honeypot { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }

.download-container { max-width: 800px; padding-top: 34px; padding-bottom: 64px; }
.download-card, .download-gate, .srbx-download { width: 100%; max-width: 720px; margin: 0; padding: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-align: left; }
.download-card .eyebrow { justify-content: flex-start; }
.download-card h1, .download-gate h1, .srbx-download h1 { margin: 14px 0 22px; color: var(--text); font-family: var(--display, Jost), sans-serif; font-size: clamp(32px, 4vw, 42px); font-weight: 600; line-height: 1.15; letter-spacing: -.04em; overflow-wrap: anywhere; }
.download-card h2 { margin: 0 0 12px; color: var(--text); font-family: var(--display, Jost), sans-serif; font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.download-card p, .download-gate p, .srbx-download p { margin: 14px 0; color: var(--muted); font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.download-card code, .download-gate code, .srbx-download code { padding: 3px 6px; border-radius: 3px; background: var(--surface-2); color: var(--text); font: 400 13px/1.6 'IBM Plex Mono', monospace; overflow-wrap: anywhere; }
.download-card .notice { display: block; margin: 20px 0; }
.download-card .notice strong { display: block; margin-top: 7px; color: var(--text); font-weight: 600; }
.download-timer { display: flex; align-items: baseline; justify-content: flex-start; flex-direction: row; gap: 14px; width: auto; height: auto; padding: 22px 0; margin: 26px 0 20px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.download-timer > [data-countdown], .download-countdown, .download-gate .countdown, .srbx-download .countdown { color: var(--action); font: 500 56px/1.1 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
.download-timer > span:last-child { color: var(--muted); font-size: 14px; line-height: 1.5; }
.download-timer.is-ready { border-color: var(--line); }
.download-timer.is-ready > [data-countdown] { color: var(--positive); }
.download-card form { margin-top: 24px; }
.download-card button, .download-gate button, .srbx-download button { min-height: 48px; max-width: 100%; }
.download-card button[disabled] { cursor: wait; opacity: .6; transform: none; }
.download-card > .text-link { margin-top: 14px; }

.not-found { max-width: 860px; padding-top: 56px; padding-bottom: 64px; text-align: left; }
.not-found .error-code { display: block; margin-bottom: 28px; color: var(--accent); font: 400 72px/1 'IBM Plex Mono', monospace; letter-spacing: -.065em; }
.not-found .error-code > span { display: none; }
.not-found h1 { max-width: 700px; margin: 12px 0 18px; color: var(--text); font-family: var(--display, Jost), sans-serif; font-size: clamp(34px, 4.2vw, 42px); font-weight: 500; line-height: 1.12; letter-spacing: -.04em; }
.not-found p:not(.eyebrow) { max-width: 620px; margin: 0 0 26px; color: var(--muted); font-size: 17px; line-height: 1.7; }

.cookie-banner, .srbx-cookie-banner { position: fixed; z-index: 70; right: 24px; bottom: 24px; left: auto; width: min(430px, calc(100vw - 48px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 24px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); box-shadow: none; transform: none; font-size: 14px; line-height: 1.6; }
.cookie-banner[hidden], .srbx-cookie-banner[hidden] { display: none !important; }
.cookie-banner h2, .srbx-cookie-banner h2 { margin: 0 0 10px; color: var(--text); font-family: var(--display, Jost), sans-serif; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.cookie-banner p, .srbx-cookie-banner p { margin: 0 0 12px; font-size: 14px; line-height: 1.65; }
.cookie-banner a, .srbx-cookie-banner a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .cookie-links, .srbx-cookie-banner .cookie-links { margin-bottom: 8px; font-size: 13px; line-height: 1.8; }
.cookie-banner strong, .srbx-cookie-banner strong { color: var(--text); }
.cookie-banner form, .srbx-cookie-banner form { display: block; margin: 0; }
.cookie-options { width: 100%; margin: 8px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cookie-options summary { display: list-item; min-height: 44px; padding: 11px 0; color: var(--text); font-size: 14px; font-weight: 500; line-height: 22px; list-style-position: inside; cursor: pointer; }
.cookie-options > p { padding-top: 8px; }
.cookie-options label { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; color: var(--text); font-size: 14px; line-height: 1.5; }
.cookie-options input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--action); font-size: 16px; }
.cookie-banner .cookie-options button, .srbx-cookie-banner .cookie-options button { width: 100%; min-height: 44px; margin: 12px 0 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 14px; }
.cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cookie-banner button, .srbx-cookie-banner button { min-height: 44px; padding: 11px 12px; border-radius: 5px; font-size: 14px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.cookie-actions .button-secondary { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.cookie-actions .button-primary { border: 1px solid var(--action); background: var(--action); color: var(--action-text); }
.cookie-actions .button-secondary:hover { border-color: var(--text); background: var(--surface-2); }
.cookie-actions .button-primary:hover { border-color: var(--action-hover); background: var(--action-hover); }
.cookie-options summary:focus-visible, .cookie-options input:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

@media (max-width: 1200px) {
  .record-layout { gap: 26px; }
  .record-profile { grid-template-columns: minmax(0, 1fr) 230px; }
  .record-profile-facts-only { grid-template-columns: minmax(0, 1fr); }
  .record-nav { padding-left: 16px; }
  .script-card { padding: 20px; }
}
@media (max-width: 1050px) {
  .record-layout, .record-profile { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .record-nav { position: static; grid-row: 1; padding: 0 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
  .record-nav summary { min-height: 48px; }
  .record-nav ol { max-height: 300px; margin-top: 0; }
  .record-nav-download { padding-bottom: 14px; }
  .record-facts { max-width: none; }
  .record-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .record-facts dl > div { padding: 13px 0; }
  .record-facts dl > div:first-child { padding: 13px 0; border-top: 1px solid var(--line); }
  .record-profile-facts-only .record-facts dl { display: block; }
}
@media (max-width: 680px) {
  .record-page { padding-top: 24px; padding-bottom: 24px; }
  .record-head { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; }
  .record-cover { width: 96px; height: 96px; }
  .record-heading h1 { font-size: 34px; line-height: 1.18; }
  .record-heading { display: contents; }
  .record-heading h1 { align-self: center; }
  .record-intro, .record-actions, .record-head .executor-badges, .record-head .record-download-notice { grid-column: 1 / -1; margin-top: 0; }
  .record-intro { font-size: 16px; }
  .record-actions { gap: 10px 20px; }
  .record-executor .record-head { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .record-logo { width: 64px; height: 64px; }
  .record-layout { margin-top: 24px; }
  .record-section-heading { margin-bottom: 16px; }
  .record-section-heading h2 { font-size: 24px; }
  .script-card { padding: 18px 16px; margin-bottom: 18px; }
  .script-heading { gap: 12px; }
  .script-heading h3 { font-size: 24px; }
  .script-flags, .executor-badges { gap: 7px; }
  .script-card .feature-list { gap: 10px 18px; }
  .code-toolbar { gap: 10px; padding: 8px 10px 8px 14px; }
  .code-toolbar .muted { display: none; }
  .code-block pre { padding: 17px 14px; font-size: 12px; line-height: 1.8; }
  .copy-button { min-height: 44px; padding: 10px 12px; }
  .script-related > span { flex-basis: 100%; margin-bottom: 2px; }
  .record-facts { padding: 18px; }
  .record-facts dl { column-gap: 18px; }
  .executor-data > section + section { margin-top: 26px; padding-top: 24px; }
  .record-related { margin-top: 36px; }
  .record-related .section-heading h2 { font-size: 26px; }
  .reviews-section, .reviews, .srbx-reviews, .review-section { margin: 36px 0; }
  .reviews-section > h2 { font-size: 26px; }
  .review-card { padding: 20px 18px; }
  .review-form, .srbx-review-form { padding: 22px 18px; }
  .review-form .rating-picker, .srbx-review-form .rating-picker { gap: 6px; }
  .review-form .rating-picker > label, .srbx-review-form .rating-picker > label { gap: 4px; min-width: 44px; padding: 9px 7px; }
  .review-form button[type="submit"], .srbx-review-form button[type="submit"] { width: 100%; }
  .download-container { padding-top: 24px; padding-bottom: 40px; }
  .download-card, .download-gate, .srbx-download { padding: 26px 20px; }
  .download-card h1, .download-gate h1, .srbx-download h1 { font-size: 32px; }
  .download-card h2 { font-size: 24px; }
  .download-timer > [data-countdown] { font-size: 48px; }
  .download-card button, .download-gate button, .srbx-download button { width: 100%; }
  .not-found { padding-top: 40px; padding-bottom: 48px; }
  .not-found .error-code { margin-bottom: 22px; font-size: 64px; }
  .not-found h1 { font-size: 34px; }
  .not-found p:not(.eyebrow) { font-size: 16px; }
  .cookie-banner, .srbx-cookie-banner { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; width: auto; max-height: 70vh; max-height: 70dvh; padding: 20px; overflow: auto; }
  .cookie-banner h2, .srbx-cookie-banner h2 { font-size: 20px; }
  .cookie-actions { gap: 8px; }
  .cookie-banner button, .srbx-cookie-banner button { min-height: 44px; font-size: 14px; }
}
@media (max-width: 375px) {
  .record-head { gap: 16px; }
  .record-heading h1 { font-size: 32px; }
  .record-facts dl { grid-template-columns: minmax(0, 1fr); }
  .cookie-banner, .srbx-cookie-banner { padding: 18px 16px; }
  .cookie-actions { grid-template-columns: minmax(0, 1fr); }
  .review-form .rating-picker > label, .srbx-review-form .rating-picker > label { padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .record-nav summary > .icon { transition: none; }
}
