:root {
    color-scheme: light;
    --bg: #fff2ec;
    --card: rgba(255, 255, 255, 0.9);
    --ink: #111111;
    --muted: #6e5d58;
    --brand: #ff4b13;
    --brand-2: #e03000;
    --brand-dark: #7a2b1f;
    --pwc-brown: #673c38;
    --border: rgba(69, 38, 32, 0.12);
    --border-strong: rgba(255, 75, 19, 0.3);
    --ok: #047857;
    --danger: #b91c1c;
    --shadow: 0 24px 70px rgba(51, 33, 22, 0.14);
    --shadow-soft: 0 12px 30px rgba(51, 33, 22, 0.08);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.94), transparent 24rem),
        radial-gradient(circle at 90% 6%, rgba(255, 178, 139, 0.55), transparent 30rem),
        linear-gradient(135deg, #fff9f6 0%, #fff1ec 48%, #ffe0d3 100%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.page {
    position: relative;
    width: min(1160px, 100%);
    margin: 0 auto;
    padding: 14px 14px 28px;
}

.page-wide {
    width: min(1540px, 100%);
}

.brand-hero {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 2px 0 12px;
}

.brand-hero img {
    display: block;
    height: auto;
    max-width: 132px;
    width: 24vw;
}

.language-switcher {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin: -4px 0 10px;
}

.language-switcher label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    margin: 0;
}

.language-switcher select {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    font-size: 0.78rem;
    min-height: 32px;
    padding: 5px 28px 5px 10px;
    width: auto;
}

.hero,
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero {
    padding: 28px;
    margin-bottom: 18px;
}

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

.registration-closed-card {
    align-items: center;
    display: grid;
    justify-items: center;
    margin: 18px auto;
    max-width: 720px;
    padding: 42px 24px;
    text-align: center;
}

.registration-closed-card h1 {
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    margin-bottom: 8px;
}

.registration-closed-icon {
    align-items: center;
    background: #ecfdf5;
    border: 1px solid rgba(4, 120, 87, 0.2);
    border-radius: 999px;
    color: var(--ok);
    display: inline-flex;
    font-size: 1.4rem;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    margin-bottom: 14px;
    width: 44px;
}

.closed-lookup-form {
    margin-top: 24px;
    max-width: 520px;
    text-align: left;
    width: 100%;
}

.closed-lookup-row {
    display: flex;
    gap: 10px;
}

