:root {
  --bg: #0b1220;
  --bg-start: #08101d;
  --bg-end: #0f172a;
  --panel: #121a2a;
  --panel-rgb: 18, 26, 42;
  --panel-2: #172133;
  --line: #243146;
  --sidebar-bg: rgba(5,10,18,.65);
  --sidebar-solid: #07101d;
  --field-bg: #0e1625;
  --text: #e7edf7;
  --muted: #93a1b7;
  --green: #22c55e;
  --green-2: #16a34a;
  --accent-rgb: 34, 197, 94;
  --accent-text: #d9f99d;
  --accent-active-text: #bbf7d0;
  --red: #ef4444;
  --yellow: #eab308;
  --amber: #f59e0b;
  --orange: #f97316;
  --purple: #8b5cf6;
}

body.theme-orange {
  --bg: #121417;
  --bg-start: #0b0d10;
  --bg-end: #181b1f;
  --panel: #181b20;
  --panel-rgb: 24, 27, 32;
  --panel-2: #20242a;
  --line: #393e46;
  --sidebar-bg: rgba(9,11,14,.82);
  --sidebar-solid: #0d0f12;
  --field-bg: #12151a;
  --green: #f97316;
  --green-2: #ea580c;
  --accent-rgb: 249, 115, 22;
  --accent-text: #fed7aa;
  --accent-active-text: #ffedd5;
}

