:root {
    --bg: #f4efe7;
    --bg-soft: #fbf8f2;
    --panel: rgba(255, 252, 247, 0.84);
    --panel-strong: #fffdf8;
    --line: rgba(35, 53, 69, 0.12);
    --text: #1e2a33;
    --muted: #64707a;
    --accent: #0f766e;
    --accent-strong: #0b5e58;
    --accent-soft: #dff4f1;
    --warn: #b45309;
    --danger: #c24138;
    --danger-soft: #fde9e7;
    --shadow-lg: 0 24px 60px rgba(35, 42, 51, 0.12);
    --shadow-md: 0 14px 32px rgba(35, 42, 51, 0.10);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

:root[data-theme="dark"] {
    --bg: #0f1418;
    --bg-soft: #151c21;
    --panel: rgba(22, 29, 35, 0.86);
    --panel-strong: #182127;
    --line: rgba(179, 201, 214, 0.14);
    --text: #e7eef3;
    --muted: #9fb0bb;
    --accent: #1aa394;
    --accent-strong: #89efe0;
    --accent-soft: rgba(26, 163, 148, 0.18);
    --warn: #e2a94b;
    --danger: #ef7a70;
    --danger-soft: rgba(239, 122, 112, 0.16);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.34);
    --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    view-transition-name: root;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 2;
}

@keyframes tableReveal {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.995);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Manrope", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(194, 65, 56, 0.10), transparent 24%),
        linear-gradient(180deg, #f8f3ec 0%, #f1ebe1 100%);
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(26, 163, 148, 0.16), transparent 26%),
        radial-gradient(circle at top right, rgba(239, 122, 112, 0.14), transparent 22%),
        linear-gradient(180deg, #0f1418 0%, #131b20 100%);
}

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

a {
    color: inherit;
}

.app-shell {
    min-height: 100vh;
    padding: 24px;
}

.glass-card {
    background: var(--panel);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-xl);
}

:root[data-theme="dark"] .glass-card {
    border-color: rgba(255, 255, 255, 0.06);
}

.layout-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    transition: grid-template-columns 0.22s ease;
}

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

.header {
    grid-column: 1 / 3;
    position: relative;
    z-index: 40;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 24px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    position: relative;
    overflow: visible;
    transition: padding 0.22s ease;
}

.sidebar-toggle-btn {
    position: absolute;
    top: 14px;
    right: -14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), #15938a);
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.24);
    z-index: 5;
}

.sidebar-toggle-btn:hover {
    transform: translateY(-1px);
}

.layout-grid.is-sidebar-collapsed .sidebar {
    padding: 8px 0;
}

.layout-grid.is-sidebar-collapsed .sidebar-card {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-26px);
}

.layout-grid.is-sidebar-collapsed .sidebar-toggle-btn {
    right: -17px;
}

.content {
    min-height: 70vh;
    position: relative;
    z-index: 1;
    padding: 24px;
}

.footer {
    grid-column: 1 / 3;
    padding: 14px 18px;
    text-align: center;
    color: var(--muted);
}

.brand {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.brand-link {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: 24px;
    transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.brand-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.logo {
    width: auto;
    height: auto;
    min-width: 96px;
    max-width: 128px;
    min-height: 96px;
    max-height: 128px;
    aspect-ratio: 1 / 1;
    align-self: stretch;
    object-fit: contain;
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.logo-dark {
    display: none;
}

:root[data-theme="dark"] .logo-light {
    display: none;
}

:root[data-theme="dark"] .logo-dark {
    display: block;
}

.placeholder {
    display: grid;
    place-items: center;
    color: var(--accent-strong);
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(223, 244, 241, 0.95));
}

:root[data-theme="dark"] .placeholder {
    color: #8ff3e5;
    background: linear-gradient(145deg, rgba(44, 56, 66, 0.95), rgba(25, 40, 47, 0.95));
}

.brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.event-name {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.event-dates {
    color: var(--muted);
    font-size: 15px;
}

.header-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    max-width: 760px;
}

.context-note {
    max-width: 520px;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(35, 53, 69, 0.08);
}

:root[data-theme="dark"] .context-note {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.topnav {
    display: flex;
    position: relative;
    z-index: 2;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.nav-btn,
.btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 11px 16px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.2s ease, box-shadow 0.22s ease, background 0.22s ease;
    background: linear-gradient(135deg, var(--accent), #15938a);
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.24);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    isolation: isolate;
}

.nav-btn::after,
.btn::after,
.dropdown-menu button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 42%, transparent 68%);
    transform: translateX(-120%);
    transition: transform 0.45s ease;
    pointer-events: none;
    z-index: 0;
}

.nav-btn > *,
.btn > *,
.dropdown-menu button > * {
    position: relative;
    z-index: 1;
}

.nav-btn:hover,
.btn:hover {
    opacity: 0.96;
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.28);
}

.nav-btn:hover::after,
.btn:hover::after,
.dropdown-menu button:hover::after {
    transform: translateX(120%);
}

.nav-btn:active,
.btn:active {
    transform: translateY(0) scale(0.99);
}

.btn-secondary,
.btn-ghost {
    background: rgba(29, 42, 53, 0.06);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 16px rgba(35, 53, 69, 0.06);
    border: 1px solid rgba(35, 53, 69, 0.08);
}

:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}

.theme-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
}

.btn-secondary:hover,
.btn-ghost:hover {
    background: rgba(29, 42, 53, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 10px 20px rgba(35, 53, 69, 0.09);
}

.danger {
    background: linear-gradient(135deg, var(--danger), #db6b61);
    box-shadow: 0 10px 22px rgba(194, 65, 56, 0.22);
}

.btn-small {
    padding: 9px 12px;
    font-size: 13px;
}

.btn-wide {
    justify-content: center;
    min-width: 180px;
}

.dropdown {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 252, 247, 0.98);
    border: 1px solid rgba(35, 53, 69, 0.10);
    box-shadow: var(--shadow-md);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.98);
    transform-origin: top left;
    transition: opacity 0.18s ease, transform 0.22s ease, visibility 0.18s ease;
}

:root[data-theme="dark"] .dropdown-menu {
    background: rgba(24, 33, 39, 0.98);
    border-color: rgba(255, 255, 255, 0.08);
}

.dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 2px);
    height: 16px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.dropdown-menu button {
    appearance: none;
    border: 0;
    text-align: left;
    border-radius: 14px;
    padding: 12px 14px;
    background: #f6f2ea;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.16s ease, background 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="dark"] .dropdown-menu button {
    background: #202a31;
}

.dropdown-menu button:hover {
    background: #ece6db;
    transform: translateX(2px);
    box-shadow: 0 10px 18px rgba(35, 53, 69, 0.08);
}

:root[data-theme="dark"] .dropdown-menu button:hover {
    background: #27343c;
}

.login-wrap {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
}

.login-card {
    width: min(460px, 96vw);
    padding: 34px;
}

.login-card h1 {
    margin: 0 0 8px;
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-size: 40px;
    letter-spacing: -0.03em;
}

