:root {
    --bg: #efe6d8;
    --ink: #1f2530;
    --muted: #677386;
    --panel: rgba(255, 251, 245, 0.88);
    --panel-strong: rgba(255, 251, 245, 0.96);
    --line: rgba(31, 37, 48, 0.11);
    --emerald: #126b57;
    --blue: #225f86;
    --gold: #c7964b;
    --danger: #a24640;
    --warn: #b26b35;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow: 0 24px 60px rgba(31, 37, 48, 0.14);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(18, 107, 87, 0.16), transparent 26%),
        radial-gradient(circle at right 18%, rgba(199, 150, 75, 0.18), transparent 22%),
        linear-gradient(145deg, #ebdfce 0%, #f8f4ec 44%, #edf5f1 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(31, 37, 48, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 37, 48, 0.022) 1px, transparent 1px);
    background-size: 24px 24px;
}

.page-shell {
    position: relative;
    width: min(1380px, calc(100% - 28px));
    margin: 18px auto 32px;
}

.shell-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.shell-brand {
    min-width: 0;
}

.brand-mark {
    color: var(--ink);
    text-decoration: none;
    font: 700 clamp(2rem, 4vw, 3.1rem) / 1.05 "STZhongsong", "Songti SC", "SimSun", serif;
}

.brand-copy {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.session-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    min-height: 46px;
}

.panel,
.sub-panel,
.modal-card,
.table-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.panel { padding: 18px; }
.sub-panel,
.table-card { padding: 16px; }

.layout-grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.admin-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.admin-shell {
    display: grid;
    gap: 20px;
}

.admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 520px);
    gap: 20px;
    padding: 24px;
    background:
        linear-gradient(140deg, rgba(255, 251, 245, 0.96) 0%, rgba(247, 244, 238, 0.92) 42%, rgba(238, 246, 243, 0.96) 100%),
        radial-gradient(circle at top right, rgba(34, 95, 134, 0.12), transparent 28%);
}

.admin-hero-copy {
    display: grid;
    gap: 12px;
    align-content: start;
    position: relative;
    min-height: 132px;
    padding: 22px 24px;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(18, 107, 87, 0.14) 0%, rgba(255, 255, 255, 0.78) 46%, rgba(34, 95, 134, 0.08) 100%);
    border: 1px solid rgba(18, 107, 87, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.admin-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(31, 37, 48, 0.07);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-hero-copy::before {
    content: "";
    position: absolute;
    inset: auto -36px -56px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(18, 107, 87, 0.16) 0%, rgba(18, 107, 87, 0) 68%);
    pointer-events: none;
}

.admin-hero-copy::after {
    content: "";
    position: absolute;
    left: 24px;
    bottom: 18px;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--emerald) 0%, rgba(34, 95, 134, 0.74) 100%);
}

.admin-hero-copy h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 3vw, 2.55rem);
    line-height: 1.08;
}

.user-hero-summary {
    position: relative;
    z-index: 1;
    max-width: 32ch;
    color: var(--muted);
    font-size: clamp(0.98rem, 0.86rem + 0.34vw, 1.08rem);
    line-height: 1.8;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-stat-card {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 132px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 37, 48, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-stat-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-stat-card strong {
    font: 700 clamp(2rem, 3vw, 2.7rem) / 1 "STZhongsong", "Songti SC", "SimSun", serif;
}

.admin-dashboard {
    grid-template-columns: 400px minmax(0, 1fr);
}

.admin-panel {
    padding: 22px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 251, 245, 0.94) 0%, rgba(252, 248, 241, 0.88) 100%);
}

.admin-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(18, 107, 87, 0.72) 0%, rgba(34, 95, 134, 0.4) 48%, rgba(34, 95, 134, 0) 100%);
}

.admin-form-panel {
    position: sticky;
    top: 18px;
}

.admin-list-panel {
    min-width: 0;
    background:
        linear-gradient(180deg, rgba(255, 251, 245, 0.95) 0%, rgba(251, 247, 240, 0.9) 100%);
}

.admin-section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.admin-section-head h3 {
    font-size: 1.42rem;
}

.admin-backlink {
    white-space: nowrap;
}

.admin-form-grid,
.admin-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-toolbar {
    justify-content: flex-start;
    align-items: center;
}

.admin-action-row {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
}

.admin-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 18px;
    background: rgba(31, 37, 48, 0.06);
    font-size: 1.05rem;
    white-space: nowrap;
}