body.theme-green {
  --bg: #111614;
  --bg-start: #0a0e0c;
  --bg-end: #171c1a;
  --panel: #171c1a;
  --panel-rgb: 23, 28, 26;
  --panel-2: #1e2522;
  --line: #37413d;
  --sidebar-bg: rgba(8,12,10,.8);
  --sidebar-solid: #0c110f;
  --field-bg: #111714;
  --green: #22c55e;
  --green-2: #15803d;
  --accent-rgb: 34, 197, 94;
  --accent-text: #d9f99d;
  --accent-active-text: #bbf7d0;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: "Montserrat", Arial, sans-serif; font-weight: 400; font-size: 15px; background: linear-gradient(180deg,var(--bg-start),var(--bg-end)); color: var(--text); overflow-x: auto; }
button, input, select, textarea {
  font-family: inherit;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.app-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.mobile-menu-toggle,
.mobile-menu-close,
.mobile-menu-backdrop { display: none; }
.sidebar { background: var(--sidebar-bg); border-right: 1px solid var(--line); padding: 24px 18px; display:flex; flex-direction:column; gap:18px; position:sticky; top:0; height:100vh; height:100dvh; overflow-y:auto; overscroll-behavior:contain; min-height:0; scrollbar-width: thin; scrollbar-color: rgba(var(--accent-rgb),.45) rgba(15,23,42,.45); }
.brand, .login-brand { display:flex; gap:12px; align-items:center; }
.brand-logo { width: 54px; height: 54px; aspect-ratio: 1 / 1; object-fit: cover; object-position: center center; border-radius: 14px; background:#0a0f18; padding:3px; box-shadow: 0 0 0 1px rgba(34,197,94,.16); }
.brand-title { font-size: 1.1rem; font-weight: 700; }
.brand-sub { color: var(--muted); font-size: .85rem; }
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: rgba(15,23,42,.45); border-radius: 999px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb),.45); border-radius: 999px; }
.nav { display:flex; flex-direction:column; gap:6px; min-height:0; padding-right:4px; }
.nav a { padding: 9px 11px; border-radius: 10px; color: var(--text); background: transparent; border:1px solid transparent; transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
.nav a:hover, .nav a:focus { background: rgba(var(--accent-rgb),.1); border-color: rgba(var(--accent-rgb),.2); color:var(--accent-text); outline:none; transform: translateX(2px); }
.nav a.is-active { background: rgba(var(--accent-rgb),.16); border-color: rgba(var(--accent-rgb),.38); color:var(--accent-active-text); box-shadow: inset 3px 0 0 rgba(var(--accent-rgb),.85); }
.menu-alert {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  margin-left:6px;
  border-radius:999px;
  background: rgba(239,68,68,.22);
  border:1px solid rgba(239,68,68,.4);
  color:#fecaca;
  font-size:.78rem;
  font-weight:800;
}
.sidebar-footer { margin-top:auto; display:grid; gap:12px; flex-shrink:0; }
.user-chip { padding:10px 12px; background:var(--panel); border:1px solid var(--line); border-radius:12px; }
.user-chip-link { display:block; font-weight:700; }
.user-chip-link:hover, .user-chip-link:focus { background: rgba(var(--accent-rgb),.1); outline:none; }
.main-content {
    display: block;
    padding: 32px 24px;
    align-self: start;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 1081px) {
    .app-shell {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        min-height: 100vh;
    }

    .sidebar {
        position: sticky;
        left: auto;
        top: 0;
        width: 260px;
        height: 100vh;
        height: 100dvh;
        z-index: 20;
    }

    .main-content {
        width: auto;
        margin-left: 0;
    }
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148,163,184,.28);
    border-radius: 999px;
    background: rgba(148,163,184,.12);
    color: rgba(231,237,247,.88);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    opacity: .72;
    transition: opacity .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.back-to-top:hover,
.back-to-top:focus {
    opacity: 1;
    background: rgba(148,163,184,.18);
    border-color: rgba(148,163,184,.42);
    outline: none;
    transform: translateY(-2px);
}
.card, .stat-card { background: rgba(var(--panel-rgb),.92); border:1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.page-head { margin-bottom: 20px; }
.page-head.split { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; }
h1,h2 { margin:0 0px 8px; }
h1,h2,h3,strong,th,.btn,.brand-title,.nav-section-title { font-weight: 700; }
h2 { font-size:1.1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.btn, .btn-primary, .btn-outline, .btn-danger { border:none; border-radius:10px; padding:0 18px; height:42px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; font-weight:600; font-size:14px; line-height:1; box-sizing:border-box; }
.btn-full { width:100%; }
.btn-small { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-primary { background: linear-gradient(180deg,var(--green),var(--green-2)); color:white; }
.btn-outline { background: rgba(148,163,184,.07); color: var(--text); border:1px solid var(--line); }
.btn-outline:hover,
.btn-outline:focus { background: rgba(148,163,184,.12); border-color: rgba(148,163,184,.34); outline:none; }
.btn-danger { background: rgba(239,68,68,.14); color: #fecaca; border:1px solid rgba(239,68,68,.28); }
.flash { padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; }
.flash-success { background: rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.24); color:#bbf7d0; }
.flash-error { background: rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.24); color:#fecaca; }
.flash-link { color: #fff; text-decoration: underline; font-weight: 800; }
.stats-grid { display:grid; gap:16px; margin-bottom:20px; }
.stats-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stats-grid.five { grid-template-columns: repeat(5, minmax(0,1fr)); }
.stats-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.stat-card span { display:block; color: var(--muted); margin-bottom: 8px; }
.stat-card strong { font-size: 2rem; }
.stat-card.compact strong { font-size: 1.5rem; }
.stat-card-link { display: block; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.stat-card-link:hover, .stat-card-link:focus { border-color: rgba(var(--accent-rgb),.42); background: rgba(var(--accent-rgb),.08); transform: translateY(-2px); outline: none; }
.two-col { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:20px; }
    .two-col.wide-left {
        display: grid;
        grid-template-columns: 1.7fr .9fr;
        gap: 20px;
        align-items: start; /* DAS ist der Fix */
    }
.section-head, .space-between { display:flex; justify-content:space-between; gap:16px; }
.space-between.start { align-items:flex-start; }
.space-between.center { align-items:center; }
.section-head.center { align-items:flex-start; margin-bottom:18px; }
.list-stack { display:grid; gap:12px; }
.list-item { display:flex; justify-content:space-between; align-items:center; gap:12px; background: var(--panel-2); border:1px solid var(--line); padding: 14px; border-radius: 14px; }
.block-item { align-items:flex-start; }
.badge, .tag { display:inline-flex; align-items:center; border-radius:999px; padding:7px 12px; font-size:.85rem; font-weight:600; border:1px solid transparent; gap:8px; line-height:1; width:auto; }
.tag { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text); }
.tag-warn { background: rgba(234,179,8,.12); color:#fde68a; border-color: rgba(234,179,8,.25); }
.badge-gray { background: rgba(148,163,184,.14); border-color: rgba(148,163,184,.28); color:#cbd5e1; }
.badge-green { background: rgba(34,197,94,.16); border-color: rgba(34,197,94,.28); color:#bbf7d0; }
.badge-blue { background: rgba(59,130,246,.16); border-color: rgba(59,130,246,.3); color:#bfdbfe; }
.badge-yellow { background: rgba(234,179,8,.16); border-color: rgba(234,179,8,.28); color:#fde68a; }
.badge-amber { background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.28); color:#fcd34d; }
.badge-compact { width: fit-content; max-width: max-content; white-space: nowrap; }
.badge-orange { background: rgba(249,115,22,.16); border-color: rgba(249,115,22,.28); color:#fdba74; }
.badge-red { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.28); color:#fca5a5; }
.badge-red-strong { background: rgba(127,29,29,.55); border-color: rgba(239,68,68,.45); color:#fee2e2; }
.badge-purple { background: rgba(139,92,246,.16); border-color: rgba(139,92,246,.28); color:#ddd6fe; }
.card { min-width: 0; }
.table-wrap { display: block; width: 100%; max-width: none; overflow-x: visible; overflow-y: visible; }
.table-wrap > table { width: 100%; min-width: 100%; }
.players-table-wrap {
    padding: 8px 0 24px;
}
.players-table {
    min-width: 0;
    table-layout: fixed;
}
.players-table th,
.players-table td { white-space: normal; }
.players-table th:first-child,
.players-table td:first-child,
.players-table th:nth-child(3),
.players-table td:nth-child(3),
.players-table th:nth-child(4),
.players-table td:nth-child(4),
.players-table th:nth-child(5),
.players-table td:nth-child(5) {
    white-space: nowrap;
}

.players-table th:first-child,
.players-table td:first-child {
    width: 88px;
}

.players-table th:nth-child(2),
.players-table td:nth-child(2) {
    width: auto;
}

.players-table th:nth-child(3),
.players-table td:nth-child(3) {
    width: 105px;
}

.players-table th:nth-child(4),
.players-table td:nth-child(4) {
    width: 190px;
}

.players-table th:nth-child(5),
.players-table td:nth-child(5) {
    width: 145px;
}

.player-id-row {
    display: grid;
    gap: 5px;
    margin-top: 7px;
}

.player-id-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.25;
    cursor: pointer;
}

.player-id-line > span {
    flex: 0 0 78px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.player-id-line > strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #c7d7ea;
    font-size: .84rem;
}

.player-id-line:hover > strong,
.player-id-line:focus > strong {
    color: var(--text);
}

.player-id-empty {
    cursor: default;
    opacity: .65;
}

.player-id-empty:hover > strong,
.player-id-empty:focus > strong {
    color: #c7d7ea;
}

.player-incident-mobile {
    display: none;
}

@media (max-width: 1050px) {
    .players-table th:nth-child(3),
    .players-table td:nth-child(3) {
        display: none;
    }

    .player-id-row {
        display: flex;
        gap: 14px;
        align-items: center;
        flex-wrap: nowrap;
    }

    .player-id-line {
        width: 34px;
        height: 30px;
        min-width: 34px;
        flex: 0 0 34px;
        justify-content: center;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: rgba(255,255,255,.045);
    }

    .player-id-line > span {
        flex: 0 0 auto;
        font-size: 0;
        gap: 0;
    }

    .player-id-line > strong {
        display: none;
    }

    .players-table th:nth-child(4),
    .players-table td:nth-child(4) {
        width: 175px;
    }

    .player-incident-mobile {
        display: inline-flex;
        align-items: center;
        width: fit-content;
        margin-top: 4px;
        padding: 2px 7px;
        border: 1px solid var(--line);
        border-radius: 999px;
        color: var(--muted);
        background: rgba(255,255,255,.035);
        font-size: .78rem;
        line-height: 1.35;
    }
}
table { width:100%; border-collapse: collapse; }
th { padding: 12px 10px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
td { padding: 16px 10px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
tbody tr {
    transition: background-color .16s ease;
}
tbody tr:hover {
    background: rgba(148, 163, 184, .035);
}
.toolbar, .inline-form { display:flex; gap:12px; flex-wrap:wrap; align-items:end; }
.stack-form { display:grid; gap:12px; }
.note-compose { display: grid; gap: 12px; }
.note-compose > summary { width: fit-content; list-style: none; cursor: pointer; }
.note-compose > summary::-webkit-details-marker { display: none; }
.note-compose > summary.sr-only { width: 1px; }
.note-create-toggle > summary {
    width: fit-content;
    list-style: none;
    cursor: pointer;
}
.note-create-toggle > summary::-webkit-details-marker { display: none; }
.player-note-grid {
    display: grid;
    gap: 16px;
}
.player-note-item {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15,23,42,.48);
}
.player-note-content {
    display: grid;
    gap: 12px;
}
.player-note-main {
    min-width: 0;
}
.player-note-meta {
    line-height: 1.55;
}
.player-task-label {
    color: #fcd34d;
    font-weight: 800;
}
.player-note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.player-note-complete-form {
    width: fit-content;
}
.plain-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
}
.plain-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--purple);
}
label { display:grid; gap:6px; color: var(--muted); }
.field-group { display: grid; gap: 8px; color: var(--muted); }
.share-user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.check-card { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.03); color: var(--text); cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.check-card:hover { border-color: rgba(61, 220, 151, .45); background: rgba(61, 220, 151, .08); transform: translateY(-1px); }
.check-card input { width: 16px; height: 16px; accent-color: var(--accent); }
.check-card span { min-width: 0; overflow-wrap: anywhere; }

.reason-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(239,68,68,.38);
    background: rgba(127,29,29,.22);
    color: #fecaca;
    font-weight: 800;
    cursor: help;
}

.trash-table {
    table-layout: fixed;
}

.trash-table-compact th:nth-child(1),
.trash-table-compact td:nth-child(1) {
    width: 48%;
}

.trash-table-compact th:nth-child(2),
.trash-table-compact td:nth-child(2) {
    width: 24%;
}

.trash-table-compact th:nth-child(3),
.trash-table-compact td:nth-child(3) {
    width: 86px;
    text-align: center;
}

.trash-table-compact th:nth-child(4),
.trash-table-compact td:nth-child(4) {
    width: 156px;
}

.trash-table th,
.trash-table td {
    vertical-align: middle;
}

.trash-table td {
    padding-top: 16px;
    padding-bottom: 16px;
}

.trash-id-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
}

.trash-id-chip {
    max-width: 148px;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.045);
    color: var(--muted);
    font: inherit;
    font-size: .82rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trash-id-chip:hover,
.trash-id-chip:focus {
    border-color: rgba(61,220,151,.38);
    background: rgba(61,220,151,.08);
    color: var(--text);
}

.trash-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.trash-actions form {
    margin: 0;
}

.btn-icon-only {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1rem;
}
input[type=text], input[type=search], input[type=password], input[type=date], input[type=file], input[type=url], input[type=number], select, textarea { width:100%; border-radius:12px; border:1px solid var(--line); background:var(--field-bg); color:var(--text); padding:12px 13px; font-size:1em; line-height:1.5; }
input[type=search] { appearance: none; -webkit-appearance: none; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(var(--accent-rgb),.28); border-color: rgba(var(--accent-rgb),.4); }
.detail-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px; }
.detail-grid > div { background: var(--panel-2); border:1px solid var(--line); border-radius:14px; padding:14px; }
.detail-grid > div > span { display:block; color: var(--muted); margin-bottom:6px; font-size:.85rem; }
.detail-grid strong { font-size:1rem; }
.stack-gap { display:grid; gap:20px; }
.two-up { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; }
.top-gap { margin-top:16px; }
.top-gap-half { margin-top:8px; }
.inline-gap { display:flex; gap:8px; align-items:center; }
.wrap { flex-wrap:wrap; }
.anchor-target { display:block; scroll-margin-top: 18px; }
.image-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.image-card { padding:10px; border-radius:14px; border:1px solid var(--line); background: var(--panel-2); }
.image-card img { width:100%; height:110px; object-fit:cover; border-radius:10px; }
.image-card a { display:block; cursor: zoom-in; }
.media-thumb { width:96px; height:64px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }

.incident-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.incident-image-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    align-content: start;
}

.incident-image-card a {
    display: block;
    cursor: zoom-in;
}

.incident-image-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: #020617;
}

.incident-image-card input[type="text"] {
    min-height: 38px;
}

.incident-image-card .btn-small {
    width: fit-content;
}

.incident-suggestion-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 8px;
}

.incident-suggestion-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(148,163,184,.22);
    border-radius: 8px;
    background: rgba(148,163,184,.08);
    color: var(--text);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.incident-suggestion-chip:hover,
.incident-suggestion-chip:focus {
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.35);
    outline: none;
    transform: translateY(-1px);
}

.rule-template-list,
.rule-template-edit-list {
    display: grid;
    gap: 8px;
}

.rule-template-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(15,23,42,.62);
}

.rule-template-row.is-dragging {
    opacity: .58;
}

.drag-handle {
    color: var(--muted);
    cursor: grab;
    font-weight: 800;
}

.rule-template-edit-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.rule-template-edit-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.grow {
    flex: 1 1 320px;
}

.important-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.important-image-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    align-content: start;
}

.important-image-card a {
    display: block;
    cursor: zoom-in;
}

.important-image-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: #020617;
}

.important-image-meta {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.important-image-used {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255,255,255,0.03);
    font-size: .92rem;
}

.important-image-used label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.important-image-used input {
    width: 16px;
    height: 16px;
    accent-color: #22c55e;
}

.important-image-used input:checked + span {
    color: #bbf7d0;
    font-weight: 700;
}

.important-image-used.is-readonly {
    cursor: default;
}

.important-image-card input[type="text"] {
    min-height: 42px;
}

.important-image-card .btn-small {
    width: fit-content;
}

.important-image-copy {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 1rem;
    background: rgba(2,6,23,.78);
    backdrop-filter: blur(4px);
}

.important-image-copy.is-copied {
    border-color: rgba(34,197,94,.58);
    color: #bbf7d0;
}
.lightbox-open-body { overflow:hidden; }
.lightbox-overlay { position:fixed; inset:0; z-index:1000; background:rgba(3,7,18,.86); display:grid; place-items:center; padding:24px; }
.lightbox-overlay[hidden] { display:none; }
.lightbox-panel { width:min(1100px, 100%); max-height:calc(100vh - 48px); display:grid; gap:14px; }
.lightbox-head { display:flex; justify-content:space-between; align-items:center; gap:14px; color:var(--text); }
.lightbox-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lightbox-stage { position:relative; display:grid; place-items:center; min-height:0; }
.lightbox-image { width:100%; max-height:calc(100vh - 130px); object-fit:contain; border-radius:8px; background:#020617; border:1px solid var(--line); }
.lightbox-nav {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:58px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(148,163,184,.28);
  border-radius:999px;
  background:rgba(15,23,42,.48);
  color:rgba(231,237,247,.9);
  font-size:2rem;
  line-height:1;
  cursor:pointer;
  backdrop-filter:blur(8px);
  transition:background .16s ease, border-color .16s ease, opacity .16s ease;
}
.lightbox-nav:hover,
.lightbox-nav:focus { background:rgba(148,163,184,.18); border-color:rgba(148,163,184,.44); outline:none; }
.lightbox-prev { left:14px; }
.lightbox-next { right:14px; }
.lightbox-nav[hidden] { display:none; }
.login-body { min-height:100vh; display:grid; place-items:center; }
.login-shell { width:min(460px, calc(100% - 28px)); display:grid; gap:20px; }
.login-card h1 { margin-bottom:4px; }
@media (max-width: 1080px) {
    .app-shell {
        grid-template-columns: 1fr;
        display: flex;
        min-height: 100vh;
        align-items: stretch;
    }
  .sidebar { position:static; height:auto; overflow:visible; }
  .nav { overflow:visible; padding-right:0; }
  .stats-grid.four, .stats-grid.five, .stats-grid.three, .two-col, .two-col.wide-left, .detail-grid, .two-up { grid-template-columns: 1fr; }
  .main-content { padding: 18px; }
}

/* Strike icons and labels */
.strike-label { display:inline-flex; align-items:center; gap:8px; line-height:1; white-space:nowrap; }
.strike-label-sm { gap:6px; }
.strike-icon,
.strike-icon-sm,
.strike-icon-md,
.strike-icon-lg {
  display:inline-block;
  flex:0 0 auto;
  object-fit:contain;
  background:transparent !important;
  border:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  vertical-align:middle;
}
.strike-icon-sm { width:18px !important; height:18px !important; }
.strike-icon-md { width:28px !important; height:28px !important; }
.strike-icon-lg { width:84px !important; height:84px !important; }
.strike-emoji,
.strike-emoji-sm,
.strike-emoji-md,
.strike-emoji-lg {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  background:transparent !important;
  border:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  vertical-align:middle;
}
.strike-emoji-sm { font-size:18px !important; }
.strike-emoji-md { font-size:26px !important; }
.strike-emoji-lg { font-size:84px !important; }
.strike-text { display:inline; line-height:1; white-space:nowrap; }

/* Keep player detail strike badges consistent with players.php */
.player-detail-strike {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
}
.player-detail-strike-stat {
  min-height: 0;
  margin-top: 4px;
}
.player-detail-strike .badge,
.player-detail-strike-stat .badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 7px 12px;
  min-height: 0;
  line-height: 1;
  width: auto;
}
.player-detail-strike .strike-label,
.player-detail-strike-stat .strike-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
}
.player-detail-strike .strike-text,
.player-detail-strike-stat .strike-text {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  white-space: nowrap;
}