.login-card label,
.form-grid label,
.stack-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-card input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.toolbar input,
.stack-form input,
.stack-form select,
.stack-form textarea,
.preview-headline select,
.template-main-settings input,
.template-main-settings select,
.tpl-options-grid input,
.tpl-options-grid select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(35, 53, 69, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 6px 16px rgba(35, 53, 69, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.login-card input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.toolbar input:focus,
.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus,
.preview-headline select:focus,
.template-main-settings input:focus,
.template-main-settings select:focus,
.tpl-options-grid input:focus,
.tpl-options-grid select:focus {
    outline: none;
    border-color: rgba(15, 118, 110, 0.36);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.10), 0 12px 24px rgba(15, 118, 110, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.form-grid input[readonly],
.form-grid input.locked-field,
.form-grid input:disabled {
    background: rgba(35, 53, 69, 0.08);
    color: var(--muted);
    cursor: not-allowed;
}

:root[data-theme="dark"] .login-card input,
:root[data-theme="dark"] .form-grid input,
:root[data-theme="dark"] .form-grid select,
:root[data-theme="dark"] .form-grid textarea,
:root[data-theme="dark"] .toolbar input,
:root[data-theme="dark"] .stack-form input,
:root[data-theme="dark"] .stack-form select,
:root[data-theme="dark"] .stack-form textarea,
:root[data-theme="dark"] .preview-headline select,
:root[data-theme="dark"] .template-main-settings input,
:root[data-theme="dark"] .template-main-settings select,
:root[data-theme="dark"] .tpl-options-grid input,
:root[data-theme="dark"] .tpl-options-grid select {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
    color: #ecf3f7;
    color-scheme: dark;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 16px rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] .login-card input:focus,
:root[data-theme="dark"] .form-grid input:focus,
:root[data-theme="dark"] .form-grid select:focus,
:root[data-theme="dark"] .form-grid textarea:focus,
:root[data-theme="dark"] .toolbar input:focus,
:root[data-theme="dark"] .stack-form input:focus,
:root[data-theme="dark"] .stack-form select:focus,
:root[data-theme="dark"] .stack-form textarea:focus,
:root[data-theme="dark"] .preview-headline select:focus,
:root[data-theme="dark"] .template-main-settings input:focus,
:root[data-theme="dark"] .template-main-settings select:focus,
:root[data-theme="dark"] .tpl-options-grid input:focus,
:root[data-theme="dark"] .tpl-options-grid select:focus {
    border-color: rgba(45, 212, 191, 0.32);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.10), 0 12px 24px rgba(0, 0, 0, 0.16);
    background: rgba(255, 255, 255, 0.09);
}

:root[data-theme="dark"] .form-grid input[readonly],
:root[data-theme="dark"] .form-grid input.locked-field,
:root[data-theme="dark"] .form-grid input:disabled {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #9aabb6;
}

:root[data-theme="dark"] .form-grid select option,
:root[data-theme="dark"] .stack-form select option,
:root[data-theme="dark"] .preview-headline select option,
:root[data-theme="dark"] .template-main-settings select option,
:root[data-theme="dark"] .tpl-options-grid select option,
:root[data-theme="dark"] .form-grid select optgroup,
:root[data-theme="dark"] .stack-form select optgroup,
:root[data-theme="dark"] .preview-headline select optgroup,
:root[data-theme="dark"] .template-main-settings select optgroup,
:root[data-theme="dark"] .tpl-options-grid select optgroup {
    background-color: #1f2a31;
    color: #ecf3f7;
}

.page-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 0;
    flex-wrap: wrap;
    position: relative;
    padding: 18px 20px 18px 30px;
    border-radius: 22px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.10), transparent 28%);
    box-shadow: 0 14px 30px rgba(35, 53, 69, 0.06);
    --page-head-accent: rgba(15, 118, 110, 0.88);
}

:root[data-theme="dark"] .page-head {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 28%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.page-head::before {
    content: "";
    position: absolute;
    inset: 12px auto 12px 14px;
    width: 4px;
    border-radius: 999px;
    background: var(--page-head-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--page-head-accent) 14%, transparent);
}

.page-head > * {
    position: relative;
    z-index: 1;
}

.page-head .eyebrow {
    color: var(--page-head-accent);
}

.page-head--ops {
    --page-head-accent: rgba(15, 118, 110, 0.92);
}

.page-head--guests {
    --page-head-accent: rgba(14, 116, 144, 0.92);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
        radial-gradient(circle at top right, rgba(14, 116, 144, 0.12), transparent 28%);
}

.page-head--print {
    --page-head-accent: rgba(180, 83, 9, 0.92);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 28%);
}

.page-head--config {
    --page-head-accent: rgba(99, 102, 241, 0.92);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 28%);
}

.page-head--timeline {
    --page-head-accent: rgba(168, 85, 247, 0.92);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.14), transparent 28%);
}

.page-head--data {
    --page-head-accent: rgba(194, 65, 56, 0.92);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
        radial-gradient(circle at top right, rgba(194, 65, 56, 0.14), transparent 28%);
}

.page-head h2,
.section-head h3 {
    margin: 0;
    font-family: "IBM Plex Sans Condensed", sans-serif;
    letter-spacing: -0.02em;
}

.page-head h2 {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-subtitle {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

:root[data-theme="dark"] .page-subtitle {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.page-subtitle--guests {
    border-color: rgba(14, 116, 144, 0.12);
    background: rgba(240, 249, 255, 0.72);
}

.page-subtitle--compact {
    font-size: 12px;
    line-height: 1.35;
    padding: 8px 12px;
}

.page-subtitle--print {
    border-color: rgba(245, 158, 11, 0.14);
    background: rgba(255, 251, 235, 0.78);
}

.page-subtitle--config {
    border-color: rgba(99, 102, 241, 0.14);
    background: rgba(244, 244, 255, 0.78);
}

.page-subtitle--timeline {
    border-color: rgba(168, 85, 247, 0.14);
    background: rgba(250, 245, 255, 0.78);
}

.page-subtitle--data {
    border-color: rgba(194, 65, 56, 0.14);
    background: rgba(255, 245, 245, 0.78);
}

.hero-card,
.section-card,
.admin-card,
.stat-card,
.subtle-card,
.import-mapping-card,
.sidebar-card {
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-card::before,
.section-card::before,
.admin-card::before,
.stat-card::before,
.subtle-card::before,
.import-mapping-card::before,
.sidebar-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 28%);
    pointer-events: none;
    opacity: 0.8;
}

.hero-card:hover,
.section-card:hover,
.admin-card:hover,
.stat-card:hover,
.subtle-card:hover,
.import-mapping-card:hover,
.sidebar-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(35, 53, 69, 0.10);
    transition: transform 0.18s ease, box-shadow 0.22s ease;
}

:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .section-card,
:root[data-theme="dark"] .admin-card,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .subtle-card,
:root[data-theme="dark"] .import-mapping-card,
:root[data-theme="dark"] .sidebar-card {
    background: var(--panel-strong);
}

.hero-card,
.section-card,
.admin-card,
.subtle-card,
.import-mapping-card,
.sidebar-card,
.stat-card {
    padding: 20px;
}

.sidebar-card {
    padding: 14px 14px 12px;
    border-radius: 20px;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.hero-card {
    padding: 24px;
    background: radial-gradient(circle at top right, rgba(15, 118, 110, 0.10), transparent 30%), linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 245, 0.96));
}

:root[data-theme="dark"] .hero-card {
    background: radial-gradient(circle at top right, rgba(26, 163, 148, 0.14), transparent 30%), linear-gradient(180deg, rgba(24, 33, 39, 0.98), rgba(21, 29, 34, 0.98));
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 18px;
}

.registration-hero {
    padding: 8px 12px;
}

.registration-hero-grid {
    grid-template-columns: minmax(320px, 430px) minmax(760px, 920px);
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.registration-hero-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.registration-hero-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-width: 0;
}

.registration-hero-head {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}

.compact-page-head {
    margin-bottom: 0;
}

.compact-page-head h2 {
    margin-bottom: 0;
    font-size: clamp(1.28rem, 1.75vw, 1.7rem);
    line-height: 1;
}

.registration-hero .eyebrow {
    font-size: 10px;
    letter-spacing: 0.14em;
    margin-bottom: 2px;
}

.registration-hero-actions {
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 2px;
}

.registration-hero-actions .btn {
    white-space: nowrap;
    min-height: 30px;
    padding: 6px 11px;
}

.registration-stats-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    justify-self: end;
    width: min(100%, 920px);
    padding: 10px 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(243, 249, 248, 0.82)),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 32%);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(18px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 16px 30px rgba(35, 53, 69, 0.08);
}

.registration-stats-title {
    margin: 0;
    line-height: 1.05;
    white-space: normal;
    align-self: center;
    font-size: 11px;
}

.registration-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    justify-items: end;
    text-align: right;
}

.registration-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 108px;
    padding: 7px 9px;
    border-radius: 14px;
    border-bottom: 0;
    justify-content: center;
    align-items: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.18));
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 18px rgba(35, 53, 69, 0.05);
}