.stack {
    display: grid;
    gap: 18px;
}

.hero-strip {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(420px, 2fr);
    gap: 18px;
    margin-bottom: 20px;
}

.summary-row,
.filter-row,
.action-row,
.legend-row,
.field-row,
.grid-auto {
    display: grid;
    gap: 12px;
}

.summary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hero-strip > .panel {
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-strip > .panel > .summary-row,
.hero-strip > .panel > .date-filter-card {
    width: 100%;
}

h1, h2, h3 {
    margin: 0;
    font-family: "STZhongsong", "Songti SC", "SimSun", serif;
}

h2 { font-size: clamp(1.55rem, 2.1vw, 2rem); }
h3 { font-size: 1.08rem; }

p { margin: 0; }
.muted, .note, .empty-copy { color: var(--muted); line-height: 1.7; }

.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 66px;
    padding: 12px 14px;
    background: var(--panel-strong);
    border: 1px solid rgba(31, 37, 48, 0.08);
    border-radius: 18px;
}

.stat-card span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.stat-card strong {
    font-size: 21px;
    white-space: nowrap;
}

.date-filter-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 251, 245, 0.98) 0%, rgba(248, 244, 237, 0.92) 58%, rgba(237, 245, 241, 0.98) 100%);
}

.date-filter-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(18, 107, 87, 0.72) 0%, rgba(34, 95, 134, 0.48) 54%, rgba(34, 95, 134, 0) 100%);
}

.date-filter-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 66px;
}

.date-filter-summary {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 42px;
    overflow: hidden;
}

.date-filter-text,
.date-filter-display {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    color: var(--ink);
    white-space: nowrap;
}

.date-filter-text {
    font: 700 20px / 1 "STZhongsong", "Songti SC", "SimSun", serif;
    letter-spacing: 0.01em;
}

.date-filter-display {
    font: 700 22px / 1 "STZhongsong", "Songti SC", "SimSun", serif;
}

.date-filter-relative {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(18, 107, 87, 0.12);
    color: var(--emerald);
    font-size: 13px;
    font-weight: 700;
}

.date-filter-weekday {
    color: var(--blue);
}

.date-filter-trigger {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-height: 46px;
}

.calendar-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(18, 107, 87, 0.12);
    background:
        linear-gradient(135deg, rgba(18, 107, 87, 0.12) 0%, rgba(34, 95, 134, 0.09) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.calendar-launch:hover {
    transform: translateY(-1px);
    border-color: rgba(18, 107, 87, 0.2);
    box-shadow: 0 12px 24px rgba(31, 37, 48, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.calendar-launch:focus-within {
    border-color: rgba(18, 107, 87, .45);
    box-shadow: 0 0 0 4px rgba(18, 107, 87, .12);
}

.calendar-launch-copy {
    display: inline-flex;
    align-items: center;
    pointer-events: none;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.date-filter-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    opacity: 0;
    border: 0;
    pointer-events: none;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

button,
.button-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
    transition: transform .18s ease, opacity .18s ease, background-color .18s ease;
}

button:hover,
.button-like:hover { transform: translateY(-1px); }

.tab,
.button,
.secondary-button,
.danger-button,
.ghost-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
}

.tab,
.secondary-button,
.ghost-button {
    background: rgba(31, 37, 48, 0.07);
    color: var(--ink);
}

.tab.is-active,
.button {
    color: #fff;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--blue) 100%);
}

.danger-button {
    color: #fff;
    background: linear-gradient(135deg, #b15750 0%, #943d39 100%);
}

button:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

input,
select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: var(--ink);
    font: inherit;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(31, 37, 48, 0.12);
    border-radius: 14px;
    outline: none;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 76px;
}

.password-toggle {
    position: absolute;
    top: 7px;
    right: 8px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.picker-trigger {
    width: 100%;
    min-height: 48px;
}

.booking-form-grid {
    align-items: start;
}

.booking-field {
    display: grid;
    gap: 10px;
    align-content: start;
}

.booking-field > label {
    margin-bottom: 0;
}

.field-required {
    color: var(--danger);
}

.resource-picker {
    display: grid;
    gap: 10px;
    align-content: start;
}

.resource-picker-standalone {
    grid-template-rows: auto auto 1fr;
}

.resource-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(18, 107, 87, 0.08);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.resource-toggle input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border-radius: 6px;
    accent-color: var(--emerald);
}

.resource-picker-standalone .resource-toggle {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 16px;
}

.resource-toggle.is-disabled {
    opacity: 0.56;
}

.resource-status {
    min-height: 24px;
}

.resource-status.is-warning {
    color: var(--warn);
}

.joint-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 34px;
    padding-top: 8px;
}

.joint-preview:empty {
    display: none;
}

.auth-form-stack {
    gap: 14px;
}

.joint-modal-card {
    width: min(1040px, 100%);
}

.joint-preview-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(18, 107, 87, 0.12);
    color: var(--emerald);
}