/* Nav subsections */
.nav-section { display: grid; gap: 4px; margin-top: 4px; }
.nav-section-title { padding: 8px 11px 2px; font-weight: 700; color: var(--text); }
.nav-sub { display: flex; flex-direction: column; gap: 2px; margin-left: 8px; padding-left: 9px; border-left: 1px solid var(--line); }
.nav-sub a { padding: 6px 10px; border-radius: 9px; color: var(--muted); font-size: 0.93rem; }
.nav-sub a:hover { background: rgba(34,197,94,.08); color: var(--text); }

/* Filters and toggles */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filter-bar input[type="text"], .filter-bar select { min-width: 220px; }
.filter-bar .btn { width: auto; min-width: 0; padding: 10px 16px; }
.toggle-group { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; width: auto; min-width: 0; flex: 0 0 auto; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); cursor: pointer; transition: all .2s ease; }
.toggle input { display: none; }
.toggle span { font-size: 0.95rem; color: var(--muted); white-space: nowrap; }
.toggle:hover { background: rgba(34,197,94,0.08); }
.toggle input:checked + span { color: #22c55e; font-weight: 600; }
.toggle input:checked + span::before { content: "\2713 "; color: #22c55e; }
.toggle.is-active { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.36); }
.toggle.is-active span { color: #bbf7d0; font-weight: 700; }
.event-tag-badge,
.event-tag-toggle {
    border-color: var(--line);
}
.event-tag-small {
    background: rgba(59,130,246,.14);
    border-color: rgba(59,130,246,.34);
    color: #bfdbfe;
}
.event-tag-medium {
    background: rgba(249,115,22,.14);
    border-color: rgba(249,115,22,.34);
    color: #fdba74;
}
.event-tag-large {
    background: rgba(139,92,246,.16);
    border-color: rgba(139,92,246,.36);
    color: #ddd6fe;
}
.event-tag-golden_hypsi {
    background: rgba(234,179,8,.14);
    border-color: rgba(234,179,8,.32);
    color: #fde68a;
}
.event-tag-toggle.is-active span,
.event-tag-toggle span {
    color: inherit;
}

.empty-state { padding: 18px; text-align: center; color: var(--muted); background: rgba(255,255,255,0.03); border: 1px dashed var(--line); border-radius: 14px; }

.incident-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.incident-actions .btn,
.incident-actions .btn-danger {
    min-width: 130px;
}

/* etwas mehr Abstand fÃ¼r Bearbeiten/LÃ¶schen */
.incident-actions {
    margin-top: 14px;
}

.player-main-column {
    min-width: 0;
}

    .activity-log-scroll::-webkit-scrollbar {
        width: 8px;
    }

    .activity-log-scroll::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.14);
        border-radius: 999px;
    }

    .activity-log-scroll::-webkit-scrollbar-track {
        background: transparent;
    }


.player-main-column,
.activity-column {
    min-width: 0;
}


.activity-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.activity-log-scroll {
    max-height: 370px;
    overflow-y: auto;
}

/* =========================
   INCIDENTS / VERSTÃ–SSE
   ========================= */

.incidents-section {
    margin-top: 32px;
    padding-top: 8px;
}

.incident-card {
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: none;
    position: relative;
}

    .incident-card::before {
        display: none !important;
        content: none !important;
    }

.incidents-section .list-stack > .incident-card + .incident-card {
    margin-top: 22px;
}

.incidents-section .list-stack > .incident-card:nth-child(odd) {
    background: rgba(255,255,255,0.025);
}

.incidents-section .list-stack > .incident-card:nth-child(even) {
    background: rgba(255,255,255,0.045);
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 14px;
}

.incident-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.incident-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-top: 0;
}

    .incident-actions .btn,
    .incident-actions .btn-danger {
        min-width: 130px;
    }

.incident-card p {
    margin: 14px 0 0;
}

.incident-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin-top: 18px;
}

    .incident-meta > div {
        min-width: 0;
        padding: 16px 18px;
        border-radius: 12px;
        background: rgba(255,255,255,0.015);
        border: 1px solid rgba(255,255,255,0.05);
        box-shadow: none;
    }

.incident-upload-toggle {
    margin-top: 14px;
}

    .incident-upload-toggle summary {
        list-style: none;
        cursor: pointer;
        width: fit-content;
    }

        .incident-upload-toggle summary::-webkit-details-marker {
            display: none;
        }

    .incident-upload-toggle[open] summary {
        margin-bottom: 10px;
    }

.incident-upload-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    align-items: stretch;
}

    .incident-upload-form input[type="file"],
    .incident-upload-form input[type="text"] {
        width: 100%;
    }

    .incident-upload-form .btn {
        width: fit-content;
    }

.incident-detail-fields {
    display: grid;
    gap: 12px;
}

.incident-detail-fields[hidden] {
    display: none;
}

.image-grid {
    margin-top: 14px;
}

@media (max-width: 1080px) {
    .incident-header {
        flex-direction: column;
        align-items: stretch;
    }

    .incident-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .incident-meta {
        grid-template-columns: 1fr;
    }
}

.incident-card p {
    margin: 16px 0 0;
}

.incidents-section .list-stack {
    gap: 22px;
}

    .incidents-section .list-stack > .incident-card {
        width: 100%;
    }

.incident-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin-top: 18px;
}

    .incident-meta > div {
        min-width: 0;
        padding: 16px 18px;
        border-radius: 12px;
        background: rgba(255,255,255,0.02);
        border: 1px solid rgba(255,255,255,0.06);
        box-shadow: none;
    }