.registration-stat-item .summary-label {
    font-size: 10px;
    line-height: 1.15;
}

.registration-stat-item strong {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-size: 15px;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.registration-stat-item-updated strong {
    font-size: 14px;
}

:root[data-theme="dark"] .registration-stats-card {
    background:
        linear-gradient(180deg, rgba(24, 33, 39, 0.96), rgba(19, 28, 33, 0.94)),
        radial-gradient(circle at top right, rgba(26, 163, 148, 0.10), transparent 32%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 30px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .registration-stat-item {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 18px rgba(0, 0, 0, 0.14);
}

.user-meta-row-timer {
    align-items: flex-start;
}

.hero-actions,
.quick-links,
.summary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-list {
    flex-direction: column;
}

.summary-item,
.user-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(35, 53, 69, 0.08);
}

.summary-item:last-child,
.user-meta-row:last-child {
    border-bottom: 0;
}

.summary-label,
.sidebar-title,
.muted {
    color: var(--muted);
}

.sidebar-title {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.1;
}

.role-chip,
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.role-chip {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.status-chip {
    background: #eef2f5;
    color: #415160;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

:root[data-theme="dark"] .status-chip {
    background: #243038;
    color: #dbe5eb;
}

.status-chip.ok {
    background: #e4f7eb;
    color: #1b6c3a;
}

:root[data-theme="dark"] .status-chip.ok {
    background: rgba(33, 122, 74, 0.24);
    color: #9ef0c0;
}

.status-chip.danger {
    background: var(--danger-soft);
    color: var(--danger);
    box-shadow: none;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-note {
    padding: 10px 12px 10px 40px;
    border-radius: 14px;
    background: #f7f3eb;
    color: var(--muted);
    line-height: 1.35;
    font-size: 13px;
    border: 1px solid rgba(35, 53, 69, 0.06);
    position: relative;
    overflow: hidden;
}

.info-note::before {
    content: "i";
    display: grid;
    place-items: center;
    position: absolute;
    left: 12px;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.14);
    border: 1px solid rgba(15, 118, 110, 0.18);
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 900;
}

:root[data-theme="dark"] .info-note {
    background: #1b252b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c6d2da;
}

:root[data-theme="dark"] .info-note::before {
    background: rgba(45, 212, 191, 0.18);
    border-color: rgba(45, 212, 191, 0.22);
    color: #a6f5ea;
}

.guest-status-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}

.guest-profile-page {
    gap: 16px;
}

.editor-form-page {
    gap: 16px;
}

.editor-form {
    gap: 16px 18px;
}

.editor-form > label {
    padding: 12px 14px 14px;
    border-radius: 18px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 244, 237, 0.64));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 24px rgba(35, 53, 69, 0.04);
}

:root[data-theme="dark"] .editor-form > label {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.12);
}

.editor-form-hero {
    position: relative;
    overflow: hidden;
    gap: 16px;
}

.editor-form-hero--guest {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 249, 255, 0.74)),
        radial-gradient(circle at top right, rgba(14, 116, 144, 0.12), transparent 32%);
    border-color: rgba(14, 116, 144, 0.12);
}

.editor-form-hero--config {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 244, 255, 0.76)),
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 32%);
    border-color: rgba(99, 102, 241, 0.12);
}

:root[data-theme="dark"] .editor-form-hero--guest,
:root[data-theme="dark"] .editor-form-hero--config {
    border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .editor-form-hero--guest {
    background:
        linear-gradient(180deg, rgba(24, 39, 46, 0.94), rgba(18, 30, 36, 0.92)),
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 32%);
}

:root[data-theme="dark"] .editor-form-hero--config {
    background:
        linear-gradient(180deg, rgba(31, 33, 51, 0.92), rgba(22, 25, 41, 0.9)),
        radial-gradient(circle at top right, rgba(129, 140, 248, 0.14), transparent 34%);
}

.editor-form-hero .section-head h3 {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    line-height: 1;
    margin-top: 2px;
}

.settings-editor-form {
    gap: 18px;
}

.settings-hero {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 244, 255, 0.8)),
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 34%);
}

:root[data-theme="dark"] .settings-hero {
    background:
        linear-gradient(180deg, rgba(31, 33, 51, 0.94), rgba(22, 25, 41, 0.92)),
        radial-gradient(circle at top right, rgba(129, 140, 248, 0.14), transparent 34%);
}

.settings-core-card,
.settings-timeline-card,
.settings-flags-card,
.logo-settings-card,
.hints-editor-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 30px rgba(35, 53, 69, 0.06);
}

.settings-core-grid,
.settings-subgrid {
    gap: 14px 16px;
}

.settings-subgrid {
    margin-top: 8px;
}

.settings-core-card > .form-grid > label,
.settings-timeline-card .settings-subgrid > label {
    padding: 12px 14px 14px;
    border-radius: 18px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 244, 237, 0.64));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 24px rgba(35, 53, 69, 0.04);
}

:root[data-theme="dark"] .settings-core-card > .form-grid > label,
:root[data-theme="dark"] .settings-timeline-card .settings-subgrid > label {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.12);
}

.guest-profile-form {
    gap: 16px 18px;
}

.guest-profile-form > label {
    padding: 12px 14px 14px;
    border-radius: 18px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 244, 237, 0.64));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 24px rgba(35, 53, 69, 0.04);
}

:root[data-theme="dark"] .guest-profile-form > label {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.12);
}

.guest-profile-hero {
    position: relative;
    overflow: hidden;
    gap: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 249, 255, 0.74)),
        radial-gradient(circle at top right, rgba(14, 116, 144, 0.12), transparent 32%);
    border-color: rgba(14, 116, 144, 0.12);
}

.guest-profile-hero::after {
    content: "";
    position: absolute;
    inset: auto -40px -50px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(14, 116, 144, 0.14), transparent 68%);
    pointer-events: none;
}

:root[data-theme="dark"] .guest-profile-hero {
    background:
        linear-gradient(180deg, rgba(24, 39, 46, 0.94), rgba(18, 30, 36, 0.92)),
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 32%);
    border-color: rgba(255, 255, 255, 0.08);
}

.guest-profile-hero .section-head {
    align-items: flex-start;
}

.guest-profile-hero .section-head h3 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 0.98;
    margin-top: 2px;
}

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

.page-head-side--new-guest {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    max-width: 760px;
}

.guest-status-actions--header {
    justify-content: flex-end;
}

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

.guest-status-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 108px;
    justify-content: space-between;
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 248, 251, 0.74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 20px rgba(35, 53, 69, 0.04);
}

:root[data-theme="dark"] .guest-status-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.028));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.guest-status-item strong {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-size: 22px;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.profile-actions-bar {
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(244, 239, 231, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 12px 28px rgba(35, 53, 69, 0.05);
}

:root[data-theme="dark"] .profile-actions-bar {
    border-color: rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.14);
}

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

.search-panel,
.toolbar-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64)),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 26%);
    box-shadow: 0 14px 28px rgba(35, 53, 69, 0.06);
}

:root[data-theme="dark"] .search-panel,
:root[data-theme="dark"] .toolbar-card {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.10), transparent 26%);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.search-panel-priority {
    order: -1;
}

.search-filter-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 8px 10px;
    border-radius: 16px;
    background: rgba(35, 53, 69, 0.04);
    border: 1px solid rgba(35, 53, 69, 0.06);
}

:root[data-theme="dark"] .search-filter-row {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

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

.search-filter-block {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.search-filter-block--separated {
    padding-left: 2px;
    border-left: 2px solid rgba(15, 118, 110, 0.24);
}

.search-filter-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px;
    border-radius: 999px;
    background: rgba(35, 53, 69, 0.04);
}

:root[data-theme="dark"] .search-filter-group {
    background: rgba(255, 255, 255, 0.04);
}

.search-filter-group .btn.is-active {
    background: linear-gradient(135deg, var(--accent), #15938a);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.18);
}

.search-filter-help {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-filter-help__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(194, 65, 56, 0.45);
    color: #c24138;
    font-weight: 800;
    font-size: 14px;
    background: rgba(194, 65, 56, 0.08);
    box-shadow: 0 8px 18px rgba(194, 65, 56, 0.10);
}

.search-filter-help__popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10;
    width: min(420px, 72vw);
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(35, 53, 69, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 237, 0.96));
    box-shadow: 0 16px 32px rgba(35, 53, 69, 0.16);
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.4;
}

