* {
    box-sizing: border-box;
}

:root {
    --bg-main: #0f172a;
    --bg-elevated: #111827;
    --bg-elevated-softer: #020617;
    --border-subtle: #1f2937;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.14);
    --accent-strong: rgba(56, 189, 248, 0.35);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --danger: #f97373;
    --success: #34d399;
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.65);
    --radius-lg: 16px;
    --radius-sm: 6px;
    --transition-fast: 150ms ease-out;
}

html,
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #1d283a 0, #020617 45%, #020617 100%);
    color: var(--text-main);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px 40px;
    position: relative;
    overflow: hidden;
}

.admin-shell {
    min-height: 100vh;
    padding: 28px;
    background: radial-gradient(circle at top left, #1d283a 0, #020617 45%, #020617 100%);
    overflow: auto;
}

.auth-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(56, 189, 248, 0.18), transparent 28%),
        radial-gradient(circle at 78% 72%, rgba(99, 102, 241, 0.12), transparent 30%);
    pointer-events: none;
}

.admin-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(56, 189, 248, 0.14), transparent 26%),
        radial-gradient(circle at 88% 78%, rgba(99, 102, 241, 0.1), transparent 30%);
    pointer-events: none;
}

.auth-panel {
    width: min(100%, 380px);
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-elevated-softer));
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 28px 30px 30px;
    position: relative;
    margin-top: -8vh;
    animation: authBounceIn 650ms cubic-bezier(0.2, 0.9, 0.28, 1.25) both;
}

.admin-panel {
    width: min(100%, 1100px);
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-elevated-softer));
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 28px;
    position: relative;
    animation: authBounceIn 650ms cubic-bezier(0.2, 0.9, 0.28, 1.25) both;
}

.maintenance-shell {
    height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at top left, #1d283a 0, #020617 48%, #020617 100%);
    overflow: hidden;
    position: relative;
}

.maintenance-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 16% 20%, rgba(56, 189, 248, 0.16), transparent 28%),
        radial-gradient(circle at 82% 76%, rgba(99, 102, 241, 0.12), transparent 30%);
    pointer-events: none;
}

.maintenance-panel {
    width: min(100%, 1120px);
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(300px, 0.95fr);
    gap: 24px;
    align-items: center;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(2, 6, 23, 0.98)),
        radial-gradient(circle at 86% 8%, rgba(56, 189, 248, 0.18), transparent 34%);
    box-shadow: var(--shadow-soft);
    position: relative;
    animation: dashboardLift 520ms cubic-bezier(0.2, 0.9, 0.28, 1.18) both;
}

.maintenance-copy {
    min-width: 0;
}

.maintenance-logo {
    width: min(250px, 72%);
    margin-bottom: clamp(18px, 3vh, 28px);
}

.maintenance-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.maintenance-copy h1 {
    margin: 0 0 12px;
    color: #f8fafc;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.03;
    letter-spacing: 0;
}

.maintenance-copy p {
    margin: 0;
    color: #bae6fd;
    font-size: 18px;
    font-weight: 700;
}

.maintenance-note {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.45);
    color: rgba(226, 232, 240, 0.78);
    font-size: 14px;
    line-height: 1.55;
}

.maintenance-art {
    min-width: 0;
    align-self: center;
}

.maintenance-art img {
    display: block;
    width: 100%;
    max-height: min(56vh, 390px);
    object-fit: contain;
}

.dashboard-shell {
    width: min(100%, 1720px);
    min-height: calc(100vh - 56px);
    margin: 0 auto;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(2, 6, 23, 0.98)),
        radial-gradient(circle at 85% 0%, rgba(56, 189, 248, 0.18), transparent 34%);
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
    animation: authBounceIn 650ms cubic-bezier(0.2, 0.9, 0.28, 1.25) both;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.admin-actions {
    display: flex;
    gap: 14px;
    padding-top: 4px;
}

