:root {
    --page-bg: #f4f7ff;
    --card-bg: rgba(255, 255, 255, 0.88);
    --surface: #ffffff;
    --surface-strong: #1f2c42;
    --surface-strong-2: #24344d;
    --text-main: #1d2738;
    --text-soft: #72809a;
    --border-soft: rgba(36, 52, 77, 0.08);
    --shadow-lg: 0 22px 44px rgba(66, 88, 140, 0.16);
    --shadow-md: 0 12px 26px rgba(66, 88, 140, 0.12);
    --brand-start: #7e38ff;
    --brand-end: #5a6bff;
    --brand-solid: #6858ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(126, 56, 255, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(90, 107, 255, 0.1), transparent 24%),
        linear-gradient(180deg, #fbfcff 0%, #edf2ff 100%);
}


body.publish-overlay-active {
    overflow: hidden;
}

.app-container {
    width: min(100%, 1980px);
    margin-inline: auto;
    padding-left: clamp(1rem, 2vw, 2.5rem);
    padding-right: clamp(1rem, 2vw, 2.5rem);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(29, 39, 56, 0.06);
    box-shadow: 0 10px 28px rgba(30, 43, 70, 0.05);
}

.topbar-inner {
    min-height: 84px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.2rem;
    padding: 0.65rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.brand-mark {
    height: 44px;
    width: auto;
    max-width: 160px;
    display: block;
    object-fit: contain;
}

.brand-title {
    color: var(--text-main);
    font-size: clamp(1.4rem, 1rem + 1vw, 2.1rem);
    font-weight: 800;
    line-height: 1;
}

.brand-subtitle {
    margin-top: 0.28rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
}

.topbar-tools-slot {
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.topbar-tools-slot:empty {
    min-height: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
    padding: 0.5rem 0.55rem;
    border: 1px solid rgba(124, 142, 182, 0.12);
    border-radius: 999px;
    background:
        radial-gradient(circle at top, rgba(131, 104, 255, 0.1), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.86));
    box-shadow:
        0 18px 42px rgba(36, 52, 77, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        inset 0 -1px 0 rgba(124, 142, 182, 0.06);
    position: relative;
    overflow: visible;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.15rem;
    height: 3.15rem;
    padding: 0;
    border-radius: 1.3rem;
    color: #4f5d76;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    isolation: isolate;
    transition:
        transform 0.24s ease,
        color 0.24s ease,
        background-color 0.24s ease,
        box-shadow 0.24s ease;
}

.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.88), transparent 48%),
        linear-gradient(145deg, rgba(126, 56, 255, 0.16), rgba(90, 107, 255, 0.08));
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 0.24s ease, transform 0.24s ease;
    z-index: -1;
}

.nav-link i {
    font-size: 1.18rem;
    line-height: 1;
    transition: transform 0.24s ease, filter 0.24s ease;
}

.nav-link-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.7rem);
    transform: translate(-50%, -0.35rem) scale(0.94);
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(20, 30, 47, 0.94);
    color: #f7f9ff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
    max-width: min(28ch, calc(100vw - 2rem));
    text-overflow: ellipsis;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15, 24, 40, 0.24);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
}

.nav-link-label::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% - 0.15rem);
    width: 0.7rem;
    height: 0.7rem;
    background: rgba(20, 30, 47, 0.94);
    transform: translateX(-50%) rotate(45deg);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
    color: var(--brand-solid);
    transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link:focus-visible::before,
.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover i,
.nav-link:focus-visible i,
.nav-link.active i {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 14px rgba(104, 88, 255, 0.26));
}

.nav-link:hover .nav-link-label,
.nav-link:focus-visible .nav-link-label {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
}

.nav-link.active {
    background: rgba(104, 88, 255, 0.09);
    box-shadow:
        inset 0 0 0 1px rgba(104, 88, 255, 0.1),
        0 18px 30px rgba(104, 88, 255, 0.16);
}

.nav-link.active .nav-link-label {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
}

.nav-link.active .nav-link-label::after {
    background: var(--brand-end);
}

.nav-link:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(104, 88, 255, 0.18),
        0 16px 28px rgba(104, 88, 255, 0.16);
}

.page-main {
    padding: clamp(1.25rem, 2vw, 2rem) 0 2rem;
}

.messages-stack {
    margin-bottom: 1rem;
}

.planner-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    padding: clamp(1.1rem, 2vw, 1.7rem);
    box-shadow: var(--shadow-lg);
}

.hero-panel .planner-card {
    position: relative;
    overflow: hidden;
}

.hero-panel .planner-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -45% auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 56, 255, 0.14) 0%, rgba(126, 56, 255, 0) 72%);
    pointer-events: none;
}

.section-kicker {
    margin-bottom: 0.8rem;
    color: var(--brand-solid);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.73rem;
    font-weight: 800;
}

.page-title {
    font-size: clamp(1.7rem, 1.2rem + 1.1vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.page-subtitle {
    max-width: 62ch;
    color: var(--text-soft);
    font-size: 1rem;
}

.meta-label,
.active-day-kicker,
.week-trigger-kicker,
.week-picker-label {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
}

.meta-label {
    color: #7b869e;
}

.active-day-chip {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(31, 44, 66, 0.96), rgba(61, 74, 111, 0.96));
    color: #fff;
    box-shadow: var(--shadow-md);
}

.active-day-chip strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.08rem;
}

.calendar-header-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.35rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(36, 52, 77, 0.06);
    box-shadow: 0 14px 32px rgba(36, 52, 77, 0.08);
    backdrop-filter: blur(18px);
    flex: 0 1 auto;
    min-width: 0;
}

.week-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.calendar-header-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, rgba(36, 52, 77, 0), rgba(36, 52, 77, 0.12), rgba(36, 52, 77, 0));
}

.planner-note-btn {
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(36, 52, 77, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(245, 247, 251, 0.96), rgba(232, 237, 244, 0.92));
    color: #5b687f;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 14px 28px rgba(36, 52, 77, 0.08);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.planner-note-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
}

.planner-note-btn-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.planner-note-btn-label {
    font-size: 0.95rem;
    font-weight: 800;
}

.planner-note-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(54, 72, 117, 0.12);
    border-color: rgba(128, 138, 154, 0.22);
}

.planner-note-btn.has-note {
    background: linear-gradient(180deg, rgba(255, 247, 214, 0.98), rgba(255, 237, 168, 0.94));
    color: #8a6512;
    border-color: rgba(222, 189, 76, 0.28);
}

.planner-note-btn.has-note .planner-note-btn-icon {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.planner-note-textarea {
    min-height: 160px;
    border-radius: 18px;
    padding: 1rem 1.05rem;
    border-color: rgba(36, 52, 77, 0.08);
    resize: vertical;
}

.week-nav-btn,
.week-trigger {
    border: 1px solid rgba(36, 52, 77, 0.08);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 28px rgba(36, 52, 77, 0.08);
}

.week-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    color: var(--surface-strong);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.week-nav-btn:hover,
.week-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(54, 72, 117, 0.12);
    color: var(--brand-solid);
}

.week-trigger {
    min-width: 0;
    min-height: 44px;
    padding: 0.45rem 0.9rem;
    border-radius: 18px;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
        "kicker main"
        "sub sub";
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.08rem;
    color: var(--text-main);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.week-trigger-static:hover {
    transform: none;
    box-shadow: 0 14px 28px rgba(36, 52, 77, 0.08);
    color: var(--text-main);
}

.week-trigger-kicker {
    grid-area: kicker;
    color: var(--brand-solid);
    margin: 0;
    align-self: end;
}

.week-trigger-main {
    grid-area: main;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.week-trigger-sub {
    grid-area: sub;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
}

.week-picker-modal .modal-dialog {
    max-width: min(1180px, calc(100vw - 2rem));
}

.week-picker-content {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(126, 56, 255, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.98));
    box-shadow: 0 34px 68px rgba(38, 52, 87, 0.22);
    overflow: hidden;
}

.week-picker-header {
    padding: 1.5rem 1.5rem 0.75rem;
}

.week-picker-title {
    font-size: clamp(1.5rem, 1.1rem + 0.8vw, 2.2rem);
    font-weight: 800;
}

.week-picker-close {
    border-radius: 14px;
    padding: 0.9rem;
    background-color: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 24px rgba(36, 52, 77, 0.08);
}

.week-picker-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 0 1.5rem 1.5rem;
}