.search-filter-help:hover .search-filter-help__popup,
.search-filter-help:focus-within .search-filter-help__popup {
    display: flex;
}

:root[data-theme="dark"] .search-filter-help__icon {
    background: rgba(194, 65, 56, 0.14);
    border-color: rgba(248, 113, 113, 0.36);
    color: #fca5a5;
}

:root[data-theme="dark"] .search-filter-help__popup {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(24, 33, 39, 0.98), rgba(18, 25, 31, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.toolbar {
    margin: 0;
}

.registration-search-toolbar {
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(248, 244, 237, 0.74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 20px rgba(35, 53, 69, 0.04);
}

:root[data-theme="dark"] .registration-search-toolbar {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 20px rgba(0, 0, 0, 0.12);
}

.search-hint,
.helper-text,
.timestamp {
    color: var(--muted);
}

.grid-two,
.form-grid,
.admin-grid,
.stats-grid {
    display: grid;
    gap: 16px;
}

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

.admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.full-row {
    grid-column: 1 / -1;
}

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

.checkbox-label {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
    min-height: 48px;
    padding: 0 2px;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    display: inline-block;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    align-self: center;
    aspect-ratio: 1 / 1;
    line-height: 0;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(35, 53, 69, 0.24);
    background: rgba(255, 255, 255, 0.82);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    box-shadow: none;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.4 11.2 3.3 8.1l-1.1 1.1 4.2 4.2L14 5.8l-1.1-1.1z'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] .checkbox-label input[type="checkbox"] {
    border-color: rgba(255, 255, 255, 0.18);
    background-color: #243038;
}

:root[data-theme="dark"] .checkbox-label input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 16px;
}

.editor-checkbox-grid {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 241, 234, 0.76));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 24px rgba(35, 53, 69, 0.04);
}

:root[data-theme="dark"] .editor-checkbox-grid {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.12);
}

.editor-checkbox-grid .checkbox-label {
    min-height: 54px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: rgba(255, 255, 255, 0.56);
}

:root[data-theme="dark"] .editor-checkbox-grid .checkbox-label {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.editor-actions-bar {
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(244, 239, 231, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 12px 28px rgba(35, 53, 69, 0.05);
}

:root[data-theme="dark"] .editor-actions-bar {
    border-color: rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.14);
}

.sidebar-hints-editor-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.timeline-editor-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.timeline-item-editor {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(238, 247, 246, 0.82), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(15, 118, 110, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(35, 53, 69, 0.05);
}

:root[data-theme="dark"] .timeline-item-editor {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.12);
}

.timeline-item-controls {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.timeline-item-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.timeline-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-shell--immersive {
    position: relative;
    overflow: hidden;
}

.timeline-shell--immersive::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 34%),
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 36%, transparent 72%);
    pointer-events: none;
}

.timeline-shell-head {
    position: relative;
    z-index: 1;
    align-items: flex-start;
}

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

.timeline-collapse-btn {
    appearance: none;
    border: 1px solid rgba(35, 53, 69, 0.1);
    background: rgba(255, 255, 255, 0.52);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

:root[data-theme="dark"] .timeline-collapse-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.timeline-collapse-btn:hover {
    transform: translateY(-1px);
}

.timeline-shell-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
    max-height: 4000px;
    opacity: 1;
    transition: max-height 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.timeline-shell.is-collapsed .timeline-shell-body {
    max-height: 0;
    opacity: 0;
}

.timeline-rail-hint {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--accent-strong);
    background: rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(15, 118, 110, 0.16);
}

.timeline-overview-strip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 280px));
    gap: 12px;
    align-items: stretch;
}

.timeline-window-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--panel) 78%, transparent);
    border: 1px solid rgba(35, 53, 69, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .timeline-window-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.timeline-window-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.timeline-window-range {
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
}

.timeline-stage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.35fr);
    gap: 18px;
    align-items: start;
}

.timeline-featured-panel,
.timeline-agenda-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.72));
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(22px);
}

:root[data-theme="dark"] .timeline-featured-panel,
:root[data-theme="dark"] .timeline-agenda-panel {
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(2, 8, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.timeline-featured-panel::before,
.timeline-agenda-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.14), transparent 32%);
    pointer-events: none;
}

.timeline-featured-panel {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.timeline-featured-head,
.timeline-agenda-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.timeline-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--accent-strong);
    font-weight: 800;
}

.timeline-pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 234, 212, 1) 0%, rgba(15, 118, 110, 1) 62%, rgba(15, 118, 110, 0) 100%);
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.48);
    animation: timelinePulse 1.9s ease-out infinite;
}

@keyframes timelinePulse {
    0% {
        transform: scale(0.92);
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.48);
    }
    65% {
        transform: scale(1.06);
        box-shadow: 0 0 0 10px rgba(45, 212, 191, 0);
    }
    100% {
        transform: scale(0.92);
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
    }
}

.timeline-featured-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.timeline-featured-event {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(248, 255, 253, 0.94), rgba(232, 250, 246, 0.86));
    color: var(--text);
    border: 1px solid rgba(45, 212, 191, 0.16);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.62);
    animation: timelineFloatIn 560ms cubic-bezier(.2,.8,.2,1) both;
    max-height: 240px;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 220ms ease,
        transform 220ms ease,
        max-height 320ms ease,
        margin 220ms ease,
        padding 220ms ease,
        border-width 220ms ease;
}

.timeline-featured-event--next {
    background: linear-gradient(140deg, rgba(245, 251, 249, 0.96), rgba(224, 247, 242, 0.9));
}

.timeline-featured-time {
    font-size: 13px;
    line-height: 1.45;
    color: color-mix(in srgb, var(--text) 72%, var(--muted) 28%);
    font-weight: 700;
}

.timeline-featured-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-featured-content .muted {
    color: var(--muted);
}

:root[data-theme="dark"] .timeline-featured-event {
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    border: 1px solid rgba(94, 234, 212, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .timeline-featured-event--next {
    background: linear-gradient(140deg, rgba(15, 23, 42, 0.8), rgba(15, 118, 110, 0.58));
}

:root[data-theme="dark"] .timeline-featured-time {
    color: rgba(226, 232, 240, 0.8);
}

:root[data-theme="dark"] .timeline-featured-content .muted {
    color: rgba(226, 232, 240, 0.74);
}

.timeline-featured-event.is-filter-hidden,
.timeline-agenda-item.is-filter-hidden {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    overflow: hidden;
    pointer-events: none;
}

.timeline-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.timeline-room-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #dffdfa;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.88), rgba(13, 148, 136, 0.74));
    border: 1px solid rgba(94, 234, 212, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.timeline-agenda-head {
    padding: 18px 18px 0;
}

.timeline-agenda-head strong {
    display: block;
    margin-top: 2px;
}

.timeline-room-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px 0;
    position: relative;
    z-index: 1;
}

.timeline-room-filter {
    appearance: none;
    border: 1px solid rgba(35, 53, 69, 0.1);
    background: rgba(255, 255, 255, 0.56);
    color: var(--text);
    border-radius: 999px;
    padding: 7px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

:root[data-theme="dark"] .timeline-room-filter {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .timeline-room-filter.is-active {
    color: #f8fffd;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.96), rgba(13, 148, 136, 0.9));
    border-color: rgba(153, 246, 228, 0.34);
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.timeline-room-filter:hover {
    transform: translateY(-1px);
}

.timeline-room-filter.is-active {
    color: #effffb;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(13, 148, 136, 0.82));
    border-color: rgba(94, 234, 212, 0.18);
}

.timeline-agenda-meta {
    color: var(--muted);
    line-height: 1.55;
}

.timeline-agenda-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px 18px 30px;
}

.timeline-agenda-list::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 18px;
    bottom: 20px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.82), rgba(45, 212, 191, 0.06));
    opacity: 0.72;
}

.timeline-agenda-item {
    display: grid;
    grid-template-columns: 18px 76px 1fr;
    gap: 14px;
    align-items: start;
    position: relative;
    animation: timelineFloatIn 620ms cubic-bezier(.2,.8,.2,1) both;
    max-height: 240px;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 220ms ease, transform 220ms ease, max-height 320ms ease, margin 220ms ease;
}

.timeline-agenda-item:nth-child(2) { animation-delay: 40ms; }
.timeline-agenda-item:nth-child(3) { animation-delay: 80ms; }
.timeline-agenda-item:nth-child(4) { animation-delay: 120ms; }
.timeline-agenda-item:nth-child(5) { animation-delay: 160ms; }
.timeline-agenda-item:nth-child(6) { animation-delay: 200ms; }
.timeline-agenda-item:nth-child(7) { animation-delay: 240ms; }

@keyframes timelineFloatIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.timeline-agenda-marker {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 11px;
    position: relative;
    z-index: 1;
}

.timeline-agenda-marker span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.96), rgba(100, 116, 139, 0.96));
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--panel) 80%, transparent);
}

