:root {
    font-family: "Segoe UI", Tahoma, Arial, "Noto Sans Arabic", sans-serif;
    color-scheme: light dark;
    line-height: 1.45;
    font-size: 16px;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --motion-fast: 0.18s ease;
    --motion-base: 0.28s ease;
    --elevation-soft: 0 12px 26px rgba(9, 23, 40, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    position: relative;
    overflow-x: hidden;
    background: var(--app-bg);
    color: var(--text-main);
    transition: background 0.3s ease, color 0.3s ease;
}

body.has-modal {
    overflow: hidden;
}

body[data-theme="light"] {
    --app-bg: #edf3f8;
    --app-bg-soft: rgba(255, 255, 255, 0.6);
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-soft: rgba(233, 243, 252, 0.9);
    --surface-dark: rgba(16, 32, 54, 0.92);
    --text-main: #13243a;
    --text-muted: #56677c;
    --line: rgba(20, 49, 82, 0.12);
    --accent: #0f7baf;
    --accent-strong: #065f8f;
    --accent-soft: rgba(15, 123, 175, 0.12);
    --danger: #c64747;
    --success: #15856f;
    --shadow: 0 22px 44px rgba(16, 32, 54, 0.12);
    --focus-ring: rgba(15, 123, 175, 0.42);
}

body[data-theme="dark"] {
    --app-bg: #07121f;
    --app-bg-soft: rgba(8, 18, 31, 0.6);
    --surface: rgba(13, 24, 40, 0.88);
    --surface-strong: rgba(18, 31, 51, 0.96);
    --surface-soft: rgba(11, 20, 34, 0.94);
    --surface-dark: rgba(5, 10, 18, 0.94);
    --text-main: #eff6ff;
    --text-muted: #9eb0c5;
    --line: rgba(160, 183, 211, 0.14);
    --accent: #5dc8ff;
    --accent-strong: #2aa8e8;
    --accent-soft: rgba(93, 200, 255, 0.16);
    --danger: #ff7b7b;
    --success: #3fd3b2;
    --shadow: 0 24px 46px rgba(0, 0, 0, 0.38);
    --focus-ring: rgba(93, 200, 255, 0.5);
}

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

button,
input,
select,
textarea {
    border: 0;
}

:where(a, button, input, select, textarea, [role="button"]):focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

img {
    display: block;
    max-width: 100%;
}

.app-page {
    padding: 24px;
}

.page-ornament {
    position: fixed;
    border-radius: 999px;
    filter: blur(0);
    pointer-events: none;
    z-index: 0;
}

.page-ornament--one {
    top: -7rem;
    left: -5rem;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(76, 196, 225, 0.32), transparent 68%);
}

.page-ornament--two {
    right: -8rem;
    bottom: -9rem;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle, rgba(248, 177, 69, 0.18), transparent 72%);
}

.app-content,
.flash-region,
.modal-root {
    position: relative;
    z-index: 1;
}

.app-content,
.shell-frame,
.workspace {
    width: 100%;
    min-width: 0;
}

.hero-card,
.panel-card,
.detail-card,
.modal-card,
.admin-section,
.empty-card,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.current-time-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin: 0 auto 1.5rem;
    max-width: 980px;
}

.current-time-card__label {
    color: var(--text-muted);
    font-weight: 700;
}

.current-time-card__value {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
}

.hero-card {
    max-width: 980px;
    margin: 7vh auto 0;
    padding: 2rem;
    text-align: center;
}