.dashboard-menu {
    min-height: 34px;
    display: flex;
    align-items: stretch;
    padding: 0;
    background: linear-gradient(to bottom, #25334c 0%, #1c2639 100%);
    border-top: 1px solid #33425f;
    border-bottom: 1px solid #101827;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.24);
}

.dashboard-menu-item {
    min-width: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    padding: 0 16px;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dashboard-menu-button {
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.dashboard-menu-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.dashboard-menu-group > .dashboard-menu-item {
    cursor: default;
}

.dashboard-menu-item:first-child {
    border-left: 1px solid rgba(148, 163, 184, 0.16);
}

.dashboard-menu-item:hover,
.dashboard-menu-item.active {
    background: #2a3652;
    color: #f8fafc;
    transform: none;
}

.dashboard-menu-group:hover > .dashboard-menu-item,
.dashboard-menu-group:focus-within > .dashboard-menu-item {
    background: #2a3652;
    color: #f8fafc;
}

.dashboard-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    display: none;
    min-width: 190px;
    padding: 6px 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #0d1320;
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.42);
}

.dashboard-menu-group:hover .dashboard-menu-dropdown,
.dashboard-menu-group:focus-within .dashboard-menu-dropdown {
    display: block;
}

.dashboard-menu-dropdown a,
.dashboard-menu-dropdown button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: 0;
    background: transparent;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.dashboard-menu-dropdown a:hover,
.dashboard-menu-dropdown button:hover {
    background: #1a2233;
    color: #f8fafc;
    transform: none;
}

.dashboard-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
}

.dashboard-modal {
    width: min(100%, 560px);
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(2, 6, 23, 0.98)),
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.16), transparent 32%);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.58);
    overflow: hidden;
    animation: dashboardLift 420ms cubic-bezier(0.2, 0.9, 0.28, 1.18) both;
}

.dashboard-modal.video-encoder-modal {
    width: min(900px, 96vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.dashboard-modal.assignment-backfill-modal {
    width: min(620px, 94vw);
}

.dashboard-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.dashboard-modal-header h2 {
    margin: 4px 0 0;
    font-size: 22px;
}

.dashboard-modal-header small {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 13px;
}

.dashboard-modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08);
    color: #e5e7eb;
    cursor: pointer;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 34px;
    padding: 0;
    text-align: center;
}

.dashboard-modal-close:hover {
    border-color: rgba(125, 211, 252, 0.35);
    background: rgba(56, 189, 248, 0.12);
}

.dashboard-modal-body {
    padding: 16px;
}

.video-encoder-body {
    padding: 18px 22px 22px;
    overflow: auto;
}

.assignment-backfill-body {
    padding: 18px 22px 22px;
}

.assignment-backfill-body label {
    margin-top: 0;
    margin-bottom: 14px;
}

.assignment-backfill-footer {
    padding-top: 4px;
}

.video-encoder-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.video-encoder-save-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.save-option-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #334155;
    border-radius: 14px;
    background: #111827;
    cursor: pointer;
}

.save-option-card input[type="radio"] {
    margin-top: 3px;
}

.video-encoder-empty {
    padding: 18px;
    border: 1px dashed #334155;
    border-radius: 14px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 16px;
}