.closed-lookup-row input {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.closed-lookup-result {
    background: #fff7ed;
    border: 1px solid rgba(216, 86, 4, 0.2);
    border-radius: 18px;
    display: grid;
    gap: 14px;
    margin-top: 22px;
    max-width: 520px;
    padding: 16px;
    text-align: left;
    width: 100%;
}

.closed-lookup-result.is-error {
    background: #fef2f2;
    border-color: rgba(185, 28, 28, 0.18);
    color: var(--danger);
    font-weight: 800;
}

.closed-lookup-result span {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.closed-lookup-result strong {
    color: var(--text);
}

.closed-lookup-result ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.card::before {
    background: linear-gradient(90deg, var(--brand), transparent);
    border-radius: 999px;
    content: "";
    height: 3px;
    left: 18px;
    position: absolute;
    right: 58%;
    top: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.admin-tabs-bar {
    align-items: center;
    border-radius: 14px;
    min-height: 46px;
    padding: 6px 8px 6px 12px;
}

.admin-brand {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 9px;
    min-width: 0;
    white-space: nowrap;
}

.admin-brand img {
    display: block;
    height: 26px;
    object-fit: contain;
    width: 54px;
}

.admin-brand-kicker {
    background: #fff7ed;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--brand-dark);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 4px 7px;
    text-transform: uppercase;
}

.admin-brand strong {
    color: #1b1219;
    font-size: 0.98rem;
    letter-spacing: -0.03em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-brand span:not(.admin-brand-kicker) {
    color: var(--muted);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-tabs {
    align-items: center;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--border);
    border-radius: 12px;
    flex: 0 0 auto;
    gap: 3px;
    padding: 3px;
}

.admin-tabs .button {
    border: 0;
    border-radius: 9px;
    box-shadow: none;
    flex: 0 0 auto;
    font-size: 0.76rem;
    line-height: 1;
    min-height: 30px;
    padding: 8px 10px;
    width: auto;
}

.admin-tabs .button.secondary {
    background: transparent;
    color: #6c3a14;
}

.admin-tabs .button.secondary:hover,
.admin-tabs .button.secondary.is-active {
    background: #fff7ed;
    color: var(--brand-dark);
    transform: none;
}

.admin-tabs .button.danger {
    background: #dc2626;
    color: #fff;
}

h1,
h2,
h3 {
    color: #1b1219;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0 0 12px;
}

h1 {
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    margin-bottom: 2px;
}

h2 {
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    margin-bottom: 4px;
}

p {
    margin: 0 0 8px;
}

.muted {
    color: var(--muted);
}

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

.form-step {
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.form-step.is-separated {
    border-top: 3px solid rgba(216, 86, 4, 0.28);
    margin-top: 22px;
    position: relative;
}

.form-step.is-separated::before {
    background: linear-gradient(90deg, transparent, rgba(216, 86, 4, 0.24), transparent);
    content: "";
    height: 1px;
    left: 18px;
    position: absolute;
    right: 18px;
    top: -13px;
}

.step-title {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.step-title > span {
    align-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 900;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.segmented-control {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: grid;
    gap: 5px;
    grid-template-columns: 1fr 1fr;
    padding: 5px;
}

.segmented-control label {
    margin: 0;
}

.segmented-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented-control span {
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-weight: 900;
    justify-content: center;
    min-height: 52px;
    padding: 8px 10px;
}

.segmented-control span strong {
    color: inherit;
    font-size: 0.84rem;
    line-height: 1.1;
}

.segmented-control span small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.2;
    margin-top: 3px;
}

.segmented-control input:checked + span {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 10px 22px rgba(216, 86, 4, 0.16);
}

.segmented-control input:checked + span small {
    color: rgba(255, 255, 255, 0.9);
}

.arrival-day-step.is-locked .segmented-control label {
    cursor: not-allowed;
}

.arrival-day-step.is-locked .segmented-control span {
    cursor: not-allowed;
}

.arrival-day-step.is-locked .segmented-control input:not(:checked) + span {
    opacity: 0.45;
}

.arrival-day-lock {
    background: #f0fdf4;
    border: 1px solid rgba(22, 163, 74, 0.28);
    border-radius: 12px;
    color: #166534;
    font-weight: 900;
    margin-top: 8px;
    padding: 8px 10px;
}

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

.choice-separator {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 0.78rem;
    font-weight: 900;
    gap: 12px;
    justify-content: center;
    letter-spacing: 0.12em;
    margin: 4px 0 12px;
    text-transform: uppercase;
}

.choice-separator::before,
.choice-separator::after {
    background: var(--border);
    content: "";
    flex: 1 1 0;
    height: 1px;
    max-width: 180px;
}

.choice-separator span {
    background: #fff7ed;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
}

.choice-separator[hidden],
.room-choice-panel[hidden] {
    display: none !important;
}

.choice-panel {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
}

.choice-panel.is-active {
    border-color: var(--brand);
    box-shadow: 0 14px 32px rgba(216, 86, 4, 0.12);
}

.room-options-fieldset {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.room-options-step.is-disabled .choice-panel,
.room-options-step.is-disabled .room-choice-panel {
    opacity: 0.56;
}

.room-options-step.is-disabled .choice-panel {
    box-shadow: none;
}

.room-options-lock {
    color: var(--danger);
    font-weight: 800;
    margin-bottom: 10px;
}

.room-system-roommate-notice {
    background: rgba(255, 247, 237, 0.82);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    color: #6c3a14;
    font-weight: 800;
    margin: 10px 0 0;
    padding: 9px 11px;
}

.choice-panel-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.choice-panel-header h3 {
    margin-bottom: 0;
}

.room-choice-panel {
    margin-top: 12px;
}

.room-filter-panel {
    align-items: center;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    padding: 7px;
}

.room-filter-toggle,
.room-filter-select {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    border-radius: 11px;
    display: inline-flex;
    gap: 8px;
    margin: 0;
    min-height: 38px;
    padding: 6px 9px;
}

.room-filter-toggle {
    cursor: pointer;
    flex: 0 0 auto;
}

.room-filter-toggle input {
    accent-color: var(--brand);
    flex: 0 0 auto;
    min-height: auto;
    padding: 0;
    width: auto;
}

.room-filter-toggle span,
.room-filter-select span {
    color: #382533;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.room-filter-select {
    flex: 1 1 180px;
}

.room-filter-select select {
    border-radius: 9px;
    font-size: 0.82rem;
    min-height: 34px;
    padding: 6px 30px 6px 8px;
}

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

.room-tile-pagination,
.suggestion-pagination {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 7px;
}

.public-room-tile {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: none;
    color: var(--ink);
    display: grid;
    gap: 8px;
    min-height: 130px;
    padding: 12px;
    text-align: left;
}

.public-room-tile[hidden] {
    display: none;
}

.public-room-tile.has-space {
    background: linear-gradient(145deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.9));
    border-color: rgba(4, 120, 87, 0.2);
}

.public-room-tile.is-full {
    background: rgba(243, 244, 246, 0.75);
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.72;
}

.public-room-tile.is-selected {
    border-color: var(--brand);
    box-shadow: 0 14px 32px rgba(255, 75, 19, 0.14);
}

.public-room-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.public-room-top strong {
    font-size: 1rem;
}

.public-room-top em {
    background: #ecfdf5;
    border: 1px solid rgba(4, 120, 87, 0.2);
    border-radius: 999px;
    color: var(--ok);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    padding: 5px 7px;
}

.public-room-tile.is-full .public-room-top em {
    background: #f3f4f6;
    border-color: rgba(117, 107, 117, 0.2);
    color: var(--muted);
}

.public-room-meta {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.public-room-people {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.person-chip {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 800;
    gap: 5px;
    max-width: 100%;
    padding: 5px 7px;
}

.person-chip b {
    color: var(--brand);
    font-size: 0.86rem;
    line-height: 1;
}

.person-chip.is-empty {
    color: var(--muted);
    font-weight: 700;
}

.capacity-field {
    display: grid;
    gap: 6px;
}

.capacity-picker {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: grid;
    gap: 7px;
    padding: 7px;
}

.capacity-option {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid transparent;
    border-radius: 13px;
    box-shadow: none;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    min-height: 54px;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
}

.capacity-option:hover {
    background: #fff;
    border-color: var(--border-strong);
    box-shadow: 0 10px 22px rgba(51, 33, 22, 0.08);
    transform: translateY(-1px);
}

.capacity-option.is-selected {
    background: linear-gradient(145deg, #fff7ed, #fff);
    border-color: var(--brand);
    box-shadow: 0 12px 28px rgba(216, 86, 4, 0.16);
}

.capacity-option strong {
    display: block;
    font-size: 0.98rem;
    letter-spacing: -0.03em;
}

.capacity-option small {
    color: var(--muted);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    margin-top: 2px;
}

.capacity-option em {
    align-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
    justify-content: center;
    min-width: 32px;
    padding: 6px 8px;
}

.field-hint {
    color: var(--muted);
    font-size: 0.78rem;
    margin: 0;
}

.recommendation-card {
    background: #ecfdf5;
    border: 1px solid rgba(4, 120, 87, 0.22);
    border-radius: 14px;
    color: #065f46;
    margin-top: 8px;
    padding: 10px 12px;
}

.recommendation-card strong,
.recommendation-card span {
    display: block;
}

.recommendation-card span {
    font-size: 0.82rem;
    margin-top: 3px;
}

.recommendation-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-top: 10px;
}

.recommendation-actions span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    margin: 0;
}

label {
    display: block;
    color: #382533;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 4px;
}

input,
select,
textarea,
button,
.button {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    font: inherit;
    padding: 8px 10px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

input,
select,
textarea {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--border-strong);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(216, 86, 4, 0.14);
    outline: none;
}

input.is-known-participant {
    background:
        linear-gradient(#f0fdf4, #f0fdf4) padding-box,
        linear-gradient(135deg, rgba(4, 120, 87, 0.86), rgba(16, 185, 129, 0.62)) border-box;
    border-color: transparent;
}

input.is-unknown-participant {
    background:
        linear-gradient(#fef2f2, #fef2f2) padding-box,
        linear-gradient(135deg, rgba(185, 28, 28, 0.86), rgba(248, 113, 113, 0.62)) border-box;
    border-color: transparent;
}

.email-check {
    font-weight: 800;
    margin-top: 6px;
}

.email-check.success {
    color: var(--ok);
}

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

.access-code-check {
    font-weight: 800;
}

.access-code-check.success {
    color: var(--ok);
}

.access-code-check.error {
    color: var(--danger);
}

.access-code-field {
    margin-top: 12px;
}

.access-code-grid {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(10, 38px);
    justify-content: start;
}

.access-code-input {
    aspect-ratio: 1;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(216, 86, 4, 0.42), rgba(255, 178, 107, 0.42)) border-box;
    border-color: transparent;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(51, 33, 22, 0.07);
    font-size: 1.08rem;
    font-weight: 900;
    min-height: 38px;
    padding: 0;
    text-align: center;
    text-transform: uppercase;
}

.access-code-input:focus {
    background:
        linear-gradient(#fff7ed, #fff) padding-box,
        linear-gradient(135deg, var(--brand), var(--brand-2)) border-box;
    box-shadow: 0 0 0 3px rgba(216, 86, 4, 0.16), 0 10px 22px rgba(216, 86, 4, 0.14);
}

.access-code-input.is-verified {
    background:
        linear-gradient(#f0fdf4, #fff) padding-box,
        linear-gradient(135deg, rgba(22, 163, 74, 0.72), rgba(34, 197, 94, 0.44)) border-box;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.12);
    color: var(--ok);
    -webkit-text-security: none;
}

.access-code-input.is-verified:focus {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16), 0 10px 22px rgba(22, 163, 74, 0.14);
}

.assignment-status {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--muted);
    display: grid;
    gap: 3px;
    margin-top: 8px;
    padding: 10px 12px;
}

.assignment-status strong {
    color: #1b1219;
}

.assignment-status span {
    font-size: 0.86rem;
}

.assignment-status.success {
    background: #f0fdf4;
    border-color: rgba(4, 120, 87, 0.26);
}

.assignment-status.success strong {
    color: var(--ok);
}

.assignment-status.no-room-state {
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    border-color: rgba(22, 163, 74, 0.45);
    box-shadow: 0 12px 26px rgba(22, 163, 74, 0.12);
    color: #166534;
}

.assignment-status.no-room-state strong {
    color: #15803d;
}

.cancel-guest-assignment {
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.24);
    font-weight: 900;
    margin-top: 8px;
    width: fit-content;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-color: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(216, 86, 4, 0.18);
}

button:hover,
.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(216, 86, 4, 0.3);
}

button:active,
.button:active {
    transform: translateY(0);
}

.button.secondary,
button.secondary {
    background: rgba(255, 255, 255, 0.86);
    border-color: var(--border);
    color: var(--brand-dark);
    box-shadow: none;
}

.button.danger,
button.danger {
    background: linear-gradient(135deg, #dc2626, var(--danger));
    border-color: var(--danger);
}

.capacity-picker .capacity-option {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid transparent;
    box-shadow: none;
    color: var(--ink);
    justify-content: space-between;
    text-align: left;
}

.capacity-picker .capacity-option:hover {
    background: #fff;
    border-color: var(--border-strong);
    box-shadow: 0 10px 22px rgba(51, 33, 22, 0.08);
}

.capacity-picker .capacity-option.is-selected {
    background: linear-gradient(145deg, #fff7ed, #fff);
    border-color: var(--brand);
    box-shadow: 0 12px 28px rgba(216, 86, 4, 0.16);
}

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

.actions > * {
    width: auto;
}

.assignment-actions {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.assignment-actions form {
    margin: 0;
}

.assignment-actions .actions {
    flex-wrap: nowrap;
}

.assignment-actions select {
    min-width: 220px;
}

.assignment-actions button {
    white-space: nowrap;
    width: auto;
}

.assignments-filters {
    margin-bottom: 10px;
}

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

.alert {
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 8px;
    padding: 9px 11px;
}

.alert.success {
    background: #ecfdf5;
    border-color: rgba(4, 120, 87, 0.18);
    color: var(--ok);
}

.alert.error {
    background: #fef2f2;
    border-color: rgba(185, 28, 28, 0.18);
    color: var(--danger);
}

.table-wrap {
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 720px;
}

.page-wide table {
    min-width: 1320px;
}

.page-wide .assignments-table {
    min-width: 1180px;
}

th,
td {
    border-bottom: 1px solid var(--border);
    padding: 8px 9px;
    text-align: left;
    vertical-align: top;
}

th {
    background: rgba(255, 247, 237, 0.78);
    color: #6c3a14;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

tbody tr {
    background: rgba(255, 255, 255, 0.48);
}

tbody tr:hover {
    background: rgba(255, 247, 237, 0.8);
}

.stat {
    background: linear-gradient(145deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.72));
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 12px;
}

.stat strong {
    display: block;
    font-size: 1.7rem;
    letter-spacing: -0.05em;
}

.admin-section-header,
.section-title {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.admin-section-header {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 237, 0.82));
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 8px;
    padding: 10px 12px;
}

.admin-section-header .button {
    flex: 0 0 auto;
}

.eyebrow {
    align-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(216, 86, 4, 0.18);
    color: #fff;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 7px;
    padding: 6px 9px;
    text-transform: uppercase;
}

.metric-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-bottom: 8px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: none;
    padding: 9px 11px;
}

.metric-card span {
    color: var(--muted);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.metric-card strong {
    display: block;
    font-size: 1.45rem;
    letter-spacing: -0.06em;
    line-height: 1;
}

.metric-card small {
    color: var(--muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    margin-top: 5px;
}

.room-capacity-metrics {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.admin-split {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.65fr);
}

.room-form-card {
    position: sticky;
    top: 10px;
}

.employee-admin-stack .room-form-card {
    position: static;
}

.room-admin-stack .room-form-card {
    position: static;
}

.employee-admin-stack #employeeForm {
    align-items: end;
    display: grid;
    gap: 8px 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-admin-stack #employeeForm p {
    margin: 0;
}

.employee-admin-stack #employeeForm .switch-row {
    grid-column: 1 / -1;
    margin: 0;
}

.employee-admin-stack #employeeSubmitButton {
    grid-column: 1 / -1;
    justify-self: end;
    min-width: 190px;
    width: auto;
}

.export-form {
    display: grid;
    gap: 14px;
}

.export-dataset-grid,
.export-filter-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.export-dataset-card {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 12px;
}

.export-dataset-card input {
    accent-color: var(--brand);
    flex: 0 0 auto;
    margin-top: 4px;
    width: auto;
}

.export-dataset-card strong,
.export-dataset-card small {
    display: block;
}

.export-dataset-card small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 3px;
}

.export-dataset-card.is-selected {
    border-color: var(--brand);
    box-shadow: 0 14px 32px rgba(216, 86, 4, 0.12);
}

.export-filter-grid p {
    margin: 0;
}

.export-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.export-actions .button,
.export-actions button {
    width: auto;
}

.bulk-room-box {
    border-top: 1px solid var(--border);
    margin-top: 12px;
    padding-top: 12px;
}

.hotel-room-schema {
    background: rgba(255, 247, 237, 0.55);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: grid;
    gap: 8px;
    margin: 8px 0;
    padding: 10px;
}

.hotel-room-schema p {
    margin: 0;
}

.collapsible-admin-panel {
    display: grid;
    gap: 10px;
}

.collapsible-admin-header {
    align-items: center;
    background: rgba(255, 255, 255, 0.76);
    border-color: var(--border);
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    text-align: left;
}

.collapsible-admin-header h2 {
    margin-bottom: 0;
}

.collapsible-admin-header > span {
    background: #fff7ed;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--brand-dark);
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 5px 10px;
}

.collapsible-admin-panel.is-open > .collapsible-admin-header {
    border-color: var(--brand);
    box-shadow: 0 14px 32px rgba(216, 86, 4, 0.12);
}

.collapsible-admin-body {
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.bulk-room-form textarea {
    min-height: 74px;
}

.compact {
    border-radius: 10px;
    font-size: 0.78rem;
    padding: 6px 9px;
    width: auto;
}

.switch-row {
    align-items: flex-start;
    background: rgba(255, 247, 237, 0.72);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    display: flex;
    gap: 8px;
    margin: 2px 0 8px;
    padding: 8px 10px;
}

.switch-row input {
    accent-color: var(--brand);
    flex: 0 0 auto;
    margin-top: 4px;
    width: auto;
}

.switch-row small {
    color: var(--muted);
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
}

.pill {
    align-items: center;
    background: #fff7ed;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--brand-dark);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    padding: 5px 7px;
}

.room-link-tag {
    align-items: center;
    background: #fff7ed;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--brand-dark);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    padding: 5px 8px;
    text-decoration: none;
    white-space: nowrap;
}

.room-link-tag:hover,
.room-link-tag:focus {
    background: #fff;
    box-shadow: 0 8px 18px rgba(216, 86, 4, 0.14);
    color: var(--brand-dark);
}

.pill.success {
    background: #ecfdf5;
    border-color: rgba(4, 120, 87, 0.2);
    color: var(--ok);
}

.muted-pill {
    background: #f3f4f6;
    border-color: rgba(117, 107, 117, 0.2);
    color: var(--muted);
}

.room-list {
    display: grid;
    gap: 7px;
}

.room-list.is-tile-view {
    gap: 11px;
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}

.room-admin-filters {
    background: rgba(255, 247, 237, 0.58);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin: 10px 0;
    padding: 10px;
}

.room-admin-filter-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.room-admin-filter-actions {
    justify-content: flex-end;
}

.room-admin-filter-actions .button,
.room-admin-filter-actions button {
    width: auto;
}

.room-list-toolbar {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin: 2px 0 8px;
}

.room-list-toolbar > span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.room-view-toggle {
    background: rgba(255, 247, 237, 0.76);
    border: 1px solid var(--border);
    border-radius: 999px;
    display: inline-flex;
    gap: 2px;
    padding: 3px;
}

.room-view-toggle a {
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    padding: 5px 9px;
    text-decoration: none;
}

.room-view-toggle a.is-active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
}

.pagination {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-top: 10px;
}

.pagination-pages {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.pagination-size-form {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
    width: auto;
}

.pagination-size-form label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    margin: 0;
}

.pagination-size-form select {
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 900;
    min-height: 30px;
    padding: 4px 26px 4px 8px;
    width: auto;
}

.pagination-link,
.pagination-ellipsis {
    align-items: center;
    border-radius: 9px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    min-width: 30px;
    padding: 0 8px;
    text-decoration: none;
    width: auto;
}

.pagination-link {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    color: var(--brand-dark);
}

.pagination-link.is-active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-color: transparent;
    color: #fff;
}

.pagination-ellipsis {
    color: var(--muted);
}

.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.room-item {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: none;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1.35fr) minmax(140px, 0.65fr) auto;
    padding: 9px 10px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.room-list.is-tile-view .room-item {
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(145deg, rgba(216, 86, 4, 0.55), rgba(177, 42, 91, 0.24)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(51, 33, 22, 0.1);
    gap: 8px;
    grid-template-columns: 1fr;
    overflow: hidden;
    padding: 8px;
    position: relative;
}

.room-list.is-tile-view .room-item::before {
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
    bottom: 10px;
    border-radius: 999px;
    content: "";
    left: 0;
    position: absolute;
    top: 10px;
    width: 4px;
}

.room-list.is-tile-view .room-item:nth-child(even) {
    background:
        linear-gradient(#fffaf4, #fff) padding-box,
        linear-gradient(145deg, rgba(177, 42, 91, 0.45), rgba(216, 86, 4, 0.24)) border-box;
}

.room-list.is-tile-view .room-item:hover {
    box-shadow: 0 16px 34px rgba(51, 33, 22, 0.16);
}

.room-list.is-tile-view .room-item.is-inactive {
    background:
        linear-gradient(#f8f6f3, #fff) padding-box,
        linear-gradient(145deg, rgba(117, 107, 117, 0.34), rgba(32, 23, 31, 0.12)) border-box;
}

.room-list.is-tile-view .room-item.is-inactive::before {
    background: #a8a0a8;
}

.room-list.is-tile-view .room-item-main {
    align-items: stretch;
    grid-template-columns: 1fr;
}

.room-list.is-tile-view .room-number {
    min-height: 44px;
    min-width: 0;
}

.room-list.is-tile-view .room-number strong {
    font-size: 1.05rem;
}

.room-list.is-tile-view .room-meta {
    gap: 4px;
    margin-top: 6px;
}

.room-list.is-tile-view .room-meta .muted-pill {
    display: none;
}

.room-list.is-tile-view .room-meta span,
.room-list.is-tile-view .room-meta .pill {
    font-size: 0.68rem;
}

.room-list.is-tile-view .room-item-main .muted {
    display: none;
}

.room-list.is-tile-view .room-expand-hint {
    display: none;
}

.room-list.is-tile-view .occupancy-label {
    margin-bottom: 4px;
}

.room-list.is-tile-view .occupancy-label span,
.room-list.is-tile-view .occupancy-label strong {
    font-size: 0.72rem;
}

.room-list.is-tile-view .room-actions {
    justify-content: stretch;
}

.room-list.is-tile-view .room-actions > *,
.room-list.is-tile-view .room-actions button {
    flex: 1 1 100%;
    width: 100%;
}

.room-list.is-tile-view .room-occupants-inner {
    padding: 8px;
}

.room-list.is-tile-view .room-occupants-panel {
    display: none;
}

.modal-backdrop {
    align-items: center;
    background: rgba(27, 18, 25, 0.42);
    display: flex;
    bottom: 0;
    left: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    right: 0;
    top: 0;
    width: 100vw;
    z-index: 80;
}

.modal-backdrop[hidden] {
    display: none;
}

.has-modal-open {
    overflow: hidden;
}

.modal-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(27, 18, 25, 0.26);
    max-height: min(86vh, 760px);
    max-width: 720px;
    overflow: auto;
    padding: 18px;
    position: relative;
    width: min(100%, 720px);
}

.employee-assign-modal {
    max-width: 820px;
    width: min(100%, 820px);
}

.employee-assign-recommendation {
    background: rgba(255, 247, 237, 0.72);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: grid;
    gap: 3px;
    margin: 10px 0;
    padding: 10px 12px;
}

.employee-assign-recommendation strong,
.employee-assign-recommendation span {
    display: block;
}

.employee-assign-recommendation span {
    color: var(--muted);
    font-size: 0.84rem;
}

.employee-assign-actions {
    justify-content: flex-end;
    margin-top: 10px;
}

.modal-close {
    align-items: center;
    background: rgba(32, 23, 31, 0.06);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--brand-dark);
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 32px;
}

.room-detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.room-detail-description {
    background: rgba(255, 247, 237, 0.66);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 10px;
}

.room-item:hover {
    border-color: var(--border-strong);
    box-shadow: 0 10px 22px rgba(51, 33, 22, 0.08);
    transform: translateY(-1px);
}

.room-item.is-inactive {
    opacity: 0.72;
}

.room-item.is-expanded {
    border-color: var(--border-strong);
    box-shadow: 0 16px 34px rgba(51, 33, 22, 0.1);
}

.room-item-main {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
}

.room-number {
    align-items: center;
    background: linear-gradient(145deg, var(--brand), var(--brand-2));
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(216, 86, 4, 0.16);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 52px;
    min-width: 60px;
    padding: 7px;
}

.room-number span {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    opacity: 0.82;
    text-transform: uppercase;
}

.room-number strong {
    font-size: 1.15rem;
    letter-spacing: -0.04em;
}

.room-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 3px;
}

.room-meta span:not(.pill) {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.room-expand-hint {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    margin: 2px 0 0;
}

.room-person-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 5px 0 2px;
}

.occupancy-block {
    align-self: center;
}

.occupancy-label {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.occupancy-label span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.progress {
    background: rgba(32, 23, 31, 0.08);
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}

.progress span {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    border-radius: inherit;
    display: block;
    height: 100%;
}

.room-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.room-occupants-panel {
    grid-column: 1 / -1;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
}

.room-item.is-expanded .room-occupants-panel {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
}

.room-occupants-inner {
    background: rgba(255, 247, 237, 0.66);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
}

.compact-title {
    margin-bottom: 8px;
}

.room-occupant-list {
    display: grid;
    gap: 6px;
}

.room-occupant-row {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 8px 10px;
}

.room-occupant-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.room-occupant-actions form {
    margin: 0;
}

.room-occupant-actions button {
    width: auto;
}

.room-occupant-row strong,
.room-occupant-row span:not(.pill) {
    display: block;
}

.room-occupant-row strong {
    color: #1b1219;
    font-size: 0.9rem;
}

.room-occupant-row span:not(.pill) {
    color: var(--muted);
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.roommate-picker {
    margin: 24px 0;
    padding-top: 4px;
}

.search-box {
    margin: 12px 0 8px;
}

.search-box input {
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(216, 86, 4, 0.55), rgba(177, 42, 91, 0.35)) border-box;
    border: 1px solid transparent;
    padding-left: 14px;
}

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

.suggestion-card {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 22px rgba(51, 33, 22, 0.06);
    cursor: pointer;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.suggestion-card:hover {
    background: #fff;
    border-color: var(--border-strong);
    box-shadow: 0 16px 36px rgba(51, 33, 22, 0.12);
    transform: translateY(-1px);
}

.suggestion-card input {
    accent-color: var(--brand);
    flex: 0 0 auto;
    margin-top: 4px;
    width: auto;
}

.suggestion-card:has(input:checked) {
    background: linear-gradient(145deg, #fff7ed, #fff);
    border-color: var(--brand);
    box-shadow: 0 18px 38px rgba(216, 86, 4, 0.18);
}

.suggestion-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.suggestion-card.is-disabled:hover {
    border-color: var(--border);
    box-shadow: 0 10px 22px rgba(51, 33, 22, 0.06);
    transform: none;
}

.suggestion-card small {
    color: var(--muted);
    display: block;
    font-weight: 500;
}

.suggestion-card strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.suggestion-card .email-domain {
    opacity: 0.5;
}

.employee-search {
    margin-bottom: 10px;
}

.employee-filter-grid {
    background: rgba(255, 247, 237, 0.58);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 0 0 10px;
    padding: 10px;
}

.employee-filter-grid p {
    margin: 0;
}

#employeeRows tr.is-current-list-person td:first-child,
#employeeRows tr.is-current-list-person td:nth-child(2) {
    font-weight: 900;
}

.empty-state {
    background: rgba(255, 255, 255, 0.62);
    border: 1px dashed var(--border);
    border-radius: 20px;
    color: var(--muted);
    padding: 16px;
}

@media (max-width: 700px) {
    .page {
        padding: 8px 6px 24px;
        width: 100%;
    }

    .hero,
    .card {
        border-radius: 18px;
        box-shadow: 0 12px 34px rgba(51, 33, 22, 0.1);
        padding: 10px;
        width: 100%;
    }

    .brand-hero {
        margin: 0 0 8px;
    }

    .brand-hero img {
        max-width: 96px;
        width: 30vw;
    }

    .language-switcher {
        justify-content: center;
        margin: -2px 0 8px;
    }

    .form-step {
        border-radius: 14px;
        margin-bottom: 8px;
        padding: 10px;
    }

    .step-title {
        gap: 8px;
        margin-bottom: 10px;
    }

    .step-title > span {
        height: 24px;
        width: 24px;
    }

    h2 {
        font-size: 1.08rem;
    }

    h3 {
        font-size: 1rem;
    }

    .muted,
    .field-hint {
        font-size: 0.82rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    input,
    select,
    textarea,
    button,
    .button {
        min-height: 44px;
        padding: 10px 12px;
    }

    .topbar {
        padding: 6px;
    }

    .admin-tabs-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-brand {
        padding: 2px 4px;
    }

    .admin-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        width: 100%;
    }

    .admin-tabs .button {
        white-space: nowrap;
        width: auto;
    }

    .admin-section-header,
    .section-title {
        flex-direction: column;
    }

    .admin-section-header .button,
    .section-title .button,
    .section-title button {
        width: 100%;
    }

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

    .access-code-grid {
        gap: 3px;
        grid-template-columns: repeat(10, 28px);
    }

    .access-code-input {
        border-radius: 8px;
        font-size: 0.88rem;
        min-height: 28px;
    }

    .export-dataset-grid,
    .export-filter-grid,
    .employee-filter-grid {
        grid-template-columns: 1fr;
    }

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

    .export-actions .button,
    .export-actions button {
        width: 100%;
    }

    .employee-admin-stack #employeeForm {
        grid-template-columns: 1fr;
    }

    .employee-admin-stack #employeeSubmitButton {
        justify-self: stretch;
        width: 100%;
    }

    .choice-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .choice-panel {
        border-radius: 14px;
        padding: 10px;
        width: 100%;
    }

    .choice-panel-header {
        margin-bottom: 6px;
    }

    .room-filter-panel {
        align-items: stretch;
        gap: 6px;
        padding: 6px;
    }

    .room-filter-toggle,
    .room-filter-select {
        width: 100%;
    }

    .room-filter-select {
        align-items: stretch;
        flex-direction: column;
    }

    .room-tile-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .public-room-tile {
        border-radius: 14px;
        min-height: 112px;
        padding: 10px;
    }

    .person-chip {
        overflow-wrap: anywhere;
    }

    .segmented-control {
        grid-template-columns: 1fr;
    }

    .capacity-picker {
        border-radius: 14px;
        gap: 6px;
        padding: 6px;
    }

    .capacity-option {
        min-height: 50px;
        padding: 9px;
    }

    .capacity-option strong {
        font-size: 0.95rem;
    }

    .capacity-option small {
        font-size: 0.74rem;
    }

    .search-box {
        margin: 10px 0 8px;
    }

    .suggestions {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 10px 0;
    }

    .suggestion-card {
        border-radius: 14px;
        gap: 10px;
        padding: 10px;
        width: 100%;
    }

    .suggestion-card span {
        min-width: 0;
    }

    .suggestion-card strong {
        display: block;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .recommendation-card,
    .empty-state {
        border-radius: 14px;
        padding: 10px;
    }

    .room-form-card {
        position: static;
    }

    .room-item {
        grid-template-columns: 1fr;
    }

    .room-actions {
        justify-content: stretch;
    }

    .room-actions > *,
    .room-actions button {
        width: 100%;
    }

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

    .pagination > .button,
    .pagination-size-form,
    .pagination-pages {
        width: 100%;
    }

    .pagination-size-form {
        justify-content: center;
    }

    .actions > * {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .page {
        padding-left: 4px;
        padding-right: 4px;
    }

    .card,
    .form-step,
    .choice-panel {
        border-radius: 12px;
    }
}
