/* Standalone resource opened from the skills menu. */
.featured-chromatic, .chromatic-dialog { --chromatic-muted:#aaa; }
.featured-chromatic { margin:44px 0 56px; border-top:1px solid #555; border-bottom:1px solid #555; scroll-margin-top:24px; }
.featured-chromatic .chromatic-hero { display:grid; grid-template-columns:1.1fr 1fr; gap:56px; padding:44px 0 36px; align-items:center; }
.featured-chromatic .resource-label { color:#aaa; margin-bottom:20px; font-size:20px; }
.featured-chromatic :is(h1,h2) { font:clamp(19px,2.1vw,27px)/1.8 'Press Start 2P',monospace; color:#fff; letter-spacing:-.03em; margin:0 0 22px; }
.featured-chromatic .hero-description { color:#fff; font-size:30px; line-height:1.15; margin-bottom:16px; }
.featured-chromatic .hero-detail { max-width:43ch; color:#aaa; font-size:23px; margin-bottom:24px; }
.featured-chromatic .chromatic-includes { max-width:40ch; font-size:18px; color:#aaa; margin-top:14px; }
.featured-chromatic .chromatic-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; list-style:none; padding:28px 0 32px; border-top:1px solid #333; }
.featured-chromatic .chromatic-steps li { display:flex; gap:12px; }
.featured-chromatic .chromatic-steps li>span { width:26px; height:26px; flex-shrink:0; border:1px solid #777; text-align:center; color:#fff; }
.featured-chromatic .chromatic-steps p { color:#fff; font-size:23px; }
.featured-chromatic .chromatic-steps small { font-size:19px; color:#aaa; }
:is(.featured-chromatic, .chromatic-dialog) button, .chromatic-dialog input { font:inherit; border-radius:0; }
:is(.featured-chromatic, .chromatic-dialog) [hidden] { display:none !important; }
:is(.featured-chromatic, .chromatic-dialog) :focus-visible { outline:2px solid #fff; outline-offset:5px; }
body.chromatic-gate-open { overflow:hidden; }
:is(.featured-chromatic, .chromatic-dialog) .chromatic-button { display:inline-flex; align-items:center; justify-content:center; gap:24px; min-height:52px; padding:12px 24px; border:1px solid #fff; background:#fff; color:#0a0a0a; font:24px/1.2 'VT323','Courier New',monospace; text-decoration:none; transition:background .15s,color .15s; }
:is(.featured-chromatic, .chromatic-dialog) .chromatic-button:hover { background:#0a0a0a; color:#fff; text-decoration:none; }
:is(.featured-chromatic, .chromatic-dialog) .chromatic-button:disabled { cursor:not-allowed; background:#242424; border-color:#555; color:#aaa; }
.featured-chromatic .availability { font-size:18px; margin:12px 0 10px; min-height:24px; color:var(--chromatic-muted); }
.featured-chromatic .chromatic-preview { border:1px solid #555; background:#101010; box-shadow:8px 8px 0 #1b1b1b; }
.featured-chromatic .preview-title { display:flex; align-items:center; padding:12px 18px; border-bottom:1px solid #444; font-size:20px; color:#fff; gap:10px; }
.featured-chromatic .status-light { width:7px; height:7px; background:#fff; flex-shrink:0; }
.featured-chromatic .example-label { margin-left:auto; color:var(--chromatic-muted); font-size:17px; }
.featured-chromatic .preview-window { padding:24px; }
.featured-chromatic .message-label { display:block; font-size:18px; color:var(--chromatic-muted); margin-bottom:6px; }
.featured-chromatic .preview-caption { padding:14px 24px; font-size:18px; color:var(--chromatic-muted); border-top:1px solid #333; }
.chromatic-dialog { margin:auto; padding:36px; width:min(560px,calc(100% - 32px)); max-height:calc(100dvh - 32px); overflow-y:auto; border:1px solid #888; background:#111; color:#ddd; font:22px/1.35 'VT323',monospace; }
.chromatic-dialog::backdrop { background:rgba(0,0,0,.85); }
.gate-close { position:absolute; right:12px; top:8px; width:44px; height:44px; background:transparent; color:#fff; border:0; font-size:36px !important; }
.gate-mark { font-size:30px; color:#fff; margin-bottom:22px; }
.chromatic-dialog h2 { font:18px/1.7 'Press Start 2P',monospace; color:#fff; margin-bottom:18px; }
#gate-description { color:var(--chromatic-muted); margin-bottom:26px; }
.chromatic-dialog label { display:grid; gap:6px; font-size:20px; color:#ddd; margin-bottom:16px; }
.gate-names { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.chromatic-dialog input { min-width:0; width:100%; min-height:48px; background:#1c1c1c; color:#fff; border:1px solid #666; padding:10px 12px; border-radius:0; font-size:22px; }
.gate-privacy { color:var(--chromatic-muted); font-size:18px; margin:0 0 22px; }
.gate-privacy a { text-decoration:underline; }
.chromatic-dialog .chromatic-button { width:100%; }
.gate-status { margin-top:18px; color:var(--chromatic-muted); }
.gate-status[data-tone=error] { color:#fff; }

@media(max-width:900px) { .featured-chromatic .chromatic-hero { gap:28px; } .featured-chromatic :is(h1,h2) { font-size:21px; } }
@media(max-width:700px) { .featured-chromatic { margin:32px 0 40px; } .featured-chromatic .chromatic-hero { grid-template-columns:1fr; padding:32px 0; gap:32px; } .featured-chromatic :is(h1,h2) { font-size:clamp(17px,4.5vw,25px); } .featured-chromatic .hero-description { font-size:28px; } .featured-chromatic .chromatic-steps { grid-template-columns:1fr; gap:20px; } .featured-chromatic .preview-window { padding:20px; } .chromatic-dialog { padding:30px 22px; } .chromatic-dialog .gate-names { grid-template-columns:1fr; gap:0; } .chromatic-dialog h2 { font-size:16px; } }
@media(prefers-reduced-motion:reduce) { .featured-chromatic *, .chromatic-dialog * { animation:none !important; transition:none !important; } }


.chromatic-resource-page { cursor:auto; }
.chromatic-resource-page button, .chromatic-resource-page a { cursor:pointer; }
.chromatic-resource-page .featured-chromatic { margin:0; border-top:0; }

/* Visual review example: toggles between the approved baseline and a PR snapshot. */
.featured-chromatic { --chromatic-diff:#ff4fd8; }
.featured-chromatic .snapshot-choice { border:0; padding:0; margin:0 0 20px; display:flex; gap:8px; flex-wrap:wrap; }
.featured-chromatic .snapshot-choice legend { margin-bottom:10px; color:var(--chromatic-muted); font-size:19px; }
.featured-chromatic .snapshot-choice button { font-size:20px; background:transparent; color:#bbb; border:1px solid #555; min-height:44px; padding:8px 12px; }
.featured-chromatic .snapshot-choice button[aria-pressed=true] { background:#fff; color:#0a0a0a; border-color:#fff; }
.featured-chromatic .snapshot { border:1px dashed #444; padding:16px 18px 22px; background:#0a0a0a; }
.featured-chromatic .snapshot-name { font-size:18px; color:var(--chromatic-muted); margin-bottom:14px; }
.featured-chromatic .mock-card { position:relative; display:flex; flex-direction:column; gap:10px; max-width:260px; margin:0 auto; padding:18px; border:1px solid #666; background:#161616; }
.featured-chromatic .mock-title { font-size:26px; line-height:1; color:#fff; margin-bottom:4px; }
.featured-chromatic .mock-row { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:20px; color:#ccc; padding:4px 0; border-top:1px solid #2a2a2a; }
.featured-chromatic .mock-toggle { position:relative; width:30px; height:16px; flex-shrink:0; border:1px solid #777; background:#222; }
.featured-chromatic .mock-toggle::after { content:''; position:absolute; top:2px; left:2px; width:10px; height:10px; background:#777; }
.featured-chromatic .mock-toggle.is-on { background:#fff; border-color:#fff; }
.featured-chromatic .mock-toggle.is-on::after { left:16px; background:#0a0a0a; }
.featured-chromatic .mock-cta { margin-top:6px; padding:10px 12px; background:#fff; color:#0a0a0a; text-align:center; font-size:20px; transition:background .2s,color .2s; }
.featured-chromatic .snapshot[data-state=change] .mock-cta { background:#ff613a; color:#0a0a0a; }
.featured-chromatic .diff-mark { position:absolute; left:13px; right:13px; bottom:13px; height:54px; border:2px solid var(--chromatic-diff); background:rgba(255,79,216,.14); opacity:0; transition:opacity .2s; pointer-events:none; }
.featured-chromatic .snapshot[data-state=change] .diff-mark { opacity:1; }
.featured-chromatic .review-status { border-top:1px dashed #444; margin-top:22px; padding-top:18px; min-height:110px; font-size:24px; color:#fff; }