.week-picker-sidebar {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.week-picker-selected-card {
    padding: 1.2rem;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(160deg, #202e48, #3b476a);
    box-shadow: var(--shadow-md);
}

.week-picker-selected-card strong {
    display: block;
    margin: 0.35rem 0 0.2rem;
    font-size: 1.7rem;
    font-weight: 800;
}

.week-picker-selected-card span:last-child {
    color: rgba(255, 255, 255, 0.78);
}

.week-picker-quick-actions {
    display: grid;
    gap: 0.7rem;
}

.week-quick-btn {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(36, 52, 77, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    font-weight: 800;
    color: var(--surface-strong);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.week-quick-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(104, 88, 255, 0.24);
    box-shadow: 0 16px 30px rgba(43, 61, 101, 0.1);
}

.week-picker-calendar {
    min-width: 0;
    padding: 1rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(126, 56, 255, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 248, 255, 0.94));
    border: 1px solid rgba(36, 52, 77, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.week-picker-top-strip {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(25, 37, 61, 0.98), rgba(78, 68, 163, 0.96));
    color: #fff;
    box-shadow: 0 20px 40px rgba(46, 54, 112, 0.18);
}

.week-picker-top-strip strong {
    display: block;
    font-size: 1rem;
}

.week-picker-top-label {
    margin-bottom: 0.15rem;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 800;
}

.week-picker-orb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff, #c9b8ff 35%, #7e38ff 72%);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08), 0 0 30px rgba(171, 137, 255, 0.6);
}

.week-picker-controls {
    display: grid;
    grid-template-columns: repeat(2, 48px) 1fr repeat(2, 48px);
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-control-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(36, 52, 77, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--surface-strong);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(36, 52, 77, 0.08);
}

.calendar-current-label {
    text-align: center;
    font-size: clamp(1.1rem, 0.9rem + 0.5vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.calendar-weekdays,
.calendar-week-row {
    display: grid;
    grid-template-columns: 72px repeat(7, minmax(0, 1fr));
    gap: 0.7rem;
}

.calendar-weekdays {
    margin-bottom: 0.6rem;
    color: var(--text-soft);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}

.calendar-weekdays span:first-child {
    opacity: 0;
}

.calendar-grid-wrap {
    overflow: hidden;
}

.calendar-grid {
    display: grid;
    gap: 0.55rem;
}

.calendar-grid.month-enter {
    animation: monthSlide 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.calendar-week-badge,
.calendar-day-cell {
    border: 1px solid rgba(36, 52, 77, 0.08);
    background: rgba(255, 255, 255, 0.92);
    position: relative;
    z-index: 1;
    transition:
        transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.24s ease,
        border-color 0.24s ease,
        background 0.24s ease,
        color 0.24s ease;
}

.calendar-week-badge {
    min-height: 74px;
    border-radius: 24px;
    font-weight: 800;
    color: var(--brand-solid);
}

.calendar-week-row {
    position: relative;
    isolation: isolate;
    padding: 10px;
}

.calendar-week-row::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background:
        linear-gradient(90deg, rgba(126, 56, 255, 0.08), rgba(90, 107, 255, 0.06)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.4));
    opacity: 0;
    transform: scale(0.97) translateY(10px);
    transition:
        opacity 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.32s ease,
        background 0.32s ease;
    z-index: 0;
}

.calendar-week-row::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 28px;
    background: radial-gradient(circle at center, rgba(126, 56, 255, 0.24), rgba(90, 107, 255, 0.08), transparent 72%);
    opacity: 0;
    filter: blur(16px);
    transform: scale(0.92);
    transition:
        opacity 0.32s ease,
        transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 0;
}

.calendar-week-row:hover::before {
    opacity: 1;
    transform: scale(1) translateY(0);
    box-shadow:
        inset 0 0 0 1px rgba(132, 112, 255, 0.16),
        0 22px 38px rgba(72, 87, 146, 0.12);
}

.calendar-week-row:hover::after {
    opacity: 1;
    transform: scale(0.99);
}

.calendar-week-row.is-selected-week::before {
    opacity: 1;
    transform: scale(1) translateY(0);
    background:
        linear-gradient(90deg, rgba(126, 56, 255, 0.17), rgba(90, 107, 255, 0.11)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 246, 255, 0.82));
    box-shadow:
        inset 0 0 0 1px rgba(123, 95, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 28px 48px rgba(76, 85, 151, 0.18);
}

.calendar-week-row.is-selected-week::after {
    opacity: 1;
    transform: scale(1.04);
    background: radial-gradient(circle at center, rgba(126, 56, 255, 0.34), rgba(90, 107, 255, 0.14), transparent 72%);
}

.calendar-week-row.is-active-week::before {
    opacity: 1;
    transform: scale(1) translateY(0);
    background:
        linear-gradient(90deg, rgba(26, 188, 118, 0.2), rgba(48, 211, 125, 0.12)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 255, 248, 0.86));
    box-shadow:
        inset 0 0 0 1px rgba(37, 176, 110, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 24px 40px rgba(34, 161, 104, 0.16);
}

.calendar-week-row.is-active-week::after {
    opacity: 1;
    transform: scale(1.01);
    background: radial-gradient(circle at center, rgba(38, 198, 128, 0.24), rgba(22, 163, 74, 0.1), transparent 74%);
}

.calendar-day-cell {
    min-height: 74px;
    padding: 0.8rem 0.7rem;
    border-radius: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calendar-week-row:hover .calendar-day-cell,
.calendar-week-row:hover .calendar-week-badge {
    transform: translateY(-3px) scale(1.012);
    box-shadow:
        0 16px 28px rgba(39, 54, 92, 0.11),
        0 4px 10px rgba(104, 88, 255, 0.06);
    border-color: rgba(104, 88, 255, 0.22);
}

.calendar-day-cell.is-selected-week,
.calendar-week-badge.is-selected-week {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(242, 238, 255, 0.98)),
        linear-gradient(135deg, rgba(126, 56, 255, 0.04), rgba(90, 107, 255, 0.04));
}

.calendar-day-cell.is-selected-week,
.calendar-week-badge.is-selected-week {
    border-color: rgba(104, 88, 255, 0.42);
    box-shadow:
        0 16px 28px rgba(90, 96, 180, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.calendar-week-row.is-selected-week .calendar-day-cell,
.calendar-week-row.is-selected-week .calendar-week-badge {
    border-color: rgba(126, 97, 255, 0.4);
}

.calendar-day-cell.is-active-week,
.calendar-week-badge.is-active-week {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(240, 255, 245, 0.98)),
        linear-gradient(135deg, rgba(22, 163, 74, 0.04), rgba(52, 211, 153, 0.05));
    border-color: rgba(41, 171, 109, 0.34);
    box-shadow:
        0 12px 22px rgba(34, 161, 104, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.calendar-week-row.is-active-week .calendar-week-badge {
    color: #15915a;
}

.calendar-week-row.is-active-week .day-number,
.calendar-week-row.is-active-week .calendar-week-badge {
    color: #15915a;
}

.calendar-week-row.is-active-week .day-meta {
    color: #6c907d;
}

.calendar-week-row.is-active-week.is-selected-week::before {
    background:
        linear-gradient(90deg, rgba(26, 188, 118, 0.2), rgba(126, 56, 255, 0.14)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.86));
    box-shadow:
        inset 0 0 0 1px rgba(61, 168, 120, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 28px 48px rgba(71, 117, 118, 0.18);
}

.calendar-day-cell.is-selected-day {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 44%),
        linear-gradient(145deg, rgba(126, 56, 255, 0.3), rgba(90, 107, 255, 0.22));
    border-color: rgba(104, 88, 255, 0.58);
    box-shadow:
        0 24px 40px rgba(97, 88, 201, 0.22),
        0 8px 18px rgba(90, 107, 255, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.calendar-week-row.is-selected-week .calendar-day-cell,
.calendar-week-row.is-selected-week .calendar-week-badge {
    transform: translateY(-2px);
}

.calendar-day-cell.is-today .day-number {
    color: var(--brand-solid);
}

.calendar-week-badge:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    border-color: transparent;
    box-shadow:
        0 18px 30px rgba(104, 88, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.calendar-day-cell:hover {
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 44%),
        linear-gradient(145deg, rgba(126, 56, 255, 0.12), rgba(90, 107, 255, 0.08));
}

.calendar-day-cell:hover .day-number {
    color: var(--brand-solid);
}

.calendar-day-cell.is-outside-month {
    opacity: 0.45;
}

.day-number {
    font-size: 1.15rem;
    font-weight: 800;
}

.day-meta {
    color: var(--text-soft);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.btn-save {
    min-height: 52px;
    border: none;
    border-radius: 16px;
    padding-inline: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    box-shadow: 0 14px 28px rgba(104, 88, 255, 0.28);
}

.btn-soft {
    min-width: 52px;
    min-height: 52px;
    border-radius: 16px;
    color: var(--surface-strong);
    border-color: rgba(36, 52, 77, 0.12);
}

.calendar-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.calendar-meta>div {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(36, 52, 77, 0.05);
}

.calendar-meta strong {
    display: block;
    margin-top: 0.45rem;
    font-size: 1.2rem;
}

.planner-frame {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.planner-plan-publish-form {
    flex: 0 0 auto;
    margin: 0;
}

.planner-publish-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    border: 0;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(245, 247, 251, 0.98), rgba(232, 237, 244, 0.96));
    color: #48556d;
    box-shadow:
        0 14px 26px rgba(77, 90, 118, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(124, 138, 161, 0.18);
    transition:
        transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.24s ease,
        filter 0.24s ease,
        background 0.28s ease,
        border-color 0.24s ease,
        color 0.24s ease;
}

.planner-publish-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.3) 50%, transparent 80%);
    transform: translateX(-140%);
    transition: transform 0.65s ease;
    z-index: -1;
}

.planner-publish-btn:hover {
    transform: translateY(-2px) scale(1.012);
    box-shadow:
        0 18px 34px rgba(77, 90, 118, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    filter: saturate(1.02);
    border-color: rgba(124, 138, 161, 0.28);
}

.planner-publish-btn:hover::before {
    transform: translateX(140%);
}

.planner-publish-btn:active {
    transform: translateY(0) scale(0.992);
}

.planner-publish-btn:disabled {
    opacity: 1;
    cursor: default;
}

.planner-publish-btn.is-published {
    background:
        linear-gradient(135deg, rgba(20, 180, 115, 1), rgba(34, 197, 94, 0.94));
    color: #fff;
    border-color: transparent;
    box-shadow:
        0 18px 34px rgba(27, 163, 99, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.planner-publish-btn.is-published::after {
    content: "";
    position: absolute;
    inset: -18%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 60%);
    opacity: 0.7;
    animation: publishPulse 2.8s ease-in-out infinite;
    z-index: -1;
}

.planner-publish-btn-glow {
    position: absolute;
    inset: auto auto -16px 18px;
    width: 92px;
    height: 24px;
    background: rgba(123, 137, 162, 0.18);
    filter: blur(18px);
    border-radius: 999px;
    opacity: 0.48;
    z-index: -1;
}

.planner-publish-btn.is-published .planner-publish-btn-glow {
    background: rgba(56, 214, 133, 0.34);
    opacity: 0.72;
}

.planner-publish-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
}

.planner-publish-btn.is-published .planner-publish-btn-icon {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.planner-publish-btn-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.planner-publish-btn-label {
    font-size: 0.95rem;
    font-weight: 800;
}

.planner-publish-btn-meta {
    display: none;
}

.planner-publish-btn.is-published .planner-publish-btn-meta {
    color: rgba(255, 255, 255, 0.78);
}

.publish-confirm-modal .modal-dialog {
    max-width: min(760px, calc(100vw - 2rem));
}

.publish-confirm-content {
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(126, 56, 255, 0.16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(32, 197, 143, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 255, 0.98));
    box-shadow: 0 38px 80px rgba(35, 49, 82, 0.24);
}

.publish-confirm-header {
    padding: 1.65rem 1.65rem 0.8rem;
}

.publish-confirm-title {
    font-size: clamp(1.7rem, 1.25rem + 1vw, 2.5rem);
    font-weight: 800;
}

.publish-confirm-subtitle {
    max-width: 58ch;
    color: var(--text-soft);
    font-size: 0.98rem;
}

.publish-confirm-shell {
    position: relative;
    display: grid;
    gap: 1.25rem;
    padding: 0 1.65rem 1.65rem;
}

.publish-confirm-spotlight {
    position: absolute;
    inset: 0 auto auto 1.2rem;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(126, 56, 255, 0.2), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.publish-confirm-summary {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.2rem;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 255, 0.96));
    border: 1px solid rgba(90, 107, 255, 0.12);
    box-shadow:
        0 18px 38px rgba(66, 88, 140, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.publish-confirm-summary-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: var(--brand-solid);
    font-size: 1.35rem;
    background:
        linear-gradient(135deg, rgba(126, 56, 255, 0.1), rgba(90, 107, 255, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.publish-confirm-summary-copy {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.publish-confirm-summary-label {
    color: var(--brand-solid);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.publish-confirm-summary-copy strong {
    color: var(--surface-strong);
    font-size: clamp(1.15rem, 1rem + 0.5vw, 1.55rem);
    line-height: 1.15;
    font-weight: 800;
}

.publish-confirm-summary-copy span:last-child {
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 600;
}

.publish-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.publish-confirm-actions .btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 54px;
    padding: 0.9rem 1.3rem;
    border-radius: 18px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.publish-confirm-cancel {
    min-width: 168px;
    color: #5a667d;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 246, 252, 0.96));
    border: 1px solid rgba(124, 138, 161, 0.22);
    box-shadow:
        0 14px 28px rgba(66, 88, 140, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.publish-confirm-cancel:hover {
    transform: translateY(-1px);
    color: #44526b;
    border-color: rgba(104, 88, 255, 0.18);
    box-shadow:
        0 18px 34px rgba(66, 88, 140, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.publish-confirm-cancel:active {
    transform: translateY(0);
}

.publish-confirm-submit {
    overflow: hidden;
    border: 1px solid rgba(104, 88, 255, 0.14);
    color: #fff;
    background: linear-gradient(135deg, #6a42ff, #1fca8a);
    box-shadow:
        0 18px 34px rgba(67, 91, 173, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.publish-confirm-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.26) 48%, transparent 82%);
    transform: translateX(-135%);
    transition: transform 0.7s ease;
}

.publish-confirm-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 40px rgba(67, 91, 173, 0.3);
    filter: saturate(1.06);
}

.publish-confirm-submit:hover::before {
    transform: translateX(135%);
}

.publish-confirm-submit:active {
    transform: translateY(0);
}

.publish-confirm-submit:disabled {
    opacity: 0.72;
    pointer-events: none;
}

.publish-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    overflow: hidden;
    perspective: 1400px;
}

.publish-success-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(126, 56, 255, 0.18), transparent 32%),
        radial-gradient(circle at bottom left, rgba(90, 107, 255, 0.14), transparent 30%),
        radial-gradient(circle at bottom right, rgba(73, 199, 173, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(248, 250, 255, 0.88), rgba(237, 243, 255, 0.9));
    backdrop-filter: blur(16px);
    animation: publishOverlayFade 1.2s ease forwards;
}

.publish-success-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    animation: publishGlowPulse 1.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.publish-success-glow-one {
    width: 32vw;
    height: 32vw;
    min-width: 320px;
    min-height: 320px;
    background: radial-gradient(circle, rgba(126, 56, 255, 0.18), transparent 66%);
}

.publish-success-glow-two {
    width: 52vw;
    height: 52vw;
    min-width: 460px;
    min-height: 460px;
    background: radial-gradient(circle, rgba(73, 199, 173, 0.14), transparent 68%);
    animation-delay: 0.12s;
}

.publish-success-glow-three {
    width: 24vw;
    height: 24vw;
    min-width: 260px;
    min-height: 260px;
    background: radial-gradient(circle, rgba(156, 223, 255, 0.22), transparent 70%);
    animation-delay: 0.2s;
}

.publish-success-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 1rem;
    width: min(560px, calc(100vw - 2.5rem));
    padding: 3.2rem 2rem 2.4rem;
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 255, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 30px 72px rgba(66, 88, 140, 0.18);
    overflow: hidden;
    animation: publishCardIn 1s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.publish-success-card::before {
    content: "";
    position: absolute;
    inset: -18% -10% auto;
    height: 220px;
    background: linear-gradient(115deg, rgba(126, 56, 255, 0.08), rgba(156, 223, 255, 0.22), rgba(99, 209, 187, 0.1));
    filter: blur(12px);
    opacity: 0.95;
    animation: publishAuroraSweep 1.4s ease-out forwards;
}

.publish-success-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.45) 48%, transparent 78%);
    transform: translateX(-140%);
    animation: publishCardShimmer 1.1s ease-out 0.22s forwards;
}

.publish-success-ring {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    border: 1px solid rgba(104, 88, 255, 0.16);
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 0 16px rgba(104, 88, 255, 0.03),
        0 0 0 36px rgba(99, 209, 187, 0.035);
    animation: publishRingPulse 1.8s ease-out infinite;
}

.publish-success-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border-radius: 32px;
    color: #fff;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--brand-start), #63d1bb);
    box-shadow:
        0 22px 44px rgba(104, 88, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
    animation: publishIconPop 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.publish-success-icon::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 38px;
    border: 1px solid rgba(104, 88, 255, 0.16);
    animation: publishIconHalo 1.4s ease-out infinite;
}

.publish-success-icon::after {
    content: "";
    position: absolute;
    inset: -42px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(126, 56, 255, 0.14), rgba(99, 209, 187, 0.12), transparent 68%);
    z-index: -1;
    animation: publishIconAura 1.6s ease-out infinite;
}

.publish-success-copy {
    position: relative;
    display: grid;
    gap: 0.35rem;
    text-align: center;
    color: var(--surface-strong);
}

.publish-success-kicker {
    color: var(--brand-solid);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    font-weight: 700;
}

.publish-success-copy strong {
    font-size: clamp(2rem, 1.35rem + 1.6vw, 3.2rem);
    line-height: 0.98;
    font-weight: 800;
}

.publish-success-copy span:last-child {
    color: var(--text-soft);
    font-size: 1rem;
    font-weight: 600;
}

.publish-success-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.publish-success-particles span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 999px;
    opacity: 0;
    box-shadow: 0 0 24px currentColor;
    animation: publishParticle 1.35s ease-out forwards;
}

.publish-success-particles span:nth-child(1) {
    background: #ffffff;
    animation-delay: 0.08s;
    --particle-x: -220px;
    --particle-y: -120px;
}

.publish-success-particles span:nth-child(2) {
    background: #7d53ff;
    animation-delay: 0.14s;
    --particle-x: 220px;
    --particle-y: -150px;
}

.publish-success-particles span:nth-child(3) {
    background: #63d1bb;
    animation-delay: 0.18s;
    --particle-x: -260px;
    --particle-y: 70px;
}

.publish-success-particles span:nth-child(4) {
    background: #9cdfff;
    animation-delay: 0.22s;
    --particle-x: 250px;
    --particle-y: 95px;
}

.publish-success-particles span:nth-child(5) {
    background: #ffd76a;
    animation-delay: 0.11s;
    --particle-x: -110px;
    --particle-y: -210px;
}

.publish-success-particles span:nth-child(6) {
    background: #ffffff;
    animation-delay: 0.2s;
    --particle-x: 120px;
    --particle-y: -230px;
}

.publish-success-particles span:nth-child(7) {
    background: #8af0cb;
    animation-delay: 0.16s;
    --particle-x: -170px;
    --particle-y: 220px;
}

.publish-success-particles span:nth-child(8) {
    background: #c7b5ff;
    animation-delay: 0.24s;
    --particle-x: 180px;
    --particle-y: 210px;
}

@keyframes publishOverlayFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes publishGlowPulse {
    from {
        transform: scale(0.45);
        opacity: 0;
    }

    30% {
        opacity: 0.88;
    }

    to {
        transform: scale(1.08);
        opacity: 0;
    }
}

@keyframes publishCardIn {
    from {
        transform: translateY(30px) scale(0.9) rotateX(10deg);
        opacity: 0;
    }

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

@keyframes publishIconPop {
    0% {
        transform: scale(0.4) rotate(-18deg);
    }

    65% {
        transform: scale(1.08) rotate(4deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes publishRingPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.72);
        opacity: 0.82;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.34);
        opacity: 0;
    }
}

@keyframes publishAuroraSweep {
    0% {
        transform: translate3d(-14%, -18%, 0) rotate(-6deg);
        opacity: 0;
    }

    45% {
        opacity: 1;
    }

    100% {
        transform: translate3d(10%, 4%, 0) rotate(4deg);
        opacity: 0.95;
    }
}

@keyframes publishCardShimmer {
    from {
        transform: translateX(-140%);
    }

    to {
        transform: translateX(140%);
    }
}

@keyframes publishIconHalo {
    0% {
        transform: scale(0.88);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.14);
        opacity: 0;
    }
}

@keyframes publishIconAura {
    0% {
        transform: scale(0.8);
        opacity: 0.2;
    }

    60% {
        opacity: 0.5;
    }

    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

@keyframes publishParticle {
    0% {
        transform: translate(0, 0) scale(0.15);
        opacity: 0;
    }

    18% {
        opacity: 1;
    }

    100% {
        transform: translate(var(--particle-x), var(--particle-y)) scale(1.08);
        opacity: 0;
    }
}

@keyframes publishPulse {

    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.48;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.85;
    }
}

@media (max-width: 767.98px) {
    .publish-confirm-header {
        padding: 1.25rem 1.25rem 0.65rem;
    }

    .publish-confirm-shell {
        padding: 0 1.25rem 1.25rem;
    }

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

    .publish-confirm-actions > * {
        width: 100%;
    }

    .publish-confirm-summary {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .publish-confirm-summary-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .publish-confirm-actions .btn {
        min-height: 52px;
        padding: 0.85rem 1.1rem;
    }

    .publish-success-card {
        padding: 2.6rem 1.25rem 2rem;
        border-radius: 28px;
    }

    .publish-success-icon {
        width: 92px;
        height: 92px;
        border-radius: 26px;
        font-size: 2.4rem;
    }

    .publish-success-ring {
        width: 168px;
        height: 168px;
    }

    .publish-success-copy span:last-child {
        font-size: 0.94rem;
    }
}

.planner-table-scroll {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.8);
}

.planner-table {
    width: 100%;
    min-width: 1600px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
}

.planner-table thead th {
    padding: 0.95rem 0.8rem;
    background: linear-gradient(135deg, var(--surface-strong), var(--surface-strong-2));
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.planner-table thead th:first-child {
    width: 228px;
    min-width: 228px;
    text-align: left;
    border-top-left-radius: 24px;
}

.planner-table thead th:last-child {
    border-top-right-radius: 24px;
}

.machine-head,
.machine-cell {
    position: sticky;
    left: 0;
    z-index: 2;
}

.machine-head {
    z-index: 3;
}

.machine-cell {
    background: rgba(255, 255, 255, 0.96);
    padding: 0.58rem 0.9rem;
    font-size: 0.98rem;
    font-weight: 800;
    border-right: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
}

.shift-head {
    text-align: center;
}

.shift-head-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.shift-head-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.shift-head-main-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.weekend-shift-head {
    min-width: 150px;
    width: 150px;
    padding: 0.55rem !important;
    transition: width 0.26s ease, min-width 0.26s ease, padding 0.26s ease;
}

.weekend-shift-head.is-collapsed {
    min-width: 64px;
    width: 64px;
    padding: 0.4rem 0.3rem !important;
}

.weekend-shift-toggle {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem;
    transition:
        background 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-radius 0.22s ease;
}

.weekend-shift-toggle:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(21, 33, 59, 0.18);
}

.weekend-shift-toggle-short {
    display: none;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.weekend-shift-toggle-full {
    font-size: 1.02rem;
    font-weight: 800;
}

.weekend-shift-toggle-icon {
    font-size: 0.95rem;
    opacity: 0.82;
    transition: transform 0.22s ease;
}

.weekend-shift-head.is-collapsed .weekend-shift-toggle {
    min-height: 56px;
    border-radius: 16px;
    padding: 0.4rem 0.2rem;
    flex-direction: column;
    gap: 0.3rem;
}

.weekend-shift-head.is-collapsed .weekend-shift-toggle-short {
    display: inline;
}

.weekend-shift-head.is-collapsed .weekend-shift-toggle-full {
    display: none;
}

.weekend-shift-head.is-collapsed .weekend-shift-toggle-icon {
    transform: rotate(45deg);
}

.weekend-shift-head.is-collapsed .shift-slot-toggle {
    display: none;
}

.shift-title {
    font-size: 0.96rem;
    font-weight: 800;
}

.shift-time {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
}

.shift-slot-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.84);
    transition:
        background 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.shift-slot-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(18, 28, 50, 0.16);
}

.shift-slot-toggle-icon {
    font-size: 0.95rem;
    transition: transform 0.22s ease;
}

.shift-slot-toggle[aria-expanded="true"] .shift-slot-toggle-icon {
    transform: rotate(45deg);
}

.planner-table tbody td {
    min-width: 180px;
    padding: 0.45rem 0.45rem;
    border-bottom: 1px solid var(--border-soft);
    border-right: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.92);
}

.planner-table tbody tr:last-child td,
.planner-table tbody tr:last-child .machine-cell {
    border-bottom: none;
}

.assignment-cell {
    height: auto;
    vertical-align: middle;
}

.weekend-assignment-cell {
    transition: width 0.26s ease, min-width 0.26s ease, padding 0.26s ease;
}

.weekend-assignment-cell.is-collapsed {
    display: none;
}

.weekend-assignment-cell.is-collapsed .assignment-select-wrap {
    min-height: 0;
    opacity: 0;
    pointer-events: none;
}

.extra-slot-cell {
    transition: width 0.26s ease, min-width 0.26s ease, padding 0.26s ease, opacity 0.22s ease;
}

.extra-slot-cell.is-extra-collapsed {
    display: none;
}

.extra-slot-cell.is-extra-collapsed .assignment-select-wrap {
    min-height: 0;
    opacity: 0;
    pointer-events: none;
}

.machine-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.8rem;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(124, 92, 255, 0.08);
}

.large-dot {
    width: 12px;
    height: 12px;
}

.assignment-select-wrap {
    position: relative;
    min-height: 40px;
    width: 100%;
    border-radius: 18px;
    display: flex;
    align-items: center;
}

.assignment-select-wrap.is-saving {
    opacity: 0.7;
}

.assignment-static-text {
    display: flex;
    width: 100%;
    min-height: 40px;
    padding: 0.5rem 1.95rem 0.5rem 0.78rem;
    color: #41506a;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.18s ease;
    align-items: center;
    gap: 0.45rem;
}

.assignment-display {
    position: absolute;
    inset: 0;
    min-height: 40px;
    padding: 0.5rem 1.95rem 0.5rem 0.78rem;
    border-radius: 16px;
    border: 1px solid rgba(120, 104, 255, 0.14);
    background: rgba(120, 104, 255, 0.04);
    color: #8a96ab;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease,
        color 0.22s ease;
    width: 100%;
    text-align: left;
    box-shadow: 0 10px 22px rgba(81, 96, 162, 0.08);
    opacity: 0;
    pointer-events: none;
}

.assignment-display.has-value {
    color: #41506a;
    font-weight: 700;
}

.assignment-display-text {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.92rem;
}

.assignment-avatar {
    flex: 0 0 auto;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(36, 52, 77, 0.08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92), 0 2px 6px rgba(36, 52, 77, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.assignment-avatar img {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    flex: 0 0 auto;
}

.assignment-avatar.is-hidden {
    display: none;
}

.assignment-display-caret {
    position: absolute;
    top: 50%;
    right: 0.78rem;
    transform: translateY(-50%);
    color: #9aa5b8;
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.assignment-cell:hover .assignment-display,
.assignment-select-wrap:focus-within .assignment-display {
    background: rgba(120, 104, 255, 0.07);
    border-color: rgba(120, 104, 255, 0.22);
    box-shadow: 0 14px 28px rgba(81, 96, 162, 0.1);
    transform: translateY(-1px);
    opacity: 1;
    pointer-events: auto;
}

.assignment-cell:hover .assignment-static-text,
.assignment-select-wrap:focus-within .assignment-static-text {
    opacity: 0;
}

.assignment-cell:hover .assignment-display-caret,
.assignment-select-wrap:focus-within .assignment-display-caret {
    opacity: 1;
    transform: translateY(-50%) translateX(1px);
    color: var(--brand-solid);
}

.assignment-flyout {
    position: fixed;
    z-index: 1200;
    width: 320px;
}

.assignment-flyout.is-open-up .assignment-flyout-inner {
    transform-origin: bottom center;
}

.assignment-flyout[hidden] {
    display: none;
}

.assignment-flyout-inner {
    padding: 0.85rem;
    border-radius: 22px;
    border: 1px solid rgba(36, 52, 77, 0.08);
    background:
        radial-gradient(circle at top right, rgba(126, 56, 255, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 255, 0.98));
    box-shadow:
        0 22px 44px rgba(36, 52, 77, 0.16),
        0 8px 18px rgba(104, 88, 255, 0.08);
    backdrop-filter: blur(14px);
}

.assignment-flyout-search {
    position: relative;
    margin-bottom: 0.75rem;
}

.assignment-flyout-search i {
    position: absolute;
    top: 50%;
    left: 0.95rem;
    transform: translateY(-50%);
    color: #97a3b8;
}

.assignment-flyout-search-input {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 1rem 0.75rem 2.7rem;
    border-radius: 16px;
    border: 1px solid rgba(36, 52, 77, 0.1);
    background: rgba(255, 255, 255, 0.9);
    color: #44536c;
    font-weight: 700;
    outline: none;
}

.assignment-flyout-search-input:focus {
    border-color: rgba(104, 88, 255, 0.26);
    box-shadow: 0 0 0 4px rgba(104, 88, 255, 0.08);
}

.assignment-flyout-options {
    display: grid;
    gap: 0.45rem;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
}

.assignment-option,
.assignment-option-empty-static {
    width: 100%;
    min-height: 46px;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(36, 52, 77, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: #43516b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    font-weight: 700;
    min-width: 0;
    transition:
        transform 0.16s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.assignment-option:hover {
    transform: translateY(-1px);
    border-color: rgba(104, 88, 255, 0.16);
    box-shadow: 0 12px 20px rgba(54, 72, 117, 0.08);
}

.assignment-option.selected {
    background: linear-gradient(135deg, rgba(126, 56, 255, 0.12), rgba(90, 107, 255, 0.08));
    border-color: rgba(104, 88, 255, 0.18);
}

.assignment-option.is-absent {
    background: linear-gradient(135deg, rgba(255, 98, 121, 0.14), rgba(255, 127, 80, 0.08));
    border-color: rgba(255, 98, 121, 0.16);
    color: #a1263e;
}

.assignment-option.is-assigned-week:not(.selected):not(.is-absent) {
    background: linear-gradient(135deg, rgba(255, 174, 66, 0.18), rgba(255, 144, 56, 0.12));
    border-color: rgba(255, 164, 72, 0.24);
    color: #9b5418;
}

.assignment-option.assignment-option-clear {
    color: #8c97aa;
}

.assignment-option-name {
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assignment-option-avatar {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(36, 52, 77, 0.08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92), 0 2px 6px rgba(36, 52, 77, 0.08);
}

.assignment-option-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.assignment-option-avatar.is-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(226, 233, 245, 0.92)),
        linear-gradient(135deg, rgba(126, 56, 255, 0.12), rgba(90, 107, 255, 0.08));
}

.assignment-option-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #617392;
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.assignment-option-avatar.is-hidden {
    display: none;
}

.assignment-option-check {
    color: var(--brand-solid);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.assignment-option.selected .assignment-option-check {
    opacity: 1;
}

.assignment-flyout-empty,
.assignment-option-empty-static {
    color: #8d97aa;
    font-weight: 700;
}

.assignment-flyout-empty {
    margin-top: 0.6rem;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(242, 244, 249, 0.8);
}

.planner-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.2rem;
}

.hint-text {
    color: var(--text-soft);
    font-size: 0.94rem;
}

.empty-state-cell {
    padding: 3rem 1rem !important;
}

.empty-state-box {
    max-width: 30rem;
    margin: 0 auto;
    text-align: center;
}

.empty-state-box h2 {
    font-size: 1.45rem;
    font-weight: 800;
}

.settings-card-title {
    font-size: 1.15rem;
    font-weight: 800;
}

.settings-card-subtitle {
    margin-top: 0.35rem;
    color: var(--text-soft);
}

.settings-shell {
    display: grid;
    gap: 1.2rem;
}

.settings-hero-card,
.settings-machines-card {
    padding: 1.3rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(126, 56, 255, 0.08), transparent 32%),
        rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

.settings-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.settings-add-machine-btn {
    white-space: nowrap;
}

.settings-machines-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-machines-legend {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.settings-machine-list {
    display: grid;
    gap: 0.9rem;
}

.settings-departments-form {
    margin-top: 1rem;
}

.settings-department-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.settings-department-chip {
    position: relative;
    cursor: pointer;
}

.settings-department-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-department-chip span {
    min-height: 46px;
    padding: 0.78rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(36, 52, 77, 0.1);
    background: rgba(255, 255, 255, 0.84);
    color: #54627b;
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.settings-department-chip input:checked + span {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 30px rgba(104, 88, 255, 0.22);
}

.settings-department-chip:hover span {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(54, 72, 117, 0.08);
}

.settings-machine-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    border: 1px solid rgba(36, 52, 77, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 28px rgba(44, 62, 102, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.settings-machine-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(44, 62, 102, 0.1);
    border-color: rgba(126, 56, 255, 0.12);
}

.settings-machine-row.is-dragging {
    opacity: 0.72;
    transform: scale(0.99);
}

.settings-machine-drag {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(36, 52, 77, 0.06);
    color: var(--text-soft);
    font-size: 1.1rem;
    cursor: grab;
}

.settings-machine-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.settings-machine-accent {
    width: 18px;
    height: 52px;
    border-radius: 999px;
    box-shadow: 0 10px 18px rgba(67, 81, 107, 0.12);
}

.settings-machine-copy {
    min-width: 0;
}

.settings-machine-code {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
}

.settings-machine-name {
    margin-top: 0.14rem;
    color: var(--text-soft);
    font-size: 0.93rem;
}

.settings-machine-badges {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.settings-machine-badge,
.settings-machine-state {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(36, 52, 77, 0.07);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 800;
}

.settings-machine-state {
    color: var(--text-soft);
}

.settings-machine-state.is-visible {
    background: rgba(104, 88, 255, 0.1);
    color: var(--brand-solid);
}

.settings-machine-state.is-active {
    background: rgba(20, 180, 115, 0.12);
    color: #14935d;
}

.settings-machine-edit-btn {
    min-height: 44px;
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(36, 52, 77, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.settings-machine-edit-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(126, 56, 255, 0.16);
    box-shadow: 0 12px 22px rgba(44, 62, 102, 0.08);
}

.settings-color-field {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 52px;
    padding: 0.5rem 0.65rem;
    border-radius: 16px;
    border: 1px solid rgba(36, 52, 77, 0.08);
    background: rgba(255, 255, 255, 0.94);
}

.settings-color-input {
    width: 64px;
    min-width: 64px;
    height: 40px;
    padding: 0.2rem;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.settings-color-value {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.04em;
}

.settings-toggle-card {
    width: 100%;
    min-height: 84px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(36, 52, 77, 0.08);
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
}

.settings-toggle-card .form-check-input {
    margin-top: 0.15rem;
}

.settings-toggle-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
}

.settings-toggle-card small {
    display: block;
    margin-top: 0.12rem;
    color: var(--text-soft);
}

.settings-import-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 1rem;
}

.settings-import-highlight,
.settings-import-requirements {
    min-height: 100%;
    padding: 1.2rem;
    border-radius: 24px;
    border: 1px solid rgba(36, 52, 77, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 28px rgba(44, 62, 102, 0.07);
}

.settings-import-highlight {
    background:
        radial-gradient(circle at top right, rgba(215, 64, 94, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 246, 247, 0.96), rgba(255, 255, 255, 0.92));
}

.settings-import-highlight-kicker,
.settings-import-sidepanel-kicker {
    color: #c6465c;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.settings-import-highlight h3,
.settings-import-requirements h3,
.settings-import-sidepanel-card h3 {
    margin: 0.35rem 0 0;
    font-size: 1.08rem;
    font-weight: 800;
}

.settings-import-highlight p,
.settings-import-note {
    margin-top: 0.65rem;
    color: var(--text-soft);
}

.settings-import-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.settings-import-stats span,
.settings-import-requirements-head span {
    min-height: 36px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(36, 52, 77, 0.06);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 800;
}

.settings-import-requirements-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.settings-import-column-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.settings-import-column-list span {
    min-height: 38px;
    padding: 0.52rem 0.8rem;
    border-radius: 14px;
    background: rgba(246, 248, 252, 0.94);
    border: 1px solid rgba(36, 52, 77, 0.08);
    color: #4f5f77;
    font-size: 0.86rem;
    font-weight: 700;
}

.settings-import-modal-content {
    overflow: hidden;
}

.settings-import-modal-header {
    padding-bottom: 0.8rem;
}

.settings-import-warning-stack {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.settings-import-danger-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(205, 58, 89, 0.12), rgba(255, 240, 242, 0.94));
    border: 1px solid rgba(205, 58, 89, 0.12);
}

.settings-import-danger-banner i {
    color: #c6465c;
    font-size: 1.2rem;
}

.settings-import-danger-banner strong,
.settings-import-danger-banner span {
    display: block;
}

.settings-import-danger-banner span {
    margin-top: 0.25rem;
    color: #6f4d56;
}

.settings-import-danger-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.settings-import-danger-inline span {
    min-height: 38px;
    padding: 0.52rem 0.75rem;
    border-radius: 999px;
    background: rgba(205, 58, 89, 0.08);
    color: #9f334b;
    font-size: 0.84rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.settings-import-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1rem;
}

.settings-import-main {
    min-width: 0;
}

.settings-upload-dropzone {
    min-height: 140px;
    padding: 1.15rem 1.2rem;
    border-radius: 24px;
    border: 1.5px dashed rgba(104, 88, 255, 0.22);
    background:
        radial-gradient(circle at top right, rgba(104, 88, 255, 0.1), transparent 34%),
        rgba(249, 250, 255, 0.94);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    cursor: pointer;
}

.settings-upload-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    box-shadow: 0 18px 34px rgba(104, 88, 255, 0.2);
}

.settings-upload-copy {
    min-width: 0;
}

.settings-upload-copy strong,
.settings-upload-copy span,
.settings-upload-action {
    display: block;
}

.settings-upload-copy span {
    margin-top: 0.3rem;
    color: var(--text-soft);
}

.settings-upload-action {
    min-height: 40px;
    padding: 0.62rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(36, 52, 77, 0.08);
    color: var(--text-main);
    font-size: 0.86rem;
    font-weight: 800;
}

.settings-import-confirm-grid {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.settings-import-confirm-card {
    min-height: 92px;
}

.settings-import-sidepanel {
    display: grid;
    gap: 1rem;
}

.settings-import-sidepanel-card {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid rgba(36, 52, 77, 0.08);
    background: rgba(248, 250, 255, 0.94);
}

.settings-import-sidepanel-card.is-warning {
    background:
        radial-gradient(circle at top right, rgba(228, 138, 45, 0.16), transparent 34%),
        rgba(255, 249, 241, 0.96);
}

.settings-import-modal-columns {
    margin: 0.8rem 0 0;
    padding-left: 1.1rem;
    color: var(--text-soft);
}

.settings-import-modal-columns li + li {
    margin-top: 0.45rem;
}

.settings-import-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.placeholder-card {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.employees-page {
    display: grid;
    gap: 1.25rem;
}

.employees-top-card {
    background:
        radial-gradient(circle at top right, rgba(126, 56, 255, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 249, 255, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 30px;
    padding: 1.4rem;
    box-shadow: 0 22px 44px rgba(55, 72, 117, 0.1);
}

.employees-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.employees-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.employees-title {
    margin: 0;
    font-size: clamp(2rem, 1.45rem + 1vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.employees-subtitle {
    margin: 0.6rem 0 0;
    color: var(--text-soft);
    font-size: 1rem;
}

.employees-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
    min-height: 48px;
    padding: 0.82rem 1.15rem;
    border: 1px solid rgba(104, 88, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(104, 88, 255, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.employees-add-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(104, 88, 255, 0.26);
    filter: saturate(1.05);
}

.employees-import-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
    min-height: 48px;
    padding: 0.82rem 1.1rem;
    border: 1px solid rgba(36, 52, 77, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(245, 247, 251, 0.98), rgba(232, 237, 244, 0.94));
    color: #56657f;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(36, 52, 77, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.employees-import-btn:hover {
    color: #43516b;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(36, 52, 77, 0.11);
    border-color: rgba(104, 88, 255, 0.14);
}

.employees-import-btn.is-loading {
    opacity: 0.82;
    pointer-events: none;
}

.employee-import-busy {
    cursor: progress;
}

.employee-import-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(126, 56, 255, 0.2), transparent 24%),
        radial-gradient(circle at 84% 22%, rgba(15, 118, 110, 0.16), transparent 22%),
        linear-gradient(135deg, rgba(244, 247, 255, 0.78), rgba(231, 238, 250, 0.72));
    backdrop-filter: blur(18px) saturate(1.08);
    animation: employeeImportOverlayFade 0.28s ease;
}

.employee-import-overlay-card {
    width: min(100%, 560px);
    padding: 1.5rem;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background:
        radial-gradient(circle at top right, rgba(126, 56, 255, 0.16), transparent 32%),
        radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(245, 248, 255, 0.985));
    box-shadow:
        0 34px 68px rgba(38, 52, 87, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    animation: employeeImportCardIn 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.employee-import-overlay-card::after {
    content: "";
    position: absolute;
    inset: auto -12% -48% auto;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 56, 255, 0.16) 0%, rgba(126, 56, 255, 0) 70%);
    pointer-events: none;
}

.employee-import-loader-ring {
    position: relative;
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), transparent 42%),
        linear-gradient(135deg, rgba(126, 56, 255, 0.14), rgba(90, 107, 255, 0.1));
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 18px 34px rgba(104, 88, 255, 0.16);
}

.employee-import-loader-ring::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 24px;
    border: 3px solid rgba(104, 88, 255, 0.14);
    border-top-color: rgba(104, 88, 255, 0.9);
    animation: employeeImportSpin 1.05s linear infinite;
}

.employee-import-loader-ring::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    opacity: 0.7;
}

.employee-import-loader-ring span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    box-shadow: 0 0 14px rgba(104, 88, 255, 0.28);
    animation: employeeImportPulse 1.8s ease-in-out infinite;
}

.employee-import-loader-ring span:nth-child(1) {
    top: 18px;
    left: 20px;
}

.employee-import-loader-ring span:nth-child(2) {
    top: 24px;
    right: 18px;
    animation-delay: 0.2s;
}

.employee-import-loader-ring span:nth-child(3) {
    bottom: 18px;
    left: 38px;
    animation-delay: 0.4s;
}

.employee-import-loader-core {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, #ffffff, #c9b8ff 38%, #7e38ff 72%);
    box-shadow:
        0 0 0 10px rgba(104, 88, 255, 0.08),
        0 0 34px rgba(104, 88, 255, 0.28);
    animation: employeeImportCorePulse 1.8s ease-in-out infinite;
}

.employee-import-loader-copy {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.employee-import-loader-kicker {
    color: var(--brand-solid);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
}

.employee-import-loader-title {
    margin: 0.35rem 0 0;
    font-size: clamp(1.35rem, 1.05rem + 0.6vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.employee-import-loader-text {
    margin: 0.6rem 0 0;
    color: var(--text-soft);
    font-size: 0.98rem;
}

.employee-import-loader-progress {
    position: relative;
    margin-top: 0.9rem;
    height: 0.5rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(227, 234, 246, 0.9);
    box-shadow: inset 0 1px 2px rgba(36, 52, 77, 0.08);
}

.employee-import-loader-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, var(--brand-start), var(--brand-end));
    box-shadow: 0 0 22px rgba(104, 88, 255, 0.24);
    animation: employeeImportProgress 1.5s ease-in-out infinite;
}

.employee-import-loader-ticker {
    margin-top: 0.95rem;
    min-height: 42px;
    padding: 0.7rem 0.9rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(247, 249, 253, 0.98), rgba(239, 244, 251, 0.96));
    border: 1px solid rgba(36, 52, 77, 0.08);
    color: #56657f;
    font-weight: 800;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 10px 24px rgba(36, 52, 77, 0.06);
}

@keyframes employeeImportSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes employeeImportPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.22);
        opacity: 1;
    }
}

@keyframes employeeImportCorePulse {
    0%, 100% {
        transform: scale(0.96);
        box-shadow:
            0 0 0 10px rgba(104, 88, 255, 0.08),
            0 0 26px rgba(104, 88, 255, 0.22);
    }
    50% {
        transform: scale(1.08);
        box-shadow:
            0 0 0 14px rgba(104, 88, 255, 0.12),
            0 0 38px rgba(104, 88, 255, 0.32);
    }
}

@keyframes employeeImportProgress {
    0% {
        transform: translateX(-120%);
    }
    55% {
        transform: translateX(115%);
    }
    100% {
        transform: translateX(180%);
    }
}

@keyframes employeeImportOverlayFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes employeeImportCardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.absence-sync-screen {
    min-height: calc(100vh - 2rem);
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.absence-sync-shell {
    width: min(100%, 880px);
    min-height: min(78vh, 760px);
    display: grid;
    place-items: center;
    gap: 2rem;
    padding: clamp(2rem, 4vw, 3.4rem);
    border-radius: 38px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    background:
        radial-gradient(circle at top left, rgba(126, 56, 255, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.14), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 255, 0.98));
    box-shadow:
        0 34px 80px rgba(32, 49, 85, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    position: relative;
    overflow: hidden;
}

.absence-sync-shell::before,
.absence-sync-shell::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.absence-sync-shell::before {
    width: 18rem;
    height: 18rem;
    top: -6rem;
    right: -4rem;
    background: radial-gradient(circle, rgba(126, 56, 255, 0.18) 0%, rgba(126, 56, 255, 0) 70%);
}

.absence-sync-shell::after {
    width: 16rem;
    height: 16rem;
    bottom: -5rem;
    left: -4rem;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.14) 0%, rgba(15, 118, 110, 0) 72%);
}

.absence-sync-orbit {
    position: relative;
    width: min(52vw, 260px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.absence-sync-orbit-ring,
.absence-sync-orbit-core,
.absence-sync-orbit-dot {
    position: absolute;
    border-radius: 50%;
}

.absence-sync-orbit-ring {
    inset: 0;
    border: 1px solid rgba(104, 88, 255, 0.12);
}

.absence-sync-orbit-ring.ring-one {
    animation: absenceSyncRotate 14s linear infinite;
}

.absence-sync-orbit-ring.ring-two {
    inset: 12%;
    border-color: rgba(15, 118, 110, 0.14);
    animation: absenceSyncRotateReverse 10s linear infinite;
}

.absence-sync-orbit-ring.ring-three {
    inset: 24%;
    border-color: rgba(36, 52, 77, 0.12);
    animation: absenceSyncRotate 7s linear infinite;
}

.absence-sync-orbit-core {
    width: 32%;
    aspect-ratio: 1;
    background:
        radial-gradient(circle at 35% 35%, #ffffff, #d5c8ff 34%, #7e38ff 72%);
    box-shadow:
        0 0 0 16px rgba(104, 88, 255, 0.08),
        0 0 54px rgba(104, 88, 255, 0.24);
    animation: absenceSyncPulse 2s ease-in-out infinite;
}

.absence-sync-orbit-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #0f766e, var(--brand-end));
    box-shadow: 0 0 20px rgba(104, 88, 255, 0.22);
}

.absence-sync-orbit-dot.dot-one {
    top: 6%;
    left: 48%;
    animation: absenceSyncFloat 1.8s ease-in-out infinite;
}

.absence-sync-orbit-dot.dot-two {
    right: 10%;
    top: 52%;
    animation: absenceSyncFloat 1.8s ease-in-out infinite 0.25s;
}

.absence-sync-orbit-dot.dot-three {
    bottom: 14%;
    left: 18%;
    animation: absenceSyncFloat 1.8s ease-in-out infinite 0.45s;
}

.absence-sync-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    text-align: center;
}

.absence-sync-kicker {
    color: var(--brand-solid);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 800;
}

.absence-sync-title {
    margin: 0.75rem 0 0;
    font-size: clamp(2rem, 1.4rem + 1.4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--surface-strong);
}

.absence-sync-text {
    max-width: 52ch;
    margin: 0.95rem auto 0;
    color: var(--text-soft);
    font-size: clamp(1rem, 0.94rem + 0.2vw, 1.08rem);
}

.absence-sync-progress {
    position: relative;
    width: min(100%, 480px);
    height: 0.72rem;
    margin: 1.5rem auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(225, 233, 246, 0.96);
    box-shadow: inset 0 1px 2px rgba(36, 52, 77, 0.08);
}

.absence-sync-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 36%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, var(--brand-start), var(--brand-end));
    box-shadow: 0 0 24px rgba(104, 88, 255, 0.24);
    animation: absenceSyncProgress 1.4s ease-in-out infinite;
}

.absence-sync-status {
    margin-top: 1rem;
    padding: 0.95rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(247, 249, 253, 0.98), rgba(239, 244, 251, 0.96));
    border: 1px solid rgba(36, 52, 77, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 10px 24px rgba(36, 52, 77, 0.06);
    color: #56657f;
    font-weight: 800;
}

.absence-sync-retry {
    margin-top: 1rem;
    min-width: 180px;
    border-radius: 16px;
}

@keyframes absenceSyncRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes absenceSyncRotateReverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes absenceSyncPulse {
    0%, 100% {
        transform: scale(0.96);
        box-shadow:
            0 0 0 16px rgba(104, 88, 255, 0.08),
            0 0 54px rgba(104, 88, 255, 0.24);
    }
    50% {
        transform: scale(1.08);
        box-shadow:
            0 0 0 24px rgba(104, 88, 255, 0.11),
            0 0 70px rgba(104, 88, 255, 0.3);
    }
}

@keyframes absenceSyncFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.16);
    }
}

@keyframes absenceSyncProgress {
    0% {
        transform: translateX(-130%);
    }
    55% {
        transform: translateX(150%);
    }
    100% {
        transform: translateX(220%);
    }
}

.employees-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.employees-search-form {
    position: relative;
    width: min(100%, 420px);
}

.employees-search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #97a3b8;
}

