:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.55;color-scheme:light dark}body{max-width:1000px;margin:auto;padding:1rem}header,main,footer{margin-bottom:1.5rem}nav{display:flex;gap:.7rem;flex-wrap:wrap;align-items:center}.skip{position:absolute;left:-9999px}.skip:focus{left:1rem;top:1rem;background:#fff;color:#000;padding:.5rem;z-index:99}label{display:block;margin:.65rem 0 .2rem}input,select,button,textarea{font:inherit;padding:.45rem;max-width:100%}input:not([type=checkbox]):not([type=radio]),textarea{width:min(42rem,95%)}button,.button{cursor:pointer}.inline{display:inline}.actions{display:flex;gap:.5rem;flex-wrap:wrap}.bot-card,details{margin:.8rem 0;padding:.55rem;border:1px solid currentColor;border-radius:.35rem}summary{cursor:pointer}fieldset{margin:1rem 0;padding:1rem}pre{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid currentColor;padding:1rem;max-height:36rem;overflow:auto}.warning{border-left:.3rem solid currentColor;padding-left:.8rem}.success{font-weight:700}.error{font-weight:700}.muted,small{opacity:.8}dl{display:grid;grid-template-columns:max-content 1fr;gap:.25rem 1rem}dt{font-weight:700}footer{border-top:1px solid currentColor;padding-top:1rem;font-size:.9rem}.minor{font-size:.9rem;margin-left:1rem}
[hidden]{display:none!important}dialog{width:min(54rem,92vw);max-height:86vh;padding:1rem;border:2px solid currentColor;border-radius:.5rem}dialog::backdrop{background:rgba(0,0,0,.45)}.dialog-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.dialog-head h2{margin-top:0}.danger-zone{margin-top:1rem}.instance-warning{margin:.5rem 0}

.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Accessible server-rendered sub-navigation: works without JavaScript and is
   announced as normal navigation by screen readers. */
.subtabs{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0;padding:.5rem 0;border-bottom:1px solid currentColor}
.subtabs a{padding:.45rem .7rem;text-decoration:underline}
.subtabs a[aria-current="page"]{font-weight:700;text-decoration:none;border:2px solid currentColor;border-bottom-width:4px}

/* TeamTalk operations stay visible in document order for NVDA and keyboard use. */
.control-nav{padding:.65rem 0;margin:.6rem 0 1rem;border-block:1px solid currentColor}
.control-section{border:1px solid currentColor;border-radius:.65rem;padding:1rem;margin:1.4rem 0}
.control-section h3{margin-top:0}
.control-form{border-top:1px solid #8885;padding:1rem 0;margin:1rem 0}
.control-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:.5rem 1rem}
.control-form textarea{min-height:5rem}
.control-form button{margin-top:.8rem}
.control-section :focus-visible,.control-nav :focus-visible{outline:3px solid currentColor;outline-offset:3px}

/* High-priority actions are immediately after Restart in the expanded bot card. */
.dashboard-actions{align-items:center;margin:.7rem 0}
.dashboard-actions form{display:inline-flex;gap:.4rem;flex-wrap:wrap}
.dashboard-actions .button,.actions .button{display:inline-block;border:1px solid currentColor;border-radius:.35rem;padding:.45rem .75rem;text-decoration:none;color:inherit}
.primary-action{font-weight:700;border-width:2px!important}
.compact-media-form{display:flex;flex-wrap:wrap;align-items:end;gap:.45rem 1rem}
.compact-media-form label{flex-basis:100%;margin-bottom:0}
.compact-media-form input{flex:1 1 22rem;min-width:0}
.compact-media-form select{flex:0 1 14rem}
.compact-media-form button{flex:0 0 auto}
.queue-toggle{margin:.7rem 0 1.1rem;padding:.55rem .7rem;border:1px solid currentColor;border-radius:.4rem}
.inline-options{display:flex;flex-wrap:wrap;gap:.5rem 1.3rem;align-items:center}
.inline-options legend{font-weight:600}
.inline-options label,.manager-setting label,.queue-toggle label{display:inline-flex;align-items:center;gap:.4rem;margin:.2rem .6rem .2rem 0}
input[type=checkbox],input[type=radio]{width:auto;min-width:1.15rem;min-height:1.15rem}
.player-actions{margin:1rem 0}
.queue-item{padding:.65rem .25rem;border-bottom:1px solid #8886}
.queue-actions{margin:.35rem 0;align-items:center}
.queue-actions form{display:inline-block}
.control-section :focus-visible,.dashboard-actions :focus-visible{outline:3px solid currentColor;outline-offset:3px}