.joint-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.joint-column {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(31, 37, 48, 0.08);
}

.joint-column-selected {
    background: linear-gradient(180deg, rgba(238, 246, 243, 0.9) 0%, rgba(255, 255, 255, 0.76) 100%);
}

.joint-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.joint-bulk-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

.joint-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    align-content: start;
    min-height: 320px;
    max-height: min(56vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 107, 87, 0.34) rgba(31, 37, 48, 0.08);
    padding-right: 4px;
}

.joint-list::-webkit-scrollbar {
    width: 10px;
}

.joint-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(31, 37, 48, 0.06);
}

.joint-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(18, 107, 87, 0.34);
}

.joint-list > .empty-state {
    width: 100%;
}

.user-card-grid > .empty-state {
    grid-column: 1 / -1;
}

.joint-item {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 92px;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 18px;
    border: 1px solid rgba(31, 37, 48, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    display: flex;
    align-items: flex-start;
    text-align: left;
    font: inherit;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.joint-item:hover {
    transform: translateY(-1px);
    border-color: rgba(18, 107, 87, 0.18);
    box-shadow: 0 12px 20px rgba(31, 37, 48, 0.08);
}

.joint-item-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    width: auto;
    max-width: 100%;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

.joint-item.is-picked {
    border-color: rgba(18, 107, 87, 0.22);
    background: linear-gradient(180deg, rgba(235, 249, 245, 0.96) 0%, rgba(247, 252, 250, 0.92) 100%);
    box-shadow: 0 14px 24px rgba(18, 107, 87, 0.12);
}

.joint-item.is-picked .joint-item-name {
    color: var(--emerald);
}

select[multiple] {
    min-height: 124px;
    padding: 10px 12px;
}

input:focus,
select:focus {
    border-color: rgba(18, 107, 87, .45);
    box-shadow: 0 0 0 4px rgba(18, 107, 87, .12);
}

.info-box,
.empty-state {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(31, 37, 48, 0.08);
    background: rgba(255, 255, 255, 0.72);
    line-height: 1.68;
}

.info-box.warning { color: var(--warn); background: rgba(255, 244, 234, 0.94); border-color: rgba(178, 107, 53, 0.18); }
.info-box.error { color: var(--danger); background: rgba(255, 239, 237, 0.94); border-color: rgba(162, 70, 64, 0.18); }
.info-box.success { color: var(--emerald); background: rgba(235, 249, 245, 0.94); border-color: rgba(18, 107, 87, 0.18); }

.admin-feedback {
    min-height: 56px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill,
.chip,
.legend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    background: rgba(31, 37, 48, 0.06);
    border-radius: 999px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.cancelled { background: var(--danger); }

.room-grid { display: grid; gap: 16px; }
.room-card { container-type: inline-size; }

.room-head,
.table-head,
.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.room-metrics,
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-shell {
    margin-top: 16px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(31, 37, 48, 0.08);
}

.timeline-ruler {
    position: relative;
    height: 18px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.timeline-tick {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

.timeline-tick.is-start {
    left: 0 !important;
    transform: none;
}

.timeline-tick.is-end {
    left: 100% !important;
    transform: translateX(-100%);
}

.timeline {
    position: relative;
    min-height: 126px;
    border-radius: 20px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(31, 37, 48, 0.05) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%,
        linear-gradient(180deg, rgba(31, 37, 48, 0.04) 1px, transparent 1px);
}

.timeline-band {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1px solid rgba(184, 139, 66, 0.16);
    border-right: 1px solid rgba(184, 139, 66, 0.16);
    pointer-events: none;
    z-index: 0;
}

.timeline-band-label {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 248, 230, 0.88);
    color: rgba(140, 101, 28, 0.92);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.lunch-band {
    background:
        repeating-linear-gradient(
            135deg,
            rgba(244, 222, 176, 0.22) 0,
            rgba(244, 222, 176, 0.22) 12px,
            rgba(255, 246, 224, 0.32) 12px,
            rgba(255, 246, 224, 0.32) 24px
        );
}

.now-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--danger) 100%);
    box-shadow: 0 0 0 4px rgba(199, 150, 75, 0.12);
    z-index: 1;
}

.meeting-block {
    position: absolute;
    top: 26px;
    min-height: 64px;
    padding: 8px 10px 7px;
    border-radius: 18px;
    display: grid;
    gap: 3px;
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease;
    z-index: 2;
}

.meeting-block:hover {
    transform: translateY(-1px);
}

.meeting-block.tight {
    padding: 7px 8px 6px;
}

.meeting-block strong,
.meeting-block span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.meeting-block strong {
    font-size: 13px;
    line-height: 1.2;
}

.meeting-block span {
    font-size: 11px;
    line-height: 1.2;
    opacity: .94;
}

.room-foot {
    margin-top: 16px;
    display: grid;
    gap: 14px;
}

.slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slot {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(18, 107, 87, 0.08);
}

.table-list {
    display: grid;
    gap: 14px;
}

.user-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 20px);
}