.employees-search-input {
    min-height: 50px;
    padding-left: 2.8rem;
    border-radius: 18px;
    border: 1px solid rgba(36, 52, 77, 0.12);
    box-shadow: 0 12px 24px rgba(54, 72, 117, 0.06);
}

.machine-filter-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.machine-filter-chip {
    min-height: 42px;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(36, 52, 77, 0.1);
    background: rgba(255, 255, 255, 0.78);
    color: #54627b;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.machine-filter-chip:hover,
.machine-filter-chip.active {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
    box-shadow: 0 16px 30px rgba(104, 88, 255, 0.22);
    transform: translateY(-1px);
}

.employees-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.employee-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 26px;
    padding: 1.35rem;
    box-shadow: 0 20px 40px rgba(55, 72, 117, 0.1);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.employee-card.is-updating {
    opacity: 0.88;
}

.employee-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.employee-avatar-shell {
    position: relative;
    flex: 0 0 auto;
}

.employee-avatar {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 0 14px 28px rgba(54, 72, 117, 0.12);
}

.employee-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(126, 56, 255, 0.22), rgba(90, 107, 255, 0.18));
    color: var(--brand-solid);
    font-size: 1.25rem;
    font-weight: 800;
}

.employee-status-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #14c79a;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(20, 199, 154, 0.22);
}

.employee-meta {
    min-width: 0;
}

.employee-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.employee-caption {
    margin: 0.4rem 0 0;
    color: var(--text-soft);
    font-weight: 700;
}

.employee-machines-title {
    margin: 1.2rem 0 0.75rem;
    color: #4b566b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    font-weight: 800;
}

.employee-machine-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.employee-machine-chip {
    min-height: 44px;
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(36, 52, 77, 0.1);
    background: rgba(242, 244, 249, 0.88);
    color: #4f5d76;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

.employee-machine-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(54, 72, 117, 0.08);
    border-color: rgba(104, 88, 255, 0.16);
}

.employee-machine-chip:active {
    transform: translateY(0);
}

.employee-machine-chip .machine-chip-check {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.18s ease, width 0.18s ease;
}

.employee-machine-chip.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
    box-shadow: 0 14px 26px rgba(104, 88, 255, 0.24);
}

.employee-machine-chip.active .machine-chip-check {
    opacity: 1;
    width: 1rem;
}

.employees-empty-card h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.employees-empty-card p {
    margin: 0.6rem 0 0;
    color: var(--text-soft);
}

.employee-create-content {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(126, 56, 255, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.98));
    box-shadow: 0 34px 68px rgba(38, 52, 87, 0.2);
}

.employee-create-header {
    padding: 1.4rem 1.4rem 0.7rem;
}

.employee-create-title {
    font-size: clamp(1.4rem, 1.1rem + 0.7vw, 2rem);
    font-weight: 800;
}

.employee-create-subtitle {
    color: var(--text-soft);
}

.employee-create-form {
    padding: 0 1.4rem 1.4rem;
}

.employee-create-alert {
    margin-bottom: 1rem;
    border-radius: 16px;
}

.employee-create-form .form-control {
    min-height: 48px;
    border-radius: 16px;
}

.employee-create-machine-label {
    margin-bottom: 0.75rem;
    color: #4b566b;
    font-weight: 800;
}

.employee-machine-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.employee-machine-selector-item {
    position: relative;
    cursor: pointer;
}

