:root {
    --bg: #06172d;
    --bg-2: #092f62;
    --text: #f8fbff;
    --muted: rgba(248, 251, 255, 0.72);
    --faint: rgba(248, 251, 255, 0.52);
    --line: rgba(248, 251, 255, 0.16);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-strong: rgba(255, 255, 255, 0.16);
    --blue: #4da3ff;
    --blue-strong: #1f6fff;
    --cyan: #55e4ff;
    --orange: #ffb26b;
    --green: #44e0a7;
    --red: #ff6f7d;
    --shadow: 0 30px 90px rgba(0, 18, 46, 0.38);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}


* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(85, 228, 255, 0.28), transparent 28%),
        radial-gradient(circle at 78% 22%, rgba(31, 111, 255, 0.38), transparent 30%),
        radial-gradient(circle at 64% 88%, rgba(255, 178, 107, 0.15), transparent 26%),
        linear-gradient(145deg, var(--bg) 0%, var(--bg-2) 48%, #0b1d3a 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-wrapper,
.legal-page,
.nervo-container {
    width: min(1160px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0 64px;
}

.portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
    animation: fade-up 0.7s var(--ease) both;
}

.portal-spacer {
    display: none;
}

.portal-brand,
.portal-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 240ms var(--ease), color 180ms ease;
}

.portal-brand::before,
.portal-logo::before {
    content: "BZE";
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.04em;
    backdrop-filter: blur(16px);
    transition: background 180ms ease, border-color 180ms ease, transform 240ms var(--ease);
}

.portal-brand:hover,
.portal-logo:hover {
    color: var(--cyan);
    transform: translateY(-2px);
}

.portal-brand:hover::before,
.portal-logo:hover::before {
    border-color: rgba(85, 228, 255, 0.48);
    background: rgba(85, 228, 255, 0.18);
    transform: rotate(-4deg);
}

.portal-title,
.logo-container h1,
.dashboard-header h1,
.nervo-title,
.error-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 74px);
    line-height: 0.98;
    letter-spacing: 0;
    text-wrap: balance;
}

.portal-brand .portal-title,
.portal-logo .portal-title {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 820;
}

.portal-subtitle,
.login-subtitle,
.dashboard-header p,
.info-text,
.error-text {
    margin: 8px 0 0;
    color: var(--muted);
}

.portal-brand .portal-subtitle,
.portal-logo .portal-subtitle {
    display: block;
    margin: 2px 0 0;
    font-size: 13px;
}

.portal-user {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 10px 8px 14px;
    color: var(--muted);
    backdrop-filter: blur(16px);
}

.portal-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    border-radius: 999px;
    transition: color 180ms ease, transform 220ms var(--ease);
}

.portal-profile-link:hover,
.portal-profile-link:focus-visible {
    color: var(--cyan);
    outline: 0;
    transform: translateY(-1px);
}

.portal-profile-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(85, 228, 255, 0.3);
}

.portal-user-name {
    color: #ffffff;
    font-weight: 780;
}

.portal-user-role {
    color: var(--faint);
    font-size: 12px;
}

.portal-user-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue-strong));
    color: #031328;
    font-weight: 850;
}

.logout-btn,
.btn,
.edit-btn,
.delete-btn,
.guess-button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue-strong));
    color: #031328;
    padding: 0 16px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(31, 111, 255, 0.22);
    transition: transform 240ms var(--ease), filter 180ms ease, box-shadow 240ms var(--ease);
}

.logout-btn {
    min-height: 36px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 13px;
}

.delete-btn {
    background: linear-gradient(135deg, #ff9a9f, var(--red));
}

.edit-btn {
    background: linear-gradient(135deg, #d7f9ff, var(--cyan));
}

.btn:hover,
.edit-btn:hover,
.delete-btn:hover,
.guess-button:hover,
.logout-btn:hover,
button:hover,
input[type="submit"]:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 24px 58px rgba(31, 111, 255, 0.3);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    overflow-x: hidden;
}

.login-page.cookie-consent-required {
    overflow: hidden;
}

.error-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 16%, rgba(85, 228, 255, 0.13), transparent 32%),
        radial-gradient(circle at 85% 84%, rgba(31, 111, 255, 0.2), transparent 34%),
        #071d39;
    color: #f8fbff;
}

.error-page-shell {
    display: grid;
    width: min(960px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0 24px;
    grid-template-rows: auto 1fr auto;
}

.error-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.error-brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    background: #1f8cff;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.error-brand strong,
.error-brand small {
    display: block;
}

.error-brand strong {
    color: #fff;
    font-size: 16px;
}

.error-brand small,
.error-page-footer {
    color: rgba(248, 251, 255, 0.58);
    font-size: 12px;
}

.error-page-content {
    align-self: center;
    max-width: 640px;
    padding: 54px 0;
    animation: fade-up 420ms var(--ease) both;
}

.error-kicker {
    margin: 0 0 14px;
    color: #7becff;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.error-page-content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 840;
    letter-spacing: 0;
    line-height: 1.02;
    text-wrap: balance;
}

.error-page-content > p:not(.error-kicker) {
    max-width: 520px;
    margin: 20px 0 0;
    color: rgba(248, 251, 255, 0.72);
    font-size: 17px;
    line-height: 1.6;
}

.error-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.error-secondary-link {
    color: #c9f7ff;
    font-size: 14px;
    font-weight: 780;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms var(--ease);
}

.error-secondary-link:hover {
    color: #fff;
    transform: translateX(3px);
}

.error-page-footer {
    margin: 0;
}

@media (max-width: 600px) {
    .error-page-shell {
        width: min(100% - 32px, 960px);
        padding: 20px 0;
    }

    .error-page-content {
        padding: 46px 0;
    }

    .error-page-content h1 {
        font-size: 43px;
    }

    .error-page-content > p:not(.error-kicker) {
        font-size: 16px;
    }

    .error-page-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
}

.cookie-consent {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(3, 17, 37, 0.78);
    padding: 20px;
    backdrop-filter: blur(9px);
}

.cookie-consent-card {
    width: min(440px, 100%);
    border: 1px solid rgba(124, 235, 255, 0.34);
    border-radius: 18px;
    background: #0b2a4a;
    padding: 28px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 7, 20, 0.44);
    animation: fade-up 320ms var(--ease) both;
}

.cookie-consent-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 14px;
    background: rgba(85, 228, 255, 0.14);
    font-size: 24px;
}

.cookie-consent-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
}

.cookie-consent-card p {
    margin: 10px auto 22px;
    color: var(--muted);
    line-height: 1.55;
}

.cookie-consent-card button {
    min-width: 100%;
}

.login-box {
    width: min(430px, 100%);
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.1);
    padding: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    animation: fade-up 0.78s var(--ease) both;
}

.logo-container {
    margin-bottom: 26px;
    text-align: center;
}

.logo-glow {
    width: 78px;
    height: 4px;
    margin: 0 auto 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--blue-strong));
}

.login-box form,
.card form,
.box form,
.guess-form {
    display: grid;
    gap: 14px;
}

input,
select,
textarea,
.guess-input,
.user-search {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0 15px;
    color: #ffffff;
    outline: 0;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 220ms var(--ease);
}

select {
    color-scheme: dark;
}

select option,
select optgroup {
    background-color: #0b2a4a;
    color: #f8fbff;
}

select option:checked {
    background-color: #1f6fff;
    color: #ffffff;
}

textarea {
    min-height: 110px;
    padding-top: 14px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

input:focus,
select:focus,
textarea:focus,
.guess-input:focus,
.user-search:focus {
    border-color: rgba(85, 228, 255, 0.54);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 4px rgba(85, 228, 255, 0.12);
}

label,
.filter-label {
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 760;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remember-me input {
    width: auto;
    min-height: auto;
}

.remember-cookie-notice {
    margin: -4px 0 2px;
    padding: 10px 12px;
    border-left: 2px solid rgba(85, 228, 255, 0.72);
    color: var(--muted);
    background: rgba(85, 228, 255, 0.07);
    font-size: 12px;
    line-height: 1.5;
}

.dashboard-header,
.dashboard-section,
.card,
.box,
.dashboard-card,
.dashboard-info-box,
.next-break-card,
.stat-box,
.legal-card,
.error-box,
.success-box,
.empty-state,
.guess-card,
.bewertung-ansehen-card,
.bewertung-mobile-card,
.essen-mobile-card,
.prognose-card,
.zitat-list-item {
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.1);
    padding: 22px;
    box-shadow: 0 18px 52px rgba(0, 18, 46, 0.2);
    backdrop-filter: blur(18px);
    animation: fade-up 0.72s var(--ease) both;
    transition: transform 260ms var(--ease), border-color 180ms ease, background 180ms ease, box-shadow 260ms var(--ease);
}

.dashboard-header {
    margin-bottom: 18px;
    text-align: center;
}

.dashboard-section,
.card,
.box {
    margin-bottom: 18px;
}

.dashboard-card:hover,
.card:hover,
.box:hover,
.next-break-card:hover,
.stat-box:hover,
.guess-card:hover,
.bewertung-ansehen-card:hover,
.essen-mobile-card:hover,
.zitat-list-item:hover {
    border-color: rgba(85, 228, 255, 0.36);
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

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

.dashboard-card {
    display: grid;
    gap: 10px;
    min-height: 150px;
}

.dashboard-card h2,
.dashboard-card h3,
.card h2,
.card h3,
.box h2,
.box h3,
.section-title,
.bewertung-ansehen-gericht,
.mobile-gericht,
.nervo-title {
    margin: 0 0 8px;
    color: #ffffff;
    line-height: 1.14;
}

.dashboard-card p,
.card p,
.box p,
.bewertung-ansehen-kommentar,
.essen-mobile-date,
.mobile-type,
.guess-date,
.guess-type {
    color: var(--muted);
}

.dashboard-info-row,
.status-item,
.ranking-item,
.prognose-item,
.user-row,
.essen-row,
.desktop-row,
.guess-entry,
.bewertung-ansehen-review {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    transition: background 180ms ease, border-color 180ms ease, transform 240ms var(--ease);
}

.dashboard-info-row:hover,
.ranking-item:hover,
.prognose-item:hover,
.user-row:hover,
.essen-row:hover,
.desktop-row:hover,
.guess-entry:hover,
.bewertung-ansehen-review:hover {
    border-color: rgba(85, 228, 255, 0.32);
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-2px);
}

.table-responsive,
.user-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
}

table,
.user-table,
.desktop-table,
.bewertung-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
}

th,
td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    text-align: left;
}

th {
    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
    font-weight: 820;
}

td {
    color: var(--muted);
}

.role-badge,
.bewertung-ansehen-tag,
.bewertung-ansehen-typ,
.essen-mobile-badge,
.ranking-score,
.prognose-count,
.ok,
.success-box {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(85, 228, 255, 0.22);
    border-radius: 999px;
    background: rgba(85, 228, 255, 0.12);
    padding: 7px 10px;
    color: #c9f7ff;
    font-size: 13px;
    font-weight: 780;
}

.error,
.error-box {
    border-color: rgba(255, 111, 125, 0.28);
    background: rgba(255, 111, 125, 0.12);
    color: #ffd6dc;
}

.progress-bg,
.ranking-bar,
.prognose-bar {
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.ranking-bar-fill,
.prognose-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--blue-strong));
}

.bewertung-like-bar,
.essen-mobile-actions,
.zitat-list-item-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bewertung-like-btn {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 9px 12px;
}

.bewertung-like-btn.active-like {
    border-color: rgba(68, 224, 167, 0.4);
    background: rgba(68, 224, 167, 0.16);
}

.bewertung-like-btn.active-dislike {
    border-color: rgba(255, 111, 125, 0.4);
    background: rgba(255, 111, 125, 0.16);
}

.mobile-only {
    display: none;
}

.footer {
    width: min(1160px, calc(100% - 40px));
    margin: 32px auto 0;
    padding: 22px 0;
    color: var(--faint);
    text-align: center;
}

.footer a {
    color: #c9f7ff;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 980px) {
    .dashboard-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .site-wrapper,
    .legal-page,
    .nervo-container,
    .footer {
        width: min(100% - 28px, 680px);
    }

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

    .portal-user {
        width: 100%;
        border-radius: 22px;
        justify-content: space-between;
    }

    .desktop-table,
    .desktop-history {
        display: none;
    }

    .mobile-only,
    .mobile-history {
        display: block;
    }

    .login-box {
        border-radius: 26px;
        padding: 22px;
    }

    .portal-title,
    .logo-container h1,
    .dashboard-header h1,
    .nervo-title,
    .error-title {
        font-size: 42px;
    }
}

@media (max-width: 480px) {
    .portal-user {
        align-items: flex-start;
        flex-direction: column;
    }

    .logout-btn,
    .btn,
    .edit-btn,
    .delete-btn,
    .guess-button,
    button {
        width: 100%;
    }
}

/* ========================================
   DASHBOARD REWORK
======================================== */

.site-wrapper {
    width: min(1280px, calc(100% - 40px));
}

.portal-header {
    position: sticky;
    top: 18px;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(5, 22, 46, 0.62);
    padding: 12px;
    box-shadow: 0 18px 60px rgba(0, 18, 46, 0.22);
    backdrop-filter: blur(22px);
}

.portal-user {
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-header {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
    padding: clamp(24px, 4vw, 38px);
    text-align: left;
}

.dashboard-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(85, 228, 255, 0.16), transparent 34%),
        linear-gradient(300deg, rgba(31, 111, 255, 0.18), transparent 42%);
    pointer-events: none;
}

.dashboard-header > * {
    position: relative;
    z-index: 1;
}

.dashboard-header h1 {
    font-size: clamp(42px, 6vw, 82px);
}

.dashboard-header p {
    max-width: 620px;
    margin-top: -6px;
    font-size: clamp(16px, 2vw, 19px);
}

.dashboard-header p strong {
    color: #ffffff;
}

.dashboard-hint {
    display: block;
    margin-top: 6px;
    color: rgba(248, 251, 255, 0.66);
    font-size: 15px;
}

.dashboard-info-box {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px !important;
    margin-top: 14px !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

.dashboard-info-row {
    display: grid !important;
    align-items: start !important;
    gap: 9px !important;
    min-height: 118px;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 16px !important;
}

.dashboard-info-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.dashboard-info-row span {
    width: auto !important;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-weight: 780;
    letter-spacing: 0.01em;
}

.dashboard-info-row strong {
    display: block !important;
    width: auto !important;
    color: #ffffff;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.12;
    text-align: left !important;
}

.next-break-card {
    display: grid;
    gap: 8px;
    min-height: 110px;
    border-color: rgba(85, 228, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(85, 228, 255, 0.16), rgba(31, 111, 255, 0.12)),
        rgba(255, 255, 255, 0.1);
}

.next-break-card strong {
    color: #ffffff;
    font-size: clamp(18px, 2vw, 24px);
}

.next-break-card small {
    color: var(--muted);
    font-size: 14px;
}

.dashboard-section {
    margin-top: 22px;
    padding: 22px;
}

.dashboard-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.12;
}

.dashboard-section h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(85, 228, 255, 0.28), transparent);
}

.dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.dashboard-card {
    position: relative;
    overflow: hidden;
    align-content: start;
    min-height: 176px;
    padding: 22px;
    color: #ffffff;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(85, 228, 255, 0.1), transparent 42%);
    opacity: 0;
    transition: opacity 220ms ease;
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card > * {
    position: relative;
    z-index: 1;
}

.dashboard-card span:first-child {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(85, 228, 255, 0.24);
    border-radius: 16px;
    background: rgba(85, 228, 255, 0.12);
    margin-bottom: 18px;
    font-size: 21px;
}

.dashboard-card {
    font-size: 18px;
    font-weight: 820;
}

.dashboard-card small,
.dashboard-card p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.dashboard-section + .dashboard-section {
    margin-top: 18px;
}

.card,
.box,
.dashboard-card,
.dashboard-section,
.dashboard-header,
.next-break-card {
    border-radius: 24px;
}

.table-responsive,
.user-table-wrapper {
    box-shadow: 0 18px 52px rgba(0, 18, 46, 0.16);
}

th {
    background: rgba(255, 255, 255, 0.06);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.success-box,
.error-box,
.empty-state {
    margin-bottom: 16px;
}

@media (max-width: 1120px) {
    .dashboard-info-box {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-wrapper {
        width: min(100% - 28px, 680px);
        padding-top: 16px;
    }

    .portal-header {
        position: static;
    }

    .dashboard-info-box {
        grid-template-columns: 1fr;
    }

    .dashboard-info-row {
        min-height: auto;
    }

    .dashboard-section {
        padding: 18px;
    }

    .dashboard-card {
        min-height: 150px;
    }
}

/* ========================================
   CENTERED DASHBOARD LAYOUT
======================================== */

.site-wrapper {
    width: min(1180px, calc(100% - 40px));
}

.dashboard-header {
    width: min(980px, 100%);
    margin: 0 auto 26px;
    justify-items: center;
    text-align: center;
}

.dashboard-header p {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
}

.dashboard-info-box {
    width: min(900px, 100%);
    margin: 18px auto 0 !important;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.dashboard-info-row {
    justify-items: center;
    text-align: center;
}

.dashboard-info-row span,
.dashboard-info-row strong {
    text-align: center !important;
}

.next-break-card {
    width: min(760px, 100%);
    margin: 0 auto 12px;
    justify-items: center;
    text-align: center;
}

.dashboard-section {
    width: min(1040px, 100%);
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.dashboard-section h2 {
    justify-content: center;
    text-align: center;
}

.dashboard-section h2::before,
.dashboard-section h2::after {
    content: "";
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(85, 228, 255, 0.28));
}

.dashboard-section h2::after {
    background: linear-gradient(90deg, rgba(85, 228, 255, 0.28), transparent);
}

.dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    justify-content: center;
}

.dashboard-card {
    display: grid;
    gap: 10px;
    justify-items: center;
    align-content: center;
    min-height: 168px;
    text-align: center;
    text-wrap: balance;
}

.dashboard-card span:first-child {
    margin: 0 auto 16px;
    color: #c9f7ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.dashboard-card small,
.dashboard-card p {
    max-width: 24ch;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 1120px) {
    .dashboard-info-box {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 760px) {
    .dashboard-info-box {
        grid-template-columns: 1fr;
    }

    .dashboard-section h2::before,
    .dashboard-section h2::after {
        max-width: 54px;
    }
}

@media (max-width: 520px) {
    .dashboard-section h2 {
        display: grid;
        gap: 10px;
    }

    .dashboard-section h2::before,
    .dashboard-section h2::after {
        display: none;
    }
}

/* ========================================
   DASHBOARD: SIDEBAR WORKSPACE
======================================== */

.portal-brand::before,
.portal-logo::before {
    display: none;
}

.portal-brand {
    gap: 12px;
}

.portal-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    background: #1f8cff;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.portal-brand-copy {
    display: grid;
    gap: 2px;
}

.portal-navigation {
    display: none;
}

.site-footer {
    width: min(1160px, calc(100% - 40px));
    margin: 26px auto 0;
    padding: 18px 0 30px;
    color: var(--faint);
    text-align: center;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.site-footer a {
    color: #c9f7ff;
}

.footer-divider {
    color: var(--faint);
}

body:has(.dashboard-header) {
    background: #eef3f7;
    color: #1b2735;
}

body:has(.dashboard-header) .site-wrapper {
    display: grid;
    width: 100%;
    max-width: 1560px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
}

body:has(.dashboard-header) .site-wrapper > :not(.portal-header) {
    grid-column: 2;
}

body:has(.dashboard-header) .portal-header {
    position: sticky;
    top: 0;
    display: flex;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #082b4b;
    padding: 28px 18px 22px;
    box-shadow: none;
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
    backdrop-filter: none;
}

body:has(.dashboard-header) .portal-brand {
    padding: 0 10px;
    color: #ffffff;
}

body:has(.dashboard-header) .portal-brand .portal-title {
    color: #ffffff;
    font-size: 19px;
    font-weight: 820;
}

body:has(.dashboard-header) .portal-brand .portal-subtitle {
    color: rgba(231, 242, 251, 0.62);
    font-size: 11px;
}

body:has(.dashboard-header) .portal-navigation {
    display: grid;
    gap: 4px;
}

body:has(.dashboard-header) .portal-nav-link {
    display: flex;
    min-height: 45px;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    padding: 0 11px;
    color: rgba(231, 242, 251, 0.73);
    font-size: 14px;
    font-weight: 700;
    transition: background 180ms ease, color 180ms ease, transform 180ms var(--ease);
}

body:has(.dashboard-header) .portal-nav-link:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    transform: translateX(3px);
}

body:has(.dashboard-header) .portal-nav-link--active {
    background: #1f8cff;
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(0, 17, 39, 0.22);
}

body:has(.dashboard-header) .portal-nav-mark {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 9px;
    font-weight: 850;
}

body:has(.dashboard-header) .portal-nav-link--active .portal-nav-mark {
    border-color: rgba(255, 255, 255, 0.42);
    color: #ffffff;
}

body:has(.dashboard-header) .portal-user {
    margin-top: auto;
    border-color: rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    background: rgba(0, 13, 33, 0.22);
    padding: 10px;
    color: #ffffff;
}

body:has(.dashboard-header) .portal-user-avatar {
    width: 32px;
    height: 32px;
    background: #67d9e7;
    color: #082b4b;
    font-size: 13px;
}

body:has(.dashboard-header) .portal-user-name {
    font-size: 13px;
}

body:has(.dashboard-header) .portal-user-role {
    color: rgba(231, 242, 251, 0.62);
}

body:has(.dashboard-header) .logout-btn {
    min-height: 30px;
    background: transparent;
    box-shadow: none;
    color: #cceaff;
    padding: 0 2px;
    font-size: 11px;
}

body:has(.dashboard-header) .logout-btn:hover {
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

body:has(.dashboard-header) .dashboard-header {
    width: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 38px 38px 24px;
    box-shadow: none;
    text-align: left;
    justify-items: start;
    animation: none;
}

body:has(.dashboard-header) .dashboard-header::before {
    display: none;
}

body:has(.dashboard-header) .dashboard-header h1 {
    color: #1b2735;
    font-size: 31px;
    font-weight: 760;
    letter-spacing: 0;
}

body:has(.dashboard-header) .dashboard-header p {
    max-width: none;
    margin: 0;
    color: #657586;
    font-size: 15px;
}

body:has(.dashboard-header) .dashboard-header p strong {
    color: #1b2735;
}

body:has(.dashboard-header) .dashboard-hint {
    margin-top: 3px;
    color: #7a8896;
    font-size: 13px;
}

body:has(.dashboard-header) .dashboard-info-box {
    width: 100%;
    margin: 10px 0 0 !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px !important;
}

body:has(.dashboard-header) .dashboard-info-row {
    min-height: 118px;
    border: 1px solid #dce5ec !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    padding: 18px !important;
    box-shadow: 0 2px 8px rgba(18, 44, 68, 0.04);
    justify-items: start;
    text-align: left;
}

body:has(.dashboard-header) .dashboard-info-row:hover {
    border-color: #a9cce9 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 22px rgba(18, 44, 68, 0.08);
    transform: translateY(-2px);
}

body:has(.dashboard-header) .dashboard-info-row span {
    color: #7b8997;
    font-size: 12px;
    font-weight: 700;
    text-align: left !important;
}

body:has(.dashboard-header) .dashboard-info-row strong {
    color: #1b2735;
    font-size: 23px;
    font-weight: 690;
    text-align: left !important;
}

body:has(.dashboard-header) .next-break-card {
    width: auto;
    min-height: 70px;
    margin: 0 38px 24px;
    border: 1px solid #c8dded;
    border-radius: 10px;
    background: #e7f4fd;
    padding: 15px 18px;
    box-shadow: none;
    justify-items: start;
    text-align: left;
    animation: none;
}

body:has(.dashboard-header) .next-break-card strong {
    color: #16456f;
    font-size: 15px;
}

body:has(.dashboard-header) .next-break-card small {
    color: #52718d;
}

body:has(.dashboard-header) .dashboard-section {
    width: auto;
    margin: 0 38px 18px;
    border: 1px solid #dce5ec;
    border-radius: 10px;
    background: #ffffff;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(18, 44, 68, 0.04);
    text-align: left;
    animation: none;
}

body:has(.dashboard-header) .dashboard-section h2 {
    justify-content: flex-start;
    margin: 0 0 18px;
    color: #263545;
    font-size: 17px;
    font-weight: 760;
    text-align: left;
}

body:has(.dashboard-header) .dashboard-section h2::before,
body:has(.dashboard-header) .dashboard-section h2::after {
    display: none;
}

body:has(.dashboard-header) .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

body:has(.dashboard-header) .dashboard-card {
    min-height: 84px;
    border: 1px solid #e2e9ef;
    border-radius: 8px;
    background: #ffffff;
    padding: 15px;
    box-shadow: none;
    color: #2a3a4a;
    display: flex;
    align-items: center;
    justify-items: start;
    gap: 13px;
    font-size: 14px;
    font-weight: 730;
    text-align: left;
    animation: none;
}

body:has(.dashboard-header) .dashboard-card::before {
    display: none;
}

body:has(.dashboard-header) .dashboard-card span:first-child {
    width: 38px;
    height: 38px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: #e8f3fd;
    color: #1676cf;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
    flex: 0 0 auto;
}

body:has(.dashboard-header) .dashboard-card:hover {
    border-color: #9cc9ef;
    background: #f8fbfe;
    box-shadow: 0 8px 18px rgba(18, 44, 68, 0.07);
    transform: translateY(-2px);
}

body:has(.dashboard-header) .site-footer {
    margin: 0 38px;
    padding: 8px 0 26px;
    color: #778696;
    grid-column: 2;
}

body:has(.dashboard-header) .site-footer a {
    color: #527a9f;
}

@media (max-width: 1180px) {
    body:has(.dashboard-header) .dashboard-info-box {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body:has(.dashboard-header) .site-wrapper {
        display: block;
    }

    body:has(.dashboard-header) .portal-header {
        position: relative;
        min-height: auto;
        padding: 16px;
        gap: 16px;
    }

    body:has(.dashboard-header) .portal-navigation {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 3px;
    }

    body:has(.dashboard-header) .portal-nav-link {
        min-height: 38px;
        flex: 0 0 auto;
        padding: 0 10px;
        font-size: 12px;
    }

    body:has(.dashboard-header) .portal-user {
        position: absolute;
        top: 15px;
        right: 16px;
        margin: 0;
        padding: 5px;
        background: transparent;
        border: 0;
    }

    body:has(.dashboard-header) .portal-user-details,
    body:has(.dashboard-header) .logout-btn {
        display: none;
    }

    body:has(.dashboard-header) .dashboard-header {
        padding: 28px 22px 18px;
    }

    body:has(.dashboard-header) .next-break-card,
    body:has(.dashboard-header) .dashboard-section,
    body:has(.dashboard-header) .site-footer {
        margin-right: 22px;
        margin-left: 22px;
    }
}

@media (max-width: 600px) {
    body:has(.dashboard-header) .dashboard-info-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body:has(.dashboard-header) .dashboard-info-row {
        min-height: 98px;
        padding: 14px !important;
    }

    body:has(.dashboard-header) .dashboard-info-row strong {
        font-size: 18px;
    }

    body:has(.dashboard-header) .dashboard-section {
        padding: 16px;
    }

    body:has(.dashboard-header) .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Full-width dashboard layout */
body:has(.dashboard-header) {
    background:
        radial-gradient(circle at 14% 8%, rgba(85, 228, 255, 0.2), transparent 30%),
        radial-gradient(circle at 92% 16%, rgba(31, 111, 255, 0.24), transparent 34%),
        linear-gradient(145deg, #06172d 0%, #092f62 52%, #0b1d3a 100%);
    color: var(--text);
}

body:has(.dashboard-header) .site-wrapper {
    display: block;
    width: min(100% - 48px, 1540px);
    max-width: none;
    min-height: 100vh;
    margin: 0 auto;
    padding: 22px 0 58px;
}

body:has(.dashboard-header) .site-wrapper > :not(.portal-header) {
    grid-column: auto;
}

body:has(.dashboard-header) .portal-header {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    min-height: auto;
    margin: 0 0 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(5, 22, 46, 0.7);
    padding: 12px 16px;
    box-shadow: 0 18px 60px rgba(0, 18, 46, 0.22);
    flex-direction: row;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(22px);
}

body:has(.dashboard-header) .portal-brand {
    padding: 0;
    color: #ffffff;
}

body:has(.dashboard-header) .portal-brand .portal-title {
    color: #ffffff;
    font-size: 18px;
}

body:has(.dashboard-header) .portal-brand .portal-subtitle {
    color: rgba(248, 251, 255, 0.62);
    font-size: 12px;
}

body:has(.dashboard-header) .portal-navigation {
    display: none;
}

body:has(.dashboard-header) .portal-user {
    width: auto;
    margin: 0 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 7px 8px 7px 12px;
}

body:has(.dashboard-header) .portal-user-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--cyan), var(--blue-strong));
    color: #031328;
}

body:has(.dashboard-header) .portal-user-name {
    color: #ffffff;
}

body:has(.dashboard-header) .portal-user-role {
    color: var(--faint);
}

body:has(.dashboard-header) .logout-btn {
    min-height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue-strong));
    box-shadow: none;
    color: #031328;
    padding: 0 11px;
    font-size: 12px;
}

body:has(.dashboard-header) .dashboard-header {
    width: 100%;
    margin: 0 0 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(125deg, rgba(85, 228, 255, 0.13), transparent 38%),
        rgba(255, 255, 255, 0.1);
    padding: clamp(26px, 4vw, 46px);
    box-shadow: 0 18px 52px rgba(0, 18, 46, 0.2);
    text-align: left;
    justify-items: start;
    animation: fade-up 0.72s var(--ease) both;
}

body:has(.dashboard-header) .dashboard-header h1 {
    color: #ffffff;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
}

body:has(.dashboard-header) .dashboard-header p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

body:has(.dashboard-header) .dashboard-header p strong {
    color: #ffffff;
}

body:has(.dashboard-header) .dashboard-hint {
    color: rgba(248, 251, 255, 0.66);
}

body:has(.dashboard-header) .dashboard-info-box {
    width: 100%;
    margin: 20px 0 0 !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px !important;
}

body:has(.dashboard-header) .dashboard-info-row {
    min-height: 118px;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 17px !important;
    box-shadow: none;
    justify-items: start;
    text-align: left;
}

body:has(.dashboard-header) .dashboard-info-row:hover {
    border-color: rgba(85, 228, 255, 0.36) !important;
    background: rgba(255, 255, 255, 0.14) !important;
    box-shadow: none;
}

body:has(.dashboard-header) .dashboard-info-row span,
body:has(.dashboard-header) .dashboard-info-row strong {
    text-align: left !important;
}

body:has(.dashboard-header) .dashboard-info-row span {
    color: rgba(255, 255, 255, 0.62);
}

body:has(.dashboard-header) .dashboard-info-row strong {
    color: #ffffff;
    font-size: clamp(20px, 2vw, 27px);
}

body:has(.dashboard-header) .next-break-card {
    width: 100%;
    min-height: 80px;
    margin: 0 0 20px;
    border: 1px solid rgba(85, 228, 255, 0.28);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(85, 228, 255, 0.15), rgba(31, 111, 255, 0.12));
    padding: 18px 22px;
    box-shadow: none;
    justify-items: start;
    text-align: left;
    animation: fade-up 0.72s var(--ease) both;
}

body:has(.dashboard-header) .next-break-card strong {
    color: #ffffff;
    font-size: 19px;
}

body:has(.dashboard-header) .next-break-card small {
    color: var(--muted);
}

body:has(.dashboard-header) .dashboard-section {
    width: 100%;
    margin: 0 0 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.09);
    padding: 24px;
    box-shadow: 0 18px 52px rgba(0, 18, 46, 0.16);
    text-align: left;
    animation: fade-up 0.72s var(--ease) both;
}

body:has(.dashboard-header) .dashboard-section h2 {
    justify-content: flex-start;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 22px;
    text-align: left;
}

body:has(.dashboard-header) .dashboard-section h2::before,
body:has(.dashboard-header) .dashboard-section h2::after {
    display: none;
}

body:has(.dashboard-header) .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

body:has(.dashboard-header) .dashboard-card {
    min-height: 126px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    padding: 18px;
    box-shadow: none;
    color: #ffffff;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 10px;
    font-size: 16px;
    text-align: left;
    animation: none;
}

body:has(.dashboard-header) .dashboard-card span:first-child {
    width: 38px;
    height: 38px;
    margin: 0;
    border: 1px solid rgba(85, 228, 255, 0.24);
    border-radius: 11px;
    background: rgba(85, 228, 255, 0.12);
    color: #c9f7ff;
    font-size: 9px;
}

body:has(.dashboard-header) .dashboard-card:hover {
    border-color: rgba(85, 228, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px rgba(0, 18, 46, 0.18);
}

body:has(.dashboard-header) .site-footer {
    width: 100%;
    margin: 0;
    padding: 12px 0 0;
    color: var(--faint);
}

body:has(.dashboard-header) .site-footer a {
    color: #c9f7ff;
}

@media (max-width: 1050px) {
    body:has(.dashboard-header) .dashboard-info-box {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body:has(.dashboard-header) .site-wrapper {
        width: min(100% - 28px, 700px);
        padding-top: 16px;
    }

    body:has(.dashboard-header) .portal-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    body:has(.dashboard-header) .portal-user {
        width: 100%;
        margin: 0;
        justify-content: space-between;
    }

    body:has(.dashboard-header) .dashboard-header,
    body:has(.dashboard-header) .dashboard-section {
        padding: 20px;
    }

    body:has(.dashboard-header) .dashboard-info-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    body:has(.dashboard-header) .dashboard-info-box,
    body:has(.dashboard-header) .dashboard-grid {
        grid-template-columns: 1fr;
    }

    body:has(.dashboard-header) .portal-user {
        align-items: flex-start;
        flex-direction: column;
    }

    body:has(.dashboard-header) .logout-btn {
        width: 100%;
    }
}

/* Dashboard spacing and orientation */
body:has(.dashboard-header) .dashboard-header {
    margin-bottom: 28px;
    text-align: center;
    justify-items: center;
}

body:has(.dashboard-header) .dashboard-header p {
    text-align: center;
}

body:has(.dashboard-header) .dashboard-info-box {
    gap: 16px !important;
}

body:has(.dashboard-header) .dashboard-info-row {
    justify-items: center;
    text-align: center;
}

body:has(.dashboard-header) .dashboard-info-row span,
body:has(.dashboard-header) .dashboard-info-row strong {
    text-align: center !important;
}

body:has(.dashboard-header) .next-break-card {
    margin-bottom: 30px;
    justify-items: center;
    text-align: center;
}

body:has(.dashboard-header) .dashboard-section {
    margin-bottom: 30px;
    padding: 28px;
}

body:has(.dashboard-header) .dashboard-section h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
    text-align: center;
}

body:has(.dashboard-header) .dashboard-section h2::before,
body:has(.dashboard-header) .dashboard-section h2::after {
    content: "";
    display: block;
    width: min(12vw, 150px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(85, 228, 255, 0.42));
}

body:has(.dashboard-header) .dashboard-section h2::after {
    background: linear-gradient(90deg, rgba(85, 228, 255, 0.42), transparent);
}

body:has(.dashboard-header) .dashboard-grid {
    gap: 16px;
}

body:has(.dashboard-header) .dashboard-card {
    min-height: 136px;
    justify-items: center;
    text-align: center;
}

body:has(.dashboard-header) .dashboard-card span:first-child {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 21px;
    line-height: 1;
}

@media (max-width: 720px) {
    body:has(.dashboard-header) .dashboard-section {
        margin-bottom: 22px;
        padding: 20px;
    }

    body:has(.dashboard-header) .dashboard-section h2::before,
    body:has(.dashboard-header) .dashboard-section h2::after {
        width: 44px;
    }
}

/* Portal navigation */
.portal-navigation {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.portal-nav-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    border-radius: 10px;
    padding: 0 10px;
    color: rgba(248, 251, 255, 0.7);
    font-size: 13px;
    font-weight: 720;
    white-space: nowrap;
    transition: background 180ms ease, color 180ms ease, transform 180ms var(--ease);
}

.portal-nav-link:hover,
.portal-nav-link.is-active {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
}

.portal-nav-link:hover {
    transform: translateY(-1px);
}

.portal-nav-link.is-active {
    box-shadow: inset 0 -2px 0 var(--cyan);
}

.portal-nav-icon {
    font-size: 14px;
    line-height: 1;
}

.portal-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    box-shadow: none;
}

.portal-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transition: transform 200ms var(--ease), opacity 160ms ease;
}

.portal-nav-toggle span + span {
    margin-top: 5px;
}

.portal-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.portal-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.portal-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body:has(.dashboard-header) .portal-navigation {
    display: flex;
}

body:has(.dashboard-header) .portal-user {
    margin-left: 0;
}

@media (max-width: 980px) {
    .portal-header,
    body:has(.dashboard-header) .portal-header {
        position: sticky;
        top: 10px;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .portal-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .portal-nav-toggle {
        display: grid;
        place-content: center;
        flex: 0 0 auto;
    }

    .portal-navigation,
    body:has(.dashboard-header) .portal-navigation {
        display: none;
        width: 100%;
        order: 3;
        margin: 4px 0 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        animation: nav-reveal 220ms var(--ease) both;
    }

    .portal-navigation.is-open,
    body:has(.dashboard-header) .portal-navigation.is-open {
        display: grid;
    }

    .portal-nav-link {
        min-height: 46px;
        justify-content: flex-start;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.07);
        padding: 0 12px;
    }

    .portal-user,
    body:has(.dashboard-header) .portal-user {
        width: 100%;
        order: 4;
        margin: 0;
        justify-content: space-between;
    }
}

@media (max-width: 520px) {
    .portal-navigation,
    body:has(.dashboard-header) .portal-navigation {
        grid-template-columns: 1fr;
    }

    .portal-brand .portal-subtitle {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@keyframes nav-reveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation categories */
.portal-nav-dropdown {
    position: relative;
}

.portal-dropdown-toggle {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    color: rgba(248, 251, 255, 0.7);
    padding: 0 10px;
    font-size: 13px;
    font-weight: 720;
}

.portal-dropdown-toggle:hover,
.portal-nav-dropdown.is-open .portal-dropdown-toggle,
.portal-nav-dropdown.is-active .portal-dropdown-toggle {
    background: rgba(255, 255, 255, 0.13);
    box-shadow: none;
    color: #ffffff;
    filter: none;
    transform: none;
}

.portal-nav-dropdown.is-active .portal-dropdown-toggle {
    box-shadow: inset 0 -2px 0 var(--cyan);
}

.portal-dropdown-arrow {
    margin-left: 1px;
    font-size: 17px;
    line-height: 1;
    transition: transform 180ms var(--ease);
}

.portal-nav-dropdown.is-open .portal-dropdown-arrow {
    transform: rotate(180deg);
}

.portal-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    display: none;
    min-width: 210px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(6, 27, 55, 0.96);
    padding: 7px;
    box-shadow: 0 20px 44px rgba(0, 12, 32, 0.32);
    backdrop-filter: blur(18px);
}

.portal-nav-dropdown.is-open .portal-dropdown-menu {
    display: grid;
    gap: 3px;
    animation: nav-reveal 180ms var(--ease) both;
}

.portal-dropdown-menu a {
    display: flex;
    min-height: 38px;
    align-items: center;
    border-radius: 8px;
    color: rgba(248, 251, 255, 0.76);
    padding: 0 10px;
    font-size: 13px;
    font-weight: 650;
    transition: background 160ms ease, color 160ms ease;
}

.portal-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
}

@media (min-width: 981px) and (hover: hover) {
    .portal-nav-dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        height: 8px;
    }

    .portal-nav-dropdown:hover .portal-dropdown-toggle {
        background: rgba(255, 255, 255, 0.13);
        box-shadow: none;
        color: #ffffff;
        filter: none;
        transform: none;
    }

    .portal-nav-dropdown:hover .portal-dropdown-arrow {
        transform: rotate(180deg);
    }

    .portal-nav-dropdown:hover .portal-dropdown-menu {
        display: grid;
        gap: 3px;
        animation: nav-reveal 180ms var(--ease) both;
    }
}

@media (max-width: 980px) {
    .portal-nav-dropdown {
        display: grid;
        gap: 7px;
    }

    .portal-dropdown-toggle {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.07);
        padding: 0 12px;
    }

    .portal-dropdown-arrow {
        margin-left: auto;
    }

    .portal-dropdown-menu {
        position: static;
        min-width: 0;
        border-color: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        background: rgba(0, 10, 29, 0.2);
        padding: 5px;
        box-shadow: none;
    }

    .portal-dropdown-menu a {
        min-height: 42px;
        padding: 0 11px;
    }
}

/* Compact mobile dashboard */
@media (max-width: 720px) {
    body:has(.dashboard-header) .portal-header {
        position: sticky;
        top: 8px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 10px;
        padding: 12px;
    }

    body:has(.dashboard-header) .portal-brand {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    body:has(.dashboard-header) .portal-brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 10px;
    }

    body:has(.dashboard-header) .portal-brand .portal-title {
        font-size: 17px;
    }

    body:has(.dashboard-header) .portal-nav-toggle {
        display: grid;
        width: 42px;
        height: 42px;
        grid-column: 2;
        grid-row: 1;
        place-content: center;
        margin: 0;
    }

    body:has(.dashboard-header) .portal-navigation,
    body:has(.dashboard-header) .portal-navigation.is-open {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    body:has(.dashboard-header) .portal-user {
        position: static;
        top: auto;
        right: auto;
        display: flex;
        width: 100%;
        grid-column: 1 / -1;
        grid-row: 3;
        margin: 0;
        padding: 7px 8px 7px 10px;
        border-radius: 12px;
        align-items: center;
        flex-direction: row;
    }

    body:has(.dashboard-header) .portal-user-details {
        display: block;
        min-width: 0;
    }

    body:has(.dashboard-header) .portal-user-name,
    body:has(.dashboard-header) .portal-user-role {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:has(.dashboard-header) .logout-btn {
        display: inline-flex;
        width: auto;
        min-width: 70px;
        margin-left: auto;
    }

    body:has(.dashboard-header) .dashboard-header {
        margin-bottom: 18px;
        padding: 26px 18px;
    }

    body:has(.dashboard-header) .dashboard-header h1 {
        font-size: 36px;
    }

    body:has(.dashboard-header) .dashboard-header p {
        font-size: 15px;
    }

    body:has(.dashboard-header) .dashboard-info-box {
        gap: 10px !important;
    }

    body:has(.dashboard-header) .dashboard-info-row {
        min-height: 108px;
        padding: 14px !important;
    }

    body:has(.dashboard-header) .dashboard-info-row strong {
        font-size: 22px;
    }

    body:has(.dashboard-header) .next-break-card {
        min-height: 70px;
        margin-bottom: 22px;
        padding: 16px;
    }

    body:has(.dashboard-header) .dashboard-section {
        padding: 18px;
    }

    body:has(.dashboard-header) .dashboard-card {
        min-height: 118px;
    }
}

@media (max-width: 480px) {
    body:has(.dashboard-header) .dashboard-info-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body:has(.dashboard-header) .dashboard-info-row:nth-child(5) {
        grid-column: 1 / -1;
        min-height: 92px;
    }

    body:has(.dashboard-header) .dashboard-section h2 {
        font-size: 19px;
    }

    body:has(.dashboard-header) .dashboard-section h2::before,
    body:has(.dashboard-header) .dashboard-section h2::after {
        display: none;
    }
}

.portal-nav-toggle .portal-nav-toggle-symbol {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-size: 25px;
    font-weight: 500;
    line-height: 1;
    transition: transform 180ms var(--ease);
}

.portal-nav-toggle[aria-expanded="true"] .portal-nav-toggle-symbol {
    transform: rotate(90deg);
}

/* Uniform dashboard statistic cards */
body:has(.dashboard-header) .dashboard-info-box {
    grid-auto-rows: 132px;
}

body:has(.dashboard-header) .dashboard-info-row {
    height: 100%;
    min-height: 0;
    align-content: center;
    overflow: hidden;
}

body:has(.dashboard-header) .dashboard-info-row strong {
    display: -webkit-box !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 720px) {
    body:has(.dashboard-header) .dashboard-info-box {
        grid-auto-rows: 112px;
    }
}

@media (max-width: 480px) {
    body:has(.dashboard-header) .dashboard-info-row:nth-child(5) {
        min-height: 0;
    }
}

/* Dashboard statistics as a vertical overview */
body:has(.dashboard-header) .dashboard-info-box {
    grid-template-columns: 1fr;
    grid-auto-rows: 78px;
    gap: 9px !important;
}

body:has(.dashboard-header) .dashboard-info-row {
    display: grid !important;
    grid-template-columns: minmax(150px, 1fr) minmax(0, 1.4fr);
    align-items: center !important;
    align-content: normal;
    justify-items: stretch;
    padding: 14px 18px !important;
    text-align: left;
}

body:has(.dashboard-header) .dashboard-info-row span {
    font-size: 19px;
    text-align: left !important;
}

body:has(.dashboard-header) .dashboard-info-row strong {
    display: block !important;
    max-height: 2.5em;
    overflow: hidden;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.25;
    text-align: right !important;
    -webkit-line-clamp: unset;
}

@media (max-width: 520px) {
    body:has(.dashboard-header) .dashboard-info-box {
        grid-auto-rows: 72px;
    }

    body:has(.dashboard-header) .dashboard-info-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        padding: 12px 14px !important;
    }

    body:has(.dashboard-header) .dashboard-info-row span {
        font-size: 17px;
    }

    body:has(.dashboard-header) .dashboard-info-row strong {
        font-size: 17px;
    }

    body:has(.dashboard-header) .dashboard-info-row:nth-child(5) {
        grid-column: auto;
    }
}

/* Meal rating workflow */
.rating-meal-list {
    display: grid;
    gap: 18px;
}

.rating-meal {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    padding: 18px;
}

.rating-meal-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.rating-meal-meta strong {
    color: #ffffff;
    font-size: 17px;
}

.rating-meal-meta span,
.rating-search-empty {
    color: var(--muted);
    font-size: 13px;
}

.rating-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rating-form {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    padding: 16px;
}

.rating-form h3 {
    min-height: 2.5em;
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.28;
}

.rating-type {
    color: #c9f7ff;
    font-size: 13px;
    font-weight: 780;
}

.rating-form label {
    display: grid;
    gap: 7px;
}

.rating-form textarea {
    min-height: 88px;
}

.rating-form .rating-comment {
    max-height: 360px;
    overflow-y: hidden;
    resize: none;
}

.rating-form .rating-comment.has-scroll {
    overflow-y: auto;
}

.rating-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.rating-actions .delete-btn {
    min-height: 42px;
}

.rating-search {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0 16px;
}

.rating-search summary {
    cursor: pointer;
    color: #ffffff;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 760;
}

.rating-search-form {
    display: grid;
    gap: 9px;
    padding: 4px 0 16px;
}

.rating-search-form > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.rating-search-input-wrap {
    position: relative;
}

.rating-autocomplete {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 15;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(85, 228, 255, 0.28);
    border-radius: 12px;
    background: #0a2343;
    box-shadow: 0 18px 38px rgba(0, 12, 32, 0.34);
}

.rating-autocomplete.is-visible {
    display: grid;
}

.rating-autocomplete-item {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    padding: 10px 12px;
    text-align: left;
}

.rating-autocomplete-item + .rating-autocomplete-item {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.rating-autocomplete-item:hover,
.rating-autocomplete-item:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    filter: none;
    outline: 0;
    transform: none;
}

.rating-autocomplete-item > span:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.rating-autocomplete-item strong,
.rating-autocomplete-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rating-autocomplete-item strong {
    color: #ffffff;
}

.rating-autocomplete-item > span:last-child {
    flex: 0 0 auto;
    color: rgba(248, 251, 255, 0.58);
    font-size: 12px;
}

.rating-search-form button {
    min-width: 104px;
}

.rating-search-results {
    display: grid;
    gap: 8px;
    padding: 0 0 16px;
}

.rating-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    padding: 12px;
    color: var(--muted);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.rating-search-result:hover {
    border-color: rgba(85, 228, 255, 0.34);
    background: rgba(255, 255, 255, 0.11);
    transform: translateY(-1px);
}

.rating-search-result span:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.rating-search-result strong,
.rating-search-result small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rating-search-result strong {
    color: #ffffff;
}

.review-variant-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.review-variant {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    padding: 16px;
}

.review-variant-heading h3 {
    min-height: 2.5em;
    margin: 5px 0 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.28;
}

.review-empty {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.review-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.review-actions .delete-btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
}

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

.ranking-item {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
    padding: 15px;
}

.ranking-item-link {
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms var(--ease);
}

.ranking-item-link:hover,
.ranking-item-link:focus-visible {
    border-color: rgba(85, 228, 255, 0.42);
    background: rgba(255, 255, 255, 0.11);
    outline: 0;
    transform: translateY(-2px);
}

.ranking-top,
.ranking-name {
    display: flex;
    align-items: center;
}

.ranking-top {
    justify-content: space-between;
    gap: 14px;
}

.ranking-name {
    min-width: 0;
    gap: 10px;
}

.ranking-place {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: rgba(85, 228, 255, 0.12);
    font-size: 16px;
    font-weight: 800;
    flex: 0 0 auto;
}

.ranking-name > span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ranking-name strong {
    overflow: hidden;
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-name small,
.ranking-count {
    color: var(--muted);
    font-size: 12px;
}

.ranking-score {
    flex: 0 0 auto;
}

.guess-day-meta {
    display: grid;
    gap: 3px;
    margin-bottom: 18px;
    text-align: center;
}

.guess-day-meta strong {
    color: #ffffff;
    font-size: 18px;
}

.guess-day-meta span {
    color: var(--muted);
    font-size: 13px;
}

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

.guess-card {
    min-width: 0;
}

.guess-forecast {
    display: grid;
    gap: 8px;
    margin: 14px 0 18px;
    padding: 13px 14px;
    border: 1px solid rgba(85, 228, 255, 0.2);
    border-radius: 14px;
    background: rgba(4, 30, 73, 0.26);
}

.guess-forecast-title {
    color: #dffaff;
    font-size: 13px;
    font-weight: 800;
}

.guess-forecast-list {
    display: grid;
    gap: 6px;
}

.guess-forecast-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.guess-forecast-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guess-forecast-item strong {
    flex: 0 0 auto;
    color: #ffffff;
}

.guess-forecast-empty {
    color: var(--muted);
    font-size: 13px;
}

.guess-card .guess-solution-label {
    margin-top: 18px;
}

.guess-delete-form {
    margin-top: 12px;
}

.guess-delete-form .delete-btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
}

.guess-ranking-list {
    display: grid;
    gap: 10px;
}

.guess-ranking-list .guess-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}