.hero-card h1 {
    margin: 0.9rem 0 0.6rem;
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.hero-card p {
    max-width: 48rem;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.hero-chip,
.hint-chip,
.session-pill,
.status-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.hero-chip,
.hint-chip,
.session-pill {
    padding: 0.5rem 0.9rem;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}

.hero-chip--danger {
    background: rgba(198, 71, 71, 0.14);
    color: var(--danger);
}

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

.language-option {
    display: grid;
    gap: 0.5rem;
    justify-items: start;
    padding: 1.35rem;
    border-radius: 24px;
    background: linear-gradient(160deg, var(--surface-strong), var(--surface-soft));
    border: 1px solid var(--line);
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.language-option:hover,
.hall-card:hover,
.header-btn:hover,
.btn:hover,
.admin-item:hover {
    transform: translateY(-2px);
}

.language-option.is-featured {
    border-color: rgba(15, 123, 175, 0.34);
    box-shadow: 0 16px 32px rgba(15, 123, 175, 0.16);
}

.language-option__label {
    font-size: 1.55rem;
    font-weight: 800;
}

.language-option__meta {
    color: var(--text-muted);
}

.setup-card {
    text-align: start;
}

.setup-error {
    margin-top: 1rem;
    padding: 1rem;
    overflow: auto;
    white-space: pre-wrap;
    border-radius: 20px;
    background: var(--surface-dark);
    color: #fff;
}

.app-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.header-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.header-group--brand {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.header-group:last-child {
    justify-content: end;
}

.brand-mark {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(145deg, var(--accent), var(--accent-strong));
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(15, 123, 175, 0.28);
}

.brand-mark--logo {
    width: auto;
    min-width: 0;
    height: auto;
    max-width: 5.25rem;
    max-height: 3.4rem;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.brand-mark--logo img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 3.4rem;
    filter: none;
    object-fit: contain;
    object-position: center center;
}

.brand-copy {
    display: grid;
    gap: 0.15rem;
    text-align: center;
}

.brand-copy strong {
    font-size: 1.15rem;
}

.brand-copy span,
.detail-capacity,
.mini-note,
.panel-heading h2,
.notice-banner,
.flash span {
    color: var(--text-muted);
}

.header-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--text-main);
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header-btn--accent,
.btn--accent {
    background: linear-gradient(145deg, var(--accent), var(--accent-strong));
    border-color: transparent;
    color: #fff;
}

.btn--ghost {
    background: transparent;
}

.btn--danger {
    background: rgba(198, 71, 71, 0.12);
    color: var(--danger);
    border-color: rgba(198, 71, 71, 0.18);
}

.header-btn--floating {
    position: fixed;
    inset-inline-end: 1.5rem;
    inset-block-end: 1.5rem;
    z-index: 25;
    width: 3.25rem;
    min-width: 3.25rem;
    height: 3.25rem;
    min-height: 3.25rem;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-main);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-btn--floating.is-active {
    background: rgba(93, 200, 255, 0.16);
    border-color: rgba(93, 200, 255, 0.34);
    color: var(--accent);
}

.header-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
}

.header-btn__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.session-pill--admin {
    background: rgba(248, 177, 69, 0.18);
    color: #c67917;
}

.session-pill--ghost {
    background: rgba(127, 145, 164, 0.12);
    color: var(--text-muted);
}

.mobile-view-switch {
    display: none;
}

.mobile-view-btn {
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast);
}

.mobile-view-btn.is-active {
    border-color: rgba(15, 123, 175, 0.35);
    background: linear-gradient(145deg, var(--accent-soft), rgba(255, 255, 255, 0.06));
    color: var(--accent);
}

.workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.workspace-panel {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.panel-heading,
.booking-card__header,
.section-title,
.timeline-head,
.modal-card__header,
.detail-hero__content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.panel-heading h2,
.section-title h3,
.timeline-head h3,
.booking-card__header h3 {
    margin: 0.2rem 0 0;
    font-size: 1rem;
    font-weight: 600;
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hall-grid-panel,
.detail-card,
.booking-card,
.timeline-card,
.empty-state,
.admin-form,
.admin-item,
.stack-form {
    padding: 1.1rem;
}

.hall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.hall-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
    gap: 0.7rem;
    margin-bottom: 1rem;
    align-items: end;
}

.hall-filters label {
    display: grid;
    gap: 0.35rem;
}

.hall-filters span {
    font-size: 0.84rem;
    font-weight: 700;
}

.hall-card {
    display: grid;
    gap: 0.85rem;
    padding: 0.8rem;
    border-radius: 22px;
    background: linear-gradient(155deg, var(--surface-strong), var(--surface-soft));
    border: 1px solid var(--line);
    text-align: start;
    cursor: pointer;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hall-card.is-active {
    border-color: rgba(15, 123, 175, 0.38);
    box-shadow: 0 18px 28px rgba(15, 123, 175, 0.18);
}

.hall-card--maintenance,
.hall-card--inactive {
    opacity: 0.82;
}

.hall-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(15, 123, 175, 0.15), rgba(248, 177, 69, 0.14));
}

.hall-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hall-card__placeholder,
.detail-hero__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
    color: var(--text-main);
    font-weight: 800;
    text-align: center;
}