.incident-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 14px;
}

.incident-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.card {
    padding: 24px;
}

.section-head {
    margin-bottom: 18px;
}

html {
    scroll-behavior: smooth;
}

/* Mehr Luft fÃ¼r Ãœberschriften in Cards */
.card > .section-head:first-child,
.card > h2:first-child {
    padding-top: 10px;
}

.card > .section-head:first-child {
    margin-bottom: 18px;
}

td {
    vertical-align: middle;
    line-height: 1.4;
}

    td .badge {
        display: inline-flex;
        align-items: center;
    }

table td .inline-gap.wrap {
    margin-top: 0 !important;
    display: inline-flex;
    align-items: center;
}

.garage-check-form {
    display: inline-flex;
    margin: 0;
}

.garage-check-btn {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .garage-check-btn.is-checked {
        background: rgba(34,197,94,0.12);
        border-color: rgba(34,197,94,0.28);
    }

.garage-check-readonly {
    cursor: default;
    opacity: .8;
}

.garage-alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(245,158,11,0.12), rgba(245,158,11,0.06));
    border: 1px solid rgba(245,158,11,0.28);
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

    .garage-alert:hover {
        transform: translateY(-1px);
        border-color: rgba(245,158,11,0.4);
        background: linear-gradient(180deg, rgba(245,158,11,0.16), rgba(245,158,11,0.08));
    }

.garage-alert-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fcd34d;
    background: rgba(245,158,11,0.14);
    border: 1px solid rgba(245,158,11,0.24);
}

.garage-alert-content {
    display: grid;
    gap: 8px;
}

.garage-alert-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fde68a;
}

.garage-alert-item {
    color: var(--text);
    line-height: 1.45;
}

.stat-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
}

.stat-row-link,
.table-link {
    transition: border-color .16s ease, background .16s ease, transform .16s ease, color .16s ease;
}

.stat-row-link:hover,
.stat-row-link:focus {
    border-color: rgba(34,197,94,.38);
    background: rgba(34,197,94,.08);
    transform: translateY(-1px);
    outline: none;
}

.table-link {
    color: #bbf7d0;
    font-weight: 700;
}

.table-link:hover,
.table-link:focus {
    color: #fff;
    text-decoration: underline;
    outline: none;
}

.stat-list-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.stat-list-value {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--text);
}
.stats-bottom-block {
    margin-top: 28px;
}

.player-markings-cell {
    vertical-align: middle;
}

.player-markings-icons {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 0 !important;
}

.marking-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 1.1rem;
    line-height: 1;
    cursor: default;
}

.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}


/* Rollenfarben */
.tag-owner {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.tag-admin {
    background: rgba(0, 150, 255, 0.12);
    color: #4db3ff;
    border: 1px solid rgba(0, 150, 255, 0.25);
}

.tag-trial {
    background: rgba(180, 180, 180, 0.12);
    color: #aaa;
    border: 1px solid rgba(180, 180, 180, 0.25);
}

.link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.admin-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text);
}

.admin-user-toggle:hover {
    color: #bbf7d0;
}

.admin-user-name-cell {
    min-width: 180px;
}

.admin-own-account {
    display: block;
    margin-top: 5px;
    padding-left: 26px;
}

.admin-user-table th:last-child,
.admin-user-table td:last-child {
    text-align: right;
}

.admin-user-actions {
    width: 100%;
    justify-content: flex-end;
}

.admin-user-actions form {
    margin: 0;
}

.toggle-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--muted);
    transition: transform .18s ease, color .18s ease;
}

.admin-user-toggle[aria-expanded="true"] .toggle-caret {
    transform: rotate(90deg);
    color: var(--green);
}

.admin-user-details td {
    padding-top: 0;
}

.admin-user-detail-panel {
    margin: 0 0 8px 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
}

.admin-user-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px 18px;
    align-items: end;
}

.admin-user-detail-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: .85rem;
}

.admin-user-detail-grid strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

.admin-history-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 8px;
}

.admin-history-list div {
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    background: rgba(255,255,255,0.025);
}

.admin-history-list span {
    margin-bottom: 4px;
    font-size: .78rem;
}

.admin-history-list strong {
    display: block;
    font-size: 1.05rem;
}

.profile-password-box {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-stat-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-2);
}

.profile-stat-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: .85rem;
}

.profile-stat-grid strong {
    font-size: 1.45rem;
}

.profile-readonly-grid {
    grid-template-columns: 1fr;
}

.note-board-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-2);
}

.note-board-card-due {
    border-color: rgba(239,68,68,.32);
    background: rgba(239,68,68,.08);
}

.note-text {
    margin-bottom: 10px;
}

.note-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: .82rem;
}

.note-due {
    color: #bbf7d0;
}

.note-due-overdue {
    color: #fecaca;
    font-weight: 700;
}

.team-comments {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    scroll-behavior: smooth;
}

.team-comments-scroll {
    max-height: 620px;
    overflow-y: auto;
    padding-right: 6px;
}

.team-comments-scroll::-webkit-scrollbar {
    width: 8px;
}

.team-comments-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .35);
    border-radius: 999px;
}

.team-comments-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 999px;
}

.team-comment {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 12px 12px 22px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
}

.comment-edited {
    position: absolute;
    right: 12px;
    bottom: 8px;
    color: var(--muted);
    font-size: .72rem;
    opacity: .75;
}

.team-comment .btn-danger {
    height: 34px;
    padding: 0 12px;
}

.note-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dashboard-notes-card {
    margin-bottom: 20px;
}

.dashboard-note-row {
    margin-bottom: 20px;
}

.dashboard-section {
    margin-top: 34px;
    margin-bottom: 34px;
}

.dashboard-section-separated {
    margin-top: 52px;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    padding: 42px 42px;
    border: 1px solid rgba(148,163,184,.2);
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(5,10,18,.78) 0%, rgba(7,17,25,.62) 48%, rgba(8,18,20,.08) 76%, rgba(8,18,20,0) 100%),
        linear-gradient(180deg, rgba(5,10,18,.04) 0%, rgba(5,10,18,.34) 100%),
        url("dashboard-hero-raptor.webp") right center / auto 100% no-repeat,
        #061016;
    box-shadow: 0 18px 52px rgba(0,0,0,.28);
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(1,8,9,.38) 100%);
    opacity: .55;
    pointer-events: none;
}

.dashboard-hero-copy {
    position: relative;
    z-index: 2;
    width: min(70%, 980px);
    max-width: 980px;
    text-shadow: 0 2px 18px rgba(0,0,0,.68);
}

.dashboard-hero h1 {
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 1;
    margin-bottom: 14px;
}

.dino-greeting {
    margin: 0;
    max-width: 100%;
    color: #c8d8ea;
    font-size: 1.24rem;
    line-height: 1.72;
}

.dino-greeting strong {
    color: #f8fafc;
}

.dashboard-section > .section-head {
    margin-bottom: 12px;
}

.dashboard-section .period-grid {
    margin-bottom: 0;
}

.dashboard-note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-cc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-cc-alert {
    width: fit-content;
    max-width: 100%;
    margin: -2px 0 14px;
    padding: 9px 12px;
    border: 1px solid rgba(239,68,68,.28);
    border-radius: 10px;
    background: rgba(127,29,29,.22);
    color: #fecaca;
    font-size: .92rem;
    line-height: 1.45;
}

.dashboard-cc-alert a {
    color: #fee2e2;
    font-weight: 700;
}

.dashboard-cc-alert-orange {
    border-color: rgba(245,158,11,.34);
    background: rgba(120,53,15,.24);
    color: #fed7aa;
}

.dashboard-cc-alert-orange a {
    color: #ffedd5;
}

.points-reminder {
    margin-bottom: 20px;
    border-color: rgba(61, 220, 151, .24);
    background: linear-gradient(180deg, rgba(20,83,45,.16), rgba(15,23,42,.08));
}

.points-reminder-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.points-reminder-form {
    flex: 0 0 auto;
}

.points-reminder .check-card {
    min-width: 220px;
    justify-content: center;
}

@media (max-width: 760px) {
    .points-reminder-main {
        flex-direction: column;
    }

    .points-reminder-form,
    .points-reminder .check-card {
        width: 100%;
    }
}

.strike-level-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.strike-level-list {
    display: grid;
    gap: 10px;
}

.strike-level-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15,23,42,.42);
    overflow: hidden;
}

.strike-level-item.is-inactive {
    opacity: .72;
}

.strike-level-item > summary {
    display: grid;
    grid-template-columns: 30px minmax(180px, 1fr) minmax(150px, .7fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    cursor: pointer;
    list-style: none;
}

.strike-level-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 34px;
    border-radius: 8px;
    color: var(--muted);
    cursor: grab;
    user-select: none;
}

.strike-level-drag-handle:hover {
    background: rgba(148,163,184,.09);
    color: var(--text);
}

.strike-level-drag-handle:active {
    cursor: grabbing;
}

.strike-level-item.is-dragging {
    opacity: .45;
    border-color: rgba(34,197,94,.5);
}

.settings-card {
    max-width: 1100px;
}