.timeline-agenda-item.is-live .timeline-agenda-marker span {
    background: radial-gradient(circle, rgba(94, 234, 212, 1) 0%, rgba(15, 118, 110, 1) 66%, rgba(15, 118, 110, 0.1) 100%);
    box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.12), 0 0 24px rgba(45, 212, 191, 0.24);
}

.timeline-agenda-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
    color: var(--muted);
}

.timeline-agenda-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 251, 249, 0.82));
    border: 1px solid rgba(35, 53, 69, 0.06);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.62);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

:root[data-theme="dark"] .timeline-agenda-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.timeline-agenda-item.is-live .timeline-agenda-card {
    background: linear-gradient(135deg, rgba(219, 248, 241, 0.96), rgba(244, 255, 252, 0.92));
    border-color: rgba(45, 212, 191, 0.22);
    box-shadow: 0 16px 32px rgba(20, 184, 166, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

:root[data-theme="dark"] .timeline-agenda-item.is-live .timeline-agenda-card {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.22), rgba(255, 255, 255, 0.05));
    box-shadow: 0 18px 34px rgba(20, 184, 166, 0.14);
}

.timeline-agenda-item.is-past .timeline-agenda-card {
    opacity: 0.88;
    background: linear-gradient(180deg, rgba(250, 252, 252, 0.84), rgba(243, 247, 248, 0.74));
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: none;
}

:root[data-theme="dark"] .timeline-agenda-item.is-past .timeline-agenda-card {
    background: rgba(255, 255, 255, 0.03);
}

.timeline-agenda-item.is-past .timeline-agenda-marker span {
    background: linear-gradient(180deg, rgba(100, 116, 139, 0.9), rgba(71, 85, 105, 0.9));
}

.timeline-agenda-item:hover .timeline-agenda-card {
    transform: translateX(3px);
}

.timeline-agenda-empty {
    margin-top: 4px;
}

.timeline-filter-empty {
    position: relative;
    z-index: 1;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px dashed rgba(45, 212, 191, 0.24);
    color: color-mix(in srgb, var(--text) 78%, var(--muted) 22%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(240, 249, 247, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

:root[data-theme="dark"] .timeline-filter-empty {
    border-color: rgba(94, 234, 212, 0.18);
    color: rgba(226, 232, 240, 0.8);
    background: rgba(15, 23, 42, 0.34);
    box-shadow: none;
}

.timeline-badge,
.timeline-type-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.timeline-badge.is-active {
    background: rgba(15, 118, 110, 0.16);
    color: var(--accent-strong);
}

.timeline-badge.is-upcoming {
    background: rgba(180, 83, 9, 0.14);
    color: #9a5b00;
}

.timeline-badge.is-finished {
    background: rgba(35, 53, 69, 0.10);
    color: var(--muted);
}

.timeline-badge.is-unset {
    background: rgba(194, 65, 56, 0.10);
    color: var(--danger);
}

.timeline-type-chip {
    background: rgba(15, 118, 110, 0.10);
    color: var(--accent-strong);
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-row {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 14px;
    align-items: start;
    padding: 12px 0;
    border-top: 1px dashed rgba(35, 53, 69, 0.12);
}

.timeline-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.timeline-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-title-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.timeline-title-row strong {
    font-size: 18px;
    line-height: 1.3;
}

.timeline-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
    gap: 8px;
    align-items: end;
    min-height: 220px;
}

.current-logo-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.logo-settings-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.logo-upload-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 244, 237, 0.64));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 24px rgba(35, 53, 69, 0.04);
}

:root[data-theme="dark"] .logo-upload-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.12);
}

.settings-logo-preview {
    width: min(220px, 100%);
    max-height: 120px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(35, 53, 69, 0.08);
    border-radius: 16px;
    padding: 10px;
}

:root[data-theme="dark"] .settings-logo-preview {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.logo-preview-empty {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(35, 53, 69, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.42);
    padding: 16px;
}

:root[data-theme="dark"] .logo-preview-empty {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.admin-utility-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(280px, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 16px;
}

.admin-utility-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-utility-actions .btn {
    justify-content: center;
}

.admin-utility-grid .stack-form {
    justify-content: start;
}

.admin-utility-grid .info-note {
    display: flex;
    align-items: center;
    min-height: 100%;
}

.admin-nmo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
}

.admin-nmo-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-nmo-card h4 {
    margin: 0;
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-size: 24px;
    letter-spacing: -0.01em;
}

.admin-nmo-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-between;
}

.admin-nmo-export-actions {
    align-items: stretch;
    gap: 10px;
}

.admin-nmo-export-actions .btn {
    justify-content: center;
}

.stack-form .btn,
.stack-form .btn-wide {
    align-self: flex-start;
    margin-top: 2px;
}

.admin-spoiler {
    padding: 0;
    overflow: hidden;
}

.admin-spoiler-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

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

.admin-spoiler-title {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-size: 22px;
    letter-spacing: -0.01em;
}

.admin-spoiler-hint {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.admin-spoiler[open] .admin-spoiler-hint::after {
    content: " ↑";
}

.admin-spoiler:not([open]) .admin-spoiler-hint::after {
    content: " ↓";
}

.settings-actions-bar .btn {
    min-width: 220px;
}

.admin-spoiler-content {
    padding: 0 18px 18px;
}

.admin-danger-card {
    border: 1px solid rgba(194, 65, 56, 0.22);
    background: linear-gradient(180deg, rgba(253, 233, 231, 0.92), rgba(255, 255, 255, 0.96));
}

:root[data-theme="dark"] .admin-danger-card {
    border-color: rgba(239, 122, 112, 0.28);
    background: linear-gradient(180deg, rgba(239, 122, 112, 0.08), rgba(24, 33, 39, 0.96));
}

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

.admin-danger-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.timeline-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: end;
    height: 220px;
}

.timeline-bar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 8px;
    border-radius: 14px 14px 6px 6px;
    background: linear-gradient(180deg, var(--accent), #15938a);
    color: #fff;
    padding-top: 8px;
    font-size: 12px;
    font-weight: 700;
}

.timeline-bar-label {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

.bulk-preprint-form,
.bulk-preprint-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bulk-preprint-head {
    align-items: start;
}

.bulk-preprint-hint {
    max-width: 760px;
    text-align: right;
}

.bulk-preprint-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px 16px;
    align-items: stretch;
}

.bulk-preprint-filter-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 12px 14px 14px;
    border-radius: 18px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 244, 237, 0.64));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 24px rgba(35, 53, 69, 0.04);
}

.bulk-preprint-filter-card input {
    min-width: 0;
}

.bulk-preprint-filter-label {
    display: block;
    min-height: 18px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

:root[data-theme="dark"] .bulk-preprint-filter-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.12);
}

.bulk-preprint-actions {
    padding-top: 2px;
}

