/* =====================================================
   FeedbackHub · Design-System (Linear/Vercel-Stil)
   ===================================================== */

:root {
    /* Farben */
    --bg:               #fafafa;
    --bg-subtle:        #f4f4f5;
    --surface:          #ffffff;
    --surface-raised:   #ffffff;
    --border:           #e4e4e7;
    --border-strong:    #d4d4d8;
    --text:             #09090b;
    --text-secondary:   #3f3f46;
    --text-muted:       #71717a;
    --muted:            #a1a1aa;

    --primary:          #2563eb;
    --primary-hover:    #1d4ed8;
    --primary-soft:     #eff6ff;
    --primary-ring:     rgba(37, 99, 235, 0.16);

    --success:          #16a34a;
    --success-soft:     #f0fdf4;
    --danger:           #dc2626;
    --danger-soft:      #fef2f2;
    --warning:          #d97706;
    --warning-soft:     #fffbeb;

    /* Radii */
    --radius-xs:        4px;
    --radius-sm:        6px;
    --radius:           8px;
    --radius-lg:        12px;
    --radius-xl:        16px;
    --radius-pill:      999px;

    /* Shadows — sehr subtil */
    --shadow-xs:        0 1px 2px rgba(9, 9, 11, 0.04);
    --shadow-sm:        0 1px 2px rgba(9, 9, 11, 0.04), 0 1px 3px rgba(9, 9, 11, 0.04);
    --shadow:           0 2px 8px rgba(9, 9, 11, 0.04), 0 1px 2px rgba(9, 9, 11, 0.04);
    --shadow-md:        0 8px 24px rgba(9, 9, 11, 0.06), 0 2px 6px rgba(9, 9, 11, 0.04);
    --shadow-lg:        0 24px 48px rgba(9, 9, 11, 0.08), 0 4px 12px rgba(9, 9, 11, 0.04);

    /* Typography */
    --font-sans:        -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono:        "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

    /* Motion */
    --transition:       0.16s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast:  0.10s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:  0.24s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --header-h:         56px;
    --container-max:    1200px;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--primary-hover); }

h1 { font-size: 1.75rem; line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: -0.022em; color: var(--text); }
h2 { font-size: 1.15rem; line-height: 1.35; margin: 0 0 0.6rem; font-weight: 600; letter-spacing: -0.014em; color: var(--text); }
h3 { font-size: 0.98rem; line-height: 1.4;  margin: 0 0 0.4rem; font-weight: 600; letter-spacing: -0.008em; color: var(--text); }
h4 { font-size: 0.9rem;  line-height: 1.4;  margin: 0; font-weight: 600; }

p { margin: 0 0 0.75rem; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--text-muted); }
.small { font-size: 0.82rem; }
.req { color: var(--danger); margin-left: 2px; font-weight: 600; }

/* =====================================================
   TOPBAR / NAVIGATION (Bewertungssystem-Stil)
   ===================================================== */
.topnav {
    background: #0a1628;
    border-bottom: 1px solid #0a1628;
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav-toggle { display: none; }
.nav-burger {
    display: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
    color: #fff;
    transition: background var(--transition-fast);
}
.nav-burger:hover { background: rgba(255, 255, 255, 0.1); }
.nav-burger .icon-burger,
.nav-burger .icon-close {
    width: 24px;
    height: 24px;
    display: block;
}
.nav-burger .icon-close { display: none; }
.nav-toggle:checked ~ .nav-inner .nav-burger .icon-burger { display: none; }
.nav-toggle:checked ~ .nav-inner .nav-burger .icon-close { display: block; }

.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.75rem;
    height: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}
