.panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 18px 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.panel-head h2, .pool-head h2 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: .08em; text-transform: uppercase; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.lock-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--warn); }
.lock-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.panel.locked .sec, .pool.locked .pool-groups, .pool.locked #poolAll { opacity: .4; pointer-events: none; }
.gap-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--ink-2); }
.sec { display: grid; gap: 9px; }
.sec + .sec { border-top: 1px solid var(--line); padding-top: 15px; }
.h3 { font-size: 14px; font-weight: 600; color: var(--ink); }
.help { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row .help { flex: 1; }
.row output { font-family: var(--f-display); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.pair { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 12px; font-size: 13px; color: var(--ink-2); }
input[type="range"] { width: 100%; margin: 0; accent-color: var(--accent); }
.switch { display: flex; align-items: center; gap: 10px; padding-block: 1px; margin-block: -1px; font-size: 14px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 40px; height: 24px; margin: -1px; border: 1px solid transparent; border-radius: 999px; background: var(--line-2); background-clip: padding-box; cursor: pointer; transition: background .15s; }
.switch input:focus-visible { outline-offset: 1px; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .15s; }
.switch input:checked { background-color: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
.seg { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--ground); }
.seg label { position: relative; flex: 1 1 0; min-width: 0; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 4px; border-radius: 9px; text-align: center; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg input:checked + span { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg input:focus-visible + span { outline: 2px solid var(--accent-fg); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.chip .ico { width: 24px; height: 24px; }
.pool { display: grid; gap: 12px; padding: 18px 20px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.pool-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.pool-head #poolAll { margin-left: auto; }
.pool-groups { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.pg { display: grid; gap: 6px; align-content: start; }
.pg-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pg-tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.tile { position: relative; width: 64px; display: grid; justify-items: center; gap: 4px; padding: 7px 2px 6px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink-2); font-size: 11px; line-height: 1.2; cursor: pointer; }
.tile:hover { background: var(--raised); }
.tile .ico { width: 46px; height: 46px; display: block; }
.tile .cap { white-space: nowrap; }
.tile[aria-pressed="false"] .ico, .tile[aria-pressed="false"] .cap { opacity: .3; }
.tile[aria-pressed="false"] .cap { text-decoration: line-through; }
.tile.live { border-color: var(--accent-fg); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.tile.weak::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.tile:disabled { cursor: not-allowed; }
.panel-head > .btn { align-self: center; margin-block: -3px; margin-left: auto; }
[data-challenge] #panel > .sec:not(.sec-own), [data-challenge] #pool, [data-challenge] #rcStart, #startBtn[hidden] + #rcStart { display: none; }
.rc { display: grid; gap: 12px; }
.rc-about { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.rc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rc-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.rc-best { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--raised); font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.rc-best b { font-weight: 700; }
.rc-result { margin: 6px 0 0; font-weight: 700; color: var(--accent-fg); }
.rc-share-open { margin-top: 6px; }
.rc-share-card { width: min(100%, 420px); margin-top: 10px; text-align: start; }
.rc-chip { display: none; margin-left: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: var(--f-body); font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; vertical-align: 3px; white-space: nowrap; }
[data-challenge] .rc-chip { display: inline-block; }