.bulk-preprint-summary {
    align-items: center;
    gap: 16px;
}

.bulk-print-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
    padding: 8px 10px;
    border-radius: 16px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 239, 231, 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 8px 20px rgba(35, 53, 69, 0.04);
}

:root[data-theme="dark"] .bulk-print-toolbar {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sidebar-hint-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(35, 53, 69, 0.10);
    background: var(--bg-soft);
}

.sidebar-hint-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

:root[data-theme="dark"] .sidebar-hint-item {
    background: #1b252b;
    border-color: rgba(255, 255, 255, 0.08);
}

.message {
    display: none;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(31, 139, 92, 0.14);
    background: linear-gradient(180deg, rgba(228, 247, 235, 0.96), rgba(244, 252, 246, 0.94));
    color: #1f8b5c;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 10px 20px rgba(31, 139, 92, 0.08);
}

.message.is-visible {
    display: block;
}

.message::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 999px;
    background: rgba(31, 139, 92, 0.14);
    color: #1f8b5c;
    font-size: 12px;
    font-weight: 900;
    vertical-align: middle;
}

.message.error {
    border-color: rgba(194, 65, 56, 0.16);
    background: linear-gradient(180deg, rgba(253, 233, 231, 0.96), rgba(255, 246, 245, 0.94));
    color: var(--danger);
    box-shadow: 0 10px 20px rgba(194, 65, 56, 0.10);
}

.message.error::before {
    content: "!";
    background: rgba(194, 65, 56, 0.14);
    color: var(--danger);
}

:root[data-theme="dark"] .message {
    border-color: rgba(31, 139, 92, 0.16);
    background: linear-gradient(180deg, rgba(17, 66, 46, 0.36), rgba(16, 42, 31, 0.28));
    color: #9ef0c0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

:root[data-theme="dark"] .message::before {
    background: rgba(158, 240, 192, 0.14);
    color: #9ef0c0;
}

:root[data-theme="dark"] .message.error {
    border-color: rgba(239, 122, 112, 0.18);
    background: linear-gradient(180deg, rgba(84, 31, 28, 0.34), rgba(52, 20, 18, 0.26));
    color: #ffb6ad;
}

:root[data-theme="dark"] .message.error::before {
    background: rgba(255, 182, 173, 0.14);
    color: #ffb6ad;
}

.empty-state {
    padding: 28px;
    border-radius: 22px;
    text-align: center;
    color: var(--muted);
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(246,240,232,0.92));
    border: 1px dashed rgba(35, 53, 69, 0.18);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 24px rgba(35, 53, 69, 0.05);
}

:root[data-theme="dark"] .empty-state {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    border-color: rgba(255, 255, 255, 0.10);
}

.empty-state strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 18px;
}

.empty-state::before {
    content: "⌕";
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: rgba(35, 53, 69, 0.05);
    color: var(--muted);
    font-size: 24px;
    font-weight: 800;
}

.results-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(250, 247, 241, 0.68)),
        radial-gradient(circle at top right, rgba(14, 116, 144, 0.08), transparent 30%);
    box-shadow: 0 14px 30px rgba(35, 53, 69, 0.06);
}

.results-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(35, 53, 69, 0.03);
    border: 1px solid rgba(35, 53, 69, 0.05);
}

:root[data-theme="dark"] .results-summary {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .results-shell {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(24, 33, 39, 0.96), rgba(19, 28, 33, 0.94)),
        radial-gradient(circle at top right, rgba(14, 116, 144, 0.10), transparent 30%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.results-controls {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.table-prefs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.table-prefs-panel {
    width: min(100%, 760px);
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(35, 53, 69, 0.10);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-md);
}

:root[data-theme="dark"] .table-prefs-panel {
    background: #1b252b;
    border-color: rgba(255, 255, 255, 0.08);
}

.table-prefs-title {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.table-prefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 14px;
}

.table-pref-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.table-pref-option input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 1px solid rgba(35, 53, 69, 0.24);
    background: rgba(255, 255, 255, 0.88);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
    flex: 0 0 auto;
}

.table-pref-option input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.4 11.2 3.3 8.1l-1.1 1.1 4.2 4.2L14 5.8l-1.1-1.1z'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] .table-pref-option input[type="checkbox"] {
    border-color: rgba(255, 255, 255, 0.18);
    background-color: #243038;
}

:root[data-theme="dark"] .table-pref-option input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.table-wrap,
.table-scroll {
    overflow: auto;
    max-width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(35, 53, 69, 0.10);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 244, 237, 0.86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.60), inset 0 -1px 0 rgba(35, 53, 69, 0.04), 0 18px 36px rgba(35, 53, 69, 0.08);
    scrollbar-color: rgba(15, 118, 110, 0.42) transparent;
    scrollbar-width: thin;
    animation: tableReveal 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .table-scroll {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(29, 38, 44, 0.94), rgba(18, 25, 31, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.03), 0 18px 34px rgba(0, 0, 0, 0.24);
}

.table-wrap::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.table-wrap::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.46), rgba(15, 118, 110, 0.26));
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.table-wrap::-webkit-scrollbar-track,
.table-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
    background: transparent;
}

.data-table th,
.data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(35, 53, 69, 0.08);
    vertical-align: middle;
    position: relative;
}

.data-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    background: linear-gradient(180deg, rgba(250, 247, 241, 0.98), rgba(241, 235, 225, 0.98));
    box-shadow: inset 0 -1px 0 rgba(35, 53, 69, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

:root[data-theme="dark"] .data-table th {
    background: linear-gradient(180deg, rgba(32, 42, 48, 0.98), rgba(25, 33, 39, 0.98));
}

.data-table thead th:first-child {
    border-top-left-radius: 18px;
}

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

.data-table tbody tr {
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.data-table tbody tr:hover {
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.09), rgba(15, 118, 110, 0.05));
    box-shadow: inset 3px 0 0 rgba(15, 118, 110, 0.65);
}

.data-table tbody tr:nth-child(even) {
    background: linear-gradient(180deg, rgba(35, 53, 69, 0.02), rgba(35, 53, 69, 0.015));
}

.data-table tbody tr:hover td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), rgba(15, 118, 110, 0.32));
}

:root[data-theme="dark"] .data-table tbody tr:hover {
    background: linear-gradient(180deg, rgba(26, 163, 148, 0.14), rgba(26, 163, 148, 0.08));
    box-shadow: inset 3px 0 0 rgba(137, 239, 224, 0.72);
}

:root[data-theme="dark"] .data-table tbody tr:nth-child(even) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.016));
}

.data-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 18px;
}

.data-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 18px;
}

.data-table td {
    font-size: 14px;
    line-height: 1.4;
}

.data-table td strong,
.data-table td .record-title {
    color: var(--text);
}

.data-table td:first-child:not(.actions-cell),
.data-table td[data-column="last_name"],
.data-table td[data-column="first_name"] {
    font-weight: 700;
}

.data-table td[data-column="email"],
.data-table td[data-column="phone"],
.data-table td[data-column="ticket_type"],
.data-table td[data-column="company"] {
    color: color-mix(in srgb, var(--text) 84%, var(--muted) 16%);
}

.compact th,
.compact td {
    padding: 10px 12px;
    font-size: 13px;
}

.actions-cell {
    min-width: 220px;
}

.action-stack,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 16px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 239, 231, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 14px rgba(35, 53, 69, 0.04);
}

:root[data-theme="dark"] .action-stack,
:root[data-theme="dark"] .row-actions {
    border-color: rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 14px rgba(0, 0, 0, 0.12);
}

.compact-table {
    min-width: 680px;
}

.compact-table .btn-small {
    padding: 7px 10px;
    font-size: 12px;
}

.compact-status {
    min-height: 28px;
    padding: 5px 11px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.table-column-hidden {
    display: none;
}

.record-title {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
}

.sidebar .summary-label {
    font-size: 12px;
    line-height: 1.2;
}

.sidebar .quick-links {
    gap: 8px;
}

.sidebar .quick-links .btn {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 11px;
}

.sidebar .info-note strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.15;
}