.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    height: 100%;
}
.brand:hover { color: inherit; }
.brand-logo {
    height: 64px;
    width: auto;
    display: block;
}
.nav-links { display: flex; gap: 0.25rem; align-items: center; flex-wrap: wrap; }
.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    transition: background var(--transition-fast), color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav-links a.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 600;
}
.nav-user {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin-left: 0.6rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.nav-user strong { color: rgba(255, 255, 255, 0.85); }
.nav-logout { color: rgba(255, 255, 255, 0.7) !important; }
.nav-logout:hover { background: rgba(239, 68, 68, 0.18) !important; color: #fca5a5 !important; }
.nav-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    flex-shrink: 0;
    opacity: 0.85;
}

/* =====================================================
   CONTAINER + PAGE-HEAD
   ===================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 6rem;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.page-head h1 { line-height: 1.15; }
.page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.form-section-title {
    margin: 1.5rem 0 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.form-section-title:first-child { margin-top: 0; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.5rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
    font-family: inherit;
}
.btn:focus-visible {
    outline: 2px solid var(--primary-ring);
    outline-offset: 2px;
}
.btn:active { transform: translateY(0.5px); }

.btn-primary {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}
.btn-primary:hover { background: var(--text-secondary); border-color: var(--text-secondary); color: #fff; }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--border-strong); }

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
    box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-subtle); color: var(--text); }

.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

.btn-danger-text {
    color: var(--danger);
    background: transparent;
    border-color: transparent;
}
.btn-danger-text:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

.btn-small { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.btn-large { padding: 0.65rem 1.2rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* =====================================================
   FORMS
   ===================================================== */
form label {
    display: block;
    margin-bottom: 1rem;
}
form label > span {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
form label > span.muted, form label .muted.small {
    display: inline-block;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
}

form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="number"],
form input[type="date"],
form input[type="search"],
form input[type="url"],
form input[type="tel"],
form textarea,
form select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    line-height: 1.4;
}
form textarea { resize: vertical; min-height: 80px; }
form input:focus, form textarea:focus, form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}
form input::placeholder, form textarea::placeholder {
    color: var(--muted);
}
form input[readonly] {
    background: var(--bg-subtle);
    color: var(--text-muted);
}
form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    padding-right: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.form-row > label { margin-bottom: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.checkbox-row {
    display: inline-grid;
    grid-template-columns: 16px auto;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    margin-bottom: 0;
    user-select: none;
}
.checkbox-row:hover { border-color: var(--border-strong); }
.checkbox-row:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}
.checkbox-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: 4px;
    background: var(--surface);
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.checkbox-row input[type="checkbox"]:hover {
    border-color: var(--primary);
}
.checkbox-row input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}
.checkbox-row input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.checkbox-row > span {
    font-size: 0.88rem;
    font-weight: 500;
    color: inherit;
    line-height: 16px;
    display: block;
}