.profile-card {
    display: grid;
    align-content: start;
    gap: 22px;
    margin: 0;
}

.profile-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

.profile-page-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
}

.profile-page-avatar {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: #208eff;
    color: #ffffff;
    font-size: 24px;
    font-weight: 850;
}

.profile-page-kicker {
    margin: 0 0 4px;
    color: #8ceeff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-page-header h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
}

.profile-page-header p:not(.profile-page-kicker) {
    margin: 5px 0 0;
}

.profile-page-role {
    flex: 0 0 auto;
    border: 1px solid rgba(85, 228, 255, 0.28);
    border-radius: 999px;
    background: rgba(85, 228, 255, 0.1);
    padding: 7px 11px;
    color: #c9f7ff;
    font-size: 13px;
    font-weight: 800;
}

.profile-feedback {
    display: flex;
    width: min(1040px, 100%);
    margin: 0 auto 16px;
}

.profile-page-layout {
    display: grid;
    width: min(1040px, 100%);
    margin: 0 auto;
    gap: 18px;
}

.profile-access-card,
.profile-design-card,
.profile-fireworks-card {
    padding: clamp(20px, 3vw, 28px);
}

.profile-access-columns {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
}

.profile-form-section {
    display: grid;
    align-content: start;
    gap: 10px;
}

.profile-password-section {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 28px;
}

.profile-form-section-heading {
    display: grid;
    gap: 4px;
    margin-bottom: 5px;
}

.profile-form-section-heading strong {
    color: #ffffff;
    font-size: 16px;
}

.profile-form-section-heading small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.profile-form-section button {
    width: fit-content;
    min-width: 170px;
    margin-top: 6px;
}

.profile-design-card {
    grid-column: 1 / -1;
}

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

.design-option {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    padding: 14px;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease;
}

.design-option:hover {
    border-color: rgba(85, 228, 255, 0.38);
    background: rgba(85, 228, 255, 0.07);
}

.design-option:has(input:checked) {
    border-color: rgba(85, 228, 255, 0.72);
    background: rgba(85, 228, 255, 0.12);
}

.design-option input {
    width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    accent-color: #55e4ff;
}

.design-option span,
.design-option strong,
.design-option small {
    display: block;
}

.design-option strong {
    color: #fff;
    font-size: 15px;
}

.design-option small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.profile-toggle {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0 0;
    color: var(--text);
    cursor: pointer;
}

.profile-toggle > span:first-child {
    display: grid;
    gap: 4px;
}

.profile-toggle strong,
.profile-toggle small {
    display: block;
}

.profile-toggle strong {
    color: #ffffff;
    font-size: 15px;
}

.profile-toggle small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.profile-toggle-control {
    position: relative;
    display: block;
    width: 50px;
    height: 28px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(2, 18, 42, 0.42);
    transition: background 180ms ease, border-color 180ms ease;
}

.profile-toggle-control input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    min-height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.profile-toggle-control i {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    transition: transform 180ms ease, background 180ms ease;
}

.profile-toggle-control:has(input:checked) {
    border-color: rgba(85, 228, 255, 0.72);
    background: rgba(46, 149, 255, 0.7);
}

.profile-toggle-control:has(input:checked) i {
    background: #ffffff;
    transform: translateX(22px);
}

.profile-toggle-control:has(input:focus-visible) {
    outline: 3px solid rgba(85, 228, 255, 0.42);
    outline-offset: 3px;
}

.reset-pin-notice {
    display: grid;
    width: min(520px, 100%);
    justify-items: center;
    gap: 7px;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.reset-pin-notice > span,
.reset-pin-notice small {
    color: var(--muted);
    font-weight: 600;
}

.reset-pin-notice strong {
    color: #ffffff;
    font-size: 28px;
    letter-spacing: 0.16em;
}

.reset-pin-form {
    display: inline-flex;
}

.site-confirm-dialog {
    width: min(430px, calc(100% - 32px));
    border: 1px solid rgba(85, 228, 255, 0.34);
    border-radius: 14px;
    background: #133762;
    color: var(--text);
    padding: 0;
    box-shadow: 0 28px 80px rgba(0, 8, 25, 0.58);
}

.site-confirm-dialog::backdrop {
    background: rgba(1, 12, 29, 0.7);
    backdrop-filter: blur(5px);
}

.site-confirm-dialog-content {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 0 13px;
    padding: 24px;
}

.site-confirm-dialog-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 209, 102, 0.5);
    border-radius: 11px;
    background: rgba(255, 209, 102, 0.12);
    color: #ffe3a2;
    font-size: 20px;
    font-weight: 900;
}

.site-confirm-dialog h2,
.site-confirm-dialog p {
    margin: 0;
}

.site-confirm-dialog h2 {
    color: #ffffff;
    font-size: 20px;
}

.site-confirm-dialog p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.site-confirm-dialog-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}

.site-confirm-dialog-actions button {
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 0 13px;
    font-size: 13px;
}

.site-confirm-cancel {
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: transparent !important;
    color: var(--muted) !important;
    box-shadow: none !important;
}

.site-confirm-cancel:hover {
    border-color: rgba(85, 228, 255, 0.4) !important;
    background: rgba(85, 228, 255, 0.08) !important;
    color: #ffffff !important;
    transform: none !important;
}

.feedback-page {
    display: grid;
    width: min(1120px, 100%);
    margin: 0 auto;
    gap: 20px;
}

.feedback-page-header {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: left;
}

.feedback-page-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(85, 228, 255, 0.3);
    border-radius: 15px;
    background: rgba(85, 228, 255, 0.12);
    font-size: 28px;
}

.feedback-page-header h1 {
    margin: 0;
}

.feedback-page-header p {
    margin: 5px 0 0;
}

.feedback-notice {
    width: fit-content;
    max-width: 100%;
    margin: -4px auto 0;
}

.feedback-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: 18px;
}

.feedback-form-card,
.feedback-list-section {
    margin: 0;
    padding: clamp(20px, 3vw, 28px);
}

.feedback-form-card {
    position: sticky;
    top: 18px;
}

.feedback-form {
    display: grid;
    gap: 10px;
}

.feedback-form textarea {
    min-height: 170px;
    resize: vertical;
}

.feedback-form button {
    width: 100%;
    margin-top: 4px;
}

.feedback-list-section {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
}

.feedback-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.feedback-list-heading h2,
.feedback-list-heading p {
    margin: 0;
}

.feedback-list-heading h2 {
    color: #ffffff;
    font-size: 20px;
}

.feedback-list-heading p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.feedback-list-heading > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgba(85, 228, 255, 0.13);
    color: #d9fbff;
    font-size: 13px;
    font-weight: 850;
}

.feedback-entry-list {
    display: grid;
}

.feedback-entry {
    display: grid;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.feedback-entry:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.feedback-entry-topline,
.feedback-entry footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.feedback-category,
.feedback-status {
    display: inline-flex;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 5px 9px;
    color: #dcefff;
    font-size: 12px;
    font-weight: 780;
}

.feedback-category-wunsch {
    border-color: rgba(255, 209, 102, 0.36);
    background: rgba(255, 209, 102, 0.1);
    color: #ffe3a2;
}

.feedback-category-fehler {
    border-color: rgba(255, 126, 159, 0.34);
    background: rgba(255, 126, 159, 0.1);
    color: #ffb1c3;
}

.feedback-status-erledigt {
    border-color: rgba(73, 227, 169, 0.36);
    background: rgba(73, 227, 169, 0.1);
    color: #aaf8d6;
}

.feedback-status-in-pruefung {
    border-color: rgba(85, 228, 255, 0.36);
    background: rgba(85, 228, 255, 0.1);
    color: #c9f7ff;
}

.feedback-status-abgelehnt {
    border-color: rgba(255, 126, 159, 0.38);
    background: rgba(255, 126, 159, 0.1);
    color: #ffb4c5;
}

.feedback-entry > p {
    margin: 0;
    color: rgba(248, 251, 255, 0.82);
    font-size: 14px;
    line-height: 1.55;
}

.feedback-admin-comment {
    display: grid;
    gap: 5px;
    border-left: 2px solid rgba(85, 228, 255, 0.72);
    background: rgba(85, 228, 255, 0.07);
    padding: 11px 13px;
}

.feedback-admin-comment strong {
    color: #c9f7ff;
    font-size: 12px;
}

.feedback-admin-comment p {
    margin: 0;
    color: rgba(248, 251, 255, 0.82);
    font-size: 13px;
    line-height: 1.5;
}

.feedback-entry footer {
    justify-content: flex-start;
    color: var(--muted);
    font-size: 12px;
}

.feedback-entry footer time::before {
    content: "•";
    margin-right: 10px;
}

.feedback-status-form {
    justify-self: start;
}

.feedback-comment-editor {
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    padding-top: 12px;
}

.feedback-comment-editor summary {
    width: fit-content;
    color: #c9f7ff;
    font-size: 13px;
    font-weight: 780;
    cursor: pointer;
}

.feedback-comment-editor form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.feedback-comment-editor textarea {
    min-height: 86px;
    resize: vertical;
}

.feedback-comment-editor button {
    width: fit-content;
    min-height: 36px;
    margin: 0;
    padding: 0 12px;
    font-size: 12px;
}

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

.feedback-status-form select {
    min-height: 36px;
    margin: 0;
    padding: 5px 30px 5px 10px;
    font-size: 12px;
}

.feedback-delete-button {
    width: auto;
    min-height: 36px;
    margin: 0;
    border: 1px solid rgba(255, 126, 159, 0.34);
    border-radius: 8px;
    background: rgba(255, 126, 159, 0.1);
    padding: 0 11px;
    color: #ffb4c5;
    font-size: 12px;
    font-weight: 780;
    box-shadow: none;
}

.feedback-delete-button:hover {
    border-color: rgba(255, 126, 159, 0.65);
    background: rgba(255, 126, 159, 0.16);
    box-shadow: none;
    transform: none;
}

.feedback-empty {
    width: 100%;
    margin: 18px 0 0;
    text-align: center;
}

.feedback-open-ticket {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(85, 228, 255, 0.24);
    border-radius: 10px;
    background: rgba(85, 228, 255, 0.09);
    padding: 0 13px;
    color: #d7f9ff;
    box-shadow: none;
    font-size: 13px;
}

.feedback-open-ticket span {
    color: var(--muted);
    font-size: 11px;
}

.feedback-open-ticket:hover {
    border-color: rgba(85, 228, 255, 0.48);
    background: rgba(85, 228, 255, 0.14);
    box-shadow: none;
    transform: translateY(-1px);
}

.feedback-ticket-dialog {
    width: min(760px, calc(100% - 28px));
    max-height: min(860px, calc(100vh - 28px));
    border: 1px solid rgba(85, 228, 255, 0.22);
    border-radius: 20px;
    background: #092542;
    padding: 0;
    color: var(--text);
    box-shadow: 0 30px 90px rgba(0, 10, 28, 0.58);
    overflow: hidden;
}

.feedback-ticket-dialog::backdrop {
    background: rgba(3, 17, 37, 0.76);
    backdrop-filter: blur(7px);
}

.feedback-ticket-modal {
    display: grid;
    max-height: min(860px, calc(100vh - 28px));
    grid-template-rows: auto auto auto minmax(0, 1fr);
}

.feedback-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 22px;
}

.feedback-modal-header span {
    color: #85eafa;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.feedback-modal-header h2 {
    margin: 3px 0 0;
    color: #ffffff;
    font-size: 20px;
}

.feedback-modal-close,
.feedback-notification-close {
    width: 36px;
    min-height: 36px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    color: #ffffff;
    box-shadow: none;
    font-size: 22px;
    font-weight: 500;
}

.feedback-modal-close:hover,
.feedback-notification-close:hover {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
    transform: none;
}

.feedback-ticket-summary {
    display: grid;
    justify-items: start;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    padding: 16px 22px;
}

.feedback-ticket-summary p {
    margin: 0;
    color: rgba(248, 251, 255, 0.84);
    font-size: 14px;
}

.feedback-modal-admin {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 22px;
}

.feedback-modal-admin label {
    display: grid;
    gap: 4px;
}

.feedback-modal-admin label > span {
    font-size: 11px;
}

.feedback-chat {
    display: grid;
    min-height: 0;
    grid-template-rows: auto minmax(180px, 1fr) auto;
    gap: 12px;
    padding: 18px 22px 22px;
}

.feedback-chat-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feedback-chat-heading h3,
.feedback-chat-heading p {
    margin: 0;
}

.feedback-chat-heading h3 {
    color: #ffffff;
    font-size: 16px;
}

.feedback-chat-heading p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.feedback-live-badge {
    border: 1px solid rgba(68, 224, 167, 0.3);
    border-radius: 999px;
    background: rgba(68, 224, 167, 0.1);
    padding: 5px 9px;
    color: #8ff4cf;
    font-size: 11px;
    font-weight: 800;
}

.feedback-chat-messages {
    display: flex;
    min-height: 180px;
    max-height: 390px;
    overflow-y: auto;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(0, 12, 30, 0.22);
    padding: 14px;
}

.feedback-chat-empty {
    margin: auto;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.feedback-chat-message {
    width: min(82%, 520px);
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px 14px 14px;
    background: rgba(255, 255, 255, 0.09);
    padding: 10px 12px;
}

.feedback-chat-message.is-own {
    align-self: flex-end;
    border-color: rgba(85, 228, 255, 0.25);
    border-radius: 14px 4px 14px 14px;
    background: rgba(85, 228, 255, 0.12);
}

.feedback-chat-message > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.feedback-chat-message strong {
    color: #ffffff;
    font-size: 12px;
}

.feedback-chat-message span,
.feedback-chat-message time {
    color: var(--faint);
    font-size: 10px;
}

.feedback-chat-message p {
    margin: 5px 0;
    color: rgba(248, 251, 255, 0.88);
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.feedback-chat-message time {
    display: block;
    text-align: right;
}

.feedback-reply-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 9px;
}

.feedback-reply-form textarea {
    min-height: 58px;
    max-height: 150px;
    margin: 0;
    resize: vertical;
}

.feedback-reply-form button {
    min-height: 58px;
}

.feedback-reply-locked {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid rgba(255, 121, 121, 0.24);
    border-radius: 13px;
    background: rgba(255, 99, 99, 0.08);
    padding: 13px 14px;
}

.feedback-reply-locked[hidden] {
    display: none;
}

.feedback-reply-locked > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 121, 121, 0.12);
}

.feedback-reply-locked strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
}

.feedback-reply-locked p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.feedback-ticket-access-lock {
    margin-top: 4px;
}

.feedback-live-notifications {
    position: fixed;
    z-index: 12000;
    right: 20px;
    bottom: 20px;
    display: grid;
    width: min(380px, calc(100% - 40px));
    gap: 10px;
}

.feedback-live-notification {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    border: 1px solid rgba(85, 228, 255, 0.3);
    border-radius: 14px;
    background: #0b3155;
    padding: 12px;
    color: #ffffff;
    box-shadow: 0 20px 55px rgba(0, 14, 36, 0.38);
    animation: fade-up 240ms var(--ease) both;
}

.feedback-notification-copy {
    display: grid;
    min-height: 0;
    justify-items: start;
    gap: 3px;
    border: 0;
    background: transparent;
    padding: 2px;
    color: inherit;
    box-shadow: none;
    text-align: left;
}

.feedback-notification-copy strong {
    font-size: 13px;
}

.feedback-notification-copy span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.feedback-notification-copy:hover {
    filter: none;
    box-shadow: none;
    transform: none;
}

.feedback-notification-close {
    width: 28px;
    min-height: 28px;
    font-size: 17px;
}

.dashboard-ticket-notifications {
    position: relative;
    width: min(1040px, 100%);
    margin: 20px auto 0;
    overflow: hidden;
    border: 1px solid rgba(85, 228, 255, 0.28);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(12, 47, 80, 0.96), rgba(7, 31, 58, 0.98));
    box-shadow: 0 18px 55px rgba(0, 10, 28, 0.28);
    backdrop-filter: blur(16px);
}

.dashboard-ticket-notifications::before {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 18px;
    left: 18px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #55e4ff, #44e0a7, transparent);
    content: '';
    opacity: 0.82;
}

.dashboard-ticket-notifications[hidden] {
    display: none;
}

.dashboard-ticket-notifications-heading {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    padding: 14px 18px;
    color: #ffffff;
}

.dashboard-ticket-notifications-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-ticket-notifications-title-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(85, 228, 255, 0.22);
    border-radius: 12px;
    background: rgba(85, 228, 255, 0.1);
    font-size: 19px;
}

.dashboard-ticket-notifications-title > div {
    display: grid;
    gap: 2px;
}

.dashboard-ticket-notifications-heading strong {
    font-size: 16px;
}

.dashboard-ticket-notifications-title small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.dashboard-ticket-notification-count {
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(85, 228, 255, 0.2);
    background: rgba(85, 228, 255, 0.1);
    padding: 6px 10px;
    color: #c9f7ff;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-inline-announcement {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 12px;
    margin: 12px 12px 0;
    border: 1px solid rgba(255, 184, 86, 0.34);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 166, 66, 0.15), rgba(255, 255, 255, 0.05));
    padding: 12px;
}

.dashboard-inline-announcement[hidden] {
    display: none;
}

.dashboard-inline-announcement-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    background: rgba(255, 184, 86, 0.16);
    font-size: 20px;
}

.dashboard-inline-announcement-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.dashboard-inline-announcement-copy strong {
    color: #ffffff;
    font-size: 14px;
}

.dashboard-inline-announcement-copy p {
    margin: 0;
    color: #e7f2ff;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.dashboard-inline-announcement-copy small {
    color: var(--muted);
    font-size: 11px;
}

.dashboard-inline-announcement-close {
    display: grid;
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    color: #dcecff;
    box-shadow: none;
    font-size: 22px;
    font-weight: 500;
}

.dashboard-inline-announcement-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: none;
    transform: none;
}

.dashboard-notification-empty {
    display: flex;
    min-height: 108px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 22px 18px;
    text-align: left;
}

.dashboard-notification-empty[hidden] {
    display: none;
}

.dashboard-notification-empty > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(68, 224, 167, 0.22);
    border-radius: 50%;
    background: rgba(68, 224, 167, 0.1);
    color: #83f1c8;
    font-size: 18px;
    font-weight: 900;
}

.dashboard-notification-empty > div {
    display: grid;
    gap: 3px;
}

.dashboard-notification-empty strong {
    color: #eef8ff;
    font-size: 13px;
}

.dashboard-notification-empty small {
    max-width: 440px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.dashboard-ticket-notification-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 390px;
    overflow-y: auto;
    padding: 12px;
}

.dashboard-ticket-notification-list:empty {
    display: none;
}

.dashboard-ticket-notification {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dashboard-ticket-notification:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-ticket-notification:hover {
    border-color: rgba(85, 228, 255, 0.24);
    background: rgba(85, 228, 255, 0.09);
    transform: translateY(-1px);
}

.dashboard-ticket-notification-link {
    display: grid;
    min-width: 0;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px 8px 12px 13px;
}

.dashboard-ticket-notification-icon {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: rgba(85, 228, 255, 0.12);
    font-size: 17px;
}

.dashboard-ticket-notification-multiplier {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    min-width: 23px;
    height: 20px;
    place-items: center;
    border: 2px solid #0a2949;
    border-radius: 999px;
    background: #55e4ff;
    padding: 0 4px;
    color: #06213c;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.dashboard-ticket-notification.is-nachricht_neu .dashboard-ticket-notification-icon {
    background: rgba(68, 224, 167, 0.12);
}

.dashboard-ticket-notification.is-status_geaendert .dashboard-ticket-notification-icon {
    background: rgba(255, 178, 107, 0.14);
}

.dashboard-ticket-notification-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.dashboard-ticket-notification-copy strong {
    color: #ffffff;
    font-size: 13px;
}

.dashboard-ticket-notification-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.dashboard-ticket-notification-close {
    width: 28px;
    min-height: 28px;
    margin: 10px 9px 0 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    color: var(--faint);
    box-shadow: none;
    font-size: 18px;
    font-weight: 500;
}

.dashboard-ticket-notification-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: none;
    transform: none;
}

.feedback-owner-action-hint {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 620px) {
    .feedback-ticket-dialog,
    .feedback-ticket-modal {
        width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .feedback-modal-header,
    .feedback-ticket-summary,
    .feedback-chat {
        padding-right: 16px;
        padding-left: 16px;
    }

    .feedback-modal-admin {
        align-items: stretch;
        padding-right: 16px;
        padding-left: 16px;
        flex-direction: column;
    }

    .feedback-chat-message {
        width: 92%;
    }

    .feedback-reply-form {
        grid-template-columns: 1fr;
    }

    .feedback-reply-form button {
        min-height: 44px;
    }

    .dashboard-ticket-notifications {
        width: 100%;
        margin-top: 14px;
        border-radius: 15px;
    }

    .dashboard-ticket-notification-list {
        grid-template-columns: 1fr;
    }
}

.pause-request-panel {
    display: grid;
    width: min(900px, 100%);
    margin: 14px auto 0;
    justify-items: center;
    gap: 8px;
}

.pause-request-button {
    min-width: min(290px, 100%);
}

.pause-request-panel small {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.pause-request-notice {
    position: fixed;
    z-index: 12000;
    top: max(18px, env(safe-area-inset-top));
    left: 50%;
    width: min(440px, calc(100% - 32px));
    overflow: hidden;
    border: 1px solid rgba(107, 233, 255, 0.58);
    border-radius: 12px;
    background: #102c4d;
    box-shadow: 0 18px 44px rgba(0, 13, 33, 0.34);
    transform: translateX(-50%);
    animation: pause-notice-in 260ms var(--ease) both;
}

.pause-request-notice[hidden] {
    display: none;
}

.pause-request-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 11px 16px;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
}

.pause-request-copy > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    background: rgba(107, 233, 255, 0.14);
    font-size: 16px;
}

.pause-request-progress {
    display: block;
    width: 100%;
    height: 3px;
    transform: scaleX(1);
    transform-origin: left center;
    background: linear-gradient(90deg, #6be9ff, #44e0a7);
}

.dashboard-announcement-notice {
    width: min(540px, calc(100% - 32px));
    border-color: rgba(255, 178, 107, 0.62);
    background:
        linear-gradient(135deg, rgba(255, 178, 107, 0.11), rgba(85, 228, 255, 0.06)),
        #102c4d;
}

#pause-request-notice:not([hidden]) ~ .dashboard-announcement-notice {
    top: max(88px, calc(env(safe-area-inset-top) + 88px));
}

.dashboard-announcement-copy {
    justify-content: flex-start;
    min-height: 76px;
    padding: 13px 54px 13px 15px;
    text-align: left;
}

.dashboard-announcement-copy > span {
    width: 36px;
    height: 36px;
    background: rgba(255, 178, 107, 0.16);
    font-size: 18px;
}

.dashboard-announcement-copy > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.dashboard-announcement-copy strong {
    color: #ffffff;
    font-size: 14px;
}

.dashboard-announcement-copy p {
    margin: 0;
    max-height: 8.4em;
    overflow-y: auto;
    color: rgba(248, 251, 255, 0.82);
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.dashboard-announcement-copy small {
    color: var(--faint);
    font-size: 10px;
}

.dashboard-announcement-close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: grid;
    width: 36px !important;
    min-width: 36px;
    min-height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    color: #ffffff;
    box-shadow: none;
    font-size: 20px;
}

.dashboard-announcement-close:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    transform: none;
}

.dashboard-announcement-progress {
    background: linear-gradient(90deg, #ffb26b, #55e4ff);
}

.dashboard-ticket-popup {
    top: var(--dashboard-ticket-popup-top, max(18px, env(safe-area-inset-top)));
    width: min(560px, calc(100% - 32px));
    border-color: rgba(85, 228, 255, 0.7);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(85, 228, 255, 0.1), rgba(68, 224, 167, 0.05)),
        #102c4d;
    transition: top 180ms ease;
}