.record-subtitle {
    color: var(--muted);
    font-size: 14px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-title {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-size: 26px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(35, 53, 69, 0.08);
}

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

.stats-spoiler {
    padding: 0;
    overflow: hidden;
}

.stats-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 30%);
}

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

.stats-heading {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.stats-summary-hint {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.stats-spoiler[open] .stats-summary-hint::after {
    content: " ↑";
}

.stats-spoiler:not([open]) .stats-summary-hint::after {
    content: " ↓";
}

.compact-stats-grid {
    padding: 8px 14px 14px;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.compact-stat-card {
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 244, 237, 0.68)),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 32%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 12px 26px rgba(35, 53, 69, 0.05);
}

.compact-stat-title {
    margin-bottom: 8px;
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-size: 20px;
    letter-spacing: -0.02em;
    line-height: 1;
}

.compact-stat-row {
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(35, 53, 69, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.compact-stat-row strong {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--text);
}

:root[data-theme="dark"] .compact-stat-card {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03)),
        radial-gradient(circle at top right, rgba(26, 163, 148, 0.08), transparent 32%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 26px rgba(0, 0, 0, 0.14);
}

.admin-card h3,
.subtle-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-size: 28px;
}

.subtle-card {
    background: #fbf6ef;
}

.about-system-page {
    gap: 18px;
}

.about-system-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-system-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text);
    line-height: 1.6;
}

.about-system-copy p {
    margin: 0;
}

.about-system-spoiler {
    padding: 0;
    overflow: hidden;
}

.about-system-tabs {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 18px 18px;
}

.about-system-tabbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.about-system-tabbar .btn.is-active {
    background: linear-gradient(135deg, var(--accent), #15938a);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.18);
}

.about-system-tabpanel {
    display: none;
}

.about-system-tabpanel.is-active {
    display: block;
}

.about-system-changelog {
    margin: 0;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(35, 53, 69, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 244, 237, 0.64));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 24px rgba(35, 53, 69, 0.04);
    color: var(--text);
    line-height: 1.45;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 60vh;
    overflow: auto;
}

:root[data-theme="dark"] .about-system-changelog {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] .subtle-card {
    background: #182127;
}

.mapping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.mapping-row {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: #f8f5ee;
    border: 1px solid rgba(35, 53, 69, 0.08);
}

:root[data-theme="dark"] .mapping-row {
    background: #1b252b;
}

.mapping-source {
    font-weight: 800;
}

.template-editor-grid {
    display: grid;
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 16px;
}

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

.preview-card {
    overflow: auto;
}

.preview-wrap {
    min-height: 240px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f5f0e8, #fbf8f2);
    overflow: auto;
}

:root[data-theme="dark"] .preview-wrap {
    background: linear-gradient(180deg, #131b20, #182127);
}

.label-preview {
    position: relative;
    background: #fff;
    border: 1px solid #22313b;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    transform-origin: top left;
}

:root[data-theme="dark"] .label-preview {
    background: #f8fafb;
}

.template-preview-background-layer,
.template-preview-grid-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.template-preview-background-layer {
    z-index: 0;
    background: #fff;
}

.template-preview-background-object {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    pointer-events: none;
}

.template-preview-grid-layer {
    z-index: 1;
    background-image:
        linear-gradient(to right, rgba(15,118,110,0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15,118,110,0.08) 1px, transparent 1px);
}

.preview-field {
    appearance: none;
    position: absolute;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    line-height: 1.05;
    border: 1px dashed rgba(15, 118, 110, 0.25);
    padding: 0 1mm;
    color: #111;
    background: rgba(255, 255, 255, 0.88);
    cursor: grab;
    z-index: 2;
}

.preview-field:focus-visible {
    outline: 2px solid rgba(15, 118, 110, 0.4);
}

.preview-field.multi-line {
    white-space: normal;
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.preview-field.is-selected {
    outline: 2px solid rgba(15, 118, 110, 0.4);
    background: rgba(223, 244, 241, 0.95);
}

.preview-field.is-warning {
    outline: 2px solid rgba(194, 65, 56, 0.45);
}

.preview-field.is-soft-warning {
    border-color: rgba(194, 65, 56, 0.45);
}

.preview-field.is-locked {
    cursor: not-allowed;
    border-style: solid;
    border-color: rgba(71, 85, 105, 0.45);
}

.preview-resize-handle {
    position: absolute;
    width: 3.2mm;
    height: 3.2mm;
    border-radius: 999px;
    border: 1px solid rgba(15, 118, 110, 0.7);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    z-index: 3;
}

.preview-resize-handle.is-nw {
    top: -1.6mm;
    left: -1.6mm;
    cursor: nwse-resize;
}

.preview-resize-handle.is-ne {
    top: -1.6mm;
    right: -1.6mm;
    cursor: nesw-resize;
}

.preview-resize-handle.is-sw {
    bottom: -1.6mm;
    left: -1.6mm;
    cursor: nesw-resize;
}

.preview-resize-handle.is-se {
    bottom: -1.6mm;
    right: -1.6mm;
    cursor: nwse-resize;
}

.template-smart-guide {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    background: rgba(14, 165, 233, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.template-smart-guide.is-vertical {
    width: 0.35mm;
}

.template-smart-guide.is-horizontal {
    height: 0.35mm;
}

.template-smart-guide.is-center {
    background: rgba(168, 85, 247, 0.8);
}

.template-smart-guide.is-safe {
    background: rgba(245, 158, 11, 0.85);
}

.template-selection-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.selection-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.10);
    border: 1px solid rgba(15, 118, 110, 0.18);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
}

:root[data-theme="dark"] .selection-chip {
    background: rgba(45, 212, 191, 0.12);
    border-color: rgba(45, 212, 191, 0.18);
}

.preview-headline,
.template-list-head,
.template-toolbar,
.vertical-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

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

.section-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-row h3 {
    margin-bottom: 0;
}

.compact-section-title {
    margin-top: 2px;
    margin-bottom: 2px;
}

.help-dot {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(15, 118, 110, 0.2);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    cursor: help;
    user-select: none;
}

.help-dot:focus-visible {
    outline: 2px solid rgba(15, 118, 110, 0.35);
    outline-offset: 1px;
}

.template-main-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.template-main-settings > h3,
.template-main-settings > label,
.template-main-settings > .two-cols,
.template-main-settings > .form-actions,
.template-main-settings > #templateMessage {
    margin: 0;
}

.template-main-settings label {
    font-size: 14px;
    line-height: 1.2;
}

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

.template-action-grid .btn {
    width: 100%;
}

.template-hints-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hint-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(35, 53, 69, 0.06);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.compact-mode-toggle {
    margin-left: auto;
    white-space: nowrap;
}

.template-fields-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-fields-list.is-compact {
    gap: 6px;
}

.tpl-field-card {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(35, 53, 69, 0.10);
    background: #fbf8f2;
}

:root[data-theme="dark"] .tpl-field-card {
    background: #1c252b;
}

.tpl-field-card.is-enabled {
    border-color: rgba(15, 118, 110, 0.28);
}

.tpl-field-card.is-selected {
    border-color: rgba(15, 118, 110, 0.42);
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.10);
}

.tpl-field-card.is-dragging {
    opacity: 0.72;
}

.tpl-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tpl-card-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.drag-handle,
.mini-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: #efe9df;
    color: var(--text);
    display: grid;
    place-items: center;
    font-size: 15px;
    line-height: 1;
}

.mini-btn.is-active {
    background: rgba(15, 118, 110, 0.22);
    color: var(--text);
    box-shadow: 0 8px 16px rgba(15, 118, 110, 0.14);
}

.drag-handle {
    cursor: grab;
}

.mini-btn:hover,
.drag-handle:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(35, 53, 69, 0.12);
}

.nav-btn[data-page]::before,
.btn[data-page]::before,
.dropdown-menu button[data-page]::before,
#logoutBtn::before,
.danger::before {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    font-size: 16px;
    line-height: 1;
    transform: translateY(-0.5px);
    flex: 0 0 auto;
}

