.masthead:has(#accent-picker) { z-index: 4; }
.masthead:has(#accent-picker[open]) { z-index: 7; }
#accent-picker { position: relative; color: var(--ink); font: 10px/1.5 "JetBrains Mono", "Courier New", monospace; letter-spacing: 0.04em; text-transform: none; }
#accent-picker summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; cursor: pointer; list-style: none; }
#accent-picker summary::-webkit-details-marker { display: none; }
.accent-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--rule); }
#accent-name { color: var(--muted); }
.accent-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 320px; max-width: calc(100vw - 40px); max-height: calc(100svh - 120px); overflow-y: auto; padding: 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22); }
.accent-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 11px; }
#accent-hex { color: var(--muted); font-size: 10px; }
.accent-families { display: grid; gap: 10px; }
.accent-families fieldset { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }
.accent-families legend { padding: 0; margin-bottom: 4px; color: var(--muted); font-size: 9px; }
#accent-picker button { display: flex; flex-direction: column; gap: 5px; min-height: 48px; padding: 6px 2px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--ink); font-size: 8px; font-weight: 400; letter-spacing: 0; text-transform: none; }
#accent-picker button[aria-pressed="true"] { border-color: var(--ink); background: var(--fine); }
.accent-swatch { width: 100%; height: 20px; border-radius: 3px; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.accent-custom { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--muted); }
#accent-custom { width: 48px; height: 36px; padding: 2px; border: 1px solid var(--rule); border-radius: 5px; background: transparent; cursor: pointer; }
#subscribe-btn { color: var(--accent-ink, var(--console-ink)); }
.paper-control { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--muted); }
#paper-strength { grid-column: 1 / -1; width: 100%; min-height: 28px; margin: 0; padding: 0; border: 0; background: transparent; accent-color: var(--accent); cursor: pointer; }
#paper-hint { grid-column: 1 / -1; margin: 0; font-size: 9px; }
@media (max-width: 639px) {
  .masthead:has(#accent-picker) { flex-wrap: wrap; }
  #accent-picker { font-size: 9px; }
  #accent-name { display: none; }
  .accent-panel { position: fixed; top: 100px; right: 20px; }
}
