:root {
    --bg: #f5f7fa;
    --panel: #ffffff;
    --line: #d1d5db;
    --text: #111827;
    --muted: #6b7280;
    --accent: #111827;
    --accent-dark: #030712;
    --secondary: #ffffff;
    --success: #ecfdf5;
    --error: #fef2f2;
    --warning: #fffbeb;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    --badge-bg: #eef2ff;
    --badge-text: #3730a3;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--panel);
    border-bottom: 1px solid #ddd;
    overflow: visible;
}

.content,
.page-shell {
    max-width: none;
    margin: 0;
    width: 100%;
}

.topbar-inner {
    width: 100%;
    padding: 12px clamp(16px, 3vw, 32px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    overflow: visible;
}

.content {
    padding: 24px clamp(16px, 3vw, 32px);
}

.page-shell {
    display: grid;
    gap: 24px;
}

.dashboard-top-cards {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}

.dashboard-top-cards > .top-summary-card {
    width: 340px;
    min-width: 340px;
    max-width: 340px;
    min-height: 128px;
    padding: 18px 20px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 0 0 340px;
}

.dashboard-top-cards .login-badge {
    display: inline-flex;
    width: fit-content;
    align-self: flex-start;
}

.page-shell.narrow {
    max-width: 520px;
}

.dashboard-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 1 auto;
    min-width: 0;
}

.dashboard-logo {
    display: block;
    height: clamp(42px, 4.8vw, 64px);
    width: auto;
    max-width: min(38vw, 420px);
}

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

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1 1 420px;
    min-width: 0;
    overflow: visible;
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.dropdown-toggle:hover {
    background: #f3f4f6;
}

.menu-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.menu-link:hover,
.menu-link.is-active {
    background: #f3f4f6;
}

.dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    max-width: min(320px, calc(100vw - 32px));
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    z-index: 2000;
}

.dropdown-content a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    white-space: normal;
    line-height: 1.35;
}

.dropdown-label {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #4b5563;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.dropdown-content a:hover {
    background: #f3f4f6;
}

.dropdown-end .dropdown-content {
    left: auto;
    right: 0;
}

.dropdown-user .dropdown-content {
    min-width: 260px;
}

.dropdown-user .dropdown-label {
    margin-bottom: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

.login-card,
.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.login-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--badge-bg);
    color: var(--badge-text);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

h1 {
    margin: 0 0 10px;
    font-size: 28px;
}

h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

h3 {
    margin: 0 0 4px;
}

.login-subtitle {
    color: var(--muted);
    margin-top: 0;
    line-height: 1.5;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.flash.success {
    background: var(--success);
    color: #065f46;
    border-color: #a7f3d0;
}

.flash.error {
    background: var(--error);
    color: #b91c1c;
    border-color: #fecaca;
}

.login-auth-shell,
.access-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.login-auth-shell {
    display: grid;
    gap: 18px;
}

.login-auth-card {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 32px;
}

.login-auth-header {
    display: grid;
    justify-items: center;
    gap: 18px;
    margin-bottom: 22px;
    text-align: center;
}

.login-auth-logo {
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
}

.login-auth-logo img {
    display: block;
    width: 108px;
    height: 108px;
    object-fit: contain;
}

.login-auth-title {
    margin: 0;
    font-size: clamp(30px, 4vw, 38px);
    line-height: 1.05;
}

.login-auth-form {
    gap: 14px;
}

.login-auth-form button,
.access-create-form button {
    margin-top: 6px;
}

.login-auth-legal,
.access-hint {
    color: #64748b;
    line-height: 1.65;
}

.demo-access-card {
    width: min(100%, 720px);
    margin: 0 auto;
}

.demo-access-list,
.access-list {
    display: grid;
    gap: 12px;
}

.demo-access-item,
.access-list-item {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
    padding: 14px 16px;
}

.demo-access-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.demo-access-item button {
    flex: 0 0 auto;
    min-width: 116px;
}

.access-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
    gap: 24px;
    align-items: start;
}

.access-create-form {
    gap: 13px;
}

.access-inline-error,
.access-inline-success,
.access-inline-warning {
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    line-height: 1.55;
}

.access-inline-error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.access-inline-success {
    background: #ecfdf5;
    color: #166534;
    border-color: #bbf7d0;
}

.access-inline-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.access-invite-preview {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
}

.access-invite-preview strong {
    display: block;
    margin-bottom: 8px;
}

.access-invite-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-all;
}

.access-invite-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.access-macos-release {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #f2d4d7;
    background: linear-gradient(180deg, #fff6f6 0%, #fffafb 100%);
}

.access-macos-release strong {
    display: block;
    margin-bottom: 4px;
}

.access-macos-form {
    margin-bottom: 18px;
}

.master-data-shell {
    display: grid;
    gap: 24px;
}

.master-data-top-cards {
    align-items: stretch;
}

.master-data-card {
    display: grid;
    gap: 24px;
}

.master-data-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.master-data-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.master-data-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    font-weight: 700;
    color: #334155;
}

.master-data-tab:hover {
    background: #f1f5f9;
}

.master-data-tab.is-active {
    border-color: #f2d4d7;
    background: #fff4f5;
    color: #9f1239;
}

.master-data-section {
    display: grid;
    gap: 18px;
}

.access-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.access-list-meta {
    min-width: 0;
}

.access-list-meta strong {
    display: block;
    margin-bottom: 4px;
}

.span-all {
    grid-column: 1 / -1;
}

.identity-card .login-badge {
    margin-bottom: 8px;
}

.identity-name {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
}

.identity-meta {
    margin-bottom: 0;
    font-size: 14px;
}

.entry-cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    width: 100%;
}

#entry-panel {
    overflow: visible;
}

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

.calendar-range-label {
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    border-radius: 0;
    background: transparent;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.timer-state {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--muted);
    font-weight: 700;
}

.timer-state.is-running {
    background: #ecfdf5;
    color: #166534;
}

.timer-state.is-paused {
    background: #fff1f2;
    color: #b91c1c;
}

.active-booking-card {
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 34%),
        linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.active-booking-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0));
    border-bottom: 1px solid #edf2f7;
}

.active-booking-head strong {
    font-size: 18px;
}

.active-booking-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.active-booking-pill.is-running {
    background: #dcfce7;
    color: #166534;
}

