:root {
    --bg: #eef2f5;
    --surface: #ffffff;
    --surface-strong: #f8fafc;
    --ink: #101820;
    --muted: #657383;
    --line: #d6dee7;
    --line-strong: #aab6c2;
    --brand: #d4212c;
    --brand-dark: #921822;
    --nav: #101820;
    --nav-soft: #1b2836;
    --focus: #2364aa;
    --ok: #15835b;
    --warn: #b97800;
    --shadow: 0 14px 32px rgba(16, 24, 32, 0.10);
    --shadow-soft: 0 6px 18px rgba(16, 24, 32, 0.08);
}

/* Modern administration shell */
.admin-body {
    background: #f5f7f9;
}

.admin-app-shell {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar-toggle {
    height: 1px;
    left: -100vw;
    opacity: 0;
    position: fixed;
    width: 1px;
}

.admin-sidebar {
    background:
        radial-gradient(circle at 20% 0%, rgba(212, 33, 44, 0.2), transparent 30%),
        linear-gradient(180deg, #111a23 0%, #0c141d 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    color: #eef4fb;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100vh;
    left: 0;
    padding: 24px 14px 18px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-brand {
    align-items: center;
    color: #fff;
    display: flex;
    gap: 12px;
    padding: 0 8px 10px;
}

.admin-brand:hover {
    color: #fff;
}

.admin-brand-mark {
    align-items: center;
    background: linear-gradient(135deg, #ed2532, #b91522);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(212, 33, 44, 0.32);
    display: inline-flex;
    font-size: 22px;
    font-weight: 950;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.admin-brand strong,
.admin-brand small {
    display: block;
    letter-spacing: .06em;
}

.admin-brand strong {
    font-size: 14px;
    line-height: 1.1;
}

.admin-brand small {
    color: #aab7c5;
    font-size: 11px;
    font-weight: 900;
}

.admin-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    scrollbar-width: thin;
}

.admin-nav-group {
    color: #7f8ea0;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    margin: 16px 10px 7px;
    text-transform: uppercase;
}

.admin-nav-link {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #d7e0ea;
    display: flex;
    font-size: 14px;
    font-weight: 850;
    gap: 12px;
    min-height: 46px;
    padding: 11px 12px;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.admin-nav-link.active {
    background: linear-gradient(135deg, #e42330, #c81927);
    box-shadow: 0 14px 28px rgba(212, 33, 44, 0.28);
    color: #fff;
}

.admin-icon,
.dashboard-icon {
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
}

.admin-user-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    color: #fff;
    padding: 8px;
}

.admin-user-card summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: 44px minmax(0, 1fr);
    list-style: none;
}

.admin-user-card summary::-webkit-details-marker {
    display: none;
}

.admin-avatar {
    align-items: center;
    background: linear-gradient(135deg, #d4212c, #6f1520);
    border-radius: 999px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 950;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.admin-user-card strong,
.admin-user-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-card small {
    color: #aab7c5;
    font-size: 12px;
    font-weight: 750;
}

.admin-user-menu {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
}

.admin-user-menu a {
    border-radius: 8px;
    color: #dce5ef;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 10px;
}

.admin-user-menu a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #e4e7ec;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px 28px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.admin-topbar-left,
.admin-topbar-actions,
.admin-breadcrumb,
.admin-search,
.admin-logout-button,
.admin-notification {
    align-items: center;
    display: flex;
}

.admin-topbar-left {
    gap: 14px;
    min-width: 0;
}

.admin-menu-button {
    align-items: center;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    color: #334155;
    cursor: pointer;
    display: none;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.admin-breadcrumb {
    color: #667085;
    font-size: 13px;
    font-weight: 850;
    gap: 9px;
    min-width: 0;
}

.admin-breadcrumb a {
    color: #111827;
}

.admin-breadcrumb strong {
    color: #667085;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-topbar-actions {
    gap: 10px;
}

.admin-search {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    color: #98a2b3;
    gap: 9px;
    min-height: 42px;
    padding: 0 11px;
    width: min(280px, 30vw);
}

.admin-search input {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-height: 38px;
    padding: 0;
}

.admin-search kbd {
    background: #f2f4f7;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 6px;
    white-space: nowrap;
}

.admin-notification,
.admin-logout-button {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    box-shadow: none;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
}

.admin-notification {
    justify-content: center;
    padding: 0;
    width: 42px;
}

.admin-content-shell {
    max-width: 1680px;
    padding: 24px 28px 28px;
}

.admin-footer {
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1680px;
    padding: 0 28px 26px;
}

button,
.button {
    border: 1px solid var(--brand);
    border-radius: 10px;
    min-height: 42px;
    padding: 9px 15px;
}

button.secondary,
.button.secondary {
    background: #fff;
    border-color: #d0d5dd;
    box-shadow: none;
    color: #344054;
}

button.danger,
.button.danger {
    background: #fff;
    border-color: rgba(212, 33, 44, 0.32);
    box-shadow: none;
    color: #b42318;
}

button.ghost,
.button.ghost {
    background: #f8fafc;
    border-color: #e4e7ec;
    box-shadow: none;
    color: #344054;
}

button.compact,
.button.compact {
    font-size: 13px;
    min-height: 36px;
    padding: 7px 12px;
}

.panel {
    border-color: rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}

.dashboard-hero {
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.12), transparent 22%),
        linear-gradient(135deg, rgba(10, 18, 28, .98), rgba(18, 34, 50, .96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 42px rgba(16, 24, 40, 0.16);
    grid-template-columns: minmax(0, 1fr) 168px;
    margin-bottom: 18px;
    min-height: 164px;
    padding: 32px 40px;
}

.dashboard-hero::after {
    display: none;
}

.dashboard-hero .eyebrow {
    background: rgba(212, 33, 44, 0.18);
    border-color: rgba(212, 33, 44, 0.28);
    color: #ffb4ba;
    margin-bottom: 12px;
}

.dashboard-hero h1 {
    font-size: clamp(28px, 3vw, 38px);
    margin-bottom: 8px;
}

.hero-date-card {
    border-radius: 12px;
    min-height: 116px;
}

.hero-date-card .dashboard-icon {
    color: #cbd5e1;
    height: 28px;
    margin-bottom: 4px;
    width: 28px;
}

.hero-date-card strong {
    font-size: 34px;
}

.dashboard-kpi-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.dashboard-kpi-card {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
    display: grid;
    gap: 18px;
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 134px;
    padding: 22px 24px;
}

.dashboard-kpi-icon,
.dashboard-warning-icon,
.quick-action-tile span {
    align-items: center;
    border-radius: 14px;
    display: inline-flex;
    justify-content: center;
}

.dashboard-kpi-icon {
    height: 54px;
    width: 54px;
}

.dashboard-kpi-card span,
.handover-status-card span {
    color: #536174;
    display: block;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dashboard-kpi-card strong {
    color: #111827;
    display: block;
    font-size: 32px;
    line-height: 1;
    margin: 8px 0 5px;
}

.dashboard-kpi-card small,
.handover-status-card small {
    color: #667085;
    font-size: 13px;
    font-weight: 750;
}

.tone-red .dashboard-kpi-icon,
.tone-red.quick-action-tile span {
    background: rgba(212, 33, 44, 0.11);
    color: #d4212c;
}

.tone-blue .dashboard-kpi-icon,
.tone-blue.quick-action-tile span {
    background: rgba(20, 124, 209, 0.11);
    color: #147cd1;
}

.tone-green .dashboard-kpi-icon,
.tone-green.quick-action-tile span {
    background: rgba(23, 178, 106, 0.12);
    color: #17b26a;
}

.tone-orange .dashboard-kpi-icon,
.tone-orange.quick-action-tile span {
    background: rgba(247, 144, 9, 0.13);
    color: #f79009;
}

.dashboard-main-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 390px;
    margin-top: 4px;
}

.dashboard-main-grid:not(:has(.dashboard-side-column)) {
    grid-template-columns: 1fr;
}

.dashboard-primary-column,
.dashboard-side-column {
    display: grid;
    gap: 18px;
}

.dashboard-side-column {
    align-content: start;
}

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

.dashboard-card-section {
    padding: 20px;
}

.section-head {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-head h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.section-head p {
    margin: 0;
}

.status-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 950;
    min-height: 28px;
    padding: 5px 10px;
    white-space: nowrap;
}

.status-pill.ok {
    background: #dcfce7;
    color: #166534;
}

.status-pill.warn {
    background: #fff7ed;
    color: #b54708;
}

.handover-status-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 16px 0;
}

.handover-status-card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 16px;
}

.handover-status-card strong {
    color: #111827;
    display: block;
    font-size: 29px;
    line-height: 1;
    margin: 7px 0 5px;
}

.handover-status-card.tone-red {
    background: linear-gradient(180deg, #fff, #fff6f7);
    border-color: rgba(212, 33, 44, 0.2);
}

.handover-status-card.tone-green {
    background: linear-gradient(180deg, #fff, #f3fff8);
    border-color: rgba(23, 178, 106, 0.2);
}

.handover-status-card.tone-orange {
    background: linear-gradient(180deg, #fff, #fffbf3);
    border-color: rgba(247, 144, 9, 0.22);
}

.handover-status-card.tone-blue {
    background: linear-gradient(180deg, #fff, #f4f9ff);
    border-color: rgba(20, 124, 209, 0.2);
}

.handover-checkins {
    align-items: center;
    color: #667085;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 850;
    gap: 8px;
    margin: 0 0 14px;
}

.handover-point-list {
    border: 1px solid #edf0f5;
    border-radius: 14px;
    overflow: hidden;
}

.handover-point-row {
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid #edf0f5;
    display: grid;
    gap: 12px;
    grid-template-columns: 14px minmax(0, 1fr);
    padding: 14px 16px;
}

.handover-point-row:last-child {
    border-bottom: 0;
}

.handover-dot {
    background: #d4212c;
    border-radius: 999px;
    height: 9px;
    margin-top: 7px;
    width: 9px;
}

.handover-point-row.priority-kritisch .handover-dot,
.handover-point-row.priority-hoch .handover-dot {
    background: #d4212c;
}

.handover-point-main {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.handover-point-main strong {
    color: #111827;
    display: block;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.handover-point-main p,
.handover-point-main small {
    color: #667085;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin: 3px 0 0;
    overflow-wrap: anywhere;
}

.handover-row-time {
    align-items: center;
    color: #667085;
    display: flex;
    font-size: 12px;
    font-weight: 850;
    gap: 6px;
    white-space: nowrap;
}

.handover-row-time .dashboard-icon {
    height: 16px;
    width: 16px;
}

.handover-actions {
    justify-content: flex-end;
}

.handover-takeover-form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 14px;
}

.handover-inline-form {
    display: flex;
    margin-top: 12px;
}

.dashboard-warning-card {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    display: grid;
    gap: 14px;
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 16px 18px;
}

.dashboard-warning-card.compact {
    margin-top: 14px;
}

.dashboard-warning-icon {
    background: rgba(247, 144, 9, 0.15);
    color: #b54708;
    height: 46px;
    width: 46px;
}

.dashboard-warning-card h2,
.dashboard-warning-card h3,
.dashboard-warning-card p {
    margin: 0;
}

.dashboard-warning-card p {
    color: #7a4b12;
    font-weight: 750;
}

.today-shifts-modern {
    display: grid;
    gap: 10px;
}

.today-shift-row {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 10px 12px;
}

.shift-avatar {
    align-items: center;
    background: var(--person-color);
    border-radius: 12px;
    color: #101820;
    display: inline-flex;
    font-weight: 950;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.today-shift-row strong,
.today-shift-row span {
    display: block;
}

.today-shift-row strong {
    color: #111827;
    font-size: 14px;
}

.today-shift-row div span,
.today-shift-row small {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

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

.quick-action-tile {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    color: #111827;
    display: grid;
    gap: 10px;
    justify-items: start;
    min-height: 108px;
    padding: 16px;
}

.quick-action-tile:hover {
    background: #fff;
    box-shadow: 0 14px 26px rgba(16, 24, 40, 0.07);
    color: #111827;
}

.quick-action-tile span {
    height: 42px;
    width: 42px;
}

.quick-action-tile strong {
    font-size: 14px;
}

.dashboard-side-card {
    padding: 18px;
}

.activity-mini-list,
.system-info-list {
    display: grid;
    gap: 10px;
}

.activity-mini-item {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
}

.activity-mini-item > span {
    align-items: center;
    background: #e0f2fe;
    border-radius: 11px;
    color: #075985;
    display: inline-flex;
    font-size: 11px;
    font-weight: 950;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.activity-mini-item strong,
.activity-mini-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-mini-item strong {
    color: #111827;
    font-size: 13px;
}

.activity-mini-item small,
.activity-mini-item time {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.system-info-list > div {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    min-height: 34px;
}

.system-info-list span {
    align-items: center;
    color: #667085;
    display: flex;
    font-size: 13px;
    font-weight: 850;
    gap: 9px;
}

.system-info-list .dashboard-icon {
    color: #64748b;
    height: 17px;
    width: 17px;
}

.system-info-list strong {
    color: #111827;
    font-size: 13px;
    text-align: right;
}

.api-ready-card {
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    margin-top: 16px;
    padding: 14px;
}

.api-ready-card strong {
    display: block;
    margin-bottom: 4px;
}

.api-ready-card p {
    color: #667085;
    font-size: 13px;
    margin: 0;
}

.admin-log-board {
    border-radius: 16px;
    margin-top: 18px;
}

.admin-log-board-head {
    background: #fff;
    color: #111827;
}

.admin-log-board-head .eyebrow {
    color: #d4212c;
}

.admin-log-board-head h2 {
    color: #111827;
}

.admin-log-board-head .muted {
    color: #667085;
}

.admin-log-kpis span {
    background: #f8fafc;
    border-color: #e4e7ec;
    color: #667085;
}

.admin-log-kpis strong {
    color: #111827;
}

.admin-log-tabs {
    border-bottom: 1px solid #e4e7ec;
    display: flex;
    gap: 6px;
    padding: 0 22px;
}

.admin-log-tabs a {
    border-bottom: 3px solid transparent;
    color: #667085;
    font-size: 13px;
    font-weight: 900;
    padding: 12px 4px 10px;
}

.admin-log-tabs a.active,
.admin-log-tabs a:hover {
    border-bottom-color: #d4212c;
    color: #d4212c;
}

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

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

@media (max-width: 980px) {
    .admin-app-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        height: 100vh;
        position: fixed;
        transform: translateX(-100%);
        transition: transform .22s ease;
        width: 270px;
    }

    .admin-sidebar-toggle:checked ~ .admin-app-shell .admin-sidebar {
        transform: translateX(0);
    }

    .admin-sidebar-toggle:checked ~ .admin-app-shell::before {
        background: rgba(15, 23, 42, .44);
        content: "";
        inset: 0;
        position: fixed;
        z-index: 40;
    }

    .admin-menu-button {
        display: inline-flex;
    }

    .admin-search {
        display: none;
    }

    .admin-content-shell {
        padding: 20px 16px;
    }

    .admin-topbar {
        padding: 12px 16px;
    }
}

@media (max-width: 720px) {
    .dashboard-hero,
    .dashboard-kpi-grid,
    .dashboard-lower-grid,
    .handover-status-grid,
    .handover-point-main,
    .handover-takeover-form {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        padding: 24px;
    }

    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .handover-row-time,
    .handover-actions {
        justify-content: flex-start;
    }

    .admin-logout-button span,
    .admin-notification {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    .admin-body,
    html {
        background: #0b0c0f;
    }

    .admin-body {
        color: #f3f6fa;
    }

    .admin-topbar,
    .panel,
    .dashboard-kpi-card,
    .handover-status-card,
    .handover-point-row,
    .admin-log-board,
    .admin-log-board-head {
        background: #17191e;
        border-color: #34363d;
        color: #f3f6fa;
    }

    .admin-breadcrumb a,
    .admin-breadcrumb strong,
    .dashboard-kpi-card strong,
    .handover-status-card strong,
    .handover-point-main strong,
    .today-shift-row strong,
    .activity-mini-item strong,
    .system-info-list strong,
    .admin-log-board-head h2 {
        color: #f8fafc;
    }

    .admin-topbar,
    .admin-search,
    .admin-notification,
    .admin-logout-button,
    .admin-menu-button,
    button.secondary,
    .button.secondary,
    button.ghost,
    .button.ghost,
    .today-shift-row,
    .quick-action-tile,
    .api-ready-card,
    .log-item,
    .empty-log-state {
        background: #1f2229;
        border-color: #34363d;
        color: #f3f6fa;
    }

    .admin-search input {
        color: #f3f6fa;
    }

    .admin-search kbd,
    .admin-log-kpis span,
    .admin-log-tabs {
        background: #17191e;
        border-color: #34363d;
    }

    .muted,
    .dashboard-kpi-card small,
    .handover-status-card small,
    .handover-point-main p,
    .handover-point-main small,
    .today-shift-row div span,
    .today-shift-row small,
    .activity-mini-item small,
    .activity-mini-item time,
    .system-info-list span,
    .api-ready-card p,
    .admin-log-board-head .muted {
        color: #a4adba;
    }
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #f8fafc 0, var(--bg) 330px),
        var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: var(--brand);
    text-decoration: none;
}

.topbar {
    align-items: center;
    background: var(--nav);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 34px rgba(16, 24, 32, 0.18);
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 17px;
    font-weight: 900;
    gap: 10px;
    letter-spacing: 0;
}

.brand::before {
    background:
        linear-gradient(var(--brand), var(--brand)) 0 0 / 18px 18px no-repeat,
        linear-gradient(#ffffff, #ffffff) 24px 0 / 18px 18px no-repeat,
        linear-gradient(#8896a5, #8896a5) 48px 0 / 18px 18px no-repeat;
    border-radius: 4px;
    content: "";
    display: inline-block;
    height: 18px;
    width: 66px;
}

.topbar nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.topbar nav a {
    border: 1px solid transparent;
    border-radius: 7px;
    color: #d9e2ec;
    font-size: 14px;
    font-weight: 750;
    padding: 9px 11px;
}

.topbar nav a.active,
.topbar nav a:hover {
    background: var(--nav-soft);
    border-color: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.shell {
    margin: 0 auto;
    max-width: 1320px;
    padding: 34px 28px 46px;
}

.narrow {
    max-width: 620px;
}

.panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(214, 222, 231, 0.86);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

.radlader-form-hero {
    align-items: center;
    background: linear-gradient(135deg, #101923 0%, #172433 100%);
    border-radius: 20px;
    box-shadow: 0 24px 50px rgba(10, 18, 28, 0.18);
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 12px 0 20px;
    min-height: 220px;
    overflow: hidden;
    padding: 28px;
}

.radlader-form-hero span {
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 999px;
    color: #fed7aa;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 7px 12px;
    text-transform: uppercase;
}

.radlader-form-hero h2 {
    color: #fff;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 0.95;
    margin: 16px 0 10px;
}

.radlader-form-hero p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 17px;
    font-weight: 750;
    max-width: 520px;
}

.radlader-form-hero img {
    max-height: 190px;
    max-width: 48%;
    object-fit: contain;
}

.grid {
    display: grid;
    gap: 18px;
}

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

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

.grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
    position: relative;
}

.metric::after {
    background: var(--brand);
    border-radius: 999px;
    content: "";
    height: 7px;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 34px;
}

.metric span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.metric strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    margin-top: 12px;
}

.dashboard-hero {
    align-items: stretch;
    background:
        linear-gradient(135deg, rgba(16, 24, 32, 0.94), rgba(42, 55, 69, 0.92)),
        var(--nav);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: #fff;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 180px;
    margin-bottom: 18px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.dashboard-hero::after {
    background: var(--brand);
    bottom: 0;
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
}

.dashboard-hero .eyebrow {
    color: #f3b3b8;
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.dashboard-hero h1 {
    color: #fff;
    font-size: clamp(28px, 4vw, 46px);
    margin-bottom: 10px;
    max-width: 760px;
}

.dashboard-hero p {
    color: #dce5ee;
    font-size: 16px;
    margin: 0;
}

.hero-date-card {
    align-items: center;
    align-self: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    display: grid;
    justify-items: center;
    min-height: 148px;
    padding: 18px;
}

.hero-date-card span,
.hero-date-card small {
    color: #dce5ee;
    font-weight: 800;
}

.hero-date-card strong {
    color: #fff;
    font-size: 42px;
    line-height: 1;
}

.dashboard-metrics {
    margin-bottom: 18px;
}

.today-shifts {
    display: grid;
    gap: 10px;
}

.today-shift {
    align-items: center;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 10px;
}

.admin-only-panel {
    border-color: rgba(212, 33, 44, 0.24);
}

.admin-log-board {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(214, 222, 231, 0.86);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    margin-top: 18px;
    overflow: hidden;
}

.admin-log-board-head {
    align-items: flex-start;
    background:
        linear-gradient(135deg, rgba(16, 24, 32, 0.96), rgba(48, 62, 78, 0.94)),
        var(--nav);
    color: #ffffff;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 22px 24px;
}

.admin-log-board-head .eyebrow {
    color: #f3b3b8;
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.admin-log-board-head h2 {
    color: #ffffff;
    margin-bottom: 6px;
}

.admin-log-board-head .muted {
    color: #dce5ee;
    margin: 0;
}

.admin-log-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-log-kpis span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #e8eef5;
    font-size: 12px;
    font-weight: 850;
    padding: 8px 11px;
}

.admin-log-kpis strong {
    color: #ffffff;
}

.admin-log-grid {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-log-panel {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border-right: 1px solid var(--line);
    min-width: 0;
    padding: 20px;
}

.admin-log-panel:last-child {
    border-right: 0;
}

.admin-log-panel-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.admin-log-panel-head h3 {
    font-size: 18px;
    margin: 0;
}

.admin-log-count {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    min-width: 30px;
    padding: 4px 9px;
}

.admin-log-count.danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.log-list {
    display: grid;
    gap: 10px;
    max-height: 540px;
    overflow: auto;
    padding: 2px 4px 2px 0;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

.log-item {
    align-items: start;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 12px;
    position: relative;
}

.log-item::before {
    background: #94a3b8;
    border-radius: 999px;
    bottom: 12px;
    content: "";
    left: 0;
    position: absolute;
    top: 12px;
    width: 4px;
}

.log-item-icon {
    align-items: center;
    background: #e0f2fe;
    border-radius: 10px;
    color: #075985;
    display: inline-flex;
    font-size: 11px;
    font-weight: 950;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.log-action-login::before {
    background: #22c55e;
}

.log-action-login .log-item-icon {
    background: #dcfce7;
    color: #166534;
}

.log-action-login_failed {
    background: #fff7ed;
    border-color: #fed7aa;
}

.log-action-login_failed::before {
    background: #f97316;
}

.log-action-login_failed .log-item-icon {
    background: #fee2e2;
    color: #991b1b;
}

.log-item-main {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.log-item-title {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
}

.log-item strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-item time {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.log-person-line,
.log-meta-line {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.log-person-line span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.log-person-line span + span::before {
    color: #b6c2cf;
    content: "•";
    margin-right: 6px;
}

.log-chip {
    background: rgba(226, 232, 240, 0.72);
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: 11px;
    font-weight: 850;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 4px 8px;
}

.log-chip.danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.error-log-item {
    background: #fff7f7;
    border-color: #fecaca;
}

.error-log-item::before {
    background: #dc2626;
}

.error-log-item .log-item-icon {
    background: #dc2626;
    color: #ffffff;
    font-size: 10px;
}

.log-error-message {
    color: #5f6f82;
    font-size: 12px;
    font-weight: 750;
    margin: 0;
    overflow-wrap: anywhere;
}

.empty-log-state {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    font-weight: 850;
    min-height: 88px;
    padding: 16px;
}

.empty-log-state.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

@media (max-width: 1120px) {
    .admin-log-grid {
        grid-template-columns: 1fr;
    }

    .admin-log-panel {
        border-bottom: 1px solid var(--line);
        border-right: 0;
    }

    .admin-log-panel:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 720px) {
    .admin-log-board-head,
    .log-item-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-log-kpis {
        justify-content: flex-start;
    }
}

h1,
h2,
h3 {
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0 0 16px;
}

h1 {
    font-size: 34px;
}

h2 {
    font-size: 21px;
}

h3 {
    font-size: 17px;
}

p {
    margin: 0 0 14px;
}

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

form {
    display: grid;
    gap: 14px;
}

label {
    color: #1f2d3a;
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 850;
}

input,
select,
textarea {
    background: #fbfcfd;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    font: inherit;
    min-height: 44px;
    outline: none;
    padding: 10px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    background: #fff;
    border-color: var(--focus);
    box-shadow: 0 0 0 4px rgba(35, 100, 170, 0.14);
}

input[type="color"] {
    min-height: 44px;
    padding: 5px;
}

textarea {
    min-height: 104px;
    resize: vertical;
}

.checkline {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 7px;
    display: grid;
    gap: 10px;
    grid-template-columns: 22px 1fr;
    padding: 10px 12px;
}

.checkline input {
    min-height: auto;
    width: auto;
}

.schieber-map .map-stage {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 90px minmax(180px, 0.6fr);
    min-height: 360px;
    padding: 22px;
    position: relative;
}

.schieber-map .hall {
    align-content: center;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 48%;
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 22px;
    position: relative;
    z-index: 2;
}

.schieber-map .hall::before,
.schieber-map .hall::after {
    background: var(--line-strong);
    content: "";
    height: 12px;
    left: 10%;
    position: absolute;
    right: 10%;
}

.schieber-map .hall::before {
    top: 34%;
}

.schieber-map .hall::after {
    bottom: 28%;
}

.schieber-map .hall-2 {
    grid-column: 1 / 3;
}

.schieber-map .hall-1 {
    grid-column: 1 / 3;
}

.schieber-map .hall strong {
    font-size: 22px;
}

.schieber-map .hall span {
    background: rgba(212, 33, 44, 0.09);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 850;
    padding: 6px 8px;
    width: max-content;
}

.schieber-map .vertical-line {
    background: var(--ink);
    grid-column: 2;
    grid-row: 1 / 3;
    justify-self: center;
    width: 7px;
    z-index: 1;
}

.schieber-map .mill-box {
    align-self: end;
    background: #fff;
    border: 3px solid var(--ink);
    font-size: 20px;
    font-weight: 900;
    grid-column: 3;
    grid-row: 2;
    padding: 28px;
}

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

button,
.button {
    align-items: center;
    background: var(--brand);
    border: 0;
    border-radius: 7px;
    box-shadow: 0 8px 18px rgba(212, 33, 44, 0.18);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 850;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
}

.button.danger,
button.danger {
    border-color: rgba(212, 33, 44, 0.28);
    color: var(--brand);
}

.signature-field {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 12px 0;
    padding: 14px;
}

.signature-field > label {
    color: var(--ink);
    display: block;
    font-weight: 900;
    margin-bottom: 8px;
}

.signature-pad {
    background:
        linear-gradient(transparent 30px, rgba(101, 115, 131, .14) 31px),
        #fff;
    background-size: 100% 32px;
    border: 2px dashed var(--line-strong);
    border-radius: 8px;
    cursor: crosshair;
    display: block;
    height: 190px;
    touch-action: none;
    width: 100%;
}

.signature-disabled {
    opacity: .52;
}

.signature-disabled .signature-pad {
    cursor: not-allowed;
}

button:hover,
.button:hover {
    filter: brightness(0.96);
}

button.secondary,
.button.secondary {
    background: #273442;
    box-shadow: 0 8px 18px rgba(39, 52, 66, 0.15);
}

button.danger,
.button.danger {
    background: var(--brand-dark);
}

button.ghost,
.button.ghost {
    background: #eef3f7;
    box-shadow: none;
    color: var(--ink);
}

table {
    background: var(--surface);
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 11px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f1f5f9;
    color: #465667;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
}

.badge.offen {
    background: #dcfce7;
    color: #166534;
}

.badge.zu {
    background: #fef3c7;
    color: #92400e;
}

.badge.defekt {
    background: #fee2e2;
    color: #991b1b;
}

.badge.tankliste {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge.frueh,
.badge.frueh_1,
.badge.frueh_2 {
    background: #dceeff;
    color: #1a4d78;
}

.badge.tag {
    background: #e7f6ea;
    color: #146c43;
}

.badge.spaet,
.badge.spaet_1,
.badge.spaet_2 {
    background: #ffe7d6;
    color: #8d3a0c;
}

.badge.nacht,
.badge.nacht_1,
.badge.nacht_2 {
    background: #ebe7ff;
    color: #45348d;
}

.badge.frei,
.badge.ruhe_1,
.badge.ruhe_2,
.badge.urlaub {
    background: #fff4bf;
    color: #7a5400;
}

.calendar {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.day {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    min-height: 130px;
    padding: 10px;
}

.day strong {
    display: block;
    margin-bottom: 8px;
}

.assignment {
    border-left: 4px solid var(--brand);
    font-size: 13px;
    margin-top: 7px;
    padding-left: 8px;
}

.color-chip {
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 4px;
    display: inline-block;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    width: 32px;
}

.sticky-tools {
    backdrop-filter: blur(16px);
    position: sticky;
    top: 82px;
    z-index: 5;
}

.legend {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.person-chip,
.person-card {
    background: var(--person-color);
    color: #101820;
}

.person-chip {
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 7px;
    box-shadow: var(--shadow-soft);
    font-weight: 900;
    padding: 7px 11px;
}

.conti-wrap {
    display: grid;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.conti-table {
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 1120px;
    table-layout: fixed;
}

.conti-table th,
.conti-table td {
    border-bottom: 1px solid var(--line-strong);
    border-right: 1px solid var(--line-strong);
    padding: 5px;
}

.conti-table th:last-child,
.conti-table td:last-child {
    border-right: 0;
}

.conti-table thead th {
    background: #ffffff;
    color: #111820;
    height: 58px;
    text-align: center;
    text-transform: none;
}

.conti-table thead th span,
.conti-table thead th strong,
.conti-table thead th small {
    display: block;
}

.conti-table thead th strong {
    font-size: 14px;
}

.conti-table thead th small {
    color: var(--brand);
    font-size: 11px;
    line-height: 1.05;
}

.conti-table .kw {
    background: #f8fafc;
    color: var(--brand);
    width: 180px;
}

.conti-table .kw span {
    font-size: 18px;
    font-weight: 950;
}

.conti-table .slot {
    color: #111820;
    font-size: 13px;
    line-height: 1.2;
    text-transform: none;
}

.slot.frueh_1,
.slot.frueh_2,
.slot.tag {
    background: #cfe6fb;
}

.slot.spaet_1,
.slot.spaet_2 {
    background: #efc4e6;
}

.slot.nacht_1,
.slot.nacht_2 {
    background: #ffd45a;
}

.slot.ruhe_1,
.slot.ruhe_2,
.slot.urlaub,
.slot.krank,
.slot.sonstiges {
    background: #fff25d;
}

.drop-cell {
    background: #9fa4aa;
    height: 31px;
    padding: 2px;
}

.drop-cell.outside,
.conti-table th.outside {
    opacity: 0.42;
}

.conti-table th.holiday {
    background: #fff0f1;
    color: var(--brand);
}

.drop-cell.drag-over {
    outline: 3px solid var(--focus);
    outline-offset: -3px;
}

.person-card {
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.30);
    border-radius: 4px;
    cursor: grab;
    display: flex;
    font-size: 13px;
    font-weight: 950;
    gap: 4px;
    justify-content: space-between;
    min-height: 24px;
    padding: 2px 6px;
}

.person-card form {
    display: inline;
}

.person-card button {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 4px;
    box-shadow: none;
    color: #111820;
    font-size: 11px;
    min-height: 17px;
    padding: 0 6px;
}

.notes-cell {
    background: #ffffff;
}

.flash {
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 18px;
    padding: 13px 15px;
}

.flash.success {
    background: #e6f7ed;
    color: #106a45;
}

.flash.error {
    background: #ffe1e4;
    color: #8d1720;
}

pre {
    background: #101820;
    border-radius: 8px;
    color: #eff5fb;
    overflow-x: auto;
    padding: 14px;
}

.site-footer {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    padding: 0 28px 34px;
}

.site-footer a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.marketing-hero {
    align-items: center;
    display: grid;
    gap: clamp(28px, 5vw, 62px);
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    min-height: min(780px, calc(100vh - 122px));
    padding: clamp(28px, 5vw, 68px) 0 34px;
}

.marketing-hero-copy {
    max-width: 760px;
}

.marketing-eyebrow,
.marketing-kicker {
    align-items: center;
    background: rgba(212, 33, 44, 0.1);
    border: 1px solid rgba(212, 33, 44, 0.16);
    border-radius: 999px;
    color: var(--brand);
    display: inline-flex;
    font-size: 12px;
    font-weight: 950;
    padding: 7px 11px;
    text-transform: uppercase;
}

.marketing-hero h1 {
    font-size: clamp(54px, 8vw, 112px);
    line-height: 0.9;
    margin: 18px 0 18px;
}

.marketing-lead {
    color: #394858;
    font-size: clamp(18px, 2.1vw, 24px);
    font-weight: 750;
    line-height: 1.42;
    max-width: 700px;
}

.marketing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    align-items: center;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 7px;
    box-shadow: var(--shadow-soft);
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 46px;
    padding: 11px 16px;
}

.button.secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.marketing-proof {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 34px 0 0;
    max-width: 620px;
}

.marketing-proof div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    padding: 14px;
}

.marketing-proof dt {
    color: var(--ink);
    font-size: 25px;
    font-weight: 950;
    line-height: 1;
}

.marketing-proof dd {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    margin: 5px 0 0;
}

.marketing-phone-stage {
    align-items: center;
    display: grid;
    min-height: 620px;
    position: relative;
}

.marketing-phone {
    background: #111820;
    border: 10px solid #111820;
    border-radius: 32px;
    box-shadow: 0 30px 70px rgba(16, 24, 32, 0.24);
    margin: 0;
    overflow: hidden;
    position: relative;
}

.marketing-phone img,
.marketing-feature-phone img,
.marketing-shot img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hero-phone-main {
    aspect-ratio: 1320 / 2868;
    justify-self: center;
    max-width: 360px;
    width: min(42vw, 360px);
    z-index: 3;
}

.hero-phone-side {
    aspect-ratio: 1320 / 2868;
    opacity: 0.96;
    position: absolute;
    width: min(25vw, 220px);
    z-index: 2;
}

.hero-phone-chat {
    left: 0;
    top: 78px;
    transform: rotate(-7deg);
}

.hero-phone-ofen {
    bottom: 42px;
    right: 0;
    transform: rotate(6deg);
}

.marketing-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 10px 0 56px;
}

.marketing-strip article,
.marketing-capabilities article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 7px;
    padding: 18px;
}

.marketing-strip strong,
.marketing-capabilities b {
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
}

.marketing-strip span,
.marketing-capabilities span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.marketing-section {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    margin: 72px 0;
}

.marketing-section-copy h2,
.marketing-feature-copy h2,
.marketing-gallery-head h2,
.marketing-cta h2 {
    font-size: clamp(34px, 4.4vw, 62px);
    line-height: 1.02;
    margin: 14px 0 14px;
}

.marketing-section-copy p,
.marketing-feature-copy p,
.marketing-gallery-head p,
.marketing-cta p {
    color: #425061;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.55;
}

.marketing-capabilities {
    display: grid;
    gap: 14px;
}

.marketing-feature {
    align-items: center;
    display: grid;
    gap: clamp(24px, 5vw, 58px);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    margin: 72px 0;
}

.marketing-feature.is-reversed {
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
}

.marketing-feature.is-reversed .marketing-feature-copy {
    order: 2;
}

.marketing-feature-copy ul {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}

.marketing-feature-copy li {
    align-items: start;
    color: var(--ink);
    display: grid;
    font-size: 16px;
    font-weight: 850;
    gap: 10px;
    grid-template-columns: 24px minmax(0, 1fr);
}

.marketing-feature-copy li::before {
    background: var(--ok);
    border-radius: 999px;
    color: #fff;
    content: "✓";
    display: inline-flex;
    font-size: 13px;
    font-weight: 950;
    height: 24px;
    justify-content: center;
    line-height: 24px;
    width: 24px;
}

.marketing-feature-phone {
    aspect-ratio: 1320 / 2868;
    background: #111820;
    border: 10px solid #111820;
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(16, 24, 32, 0.22);
    justify-self: center;
    margin: 0;
    max-width: 330px;
    overflow: hidden;
    width: 100%;
}

.marketing-gallery-section {
    margin: 86px 0 74px;
}

.marketing-gallery-head {
    max-width: 820px;
}

.marketing-screenshot-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 30px;
}

.marketing-shot {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin: 0;
    overflow: hidden;
}

.marketing-shot img {
    aspect-ratio: 1320 / 2868;
    background: #eef2f5;
    object-fit: cover;
}

.marketing-shot figcaption {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 3px;
    padding: 12px;
}

.marketing-shot figcaption span {
    color: var(--brand);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.marketing-shot figcaption strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 950;
}

.marketing-cta {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(212, 33, 44, 0.12), rgba(21, 131, 91, 0.1)),
        #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 72px 0 36px;
    padding: clamp(24px, 4vw, 44px);
}

.marketing-legal-links {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: center;
    margin: -10px 0 32px;
}

.marketing-legal-links a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.marketing-legal-links a:hover {
    color: var(--brand);
}

@media (max-width: 1120px) {
    .marketing-hero,
    .marketing-section,
    .marketing-feature,
    .marketing-feature.is-reversed {
        grid-template-columns: 1fr;
    }

    .marketing-feature.is-reversed .marketing-feature-copy {
        order: 0;
    }

    .marketing-phone-stage {
        min-height: 520px;
    }

    .hero-phone-main {
        width: min(52vw, 330px);
    }

    .hero-phone-side {
        width: min(30vw, 190px);
    }

    .marketing-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .marketing-hero {
        padding-top: 20px;
    }

    .marketing-hero h1 {
        font-size: clamp(48px, 18vw, 76px);
    }

    .marketing-proof,
    .marketing-strip,
    .marketing-screenshot-grid,
    .marketing-cta {
        grid-template-columns: 1fr;
    }

    .marketing-phone-stage {
        min-height: 460px;
        overflow: hidden;
    }

    .hero-phone-main {
        width: min(78vw, 300px);
    }

    .hero-phone-side {
        opacity: 0.82;
        width: min(38vw, 150px);
    }

    .hero-phone-chat {
        left: -18px;
        top: 74px;
    }

    .hero-phone-ofen {
        bottom: 18px;
        right: -18px;
    }

    .marketing-feature-phone {
        max-width: 300px;
    }

    .marketing-actions .button,
    .marketing-cta .button {
        width: 100%;
    }
}

@media (max-width: 440px) {
    .marketing-lead,
    .marketing-section-copy p,
    .marketing-feature-copy p,
    .marketing-gallery-head p,
    .marketing-cta p {
        font-size: 16px;
    }

    .marketing-section-copy h2,
    .marketing-feature-copy h2,
    .marketing-gallery-head h2,
    .marketing-cta h2 {
        font-size: 34px;
    }

    .marketing-strip article,
    .marketing-capabilities article {
        padding: 15px;
    }
}

.legal-page {
    display: grid;
    gap: 16px;
    margin: 0 auto;
    max-width: 960px;
}

.legal-page h1 {
    margin-bottom: 0;
}

.legal-contact-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-contact-grid p {
    margin: 0;
}

.legal-page ul {
    margin: 0;
    padding-left: 20px;
}

.legal-page li + li {
    margin-top: 8px;
}

@media (max-width: 680px) {
    .legal-contact-grid {
        grid-template-columns: 1fr;
    }
}

.schieber-strang-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    margin: 18px 0 22px;
    overflow: hidden;
}

.schieber-strang-head {
    align-items: center;
    background: linear-gradient(135deg, #101820, #273442);
    border-left: 8px solid var(--brand);
    color: #fff;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 20px;
}

.schieber-strang-head h3 {
    color: #fff;
    font-size: 20px;
    margin: 0 0 4px;
}

.schieber-strang-head p {
    color: #dbe5ef;
    font-weight: 800;
    margin: 0;
}

.schieber-strang-head > span {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    padding: 9px 13px;
    white-space: nowrap;
}

.schieber-strang-block.mittelstrang .schieber-strang-head {
    border-left-color: #2364aa;
}

.schieber-strang-block.muehlenstrang .schieber-strang-head {
    border-left-color: #b97800;
}

.schieber-strang-block.reetwischer .schieber-strang-head,
.schieber-strang-block.retwischer .schieber-strang-head {
    border-left-color: #15835b;
}

.schieber-map-image-panel {
    margin-bottom: 18px;
}

.schieber-map-image-panel h2 {
    margin-bottom: 12px;
}

.schieber-map-image-panel img {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: block;
    height: auto;
    max-height: 680px;
    object-fit: contain;
    width: 100%;
}

.schieber-mill-panel {
    align-items: center;
    background: linear-gradient(135deg, #fff7ed, #f8fafc);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px;
}

.schieber-mill-panel strong {
    color: var(--ink);
    display: block;
    font-size: 16px;
}

.schieber-mill-panel p {
    color: var(--muted);
    font-weight: 800;
    margin: 4px 0 0;
}

.schieber-mill-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    min-width: min(100%, 300px);
}

.schieber-mill-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 8px;
}

.schieber-mill-card.active {
    background: #ecfdf5;
    border-color: #22c55e;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.14);
}

.schieber-mill-card button {
    align-items: center;
    background: #f1f5f9;
    border: 0;
    border-radius: 11px;
    box-shadow: none;
    color: var(--ink);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-height: 54px;
    padding: 12px;
    width: 100%;
}

.schieber-mill-card.active button {
    background: #16a34a;
    color: #fff;
}

.schieber-mill-card button span {
    font-size: 18px;
    font-weight: 1000;
}

.schieber-mill-card button strong {
    color: inherit;
    font-size: 13px;
    text-transform: uppercase;
}

.schieber-mill-card label {
    color: var(--muted);
    display: grid;
    gap: 5px;
    font-size: 12px;
    font-weight: 900;
    padding: 0 4px;
}

.schieber-mill-card select {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink);
    font: inherit;
    font-weight: 900;
    min-height: 40px;
    padding: 9px 10px;
    width: 100%;
}

.schieber-mill-card button.ghost {
    background: #fff7ed;
    color: #c2410c;
    font-size: 13px;
    font-weight: 1000;
    min-height: 40px;
}

.schieber-mill-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    padding: 0 4px 2px;
}

.schieber-card-grid {
    background: #f8fafc;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 16px;
}

.schieber-live-card {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 8px solid var(--line-strong);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(16, 24, 32, 0.06);
    display: grid;
    gap: 12px;
    padding: 16px;
}

.schieber-live-card.status-offen {
    border-left-color: #16a34a;
}

.schieber-live-card.status-zu {
    border-left-color: #f59e0b;
}

.schieber-live-card.status-defekt {
    border-left-color: #dc2626;
}

.schieber-live-top {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.schieber-live-top strong {
    font-size: 18px;
}

.schieber-meta {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 8px;
}

.schieber-note {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    margin: 0;
    padding: 10px 12px;
}

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

.schieber-action-form input {
    min-height: 46px;
}

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

.schieber-status-button {
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: none;
    font-size: 15px;
    font-weight: 900;
    min-height: 54px;
    padding: 12px 10px;
}

.schieber-status-button.offen {
    background: #dcfce7;
    color: #166534;
}

.schieber-status-button.zu {
    background: #fef3c7;
    color: #92400e;
}

.schieber-status-button.defekt {
    background: #fee2e2;
    color: #991b1b;
}

.schieber-status-button.active {
    box-shadow: inset 0 0 0 3px currentColor;
}

.schieber-login-alert {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-left: 0;
    overflow: hidden;
    padding: 0;
}

.schieber-alert-head {
    align-items: flex-start;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 20px 22px 16px;
}

.schieber-alert-head h2 {
    margin: 4px 0 6px;
}

.schieber-alert-head .muted {
    margin: 0;
    max-width: 720px;
}

.schieber-alert-summary {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 14px 22px;
}

.schieber-summary-chip {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
}

.schieber-summary-chip strong {
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
}

.schieber-summary-chip.total {
    background: #f8fafc;
}

.schieber-summary-chip.offen {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.schieber-summary-chip.zu {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.schieber-summary-chip.defekt {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.schieber-summary-chip.tankliste {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.schieber-summary-chip.tankliste strong {
    color: #1e40af;
}

.schieber-update-details {
    background: #ffffff;
    padding: 0 22px 18px;
}

.schieber-update-details summary {
    align-items: center;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font-weight: 900;
    justify-content: space-between;
    list-style: none;
    padding: 14px 0;
}

.schieber-update-details summary::-webkit-details-marker {
    display: none;
}

.schieber-update-list {
    display: grid;
    gap: 8px;
    margin-top: 0;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.schieber-update-item {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 10px 12px;
    position: relative;
}

.schieber-update-item::before {
    background: var(--line-strong);
    border-radius: 999px;
    bottom: 10px;
    content: "";
    left: 0;
    position: absolute;
    top: 10px;
    width: 4px;
}

.schieber-update-item.status-offen::before {
    background: #16a34a;
}

.schieber-update-item.status-zu::before {
    background: #f59e0b;
}

.schieber-update-item.status-defekt::before {
    background: #dc2626;
}

.schieber-update-item.status-tankliste::before {
    background: #2563eb;
}

.schieber-update-avatar {
    align-items: center;
    background: #eef2ff;
    border-radius: 12px;
    color: var(--person-color, #4a90e2);
    display: flex;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.schieber-update-main {
    min-width: 0;
}

.schieber-update-main strong {
    color: var(--ink);
    display: block;
    font-size: 15px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schieber-update-main span,
.schieber-update-main p,
.schieber-update-side small {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}

.schieber-update-main p {
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schieber-update-side {
    align-items: flex-end;
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
}

@media (max-width: 820px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
        position: static;
    }

    .topbar nav {
        width: 100%;
    }

    .shell {
        padding: 20px 14px 34px;
    }

    h1 {
        font-size: 28px;
    }

    .radlader-form-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .radlader-form-hero img {
        align-self: flex-end;
        max-height: 150px;
        max-width: 78%;
    }

    .grid.cols-2,
    .grid.cols-3,
    .grid.cols-4,
    .dashboard-hero,
    .marketing-hero,
    .marketing-band,
    .marketing-grid,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .admin-log-board-head {
        flex-direction: column;
    }

    .admin-log-kpis {
        justify-content: flex-start;
    }

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

    .admin-log-panel {
        border-bottom: 1px solid var(--line);
        border-right: 0;
    }

    .admin-log-panel:last-child {
        border-bottom: 0;
    }

    .log-list {
        max-height: 380px;
    }

    .schieber-alert-head {
        flex-direction: column;
    }

    .schieber-alert-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }

    .schieber-update-details {
        padding: 0 12px 14px;
    }

    .schieber-update-item {
        align-items: start;
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .schieber-update-side {
        grid-column: 2;
        justify-items: start;
        text-align: left;
    }

    .schieber-update-main strong,
    .schieber-update-main p {
        white-space: normal;
    }

    .sticky-tools {
        position: static;
    }

    .calendar {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 18px;
    }

    .schieber-strang-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .schieber-mill-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .schieber-status-actions {
        grid-template-columns: 1fr;
    }
}

/* Final admin dashboard overrides; keep these after legacy responsive rules. */
.admin-body .shell.admin-content-shell {
    max-width: 1680px;
    padding: 24px 28px 28px;
}

.admin-body .panel {
    border-color: rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}

.admin-body .dashboard-hero {
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.12), transparent 22%),
        linear-gradient(135deg, rgba(10, 18, 28, .98), rgba(18, 34, 50, .96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 42px rgba(16, 24, 40, 0.16);
    grid-template-columns: minmax(0, 1fr) 168px;
    margin-bottom: 18px;
    min-height: 164px;
    padding: 32px 40px;
}

.admin-body .dashboard-hero::after {
    display: none;
}

.admin-body .dashboard-hero .eyebrow {
    background: rgba(212, 33, 44, 0.18);
    border-color: rgba(212, 33, 44, 0.28);
    color: #ffb4ba;
    margin-bottom: 12px;
}

.admin-body .dashboard-hero h1 {
    font-size: clamp(28px, 3vw, 38px);
    margin-bottom: 8px;
}

.admin-body .hero-date-card {
    border-radius: 12px;
    min-height: 116px;
}

.admin-body .dashboard-kpi-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.admin-body .dashboard-main-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 390px;
    margin-top: 4px;
}

.admin-body .dashboard-main-grid:not(:has(.dashboard-side-column)) {
    grid-template-columns: 1fr;
}

.admin-body button,
.admin-body .button {
    border-radius: 10px;
}

.admin-body button.secondary,
.admin-body .button.secondary {
    background: #fff;
    border-color: #d0d5dd;
    box-shadow: none;
    color: #344054;
}

.admin-body button.danger,
.admin-body .button.danger {
    background: #fff;
    border-color: rgba(212, 33, 44, 0.32);
    box-shadow: none;
    color: #b42318;
}

.admin-body button.ghost,
.admin-body .button.ghost {
    background: #f8fafc;
    border-color: #e4e7ec;
    box-shadow: none;
    color: #344054;
}

.admin-body button.compact,
.admin-body .button.compact {
    font-size: 13px;
    min-height: 36px;
    padding: 7px 12px;
}

.admin-body .admin-log-board {
    border-radius: 16px;
    margin-top: 18px;
}

.admin-body .admin-log-board-head {
    background: #fff;
    color: #111827;
}

.admin-body .admin-log-board-head .eyebrow {
    color: #d4212c;
}

.admin-body .admin-log-board-head h2 {
    color: #111827;
}

.admin-body .admin-log-board-head .muted {
    color: #667085;
}

.admin-body .admin-log-kpis span {
    background: #f8fafc;
    border-color: #e4e7ec;
    color: #667085;
}

.admin-body .admin-log-kpis strong {
    color: #111827;
}

@media (max-width: 1280px) {
    .admin-body .dashboard-kpi-grid,
    .admin-body .handover-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-body .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .admin-body .dashboard-hero,
    .admin-body .dashboard-kpi-grid,
    .admin-body .dashboard-lower-grid,
    .admin-body .handover-status-grid,
    .admin-body .handover-point-main,
    .admin-body .handover-takeover-form {
        grid-template-columns: 1fr;
    }

    .admin-body .dashboard-hero {
        padding: 24px;
    }
}

@media (prefers-color-scheme: dark) {
    html,
    .admin-body {
        background: #0b0c0f;
    }

    .admin-body {
        color: #f3f6fa;
    }

    .admin-body .admin-topbar,
    .admin-body .panel,
    .admin-body .dashboard-kpi-card,
    .admin-body .handover-status-card,
    .admin-body .handover-point-row,
    .admin-body .admin-log-board,
    .admin-body .admin-log-board-head {
        background: #17191e;
        border-color: #34363d;
        color: #f3f6fa;
    }

    .admin-body .admin-menu-button,
    .admin-body .admin-search,
    .admin-body .admin-notification,
    .admin-body .admin-logout-button,
    .admin-body button.secondary,
    .admin-body .button.secondary,
    .admin-body button.ghost,
    .admin-body .button.ghost,
    .admin-body .today-shift-row,
    .admin-body .quick-action-tile,
    .admin-body .api-ready-card,
    .admin-body .log-item,
    .admin-body .empty-log-state,
    .admin-body input,
    .admin-body select,
    .admin-body textarea {
        background: #1f2229;
        border-color: #34363d;
        color: #f3f6fa;
    }

    .admin-body .admin-search input {
        background: transparent;
    }

    .admin-body .admin-breadcrumb a,
    .admin-body .admin-breadcrumb strong,
    .admin-body .dashboard-kpi-card strong,
    .admin-body .handover-status-card strong,
    .admin-body .handover-point-main strong,
    .admin-body .today-shift-row strong,
    .admin-body .activity-mini-item strong,
    .admin-body .system-info-list strong,
    .admin-body .admin-log-board-head h2,
    .admin-body .log-item strong {
        color: #f8fafc;
    }

    .admin-body .muted,
    .admin-body .dashboard-kpi-card small,
    .admin-body .handover-status-card small,
    .admin-body .handover-point-main p,
    .admin-body .handover-point-main small,
    .admin-body .today-shift-row div span,
    .admin-body .today-shift-row small,
    .admin-body .activity-mini-item small,
    .admin-body .activity-mini-item time,
    .admin-body .system-info-list span,
    .admin-body .api-ready-card p,
    .admin-body .admin-log-board-head .muted,
    .admin-body .log-person-line span,
    .admin-body .log-error-message {
        color: #a4adba;
    }

    .admin-body .admin-log-kpis span,
    .admin-body .admin-log-tabs,
    .admin-body .handover-point-list {
        background: #17191e;
        border-color: #34363d;
    }
}

/* Sidebar sizing guard: keeps the desktop admin navigation close to the mockup. */
.admin-body .admin-app-shell {
    grid-template-columns: 252px minmax(0, 1fr);
}

.admin-body .admin-sidebar {
    gap: 22px;
    padding: 24px 14px 18px;
    width: 252px;
}

.admin-body .admin-brand {
    gap: 12px;
    min-height: 44px;
    padding: 0 8px 8px;
}

.admin-body .admin-brand-mark {
    border-radius: 9px;
    font-size: 22px;
    height: 38px;
    width: 38px;
}

.admin-body .admin-brand strong {
    font-size: 13px;
    line-height: 1.08;
}

.admin-body .admin-brand small {
    font-size: 10px;
}

.admin-body .admin-nav {
    gap: 4px;
    padding-right: 2px;
}

.admin-body .admin-nav-group {
    font-size: 10px;
    line-height: 1;
    margin: 15px 10px 7px;
}

.admin-body .admin-nav-link,
.admin-body .admin-nav-link:link,
.admin-body .admin-nav-link:visited {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: none;
    color: #d7e0ea;
    display: flex;
    font-size: 14px;
    font-weight: 850;
    gap: 11px;
    justify-content: flex-start;
    line-height: 1.2;
    min-height: 40px;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
}

.admin-body .admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: transparent;
    color: #fff;
    filter: none;
}

.admin-body .admin-nav-link.active {
    background: linear-gradient(135deg, #e42330, #c81927);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(212, 33, 44, 0.24);
    color: #fff;
    min-height: 42px;
}

.admin-body .admin-nav-link .admin-icon {
    height: 18px;
    width: 18px;
}

.admin-body .admin-nav-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-body .admin-user-card {
    border-radius: 8px;
    padding: 8px;
}

.admin-body .admin-user-card summary {
    grid-template-columns: 38px minmax(0, 1fr);
}

.admin-body .admin-avatar {
    font-size: 13px;
    height: 38px;
    width: 38px;
}

@media (min-width: 981px) {
    .admin-body .admin-sidebar {
        position: sticky;
        transform: none;
    }

    .admin-body .admin-menu-button {
        display: none;
    }
}

@media (max-width: 980px) {
    .admin-body .admin-app-shell {
        grid-template-columns: 1fr;
    }

    .admin-body .admin-sidebar {
        width: 252px;
    }
}

.admin-body .admin-sidebar-toggle {
    height: 1px !important;
    left: -100vw !important;
    opacity: 0 !important;
    position: fixed !important;
    width: 1px !important;
}

.admin-body svg.admin-icon,
.admin-body .admin-icon {
    display: inline-block !important;
    flex: 0 0 18px !important;
    height: 18px !important;
    max-height: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    min-width: 18px !important;
    overflow: visible !important;
    width: 18px !important;
}

.admin-body .admin-menu-button svg.admin-icon,
.admin-body .admin-notification svg.admin-icon,
.admin-body .admin-logout-button svg.admin-icon,
.admin-body .admin-search svg.admin-icon {
    flex-basis: 20px !important;
    height: 20px !important;
    max-height: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    min-width: 20px !important;
    width: 20px !important;
}