.employee-machine-selector-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.employee-machine-selector-item span {
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(36, 52, 77, 0.12);
    background: rgba(255, 255, 255, 0.8);
    color: #506078;
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.employee-machine-selector-item input:checked+span {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 30px rgba(104, 88, 255, 0.22);
}

.employee-machine-selector-item:hover span {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(54, 72, 117, 0.08);
}

.employee-machine-selector-empty {
    color: var(--text-soft);
    font-weight: 700;
}

.employee-create-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.absences-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.absences-select-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.absences-filter-form {
    margin: 0;
}

.absences-filter-select {
    min-width: 220px;
    min-height: 50px;
    border-radius: 18px;
    border: 1px solid rgba(36, 52, 77, 0.12);
    box-shadow: 0 12px 24px rgba(54, 72, 117, 0.06);
}

.absences-list {
    display: grid;
    gap: 1rem;
}

.absence-item {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 20px 40px rgba(55, 72, 117, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.absence-item:hover {
    transform: translateY(-2px);
    border-color: rgba(104, 88, 255, 0.14);
    box-shadow: 0 26px 44px rgba(55, 72, 117, 0.12);
}

.absence-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.absence-person {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 auto;
}

.absence-avatar-shell {
    flex: 0 0 auto;
}

.absence-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    display: block;
    box-shadow: 0 14px 26px rgba(54, 72, 117, 0.12);
}

.absence-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(126, 56, 255, 0.18), rgba(90, 107, 255, 0.12));
    color: var(--brand-solid);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.absence-person-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.absence-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.absence-name {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.absence-quick-facts {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.7rem;
}

.absence-fact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 34px;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(244, 247, 253, 0.96);
    border: 1px solid rgba(36, 52, 77, 0.08);
    color: #62728d;
    font-size: 0.86rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.absence-fact-chip i {
    color: var(--brand-solid);
}

.absence-fact-chip-type {
    background: rgba(104, 88, 255, 0.08);
    border-color: rgba(104, 88, 255, 0.14);
    color: #5948da;
}

.absence-date-pill {
    flex: 0 0 auto;
    min-width: 82px;
    padding: 0.75rem 0.9rem;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(31, 44, 66, 0.96), rgba(61, 74, 111, 0.94));
    color: #fff;
    text-align: center;
    box-shadow: 0 18px 34px rgba(36, 52, 77, 0.14);
}

.absence-date-pill-label {
    display: block;
    margin-bottom: 0.18rem;
    color: rgba(255, 255, 255, 0.68);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    font-weight: 800;
}

.absence-date-pill strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.05;
}

.absence-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
}

.absence-status-badge.status-pending {
    background: rgba(255, 196, 61, 0.16);
    color: #9b6a00;
}

.absence-status-badge.status-approved {
    background: rgba(20, 199, 154, 0.16);
    color: #008764;
}

.absence-status-badge.status-rejected {
    background: rgba(255, 98, 121, 0.16);
    color: #b71d39;
}

.absence-meta-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

.absence-meta-block {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(245, 247, 252, 0.9);
    border: 1px solid rgba(36, 52, 77, 0.06);
}

.absence-meta-block-emphasis {
    background:
        radial-gradient(circle at top right, rgba(126, 56, 255, 0.08), transparent 46%),
        rgba(245, 247, 252, 0.94);
    border-color: rgba(104, 88, 255, 0.12);
}

.absence-meta-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #6e7893;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.73rem;
    font-weight: 800;
}

.absence-meta-block strong {
    display: block;
    color: var(--text-main);
    font-size: 0.98rem;
    font-weight: 800;
}

.absence-card-actions {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(36, 52, 77, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.absence-sharepoint-meta {
    display: grid;
    gap: 0.12rem;
}

.absence-sharepoint-meta strong {
    color: var(--surface-strong);
    font-size: 1rem;
    font-weight: 800;
}

.absence-card-action-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.absence-card-btn {
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
}

.absence-card-btn-danger {
    border-color: rgba(196, 69, 54, 0.18);
    color: #b84536;
}

.absence-card-btn-danger:hover {
    background: rgba(196, 69, 54, 0.08);
    border-color: rgba(196, 69, 54, 0.24);
    color: #a63b2d;
}

.absence-form-shell {
    display: grid;
    gap: 1.2rem;
}

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

.absence-form-panel {
    padding: 1.2rem;
    border-radius: 24px;
    border: 1px solid rgba(36, 52, 77, 0.08);
    background:
        radial-gradient(circle at top right, rgba(126, 56, 255, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96));
    box-shadow: 0 18px 36px rgba(36, 52, 77, 0.08);
}

.absence-form-panel-head {
    margin-bottom: 0.95rem;
}

.absence-form-panel-kicker {
    color: var(--brand-solid);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
}

.absence-form-panel-title {
    margin: 0.35rem 0 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--surface-strong);
}

.absence-form-date-grid,
.absence-form-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.absence-choice-select,
.searchable-select-control .form-select,
.absence-form-date-grid .form-control {
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(36, 52, 77, 0.12);
    box-shadow: 0 14px 28px rgba(54, 72, 117, 0.06);
    background-color: rgba(255, 255, 255, 0.96);
}

.searchable-select {
    display: grid;
    gap: 0.65rem;
}

.searchable-select-control {
    position: relative;
}

.searchable-select-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #8b98ae;
    z-index: 2;
    pointer-events: none;
}

.searchable-select-control .form-select {
    padding-left: 2.75rem;
}