.active-booking-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 18px;
}

.active-booking-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 8px solid #cbd5e1;
    box-shadow: inset 0 0 0 6px white;
    flex: 0 0 auto;
}

.active-booking-icon.is-running {
    border-color: #34c37d;
}

.active-booking-details {
    min-width: 0;
}

.active-booking-customer {
    margin: 0 0 14px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.05;
}

.active-booking-meta-grid {
    display: grid;
    gap: 10px;
}

.active-booking-meta-grid p {
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
}

.active-booking-meta-grid span {
    color: var(--muted);
    min-width: 78px;
}

.active-booking-meta-grid strong {
    font-size: 18px;
}

.active-booking-timer-box {
    min-width: min(32vw, 220px);
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
    border: 1px solid #e2e8f0;
    display: grid;
    gap: 8px;
    justify-items: end;
}

.active-booking-timer-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.active-booking-duration {
    font-size: clamp(28px, 3.4vw, 46px);
    line-height: 1;
    letter-spacing: 0.02em;
}

.projects-side-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    text-align: left;
    min-height: 0;
    gap: 18px;
}

.projects-side-head {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    gap: 12px;
}

.projects-side-card .login-badge {
    margin-left: 0;
    margin-right: 0;
}

.projects-add-button {
    width: 36px;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
}

.projects-add-button:hover {
    background: #eef4ff;
    border-color: #bfd4ff;
}

.projects-add-button.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.projects-search-block,
.projects-list-block {
    display: grid;
    gap: 12px;
}

.projects-list-block {
    min-height: 0;
    flex: 1 1 auto;
}

.projects-section-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.projects-search-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    color: var(--text);
    background: #f8fafc;
    outline: 0;
}

.projects-search-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.18);
    background: white;
}