.dashboard-ticket-popup-copy {
    width: 100%;
    min-height: 72px;
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 12px 58px 12px 15px;
    box-shadow: none;
    text-align: left;
}

.dashboard-ticket-popup-copy:hover {
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
    filter: none;
    transform: none;
}

.dashboard-ticket-popup-copy > span {
    width: 38px;
    height: 38px;
    background: rgba(85, 228, 255, 0.13);
    font-size: 18px;
}

.dashboard-ticket-popup-copy > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.dashboard-ticket-popup-copy strong {
    color: #ffffff;
    font-size: 14px;
}

.dashboard-ticket-popup-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: #c9dced;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dashboard-ticket-popup-close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: grid;
    width: 38px !important;
    min-width: 38px;
    min-height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    color: #ffffff;
    box-shadow: none;
    font-size: 21px;
    font-weight: 500;
}

.dashboard-ticket-popup-close:hover {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: none;
    transform: none;
}

.dashboard-ticket-popup-progress {
    background: linear-gradient(90deg, #55e4ff, #44e0a7);
}

.dashboard-announcement-admin {
    width: min(900px, 100%);
    text-align: left;
}

.dashboard-announcement-admin-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 18px;
}

.dashboard-announcement-admin-heading > span {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 178, 107, 0.28);
    border-radius: 12px;
    background: rgba(255, 178, 107, 0.1);
    font-size: 20px;
}

.dashboard-announcement-admin h2 {
    display: block;
    margin: 0;
    font-size: clamp(20px, 3vw, 28px);
    text-align: left;
}

.dashboard-announcement-admin h2::before,
.dashboard-announcement-admin h2::after {
    display: none;
}

.dashboard-announcement-admin-heading p {
    max-width: 680px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.dashboard-announcement-form {
    display: grid;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 17px;
}

.dashboard-announcement-form label {
    color: #ffffff;
    font-size: 12px;
    font-weight: 780;
}

.dashboard-announcement-form textarea {
    min-height: 108px;
    resize: vertical;
}

.dashboard-announcement-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 4px;
}

.dashboard-announcement-form-footer small {
    color: var(--muted);
    font-size: 11px;
}

.dashboard-announcement-form-footer button {
    width: auto;
    flex: 0 0 auto;
}

.first-day-fireworks {
    position: fixed;
    z-index: 11000;
    inset: 0;
    pointer-events: none;
}

.firework-burst {
    position: absolute;
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--firework-color);
    box-shadow: 0 0 9px var(--firework-color);
    animation: firework-core 900ms ease-out both;
}

.firework-burst i {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--firework-color);
    box-shadow: 0 0 6px var(--firework-color);
    transform: rotate(var(--angle)) translateX(0);
    animation: firework-spark 1250ms ease-out both;
}