.searchable-select-hint {
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.absence-native-select {
    display: none;
}

.absence-employee-picker {
    position: relative;
}

.absence-employee-trigger {
    position: relative;
    width: 100%;
    min-height: 74px;
    padding: 1rem 3.5rem 1rem 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(36, 52, 77, 0.1);
    background:
        radial-gradient(circle at top right, rgba(126, 56, 255, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96));
    box-shadow:
        0 14px 28px rgba(54, 72, 117, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    text-align: left;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.absence-employee-trigger:hover,
.absence-employee-picker.has-value .absence-employee-trigger,
.absence-employee-picker:focus-within .absence-employee-trigger {
    border-color: rgba(104, 88, 255, 0.22);
    box-shadow:
        0 18px 34px rgba(81, 96, 162, 0.1),
        0 0 0 4px rgba(104, 88, 255, 0.08);
    transform: translateY(-1px);
}

.absence-employee-trigger-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.absence-employee-trigger-kicker {
    color: var(--brand-solid);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 800;
}

.absence-employee-trigger-text {
    color: #44536c;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.absence-employee-trigger-caret {
    position: absolute;
    top: 50%;
    right: 1.05rem;
    transform: translateY(-50%);
    color: #97a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.absence-employee-picker:focus-within .absence-employee-trigger-caret,
.absence-employee-trigger:hover .absence-employee-trigger-caret {
    color: var(--brand-solid);
    transform: translateY(-50%) translateX(1px);
}

.absence-employee-flyout {
    z-index: 1400;
}

.insights-page {
    display: grid;
    gap: 1.3rem;
    min-width: 0;
}

.insights-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.insights-section-nav a {
    text-decoration: none;
}

.insights-theme-block {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 247, 255, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-md);
}

.insights-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.insights-section-head h2 {
    margin: 0.18rem 0 0.3rem;
    color: var(--surface-strong);
    font-size: clamp(1.3rem, 1rem + 0.5vw, 1.9rem);
    font-weight: 800;
}

.insights-section-head p {
    margin: 0;
    color: var(--text-soft);
    max-width: 68ch;
}

.insights-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
    gap: 1.2rem;
    padding: 1.6rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(126, 56, 255, 0.14), transparent 30%),
        radial-gradient(circle at bottom left, rgba(41, 194, 161, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-lg);
}

.insights-title {
    margin: 0;
    font-size: clamp(2rem, 1.4rem + 1.4vw, 3.4rem);
    line-height: 0.98;
    font-weight: 800;
    color: var(--surface-strong);
}

.insights-subtitle {
    margin: 0.8rem 0 0;
    max-width: 68ch;
    font-size: 1rem;
    color: var(--text-soft);
}

.insights-range-card {
    align-self: stretch;
    display: grid;
    align-content: center;
    gap: 0.28rem;
    padding: 1.35rem;
    border-radius: 26px;
    background: linear-gradient(160deg, #202e48, #34486b);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.insights-range-label {
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
}

.insights-range-card strong {
    font-size: clamp(1.3rem, 1rem + 0.8vw, 2rem);
    line-height: 1.05;
}

.insights-range-card span:last-child {
    color: rgba(255, 255, 255, 0.78);
}

.insights-filter-card,
.insights-panel,
.insights-metric-card,
.insights-spotlight-card {
    min-width: 0;
    border-radius: 28px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.insights-filter-card {
    padding: 1.35rem;
}

.insights-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

.insights-field {
    display: grid;
    gap: 0.38rem;
}

.insights-field span {
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.insights-field .form-select,
.insights-field .form-control {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(36, 52, 77, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.insights-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    grid-column: span 2;
}

.insights-filter-actions .btn {
    min-height: 50px;
    padding: 0.85rem 1.15rem;
    border-radius: 17px;
    font-weight: 800;
}

.insights-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--brand-start), #2fcaa8);
    box-shadow: 0 20px 32px rgba(85, 103, 214, 0.22);
}

.insights-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #55627a;
    border: 1px solid rgba(36, 52, 77, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

.insights-metric-grid,
.insights-spotlight-grid {
    display: grid;
    gap: 1rem;
}

.insights-metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

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

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

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

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

.insights-metric-card,
.insights-spotlight-card {
    padding: 1.2rem 1.25rem;
    display: grid;
    gap: 0.3rem;
}

.insights-alert-card {
    position: relative;
    overflow: hidden;
    padding: 1.15rem 1.25rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(104, 88, 255, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 0.28rem;
}

.insights-alert-kicker {
    color: #ff8a4c;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.insights-alert-card strong {
    color: var(--surface-strong);
    font-size: clamp(1.35rem, 1rem + 0.75vw, 2.1rem);
    line-height: 1;
}

.insights-alert-card span:last-child {
    color: var(--text-soft);
    font-weight: 600;
}

.insights-metric-label,
.insights-spotlight-kicker,
.insights-mini-title {
    color: var(--brand-solid);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.insights-metric-card strong,
.insights-spotlight-card strong {
    color: var(--surface-strong);
    font-size: clamp(1.4rem, 1rem + 0.7vw, 2.2rem);
    line-height: 1.04;
}

.insights-metric-card span:last-child,
.insights-spotlight-card span:last-child {
    color: var(--text-soft);
    font-weight: 600;
}

.insights-chart-grid,
.insights-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row dense;
    gap: 1rem;
    min-width: 0;
}

.insights-panel {
    padding: 1rem 1.05rem;
    min-width: 0;
}

.insights-panel-large {
    grid-column: span 2;
}

.insights-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
    min-width: 0;
}

.insights-panel-head h2 {
    margin: 0.22rem 0 0;
    color: var(--surface-strong);
    font-size: clamp(1.2rem, 1rem + 0.35vw, 1.6rem);
    font-weight: 800;
}

.insights-label-with-help,
.insights-title-with-help,
.insights-th-help {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.insights-title-with-help {
    flex-wrap: wrap;
}

.insights-info-popover {
    position: relative;
    display: inline-block;
}

.insights-info-popover[open] {
    z-index: 6;
}

.insights-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    margin-left: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 245, 255, 0.92));
    color: var(--brand-solid);
    cursor: pointer;
    list-style: none;
    vertical-align: middle;
    box-shadow:
        0 10px 22px rgba(88, 104, 154, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.insights-info-trigger:hover {
    transform: translateY(-1px) scale(1.03);
    color: #4a48ff;
    border-color: rgba(126, 144, 255, 0.36);
    box-shadow:
        0 14px 26px rgba(88, 104, 154, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.insights-info-popover[open] .insights-info-trigger {
    color: #4a48ff;
    border-color: rgba(126, 144, 255, 0.32);
    background:
        linear-gradient(180deg, rgba(247, 248, 255, 0.98), rgba(234, 241, 255, 0.96));
    box-shadow:
        0 16px 30px rgba(88, 104, 154, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.insights-info-trigger::-webkit-details-marker {
    display: none;
}

.insights-info-trigger.is-inline {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.76rem;
}

.insights-info-card {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    width: min(360px, 76vw);
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.95));
    color: #41506a;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 24px 44px rgba(88, 104, 154, 0.18),
        0 4px 16px rgba(88, 104, 154, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    font-size: 0.84rem;
    line-height: 1.58;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    animation: insightsInfoCardIn 0.16s ease-out;
}

.insights-info-card::before {
    content: "";
    position: absolute;
    top: -0.45rem;
    right: 1rem;
    width: 0.9rem;
    height: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.85);
    border-left: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(249, 251, 255, 0.96);
    transform: rotate(45deg);
}

.insights-info-card code {
    color: #4a48ff;
    font-weight: 800;
}

.insights-info-title {
    margin-bottom: 0.55rem;
    color: var(--surface-strong);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.insights-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.insights-info-list li {
    display: grid;
    gap: 0.14rem;
    padding-left: 0.9rem;
    position: relative;
}

.insights-info-list li::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-solid), #63d1bb);
    box-shadow: 0 0 0 4px rgba(104, 88, 255, 0.08);
}

.insights-info-list strong {
    color: var(--surface-strong);
    font-size: 0.84rem;
}

.insights-info-list span {
    color: #5c6a84;
    font-weight: 700;
}

.insights-panel-tools {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    min-width: 0;
}

.insights-panel-hint {
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.insights-search-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(36, 52, 77, 0.1);
    color: var(--text-soft);
}

.insights-search-chip input {
    border: 0;
    outline: 0;
    background: transparent;
    min-width: 180px;
    color: var(--text-main);
    font-weight: 700;
}

.insights-search-chip input::placeholder {
    color: #93a0b6;
}

.insights-inline-filter {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    justify-items: end;
}

.insights-inline-filter span {
    color: var(--text-soft);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    justify-self: start;
}

.insights-chip-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
    padding: 0.45rem;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 255, 0.92));
    border: 1px solid rgba(106, 123, 162, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 12px 26px rgba(51, 70, 110, 0.08);
}

.insights-filter-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: #4f5d76;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
    box-shadow:
        inset 0 0 0 1px rgba(106, 123, 162, 0.12),
        0 4px 14px rgba(47, 63, 96, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.22s ease,
        color 0.22s ease,
        filter 0.22s ease;
    overflow: hidden;
}

.insights-filter-chip::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
    opacity: 0.8;
    pointer-events: none;
}

.insights-filter-chip:hover {
    transform: translateY(-1px);
    color: var(--surface-strong);
    box-shadow:
        inset 0 0 0 1px rgba(104, 88, 255, 0.14),
        0 10px 22px rgba(90, 107, 255, 0.14);
}

.insights-filter-chip:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(104, 88, 255, 0.16),
        0 10px 24px rgba(90, 107, 255, 0.18);
}

.insights-filter-chip.is-active {
    background: linear-gradient(135deg, var(--brand-start), rgba(65, 198, 181, 0.96));
    color: #fff;
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 14px 28px rgba(104, 88, 255, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.insights-filter-chip.is-active::after {
    content: "";
    position: absolute;
    inset: auto auto 7px 50%;
    width: 1.35rem;
    height: 0.18rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    animation: insightsChipPulse 1.8s ease-in-out infinite;
}

.insights-chart-wrap {
    position: relative;
    height: 210px;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.insights-panel-large .insights-chart-wrap {
    height: 240px;
}

.insights-chart-wrap-wide {
    height: 255px;
}

.insights-panel-large .insights-chart-wrap-wide {
    height: 280px;
}

.insights-chart-wrap-workload {
    height: 245px;
}

.insights-panel-large .insights-chart-wrap-workload {
    height: 245px;
}

.insights-chart-wrap-timeline {
    height: 255px;
}

.insights-panel-large .insights-chart-wrap-timeline {
    height: 255px;
}

.insights-chart-wrap-absence {
    height: 245px;
}

.insights-panel-large .insights-chart-wrap-absence {
    height: 245px;
}

.insights-chart-wrap-compact {
    height: 210px;
}

.insights-chart-wrap-donut {
    height: 240px;
    max-width: 360px;
    margin-inline: auto;
}

.insights-chart-wrap-donut-small {
    height: 210px;
    max-width: 280px;
}

.insights-chart-wrap-spotlight {
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(104, 88, 255, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(249, 251, 255, 0.92), rgba(242, 247, 255, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    padding: 0.75rem 0.85rem 0.35rem;
}

.insights-chart-wrap canvas {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: 100% !important;
}

@keyframes insightsChipPulse {
    0%,
    100% {
        opacity: 0.72;
        transform: translateX(-50%) scaleX(0.92);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.08);
    }
}

.insights-table-shell,
.insights-heatmap-shell {
    overflow-x: auto;
}

.insights-table,
.insights-heatmap-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.insights-table thead th,
.insights-heatmap-table thead th {
    padding: 0.8rem 0.95rem;
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(36, 52, 77, 0.08);
}

.insights-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    font-weight: inherit;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.insights-th-help {
    gap: 0.4rem;
}

@keyframes insightsInfoCardIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }

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

.insights-sort-btn::after {
    content: "↕";
    font-size: 0.82rem;
    color: #a0abc0;
}

.insights-sort-btn:hover,
.insights-sort-btn.is-active {
    color: var(--brand-solid);
}

.insights-sort-btn.is-active::after {
    content: attr(data-direction);
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.insights-sort-btn[data-direction="asc"]::after {
    content: "Auf";
}

.insights-sort-btn[data-direction="desc"]::after {
    content: "Ab";
}

.insights-sort-btn.is-heatmap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
}

.insights-column-total {
    color: #a0abc0;
    font-size: 0.68rem;
    font-weight: 800;
}

.insights-table tbody td,
.insights-table tbody th,
.insights-heatmap-table tbody td,
.insights-heatmap-table tbody th {
    padding: 0.9rem 0.95rem;
    border-bottom: 1px solid rgba(36, 52, 77, 0.06);
    color: var(--surface-strong);
    font-weight: 600;
    white-space: nowrap;
}

.insights-heatmap-table tfoot th,
.insights-heatmap-table tfoot td {
    padding: 0.85rem 0.95rem;
    background: rgba(244, 248, 255, 0.98);
    border-top: 1px solid rgba(36, 52, 77, 0.08);
    color: var(--surface-strong);
    font-weight: 800;
}

.insights-score-pill {
    display: inline-flex;
    min-width: 52px;
    justify-content: center;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    background: rgba(104, 88, 255, 0.1);
    color: var(--brand-solid);
    font-weight: 800;
}

.insights-score-stack,
.insights-person-cell {
    display: grid;
    gap: 0.26rem;
}

.insights-person-subline {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.insights-risk-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.insights-risk-pill.is-hoch {
    background: rgba(255, 130, 130, 0.14);
    color: #d85a5a;
}

.insights-risk-pill.is-mittel {
    background: rgba(255, 191, 92, 0.16);
    color: #b87417;
}

.insights-risk-pill.is-niedrig {
    background: rgba(41, 194, 161, 0.14);
    color: #199b7b;
}

.insights-mini-lists {
    display: grid;
    gap: 1.15rem;
}

.insights-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.insights-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(104, 88, 255, 0.08);
    color: var(--brand-solid);
    font-weight: 700;
}

.insights-tag-pill.is-alt {
    background: rgba(41, 194, 161, 0.1);
    color: #199b7b;
}

.insights-tag-pill.is-muted {
    background: rgba(36, 52, 77, 0.06);
    color: var(--text-soft);
}

.insights-panel-heatmap {
    padding-bottom: 1rem;
}

.insights-panel-heatmap + .insights-panel-heatmap {
    margin-top: 1.15rem;
}

.insights-heatmap-table th:first-child,
.insights-heatmap-table td:first-child {
    position: sticky;
    left: 0;
    background: rgba(249, 251, 255, 0.98);
    z-index: 1;
}

.insights-heatmap-table thead th {
    position: sticky;
    top: 0;
    background: rgba(249, 251, 255, 0.98);
    z-index: 2;
}

.insights-heatmap-person {
    display: grid;
    gap: 0.35rem;
}

.insights-heatmap-name {
    color: var(--surface-strong);
    font-weight: 800;
}

.insights-heatmap-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 42px;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(104, 88, 255, calc(0.08 + (var(--heat-intensity) * 0.52))),
        rgba(41, 194, 161, calc(0.04 + (var(--heat-intensity) * 0.38)))
    );
    color: var(--surface-strong);
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.insights-heatmap-cell.is-summary {
    min-width: 58px;
    background: linear-gradient(135deg, rgba(31, 44, 66, 0.08), rgba(104, 88, 255, 0.12));
}

.insights-table-wide td,
.insights-table-wide th {
    white-space: nowrap;
}

@media (max-width: 1399.98px) {
    .topbar-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand nav"
            "tools tools";
        align-items: center;
        row-gap: 0.85rem;
    }

    .brand {
        grid-area: brand;
        min-width: 0;
        gap: 0.85rem;
    }

    .brand-mark {
        height: 40px;
        max-width: 140px;
    }

    .brand-title {
        font-size: clamp(1.25rem, 0.95rem + 0.9vw, 1.9rem);
    }

    .brand-subtitle {
        margin-top: 0.18rem;
        font-size: 0.7rem;
    }

    .topbar-tools-slot {
        grid-area: tools;
        width: 100%;
        justify-content: flex-start;
    }

    .main-nav {
        grid-area: nav;
        justify-self: end;
        max-width: 100%;
    }

    .calendar-header-tools {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .week-toolbar {
        flex: 1 1 24rem;
    }
}

@media (max-width: 991.98px) {
    .topbar-inner {
        grid-template-columns: 1fr;
        grid-template-areas: none;
        align-items: flex-start;
    }

    .topbar-tools-slot {
        width: 100%;
        justify-content: flex-start;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .week-toolbar {
        width: 100%;
    }

    .calendar-header-tools {
        width: 100%;
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .calendar-header-divider {
        display: none;
    }

    .week-trigger {
        flex: 1 1 auto;
    }

    .planner-note-btn {
        width: 100%;
        justify-content: center;
    }

    .calendar-toolbar {
        flex-wrap: wrap;
    }

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

    .planner-plan-publish-form {
        width: auto;
    }

    .planner-publish-btn {
        width: auto;
        justify-content: center;
    }

    .planner-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .planner-table {
        min-width: 1380px;
    }

    .week-picker-shell {
        grid-template-columns: 1fr;
    }

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

    .settings-hero-card,
    .settings-machines-head,
    .settings-machine-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .settings-import-card-grid,
    .settings-import-layout {
        grid-template-columns: 1fr;
    }

    .settings-hero-card,
    .settings-machines-head {
        display: flex;
    }

    .settings-machine-badges {
        justify-content: flex-start;
    }

    .settings-machine-edit-btn {
        width: 100%;
        justify-content: center;
    }

    .settings-upload-dropzone {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .settings-import-requirements-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .absences-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

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

    .insights-hero,
    .insights-metric-grid,
    .insights-metric-grid-compact,
    .insights-spotlight-grid,
    .insights-spotlight-grid-compact,
    .insights-alert-grid,
    .insights-alert-grid-compact,
    .insights-chart-grid,
    .insights-data-grid {
        grid-template-columns: 1fr;
    }

    .insights-panel-large {
        grid-column: auto;
    }

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

    .insights-filter-actions {
        grid-column: span 2;
    }

    .insights-panel-tools {
        width: 100%;
        justify-content: flex-start;
    }

    .insights-inline-filter {
        width: 100%;
        justify-items: stretch;
    }

    .insights-chip-group {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .main-nav {
        gap: 0.35rem;
        padding: 0.35rem;
        border-radius: 1.25rem;
    }

    .nav-link {
        width: 2.7rem;
        height: 2.7rem;
        flex: 0 0 auto;
        border-radius: 0.95rem;
    }

    .nav-link-label {
        top: calc(100% + 0.5rem);
        padding: 0.45rem 0.65rem;
        font-size: 0.68rem;
    }

    .page-main {
        padding-top: 1rem;
    }

    .planner-card {
        border-radius: 22px;
    }

    .week-toolbar {
        gap: 0.5rem;
    }

    .week-nav-btn {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .week-trigger {
        padding: 0.45rem 0.75rem;
        border-radius: 18px;
        row-gap: 0;
    }

    .week-picker-controls {
        grid-template-columns: repeat(4, 44px);
        justify-content: space-between;
    }

    .calendar-current-label {
        grid-column: 1 / -1;
        order: -1;
        margin-bottom: 0.2rem;
    }

    .calendar-weekdays,
    .calendar-week-row {
        grid-template-columns: 54px repeat(7, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .calendar-week-row {
        padding: 8px;
    }

    .calendar-week-badge,
    .calendar-day-cell {
        min-height: 62px;
        border-radius: 18px;
    }

    .calendar-day-cell {
        padding: 0.55rem 0.4rem;
    }

    .day-number {
        font-size: 0.95rem;
    }

    .day-meta {
        font-size: 0.63rem;
    }

    .planner-publish-btn {
        width: 100%;
        min-height: 54px;
        border-radius: 20px;
        padding-inline: 0.95rem;
    }

    .planner-publish-btn-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .settings-hero-card,
    .settings-machines-card {
        padding: 1rem;
        border-radius: 24px;
    }

    .settings-machine-row {
        padding: 0.9rem;
    }

    .employees-header,
    .employees-toolbar,
    .absences-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .employees-top-card {
        padding: 1rem;
        border-radius: 24px;
    }

    .employees-search-form {
        width: 100%;
    }

    .employee-card {
        padding: 1rem;
    }

    .employee-card-head {
        align-items: flex-start;
    }

    .employee-avatar {
        width: 68px;
        height: 68px;
        border-radius: 18px;
    }

    .employee-create-form {
        padding: 0 1rem 1rem;
    }

    .employee-create-actions {
        flex-direction: column;
    }

    .absences-select-row {
        flex-direction: column;
        align-items: stretch;
    }

    .absences-filter-select {
        min-width: 0;
        width: 100%;
    }

    .absence-item {
        padding: 1rem;
    }

    .absence-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .absence-person {
        align-items: flex-start;
    }

    .absence-avatar {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .absence-date-pill {
        width: 100%;
        min-width: 0;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .absence-date-pill-label,
    .absence-date-pill strong {
        margin: 0;
    }

    .absence-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .insights-hero,
    .insights-filter-card,
    .insights-panel,
    .insights-metric-card,
    .insights-spotlight-card {
        border-radius: 24px;
    }

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

    .insights-filter-actions {
        grid-column: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .insights-filter-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .insights-search-chip {
        width: 100%;
    }

    .insights-search-chip input {
        min-width: 0;
        width: 100%;
    }

    .insights-filter-chip {
        flex: 1 1 calc(50% - 0.55rem);
        min-width: 0;
    }

    .insights-chart-wrap,
    .insights-panel-large .insights-chart-wrap,
    .insights-chart-wrap-wide,
    .insights-panel-large .insights-chart-wrap-wide,
    .insights-chart-wrap-workload,
    .insights-panel-large .insights-chart-wrap-workload,
    .insights-chart-wrap-timeline,
    .insights-panel-large .insights-chart-wrap-timeline,
    .insights-chart-wrap-absence,
    .insights-panel-large .insights-chart-wrap-absence,
    .insights-chart-wrap-compact,
    .insights-chart-wrap-donut,
    .insights-chart-wrap-donut-small {
        height: 210px;
        max-width: none;
    }

    .insights-chart-wrap,
    .insights-panel-large .insights-chart-wrap {
        min-height: 280px;
    }
}

@keyframes monthSlide {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }

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

.display-board-page {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(126, 56, 255, 0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.display-stage {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 0;
}

.display-scale {
    transform-origin: top left;
    width: 100%;
    height: 100%;
}

.display-board-shell {
    --display-head-pad-top: 8px;
    --display-head-pad-bottom: 7px;
    --display-head-pad-x: 6px;
    --display-machine-cell-pad-y: 6px;
    --display-machine-cell-pad-x: 8px;
    --display-slot-cell-pad: 3px;
    --display-slot-min-height: 34px;
    --display-row-height: auto;
    --display-machine-font-size: 16px;
    --display-slot-font-size: 15px;
    --display-shift-title-size: 18px;
    --display-shift-time-size: 13px;
    --display-machine-head-size: 15px;
    --display-absence-gap: 8px;
    --display-absence-item-pad-y: 0.55rem;
    --display-absence-item-pad-x: 0.7rem;
    --display-absence-avatar-size: 2.35rem;
    --display-absence-name-size: 0.88rem;
    --display-absence-date-size: 0.74rem;
    --display-absence-status-size: 0.64rem;
    --display-absence-status-pad-y: 0.18rem;
    --display-absence-status-pad-x: 0.42rem;
    --display-absence-item-radius: 14px;
    width: 100vw;
    height: 100vh;
    max-width: none;
    padding: 10px 12px 12px;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.display-board-content {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(280px, 22vw, 380px);
    gap: 12px;
}

.display-board-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
    min-height: 0;
    padding: 0.35rem 0.45rem 0.65rem;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 16px 34px rgba(49, 68, 110, 0.08);
    overflow: hidden;
}

.display-board-header-glow {
    position: absolute;
    inset: -30% auto auto 18%;
    width: 30vw;
    height: 140%;
    background: linear-gradient(90deg, rgba(126, 56, 255, 0), rgba(126, 56, 255, 0.08), rgba(90, 107, 255, 0));
    filter: blur(24px);
    opacity: 0.85;
    pointer-events: none;
    animation: displayHeaderSweep 8s ease-in-out infinite;
}

.display-board-titlebar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0;
    min-width: 0;
    flex: 1 1 420px;
}

.display-board-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0.35rem;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), transparent 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.92));
    border: 1px solid rgba(36, 52, 77, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 10px 22px rgba(49, 68, 110, 0.1);
}

.display-board-brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.display-board-qr {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.35rem 0.45rem;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.92));
    border: 1px solid rgba(36, 52, 77, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 10px 22px rgba(49, 68, 110, 0.1);
    color: inherit;
    text-decoration: none;
}

.display-board-qr-image {
    width: 58px;
    height: 58px;
    display: block;
    border-radius: 10px;
    background: #fff;
}

.display-board-qr-copy {
    display: grid;
    gap: 0.12rem;
    line-height: 1.1;
}

.display-board-qr-copy strong {
    color: #1f2d47;
    font-size: 0.9rem;
    font-weight: 800;
}

.display-board-qr-copy span {
    color: #607290;
    font-size: 0.74rem;
    font-weight: 700;
}

.display-board-week-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    min-width: clamp(132px, 10vw, 168px);
    padding: 0.42rem 1rem 0.44rem;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 42%),
        linear-gradient(135deg, rgba(27, 39, 61, 1), rgba(63, 83, 123, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: clamp(1.7rem, 1.5vw + 0.9rem, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 14px 28px rgba(42, 61, 95, 0.18);
}

.display-board-week-chip-copy {
    display: inline-block;
}

.display-board-week-group {
    display: inline-flex;
    align-items: stretch;
    gap: 0.68rem;
    max-width: 100%;
    padding: 0.42rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.6), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 240, 248, 0.92));
    border: 1px solid rgba(36, 52, 77, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 16px 34px rgba(49, 68, 110, 0.1);
}

.display-board-week-divider {
    width: 1px;
    align-self: stretch;
    margin: 0.42rem 0 0.42rem -0.04rem;
    background: linear-gradient(180deg, rgba(150, 164, 189, 0), rgba(150, 164, 189, 0.55), rgba(150, 164, 189, 0));
}

.display-board-range {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0.72rem;
    min-height: 52px;
    padding: 0.3rem 1.05rem 0.32rem 0.44rem;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(247, 250, 254, 0.98), rgba(239, 244, 251, 0.94));
    color: #617392;
    line-height: 1.1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.display-board-range-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(228, 235, 247, 0.86));
    color: #6f82a3;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 8px 18px rgba(80, 100, 138, 0.08);
}

.display-board-range i {
    font-size: 1rem;
    color: currentColor;
}

.display-board-range-copy {
    display: grid;
    gap: 0.14rem;
    min-width: 0;
}

.display-board-range-copy span:last-child {
    color: #5f7190;
    font-size: clamp(0.96rem, 0.72vw + 0.48rem, 1.12rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.display-board-range-label {
    color: #8a99b4;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.display-board-note {
    position: relative;
    z-index: 1;
    flex: 0 1 min(42vw, 720px);
    min-width: 0;
    margin: 0;
    padding: 0.5rem 0.74rem 0.54rem;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.45), transparent 44%),
        linear-gradient(180deg, rgba(255, 247, 214, 0.98), rgba(255, 237, 168, 0.94));
    border: 1px solid rgba(222, 189, 76, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 10px 22px rgba(194, 158, 48, 0.08);
    overflow: hidden;
}

.display-board-note::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.32) 50%, rgba(255, 255, 255, 0) 78%);
    transform: translateX(-140%);
    animation: displayNoteSheen 10s ease-in-out infinite;
    pointer-events: none;
}

.display-board-note-label {
    position: relative;
    z-index: 1;
    font-size: 0.66rem;
    font-weight: 800;
    color: #8a6512;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.display-board-note-text {
    position: relative;
    z-index: 1;
    margin-top: 0.14rem;
    color: #5f4b12;
    font-size: clamp(0.82rem, 0.55vw + 0.55rem, 0.98rem);
    font-weight: 700;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes displayHeaderSweep {

    0%,
    100% {
        transform: translateX(-10%) translateY(0) scale(0.96);
        opacity: 0.52;
    }

    50% {
        transform: translateX(18%) translateY(0) scale(1.04);
        opacity: 0.92;
    }
}

@keyframes displayNoteSheen {

    0%,
    100% {
        transform: translateX(-140%);
    }

    45%,
    55% {
        transform: translateX(140%);
    }
}

.display-board-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(36, 52, 77, 0.08);
    box-shadow: 0 18px 42px rgba(49, 68, 110, 0.08);
}

.display-absence-panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.8rem;
    border: 1px solid rgba(36, 52, 77, 0.08);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
    box-shadow: 0 18px 42px rgba(49, 68, 110, 0.08);
}

.display-absence-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.display-absence-kicker {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6c7da0;
}

.display-absence-panel-head h2 {
    margin: 0.12rem 0 0;
    font-size: clamp(0.98rem, 0.9vw, 1.22rem);
    font-weight: 800;
    color: #1f2d47;
}

.display-absence-count {
    min-width: 2rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(16, 35, 63, 0.92), rgba(23, 79, 115, 0.88));
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    box-shadow: 0 12px 24px rgba(16, 35, 63, 0.16);
}

.display-absence-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: grid;
    align-content: start;
    gap: var(--display-absence-gap);
}

.display-absence-item {
    padding: var(--display-absence-item-pad-y) var(--display-absence-item-pad-x);
    border-radius: var(--display-absence-item-radius);
    border: 1px solid rgba(128, 148, 184, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 255, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.display-absence-person {
    display: flex;
    align-items: center;
    gap: clamp(0.45rem, 0.8vw, 0.8rem);
}

.display-absence-avatar-shell {
    width: var(--display-absence-avatar-size);
    height: var(--display-absence-avatar-size);
    flex: 0 0 var(--display-absence-avatar-size);
    border-radius: calc(var(--display-absence-avatar-size) * 0.32);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(38, 94, 136, 0.16), rgba(216, 115, 45, 0.2));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.display-absence-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.display-absence-avatar-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: calc(var(--display-absence-name-size) * 0.95);
    font-weight: 800;
    color: #174f73;
}

.display-absence-person-copy {
    min-width: 0;
}

.display-absence-name {
    font-size: var(--display-absence-name-size);
    font-weight: 800;
    line-height: 1.12;
    color: #1d2a44;
    text-wrap: balance;
}

.display-absence-date {
    margin-top: 0.08rem;
    font-size: var(--display-absence-date-size);
    font-weight: 700;
    color: #33415f;
    line-height: 1.12;
}

.display-absence-time-inline {
    margin-top: 0.08rem;
    color: #607290;
    font-weight: 700;
    font-size: calc(var(--display-absence-date-size) * 0.96);
    line-height: 1.08;
    white-space: nowrap;
}

.display-absence-meta {
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    min-height: calc(
        (var(--display-absence-status-size) * 1rem) +
        (var(--display-absence-status-pad-y) * 2rem)
    );
}

.display-absence-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--display-absence-status-pad-y) var(--display-absence-status-pad-x);
    border-radius: 999px;
    font-size: var(--display-absence-status-size);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.display-absence-status.status-approved {
    background: rgba(34, 197, 94, 0.14);
    color: #0f8b43;
}

.display-absence-status.status-pending {
    background: rgba(245, 158, 11, 0.16);
    color: #b26a00;
}

.display-absence-status.status-rejected {
    background: rgba(239, 68, 68, 0.14);
    color: #b42323;
}

.display-absence-status.status-unknown {
    background: rgba(96, 114, 144, 0.14);
    color: #50627d;
}

.display-absence-empty {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    place-items: center;
    gap: 0.7rem;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px dashed rgba(108, 125, 160, 0.28);
    background: rgba(246, 249, 255, 0.72);
    text-align: center;
    color: #607290;
}

.display-absence-empty i {
    font-size: 1.8rem;
    color: #16a34a;
}

.display-board-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: rgba(255, 255, 255, 0.98);
}

.display-board-table thead th {
    padding: var(--display-head-pad-top) 0.38rem var(--display-head-pad-bottom);
    background: linear-gradient(135deg, var(--surface-strong), var(--surface-strong-2));
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.display-board-table thead th:first-child {
    width: clamp(128px, 12vw, 182px);
    min-width: clamp(128px, 12vw, 182px);
}

.display-machine-head {
    text-align: left;
    font-size: var(--display-machine-head-size);
    font-weight: 800;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.display-shift-title {
    font-size: var(--display-shift-title-size);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.display-shift-time {
    margin-top: 0.08rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: var(--display-shift-time-size);
    font-weight: 700;
    line-height: 1.05;
}

.display-shift-head.shift-group-start {
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.14);
}

.display-board-table tbody tr:nth-child(even) .display-machine-cell,
.display-board-table tbody tr:nth-child(even) .display-slot-cell {
    background: rgba(247, 250, 255, 0.98);
}

.display-board-table tbody tr:hover .display-machine-cell,
.display-board-table tbody tr:hover .display-slot-cell {
    background: rgba(243, 247, 255, 0.98);
}

.display-machine-cell {
    height: var(--display-row-height);
    padding: var(--display-machine-cell-pad-y) var(--display-machine-cell-pad-x);
    border-right: 1px solid rgba(220, 227, 239, 0.9);
    border-bottom: 1px solid rgba(220, 227, 239, 0.9);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 251, 255, 0.98));
    white-space: normal;
    text-align: center;
    vertical-align: middle;
}

.display-machine-text {
    display: block;
    font-size: var(--display-machine-font-size);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: pretty;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.display-slot-cell {
    height: var(--display-row-height);
    padding: var(--display-slot-cell-pad);
    border-right: 1px solid rgba(220, 227, 239, 0.9);
    border-bottom: 1px solid rgba(220, 227, 239, 0.9);
    background: rgba(251, 253, 255, 0.96);
}

.display-slot-cell.shift-group-start {
    border-left: 3px solid rgba(33, 48, 74, 0.14);
}

.display-slot-cell.shift-group-end {
    box-shadow: inset -1px 0 0 rgba(36, 52, 77, 0.04);
}

.display-slot-card {
    min-height: 100%;
    height: 100%;
    min-height: var(--display-slot-min-height);
    padding: 0.16rem 0.24rem;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 0;
    box-shadow: none;
}

.display-slot-cell.is-filled .display-slot-card {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.display-slot-name {
    font-size: var(--display-slot-font-size);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.02;
    letter-spacing: -0.02em;
    display: block;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.display-slot-empty {
    font-size: 0.95rem;
    font-weight: 700;
    color: transparent;
}

.display-empty-state {
    width: 900px;
    max-width: calc(100vw - 48px);
    padding: 2.4rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 70px rgba(49, 68, 110, 0.16);
    text-align: center;
}

.display-empty-kicker {
    color: var(--brand-solid);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mobile-board-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(20, 95, 116, 0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(217, 123, 47, 0.08), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
    color: #1f2d47;
}

.mobile-board-page:not(.mobile-board-intro-complete) {
    overflow: hidden;
}

.mobile-board-shell,
.mobile-invalid-shell {
    width: min(100%, 780px);
    margin: 0 auto;
    padding: 1rem 0.95rem 1.4rem;
    display: grid;
    gap: 0.95rem;
}

.mobile-board-shell {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    filter: blur(10px);
    transition:
        opacity 0.75s ease,
        transform 0.95s cubic-bezier(.22,.8,.2,1),
        filter 0.95s cubic-bezier(.22,.8,.2,1);
}

.mobile-board-intro-complete .mobile-board-shell {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.mobile-board-intro-screen {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(30, 102, 126, 0.2), transparent 28%),
        radial-gradient(circle at 80% 75%, rgba(217, 123, 47, 0.18), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.mobile-board-intro-complete .mobile-board-intro-screen {
    opacity: 0;
    visibility: hidden;
}

.mobile-board-intro-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(30, 102, 126, 0.12);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    mix-blend-mode: screen;
}

.mobile-board-intro-orbit.orbit-one {
    width: 78vw;
    height: 78vw;
    max-width: 520px;
    max-height: 520px;
    animation: mobileIntroRotate 12s linear infinite;
}

.mobile-board-intro-orbit.orbit-two {
    width: 56vw;
    height: 56vw;
    max-width: 360px;
    max-height: 360px;
    border-color: rgba(217, 123, 47, 0.14);
    animation: mobileIntroRotateReverse 9s linear infinite;
}

.mobile-board-intro-core {
    position: relative;
    z-index: 1;
    width: min(86vw, 360px);
    padding: 1.3rem 1.25rem 1.1rem;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 249, 255, 0.76));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        0 28px 80px rgba(27, 46, 84, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    display: grid;
    gap: 0.95rem;
    justify-items: center;
    animation: mobileIntroCardFloat 2.6s ease-in-out infinite;
}

.mobile-board-intro-milk-river {
    position: absolute;
    left: -12%;
    width: 124%;
    height: 22vh;
    min-height: 120px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.66) 48%, rgba(255, 255, 255, 0.18) 78%, transparent 100%);
    filter: blur(10px);
    opacity: 0.9;
}

.mobile-board-intro-milk-river.river-top {
    top: -8vh;
    transform: rotate(-5deg);
    animation: mobileMilkWaveTop 4.2s ease-in-out infinite;
}

.mobile-board-intro-milk-river.river-bottom {
    bottom: -10vh;
    transform: rotate(4deg);
    animation: mobileMilkWaveBottom 4.8s ease-in-out infinite;
}

.mobile-board-intro-drop {
    position: absolute;
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78) 58%, rgba(226, 237, 248, 0.42) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 14px 28px rgba(90, 117, 154, 0.12);
    opacity: 0.9;
}

.mobile-board-intro-drop.drop-one {
    top: 18%;
    left: 14%;
    width: 22px;
    height: 22px;
    animation: mobileMilkDrop 2.8s ease-in-out infinite;
}

.mobile-board-intro-drop.drop-two {
    top: 26%;
    right: 17%;
    width: 16px;
    height: 16px;
    animation: mobileMilkDrop 3.2s ease-in-out infinite 0.45s;
}

.mobile-board-intro-drop.drop-three {
    bottom: 23%;
    right: 24%;
    width: 26px;
    height: 26px;
    animation: mobileMilkDrop 3s ease-in-out infinite 0.8s;
}

.mobile-board-intro-splash {
    position: absolute;
    inset: auto 50% 18% auto;
    width: 260px;
    height: 160px;
    transform: translateX(50%);
    pointer-events: none;
}

.splash-blob {
    position: absolute;
    border-radius: 50% 55% 48% 52%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.8) 56%, rgba(228, 236, 247, 0.46) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 18px 34px rgba(90, 117, 154, 0.12);
    opacity: 0.72;
}

.splash-blob.blob-one {
    left: 18px;
    bottom: 12px;
    width: 74px;
    height: 74px;
    animation: mobileSplashBlob 3.8s ease-in-out infinite;
}

.splash-blob.blob-two {
    left: 88px;
    bottom: 0;
    width: 112px;
    height: 112px;
    animation: mobileSplashBlob 4.4s ease-in-out infinite 0.35s;
}

.splash-blob.blob-three {
    right: 18px;
    bottom: 20px;
    width: 64px;
    height: 64px;
    animation: mobileSplashBlob 4s ease-in-out infinite 0.7s;
}

.mobile-board-intro-logo-shell {
    width: 88px;
    height: 88px;
    border-radius: 28px;
    padding: 0.9rem;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 44%),
        linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(240, 245, 255, 0.96));
    box-shadow:
        0 18px 36px rgba(27, 46, 84, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.mobile-board-intro-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    animation: mobileIntroLogoPulse 2.2s ease-in-out infinite;
}

.mobile-board-intro-copy {
    text-align: center;
}

.mobile-board-intro-kicker {
    color: #7487a9;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mobile-board-intro-copy h1 {
    margin: 0.4rem 0 0;
    color: #173353;
    font-size: clamp(2rem, 7vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.mobile-board-intro-copy p {
    margin: 0.38rem 0 0;
    color: #5e7191;
    font-size: 0.95rem;
    font-weight: 700;
}

.mobile-board-intro-progress {
    width: 100%;
    height: 10px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(23, 51, 83, 0.08);
    overflow: hidden;
}

.mobile-board-intro-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transform-origin: left center;
    background: linear-gradient(90deg, #173353, #1f6e86 58%, #d97b2f);
    animation: mobileIntroProgress 2.2s cubic-bezier(.22,.8,.2,1) forwards;
}

.mobile-board-intro-screen {
    background:
        radial-gradient(circle at center, rgba(34, 62, 96, 0.18), transparent 24%),
        linear-gradient(180deg, #091321 0%, #12233a 52%, #edf3fb 160%);
}

.mobile-board-cinema-bg,
.mobile-board-cinema-noise,
.mobile-board-cinema-beam,
.mobile-board-cinema-stage,
.mobile-board-cinema-copy {
    position: absolute;
}

.mobile-board-cinema-bg {
    inset: 0;
    background:
        radial-gradient(circle at 50% 38%, rgba(96, 219, 255, 0.16), transparent 20%),
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.08), transparent 18%),
        radial-gradient(circle at 82% 20%, rgba(217, 123, 47, 0.12), transparent 18%);
}

.mobile-board-cinema-noise {
    inset: 0;
    opacity: 0.18;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.5px),
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.5px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.34) 0 1px, transparent 1.5px);
    background-size: 120px 120px;
    animation: mobileCinemaNoiseDrift 12s linear infinite;
}

