/* Shared SH visual identity. Business markup and the legacy layout remain intact. */
.sh-auth-shell { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(ellipse at top, #86bd6912, transparent 65%); }
.sh-auth-header { display: flex; justify-content: center; padding: 32px 20px 0; }
.sh-auth-content { flex: 1; display: grid; align-content: center; width: 100%; padding: 24px 16px; }
.sh-auth-content > * { min-width: 0; width: 100%; }
.sh-site.sh-auth .sh-brand { margin: 0; text-decoration: none; }
.sh-site.sh-auth .form-page { justify-content: center; align-items: center; padding: 16px 0; }
.sh-site.sh-auth .form-card { width: 100%; margin: 0 auto; }
.sh-site.sh-auth .page-video-wrapper { padding: 0; background: none; }
.sh-site.sh-auth .sh-site-footer { text-align: center; justify-content: center; }
:root {
    color-scheme: dark;
    --bg: #101112;
    --panel: #222426;
    --panel2: #26282b;
    --line: #34373a;
    --text: #f2f3f1;
    --muted: #a0a4a6;
    --orange: #86bd69;
    --orange2: #6aa24f;
    --bg-primary: var(--bg);
    --bg-secondary: #181a1c;
    --bg-card: var(--panel);
    --bg-card-hover: var(--panel2);
    --bg-elevated: #2d3032;
    --border: var(--line);
    --border-strong: #3a3e41;
    --text-primary: var(--text);
    --text-secondary: #b4b8ba;
    --text-muted: var(--muted);
    --accent: var(--orange);
    --accent-light: #a3d18c;
    --accent-glow: #86bd6926;
    --accent-soft: #86bd6912;
    --accent-soft-strong: #86bd6926;
    --cyan: #a3d18c;
    --green: #86bd69;
    --success: #86bd69;
    --danger: #ff5f77;
    --radius: 10px;
    --radius-lg: 12px;
    --shadow: 0 10px 32px #0003;
    --shadow-soft: var(--shadow);
    --nav-surface: #181a1c;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f2f3f1;
    --panel: #fff;
    --panel2: #f7f8f6;
    --line: #d4d6d3;
    --text: #1d1f21;
    --muted: #5f6467;
    --bg-primary: var(--bg);
    --bg-secondary: #f7f8f6;
    --bg-card: var(--panel);
    --bg-card-hover: var(--panel2);
    --bg-elevated: #e4e6e3;
    --border: var(--line);
    --text-primary: var(--text);
    --text-secondary: #4f5457;
    --text-muted: var(--muted);
    --accent: var(--orange);
    --accent-light: #3d7328;
    --accent-glow: #86bd6926;
    --accent-soft: #86bd6912;
    --accent-soft-strong: #86bd6926;
    --green: #3d7328;
    --nav-surface: #fff;
}

body.sh-site, body.sh-admin {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.6 "Segoe UI", Arial, sans-serif;
}

body.sh-site::before, body.sh-site::after,
body.sh-admin::before, body.sh-admin::after { display: none; }

.sh-site *, .sh-admin * { box-sizing: border-box; }
.sh-site [hidden] { display: none !important; }
.sh-site a { text-decoration: none; }
.sh-site :focus-visible, .sh-admin :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sh-icon { display: block; width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; pointer-events: none; }
.sh-shell { display: flex; min-height: 100vh; width: 100%; }
.sh-sidebar {
    position: sticky; top: 0; z-index: 40;
    display: flex; flex-direction: column; flex: 0 0 245px;
    width: 245px; height: 100vh; overflow-y: auto;
    background: linear-gradient(150deg, #181a1c, #111 70%);
    border-right: 1px solid var(--line);
}
.sh-brand { display: flex; align-items: center; gap: 12px; padding: 28px 24px; color: #f2f3f1 !important; }
.sh-brand img { flex: 0 0 46px; }
.sh-brand strong { display: block; font-size: 16px; letter-spacing: 1.4px; white-space: nowrap; }
.sh-brand small { display: block; font-size: 7px; letter-spacing: 2px; color: #a7b4aa; }
.sh-nav { display: grid; gap: 5px; padding: 0 12px; }
.sh-nav-item {
    display: flex; align-items: center; gap: 14px; min-height: 48px;
    padding: 11px 15px; border: 1px solid transparent; border-radius: 9px;
    color: #a0a4a6 !important; font-size: 13px;
}
.sh-nav-item:hover, .sh-nav-item.active {
    color: var(--orange) !important;
    background: linear-gradient(90deg, #86bd6926, #86bd6908); border-color: #3a3e41;
}
.sh-nav-caption { padding: 17px 15px 5px; color: #777b7e; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; }
.sh-community { margin-top: 8px; border-top: 1px solid #34373a; padding-top: 10px; }
.sh-community summary { padding: 10px 15px; cursor: pointer; color: #a0a4a6; font-size: 12px; }
.sh-nav-empty { color: #a0a4a6; padding: 12px; }
.sh-sidebar-bottom { margin-top: auto; padding: 20px 16px 16px; }
.sh-help { padding: 17px; background: #26282b; border: 1px solid #34373a; border-radius: 10px; color: #f2f3f1; }
.sh-help p { color: #a0a4a6; font-size: 11px; margin: 7px 0 13px; }
.sh-outline { display: block; border: 1px solid var(--orange); border-radius: 6px; padding: 9px; color: #f2f3f1 !important; text-align: center; font-size: 12px; }
.sh-footer-brand { margin: 22px 7px 0; color: #777b7e; font-size: 12px; }
.sh-footer-brand small { display: block; font-size: 10px; margin-top: 4px; }
.sh-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.sh-topbar { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 26px; background: var(--bg); border-bottom: 1px solid var(--line); }
.sh-search { width: min(460px, 52%); display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; background: var(--bg-secondary); border: 1px solid var(--line); border-radius: 8px; }
.sh-search .sh-icon { width: 23px; height: 23px; }
.sh-search input { flex: 1; min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; }
.sh-search:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.sh-search input:focus-visible { outline: 0; }
.sh-search kbd { border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; padding: 2px 5px; font-size: 10px; color: var(--muted); }
.sh-top-actions { display: flex; align-items: center; gap: 12px; }
.sh-icon-button { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; padding: 6px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.sh-profile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 5px 12px 5px 6px; background: var(--panel); color: var(--text) !important; border: 1px solid var(--line); border-radius: 9px; }
.sh-avatar { width: 34px; height: 34px; }
.sh-profile strong { display: block; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.sh-profile small { display: block; color: var(--orange); font-size: 10px; }
.sh-banner { height: 255px; background: url('../sh-theme/hero-road.png') center 47%/cover no-repeat; }
.sh-page { flex: 1; min-width: 0; padding: 26px; }
.sh-page > .container, .sh-page .container { width: 100%; max-width: 1500px; padding-left: 0; padding-right: 0; }
.sh-site-footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 26px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.sh-mobile-menu, .sh-close, .sh-menu-backdrop { display: none; }
.sh-skip { position: fixed; top: -100px; left: 16px; z-index: 200; padding: 10px 16px; background: var(--orange); color: #fff; border-radius: 6px; }
.sh-skip:focus { top: 12px; }

/* Use the legacy classes as an adapter so forms, IDs and handlers survive. */
.sh-site .section { padding: 24px 0; }
.sh-site :is(.card, .home-feature, .dash-stat-card, .dash-welcome, .home-cta, .wiki-sidebar, .comment-card),
.sh-admin :is(.card, .login-card) {
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--panel); box-shadow: var(--shadow); backdrop-filter: none;
}
.sh-site .card { padding: 22px; }
.sh-site :is(.card-header, .form-title, .section-title) { color: var(--text); }
.sh-site .section-title { font-size: 24px; text-align: left; margin-bottom: 20px; }
.sh-site :is(.card-header, .form-title, h2, h3) { letter-spacing: normal; }
.sh-site .btn, .sh-admin .btn { min-height: 40px; padding: 9px 16px; border-radius: 7px; font: 600 13px/1.4 "Segoe UI", Arial, sans-serif; }
.sh-site .btn-primary, .sh-admin .btn-primary { color: #fff; background: var(--orange); border: 1px solid var(--orange); box-shadow: none; }
.sh-site .btn-primary:hover, .sh-admin .btn-primary:hover { color: #fff; background: var(--orange2); border-color: var(--orange2); transform: none; box-shadow: none; }
.sh-site :is(.btn-secondary, .btn-discord, .btn-admin) { background: var(--panel2); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.sh-site .btn-glow { box-shadow: none; }
.sh-site :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.sh-admin :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    max-width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 7px;
    background: var(--bg); color: var(--text); font-family: inherit;
}
.sh-site input[type="checkbox"], .sh-site input[type="radio"] { accent-color: var(--orange); }
.sh-site .sh-search input { min-height: 0; border: 0; border-radius: 0; background: none; }
.sh-site .form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px #86bd6920; }
.sh-site .form-card { max-width: 520px; }
.sh-site .form-page { min-height: 0; padding: 32px 0; align-items: flex-start; }
.sh-site .page-video-wrapper { min-height: 0; overflow: visible; }
.sh-site .page-video-bg, .sh-site .page-video-wrapper::before { display: none; }
.sh-site .fade-in { opacity: 1; transform: none; }
.sh-site :is(table, .table-wrap, .table-responsive), .sh-admin table { max-width: 100%; }
.sh-site :is(.table-wrap, .table-responsive, .ladder-table-wrap) { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.sh-site :is(table th, table td), .sh-admin :is(table th, table td) { border-color: var(--line); }
.sh-site table th, .sh-admin table th { background: var(--panel2); color: var(--muted); font-size: 11px; }
.sh-site table td, .sh-admin table td { background: var(--panel); color: var(--text); }
.sh-site :is(.dash-stat-card, .hero-stat-chip) { padding: 18px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; }
.sh-site .dash-stat-value { color: var(--text); font-size: 25px; }
.sh-site .dash-tab.active { background: var(--accent-soft-strong); color: var(--orange); border-color: var(--orange); }
.sh-site .hero { min-height: 0; padding: 8px 0 26px; background: none; color: var(--text); }
.sh-site .hero::before, .sh-site .hero::after, .sh-site .hero-particles { display: none; }
.sh-site .hero-content { width: 100%; max-width: 1500px; padding: 0; text-align: left; }
.sh-site .hero h1 { margin: 0 0 12px; max-width: none; font-size: clamp(27px, 3vw, 40px); line-height: 1.2; text-shadow: none; letter-spacing: -.02em; }
.sh-site .hero p { margin: 0 0 22px; max-width: 740px; color: var(--muted); text-align: left; text-shadow: none; font-size: 14px; }
.sh-site .hero-buttons { justify-content: flex-start; margin-top: 0; }
.sh-site .hero-stats-strip { justify-content: flex-start; gap: 14px; margin-top: 22px; }
.sh-site .hero-stat-chip { color: var(--text); backdrop-filter: none; }
.sh-site :is(.home-feature-icon, .dash-stat-icon, .dash-action-icon) { background: #86bd691a !important; color: var(--orange) !important; }
.sh-site .home-feature { padding: 22px; }
.sh-site .home-feature::before, .sh-site .home-cta::before { display: none; }
.sh-site .home-cta { padding: 24px; }
.sh-site .back-top { background: var(--panel2); color: var(--orange); border-color: var(--line); }

/* The existing administration keeps its layout and actions with the same palette. */
.sh-admin .layout { grid-template-columns: 245px minmax(0, 1fr); }
.sh-admin .sidebar { padding: 24px 14px; background: linear-gradient(150deg, #181a1c, #111 70%); border-color: var(--line); overflow-y: auto; }
.sh-admin .sidebar::before { display: none; }
.sh-admin .brand { padding: 8px; background: none; border: 0; box-shadow: none; border-radius: 0; gap: 10px; }
.sh-admin .brand strong { font-size: 15px; color: #f2f3f1; text-transform: none; }
.sh-admin .brand small { color: #a0a4a6; }
.sh-admin .brand-logo { width: 46px; height: 46px; background: none; border: 0; }
.sh-admin .brand-logo-image { width: 46px; height: 46px; object-fit: contain; }
.sh-admin .nav-link { border-radius: 8px; min-height: 45px; color: #a0a4a6; font-size: 13px; }
.sh-admin .nav-link.active, .sh-admin .nav-link:hover { color: var(--orange); border-color: #3a3e41; background: #86bd6912; transform: none; }
.sh-admin .content { min-width: 0; padding: 24px 26px; }
.sh-admin .topbar h1 { font-size: 26px; }
.sh-admin .login-card { width: min(100%, 520px); padding: 28px; }
.sh-admin .login-brand-logo { max-width: 80px; max-height: 80px; object-fit: contain; }

@media (max-width: 1100px) {
    .sh-search kbd { display: none; }
    .sh-site .home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .sh-sidebar { position: fixed; left: 0; top: 0; height: 100dvh; max-height: 100vh; transform: translateX(-100%); transition: transform .18s ease; }
    .sh-site.sh-menu-open .sh-sidebar { transform: translateX(0); }
    .sh-mobile-menu { display: inline-grid; }
    .sh-close { display: inline-grid; position: absolute; top: 8px; right: 7px; width: 28px; height: 28px; font-size: 22px; }
    .sh-menu-backdrop { display: block; position: fixed; inset: 0; z-index: 35; padding: 0; border: 0; background: #0009; cursor: default; }
    .sh-site.sh-menu-open { overflow: hidden; }
    .sh-topbar { padding: 12px 16px; gap: 10px; }
    .sh-page { padding: 20px 16px; }
    .sh-search { flex: 1; width: auto; }
    .sh-admin .layout { grid-template-columns: minmax(0, 1fr); }
    .sh-admin .sidebar { position: static; height: auto; }
    .sh-admin .nav-group { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
@media (max-width: 600px) {
    .sh-topbar { flex-wrap: wrap; }
    .sh-search { order: 3; flex-basis: 100%; }
    .sh-top-actions { margin-left: auto; gap: 8px; }
    .sh-profile strong { max-width: 135px; }
    .sh-discord { display: none; }
    .sh-banner { height: 170px; }
    .sh-site :is(.home-features, .home-grid, .dashboard-grid, .dash-stats, .dash-form-grid) { grid-template-columns: minmax(0, 1fr); }
    .sh-site .card { padding: 18px; }
    .sh-site .hero-stats-strip { display: grid; grid-template-columns: minmax(0, 1fr); }
    .sh-admin .content { padding: 18px 14px; }
    .sh-admin .topbar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .sh-site *, .sh-admin * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* ===== Kokel Groups - DISPATCH CENTER · Dark Premium (overrides) ===== */
:root {
    --bg: #101112; --panel: #222426; --panel2: #26282b; --line: #34373a;
    --text: #f2f3f1; --muted: #a0a4a6; --accent: #86bd69; --accent-light: #a3d18c;
    --accent-dark: #6aa24f; --accent-ink: #0f1a0c; --orange: #86bd69; --orange2: #6aa24f;
    --sidebar: #181a1c; --cut: 10px; --radius: 2px; --radius-lg: 2px;
    --display: "Bahnschrift SemiBold", "Bahnschrift", "Segoe UI Black", "Segoe UI", Arial, sans-serif;
    --accent-glow: #86bd6914; --accent-soft: #86bd6914; --accent-soft-strong: #86bd6924; --red: #e5665d; --cyan: #a3d18c; --cyan-glow: #86bd6914; --shadow-lg: 0 20px 50px #0007; --radius-sm: 2px; --field: #191b1d; --text-on-media: #f2f3f1; --text-on-media-muted: #a0a4a6; --surface-on-media: #222426; --surface-on-media-border: #34373a; --section-glow: none; --mobile-dropdown-bg: #222426;
    --border-strong: #3a3e41; --glow: 0 0 12px #86bd6912;
}
html { scrollbar-color: #3a3e41 #101112; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #101112; }
::-webkit-scrollbar-thumb { background: #3a3e41; border: 2px solid #101112; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #6aa24f; }
::selection { background: #86bd6955; }
body.sh-site, body.sh-admin { background: var(--bg); -webkit-font-smoothing: antialiased; }
.sh-auth-shell { background: radial-gradient(ellipse at top, #86bd690d, transparent 65%); }
.sh-sidebar { background: var(--sidebar); border-right: 1px solid var(--line); }
.sh-brand strong { font: 400 17px/1.1 var(--display); letter-spacing: 1.6px; text-transform: uppercase; }
.sh-brand small { margin-top: 3px; font-size: 8px; letter-spacing: 3px; color: var(--accent); }
.sh-nav { gap: 3px; }
.sh-nav-item {
    min-height: 44px; padding: 10px 14px; border-radius: 0; border: 1px solid transparent; border-left: 3px solid transparent;
    color: var(--muted) !important; letter-spacing: .3px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: color .18s, background .18s, border-color .18s;
}
.sh-nav-item:hover { color: var(--text) !important; background: #ffffff08; }
.sh-nav-item.active { color: var(--accent-light) !important; background: linear-gradient(90deg, #86bd6926, #86bd6908); border-left-color: var(--accent); }
.sh-nav-caption { color: #777b7e; letter-spacing: 2px; }
.sh-help { background: var(--panel); border-radius: 2px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.sh-help b { font: 400 13px var(--display); letter-spacing: .8px; text-transform: uppercase; }
.sh-footer-brand { font: 400 10px var(--display); letter-spacing: 1.2px; text-transform: uppercase; }
.sh-topbar { min-height: 72px; background: var(--bg); }
.sh-search { background: var(--panel); border-radius: 2px; transition: border-color .18s, box-shadow .18s; }
.sh-search:focus-within { outline: 0; border-color: var(--accent); box-shadow: var(--glow); }
.sh-icon-button { border-radius: 2px; background: transparent; transition: border-color .18s, background .18s; }
.sh-icon-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.sh-profile { border-radius: 2px; }
.sh-profile small { color: var(--accent); letter-spacing: 1.4px; text-transform: uppercase; }
.sh-banner { height: 168px; background: linear-gradient(180deg, #10111200 25%, #101112cc 82%, #101112), linear-gradient(90deg, #101112ee, #10111240 62%), url('../sh-theme/hero-road.png') center 47%/cover no-repeat; border-bottom: 1px solid var(--line); }
.sh-skip { color: var(--accent-ink); }
.sh-site :focus-visible, .sh-admin :focus-visible { outline-color: var(--accent); }
.sh-site :is(.card, .home-feature, .dash-stat-card, .dash-welcome, .home-cta, .wiki-sidebar, .comment-card),
.sh-admin :is(.card, .login-card) { border-radius: 2px; }
.sh-site .section-title, .sh-site h1, .sh-site h2.card-header, .sh-admin .topbar h1 { font-family: var(--display); font-weight: 400; letter-spacing: .8px; text-transform: uppercase; }

/* Angular buttons (clipped corners) */
.sh-site .btn, .sh-admin .btn {
    border-radius: 0; font: 400 12px/1.4 var(--display); letter-spacing: 1.1px; text-transform: uppercase; min-height: 40px; padding: 10px 18px;
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
    transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .12s;
}
.sh-site .btn-primary, .sh-admin .btn-primary { color: var(--accent-ink); background: var(--accent); border: 0; }
.sh-site .btn-primary:hover, .sh-admin .btn-primary:hover { color: var(--accent-ink); background: var(--accent-light); box-shadow: var(--glow); }
.sh-site .btn:active, .sh-admin .btn:active { transform: translateY(1px); }
.sh-site :is(.btn-secondary, .btn-discord, .btn-admin, .btn-outline), .sh-admin .btn-secondary { background: transparent; color: var(--text); border: 1px solid #4a4e51; }
.sh-site :is(.btn-secondary, .btn-discord, .btn-admin, .btn-outline):hover, .sh-admin .btn-secondary:hover { border-color: var(--accent); color: var(--accent-light); background: var(--accent-soft); }
.sh-outline { border-radius: 0; font: 400 12px var(--display); letter-spacing: 1px; text-transform: uppercase; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); transition: background .18s, color .18s; }
.sh-outline:hover { background: var(--accent-soft); color: var(--accent-light) !important; }
.sh-site :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.sh-admin :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) { border-radius: 2px; transition: border-color .18s, box-shadow .18s; }
.sh-site :is(input, select, textarea):focus, .sh-admin :is(input, select, textarea):focus { border-color: var(--accent); box-shadow: var(--glow); outline: 0; }
.sh-site .form-control:focus { box-shadow: var(--glow); }
.sh-site table th, .sh-admin table th { font: 400 10px var(--display); letter-spacing: 1.6px; text-transform: uppercase; }
.sh-site :is(.table-wrap, .table-responsive, .ladder-table-wrap) { border-radius: 2px; }
.sh-site .back-top { border-radius: 2px; }
.sh-admin .sidebar { background: var(--sidebar); }
.sh-admin .nav-link { border-radius: 0; }
.sh-admin .nav-link.active, .sh-admin .nav-link:hover { color: var(--accent-light); border-color: var(--border-strong); background: var(--accent-soft); }
:root[data-theme="light"] {
    --bg: #f2f3f1; --panel: #fff; --panel2: #f7f8f6; --line: #d4d6d3; --text: #1d1f21; --muted: #5f6467;
    --accent: #4f8a36; --accent-light: #3d7328; --accent-ink: #fff; --sidebar: #e4e6e3; --orange: #4f8a36;
    --accent-soft: #4f8a3618; --accent-soft-strong: #4f8a3626;
}
:root[data-theme="light"] .sh-sidebar, :root[data-theme="light"] .sh-admin .sidebar { background: var(--sidebar); }
:root[data-theme="light"] .sh-banner { background: linear-gradient(180deg, #f2f3f100 25%, #f2f3f1cc 82%, #f2f3f1), url('../sh-theme/hero-road.png') center 47%/cover no-repeat; }

/* ===== Kokel Groups · legacy page components (news, vote, shop, wiki, ladder, download, admin) ===== */
.sh-site :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.sh-admin :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) { background: var(--field); }
.sh-site :is(.tab, .dash-tab, .reaction-btn, .dash-action-btn, .nav-user-btn, .nav-discord-btn, .tebex-buy-btn, .btn-shop-buy, .shop-balance-vote-btn, .comment-delete-btn, .pagination a, .pagination button, .pagination span) {
    border-radius: 0; font-family: var(--display); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; font-size: 12px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: background .18s, color .18s, border-color .18s;
}
.sh-site :is(.tab, .dash-tab, .reaction-btn, .dash-action-btn, .pagination a, .pagination button):hover { border-color: var(--accent); color: var(--accent-light); background: var(--accent-soft); }
.sh-site :is(.tab.active, .dash-tab.active, .pagination .active, .pagination a.active, .pagination span.active) { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sh-site :is(.tebex-buy-btn, .btn-shop-buy, .shop-balance-vote-btn) { background: var(--accent); color: var(--accent-ink); border: 0; }
.sh-site :is(.tebex-buy-btn, .btn-shop-buy, .shop-balance-vote-btn):hover { background: var(--accent-light); }
.sh-site :is(.status-badge, .vote-badge-pill, .vote-reward-badge, .dash-tab-badge, .dl-hero-badge) { border-radius: 2px; letter-spacing: .8px; text-transform: uppercase; font-size: 10px; background: var(--accent-soft); color: var(--accent-light); border: 1px solid #86bd6940; }
.sh-site :is(.igshop-toast, .shop-toast, .download-toast) { border-radius: 2px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-left: 3px solid var(--accent); box-shadow: var(--shadow-lg); }
.sh-site :is(.igshop-toast--err, .shop-toast--error) { border-left-color: var(--red); }
.sh-site :is(.table-wrapper, .tabs, .dash-tabs) { border-radius: 2px; border-color: var(--line); }
.sh-site :is(.news-card, .article-card, .vote-card, .shop-card, .vip-card, .wiki-card, .comment, .reaction-bar, .ladder-row, .stat-card) { border-radius: 2px; background: var(--panel); border-color: var(--line); box-shadow: none; }
.sh-site :is(h1, h2, h3):not(.sh-brand *) { font-family: var(--display); font-weight: 400; letter-spacing: .6px; }
.sh-site a:not(.btn):not(.sh-nav-item):not(.sh-outline):not(.sh-brand):not(.sh-profile):not([class*="tab"]):hover { color: var(--accent-light); }
.sh-site hr { border-color: var(--line); }
.sh-site :is(.container, .section) { max-width: 1500px; }
.sh-site :is(.dash-action-icon, .home-feature-icon, .dash-stat-icon) { border-radius: 2px; }
.sh-admin .card, .sh-admin .panel, .sh-admin table { border-radius: 2px; }
.sh-admin :is(.badge, .pill, .status) { border-radius: 2px; letter-spacing: .6px; text-transform: uppercase; font-size: 10px; }
.sh-admin h1, .sh-admin h2, .sh-admin h3 { font-family: var(--display); font-weight: 400; letter-spacing: .6px; }
.sh-site .dc-pagination .btn[rel="prev"]::before, .sh-site .dc-pagination .btn[rel="next"]::after { content: none; }
@media (max-width: 980px) { .sh-site .btn { min-height: 44px; } .sh-site :is(.dc-table-wrap, .table-wrap) { -webkit-overflow-scrolling: touch; } }
@media (max-width: 600px) { .sh-site .sh-page { padding: 16px 12px; } .sh-site .dc-filters { flex-direction: column; } .sh-site .dc-filters > * { width: 100%; } .sh-site .dc-form button, .sh-site .dc-page-heading .btn { width: 100%; } }

/* ===== Kokel Groups · connexion et authentification ===== */
.sh-site.sh-auth .sh-auth-header { padding-top: 40px; }
.sh-site.sh-auth .sh-brand strong { font-size: 20px; }
.sh-site.sh-auth .form-page { padding: 24px 0 32px; }
.sh-site .kk-login, .sh-site.sh-auth .form-card { max-width: 440px; width: 100%; padding: 30px 30px 26px; border-top: 3px solid var(--accent); background: var(--panel); border-radius: 2px; box-shadow: var(--shadow-lg); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
.sh-site .kk-eyebrow { margin: 0 0 6px; color: var(--accent); font: 400 11px var(--display); letter-spacing: 3px; text-transform: uppercase; }
.sh-site.sh-auth .form-title { margin: 0 0 6px; font: 400 30px/1.1 var(--display); letter-spacing: .8px; text-transform: uppercase; text-align: left; }
.sh-site.sh-auth .form-subtitle { margin: 0 0 20px; color: var(--muted); text-align: left; font-size: 13px; }
.sh-site.sh-auth .form-group { margin-bottom: 16px; }
.sh-site.sh-auth label { display: block; margin-bottom: 6px; color: var(--muted); font: 400 11px var(--display); letter-spacing: 1.4px; text-transform: uppercase; }
.sh-site .kk-field { position: relative; display: flex; align-items: center; }
.sh-site .kk-field > svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: square; pointer-events: none; transition: stroke .18s; }
.sh-site .kk-field:focus-within > svg { stroke: var(--accent); }
.sh-site .kk-field .form-control { width: 100%; min-height: 46px; padding: 11px 44px 11px 44px; font-size: 14px; background: var(--field); border: 1px solid var(--line); border-radius: 2px; color: var(--text); }
.sh-site .kk-field .form-control:focus { border-color: var(--accent); box-shadow: var(--glow); outline: 0; }
.sh-site .kk-eye { position: absolute; right: 4px; width: 40px; height: 38px; padding: 0; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.sh-site .kk-eye svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.sh-site .kk-eye:hover svg, .sh-site .kk-eye[aria-pressed="true"] svg { stroke: var(--accent); }
.sh-site .kk-alert { margin: 0 0 16px; padding: 11px 14px; border: 1px solid var(--line); border-left-width: 3px; border-radius: 2px; background: var(--field); font-size: 13px; }
.sh-site .kk-alert[hidden] { display: none; }
.sh-site .kk-alert-error { border-color: #ee6e6555; border-left-color: #ee6e65; color: #ee9a94; }
.sh-site .kk-alert-warn { border-color: #f0a04b55; border-left-color: #f0a04b; color: #f0b878; }
.sh-site .kk-alert-ok { border-color: #86bd6955; border-left-color: var(--accent); color: var(--accent-light); }
.sh-site .kk-submit { position: relative; width: 100%; min-height: 48px; margin-top: 4px; font-size: 13px; }
.sh-site .kk-submit:disabled { opacity: .75; cursor: progress; }
.sh-site .kk-spinner { display: none; width: 14px; height: 14px; margin-right: 10px; border: 2px solid #101112; border-top-color: transparent; border-radius: 50%; vertical-align: -2px; animation: kk-spin .7s linear infinite; }
.sh-site .kk-submit.is-loading .kk-spinner { display: inline-block; }
@keyframes kk-spin { to { transform: rotate(360deg); } }
.sh-site.sh-auth .form-footer, .sh-site.sh-auth .form-card > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: left; line-height: 1.7; }
.sh-site.sh-auth .alert { margin: 0 0 16px; padding: 11px 14px; border: 1px solid var(--line); border-left-width: 3px; border-radius: 2px; background: var(--field); font-size: 13px; }
.sh-site.sh-auth .alert-success { border-left-color: var(--accent); color: var(--accent-light); }
.sh-site.sh-auth .alert-error { border-left-color: #ee6e65; color: #ee9a94; }
.sh-site.sh-auth .form-card h1 { font: 400 26px/1.15 var(--display); letter-spacing: .8px; text-transform: uppercase; }
@media (max-width: 520px) { .sh-site .kk-login, .sh-site.sh-auth .form-card { padding: 24px 18px 22px; } .sh-site.sh-auth .form-title { font-size: 26px; } .sh-site.sh-auth .sh-auth-content { padding: 12px; } }