.video-encoder-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.video-encoder-item {
    border: 1px solid #1f2937;
    border-radius: 14px;
    background: #111827;
    padding: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.video-encoder-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.video-encoder-filename {
    font-weight: 600;
    color: #f8fafc;
    word-break: break-word;
}

.video-encoder-meta,
.video-encoder-progress-text {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.video-encoder-status {
    font-size: 12px;
    color: #cbd5e1;
    white-space: nowrap;
}

.video-encoder-progress-wrap {
    height: 10px;
    background: #1e293b;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #334155;
}

.video-encoder-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
    transition: width 0.25s ease;
}

.video-encoder-progress-bar.is-uploading {
    background: linear-gradient(90deg, #7c3aed 0%, #a78bfa 100%);
}

.video-encoder-progress-bar.is-publishing {
    background: linear-gradient(90deg, #0891b2 0%, #22d3ee 100%);
}

.video-encoder-progress-bar.is-complete {
    background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}

.video-encoder-progress-bar.is-failed {
    background: linear-gradient(90deg, #dc2626 0%, #fb7185 100%);
}

.video-encoder-progress-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 8px 12px;
    margin-top: 8px;
}

.video-encoder-percent {
    color: #f8fafc;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.video-encoder-progress-summary .video-encoder-progress-text {
    min-width: 0;
    margin-top: 0;
    color: #cbd5e1;
}

.video-encoder-eta {
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .video-encoder-progress-summary {
        grid-template-columns: auto 1fr;
    }

    .video-encoder-eta {
        grid-column: 1 / -1;
    }
}

.video-encoder-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-primary,
.btn-secondary {
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-primary:disabled {
    background: #475569;
    cursor: default;
}

.btn-secondary {
    background: #1f2937;
    color: #e5e7eb;
}

.asset-tool-row {
    width: 100%;
    display: block;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.36);
    color: #e5e7eb;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.asset-tool-row:hover {
    border-color: rgba(125, 211, 252, 0.35);
    background: rgba(56, 189, 248, 0.08);
}

.asset-tool-row span,
.asset-tool-row small {
    display: block;
}

.asset-tool-row span {
    font-size: 14px;
    font-weight: 700;
}

.asset-tool-row small {
    margin-top: 5px;
    color: rgba(186, 230, 253, 0.72);
    font-size: 12px;
}

.dashboard-menu-logo {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8px 0 18px;
    pointer-events: none;
}

.dashboard-menu-logo img {
    display: block;
    width: auto;
    height: 26px;
    max-width: 56px;
    object-fit: contain;
}

.dashboard-layout {
    position: relative;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 18px;
    min-height: calc(100vh - 92px);
    padding: 20px;
    overflow: clip;
}

.dashboard-layout.sidebar-collapsed {
    grid-template-columns: 0px minmax(0, 1fr);
    gap: 0;
}

.admin-users-shell {
    padding-bottom: 24px;
}

.admin-users-content {
    padding: 22px;
}

.admin-users-title {
    margin-bottom: 18px;
}

.admin-users-title h1 {
    margin: 6px 0 0;
    font-size: 30px;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    width: 230px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.34);
    overflow: hidden;
    opacity: 1;
    transform: translateX(0);
    will-change: transform, opacity;
    transition: opacity 260ms ease, transform 360ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-layout.sidebar-collapsed .dashboard-sidebar {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-248px);
}

.dashboard-sidebar-toggle {
    position: absolute;
    top: 34px;
    left: 14px;
    transform: translateX(220px);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 34px;
    border: 1px solid rgba(251, 146, 60, 0.72);
    border-radius: 999px;
    background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.2);
    cursor: pointer;
    will-change: transform;
    transition: transform 360ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 160ms ease;
}

.dashboard-sidebar-toggle span {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 7px solid #111827;
    transform: translateX(-1px);
}

.dashboard-sidebar-toggle:hover,
.dashboard-sidebar-toggle:focus {
    outline: none;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.32);
}

.dashboard-layout.sidebar-collapsed .dashboard-sidebar-toggle {
    transform: translateX(0);
}

.dashboard-layout.sidebar-collapsed .dashboard-sidebar-toggle span {
    border-right: 0;
    border-left: 7px solid #111827;
    transform: translateX(1px);
}

.dashboard-workspace {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    padding: 22px;
}

.workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.workspace-header h1 {
    margin: 6px 0 0;
    font-size: 30px;
    font-weight: 700;
}

.workspace-placeholder {
    min-height: calc(100vh - 210px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(125, 211, 252, 0.2);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.28);
    color: var(--text-muted);
    text-align: center;
}

.workspace-placeholder span {
    display: block;
    margin-bottom: 8px;
    color: #a5f3fc;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workspace-placeholder strong {
    color: #e5e7eb;
    font-size: 20px;
}

.assignments-panel {
    min-height: calc(100vh - 210px);
}

.assignment-backfill {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.34);
}

.assignment-backfill h2 {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 17px;
}

.assignment-backfill-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 1.4fr) minmax(180px, 0.9fr) auto;
    gap: 12px;
    align-items: end;
}

.assignment-backfill-grid label {
    margin: 0;
}

.assignment-backfill-action {
    display: flex;
    align-items: end;
    min-height: 40px;
}

.assignment-table-wrap {
    width: 100%;
    overflow: auto;
    contain: paint;
    will-change: scroll-position;
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.28);
}

.assignment-top-scroll {
    height: 20px;
    overflow-x: scroll;
    overflow-y: hidden;
    will-change: scroll-position;
    margin-bottom: 8px;
    border-radius: 6px;
    background: var(--bg-elevated);
}