.copy-row {
    display: flex;
    gap: 6px;
}
.copy-row input[type="text"] { flex: 1; font-family: var(--font-mono); font-size: 0.8rem; }

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
}
.card-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    gap: 0.75rem;
}
.form-card { padding: 1.75rem; }

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    border: 1px solid;
    line-height: 1.5;
}
.alert-success { background: var(--success-soft); border-color: #bbf7d0; color: #166534; }
.alert-error   { background: var(--danger-soft);  border-color: #fecaca; color: #991b1b; }
.alert-info    { background: var(--primary-soft); border-color: #bfdbfe; color: #1e40af; }
.alert-warning { background: var(--warning-soft); border-color: #fde68a; color: #92400e; }

/* =====================================================
   PILLS / BADGES
   ===================================================== */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.5;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid transparent;
}
.pill-status { font-weight: 500; }
.pill-entwurf       { background: #f4f4f5; color: #52525b; }
.pill-aktiv         { background: #dcfce7; color: #166534; }
.pill-laeuft        { background: #dcfce7; color: #166534; }
.pill-abgeschlossen { background: #dbeafe; color: #1e40af; }
.pill-archiviert    { background: #f4f4f5; color: #71717a; }
.pill-intern        { background: var(--primary-soft); color: #1e40af; }
.pill-extern        { background: #fef3c7; color: #92400e; }
.pill-active-sm     { background: var(--success-soft); color: #166534; }
.pill-inactive-sm   { background: #f4f4f5; color: #71717a; }

.status-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem; font-weight: 500;
}

/* =====================================================
   DATA TABLES
   ===================================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.data-table thead th {
    text-align: left;
    padding: 0.65rem 1rem;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}
.data-table thead th.num { text-align: right; }
.data-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: middle;
}
.data-table tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody td.actions { text-align: right; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(244, 244, 245, 0.5); }
.data-table tbody tr.is-inactive { opacity: 0.55; }
.data-table tbody strong { color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
    .data-table thead { display: none; }
    .data-table, .data-table tbody { display: block; }
    .data-table tbody tr {
        display: block;
        padding: 0.9rem 1rem;
        border-bottom: 1px solid var(--border);
    }
    .data-table tbody tr:last-child { border-bottom: none; }
    .data-table tbody td {
        display: block;
        padding: 2px 0;
        border: none;
        text-align: left !important;
        font-size: 0.85rem;
    }
    .data-table tbody td:first-child {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    .data-table tbody td.num {
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.8rem;
    }
    .data-table tbody td.num strong::after {
        content: ' Antworten';
        font-weight: 400;
        color: var(--text-muted);
    }
    .data-table tbody td.actions {
        margin-top: 0.6rem;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* =====================================================
   FILTER-TABS
   ===================================================== */
.filter-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.filter-tab {
    padding: 0.55rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}
.filter-tab:hover { color: var(--text); }
.filter-tab.is-active {
    color: var(--text);
    border-bottom-color: var(--text);
    font-weight: 600;
}
.filter-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

/* =====================================================
   STAT-CARDS (Dashboard)
   ===================================================== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--border-strong); }
.stat-card-wide { grid-column: span 2; }
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.stat-value-big {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.stat-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

@media (max-width: 640px) {
    .stat-card-wide { grid-column: span 1; }
}

/* =====================================================
   DASHBOARD
   ===================================================== */
.dash-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
    margin-top: 1.5rem;
}
@media (max-width: 768px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-xs);
}
.dash-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.85rem;
}
.dash-section-head h2 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}
.dash-section-head a { font-size: 0.82rem; }

.dash-empty { padding: 1rem 0; }
.dash-empty p { margin: 0 0 0.6rem; }

.dash-list { list-style: none; padding: 0; margin: 0; }
.dash-list li { border-bottom: 1px solid var(--border); }
.dash-list li:last-child { border-bottom: none; }
.dash-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}
.dash-list a:hover { opacity: 0.85; }
.dash-list-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dash-list-main strong { color: var(--text); font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-list-stat { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.dash-list-stat strong { color: var(--text); font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.dash-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 var(--success);
    animation: dash-pulse 2s infinite;
    margin-right: 4px;
}
@keyframes dash-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.dash-feed { list-style: none; padding: 0; margin: 0; }
.dash-feed li { border-bottom: 1px solid var(--border); }
.dash-feed li:last-child { border-bottom: none; }
.dash-feed a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0;
    color: inherit;
    text-decoration: none;
}
.dash-feed a:hover .dash-feed-title { color: var(--primary); }
.dash-feed-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}
.dash-feed-body { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex: 1; min-width: 0; }
.dash-feed-title {
    color: var(--text);
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    transition: color var(--transition-fast);
}

/* =====================================================
   DECK-GRID (Index)
   ===================================================== */
.deck-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.deck-search {
    width: auto;
    min-width: 220px;
    max-width: 320px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.deck-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.deck-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    box-shadow: var(--shadow-xs);
    min-height: 170px;
    position: relative;
}
.deck-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.deck-card-strip {
    height: 5px;
    width: 100%;
    background: var(--text);
    flex-shrink: 0;
}
.deck-card-header {
    padding: 1rem 1.25rem 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}
.deck-card-meta { display: flex; gap: 6px; flex-wrap: wrap; min-height: 18px; }
.deck-card-category {
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.deck-card-category-rule { display: none; }
.deck-card-body {
    padding: 0.3rem 1.25rem 1rem;
    flex: 1;
}
.deck-card-name {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.35rem;
    letter-spacing: -0.012em;
    line-height: 1.3;
}
.deck-card-sub {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}
.deck-card-foot {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-subtle);
}
.deck-card-foot .num { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.deck-card-new {
    border: 1px dashed var(--border-strong);
    background: transparent;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: none;
    min-height: 170px;
    padding: 1.5rem;
}
.deck-card-new:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: none;
    box-shadow: none;
}
.deck-new-icon { font-size: 1.8rem; color: var(--text-muted); font-weight: 300; line-height: 1; margin-bottom: 0.5rem; }
.deck-new-label { font-weight: 600; color: var(--text); margin-bottom: 0.25rem; font-size: 0.95rem; }
.deck-card-new:hover .deck-new-icon, .deck-card-new:hover .deck-new-label { color: var(--primary); }

/* =====================================================
   DECK-DETAIL (Header)
   ===================================================== */
.deck-detail-head {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.deck-detail-strip {
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--deck-color, var(--text));
}
.deck-detail-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}
.deck-detail-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--deck-color, var(--text-secondary));
}
.deck-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}
.deck-detail-title {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.022em;
    color: var(--text);
}
.deck-detail-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.deck-detail-desc {
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* =====================================================
   FRAGE-EDITOR (qe-)
   ===================================================== */
.qe-section { margin-top: 0.5rem; }
.qe-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.85rem;
}
.qe-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.qe-count {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
    font-size: 0.85rem;
}

.qe-empty {
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.qe-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.qe-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    transition: background var(--transition-fast);
}
.qe-row:last-child { border-bottom: none; }
.qe-row:hover { background: var(--bg-subtle); }
.qe-row.dragging { opacity: 0.4; }
.qe-row .qe-num { flex: 0 0 24px; }
.qe-row .qe-body { flex: 1 1 auto; min-width: 0; }
.qe-handle {
    cursor: grab;
    color: var(--muted);
    user-select: none;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -3px;
    padding: 0 4px;
}
.qe-handle:active { cursor: grabbing; }
.qe-num {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.qe-text {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.45;
    font-weight: 500;
}
.qe-required { color: var(--danger); margin-left: 4px; font-weight: 700; }
.qe-meta {
    margin-top: 4px;
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.qe-type {
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.68rem;
}
.qe-cat, .qe-opts { color: var(--text-muted); }
.qe-del, .qe-edit-btn {
    color: var(--text-muted);
    padding: 4px 8px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.qe-edit-btn:hover { color: var(--primary); }

.qe-edit-form {
    list-style: none;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}
.qe-edit-form[hidden] { display: none; }
.qe-edit-inner { display: flex; flex-direction: column; gap: 0; }
.qe-edit-inner label { margin-bottom: 0.85rem; }
.qe-edit-inner label:last-of-type { margin-bottom: 0; }
.qe-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.qe-add {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-top: 12px;
    padding: 1rem 1.25rem;
}
.qe-add-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.qe-add-row:last-child { margin-bottom: 0; }
.qe-add-row-main { gap: 8px; }
.qe-add-text { flex: 1; min-width: 200px; }
.qe-add-type { width: auto; min-width: 160px; }
.qe-add-cat { flex: 1; min-width: 200px; }
.qe-add-required { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-secondary); }
.qe-add-options { width: 100%; margin-top: 8px; }

@media (max-width: 640px) {
    .qe-handle { display: none; }
    .qe-add-row-main .qe-add-type { width: 100%; }
    .qe-add-row-main .btn { width: 100%; }
}

/* =====================================================
   RUN-DETAIL: QR-Karten-Grid
   ===================================================== */
.rd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}
.rd-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}
.rd-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--accent, var(--text));
}
.rd-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}
.rd-num {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-subtle);
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}
.rd-title { font-size: 1.02rem; font-weight: 600; color: var(--text); margin: 0; letter-spacing: -0.012em; }
.rd-resp { text-align: right; flex-shrink: 0; }
.rd-resp-num {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.rd-qr-wrap {
    background: var(--bg-subtle);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.rd-qr { padding: 8px; background: #fff; border-radius: var(--radius-sm); line-height: 0; }
.rd-qr-wrap .copy-row { width: 100%; }
.rd-qr-wrap .btn { width: 100%; }

/* =====================================================
   DECK-PICKER (Run-Form)
   ===================================================== */
.deck-picker {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
    background: var(--bg-subtle);
}
.deck-pick-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    margin: 0;
}
.deck-pick-row:hover { border-color: var(--border-strong); }
.deck-pick-row:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
}
.deck-pick-row.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.deck-pick-row.is-disabled:hover { border-color: var(--border); }
.deck-pick-row input[type="checkbox"] { width: auto; accent-color: var(--primary); margin: 0; }
.deck-pick-strip {
    width: 3px;
    height: 30px;
    border-radius: 2px;
    background: var(--accent, var(--text-muted));
    flex-shrink: 0;
}
.deck-pick-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.deck-pick-title { font-weight: 500; color: var(--text); font-size: 0.92rem; }
.deck-pick-meta { font-size: 0.78rem; color: var(--text-muted); }

/* =====================================================
   EVALUATION
   ===================================================== */
.ev-q-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ev-q {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}
.ev-q-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}
.ev-q-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin: 0; line-height: 1.4; }
.ev-q-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.ev-q-avg {
    background: var(--bg-subtle);
    color: var(--text);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
}

