/* Flick Academy — Your crosshair page (crosshair.html, crosshair.js): a big preview, the settings in one card beside it */
body { display: flex; flex-direction: column; min-height: 100vh; background: #fff; }   /* white, like Account settings (dark mode keeps its navy) */
body > main { flex: 1; }
.xhp { align-content: start; width: min(1720px, 100% - 48px); gap: 24px; }
.xhp h1 { margin: 0; font-size: 40px; font-weight: 800; }
.xh-lead { margin: 6px 0 0; font-size: 17px; color: #6b7486; }

.xh-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.xh-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #1c2d4a; }
.xh-view { display: block; width: 100%; height: 100%; }

/* the settings card */
.xh-panel { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 28px; width: auto; }
.xh-field { display: grid; gap: 10px; }
.xh-label { display: flex; justify-content: space-between; font: 700 16px var(--font-heading); }
/* a slider row: name, slider, value on one line */
.xh-slide { display: grid; grid-template-columns: 100px 1fr 48px; align-items: center; gap: 14px; }
.xh-slide output { font: 700 16px var(--font-heading); font-variant-numeric: tabular-nums; text-align: right; color: #6b7486; }
#xhSliders { display: grid; gap: 18px; }

/* sliders: a thin track filled orange up to a white knob */
.xh-panel input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: none; cursor: pointer; --fill: 50%; }
.xh-panel input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--logo-orange), var(--logo-orange)) 0 / var(--fill) 100% no-repeat, #e3e7ee; }
.xh-panel input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #e3e7ee; }
.xh-panel input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--logo-orange); }
.xh-panel input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--logo-orange); box-shadow: 0 1px 3px rgba(15, 27, 46, .2); }
.xh-panel input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--logo-orange); }
.xh-panel input[type="range"]:focus-visible { outline: 2px solid var(--logo-orange); outline-offset: 2px; border-radius: 4px; }

/* colors */
.xh-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.xh-colors button, .xh-pick { width: 36px; height: 36px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px #c9d0dc; cursor: pointer; }
.xh-colors [aria-pressed="true"] { box-shadow: 0 0 0 2px var(--logo-orange); }
.xh-pick { position: relative; overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.xh-pick input { position: absolute; inset: -6px; width: 50px; height: 50px; opacity: 0; cursor: pointer; }

/* on/off switches, one per line */
.xh-switches { display: grid; gap: 18px; padding-top: 24px; border-top: 1px solid #eef1f6; }
.xh-sw { display: flex; align-items: center; justify-content: space-between; font: 700 16px var(--font-heading); cursor: pointer; }
.xh-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xh-sw i { position: relative; width: 48px; height: 26px; border-radius: 13px; background: #c9d0dc; transition: background .2s; }
.xh-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 27, 46, .3); transition: transform .2s; }
.xh-sw input:checked + i { background: var(--logo-orange); }
.xh-sw input:checked + i::after { transform: translateX(22px); }
.xh-sw input:focus-visible + i { outline: 2px solid var(--logo-orange); outline-offset: 2px; }
.xh-ow[hidden] { display: none; }

/* save, reset */
.xh-acts { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid #eef1f6; }
.xh-acts .btn { height: 50px; padding: 0 36px; font-size: 16px; }
.xh-acts .btn:disabled { opacity: .45; cursor: default; transform: none; background: var(--logo-orange); }
.xh-reset { padding: 0; border: 0; background: none; cursor: pointer; font: 600 15px var(--font-heading); color: #6b7486; }
.xh-reset:hover, .xh-reset:focus-visible { color: var(--logo-orange); }
.xh-status { flex-basis: 100%; min-height: 1em; margin-top: -8px; font-size: 15px; color: #2e9e5b; }
.xh-status:empty { display: none; }

@media (max-width: 1000px) { .xh-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .xhp { width: calc(100% - 32px); } .xhp h1 { font-size: 30px; } .xh-panel { padding: 22px; } }

[data-theme="dark"] .xh-lead, [data-theme="dark"] .xh-slide output, [data-theme="dark"] .xh-reset { color: #a8b3c7; }
[data-theme="dark"] .xh-switches, [data-theme="dark"] .xh-acts { border-top-color: rgba(168, 179, 199, .16); }
[data-theme="dark"] .xh-panel input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(var(--logo-orange), var(--logo-orange)) 0 / var(--fill) 100% no-repeat, rgba(168, 179, 199, .25); }
[data-theme="dark"] .xh-panel input[type="range"]::-moz-range-track { background: rgba(168, 179, 199, .25); }
[data-theme="dark"] .xh-sw i { background: rgba(168, 179, 199, .35); }
[data-theme="dark"] .xh-colors button, [data-theme="dark"] .xh-pick { border-color: var(--card-bg, #16243d); box-shadow: 0 0 0 1px rgba(168, 179, 199, .3); }
[data-theme="dark"] .xh-colors [aria-pressed="true"] { box-shadow: 0 0 0 2px var(--logo-orange); }
[data-theme="dark"] .xh-status { color: #5fd08d; }