.user-card {
    container-type: inline-size;
    position: relative;
    width: 100%;
    min-height: 148px;
    padding: clamp(18px, 3cqi, 22px);
    border: 1px solid rgba(31, 37, 48, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 243, 236, 0.96) 100%);
    box-shadow: 0 16px 28px rgba(31, 37, 48, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    overflow: hidden;
    transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
    animation: user-card-reveal .5s var(--ease-out) both;
    animation-delay: var(--user-card-delay, 0ms);
}

.user-card::before {
    content: "";
    position: absolute;
    inset: auto -38px -48px auto;
    width: 158px;
    height: 158px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(18, 107, 87, 0.14) 0%, rgba(18, 107, 87, 0) 70%);
    pointer-events: none;
}

.user-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(0deg, rgba(18, 107, 87, 0.03), rgba(18, 107, 87, 0.03));
}

.user-card:hover {
    transform: translateY(-4px);
    border-color: rgba(18, 107, 87, 0.24);
    box-shadow: 0 24px 36px rgba(31, 37, 48, 0.1);
}

.user-card:focus-visible {
    outline: 3px solid rgba(18, 107, 87, 0.22);
    outline-offset: 3px;
}

.user-card-topline,
.user-card-meta {
    position: relative;
    z-index: 1;
}

.user-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.user-copy-button {
    min-width: 58px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 37, 48, 0.08);
    box-shadow: 0 8px 18px rgba(31, 37, 48, 0.06);
}

.user-copy-button:hover {
    background: rgba(255, 255, 255, 0.92);
}

.user-card-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(1.14rem, 0.96rem + 1cqi, 1.44rem);
    font-weight: 800;
    line-height: 1.36;
    text-align: left;
    word-break: break-word;
}

.user-card-meta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(31, 37, 48, 0.08);
}

.user-card-meta-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.user-card-meta .admin-tag,
.user-card-meta .user-status {
    min-width: 0;
}

.user-status {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.user-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.user-status.is-active {
    color: var(--emerald);
}

.user-status.is-active .user-status-dot {
    background: var(--emerald);
    box-shadow: 0 0 0 4px rgba(18, 107, 87, 0.12);
}

.user-status.is-inactive {
    color: var(--danger);
}

.user-status.is-inactive .user-status-dot {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(162, 70, 64, 0.12);
}

@keyframes user-card-reveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-toast {
    position: fixed;
    top: clamp(80px, 10vh, 112px);
    left: 50%;
    z-index: 1400;
    min-width: 220px;
    max-width: min(88vw, 440px);
    padding: 14px 20px;
    border-radius: 20px;
    border: 1px solid rgba(18, 107, 87, 0.18);
    background:
        linear-gradient(180deg, rgba(235, 249, 245, 0.98) 0%, rgba(246, 252, 249, 0.96) 100%);
    box-shadow: 0 20px 40px rgba(31, 37, 48, 0.16);
    color: var(--emerald);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    backdrop-filter: blur(10px);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -20px) scale(0.96);
    transition: opacity .24s ease, transform .24s var(--ease-out);
    will-change: transform, opacity;
}