.assignment-top-scroll[hidden] { display: none; }
.assignment-top-scroll-sizer { height: 1px; }
.assignment-top-scroll:focus-visible { outline: 2px solid #ff8a3d; outline-offset: 2px; }

html.dashboard-page,
.dashboard-page body,
.dashboard-page .assignment-table-wrap,
.dashboard-page .assignment-top-scroll {
    scrollbar-color: #f26b21 var(--bg-elevated);
    scrollbar-width: auto;
}

html.dashboard-page::-webkit-scrollbar,
.dashboard-page body::-webkit-scrollbar,
.dashboard-page .assignment-table-wrap::-webkit-scrollbar,
.dashboard-page .assignment-top-scroll::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

html.dashboard-page::-webkit-scrollbar-track,
.dashboard-page body::-webkit-scrollbar-track,
.dashboard-page .assignment-table-wrap::-webkit-scrollbar-track,
.dashboard-page .assignment-top-scroll::-webkit-scrollbar-track {
    background: var(--bg-elevated);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

html.dashboard-page::-webkit-scrollbar-thumb,
.dashboard-page body::-webkit-scrollbar-thumb,
.dashboard-page .assignment-table-wrap::-webkit-scrollbar-thumb,
.dashboard-page .assignment-top-scroll::-webkit-scrollbar-thumb {
    min-width: 80px;
    border: 2px solid var(--bg-elevated);
    border-radius: 999px;
    background: #f26b21;
}

html.dashboard-page::-webkit-scrollbar-thumb:hover,
.dashboard-page body::-webkit-scrollbar-thumb:hover,
.dashboard-page .assignment-table-wrap::-webkit-scrollbar-thumb:hover,
.dashboard-page .assignment-top-scroll::-webkit-scrollbar-thumb:hover {
    background: #ff8a3d;
}

.assignment-table-wrap::-webkit-scrollbar-corner {
    background: transparent;
}

.assignments-manager-table {
    min-width: 5600px;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #dce8f8;
    font-size: 12px;
}

.assignments-manager-table th,
.assignments-manager-table td {
    border-bottom: 1px solid rgba(31, 41, 55, 0.85);
    border-right: 1px solid rgba(31, 41, 55, 0.85);
    padding: 7px;
    vertical-align: middle;
}

.assignments-manager-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, #22334d 0%, #1a2940 100%);
    color: #d8e9fb;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1.15;
    text-align: left;
    text-transform: uppercase;
}

.assignments-manager-table th:not(.assignment-action-header) {
    position: sticky;
}

.assignments-manager-table tbody tr:nth-child(odd) td {
    background: rgba(14, 32, 52, 0.72);
}

.assignments-manager-table tbody tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.58);
}