.mobile-board-cinema-beam {
    top: -14%;
    width: 42vw;
    max-width: 320px;
    height: 62vh;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    filter: blur(14px);
    opacity: 0.6;
    transform-origin: top center;
}

.mobile-board-cinema-beam.beam-left {
    left: 6%;
    transform: rotate(-18deg);
    animation: mobileCinemaBeamLeft 4.8s ease-in-out infinite;
}

.mobile-board-cinema-beam.beam-right {
    right: 4%;
    transform: rotate(16deg);
    animation: mobileCinemaBeamRight 5.4s ease-in-out infinite;
}

.mobile-board-cinema-stage {
    left: 50%;
    top: 50%;
    width: min(88vw, 390px);
    height: 360px;
    transform: translate(-50%, -54%);
    display: grid;
    place-items: center;
}

.mobile-board-cinema-ring {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(163, 223, 255, 0.22);
    box-shadow: 0 0 34px rgba(92, 204, 255, 0.08), inset 0 0 28px rgba(255, 255, 255, 0.04);
}

.mobile-board-cinema-ring.ring-one {
    width: 320px;
    height: 320px;
    animation: mobileCinemaRingOne 7s linear infinite;
}

.mobile-board-cinema-ring.ring-two {
    width: 248px;
    height: 248px;
    border-color: rgba(255, 255, 255, 0.18);
    animation: mobileCinemaRingTwo 5.2s linear infinite;
}

.mobile-board-cinema-ring.ring-three {
    width: 176px;
    height: 176px;
    border-color: rgba(217, 123, 47, 0.2);
    animation: mobileCinemaRingThree 4.1s linear infinite;
}

.mobile-board-cinema-particles {
    position: absolute;
    inset: 0;
}

.mobile-board-cinema-particles .particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(171, 226, 255, 0.22));
    box-shadow: 0 0 24px rgba(133, 219, 255, 0.45);
}

.particle-one { top: 54px; left: 72px; animation: mobileCinemaParticle 2.7s ease-in-out infinite; }
.particle-two { top: 88px; right: 58px; animation: mobileCinemaParticle 3.1s ease-in-out infinite 0.35s; }
.particle-three { bottom: 126px; left: 54px; animation: mobileCinemaParticle 2.9s ease-in-out infinite 0.7s; }
.particle-four { bottom: 86px; right: 62px; animation: mobileCinemaParticle 3.4s ease-in-out infinite 0.2s; }
.particle-five { top: 30px; left: 50%; margin-left: -6px; animation: mobileCinemaParticle 2.5s ease-in-out infinite 1s; }

.mobile-board-cinema-liquid {
    position: absolute;
    left: 50%;
    bottom: 66px;
    width: 290px;
    height: 112px;
    transform: translateX(-50%);
    border-radius: 46% 54% 48% 52% / 44% 42% 58% 56%;
    filter: blur(2px);
}

.mobile-board-cinema-liquid.liquid-back {
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.28) 62%, transparent 100%);
    opacity: 0.7;
    animation: mobileCinemaLiquidBack 4.6s ease-in-out infinite;
}

.mobile-board-cinema-liquid.liquid-front {
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.98), rgba(233, 242, 252, 0.78) 58%, rgba(176, 210, 233, 0.2) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 28px 40px rgba(9, 19, 33, 0.22);
    animation: mobileCinemaLiquidFront 3.3s ease-in-out infinite;
}

.mobile-board-cinema-emblem {
    position: absolute;
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    animation: mobileCinemaEmblem 3s cubic-bezier(.2,.8,.2,1) infinite;
}

.mobile-board-cinema-emblem-core {
    position: absolute;
    inset: 18px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(125, 211, 252, 0.06) 58%, transparent 100%);
    box-shadow:
        0 0 52px rgba(92, 204, 255, 0.2),
        inset 0 0 38px rgba(255, 255, 255, 0.1);
}

.mobile-board-cinema-logo-shell {
    width: 104px;
    height: 104px;
    padding: 1rem;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.46);
    backdrop-filter: blur(18px);
    box-shadow:
        0 26px 64px rgba(9, 19, 33, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mobile-board-cinema-logo {
    animation: mobileCinemaLogoFlash 2.8s ease-in-out infinite;
}

.mobile-board-cinema-flare {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
    filter: blur(12px);
    animation: mobileCinemaFlare 3.4s ease-in-out infinite;
}

.mobile-board-cinema-copy {
    left: 50%;
    bottom: 7.5vh;
    width: min(88vw, 380px);
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 0.95rem;
    z-index: 2;
}

.mobile-board-cinema-chip {
    min-height: 34px;
    padding: 0.5rem 0.84rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(236, 244, 255, 0.86);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.mobile-board-cinema-copy-main h1,
.mobile-board-cinema-copy-main p {
    color: #fff;
    text-shadow: 0 12px 32px rgba(5, 12, 22, 0.42);
}

.mobile-board-cinema-progress {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-board-intro-screen {
    background:
        radial-gradient(circle at top center, rgba(135, 211, 255, 0.22), transparent 24%),
        linear-gradient(180deg, #122033 0%, #1a2d46 50%, #edf3fb 165%);
}

.mobile-pack-intro-bg,
.mobile-pack-intro-belt,
.mobile-pack-intro-machine,
.mobile-pack-intro-copy {
    position: absolute;
}

.mobile-pack-intro-bg {
    inset: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(117, 215, 255, 0.18), transparent 24%),
        radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.08), transparent 22%),
        radial-gradient(circle at 82% 62%, rgba(217, 123, 47, 0.12), transparent 20%);
}

.mobile-pack-intro-belt {
    left: 50%;
    bottom: 16%;
    width: min(92vw, 420px);
    height: 22px;
    transform: translateX(-50%);
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(28, 45, 67, 0.98), rgba(62, 86, 117, 0.92), rgba(28, 45, 67, 0.98));
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.14),
        0 12px 24px rgba(4, 10, 18, 0.28);
    overflow: hidden;
}

.mobile-pack-intro-belt::after {
    content: "";
    position: absolute;
    inset: 5px -30% 5px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 24px, transparent 24px 44px);
    animation: mobilePackBeltMove 1.2s linear infinite;
}

.mobile-pack-intro-machine {
    left: 50%;
    top: 10%;
    width: min(90vw, 400px);
    height: 400px;
    transform: translateX(-50%);
}

.mobile-pack-nozzle {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 92px;
    height: 82px;
    transform: translateX(-50%);
    border-radius: 22px 22px 28px 28px;
    background:
        linear-gradient(180deg, rgba(237, 242, 248, 0.96), rgba(162, 178, 198, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 18px 32px rgba(7, 13, 24, 0.2);
}

.mobile-pack-nozzle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -22px;
    width: 170px;
    height: 28px;
    transform: translateX(-50%);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(223, 231, 240, 0.96), rgba(139, 156, 180, 0.82));
    box-shadow: 0 10px 24px rgba(7, 13, 24, 0.14);
}

.mobile-pack-nozzle::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 34px;
    height: 28px;
    border-radius: 0 0 16px 16px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(191, 203, 218, 0.94), rgba(129, 147, 171, 0.88));
}

.mobile-pack-flow {
    position: absolute;
    top: 122px;
    left: 50%;
    width: 22px;
    height: 126px;
    transform: translateX(-50%);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 252, 0.82));
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.32);
    animation: mobilePackFlowPulse 1.8s ease-in-out infinite;
}

.mobile-pack-carton {
    position: absolute;
    left: 50%;
    bottom: 40px;
    width: 226px;
    height: 290px;
    transform: translateX(-50%);
    filter: drop-shadow(0 26px 40px rgba(5, 12, 22, 0.26));
}

.mobile-pack-carton-top {
    position: absolute;
    top: 0;
    left: 18px;
    right: 34px;
    height: 62px;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    background: linear-gradient(180deg, rgba(242, 247, 255, 0.96), rgba(194, 209, 228, 0.86));
}

.mobile-pack-carton-side {
    position: absolute;
    top: 62px;
    right: 0;
    width: 42px;
    height: 198px;
    clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
    background: linear-gradient(180deg, rgba(173, 193, 216, 0.96), rgba(126, 149, 177, 0.9));
}

.mobile-pack-carton-front {
    position: absolute;
    top: 62px;
    left: 0;
    width: 184px;
    height: 214px;
    padding: 1rem 0.95rem 0.88rem;
    border-radius: 30px 20px 26px 26px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), transparent 44%),
        linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(222, 232, 245, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.mobile-pack-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.mobile-pack-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.mobile-pack-brand-copy {
    min-width: 0;
    line-height: 1.02;
}

.mobile-pack-brand-kicker {
    display: block;
    color: #7084a6;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mobile-pack-brand strong {
    display: block;
    margin-top: 0.14rem;
    color: #173353;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.mobile-pack-fill-window {
    position: relative;
    margin-top: 1rem;
    height: 98px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(140, 163, 190, 0.18);
    overflow: hidden;
}

.mobile-pack-fill-window::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 50%;
    width: 24px;
    height: 24px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(199, 212, 228, 0.94), rgba(145, 160, 183, 0.88));
    box-shadow: 0 8px 18px rgba(7, 13, 24, 0.12);
}

.mobile-pack-milk-level {
    position: absolute;
    inset: auto 0 0;
    height: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 250, 0.92));
    animation: mobilePackFillLevel 1.8s cubic-bezier(.22,.8,.2,1) infinite;
}

.mobile-pack-wave {
    position: absolute;
    left: -12%;
    width: 124%;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    opacity: 0;
}

.mobile-pack-wave.wave-one {
    animation: mobilePackWaveDrift 1.8s ease-in-out infinite;
}

.mobile-pack-wave.wave-two {
    animation: mobilePackWaveDrift 1.8s ease-in-out infinite 0.24s;
}

.mobile-pack-kw {
    position: absolute;
    left: 0.82rem;
    right: 0.82rem;
    bottom: 0.78rem;
    min-height: 32px;
    padding: 0.42rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #173353, #1f6e86);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
}

.mobile-pack-splash {
    position: absolute;
    bottom: 96px;
    width: 42px;
    height: 42px;
    border-radius: 50% 55% 46% 54%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98), rgba(234, 242, 250, 0.76));
    box-shadow:
        0 14px 24px rgba(5, 12, 22, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    opacity: 0;
}

.mobile-pack-splash.splash-left {
    left: 86px;
    animation: mobilePackSplashLeft 1.8s ease-out infinite;
}

.mobile-pack-splash.splash-right {
    right: 82px;
    animation: mobilePackSplashRight 1.8s ease-out infinite 0.08s;
}

.mobile-pack-intro-copy {
    left: 50%;
    bottom: 5.5vh;
    width: min(88vw, 380px);
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 0.95rem;
    z-index: 2;
}

.mobile-pack-intro-chip {
    min-height: 34px;
    padding: 0.5rem 0.86rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(245, 249, 255, 0.94);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.mobile-pack-intro-progress {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-board-intro-screen {
    background:
        radial-gradient(circle at 50% 28%, rgba(122, 207, 255, 0.18), transparent 24%),
        radial-gradient(circle at 50% 80%, rgba(34, 111, 146, 0.08), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eaf2fb 100%);
}

.mobile-board-intro-video-shell,
.mobile-board-intro-video-copy,
.mobile-board-intro-video-overlay,
.mobile-board-intro-video-vignette {
    position: absolute;
}

.mobile-board-intro-video-shell {
    inset: 0;
    overflow: hidden;
}

.mobile-board-intro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.06) contrast(1.02);
}

.mobile-board-intro-video-overlay {
    inset: 0;
    background:
        linear-gradient(180deg, rgba(244, 249, 255, 0.18) 0%, rgba(244, 249, 255, 0.02) 24%, rgba(233, 241, 250, 0.18) 100%),
        radial-gradient(circle at 50% 78%, rgba(15, 39, 68, 0.16), transparent 30%);
    pointer-events: none;
}

.mobile-board-intro-video-vignette {
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 42%, rgba(18, 43, 74, 0.08) 100%),
        linear-gradient(180deg, rgba(250, 252, 255, 0.18), rgba(14, 38, 67, 0.08));
    pointer-events: none;
}

.mobile-board-intro-video-copy {
    left: 50%;
    bottom: 3.2vh;
    width: min(86vw, 342px);
    padding: 0.82rem 0.9rem 0.72rem;
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 0.54rem;
    z-index: 4;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 14px 34px rgba(16, 32, 54, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(12px);
}

.mobile-board-intro-video-loading {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
}

.mobile-board-intro-video-copy-main h1,
.mobile-board-intro-video-copy-main p {
    color: #ffffff;
    text-shadow: 0 10px 24px rgba(8, 18, 32, 0.38);
}

.mobile-board-intro-video-copy-main h1 {
    margin-top: 0;
    font-size: clamp(1.7rem, 6vw, 2.15rem);
    line-height: 0.96;
}

.mobile-board-intro-video-copy-main p {
    margin-top: 0.22rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-board-intro-video-progress {
    width: 100%;
    margin-top: 0.14rem;
    height: 12px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 10px 24px rgba(8, 18, 32, 0.12);
    backdrop-filter: blur(10px);
}

.mobile-board-intro-video-progress span {
    background:
        linear-gradient(90deg, #ffffff 0%, #98daf7 18%, #24739a 58%, #f09a4d 100%);
    box-shadow:
        0 0 18px rgba(146, 217, 247, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.44);
    animation: mobileIntroProgress 5.8s cubic-bezier(.18,.84,.22,1) forwards;
}

.mobile-factory-intro,
.mobile-factory-copy,
.mobile-factory-ceiling,
.mobile-factory-wall,
.mobile-factory-pipe,
.mobile-factory-line,
.mobile-factory-glow,
.mobile-factory-status-card {
    position: absolute;
}

.mobile-factory-intro {
    inset: 0;
    overflow: hidden;
}

.mobile-factory-glow {
    inset: 14% 10% auto;
    height: 48vh;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(161, 220, 255, 0.34), rgba(255, 255, 255, 0) 68%);
    filter: blur(10px);
    opacity: 0.9;
    animation: mobileFactoryGlowPulse 2s ease-in-out infinite;
}

.mobile-factory-ceiling {
    inset: 0 0 auto;
    height: 23%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 243, 250, 0.84));
    box-shadow: inset 0 -1px 0 rgba(137, 158, 186, 0.16);
}

.mobile-factory-wall {
    inset: 17% 0 0;
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.84), rgba(225, 235, 246, 0.94));
}

.mobile-factory-pipe {
    top: 7%;
    left: 50%;
    width: 290px;
    height: 228px;
    transform: translateX(-50%);
    z-index: 2;
}

.mobile-factory-pipe::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(180deg, #dfe7f1, #a4b7d0);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.72),
        0 14px 28px rgba(29, 51, 81, 0.1);
}

.mobile-factory-pipe::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 22px;
    width: 42px;
    height: 104px;
    transform: translateX(-50%);
    border-radius: 0 0 22px 22px;
    background: linear-gradient(180deg, #c6d3e1, #899eb8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.mobile-factory-pipe-joint {
    position: absolute;
    left: 50%;
    top: 116px;
    width: 66px;
    height: 42px;
    transform: translateX(-50%);
    border-radius: 22px;
    background: linear-gradient(180deg, #dce5ef, #a7b8cd);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.66),
        0 12px 24px rgba(34, 53, 82, 0.12);
}

.mobile-factory-pipe-drop {
    position: absolute;
    left: 50%;
    top: 154px;
    width: 20px;
    height: 214px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 252, 0.82));
    box-shadow:
        0 0 22px rgba(255, 255, 255, 0.7),
        0 0 12px rgba(139, 198, 255, 0.24);
    animation: mobileFactoryMilkFlow 1.35s ease-in-out infinite;
}

.mobile-factory-line {
    left: 50%;
    bottom: 16%;
    width: min(92vw, 430px);
    height: 430px;
    transform: translateX(-50%);
    z-index: 3;
}

.mobile-factory-status-card {
    top: 106px;
    left: 50%;
    width: 212px;
    padding: 0.78rem 0.88rem;
    transform: translateX(-50%);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow:
        0 14px 30px rgba(16, 32, 54, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
}

.mobile-factory-conveyor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
}

.mobile-factory-conveyor-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #233a59, #496181, #233a59);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.14),
        0 14px 24px rgba(17, 28, 44, 0.18);
}

.mobile-factory-conveyor-slats {
    position: absolute;
    inset: 5px 12px;
    border-radius: 999px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.18) 0 22px,
        rgba(255, 255, 255, 0.05) 22px 34px
    );
    animation: mobileFactoryConveyor 1.05s linear infinite;
}

.mobile-factory-carton-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mobile-factory-carton-logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.mobile-factory-carton-logo-copy span,
.mobile-factory-carton-logo-copy strong {
    display: block;
}