@keyframes pause-notice-in {
    from { opacity: 0; transform: translate(-50%, -12px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes firework-core {
    0% { opacity: 0; transform: scale(0.2); }
    20% { opacity: 1; transform: scale(1.4); }
    100% { opacity: 0; transform: scale(0.7); }
}

@keyframes firework-spark {
    0% { opacity: 1; transform: rotate(var(--angle)) translateX(0); }
    100% { opacity: 0; transform: rotate(var(--angle)) translateX(var(--distance)); }
}

.profile-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.guess-ranking-entry {
    border-color: rgba(255, 255, 255, 0.14);
}

.guess-ranking-entry strong {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.guess-ranking-place {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 850;
}

.guess-ranking-entry.rank-1 {
    border-color: rgba(255, 207, 86, 0.48);
    background: rgba(255, 207, 86, 0.11);
}

.guess-ranking-entry.rank-2 {
    border-color: rgba(194, 216, 235, 0.42);
    background: rgba(194, 216, 235, 0.1);
}

.guess-ranking-entry.rank-3 {
    border-color: rgba(222, 151, 101, 0.46);
    background: rgba(222, 151, 101, 0.1);
}

.guess-ranking-entry.rank-1 .guess-ranking-place {
    border-color: rgba(255, 220, 126, 0.7);
    background: #d59c17;
    color: #1a1605;
}

.guess-ranking-entry.rank-2 .guess-ranking-place {
    border-color: rgba(222, 238, 251, 0.72);
    background: #9fb8ca;
    color: #102333;
}

.guess-ranking-entry.rank-3 .guess-ranking-place {
    border-color: rgba(244, 190, 145, 0.68);
    background: #b66f46;
    color: #fff7f2;
}

.profile-card-heading > span {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(85, 228, 255, 0.22);
    border-radius: 12px;
    background: rgba(85, 228, 255, 0.1);
}

.profile-card-heading h2 {
    margin: 0;
}

.profile-card-heading p {
    margin: 4px 0 0;
}

.guess-suggestions {
    display: grid;
    margin: -4px 0 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 12, 32, 0.24);
    text-align: left;
}

.guess-suggestions:empty {
    display: none;
}

.suggestion {
    min-height: 42px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    padding: 0 12px;
    text-align: left;
}

.suggestion + .suggestion {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.suggestion:hover,
.suggestion:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    filter: none;
    outline: 0;
    transform: none;
}

/* Flat review layout */
body:has(.dashboard-header) .rating-section {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

body:has(.dashboard-header) .rating-section > h2 {
    margin-bottom: 16px;
}

.rating-meal-list {
    gap: 24px;
}

.review-meal {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
}

.review-variant-list {
    grid-template-columns: 1fr;
    gap: 26px;
}

.review-variant {
    align-content: start;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.review-variant-heading {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 13px;
}

.review-variant + .review-variant {
    border-top: 1px solid rgba(85, 228, 255, 0.32);
    padding-top: 26px;
}

.review-variant-heading .rating-type {
    display: inline-flex;
    border: 1px solid rgba(85, 228, 255, 0.2);
    border-radius: 999px;
    background: rgba(85, 228, 255, 0.1);
    padding: 5px 9px;
}

.bewertung-ansehen-review {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: transparent;
    padding: 14px 0;
}

.bewertung-ansehen-review:first-of-type {
    padding-top: 2px;
}

.bewertung-ansehen-review:hover {
    border-color: rgba(85, 228, 255, 0.36);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.bewertung-ansehen-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bewertung-ansehen-kommentar {
    margin-top: 7px;
    color: var(--muted);
    line-height: 1.55;
}

.review-gif {
    display: block;
    width: min(360px, 100%);
    max-height: 280px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(0, 12, 32, 0.22);
    object-fit: contain;
}

.review-actions {
    margin-top: 10px;
}

body:has(.dashboard-header) .rating-search-section {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.rating-search-section .rating-search {
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 720px) {
    .review-meal {
        padding: 16px;
    }

    .review-variant-list {
        gap: 22px;
    }
}

@media (max-width: 720px) {
    .rating-meal {
        padding: 14px;
    }

    .rating-form-grid {
        grid-template-columns: 1fr;
    }

    .rating-form h3 {
        min-height: auto;
    }

    .review-variant-list {
        grid-template-columns: 1fr;
    }

    .review-variant-heading h3 {
        min-height: auto;
    }

    .guess-game-grid {
        grid-template-columns: 1fr;
    }

    .design-options {
        grid-template-columns: 1fr;
    }

    .pause-request-notice {
        top: max(12px, env(safe-area-inset-top));
    }

    .profile-page-header,
    .profile-page-identity {
        align-items: flex-start;
    }

    .profile-page-header {
        flex-direction: column;
    }

    .profile-access-columns {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .profile-password-section {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-left: 0;
        padding-top: 22px;
        padding-left: 0;
    }

    .profile-form-section button {
        width: 100%;
    }

    .site-confirm-dialog-actions {
        flex-direction: column-reverse;
    }

    .site-confirm-dialog-actions button {
        width: 100%;
    }

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

    .feedback-form-card {
        position: static;
    }

    .feedback-page-header {
        min-height: auto;
        justify-content: flex-start;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .rating-meal-meta,
    .rating-search-result {
        align-items: flex-start;
        flex-direction: column;
    }

    .rating-search-form > div {
        grid-template-columns: 1fr;
    }

    .rating-search-form button,
    .rating-actions > * {
        width: 100%;
    }
}

body:has(.dashboard-header) .dashboard-quote-of-day {
    grid-row: span 2;
    min-height: 0;
    align-content: center;
    text-decoration: none;
}

body:has(.dashboard-header) .dashboard-quote-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

body:has(.dashboard-header) .dashboard-quote-copy strong {
    display: -webkit-box !important;
    overflow: hidden;
    max-height: none;
    color: #ffffff;
    font-size: clamp(15px, 1.35vw, 18px);
    font-style: italic;
    line-height: 1.4;
    text-align: left !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body:has(.dashboard-header) .dashboard-quote-copy small {
    color: var(--muted);
    font-size: 13px;
}

/* Separate review groups for normal and vegetarian meals */
.review-variant-list {
    gap: 16px;
}

.review-variant,
.review-variant + .review-variant {
    align-content: start;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    padding: 18px;
}

.review-variant + .review-variant {
    border-top-color: rgba(85, 228, 255, 0.3);
}

.review-variant:hover {
    border-color: rgba(85, 228, 255, 0.38);
    background: rgba(255, 255, 255, 0.085);
}

/* Compact, non-interactive quote of the day */
body:has(.dashboard-header) .dashboard-info-box {
    grid-auto-rows: minmax(78px, auto);
}

body:has(.dashboard-header) .dashboard-quote-of-day {
    grid-row: auto;
    min-height: 78px;
    align-content: center;
    cursor: default;
}

body:has(.dashboard-header) .dashboard-quote-of-day:hover {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none;
    transform: none;
}

/* Das Dashboard bleibt ein zusammenhängender Überblick ohne dunkle Zwischenräume. */
body:has(.dashboard-header) .dashboard-info-box {
    gap: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1) !important;
}

body:has(.dashboard-header) .dashboard-info-row,
body:has(.dashboard-header) .dashboard-info-row:hover {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none;
    transform: none;
}

body:has(.dashboard-header) .dashboard-info-row + .dashboard-info-row {
    border-top: 1px solid rgba(255, 255, 255, 0.13) !important;
}

body:has(.dashboard-header) .dashboard-info-row:hover {
    background: rgba(255, 255, 255, 0.045) !important;
}

body:has(.dashboard-header) .dashboard-quote-copy strong {
    font-size: clamp(14px, 1.15vw, 16px);
    -webkit-line-clamp: 2;
}

@media (max-width: 520px) {
    body:has(.dashboard-header) .dashboard-info-box {
        grid-auto-rows: minmax(72px, auto);
    }

    body:has(.dashboard-header) .dashboard-quote-of-day {
        min-height: 72px;
    }
}

/* Shared page surfaces: quotes and Nerv'O'Meter */
body:has(#zitatListe) .dashboard-section,
body:has(.nervo-container) .dashboard-section {
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body:has(#zitatListe) .dashboard-section > .card,
body:has(.nervo-container) .dashboard-section > .card {
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 20px !important;
    box-shadow: 0 18px 52px rgba(0, 18, 46, 0.2) !important;
}

body:has(#zitatListe) .dashboard-section > .card:hover,
body:has(.nervo-container) .dashboard-section > .card:hover {
    border-color: rgba(85, 228, 255, 0.36) !important;
    background: rgba(255, 255, 255, 0.11) !important;
    transform: translateY(-2px);
}

/* Quotes */
body:has(#zitatListe) .quotes-page-header {
    margin-bottom: 18px;
}

body:has(#zitatListe) .dashboard-section:has([style*="font-size:24px"]) .card {
    padding: 28px !important;
    text-align: center;
}

body:has(#zitatListe) .dashboard-section [style*="font-size:24px"] {
    max-width: 760px;
    margin-right: auto !important;
    margin-left: auto !important;
    color: #ffffff;
    font-size: clamp(19px, 2vw, 25px) !important;
    line-height: 1.45 !important;
}

body:has(#zitatListe) .dashboard-section [style*="font-size:18px"] {
    color: var(--muted) !important;
    font-size: 14px !important;
}

body:has(#zitatListe) #zitatSuche {
    margin-bottom: 14px !important;
}

body:has(#zitatListe) #zitatListe {
    display: grid;
    gap: 10px;
    max-height: 520px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    padding: 0 !important;
}

body:has(#zitatListe) .zitat-list-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start !important;
    gap: 14px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.045) !important;
    padding: 15px !important;
}

body:has(#zitatListe) .zitat-list-item:hover {
    border-color: rgba(85, 228, 255, 0.32) !important;
    background: rgba(255, 255, 255, 0.09) !important;
    transform: none;
}

body:has(#zitatListe) .zitat-list-item-buttons {
    justify-content: flex-end;
}

/* Nerv'O'Meter */
body:has(.nervo-container) .nervo-container {
    width: 100% !important;
    max-width: none !important;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
}

body:has(.nervo-container) .nervo-title {
    margin: 0 0 14px !important;
    font-size: clamp(28px, 4vw, 46px) !important;
    letter-spacing: 0 !important;
    animation: none !important;
}

body:has(.nervo-container) .nervo-card {
    text-align: center;
    overflow: hidden;
}

body:has(.nervo-container) #emojiRow {
    gap: clamp(12px, 3vw, 28px) !important;
    margin-bottom: 12px !important;
}

body:has(.nervo-container) #emojiRow div {
    font-size: clamp(42px, 7vw, 78px) !important;
}

body:has(.nervo-container) #status {
    margin-bottom: 6px !important;
    font-size: clamp(21px, 3vw, 30px) !important;
}

body:has(.nervo-container) #percent {
    font-size: clamp(72px, 12vw, 126px) !important;
}

body:has(.nervo-container) .progress-bg {
    height: 14px !important;
    margin-top: 16px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

body:has(.nervo-container) .info-text {
    margin-top: 12px !important;
    color: var(--muted) !important;
    font-size: 15px !important;
}

body:has(.nervo-container) .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

body:has(.nervo-container) .stat-box {
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 14px !important;
}

body:has(.nervo-container) .stat-value {
    font-size: clamp(28px, 4vw, 42px) !important;
}

body:has(.nervo-container) #addBtn,
body:has(.nervo-container) #undoBtn,
body:has(.nervo-container) #deleteBtn {
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 0 10px !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

body:has(.nervo-container) #deleteBtn {
    margin-bottom: 0 !important;
}

body:has(.nervo-container) #topUser {
    color: #ffffff;
    font-size: clamp(26px, 3vw, 36px) !important;
}

body:has(.nervo-container) details > summary {
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 720px) {
    body:has(#zitatListe) .zitat-list-item {
        grid-template-columns: 1fr;
    }

    body:has(#zitatListe) .zitat-list-item-buttons {
        justify-content: flex-start;
    }

    body:has(.nervo-container) .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Forecast pages use the same flat section hierarchy as review pages */
body:has(.forecast-page) .dashboard-section {
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body:has(.forecast-page) .dashboard-section > .card {
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 20px !important;
    box-shadow: 0 18px 52px rgba(0, 18, 46, 0.2) !important;
}

body:has(.forecast-page) .dashboard-section > .card:hover {
    border-color: rgba(85, 228, 255, 0.36) !important;
    background: rgba(255, 255, 255, 0.11) !important;
    transform: translateY(-2px);
}

body:has(.forecast-page) .dashboard-section > .prognose-card {
    display: grid;
    gap: 16px;
}

body:has(.forecast-page) .prognose-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(21px, 2.4vw, 30px);
    text-align: center;
}

body:has(.forecast-page) .prognose-list {
    display: grid;
    gap: 10px;
}

body:has(.forecast-page) .prognose-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    padding: 14px;
}

body:has(.forecast-page) .prognose-item:hover {
    border-color: rgba(85, 228, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    transform: none;
}

body:has(.forecast-page) .prognose-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #ffffff;
}

body:has(.forecast-page) .prognose-header span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:has(.forecast-page) .prognose-bar {
    height: 10px;
    margin: 10px 0;
}

body:has(.forecast-page) .table-responsive {
    border-color: rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 720px) {
    body:has(.forecast-page) .dashboard-section > .card {
        padding: 16px !important;
    }
}

.gif-picker {
    display: grid;
    gap: 10px;
    padding-top: 2px;
}

.gif-picker-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 760;
}

.gif-clear-btn {
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    padding: 0 10px;
    font-size: 12px;
}

.gif-clear-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

.gif-suggestion-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.gif-suggestion {
    position: relative;
    min-height: 64px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(0, 12, 32, 0.24);
    box-shadow: none;
    padding: 0;
}

.gif-suggestion::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    transition: border-color 180ms ease;
}

.gif-suggestion:hover,
.gif-suggestion.is-selected {
    transform: translateY(-1px);
    box-shadow: none;
}

.gif-suggestion.is-selected::after {
    border-color: var(--cyan);
}

.gif-suggestion img {
    display: block;
    width: 100%;
    height: 64px;
    object-fit: cover;
}

.gif-picker-empty {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.gif-picker-subheading {
    margin: 2px 0 -2px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    font-weight: 700;
}

.gif-giphy {
    display: grid;
    gap: 9px;
    padding: 11px;
    border: 1px solid rgba(85, 228, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 16, 42, 0.18);
}

.gif-giphy-search {
    display: block !important;
    margin: 0 !important;
}

.gif-giphy-input {
    min-height: 38px !important;
    margin: 0 !important;
    border-color: rgba(255, 255, 255, 0.17) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    color: #fff !important;
}

.gif-giphy-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.gif-giphy-results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    min-height: 64px;
}

.gif-giphy-message {
    display: grid;
    place-items: center;
    grid-column: 1 / -1;
    min-height: 64px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.gif-giphy-attribution {
    justify-self: end;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: color 180ms ease;
}

.gif-giphy-attribution:hover {
    color: #bdf8ff;
}

.gif-upload-label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    border: 1px dashed rgba(85, 228, 255, 0.36);
    border-radius: 12px;
    background: rgba(85, 228, 255, 0.07);
    padding: 0 12px;
    color: #c9f7ff;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease;
}

.gif-upload-label:hover {
    border-color: rgba(85, 228, 255, 0.65);
    background: rgba(85, 228, 255, 0.12);
}

.gif-upload-label input {
    width: 152px;
    min-height: auto;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 520px) {
    .gif-suggestion-grid,
    .gif-giphy-results {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gif-upload-label {
        align-items: flex-start;
        flex-direction: column;
        padding: 10px 12px;
    }

    .gif-upload-label input {
        width: 100%;
    }
}

/* Auf kleinen Bildschirmen sollen Zitat und Gerichte vollständig lesbar bleiben. */
@media (max-width: 520px) {
    body:has(.dashboard-header) .dashboard-info-box {
        grid-auto-rows: auto;
    }

    body:has(.dashboard-header) .dashboard-info-row {
        height: auto;
        min-height: 72px;
        overflow: visible;
    }

    body:has(.dashboard-header) .dashboard-info-row strong,
    body:has(.dashboard-header) .dashboard-quote-copy strong {
        display: block !important;
        max-height: none;
        overflow: visible;
        overflow-wrap: anywhere;
        white-space: normal;
        -webkit-line-clamp: unset;
    }

    body:has(.dashboard-header) .dashboard-quote-of-day {
        min-height: 0;
    }
}

/* Nerv'O-Meter */
body:has(.nervo-page) .nervo-container {
    width: min(1180px, calc(100% - 40px)) !important;
    max-width: none !important;
    min-height: 0;
    margin: 0 auto !important;
    padding: 30px 0 64px !important;
}

body:has(.nervo-page) .nervo-page-header {
    margin-bottom: 18px;
    text-align: center;
}

body:has(.nervo-page) .nervo-page-header h1 {
    margin-bottom: 6px;
}

body:has(.nervo-page) .nervo-live-card,
body:has(.nervo-page) .nervo-panel {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 52px rgba(0, 18, 46, 0.2);
}

body:has(.nervo-page) .nervo-live-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 32px;
    padding: clamp(22px, 4vw, 36px);
    overflow: hidden;
}

body:has(.nervo-page) .nervo-live-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

body:has(.nervo-page) .nervo-live-emoji {
    display: grid;
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 34px;
    transition: transform 220ms ease, background 220ms ease;
}

body:has(.nervo-page) .nervo-live-card:hover .nervo-live-emoji {
    transform: translateY(-3px) rotate(-4deg);
}

body:has(.nervo-page) .nervo-eyebrow {
    margin: 0 0 5px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body:has(.nervo-page) .nervo-live-card h2,
body:has(.nervo-page) .nervo-panel h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 2.7vw, 31px);
}

body:has(.nervo-page) .nervo-message {
    max-width: 590px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

body:has(.nervo-page) .nervo-score {
    display: grid;
    justify-items: end;
    align-content: center;
    min-width: 170px;
}

body:has(.nervo-page) .nervo-score strong {
    color: var(--nervo-color, #64e6b4);
    font-size: clamp(54px, 7vw, 82px);
    line-height: 0.95;
}

body:has(.nervo-page) .nervo-score span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

body:has(.nervo-page) .nervo-meter-track {
    grid-column: 1 / -1;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 12, 32, 0.34);
}

body:has(.nervo-page) .nervo-meter-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--nervo-color, #64e6b4);
    box-shadow: 0 0 18px color-mix(in srgb, var(--nervo-color, #64e6b4) 56%, transparent);
    transition: width 500ms ease, background 240ms ease;
}

body:has(.nervo-page) .is-calm { --nervo-color: #64e6b4; }
body:has(.nervo-page) .is-noticeable { --nervo-color: #74d6ff; }
body:has(.nervo-page) .is-elevated { --nervo-color: #ffd166; }
body:has(.nervo-page) .is-high { --nervo-color: #ffad5a; }
body:has(.nervo-page) .is-alarm { --nervo-color: #ff7185; }

body:has(.nervo-page) .nervo-stat-grid {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body:has(.nervo-page) .nervo-stat-grid > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body:has(.nervo-page) .nervo-stat-grid strong {
    color: #fff;
    font-size: 25px;
}

body:has(.nervo-page) .nervo-stat-grid span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

body:has(.nervo-page) .nervo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
    gap: 18px;
    margin-top: 18px;
}

body:has(.nervo-page) .nervo-panel {
    padding: clamp(18px, 3vw, 26px);
}

body:has(.nervo-page) .nervo-history-panel {
    margin-top: 18px;
}

body:has(.nervo-page) .nervo-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

body:has(.nervo-page) .nervo-report-panel .nervo-panel-heading {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

body:has(.nervo-page) .nervo-undo,
body:has(.nervo-page) .nervo-reset,
body:has(.nervo-page) .nervo-submit {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 9px 14px;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

body:has(.nervo-page) .nervo-undo,
body:has(.nervo-page) .nervo-reset {
    background: rgba(255, 255, 255, 0.08);
}

body:has(.nervo-page) .nervo-submit {
    border-color: rgba(85, 228, 255, 0.72);
    background: #168dff;
}

body:has(.nervo-page) .nervo-undo:hover:not(:disabled),
body:has(.nervo-page) .nervo-reset:hover,
body:has(.nervo-page) .nervo-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #7becff;
    background: rgba(85, 228, 255, 0.16);
}

body:has(.nervo-page) .nervo-submit:hover:not(:disabled) {
    background: #2d9dff;
}

body:has(.nervo-page) .nervo-undo:disabled,
body:has(.nervo-page) .nervo-submit:disabled {
    cursor: not-allowed;
    opacity: 0.46;
}

body:has(.nervo-page) .nervo-reset:hover {
    border-color: rgba(255, 113, 133, 0.84);
    background: rgba(255, 113, 133, 0.14);
}

body:has(.nervo-page) .nervo-strengths {
    display: grid;
    width: min(620px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    margin-right: auto;
    margin-left: auto;
}

body:has(.nervo-page) .nervo-strengths legend {
    width: 100%;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

body:has(.nervo-page) .nervo-strengths label {
    position: relative;
    display: block !important;
    margin: 0 !important;
    cursor: pointer;
}

body:has(.nervo-page) .nervo-strengths input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body:has(.nervo-page) .nervo-strengths span {
    display: grid;
    gap: 3px;
    min-height: 80px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(0, 12, 32, 0.2);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

body:has(.nervo-page) .nervo-strengths label:hover span {
    transform: translateY(-2px);
    border-color: rgba(85, 228, 255, 0.44);
}

body:has(.nervo-page) .nervo-strengths input:checked + span {
    border-color: #6be9ff;
    background: rgba(85, 228, 255, 0.13);
}

body:has(.nervo-page) .nervo-strengths b {
    color: #fff;
    font-size: 15px;
}

body:has(.nervo-page) .nervo-strengths small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

body:has(.nervo-page) .nervo-form-actions {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin-top: 16px;
    text-align: center;
}

body:has(.nervo-page) .nervo-feedback {
    min-height: 20px;
    margin: 0;
    color: #83f0cc;
    font-size: 13px;
}

body:has(.nervo-page) .nervo-feedback.is-error {
    color: #ff9aaa;
}

body:has(.nervo-page) .nervo-ranking {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body:has(.nervo-page) .nervo-ranking li,
body:has(.nervo-page) .nervo-history-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

body:has(.nervo-page) .nervo-ranking li:last-child,
body:has(.nervo-page) .nervo-history-entry:last-child {
    border-bottom: 0;
}

body:has(.nervo-page) .nervo-ranking strong,
body:has(.nervo-page) .nervo-history-entry strong {
    color: #fff;
    font-size: 14px;
}

body:has(.nervo-page) .nervo-ranking span,
body:has(.nervo-page) .nervo-history-entry span,
body:has(.nervo-page) .nervo-history-entry small {
    color: var(--muted);
    font-size: 12px;
}

body:has(.nervo-page) .nervo-history-entry > div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

body:has(.nervo-page) .nervo-history-entry > div span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:has(.nervo-page) .nervo-strength-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 5px 9px;
    font-weight: 800;
}

body:has(.nervo-page) .nervo-strength-badge.is-1 { color: #a9f1ff; background: rgba(116, 214, 255, 0.15); }
body:has(.nervo-page) .nervo-strength-badge.is-2 { color: #ffdc83; background: rgba(255, 209, 102, 0.14); }
body:has(.nervo-page) .nervo-strength-badge.is-3 { color: #ffabb8; background: rgba(255, 113, 133, 0.15); }

body:has(.nervo-page) .nervo-empty {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    body:has(.nervo-page) .nervo-container {
        width: min(100% - 28px, 680px) !important;
        padding-top: 18px !important;
    }

    body:has(.nervo-page) .nervo-live-card,
    body:has(.nervo-page) .nervo-layout {
        grid-template-columns: 1fr;
    }

    body:has(.nervo-page) .nervo-score {
        justify-items: start;
    }

    body:has(.nervo-page) .nervo-stat-grid,
    body:has(.nervo-page) .nervo-strengths {
        grid-template-columns: 1fr;
    }

    body:has(.nervo-page) .nervo-panel-heading,
    body:has(.nervo-page) .nervo-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    body:has(.nervo-page) .nervo-undo,
    body:has(.nervo-page) .nervo-reset,
    body:has(.nervo-page) .nervo-submit {
        width: 100%;
    }
}

/* GIF-Auswahl: kompakt, ohne sichtbare Hilfsbeschriftung. */
.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;
}

.gif-giphy {
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.gif-giphy-input {
    min-height: 42px !important;
}

.gif-giphy-results,
.gif-suggestion-grid {
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 9px;
}

.gif-suggestion {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 9px;
}

.gif-suggestion img {
    height: 100%;
}

.gif-giphy-attribution {
    margin-top: -2px;
}

@media (max-width: 520px) {
    .gif-giphy-results,
    .gif-suggestion-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }
}

/* Neuigkeiten */
.feature-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(980px, 100%);
    margin: -10px auto 22px;
    padding: 12px 14px;
    border: 1px solid rgba(85, 228, 255, 0.26);
    border-radius: 12px;
    background: rgba(85, 228, 255, 0.08);
    animation: fade-up 420ms var(--ease) both;
}

.feature-notice-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.feature-notice-copy > span {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: rgba(85, 228, 255, 0.16);
}

.feature-notice-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.feature-notice-copy strong {
    color: #fff;
}

.feature-notice-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
}

.feature-notice-actions a {
    color: #c9f7ff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.feature-notice-actions a:hover {
    color: #fff;
}

.feature-notice-close {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 20px !important;
    line-height: 1;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.feature-notice-close:hover {
    border-color: rgba(85, 228, 255, 0.55);
    background: rgba(85, 228, 255, 0.12);
}

.updates-page {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 64px;
}

.updates-page-header {
    margin-bottom: 18px;
}

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

.update-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 19px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.update-card:hover {
    transform: translateY(-2px);
    border-color: rgba(85, 228, 255, 0.38);
    background: rgba(255, 255, 255, 0.11);
}

.update-card > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: rgba(85, 228, 255, 0.1);
    font-size: 19px;
}

.update-card h2 {
    margin: 0;
    color: #fff;
    font-size: 17px;
}

.update-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.updates-actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.updates-dismiss {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: #c9f7ff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.updates-dismiss:hover {
    transform: translateY(-2px);
    border-color: rgba(85, 228, 255, 0.55);
    background: rgba(85, 228, 255, 0.1);
}

@media (max-width: 720px) {
    .feature-notice,
    .feature-notice-copy {
        align-items: flex-start;
    }

    .feature-notice {
        flex-direction: column;
        margin: -2px 0 18px;
    }

    .feature-notice-actions {
        width: 100%;
        justify-content: space-between;
    }

    .updates-page {
        width: min(100% - 28px, 680px);
        padding-top: 18px;
    }

    .updates-grid {
        grid-template-columns: 1fr;
    }
}

/* Die Datumsvorschläge bei Essen erraten müssen über dem Ranking liegen. */
body:has(.dashboard-header) .guess-search-section {
    position: relative;
    z-index: 20;
    overflow: visible;
}

body:has(.dashboard-header) .guess-search-section .rating-search,
body:has(.dashboard-header) .guess-search-section .rating-search-input-wrap {
    overflow: visible;
}

body:has(.dashboard-header) .guess-search-section .rating-autocomplete {
    z-index: 40;
}

body:has(.dashboard-header) .guess-ranking-section {
    position: relative;
    z-index: 1;
}

/* Verwaltungsseiten */
body:has(.admin-page-header) .dashboard-section {
    margin: 0 0 22px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body:has(.admin-page-header) .dashboard-section > h2 {
    justify-content: center;
    margin-bottom: 14px;
    font-size: clamp(20px, 2.4vw, 28px);
}

body:has(.admin-page-header) .dashboard-section > .card,
body:has(.admin-page-header) .admin-seminar-summary {
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 20px !important;
    box-shadow: 0 18px 52px rgba(0, 18, 46, 0.18) !important;
}

body:has(.admin-page-header) .dashboard-section > .card:hover,
body:has(.admin-page-header) .admin-seminar-summary:hover {
    border-color: rgba(85, 228, 255, 0.34) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 22px 54px rgba(0, 18, 46, 0.22) !important;
    transform: none;
}

body:has(.admin-page-header) .dashboard-section > .card > form {
    width: min(700px, 100%);
    margin: 0 auto;
}

body:has(.admin-page-header) .admin-seminar-summary {
    display: flex;
    width: min(700px, 100%);
    margin: 0 auto 22px !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    text-align: center;
}

body:has(.admin-page-header) .admin-seminar-summary strong {
    color: #fff;
}

body:has(.admin-page-header) .user-table-wrapper,
body:has(.admin-page-header) .table-responsive {
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(3, 20, 45, 0.2);
    box-shadow: none;
}

body:has(.admin-page-header) .user-table th,
body:has(.admin-page-header) .user-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

body:has(.admin-page-header) .user-table th {
    background: rgba(255, 255, 255, 0.045);
    color: rgba(248, 251, 255, 0.64);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body:has(.admin-page-header) .user-table .user-row,
body:has(.admin-page-header) .user-table .seminar-row,
body:has(.admin-page-header) .user-table .essen-row {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    transform: none;
}

body:has(.admin-page-header) .user-table tbody tr:hover > td {
    background: rgba(85, 228, 255, 0.06);
}

body:has(.admin-page-header) .user-table tbody tr:last-child td {
    border-bottom: 0;
}

body:has(.admin-page-header) .admin-created-time {
    color: rgba(248, 251, 255, 0.56);
    font-size: 12px;
}

body:has(.admin-page-header) .user-table td .edit-btn,
body:has(.admin-page-header) .user-table td .delete-btn {
    display: inline-flex;
    min-height: 34px;
    margin: 3px 5px 3px 0;
    align-items: center;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 12px;
    text-decoration: none;
}

body:has(.admin-page-header) .admin-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.045);
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease;
}

body:has(.admin-page-header) .admin-toggle:hover {
    border-color: rgba(85, 228, 255, 0.36);
    background: rgba(85, 228, 255, 0.07);
}

body:has(.admin-page-header) .admin-toggle-checkbox {
    width: 18px;
    min-height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #55e4ff;
}

body:has(.admin-page-header) .admin-back-link {
    display: flex;
    width: min(700px, 100%);
    min-height: 42px;
    margin: 2px auto 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: transparent;
    color: #c9f7ff;
    text-decoration: none;
}

body:has(.admin-page-header) .snack-suggestions {
    display: grid;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: #172333;
}

body:has(.admin-page-header) .snack-suggestions:empty {
    display: none;
}

body:has(.admin-page-header) .snack-suggestion {
    width: 100%;
    min-height: 42px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 12px 14px;
    color: rgba(248, 251, 255, 0.9) !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
    transition: background 160ms ease;
}

body:has(.admin-page-header) .snack-suggestion:last-child {
    border-bottom: 0;
}

body:has(.admin-page-header) .snack-suggestion:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    filter: none;
    transform: none;
}

body:has(.admin-page-header) .admin-meal-manager-copy {
    max-width: 700px;
    margin: 0 auto 16px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

body:has(.admin-page-header) .admin-meal-results {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

body:has(.admin-page-header) .admin-meal-empty {
    margin: 0;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    color: rgba(248, 251, 255, 0.62);
    padding: 14px;
    font-size: 13px;
    text-align: center;
}

body:has(.admin-page-header) .admin-meal-result {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    padding: 12px 14px;
}

body:has(.admin-page-header) .admin-meal-result > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

body:has(.admin-page-header) .admin-meal-result strong {
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:has(.admin-page-header) .admin-meal-result span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:has(.admin-page-header) .admin-meal-delete {
    display: inline-flex;
    min-height: 34px;
    flex: 0 0 auto;
    align-items: center;
    padding: 0 11px;
    border-radius: 9px;
    font-size: 12px;
    text-decoration: none;
}

/* Benutzerverwaltung */
body:has(.users-page) .users-page {
    display: grid;
    width: min(1220px, 100%);
    margin: 0 auto;
    gap: 18px;
}

body:has(.users-page) .users-page-header {
    display: flex;
    min-height: 148px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(22px, 4vw, 36px);
    text-align: left;
}

body:has(.users-page) .users-page-header h1,
body:has(.users-page) .users-page-header p {
    margin: 0;
}

body:has(.users-page) .users-page-header h1 {
    color: #ffffff;
    font-size: clamp(32px, 4.6vw, 48px);
}

body:has(.users-page) .users-page-header > div > p:not(.users-page-kicker) {
    margin-top: 6px;
    color: var(--muted);
}

.users-page-kicker {
    margin-bottom: 5px !important;
    color: #8ceeff !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.users-add-button {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.users-add-button span {
    font-size: 21px;
    line-height: 1;
}

.users-notice {
    width: fit-content;
    max-width: 100%;
    margin: -2px auto 0;
}

.users-list-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    padding: clamp(18px, 3vw, 26px);
}

.users-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.users-list-toolbar h2,
.users-list-toolbar p {
    margin: 0;
}

.users-list-toolbar h2 {
    color: #ffffff;
    font-size: 20px;
}

.users-list-toolbar p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.users-search-field {
    display: flex;
    width: min(310px, 100%);
    min-height: 42px;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(2, 18, 42, 0.24);
    padding: 0 12px;
}

.users-search-field > span:not(.sr-only) {
    font-size: 14px;
}

.users-search-field input {
    width: 100%;
    min-height: 38px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.users-search-field input:focus {
    box-shadow: none;
}

body:has(.users-page) .user-table-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(2, 18, 42, 0.2);
}

.users-table {
    min-width: 1040px;
}

body:has(.users-page) .users-table .user-row.is-deactivated > td {
    background: rgba(255, 111, 137, 0.035);
}

body:has(.users-page) .users-table .user-row.is-deactivated:hover > td {
    background: rgba(255, 111, 137, 0.065);
}

body:has(.users-page) .users-table th,
body:has(.users-page) .users-table td {
    padding: 14px 16px;
}

body:has(.users-page) .users-table th {
    background: rgba(255, 255, 255, 0.045);
}

body:has(.users-page) .users-table tbody tr:hover > td {
    background: rgba(85, 228, 255, 0.055);
}

.users-member {
    display: flex;
    min-width: 180px;
    align-items: center;
    gap: 10px;
}

.users-member-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    background: rgba(32, 142, 255, 0.78);
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
}

.users-member > div {
    display: grid;
    gap: 2px;
}

.users-member strong {
    color: #ffffff;
    font-size: 14px;
}

.users-member small,
.users-date,
.admin-created-time {
    display: block;
}

.users-member small,
.admin-created-time {
    color: var(--muted);
    font-size: 12px;
}

.users-date {
    color: #eaf6ff;
    font-size: 13px;
    font-weight: 720;
}

.users-access-state {
    display: grid;
    min-width: 158px;
    justify-items: start;
    gap: 6px;
}

.users-access-badge {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 820;
    line-height: 1.2;
    white-space: nowrap;
}

.users-access-badge.is-active,
.users-access-badge.is-allowed {
    border-color: rgba(68, 224, 167, 0.22);
    background: rgba(68, 224, 167, 0.09);
    color: #8ef1cc;
}

.users-access-badge.is-inactive {
    border-color: rgba(255, 111, 137, 0.28);
    background: rgba(255, 111, 137, 0.1);
    color: #ffb5c3;
}

.users-access-badge.is-locked {
    border-color: rgba(255, 193, 92, 0.26);
    background: rgba(255, 193, 92, 0.1);
    color: #ffd58d;
}

.users-actions {
    display: flex;
    min-width: 245px;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.users-inline-action {
    display: inline-flex;
    margin: 0;
}

.users-action-link,
.users-action-button,
.users-delete-link,
.users-cancel-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0 10px;
    color: #eaf6ff;
    font-size: 12px;
    font-weight: 780;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.users-action-button,
.users-cancel-button {
    width: auto;
    margin: 0;
    box-shadow: none;
}

.users-action-button.is-warning {
    border-color: rgba(255, 193, 92, 0.3);
    color: #ffd58d;
}

.users-action-button.is-danger {
    border-color: rgba(255, 111, 137, 0.32);
    color: #ffb5c3;
}

.users-action-button.is-positive {
    border-color: rgba(68, 224, 167, 0.3);
    color: #8ef1cc;
}

.users-action-button.is-warning:hover {
    border-color: rgba(255, 193, 92, 0.58);
    background: rgba(255, 193, 92, 0.1);
}

.users-action-button.is-danger:hover {
    border-color: rgba(255, 111, 137, 0.62);
    background: rgba(255, 111, 137, 0.1);
}

.users-action-button.is-positive:hover {
    border-color: rgba(68, 224, 167, 0.58);
    background: rgba(68, 224, 167, 0.1);
}

.users-action-link:hover,
.users-action-button:hover,
.users-delete-link:hover {
    border-color: rgba(85, 228, 255, 0.42);
    background: rgba(85, 228, 255, 0.11);
    box-shadow: none;
    transform: translateY(-1px);
}

.users-delete-link {
    border-color: rgba(255, 126, 159, 0.24);
    color: #ffb4c5;
}

.users-delete-link:hover {
    border-color: rgba(255, 126, 159, 0.6);
    background: rgba(255, 126, 159, 0.1);
}

.users-actions .own-account {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.users-dialog {
    width: min(470px, calc(100% - 32px));
    border: 1px solid rgba(85, 228, 255, 0.32);
    border-radius: 14px;
    background: #133762;
    color: var(--text);
    padding: 0;
    box-shadow: 0 28px 80px rgba(0, 8, 25, 0.58);
}

.users-dialog::backdrop {
    background: rgba(1, 12, 29, 0.7);
    backdrop-filter: blur(5px);
}

.users-dialog-content {
    display: grid;
    gap: 10px;
    padding: 24px;
}

.users-dialog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 6px;
}

.users-dialog-heading h2,
.users-dialog-heading p {
    margin: 0;
}

.users-dialog-heading h2 {
    color: #ffffff;
    font-size: 21px;
}

.users-dialog-heading p,
.users-reset-warning {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.users-dialog-heading p {
    margin-top: 4px;
}

.users-dialog-close {
    display: grid;
    width: 32px;
    min-height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: transparent;
    padding: 0;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    box-shadow: none;
}

.users-dialog-close:hover {
    border-color: rgba(85, 228, 255, 0.45);
    background: rgba(85, 228, 255, 0.1);
    box-shadow: none;
    transform: none;
}

.users-reset-warning {
    margin: 2px 0 10px;
    border-left: 2px solid rgba(255, 209, 102, 0.75);
    padding-left: 11px;
}

.users-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.users-cancel-button {
    background: transparent;
    color: var(--muted);
}

.legal-page-content {
    display: grid;
    width: min(900px, 100%);
    margin: 0 auto;
    gap: 18px;
}

.legal-page-header {
    display: flex;
    min-height: 142px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: left;
}

.legal-page-header > span {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(85, 228, 255, 0.3);
    border-radius: 14px;
    background: rgba(85, 228, 255, 0.1);
    font-size: 23px;
}

.legal-page-header h1,
.legal-page-header p {
    margin: 0;
}

.legal-page-header h1 {
    color: #ffffff;
    font-size: clamp(30px, 4.4vw, 44px);
}

.legal-page-header p {
    margin-top: 5px;
    color: var(--muted);
}

.legal-content-card {
    display: grid;
    gap: 0;
    margin: 0;
    padding: clamp(22px, 4vw, 34px);
}

.legal-content-card section {
    padding: 19px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-content-card section:first-child {
    padding-top: 0;
}

.legal-content-card section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-content-card h2,
.legal-content-card p {
    margin: 0;
}

.legal-content-card h2 {
    color: #ffffff;
    font-size: 17px;
}

.legal-content-card p {
    max-width: 690px;
    margin-top: 8px;
    color: rgba(248, 251, 255, 0.76);
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 720px) {
    input[type="date"] {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    input[type="date"]::-webkit-date-and-time-value {
        min-width: 0;
        text-align: left;
    }

    body:has(.admin-page-header) .dashboard-section {
        margin-bottom: 18px !important;
    }

    body:has(.admin-page-header) .dashboard-section > .card,
    body:has(.admin-page-header) .admin-seminar-summary {
        padding: 16px !important;
    }

    body:has(.admin-page-header) .user-table th,
    body:has(.admin-page-header) .user-table td {
        padding: 12px 13px;
    }

    body:has(.admin-page-header) .admin-meal-result {
        align-items: flex-start;
        flex-direction: column;
    }

    body:has(.admin-page-header) .admin-meal-delete {
        width: 100%;
        justify-content: center;
    }

    body:has(.users-page) .users-page-header,
    .users-list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    body:has(.users-page) .users-page-header {
        min-height: auto;
    }

    .users-add-button,
    .users-search-field {
        width: 100%;
    }

    .users-actions {
        min-width: 330px;
    }

    .users-action-link,
    .users-action-button,
    .users-delete-link {
        min-height: 40px;
    }

    .users-dialog-content {
        padding: 20px;
    }

    .users-dialog-actions {
        flex-direction: column-reverse;
    }

    .users-dialog-actions button,
    .users-cancel-button {
        width: 100%;
    }

    .legal-page-header {
        min-height: auto;
        justify-content: flex-start;
        padding: 24px;
    }
}

/* Benutzer- und Profileinstellungen */
body:has(.users-page) .users-page-header {
    min-height: 172px;
    flex-direction: column;
    justify-items: center;
    justify-content: center;
    text-align: center;
}

body:has(.users-page) .users-page-header > div {
    display: grid;
    justify-items: center;
}

body:has(.users-page) .users-add-button {
    margin-top: 8px;
}

body:has(.users-page) .users-list-toolbar {
    align-items: center;
    flex-direction: column;
    margin-bottom: 22px;
    text-align: center;
}

body:has(.users-page) .users-search-field {
    width: min(390px, 100%);
}

body:has(.dashboard-header.profile-page-header) .profile-page-header {
    min-height: 186px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

body:has(.dashboard-header.profile-page-header) .profile-page-identity {
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

body:has(.dashboard-header.profile-page-header) .profile-page-identity > div {
    display: grid;
    justify-items: center;
}

body:has(.dashboard-header.profile-page-header) .profile-page-avatar {
    width: 62px;
    height: 62px;
    border-radius: 18px;
}

body:has(.dashboard-header.profile-page-header) .profile-page-role {
    margin-top: 4px;
}

.profile-page-layout {
    gap: 20px;
}

.profile-page-layout .profile-card {
    border-radius: 14px;
}

.profile-page-layout .profile-card-heading {
    width: min(660px, 100%);
    margin: 0 auto;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.profile-page-layout .profile-card-heading > span {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(85, 228, 255, 0.25);
    border-radius: 11px;
    background: rgba(85, 228, 255, 0.1);
}

.profile-page-layout .profile-card-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 21px;
}

.profile-page-layout .profile-card-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.profile-page-layout .profile-access-columns {
    width: min(880px, 100%);
    margin: 0 auto;
    gap: 34px;
}

.profile-page-layout .profile-form-section-heading {
    text-align: center;
}

.profile-page-layout .profile-form-section button {
    width: 100%;
    margin-top: 8px;
}

.profile-page-layout .profile-design-card form {
    display: grid;
    width: min(960px, 100%);
    margin: 0 auto;
    gap: 16px;
}

.profile-page-layout .design-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-page-layout .design-option {
    min-height: 106px;
    align-items: center;
    text-align: left;
}

.profile-page-layout .profile-design-card form > button {
    width: min(290px, 100%);
    justify-self: center;
}

.profile-page-layout .profile-fireworks-card {
    width: min(720px, 100%);
    justify-self: center;
}

.profile-page-layout .profile-toggle {
    min-height: auto;
    margin: 4px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
}

@media (max-width: 760px) {
    body:has(.users-page) .users-page-header,
    body:has(.dashboard-header.profile-page-header) .profile-page-header {
        min-height: auto;
    }

    body:has(.users-page) .users-add-button {
        width: min(320px, 100%);
    }

    body:has(.dashboard-header.profile-page-header) .profile-page-header {
        flex-direction: column;
    }

    .profile-page-layout .design-options {
        grid-template-columns: 1fr;
    }

    .profile-page-layout .design-option {
        min-height: 0;
    }

    .profile-page-layout .profile-toggle {
        align-items: center;
    }
}

/* Profil: ruhige, klar gegliederte Einstellungsseite. */
body:has(.profile-page-header-v2) .profile-page-header-v2 {
    min-height: 0;
    padding: clamp(26px, 4vw, 38px);
    gap: 12px;
}

body:has(.profile-page-header-v2) .profile-page-header-v2 .profile-page-avatar {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    font-size: 27px;
    box-shadow: 0 12px 28px rgba(20, 132, 255, 0.25);
}

body:has(.profile-page-header-v2) .profile-page-header-v2 .profile-page-identity {
    display: grid;
    gap: 0;
    text-align: center;
}

body:has(.profile-page-header-v2) .profile-page-header-v2 .profile-page-kicker {
    margin-bottom: 6px;
}

body:has(.profile-page-header-v2) .profile-page-header-v2 h1 {
    font-size: clamp(30px, 4vw, 42px);
}

body:has(.profile-page-header-v2) .profile-page-header-v2 .profile-page-role {
    margin-top: 4px;
    padding: 6px 12px;
}

.profile-page-layout-v2 {
    width: min(880px, 100%);
    gap: 16px;
}

.profile-page-layout-v2 .profile-card {
    gap: 20px;
    border-radius: 16px;
    padding: clamp(20px, 3.5vw, 30px);
}

.profile-page-layout-v2 .profile-card-heading {
    width: 100%;
    margin: 0;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    text-align: center;
}

.profile-page-layout-v2 .profile-card-heading > span {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.profile-page-layout-v2 .profile-card-heading h2 {
    font-size: 20px;
}

.profile-page-layout-v2 .profile-card-heading p {
    max-width: 620px;
    font-size: 14px;
}

.profile-page-layout-v2 .profile-access-columns {
    width: 100%;
    gap: 16px;
}

.profile-page-layout-v2 .profile-form-section {
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background: rgba(2, 19, 47, 0.18);
    padding: 18px;
}

.profile-page-layout-v2 .profile-password-section {
    border: 1px solid rgba(255, 255, 255, 0.11);
    padding: 18px;
}

.profile-page-layout-v2 .profile-form-section-heading {
    margin-bottom: 7px;
    text-align: center;
}

.profile-page-layout-v2 .profile-form-section-heading strong {
    font-size: 17px;
}

.profile-page-layout-v2 .profile-form-section button {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
}

.profile-page-layout-v2 .profile-form-section > label {
    text-align: center;
}

.profile-page-layout-v2 .profile-design-card,
.profile-page-layout-v2 .profile-fireworks-card {
    width: 100%;
    grid-column: 1 / -1;
}

.profile-page-layout-v2 .profile-design-card form {
    width: 100%;
    margin: 0;
    gap: 14px;
}

.profile-page-layout-v2 .design-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-page-layout-v2 .design-option {
    min-height: 118px;
    align-items: center;
    border-radius: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.035);
    transform: translateY(0);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.profile-page-layout-v2 .design-option:hover {
    transform: translateY(-2px);
}

.profile-page-layout-v2 .design-option input {
    width: 19px;
    min-height: 19px;
}

.profile-page-layout-v2 .design-option strong {
    font-size: 16px;
}

.profile-page-layout-v2 .design-option small {
    font-size: 13px;
}

.profile-page-layout-v2 .profile-design-card form > button {
    width: min(320px, 100%);
    min-height: 44px;
    justify-self: center;
}

.profile-page-layout-v2 .profile-toggle {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background: rgba(2, 19, 47, 0.18);
    padding: 16px 18px;
}

.profile-page-layout-v2 .profile-toggle strong {
    font-size: 16px;
}

.profile-page-layout-v2 .profile-toggle > span:first-child {
    grid-column: 2;
    text-align: center;
}

.profile-page-layout-v2 .profile-toggle-control {
    grid-column: 3;
    justify-self: end;
}

@media (max-width: 760px) {
    body:has(.profile-page-header-v2) .profile-page-header-v2 {
        padding: 26px 20px;
    }

    .profile-page-layout-v2 .profile-access-columns,
    .profile-page-layout-v2 .design-options {
        grid-template-columns: 1fr;
    }

    .profile-page-layout-v2 .profile-form-section,
    .profile-page-layout-v2 .profile-password-section {
        padding: 16px;
    }

    .profile-page-layout-v2 .design-option {
        min-height: 78px;
    }

    .profile-page-layout-v2 .profile-design-card form > button {
        width: 100%;
    }

    .profile-page-layout-v2 .profile-toggle {
        align-items: flex-start;
    }
}

/* Benutzerverwaltung: aus der Tabelle werden auf dem Handy klare Mitgliederkarten. */
@media (max-width: 760px) {
    body:has(.users-page) .users-page {
        width: min(100% - 24px, 620px);
        gap: 14px;
    }

    body:has(.users-page) .users-page-header {
        align-items: center;
        padding: 24px 18px;
    }

    body:has(.users-page) .users-page-header h1 {
        font-size: 34px;
    }

    body:has(.users-page) .users-add-button {
        width: 100%;
        justify-content: center;
    }

    body:has(.users-page) .users-list-card {
        padding: 16px;
    }

    body:has(.users-page) .users-list-toolbar {
        align-items: stretch;
        gap: 12px;
        margin-bottom: 14px;
        text-align: left;
    }

    body:has(.users-page) .users-search-field {
        width: 100%;
    }

    body:has(.users-page) .user-table-wrapper {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    body:has(.users-page) .users-table,
    body:has(.users-page) .users-table tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }

    body:has(.users-page) .users-table thead {
        display: none;
    }

    body:has(.users-page) .users-table tbody {
        display: grid;
        gap: 10px;
    }

    body:has(.users-page) .users-table .user-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px 14px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        background: rgba(2, 18, 42, 0.26);
        padding: 14px;
    }

    body:has(.users-page) .users-table .user-row:hover > td {
        background: transparent;
    }

    body:has(.users-page) .users-table td {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border: 0;
        padding: 0;
        text-align: left;
    }

    body:has(.users-page) .users-table td:nth-child(1),
    body:has(.users-page) .users-table td:nth-child(4) {
        grid-column: 1 / -1;
    }

    body:has(.users-page) .users-table td:nth-child(2)::before,
    body:has(.users-page) .users-table td:nth-child(3)::before {
        flex: 0 0 auto;
        color: var(--muted);
        font-size: 12px;
        font-weight: 750;
    }

    body:has(.users-page) .users-table td:nth-child(2)::before {
        content: "Rolle";
    }

    body:has(.users-page) .users-table td:nth-child(3)::before {
        content: "Dabei seit";
    }

    body:has(.users-page) .users-member,
    body:has(.users-page) .users-member > div {
        min-width: 0;
    }

    body:has(.users-page) .users-member strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:has(.users-page) .users-date,
    body:has(.users-page) .admin-created-time {
        text-align: left;
    }

    body:has(.users-page) .users-actions {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 12px;
    }

    body:has(.users-page) .users-action-link,
    body:has(.users-page) .users-action-button,
    body:has(.users-page) .users-delete-link,
    body:has(.users-page) .users-actions .own-account {
        width: 100%;
        min-height: 40px;
        box-sizing: border-box;
    }

    body:has(.users-page) .users-actions .own-account {
        display: flex;
        grid-column: 1 / -1;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.035);
    }

    .users-dialog {
        width: min(100% - 24px, 470px);
        max-height: min(84dvh, 680px);
        overflow-y: auto;
    }

    .users-dialog-content {
        gap: 11px;
        padding: 18px;
    }

    .users-dialog input,
    .users-dialog select {
        width: 100%;
        box-sizing: border-box;
    }
}

/* PDF-Speiseplanimport */
.seminars-list-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.seminars-list-toolbar h3,
.seminars-list-toolbar p {
    margin: 0;
}

.seminars-list-toolbar h3 {
    color: #ffffff;
    font-size: 17px;
}

.seminars-list-toolbar p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.seminars-search-field {
    display: flex;
    width: min(360px, 100%);
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(2, 18, 42, 0.2);
    padding: 0 12px;
}

.seminars-search-field > span {
    color: #a7efff;
    font-size: 14px;
}

.seminars-search-field .user-search {
    width: 100%;
    min-height: 42px;
    margin: 0;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.seminars-search-field .user-search:focus {
    box-shadow: none;
}

.seminar-column strong {
    color: #ffffff;
}

.seminar-actions {
    white-space: nowrap;
}

.meal-plan-import-card {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    gap: 18px;
    margin: 0 auto;
}

.meal-plan-import-intro {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.meal-plan-import-intro strong,
.meal-plan-import-intro p {
    display: block;
}

.meal-plan-import-intro strong {
    color: #ffffff;
    font-size: 17px;
}

.meal-plan-import-intro p {
    max-width: 670px;
    margin: 5px auto 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.meal-plan-import-note {
    flex: 0 0 auto;
    border: 1px solid rgba(85, 228, 255, 0.24);
    border-radius: 999px;
    background: rgba(85, 228, 255, 0.08);
    padding: 7px 10px;
    color: #c9f7ff;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
}

.meal-plan-import-form {
    display: grid;
    width: min(700px, 100%);
    gap: 12px;
    margin: 0 auto;
}

.meal-plan-file-picker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px 13px;
    border: 1px solid rgba(85, 228, 255, 0.32);
    border-radius: 12px;
    background: rgba(2, 18, 42, 0.24);
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease;
}

.meal-plan-file-picker:hover {
    border-color: rgba(85, 228, 255, 0.72);
    background: rgba(85, 228, 255, 0.08);
}

.meal-plan-file-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 10px;
    background: rgba(32, 142, 255, 0.18);
    color: #a7efff;
    font-size: 21px;
}

.meal-plan-file-copy,
.meal-plan-file-picker strong,
.meal-plan-file-picker small,
.meal-plan-file-picker em {
    display: block;
}

.meal-plan-file-copy {
    min-width: 0;
}

.meal-plan-file-picker strong {
    color: #ffffff;
    font-size: 15px;
}

.meal-plan-file-picker small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.meal-plan-file-picker em {
    overflow: hidden;
    margin-top: 7px;
    color: #bdeeff;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meal-plan-file-action {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #168dff;
    padding: 0 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.meal-plan-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.meal-plan-import-status {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.meal-plan-import-preview {
    display: grid;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
}

.meal-plan-import-preview[hidden] {
    display: none;
}

.meal-plan-import-preview-heading h3,
.meal-plan-import-preview-heading p {
    margin: 0;
}

.meal-plan-import-preview-heading h3 {
    color: #ffffff;
    font-size: 18px;
    text-align: center;
}

.meal-plan-import-preview-heading p {
    margin: 4px auto 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.meal-plan-import-rows {
    display: grid;
    gap: 9px;
}

.meal-plan-import-row {
    display: grid;
    grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.4fr) minmax(0, 1.4fr);
    align-items: end;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 11px;
    background: rgba(2, 18, 42, 0.2);
    padding: 13px;
}

.meal-plan-import-day {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 7px 9px;
}

.meal-plan-import-day input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: #55e4ff;
}

.meal-plan-import-day strong {
    color: #ffffff;
    font-size: 14px;
}

.meal-plan-import-day input[type="date"] {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 38px;
    margin: 0;
    font-size: 13px;
}

.meal-plan-import-row > label {
    display: grid;
    gap: 6px;
    color: #c9f7ff;
    font-size: 12px;
    font-weight: 750;
}

.meal-plan-import-row > label input {
    width: 100%;
    min-height: 38px;
    margin: 0;
    font-size: 13px;
}

.meal-plan-import-preview > button {
    width: min(320px, 100%);
    min-height: 44px;
    justify-self: center;
}

@media (max-width: 760px) {
    body:has(.seminars-page) .seminars-list-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        text-align: left;
    }

    body:has(.seminars-page) .seminars-search-field {
        width: 100%;
        box-sizing: border-box;
    }

    body:has(.seminars-page) .user-table-wrapper {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    body:has(.seminars-page) .seminars-table,
    body:has(.seminars-page) .seminars-table tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }

    body:has(.seminars-page) .seminars-table thead {
        display: none;
    }

    body:has(.seminars-page) .seminars-table tbody {
        display: grid;
        gap: 10px;
    }

    body:has(.seminars-page) .seminars-table .seminar-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        background: rgba(2, 18, 42, 0.26);
        padding: 14px;
    }

    body:has(.seminars-page) .seminars-table .seminar-row:hover > td {
        background: transparent;
    }

    body:has(.seminars-page) .seminars-table td {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border: 0;
        padding: 0;
        text-align: left;
    }

    body:has(.seminars-page) .seminars-table .seminar-id {
        display: none;
    }

    body:has(.seminars-page) .seminars-table .seminar-column {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
    }

    body:has(.seminars-page) .seminars-table .seminar-column strong {
        display: block;
        overflow: hidden;
        font-size: 16px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:has(.seminars-page) .seminars-table .seminar-date::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--muted);
        font-size: 12px;
        font-weight: 750;
    }

    body:has(.seminars-page) .seminars-table .seminar-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 12px;
        white-space: normal;
    }

    body:has(.seminars-page) .seminars-table .seminar-actions .edit-btn,
    body:has(.seminars-page) .seminars-table .seminar-actions .delete-btn {
        display: flex;
        width: 100%;
        min-height: 40px;
        margin: 0;
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
    }

    body:has(.seminars-page) .seminars-table .seminar-actions .delete-btn {
        grid-column: 1 / -1;
    }

    .meal-plan-import-intro {
        display: grid;
        gap: 12px;
    }

    .meal-plan-import-note {
        width: fit-content;
    }

    .meal-plan-import-row {
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 14px;
    }

    .meal-plan-import-day {
        grid-template-columns: 18px minmax(0, 1fr) minmax(0, 1fr);
    }

    .meal-plan-import-day input[type="date"] {
        grid-column: 3;
        min-width: 0;
        text-align: right;
    }

.meal-plan-import-row > label input {
    font-size: 16px;
}

    .meal-plan-file-picker {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 14px;
    }

    .meal-plan-file-action {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Administratorbereich 3595 */
.ziel-header {
    text-align: left;
}

.ziel-page {
    display: grid;
    gap: 20px;
}

.ziel-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    border: 1px solid rgba(85, 228, 255, 0.32);
    border-radius: 999px;
    background: rgba(85, 228, 255, 0.1);
    padding: 6px 11px;
    color: #c9f7ff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ziel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.ziel-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.ziel-section-heading h2 {
    margin-bottom: 6px;
}

.ziel-section-heading p {
    margin: 0;
    color: var(--muted);
}

.ziel-reset-button {
    flex: 0 0 auto;
    border: 1px solid rgba(85, 228, 255, 0.28);
    border-radius: 999px;
    background: rgba(85, 228, 255, 0.08);
    padding: 10px 14px;
    color: #c9f7ff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.ziel-reset-button:hover {
    border-color: rgba(85, 228, 255, 0.6);
    background: rgba(85, 228, 255, 0.16);
}

.ziel-checklist {
    display: grid;
    gap: 12px;
}

.ziel-checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    color: var(--text);
    font-weight: 650;
}

.ziel-checklist-item input {
    width: 18px;
    min-height: 18px;
    flex: 0 0 auto;
    accent-color: #55e4ff;
}

.ziel-checklist-item:has(input:checked) {
    border-color: rgba(85, 228, 255, 0.35);
    background: rgba(85, 228, 255, 0.1);
}

.ziel-checklist-item:has(input:checked) span {
    color: var(--muted);
    text-decoration: line-through;
}

.ziel-checklist-card {
    margin-bottom: 0;
}

.ziel-checklist-groups,
.ziel-goal-stack,
.ziel-plan-form {
    display: grid;
    gap: 20px;
}

.ziel-checklist-group {
    min-width: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 18px;
}

.ziel-checklist-group legend {
    padding: 0 8px;
    color: #c9f7ff;
    font-size: 16px;
    font-weight: 850;
}

.ziel-text-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.55;
}

.ziel-goal-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(2, 18, 42, 0.25);
    padding: 20px;
}

.ziel-goal-number {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #55e4ff, #2a9bd8);
    color: #05233d;
    font-size: 19px;
    font-weight: 950;
}

.ziel-goal-content {
    min-width: 0;
}

.ziel-goal-content h3,
.ziel-mini-card h3,
.ziel-timeline-step h3 {
    margin: 0 0 12px;
    color: var(--text);
}

.ziel-goal-content h4 {
    margin: 18px 0 10px;
    color: #c9f7ff;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ziel-target {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.ziel-target strong {
    color: var(--text);
}

.ziel-detail-box,
.ziel-callout {
    margin: 18px 0 0;
    border-left: 3px solid #55e4ff;
    border-radius: 0 14px 14px 0;
    background: rgba(85, 228, 255, 0.08);
    padding: 14px 16px;
}

.ziel-detail-box h4 {
    margin-top: 0;
}

.ziel-callout {
    color: var(--text);
    line-height: 1.55;
}

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

.ziel-mini-card,
.ziel-timeline-step {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(2, 18, 42, 0.24);
    padding: 18px;
}

.ziel-mini-card .ziel-checklist-item,
.ziel-timeline-step .ziel-checklist-item {
    align-items: flex-start;
    padding: 12px;
    font-size: 14px;
}

.ziel-timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ziel-timeline-step {
    border-top: 3px solid #55e4ff;
}

.ziel-success-section > p {
    color: var(--muted);
}

.ziel-personal-goal {
    border-color: rgba(85, 228, 255, 0.3) !important;
    background: linear-gradient(135deg, rgba(85, 228, 255, 0.12), rgba(2, 18, 42, 0.38)) !important;
}

.ziel-personal-goal p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
}

/* Frachtzeitenrechner */
.fracht-intro-note {
    margin: 0;
    border-left: 3px solid #55e4ff;
    border-radius: 0 13px 13px 0;
    background: rgba(85, 228, 255, 0.08);
    padding: 12px 15px;
    color: var(--muted);
    line-height: 1.55;
}

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

.fracht-grundlagen > div {
    display: grid;
    gap: 5px;
    border: 1px solid rgba(85, 228, 255, 0.22);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(85, 228, 255, 0.1), rgba(2, 18, 42, 0.3));
    padding: 16px;
}

.fracht-grundlagen span,
.fracht-metric span,
.fracht-balance > span,
.fracht-status > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fracht-grundlagen strong {
    color: var(--text);
    font-size: 17px;
}

.fracht-calculator {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: start;
}

.fracht-input-panel,
.fracht-result-panel {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.fracht-time-section {
    display: grid;
    gap: 8px;
}

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

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

.fracht-result-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(2, 18, 42, 0.3);
    padding: 18px;
}

.fracht-field {
    display: grid;
    gap: 8px;
}

.fracht-field > label {
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
}

.fracht-field select,
.fracht-field input {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 13px;
    outline: 0;
    background: rgba(2, 18, 42, 0.48);
    padding: 0 14px;
    color: var(--text);
    font: inherit;
    font-size: 16px;
}

.fracht-field select:focus,
.fracht-field input:focus {
    border-color: rgba(85, 228, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(85, 228, 255, 0.12);
}

.fracht-field input[aria-invalid="true"] {
    border-color: rgba(255, 111, 111, 0.78);
}

.fracht-field small,
.fracht-empty-state {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.fracht-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.fracht-add-row button {
    min-height: 48px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #55e4ff, #2a9bd8);
    padding: 0 17px;
    color: #05233d;
    font-weight: 900;
    cursor: pointer;
}

.fracht-add-row button:hover {
    filter: brightness(1.08);
}

.fracht-input-error {
    color: #ff9c9c;
    font-size: 13px;
    font-weight: 750;
}

.fracht-batches {
    display: grid;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
}

.fracht-batches-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fracht-batches-heading h3 {
    margin: 0;
    font-size: 17px;
}

#fracht-batch-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#fracht-batch-list li {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
    padding: 7px 8px 7px 14px;
    color: var(--text);
    font-weight: 800;
}

#fracht-batch-list button {
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.09);
    padding: 8px 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

#fracht-batch-list button:hover {
    background: rgba(255, 111, 111, 0.13);
    color: #ffb3b3;
}

.fracht-status {
    display: grid;
    gap: 7px;
    border: 1px solid rgba(85, 228, 255, 0.24);
    border-radius: 17px;
    background: rgba(85, 228, 255, 0.08);
    padding: 17px;
}

.fracht-status strong {
    color: var(--text);
    font-size: 22px;
}

.fracht-status p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.fracht-status[data-state="under"] {
    border-color: rgba(80, 221, 157, 0.4);
    background: rgba(80, 221, 157, 0.1);
}

.fracht-status[data-state="under"] > span {
    color: #8cf0bd;
}

.fracht-status[data-state="over"] {
    border-color: rgba(255, 111, 111, 0.42);
    background: rgba(255, 111, 111, 0.1);
}

.fracht-status[data-state="invalid"] {
    border-color: rgba(255, 111, 111, 0.42);
    background: rgba(255, 111, 111, 0.1);
}

.fracht-status[data-state="invalid"] > span {
    color: #ffaaaa;
}

.fracht-status[data-state="over"] > span {
    color: #ffaaaa;
}

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

.fracht-metric {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px;
}

.fracht-metric strong {
    color: var(--text);
    font-size: 17px;
}

.fracht-load {
    display: grid;
    gap: 9px;
}

.fracht-load-heading {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.fracht-load-heading strong {
    color: var(--text);
}

.fracht-load-track {
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.fracht-load-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #50dd9d, #55e4ff);
    transition: width 220ms ease;
}

.fracht-result-panel:has(.fracht-status[data-state="over"]) .fracht-load-track span {
    background: #ff6f6f;
}

.fracht-balance {
    display: grid;
    gap: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}

.fracht-balance strong {
    color: var(--text);
    font-size: 24px;
}

.fracht-balance small {
    color: var(--muted);
    font-size: 13px;
}

/* Rollcontainer-Verteilung per Foto */
.rolli-method {
    display: grid;
    gap: 22px;
}

.rolli-method .ziel-section-heading {
    margin-bottom: 0;
}

.rolli-method .ziel-kicker {
    margin-bottom: 8px;
}

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

.rolli-settings-note {
    margin: -10px 0 0;
    border-left: 3px solid #55e4ff;
    padding-left: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.rolli-photo-panel,
.rolli-editor,
.rolli-distribution-section {
    display: grid;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 19px;
    background: rgba(2, 18, 42, 0.27);
    padding: 18px;
}

.rolli-photo-copy h3,
.rolli-editor-heading h3,
.rolli-distribution-heading h3 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 18px;
}

.rolli-photo-copy p,
.rolli-editor-heading p,
.rolli-distribution-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.rolli-photo-copy small {
    display: block;
    margin-top: 8px;
    color: #8cf0bd;
    font-size: 12px;
    font-weight: 750;
}

.rolli-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

#rolli-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.rolli-file-button,
#rolli-read-photo,
#rolli-add-manual {
    display: inline-flex;
    min-height: 44px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(85, 228, 255, 0.3);
    border-radius: 12px;
    background: rgba(85, 228, 255, 0.09);
    padding: 0 15px;
    color: #c9f7ff;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

#rolli-read-photo {
    border: 0;
    background: linear-gradient(135deg, #55e4ff, #2a9bd8);
    color: #05233d;
}

#rolli-read-photo:disabled {
    cursor: not-allowed;
    filter: grayscale(0.5);
    opacity: 0.48;
}

.rolli-file-button:hover,
#rolli-add-manual:hover {
    border-color: rgba(85, 228, 255, 0.65);
    background: rgba(85, 228, 255, 0.15);
}

.rolli-file-button:has(+ #rolli-photo-input:focus-visible) {
    outline: 2px solid #55e4ff;
    outline-offset: 3px;
}

.rolli-photo-preview {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    padding: 10px;
}

.rolli-photo-preview[hidden] {
    display: none;
}

.rolli-photo-preview img {
    width: 88px;
    height: 72px;
    border-radius: 9px;
    object-fit: cover;
}

.rolli-photo-preview span {
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rolli-ocr-progress {
    display: grid;
    gap: 8px;
}

.rolli-ocr-progress[hidden] {
    display: none;
}

.rolli-ocr-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.rolli-ocr-progress strong {
    color: var(--text);
}

.rolli-ocr-message {
    min-height: 20px;
    margin: 0;
    color: #c9f7ff;
    font-size: 13px;
    line-height: 1.45;
}

.rolli-editor-heading,
.rolli-distribution-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.rolli-table-wrap {
    overflow-x: auto;
}

.rolli-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.rolli-table th {
    padding: 0 10px 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}

.rolli-table td {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
}

.rolli-table td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px 0 0 11px;
}

.rolli-table td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 11px 11px 0;
    text-align: right;
}

.rolli-table input {
    width: 100%;
    min-width: 90px;
    min-height: 40px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    outline: 0;
    background: rgba(2, 18, 42, 0.42);
    padding: 0 10px;
    color: var(--text);
    font: inherit;
}

.rolli-table input:focus {
    border-color: rgba(85, 228, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(85, 228, 255, 0.1);
}

.rolli-table td:nth-child(1) {
    width: 25%;
}

.rolli-table td:nth-child(2) {
    width: 22%;
}

.rolli-table td:nth-child(3) {
    width: 33%;
}

.rolli-table button {
    border: 0;
    border-radius: 8px;
    background: rgba(255, 111, 111, 0.1);
    padding: 8px 10px;
    color: #ffaaaa;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.rolli-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rolli-summary span {
    border: 1px solid rgba(85, 228, 255, 0.18);
    border-radius: 999px;
    background: rgba(85, 228, 255, 0.07);
    padding: 8px 12px;
    color: var(--muted);
    font-size: 12px;
}

.rolli-summary strong {
    color: var(--text);
}

.rolli-distribution-status {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.rolli-distribution-status[data-state="under"] {
    border-color: rgba(80, 221, 157, 0.36);
    background: rgba(80, 221, 157, 0.1);
    color: #8cf0bd;
}

.rolli-distribution-status[data-state="over"] {
    border-color: rgba(255, 111, 111, 0.38);
    background: rgba(255, 111, 111, 0.1);
    color: #ffaaaa;
}

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

.rolli-shift-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 2px 10px;
}

.rolli-shift-heading:first-child {
    margin-top: 0;
}

.rolli-shift-heading h4 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
}

.rolli-shift-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.rolli-assignment-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
    border: 1px solid rgba(80, 221, 157, 0.25);
    border-top: 3px solid #50dd9d;
    border-radius: 16px;
    background: rgba(80, 221, 157, 0.06);
    padding: 15px;
}

.rolli-assignment-card[data-state="over"] {
    border-color: rgba(255, 111, 111, 0.28);
    border-top-color: #ff6f6f;
    background: rgba(255, 111, 111, 0.06);
}

.rolli-assignment-card[data-shift="late"] {
    border-color: rgba(85, 228, 255, 0.25);
    border-top-color: #55e4ff;
    background: rgba(85, 228, 255, 0.06);
}

.rolli-assignment-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.rolli-assignment-heading h4 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 18px;
}

.rolli-assignment-heading strong {
    color: var(--muted);
    font-size: 12px;
}

.rolli-assignment-heading > span {
    flex: 0 0 auto;
    color: #8cf0bd;
    font-size: 11px;
    font-weight: 850;
}

.rolli-assignment-card[data-state="over"] .rolli-assignment-heading > span {
    color: #ffaaaa;
}

.rolli-assignment-card ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rolli-assignment-card li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    padding: 9px 10px;
}

.rolli-assignment-card li strong {
    color: var(--text);
    font-size: 13px;
}

.rolli-assignment-card li span {
    color: var(--muted);
    font-size: 11px;
    text-align: right;
}

.rolli-assignment-card .rolli-assignment-empty {
    color: var(--muted);
    font-size: 12px;
}

.rolli-assignment-card > p {
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding-top: 11px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.rolli-unassigned {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(255, 111, 111, 0.3);
    border-radius: 15px;
    background: rgba(255, 111, 111, 0.07);
    padding: 15px;
}

.rolli-unassigned[hidden] {
    display: none;
}

.rolli-unassigned h4 {
    margin: 0;
    color: #ffb3b3;
    font-size: 16px;
}

.rolli-unassigned > p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.rolli-unassigned ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rolli-unassigned li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    padding: 9px 10px;
}

.rolli-unassigned li strong {
    color: var(--text);
    font-size: 13px;
}

.rolli-unassigned li span {
    color: var(--muted);
    font-size: 11px;
    text-align: right;
}

/* Füllplan-Assistent: eigenständige, klar geführte Planungsoberfläche. */
.rolli-method {
    --rolli-paper: #eef3f0;
    --rolli-paper-card: #ffffff;
    --rolli-ink: #102b3b;
    --rolli-soft-ink: #5f7078;
    --rolli-before: #f2b84b;
    --rolli-before-soft: #fff4da;
    --rolli-open: #1aa897;
    --rolli-open-soft: #dff5ef;
    gap: 18px;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at 100% 0, rgba(242, 184, 75, 0.12), transparent 31%),
        radial-gradient(circle at 0 72%, rgba(26, 168, 151, 0.11), transparent 30%),
        rgba(3, 22, 49, 0.34);
}

.rolli-method-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 22px;
    padding: 4px 2px 10px;
}

.rolli-method-hero h2,
.rolli-method-hero p {
    margin: 0;
}

.rolli-method-hero h2 {
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(25px, 3.5vw, 37px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.rolli-method-hero p {
    max-width: 720px;
    margin-top: 9px;
    color: rgba(236, 246, 255, 0.72);
    line-height: 1.55;
}

.rolli-method-hero .ziel-reset-button {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.rolli-workflow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
}

.rolli-workflow-step {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    background: rgba(7, 31, 62, 0.92);
    padding: 14px 16px;
}

.rolli-workflow-step > strong {
    color: rgba(255, 255, 255, 0.28);
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
}

.rolli-workflow-step:first-child > strong {
    color: var(--rolli-before);
}

.rolli-workflow-step span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.rolli-workflow-step b {
    color: #ffffff;
    font-size: 13px;
}

.rolli-workflow-step small {
    overflow: hidden;
    color: rgba(236, 246, 255, 0.58);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rolli-planning-board {
    display: grid;
    gap: 18px;
    border-radius: 24px;
    background:
        linear-gradient(rgba(16, 43, 59, 0.035) 1px, transparent 1px),
        var(--rolli-paper);
    background-size: 100% 34px;
    padding: clamp(18px, 3vw, 28px);
    box-shadow: 0 22px 55px rgba(0, 10, 26, 0.28);
}

.rolli-board-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.rolli-board-heading > span,
.rolli-panel-step {
    color: var(--rolli-open);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.rolli-board-heading > span {
    border: 1px solid rgba(16, 43, 59, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    padding: 7px 10px;
    white-space: nowrap;
}

.rolli-board-heading h3,
.rolli-board-heading p {
    margin: 0;
}

.rolli-board-heading h3 {
    color: var(--rolli-ink);
    font-size: 21px;
}

.rolli-board-heading p {
    margin-top: 3px;
    color: var(--rolli-soft-ink);
    font-size: 13px;
}

.rolli-window-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rolli-window-card {
    display: grid;
    min-width: 0;
    gap: 16px;
    border: 1px solid rgba(16, 43, 59, 0.1);
    border-top: 5px solid var(--rolli-before);
    border-radius: 18px;
    background: var(--rolli-paper-card);
    padding: 18px;
    box-shadow: 0 12px 30px rgba(16, 43, 59, 0.09);
}

.rolli-window-card[data-window="open"] {
    border-top-color: var(--rolli-open);
}

.rolli-window-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.rolli-window-index {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: var(--rolli-before-soft);
    color: #9b6500;
    font-size: 14px;
    font-weight: 950;
}

[data-window="open"] .rolli-window-index {
    background: var(--rolli-open-soft);
    color: #08796c;
}

.rolli-window-heading small,
.rolli-window-heading h4 {
    display: block;
    margin: 0;
}

.rolli-window-heading small {
    color: var(--rolli-soft-ink);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rolli-window-heading h4 {
    margin-top: 2px;
    color: var(--rolli-ink);
    font-size: 19px;
}

.rolli-window-fields {
    display: grid;
    grid-template-columns: minmax(118px, 0.72fr) minmax(0, 1.55fr);
    gap: 12px;
    align-items: end;
}

.rolli-planning-board .fracht-field {
    min-width: 0;
}

.rolli-planning-board .fracht-field label {
    color: var(--rolli-soft-ink);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rolli-planning-board .fracht-field input,
.rolli-planning-board .fracht-field select {
    min-width: 0;
    border: 1px solid rgba(16, 43, 59, 0.15);
    background: #f7faf8;
    color: var(--rolli-ink);
    box-shadow: none;
}

.rolli-planning-board .fracht-field input:focus,
.rolli-planning-board .fracht-field select:focus {
    border-color: var(--rolli-open);
    box-shadow: 0 0 0 3px rgba(26, 168, 151, 0.12);
}

.rolli-time-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 7px;
}

.rolli-time-pair > span {
    padding-bottom: 13px;
    color: #839198;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.rolli-window-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 12px;
    background: var(--rolli-before-soft);
    padding: 11px 12px;
}

[data-window="open"] .rolli-window-result {
    background: var(--rolli-open-soft);
}

.rolli-window-result span {
    color: var(--rolli-soft-ink);
    font-size: 11px;
}

.rolli-window-result strong {
    color: var(--rolli-ink);
    font-size: 12px;
    text-align: right;
}

.rolli-planning-board .fracht-input-error {
    color: #bd3d37;
}

.rolli-deductions-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2fr);
    gap: 20px;
    align-items: end;
    border-radius: 17px;
    background: var(--rolli-ink);
    padding: 17px;
}

.rolli-deductions-copy span {
    color: #7ee7d9;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rolli-deductions-copy p {
    margin: 6px 0 0;
    color: rgba(238, 247, 244, 0.65);
    font-size: 12px;
    line-height: 1.45;
}

.rolli-deduction-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.rolli-deductions-card .fracht-field label {
    color: rgba(238, 247, 244, 0.64);
}

.rolli-deductions-card .fracht-field input,
.rolli-deductions-card .fracht-field select {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.rolli-deductions-card select option {
    background: var(--rolli-ink);
    color: #ffffff;
}

.rolli-unit-input {
    display: flex;
    min-width: 0;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.rolli-unit-input input {
    flex: 1 1 auto;
    border: 0 !important;
    border-radius: 10px 0 0 10px !important;
    background: transparent !important;
}

.rolli-unit-input span {
    flex: 0 0 auto;
    padding-right: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 800;
}

.rolli-step-panel {
    position: relative;
    gap: 17px;
    overflow: hidden;
    border-radius: 17px;
    background: rgba(4, 25, 52, 0.72);
    padding: 21px;
    box-shadow: inset 4px 0 0 rgba(85, 228, 255, 0.34);
}

.rolli-panel-step {
    display: block;
    color: #70e9f7;
}

.rolli-photo-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.rolli-photo-panel > .rolli-panel-step,
.rolli-photo-preview,
.rolli-ocr-progress,
.rolli-ocr-message {
    grid-column: 1 / -1;
}

.rolli-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.rolli-summary span {
    display: grid;
    gap: 3px;
    border: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.065);
    padding: 11px 12px;
}

.rolli-summary span[data-phase="before"] {
    background: rgba(242, 184, 75, 0.12);
}

.rolli-summary span[data-phase="open"] {
    background: rgba(26, 168, 151, 0.13);
}

.rolli-summary strong {
    font-size: 15px;
}

.rolli-distribution-section {
    box-shadow: inset 4px 0 0 rgba(26, 168, 151, 0.65);
}

.rolli-assignment-card {
    border-top-width: 1px;
    border-left: 4px solid var(--rolli-before);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 12px 24px rgba(0, 10, 28, 0.16);
}

.rolli-assignment-card[data-shift="late"] {
    border-left-color: var(--rolli-open);
    border-top-color: rgba(26, 168, 151, 0.25);
}

.rolli-shift-heading {
    border-bottom: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    padding: 11px 12px;
}

/* Fracht-Leitstand V3: Foto -> Prüfung -> drei Schichten -> Tagesplan. */
.rolli-method {
    --rolli-late: #8ca8ff;
    --rolli-late-soft: rgba(140, 168, 255, 0.14);
}

.rolli-method > .rolli-method-hero {
    order: 1;
}

.rolli-method > .rolli-workflow {
    order: 2;
}

.rolli-method > .rolli-photo-panel {
    order: 3;
}

.rolli-method > .rolli-editor {
    order: 4;
}

.rolli-method > .rolli-planning-board {
    order: 5;
}

.rolli-method > .rolli-distribution-section {
    order: 6;
}

.rolli-workflow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    overflow: visible;
    border: 0;
    background: transparent;
}

.rolli-workflow-step {
    position: relative;
    min-height: 67px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(5, 25, 51, 0.76);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.rolli-workflow-step[data-state="active"] {
    border-color: rgba(85, 228, 255, 0.55);
    background: linear-gradient(135deg, rgba(85, 228, 255, 0.16), rgba(5, 25, 51, 0.86));
    transform: translateY(-2px);
}

.rolli-workflow-step[data-state="done"] {
    border-color: rgba(80, 221, 157, 0.25);
    background: rgba(80, 221, 157, 0.08);
}

.rolli-workflow-step[data-state="done"] > strong {
    color: #79e6b0;
}

.rolli-workflow-step[data-state="active"] > strong {
    color: #69e8f8;
}

.rolli-photo-panel {
    border: 1px solid rgba(85, 228, 255, 0.2);
    background:
        linear-gradient(100deg, rgba(85, 228, 255, 0.09), transparent 46%),
        rgba(4, 23, 48, 0.82);
    box-shadow: inset 5px 0 0 #55e4ff, 0 18px 36px rgba(0, 11, 29, 0.2);
}

.rolli-photo-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(145px, 1fr));
}

.rolli-file-button,
#rolli-read-photo {
    min-height: 50px;
}

.rolli-editor {
    border-color: rgba(242, 184, 75, 0.2);
    background: rgba(4, 23, 48, 0.82);
    box-shadow: inset 5px 0 0 var(--rolli-before), 0 18px 36px rgba(0, 11, 29, 0.2);
}

.rolli-planning-board {
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(180deg, #0a2540, #071b31);
    background-size: 34px 100%, 100% 100%;
    box-shadow: inset 5px 0 0 var(--rolli-open), 0 22px 48px rgba(0, 10, 27, 0.28);
}

.rolli-board-heading > span {
    border-color: rgba(85, 228, 255, 0.24);
    background: rgba(85, 228, 255, 0.08);
    color: #70e9f7;
}

.rolli-board-heading h3 {
    color: #ffffff;
}

.rolli-board-heading p {
    color: rgba(236, 246, 255, 0.63);
}

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

.rolli-planning-board .rolli-window-fields {
    grid-template-columns: 1fr;
}

.rolli-window-card,
.rolli-window-card[data-window="open"],
.rolli-window-card[data-window="late"] {
    align-content: start;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-top: 0;
    border-left: 5px solid var(--rolli-before);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.055);
    padding: 16px;
    box-shadow: none;
}

.rolli-window-card[data-window="open"] {
    border-left-color: var(--rolli-open);
}

.rolli-window-card[data-window="late"] {
    border-left-color: var(--rolli-late);
}

[data-window="late"] .rolli-window-index {
    background: var(--rolli-late-soft);
    color: #b8c8ff;
}

.rolli-window-heading h4 {
    color: #ffffff;
}

.rolli-window-heading small,
.rolli-planning-board .fracht-field label {
    color: rgba(236, 246, 255, 0.58);
}

.rolli-planning-board .fracht-field input,
.rolli-planning-board .fracht-field select {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(2, 17, 34, 0.72);
    color: #ffffff;
}

.rolli-planning-board .fracht-field select option {
    background: #0a2540;
    color: #ffffff;
}

.rolli-time-pair > span {
    color: rgba(236, 246, 255, 0.4);
}

.rolli-window-result,
[data-window="open"] .rolli-window-result,
[data-window="late"] .rolli-window-result {
    align-items: flex-start;
    flex-direction: column;
    background: rgba(242, 184, 75, 0.1);
}

[data-window="open"] .rolli-window-result {
    background: rgba(26, 168, 151, 0.12);
}

[data-window="late"] .rolli-window-result {
    background: var(--rolli-late-soft);
}

.rolli-window-result span {
    color: rgba(236, 246, 255, 0.6);
}

.rolli-window-result strong {
    color: #ffffff;
    text-align: left;
}

.rolli-deductions-card {
    border: 1px solid rgba(16, 43, 59, 0.09);
    background: #edf3f0;
}

.rolli-deductions-copy span {
    color: #087e70;
}

.rolli-deductions-copy p {
    color: #61747b;
}

.rolli-deductions-card .fracht-field label {
    color: #607078;
}

.rolli-deductions-card .fracht-field input,
.rolli-deductions-card .fracht-field select,
.rolli-deductions-card .rolli-unit-input {
    border-color: rgba(16, 43, 59, 0.13);
    background: #ffffff;
    color: var(--rolli-ink);
}

.rolli-deductions-card select option {
    background: #ffffff;
    color: var(--rolli-ink);
}

.rolli-deductions-card .rolli-unit-input span {
    color: #7a898f;
}

/* Fracht-Leitstand V4: Abzüge getrennt nach Früh- und Spätschicht. */
.rolli-deductions-card {
    grid-template-columns: minmax(175px, 0.48fr) minmax(0, 2.5fr);
    gap: 14px;
    align-items: stretch;
    padding: 14px;
}

.rolli-deductions-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px 7px;
}

.rolli-deductions-copy h4 {
    margin: 5px 0 0;
    color: var(--rolli-ink);
    font-size: 18px;
    line-height: 1.15;
}

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

.rolli-shift-deduction {
    min-width: 0;
    border: 1px solid rgba(16, 43, 59, 0.1);
    border-left: 4px solid var(--rolli-open);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.84);
    padding: 12px;
}

.rolli-shift-deduction[data-shift="late"] {
    border-left-color: var(--rolli-late);
}

.rolli-shift-deduction-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.rolli-shift-deduction-heading > span {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border-radius: 9px;
    background: var(--rolli-open-soft);
    color: #087e70;
    font-size: 12px;
    font-weight: 900;
}

.rolli-shift-deduction[data-shift="late"] .rolli-shift-deduction-heading > span {
    background: var(--rolli-late-soft);
    color: #6179c9;
}

.rolli-shift-deduction-heading div {
    display: grid;
    gap: 1px;
}

.rolli-shift-deduction-heading small {
    color: #7a898f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rolli-shift-deduction-heading strong {
    color: var(--rolli-ink);
    font-size: 14px;
}

.rolli-shift-deduction-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.rolli-shift-deduction-fields .fracht-field {
    min-width: 0;
}

.rolli-shift-deduction-fields .fracht-field label {
    min-height: 29px;
    line-height: 1.25;
}

.rolli-shift-deduction-fields .fracht-field:last-child {
    grid-column: 1 / -1;
}

.rolli-reserve-field {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(135px, 165px);
    align-items: center;
    gap: 14px;
    border: 1px dashed rgba(16, 43, 59, 0.18);
    border-radius: 12px;
    background: rgba(242, 184, 75, 0.1);
    padding: 10px 12px;
}

.rolli-reserve-field > div:first-child {
    display: grid;
    gap: 2px;
}

.rolli-reserve-field > div:first-child label {
    min-height: 0;
    color: var(--rolli-ink);
    font-size: 11px;
    font-weight: 900;
}

.rolli-reserve-field > div:first-child small {
    color: #6f7d82;
    font-size: 10px;
    line-height: 1.35;
}

.rolli-summary span[data-phase="late"] {
    background: var(--rolli-late-soft);
}

.rolli-distribution-section {
    box-shadow: inset 5px 0 0 var(--rolli-late), 0 18px 36px rgba(0, 11, 29, 0.2);
}

.rolli-assignment-card[data-shift="before"] {
    border-left-color: var(--rolli-before);
}

.rolli-assignment-card[data-shift="open"] {
    border-color: rgba(26, 168, 151, 0.25);
    border-left: 4px solid var(--rolli-open);
}

.rolli-assignment-card[data-shift="late"] {
    border-color: rgba(140, 168, 255, 0.25);
    border-left: 4px solid var(--rolli-late);
    background: rgba(140, 168, 255, 0.055);
}

.rolli-shift-heading[data-shift="before"] {
    box-shadow: inset 3px 0 0 var(--rolli-before);
}

.rolli-shift-heading[data-shift="open"] {
    box-shadow: inset 3px 0 0 var(--rolli-open);
}

.rolli-shift-heading[data-shift="late"] {
    box-shadow: inset 3px 0 0 var(--rolli-late);
}

@media (max-width: 900px) {
    .fracht-calculator {
        grid-template-columns: 1fr;
    }

    .rolli-assignments {
        grid-template-columns: 1fr;
    }

    .rolli-unassigned ul {
        grid-template-columns: 1fr;
    }

    .rolli-window-grid,
    .rolli-deductions-card {
        grid-template-columns: 1fr;
    }

    .rolli-deduction-fields,
    .rolli-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rolli-shift-deductions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .fracht-grundlagen {
        grid-template-columns: 1fr;
    }

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

    .rolli-method-hero,
    .rolli-photo-panel {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .rolli-method-hero .ziel-reset-button {
        width: 100%;
    }

    .rolli-workflow {
        grid-template-columns: 1fr;
    }

    .rolli-window-fields {
        grid-template-columns: 1fr;
    }

    .fracht-deduction-fields {
        grid-template-columns: 1fr;
    }

    .rolli-shift-deduction-fields,
    .rolli-reserve-field {
        grid-template-columns: 1fr;
    }

    .fracht-add-row {
        grid-template-columns: 1fr;
    }

    .fracht-add-row button {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .fracht-time-fields,
    .fracht-metrics {
        grid-template-columns: 1fr;
    }

    .fracht-batches-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .rolli-editor-heading,
    .rolli-distribution-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .rolli-photo-actions,
    .rolli-file-button,
    #rolli-read-photo,
    #rolli-add-manual {
        width: 100%;
    }

    .rolli-table,
    .rolli-table tbody,
    .rolli-table tr,
    .rolli-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .rolli-table thead {
        display: none;
    }

    .rolli-table tr {
        display: grid;
        gap: 9px;
        margin-bottom: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.05);
        padding: 11px;
    }

    .rolli-table td,
    .rolli-table td:first-child,
    .rolli-table td:last-child,
    .rolli-table td:nth-child(1),
    .rolli-table td:nth-child(2),
    .rolli-table td:nth-child(3) {
        display: grid;
        grid-template-columns: 94px minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        border: 0;
        border-radius: 0;
        background: transparent;
        padding: 0;
        text-align: left;
    }

    .rolli-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .rolli-table td:last-child {
        text-align: left;
    }

    .rolli-table button {
        width: 100%;
    }

    .rolli-assignment-heading,
    .rolli-assignment-card li {
        align-items: flex-start;
        flex-direction: column;
    }

    .rolli-assignment-card li span {
        text-align: left;
    }

    .rolli-unassigned li {
        align-items: flex-start;
        flex-direction: column;
    }

    .rolli-unassigned li span {
        text-align: left;
    }

    .rolli-shift-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .rolli-shift-heading p {
        text-align: left;
    }

    .rolli-deduction-fields,
    .rolli-summary {
        grid-template-columns: 1fr;
    }

    .rolli-window-result {
        align-items: flex-start;
        flex-direction: column;
    }

    .rolli-window-result strong {
        text-align: left;
    }
}

@media (max-width: 980px) {
    .ziel-grid,
    .ziel-grid-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ziel-section-heading {
        flex-direction: column;
    }

    .ziel-reset-button {
        width: 100%;
    }

    .ziel-goal-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .ziel-timeline {
        grid-template-columns: 1fr;
    }

    .ziel-checklist-item {
        align-items: flex-start;
    }
}

/* Fracht-Leitstand V5: echter Vier-Schritt-Assistent in einem Fenster. */
.rolli-method {
    display: block;
    overflow: visible;
    border: 0;
    background: transparent;
    padding: 0;
}

.rolli-wizard-shell {
    --wizard-navy: #09233d;
    --wizard-navy-deep: #06192d;
    --wizard-canvas: #f2f5f0;
    --wizard-card: #ffffff;
    --wizard-ink: #173342;
    --wizard-muted: #6a7d84;
    --wizard-line: rgba(23, 51, 66, 0.12);
    --wizard-mint: #19a995;
    --wizard-mint-soft: #dcf4ed;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    background: var(--wizard-canvas);
    box-shadow: 0 28px 72px rgba(0, 11, 30, 0.36);
}

.rolli-wizard-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 26px;
    background:
        radial-gradient(circle at 82% -40%, rgba(85, 228, 255, 0.25), transparent 42%),
        linear-gradient(125deg, var(--wizard-navy-deep), var(--wizard-navy));
    padding: clamp(24px, 4vw, 40px);
}

.rolli-wizard-kicker,
.rolli-panel-eyebrow {
    display: block;
    color: #5de0d0;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rolli-wizard-header h2,
.rolli-wizard-header p {
    margin: 0;
}

.rolli-wizard-header h2 {
    max-width: 760px;
    margin-top: 7px;
    color: #ffffff;
    font-size: clamp(27px, 4vw, 43px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.rolli-wizard-header p {
    max-width: 720px;
    margin-top: 11px;
    color: rgba(235, 247, 255, 0.68);
    font-size: 14px;
    line-height: 1.55;
}

.rolli-wizard-reset {
    min-height: 43px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    padding: 0 17px;
    color: #eaf7ff;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.rolli-wizard-reset:hover {
    border-color: rgba(93, 224, 208, 0.55);
    background: rgba(93, 224, 208, 0.1);
}

.rolli-wizard-shell .rolli-workflow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #071d34;
}

.rolli-wizard-shell .rolli-workflow-step {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 76px;
    align-items: center;
    gap: 11px;
    appearance: none;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    outline: 0;
    background: transparent;
    padding: 14px 18px;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transform: none;
    transition: background 180ms ease, opacity 180ms ease;
}

.rolli-wizard-shell .rolli-workflow-step:last-child {
    border-right: 0;
}

.rolli-wizard-shell .rolli-workflow-step::after {
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: transparent;
    content: "";
}

.rolli-wizard-shell .rolli-workflow-step > strong {
    color: rgba(255, 255, 255, 0.28);
    font-size: 20px;
}

.rolli-wizard-shell .rolli-workflow-step b {
    color: rgba(255, 255, 255, 0.82);
}

.rolli-wizard-shell .rolli-workflow-step small {
    color: rgba(235, 247, 255, 0.46);
}

.rolli-wizard-shell .rolli-workflow-step[data-state="active"] {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(93, 224, 208, 0.13), rgba(93, 224, 208, 0.03));
    transform: none;
}

.rolli-wizard-shell .rolli-workflow-step[data-state="active"]::after {
    background: #5de0d0;
}

.rolli-wizard-shell .rolli-workflow-step[data-state="active"] > strong,
.rolli-wizard-shell .rolli-workflow-step[data-state="done"] > strong {
    color: #67e3d4;
}

.rolli-wizard-shell .rolli-workflow-step[data-state="done"] {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(25, 169, 149, 0.055);
}

.rolli-wizard-shell .rolli-workflow-step[data-state="ready"] {
    background: rgba(255, 255, 255, 0.025);
}

.rolli-wizard-shell .rolli-workflow-step:focus-visible {
    box-shadow: inset 0 0 0 2px #5de0d0;
}

.rolli-wizard-shell .rolli-workflow-step:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.rolli-wizard-stage {
    min-height: 520px;
    background:
        linear-gradient(90deg, rgba(23, 51, 66, 0.025) 1px, transparent 1px),
        var(--wizard-canvas);
    background-size: 38px 100%, 100% 100%;
}

.rolli-wizard-shell .rolli-wizard-panel {
    display: grid;
    gap: 24px;
    min-height: 520px;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: clamp(22px, 4vw, 38px);
    box-shadow: none;
    color: var(--wizard-ink);
    animation: rolli-wizard-enter 260ms ease both;
}

.rolli-wizard-shell .rolli-wizard-panel[hidden] {
    display: none !important;
}

#rolli-step-panel-1 {
    order: 1;
}

#rolli-step-panel-2 {
    order: 2;
}

#rolli-step-panel-3 {
    order: 3;
}

#rolli-step-panel-4 {
    order: 4;
}

@keyframes rolli-wizard-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rolli-panel-heading,
.rolli-wizard-shell .rolli-board-heading {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.rolli-panel-heading:not(.has-action):not(.has-status),
.rolli-wizard-shell .rolli-board-heading {
    grid-template-columns: 48px minmax(0, 1fr);
}

.rolli-panel-number,
.rolli-wizard-shell .rolli-board-heading > .rolli-panel-number {
    display: grid;
    width: 48px;
    height: 48px;
    box-sizing: border-box;
    place-items: center;
    border: 1px solid rgba(25, 169, 149, 0.18);
    border-radius: 15px;
    background: var(--wizard-mint-soft);
    padding: 0;
    color: #0b7d70;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.rolli-panel-heading h3,
.rolli-panel-heading p,
.rolli-wizard-shell .rolli-board-heading h3,
.rolli-wizard-shell .rolli-board-heading p {
    margin: 0;
}

.rolli-panel-heading h3,
.rolli-wizard-shell .rolli-board-heading h3 {
    margin-top: 2px;
    color: var(--wizard-ink);
    font-size: clamp(21px, 3vw, 29px);
    letter-spacing: -0.025em;
}

.rolli-wizard-shell h3[tabindex="-1"]:focus {
    outline: 0;
}

.rolli-panel-heading p,
.rolli-wizard-shell .rolli-board-heading p {
    max-width: 760px;
    margin-top: 4px;
    color: var(--wizard-muted);
    font-size: 13px;
    line-height: 1.5;
}

.rolli-panel-eyebrow {
    color: #158d7e;
}

.rolli-upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.rolli-wizard-shell .rolli-photo-panel {
    grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
    align-items: center;
}

.rolli-wizard-shell .rolli-photo-panel > .rolli-panel-heading {
    grid-column: 1;
}

.rolli-wizard-shell .rolli-photo-panel > .rolli-upload-layout {
    grid-column: 2;
}

.rolli-wizard-shell .rolli-photo-panel > .rolli-ocr-progress,
.rolli-wizard-shell .rolli-photo-panel > .rolli-ocr-message,
.rolli-wizard-shell .rolli-photo-panel > .rolli-wizard-actions {
    grid-column: 1 / -1;
}

.rolli-upload-layout:has(.rolli-photo-preview:not([hidden])) {
    grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
}

.rolli-upload-card {
    display: grid;
    min-height: 245px;
    box-sizing: border-box;
    place-items: center;
    align-content: center;
    gap: 7px;
    border: 2px dashed rgba(25, 169, 149, 0.36);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0, rgba(25, 169, 149, 0.12), transparent 44%),
        rgba(255, 255, 255, 0.74);
    padding: 28px;
    color: var(--wizard-ink);
    text-align: center;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.rolli-upload-card:hover,
.rolli-upload-card.has-file {
    border-color: var(--wizard-mint);
    background-color: #ffffff;
    transform: translateY(-2px);
}

.rolli-upload-card:has(+ #rolli-photo-input:focus-visible) {
    outline: 3px solid rgba(25, 169, 149, 0.22);
    outline-offset: 3px;
}

.rolli-upload-mark {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border-radius: 20px;
    background: var(--wizard-navy);
    color: #72e9db;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.09em;
    box-shadow: 0 12px 26px rgba(9, 35, 61, 0.2);
}

.rolli-upload-card strong {
    margin-top: 7px;
    font-size: 19px;
}

.rolli-upload-card > span:not(.rolli-upload-mark) {
    color: var(--wizard-muted);
    font-size: 13px;
}

.rolli-upload-card small {
    margin-top: 6px;
    color: #168c7d;
    font-size: 11px;
    font-weight: 800;
}

.rolli-wizard-shell .rolli-photo-preview {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 12px;
    border: 1px solid var(--wizard-line);
    border-radius: 22px;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 14px 32px rgba(23, 51, 66, 0.08);
}

.rolli-wizard-shell .rolli-photo-preview[hidden] {
    display: none;
}

.rolli-wizard-shell .rolli-photo-preview img {
    width: 100%;
    height: 170px;
    border-radius: 15px;
    object-fit: cover;
}

.rolli-photo-preview > div {
    display: grid;
    min-width: 0;
    gap: 4px;
    padding: 2px 4px 4px;
}

.rolli-photo-preview > div > span {
    color: var(--wizard-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rolli-photo-preview > div > strong {
    overflow: hidden;
    color: var(--wizard-ink);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rolli-photo-preview > div > label {
    width: fit-content;
    margin-top: 3px;
    color: #0b8879;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.rolli-wizard-shell .rolli-ocr-progress {
    gap: 10px;
    border: 1px solid rgba(25, 169, 149, 0.16);
    border-radius: 13px;
    background: var(--wizard-mint-soft);
    padding: 12px 14px;
}

.rolli-wizard-shell .rolli-ocr-progress > div:first-child,
.rolli-wizard-shell .rolli-ocr-progress strong {
    color: var(--wizard-ink);
}

.rolli-wizard-shell .rolli-ocr-message {
    min-height: 19px;
    color: #247468;
    font-weight: 750;
}

.rolli-wizard-actions {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    border-top: 1px solid var(--wizard-line);
    padding-top: 19px;
}

.rolli-wizard-button,
.rolli-wizard-shell #rolli-read-photo,
.rolli-wizard-shell #rolli-add-manual {
    display: inline-flex;
    min-height: 46px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0 17px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.rolli-wizard-button.is-primary,
.rolli-wizard-shell #rolli-read-photo {
    border: 1px solid var(--wizard-navy);
    background: var(--wizard-navy);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(9, 35, 61, 0.16);
}

.rolli-wizard-button.is-primary:hover,
.rolli-wizard-shell #rolli-read-photo:hover {
    border-color: #0d806f;
    background: #0d806f;
}

.rolli-wizard-button.is-secondary,
.rolli-wizard-shell #rolli-add-manual {
    border: 1px solid var(--wizard-line);
    background: #ffffff;
    color: var(--wizard-ink);
    box-shadow: none;
}

.rolli-wizard-button.is-secondary:hover,
.rolli-wizard-shell #rolli-add-manual:hover {
    border-color: rgba(25, 169, 149, 0.42);
    background: var(--wizard-mint-soft);
}

.rolli-wizard-button:disabled,
.rolli-wizard-shell #rolli-read-photo:disabled {
    cursor: not-allowed;
    filter: none;
    opacity: 0.38;
}

.rolli-wizard-action-copy {
    display: grid;
    gap: 2px;
    color: var(--wizard-muted);
    text-align: center;
}

.rolli-wizard-action-copy span {
    color: var(--wizard-ink);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rolli-wizard-action-copy small {
    font-size: 10px;
}

.rolli-wizard-shell .rolli-table-wrap {
    max-height: 520px;
    overflow: auto;
    border: 1px solid var(--wizard-line);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.62);
    padding: 8px 12px;
}

.rolli-wizard-shell .rolli-table th {
    color: var(--wizard-muted);
}

.rolli-wizard-shell .rolli-table td {
    border-color: var(--wizard-line);
    background: #ffffff;
    color: var(--wizard-ink);
}

.rolli-wizard-shell .rolli-table input {
    border-color: rgba(23, 51, 66, 0.15);
    background: #f6f8f5;
    color: var(--wizard-ink);
}

.rolli-wizard-shell .rolli-table input:focus {
    border-color: var(--wizard-mint);
    box-shadow: 0 0 0 3px rgba(25, 169, 149, 0.12);
}

.rolli-wizard-shell .rolli-table button {
    background: #fff0ee;
    color: #b64e47;
}

.rolli-wizard-shell .fracht-empty-state {
    color: var(--wizard-muted);
}

.rolli-wizard-shell .rolli-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.rolli-wizard-shell .rolli-summary span {
    display: grid;
    gap: 3px;
    border: 1px solid var(--wizard-line);
    border-radius: 13px;
    background: #ffffff;
    padding: 12px 14px;
    color: var(--wizard-muted);
    font-size: 11px;
}

.rolli-wizard-shell .rolli-summary strong {
    color: var(--wizard-ink);
    font-size: 17px;
}

.rolli-step-message {
    margin: -12px 0 0;
    border-radius: 11px;
    background: #fff4df;
    padding: 10px 12px;
    color: #8a641a;
    font-size: 12px;
    font-weight: 750;
}

.rolli-step-message[data-state="ready"] {
    background: var(--wizard-mint-soft);
    color: #197568;
}

.rolli-step-message[data-state="warning"] {
    background: #fff0ee;
    color: #aa4b44;
}

.rolli-wizard-shell .rolli-planning-board {
    background: transparent;
    background-size: auto;
    box-shadow: none;
}

.rolli-wizard-shell .rolli-window-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rolli-wizard-shell .rolli-window-card,
.rolli-wizard-shell .rolli-window-card[data-window="open"],
.rolli-wizard-shell .rolli-window-card[data-window="late"] {
    border: 1px solid var(--wizard-line);
    border-top: 4px solid var(--rolli-before);
    border-left-width: 1px;
    border-radius: 16px;
    background: #ffffff;
    padding: 15px;
    box-shadow: 0 10px 24px rgba(23, 51, 66, 0.07);
}

.rolli-wizard-shell .rolli-window-card[data-window="open"] {
    border-top-color: var(--rolli-open);
}

.rolli-wizard-shell .rolli-window-card[data-window="late"] {
    border-top-color: var(--rolli-late);
}

.rolli-wizard-shell .rolli-window-heading h4 {
    color: var(--wizard-ink);
    font-size: 16px;
}

.rolli-wizard-shell .rolli-window-heading small,
.rolli-wizard-shell .rolli-planning-board .fracht-field label {
    color: var(--wizard-muted);
}

.rolli-wizard-shell .rolli-planning-board .fracht-field input,
.rolli-wizard-shell .rolli-planning-board .fracht-field select {
    border-color: rgba(23, 51, 66, 0.14);
    background: #f6f8f5;
    color: var(--wizard-ink);
}

.rolli-wizard-shell .rolli-planning-board .fracht-field select option {
    background: #ffffff;
    color: var(--wizard-ink);
}

.rolli-wizard-shell .rolli-time-pair > span {
    color: #829299;
}

.rolli-wizard-shell .rolli-window-result,
.rolli-wizard-shell [data-window="open"] .rolli-window-result,
.rolli-wizard-shell [data-window="late"] .rolli-window-result {
    background: var(--rolli-before-soft);
}

.rolli-wizard-shell [data-window="open"] .rolli-window-result {
    background: var(--rolli-open-soft);
}

.rolli-wizard-shell [data-window="late"] .rolli-window-result {
    background: var(--rolli-late-soft);
}

.rolli-wizard-shell .rolli-window-result span {
    color: var(--wizard-muted);
}

.rolli-wizard-shell .rolli-window-result strong {
    color: var(--wizard-ink);
}

.rolli-wizard-shell .rolli-deductions-card {
    border-color: var(--wizard-line);
    background: #e8efea;
}

.rolli-wizard-shell .rolli-deductions-copy h4 {
    color: var(--wizard-ink);
}

.rolli-wizard-shell .rolli-deductions-copy p {
    color: var(--wizard-muted);
}

.rolli-wizard-shell .rolli-distribution-section {
    background: transparent;
    box-shadow: none;
}

.rolli-wizard-shell .rolli-distribution-status {
    border-color: var(--wizard-line);
    background: #ffffff;
    color: var(--wizard-muted);
}

.rolli-wizard-shell .rolli-distribution-status[data-state="under"] {
    border-color: rgba(25, 169, 149, 0.28);
    background: var(--wizard-mint-soft);
    color: #177467;
}

.rolli-wizard-shell .rolli-distribution-status[data-state="over"] {
    border-color: rgba(190, 75, 67, 0.24);
    background: #fff0ee;
    color: #aa4b44;
}

.rolli-wizard-shell .rolli-plan-summary {
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
}

.rolli-wizard-shell .rolli-plan-summary span[data-phase="before"] {
    background: var(--rolli-before-soft);
}

.rolli-wizard-shell .rolli-plan-summary span[data-phase="open"] {
    background: var(--rolli-open-soft);
}

.rolli-wizard-shell .rolli-plan-summary span[data-phase="late"] {
    background: #edf1ff;
}

.rolli-wizard-shell .rolli-plan-summary span[data-phase="left"] {
    background: #fff0ee;
}

.rolli-wizard-shell .rolli-shift-heading {
    border: 1px solid var(--wizard-line);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: inset 4px 0 0 var(--rolli-before);
}

.rolli-wizard-shell .rolli-shift-heading[data-shift="open"] {
    box-shadow: inset 4px 0 0 var(--rolli-open);
}

.rolli-wizard-shell .rolli-shift-heading[data-shift="late"] {
    box-shadow: inset 4px 0 0 var(--rolli-late);
}

.rolli-wizard-shell .rolli-shift-heading h4 {
    color: var(--wizard-ink);
}

.rolli-wizard-shell .rolli-shift-heading p {
    color: var(--wizard-muted);
}

.rolli-wizard-shell .rolli-assignment-card,
.rolli-wizard-shell .rolli-assignment-card[data-shift="open"],
.rolli-wizard-shell .rolli-assignment-card[data-shift="late"] {
    border: 1px solid var(--wizard-line);
    border-left: 4px solid var(--rolli-before);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(23, 51, 66, 0.075);
}

.rolli-wizard-shell .rolli-assignment-card[data-shift="open"] {
    border-left-color: var(--rolli-open);
}

.rolli-wizard-shell .rolli-assignment-card[data-shift="late"] {
    border-left-color: var(--rolli-late);
}

.rolli-wizard-shell .rolli-assignment-heading h4,
.rolli-wizard-shell .rolli-assignment-card li strong {
    color: var(--wizard-ink);
}

.rolli-wizard-shell .rolli-assignment-heading strong,
.rolli-wizard-shell .rolli-assignment-card li span,
.rolli-wizard-shell .rolli-assignment-card .rolli-assignment-empty,
.rolli-wizard-shell .rolli-assignment-card > p {
    color: var(--wizard-muted);
}

.rolli-wizard-shell .rolli-assignment-heading > span {
    color: #168272;
}

.rolli-wizard-shell .rolli-assignment-card li {
    background: #f3f6f2;
}

.rolli-wizard-shell .rolli-assignment-card > p {
    border-color: var(--wizard-line);
}

.rolli-wizard-shell .rolli-unassigned {
    border-color: rgba(190, 75, 67, 0.22);
    background: #fff0ee;
}

.rolli-wizard-shell .rolli-unassigned h4 {
    color: #a64842;
}

.rolli-wizard-shell .rolli-unassigned > p,
.rolli-wizard-shell .rolli-unassigned li span {
    color: #836b69;
}

.rolli-wizard-shell .rolli-unassigned li {
    background: rgba(255, 255, 255, 0.7);
}

.rolli-wizard-shell .rolli-unassigned li strong {
    color: var(--wizard-ink);
}

@media (max-width: 1050px) {
    .rolli-wizard-shell .rolli-photo-panel {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .rolli-wizard-shell .rolli-photo-panel > .rolli-panel-heading,
    .rolli-wizard-shell .rolli-photo-panel > .rolli-upload-layout,
    .rolli-wizard-shell .rolli-photo-panel > .rolli-ocr-progress,
    .rolli-wizard-shell .rolli-photo-panel > .rolli-ocr-message,
    .rolli-wizard-shell .rolli-photo-panel > .rolli-wizard-actions {
        grid-column: 1;
    }

    .rolli-upload-layout:has(.rolli-photo-preview:not([hidden])) {
        grid-template-columns: 1fr;
    }

    .rolli-wizard-shell .rolli-window-grid {
        grid-template-columns: 1fr;
    }

    .rolli-wizard-shell .rolli-plan-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .rolli-wizard-shell {
        border-radius: 22px;
    }

    .rolli-wizard-header {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .rolli-wizard-reset {
        width: fit-content;
    }

    .rolli-wizard-shell .rolli-workflow-step {
        min-height: 68px;
        padding: 11px 10px;
    }

    .rolli-wizard-shell .rolli-workflow-step small {
        display: none;
    }

    .rolli-panel-heading,
    .rolli-panel-heading.has-action,
    .rolli-panel-heading.has-status,
    .rolli-wizard-shell .rolli-board-heading {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .rolli-panel-heading.has-action > :last-child,
    .rolli-panel-heading.has-status > :last-child {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .rolli-panel-number,
    .rolli-wizard-shell .rolli-board-heading > .rolli-panel-number {
        width: 44px;
        height: 44px;
    }

    .rolli-wizard-shell .rolli-assignments,
    .rolli-wizard-shell .rolli-summary,
    .rolli-wizard-shell .rolli-plan-summary {
        grid-template-columns: 1fr;
    }

    .rolli-wizard-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rolli-wizard-action-copy {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

@media (max-width: 560px) {
    .rolli-wizard-shell {
        border-radius: 18px;
    }

    .rolli-wizard-header {
        padding: 22px 18px;
    }

    .rolli-wizard-header h2 {
        font-size: 29px;
    }

    .rolli-wizard-reset {
        width: 100%;
    }

    .rolli-wizard-shell .rolli-workflow {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .rolli-wizard-shell .rolli-workflow-step {
        min-height: 66px;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        padding: 8px 3px;
        text-align: center;
    }

    .rolli-wizard-shell .rolli-workflow-step > strong {
        font-size: 16px;
    }

    .rolli-wizard-shell .rolli-workflow-step b {
        font-size: 10px;
    }

    .rolli-wizard-shell .rolli-workflow-step::after {
        right: 7px;
        left: 7px;
    }

    .rolli-wizard-stage,
    .rolli-wizard-shell .rolli-wizard-panel {
        min-height: 470px;
    }

    .rolli-wizard-shell .rolli-wizard-panel {
        gap: 19px;
        padding: 20px 15px;
    }

    .rolli-upload-card {
        min-height: 220px;
        padding: 22px 15px;
    }

    .rolli-wizard-actions {
        grid-template-columns: 1fr;
    }

    .rolli-wizard-action-copy,
    .rolli-wizard-button,
    .rolli-wizard-shell #rolli-read-photo {
        width: 100%;
        grid-column: auto;
    }

    .rolli-wizard-action-copy {
        grid-row: auto;
        order: -1;
    }

    .rolli-wizard-shell .rolli-table-wrap {
        padding: 7px;
    }

    .rolli-wizard-shell .rolli-table tr {
        border-color: var(--wizard-line);
        background: #ffffff;
    }

    .rolli-wizard-shell .rolli-table td::before {
        color: var(--wizard-muted);
    }

    .rolli-wizard-shell .rolli-table td,
    .rolli-wizard-shell .rolli-table td:nth-child(1),
    .rolli-wizard-shell .rolli-table td:nth-child(2),
    .rolli-wizard-shell .rolli-table td:nth-child(3),
    .rolli-wizard-shell .rolli-table td:last-child {
        width: 100% !important;
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .rolli-wizard-shell .rolli-table td:nth-child(3) {
        white-space: nowrap;
    }

    .rolli-shift-deduction-fields,
    .rolli-reserve-field {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FEEDBACK & ANKÜNDIGUNGEN: MOBILE
======================================== */

@media (max-width: 820px) {
    .feedback-page {
        width: 100%;
        gap: 14px;
    }

    .feedback-page-header {
        min-height: auto;
        padding: 22px 18px;
    }

    .feedback-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feedback-form-card {
        position: static;
    }

    .feedback-form-card,
    .feedback-list-section {
        padding: 18px;
    }

    .feedback-entry-topline,
    .feedback-entry footer {
        flex-wrap: wrap;
    }

    .feedback-open-ticket {
        min-height: 48px;
        gap: 10px;
    }

    .feedback-open-ticket span {
        text-align: right;
    }

    .dashboard-announcement-admin {
        padding: 18px;
    }

    .dashboard-announcement-form input,
    .dashboard-announcement-form textarea,
    .feedback-form select,
    .feedback-form textarea,
    .feedback-reply-form textarea,
    .feedback-status-form select {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .feedback-page-header {
        flex-direction: column;
        gap: 11px;
        text-align: center;
    }

    .feedback-page-header h1 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .feedback-page-header p {
        margin-top: 4px;
    }

    .feedback-list-heading {
        align-items: flex-start;
    }

    .feedback-list-heading h2 {
        font-size: 18px;
    }

    .feedback-entry {
        gap: 10px;
        padding: 16px 0;
    }

    .feedback-ticket-dialog {
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        margin: 0;
        border: 0;
        border-radius: 0;
    }

    .feedback-ticket-modal {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        grid-template-rows: auto auto auto minmax(0, 1fr);
        border-radius: 0;
    }

    .feedback-modal-header {
        align-items: flex-start;
        padding: max(16px, env(safe-area-inset-top)) 16px 14px;
    }

    .feedback-modal-header h2 {
        font-size: 17px;
        line-height: 1.25;
    }

    .feedback-modal-close {
        width: 44px;
        min-height: 44px;
    }

    .feedback-ticket-summary {
        max-height: 124px;
        overflow-y: auto;
        padding: 12px 16px;
    }

    .feedback-modal-admin {
        align-items: stretch;
        padding: 11px 16px;
        flex-direction: column;
    }

    .feedback-modal-admin form,
    .feedback-modal-admin label,
    .feedback-modal-admin select,
    .feedback-modal-admin .feedback-delete-button {
        width: 100%;
    }

    .feedback-modal-admin select,
    .feedback-modal-admin .feedback-delete-button {
        min-height: 44px;
    }

    .feedback-chat {
        min-height: 0;
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: 9px;
        padding: 13px 12px max(12px, env(safe-area-inset-bottom));
    }

    .feedback-chat-heading p {
        display: none;
    }

    .feedback-chat-messages {
        min-height: 0;
        max-height: none;
        padding: 10px;
    }

    .feedback-chat-message {
        width: 94%;
        padding: 9px 10px;
    }

    .feedback-reply-form {
        grid-template-columns: 1fr auto;
        align-items: stretch;
        gap: 7px;
    }

    .feedback-reply-form textarea {
        min-height: 50px;
        max-height: 112px;
    }

    .feedback-reply-form button {
        width: auto;
        min-width: 76px;
        min-height: 50px;
        padding: 0 13px;
    }

    .feedback-live-notifications {
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        width: calc(100% - 20px);
    }

    .dashboard-ticket-notifications {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        max-height: none;
        margin: 14px auto 0;
    }

    .dashboard-ticket-notification-list {
        grid-template-columns: 1fr;
        max-height: 430px;
        gap: 8px;
        padding: 10px;
    }

    .dashboard-ticket-notifications-heading {
        min-height: 68px;
        align-items: flex-start;
        padding: 12px;
    }

    .dashboard-ticket-notifications-title {
        align-items: flex-start;
        gap: 10px;
    }

    .dashboard-ticket-notifications-title-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .dashboard-ticket-notifications-title small {
        max-width: 210px;
        font-size: 11px;
    }

    .dashboard-ticket-notification-count {
        margin-top: 3px;
        padding: 5px 8px;
        white-space: nowrap;
    }

    .dashboard-notification-empty {
        min-height: 116px;
        justify-content: flex-start;
        padding: 20px 14px;
    }

    .dashboard-inline-announcement {
        grid-template-columns: 40px minmax(0, 1fr) 44px;
        gap: 10px;
        margin: 10px 10px 0;
        padding: 10px;
    }

    .dashboard-inline-announcement-icon {
        width: 40px;
        height: 40px;
    }

    .dashboard-inline-announcement-close {
        width: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .dashboard-ticket-notification-close {
        width: 44px;
        min-width: 44px;
        min-height: 44px;
        margin: 7px 6px 0 0;
    }

    .dashboard-ticket-popup {
        width: calc(100% - 20px);
        border-radius: 13px;
    }

    .dashboard-ticket-popup-copy {
        min-height: 76px;
        padding: 11px 58px 11px 12px;
    }

    .dashboard-ticket-popup-close {
        top: 8px;
        right: 8px;
        width: 44px !important;
        min-width: 44px;
        min-height: 44px;
    }

    .dashboard-announcement-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-announcement-form-footer button {
        width: 100%;
        min-height: 48px;
    }

    .dashboard-announcement-notice {
        top: max(10px, env(safe-area-inset-top));
        width: calc(100% - 20px);
    }

    #pause-request-notice:not([hidden]) ~ .dashboard-announcement-notice {
        top: max(82px, calc(env(safe-area-inset-top) + 82px));
    }

    .dashboard-announcement-copy {
        min-height: 72px;
        padding: 11px 60px 11px 12px;
    }

    .dashboard-announcement-close {
        width: 44px !important;
        min-width: 44px;
        min-height: 44px;
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 390px) {
    .feedback-form-card,
    .feedback-list-section {
        padding: 15px;
    }

    .feedback-category,
    .feedback-status {
        font-size: 11px;
    }

    .feedback-open-ticket {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 9px 12px;
    }

    .feedback-open-ticket span {
        text-align: left;
    }

    .feedback-reply-form {
        grid-template-columns: 1fr;
    }

    .feedback-reply-form button {
        width: 100%;
    }

    .dashboard-ticket-notifications-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-ticket-notification-count {
        width: fit-content;
        margin: 0 0 0 50px;
    }

    .dashboard-announcement-admin-heading {
        gap: 10px;
    }

    .dashboard-announcement-admin-heading > span {
        width: 38px;
        height: 38px;
    }
}