.settings-site-name {
    max-width: 560px;
}

.settings-brand-grid {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.settings-logo-preview {
    width: 96px;
    height: 96px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--field-bg);
}

.theme-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.theme-choice {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    color: var(--text);
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.theme-choice:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb),.45);
}

.theme-choice input {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.theme-choice:has(input:checked) {
    border-color: rgba(var(--accent-rgb),.68);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.12);
}

.theme-choice-preview {
    display: grid;
    grid-template-columns: 34% 1fr;
    grid-template-rows: repeat(2, 28px);
    gap: 8px;
    min-height: 64px;
    padding: 9px;
    border-radius: 9px;
    overflow: hidden;
}

.theme-choice-preview span {
    display: block;
    border-radius: 5px;
}

.theme-choice-preview span:first-child {
    grid-row: 1 / span 2;
}

.theme-choice-blue .theme-choice-preview { background: #08101d; }
.theme-choice-blue .theme-choice-preview span:first-child { background: #121a2a; }
.theme-choice-blue .theme-choice-preview span:nth-child(2) { background: #172133; }
.theme-choice-blue .theme-choice-preview span:nth-child(3) { background: #22c55e; }

.theme-choice-orange .theme-choice-preview { background: #0b0d10; }
.theme-choice-orange .theme-choice-preview span:first-child { background: #181b20; }
.theme-choice-orange .theme-choice-preview span:nth-child(2) { background: #20242a; }
.theme-choice-orange .theme-choice-preview span:nth-child(3) { background: #f97316; }

.theme-choice-green .theme-choice-preview { background: #0a0e0c; }
.theme-choice-green .theme-choice-preview span:first-child { background: #171c1a; }
.theme-choice-green .theme-choice-preview span:nth-child(2) { background: #1e2522; }
.theme-choice-green .theme-choice-preview span:nth-child(3) { background: #22c55e; }

.settings-actions {
    display: flex;
    justify-content: flex-end;
}

.settings-feature-section {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.settings-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.settings-feature-toggle {
    align-items: flex-start;
    padding: 14px;
}

.settings-feature-toggle input {
    margin-top: 3px;
}

.settings-feature-toggle span {
    display: grid;
    gap: 5px;
}

.settings-feature-toggle small {
    color: var(--muted);
    line-height: 1.45;
}

.strike-level-item > summary::-webkit-details-marker {
    display: none;
}

.strike-level-item[open] > summary {
    border-bottom: 1px solid var(--line);
    background: rgba(148,163,184,.035);
}

.strike-level-edit-form {
    padding: 16px;
}

.strike-level-active-toggle {
    grid-column: 1 / span 2;
    align-self: center;
    min-height: 42px;
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    color: var(--text);
}

.strike-level-key {
    grid-column: 3 / -1;
    align-self: center;
}

.strike-level-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    padding-top: 2px;
}

.strike-level-meta {
    padding: 0 16px 16px;
}

@media (max-width: 1180px) {
    .strike-level-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .strike-level-key {
        grid-column: 1 / -1;
    }

    .strike-level-active-toggle {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .strike-level-form,
    .strike-level-item > summary {
        grid-template-columns: 1fr;
    }

    .strike-level-item > summary {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .strike-level-item > summary > :not(.strike-level-drag-handle) {
        grid-column: 2;
    }

    .strike-level-drag-handle {
        grid-column: 1;
        grid-row: 1 / span 4;
    }

    .theme-choice-grid {
        grid-template-columns: 1fr;
    }

    .settings-brand-grid {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .settings-logo-preview {
        width: 72px;
        height: 72px;
    }

    .settings-feature-grid {
        grid-template-columns: 1fr;
    }

    .strike-level-item > summary .btn {
        width: fit-content;
    }
}

/* Mobile Grundlayout */
@media (max-width: 1080px) {
    body {
        overflow-x: hidden;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .app-shell {
        display: block;
        min-width: 0;
    }

    .main-content {
        width: 100%;
        min-width: 0;
        padding: 76px 18px 28px;
    }

    .mobile-menu-toggle,
    .mobile-menu-close {
        width: 44px;
        height: 44px;
        padding: 0;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: rgba(18,26,42,.96);
        color: var(--text);
        font: inherit;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-menu-toggle {
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 905;
        display: inline-flex;
        box-shadow: 0 8px 24px rgba(0,0,0,.28);
    }

    .mobile-menu-close {
        position: absolute;
        top: 14px;
        right: 14px;
        display: inline-flex;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 910;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(2,6,15,.68);
        backdrop-filter: blur(2px);
        cursor: pointer;
    }

    .mobile-menu-backdrop:not([hidden]) {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 920;
        width: min(330px, 88vw);
        height: 100vh;
        height: 100dvh;
        padding: 20px 18px;
        overflow-y: auto;
        background: var(--sidebar-solid);
        box-shadow: 18px 0 50px rgba(0,0,0,.42);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .2s ease, visibility .2s ease;
    }

    .mobile-menu-open .sidebar {
        transform: translateX(0);
        visibility: visible;
    }

    .sidebar .brand {
        padding-right: 52px;
    }

    .nav {
        overflow: visible;
        padding-right: 0;
    }

    .page-head.split,
    .section-head,
    .space-between,
    .space-between.start,
    .space-between.center {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .page-head.split > :last-child,
    .section-head > :last-child {
        margin-left: auto;
    }

    .card,
    .stat-card {
        max-width: 100%;
    }

    .toolbar,
    .inline-form,
    .inline-gap.wrap {
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .main-content {
        padding: 70px 12px 24px;
    }

    h1 {
        font-size: clamp(1.65rem, 8vw, 2.15rem);
    }

    .card,
    .stat-card {
        padding: 16px;
        border-radius: 14px;
    }

    .page-head.split,
    .section-head,
    .space-between,
    .space-between.start,
    .space-between.center {
        display: flex;
        gap: 12px;
    }

    .page-head.split > :last-child,
    .section-head > :last-child {
        margin-left: 0;
    }

    .page-head.split .inline-gap,
    .section-head .inline-gap,
    .toolbar,
    .inline-form {
        width: 100%;
    }

    .toolbar > *,
    .inline-form > * {
        min-width: 0;
        max-width: 100%;
    }

    .filter-bar input[type="text"],
    .filter-bar input[type="search"],
    .filter-bar select {
        min-width: 0;
        width: 100%;
    }

    input[type=text],
    input[type=search],
    input[type=password],
    input[type=date],
    input[type=file],
    input[type=url],
    input[type=number],
    select,
    textarea {
        min-width: 0;
        max-width: 100%;
    }

    .table-wrap {
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap > table:not(.players-table):not(.content-creator-table) {
        min-width: 680px;
    }

    .players-table {
        display: block;
        width: 100%;
    }

    .players-table thead {
        display: none;
    }

    .players-table tbody {
        display: grid;
    }

    .players-table tbody tr {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 8px;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .players-table tbody td {
        width: auto !important;
        padding: 0;
        border: 0;
        min-width: 0;
    }

    .players-table tbody td:first-child {
        grid-column: 1;
        grid-row: 1 / span 3;
        align-self: center;
    }

    .players-table tbody td:nth-child(2),
    .players-table tbody td:nth-child(4),
    .players-table tbody td:nth-child(5) {
        grid-column: 2;
    }

    .players-table tbody td:nth-child(5) {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .players-table .btn-icon-only,
    .players-table td:first-child .btn {
        width: 48px;
        min-width: 48px;
        padding: 0;
    }

    .content-creator-table {
        min-width: 720px;
    }

    .lightbox-overlay {
        padding: 10px;
    }

    .lightbox-panel {
        max-height: calc(100dvh - 20px);
    }

    .lightbox-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .lightbox-image {
        max-height: calc(100dvh - 150px);
    }

    .lightbox-nav {
        width: 40px;
        height: 48px;
    }

    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }

    .back-to-top {
        right: 12px;
        bottom: 12px;
    }
}

.cc-orange-alert {
    border-color: rgba(245,158,11,.42);
    background: linear-gradient(135deg, rgba(120,53,15,.92), rgba(67,20,7,.9));
}

.cc-orange-alert .garage-alert-icon {
    background: rgba(245,158,11,.22);
    color: #fed7aa;
}

.cc-orange-alert .garage-alert-title {
    color: #ffedd5;
}

.dashboard-note-item {
    display: grid;
    gap: 8px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(15,23,42,.72);
    min-width: 0;
    min-height: 74px;
    align-content: center;
    padding: 14px;
}

.dashboard-note-item:hover {
    border-color: rgba(34,197,94,.35);
    background: rgba(34,197,94,.06);
}

.dashboard-note-item span,
.dashboard-note-item small {
    color: var(--muted);
}

.dashboard-note-item strong {
    overflow-wrap: anywhere;
}

.dashboard-note-due {
    border-color: rgba(239,68,68,.32);
    background: rgba(239,68,68,.08);
}

.note-alert {
    border-color: rgba(239,68,68,.42);
    background: linear-gradient(135deg, rgba(127,29,29,.95), rgba(69,10,10,.92));
}

.note-alert:hover {
    border-color: rgba(248,113,113,.7);
}

.note-alert .garage-alert-icon {
    background: rgba(239,68,68,.22);
    color: #fecaca;
}

.note-alert .garage-alert-title {
    color: #fee2e2;
}

@media (max-width: 1080px) {
    .dashboard-hero {
        min-height: 380px;
        align-items: flex-end;
        background:
            linear-gradient(90deg, rgba(5,10,18,.82) 0%, rgba(7,17,25,.58) 58%, rgba(8,18,20,.12) 100%),
            linear-gradient(180deg, rgba(5,10,18,.06) 0%, rgba(5,10,18,.42) 100%),
            url("dashboard-hero-raptor.webp") right center / auto 100% no-repeat,
            #061016;
    }

    .dashboard-hero-copy {
        width: min(68%, 720px);
    }

    .dashboard-note-grid,
    .dashboard-cc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .dashboard-hero {
        padding: 28px 24px;
        min-height: 420px;
        background:
            linear-gradient(180deg, rgba(5,10,18,.72) 0%, rgba(5,10,18,.46) 42%, rgba(5,10,18,.72) 100%),
            url("dashboard-hero-raptor.webp") right center / auto 100% no-repeat,
            #061016;
    }

    .dashboard-hero-copy {
        width: 100%;
    }

    .dino-greeting {
        font-size: 1.08rem;
    }
}

.vacation-alert .garage-alert-icon {
    background: rgba(34,197,94,.16);
    border-color: rgba(34,197,94,.32);
    color: #bbf7d0;
}

.vacation-alert {
    background: linear-gradient(180deg, rgba(34,197,94,0.12), rgba(34,197,94,0.06));
    border-color: rgba(34,197,94,0.28);
}

.vacation-alert:hover {
    border-color: rgba(34,197,94,0.42);
    background: linear-gradient(180deg, rgba(34,197,94,0.16), rgba(34,197,94,0.08));
}

.vacation-alert .garage-alert-title {
    color: #bbf7d0;
}

.admin-history-block {
    grid-column: span 2;
}

@media (max-width: 980px) {
    .admin-user-detail-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    .admin-user-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-history-block {
        grid-column: auto;
    }

.admin-history-list {
        grid-template-columns: 1fr;
    }
}

.mini-editor {
    display: grid;
    gap: 0;
}

.mini-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: rgba(15, 23, 42, .82);
}

.mini-editor-field {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    background: #0e1625;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow-y: auto;
    resize: vertical;
}

.mini-editor-field:focus {
    outline: 2px solid rgba(34,197,94,.28);
    border-color: rgba(34,197,94,.4);
}

.mini-editor-field:empty::before {
    content: attr(data-placeholder);
    color: var(--muted);
    pointer-events: none;
}

.mini-editor-field ul {
    margin: 6px 0 6px 22px;
    padding: 0;
}

.mini-editor-source {
    display: none !important;
}

.mini-editor-btn {
    min-width: 34px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 8px;
    background: rgba(15, 23, 42, .92);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.mini-editor-btn:hover {
    border-color: rgba(34, 197, 94, .45);
    background: rgba(34, 197, 94, .12);
    transform: translateY(-1px);
}

.mini-editor-emoji-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 4px;
    padding-left: 10px;
    border-left: 1px solid rgba(148, 163, 184, .18);
}

.rich-text-list {
    margin: 8px 0 8px 22px;
    padding: 0;
}

.rich-text-list li + li {
    margin-top: 4px;
}

.text-emoji {
    display: inline-block;
    vertical-align: -0.08em;
    font-size: 1.08em;
}

.template-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.template-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.template-category-group {
    display: grid;
    gap: 4px;
}

.template-category-root-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    width: 100%;
}

.template-category-root-row .template-category-root {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 800;
}

.template-category-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--muted);
    border: 1px solid transparent;
}

.template-category-link span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.template-category-link:hover,
.template-category-link.is-active {
    color: var(--text);
    border-color: rgba(34,197,94,.32);
    background: rgba(34,197,94,.08);
}

.template-category-collapse {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(15,23,42,.82);
    color: var(--muted);
    font: inherit;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.template-category-collapse-spacer {
    width: 26px;
    height: 26px;
}

.template-category-collapse:hover {
    color: var(--text);
    border-color: rgba(34,197,94,.35);
    background: rgba(34,197,94,.08);
}

.template-subcategory-list {
    display: grid;
    gap: 4px;
    padding-left: 40px;
}

.template-category-group:not(.is-open) .template-subcategory-list {
    display: none;
}

.template-subcategory {
    font-size: .95rem;
}

.template-content,
.template-list {
    display: grid;
    gap: 20px;
}

.template-group {
    display: grid;
    gap: 12px;
}

.template-group + .template-group {
    margin-top: 30px;
}

.template-group > .section-head {
    padding-top: 0;
    margin-bottom: 0;
}

.template-card h3 {
    margin: 0 0 6px;
}

.template-card > .space-between.start {
    margin-bottom: 20px;
}

.template-columns,
.template-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.template-language {
    min-width: 0;
    display: grid;
    gap: 12px;
    align-content: start;
}

.template-language-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.template-language-head .js-copy-template,
.template-image-actions .js-copy-image {
    background: rgba(191, 219, 254, .13);
    border-color: rgba(191, 219, 254, .32);
    color: #eaf3ff;
}

.template-language-head .js-copy-template:hover,
.template-language-head .js-copy-template:focus,
.template-image-actions .js-copy-image:hover,
.template-image-actions .js-copy-image:focus {
    background: rgba(191, 219, 254, .2);
    border-color: rgba(191, 219, 254, .48);
    color: #ffffff;
}

.template-preview {
    max-height: 240px;
    overflow: hidden;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(15,23,42,.72);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.55;
}

.template-preview.is-expanded {
    max-height: none;
}

.template-more-button {
    width: fit-content;
}

.template-expand-row {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.template-image-link {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(15,23,42,.56);
}

.template-image-link img {
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(148,163,184,.2);
    background: rgba(2,6,23,.6);
}

.template-image-actions {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.template-image-actions .note-meta {
    overflow-wrap: anywhere;
}

.copy-source {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.is-copied {
    border-color: rgba(34,197,94,.55) !important;
    background: rgba(34,197,94,.16) !important;
}

.copy-click {
    cursor: copy;
    border-radius: 6px;
    padding: 2px 4px;
    margin: -2px -4px;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.copy-click:hover,
.copy-click:focus {
    background: rgba(148,163,184,.12);
    color: #fff;
    outline: none;
}

.copy-click.copy-click-copied {
    background: rgba(34,197,94,.18);
    box-shadow: 0 0 0 1px rgba(34,197,94,.3);
}

.template-category-edit {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) minmax(120px, .5fr) minmax(90px, .38fr) minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.template-child-edit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.template-child-edit .note-meta {
    grid-column: 1 / -1;
}

.template-child-edit .template-category-edit {
    grid-template-columns: minmax(220px, 1.25fr) minmax(120px, .48fr) minmax(86px, .32fr) minmax(220px, .95fr) auto;
}

.template-category-delete-inline {
    align-self: end;
}

.template-sort-list {
    display: grid;
    gap: 8px;
}

.template-sort-list-child {
    margin-left: 18px;
}

.template-sort-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(15,23,42,.72);
    cursor: grab;
}

.template-sort-row.is-dragging {
    opacity: .56;
    cursor: grabbing;
    border-color: rgba(34,197,94,.45);
}

.template-drag-handle {
    color: var(--muted);
    font-weight: 800;
    line-height: 1;
}

.template-child-edit { margin-left: 18px; background: rgba(15,23,42,.44); }

.template-category-tree-form,
.template-category-tree {
    display: grid;
    gap: 8px;
}

.template-category-tree-item {
    display: grid;
    gap: 8px;
}

.template-category-tree-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(15,23,42,.72);
}

.template-category-tree-row:hover {
    border-color: rgba(34,197,94,.28);
    background: rgba(34,197,94,.05);
}

.template-category-tree-name {
    flex: 1;
    min-width: 0;
    font-weight: 800;
}

.template-category-tree-child {
    margin-left: 22px;
}

.template-category-tree-child .template-category-tree-row {
    background: rgba(15,23,42,.48);
}

.template-category-edit-panel {
    margin-left: 34px;
    padding: 12px;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 8px;
    background: rgba(2,6,23,.22);
}

.template-subcategory-sort-form {
    display: grid;
    gap: 8px;
}

.template-category-tree-form .template-sort-save {
    width: fit-content;
}

.template-filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.template-filter-bar input[type="text"] {
    min-width: 0;
    min-height: 38px;
    padding: 9px 11px;
}

.template-filter-bar .btn {
    height: 38px;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .template-layout {
        grid-template-columns: 1fr;
    }

    .template-sidebar,
    .event-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .template-columns,
    .template-form-grid,
    .template-sidebar,
    .event-columns,
    .event-form-grid,
    .event-sidebar,
    .template-category-edit,
    .event-category-edit,
    .template-child-edit,
    .event-child-edit,
    .template-image-link {
        grid-template-columns: 1fr;
    }

    .template-subcategory,
    .event-subcategory,
    .template-sort-list-child,
    .event-sort-list-child,
    .template-child-edit,
    .event-child-edit,
    .template-category-tree-child,
    .event-category-tree-child,
    .template-category-edit-panel,
    .event-category-edit-panel {
        margin-left: 0;
    }

}

/* Event pages mirror template layout */
.event-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.event-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.event-category-group {
    display: grid;
    gap: 4px;
}

.event-category-root-row {
    display: block;
}

.event-category-root-row .event-category-root {
    font-weight: 600;
}

.event-category-collapse-spacer {
    display: none;
}

.event-category-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--muted);
    border: 1px solid transparent;
}

.event-category-link span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.event-category-link:hover,
.event-category-link.is-active {
    color: var(--text);
    border-color: rgba(34,197,94,.32);
    background: rgba(34,197,94,.08);
}

.event-category-collapse {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(15,23,42,.82);
    color: var(--muted);
    font: inherit;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.event-category-collapse-spacer {
    display: none;
}

.event-category-collapse:hover {
    color: var(--text);
    border-color: rgba(34,197,94,.35);
    background: rgba(34,197,94,.08);
}

.event-subcategory-list {
    display: grid;
    gap: 4px;
    padding-left: 40px;
}

.event-category-group:not(.is-open) .event-subcategory-list {
    display: none;
}

.event-subcategory {
    font-size: .95rem;
}

.event-content,
.event-list {
    display: grid;
    gap: 20px;
}

.event-group {
    display: grid;
    gap: 12px;
}

.event-group + .event-group {
    margin-top: 30px;
}

.event-group > .section-head {
    margin-bottom: 0;
}

.event-card h3 {
    margin: 0 0 6px;
}

.event-card > .space-between.start {
    margin-bottom: 20px;
}

.event-columns,
.event-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.event-language {
    min-width: 0;
    display: grid;
    gap: 12px;
    align-content: start;
}

.event-language-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.event-language-head .js-copy-event,
.event-image-actions .js-copy-image {
    background: rgba(191, 219, 254, .13);
    border-color: rgba(191, 219, 254, .32);
    color: #eaf3ff;
}

.event-language-head .js-copy-event:hover,
.event-language-head .js-copy-event:focus,
.event-image-actions .js-copy-image:hover,
.event-image-actions .js-copy-image:focus {
    background: rgba(191, 219, 254, .2);
    border-color: rgba(191, 219, 254, .48);
    color: #ffffff;
}

.event-preview {
    max-height: 240px;
    overflow: hidden;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(15,23,42,.72);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.55;
}

.event-preview.is-expanded {
    max-height: none;
}

.event-more-button {
    width: fit-content;
}

.event-expand-row {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.event-image-link {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(15,23,42,.56);
}

.event-image-link img {
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(148,163,184,.2);
    background: rgba(2,6,23,.6);
}

.event-image-actions {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.event-image-actions .note-meta {
    overflow-wrap: anywhere;
}

.copy-source {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.is-copied {
    border-color: rgba(34,197,94,.55) !important;
    background: rgba(34,197,94,.16) !important;
}

.event-category-edit {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) minmax(120px, .5fr) minmax(90px, .38fr) minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.event-child-edit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.event-child-edit .note-meta {
    grid-column: 1 / -1;
}

.event-child-edit .event-category-edit {
    grid-template-columns: minmax(220px, 1.25fr) minmax(120px, .48fr) minmax(86px, .32fr) minmax(220px, .95fr) auto;
}

.event-category-delete-inline {
    align-self: end;
}

.event-sort-list {
    display: grid;
    gap: 8px;
}

.event-sort-list-child {
    margin-left: 18px;
}

.event-sort-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(15,23,42,.72);
    cursor: grab;
}

.event-sort-row.is-dragging {
    opacity: .56;
    cursor: grabbing;
    border-color: rgba(34,197,94,.45);
}

.event-drag-handle {
    color: var(--muted);
    font-weight: 800;
    line-height: 1;
}

.event-child-edit { margin-left: 18px; background: rgba(15,23,42,.44); }

.event-category-tree-form,
.event-category-tree {
    display: grid;
    gap: 8px;
}

.event-category-tree-item {
    display: grid;
    gap: 8px;
}

.event-category-tree-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(15,23,42,.72);
}

.event-category-tree-row:hover {
    border-color: rgba(34,197,94,.28);
    background: rgba(34,197,94,.05);
}

.event-category-tree-name {
    flex: 1;
    min-width: 0;
    font-weight: 800;
}

.event-category-tree-child {
    margin-left: 22px;
}

.event-category-tree-child .event-category-tree-row {
    background: rgba(15,23,42,.48);
}

.event-category-edit-panel {
    margin-left: 34px;
    padding: 12px;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 8px;
    background: rgba(2,6,23,.22);
}

.event-subcategory-sort-form {
    display: grid;
    gap: 8px;
}

.event-category-tree-form .event-sort-save {
    width: fit-content;
}

.event-notice {
    margin-bottom: 16px;
    border-color: rgba(234,179,8,.24);
    background: rgba(234,179,8,.07);
}

.event-notice h2 {
    color: #fde68a;
    margin-bottom: 12px;
}

.event-notice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.event-notice-grid div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid rgba(234,179,8,.18);
    border-radius: 8px;
    background: rgba(15,23,42,.48);
}

.event-notice-grid span {
    color: var(--muted);
}

.event-filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) auto auto;
    gap: 10px;
    align-items: center;
}

.event-filter-bar input[type="text"],
.event-filter-bar select {
    min-width: 0;
    min-height: 38px;
    padding: 9px 11px;
}

.event-filter-bar .btn {
    height: 38px;
    white-space: nowrap;
}

.event-tag-filter-row {
    margin-top: 10px;
    gap: 8px;
}

.event-tag-filter-row .toggle,
.event-tag-filter-row .btn-small {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 9px;
}

.content-creator-table th,
.content-creator-table td {
    min-width: 0;
    white-space: nowrap;
}

.content-creator-table th:first-child,
.content-creator-table td:first-child {
    width: 74px;
    min-width: 74px;
    max-width: 74px;
    padding-right: 6px;
}

.content-creator-table th:nth-child(2),
.content-creator-table td:nth-child(2) {
    min-width: 180px;
    white-space: normal;
    padding-left: 6px;
}

.content-creator-table th:nth-child(3),
.content-creator-table td:nth-child(3) {
    width: 72px;
    min-width: 72px;
    text-align: center;
}

.content-creator-table th:nth-child(4),
.content-creator-table td:nth-child(4) {
    width: 110px;
    min-width: 110px;
}

.content-creator-table th:nth-child(5),
.content-creator-table td:nth-child(5) {
    width: 150px;
    min-width: 150px;
}

.content-creator-table th:nth-child(6),
.content-creator-table td:nth-child(6) {
    width: 120px;
    min-width: 120px;
}

.cc-id-copy {
    width: 38px;
    min-width: 38px;
    padding: 0;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cc-id-row {
    display: grid;
    gap: 5px;
    margin-top: 7px;
}

.cc-id-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.25;
    cursor: pointer;
}

.cc-id-line > span {
    flex: 0 0 78px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}

.cc-id-line > strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #c7d7ea;
    font-size: .84rem;
}

.cc-id-line:hover > strong,
.cc-id-line:focus > strong {
    color: var(--text);
}

@media (max-width: 1150px) {
    .cc-id-row {
        display: flex;
        gap: 14px;
        align-items: center;
        flex-wrap: nowrap;
    }

    .cc-id-line {
        width: 34px;
        height: 30px;
        min-width: 34px;
        flex: 0 0 34px;
        justify-content: center;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: rgba(255,255,255,.045);
    }

    .cc-id-line > span {
        flex: 0 0 auto;
        font-size: 0;
        gap: 0;
    }

    .cc-id-line > strong {
        display: none;
    }
}

.id-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex: 0 0 16px;
    display: inline-block;
    vertical-align: -2px;
}

.id-logo-button {
    width: 18px;
    height: 18px;
}

.content-creator-table .cc-hidden-action,
.content-creator-table tbody tr[data-cc-row] > td:last-child {
    display: none;
}

.cc-table-section {
    margin-top: 28px;
}

.cc-filter-card,
.cc-table-wrap {
    min-width: 0;
}

.cc-table-wrap {
    padding: 8px 0 30px;
}

.content-creator-table {
    min-width: 0;
}

.partner-waitlist-table {
    table-layout: fixed;
}

.partner-waitlist-table th,
.partner-waitlist-table td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.partner-waitlist-table th:first-child,
.partner-waitlist-table td:first-child {
    width: 48%;
}

.partner-waitlist-table th:nth-child(2),
.partner-waitlist-table td:nth-child(2) {
    width: 15%;
    white-space: nowrap;
}

.partner-waitlist-table th:nth-child(3),
.partner-waitlist-table td:nth-child(3) {
    width: 26%;
}

.partner-waitlist-table th:nth-child(4),
.partner-waitlist-table td:nth-child(4) {
    width: 11%;
    white-space: nowrap;
}

.partner-waitlist-edit-row td {
    background: rgba(15,23,42,.45);
    border-bottom: 1px solid var(--line);
}

.internet-guide-layout {
    align-items: start;
}

.internet-guide-list {
    display: grid;
    gap: 24px;
}

.internet-guide-card {
    overflow-x: visible;
}

.internet-guide-body {
    margin-top: 18px;
    line-height: 1.7;
    color: var(--text);
}

.internet-guide-body h1,
.internet-guide-body h2,
.internet-guide-body h3,
.internet-guide-body h4 {
    margin: 1.1em 0 .45em;
}

.internet-guide-body p {
    margin: 0 0 1em;
}

.internet-guide-body ul,
.internet-guide-body ol {
    margin: .4em 0 1em 1.35em;
}

.internet-guide-body img {
    display: block;
    max-width: none;
    height: auto;
    margin: 18px 0;
    border-radius: 8px;
}

.internet-guide-body a {
    color: #bfdbfe;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.internet-guide-body table {
    width: auto;
    min-width: 520px;
    border-collapse: collapse;
    margin: 18px 0;
}

.internet-guide-body th,
.internet-guide-body td {
    border: 1px solid var(--line);
    padding: 10px 12px;
}

.cc-filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 8px 0 16px;
}

.cc-filter-panel input[type="search"],
.cc-filter-panel select {
    min-width: 0;
    min-height: 38px;
    padding: 9px 11px;
}

.cc-filter-panel input[type="search"] {
    flex: 1 1 260px;
}

.cc-filter-panel select {
    flex: 0 1 230px;
}

.cc-filter-panel .btn-small {
    flex: 0 1 auto;
    min-height: 38px;
    white-space: nowrap;
}

.cc-filter-panel .btn-small.is-active {
    border-color: rgba(34,197,94,.65);
    background: rgba(34,197,94,.16);
    color: #bbf7d0;
}

.creator-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,.26);
    background: rgba(2,6,23,.5);
}

.creator-logo-large {
    width: 92px;
    height: 92px;
}

.creator-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,.2);
    color: var(--muted);
    background: rgba(2,6,23,.35);
}

.creator-identity {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.cc-penalty-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    color: #fca5a5;
    font-size: 1rem;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
    text-decoration: none;
}

.cc-penalty-warning:hover,
.cc-penalty-warning:focus {
    color: #fecaca;
    outline: none;
    transform: translateY(-1px);
}

.cc-penalty-warning-button {
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.creator-logo-box {
    position: relative;
    flex: 0 0 auto;
}

.copy-icon-btn {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,.34);
    background: rgba(15,23,42,.82);
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.copy-icon-btn:hover,
.copy-icon-btn:focus {
    background: rgba(148,163,184,.2);
    outline: none;
}

.copy-icon-btn.is-copied {
    border-color: rgba(34,197,94,.55);
    background: rgba(34,197,94,.2);
}

.creator-link-list,
.creator-mod-list {
    display: grid;
    gap: 7px;
}

.creator-link-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.creator-link-list .btn {
    width: fit-content;
}

.creator-mod-item {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,.16);
    background: rgba(15,23,42,.48);
}

.creator-mod-item span,
.creator-note-body {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.creator-note-list {
    display: grid;
    gap: 12px;
}

.creator-note-item {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 12px;
    background: rgba(15,23,42,.38);
}

.creator-logo-upload {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
}

.creator-logo-upload label {
    flex: 1 1 260px;
}

.creator-form-top {
    display: grid;
    grid-template-columns: minmax(220px, .32fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.creator-form-fields {
    display: grid;
    gap: 12px;
}

.partner-waitlist-field,
.partner-waitlist-profile-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.partner-waitlist-field > .check-card,
.partner-waitlist-profile-form > .check-card {
    margin-bottom: 0;
}

.partner-waitlist-field > label:not(.check-card),
.partner-waitlist-profile-form > label:not(.check-card) {
    min-width: 220px;
}

.creator-detail-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.creator-logo-detail {
    width: 140px;
    height: 140px;
}

.creator-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.creator-points-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(120px, .45fr) minmax(150px, .55fr) auto;
    gap: 10px;
    align-items: end;
}

.creator-points-scroll {
    max-height: 540px;
    overflow-y: auto;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 12px;
}

.creator-points-scroll table {
    margin: 0;
}

.creator-inline-form {
    display: grid;
    grid-template-columns: minmax(160px, .8fr) minmax(160px, .8fr) minmax(260px, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 12px;
    background: rgba(15,23,42,.42);
}

.creator-inline-form[hidden] {
    display: none;
}

.creator-mod-inline-form {
    grid-template-columns: repeat(4, minmax(130px, 1fr)) minmax(150px, .7fr) minmax(150px, .7fr) auto;
}

.creator-waitlist-form {
    grid-template-columns: repeat(4, minmax(170px, 1fr)) auto;
    gap: 18px 16px;
    align-items: end;
}

.creator-waitlist-form label {
    min-width: 0;
}

.creator-waitlist-form label:nth-of-type(5) {
    grid-column: 1 / span 1;
}

.creator-waitlist-form label:nth-of-type(6) {
    grid-column: 2 / span 1;
}

.creator-waitlist-form > label:nth-of-type(7) {
    grid-column: 3 / span 2;
}

.creator-waitlist-form > .btn-outline {
    grid-column: 1 / span 1;
    justify-self: start;
}

.creator-waitlist-form > .btn-primary {
    grid-column: 5 / span 1;
    justify-self: stretch;
}

.creator-waitlist-form > .waitlist-link-row {
    grid-column: 1 / -1;
}

.creator-platform-link {
    gap: 8px;
}

.creator-table-link-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.creator-platform-link-icon-only {
    width: 38px;
    min-width: 38px;
    padding: 0;
}

.creator-platform-link-icon-only .creator-platform-icon {
    margin: 0;
}

.creator-platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 7px;
    background: rgba(148,163,184,.12);
    font-size: .85rem;
}

.creator-platform-youtube {
    background: rgba(239,68,68,.2);
    color: #fecaca;
}

.creator-platform-twitch {
    background: rgba(139,92,246,.2);
    color: #ddd6fe;
}

.creator-platform-tiktok {
    background: rgba(59,130,246,.18);
    color: #bfdbfe;
}

.creator-mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.creator-mod-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 14px;
    background: rgba(15,23,42,.48);
}

.creator-mod-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.creator-mod-table th,
.creator-mod-table td {
    vertical-align: middle;
}

.creator-bulk-form {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 12px;
    background: rgba(15,23,42,.42);
}

.creator-bulk-form[hidden] {
    display: none;
}

.creator-link-edit-row,
.creator-mod-edit-row {
    display: grid;
    gap: 10px;
    align-items: end;
}

.creator-link-edit-row {
    grid-template-columns: minmax(150px, .7fr) minmax(150px, .8fr) minmax(260px, 1fr) auto;
}

.creator-mod-edit-row {
    grid-template-columns: repeat(4, minmax(130px, 1fr)) minmax(150px, .7fr) minmax(150px, .7fr) auto;
}

.creator-waitlist-edit-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.waitlist-links-editor {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 12px;
    background: rgba(15,23,42,.32);
}

.waitlist-link-row {
    display: grid;
    grid-template-columns: minmax(170px, .35fr) minmax(260px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.dynamic-list {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 14px;
    background: rgba(15,23,42,.42);
}

.dynamic-rows {
    display: grid;
    gap: 10px;
}

.dynamic-row {
    display: grid;
    gap: 10px;
    align-items: end;
}

.creator-link-row {
    grid-template-columns: minmax(180px, .45fr) minmax(260px, 1fr) auto;
}

.creator-mod-row {
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
}

@media (max-width: 1100px) {
    .event-layout {
        grid-template-columns: 1fr;
    }

    .event-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-notice-grid {
        grid-template-columns: 1fr;
    }

    .event-filter-bar {
        grid-template-columns: 1fr 1fr auto auto;
    }

    .template-filter-bar {
        grid-template-columns: 1fr auto auto;
    }

    .creator-detail-head,
    .creator-detail-grid,
    .creator-points-form,
    .creator-inline-form,
    .creator-mod-inline-form,
    .creator-mod-detail-grid,
    .creator-link-edit-row,
    .creator-mod-edit-row,
    .creator-waitlist-edit-row,
    .creator-link-row,
    .creator-mod-row,
    .cc-filter-panel,
    .creator-form-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .event-columns,
    .event-form-grid,
    .event-sidebar,
    .event-category-edit,
    .event-child-edit,
    .event-image-link {
        grid-template-columns: 1fr;
    }

    .event-subcategory,
    .event-sort-list-child,
    .event-child-edit,
    .event-category-tree-child,
    .event-category-edit-panel {
        margin-left: 0;
    }

    .event-filter-bar {
        grid-template-columns: 1fr;
    }

    .template-filter-bar {
        grid-template-columns: 1fr;
    }

    .creator-detail-head,
    .creator-detail-grid,
    .creator-points-form,
    .creator-inline-form,
    .creator-mod-inline-form,
    .creator-mod-detail-grid,
    .creator-link-edit-row,
    .creator-mod-edit-row,
    .creator-waitlist-edit-row,
    .creator-link-row,
    .creator-mod-row,
    .cc-filter-panel,
    .creator-form-top {
        grid-template-columns: 1fr;
    }
}