.status-badge {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.status-badge--available {
    background: rgba(21, 133, 111, 0.16);
    color: var(--success);
}

.status-badge--maintenance {
    background: rgba(248, 177, 69, 0.2);
    color: #bc6f16;
}

.status-badge--inactive {
    background: rgba(127, 145, 164, 0.16);
    color: var(--text-muted);
}

.hall-card__media .status-badge {
    position: absolute;
    top: 0.8rem;
    inset-inline-start: 0.8rem;
}

.hall-card__content {
    display: grid;
    gap: 0.2rem;
}

.hall-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hall-card__meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(127, 145, 164, 0.16);
    border: 1px solid var(--line);
}

.detail-card {
    display: grid;
    gap: 1rem;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
}

.detail-hero__media {
    overflow: hidden;
    min-height: 230px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(15, 123, 175, 0.12), rgba(248, 177, 69, 0.16));
}

.detail-hero__preview {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.detail-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero__zoom {
    position: absolute;
    inset-inline-end: 0.7rem;
    inset-block-end: 0.7rem;
    width: 1.85rem;
    height: 1.85rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(4, 11, 18, 0.68);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
}

.detail-hero__content {
    display: grid;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.detail-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.hall-services-panel {
    display: grid;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
}

.hall-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 123, 175, 0.24);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
}

.detail-hero__content h2,
.timeline-head h3,
.booking-card__header h3,
.empty-state h2,
.modal-card__header h2,
.admin-item h4,
.admin-form h4 {
    margin: 0;
}

.timeline-filter,
.booking-form,
.stack-form,
.admin-form {
    display: grid;
    gap: 0.9rem;
}

.timeline-filter {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.timeline-filter label,
.booking-form label,
.stack-form label,
.admin-form label {
    display: grid;
    gap: 0.35rem;
}

.timeline-filter span,
.booking-form span,
.stack-form span,
.admin-form span {
    font-size: 0.9rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.78rem 0.95rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--text-main);
}

select[multiple] {
    min-height: 8rem;
    padding-block: 0.5rem;
}

.timeline-card,
.booking-card {
    border-radius: 24px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.timeline-head,
.booking-card__header {
    flex-wrap: wrap;
    align-items: center;
}

.timeline-shell {
    display: grid;
    gap: 0.9rem;
}

.timeline-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.45rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(143, 165, 191, 0.45) transparent;
}

.timeline-scroll::-webkit-scrollbar {
    height: 10px;
}

.timeline-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
    background: rgba(143, 165, 191, 0.42);
    border-radius: 999px;
}

.timeline-scroll__content {
    min-width: var(--timeline-min-width, 1120px);
}

.timeline-ruler {
    position: relative;
    height: 3.2rem;
    margin-inline: 1rem;
    width: calc(100% - 2rem);
}

.timeline-ruler__marker {
    position: absolute;
    inset-block-end: 0;
    width: 1px;
    height: 0.85rem;
    background: rgba(143, 165, 191, 0.2);
}

.timeline-ruler__marker--major {
    height: 1.15rem;
    background: rgba(143, 165, 191, 0.45);
}

.timeline-ruler__label {
    position: absolute;
    inset-block-start: 0;
    left: 0;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    direction: ltr;
    unicode-bidi: isolate;
}

.timeline-scroll[dir="rtl"] .timeline-ruler__marker:first-child .timeline-ruler__label {
    left: auto;
    right: 0;
    transform: none;
}

.timeline-scroll[dir="rtl"] .timeline-ruler__marker:last-child .timeline-ruler__label {
    left: 0;
    right: auto;
    transform: none;
}

.timeline-scroll[dir="ltr"] .timeline-ruler__marker:first-child .timeline-ruler__label {
    left: 0;
    right: auto;
    transform: none;
}

.timeline-scroll[dir="ltr"] .timeline-ruler__marker:last-child .timeline-ruler__label {
    left: auto;
    right: 0;
    transform: none;
}

.timeline-track {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line);
    width: calc(100% - 2rem);
    margin-inline: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
        linear-gradient(180deg, var(--surface-dark), var(--surface-soft));
}