/* === Inline-Role-Select === */
.role-form {
    display: inline-block;
}
.role-form select {
    width: auto;
    min-width: 140px;
    padding: 0.35rem 1.85rem 0.35rem 0.65rem;
    font-size: 0.85rem;
    background-color: var(--bg-subtle);
    border-color: var(--border);
}
.role-form select:disabled {
    background-color: transparent;
    border-color: transparent;
    color: var(--text-secondary);
    appearance: none;
    background-image: none;
    padding-right: 0.65rem;
    cursor: default;
}

/* === Deck-Setting (z.B. Gruppierung) === */
.deck-setting {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-xs);
}
.deck-setting-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    flex-wrap: wrap;
}
.deck-setting-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 200px;
}
.deck-setting-label > span:first-child {
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}
.deck-setting-row select {
    flex: 1;
    min-width: 220px;
    max-width: 480px;
}

/* === Gruppierungs-Filter === */
.group-filter {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-xs);
}
.group-filter-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}
.group-filter-label strong { color: var(--text); font-weight: 600; }
.group-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.group-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.group-chip:hover {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
}
.group-chip.is-active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}
.group-chip.is-active .group-chip-count { background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.95); }
.group-chip-count {
    display: inline-block;
    background: var(--surface);
    color: var(--text-muted);
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* === Slider/Number-Auswertung === */
.ev-slider-stat {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.5rem 0;
}
.ev-slider-num {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.025em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ev-slider-bar {
    height: 12px;
    background: var(--bg-subtle);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.ev-slider-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-pill);
    transition: width var(--transition-slow);
}
.ev-slider-range { font-variant-numeric: tabular-nums; }

/* === Balken-Liste (universell für alle Verteilungen) === */
.ev-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ev-bar-row {
    display: grid;
    grid-template-columns: 180px 1fr 48px;
    align-items: center;
    gap: 14px;
}
.ev-bar-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.ev-bar-track {
    height: 10px;
    background: var(--bg-subtle);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.ev-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-pill);
    transition: width var(--transition-slow);
}
.ev-bar-count {
    text-align: right;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.ev-bar-row.is-empty .ev-bar-label,
.ev-bar-row.is-empty .ev-bar-count { color: var(--muted); font-weight: 400; }

@media (max-width: 640px) {
    .ev-bar-row { grid-template-columns: 120px 1fr 40px; gap: 10px; }
}

.ev-dist-rows { display: flex; flex-direction: column; gap: 6px; }
.ev-dist-row { display: flex; align-items: center; gap: 12px; }
.ev-dist-label {
    flex: 0 0 200px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ev-dist-bar {
    flex: 1;
    height: 20px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.ev-dist-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-sm);
    transition: width var(--transition-slow);
}
.ev-dist-count {
    flex: 0 0 86px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.ev-dist-count .muted { font-weight: 400; }

@media (max-width: 640px) {
    .ev-dist-label { flex: 0 0 130px; }
}

.ev-comments {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ev-comment {
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.ev-comment:first-child {
    border-top: none;
    padding-top: 0.25rem;
}
.ev-comment:last-child {
    padding-bottom: 0.25rem;
}

.ev-deck-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 0 1rem;
    position: relative;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.ev-deck-strip {
    width: 3px;
    height: 32px;
    border-radius: 2px;
    background: var(--accent, var(--text));
}

/* =====================================================
   PUBLIC FORM (Teilnehmer-Sicht)
   ===================================================== */
.pub-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}
.pub-wrap-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}
.pub-head {
    margin-bottom: 1.5rem;
    text-align: left;
}
.pub-head h1 { font-size: 1.5rem; font-weight: 600; margin: 0 0 0.4rem; letter-spacing: -0.022em; }
.pub-foot {
    margin-top: 2rem;
    text-align: center;
}
.pub-meta { font-size: 0.82rem; color: var(--text-muted); }

.pub-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pub-q {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.4rem 1.4rem;
    box-shadow: var(--shadow-xs);
}
.pub-q-label {
    display: block;
    margin: 0 0 0.85rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.4;
}
.pub-q-num {
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 6px;
}
.pub-q-cat {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.pub-q input[type="text"],
.pub-q input[type="email"],
.pub-q input[type="date"],
.pub-q textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.85rem;
    font-size: 0.92rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-family: inherit;
    color: var(--text);
    line-height: 1.4;
}
/* iOS Safari: date-Input ignoriert width:100% standardmäßig */
.pub-q input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
    display: block;
}
.pub-q input:focus, .pub-q textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.req { color: var(--danger); font-weight: 700; margin-left: 3px; }

.pub-rating, .pub-radio, .pub-stars {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pub-radio-col { flex-direction: column; gap: 6px; }
.pub-rating-pill, .pub-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
}
.pub-rating-pill:hover, .pub-radio-pill:hover { border-color: var(--border-strong); }
.pub-rating-pill input, .pub-radio-pill input { display: none; }
.pub-rating-pill:has(input:checked), .pub-radio-pill:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}
.pub-rating-pill span, .pub-radio-pill span { line-height: 1; }
.pub-rating-10 .pub-rating-pill { padding: 0.55rem 0.85rem; }