.assignments-manager-table th.assignment-step-creation {
    background: linear-gradient(180deg, #174b49 0%, #12383c 100%);
    color: #d5fff8;
    box-shadow: inset 0 3px 0 #2dd4bf;
}

.assignments-manager-table tbody tr:nth-child(odd) td.assignment-step-creation {
    background: rgba(13, 80, 79, 0.38);
}

.assignments-manager-table tbody tr:nth-child(even) td.assignment-step-creation {
    background: rgba(10, 67, 70, 0.3);
}

.assignments-manager-table .assignment-step-creation.assignment-step-start {
    border-left: 2px solid rgba(45, 212, 191, 0.72);
}

.assignments-manager-table .assignment-step-creation.assignment-step-end {
    border-right: 2px solid rgba(45, 212, 191, 0.72);
}

.assignments-manager-table th.assignment-step-qc {
    background: linear-gradient(180deg, #443267 0%, #33284f 100%);
    color: #f1eaff;
    box-shadow: inset 0 3px 0 #a78bfa;
}

.assignments-manager-table tbody tr:nth-child(odd) td.assignment-step-qc {
    background: rgba(76, 53, 121, 0.38);
}

.assignments-manager-table tbody tr:nth-child(even) td.assignment-step-qc {
    background: rgba(61, 43, 98, 0.3);
}

.assignments-manager-table .assignment-step-qc.assignment-step-start {
    border-left: 2px solid rgba(167, 139, 250, 0.72);
}

.assignments-manager-table .assignment-step-qc.assignment-step-end {
    border-right: 2px solid rgba(167, 139, 250, 0.72);
}

.assignments-manager-table th.assignment-step-fc {
    background: linear-gradient(180deg, #59401f 0%, #44331f 100%);
    color: #fff3d4;
    box-shadow: inset 0 3px 0 #fbbf24;
}

.assignments-manager-table tbody tr:nth-child(odd) td.assignment-step-fc {
    background: rgba(112, 76, 24, 0.38);
}

.assignments-manager-table tbody tr:nth-child(even) td.assignment-step-fc {
    background: rgba(91, 62, 23, 0.3);
}

.assignments-manager-table .assignment-step-fc.assignment-step-start {
    border-left: 2px solid rgba(251, 191, 36, 0.72);
}

.assignments-manager-table .assignment-step-fc.assignment-step-end {
    border-right: 2px solid rgba(251, 191, 36, 0.72);
}

.assignment-th-main {
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.assignment-th-actions {
    display: inline-flex;
    gap: 3px;
    flex: 0 0 auto;
}

.assignment-icon-button {
    position: relative;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.5);
    color: #dbeafe;
    cursor: pointer;
    padding: 0;
}

.assignment-icon-button:hover {
    border-color: rgba(125, 211, 252, 0.45);
    background: rgba(56, 189, 248, 0.14);
}

.sort-icon::before,
.sort-icon::after {
    content: "";
    position: absolute;
    left: 7px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.sort-icon::before {
    top: 4px;
    border-bottom: 5px solid #b8d8ee;
}

.sort-icon::after {
    bottom: 4px;
    border-top: 5px solid #b8d8ee;
}

.search-icon::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 4px;
    width: 7px;
    height: 7px;
    border: 2px solid #b8d8ee;
    border-radius: 50%;
}

.search-icon::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 12px;
    width: 6px;
    height: 2px;
    border-radius: 2px;
    background: #b8d8ee;
    transform: rotate(45deg);
    transform-origin: left center;
}

.assignment-column-search {
    width: 100%;
    min-height: 28px;
    margin-top: 5px;
    padding: 5px 7px;
    font-size: 11px;
}

.assignment-col-resizer {
    position: absolute;
    top: 0;
    right: -3px;
    z-index: 4;
    width: 7px;
    height: 100%;
    cursor: col-resize;
}

.assignment-col-resizer:hover {
    background: rgba(56, 189, 248, 0.2);
}

.assignment-cell-control {
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(30, 41, 59, 0.95);
    border-radius: 4px;
    background: #020617;
    color: #dce8f8;
    padding: 6px 8px;
    font-size: 12px;
}

.assignment-date-control {
    display: flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.assignment-date-control:hover {
    border-color: rgba(56, 189, 248, 0.55);
    background: #030817;
}

.assignment-date-control:focus-within {
    border-color: #38bdf8;
    background: #030817;
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.22);
}

.assignment-date-input {
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    background: transparent;
    color: #dce8f8;
    padding: 6px 7px;
    font: inherit;
    font-size: 12px;
    color-scheme: dark;
}

.assignment-date-input::-webkit-calendar-picker-indicator {
    width: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.assignment-date-picker-button {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    border: 0;
    border-left: 1px solid rgba(56, 189, 248, 0.2);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.08));
    color: #7dd3fc;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.assignment-date-picker-button::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 10px;
    width: 14px;
    height: 13px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    box-shadow: inset 0 3px 0 rgba(125, 211, 252, 0.24);
}

.assignment-date-picker-button::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 8px;
    width: 8px;
    height: 4px;
    border-left: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

.assignment-date-picker-button:hover,
.assignment-date-picker-button:focus {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.38), rgba(14, 165, 233, 0.16));
    color: #e0f2fe;
    outline: none;
}

.assignment-searchable-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow: hidden;
    color: #dce8f8;
    font-family: inherit;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
}

.assignment-searchable-select:hover,
.assignment-searchable-select:focus {
    border-color: rgba(56, 189, 248, 0.55);
    background: #030817;
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.22);
}

.assignment-searchable-select::after {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(216, 233, 251, 0.8);
    border-bottom: 2px solid rgba(216, 233, 251, 0.8);
    transform: rotate(45deg) translateY(-2px);
}

.assignment-select-menu {
    position: fixed;
    z-index: 10000;
    max-width: min(560px, calc(100vw - 16px));
    padding: 6px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 8px;
    background: #07111f;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(15, 23, 42, 0.92) inset;
}

.assignment-select-search {
    width: 100%;
    min-height: 34px;
    margin-bottom: 6px;
    padding: 7px 9px;
    border: 1px solid rgba(56, 189, 248, 0.42);
    border-radius: 5px;
    background: rgba(2, 6, 23, 0.96);
    color: #e5f4ff;
    caret-color: #38bdf8;
    font-family: inherit;
    font-size: 12px;
}

.assignment-select-search::placeholder {
    color: rgba(148, 163, 184, 0.78);
}

.assignment-select-search:focus {
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.28);
}

.assignment-select-options {
    max-height: 230px;
    overflow-y: auto;
    scrollbar-color: rgba(125, 211, 252, 0.36) rgba(15, 23, 42, 0.76);
    scrollbar-width: thin;
}

