/* Hand-written touches that the generated skins (assets/skin/) cannot know about. */

/* Light is plain white: no grey page gradient, no tinted bars. */
html[data-theme="light"]{--page-bg:#fff}
html[data-theme="light"] body.app-bg,html[data-theme="light"] .app-bg{background:#fff}
html[data-theme="light"] .topbar{background:#fff;border-bottom:1px solid #e3e3e3;-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="light"] body.th-body{background:#fff}
html[data-theme="light"] .th-wrap{background:#fff;border:1px solid #e6e6e6}
html[data-theme="light"] .cm-page{background:#fff}

html[data-theme="dark"] .th-wrap a:not([class]){color:#8fb8f2}
html[data-theme="dark"] .th-wrap a:not([class]):visited{color:#b9a6e8}

/* Preview and output monitors stay dark in light mode: a white screen is too bright next to the graphics. */
html[data-theme="light"] #ct .ct-screen{background:repeating-conic-gradient(#393939 0% 25%,#292929 0% 50%) 0 0/20px 20px}
html[data-theme="light"] #ct.is-key .ct-screen{background:#000}
html[data-theme="light"] .scm-screen{background:#0d0d0c repeating-conic-gradient(#171717 0 25%,#0d0d0c 0 50%) 0 0/20px 20px}
html[data-theme="light"] .lk-frame.is-checker{background:conic-gradient(#4a4a4a 25%,#333 0 50%,#4a4a4a 0 75%,#333 0) 0 0/40px 40px}

/* The light / dark button (a moon in light mode, a sun in dark mode): just the icon, no box. Specific enough to beat the generic button skin. */
html[data-theme] button.theme-toggle{display:inline-grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:none;box-shadow:none;color:inherit;cursor:pointer}
html[data-theme] button.theme-toggle:hover{background:rgba(127,127,127,.16)}
.theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .tt-sun{display:none}
html[data-theme="dark"] .theme-toggle .tt-sun{display:block}
html[data-theme="dark"] .theme-toggle .tt-moon{display:none}

/* Tournament owner picker (Setup tab): written dark, so light needs its own colours. */
html[data-theme="light"] .t-owner-field{background-color:#fff;border-color:#cfcfcf;color:#181818}
html[data-theme="light"] .t-owner-field:focus-within{border-color:#f47621}
html[data-theme="light"] .t-owner-field .t-owner-combo{color:#181818}
html[data-theme="light"] .t-owner-chip{background:rgba(244,118,33,.12);border-color:rgba(244,118,33,.5);color:#181818}
html[data-theme="light"] .t-owner-results{background:#fff;color:#181818;box-shadow:0 12px 30px rgba(0,0,0,.14)}
html[data-theme="light"] .t-owner-results p.hint{background:#fff;border-bottom-color:#e4e4e4}
html[data-theme="light"] .t-owner-results .tick{border-color:rgba(0,0,0,.35)}
html[data-theme="light"] .t-owner-results button{border:0;background:transparent;color:inherit}
html[data-theme="light"] .t-owner-results button:hover,html[data-theme="light"] .t-owner-results button.on{background:rgba(244,118,33,.12)}

/* Monitor bar (PGM / PVW / close): the generic light button skin must not box them or push the text off centre. */
html[data-theme] .scm-bar button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:22px;min-width:26px;padding:0 7px;border:0;line-height:1;background:transparent;box-shadow:none}
html[data-theme] .scm-bar button:hover{background:rgba(127,127,127,.18)}
html[data-theme] .scm-bar button[aria-pressed="true"]{background:rgba(244,118,33,.2)}