.timeline-line {
    position: absolute;
    inset-block: 0;
    width: 1px;
    background: rgba(143, 165, 191, 0.16);
}

.timeline-line--hour {
    background: rgba(143, 165, 191, 0.22);
}

.timeline-line--major {
    width: 2px;
    background: rgba(143, 165, 191, 0.35);
}

.timeline-block {
    position: absolute;
    inset-block-start: 1.15rem;
    min-height: 5rem;
    min-width: 3rem;
    padding: 0.8rem 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--block-border);
    background: linear-gradient(180deg, var(--block-bg), var(--block-bg));
    box-shadow: 0 16px 26px rgba(0, 0, 0, 0.18);
    color: #fff;
    display: grid;
    align-content: center;
    gap: 0.3rem;
    overflow: hidden;
    text-align: center;
}

.timeline-block strong,
.timeline-block span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timeline-block strong {
    font-size: 0.86rem;
}

.timeline-block span {
    font-size: 0.76rem;
    opacity: 0.92;
}

.timeline-empty {
    position: absolute;
    inset: 1rem;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text-muted);
    border-radius: 20px;
    border: 1px dashed var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.timeline-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.timeline-legend__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    border: 1px solid var(--legend-border);
    background: var(--legend-bg);
}

.timeline-legend__swatch {
    width: 0.9rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--legend-accent);
    flex: 0 0 auto;
}

.timeline-legend__copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.timeline-legend__copy strong,
.timeline-legend__copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timeline-legend__copy span {
    color: var(--text-muted);
    font-size: 0.86rem;
}

#hall-detail .detail-card {
    width: 100%;
    min-width: 0;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 22px;
    margin-inline: 0;
}

#hall-detail {
    width: 100%;
    min-width: 0;
}

#hall-detail .detail-hero {
    grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1fr);
    gap: 0.8rem;
}

#hall-detail .detail-hero__media {
    max-width: 220px;
    min-height: 168px;
    border-radius: 18px;
}

#hall-detail .detail-hero__content {
    gap: 0.55rem;
}

#hall-detail .detail-meta {
    gap: 0.45rem;
}

#hall-detail .detail-hero__content h2 {
    font-size: 1.22rem;
    line-height: 1.2;
}

#hall-detail .detail-capacity,
#hall-detail .status-badge {
    font-size: 0.78rem;
}

#hall-detail .timeline-card,
#hall-detail .booking-card {
    min-width: 0;
    max-width: 100%;
    padding: 0.85rem;
    border-radius: 20px;
}

#hall-detail .timeline-head,
#hall-detail .booking-card__header,
#hall-detail .timeline-shell {
    gap: 0.65rem;
}

#hall-detail .timeline-head h3,
#hall-detail .booking-card__header h3 {
    font-size: 0.94rem;
}

#hall-detail .eyebrow {
    font-size: 0.72rem;
}

#hall-detail .timeline-filter,
#hall-detail .booking-form {
    gap: 0.7rem;
}

#hall-detail .booking-form--inline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

#hall-detail .booking-form--inline.booking-form--admin {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

#hall-detail .timeline-filter span,
#hall-detail .booking-form span {
    font-size: 0.82rem;
}

#hall-detail .booking-form__field {
    position: relative;
    display: grid;
    gap: 0.24rem;
    min-width: 0;
    padding: 0.45rem 0.62rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

#hall-detail .booking-form__field::before {
    content: "";
    position: absolute;
    inset-block-start: 0.72rem;
    inset-inline-start: 0.7rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 0.18rem var(--accent-soft);
}

#hall-detail .booking-form__field:focus-within {
    border-color: rgba(93, 200, 255, 0.34);
    box-shadow: 0 0 0 0.2rem rgba(93, 200, 255, 0.08);
}

#hall-detail .booking-form__field span {
    padding-inline-start: 0.85rem;
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#hall-detail input,
#hall-detail select,
#hall-detail textarea {
    min-height: 2.75rem;
    padding: 0.64rem 0.82rem;
    border-radius: 14px;
    font-size: 0.92rem;
}

#hall-detail .booking-form__field input,
#hall-detail .booking-form__field select {
    min-height: 1.85rem;
    padding: 0 0.15rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0.8rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#hall-detail .booking-form__field input[type="date"] {
    font-size: 0.76rem;
}

#hall-detail .booking-form__field input[type="time"] {
    font-size: 0.78rem;
}