.assignment-select-option {
    display: block;
    width: 100%;
    min-height: 32px;
    margin: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #dce8f8;
    padding: 7px 8px;
    font-size: 12px;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.assignment-select-option:hover,
.assignment-select-option:focus {
    background: rgba(56, 189, 248, 0.16);
    outline: none;
}

.assignment-select-option.selected {
    background: rgba(56, 189, 248, 0.24);
    color: #ffffff;
}

.assignment-select-empty {
    padding: 10px 8px;
    color: rgba(220, 232, 248, 0.62);
    font-size: 12px;
}

.assignment-readonly-cell {
    display: block;
    min-height: 20px;
    overflow-wrap: anywhere;
    color: rgba(220, 232, 248, 0.86);
}

.assignment-action-header,
.assignment-action-cell {
    position: sticky;
    left: 0;
    z-index: 3;
}

.assignment-action-header {
    background: linear-gradient(180deg, #263a56 0%, #1d2f49 100%) !important;
}

.assignment-action-cell {
    background: rgba(9, 16, 28, 0.96) !important;
}

.assignment-delete-button {
    min-height: 30px;
    width: 100%;
    border: 1px solid rgba(249, 115, 115, 0.32);
    border-radius: 5px;
    background: rgba(127, 29, 29, 0.24);
    color: #fecaca;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.assignment-delete-button:hover {
    background: rgba(185, 28, 28, 0.34);
    border-color: rgba(252, 165, 165, 0.48);
}

.assignment-save-status {
    min-height: 20px;
    margin: -4px 0 8px;
    color: #fb923c;
    font-size: 12px;
    font-weight: 700;
}

.assignment-save-status.error {
    color: var(--danger);
}

.assignment-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    color: #94a3b8;
    font-size: 12px;
}

.assignment-pager-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.assignment-pager-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.assignment-pager-controls select {
    width: 76px;
    min-height: 34px;
}

.daily-capacity-card {
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.13), rgba(2, 6, 23, 0.46));
}

.daily-capacity-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.daily-capacity-heading h2 {
    margin: 4px 0 0;
    color: #f8fafc;
    font-size: 17px;
}

.daily-capacity-percent {
    color: #a5f3fc;
    font-size: 25px;
    line-height: 1;
}

.daily-capacity-track {
    height: 10px;
    margin-top: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.daily-capacity-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22d3ee, #38bdf8);
    transition: width 240ms ease;
}

.daily-capacity-fill.near-capacity {
    background: linear-gradient(90deg, #facc15, #fb923c);
}

.daily-capacity-fill.over-capacity {
    background: linear-gradient(90deg, #fb923c, #ef4444);
}

.daily-capacity-card p {
    margin: 9px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

.launch-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.launch-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    width: 100%;
    min-height: 96px;
    padding: 18px 20px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.42);
    transition: border-color var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast);
}

.launch-card-pending {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.34);
}

.launch-card-pending .launch-icon {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(100, 116, 139, 0.12);
    color: #94a3b8;
}

.launch-card-pending h2,
.launch-card-pending .dashboard-kicker,
.launch-card-pending .launch-project-meta {
    color: #7f8da3;
}

.launch-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.12);
    color: #a5f3fc;
    font-size: 20px;
    font-weight: 800;
}

.launch-card h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 17px;
    line-height: 1.25;
}

.launch-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 12px;
}

.launch-availability {
    display: inline-flex;
    align-items: center;
    margin-top: 9px;
    color: #86efac;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.015em;
}

.launch-card-pending .launch-availability {
    color: #ee5401;
    font-size: 10px;
    font-weight: 800;
}

.launch-card-pending .launch-availability::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #ee5401;
    box-shadow: 0 0 0 3px rgba(238, 84, 1, 0.12);
}

.launch-button {
    display: inline-flex;
    min-width: 92px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(34, 197, 94, 0.55);
    border-radius: 6px;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #052e16;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.launch-button:hover,
.launch-button:focus {
    border-color: rgba(134, 239, 172, 0.72);
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.22);
    outline: none;
}

.launch-button-disabled,
.launch-button-disabled:hover,
.launch-button-disabled:focus,
.launch-button-disabled:disabled {
    border-color: rgba(148, 163, 184, 0.24) !important;
    background: #334155 !important;
    box-shadow: none;
    color: #94a3b8 !important;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.72;
}

.admin-form {
    margin-bottom: 24px;
    padding: 15px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.45);
}