.projects-list {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.project-list-item {
    width: 100%;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    display: grid;
    gap: 4px;
    justify-items: start;
    text-align: left;
    box-shadow: none;
}

.project-list-item strong {
    font-size: 15px;
}

.project-list-item span {
    color: #64748b;
    font-size: 13px;
}

.project-list-item:hover {
    background: #eef4ff;
    border-color: #bfd4ff;
}

.project-list-item.is-active {
    background: #eaf2ff;
    border-color: #7aa8ff;
    box-shadow: inset 0 0 0 1px #7aa8ff;
}

.project-list-item.is-pinned {
    border-color: #cbd5e1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.project-list-item.is-locked {
    opacity: 0.72;
}

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

.side-compact-card {
    max-width: none;
    width: 100%;
}

.weekly-hours-card .login-badge {
    margin-bottom: 8px;
}

.weekly-hours-value {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
}

.weekly-hours-actual {
    transition: color 140ms ease;
}

.weekly-hours-actual.is-low {
    color: #dc2626;
}

.weekly-hours-actual.is-mid {
    color: #d97706;
}

.weekly-hours-actual.is-high {
    color: #15803d;
}

.weekly-hours-target {
    color: var(--muted);
}

.calendar-frame {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    background: white;
    margin-bottom: 22px;
}

.apple-calendar-grid {
    --calendar-hour-height: clamp(44px, 5vw, 64px);
    --calendar-hours: 16;
    --calendar-body-height: calc(var(--calendar-hour-height) * var(--calendar-hours));
    display: grid;
    grid-template-columns: clamp(54px, 7vw, 84px) repeat(5, minmax(0, 1fr));
    grid-template-rows: 64px var(--calendar-body-height);
    width: 100%;
    min-width: 0;
}

.calendar-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.calendar-day-header {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 10px 12px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    transition: background 120ms ease, color 120ms ease;
}

.calendar-day-header:last-of-type {
    border-right: 0;
}

.calendar-day-header.is-today {
    background: #f8fbff;
}

.calendar-day-header.is-selected {
    background: #eaf2ff;
}

.calendar-day-weekday {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.calendar-day-header strong {
    font-size: clamp(14px, 1.5vw, 18px);
}

.calendar-time-column {
    position: relative;
    height: var(--calendar-body-height);
    border-right: 1px solid #e5e7eb;
    background:
        linear-gradient(to bottom, transparent 0, transparent 100%),
        repeating-linear-gradient(
            to bottom,
            #f0f3f8 0,
            #f0f3f8 1px,
            transparent 1px,
            transparent calc(var(--calendar-hour-height) / 2)
        ),
        repeating-linear-gradient(
            to bottom,
            #e2e8f0 0,
            #e2e8f0 1px,
            #fafafa 1px,
            #fafafa var(--calendar-hour-height)
        );
}

.calendar-time-label {
    position: absolute;
    left: clamp(6px, 0.9vw, 12px);
    color: var(--muted);
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 700;
    transform: translateY(-50%);
}

.calendar-time-label.is-first {
    transform: none;
}

.calendar-time-label.is-last {
    transform: translateY(50%);
}

.calendar-day-column {
    position: relative;
    height: var(--calendar-body-height);
    border-right: 1px solid #e5e7eb;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(148, 163, 184, 0.12) 0,
            rgba(148, 163, 184, 0.12) 1px,
            transparent 1px,
            transparent calc(var(--calendar-hour-height) / 2)
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(148, 163, 184, 0.22) 0,
            rgba(148, 163, 184, 0.22) 1px,
            #ffffff 1px,
            #ffffff var(--calendar-hour-height)
        );
    cursor: crosshair;
}

.calendar-day-column:last-child {
    border-right: 0;
}

.calendar-day-column.is-today {
    background:
        linear-gradient(to bottom, rgba(86, 146, 255, 0.05), rgba(86, 146, 255, 0.05)),
        repeating-linear-gradient(
            to bottom,
            rgba(148, 163, 184, 0.12) 0,
            rgba(148, 163, 184, 0.12) 1px,
            transparent 1px,
            transparent calc(var(--calendar-hour-height) / 2)
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(148, 163, 184, 0.22) 0,
            rgba(148, 163, 184, 0.22) 1px,
            #ffffff 1px,
            #ffffff var(--calendar-hour-height)
        );
}

.calendar-day-column.is-selected {
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.calendar-entry-layer {
    position: relative;
    height: 100%;
}

.calendar-entry {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    left: clamp(4px, 0.6vw, 8px);
    right: clamp(4px, 0.6vw, 8px);
    margin: 0;
    min-height: 28px;
    padding: clamp(5px, 0.7vw, 8px) clamp(6px, 0.8vw, 10px);
    border: 0;
    border-radius: clamp(8px, 1vw, 14px);
    background: linear-gradient(180deg, #53a3ff 0%, #2f73ff 100%);
    color: white;
    font: inherit;
    text-align: left;
    box-shadow: 0 10px 22px rgba(47, 115, 255, 0.24);
    overflow: hidden;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.calendar-entry:focus,
.calendar-entry:focus-visible {
    outline: none;
}

.calendar-entry:hover {
    background: linear-gradient(180deg, #3f94ff 0%, #1f62ef 100%);
}

.calendar-entry.status-approved {
    background: linear-gradient(180deg, #48b88d 0%, #22936c 100%);
    box-shadow: 0 10px 22px rgba(34, 147, 108, 0.24);
}

.calendar-entry.status-approved:hover {
    background: linear-gradient(180deg, #3aa980 0%, #1b815e 100%);
}

.calendar-entry.status-rejected,
.calendar-entry.status-correction_requested {
    background: linear-gradient(180deg, #ff8f7d 0%, #ee5d48 100%);
    box-shadow: 0 10px 22px rgba(238, 93, 72, 0.24);
}

.calendar-entry.status-rejected:hover,
.calendar-entry.status-correction_requested:hover {
    background: linear-gradient(180deg, #fb7d69 0%, #e04a35 100%);
}

.calendar-entry.status-draft {
    background: linear-gradient(180deg, #7a88a6 0%, #5b6784 100%);
    box-shadow: 0 10px 22px rgba(91, 103, 132, 0.2);
}

.calendar-entry.status-draft:hover {
    background: linear-gradient(180deg, #6c7995 0%, #4c5872 100%);
}

.calendar-entry.time-work.status-draft {
    background: linear-gradient(180deg, #ffe3e6 0%, #f9c4cc 100%);
    color: #7f1d1d;
    box-shadow: 0 10px 22px rgba(244, 114, 182, 0.18);
}

.calendar-entry.time-work.status-draft:hover {
    background: linear-gradient(180deg, #ffd8de 0%, #f4b4be 100%);
}

.calendar-entry.is-preview {
    border-style: dashed;
    outline: 2px dashed rgba(255, 255, 255, 0.72);
    outline-offset: -2px;
}

.calendar-entry.status-running,
.calendar-entry.is-live {
    background: linear-gradient(180deg, #ffd9dc 0%, #f7b8bf 100%);
    color: #7f1d1d;
    box-shadow: 0 10px 24px rgba(244, 114, 182, 0.22);
    outline: 2px solid rgba(190, 24, 93, 0.18);
}

.calendar-entry.status-running:hover,
.calendar-entry.is-live:hover {
    background: linear-gradient(180deg, #ffcfd5 0%, #f2a8b2 100%);
}

.calendar-entry-time,
.calendar-entry span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-entry-time {
    font-size: 11px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.calendar-entry strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-entry span:last-child {
    font-size: 12px;
    opacity: 0.92;
}

.calendar-entry.is-time-change-editable::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.calendar-entry.has-time-change-pending::after {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.calendar-entry.has-time-change-approved::after {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.calendar-entry.has-time-change-rejected::after {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.entry-form-shell {
    display: grid;
    gap: 18px;
}

.entry-form-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.calendar-entry-form {
    padding-top: 2px;
}

.time-change-popover {
    position: fixed;
    z-index: 80;
    width: min(360px, calc(100vw - 24px));
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #fecdd3;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f8 100%);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
    display: grid;
    gap: 12px;
}

.time-change-popover[hidden] {
    display: none;
}

.time-change-popover-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.time-change-popover-head strong {
    display: block;
    font-size: 19px;
    line-height: 1.2;
}

.time-change-popover-close {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: white;
    color: #111827;
    font-size: 13px;
}

.time-change-popover-current {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.time-change-popover-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.time-change-admin-note {
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    line-height: 1.5;
    font-size: 14px;
}

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

.time-change-form textarea {
    min-height: 96px;
    resize: vertical;
}

.pause-blocked-popover {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 82;
    width: min(360px, calc(100vw - 24px));
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #fecaca;
    background: linear-gradient(180deg, #ffffff 0%, #fff4f5 100%);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
    display: grid;
    gap: 12px;
}

.pause-blocked-popover[hidden] {
    display: none;
}

.pause-blocked-popover-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.pause-blocked-popover-head strong {
    display: block;
    font-size: 19px;
    line-height: 1.2;
}

.pause-blocked-popover-close {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: white;
    color: #111827;
    font-size: 13px;
}

.pause-blocked-popover-message,
.pause-blocked-popover-meta {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.pause-blocked-popover-countdown {
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #b91c1c;
    font-variant-numeric: tabular-nums;
}

.workspace-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.workspace-tab {
    background: white;
    color: var(--text);
    border: 1px solid #d1d5db;
}

.workspace-tab:hover {
    background: #f3f4f6;
    color: var(--text);
    border-color: #d1d5db;
}

.workspace-tab.is-active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.workspace-tab.is-active:hover {
    background: var(--accent-dark);
    color: white;
    border-color: var(--accent-dark);
}

.workspace-panel[hidden] {
    display: none !important;
}

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

.helper-panel {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    background: #f9fafb;
}

.helper-list {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.helper-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
}

.helper-item p,
.helper-box p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.helper-step {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #111827;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.helper-box {
    padding: 14px;
    border-radius: 14px;
    background: white;
    border: 1px solid #e5e7eb;
}

.calendar-guidance-panel,
.calendar-section-card {
    scroll-margin-top: 110px;
}

.calendar-guidance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.calendar-page-layout {
    display: grid;
    gap: 18px;
}

.deadline-visual-card {
    display: grid;
    gap: 18px;
    position: relative;
    overflow: visible;
    padding: 0;
    width: 100%;
    min-width: 0;
}

.deadline-calendar-head {
    margin-bottom: 0;
    overflow: visible;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    min-width: 0;
    align-items: stretch;
    justify-content: stretch;
    justify-items: stretch;
}

.deadline-calendar-kicker {
    padding: 16px 18px 10px;
    border-bottom: 1px solid #edf1f6;
}

.deadline-calendar-kicker .login-badge {
    margin-bottom: 0;
}

.deadline-calendar-toolbar {
    display: flex;
    align-items: center;
    gap: 12px 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    overflow: visible;
    padding: 14px 18px 0;
    width: 100%;
    min-width: 0;
}

.calendar-toolbar-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    flex: 1 1 360px;
    min-width: 0;
}

.calendar-toolbar-secondary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 1 auto;
    margin-left: auto;
    min-width: 0;
    max-width: 100%;
}

.deadline-nav-group {
    display: grid;
    grid-template-columns: 52px 196px 52px 78px;
    align-items: center;
    gap: 8px;
}

.deadline-view-group {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    padding: 4px;
    min-height: 40px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e7ebf2;
    width: fit-content;
    max-width: 100%;
    flex: 0 1 auto;
}

.deadline-nav-button,
.deadline-view-button,
.calendar-entry-trigger,
.deadline-nav-group .calendar-range-label {
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.deadline-nav-button,
.deadline-view-button {
    color: #111827 !important;
    border-radius: 999px !important;
    min-height: 40px;
    font-weight: 700;
    min-width: 0;
}

.deadline-nav-button {
    background: #ffffff !important;
    border: 1px solid #dfe6f0 !important;
    padding: 0 14px !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.deadline-nav-button.is-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 52px;
    width: 52px;
    padding: 0 !important;
    font-size: 0;
    line-height: 0;
    position: relative;
}

.deadline-nav-button.is-arrow::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
}

.deadline-nav-button.is-arrow[data-deadline-nav="prev"]::before,
.deadline-nav-button.is-arrow[data-event-nav="prev"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M7.5 2.25L3.75 6l3.75 3.75' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.deadline-nav-button.is-arrow[data-deadline-nav="next"]::before,
.deadline-nav-button.is-arrow[data-event-nav="next"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M4.5 2.25L8.25 6 4.5 9.75' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.deadline-nav-button.is-today {
    min-height: 48px;
    min-width: 78px;
}

.deadline-view-button {
    background: transparent !important;
    border: 0 !important;
    padding: 0 14px !important;
    min-width: 0;
    flex: 0 0 auto;
}

.deadline-nav-button:hover,
.deadline-view-button:hover {
    background: #e5e7eb !important;
}

.deadline-nav-button.is-arrow:hover,
.deadline-nav-button.is-today:hover {
    background: #f8fafc !important;
}

.deadline-view-button.is-active {
    background: #111827 !important;
    color: white !important;
}

.deadline-view-button.is-active:hover {
    background: #030712 !important;
}

.calendar-entry-popover-anchor {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: visible;
    flex: 0 0 auto;
}

.calendar-entry-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid #d9ddff !important;
    border-radius: 999px !important;
    padding: 0 16px !important;
    background: #ffffff !important;
    color: #2f39bf !important;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(78, 92, 255, 0.06);
}

.calendar-entry-trigger::before {
    content: "+";
    margin-right: 8px;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
}

.calendar-entry-trigger:hover {
    background: #f7f8ff !important;
}

.calendar-entry-trigger[aria-expanded="true"] {
    background: #eef1ff !important;
    color: #2530a8 !important;
    border-color: #cfd5ff !important;
}

.calendar-entry-popover {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(440px, calc(100vw - 48px));
    padding: 18px;
    z-index: 40;
    display: grid;
    gap: 16px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.calendar-entry-popover[hidden] {
    display: none;
}

.calendar-entry-popover-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.calendar-entry-popover-head .login-badge {
    margin-bottom: 10px;
}

.calendar-entry-popover-head strong {
    display: block;
    font-size: 20px;
    line-height: 1.15;
    margin-bottom: 6px;
}

.calendar-entry-popover-head .login-subtitle {
    margin-bottom: 0;
}

.calendar-entry-popover-close {
    border: 0 !important;
    border-radius: 999px !important;
    padding: 10px 12px !important;
    background: #eef2f7 !important;
    color: #475569 !important;
    white-space: nowrap;
}

.calendar-entry-popover-close:hover {
    background: #e2e8f0 !important;
}

.deadline-entry-popover {
    width: min(498px, calc(100vw - 44px));
    padding: 28px 28px 26px;
    gap: 22px;
    border: 1px solid #e8edf5;
    border-radius: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    box-shadow:
        0 28px 72px rgba(15, 23, 42, 0.12),
        0 10px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.deadline-entry-popover-head,
.event-entry-popover-head {
    align-items: flex-start;
}

.deadline-entry-popover-head {
    gap: 18px;
}

.deadline-entry-popover-head > div,
.event-entry-popover-head > div {
    min-width: 0;
}

.deadline-entry-popover-head .login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-bottom: 14px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef1ff;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
}

.deadline-entry-badge::before,
.event-entry-badge::before {
    content: "";
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.deadline-entry-badge::before {
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234f46e5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='6.7'/%3E%3Cpath d='M10 6.3v4.1l2.7 1.7'/%3E%3C/svg%3E");
}

.event-entry-badge::before {
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234f46e5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.4' width='14' height='12.2' rx='2.5'/%3E%3Cpath d='M6.2 3v3M13.8 3v3M3 8.3h14'/%3E%3C/svg%3E");
}

.deadline-entry-popover-head strong {
    font-size: 31px;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #101828;
}

.deadline-entry-popover-head .login-subtitle {
    color: #667085;
    font-size: 16px;
    line-height: 1.55;
}

.deadline-entry-popover-close {
    gap: 10px;
    min-height: 46px;
    padding: 0 18px !important;
    border-radius: 16px !important;
    background: #f3f5f9 !important;
    color: #475467 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: inset 0 0 0 1px rgba(209, 213, 219, 0.26);
}

.deadline-entry-close-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23475467' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M4.5 4.5 15.5 15.5M15.5 4.5 4.5 15.5'/%3E%3C/svg%3E");
}

.deadline-entry-form {
    grid-template-columns: 1fr;
    gap: 18px;
}

.deadline-entry-field {
    gap: 10px;
    color: #111827;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.deadline-entry-field input,
.deadline-entry-date-shell input,
.event-entry-field input {
    border: 1px solid #d4d9e4;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    color: #111827;
}

.deadline-entry-field input::placeholder,
.deadline-entry-date-shell input::placeholder,
.event-entry-field input::placeholder {
    color: #8a94a6;
}

.deadline-entry-field input:focus,
.deadline-entry-date-shell input:focus,
.event-entry-field input:focus {
    outline: none;
    border-color: #695cff;
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.08),
        0 1px 2px rgba(15, 23, 42, 0.05);
}

.deadline-entry-field input {
    min-height: 54px;
    border-radius: 13px;
    font-size: 16px;
}

.deadline-entry-title-input {
    border-width: 1.6px;
    border-color: #7d74ff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.deadline-entry-date-shell {
    position: relative;
}

.deadline-entry-date-shell input {
    padding-left: 42px;
    padding-right: 42px;
}

.deadline-entry-date-icon,
.deadline-entry-date-chevron {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #667085;
}

.deadline-entry-date-icon {
    left: 14px;
    width: 18px;
    height: 18px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23667085' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='14' height='12.5' rx='2.4'/%3E%3Cpath d='M6.1 3v3M13.9 3v3M3 8.4h14'/%3E%3C/svg%3E");
}

.deadline-entry-date-chevron {
    right: 16px;
    width: 10px;
    height: 10px;
}

.deadline-entry-date-chevron::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border-right: 1.6px solid #667085;
    border-bottom: 1.6px solid #667085;
    transform: rotate(45deg);
}

.deadline-priority-field {
    display: grid;
    gap: 10px;
}

.deadline-priority-field-label {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.deadline-priority-pill-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.deadline-priority-pill {
    position: relative;
    display: block;
    cursor: pointer;
}

.deadline-priority-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.deadline-priority-pill-ui {
    min-height: 52px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.deadline-priority-pill-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1.6px solid currentColor;
    flex: 0 0 10px;
}

.deadline-priority-pill.priority-niedrig .deadline-priority-pill-dot {
    color: #16a34a;
}

.deadline-priority-pill.priority-mittel .deadline-priority-pill-dot {
    color: #f97316;
}

.deadline-priority-pill.priority-hoch .deadline-priority-pill-dot {
    color: #ef4444;
}

.deadline-priority-pill.priority-niedrig input:checked + .deadline-priority-pill-ui {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}

.deadline-priority-pill.priority-mittel input:checked + .deadline-priority-pill-ui {
    border-color: #fdba74;
    background: #fff7ed;
    color: #ea580c;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}

.deadline-priority-pill.priority-hoch input:checked + .deadline-priority-pill-ui {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #dc2626;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.deadline-entry-submit {
    min-height: 58px;
    border-radius: 14px;
    background: linear-gradient(180deg, #192132 0%, #111827 100%);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
    gap: 10px;
    font-size: 16px;
}

.deadline-entry-submit:hover {
    background: linear-gradient(180deg, #202b42 0%, #172033 100%);
}

.deadline-entry-submit-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-opacity='0.95' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 3.5h7.5l1.5 1.5v11h-9z'/%3E%3Cpath d='M7 3.5V8h5V3.5M7.2 13h5.6'/%3E%3C/svg%3E");
}

.event-entry-popover {
    width: min(1128px, calc(100vw - 44px));
    padding: 36px 48px 42px;
    gap: 34px;
    border: 1px solid #e8edf5;
    border-radius: 34px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.12),
        0 12px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.event-entry-popover-head {
    gap: 28px;
}

.event-entry-popover-head .login-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    margin-bottom: 24px;
    padding: 0 22px;
    border-radius: 20px;
    background: #f2efff;
    color: #4f46e5;
    font-size: 22px;
    font-weight: 800;
}

.event-entry-popover-head strong {
    display: block;
    font-size: 56px;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 26px;
    color: #0f172a;
}

.event-entry-popover-head .login-subtitle {
    max-width: 700px;
    color: #667085;
    font-size: 20px;
    line-height: 1.55;
}

.event-entry-popover .deadline-entry-popover-close {
    min-height: 64px;
    padding: 0 26px !important;
    border-radius: 22px !important;
    font-size: 22px !important;
    gap: 14px;
}

.event-entry-popover .deadline-entry-close-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.event-entry-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 42px;
}

.event-entry-field {
    gap: 14px;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.event-entry-field input {
    min-height: 74px;
    border-radius: 20px;
    font-size: 18px;
    padding-top: 0;
    padding-bottom: 0;
}

.event-entry-title-input {
    border-width: 2px;
    border-color: #5a4fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.event-entry-input-shell {
    position: relative;
}

.event-entry-input-shell input {
    padding-left: 60px;
    padding-right: 50px;
}

.event-entry-icon,
.event-entry-chevron {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #5b6474;
}

.event-entry-icon {
    left: 20px;
}

.event-entry-chevron {
    right: 22px;
    width: 13px;
    height: 13px;
}

.event-entry-chevron::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #5b6474;
    border-bottom: 2px solid #5b6474;
    transform: rotate(45deg);
}

.event-entry-calendar-icon,
.event-entry-time-icon,
.event-entry-link-icon,
.event-entry-participants-icon {
    width: 24px;
    height: 24px;
}

.event-entry-calendar-icon {
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b6474' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='14' height='12.5' rx='2.4'/%3E%3Cpath d='M6.1 3v3M13.9 3v3M3 8.4h14'/%3E%3C/svg%3E");
}

.event-entry-time-icon {
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b6474' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7.2'/%3E%3Cpath d='M10 6.1v4.3l2.8 1.8'/%3E%3C/svg%3E");
}

.event-entry-link-icon {
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b6474' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.1 6.3 6.2 8.2a3 3 0 0 0 4.2 4.3l1.9-2m-0.4-3 1.9-1.9a3 3 0 1 1 4.2 4.3l-1.9 1.9m-7.2 0.6 3-3'/%3E%3C/svg%3E");
}

.event-entry-participants-icon {
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b6474' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.8 16.2v-1a3.3 3.3 0 0 0-3.3-3.3H6.7a3.3 3.3 0 0 0-3.3 3.3v1M8.6 8.7a2.8 2.8 0 1 0 0-5.6 2.8 2.8 0 0 0 0 5.6ZM16.6 16.2v-1a2.8 2.8 0 0 0-2-2.7M12.8 3.2a2.8 2.8 0 0 1 0 5.5'/%3E%3C/svg%3E");
}

.event-entry-optional {
    color: #667085;
    font-weight: 500;
}

.event-entry-submit {
    min-height: 84px;
    border-radius: 22px;
    background: linear-gradient(180deg, #192132 0%, #111827 100%);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.16);
    gap: 14px;
    font-size: 24px;
    font-weight: 800;
}

.event-entry-submit:hover {
    background: linear-gradient(180deg, #202b42 0%, #172033 100%);
}

.event-entry-submit-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-opacity='0.95' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='14' height='12.5' rx='2.4'/%3E%3Cpath d='M6.1 3v3M13.9 3v3M3 8.4h14M7 11.3h2.3M7 14.1h5.2'/%3E%3C/svg%3E");
}

.deadline-calendar-frame {
    margin-bottom: 0;
    overflow: visible;
    padding: 14px 18px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.deadline-nav-group .calendar-range-label {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dfe6f0;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deadline-calendar-root {
    display: grid;
    gap: 12px;
}

.deadline-weekday-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(140px, 1fr));
    gap: 10px;
    min-width: 980px;
}

.deadline-weekday-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid #f5c2cb;
    background: linear-gradient(180deg, #ffe3e6 0%, #f9c4cc 100%);
    color: #7f1d1d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.deadline-day-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.deadline-day-panel-head {
    display: grid;
    gap: 6px;
}

.deadline-day-kicker,
.deadline-day-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.deadline-day-panel-head strong {
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.1;
}

.deadline-day-list,
.deadline-column-list,
.deadline-month-stack {
    display: grid;
    gap: 8px;
    align-content: start;
}

.deadline-empty-state,
.deadline-column-empty {
    color: var(--muted);
    font-size: 14px;
}

.deadline-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(140px, 1fr));
    gap: 10px;
    min-width: 980px;
}

.deadline-week-column,
.deadline-month-cell {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    cursor: pointer;
}

.deadline-week-column {
    min-height: 260px;
    padding: 14px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.deadline-week-column.is-today,
.deadline-month-cell.is-today,
.deadline-year-month .deadline-mini-cell.is-today {
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.deadline-week-column.is-selected,
.deadline-month-cell.is-selected,
.deadline-year-month.is-selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.deadline-column-head {
    display: grid;
    gap: 4px;
}

.deadline-column-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.deadline-column-head strong {
    font-size: 18px;
}

.deadline-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(140px, 1fr));
    gap: 10px;
    min-width: 980px;
}

.deadline-month-cell {
    min-height: 144px;
    padding: 12px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.deadline-month-cell.is-outside {
    background: #fafafa;
    opacity: 0.6;
}

.deadline-month-number {
    font-size: 15px;
    font-weight: 700;
}

.deadline-more-items {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.deadline-item-chip {
    width: 100%;
    border: 0 !important;
    border-radius: 14px !important;
    padding: 10px 12px !important;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(47, 115, 255, 0.16);
}

.deadline-item-chip strong,
.deadline-item-chip span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deadline-item-chip strong {
    font-size: 13px;
    margin-bottom: 4px;
}

.deadline-item-chip span {
    font-size: 12px;
    opacity: 0.92;
}

.deadline-item-chip.is-compact {
    padding: 8px 10px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 18px rgba(47, 115, 255, 0.12);
}

.deadline-item-chip:hover {
    filter: brightness(0.96);
}

.deadline-item-chip.priority-hoch {
    background: linear-gradient(180deg, #ff8f7d 0%, #ee5d48 100%) !important;
    color: white !important;
}

.deadline-item-chip.priority-mittel {
    background: linear-gradient(180deg, #53a3ff 0%, #2f73ff 100%) !important;
    color: white !important;
}

.deadline-item-chip.priority-niedrig {
    background: linear-gradient(180deg, #48b88d 0%, #22936c 100%) !important;
    color: white !important;
}

.deadline-item-chip.event-chip {
    background: linear-gradient(180deg, #53a3ff 0%, #2f73ff 100%) !important;
    color: white !important;
}

.deadline-year-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.deadline-year-month {
    border: 1px solid #e5e7eb !important;
    border-radius: 18px !important;
    background: white !important;
    color: var(--text) !important;
    padding: 14px !important;
    display: grid !important;
    gap: 10px;
    text-align: left;
}

.deadline-year-month:hover {
    background: #f8fbff !important;
}

.deadline-year-month-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: capitalize;
}

.deadline-mini-weekdays,
.deadline-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.deadline-mini-weekdays span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.deadline-mini-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    border-radius: 8px;
    font-size: 10px;
    background: #f9fafb;
    color: #374151;
}

.deadline-mini-cell.is-outside {
    opacity: 0.4;
}

.deadline-mini-cell.has-item {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
}

.deadline-management-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: start;
}

.deadline-management-grid.is-single-card {
    grid-template-columns: 1fr;
}

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

.calendar-section-card {
    display: grid;
    gap: 18px;
}

.calendar-rule-box {
    background: #f9fafb;
}

.calendar-local-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.calendar-local-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: white;
    font-weight: 700;
}

.calendar-local-link:hover {
    background: #f3f4f6;
}

.calendar-local-link.is-active {
    background: #111827;
    border-color: #111827;
    color: white;
}

.calendar-local-link.is-active:hover {
    background: #030712;
}

.calendar-table {
    margin-top: 4px;
}

.calendar-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #f3f4f6;
    color: #374151;
}

.calendar-chip.priority-hoch {
    background: #fef2f2;
    color: #b91c1c;
}

.calendar-chip.priority-mittel {
    background: #fffbeb;
    color: #b45309;
}

.calendar-chip.priority-niedrig {
    background: #ecfdf5;
    color: #166534;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.filter-toolbar .btn-inline {
    width: auto;
}

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

.admin-accordion {
    display: grid;
    gap: 14px;
}

.admin-detail {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.admin-summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 700;
    background: #f9fafb;
}

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

.admin-detail[open] .admin-summary {
    border-bottom: 1px solid #e5e7eb;
}

.admin-detail form {
    padding: 18px;
}

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

.entry-form,
.stack {
    display: grid;
    gap: 14px;
}

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

.stack {
    align-content: start;
}

.span-2 {
    grid-column: span 2;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

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

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: white;
    color: var(--text);
}

textarea {
    resize: vertical;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entry-form.login-form {
    display: grid;
    gap: 14px;
}

button,
.btn-inline {
    border: 0;
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

button:hover,
.btn-inline:hover {
    background: var(--accent-dark);
}

button:disabled,
.btn-inline.is-disabled,
.btn-inline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: white !important;
    color: #111827 !important;
    border: 1px solid #111827 !important;
}

.time-change-popover-close:hover {
    background: #f8fafc;
    color: #111827;
}

.pause-blocked-popover-close:hover {
    background: #fff7f7;
    color: #991b1b;
}

.btn-inline.is-pause-blocked {
    background: #fff1f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecdd3 !important;
}

.btn-inline.is-pause-blocked:hover {
    background: #ffe4e6 !important;
    color: #881337 !important;
}

.btn-danger {
    background: #b91c1c !important;
    color: white !important;
    border: 1px solid #b91c1c !important;
}

.small {
    padding: 9px 12px;
    font-size: 0.9rem;
}

.demo-access-item .small,
.access-list-meta .small,
.login-auth-legal.small,
.access-hint.small {
    padding: 0;
}

.timer-actions,
.form-actions,
.inline-actions,
.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table-wrap {
    overflow-x: auto;
}

.time-change-page-layout {
    display: grid;
    gap: 18px;
}

.time-change-detail-stack,
.time-change-note-block,
.time-change-admin-form {
    display: grid;
    gap: 8px;
}

.time-change-note-block strong {
    font-size: 13px;
    color: #334155;
}

.time-change-note-block span {
    line-height: 1.55;
}

.time-change-admin-form {
    min-width: 240px;
}

.time-change-admin-form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.muted {
    color: var(--muted);
    font-size: 0.92rem;
}

.status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 700;
}

.status.submitted {
    background: var(--warning);
    color: #92400e;
}

.status.approved {
    background: var(--success);
    color: #166534;
}

.status.rejected,
.status.correction_requested {
    background: var(--error);
    color: #b91c1c;
}

.review-form {
    display: grid;
    gap: 8px;
    min-width: 260px;
}

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

    .demo-access-item,
    .access-list-item {
        align-items: stretch;
        flex-direction: column;
    }

    .demo-access-item button,
    .access-list-item button,
    .access-invite-actions > * {
        width: 100%;
    }
}

@media (max-width: 1120px) {
    .deadline-management-grid,
    .workflow-layout,
    .calendar-guidance-grid,
    .calendar-sections-grid,
    .reports-grid,
    .filter-toolbar {
        grid-template-columns: 1fr;
    }

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

    .calendar-panel-head,
    .entry-form-heading {
        flex-direction: column;
    }

    .deadline-calendar-toolbar {
        padding: 16px 16px 0;
    }

    .deadline-calendar-frame {
        padding: 12px 16px 16px;
    }

    .calendar-toolbar-primary {
        width: 100%;
        flex-basis: 100%;
    }

    .deadline-nav-group {
        grid-template-columns: 52px 196px 52px 78px;
    }

    .deadline-view-group {
        min-width: 0;
    }

    .calendar-entry-popover-anchor {
        flex: 0 0 auto;
    }

    .calendar-entry-popover {
        right: auto;
        left: 0;
        width: min(100%, 520px);
    }

    .active-booking-body {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .active-booking-timer-box {
        grid-column: 1 / -1;
        justify-items: start;
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .content {
        padding: 18px;
    }

    .dashboard-top-cards {
        justify-content: flex-start;
    }

    .dashboard-top-cards > .top-summary-card {
        width: 100%;
        max-width: none;
        flex-basis: 100%;
    }

    .deadline-year-grid {
        grid-template-columns: 1fr;
    }

    .topbar-inner,
    .panel-head,
    .entry-form {
        grid-template-columns: 1fr;
        display: grid;
    }

    .menu {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-logo {
        height: 48px;
        max-width: 100%;
    }

    .entry-form,
    .span-2 {
        grid-column: auto;
    }

    .deadline-calendar-kicker {
        padding: 16px 16px 12px;
    }

    .deadline-calendar-toolbar {
        padding: 14px 16px 0;
    }

    .deadline-calendar-frame {
        padding: 12px 16px 16px;
    }

    .deadline-nav-group {
        width: 100%;
        justify-content: flex-start;
    }

    .calendar-toolbar-primary,
    .calendar-toolbar-secondary {
        width: 100%;
        margin-left: 0;
    }

    .calendar-toolbar-secondary {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .deadline-nav-group {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        gap: 12px;
    }

    .deadline-nav-button.is-today {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .deadline-nav-group .calendar-range-label {
        padding: 0 14px;
    }

    .deadline-view-group {
        min-width: 0;
        width: 100%;
    }

    .calendar-entry-trigger {
        width: 100%;
        min-width: 0;
    }

    .calendar-entry-popover-anchor {
        width: 100%;
    }

    .calendar-entry-popover {
        left: 0;
        right: 0;
        width: 100%;
    }

    .event-entry-popover {
        padding: 22px 18px 20px;
        gap: 20px;
        border-radius: 24px;
    }

    .event-entry-popover-head strong {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .event-entry-popover-head .login-subtitle {
        font-size: 16px;
    }

    .event-entry-form {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .event-entry-field,
    .event-entry-form .span-2 {
        grid-column: auto;
    }

    .entry-cards-grid,
    .active-booking-body {
        grid-template-columns: 1fr;
    }

    .active-booking-icon {
        display: none;
    }

    .active-booking-customer {
        font-size: 28px;
    }

    .active-booking-meta-grid p {
        display: grid;
        gap: 2px;
    }

    .active-booking-meta-grid span {
        min-width: 0;
    }
}

.leave-balance-summary-card {
    align-items: flex-start;
}

.leave-days-summary-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.leave-summary-subline {
    margin: 0;
}

.leave-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(320px, 0.95fr);
    gap: 20px;
    align-items: start;
}

.leave-calendar-card,
.leave-sidebar-card,
.leave-history-section,
.leave-review-section,
.leave-admin-card {
    display: grid;
    gap: 18px;
}

.leave-sidebar {
    display: grid;
    gap: 20px;
}

.leave-calendar-head {
    align-items: start;
}

.leave-calendar-toolbar {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.leave-calendar-frame {
    min-height: 700px;
}

.leave-calendar-root {
    min-height: 640px;
}

.leave-month-view {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.leave-weekday-head {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    padding: 0 8px;
}

.leave-day-cell {
    min-height: 136px;
    padding: 12px;
    border-radius: 18px;
    background: #f7f8fb;
    border: 1px solid #e1e4ec;
    display: grid;
    gap: 10px;
    align-content: start;
}

.leave-day-cell.is-muted {
    opacity: 0.55;
}

.leave-day-label {
    font-size: 15px;
    font-weight: 700;
    color: #122033;
}

.leave-day-items,
.leave-week-items {
    display: grid;
    gap: 6px;
}

.leave-calendar-item {
    border: 0;
    border-radius: 12px;
    padding: 8px 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.leave-calendar-item.status-approved,
.calendar-chip.status-approved {
    background: #dff6e7;
    color: #146a36;
}

.leave-calendar-item.status-submitted,
.calendar-chip.status-pending,
.calendar-chip.status-submitted,
.calendar-chip.status-draft,
.calendar-chip.status-cancel_requested {
    background: #fff0c9;
    color: #8a5d00;
}

.leave-calendar-item.status-rejected,
.leave-calendar-item.status-cancelled,
.calendar-chip.status-rejected,
.calendar-chip.status-cancelled {
    background: #fde0de;
    color: #9f2f2f;
}

.leave-calendar-item.special-fixed_leave {
    background: #dde8ff;
    color: #294f8f;
}

.leave-calendar-item.special-optional_leave {
    background: #e9f6ff;
    color: #1e6087;
}

.leave-calendar-item.special-school_holiday {
    background: #f4e8ff;
    color: #7144a9;
}

.leave-calendar-item.special-bridge_day {
    background: #e8f7f0;
    color: #1b6b55;
}

.leave-calendar-item.is-inline {
    display: inline-flex;
    align-items: center;
    box-shadow: none;
}

.leave-day-more {
    font-size: 12px;
    color: #6b7280;
    padding-left: 2px;
}

.leave-week-view {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.leave-week-column {
    min-height: 540px;
    border-radius: 20px;
    border: 1px solid #e1e4ec;
    background: #f7f8fb;
    padding: 14px;
    display: grid;
    gap: 12px;
    align-content: start;
}

.leave-week-column header {
    display: grid;
    gap: 2px;
}

.leave-week-column header strong {
    font-size: 15px;
}

.leave-week-column header span {
    font-size: 12px;
    color: #6b7280;
}

.leave-list-view table {
    width: 100%;
    border-collapse: collapse;
}

.leave-list-view th,
.leave-list-view td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.leave-balance-metrics {
    display: grid;
    gap: 10px;
}

.leave-metric-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #334155;
}

.leave-metric-row strong {
    color: #0f172a;
}

.leave-metric-row.is-emphasized {
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #e5e7eb;
}

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

.leave-upcoming-item {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: #f7f8fb;
    border: 1px solid #e1e4ec;
}

.leave-upcoming-main {
    display: grid;
    gap: 4px;
}

.leave-upcoming-main strong {
    font-size: 15px;
}

.leave-upcoming-main span {
    font-size: 13px;
    color: #5b6472;
}

.leave-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.leave-inline-form-stack {
    display: grid;
    gap: 8px;
}

.leave-inline-form input[type="text"],
.leave-inline-form input[type="date"],
.leave-inline-form input[type="number"],
.leave-inline-form select {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #d3d8e3;
    background: #fff;
}

.leave-history-section .calendar-chip,
.leave-review-section .calendar-chip {
    white-space: nowrap;
}

.leave-conflict-badge {
    display: inline-flex;
    margin: 4px 4px 0 0;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
}

.leave-conflict-badge.severity-info {
    background: #e8efff;
    color: #355fb0;
}

.leave-conflict-badge.severity-warning {
    background: #fff0c9;
    color: #8a5d00;
}

.leave-conflict-badge.severity-error,
.leave-conflict-badge.severity-blocking {
    background: #fde0de;
    color: #9f2f2f;
}

.leave-review-actions {
    display: grid;
    gap: 10px;
}

.leave-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.leave-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.leave-admin-card form select,
.leave-admin-card form input,
.leave-admin-card form textarea,
.leave-history-section input,
.leave-review-section input,
.leave-history-section select,
.leave-review-section select {
    width: 100%;
}

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

.leave-profile-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #e1e4ec;
    background: #f7f8fb;
}

.leave-profile-header {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
}

@media (max-width: 1180px) {
    .leave-page-layout,
    .leave-admin-grid {
        grid-template-columns: 1fr;
    }

    .leave-week-view,
    .leave-month-view,
    .leave-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .leave-month-view,
    .leave-week-view,
    .leave-profile-grid,
    .leave-profile-card {
        grid-template-columns: 1fr;
    }

    .leave-calendar-toolbar {
        justify-items: start;
    }
}

.public-download-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(249, 196, 204, 0.28), transparent 28%),
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.45), transparent 24%),
        var(--bg);
}

.public-download-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 20px 48px;
}

.public-download-hero {
    display: grid;
    gap: 24px;
    border-radius: 28px;
    padding: 30px;
}

.public-download-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.public-download-head h1 {
    margin: 12px 0 10px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 0.98;
}

.public-download-primary {
    min-height: 48px;
    padding-inline: 18px;
}

.public-download-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 18px;
}

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

.public-download-card {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.public-download-card h2 {
    margin: 0;
    font-size: 22px;
}

.public-download-facts {
    display: grid;
    gap: 12px;
    margin: 0;
}

.public-download-facts div {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.public-download-facts div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.public-download-facts dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.public-download-facts dd {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    word-break: break-word;
}

.public-download-hash {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px !important;
    line-height: 1.45;
}

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

.public-download-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
    line-height: 1.5;
}

.public-download-empty {
    display: grid;
    gap: 8px;
    padding: 10px 2px 2px;
}

.public-download-empty h2 {
    margin: 0;
}

@media (max-width: 980px) {
    .public-download-grid,
    .public-download-grid-secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .public-download-shell {
        padding-inline: 14px;
    }

    .public-download-hero {
        padding: 22px 18px;
    }

    .public-download-card {
        padding: 18px;
    }
}