#hall-detail .booking-form__field--services {
    grid-column: 1 / -1;
}

#hall-detail .service-picker {
    display: grid;
    gap: 0.55rem;
    padding: 0.2rem 0.1rem 0.1rem;
}

#hall-detail .service-picker--empty {
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 0.75rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

#hall-detail .service-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
    font-size: 0.88rem;
}

#hall-detail .service-option:hover {
    transform: translateY(-1px);
    border-color: rgba(93, 200, 255, 0.5);
}

#hall-detail .service-option input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
}

#hall-detail .service-option span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

#hall-detail .service-option span::before {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: transparent;
    font-size: 0.7rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#hall-detail .service-option input:checked + span::before {
    content: '✓';
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

#hall-detail .service-option input:checked + span {
    color: var(--accent);
}

#hall-detail .service-option--selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

#hall-detail .btn {
    min-height: 2.75rem;
    padding: 0.7rem 0.95rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

#hall-detail .booking-form__submit {
    min-width: 0;
    align-self: stretch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.82rem;
}

#hall-detail .timeline-scroll {
    min-width: 0;
    max-width: 100%;
    padding-bottom: 0.3rem;
}

#hall-detail .timeline-scroll__content {
    --timeline-min-width: 980px;
}

#hall-detail .timeline-ruler {
    height: 2.7rem;
    margin-inline: 0.7rem;
    width: calc(100% - 1.4rem);
}

#hall-detail .timeline-ruler__label {
    padding: 0.18rem 0.38rem;
    font-size: 0.68rem;
}

#hall-detail .timeline-track {
    min-height: 145px;
    border-radius: 18px;
    width: calc(100% - 1.4rem);
    margin-inline: 0.7rem;
}

#hall-detail .timeline-block {
    inset-block-start: 0.7rem;
    min-height: 3.2rem;
    min-width: 2.4rem;
    padding: 0.45rem 0.55rem;
    border-radius: 16px;
}

#hall-detail .timeline-block strong {
    font-size: 0.76rem;
}

#hall-detail .timeline-block span {
    font-size: 0.68rem;
}

#hall-detail .timeline-empty,
#hall-detail .notice-banner {
    padding: 0.8rem;
    border-radius: 16px;
    font-size: 0.9rem;
}

#hall-detail .inline-actions {
    gap: 0.55rem;
}

#hall-detail .timeline-legend {
    gap: 0.55rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

#hall-detail .timeline-legend__item {
    gap: 0.6rem;
    padding: 0.7rem 0.8rem;
    border-radius: 15px;
}

#hall-detail .timeline-legend__swatch {
    height: 2.35rem;
}

#hall-detail .timeline-legend__copy strong {
    font-size: 0.88rem;
}

#hall-detail .timeline-legend__copy span {
    font-size: 0.78rem;
}

.timeline-mobile-summary {
    display: none;
}

.timeline-mobile-summary__item {
    display: grid;
    gap: 0.25rem;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
}

.timeline-mobile-summary__item strong {
    font-size: 0.9rem;
}