.admin-form h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.admin-check {
    align-self: end;
    min-height: 42px;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dashboard-summary {
    display: block;
    padding: 0;
}

.dashboard-hero {
    margin: 0;
    padding: 18px;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.18), rgba(15, 23, 42, 0.1));
    box-shadow: none;
    animation: dashboardLift 700ms cubic-bezier(0.2, 0.9, 0.28, 1.18) 80ms both;
}

.dashboard-kicker {
    display: block;
    margin-bottom: 7px;
    color: rgba(165, 243, 252, 0.78);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-hero h2 {
    margin: 0;
    color: rgba(248, 250, 252, 0.92);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.1;
}

.dashboard-profile-line {
    margin-top: 7px;
    color: rgba(186, 230, 253, 0.72);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dashboard-card {
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: dashboardCardIn 620ms cubic-bezier(0.2, 0.9, 0.28, 1.18) both;
    transition: background var(--transition-fast);
}

.dashboard-card:nth-child(2) {
    animation-delay: 80ms;
}

.dashboard-card:nth-child(3) {
    animation-delay: 140ms;
}

.dashboard-card:hover {
    background: rgba(56, 189, 248, 0.05);
}

.dashboard-card.accent-card {
    background: transparent;
}

.dashboard-summary span {
    display: block;
    margin-bottom: 6px;
    color: rgba(156, 163, 175, 0.82);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-summary strong {
    color: rgba(229, 231, 235, 0.9);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.15;
}

.timezone-grid {
    display: block;
    margin: 0;
}

.timezone-card {
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0;
    background: transparent;
    animation: dashboardCardIn 620ms cubic-bezier(0.2, 0.9, 0.28, 1.18) 180ms both;
    transition: background var(--transition-fast);
}

.timezone-card:hover {
    background: rgba(56, 189, 248, 0.05);
}

.timezone-card span,
.timezone-card small {
    display: block;
}

.timezone-card span {
    margin-bottom: 6px;
    color: rgba(156, 163, 175, 0.82);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.timezone-card strong {
    display: block;
    color: rgba(248, 250, 252, 0.92);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.1;
}

.timezone-card small {
    margin-top: 7px;
    color: rgba(186, 230, 253, 0.7);
    font-size: 11px;
}

.brand {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.brand img {
    display: block;
    width: min(260px, 100%);
    height: auto;
    object-fit: contain;
}

.auth-panel .brand img {
    width: min(160px, 58%);
    margin: 0 auto;
}

.app-logo-chip {
    position: fixed;
    top: 14px;
    left: 16px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    width: 170px;
    max-width: 22vw;
    padding: 7px 10px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.78);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(10px);
}

.app-logo-chip img {
    display: block;
    width: 100%;
    height: auto;
}

h1 {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 600;
}

label {
    display: block;
    margin: 13px 0 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    min-height: 40px;
    background: #020617;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 9px 11px;
    font: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
select:hover {
    border-color: rgba(56, 189, 248, 0.4);
}

input:focus,
select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
    transform: translateY(-1px);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-size: 13px;
}

.check-row input {
    accent-color: var(--accent);
}

.primary {
    width: 100%;
    min-height: 42px;
    margin-top: 16px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(14, 165, 233, 0.78));
    color: #04111d;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.18);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast), filter var(--transition-fast);
}

.primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(56, 189, 248, 0.26);
}

.primary:active {
    animation: buttonBounce 240ms ease-out;
}

.primary:disabled {
    background: #334155;
    border-color: #475569;
    color: var(--text-muted);
    cursor: default;
    box-shadow: none;
    transform: none;
}

.primary.compact {
    width: auto;
    min-width: 150px;
    padding: 0 18px;
}

.secondary-button {
    min-height: 44px;
    margin-top: 18px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-main);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0 18px;
}

.links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
}

.links.single {
    justify-content: center;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

a:hover {
    color: #7dd3fc;
    transform: translateY(-1px);
}

.message {
    display: block;
    min-height: 10px;
    margin-bottom: 4px;
    font-size: 14px;
}

.message.error {
    color: var(--danger);
}

.message.success {
    color: var(--success);
}

.users-grid {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
}

.users-grid th,
.users-grid td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.85);
    text-align: left;
}

.users-grid th {
    background: rgba(15, 23, 42, 0.98);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.users-grid tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.55);
}

.users-grid tr:hover td {
    background: rgba(56, 189, 248, 0.09);
}