.mobile-factory-carton-logo-copy span {
    color: #7c8daa;
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mobile-factory-carton-logo-copy strong {
    margin-top: 0.16rem;
    color: #173353;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.mobile-factory-copy {
    position: absolute;
    left: 50%;
    bottom: 4vh;
    width: min(88vw, 380px);
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 0.8rem;
    z-index: 4;
}

.mobile-factory-chip {
    min-height: 34px;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: #47627f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.mobile-factory-copy-main h1,
.mobile-factory-copy-main p {
    color: #173353;
    text-shadow: none;
}

.mobile-factory-progress {
    background: rgba(23, 51, 83, 0.08);
}

.mobile-factory-cup {
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: 320px;
    height: 382px;
    transform: translateX(-50%);
    animation: mobileFactoryCartonSettle 1.75s cubic-bezier(.22,.8,.2,1) infinite;
}

.mobile-factory-cup-image-shell {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 282px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    z-index: 2;
}

.mobile-factory-cup-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 22px 34px rgba(16, 28, 46, 0.16));
}

.mobile-factory-cup-stream-hit {
    position: absolute;
    left: 50%;
    top: 124px;
    width: 92px;
    height: 34px;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.16) 72%, transparent 100%);
    opacity: 0.9;
    filter: blur(2px);
    animation: mobileFactoryImpactPulse 1.35s ease-in-out infinite;
    z-index: 3;
}

.mobile-factory-cup-fill {
    position: absolute;
    left: 50%;
    top: 118px;
    width: 110px;
    height: 170px;
    transform: translateX(-50%);
    border-radius: 45% 45% 48% 48% / 28% 28% 58% 58%;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.92), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 246, 251, 0.18));
    opacity: 0.82;
    filter: blur(6px);
    animation: mobileFactoryCupFillGlow 1.35s ease-in-out infinite;
    z-index: 1;
}

.mobile-factory-cup-chip {
    position: absolute;
    left: 50%;
    bottom: 74px;
    min-width: 126px;
    min-height: 38px;
    padding: 0.5rem 0.9rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(135deg, #173353, #1f6e86);
    color: #fff;
    font-size: 1.02rem;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 12px 24px rgba(18, 59, 88, 0.22);
    z-index: 4;
}

.mobile-factory-cup-shadow {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(16, 28, 46, 0.1);
    filter: blur(12px);
    z-index: 0;
}

.mobile-board-intro-screen {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.5), transparent 34%),
        linear-gradient(180deg, #f7fbff 0%, #eaf1fb 100%);
}

.mobile-board-intro-gridlines {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(25, 50, 82, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 50, 82, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1), transparent 82%);
    animation: mobileIntroGridDrift 9s linear infinite;
}

.mobile-board-intro-spotlight {
    position: absolute;
    inset: 8% 12% auto;
    height: 52vh;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
    filter: blur(20px);
    animation: mobileIntroSpotlightPulse 3.4s ease-in-out infinite;
}

.mobile-board-intro-stage {
    position: relative;
    z-index: 1;
    width: min(86vw, 360px);
    height: 270px;
    display: grid;
    place-items: center;
}

.mobile-board-intro-tank {
    position: absolute;
    top: 18px;
    width: 148px;
    height: 172px;
    border-radius: 34px 34px 44px 44px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(240, 246, 255, 0.1)),
        rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 24px 60px rgba(29, 47, 84, 0.1);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.mobile-board-intro-pour {
    position: absolute;
    top: -62px;
    left: 50%;
    width: 18px;
    height: 116px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 255, 0.7));
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
    animation: mobileIntroPour 2.5s cubic-bezier(.22,.8,.2,1) infinite;
}

.mobile-board-intro-milk {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 0;
    border-radius: 26px 26px 34px 34px;
    background:
        radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.9) 62%, rgba(225, 234, 245, 0.72) 100%);
    animation: mobileIntroFill 2.5s cubic-bezier(.22,.8,.2,1) infinite;
}

.mobile-board-intro-ripple {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 22px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
    opacity: 0;
}

.mobile-board-intro-ripple.ripple-one {
    animation: mobileIntroRipple 2.5s ease-out infinite 0.8s;
}

.mobile-board-intro-ripple.ripple-two {
    animation: mobileIntroRipple 2.5s ease-out infinite 1s;
}

.mobile-board-intro-ripple.ripple-three {
    animation: mobileIntroRipple 2.5s ease-out infinite 1.2s;
}

.mobile-board-intro-emblem {
    position: absolute;
    top: 108px;
    width: 148px;
    height: 148px;
    display: grid;
    place-items: center;
    animation: mobileIntroEmblemRise 2.5s cubic-bezier(.22,.8,.2,1) infinite;
}

.mobile-board-intro-emblem-glow {
    position: absolute;
    inset: 22px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(31, 110, 134, 0.22), rgba(31, 110, 134, 0));
    filter: blur(16px);
}

.mobile-board-intro-logo-shell {
    position: relative;
    z-index: 1;
}

.mobile-board-intro-scanline {
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 26px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(31, 110, 134, 0.7), transparent);
    box-shadow: 0 0 24px rgba(31, 110, 134, 0.45);
    animation: mobileIntroScanline 2.5s cubic-bezier(.22,.8,.2,1) infinite;
}

.mobile-board-intro-copy-wrap {
    position: relative;
    z-index: 1;
    width: min(86vw, 360px);
    margin-top: -8px;
    display: grid;
    justify-items: center;
    gap: 0.9rem;
}

.mobile-board-intro-chip {
    min-height: 34px;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: #7487a9;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.mobile-board-header,
.mobile-board-toolbar,
.mobile-board-note-card,
.mobile-board-section,
.mobile-machine-card,
.mobile-invalid-shell {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        0 22px 50px rgba(27, 46, 84, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

.mobile-board-header {
    padding: 0.92rem;
    background:
        radial-gradient(circle at top right, rgba(27, 117, 138, 0.07), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.95));
}

.mobile-board-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.mobile-board-brand-mark {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    display: grid;
    place-items: center;
}

.mobile-board-brand-copy {
    min-width: 0;
    display: grid;
    gap: 0.18rem;
}

.mobile-board-brand img,
.mobile-invalid-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.mobile-board-section-kicker {
    color: #6b7d9e;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mobile-board-header h1,
.mobile-invalid-shell h1 {
    margin: 0;
    font-size: clamp(1.72rem, 4.6vw, 2.02rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.mobile-board-header-period {
    display: grid;
    gap: 0.08rem;
    margin-top: 0;
}

.mobile-board-header-period strong {
    display: block;
    color: #31435f;
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.mobile-board-toolbar,
.mobile-board-note-card,
.mobile-board-section,
.mobile-machine-card {
    padding: 1rem;
}

.mobile-board-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 54px;
    padding: 0 0.95rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(243, 247, 255, 0.96));
    border: 1px solid rgba(130, 148, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.mobile-board-search i {
    color: #7b8dab;
    font-size: 0.95rem;
}

.mobile-board-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f2d47;
    font-size: 0.96rem;
    font-weight: 700;
}

.mobile-board-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.85rem;
}

.mobile-board-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(244, 248, 255, 0.96);
    border: 1px solid rgba(130, 148, 184, 0.14);
    color: #41506a;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.mobile-board-link.is-active {
    background: linear-gradient(135deg, #10233f, #174f73);
    color: #fff;
}

.mobile-board-note-text {
    margin-top: 0.45rem;
    color: #42536d;
    line-height: 1.62;
    font-weight: 700;
}

.mobile-board-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.mobile-board-section-head strong {
    color: #1f2d47;
    font-size: 1.05rem;
    font-weight: 800;
}

.mobile-absence-list,
.mobile-machine-list,
.mobile-shift-list {
    display: grid;
    gap: 0.7rem;
}

.mobile-absence-item,
.mobile-shift-card {
    padding: 0.9rem 0.95rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(24, 108, 132, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(242, 247, 255, 0.94));
    border: 1px solid rgba(130, 148, 184, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 12px 24px rgba(27, 46, 84, 0.06);
}

.mobile-absence-name,
.mobile-machine-card h2,
.mobile-shift-head strong,
.mobile-shift-slot-name {
    color: #1f2d47;
    font-weight: 800;
}

.mobile-machine-card h2 {
    margin: 0 0 0.8rem;
    font-size: 1.08rem;
}

.mobile-absence-date,
.mobile-absence-time,
.mobile-shift-head span,
.mobile-shift-slot-index,
.mobile-board-empty,
.mobile-invalid-shell p {
    color: #607290;
    font-weight: 700;
}

.mobile-absence-date,
.mobile-absence-time {
    margin-top: 0.12rem;
}

.mobile-shift-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(130, 148, 184, 0.14);
}

.mobile-shift-head strong {
    font-size: 1.12rem;
    letter-spacing: -0.04em;
}

.mobile-shift-head span {
    min-height: 34px;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    background: rgba(23, 51, 83, 0.07);
    color: #5e7191;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.mobile-shift-slots {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.mobile-shift-slot {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0;
    border-top: 0;
}

.mobile-invalid-shell {
    min-height: 100vh;
    place-content: center;
    text-align: center;
    padding: 1.5rem;
}

@media (max-width: 575.98px) {
    .mobile-board-header h1,
    .mobile-invalid-shell h1 {
        font-size: 1.28rem;
    }

    .mobile-shift-head,
    .mobile-shift-slot {
        flex-direction: column;
        align-items: flex-start;
    }
}

.mobile-board-card {
    position: relative;
    overflow: hidden;
}

.mobile-board-animate {
    opacity: 0;
    transform: translateY(8px);
    animation: mobileBoardEnter 0.34s ease-out forwards;
}

.mobile-board-hero-top,
.mobile-absence-person,
.mobile-shift-slot-main {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mobile-board-hero-top {
    justify-content: space-between;
}

.mobile-board-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(17, 36, 61, 0.08);
    border: 1px solid rgba(17, 36, 61, 0.08);
    color: #174f73;
    font-size: 0.8rem;
    font-weight: 800;
}

.mobile-board-header {
    background:
        radial-gradient(circle at top right, rgba(27, 117, 138, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.94));
    color: #1f2d47;
}

.mobile-board-links-compact {
    margin-top: 0.7rem;
}

.mobile-board-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.95rem;
}

.mobile-board-picker-card,
.mobile-board-intro-card {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.mobile-board-picker-card {
    min-height: 132px;
    padding: 1rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 44%),
        linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(242, 247, 255, 0.96));
    border: 1px solid rgba(130, 148, 184, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 16px 30px rgba(27, 46, 84, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mobile-board-picker-card.is-accent {
    background:
        radial-gradient(circle at top right, rgba(28, 108, 132, 0.14), transparent 34%),
        linear-gradient(135deg, #173353, #1f6e86);
    color: #fff;
}

.mobile-board-picker-card:hover,
.mobile-board-intro-card:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 20px 36px rgba(27, 46, 84, 0.1);
}

.mobile-board-picker-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7487a9;
}

.mobile-board-picker-card.is-accent .mobile-board-picker-kicker {
    color: rgba(234, 244, 255, 0.78);
}

.mobile-board-picker-card strong {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.34rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.mobile-board-picker-card span:last-child {
    display: block;
    margin-top: 0.28rem;
    color: #6b7d9e;
    font-size: 0.88rem;
    font-weight: 700;
}

.mobile-board-picker-card.is-accent span:last-child {
    color: rgba(234, 244, 255, 0.84);
}

.mobile-board-section[hidden] {
    display: none;
}

.mobile-board-section.is-visible {
    animation: mobilePanelIn 0.28s ease-out;
}

.mobile-person-avatar-shell {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(38, 94, 136, 0.16), rgba(216, 115, 45, 0.2));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 8px 18px rgba(36, 52, 77, 0.1);
}

.mobile-person-avatar-shell.is-small {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 14px;
}

.mobile-person-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mobile-person-avatar-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #174f73;
    font-size: 0.92rem;
    font-weight: 800;
}

.mobile-absence-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-absence-item:active,
.mobile-machine-card:active,
.mobile-shift-card:active {
    transform: scale(0.994);
}

.mobile-board-intro {
    display: grid;
    gap: 0.75rem;
}

.mobile-board-intro-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(243, 247, 255, 0.96));
    border: 1px solid rgba(130, 148, 184, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.mobile-board-intro-card i {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #173353, #1c6c84);
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 12px 24px rgba(23, 51, 83, 0.18);
}

.mobile-board-intro-card strong,
.mobile-board-intro-card span {
    display: block;
}

.mobile-board-intro-card strong {
    color: #1f2d47;
    font-size: 1rem;
    font-weight: 800;
}

.mobile-board-intro-card span {
    margin-top: 0.16rem;
    color: #6b7d9e;
    font-size: 0.84rem;
    font-weight: 700;
}

.mobile-modal-open {
    overflow: hidden;
}

.mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.mobile-modal[hidden] {
    display: none;
}

.mobile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 22, 38, 0.42);
    backdrop-filter: blur(12px);
}

.mobile-modal-dialog {
    position: relative;
    width: min(100%, 760px);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 80px rgba(11, 22, 38, 0.22);
    animation: mobileModalIn 0.22s ease-out;
}

.mobile-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.1rem 0.75rem;
}

.mobile-modal-head h2 {
    margin: 0.16rem 0 0;
    color: #1f2d47;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.mobile-modal-close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 0;
    border-radius: 16px;
    background: rgba(241, 246, 255, 0.94);
    color: #5e7191;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.mobile-modal-search {
    margin: 0 1.1rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 54px;
    padding: 0 0.95rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(243, 247, 255, 0.96));
    border: 1px solid rgba(130, 148, 184, 0.16);
}

.mobile-modal-search i {
    color: #7b8dab;
}

.mobile-modal-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f2d47;
    font-size: 0.96rem;
    font-weight: 700;
}

.mobile-modal-body {
    overflow: auto;
    padding: 0 1.1rem 1.1rem;
    display: grid;
    gap: 0.75rem;
}

@keyframes mobileModalIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-absence-copy,
.mobile-shift-slot-copy {
    min-width: 0;
    display: grid;
    gap: 0.14rem;
}

.mobile-absence-name,
.mobile-absence-date,
.mobile-absence-time,
.mobile-shift-slot-name,
.mobile-shift-slot-index {
    display: block;
}

.mobile-absence-name {
    font-size: 1rem;
}

.mobile-shift-slot-name {
    font-size: 0.98rem;
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.mobile-shift-slot-index {
    margin-top: 0;
    font-size: 0.78rem;
    color: #7183a3;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mobile-shift-slot {
    align-items: center;
}

.mobile-shift-slot-main {
    width: 100%;
    padding: 0.72rem 0.78rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(130, 148, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

@keyframes mobileBoardEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileIntroRotate {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg) scale(1.04);
    }
}

@keyframes mobileIntroRotateReverse {
    from {
        transform: rotate(360deg) scale(0.98);
    }
    to {
        transform: rotate(0deg) scale(1.02);
    }
}

@keyframes mobileCinemaNoiseDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-40px, -24px, 0); }
}

@keyframes mobilePackBeltMove {
    from { transform: translateX(0); }
    to { transform: translateX(-44px); }
}

@keyframes mobileFactoryConveyor {
    from { transform: translateX(0); }
    to { transform: translateX(-34px); }
}

@keyframes mobileFactoryGlowPulse {
    0%, 100% {
        transform: scale(0.96);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes mobileFactoryMilkFlow {
    0%, 100% {
        transform: translateX(-50%) scaleY(0.92);
        opacity: 0.82;
    }
    50% {
        transform: translateX(-50%) scaleY(1.06);
        opacity: 1;
    }
}

@keyframes mobileFactoryCartonSettle {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-4px);
    }
}

@keyframes mobileFactoryFill {
    0%, 14% {
        height: 0;
    }
    54% {
        height: 58px;
    }
    100% {
        height: 58px;
    }
}

@keyframes mobileFactorySurface {
    0%, 14% {
        opacity: 0;
        bottom: 18px;
        transform: translateX(0) scaleX(0.88);
    }
    34% {
        opacity: 0.98;
        bottom: 54px;
    }
    100% {
        opacity: 0;
        bottom: 54px;
        transform: translateX(10px) scaleX(1.08);
    }
}

@keyframes mobileFactoryImpactPulse {
    0%, 100% {
        transform: translateX(-50%) scale(0.88);
        opacity: 0.44;
    }
    45% {
        transform: translateX(-50%) scale(1.08);
        opacity: 0.92;
    }
    70% {
        transform: translateX(-50%) scale(1.16);
        opacity: 0.58;
    }
}

@keyframes mobileFactoryCupFillGlow {
    0%, 100% {
        transform: translateX(-50%) scaleY(0.94);
        opacity: 0.76;
    }
    50% {
        transform: translateX(-50%) scaleY(1.02);
        opacity: 1;
    }
}

@keyframes mobilePackFlowPulse {
    0%, 100% {
        transform: translateX(-50%) scaleY(0.92);
        opacity: 0.82;
    }
    50% {
        transform: translateX(-50%) scaleY(1.06);
        opacity: 1;
    }
}

@keyframes mobilePackFillLevel {
    0%, 15% {
        height: 0;
    }
    52% {
        height: 52px;
    }
    100% {
        height: 52px;
    }
}

@keyframes mobilePackWaveDrift {
    0%, 14% {
        opacity: 0;
        bottom: 18px;
        transform: translateX(0) scaleX(0.86);
    }
    30% {
        opacity: 0.96;
        bottom: 44px;
    }
    100% {
        opacity: 0;
        bottom: 44px;
        transform: translateX(12px) scaleX(1.08);
    }
}

@keyframes mobilePackSplashLeft {
    0%, 26% {
        opacity: 0;
        transform: translate(0, 0) scale(0.4) rotate(0deg);
    }
    42% {
        opacity: 1;
        transform: translate(-24px, -26px) scale(0.94) rotate(-16deg);
    }
    100% {
        opacity: 0;
        transform: translate(-48px, -58px) scale(0.6) rotate(-28deg);
    }
}

@keyframes mobilePackSplashRight {
    0%, 26% {
        opacity: 0;
        transform: translate(0, 0) scale(0.4) rotate(0deg);
    }
    42% {
        opacity: 1;
        transform: translate(26px, -24px) scale(0.9) rotate(16deg);
    }
    100% {
        opacity: 0;
        transform: translate(52px, -56px) scale(0.58) rotate(30deg);
    }
}

@keyframes mobileCinemaBeamLeft {
    0%, 100% { opacity: 0.36; transform: rotate(-18deg) scaleY(1); }
    50% { opacity: 0.7; transform: rotate(-10deg) scaleY(1.08); }
}

@keyframes mobileCinemaBeamRight {
    0%, 100% { opacity: 0.32; transform: rotate(16deg) scaleY(1); }
    50% { opacity: 0.76; transform: rotate(8deg) scaleY(1.12); }
}

@keyframes mobileCinemaRingOne {
    from { transform: rotate(0deg) scale(0.98); opacity: 0.5; }
    50% { opacity: 0.85; }
    to { transform: rotate(360deg) scale(1.04); opacity: 0.5; }
}

@keyframes mobileCinemaRingTwo {
    from { transform: rotate(360deg) scale(1); opacity: 0.52; }
    50% { opacity: 0.88; }
    to { transform: rotate(0deg) scale(0.96); opacity: 0.52; }
}

@keyframes mobileCinemaRingThree {
    from { transform: rotate(0deg) scale(0.94); opacity: 0.38; }
    50% { opacity: 0.74; }
    to { transform: rotate(-360deg) scale(1.05); opacity: 0.38; }
}

@keyframes mobileCinemaParticle {
    0%, 100% { transform: translateY(0) scale(0.8); opacity: 0.28; }
    50% { transform: translateY(-18px) scale(1.18); opacity: 1; }
}

@keyframes mobileCinemaLiquidBack {
    0%, 100% { transform: translateX(-50%) rotate(-2deg) scale(0.98); }
    50% { transform: translateX(-50%) rotate(2deg) scale(1.03); }
}

@keyframes mobileCinemaLiquidFront {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg) scale(1); }
    35% { transform: translateX(-50%) translateY(-6px) rotate(-2deg) scale(1.04); }
    70% { transform: translateX(-50%) translateY(4px) rotate(2deg) scale(0.98); }
}

@keyframes mobileCinemaEmblem {
    0%, 22% {
        transform: translateY(34px) scale(0.72) rotateX(40deg);
        opacity: 0;
    }
    48% {
        transform: translateY(-6px) scale(1.08) rotateX(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes mobileCinemaLogoFlash {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    42% { transform: scale(1.06); filter: brightness(1.18); }
    62% { transform: scale(0.98); filter: brightness(0.96); }
}

@keyframes mobileCinemaFlare {
    0%, 100% { transform: scale(0.6); opacity: 0.18; }
    50% { transform: scale(1.28); opacity: 0.52; }
}

@keyframes mobileIntroGridDrift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-34px, -34px, 0);
    }
}

@keyframes mobileIntroSpotlightPulse {
    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes mobileIntroPour {
    0%,
    16% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0.2);
    }
    24%,
    72% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0.3);
    }
}

@keyframes mobileIntroFill {
    0%,
    18% {
        height: 0;
    }
    58% {
        height: 78px;
    }
    78%,
    100% {
        height: 62px;
    }
}

@keyframes mobileIntroRipple {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.4);
    }
    20% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(4.8);
    }
}