.timeline-mobile-summary__item span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.notice-banner,
.empty-state,
.empty-card {
    padding: 1rem;
    border-radius: 20px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.notice-banner--danger {
    background: rgba(198, 71, 71, 0.12);
    color: var(--danger);
    border-color: rgba(198, 71, 71, 0.18);
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.flash-region {
    position: fixed;
    inset-block-start: 1rem;
    inset-inline: 0;
    display: grid;
    justify-items: center;
    padding-inline: 1rem;
    pointer-events: none;
    z-index: 30;
}

.flash {
    width: min(34rem, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-dark);
    color: #fff;
    pointer-events: auto;
    box-shadow: var(--shadow);
}

.flash--success {
    border-color: rgba(63, 211, 178, 0.3);
}

.flash--danger {
    border-color: rgba(255, 123, 123, 0.3);
}

.flash__close,
.modal-close {
    width: auto;
    min-height: 0;
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
    cursor: pointer;
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
}

.modal-shell {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(4, 11, 18, 0.52);
    backdrop-filter: blur(10px);
    z-index: 40;
}

.modal-card {
    width: min(620px, 100%);
    max-height: calc(100vh - 3rem);
    overflow: auto;
    padding: 1.25rem;
}

.modal-card--wide {
    width: min(1220px, 100%);
}

.modal-card--image {
    width: min(960px, 100%);
    padding: 0.8rem;
    background: rgba(10, 18, 32, 0.86);
}

.image-viewer {
    position: relative;
    display: grid;
    place-items: center;
}

.image-viewer img {
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    object-fit: contain;
    border-radius: 22px;
}

.image-viewer__close {
    position: absolute;
    inset-inline-end: 0.45rem;
    inset-block-start: 0.45rem;
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
}

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

.stat-card {
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
}

.stat-card strong {
    font-size: 1.5rem;
}

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

.admin-section {
    padding: 1.1rem;
}

.admin-section--full {
    margin-top: 1rem;
}

.admin-section .section-title {
    margin-bottom: 0.7rem;
}

.admin-form > h4 {
    margin: 0;
    font-size: 1rem;
}

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

.admin-section--compact {
    padding: 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
}

.admin-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-item {
    display: grid;
    gap: 0.85rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
}

.admin-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-thumb {
    width: 100%;
    max-width: 14rem;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.admin-thumb--logo {
    max-width: 8rem;
    aspect-ratio: 1;
}

.loading-state {
    min-height: 12rem;
    border-radius: 22px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.12) 40%,
        rgba(255, 255, 255, 0.04) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite linear;
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

@media (min-width: 1280px) {
    .workspace {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    }

    #hall-detail .detail-card {
        position: sticky;
        top: 0.75rem;
    }
}

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

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

    #hall-detail .booking-form--inline,
    #hall-detail .booking-form--inline.booking-form--admin {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #hall-detail .booking-form__submit {
        grid-column: 1 / -1;
    }

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

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

@media (max-width: 960px) {
    .app-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .header-group,
    .header-group:last-child {
        justify-content: center;
    }

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

@media (max-width: 767px) {
    .app-page {
        padding: 16px;
    }

    .mobile-view-switch {
        position: sticky;
        top: 0.4rem;
        z-index: 20;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        margin-bottom: 0.8rem;
        padding: 0.3rem;
        border-radius: 18px;
        background: var(--app-bg-soft);
        border: 1px solid var(--line);
        backdrop-filter: blur(10px);
    }

    .workspace {
        display: block;
    }

    .workspace[data-mobile-view="grid"] .workspace-panel--detail {
        display: none;
    }

    .workspace[data-mobile-view="detail"] .workspace-panel--grid {
        display: none;
    }

    .language-grid,
    .timeline-filter,
    #hall-detail .timeline-filter,
    .hall-filters {
        grid-template-columns: 1fr;
    }

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

    #hall-detail .detail-hero {
        grid-template-columns: 1fr;
    }

    #hall-detail .detail-hero__media {
        max-width: 100%;
        min-height: 200px;
    }

    #hall-detail .booking-form--inline,
    #hall-detail .booking-form--inline.booking-form--admin {
        grid-template-columns: 1fr;
    }

    #hall-detail .booking-form__submit {
        position: sticky;
        inset-block-end: 0;
        z-index: 2;
    }

    #hall-detail .timeline-scroll__content {
        --timeline-min-width: 760px;
    }

    #hall-detail .timeline-track {
        min-height: 220px;
    }

    #hall-detail .timeline-ruler__label {
        font-size: 0.72rem;
    }

    #hall-detail .timeline-legend {
        display: none;
    }

    .timeline-mobile-summary {
        display: grid;
        gap: 0.55rem;
    }

    .modal-shell {
        padding: 0.7rem;
    }

    .modal-card,
    .modal-card--wide {
        width: 100%;
        max-height: calc(100dvh - 1.4rem);
        padding: 1rem;
        border-radius: 18px;
    }

    .modal-card--image {
        padding: 0.65rem;
    }

    .image-viewer img {
        max-height: calc(100dvh - 4rem);
    }

    .admin-section {
        padding: 0.95rem;
    }

    .admin-item__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-thumb {
        max-width: 100%;
    }

    .hall-services-panel {
        padding: 0.65rem 0.72rem;
    }

    .header-btn--floating {
        inset-inline-end: 1rem;
        inset-block-end: 1rem;
        width: 3rem;
        min-width: 3rem;
        height: 3rem;
        min-height: 3rem;
    }
}
