/* Flat red/gold controls for the translucent TV settings panel. */
#tvSettings.tv-settings {
  --serif: "Noto Serif TC", "Cinzel", serif; --disp: "Cinzel", "Noto Serif TC", serif;
  --gold-1: #f4dfa4; --gold-2: #d9b568; --gold-3: #a67c35; --gold-4: #6b4c1d;
  --control-1: #411b1b; --control-2: #210b0b; --pit: #150707; --txt: #e8e4d8;
  --gold-line: linear-gradient(135deg,#6b4c1d,#e8c97a 25%,#8a6a2f 50%,#f4dfa4 75%,#6b4c1d);
  border: 1px solid transparent !important; border-image: var(--gold-line) 1 !important; border-radius: 0;
  background: rgba(122,11,11,.92) !important;
  box-shadow: 0 18px 50px #0008,inset 0 1px #f4dfa426 !important;
  color: var(--txt); font: 400 16px/1.5 var(--serif); backdrop-filter: none;
  color-scheme: dark;
}
#tvSettings, #tvSettings * { font-family: var(--serif); font-feature-settings: "zero" 0; }
#tvSettings::before, #tvSettings::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: #f4dfa4; border-style: solid; pointer-events: none; }
#tvSettings::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
#tvSettings::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
#tvSettings h2 { margin: 0; font: 700 28px/1.35 var(--serif); letter-spacing: .12em; background: none; color: #f4dfa4; filter: none; text-shadow: none; }
#tvSettings :is(.tv-settings-subhead,.tv-keys-subhead,.tv-symbol-preview-head) { color: var(--gold-2); font: 600 20px/1.4 var(--serif); letter-spacing: .14em; }
#tvSettings :is(p,.tv-drag-hint,.tv-audition-title,.tv-symbol-help) { color: #e4cbb6; font: 400 16px/1.6 var(--serif); margin: 0; }
#tvSettings .tv-drag-hint { font-size: 15px; }
#tvSettings label, #tvSettings .tv-settings-skin > span, #tvSettings td { font: 500 20px/1.45 var(--serif); }
#tvSettings .tv-limit-table th { color: var(--gold-2); font: 500 17px/1.5 var(--serif); letter-spacing: .1em; background: none; }
#tvSettings button {
  min-height: 44px; padding: 9px 14px; border: 1px solid #d9b56880; border-radius: 6px;
  background: #a04842; color: #fff0ce;
  font: 500 18px/1.4 var(--serif); letter-spacing: .04em;
  box-shadow: none;
  text-shadow: none; transition: border-color .15s,background .15s,color .15s;
}
#tvSettings button:hover { border-color: #c9a25a; color: var(--gold-1); background: #ae554c; box-shadow: none; }
#tvSettings button:active { background: #8d3935; box-shadow: none; }
#tvSettings :is(button[aria-selected=true],button[aria-pressed=true],button[type=submit]) { background: #d9b568 !important; color: #21190d !important; border-color: #f4dfa4; text-shadow: none; box-shadow: none; }
#tvSettings .tv-settings-tabs button { font-size: 18px; }
#tvSettings input:not([type=checkbox]):not([type=range]):not([type=color]), #tvSettings textarea {
  appearance: none; box-sizing: border-box; width: 64px; min-width: 0; height: 44px; min-height: 44px;
  padding: 7px 10px; border: 1px solid #f4dfa4b3; border-radius: 4px;
  background: #f7e8c9; color: #591313;
  box-shadow: none;
  font: 700 22px/1.3 var(--disp) !important; text-align: center; font-feature-settings: "zero" 0;
}
#tvSettings input[type=number]::-webkit-inner-spin-button, #tvSettings input[type=number]::-webkit-outer-spin-button { appearance: none; margin: 0; }
#tvSettings input:not([type=checkbox]):not([type=range]):focus { outline: none; border-color: #d9b568; box-shadow: 0 0 0 1px #d9b56855; }
#tvSettings input[readonly] { border-style: dashed !important; color: #6a3024; background: #e5d3ae !important; }
#tvSettings input:disabled, #tvSettings button:disabled { opacity: .4; cursor: not-allowed; }
#tvSettings .tv-key-bind-row input:not([type=range]) { width: 56px; }
#tvSettings .tv-key-bind-row input[maxlength="10"] { width: 170px; font-size: 18px !important; }
#tvSettings .tv-limit-table input[data-limit-key] { width: 124px; text-align: right; }
#tvSettings #tvColorHex { width: 128px; font-size: 16px !important; }
#tvSettings #tvCaptionText { width: 350px; text-align: left; font-family: var(--serif) !important; }
#tvSettings input[type=checkbox] { appearance: none; position: relative; flex: none; box-sizing: border-box; width: 50px; height: 28px; min-height: 28px; margin: 0; padding: 0; border: 1px solid #735827; border-radius: 20px; background: #3b0d0d; box-shadow: none; cursor: pointer; }
#tvSettings input[type=checkbox]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #f3e9dc; box-shadow: none; transition: left .16s; transform: none; }
#tvSettings input[type=checkbox]:checked { background: #a67c35; }
#tvSettings input[type=checkbox]:checked::before { left: 25px; }
#tvSettings input[type=range]:not(#tvColorHue) { appearance: none; height: 7px; min-height: 0; padding: 0; border: 1px solid #6b4c1d; border-radius: 8px; background: #3b0d0d; box-shadow: none; accent-color: #d9b568; }
#tvSettings input[type=range]:not(#tvColorHue)::-webkit-slider-thumb { appearance: none; width: 16px; height: 20px; border: 1px solid #c9a25a; border-radius: 5px; background: #d9b568; box-shadow: none; }
#tvSettings #tvColorTarget, #tvSettings #tvSkinToggle, #tvSettings .tv-select-button { background: #a04842 !important; color: #fff0ce !important; border-color: #806038 !important; text-align: left; }
#tvSettings .tv-select-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#tvSettings #tvColorOptions, #tvSettings #tvSkinMenu, #tvSettings .tv-select-menu { background: #8c3632 !important; border: 1px solid #a67c35; box-shadow: 0 10px 25px #0009; }
#tvSettings #tvColorOptions button, #tvSettings #tvSkinMenu li, #tvSettings .tv-select-menu button { background: transparent !important; color: #fff0ce !important; border: 0; border-left: 2px solid transparent; border-radius: 2px; box-shadow: none; font: 500 18px/1.5 var(--serif); padding: 7px 10px; }
#tvSettings #tvColorOptions button[aria-selected=true], #tvSettings #tvSkinMenu li[aria-selected=true], #tvSettings .tv-select-menu button[aria-selected=true] { background: #d9b56826 !important; color: #f4dfa4 !important; border-left-color: #d9b568; }
#tvSettings #tvColorOptions button:hover, #tvSettings #tvSkinMenu li:hover, #tvSettings .tv-select-menu button:hover { background: #d9b5681f !important; outline: 0; }
#tvSettings .tv-color-presets button { background: var(--swatch-color) !important; border: 1px solid #ffffff88 !important; box-shadow: none; }
#tvSettings .tv-color-spectrum { border: 1px solid #a67c35; box-shadow: none; }
#tvSettings button.tv-mini-audio-btn { background: #a04842 !important; border: 1px solid #806038 !important; border-radius: 8px !important; color: #fff0ce !important; font: 500 17px/1.4 var(--serif) !important; padding: 6px 10px !important; }
#tvSettings :focus-visible { outline: 2px solid #d9b568; outline-offset: 3px; }
#tvSettings .tv-settings-content { scrollbar-width: thin; scrollbar-color: #8a6a2f #210b0b; }
@media(prefers-reduced-motion:reduce) { #tvSettings * { transition: none !important; } }
#tvSettings .tv-key-bind-row input:not([type=range]) { width: 56px !important; }
#tvSettings .tv-key-bind-row input[maxlength="10"] { width: 170px !important; }
#tvSettings .tv-limit-table input[data-limit-key] { width: 124px !important; }
#tvSettings #tvColorHex { width: 128px !important; }
#tvSettings #tvCaptionText { width: 350px !important; }

#tvSettings button, #tvSettings button:hover, #tvSettings button:active { box-shadow: none !important; text-shadow: none !important; transform: none; }
#tvSettings label, #tvSettings .tv-settings-skin > span, #tvSettings td { color: #f5e4c7; }

#tvSettings .tv-limit-table input[data-limit-key] { font-size: 20px !important; }
#tvSettings .tv-settings-tabs button[aria-selected=false] { background: #a04842; border-color: #d9b56880; color: #fff0ce; }
#tvSettings .tv-settings-tabs button[aria-selected=false]:hover { background: #b85b50; border-color: #f4dfa4; }
#tvSettings #tvAutoCommitDelay { width: 84px !important; }
#tvSettings .tv-limit-table input[data-limit-key] { width: 116px !important; padding-left: 6px !important; padding-right: 6px !important; }


#tvSettings .tv-settings-tabs button[aria-selected=true] { font-weight: 700; border-color: #f4dfa4; outline: 1px solid #f4dfa455; outline-offset: -3px; }
#tvSettings .tv-size-fields label > span,
#tvSettings .tv-symbol-unit,
#tvSettings .tv-stats-font-control > span:last-child,
#tvSettings .tv-caption-control > span:last-child {
  font-size: 16px;
  font-weight: 400;
}

/* Style choices are outlined options, visually distinct from the navigation tabs. */
#tvSettings .tv-style-options button { background: #f4dfa414; border-color: #d9b56866; color: #f5e4c7; font-size: 18px; font-weight: 500; }
#tvSettings .tv-style-options button[aria-checked=true] { background: #f4dfa426; border-color: #f4dfa4; color: #f4dfa4; outline: 1px solid #f4dfa4; outline-offset: -2px; }
#tvSettings .tv-style-options button:hover { background: #f4dfa42e; }