@keyframes mobileIntroEmblemRise {
    0%,
    30% {
        transform: translateY(46px) scale(0.78);
        opacity: 0;
    }
    58% {
        transform: translateY(0) scale(1.04);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes mobileIntroScanline {
    0%,
    20% {
        opacity: 0;
        transform: scaleX(0.2);
    }
    45%,
    78% {
        opacity: 1;
        transform: scaleX(1);
    }
    100% {
        opacity: 0;
        transform: scaleX(0.6);
    }
}

@keyframes mobileMilkWaveTop {
    0%,
    100% {
        transform: translateY(0) rotate(-5deg) scaleX(1);
    }
    50% {
        transform: translateY(10px) rotate(-2deg) scaleX(1.03);
    }
}

@keyframes mobileMilkWaveBottom {
    0%,
    100% {
        transform: translateY(0) rotate(4deg) scaleX(1);
    }
    50% {
        transform: translateY(-12px) rotate(1deg) scaleX(1.04);
    }
}

@keyframes mobileMilkDrop {
    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.82;
    }
    50% {
        transform: translateY(-12px) scale(1.08);
        opacity: 1;
    }
}

@keyframes mobileSplashBlob {
    0%,
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) scale(1.06) rotate(5deg);
    }
}

@keyframes mobileIntroCardFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes mobileIntroLogoPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes mobileIntroProgress {
    from {
        transform: scaleX(0.06);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes mobilePanelIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 575.98px) {
    .mobile-board-brand {
        gap: 0.72rem;
    }

    .mobile-board-brand-mark {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    .mobile-board-hero-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .mobile-board-hero-grid,
    .mobile-board-picker {
        grid-template-columns: 1fr;
    }

    .mobile-board-toolbar,
    .mobile-board-note-card,
    .mobile-board-section,
    .mobile-machine-card,
    .mobile-board-header {
        border-radius: 24px;
    }

    .mobile-person-avatar-shell {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .mobile-modal {
        padding: 0.6rem;
    }

    .mobile-modal-dialog {
        max-height: calc(100vh - 1.2rem);
        border-radius: 24px;
    }
}

.logs-hero {
    position: relative;
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.logs-hero-copy {
    padding: 1.8rem 2rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 38%),
        linear-gradient(135deg, #10233f 0%, #174f73 48%, #d8732d 100%);
    color: #fff;
    box-shadow: 0 26px 70px rgba(16, 35, 63, 0.28);
}

.logs-hero-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.logs-hero-chip {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f5f7fa;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.logs-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.logs-summary-card {
    padding: 1.1rem 1.2rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 79, 115, 0.12);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.logs-summary-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.9rem;
    line-height: 1;
    color: #10233f;
}

.logs-summary-label {
    color: #567188;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.logs-summary-card.is-danger strong {
    color: #c44536;
}

.logs-summary-card.is-warning strong {
    color: #c08a09;
}

.logs-summary-card.is-accent strong {
    color: #0f766e;
}

.logs-filter-card {
    padding: 1.35rem;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 251, 0.98) 100%);
}

.logs-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: end;
}

.logs-filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: end;
}

.logs-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.9fr);
    gap: 1.25rem;
}

.logs-main-panel,
.logs-side-card {
    padding: 1.35rem;
    border-radius: 28px;
}

.logs-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logs-panel-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.logs-panel-count {
    color: #6a8295;
    font-size: 0.92rem;
}

.logs-stream,
.logs-side-list {
    display: grid;
    gap: 0.9rem;
}

.logs-event-card {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(18, 50, 74, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 252, 0.95) 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.logs-event-card.level-error {
    border-color: rgba(196, 69, 54, 0.28);
}

.logs-event-card.level-warning {
    border-color: rgba(192, 138, 9, 0.28);
}

.logs-event-card.status-error {
    box-shadow: 0 18px 40px rgba(196, 69, 54, 0.12);
}

.logs-event-topline,
.logs-event-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
}

.logs-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.logs-badge {
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #e8f0f6;
    color: #1d4863;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.logs-badge.status {
    background: #f7ead9;
    color: #955b12;
}

.logs-event-message {
    margin: 0.85rem 0 0.7rem;
    font-size: 1rem;
    color: #153047;
    font-weight: 700;
}

.logs-event-meta {
    color: #60788a;
    font-size: 0.9rem;
}

.logs-event-details summary {
    margin-top: 0.8rem;
    cursor: pointer;
    color: #174f73;
    font-weight: 700;
}

.logs-event-details pre {
    margin-top: 0.75rem;
    padding: 0.9rem;
    border-radius: 16px;
    background: #0f1720;
    color: #d8e7f5;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.82rem;
}

.logs-side-item {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: #f5f8fb;
    border: 1px solid rgba(23, 79, 115, 0.08);
}

.logs-side-item strong,
.logs-empty-state h3 {
    color: #12324a;
}

.logs-side-item span {
    display: block;
    margin-top: 0.2rem;
    color: #73899a;
    font-size: 0.86rem;
}

.logs-side-item p,
.logs-empty-state p {
    margin: 0.45rem 0 0;
    color: #4e6678;
}

.logs-empty-state {
    padding: 2rem 1.25rem;
    text-align: center;
}

.logs-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(23, 79, 115, 0.12);
}

.logs-page-link {
    min-width: 46px;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    background: #eef4f8;
    border: 1px solid rgba(23, 79, 115, 0.1);
    color: #174f73;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.logs-page-link:hover {
    transform: translateY(-1px);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 35, 63, 0.08);
}

.logs-page-link.is-active {
    background: linear-gradient(135deg, #174f73 0%, #0f766e 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 30px rgba(23, 79, 115, 0.25);
}

.logs-page-link.is-disabled {
    background: #f5f8fb;
    color: #9aaaba;
    border-color: rgba(23, 79, 115, 0.08);
    pointer-events: none;
}

.user-nav-chip {
    margin-left: 0.2rem;
    position: relative;
}

.user-nav-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.15rem;
    padding: 0.28rem 0.45rem 0.28rem 0.32rem;
    border: 1px solid rgba(124, 142, 182, 0.12);
    border-radius: 999px;
    background:
        radial-gradient(circle at top, rgba(131, 104, 255, 0.12), transparent 46%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.9));
    box-shadow:
        0 18px 36px rgba(36, 52, 77, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
    color: var(--text-main);
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.user-nav-trigger:hover,
.user-nav-trigger:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(104, 88, 255, 0.18);
    box-shadow:
        0 22px 40px rgba(36, 52, 77, 0.1),
        0 0 0 4px rgba(104, 88, 255, 0.08);
}

.user-nav-trigger::after {
    margin-left: 0;
    font-size: 0.92rem;
    color: #21324a;
}

.user-nav-avatar,
.settings-user-avatar {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
    font-size: 0.96rem;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(104, 88, 255, 0.2);
}

.user-nav-avatar::after {
    content: "";
    position: absolute;
    right: -0.12rem;
    bottom: -0.12rem;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.96);
    background: #22c55e;
    box-shadow: 0 6px 12px rgba(34, 197, 94, 0.24);
}

.user-nav-label {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 10rem;
    max-width: min(18rem, calc(100vw - 2rem));
    padding: 0.72rem 0.9rem;
    border-radius: 1rem;
    background: rgba(20, 30, 47, 0.94);
    color: #f8fbff;
    box-shadow: 0 20px 38px rgba(15, 24, 40, 0.24);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.35rem) scale(0.96);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.user-nav-label::before {
    content: "";
    position: absolute;
    right: 1.15rem;
    bottom: calc(100% - 0.15rem);
    width: 0.7rem;
    height: 0.7rem;
    background: rgba(20, 30, 47, 0.94);
    transform: rotate(45deg);
}

.user-nav-trigger:hover .user-nav-label,
.user-nav-trigger:focus-visible .user-nav-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-nav-label strong,
.user-nav-label small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.user-nav-label strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
}

.user-nav-label small {
    color: rgba(233, 240, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
}

.user-nav-menu {
    min-width: 220px;
    border: 1px solid rgba(36, 52, 77, 0.08);
    border-radius: 18px;
    padding: 0.5rem;
    box-shadow: 0 22px 48px rgba(36, 52, 77, 0.16);
}

.user-nav-menu-label {
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 800;
}

.auth-page {
    --auth-mouse-x: 50%;
    --auth-mouse-y: 50%;
    --auth-rotate-x: 0deg;
    --auth-rotate-y: 0deg;
    --auth-drift-x: 0px;
    --auth-drift-y: 0px;
    --auth-cursor-x: 50vw;
    --auth-cursor-y: 50vh;
    --auth-velocity: 0px;
    --auth-angle: 0deg;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(20, 36, 67, 0.78), transparent 42%),
        linear-gradient(180deg, #04070d 0%, #07111f 52%, #05070d 100%);
}

.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at var(--auth-mouse-x) var(--auth-mouse-y), rgba(255, 255, 255, 0.12), transparent 12%),
        radial-gradient(circle at var(--auth-mouse-x) var(--auth-mouse-y), rgba(55, 130, 255, 0.14), transparent 24%),
        radial-gradient(circle at 50% 50%, rgba(18, 25, 41, 0.7), transparent 58%);
    pointer-events: none;
    z-index: 0;
}

.auth-ambient {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.auth-gradient-field,
.auth-ambient-vignette {
    position: absolute;
    inset: 0;
}

.auth-gradient-field {
    overflow: hidden;
}

.auth-liquid-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.96;
    mix-blend-mode: screen;
    filter: saturate(125%) contrast(112%);
}

.auth-gradient-orb,
.auth-mesh-layer,
.auth-light-beam,
.auth-prism-veil,
.auth-spotlight,
.auth-cursor-glow,
.auth-cursor-trail,
.auth-cursor-core,
.auth-echo-ring,
.auth-cursor-ring {
    position: absolute;
    pointer-events: none;
}

.auth-gradient-orb {
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.92;
    transition: transform 0.18s linear;
}

.auth-gradient-orb-one {
    top: 6%;
    left: 6%;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle, rgba(71, 170, 255, 0.48) 0%, rgba(71, 170, 255, 0) 72%);
    transform: translate3d(calc(var(--auth-drift-x) * -1.05), calc(var(--auth-drift-y) * -1.05), 0);
}

.auth-gradient-orb-two {
    top: 10%;
    right: 9%;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(73, 222, 190, 0.34) 0%, rgba(73, 222, 190, 0) 72%);
    transform: translate3d(calc(var(--auth-drift-x) * 1.2), calc(var(--auth-drift-y) * -0.75), 0);
}

.auth-gradient-orb-three {
    bottom: -4rem;
    left: 28%;
    width: 30rem;
    height: 30rem;
    background: radial-gradient(circle, rgba(255, 123, 92, 0.3) 0%, rgba(255, 123, 92, 0) 74%);
    transform: translate3d(calc(var(--auth-drift-x) * -0.7), calc(var(--auth-drift-y) * 1.25), 0);
}

.auth-gradient-orb-four {
    bottom: 12%;
    right: 18%;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(183, 140, 255, 0.26) 0%, rgba(183, 140, 255, 0) 76%);
    transform: translate3d(calc(var(--auth-drift-x) * 1.35), calc(var(--auth-drift-y) * 0.95), 0);
}

.auth-mesh-layer {
    inset: -12%;
    transition: transform 0.18s linear, opacity 0.18s linear;
}

.auth-mesh-layer-back {
    opacity: 0.54;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.08), transparent 18%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.07), transparent 16%),
        radial-gradient(circle at 62% 72%, rgba(255, 255, 255, 0.05), transparent 18%);
    transform: translate3d(calc(var(--auth-drift-x) * -0.42), calc(var(--auth-drift-y) * -0.42), 0) scale(1.03);
}

.auth-mesh-layer-front {
    opacity: 0.82;
    background:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at var(--auth-mouse-x) var(--auth-mouse-y), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 28%, transparent 78%);
    transform: translate3d(calc(var(--auth-drift-x) * 0.38), calc(var(--auth-drift-y) * 0.38), 0);
}

.auth-light-beam {
    top: 50%;
    left: 50%;
    width: 34rem;
    height: 34rem;
    transform: translate3d(-50%, -50%, 0) rotate(0deg);
    transform-origin: center;
    background:
        conic-gradient(from 160deg, transparent 0deg, rgba(120, 187, 255, 0.22) 26deg, rgba(255, 255, 255, 0.08) 40deg, transparent 62deg),
        radial-gradient(circle, rgba(94, 170, 255, 0.18), transparent 64%);
    filter: blur(12px);
    opacity: 0.92;
    mix-blend-mode: screen;
}

.auth-prism-veil {
    inset: -18%;
    background:
        conic-gradient(from 120deg at 50% 50%, rgba(255, 0, 128, 0.12), rgba(87, 167, 255, 0.16), rgba(73, 222, 190, 0.12), rgba(255, 184, 77, 0.14), rgba(255, 0, 128, 0.12)),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 58%);
    filter: blur(38px);
    opacity: 0.52;
    mix-blend-mode: screen;
}

.auth-spotlight {
    inset: 0;
    background:
        radial-gradient(circle 6rem at var(--auth-mouse-x) var(--auth-mouse-y), rgba(255, 255, 255, 0.44), transparent 58%),
        radial-gradient(circle 14rem at var(--auth-mouse-x) var(--auth-mouse-y), rgba(72, 157, 255, 0.3), transparent 66%),
        radial-gradient(circle 28rem at var(--auth-mouse-x) var(--auth-mouse-y), rgba(31, 89, 176, 0.22), transparent 74%),
        radial-gradient(circle 54rem at var(--auth-mouse-x) var(--auth-mouse-y), rgba(98, 174, 255, 0.1), transparent 84%);
    mix-blend-mode: screen;
}

.auth-cursor-glow {
    top: 0;
    left: 0;
    width: calc(10rem + var(--auth-velocity));
    height: calc(10rem + var(--auth-velocity));
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(98, 174, 255, 0.12) 34%, rgba(98, 174, 255, 0) 72%);
    transform: translate3d(calc(var(--auth-cursor-x) - 50%), calc(var(--auth-cursor-y) - 50%), 0);
    filter: blur(14px);
    opacity: 0.9;
    mix-blend-mode: screen;
}

.auth-cursor-trail {
    top: 0;
    left: 0;
    width: calc(9rem + var(--auth-velocity) * 1.4);
    height: calc(2.2rem + var(--auth-velocity) * 0.22);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(98, 174, 255, 0.18), rgba(98, 174, 255, 0));
    filter: blur(12px);
    opacity: 0.82;
    transform-origin: left center;
    mix-blend-mode: screen;
}

.auth-cursor-core {
    top: 0;
    left: 0;
    width: calc(0.9rem + var(--auth-velocity) * 0.08);
    height: calc(0.9rem + var(--auth-velocity) * 0.08);
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0.92) 38%, rgba(126, 191, 255, 0.58) 68%, rgba(126, 191, 255, 0) 100%);
    box-shadow:
        0 0 18px rgba(255, 255, 255, 0.48),
        0 0 36px rgba(98, 174, 255, 0.34);
    opacity: 0.96;
}

.auth-echo-ring {
    top: 0;
    left: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 64%);
    box-shadow:
        0 0 26px rgba(98, 174, 255, 0.16),
        inset 0 0 26px rgba(255, 255, 255, 0.04);
    opacity: 0.2;
}

.auth-echo-ring-one {
    width: calc(5.5rem + var(--auth-velocity) * 0.7);
    height: calc(5.5rem + var(--auth-velocity) * 0.7);
}

.auth-echo-ring-two {
    width: calc(10rem + var(--auth-velocity) * 1.15);
    height: calc(10rem + var(--auth-velocity) * 1.15);
    border-color: rgba(183, 140, 255, 0.18);
}

.auth-cursor-ring {
    top: 0;
    left: 0;
    width: calc(2.5rem + var(--auth-velocity) * 0.22);
    height: calc(2.5rem + var(--auth-velocity) * 0.22);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        0 0 0 0.45rem rgba(255, 255, 255, 0.04),
        0 0 26px rgba(125, 185, 255, 0.24);
    transform: translate3d(calc(var(--auth-cursor-x) - 50%), calc(var(--auth-cursor-y) - 50%), 0);
    opacity: 0.72;
}

.auth-ambient-vignette {
    background:
        radial-gradient(circle at center, transparent 0%, rgba(4, 7, 13, 0.18) 55%, rgba(4, 7, 13, 0.86) 100%),
        linear-gradient(180deg, rgba(4, 7, 13, 0.04), rgba(4, 7, 13, 0.58));
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    perspective: 1600px;
}

.auth-stage {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 460px);
    gap: 1.5rem;
    align-items: stretch;
    transform-style: preserve-3d;
    transition: transform 0.14s linear;
}

.auth-brand-panel,
.auth-card {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
    transform: rotateX(var(--auth-rotate-x)) rotateY(var(--auth-rotate-y));
    transition: transform 0.12s linear, box-shadow 0.12s linear, border-color 0.12s linear;
}

.auth-brand-panel {
    position: relative;
    padding: clamp(2rem, 4vw, 3.4rem);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(8, 12, 20, 0.8), rgba(8, 12, 20, 0.48));
    backdrop-filter: blur(18px);
    isolation: isolate;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 44%);
    pointer-events: none;
}

.auth-brand-mark-wrap {
    width: 76px;
    height: 76px;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.auth-brand-mark {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-title {
    max-width: 11ch;
    font-size: clamp(2.2rem, 1.5rem + 2vw, 4rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.auth-copy {
    max-width: 46ch;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.04rem;
}

.auth-feature-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 2rem;
}

.auth-feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.auth-card {
    padding: clamp(1.5rem, 3vw, 2rem);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px);
    background:
        linear-gradient(180deg, rgba(10, 15, 25, 0.78), rgba(10, 15, 25, 0.62));
    color: #f4f7fb;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%);
    opacity: 1;
    pointer-events: none;
}

.auth-card-head {
    margin-bottom: 1.5rem;
}

.auth-card-title {
    margin: 0;
    font-size: clamp(1.8rem, 1.3rem + 0.7vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-card-copy {
    margin-top: 0.5rem;
    color: rgba(226, 232, 240, 0.64);
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-form-grid {
    display: grid;
    gap: 1rem;
}

.auth-card .form-label {
    color: rgba(255, 255, 255, 0.8);
}

.auth-input {
    min-height: 56px;
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.12);
    padding-inline: 1rem;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.auth-input:focus {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 0 0.28rem rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.auth-submit-btn {
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-weight: 800;
    background: #ffffff;
    color: #030712;
    box-shadow: 0 20px 34px rgba(255, 255, 255, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit-btn:hover,
.auth-submit-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(255, 255, 255, 0.18);
    filter: brightness(0.98);
}

.settings-user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.settings-user-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 24px;
    border: 1px solid rgba(36, 52, 77, 0.08);
    background:
        radial-gradient(circle at top right, rgba(126, 56, 255, 0.06), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.96));
    box-shadow: 0 18px 36px rgba(36, 52, 77, 0.08);
}

.settings-user-card-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.settings-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

.settings-user-name {
    font-size: 1.04rem;
    font-weight: 800;
    color: var(--surface-strong);
}

.settings-user-handle {
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.settings-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.settings-user-detail-list {
    display: grid;
    gap: 0.8rem;
}

.settings-user-detail-list div {
    display: grid;
    gap: 0.18rem;
}

.settings-user-detail-list strong {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.settings-user-detail-list span {
    font-weight: 700;
    color: var(--surface-strong);
}

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

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

@media (max-width: 768px) {
    .absence-form-date-grid,
    .absence-form-choice-grid {
        grid-template-columns: 1fr;
    }

    .absence-card-actions {
        align-items: stretch;
    }

    .absence-card-action-row {
        width: 100%;
    }

    .absence-card-btn,
    .absence-card-action-row form {
        width: 100%;
    }

    .absence-card-action-row form .absence-card-btn {
        width: 100%;
        justify-content: center;
    }

    .logs-hero-copy {
        padding: 1.4rem 1.25rem;
    }

    .logs-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .logs-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .logs-panel-stats {
        align-items: flex-start;
    }

    .logs-hero-topline {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-stage {
        grid-template-columns: 1fr;
    }

    .auth-page {
        background:
            radial-gradient(circle at top, rgba(20, 36, 67, 0.74), transparent 40%),
            linear-gradient(180deg, #04070d 0%, #08101d 58%, #05070d 100%);
    }

    .user-nav-label {
        right: auto;
        left: 50%;
        transform: translate(-50%, -0.35rem) scale(0.96);
    }

    .user-nav-label::before {
        right: auto;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
    }

    .user-nav-trigger:hover .user-nav-label,
    .user-nav-trigger:focus-visible .user-nav-label {
        transform: translate(-50%, 0) scale(1);
    }
}

@media (max-width: 768px) {
    .auth-shell {
        padding: 1rem;
    }

    .auth-brand-panel,
    .auth-card {
        border-radius: 24px;
        transform: none;
    }

    .auth-title {
        max-width: none;
        font-size: clamp(2rem, 1.6rem + 1.3vw, 2.8rem);
    }

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

@media (prefers-reduced-motion: reduce) {
    .auth-gradient-orb,
    .auth-mesh-layer,
    .auth-spotlight,
    .auth-brand-panel,
    .auth-card,
    .auth-submit-btn,
    .auth-input {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