.floating-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.floating-toast.is-error {
    color: var(--danger);
    border-color: rgba(162, 70, 64, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 239, 237, 0.98) 0%, rgba(255, 246, 244, 0.96) 100%);
}

@container (max-width: 420px) {
    .user-card {
        min-height: 140px;
    }
}

@container (max-width: 340px) {
    .user-card-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .user-card-meta .user-copy-button {
        width: 100%;
        min-height: 40px;
    }
}

@media (max-width: 1320px) {
    .user-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .user-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.table-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 120px 120px;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 37, 48, 0.08);
}

.table-row strong,
.table-row span { overflow: hidden; text-overflow: ellipsis; }

.admin-record {
    display: grid;
    grid-template-columns: minmax(136px, 168px) minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.78) 0%, rgba(251, 248, 242, 0.9) 100%);
    border: 1px solid rgba(31, 37, 48, 0.08);
    box-shadow: 0 16px 24px rgba(31, 37, 48, 0.06);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-record:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 95, 134, 0.18);
    box-shadow: 0 24px 34px rgba(31, 37, 48, 0.1);
}

.admin-record-date,
.admin-record-main,
.admin-record-side {
    display: grid;
    gap: 6px;
    align-content: start;
    min-width: 0;
}

.admin-record-date strong,
.admin-record-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-record-date strong {
    font-size: 1.05rem;
}

.admin-record-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-record-subtitle {
    color: var(--muted);
    line-height: 1.68;
}

.admin-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-record-side {
    justify-items: end;
}

.admin-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.admin-tag.default {
    background: rgba(31, 37, 48, 0.07);
    color: var(--ink);
}

.admin-tag.primary {
    background: rgba(34, 95, 134, 0.14);
    color: var(--blue);
}

.admin-tag.success {
    background: rgba(18, 107, 87, 0.14);
    color: var(--emerald);
}

.admin-tag.warning {
    background: rgba(178, 107, 53, 0.14);
    color: var(--warn);
}

.admin-tag.danger {
    background: rgba(162, 70, 64, 0.14);
    color: var(--danger);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-upcoming { background: rgba(34, 95, 134, 0.14); color: var(--blue); }
.status-live { background: rgba(18, 107, 87, 0.14); color: var(--emerald); }
.status-past { background: rgba(174, 184, 195, 0.24); color: #6b7684; }
.status-cancelled { background: rgba(162, 70, 64, 0.14); color: var(--danger); }

.modal[hidden] { display: none; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(20, 24, 30, 0.34);
    backdrop-filter: blur(6px);
}

.modal-card {
    width: min(640px, 100%);
    padding: 20px;
}

.admin-viewport .modal-card {
    width: min(720px, 100%);
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(246, 243, 237, 0.94) 100%);
}

.user-modal-card {
    position: relative;
    overflow: hidden;
    gap: 20px;
}

.user-modal-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(18, 107, 87, 0.82) 0%, rgba(34, 95, 134, 0.52) 56%, rgba(34, 95, 134, 0) 100%);
}

.user-modal-head {
    align-items: center;
}

.user-modal-head-copy {
    display: grid;
    gap: 8px;
}


.detail-grid {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.detail-row span { color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

.login-shell {
    max-width: 520px;
    margin: 80px auto 0;
}

@container (max-width: 760px) {
    .room-head { flex-direction: column; }
}

@media (max-width: 1180px) {
    .hero-strip,
    .layout-grid,
    .admin-hero,
    .admin-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .page-shell { width: min(100% - 16px, 1380px); margin: 10px auto 22px; }
    .admin-hero { display: none; }
    .shell-brand { display: none; }
    .shell-head,
    .room-head,
    .table-head,
    .admin-section-head,
    .toolbar { flex-direction: column; align-items: stretch; }
    .stat-card-overview { display: none; }
    .summary-row,
    .field-row,
    .admin-stat-grid,
    .admin-form-grid,
    .admin-filter-grid,
    .admin-action-row,
    .joint-modal-grid,
    .user-card-grid,
    .table-row { grid-template-columns: 1fr; }
    .admin-record { grid-template-columns: 1fr; }
    .admin-record-side { justify-items: start; }
    .picker-trigger { width: 100%; }
    .resource-toggle { width: 100%; justify-content: center; }
    .joint-item {
        width: 100%;
        min-width: 0;
    }
    .timeline-ruler {
        font-size: 11px;
    }
}