.role-action {
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    background: var(--accent-soft);
    font-size: 13px;
    font-weight: 600;
}

.role-action.secondary {
    border-color: rgba(249, 115, 115, 0.35);
    background: rgba(249, 115, 115, 0.1);
    color: #fecaca;
}

.empty-state {
    padding: 28px;
    color: var(--text-muted);
    text-align: center;
}

@keyframes authBounceIn {
    0% {
        opacity: 0;
        transform: translateY(26px) scale(0.96);
    }

    60% {
        opacity: 1;
        transform: translateY(-8px) scale(1.015);
    }

    82% {
        transform: translateY(3px) scale(0.996);
    }

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

@keyframes buttonBounce {
    0% {
        transform: translateY(-2px) scale(1);
    }

    45% {
        transform: translateY(1px) scale(0.985);
    }

    100% {
        transform: translateY(-2px) scale(1);
    }
}

@keyframes dashboardLift {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

    62% {
        opacity: 1;
        transform: translateY(-5px) scale(1.006);
    }

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

@keyframes dashboardCardIn {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }

    72% {
        opacity: 1;
        transform: translateY(-3px) scale(1.004);
    }

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

@media (max-width: 480px) {
    .auth-panel {
        padding: 24px;
        margin-top: -4vh;
    }

    .links {
        flex-direction: column;
        align-items: center;
    }

    .admin-shell {
        padding: 16px;
    }

    .admin-panel {
        padding: 18px;
    }

    .dashboard-shell {
        min-height: calc(100vh - 32px);
        border-radius: 12px;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .dashboard-layout.sidebar-collapsed {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dashboard-sidebar-toggle {
        display: none;
    }

    .dashboard-layout.sidebar-collapsed .dashboard-sidebar {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .dashboard-workspace {
        padding: 16px;
    }

    .launch-card {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .launch-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .workspace-placeholder {
        min-height: 320px;
    }

    .admin-header,
    .admin-actions,
    .form-actions,
    .dashboard-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .form-grid,
    .dashboard-summary,
    .timezone-grid {
        grid-template-columns: 1fr;
    }

    .users-grid {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .workspace-header h1,
    .dashboard-hero h2 {
        font-size: 28px;
    }

    .dashboard-menu {
        flex-wrap: wrap;
        padding: 0;
    }

    .dashboard-menu-item {
        min-height: 34px;
        flex: 1 1 auto;
        min-width: 112px;
    }

    .dashboard-menu-group {
        flex: 1 1 auto;
    }

    .dashboard-menu-group > .dashboard-menu-item {
        width: 100%;
    }

    .dashboard-menu-logo {
        width: 100%;
        min-height: 34px;
        justify-content: center;
        padding: 4px 10px;
        border-top: 1px solid rgba(148, 163, 184, 0.14);
    }

    .dashboard-hero,
    .timezone-grid {
        margin-left: 0;
        margin-right: 0;
    }

    .app-logo-chip {
        width: 132px;
        max-width: 40vw;
    }
}

@media (max-width: 820px), (max-height: 620px) {
    .maintenance-shell {
        height: auto;
        min-height: 100vh;
        overflow: auto;
        padding: 16px;
    }

    .maintenance-panel {
        max-height: none;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px;
    }

    .maintenance-logo {
        width: min(210px, 68%);
        margin-bottom: 16px;
    }

    .maintenance-copy h1 {
        font-size: clamp(28px, 8vw, 38px);
    }

    .maintenance-copy p {
        font-size: 16px;
    }

    .maintenance-art img {
        max-height: 300px;
    }
}

@media (min-width: 481px) and (max-width: 980px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .workspace-placeholder {
        min-height: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-layout,
    .dashboard-sidebar,
    .dashboard-sidebar-toggle {
        transition: none;
    }
    .auth-panel,
    .admin-panel,
    .dashboard-shell,
    .dashboard-hero,
    .dashboard-card,
    .timezone-card,
    .dashboard-modal,
    .primary:active {
        animation: none;
    }

    input,
    .primary,
    .dashboard-card,
    .timezone-card,
    a {
        transition: none;
    }
}

@media (max-width: 980px) {
    .dashboard-sidebar { width: auto; }
    .dashboard-layout.sidebar-collapsed { grid-template-columns: 1fr; gap: 18px; }
    .dashboard-sidebar-toggle { display: none; }
    .dashboard-layout.sidebar-collapsed .dashboard-sidebar {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}
