.ws-theme {
 --gold: var(--tf-interface-accent, #e5b75b);
 --fire: var(--gold);
 --accent: var(--gold);
 --tf-luminous: color-mix(in srgb, var(--gold) 72%, #fff);
 --tf-tint: color-mix(in srgb, var(--gold) 18%, transparent);
 --tf-dark-tint: color-mix(in srgb, var(--gold) 12%, #131115);
 --tf-edge: color-mix(in srgb, var(--gold) 48%, #29232a);
 --panel: color-mix(in srgb, var(--gold) 5%, #111114);
 --line: color-mix(in srgb, var(--gold) 26%, #29252a);
 --border: var(--line);
 background: radial-gradient(ellipse at 0 96%, var(--tf-tint), transparent 58%), #09090b;
}
.ws-theme .ws-shell .topbar { background: linear-gradient(158deg, var(--tf-dark-tint), #101012 84%); border-color: var(--line); }
.ws-theme .ws-shell .sidebar { background: linear-gradient(165deg, var(--tf-dark-tint), #101012 52%); border-color: var(--line); }
.ws-theme .ws-shell .nav { scroll-behavior: auto; }
.ws-theme .ws-shell .nav button.active {
 background: var(--tf-tint);
 color: var(--tf-luminous);
 box-shadow: inset -3px 0 var(--gold), inset 0 0 19px var(--tf-tint);
}
.ws-theme .ws-shell .nav button.active::after { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.ws-theme .ws-shell .btn.primary { background: var(--gold); border-color: var(--tf-edge); color: var(--tf-interface-ink, #101012); }
.ws-theme .ws-shell :is(.btn, .nav button, .ws-sidebar-foot button):not(:disabled):hover {
 border-color: var(--tf-edge);
 box-shadow: 0 0 15px var(--tf-tint);
}
.ws-theme .ws-shell .nav button.active:hover { box-shadow: inset -3px 0 var(--gold), inset 0 0 23px var(--tf-tint); }
.ws-theme .ws-shell :is(button, a, input, select, summary):focus-visible { outline: 2px solid var(--tf-luminous); outline-offset: 2px; }
.ws-theme .ws-shell .content { animation: none; }
html[data-tf-interface-motion] .ws-shell :is(button:not(:disabled), a.btn, summary) {
 transition: scale 250ms cubic-bezier(.23,1.42,.35,1), box-shadow 230ms ease, background-color 230ms ease, border-color 230ms ease;
}
html[data-tf-interface-motion] .ws-shell :is(button:not(:disabled), a.btn, summary):active {
 scale: .965 .945;
 transition-duration: 100ms;
}
.tf-ripple-layer { position: fixed; inset: 0; z-index: 9000; pointer-events: none; overflow: hidden; }
.tf-interface-wave {
 position: absolute;
 top: var(--wave-y);
 left: var(--wave-x);
 width: var(--wave-size);
 height: var(--wave-size);
 color: var(--tf-interface-accent, #e5b75b);
}
.tf-interface-wave::before,.tf-interface-wave::after {
 content: '';
 position: absolute;
 inset: 0;
 border: 1px solid currentColor;
 border-radius: 50%;
 box-shadow: 0 0 10px currentColor, inset 0 0 7px currentColor;
 animation: tf-ring-wave 520ms cubic-bezier(.14,.62,.24,1) both;
}
.tf-interface-wave::after { animation-delay: 85ms; border-width: .75px; }
@keyframes tf-ring-wave {
 0% { transform: translate(-50%,-50%) scale(.08); opacity: .65; }
 48% { opacity: .35; }
 100% { transform: translate(-50%,-50%) scale(1.2); opacity: 0; }
}
.tf-theme-swatches,.tf-interface-options { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tf-interface-settings { margin-block-end: 16px; }
.tf-theme-swatches .btn { display: inline-flex; align-items: center; gap: 8px; }
.tf-theme-swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 8px var(--swatch); }
.ws-theme .tf-theme-swatches .btn[aria-pressed=true] { border-color: var(--tf-edge); background: var(--tf-tint); color: var(--tf-luminous); }
.tf-interface-options { margin-top: 14px; gap: 18px; }
.tf-interface-options label { display: inline-flex; align-items: center; gap: 8px; }
.tf-interface-options input[type=color] { width: 48px; height: 32px; padding: 3px; }
.tf-interface-options input[type=checkbox] { accent-color: var(--gold); }
@media(prefers-reduced-motion: reduce) { .tf-ripple-layer { display: none; } }
html[data-tf-interface-motion] .ws-shell .tf-page-arrival .ws-page-context {
 background: linear-gradient(105deg, transparent 30%, var(--tf-tint) 48%, transparent 66%) 100% 0 / 225% 100% no-repeat;
 animation: tf-route-wave 510ms cubic-bezier(.22,.66,.24,1) both;
}
@keyframes tf-route-wave {
 from { background-position: 100% 0; }
 to { background-position: 0 0; }
}