.nav-btn[data-page="registration"]::before,
.btn[data-page="registration"]::before,
.dropdown-menu button[data-page="registration"]::before {
    content: "⌕";
}

.nav-btn[data-page="new_guest"]::before,
.btn[data-page="new_guest"]::before,
.dropdown-menu button[data-page="new_guest"]::before {
    content: "＋";
}

.nav-btn[data-page="guest_admin"]::before,
.btn[data-page="guest_admin"]::before,
.dropdown-menu button[data-page="guest_admin"]::before {
    content: "⇅";
}

.nav-btn[data-page="bulk_preprint"]::before,
.btn[data-page="bulk_preprint"]::before,
.dropdown-menu button[data-page="bulk_preprint"]::before {
    content: "⎙";
}

.nav-btn[data-page="templates"]::before,
.btn[data-page="templates"]::before,
.dropdown-menu button[data-page="templates"]::before {
    content: "🏷";
}

.nav-btn[data-page="fields"]::before,
.btn[data-page="fields"]::before,
.dropdown-menu button[data-page="fields"]::before {
    content: "☷";
}

.nav-btn[data-page="users"]::before,
.btn[data-page="users"]::before,
.dropdown-menu button[data-page="users"]::before {
    content: "👥";
}

.nav-btn[data-page="timeline_journal"]::before,
.btn[data-page="timeline_journal"]::before,
.dropdown-menu button[data-page="timeline_journal"]::before {
    content: "◷";
}

.nav-btn[data-page="event_settings"]::before,
.btn[data-page="event_settings"]::before,
.dropdown-menu button[data-page="event_settings"]::before {
    content: "⚙";
}

.nav-btn[data-page="about_system"]::before,
.btn[data-page="about_system"]::before,
.dropdown-menu button[data-page="about_system"]::before {
    content: "ⓘ";
}

#logoutBtn::before,
.danger::before {
    content: "⨯";
}

:root[data-theme="dark"] .drag-handle,
:root[data-theme="dark"] .mini-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.tpl-field-card.is-locked {
    border-color: rgba(71, 85, 105, 0.28);
}

.tpl-field-card.is-preview-hidden {
    opacity: 0.72;
}

.tpl-field-card.is-preview-hidden .tpl-field-title strong::after {
    content: " · hidden";
    font-size: 11px;
    font-weight: 700;
    color: #b45309;
}

.tpl-field-card.is-locked .tpl-field-title strong::after {
    content: " · locked";
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.tpl-options {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(35, 53, 69, 0.14);
}

.tpl-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.tpl-field-title {
    gap: 8px;
    font-size: 14px;
}

.tpl-field-title .small {
    font-size: 11px;
}

.tpl-options-grid label {
    font-size: 13px;
    line-height: 1.2;
}

.tpl-options-grid input,
.tpl-options-grid select {
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 12px;
    font-size: 14px;
}

.tpl-options-grid .checkbox-label input[type="checkbox"],
.template-main-settings .checkbox-label input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    border-radius: 6px;
}

.template-fields-list.is-compact .tpl-field-card {
    padding: 8px 10px;
    border-radius: 12px;
}

.template-fields-list.is-compact .tpl-card-top {
    gap: 6px;
}

.template-fields-list.is-compact .drag-handle,
.template-fields-list.is-compact .mini-btn {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 13px;
}

.template-fields-list.is-compact .tpl-options {
    margin-top: 8px;
    padding-top: 8px;
}

.template-fields-list.is-compact .tpl-options-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 6px;
}

.template-fields-list.is-compact .tpl-options-grid label {
    font-size: 12px;
}

.template-fields-list.is-compact .checkbox-label {
    min-height: 32px;
}

.template-fields-list.is-compact .tpl-field-title {
    min-height: 28px;
}

.template-fields-list.is-compact .tpl-options-grid input,
.template-fields-list.is-compact .tpl-options-grid select {
    min-height: 36px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 13px;
}

.template-fields-list.is-compact .tpl-options-grid .checkbox-label input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    border-radius: 6px;
}

.flag-cell {
    text-align: center;
}

.flag-dot {
    display: inline-flex;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #d4dbe1;
}

.flag-dot.on {
    background: #0f766e;
    box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.10);
}

.flag-dot.off {
    background: #c24138;
    box-shadow: 0 0 0 5px rgba(194, 65, 56, 0.08);
}

.inline-select {
    min-width: 220px;
}

hr {
    border: 0;
    border-top: 1px solid rgba(35, 53, 69, 0.10);
    margin: 4px 0;
}

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

    .layout-grid.is-sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .header,
    .footer {
        grid-column: auto;
    }

    .layout-grid.is-sidebar-collapsed .sidebar {
        display: none;
    }

    .template-editor-grid,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .profile-actions-bar {
        align-items: stretch;
    }

    .editor-actions-bar {
        align-items: stretch;
    }

    .profile-print-actions {
        width: 100%;
    }

    .editor-actions-bar .btn {
        width: 100%;
    }

    .profile-print-actions .inline-select,
    .profile-print-actions .btn {
        width: 100%;
    }
}

@media (max-width: 860px) {
    .app-shell {
        padding: 14px;
    }

    .content,
    .header,
    .sidebar {
        padding: 18px;
    }

    .form-grid,
    .two-cols {
        grid-template-columns: 1fr;
    }

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

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

    .registration-hero-head {
        align-items: start;
        flex-wrap: wrap;
    }

    .registration-hero-title {
        width: 100%;
    }

    .registration-stats-card {
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
        justify-self: stretch;
    }

    .registration-stat-item {
        border-bottom: 1px solid rgba(35, 53, 69, 0.08);
        padding: 8px 0;
        min-width: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        border-left: 0;
        border-right: 0;
        border-top: 0;
    }

    .registration-stat-item:last-child {
        border-bottom: 0;
    }

    .search-filter-row,
    .search-filter-block {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .search-filter-row {
        justify-content: flex-start;
    }

    .search-filter-help {
        margin-left: auto;
    }

    .search-filter-help__popup {
        right: 0;
        width: min(360px, 84vw);
    }

    .logo-settings-grid,
    .admin-utility-grid,
    .admin-nmo-grid {
        grid-template-columns: 1fr;
    }

    .bulk-preprint-head,
    .bulk-preprint-summary {
        align-items: start;
    }

    .bulk-preprint-hint {
        text-align: left;
    }

    .bulk-print-toolbar {
        width: 100%;
        margin-left: 0;
        justify-content: stretch;
    }

    .bulk-print-toolbar .inline-select,
    .bulk-print-toolbar .btn {
        width: 100%;
    }

    .event-name {
        font-size: 2.2rem;
    }

    .timeline-item-editor,
    .timeline-row {
        grid-template-columns: 1fr;
    }

    .timeline-item-fields,
    .timeline-status-grid,
    .timeline-overview-strip,
    .timeline-stage {
        grid-template-columns: 1fr;
    }

    .timeline-agenda-list {
        padding-left: 18px;
    }

    .timeline-agenda-list::before {
        left: 15px;
    }

    .timeline-agenda-item {
        grid-template-columns: 18px 68px 1fr;
    }

    .topnav,
    .header-actions {
        width: 100%;
        align-items: stretch;
    }

    .topnav {
        justify-content: stretch;
    }

    .topnav > *,
    .topnav .dropdown,
    .topnav .nav-btn {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        display: none;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        display: flex;
    }

    .data-table {
        min-width: 640px;
    }
}

@media (max-width: 720px) {
    .timeline-featured-event,
    .timeline-agenda-item {
        grid-template-columns: 1fr;
    }

    .timeline-agenda-list::before,
    .timeline-agenda-marker {
        display: none;
    }

    .timeline-overview-strip {
        gap: 10px;
    }

    .timeline-window-topline,
    .timeline-featured-head,
    .timeline-agenda-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-pulse-dot,
    .timeline-featured-event,
    .timeline-agenda-item {
        animation: none;
    }

    .timeline-agenda-item:hover .timeline-agenda-card {
        transform: none;
    }
}
