:root {
    --bg: #0b0b0d;
    --surface: #131316;
    --surface-2: #1a1a1f;
    --surface-3: #222228;
    --line: rgba(255,255,255,.08);
    --line-strong: rgba(255,255,255,.14);
    --text: #f5f5f6;
    --muted: #9b9ba5;
    --muted-2: #6f6f78;
    --purple: #c7364a;
    --purple-2: #ec6574;
    --purple-soft: rgba(199,54,74,.14);
    --purple-soft: color-mix(in srgb, var(--purple) 15%, transparent);
    --cyan: #38c8e8;
    --green: #3ad695;
    --orange: #ff9f43;
    --red: #ff5570;
    --sidebar: 248px;
    --radius: 16px;
    --shadow: 0 18px 50px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% -10%, rgba(199,54,74,.1), transparent 32%), radial-gradient(circle at 5% 100%, rgba(236,101,116,.035), transparent 27%); z-index: -1; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: color-mix(in srgb, var(--bg) 88%, var(--surface)); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 14px 15px; z-index: 50; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 25px; }
.brand-mark { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: 0 0 auto; color: white; font-weight: 900; font-size: 18px; border-radius: 10px; background: linear-gradient(145deg, var(--purple), #7f1f31); box-shadow: 0 7px 25px rgba(199,54,74,.26); transform: skew(-5deg); }
.brand-mark.large { width: 48px; height: 48px; border-radius: 13px; font-size: 24px; }
.brand-logo { width: 38px; height: 38px; flex: 0 0 auto; object-fit: contain; border-radius: 9px; }
.brand-logo.large { width: 50px; height: 50px; border-radius: 12px; }
.brand > span:last-child, .login-brand > div { display: flex; align-items: baseline; gap: 4px; letter-spacing: -.02em; }
.brand > span:last-child { min-width: 0; flex-direction: column; align-items: flex-start; gap: 0; }
.brand strong, .login-brand strong { max-width: 160px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; letter-spacing: .02em; }
.brand small, .login-brand small { color: var(--purple-2); font-weight: 800; font-size: 10px; letter-spacing: .13em; }
.nav { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 9px 12px; color: #9b9ba3; border-radius: 10px; font-size: 13px; font-weight: 650; transition: .18s ease; }
.nav a:hover { color: white; background: rgba(255,255,255,.04); }
.nav a.active { color: white; background: linear-gradient(90deg, rgba(199,54,74,.17), rgba(199,54,74,.045)); box-shadow: inset 3px 0 var(--purple); }
.nav-icon { width: 22px; text-align: center; font-size: 17px; color: currentColor; opacity: .9; }
.nav-group { border-radius: 11px; }
.nav-group summary { min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 9px 12px; color: #9b9ba3; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 720; cursor: pointer; list-style: none; transition: .18s ease; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover, .nav-group.active > summary { color: white; background: rgba(255,255,255,.035); }
.nav-group.active > summary { border-color: color-mix(in srgb,var(--purple) 24%,var(--line)); }
.nav-chevron { margin-left: auto; color: var(--muted-2); font-size: 13px; transition: transform .18s ease; }
.nav-group[open] .nav-chevron { transform: rotate(180deg); }
.nav-submenu { display: grid; gap: 3px; padding: 3px 0 7px 18px; }
.nav-submenu a { min-height: 36px; padding: 7px 10px; font-size: 11px; }
.nav-submenu .nav-icon { width: 18px; font-size: 13px; }
.sidebar-user { margin-top: auto; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 16px 5px 1px; }
.sidebar-user-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.sidebar-user-copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.sidebar-user-copy small { color: var(--muted); font-size: 10px; }

.page-wrap { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { min-height: 86px; padding: 14px clamp(22px, 3.2vw, 48px); display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 30; }
.topbar h1 { margin: 1px 0 0; font-size: 22px; line-height: 1.1; letter-spacing: -.03em; }
.topbar-copy { min-width: 0; }
.topbar-copy > small { display: block; max-width: 650px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.version-pill { padding: 7px 10px; color: var(--purple-2); background: var(--purple-soft); border: 1px solid color-mix(in srgb, var(--purple) 28%, transparent); border-radius: 999px; font-size: 8px; font-weight: 850; white-space: nowrap; }
.eyebrow { margin: 0; color: var(--purple-2); font-size: 9px; line-height: 1.4; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.channel-pill { display: flex; align-items: center; gap: 8px; max-width: 230px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--muted-2); }
.channel-pill.online { color: #d8d3e2; }
.channel-pill.online .status-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(58,214,149,.1); }
.menu-button { display: none; color: white; background: none; border: 0; font-size: 22px; cursor: pointer; }
.content { width: min(1540px, 100%); margin: 0 auto; padding: 30px clamp(20px, 3.2vw, 48px) 45px; }
.app-footer { width: min(1540px, 100%); min-height: 55px; margin: 0 auto; padding: 13px clamp(20px, 3.2vw, 48px) 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted-2); border-top: 1px solid var(--line); font-size: 9px; }
.app-footer small { color: var(--purple-2); }
.footer-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.login-legal-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 12px; margin-top: 10px; }
.login-legal-links a { color: var(--muted); font-size: 9px; }
.login-legal-links a:hover { color: var(--text); }

.alert { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 14px; border-radius: 11px; border: 1px solid; font-size: 13px; box-shadow: var(--shadow); }
.alert > span { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-weight: 900; }
.alert p { margin: 0; flex: 1; }
.alert button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 20px; opacity: .7; }
.alert-success { color: #b8f4d9; background: rgba(58,214,149,.1); border-color: rgba(58,214,149,.25); }
.alert-success > span { background: rgba(58,214,149,.18); }
.alert-danger { color: #ffc0cb; background: rgba(255,85,112,.1); border-color: rgba(255,85,112,.25); }
.alert-danger > span { background: rgba(255,85,112,.18); }
.alert-warning { color: #ffdaae; background: rgba(255,159,67,.09); border-color: rgba(255,159,67,.24); }
.alert-warning > span { background: rgba(255,159,67,.16); }

.card { background: linear-gradient(145deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 35px rgba(0,0,0,.12); }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.page-intro p { margin: 0; color: var(--muted); max-width: 720px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.section-head h3 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.02em; }
.section-head > a { color: var(--muted); font-size: 11px; font-weight: 750; }
.section-head > a:hover { color: white; }
.muted { color: var(--muted); }
.empty-copy { color: var(--muted); margin: 18px 0 6px; }

.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px; color: white; background: var(--surface-3); font-size: 11px; font-weight: 800; cursor: pointer; transition: .18s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button-primary { background: linear-gradient(135deg, var(--purple), #97283b); box-shadow: 0 8px 22px rgba(199,54,74,.2); }
.button-secondary { background: rgba(255,255,255,.045); border-color: var(--line-strong); }
.button-twitch { background: var(--purple); }
.button-danger { background: linear-gradient(135deg, #f03b59, #b51f3b); }
.button-danger-outline { color: #ff8397; background: rgba(255,85,112,.06); border-color: rgba(255,85,112,.28); }
.button-small { min-height: 31px; padding: 5px 10px; font-size: 10px; }
.button-tiny { min-height: 27px; padding: 4px 8px; font-size: 9px; }
.button-wide { width: 100%; min-height: 46px; }
.button.disabled, .button:disabled { pointer-events: none; opacity: .4; }
.full-width { width: 100%; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.icon-button { width: 31px; height: 31px; display: inline-grid; place-items: center; padding: 0; flex: 0 0 auto; color: #b9b9c0; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.icon-button:hover { color: white; border-color: var(--line-strong); }
.icon-button.danger:hover { color: var(--red); border-color: rgba(255,85,112,.25); }

.hero-panel { min-height: 235px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 35px clamp(26px, 4vw, 58px); margin-bottom: 21px; border: 1px solid rgba(199,54,74,.22); border-radius: 20px; background: radial-gradient(circle at 82% 45%, rgba(199,54,74,.22), transparent 31%), linear-gradient(115deg, #211216, #121215 63%); }
.hero-panel::after { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, black); }
.hero-panel > div:first-child { z-index: 1; max-width: 570px; }
.hero-panel h2 { margin: 10px 0 12px; font-size: clamp(31px, 4vw, 49px); line-height: 1.02; letter-spacing: -.055em; }
.hero-panel h2 span { color: var(--purple-2); }
.hero-panel p:last-child { color: #a3a3ab; max-width: 500px; margin: 0; }
.hero-orbit { width: 210px; height: 180px; position: relative; display: grid; place-items: center; z-index: 1; }
.hero-orbit strong { font-size: 20px; line-height: .9; text-align: center; font-style: italic; transform: skew(-5deg); text-shadow: 0 0 30px var(--purple); }
.orbit { position: absolute; border: 1px solid rgba(236,101,116,.28); border-radius: 50%; transform: rotate(-18deg); }
.orbit-one { width: 190px; height: 76px; }
.orbit-two { width: 120px; height: 165px; transform: rotate(38deg); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 21px; }
.stat-card { min-height: 116px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: .18s ease; }
.stat-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.stat-card > span { width: 36px; height: 36px; grid-row: 1 / 3; display: grid; place-items: center; align-self: center; border-radius: 10px; font-size: 18px; }
.stat-card strong { align-self: end; font-size: 28px; line-height: 1; }
.stat-card small { color: var(--muted); font-size: 10px; }
.stat-card.purple > span { color: var(--purple-2); background: var(--purple-soft); }
.stat-card.cyan > span { color: var(--cyan); background: rgba(56,200,232,.11); }
.stat-card.green > span { color: var(--green); background: rgba(58,214,149,.11); }
.stat-card.orange > span { color: var(--orange); background: rgba(255,159,67,.11); }
.stat-card.red > span { color: var(--purple-2); background: var(--purple-soft); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Navigation builder, WYSIWYG pages and public content */
.design-tabs { margin-bottom: 22px; }
.design-workspace { margin-top: 32px; scroll-margin-top: 105px; }
.workspace-heading { align-items: flex-end; margin-bottom: 16px; }
.workspace-heading h2 { margin: 3px 0 4px; font-size: 24px; }
.workspace-heading p:last-child { margin: 0; color: var(--muted); }
.built-in-page-copy > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; list-style: none; }
.built-in-page-copy > summary::-webkit-details-marker { display: none; }
.built-in-page-copy > summary > span:first-child { display: flex; flex-direction: column; gap: 4px; }

.navigation-builder fieldset, .content-page-editor fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.nav-builder-grid { display: grid; gap: 14px; }
.nav-builder-group { padding: 18px; transition: border-color .18s ease, opacity .18s ease, transform .18s ease; }
.nav-builder-group > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.nav-builder-group > header > div { display: flex; align-items: center; gap: 10px; }
.nav-builder-group h3 { margin: 2px 0 0; }
.nav-builder-direct { border-style: dashed; background: linear-gradient(145deg,color-mix(in srgb,var(--surface-2) 84%,transparent),var(--surface)); }
.drag-handle { width: 30px; min-height: 31px; display: grid; place-items: center; padding: 0; color: var(--muted); background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 8px; cursor: grab; font-weight: 900; letter-spacing: -3px; }
.drag-handle:active { cursor: grabbing; }
.nav-builder-group.is-dragging, .nav-builder-item.is-dragging { opacity: .38; transform: scale(.99); }
.nav-builder-group.drag-over, .nav-builder-items.drag-over { border-color: color-mix(in srgb,var(--purple) 55%,var(--line)); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--purple) 30%,transparent); }
.nav-group-fields { margin-bottom: 13px; padding: 12px; background: rgba(255,255,255,.018); border: 1px solid var(--line); border-radius: 11px; }
.nav-builder-items { min-height: 44px; display: grid; gap: 8px; padding: 4px; border: 1px dashed transparent; border-radius: 11px; }
.nav-builder-items:empty::after { content: "Menüpunkte hier ablegen"; display: grid; place-items: center; min-height: 46px; color: var(--muted-2); border: 1px dashed var(--line); border-radius: 9px; font-size: 10px; }
.nav-builder-item { position: relative; display: grid; grid-template-columns: 55px 82px 62px minmax(140px,1fr) minmax(135px,.8fr) minmax(135px,.8fr) minmax(175px,1.2fr) auto auto; align-items: end; gap: 8px; padding: 11px; background: color-mix(in srgb,var(--surface) 90%,black); border: 1px solid var(--line); border-radius: 11px; }
.nav-builder-item > label { min-width: 0; }
.nav-builder-item .drag-handle { align-self: center; }
.nav-move-controls { display: grid; grid-template-columns: repeat(2,1fr); gap: 3px; align-self: center; }
.nav-move-controls .drag-handle { grid-column: 1 / -1; }
.nav-move-controls button { min-width: 25px; min-height: 25px; padding: 2px; color: var(--muted); background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.nav-move-controls button:hover { color: var(--text); border-color: var(--accent-border); }
.nav-builder-item .switch-label { align-self: center; }
.nav-builder-item input, .nav-builder-item select { min-width: 0; }
.nav-target-readonly { min-height: 39px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 4px 8px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 8px; }
.nav-target-readonly > span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.nav-target-readonly code { overflow: hidden; text-overflow: ellipsis; }
.danger-check { color: #ff8da0; }
.builder-create-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 14px; }

.page-builder-layout { display: grid; grid-template-columns: minmax(250px,320px) minmax(0,1fr); align-items: start; gap: 15px; }
.page-builder-list { position: sticky; top: 104px; padding: 16px; }
.content-page-list { display: grid; gap: 7px; max-height: 68vh; overflow-y: auto; }
.content-page-list > article { padding: 7px; border: 1px solid transparent; border-radius: 10px; }
.content-page-list > article.active { background: var(--purple-soft); border-color: color-mix(in srgb,var(--purple) 28%,var(--line)); }
.content-page-list > article > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.content-page-list > article > a > span:first-child { min-width: 0; display: flex; flex-direction: column; }
.content-page-list strong, .content-page-list small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.content-page-list small { color: var(--muted); font-size: 9px; }
.page-row-actions { display: flex; align-items: center; gap: 5px; margin-top: 7px; }
.content-page-editor { min-width: 0; padding: 21px; }
.slug-input { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(0,0,0,.18); }
.slug-input code { padding-left: 11px; color: var(--muted); }
.slug-input input { border: 0; background: transparent; }
.wysiwyg-shell { margin-top: 17px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: color-mix(in srgb,var(--surface) 92%,black); }
.wysiwyg-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 8px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.wysiwyg-toolbar button { min-height: 30px; padding: 5px 9px; color: var(--muted); background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-size: 10px; font-weight: 750; }
.wysiwyg-toolbar button:hover { color: white; border-color: var(--line-strong); }
.wysiwyg-editor { min-height: 320px; max-height: 68vh; padding: 22px; overflow-y: auto; outline: none; color: #e9e9ec; line-height: 1.75; }
.wysiwyg-editor:focus { box-shadow: inset 0 0 0 2px color-mix(in srgb,var(--purple) 38%,transparent); }
.wysiwyg-preview-card { margin-top: 15px; padding: 14px; background: rgba(255,255,255,.018); border: 1px solid var(--line); border-radius: 11px; }
.wysiwyg-preview-card > summary { cursor: pointer; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.rich-content { color: #ddddE2; font-size: 14px; line-height: 1.78; overflow-wrap: anywhere; }
.rich-content > :first-child { margin-top: 0; }
.rich-content > :last-child { margin-bottom: 0; }
.rich-content h2, .rich-content h3, .rich-content h4, .wysiwyg-editor h2, .wysiwyg-editor h3, .wysiwyg-editor h4 { color: var(--text); line-height: 1.25; }
.rich-content h2, .wysiwyg-editor h2 { margin: 1.5em 0 .55em; font-size: 25px; }
.rich-content h3, .wysiwyg-editor h3 { margin: 1.35em 0 .5em; font-size: 20px; }
.rich-content a, .wysiwyg-editor a { color: var(--purple-2); text-decoration: underline; text-underline-offset: 3px; }
.rich-content blockquote, .wysiwyg-editor blockquote { margin: 1.3em 0; padding: 10px 15px; color: #d7d7dc; background: var(--purple-soft); border-left: 3px solid var(--purple); border-radius: 0 8px 8px 0; }
.rich-content pre, .wysiwyg-editor pre { max-width: 100%; overflow: auto; padding: 13px; background: #08080a; border: 1px solid var(--line); border-radius: 9px; }

.content-page-card { max-width: 980px; margin: 0 auto; padding: clamp(22px,4vw,48px); }
.content-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.content-page-header h1 { margin: 7px 0 8px; font-size: clamp(30px,5vw,48px); line-height: 1.08; letter-spacing: -.045em; }
.content-page-header p:last-child { max-width: 720px; margin: 0; color: var(--muted); }
.content-page-meta { margin-top: 35px; padding-top: 15px; color: var(--muted-2); border-top: 1px solid var(--line); font-size: 9px; }
.public-shell { display: flex; min-height: 100vh; flex-direction: column; }
.public-header { width: min(1160px,calc(100% - 32px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.public-header .brand { padding: 12px 0; }
.public-main { width: min(1160px,calc(100% - 32px)); flex: 1; margin: 0 auto; padding: clamp(24px,5vw,62px) 0; }
.public-footer { width: min(1160px,calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px 25px; padding: 21px 0 28px; color: var(--muted-2); border-top: 1px solid var(--line); font-size: 10px; }
.public-footer small { color: var(--purple-2); }

@media (max-width: 1180px) {
    .nav-builder-item { grid-template-columns: 55px 82px 62px repeat(2,minmax(145px,1fr)); }
    .nav-builder-item .nav-permission-field, .nav-builder-item .nav-target-field { grid-column: span 2; }
}

@media (max-width: 900px) {
    .builder-create-grid, .page-builder-layout { grid-template-columns: 1fr; }
    .page-builder-list { position: static; }
    .content-page-list { max-height: none; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
    .workspace-heading, .content-page-header { align-items: flex-start; flex-direction: column; }
    .nav-builder-group { padding: 13px; }
    .nav-group-fields { grid-template-columns: 1fr; }
    .nav-builder-item { grid-template-columns: 55px minmax(0,1fr); align-items: center; }
    .nav-builder-item > *:not(.nav-move-controls) { grid-column: 2; }
    .nav-builder-item > .nav-move-controls { grid-column: 1; grid-row: 1 / 3; align-self: start; }
    .nav-builder-item .nav-permission-field, .nav-builder-item .nav-target-field { grid-column: 2; }
    .content-page-list { grid-template-columns: 1fr; }
    .content-page-editor { padding: 16px; }
    .wysiwyg-editor { min-height: 260px; padding: 16px; }
    .public-header, .public-main, .public-footer { width: min(100% - 22px,1160px); }
    .public-footer { align-items: flex-start; flex-direction: column; }
    .app-footer .footer-links { justify-content: flex-start; }
}
.dashboard-grid > .card { padding: 22px; }

.compact-list { display: flex; flex-direction: column; }
.compact-list > a, .compact-list > div { min-height: 57px; display: flex; align-items: center; gap: 12px; padding: 9px 3px; border-top: 1px solid var(--line); }
.compact-list > :first-child { border-top: 0; }
.compact-list > a > span:nth-child(2), .compact-list > div > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.compact-list strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.compact-list small, .timeline-list small { color: var(--muted); font-size: 9px; }
.priority-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--muted); }
.priority-low { background: var(--cyan); }.priority-normal { background: var(--purple-2); }.priority-high { background: var(--orange); }.priority-urgent { background: var(--red); box-shadow: 0 0 8px rgba(255,85,112,.5); }
.priority-label { display: inline-flex; align-items: center; gap: 7px; }
.timeline-list { display: flex; flex-direction: column; }
.timeline-list > div { min-height: 49px; display: flex; align-items: center; gap: 11px; padding: 7px 2px; border-top: 1px solid var(--line); }
.timeline-list > div:first-child { border-top: 0; }
.timeline-list > div > span:last-child { display: flex; flex-direction: column; }
.timeline-list strong { font-size: 10px; letter-spacing: .04em; }
.timeline-icon { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-size: 10px; }
.timeline-icon.success { color: var(--green); background: rgba(58,214,149,.1); }.timeline-icon.failed { color: var(--red); background: rgba(255,85,112,.1); }

.badge { display: inline-flex; align-items: center; justify-content: center; width: max-content; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: #b6b0c0; background: rgba(255,255,255,.03); font-size: 8px; line-height: 1.2; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.badge-new, .badge-open { color: var(--purple-2); border-color: rgba(199,54,74,.25); background: rgba(199,54,74,.09); }
.badge-planned, .badge-monitoring { color: var(--cyan); border-color: rgba(56,200,232,.22); background: rgba(56,200,232,.08); }
.badge-in_progress { color: var(--orange); border-color: rgba(255,159,67,.2); background: rgba(255,159,67,.08); }
.badge-done, .badge-closed { color: var(--green); border-color: rgba(58,214,149,.2); background: rgba(58,214,149,.08); }
.badge-rejected { color: var(--red); border-color: rgba(255,85,112,.2); background: rgba(255,85,112,.08); }
.count-chip { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; color: var(--purple-2); background: var(--purple-soft); border-radius: 6px; font-size: 10px; vertical-align: middle; }

.form-card { padding: 23px; margin-bottom: 20px; scroll-margin-top: 105px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.stack-form { display: flex; flex-direction: column; gap: 15px; }
.stack-form.compact { gap: 11px; }
label { display: flex; flex-direction: column; gap: 6px; color: #b5b5bc; font-size: 10px; font-weight: 750; }
input, textarea, select { width: 100%; color: var(--text); background: color-mix(in srgb, var(--bg) 82%, black); border: 1px solid var(--line-strong); border-radius: 9px; outline: none; padding: 10px 11px; font-size: 12px; transition: border .16s, box-shadow .16s; }
input, select { min-height: 41px; }
textarea { resize: vertical; min-height: 85px; }
input::placeholder, textarea::placeholder { color: #5f5a68; }
input:focus, textarea:focus, select:focus { border-color: rgba(199,54,74,.78); box-shadow: 0 0 0 3px rgba(199,54,74,.12); }
select { appearance: auto; }
.span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; padding-top: 3px; }
.form-actions.align-end { align-items: end; }
.check-label { flex-direction: row; align-items: center; gap: 9px; cursor: pointer; }
.check-label input { width: 16px; min-height: 16px; accent-color: var(--purple); }
.field-bottom { align-self: end; min-height: 41px; }
.inline-form { display: flex; align-items: center; gap: 8px; }
.inline-form input, .inline-form select { min-width: 160px; }
.inline-form.wrap { flex-wrap: wrap; }
.top-gap { margin-top: 17px; }

.table-card { overflow: hidden; }
.table-card > .section-head { padding: 21px 22px 0; }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { color: #76767f; background: rgba(255,255,255,.015); font-size: 8px; font-weight: 850; letter-spacing: .13em; text-align: left; text-transform: uppercase; }
th, td { padding: 13px 17px; border-top: 1px solid var(--line); vertical-align: middle; }
td { color: #c4c4ca; font-size: 11px; }
td > strong, td > small { display: block; }
td > strong { color: #f0f0f2; font-size: 12px; }
td > small { max-width: 370px; margin-top: 3px; color: var(--muted); line-height: 1.35; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.table-actions form { display: flex; }
.table-user { display: flex; align-items: center; gap: 10px; }
.table-user > span:last-child { display: flex; flex-direction: column; }
.table-user small { color: var(--muted); font-size: 9px; }

.empty-state { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.empty-state h2, .empty-state h3 { margin: 9px 0 4px; }
.empty-state p { color: var(--muted); margin: 0 0 18px; }
.empty-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--purple-2); background: var(--purple-soft); font-size: 22px; }

.note-grid, .link-grid, .case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.note-card { padding: 20px; position: relative; overflow: hidden; }
.note-card.pinned::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--purple); }
.note-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.note-card h3 { margin: 5px 0 10px; font-size: 16px; }
.note-card > p { color: #b3b3ba; font-size: 11px; line-height: 1.65; }
.pin { color: var(--purple-2); font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.relations { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }
.relations span { padding: 4px 7px; color: #aaaab2; background: rgba(255,255,255,.035); border-radius: 6px; font-size: 9px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.tag-list span { color: var(--purple-2); font-size: 9px; }
.note-card footer, .link-card footer, .case-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.note-card footer small, .link-card footer small, .case-card footer small { color: var(--muted); font-size: 8px; }

.link-card { min-height: 230px; display: flex; flex-direction: column; padding: 20px; }
.link-icon { width: 37px; height: 37px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 10px; color: var(--cyan); background: rgba(56,200,232,.1); font-size: 17px; }
.link-copy { flex: 1; }
.link-copy h3 { margin: 4px 0 7px; font-size: 17px; }
.link-copy p { color: var(--muted); font-size: 11px; }
.link-copy > a { color: var(--purple-2); font-size: 10px; font-weight: 750; word-break: break-all; }

.connect-panel { min-height: 260px; display: flex; align-items: center; gap: 30px; padding: clamp(25px, 5vw, 55px); }
.connect-panel > div:last-child { max-width: 650px; }
.connect-panel h2 { margin: 7px 0; font-size: 30px; }
.connect-panel p { color: var(--muted); }
.twitch-logo { width: 90px; height: 90px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 25px; color: white; background: linear-gradient(145deg, var(--purple), #7f1f31); box-shadow: 0 20px 45px rgba(199,54,74,.24); font-size: 42px; }
.inline-warning { margin: 15px 0; padding: 10px 12px; color: #ffcf9f; background: rgba(255,159,67,.08); border: 1px solid rgba(255,159,67,.18); border-radius: 8px; font-size: 10px; }
code { padding: 3px 6px; color: #f18a96; background: rgba(199,54,74,.1); border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.connection-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-bottom: 16px; }
.connection-card, .target-card { padding: 23px; }
.connection-profile { display: flex; align-items: center; gap: 15px; }
.connection-profile h3 { margin: 4px 0 0; font-size: 20px; }.connection-profile p { margin: 0; color: var(--muted); }
.online-label { color: var(--green); font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.online-label i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green); }
.meta-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 0; }
.meta-list div { padding: 10px; background: rgba(255,255,255,.025); border-radius: 8px; }
.meta-list dt { color: var(--muted); font-size: 8px; }.meta-list dd { margin: 4px 0 0; font-size: 10px; font-weight: 700; }
.target-card h3 { margin: 5px 0 2px; font-size: 22px; }.target-card > p:not(.eyebrow) { margin: 0 0 10px; color: var(--muted); font-size: 10px; }
.owner-chip, .moderator-chip { display: inline-flex; padding: 4px 8px; border-radius: 6px; font-size: 8px; font-weight: 800; }.owner-chip { color: var(--green); background: rgba(58,214,149,.09); }.moderator-chip { color: var(--cyan); background: rgba(56,200,232,.09); }
.avatar { display: inline-grid; place-items: center; object-fit: cover; border-radius: 50%; }
.avatar-large { width: 58px; height: 58px; font-size: 20px; }.avatar-small { width: 31px; height: 31px; font-size: 11px; }.profile-avatar { width: 86px; height: 86px; font-size: 28px; }
.avatar-text { color: white; background: linear-gradient(145deg, var(--purple), #6f1c2b); font-weight: 850; }.danger-bg { color: var(--red); background: rgba(255,85,112,.11); }
.live-control { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 22px 25px; margin-bottom: 16px; border-color: rgba(199,54,74,.2); }
.live-control h3 { margin: 4px 0; font-size: 18px; }.live-control p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.shield-status { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: var(--muted); background: rgba(255,255,255,.035); border-radius: 9px; font-size: 9px; letter-spacing: .08em; }.shield-status.active { color: var(--red); background: rgba(255,85,112,.1); }.shield-icon { font-size: 18px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }.tool-card { padding: 22px; }.tool-card.span-wide { grid-column: 1 / -1; }
.tool-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }.tool-heading h3 { margin: 2px 0 0; font-size: 15px; }
.tool-icon { width: 33px; height: 33px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 9px; }.tool-icon.purple { color: var(--purple-2); background: var(--purple-soft); }.tool-icon.cyan { color: var(--cyan); background: rgba(56,200,232,.1); }.tool-icon.orange { color: var(--orange); background: rgba(255,159,67,.1); }
[hidden] { display: none !important; }
.sync-grid { margin-bottom: 16px; }.user-chip-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }.user-chip-list a { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px; background: rgba(255,255,255,.025); border-radius: 8px; }.user-chip-list a > span:last-child { min-width: 0; display: flex; flex-direction: column; }.user-chip-list strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }.user-chip-list small { color: var(--muted); font-size: 8px; }
.admin-tools { padding: 22px; margin-bottom: 16px; }.term-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; margin-top: 15px; }.term-list > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; color: #c4c4ca; background: rgba(255,255,255,.025); border-radius: 7px; font-size: 10px; }

.ban-sync-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 23px; margin-bottom: 16px; border-color: rgba(199,54,74,.22); }
.ban-sync-stats { margin-top: 20px; }
.ban-sync-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 16px; margin-bottom: 16px; }
.ban-sync-console, .ban-sync-channels { padding: 23px; }
.ban-sync-console .section-head h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.03em; }
.danger-chip { display: inline-flex; padding: 5px 8px; color: #ff9bad; background: rgba(255,85,112,.09); border: 1px solid rgba(255,85,112,.2); border-radius: 7px; font-size: 8px; font-weight: 850; letter-spacing: .09em; }
.ban-sync-form { gap: 17px; }
.sync-action-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.sync-action-option { min-height: 68px; display: flex; flex-direction: row; align-items: center; gap: 11px; padding: 12px; color: #d5d5da; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.sync-action-option:has(input:checked) { border-color: rgba(199,54,74,.55); background: rgba(199,54,74,.09); }
.sync-action-option.danger-option:has(input:checked) { border-color: rgba(255,85,112,.45); background: rgba(255,85,112,.07); }
.sync-action-option input { width: 16px; min-height: 16px; flex: 0 0 auto; accent-color: var(--purple); }
.sync-action-option.danger-option input { accent-color: var(--red); }
.sync-action-option > span { display: flex; flex-direction: column; }
.sync-action-option strong { font-size: 11px; }
.sync-action-option small { color: var(--muted); font-size: 8px; font-weight: 600; }
.sync-channel-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.sync-channel-picker legend { margin-bottom: 7px; color: #b5b5bc; font-size: 10px; font-weight: 750; }
.sync-channel-option { min-height: 57px; display: grid; grid-template-columns: auto auto minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: 7px; padding: 9px 11px; color: #dedee2; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.sync-channel-option:hover { border-color: var(--line-strong); }
.sync-channel-option input { width: 16px; min-height: 16px; accent-color: var(--purple); }
.sync-channel-copy, .configured-channel-main > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.sync-channel-copy strong, .configured-channel-main strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.sync-channel-copy small, .configured-channel-main small { color: var(--muted); font-size: 8px; }
.verification-label { font-size: 8px; font-weight: 800; }
.status-verified .verification-label, .verification-badge.status-verified { color: var(--green); }
.status-denied .verification-label, .verification-badge.status-denied { color: var(--red); }
.status-unknown .verification-label, .verification-badge.status-unknown { color: var(--orange); }
.sync-submit { min-height: 45px; }
.ban-sync-channels > p { margin: -8px 0 15px; font-size: 10px; }
.ban-sync-add { margin-bottom: 15px; }
.configured-channel-list { display: flex; flex-direction: column; }
.configured-channel { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 7px 10px; padding: 11px 1px; border-top: 1px solid var(--line); }
.configured-channel:first-child { border-top: 0; }
.configured-channel.is-paused { opacity: .5; }
.configured-channel-main { min-width: 0; display: flex; align-items: center; gap: 9px; }
.configured-channel form { grid-column: 2; grid-row: 2; justify-self: end; }
.verification-badge { grid-column: 1; grid-row: 2; padding-left: 40px; font-size: 8px; font-weight: 800; }
.sync-result-panel { padding: 23px; margin-bottom: 16px; scroll-margin-top: 105px; }
.sync-result-panel .section-head h3 small { color: var(--muted); font-size: 10px; font-weight: 600; }
.sync-reason { margin: -6px 0 17px; padding: 10px 12px; color: #bdbdc4; background: rgba(255,255,255,.025); border-radius: 8px; font-size: 10px; }
.sync-result-list { display: flex; flex-direction: column; }
.sync-result-row { display: grid; grid-template-columns: auto minmax(130px,.45fr) minmax(180px,1fr); align-items: center; gap: 11px; padding: 11px 2px; border-top: 1px solid var(--line); }
.sync-result-row:first-child { border-top: 0; }
.result-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 900; }
.is-success .result-icon { color: var(--green); background: rgba(58,214,149,.1); }
.is-failure .result-icon { color: var(--red); background: rgba(255,85,112,.1); }
.sync-result-row > span:nth-child(2) { display: flex; flex-direction: column; }
.sync-result-row > span:nth-child(2) strong { font-size: 11px; }
.sync-result-row > span:nth-child(2) small { color: var(--muted); font-size: 8px; }
.result-message { color: #b9b9c0; font-size: 9px; text-align: right; overflow-wrap: anywhere; }
.result-message small { display: block; color: var(--muted); }
.job-status { display: inline-flex; align-items: center; width: max-content; padding: 4px 7px; border-radius: 6px; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.job-status.status-completed { color: var(--green); background: rgba(58,214,149,.09); }
.job-status.status-partial { color: var(--orange); background: rgba(255,159,67,.09); }
.job-status.status-failed { color: var(--red); background: rgba(255,85,112,.09); }
.job-status.status-running { color: var(--cyan); background: rgba(56,200,232,.09); }
.badge-danger { color: var(--red); border-color: rgba(255,85,112,.2); background: rgba(255,85,112,.08); }
.banlog-card { margin-bottom: 16px; }

.integration-stats strong { font-size: 21px; }
.settings-section { padding: 24px; margin-bottom: 16px; scroll-margin-top: 105px; }
.settings-section .section-head h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.03em; }
.settings-note { padding: 11px 13px; color: #aaaaaf; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 9px; font-size: 10px; }
.discord-invite { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings-integration-form { gap: 17px; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.route-card { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 14px; background: rgba(255,255,255,.022); border: 1px solid var(--line); border-radius: 11px; }
.route-head { grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.route-head > div { display: flex; min-width: 0; flex-direction: column; }
.route-head strong { font-size: 11px; }.route-head small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.switch-label { flex-direction: row; align-items: center; gap: 6px; cursor: pointer; }
.switch-label input { width: 15px; min-height: 15px; accent-color: var(--purple); }
.settings-actions { justify-content: flex-end; }
.delivery-card { margin-top: 20px; }
.mono-copy { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

.installer-shell { min-height: 100vh; padding: 30px 18px 70px; background: radial-gradient(circle at 50% 0%, rgba(199,54,74,.17), transparent 28%), var(--bg); }
.installer-main { width: min(920px, 100%); margin: 0 auto; }
.installer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 37px; }
.installer-head .brand { padding: 0; }
.installer-title { margin: 0 0 25px; text-align: center; }
.installer-title h1 { margin: 8px 0 10px; font-size: clamp(30px, 6vw, 47px); line-height: 1.04; letter-spacing: -.05em; }
.installer-title > p:last-child { max-width: 680px; margin: 0 auto; color: var(--muted); }
.installer-form { display: flex; flex-direction: column; gap: 15px; }
.installer-checks, .installer-section { padding: 24px; margin-bottom: 15px; }
.installer-section { margin: 0; }
.installer-section .section-head h2 { margin: 4px 0 0; font-size: 20px; }
.step-number { color: rgba(236,101,116,.45); font-size: 25px; font-weight: 900; }
.section-copy { margin: -8px 0 17px; color: var(--muted); font-size: 10px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.check-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; color: #bbbbc1; background: rgba(255,255,255,.025); border-radius: 8px; font-size: 9px; font-weight: 700; }
.check-item > span { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-size: 8px; }
.check-item.ok > span { color: var(--green); background: rgba(58,214,149,.1); }
.check-item.failed > span { color: var(--red); background: rgba(255,85,112,.1); }
.check-item.optional > span { color: var(--orange); background: rgba(255,159,67,.1); }
.installer-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-color: rgba(199,54,74,.24); }
.installer-submit strong { font-size: 14px; }.installer-submit p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.installer-success { max-width: 620px; margin: 70px auto 0; padding: 48px; text-align: center; }
.installer-success .empty-icon { margin: 0 auto 17px; }
.installer-success h1 { margin: 8px 0 10px; font-size: 34px; letter-spacing: -.04em; }
.installer-success p:not(.eyebrow) { max-width: 500px; margin: 0 auto 25px; color: var(--muted); }

.profile-panel { padding: 25px; margin-bottom: 16px; }.profile-main { display: flex; align-items: center; gap: 19px; }.profile-main h2 { margin: 4px 0 0; font-size: 27px; }.profile-main p { margin: 1px 0; color: var(--muted); }.profile-bio { max-width: 720px; padding-top: 9px; color: #b8b8bf !important; font-size: 11px; }.profile-meta { display: flex; gap: 8px; margin: 19px 0; }.profile-meta span { min-width: 140px; display: flex; flex-direction: column; padding: 9px 11px; background: rgba(255,255,255,.025); border-radius: 8px; }.profile-meta small { color: var(--muted); font-size: 8px; }.profile-meta strong { font-size: 10px; }

.case-card { position: relative; overflow: hidden; padding: 19px; }.case-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--purple); }.case-card.severity-low::before { background: var(--cyan); }.case-card.severity-high::before { background: var(--orange); }.case-card.severity-critical::before { background: var(--red); }.case-head { display: flex; align-items: center; justify-content: space-between; }.case-number { color: var(--muted); font-size: 9px; font-weight: 800; }.case-user { display: inline-block; margin: 14px 0 4px; color: var(--purple-2); font-size: 10px; font-weight: 750; }.case-user small { color: var(--muted); }.case-card h3 { margin: 4px 0 8px; }.case-card > p { min-height: 48px; color: var(--muted); font-size: 10px; }.case-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }.case-meta span { display: flex; flex-direction: column; padding: 7px; background: rgba(255,255,255,.025); border-radius: 7px; }.case-meta small { color: var(--muted); font-size: 7px; }.case-meta strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; }

.permission-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 17px; }.permission-grid .card { padding: 18px; }.permission-grid h3 { margin: 10px 0 4px; font-size: 14px; }.permission-grid p { margin: 0; color: var(--muted); font-size: 9px; }.role-dot { width: 9px; height: 9px; display: block; border-radius: 50%; }.role-dot.owner { background: var(--purple-2); }.role-dot.admin { background: var(--cyan); }.role-dot.moderator { background: var(--green); }.role-dot.viewer { background: var(--muted); }
.role-owner { color: var(--purple-2); }.role-admin { color: var(--cyan); }.role-moderator { color: var(--green); }
.status-label { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; }.status-label i { width: 6px; height: 6px; border-radius: 50%; }.status-label.active { color: var(--green); }.status-label.active i { background: var(--green); }.status-label.inactive { color: var(--muted); }.status-label.inactive i { background: var(--muted-2); }
.audit-table td { font-size: 9px; }.json-copy { display: block; max-width: 320px; max-height: 42px; overflow: hidden; word-break: break-word; }

.design-editor { gap: 16px; }
.design-brand-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 20px; align-items: start; }
.design-shell-preview { min-height: 310px; display: grid; grid-template-columns: 120px 1fr; overflow: hidden; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 13px; box-shadow: var(--shadow); }
.design-preview-sidebar { padding: 15px 9px; background: color-mix(in srgb, var(--bg) 88%, var(--surface)); border-right: 1px solid var(--line); }
.preview-brand { padding: 0 2px 24px; gap: 7px; }
.preview-brand .brand-mark, .preview-brand img { width: 27px; height: 27px; border-radius: 7px; font-size: 11px; }
.preview-brand strong { max-width: 66px; font-size: 8px; }.preview-brand small { font-size: 5px; }
.preview-nav-line { height: 27px; margin: 6px 0; background: color-mix(in srgb, var(--text) 4%, transparent); border-radius: 6px; }
.preview-nav-line.active { background: var(--purple-soft); box-shadow: inset 2px 0 var(--purple); }.preview-nav-line.short { width: 72%; }
.design-preview-main { position: relative; padding: 22px; }
.design-preview-main > small { display: block; color: var(--purple-2); font-size: 6px; font-weight: 850; letter-spacing: .14em; }
.design-preview-main > strong { display: block; margin: 4px 0 18px; font-size: 17px; }
.preview-card { height: 150px; background: linear-gradient(145deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 11px; }
.design-preview-main footer { position: absolute; inset: auto 22px 10px; overflow: hidden; color: var(--muted); font-size: 6px; white-space: nowrap; text-overflow: ellipsis; }
.color-editor-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.color-field { padding: 12px; background: rgba(255,255,255,.022); border: 1px solid var(--line); border-radius: 10px; }
.color-field > span:last-child, .color-input-pair { display: flex; align-items: center; gap: 9px; }
.color-field input[type="color"], .color-input-pair input[type="color"] { width: 46px; min-height: 37px; padding: 3px; cursor: pointer; }
.color-field code, .color-input-pair code { flex: 1; text-align: center; }
.menu-editor-list, .page-editor-list { display: flex; flex-direction: column; gap: 8px; }
.menu-editor-row { display: grid; grid-template-columns: 80px 75px minmax(160px,1fr) 90px 115px; align-items: end; gap: 9px; padding: 11px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 10px; }
.menu-editor-row > code { align-self: center; overflow: hidden; text-overflow: ellipsis; }
.page-editor-row { display: grid; grid-template-columns: minmax(130px,.45fr) minmax(180px,.8fr) minmax(240px,1.25fr); align-items: start; gap: 12px; padding: 13px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 10px; }
.page-editor-row > div { display: flex; flex-direction: column; gap: 6px; padding-top: 5px; }.page-editor-row > div strong { font-size: 11px; }.page-editor-row textarea { min-height: 64px; }
.sticky-editor-actions { position: sticky; bottom: 10px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 15px; color: var(--muted); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line-strong); border-radius: 12px; backdrop-filter: blur(16px); box-shadow: var(--shadow); font-size: 9px; }

.discord-studio-layout { display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 16px; align-items: start; }
.template-sidebar { position: sticky; top: 104px; padding: 19px; }
.template-sidebar .section-head { margin-bottom: 12px; }.template-sidebar .section-head h3 { font-size: 15px; }
.template-list { display: flex; flex-direction: column; gap: 5px; }
.template-list > p { padding: 8px 2px; font-size: 9px; }
.template-list a { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 9px; color: var(--muted); border: 1px solid transparent; border-radius: 8px; }
.template-list a:hover, .template-list a.active { color: var(--text); background: var(--purple-soft); border-color: color-mix(in srgb, var(--purple) 25%, transparent); }
.template-list a > span:first-child { color: var(--purple-2); }.template-list a > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.template-list strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }.template-list small { color: var(--muted); font-size: 7px; }
.template-delete-form { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.discord-editor-form { min-width: 0; }
.discord-target-card { margin-bottom: 16px; }.route-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; margin: -4px 0 14px; }
.discord-editor-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); gap: 16px; align-items: start; }
.discord-preview-column { position: sticky; top: 104px; }
.discord-preview-card { padding: 20px; background: #313338; border-color: rgba(255,255,255,.08); }
.discord-preview-card .section-head { margin-bottom: 16px; }.discord-preview-card .eyebrow { color: #b5bac1; }.discord-preview-card .section-head h3 { color: #f2f3f5; }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 4px rgba(58,214,149,.1); }
.emoji-picker { display: grid; grid-template-columns: repeat(8,1fr); gap: 5px; margin: -6px 0 15px; padding: 9px; background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--line); border-radius: 9px; }
.emoji-picker button { min-height: 31px; padding: 2px; color: inherit; background: rgba(255,255,255,.04); border: 0; border-radius: 6px; cursor: pointer; }.emoji-picker button:hover { background: var(--purple-soft); }
.embed-field-editor { display: flex; flex-direction: column; gap: 9px; }
.embed-field-row { display: grid; grid-template-columns: minmax(130px,.6fr) minmax(180px,1fr) 110px 32px; align-items: end; gap: 8px; padding: 10px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 9px; }
.embed-field-row textarea { min-height: 58px; }.embed-field-row > .check-label { min-height: 38px; }
.discord-message-preview { display: flex; gap: 12px; color: #dbdee1; font-family: "gg sans", Inter, ui-sans-serif, system-ui, sans-serif; }
.discord-avatar { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: #5865f2; border-radius: 50%; font-weight: 850; }
.discord-message-body { min-width: 0; flex: 1; }
.discord-message-meta { display: flex; align-items: center; gap: 6px; line-height: 1; }.discord-message-meta strong { color: #f2f3f5; font-size: 13px; }.discord-message-meta span { padding: 2px 4px; color: white; background: #5865f2; border-radius: 3px; font-size: 7px; font-weight: 800; }.discord-message-meta small { color: #949ba4; font-size: 8px; }
.discord-content-preview { margin: 5px 0 7px; color: #dbdee1; font-size: 11px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.discord-embed-preview { position: relative; max-width: 520px; min-height: 70px; margin-top: 5px; padding: 12px 14px; overflow: hidden; background: #2b2d31; border-left: 4px solid #c7364a; border-radius: 4px; }
.discord-embed-author { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: #f2f3f5; font-size: 10px; font-weight: 700; }.discord-embed-author img { width: 20px; height: 20px; object-fit: cover; border-radius: 50%; }
.discord-embed-title { display: block; max-width: calc(100% - 85px); margin-bottom: 6px; color: #00a8fc; font-size: 13px; }
.discord-embed-description { color: #dbdee1; font-size: 10px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.discord-embed-thumbnail { position: absolute; top: 12px; right: 12px; width: 70px; height: 70px; object-fit: cover; border-radius: 4px; }
.discord-preview-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 10px; }.discord-preview-fields > div { grid-column: 1 / -1; display: flex; min-width: 0; flex-direction: column; }.discord-preview-fields > div.inline { grid-column: span 1; }.discord-preview-fields strong { color: #f2f3f5; font-size: 9px; }.discord-preview-fields span { color: #dbdee1; font-size: 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.discord-embed-image { width: 100%; max-height: 280px; margin-top: 11px; object-fit: cover; border-radius: 4px; }
.discord-embed-preview footer { display: flex; align-items: center; gap: 5px; margin-top: 11px; color: #b5bac1; font-size: 8px; }.discord-embed-preview footer img { width: 16px; height: 16px; object-fit: cover; border-radius: 50%; }.discord-embed-preview footer small { color: #b5bac1; }
.sticky-studio-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; padding: 10px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line-strong); border-radius: 11px; backdrop-filter: blur(15px); box-shadow: var(--shadow); }
.update-history { margin: 20px -24px -24px; border-top: 1px solid var(--line); }
.job-status.status-running { color: var(--cyan); background: rgba(56,200,232,.09); }.job-status.status-failed { color: var(--red); background: rgba(255,85,112,.09); }

.version-button { font-family: inherit; cursor: pointer; }.version-button:hover { color: var(--text); border-color: var(--purple); }.version-button.has-update { color: #fff; background: linear-gradient(135deg,var(--purple),var(--purple-2)); box-shadow: 0 0 22px color-mix(in srgb,var(--purple) 30%,transparent); }
.version-pill.static { display: inline-flex; width: max-content; }
.channel-switcher { display: flex; align-items: center; gap: 7px; min-width: 170px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; }.channel-switcher select { min-height: 29px; padding: 3px 24px 3px 4px; background-color: transparent; border: 0; font-size: 9px; }.channel-switcher .status-dot { flex: 0 0 auto; }
.alert-update { border-color: color-mix(in srgb,var(--purple) 38%,var(--line)); background: linear-gradient(90deg,color-mix(in srgb,var(--purple) 15%,var(--surface)),var(--surface)); }.alert-update .button { margin-left: auto; }
.version-dialog { width: min(760px,calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 17px; box-shadow: 0 30px 120px rgba(0,0,0,.7); }.version-dialog::backdrop { background: rgba(5,4,9,.78); backdrop-filter: blur(7px); }.version-dialog-shell { display: flex; flex-direction: column; gap: 0; }.version-dialog header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; background: color-mix(in srgb,var(--surface) 94%,transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }.version-dialog header h2 { margin: 4px 0 0; }.version-dialog section { padding: 21px 24px; border-bottom: 1px solid var(--line); }.version-dialog section:last-child { border-bottom: 0; }.version-dialog section > h3 { margin: 0 0 12px; }.available-changelog { background: color-mix(in srgb,var(--purple) 7%,transparent); }
.changelog-copy { max-height: 280px; margin: 11px 0 0; padding: 14px; overflow: auto; color: #d6d6da; background: color-mix(in srgb,var(--bg) 86%,transparent); border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 10px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.compact-form { margin-top: 12px; }
.settings-tabs { position: sticky; top: 89px; z-index: 15; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 9px; background: color-mix(in srgb,var(--surface) 92%,transparent); border: 1px solid var(--line); border-radius: 11px; backdrop-filter: blur(14px); }.settings-tabs a { padding: 7px 10px; color: var(--muted); background: rgba(255,255,255,.025); border-radius: 7px; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }.settings-tabs a:hover { color: var(--text); background: var(--purple-soft); }
.settings-subsection { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }.discord-add-form { padding: 15px; background: color-mix(in srgb,var(--purple) 5%,transparent); border: 1px solid var(--line); border-radius: 11px; }.discord-resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.managed-resource-card { display: block; }.managed-channel-card { display: block; margin-bottom: 10px; }.discord-channel-list { display: flex; flex-direction: column; }.event-check-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }.event-check-grid legend { padding: 0 7px; color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.github-release-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 20px; padding: 16px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 11px; }.github-release-card.update-available { border-color: color-mix(in srgb,var(--purple) 45%,var(--line)); box-shadow: inset 3px 0 var(--purple); }.github-release-card details, .github-release-card .alert { grid-column: 1 / -1; }.github-release-card summary { color: var(--purple-2); cursor: pointer; font-size: 9px; font-weight: 800; }
.upload-field { position: relative; padding: 15px; border: 1px dashed color-mix(in srgb,var(--purple) 50%,var(--line)); border-radius: 10px; background: color-mix(in srgb,var(--purple) 6%,var(--surface-2)); }
.upload-field input[type="file"] { width: 100%; min-height: 45px; padding: 8px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.upload-field input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 13px; color: #fff; background: linear-gradient(135deg,var(--purple),var(--purple-2)); border: 0; border-radius: 7px; font: inherit; font-size: 9px; font-weight: 850; cursor: pointer; }
.upload-field small { display: block; margin-top: 7px; color: var(--muted); }.upload-field.has-file { border-style: solid; border-color: var(--green); background: color-mix(in srgb,var(--green) 7%,var(--surface-2)); }.upload-field.has-file small { color: var(--green); }
.critical-confirm { padding: 12px; border: 1px solid color-mix(in srgb,var(--orange) 35%,var(--line)); border-radius: 9px; background: color-mix(in srgb,var(--orange) 6%,var(--surface-2)); }.critical-confirm small { display: block; margin-top: 6px; color: var(--muted); }
.critical-inline { flex-wrap: wrap; }.critical-inline input[type="password"], .mini-password { min-width: 130px; max-width: 210px; }
.update-preflight { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }.update-preflight article { display: flex; align-items: flex-start; gap: 9px; min-height: 78px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.02); }.update-preflight article > span { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; font-weight: 900; }.update-preflight article strong, .update-preflight article small { display: block; }.update-preflight article strong { margin-bottom: 4px; font-size: 9px; }.update-preflight article small { color: var(--muted); font-size: 8px; line-height: 1.45; }.update-preflight .passed > span { color: var(--green); background: color-mix(in srgb,var(--green) 12%,transparent); }.update-preflight .failed { border-color: color-mix(in srgb,var(--orange) 35%,var(--line)); }.update-preflight .failed > span { color: var(--orange); background: color-mix(in srgb,var(--orange) 12%,transparent); }
.migration-list { display: grid; gap: 7px; }.migration-list > article { display: grid; grid-template-columns: auto minmax(180px,1fr) auto minmax(290px,auto); align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); }.migration-list strong, .migration-list small { display: block; }.migration-list small { margin-top: 3px; color: var(--muted); }.timeline-icon.pending { color: var(--purple-2); background: var(--purple-soft); }.timeline-icon.muted { color: var(--muted); background: rgba(255,255,255,.04); }.migration-run-form input { min-width: 140px; }.migration-all-form { align-items: end; }
.permission-editor { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.permission-editor fieldset { padding: 13px; border: 1px solid var(--line); border-radius: 10px; }.permission-editor legend { padding: 0 6px; color: var(--purple-2); font-size: 9px; font-weight: 850; text-transform: uppercase; }.permission-option { display: grid; grid-template-columns: auto 1fr; align-items: flex-start; gap: 9px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.04); }.permission-option:last-child { border-bottom: 0; }.permission-option input { margin-top: 3px; }.permission-option strong, .permission-option small { display: block; }.permission-option strong { font-size: 9px; }.permission-option small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.role-admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }.role-admin-card { min-width: 0; }.role-admin-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.role-admin-card > header > div { display: flex; align-items: center; gap: 9px; }.role-admin-card h3 { margin: 0; }.role-admin-card p { color: var(--muted); }.role-admin-card.owner-role { border-color: color-mix(in srgb,var(--purple) 45%,var(--line)); box-shadow: inset 3px 0 var(--purple); }
.backup-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }.backup-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.backup-card h3 { margin: 3px 0 0; }.backup-card.status-card-failed { border-color: color-mix(in srgb,var(--red) 40%,var(--line)); }.backup-card .compact-form { align-items: end; padding-top: 10px; border-top: 1px solid var(--line); }
.security-check-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.security-check {
    --check-accent: var(--muted-2);
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr);
    align-items: center;
    gap: 14px;
    min-height: 116px;
    overflow: hidden;
    padding: 19px;
    border-color: color-mix(in srgb,var(--check-accent) 18%,var(--line));
}
.security-check::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg,var(--check-accent),transparent 88%);
    opacity: .72;
}
.security-check-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--check-accent);
    background: color-mix(in srgb,var(--check-accent) 10%,transparent);
    border: 1px solid color-mix(in srgb,var(--check-accent) 22%,transparent);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.security-check > div { min-width: 0; }
.security-check h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.2; letter-spacing: -.02em; }
.security-check p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.security-check.passed { --check-accent: var(--green); }
.security-check.warning { --check-accent: var(--orange); }
.security-check.critical { --check-accent: var(--red); }
.security-info { color: var(--cyan); }
.security-warning { color: var(--orange); }
.security-critical { color: var(--red); }

.system-overview {
    margin-bottom: 18px;
    padding: clamp(19px,2.1vw,25px);
}
.system-overview > .section-head { margin-bottom: 15px; }
.system-status-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
}
.system-status-grid article {
    --system-accent: var(--muted-2);
    min-width: 0;
    min-height: 92px;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    align-items: center;
    gap: 11px;
    padding: 14px;
    background: linear-gradient(145deg,color-mix(in srgb,var(--surface-2) 78%,#242429),color-mix(in srgb,var(--surface) 96%,#000));
    border: 1px solid color-mix(in srgb,var(--system-accent) 18%,var(--line));
    border-radius: 11px;
    box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.system-status-grid article > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--system-accent);
    background: color-mix(in srgb,var(--system-accent) 10%,transparent);
    border: 1px solid color-mix(in srgb,var(--system-accent) 20%,transparent);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
}
.system-status-grid article > div { min-width: 0; }
.system-status-grid strong, .system-status-grid small { display: block; }
.system-status-grid strong { margin-bottom: 4px; font-size: 10px; line-height: 1.3; }
.system-status-grid small { color: var(--muted); font-size: 8px; line-height: 1.45; overflow-wrap: anywhere; }
.system-status-grid .passed { --system-accent: var(--green); }
.system-status-grid .warning { --system-accent: var(--orange); }
.status-rolled_back { color: var(--orange); background: color-mix(in srgb,var(--orange) 10%,transparent); border-color: color-mix(in srgb,var(--orange) 28%,var(--line)); }
.migration-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }.migration-summary > div { display: flex; flex-direction: column; padding: 13px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 9px; }.migration-summary strong { font-size: 22px; }.migration-summary small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }.module-card { position: relative; display: flex; min-height: 205px; flex-direction: column; padding: 18px; }.module-card.disabled { opacity: .7; }.module-card header { display: flex; align-items: center; justify-content: space-between; }.module-source { padding: 3px 6px; color: var(--purple-2); background: var(--purple-soft); border-radius: 5px; font-size: 7px; font-weight: 850; }.module-card h3 { margin: 15px 0 7px; }.module-card p { flex: 1; color: var(--muted); font-size: 9px; line-height: 1.55; }.module-card > small { color: var(--muted-2); font-size: 8px; }.module-actions { display: flex; gap: 7px; margin-top: 15px; }.module-editor { scroll-margin-top: 110px; }
.news-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.news-card { padding: 21px; }.news-card.pinned { border-color: color-mix(in srgb,var(--purple) 40%,var(--line)); box-shadow: inset 3px 0 var(--purple); }.news-card > header, .news-card > footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.news-card h2 { margin: 5px 0 0; font-size: 19px; }.news-body { margin: 18px 0; color: #d9d9dd; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }.news-card > footer { align-items: center; padding-top: 13px; color: var(--muted); border-top: 1px solid var(--line); font-size: 8px; }
.dashboard-news { margin: 0 0 16px; padding: 20px; }.dashboard-news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }.dashboard-news-grid article { padding: 14px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 9px; }.dashboard-news-grid h3 { margin: 10px 0 6px; font-size: 13px; }.dashboard-news-grid p { color: var(--muted); font-size: 9px; line-height: 1.55; }.dashboard-news-grid small { color: var(--muted-2); font-size: 7px; }

.sidebar-avatar-link { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb,var(--purple) 35%,transparent); }
.sidebar-avatar-link .avatar { width: 34px; height: 34px; font-size: 12px; }
.avatar-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-grid, .account-security-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(330px,.75fr); gap: 16px; margin-bottom: 20px; }
.profile-identity-card { display: flex; align-items: center; gap: 22px; min-height: 250px; padding: 28px; }
.profile-identity-card h2 { margin: 7px 0 3px; font-size: 28px; letter-spacing: -.04em; }
.profile-avatar-shell { width: 132px; height: 132px; display: grid; place-items: center; flex: 0 0 132px; overflow: hidden; border: 1px solid color-mix(in srgb,var(--purple) 38%,var(--line)); border-radius: 30px; background: var(--surface-3); box-shadow: 0 18px 45px rgba(0,0,0,.25); }
.profile-avatar-shell img, .profile-avatar-shell .avatar-profile { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; font-size: 42px; }
.profile-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 21px; }
.profile-meta > span { min-width: 110px; padding: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 9px; }
.profile-meta small, .profile-meta strong { display: block; }.profile-meta small { color: var(--muted-2); font-size: 7px; font-weight: 850; text-transform: uppercase; }.profile-meta strong { margin-top: 4px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
.account-security-grid > .card { min-width: 0; margin-bottom: 0; padding: 23px; }
.linked-account { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 13px; background: color-mix(in srgb,var(--purple) 8%,var(--surface-2)); border: 1px solid var(--line); border-radius: 11px; }
.linked-account img, .linked-account .avatar { width: 46px; height: 46px; flex: 0 0 46px; object-fit: cover; border-radius: 50%; }
.linked-account > span { min-width: 0; }.linked-account strong, .linked-account small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.linked-account small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--muted-2); font-size: 8px; font-weight: 800; text-transform: uppercase; }.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.recaptcha-shell { min-height: 78px; display: flex; justify-content: center; overflow: hidden; border-radius: 9px; }
.design-editor-fieldset { min-width: 0; display: contents; margin: 0; padding: 0; border: 0; }.design-editor-fieldset:disabled { opacity: .72; }
.permission-editor-toolbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; background: color-mix(in srgb,var(--purple) 7%,var(--surface-2)); border: 1px solid var(--line); border-radius: 10px; }
.permission-category-actions { display: inline-flex; gap: 5px; margin-left: 10px; }.permission-category-actions button { padding: 2px 5px; color: var(--muted); background: transparent; border: 0; font-size: 7px; font-weight: 800; cursor: pointer; text-transform: uppercase; }.permission-category-actions button:hover { color: var(--text); }

.guest-shell { display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 50% 26%, rgba(199,54,74,.16), transparent 32%), #0b0b0d; }
.guest-main { width: min(430px, 100%); }
.login-card { padding: 36px; background: rgba(17,16,25,.95); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 28px 90px rgba(0,0,0,.45); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }.login-brand strong { font-size: 21px; }.login-card h1 { margin: 8px 0; font-size: 30px; letter-spacing: -.04em; }.login-card > p.muted { margin: 0 0 25px; }.login-foot { margin: 24px 0 0; color: var(--muted-2); text-align: center; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.sidebar-backdrop { display: none; }

/* Ruhiges ModDesk-System: dunkle Tiefe, rote Akzente und einheitliche Widgets. */
:root {
    --sidebar: 260px;
    --radius: 14px;
    --surface-raised: color-mix(in srgb, var(--surface-2) 76%, #26262c);
    --surface-inset: color-mix(in srgb, var(--bg) 82%, #000);
    --accent-border: color-mix(in srgb, var(--purple) 38%, var(--line));
    --shadow-soft: 0 1px 0 rgba(255,255,255,.035) inset, 0 18px 45px rgba(0,0,0,.26);
}

body { background: linear-gradient(180deg, color-mix(in srgb,var(--bg) 96%,#151519), var(--bg) 38%); }
button, input, textarea, select { border-radius: 9px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 2px solid color-mix(in srgb,var(--purple-2) 82%,white);
    outline-offset: 2px;
}

.sidebar {
    padding: 20px 13px 14px;
    background: linear-gradient(180deg, color-mix(in srgb,var(--surface) 88%,#08080a), color-mix(in srgb,var(--bg) 96%,#000));
    border-right-color: color-mix(in srgb,var(--purple) 14%,var(--line));
    box-shadow: 14px 0 45px rgba(0,0,0,.2);
}
.brand { min-height: 57px; margin: 0 3px 18px; padding: 0 8px 16px; border-bottom: 1px solid var(--line); }
.brand-mark, .brand-logo { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 28px rgba(0,0,0,.32); }
.nav { gap: 3px; padding-right: 2px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.nav a { position: relative; min-height: 44px; padding: 9px 11px; border: 1px solid transparent; border-radius: 9px; color: color-mix(in srgb,var(--muted) 92%,white); }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.045); }
.nav a.active { background: linear-gradient(90deg,color-mix(in srgb,var(--purple) 18%,var(--surface-2)),color-mix(in srgb,var(--surface) 95%,transparent)); border-color: color-mix(in srgb,var(--purple) 22%,var(--line)); box-shadow: inset 3px 0 var(--purple), 0 8px 22px rgba(0,0,0,.16); }
.nav-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.025); }
.nav a.active .nav-icon { color: var(--purple-2); background: var(--purple-soft); }
.sidebar-user { margin: 13px 2px 0; padding: 14px 4px 2px; }

.topbar {
    min-height: 78px;
    padding-top: 12px;
    padding-bottom: 12px;
    background: color-mix(in srgb,var(--bg) 88%,transparent);
    box-shadow: 0 10px 35px rgba(0,0,0,.12);
}
.topbar h1 { font-size: clamp(19px,2vw,23px); }
.topbar-actions { min-width: 0; }
.version-pill, .channel-pill, .channel-switcher { background: color-mix(in srgb,var(--surface) 86%,transparent); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.version-pill { min-height: 32px; padding: 7px 12px; }
.channel-switcher { min-height: 36px; }
.content { padding-top: 26px; }
.app-footer { border-top-color: color-mix(in srgb,var(--purple) 10%,var(--line)); }

.card {
    position: relative;
    background: linear-gradient(145deg,var(--surface-raised),var(--surface) 66%);
    border-color: rgba(255,255,255,.075);
    box-shadow: var(--shadow-soft);
}
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(125deg,rgba(255,255,255,.025),transparent 34%);
}
.card > * { position: relative; z-index: 1; }
.section-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-head h2, .section-head h3 { line-height: 1.2; }
.page-intro { min-height: 34px; padding: 0 2px; }

.button { min-height: 40px; border-color: rgba(255,255,255,.075); box-shadow: inset 0 1px rgba(255,255,255,.055), 0 7px 18px rgba(0,0,0,.16); }
.button:hover { border-color: rgba(255,255,255,.14); box-shadow: inset 0 1px rgba(255,255,255,.07), 0 9px 24px rgba(0,0,0,.24); }
.button:active { transform: translateY(0); }
.button-primary { border-color: color-mix(in srgb,var(--purple-2) 24%,transparent); }
.button-secondary { background: linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025)); }
.button-twitch { background: linear-gradient(135deg,var(--purple),#8f2739); }
.icon-button { min-width: 32px; min-height: 32px; }

.stat-grid { gap: 14px; }
.stat-card {
    --stat-accent: var(--purple-2);
    position: relative;
    min-height: 124px;
    overflow: hidden;
    padding: 20px;
    background: linear-gradient(150deg,var(--surface-raised),var(--surface));
    border-color: color-mix(in srgb,var(--stat-accent) 16%,var(--line));
    box-shadow: var(--shadow-soft);
}
.stat-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg,var(--stat-accent),transparent 72%); opacity: .65; }
.stat-card::after { content: ""; position: absolute; width: 74px; height: 74px; right: -28px; top: -28px; border-radius: 50%; background: var(--stat-accent); filter: blur(28px); opacity: .05; }
.stat-card > span { width: 42px; height: 42px; color: var(--stat-accent); background: color-mix(in srgb,var(--stat-accent) 10%,transparent); border: 1px solid color-mix(in srgb,var(--stat-accent) 20%,transparent); box-shadow: inset 0 1px rgba(255,255,255,.045); }
.stat-card strong { font-size: 30px; letter-spacing: -.045em; }
.stat-card.purple, .stat-card.red { --stat-accent: var(--purple-2); }
.stat-card.cyan { --stat-accent: var(--cyan); }
.stat-card.green { --stat-accent: var(--green); }
.stat-card.orange { --stat-accent: var(--orange); }
.dashboard-grid { gap: 18px; }
.dashboard-grid > .card, .dashboard-news { min-height: 250px; }
.compact-list > a, .compact-list > div, .timeline-list > div { border-top-color: rgba(255,255,255,.055); }
.compact-list > a { border-radius: 7px; transition: background .16s ease; }
.compact-list > a:hover { background: rgba(255,255,255,.026); }

.form-card, .settings-section { padding: clamp(20px,2.2vw,27px); }
label { color: color-mix(in srgb,var(--muted) 82%,white); }
input, textarea, select {
    background: linear-gradient(180deg,color-mix(in srgb,var(--surface-inset) 90%,transparent),color-mix(in srgb,var(--bg) 94%,#000));
    border-color: rgba(255,255,255,.115);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.25);
}
input:hover, textarea:hover, select:hover { border-color: rgba(255,255,255,.18); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb,var(--muted-2) 82%,transparent); }
.settings-note { border-color: rgba(255,255,255,.075); background: rgba(255,255,255,.022); }
.settings-subsection { border-top-color: rgba(255,255,255,.07); }
.settings-tabs { background: color-mix(in srgb,var(--bg) 84%,transparent); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.settings-tabs a { border: 1px solid transparent; }
.settings-tabs a:hover { border-color: var(--accent-border); }

.table-card { box-shadow: var(--shadow-soft); }
.table-card > .section-head { margin-bottom: 0; padding-bottom: 17px; }
th { background: color-mix(in srgb,var(--bg) 72%,transparent); }
th, td { border-top-color: rgba(255,255,255,.06); }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(255,255,255,.018); }

.module-grid, .news-grid, .discord-resource-grid, .dashboard-news-grid { gap: 14px; }
.module-card, .news-card, .route-card, .dashboard-news-grid article, .github-release-card, .migration-list > article, .system-status-grid article, .update-preflight article {
    background: linear-gradient(145deg,color-mix(in srgb,var(--surface-2) 82%,#25252a),color-mix(in srgb,var(--surface) 96%,#000));
    box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.module-card { min-height: 220px; border-top-color: color-mix(in srgb,var(--purple) 18%,var(--line)); }
.module-card header { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.news-card.pinned, .role-admin-card.owner-role, .github-release-card.update-available { box-shadow: inset 3px 0 var(--purple), var(--shadow-soft); }
.route-card { border-color: rgba(255,255,255,.075); }
.upload-field { box-shadow: inset 0 1px rgba(255,255,255,.025); }

.hero-panel { box-shadow: inset 0 1px rgba(255,255,255,.045), 0 22px 55px rgba(0,0,0,.28); }
.hero-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg,rgba(255,255,255,.025),transparent 40%); }
.login-card {
    background: linear-gradient(145deg,color-mix(in srgb,var(--surface-2) 82%,#222227),color-mix(in srgb,var(--surface) 97%,#000));
    border-color: color-mix(in srgb,var(--purple) 18%,var(--line-strong));
    box-shadow: inset 0 1px rgba(255,255,255,.04), 0 35px 100px rgba(0,0,0,.52);
}

.security-symbol { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; color: var(--purple-2); background: var(--purple-soft); border: 1px solid var(--accent-border); border-radius: 13px; font-size: 22px; box-shadow: inset 0 1px rgba(255,255,255,.045); }
.two-factor-login-card .security-symbol { margin: 0 0 18px; }
.two-factor-cancel-form { margin-top: 9px; }
.otp-input { text-align: center; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 19px; font-weight: 850; letter-spacing: .22em; }
.two-factor-card { overflow: hidden; }
.two-factor-intro { display: flex; align-items: center; gap: 16px; padding: 18px; background: color-mix(in srgb,var(--purple) 6%,var(--surface-2)); border: 1px solid var(--accent-border); border-radius: 12px; }
.two-factor-intro h3 { margin: 0 0 5px; }.two-factor-intro p { margin: 0; }
.two-factor-status-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.two-factor-status-grid > span { min-width: 0; padding: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 10px; }
.two-factor-status-grid small, .two-factor-status-grid strong { display: block; }.two-factor-status-grid small { color: var(--muted-2); font-size: 8px; font-weight: 850; text-transform: uppercase; }.two-factor-status-grid strong { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; }
.two-factor-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.security-action-card { padding: 17px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 11px; }
.security-action-card h3 { margin: 4px 0; }.security-action-card p { margin: 0; }
.security-action-card.danger-zone { border-color: color-mix(in srgb,var(--red) 24%,var(--line)); }
.two-factor-setup { display: grid; gap: 16px; }
.setup-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.setup-steps li { display: flex; align-items: flex-start; gap: 10px; padding: 13px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 10px; }
.setup-steps li > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; color: var(--purple-2); background: var(--purple-soft); border-radius: 7px; font-size: 9px; font-weight: 900; }
.setup-steps strong, .setup-steps small { display: block; }.setup-steps strong { font-size: 10px; }.setup-steps small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.setup-secret-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; padding: 17px; background: color-mix(in srgb,var(--bg) 78%,#000); border: 1px solid var(--accent-border); border-radius: 11px; }
.setup-secret-card > span { grid-column: 1 / -1; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.setup-secret-card code { padding: 9px 11px; overflow-wrap: anywhere; font-size: 13px; letter-spacing: .09em; }
.advanced-setup { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.015); }
.advanced-setup summary { color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 800; }.advanced-setup[open] summary { margin-bottom: 12px; color: var(--text); }
.two-factor-confirm-form { align-items: end; }
.recovery-code-panel { margin-bottom: 20px; padding: 18px; background: color-mix(in srgb,var(--orange) 6%,var(--surface-2)); border: 1px solid color-mix(in srgb,var(--orange) 30%,var(--line)); border-radius: 12px; }
.recovery-code-panel h3 { margin: 5px 0; }.recovery-code-panel p { margin: 0; color: var(--muted); }
.recovery-code-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 16px 0; }
.recovery-code-grid code { padding: 9px 11px; color: var(--text); background: color-mix(in srgb,var(--bg) 85%,#000); border: 1px solid var(--line); text-align: center; letter-spacing: .08em; }

.split-layout { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr); gap: 18px; align-items: start; }
.split-layout-wide { grid-template-columns: repeat(2,minmax(0,1fr)); }
.subsection { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.subsection h3 { margin: 0 0 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.info-chip { display: inline-flex; padding: 7px 10px; color: var(--muted); background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 999px; font-size: 9px; font-weight: 750; }
.table-subline { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.text-danger { color: var(--red) !important; max-width: 310px; white-space: normal; }
.button-builder-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 15px; }
.builder-mini-card { display: grid; gap: 9px; padding: 13px; background: rgba(255,255,255,.018); border: 1px solid var(--line); border-radius: 11px; }
.builder-mini-card > strong { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.discord-button-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.discord-link-button { padding: 7px 11px; color: #f3f3f5; background: #4e5058; border-radius: 4px; font-size: 10px; font-weight: 750; }
.bot-avatar { width: 58px; height: 58px; object-fit: cover; border: 2px solid var(--accent-border); border-radius: 18px; box-shadow: var(--shadow-soft); }
.dashboard-activity-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 18px; margin-top: 18px; }
.dashboard-activity-card { min-width: 0; min-height: 390px; display: flex; flex-direction: column; overflow: hidden; padding: 22px; }
.dashboard-activity-card .section-head { min-height: 52px; margin-bottom: 4px; }
.dashboard-activity-card .section-head > a { white-space: nowrap; }
.dashboard-feed { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.dashboard-feed-item { min-width: 0; min-height: 65px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 3px; border-top: 1px solid rgba(255,255,255,.06); border-radius: 8px; transition: background .16s ease,border-color .16s ease; }
.dashboard-feed-item:first-child { border-top-color: transparent; }
a.dashboard-feed-item:hover { background: rgba(255,255,255,.028); border-top-color: transparent; }
.dashboard-feed-icon { --feed-accent: var(--purple-2); width: 32px; height: 32px; display: grid; place-items: center; color: var(--feed-accent); background: color-mix(in srgb,var(--feed-accent) 11%,transparent); border: 1px solid color-mix(in srgb,var(--feed-accent) 20%,transparent); border-radius: 9px; font-size: 11px; font-weight: 900; box-shadow: inset 0 1px rgba(255,255,255,.035); }
.dashboard-feed-icon.is-news { --feed-accent: var(--purple-2); }
.dashboard-feed-icon.is-success { --feed-accent: var(--green); }
.dashboard-feed-icon.is-danger { --feed-accent: var(--red); }
.dashboard-feed-icon.priority-low { --feed-accent: var(--cyan); }
.dashboard-feed-icon.priority-normal { --feed-accent: var(--purple-2); }
.dashboard-feed-icon.priority-high { --feed-accent: var(--orange); }
.dashboard-feed-icon.priority-urgent { --feed-accent: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb,var(--red) 7%,transparent); }
.dashboard-feed-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dashboard-feed-copy strong { overflow: hidden; color: var(--text); font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-feed-copy small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-feed-excerpt { display: -webkit-box; overflow: hidden; color: color-mix(in srgb,var(--muted) 90%,white); font-size: 8px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dashboard-feed-item > .badge { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-empty-state { min-height: 250px; display: grid; place-content: center; justify-items: center; gap: 7px; color: var(--muted); text-align: center; }
.dashboard-empty-state > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 3px; color: var(--purple-2); background: var(--purple-soft); border: 1px solid var(--accent-border); border-radius: 12px; font-weight: 900; }
.dashboard-empty-state strong { color: var(--text); font-size: 12px; }
.dashboard-empty-state p { margin: 0; font-size: 9px; }

.bot-status-intro > div:first-child { display: grid; gap: 5px; }
.bot-status-intro small { color: var(--muted-2); font-size: 9px; }
.page-intro-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.inline-worker-control { display: inline-flex; margin: 0; }
.bot-status-live { margin-bottom: 18px; }
.bot-status-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.bot-metric-card { --metric-accent: var(--muted); min-width: 0; min-height: 150px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: flex-start; gap: 13px; overflow: hidden; padding: 19px; }
.bot-metric-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg,var(--metric-accent),transparent 72%); opacity: .7; }
.bot-metric-card.is-success { --metric-accent: var(--green); }
.bot-metric-card.is-danger { --metric-accent: var(--red); }
.bot-metric-card.is-accent { --metric-accent: var(--purple-2); }
.bot-metric-card.is-muted { --metric-accent: var(--muted-2); }
.bot-metric-icon, .bot-metric-avatar { width: 42px; height: 42px; display: grid; place-items: center; color: var(--metric-accent); background: color-mix(in srgb,var(--metric-accent) 10%,transparent); border: 1px solid color-mix(in srgb,var(--metric-accent) 22%,transparent); border-radius: 12px; font-size: 16px; font-weight: 900; }
.bot-metric-avatar { object-fit: cover; }
.bot-metric-card > div { min-width: 0; display: flex; flex-direction: column; }
.bot-metric-card small { color: var(--muted-2); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.bot-metric-card strong { margin-top: 7px; overflow: hidden; font-size: clamp(15px,1.4vw,20px); line-height: 1.16; letter-spacing: -.025em; overflow-wrap: anywhere; }
.bot-metric-card p { min-height: 30px; margin: 7px 0 9px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.bot-metric-meta { margin-top: auto; color: var(--muted-2); font-size: 7px; line-height: 1.45; overflow-wrap: anywhere; }
.bot-status-live.is-updating .bot-metric-card { opacity: .7; }
.worker-diagnostics-card { margin-bottom: 18px; }
.worker-diagnostics-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.bot-connection-card { margin-bottom: 18px; }
.bot-connection-form { gap: 16px; }
.bot-connection-form .settings-note { line-height: 1.55; }
.bot-connection-form .settings-note strong { color: var(--text); }
.connection-readonly { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.connection-readonly > span { min-width: 0; padding: 14px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 10px; }
.connection-readonly small, .connection-readonly strong { display: block; }
.connection-readonly small { color: var(--muted-2); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.connection-readonly strong { margin-top: 5px; overflow-wrap: anywhere; }
.bot-settings-layout { align-items: stretch; }
.bot-settings-card { height: 100%; margin-bottom: 0; }
.bot-settings-card form, .bot-settings-card .plain-fieldset { display: grid; gap: 15px; }
.plain-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.plain-fieldset:disabled { opacity: .58; }
.settings-state-chip { display: inline-flex; align-items: center; min-height: 27px; padding: 5px 9px; color: var(--muted); background: rgba(255,255,255,.028); border: 1px solid var(--line); border-radius: 999px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.settings-state-chip.is-online { color: var(--green); border-color: color-mix(in srgb,var(--green) 24%,var(--line)); background: color-mix(in srgb,var(--green) 7%,transparent); }
.worker-toggle { min-height: 58px; padding: 12px 13px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 10px; }
.worker-toggle > span { display: grid; gap: 3px; }
.worker-toggle strong { color: var(--text); font-size: 10px; }
.worker-toggle small { color: var(--muted); font-size: 8px; }
.form-hint { margin: 2px 0 0; padding: 10px 12px; color: var(--muted); background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 9px; font-size: 9px; }
.worker-help { margin-top: 18px; }
.worker-help code { color: var(--purple-2); }
.worker-primary-control { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 16px; padding: 16px; background: linear-gradient(135deg,color-mix(in srgb,var(--purple) 9%,var(--surface-2)),rgba(255,255,255,.012)); border: 1px solid var(--accent-border); border-radius: 12px; }
.worker-primary-control > div { min-width: 0; display: grid; gap: 5px; }
.worker-primary-control strong { color: var(--text); font-size: 11px; }
.worker-primary-control span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.worker-primary-control .button { flex: 0 0 auto; }
.worker-help-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 10px; }
.worker-help-grid p { min-width: 0; display: grid; gap: 6px; margin: 0; padding: 13px; background: rgba(255,255,255,.018); border: 1px solid var(--line); border-radius: 10px; }
.worker-help-grid strong { color: var(--text); font-size: 10px; }
.worker-help-grid span { color: var(--muted); font-size: 9px; line-height: 1.55; }
.worker-runtime-note { margin-top: 12px; }
.worker-log-card { margin-top: 18px; }
.worker-file-log-card { margin-top: 18px; }
.worker-file-log { max-height: 360px; overflow: auto; padding: 12px; background: #0c0c0f; border: 1px solid var(--line); border-radius: 10px; }
.worker-file-log p { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 11px; margin: 0; padding: 7px 5px; border-top: 1px solid rgba(255,255,255,.045); font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size: 8px; line-height: 1.5; }
.worker-file-log p:first-child { border-top: 0; }
.worker-file-log strong { color: var(--purple-2); }
.worker-file-log span { min-width: 0; color: var(--muted); overflow-wrap: anywhere; }
.tabs-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 15px; }
.ticket-detail-card { margin-bottom: 18px; padding: clamp(20px,2.2vw,28px); }
.ticket-action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 20px; }
.ticket-reply-editor { display: grid; gap: 12px; margin: 0 0 22px; padding: 17px; background: rgba(255,255,255,.018); border: 1px solid var(--line); border-radius: 12px; }
.ticket-reply-editor > .button { justify-self: end; }
.ticket-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; }
.timeline-list > article { display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.timeline-list > article:first-child { border-top: 0; }
.timeline-list > article > span { width: 8px; height: 8px; margin-top: 5px; background: var(--purple); border-radius: 50%; box-shadow: 0 0 0 4px var(--purple-soft); }
.timeline-list > article > div { display: grid; gap: 4px; min-width: 0; }
.timeline-list > article code { max-width: 100%; padding: 6px; overflow-wrap: anywhere; white-space: normal; }
.transcript-entry { margin-bottom: 8px; padding: 12px; background: rgba(255,255,255,.018); border: 1px solid var(--line); border-radius: 10px; }
.transcript-entry summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
.transcript-entry summary small { color: var(--muted); }
.transcript-messages { max-height: 430px; overflow: auto; }
.transcript-messages article { padding: 9px 0; border-top: 1px solid var(--line); }
.transcript-messages article p { margin: 4px 0 0; color: var(--muted); white-space: normal; }
.compact-danger-zone { display: flex; align-items: end; gap: 10px; margin-top: 20px; }
.compact-danger-zone label { flex: 1; }
.compact-list > article { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); }
.compact-list > article:first-child { border-top: 0; }
.compact-list > article > div:first-child { display: flex; min-width: 0; flex-direction: column; }
.compact-wysiwyg .wysiwyg-editor { min-height: 145px; }
.choice-fieldset { padding: 15px; border: 1px solid var(--line); border-radius: 11px; }
.choice-fieldset legend { padding: 0 7px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.choice-fieldset .check-label small { display: block; color: var(--muted-2); }
.ticket-config-grid { margin-top: 18px; }

@media (max-width: 1180px) {
    .note-grid, .link-grid, .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .permission-grid { grid-template-columns: repeat(2,1fr); }
    .color-editor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .discord-editor-grid { grid-template-columns: 1fr; }
    .discord-preview-column { position: static; }
    .module-grid, .discord-resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.dashboard-news-grid { grid-template-columns: 1fr; }
    .two-factor-status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .button-builder-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-activity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .bot-status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .worker-diagnostics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
    :root { --sidebar: min(86vw, 290px); }
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 15px 0 50px rgba(0,0,0,.45); }
    .menu-open .sidebar { transform: translateX(0); }
    .page-wrap { margin-left: 0; }
    .menu-button { display: block; }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); }
    .menu-open .sidebar-backdrop { display: block; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .connection-grid { grid-template-columns: 1fr; }
    .ban-sync-layout { grid-template-columns: 1fr; }
    .route-grid { grid-template-columns: 1fr; }
    .design-brand-grid { grid-template-columns: 1fr; }
    .discord-studio-layout { grid-template-columns: 1fr; }
    .template-sidebar { position: static; }
    .template-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .news-grid { grid-template-columns: 1fr; }
    .update-preflight { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .migration-list > article { grid-template-columns: auto minmax(0,1fr) auto; }.migration-run-form { grid-column: 2 / -1; }
    .permission-editor, .role-admin-grid, .backup-grid, .security-check-grid { grid-template-columns: 1fr; }
    .profile-grid, .account-security-grid { grid-template-columns: 1fr; }
    .setup-steps { grid-template-columns: 1fr; }
    .split-layout, .split-layout-wide, .ticket-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .topbar { min-height: 70px; padding: 11px 13px; gap: 9px; }.topbar h1 { max-width: 38vw; overflow: hidden; font-size: 17px; white-space: nowrap; text-overflow: ellipsis; }.topbar .eyebrow, .topbar-copy > small { display: none; }.topbar .version-pill { width: 32px; height: 32px; padding: 0; overflow: hidden; font-size: 0; }.topbar .version-pill::before { content: "v"; font-size: 10px; }.topbar-actions { gap: 5px; }.channel-pill { max-width: 128px; min-height: 34px; padding: 7px 9px; font-size: 9px; }.channel-switcher { min-width: 112px; max-width: 142px; }.channel-switcher select { min-width: 0; }
    .content { padding: 21px 13px 45px; }
    .page-intro { align-items: flex-start; flex-direction: column; }
    .hero-panel { min-height: 260px; padding: 27px 22px; }.hero-orbit { display: none; }.hero-panel h2 { font-size: 34px; }
    .stat-grid { gap: 9px; }
    .stat-grid > .stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .stat-card { min-height: 104px; padding: 14px; }
    .stat-card strong { font-size: 23px; }
    .dashboard-grid, .tool-grid, .note-grid, .link-grid, .case-grid, .form-grid { grid-template-columns: 1fr; }
    .span-2, .tool-card.span-wide { grid-column: auto; }
    .form-card, .dashboard-grid > .card, .tool-card, .admin-tools { padding: 18px; }
    .connect-panel { align-items: flex-start; flex-direction: column; }.twitch-logo { width: 65px; height: 65px; border-radius: 18px; font-size: 30px; }
    .live-control { grid-template-columns: 1fr; align-items: start; }
    .meta-list { grid-template-columns: 1fr; }
    .inline-form { width: 100%; flex-wrap: wrap; }.inline-form input, .inline-form select { min-width: 0; flex: 1 1 180px; }.inline-form .button { flex: 1 1 auto; }
    .profile-main { align-items: flex-start; flex-direction: column; }.profile-meta { display: grid; grid-template-columns: 1fr; }.profile-meta span { min-width: 0; }
    .profile-identity-card { align-items: flex-start; flex-direction: column; padding: 22px; }.profile-avatar-shell { width: 112px; height: 112px; flex-basis: 112px; border-radius: 24px; }
    .permission-editor-toolbar { align-items: flex-start; flex-direction: column; }.permission-category-actions { display: block; margin: 5px 0 0; }
    .permission-grid, .term-list { grid-template-columns: 1fr; }
    .ban-sync-hero { align-items: flex-start; flex-direction: column; padding: 18px; }
    .sync-action-options { grid-template-columns: 1fr; }
    .sync-channel-option { grid-template-columns: auto auto minmax(0,1fr); }
    .sync-channel-option .verification-label { grid-column: 3; }
    .sync-result-panel, .ban-sync-console, .ban-sync-channels { padding: 18px; }
    .sync-result-row { grid-template-columns: auto 1fr; }
    .result-message { grid-column: 2; text-align: left; }
    .settings-section, .installer-section, .installer-checks { padding: 18px; }
    .route-card { grid-template-columns: 1fr; }
    .route-head { grid-column: auto; }
    .discord-invite, .installer-submit { align-items: stretch; flex-direction: column; }
    .settings-actions .button, .installer-submit .button { width: 100%; }
    .check-grid { grid-template-columns: 1fr; }
    .installer-head { margin-bottom: 28px; }
    .installer-success { margin-top: 25px; padding: 33px 22px; }
    .responsive-table table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
    .responsive-table thead { display: none; }
    .responsive-table tr { padding: 12px 14px; border-top: 1px solid var(--line); }
    .responsive-table td { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 7px 0; border: 0; text-align: right; }
    .responsive-table td::before { content: attr(data-label); color: var(--muted-2); font-size: 8px; font-weight: 850; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
    .responsive-table td:first-child { display: block; text-align: left; }.responsive-table td:first-child::before { display: none; }
    .responsive-table .table-actions { justify-content: flex-end; }
    .login-card { padding: 27px 22px; }
    .app-footer { align-items: flex-start; flex-direction: column; gap: 3px; }
    .color-editor-grid { grid-template-columns: 1fr; }
    .design-shell-preview { grid-template-columns: 92px 1fr; min-height: 260px; }.preview-card { height: 118px; }
    .menu-editor-row { grid-template-columns: 72px 65px 1fr; }.menu-editor-row > label:nth-of-type(4), .menu-editor-row > code { grid-column: span 1; }
    .page-editor-row { grid-template-columns: 1fr; }
    .sticky-editor-actions { align-items: stretch; flex-direction: column; }.sticky-editor-actions .button { width: 100%; }
    .template-list { grid-template-columns: 1fr; }
    .embed-field-row { grid-template-columns: 1fr 32px; }.embed-field-row > label { grid-column: 1 / -1; }.embed-field-row > .check-label { grid-column: 1; }.embed-field-row > .icon-button { grid-column: 2; }
    .emoji-picker { grid-template-columns: repeat(6,1fr); }
    .sticky-studio-actions { grid-template-columns: 1fr; }
    .discord-preview-card { padding: 15px; }
    .discord-avatar { width: 32px; height: 32px; }
    .update-history { margin: 18px -18px -18px; }
    .settings-tabs { position: static; overflow-x: auto; flex-wrap: nowrap; }.settings-tabs a { flex: 0 0 auto; }
    .module-grid, .discord-resource-grid, .event-check-grid, .migration-summary { grid-template-columns: 1fr; }
    .news-card > header, .news-card > footer { flex-direction: column; }
    .version-dialog header, .version-dialog section { padding: 18px; }
    .update-preflight, .system-status-grid { grid-template-columns: 1fr; }
    .migration-list > article { grid-template-columns: auto 1fr; }.migration-list > article > .job-status { grid-column: 2; }.migration-run-form { grid-column: 1 / -1; width: 100%; }.migration-run-form input, .migration-run-form .button { width: 100%; max-width: none; }
    .critical-inline input[type="password"], .mini-password { width: 100%; max-width: none; }
    .two-factor-actions, .two-factor-status-grid { grid-template-columns: 1fr; }
    .two-factor-intro { align-items: flex-start; }
    .setup-secret-card { grid-template-columns: 1fr; }.setup-secret-card .button { width: 100%; }
    .recovery-code-grid { grid-template-columns: 1fr; }
    .two-factor-confirm-form .form-actions, .two-factor-confirm-form .button { width: 100%; }
    .security-action-card { padding: 15px; }
    .security-check { min-height: 0; grid-template-columns: 38px minmax(0,1fr); gap: 12px; padding: 15px; }
    .security-check-icon { width: 38px; height: 38px; border-radius: 11px; }
    .security-check h3 { font-size: 14px; }
    .system-overview { padding: 18px; }
    .system-status-grid article { min-height: 82px; }
    .button-builder-grid { grid-template-columns: 1fr; }
    .ticket-action-bar, .compact-danger-zone { align-items: stretch; flex-direction: column; }
    .ticket-action-bar form, .ticket-action-bar .button, .compact-danger-zone .button { width: 100%; }
    .ticket-reply-editor > .button { width: 100%; justify-self: stretch; }
    .compact-list > article { align-items: flex-start; flex-direction: column; }
    .compact-list > article .table-actions { width: 100%; justify-content: flex-end; }
    .transcript-entry summary { flex-direction: column; }
    .dashboard-activity-grid, .bot-status-grid, .worker-help-grid { grid-template-columns: 1fr; }
    .dashboard-activity-card { min-height: 0; padding: 18px; }
    .dashboard-empty-state { min-height: 180px; }
    .bot-status-intro .page-intro-actions { width: 100%; justify-content: space-between; }
    .bot-status-intro .page-intro-actions .button { flex: 1; }
    .bot-metric-card { min-height: 132px; }
    .bot-settings-card { height: auto; }
    .connection-readonly { grid-template-columns: 1fr; }
    .worker-primary-control { align-items: stretch; flex-direction: column; }
    .worker-primary-control .button { width: 100%; }
    .worker-file-log p { grid-template-columns: 1fr; gap: 3px; }
}

@media (max-width: 390px) {
    .recaptcha-shell { justify-content: flex-start; min-height: 65px; }
    .recaptcha-shell .g-recaptcha { width: 304px; margin-bottom: -14px; transform: scale(.82); transform-origin: left top; }
}

@media (max-width: 480px) {
    .menu-button { width: 38px; height: 38px; padding: 0; flex: 0 0 auto; border-radius: 9px; background: rgba(255,255,255,.035); }
    .topbar h1 { max-width: 25vw; }
    .channel-pill { max-width: 104px; }
    .channel-switcher { min-width: 88px; max-width: 108px; padding-right: 5px; padding-left: 6px; }
    .content { padding-right: 11px; padding-left: 11px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { min-height: 104px; padding: 13px; grid-template-columns: auto 1fr; gap: 0 10px; }
    .stat-card > span { width: 34px; height: 34px; }
    .stat-card strong { font-size: 22px; }
    .stat-card small { font-size: 8px; }
    .button-row { align-items: stretch; flex-direction: column; }
    .button-row .button, .button-row form, .button-row form .button { width: 100%; }
    .section-head { align-items: flex-start; }
    .section-head > .button, .section-head > form { flex: 0 0 auto; }
    .login-card { padding: 25px 19px; border-radius: 16px; }
    .login-brand { margin-bottom: 24px; }
    .login-card h1 { font-size: 27px; }
    .otp-input { font-size: 17px; letter-spacing: .16em; }
    .profile-meta { grid-template-columns: 1fr; }
    .form-actions, .form-actions .button { width: 100%; }
    .setup-secret-card code { font-size: 11px; letter-spacing: .045em; }
    .dashboard-feed-item { grid-template-columns: 32px minmax(0,1fr); }
    .dashboard-feed-item > .badge { grid-column: 2; justify-self: start; }
    .dashboard-activity-card .section-head { align-items: flex-start; flex-direction: column; }
    .dashboard-activity-card .section-head > a { padding: 4px 0; }
    .bot-status-intro .page-intro-actions { align-items: stretch; flex-direction: column; }
    .bot-status-intro .page-intro-actions > * { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

@media print {
    body * { visibility: hidden; }
    .recovery-code-panel, .recovery-code-panel * { visibility: visible; }
    .recovery-code-panel { position: fixed; inset: 20px; color: #111; background: #fff; border-color: #aaa; box-shadow: none; }
    .recovery-code-panel .button-row { display: none; }
    .recovery-code-grid code { color: #111; background: #fff; border-color: #bbb; }
}

/* Discord-Login (1.9.0) */
.button-discord { background: linear-gradient(135deg,#5865f2,#3b44a8); color: #fff; }
.button-discord:hover { filter: brightness(1.08); }
.login-external { display: grid; gap: 10px; }
.linked-accounts-stack { display: grid; align-content: start; gap: 16px; min-width: 0; }

/* Eigenständiger Linux-Worker per SSH (1.11.0) */
.worker-remote-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.worker-remote-controls form { margin: 0; }

/* Öffentliche Website (1.10.0) */
.site-editor-repeater { display: grid; gap: 10px; margin-top: 10px; }
.site-editor-repeater-row { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }

.site-shell { display: flex; flex-direction: column; min-height: 100vh; background: radial-gradient(circle at 82% -8%, rgba(199,54,74,.12), transparent 34%), radial-gradient(circle at 4% 104%, rgba(236,101,116,.04), transparent 28%), var(--bg); }
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.site-header-inner { width: min(1180px, 100%); margin: 0 auto; padding: 16px clamp(20px, 3.2vw, 48px); display: flex; align-items: center; gap: 18px; }
.site-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; margin-right: auto; color: var(--text); }
.site-nav-toggle { display: none; color: white; background: none; border: 0; font-size: 22px; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav a { padding: 8px 12px; color: var(--muted); border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 750; }
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,.045); }
.site-nav a.active { color: var(--purple-2); background: var(--purple-soft); border-color: var(--accent-border); }
.site-main { flex: 1; width: min(1180px, 100%); margin: 0 auto; padding: 72px clamp(20px, 3.2vw, 48px) 100px; }

.site-hero { max-width: 740px; margin: 0 auto 70px; text-align: center; display: grid; gap: 15px; justify-items: center; }
.site-hero .eyebrow { font-size: 10px; }
.site-hero h1 { margin: 0; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -.03em; }
.site-hero-text { margin: 0; max-width: 600px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.site-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

.site-section { margin: 76px 0; }
.site-section-title { margin: 0 0 30px; text-align: center; font-size: 25px; letter-spacing: -.03em; }

.site-feature-grid, .site-step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.site-feature-card, .site-step-card { padding: 22px; display: grid; gap: 10px; align-content: start; }
.site-feature-icon, .site-step-number { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: var(--purple-2); background: var(--purple-soft); border: 1px solid var(--accent-border); border-radius: 12px; font-size: 19px; font-weight: 800; box-shadow: inset 0 1px rgba(255,255,255,.045); }
.site-feature-card h3, .site-step-card h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.site-feature-card p, .site-step-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }

.site-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; text-align: center; }
.site-stat { padding: 22px 16px; display: grid; gap: 5px; }
.site-stat strong { font-size: 21px; letter-spacing: -.02em; color: var(--text); }
.site-stat span { color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.site-cta-card { padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-cta-card h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.02em; }
.site-cta-card p { margin: 0; max-width: 460px; color: var(--muted); font-size: 13px; line-height: 1.55; }

.site-content-page { width: min(760px, 100%); margin: 0 auto; }
.site-content-page header { margin-bottom: 26px; }
.site-content-page h1 { margin: 0 0 10px; font-size: 31px; letter-spacing: -.03em; }

.site-footer { border-top: 1px solid var(--line); margin-top: auto; }
.site-footer-inner { width: min(1180px, 100%); margin: 0 auto; padding: 20px clamp(20px, 3.2vw, 48px); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: 9px; letter-spacing: .03em; }
.site-footer-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer-nav a { color: var(--muted); }
.site-footer-nav a:hover { color: var(--text); }

@media (max-width: 760px) {
    .site-nav-toggle { display: block; }
    .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px clamp(20px, 3.2vw, 48px) 16px; background: color-mix(in srgb, var(--bg) 96%, transparent); border-bottom: 1px solid var(--line); display: none; }
    .site-nav.open { display: flex; }
    .site-nav a { border-radius: 9px; }
    .site-main { padding-top: 54px; }
    .site-section { margin: 56px 0; }
}