.pub-slider {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.5rem 0.25rem;
}
.pub-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-subtle);
    border-radius: var(--radius-pill);
    outline: none;
    margin: 0;
    cursor: pointer;
}
.pub-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid #fff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
    cursor: pointer;
}
.pub-slider input[type="range"]::-moz-range-thumb {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    border: none;
}
.pub-slider-val {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.pub-slider-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.pub-select {
    width: 100%;
    padding: 0.7rem 2rem 0.7rem 0.85rem;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    appearance: none;
    -webkit-appearance: none;
    color: var(--text);
    cursor: pointer;
}
.pub-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.pub-stars {
    flex-direction: row;
    gap: 4px;
}
.pub-star {
    background: transparent;
    border: none;
    color: var(--border-strong);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0 2px;
    transition: color var(--transition-fast);
    line-height: 1;
}
.pub-star.is-on, .pub-star:hover { color: #f59e0b; }

.pub-submit {
    width: 100%;
    margin-top: 8px;
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
}

.pub-thanks { text-align: center; max-width: 480px; }
.pub-thanks-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    font-size: 2rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}
.pub-thanks-icon-warn { background: var(--warning-soft); color: var(--warning); }
.pub-thanks h1 { font-size: 1.5rem; font-weight: 600; margin: 0 0 0.5rem; }

/* =====================================================
   PRESENTATION (Splitscreen) — Deck-Card-Stil
   ===================================================== */
.presentation-body {
    background: #0a1628;
    color: #fafafa;
    margin: 0;
    overflow: hidden;
    font-family: var(--font-sans);
}
.present-wrap {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.present-head {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.75rem;
    background: #0a1628;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.present-brand { display: inline-flex; align-items: center; position: relative; z-index: 2; }
.present-logo { height: 80px; width: auto; display: block; }
.present-run-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    letter-spacing: -0.012em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}
.present-fullscreen-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: var(--radius);
    cursor: pointer;
    line-height: 0;
    transition: background var(--transition-fast), color var(--transition-fast);
    position: relative;
    z-index: 2;
}
.present-fullscreen-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.present-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    gap: 0.5rem;
}
.present-empty h2 { font-size: 1.6rem; color: #fafafa; margin: 0; font-weight: 600; }
.present-empty p { margin: 0; color: rgba(255, 255, 255, 0.55); }

.present-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
}
.present-main-seq {
    grid-template-columns: 1fr 380px;
}
@media (max-width: 1024px) {
    .present-main-seq { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
}

.present-grid {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
    overflow: hidden;
}
.present-grid-1 { grid-template-columns: 1fr; }
.present-grid-2 { grid-template-columns: repeat(2, 1fr); }
.present-grid-3 { grid-template-columns: repeat(3, 1fr); }

.present-card {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 3.5rem 1.75rem 1.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    color: var(--text);
    text-align: center;
}
.present-card-strip {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 16px;
    background: var(--qr-accent, #60a5fa);
}
.present-card-title {
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.022em;
    margin: 0;
    line-height: 1.15;
}
.present-card-mid {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    min-height: 0;
}
.present-qr-frame {
    line-height: 0;
}
.present-qr-img { line-height: 0; display: inline-block; }
.present-card-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}
.present-cta {
    font-size: clamp(0.88rem, 1vw, 1.05rem);
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.005em;
    font-weight: 500;
}
.present-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    min-width: 160px;
    justify-content: center;
}
.present-counter-num {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.03em;
    transition: transform 0.3s ease, color 0.3s ease;
}
.present-counter-num.is-pulse {
    animation: counter-pulse 0.6s ease;
    color: var(--qr-accent, #60a5fa);
}
@keyframes counter-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.present-counter-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* === Sequenz-Progress-Sidebar === */
.seq-progress {
    background: rgba(255, 255, 255, 0.04);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.seq-progress-head { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 0.85rem; }
.seq-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
}
.seq-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.seq-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    border-left: 3px solid var(--seq-accent, #60a5fa);
}
.seq-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--seq-accent, #60a5fa);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}
.seq-body { min-width: 0; }
.seq-title {
    color: #fafafa;
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}
.seq-bar-wrap { height: 6px; }
.seq-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.seq-bar-fill {
    height: 100%;
    background: var(--seq-accent, #60a5fa);
    border-radius: var(--radius-pill);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.seq-stat { text-align: right; min-width: 56px; }
.seq-num-big {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fafafa;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.02em;
    transition: transform 0.3s ease, color 0.3s ease;
}
.seq-num-big.is-pulse {
    animation: counter-pulse 0.6s ease;
    color: var(--seq-accent, #60a5fa);
}
.seq-num-lbl {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 4px;
}

@media (max-width: 1024px) {
    .seq-progress { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 1rem 1.5rem; }
    .seq-list { flex-direction: row; overflow-x: auto; }
    .seq-item { flex: 0 0 280px; }
}

@media (max-width: 768px) {
    .present-head { padding: 0.85rem 1rem; }
    .present-run-title { font-size: 1rem; }
    .present-logo { height: 40px; }
    .present-grid-2, .present-grid-3 { grid-template-columns: 1fr; }
    .present-card { padding: 1.5rem 1rem 1.25rem; }
}

/* =====================================================
   LOGIN
   ===================================================== */
.login-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: var(--bg);
}
.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
}
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}
.login-brand img { height: 40px; }
.login-card h1 { font-size: 1.3rem; text-align: center; margin: 0 0 0.4rem; font-weight: 600; }
.login-card .muted { text-align: center; font-size: 0.88rem; margin-bottom: 1.5rem; display: block; }
.login-card form { display: flex; flex-direction: column; gap: 0; }
.login-card .btn-primary { width: 100%; padding: 0.65rem 1rem; font-size: 0.95rem; margin-top: 0.5rem; }

/* =====================================================
   KATEGORIEN-VERWALTUNG
   ===================================================== */
.cat-new-form { padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.cat-new-grid {
    display: grid;
    grid-template-columns: 1fr 90px auto;
    gap: 12px;
    align-items: end;
}
.cat-new-grid label { margin-bottom: 0; }
.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.cat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    transition: background var(--transition-fast);
    touch-action: pan-y;
}
.cat-row:last-child { border-bottom: none; }
.cat-row:hover { background: var(--bg-subtle); }
.cat-row.cat-dragging { opacity: 0.4; background: var(--bg-subtle); }

.cat-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    color: var(--muted);
    user-select: none;
    -webkit-user-select: none;
    padding: 4px;
    touch-action: none;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}
.cat-handle:active { cursor: grabbing; }
.cat-handle:hover { color: var(--text-secondary); }

.cat-color-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cat-view {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}
.cat-view .cat-name {
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-view .cat-deck-count {
    flex-shrink: 0;
    white-space: nowrap;
}

.cat-edit {
    display: none;
    flex: 1;
    align-items: center;
    gap: 8px;
}
.cat-row.is-editing .cat-view,
.cat-row.is-editing .cat-actions { display: none; }
.cat-row.is-editing .cat-edit { display: flex; }

.cat-edit-name {
    flex: 1;
    min-width: 100px;
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
}
.cat-edit-color {
    width: 36px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.cat-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.cat-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.cat-icon-btn:hover { background: var(--bg-subtle); color: var(--text); }
.cat-icon-btn-danger:hover { background: var(--danger-soft); color: var(--danger); }

@media (max-width: 640px) {
    .cat-row { padding: 12px; gap: 10px; }
    .cat-view { flex-direction: column; align-items: flex-start; gap: 2px; }
    .cat-view .cat-deck-count { font-size: 0.75rem; }
    .cat-edit { flex-wrap: wrap; }
    .cat-edit-name { width: 100%; flex: 1 1 100%; }
}

/* =====================================================
   PREVIEW (Deck-Vorschau Public-Style)
   ===================================================== */
.preview-wrap { max-width: 600px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.preview-banner {
    background: var(--warning-soft);
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 0.65rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.preview-close { color: inherit; font-weight: 600; }

.participant-head { margin-bottom: 1.5rem; }
.participant-head h1 { font-size: 1.5rem; margin: 0 0 0.3rem; font-weight: 600; }

.participant-form { display: flex; flex-direction: column; gap: 12px; }
.q-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.4rem 1.4rem;
    box-shadow: var(--shadow-xs);
}
.q-block-label {
    display: block;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text);
    margin: 0 0 0.85rem;
    line-height: 1.4;
}
.q-category { margin-top: 0.5rem; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.rating-row, .radio-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.radio-col { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.rating-pill, .radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 0.95rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.rating-pill:hover, .radio-pill:hover { border-color: var(--border-strong); }
.rating-pill input, .radio-pill input { display: none; }
.rating-pill:has(input:checked), .radio-pill:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}
.stars-row { display: flex; gap: 4px; margin-top: 8px; }
.star-btn {
    background: transparent;
    border: none;
    color: var(--border-strong);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}
.star-btn.is-on { color: #f59e0b; }

/* =====================================================
   DEFINITION LIST (Course/Deck-Infos)
   ===================================================== */
.dl-grid {
    display: grid;
    grid-template-columns: 130px 1fr;
    row-gap: 12px;
    column-gap: 16px;
    margin: 0;
}
.dl-grid dt {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}
.dl-grid dd {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =====================================================
   MISC
   ===================================================== */
.qr-block { display: flex; justify-content: center; padding: 1rem; background: var(--bg-subtle); border-radius: var(--radius); }
#qrcode { background: #fff; padding: 12px; border-radius: var(--radius-sm); line-height: 0; }

.session-list { list-style: none; padding: 0; margin: 0; }
.session-list li {
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
}
.session-list li:last-child { border-bottom: none; }
.session-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    flex-wrap: wrap;
}
.session-list a:hover strong { color: var(--primary); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .container { padding: 1.5rem 1.25rem 3rem; }
    .nav-inner { padding: 0.7rem 1.1rem; gap: 0.5rem; }
    .nav-links { gap: 0.1rem; }
    .nav-links a .nav-icon { display: none; }
}

@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .container { padding: 1rem 0.9rem 2.5rem; }

    /* Navigation - Burger Menu */
    .nav-inner { padding: 0.6rem 0.9rem; gap: 0.5rem; }
    .brand-logo { height: 52px; }
    .nav-burger { display: inline-flex; align-items: center; justify-content: center; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0a1628;
        padding: 0.5rem 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow-lg);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition), transform var(--transition), visibility 0s linear var(--transition);
        pointer-events: none;
    }
    .nav-toggle:checked ~ .nav-inner .nav-links {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity var(--transition), transform var(--transition);
    }
    .nav-links a {
        padding: 0.75rem 0.85rem;
        border-radius: 8px;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.85);
    }
    .nav-links a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
    .nav-links a .nav-icon { display: block !important; width: 18px; height: 18px; }
    .nav-user {
        display: block;
        padding: 0.75rem 0.85rem;
        color: rgba(255, 255, 255, 0.55);
        font-size: 0.85rem;
        border-left: none;
        margin-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.35rem;
        padding-top: 0.65rem;
    }
    .nav-user strong { color: rgba(255, 255, 255, 0.9); }
    .nav-logout { color: rgba(255, 255, 255, 0.85) !important; }
    .nav-logout:hover { background: rgba(239, 68, 68, 0.18) !important; color: #fca5a5 !important; }

    h1 { font-size: 1.5rem; }
    .page-head { flex-direction: column; align-items: stretch; gap: 0.6rem; margin-bottom: 1.25rem; }
    .page-actions { width: 100%; }
    .page-actions .btn { flex: 1 1 auto; justify-content: center; }
    .deck-detail-title { font-size: 1.35rem; }
    .deck-detail-head { padding: 1.25rem 1.4rem; }
    .form-card { padding: 1.25rem; }
    .card { padding: 1.1rem; }
}

@media (max-width: 480px) {
    .page-actions { width: 100%; }
    .page-actions .btn { flex: 1; }
    .cat-new-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
    .topnav, .page-actions, .filter-tabs, .btn, .group-filter, .no-print { display: none !important; }
    .container { padding: 0; max-width: none; }
    body { background: #fff; font-size: 11pt; }
    .card, .ev-q { box-shadow: none !important; border: 1px solid #d4d4d8 !important; page-break-inside: avoid; }
    .ev-q { padding: 0.9rem 1.1rem !important; margin-bottom: 8px !important; }
    .ev-q-list { gap: 8px !important; }
    h1 { font-size: 20pt; }
    h2 { font-size: 14pt; }
    h4 { font-size: 11pt; }
    .ev-bar-fill { background: #2563eb !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .ev-bar-track { background: #f4f4f5 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    a { color: inherit; text-decoration: none; }
    .ev-deck-head { page-break-after: avoid; }
    .print-only { display: block !important; }
    .ev-deck-section { page-break-inside: avoid; }
}
.print-only { display: none; }
@media print {
    .print-head {
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
        border-bottom: 2px solid #0f172a;
    }
    .print-title { font-size: 22pt; margin: 0 0 0.4rem; font-weight: 600; }
    .print-meta { font-size: 10pt; color: #52525b; }
    .page-head { display: none !important; }
}

/* =====================================================
   Run-Vergleich (Auswertung · Zeitverlauf)
   ===================================================== */
.cmp-cat-dot { display:inline-block; width:9px; height:9px; border-radius:var(--radius-pill); margin-right:6px; vertical-align:middle; }

.cmp-legend {
    display: flex; flex-wrap: wrap; gap: 10px 18px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px; margin: 1.25rem 0 1.5rem;
}
.cmp-legend-item { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.cmp-legend-item:hover .cmp-legend-text strong { text-decoration: underline; }
.cmp-legend-text { display: flex; flex-direction: column; line-height: 1.25; }
.cmp-dot { width: 13px; height: 13px; border-radius: var(--radius-pill); flex: 0 0 auto; }
.cmp-dot.sm { width: 9px; height: 9px; }

.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.cmp-q {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.15rem; page-break-inside: avoid;
}
.cmp-q-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 0.85rem; }
.cmp-q-title { font-size: 0.98rem; margin: 0; line-height: 1.35; }
.cmp-q-type { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.03em; }

.cmp-trend { display: flex; flex-direction: column; gap: 7px; }
.cmp-trend-row { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 12px; }
.cmp-trend-row.is-empty { opacity: 0.5; }
.cmp-trend-label { font-size: 0.82rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-trend-val { font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.cmp-link { text-decoration: none; color: var(--primary); white-space: nowrap; }

.cmp-track { height: 11px; background: var(--bg-subtle); border-radius: var(--radius-pill); overflow: hidden; }
.cmp-track.sm { height: 8px; }
.cmp-fill { height: 100%; border-radius: var(--radius-pill); transition: width var(--transition-slow); min-width: 2px; }

.cmp-q-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 0.75rem; }
.cmp-delta { font-size: 0.78rem; font-weight: 600; }
.cmp-delta.is-up   { color: #16a34a; }
.cmp-delta.is-down { color: #dc2626; }
.cmp-delta.is-flat { color: var(--text-muted); font-weight: 500; }

.cmp-cats { display: flex; flex-direction: column; gap: 12px; }
.cmp-cat-label { font-size: 0.85rem; font-weight: 500; margin-bottom: 5px; }
.cmp-cat-bars { display: flex; flex-direction: column; gap: 4px; }
.cmp-cat-bar-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; }
.cmp-cat-pct { font-size: 0.78rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }

@media print {
    .cmp-fill, .cmp-dot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .cmp-track { background: #f4f4f5 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .cmp-q { box-shadow: none !important; border: 1px solid #d4d4d8 !important; }
}
