/* SGWEN HQ Portal — professional refinement layer, v2.2 */
:root {
    --orange: #ed9217;
    --orange-strong: #d87900;
    --orange-dark: #985600;
    --orange-soft: #fff0d2;
    --ink: #393a23;
    --ink-2: #4a4b2d;
    --ink-3: #606142;
    --paper: #fcfbf7;
    --surface-soft: #fffdf8;
    --cream: #fff8e9;
    --sand: #efe5ce;
    --line: #e4dccb;
    --line-strong: #d4c8af;
    --muted: #727363;
    --white: #fff;
    --danger: #a23434;
    --danger-soft: #fbe9e7;
    --success: #247152;
    --success-soft: #e5f4ed;
    --info: #345f87;
    --info-soft: #e8f0f7;
    --shadow-xs: 0 2px 8px rgba(57, 58, 35, .05);
    --shadow-sm: 0 10px 30px rgba(57, 58, 35, .08);
    --shadow: 0 24px 70px rgba(57, 58, 35, .14);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
}

html { scroll-padding-top: 100px; }
body {
    background:
        radial-gradient(circle at 100% 0, rgba(237, 146, 23, .035), transparent 30rem),
        var(--paper);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
::selection { color: var(--ink); background: #ffd48c; }
main:focus { outline: 0; }
.skip-link {
    position: fixed;
    inset: 12px auto auto 50%;
    z-index: 1000;
    transform: translate(-50%, -180%);
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    transition: transform .2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Header */
.site-header {
    border-bottom-color: rgba(212, 200, 175, .74);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .85);
}
.nav-wrap { min-height: 86px; }
.brand { gap: 13px; }
.brand img { filter: drop-shadow(0 4px 8px rgba(57, 58, 35, .08)); }
.brand span { font-weight: 900; letter-spacing: -.02em; }
.brand small { margin-top: 2px; font-weight: 600; }
.main-nav { gap: 4px; }
.main-nav > a {
    position: relative;
    padding: 9px 11px;
    font-weight: 600;
}
.main-nav > a.active::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 2px;
    left: 12px;
    height: 2px;
    border-radius: 10px;
    background: var(--orange);
}
.main-nav > a:hover,
.main-nav > a.active { background: transparent; color: var(--orange-dark); }
.nav-cta {
    margin-inline-start: 5px;
    border-radius: 999px !important;
    background: var(--ink) !important;
    box-shadow: 0 8px 22px rgba(57, 58, 35, .18);
}
.notification-link {
    width: 42px;
    height: 42px;
    display: grid !important;
    place-items: center;
    padding: 0 !important;
    border: 1px solid var(--line);
    border-radius: 50% !important;
    background: #fff;
}
.notification-link svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.notification-link b { top: -4px; left: -4px; border: 2px solid #fff; }
.user-menu summary {
    min-height: 48px;
    border-radius: 999px;
    padding: 5px 7px 5px 12px;
    box-shadow: var(--shadow-xs);
}
.user-menu summary .chevron {
    width: 15px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.7;
    transition: transform .2s ease;
}
.user-menu[open] summary .chevron { transform: rotate(180deg); }
.user-avatar { background: linear-gradient(135deg, #ffb13c, var(--orange)); box-shadow: inset 0 0 0 1px rgba(57, 58, 35, .08); }
.user-meta strong { font-size: 12px; }
.user-meta small { font-size: 10px; }
.user-menu-panel {
    top: calc(100% + 12px);
    width: 280px;
    padding: 10px;
    border-radius: 18px;
}
.user-menu-heading {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 9px 10px 12px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--line);
}
.user-menu-heading strong { font-size: 13px; }
.user-menu-heading small { overflow: hidden; color: var(--muted); direction: ltr; text-align: left; text-overflow: ellipsis; }
.user-menu-panel a,
.user-menu-panel button { font-weight: 600; }
.nav-toggle {
    width: 43px;
    height: 43px;
    place-items: center;
    gap: 5px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}
.nav-toggle span {
    width: 21px;
    height: 2px;
    display: block;
    border-radius: 3px;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons and common surfaces */
.btn {
    min-height: 44px;
    border-radius: 13px;
    padding: 11px 19px;
    font-weight: 700;
    line-height: 1.3;
}
.btn.primary {
    background: linear-gradient(135deg, #f5a021, var(--orange));
    color: #282915;
    box-shadow: 0 10px 25px rgba(237, 146, 23, .2);
}
.btn.primary:hover { background: linear-gradient(135deg, #ffad2d, #f0991d); }
.btn.ink { background: linear-gradient(135deg, var(--ink-2), var(--ink)); }
.btn.ghost-light { background: rgba(255, 255, 255, .8); }
.btn.small { min-height: 36px; }
.full-button { width: 100%; }
.text-action,
.table-action {
    border: 0;
    background: transparent;
    color: var(--orange-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.table-action {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    white-space: nowrap;
}
.table-action:hover { border-color: var(--orange); background: var(--orange-soft); }
.card {
    border-color: rgba(228, 220, 203, .92);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}
.card:hover { border-color: var(--line-strong); }
.card-heading { align-items: flex-start; }
.card-heading > div:first-child:not(.field) { display: flex; flex-direction: column; }
.card-heading h2 { font-size: 21px; }
.page-head { padding-top: 48px; }
.page-head h1 { font-weight: 900; letter-spacing: -.035em; }
.eyebrow { font-weight: 700; letter-spacing: 0; }
.badge { gap: 5px; border: 1px solid transparent; }
.badge.success { border-color: rgba(36, 113, 82, .12); }
.badge.warning { border-color: rgba(152, 86, 0, .12); }
.badge.danger { border-color: rgba(162, 52, 52, .12); }
.alert {
    border-radius: 16px;
    box-shadow: var(--shadow-xs);
}
.alert p { margin: 4px 0 0; }

/* Public hero */
.hero {
    min-height: 680px;
    padding: 82px 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(237, 146, 23, .18), transparent 23rem),
        linear-gradient(135deg, #414329 0%, #282a19 65%, #202113 100%);
}
.hero::before {
    width: 520px;
    height: 520px;
    right: -280px;
    top: -260px;
    border-color: rgba(255, 255, 255, .08);
}
.hero::after { border-color: rgba(237, 146, 23, .12); }
.hero-grid { grid-template-columns: .95fr 1.05fr; gap: clamp(42px, 7vw, 90px); }
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
    max-width: 760px;
    margin: 18px 0 20px;
    font-size: clamp(43px, 5.4vw, 72px);
    font-weight: 900;
    letter-spacing: -.045em;
}
.hero h1 em { display: inline-block; color: #ffad30; }
.hero p { max-width: 620px; color: rgba(255, 255, 255, .78); font-size: 17px; }
.hero .actions { margin: 31px 0 34px; }
.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.hero-facts span {
    display: flex;
    flex-direction: column;
    min-width: 130px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 13px;
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .65);
    font-size: 10px;
    backdrop-filter: blur(6px);
}
.hero-facts b { color: #fff; font-size: 13px; }
.hero-gallery {
    min-height: 480px;
    position: relative;
    isolation: isolate;
}
.hero-gallery::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    top: 42px;
    right: 50%;
    z-index: -1;
    transform: translateX(50%);
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 34px rgba(237, 146, 23, .08);
}
.hero-gallery figure { margin: 0; overflow: hidden; background: #fff; box-shadow: 0 28px 70px rgba(0, 0, 0, .3); }
.hero-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-gallery-main {
    width: min(76%, 430px);
    height: 330px;
    position: absolute;
    top: 62px;
    right: 3%;
    z-index: 2;
    border: 7px solid #fff;
    border-radius: 26px;
    transform: rotate(1.5deg);
}
.hero-gallery-main figcaption {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(28, 29, 17, .84);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}
.hero-gallery-small { position: absolute; z-index: 3; border: 5px solid #fff; border-radius: 19px; }
.hero-gallery-annex { width: 42%; height: 155px; left: 0; bottom: 22px; transform: rotate(-3deg); }
.hero-gallery-pergola { width: 29%; height: 205px; left: 5%; top: 6px; transform: rotate(-2deg); }
.hero-gallery-stamp {
    position: absolute;
    right: 2%;
    bottom: 18px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .25);
}
.hero-gallery-stamp small { color: #ffad30; font-weight: 600; }

/* Public room gallery */
.section { padding: 94px 0; }
.section h2 { font-weight: 900; letter-spacing: -.025em; }
.room-grid { gap: 24px; }
.room-card {
    border-radius: 24px;
    box-shadow: var(--shadow-xs);
}
.room-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.room-visual {
    width: 100%;
    height: 240px;
    display: block;
    padding: 0;
    border: 0;
    cursor: zoom-in;
    text-align: inherit;
}
.room-visual .room-number {
    top: 14px;
    right: 16px;
    color: #fff;
    font-size: 26px;
}
.room-visual .photo-count {
    position: absolute;
    top: auto;
    right: auto;
    bottom: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    width: auto;
    height: auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(24, 25, 14, .72);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-shadow: none;
    backdrop-filter: blur(7px);
}
.room-visual .room-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: auto;
    height: auto;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .34));
}
.room-body { padding: 23px 24px 21px; }
.room-title h3 { font-size: 22px; font-weight: 900; }
.room-title span { border: 1px solid #f3dfb7; background: var(--orange-soft); }
.room-body p { min-height: 45px; line-height: 1.75; }
.room-body ul { margin-bottom: 16px; }
.room-body li span { color: var(--success); font-weight: 900; }
.room-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}
.room-card-actions a { color: var(--ink); font-weight: 700; }
.steps { align-items: start; }
.steps-intro p { max-width: 420px; color: var(--muted); }
.steps li { min-height: 112px; align-items: flex-start; box-shadow: var(--shadow-xs); }
.steps li b { font-weight: 900; }
.steps li small { color: var(--muted); line-height: 1.65; }
.availability-date-field { min-width: 210px; }
.availability-grid { align-items: stretch; }
.availability-card { min-height: 175px; margin: 0; }
.availability-card > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.availability-card h3 { margin: 0; }
.availability-card p { color: var(--muted); font-size: 12px; }
.availability-card ul { display: grid; gap: 7px; padding: 0; margin: 15px 0 0; list-style: none; }
.availability-card li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 9px; border-radius: 9px; background: var(--cream); font-size: 11px; }
.availability-loading { grid-column: 1 / -1; margin: 0; text-align: center; }
.availability-loading.is-error { color: var(--danger); background: var(--danger-soft); }
.loading-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-inline-end: 5px;
    border-radius: 50%;
    background: var(--orange);
    animation: pulse 1s ease-in-out infinite;
}
.privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
}
.privacy-note > span { color: var(--success); font-size: 10px; }
.privacy-note p { margin: 0; }
.location-section { padding-top: 0; }
.location-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 45px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 95% 10%, rgba(237, 146, 23, .2), transparent 17rem),
        var(--ink);
    color: #fff;
    box-shadow: var(--shadow);
}
.location-card h2 { margin: 6px 0 12px; }
.location-card p { max-width: 700px; margin: 4px 0; color: rgba(255, 255, 255, .7); }

/* Gallery dialog */
.gallery-dialog {
    width: min(940px, calc(100% - 30px));
    max-height: calc(100vh - 30px);
    padding: 22px;
    border: 0;
    border-radius: 26px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 35px 120px rgba(0, 0, 0, .42);
}
.gallery-dialog::backdrop { background: rgba(20, 21, 12, .78); backdrop-filter: blur(7px); }
.gallery-dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 15px; }
.gallery-dialog-head h2 { margin: 3px 0 0; }
.gallery-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 26px;
    cursor: pointer;
}
.gallery-stage { min-height: 460px; display: grid; grid-template-columns: 48px 1fr 48px; gap: 10px; align-items: center; }
.gallery-stage img { width: 100%; max-height: 60vh; border-radius: 17px; object-fit: contain; background: #f2eee5; }
.gallery-stage button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 29px;
    cursor: pointer;
}
.gallery-thumbs { display: flex; justify-content: center; gap: 8px; margin-top: 14px; overflow: auto; }
.gallery-thumbs button { width: 78px; height: 58px; flex: 0 0 auto; padding: 2px; border: 2px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; }
.gallery-thumbs button.active { border-color: var(--orange); }
.gallery-thumbs img { width: 100%; height: 100%; border-radius: 6px; object-fit: cover; }
.gallery-counter { margin: 9px 0 0; color: var(--muted); text-align: center; font-size: 11px; }

/* Forms */
.field { gap: 7px; }
.field label { font-weight: 700; }
.field input,
.field select,
.field textarea,
.lookup-row input,
.lookup-add input,
.user-action-form input,
.user-action-form select {
    min-height: 44px;
    border-color: var(--line-strong);
    border-radius: 11px;
    background: #fff;
}
.field textarea { min-height: 118px; line-height: 1.7; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #bfb294; }
.help { line-height: 1.65; }
.choice { border-color: var(--line); background: #fff; }
.choice:hover { border-color: #cdbb93; background: #fffdf8; }
.choice input,
.plain-check input { accent-color: var(--orange); }
.choice small { display: block; color: var(--muted); }
.password-field button {
    width: auto;
    min-width: 58px;
    padding: 0 10px;
    color: var(--orange-dark);
    font-size: 10px;
    font-weight: 700;
}
.form-hint,
.capacity-message {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 11px;
    background: var(--info-soft);
    color: var(--info);
    font-size: 11px;
}
.success-hint,
.capacity-message.success { background: var(--success-soft); color: var(--success); }
.danger-hint,
.capacity-message.danger { background: var(--danger-soft); color: var(--danger); }
.capacity-message.warning { background: var(--orange-soft); color: var(--orange-dark); }
.upload-zone { position: relative; transition: border-color .2s ease, background .2s ease; }
.upload-zone.has-file { border-color: var(--success); background: var(--success-soft); }
.upload-zone.has-file::after { content: attr(data-file-name); color: var(--success); font-size: 11px; font-weight: 700; }

/* Booking form */
.booking-page { padding-bottom: 70px; }
.booking-form-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: start;
}
.booking-form-main { min-width: 0; }
.form-section { padding: 27px; }
.form-section-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.form-section-head > span {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    background: var(--orange-soft);
    color: var(--orange-dark);
    font-size: 11px;
    font-weight: 900;
}
.form-section-head h2 { margin: 0; font-size: 21px; }
.form-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.room-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.room-choice { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.room-choice:hover { transform: translateY(-2px); border-color: #c7b78f; box-shadow: var(--shadow-xs); }
.room-choice input { position: absolute; inset: 12px 12px auto auto; z-index: 3; width: 20px; height: 20px; accent-color: var(--orange); }
.room-choice-image { height: 105px; display: block; background: var(--sand); }
.room-choice-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.room-choice-copy { display: flex; flex-direction: column; padding: 11px 12px; }
.room-choice-copy strong { font-size: 13px; }
.room-choice-copy small { color: var(--muted); font-size: 10px; }
.room-choice-check { position: absolute; inset: auto auto 11px 11px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--success); color: #fff; opacity: 0; transform: scale(.75); transition: .2s ease; }
.room-choice:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237, 146, 23, .12); }
.room-choice:has(input:checked) .room-choice-check { opacity: 1; transform: scale(1); }
.terms-box { margin: 16px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.terms-box summary { padding: 11px 13px; cursor: pointer; font-weight: 700; }
.terms-box p { padding: 0 13px 12px; margin: 0; color: var(--muted); font-size: 11px; white-space: pre-line; }
.terms-choice { margin-bottom: 0; }
.booking-summary { position: sticky; top: 108px; margin: 0; padding: 25px; border-top: 4px solid var(--orange); box-shadow: var(--shadow-sm); }
.booking-summary h2 { margin: 5px 0 18px; }
.booking-summary dl { margin: 0 0 18px; }
.booking-summary dl > div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.booking-summary dt { margin-bottom: 2px; color: var(--muted); font-size: 10px; }
.booking-summary dd { margin: 0; font-size: 12px; font-weight: 700; }
.booking-summary dd strong { font-size: 20px; }
.summary-note { display: flex; gap: 9px; padding: 10px; border-radius: 11px; background: var(--cream); color: var(--muted); font-size: 10px; }
.summary-note span { width: 20px; height: 20px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--orange); color: var(--ink); font-weight: 900; }
.summary-note p { margin: 0; }
.booking-summary .btn { margin-top: 17px; }
.submit-help { display: block; margin-top: 10px; color: var(--muted); text-align: center; line-height: 1.6; }

/* Dashboard */
.dashboard-page { padding: 40px 0 75px; }
.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    margin-bottom: 25px;
    padding: 34px;
    border-radius: 27px;
    background:
        radial-gradient(circle at 8% 0, rgba(237, 146, 23, .2), transparent 18rem),
        var(--ink);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.dashboard-welcome h1 { max-width: 730px; margin: 8px 0 5px; font-size: clamp(30px, 5vw, 48px); line-height: 1.3; letter-spacing: -.04em; }
.dashboard-welcome p { margin: 0; color: rgba(255, 255, 255, .65); }
.dashboard-account-state { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.dashboard-account-state > span { color: rgba(255, 255, 255, .58); font-size: 10px; }
.onboarding-card { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 18px; padding: 28px; }
.onboarding-number { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); font-size: 20px; font-weight: 900; }
.onboarding-number.done { background: var(--success-soft); color: var(--success); }
.onboarding-card h2 { margin: 0 0 4px; }
.onboarding-card p { margin: 0; color: var(--muted); }
.dashboard-stats .stat { position: relative; overflow: hidden; padding: 20px; }
.dashboard-stats .stat::after { content: ""; position: absolute; width: 64px; height: 64px; left: -25px; bottom: -30px; border-radius: 50%; background: var(--orange-soft); }
.dashboard-stats .stat-label { display: block; color: var(--muted); font-size: 11px; }
.dashboard-stats .stat strong { margin: 5px 0 0; font-size: 34px; }
.dashboard-stats .stat small { color: var(--muted); }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 24px; }
.quick-action { display: flex; align-items: center; gap: 11px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-xs); transition: .2s ease; }
.quick-action:hover { transform: translateY(-2px); border-color: #c9b98f; box-shadow: var(--shadow-sm); }
.quick-action > span { width: 39px; height: 39px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--cream); color: var(--orange-dark); font-size: 19px; }
.quick-action > div { display: flex; min-width: 0; flex-direction: column; }
.quick-action strong { font-size: 13px; }
.quick-action small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.quick-action.primary-action { border-color: #f3d8a2; background: var(--orange-soft); }
.quick-action.admin-action { background: var(--ink); color: #fff; }
.quick-action.admin-action > span { background: rgba(255, 255, 255, .1); color: var(--orange); }
.quick-action.admin-action small { color: rgba(255, 255, 255, .6); }
.dashboard-bookings { padding: 0; overflow: hidden; }
.dashboard-bookings .card-heading { justify-content: space-between; align-items: flex-end; padding: 22px 23px 12px; margin: 0; }
.dashboard-bookings .card-heading h2 { margin: 3px 0 0; }

/* Tables */
.data-table th { padding-block: 13px; background: #fbf8f1; font-weight: 700; }
.data-table td { padding-block: 14px; }
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.admin-table-card,
.bookings-list-card { padding: 0; overflow: hidden; }
.empty .btn { margin-top: 13px; }

/* Booking details */
.status-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 18px 21px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
}
.status-banner-icon { width: 40px; height: 40px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--info-soft); color: var(--info); font-weight: 900; }
.status-banner p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.status-banner.status-success { border-color: #cbe5d8; background: var(--success-soft); }
.status-banner.status-success .status-banner-icon { background: var(--success); color: #fff; }
.status-banner.status-warning { border-color: #f0d7a7; background: #fff8e7; }
.status-banner.status-warning .status-banner-icon { background: var(--orange); color: var(--ink); }
.status-banner.status-danger { border-color: #efcdca; background: var(--danger-soft); }
.status-banner.status-danger .status-banner-icon { background: var(--danger); color: #fff; }
.booking-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 21px; align-items: start; }
.booking-detail-grid aside { min-width: 0; }
.date-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--cream); }
.date-card .date-day { display: block; color: var(--orange-dark); font-size: 11px; font-weight: 700; }
.date-card > strong { display: block; margin: 3px 0 13px; font-size: 21px; }
.date-card > div { display: flex; gap: 8px; flex-wrap: wrap; }
.date-card > div span { padding: 5px 9px; border-radius: 9px; background: #fff; font-size: 11px; }
.member-amount-card { padding: 26px; text-align: center; border-top: 4px solid var(--orange); }
.member-amount-card > span { color: var(--muted); }
.member-amount-card > strong { display: block; margin: 3px 0 -3px; color: var(--ink); font-size: 46px; line-height: 1.3; }
.member-amount-card > small { color: var(--muted); }
.member-amount-card > p { margin: 16px 0 0; color: var(--muted); font-size: 11px; }
.member-amount-card dl { margin: 18px 0 0; }
.member-amount-card dl > div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 11px; }
.member-amount-card dd { margin: 0; font-weight: 700; }
.whatsapp-button { background: #176b4c; color: #fff; }
.member-payment-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member-payment-row span { display: flex; flex-direction: column; }
.member-payment-row small { color: var(--muted); }
.member-payment-row .table-action { margin-top: 3px; }
.muted { color: var(--muted); }
.notification-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.booking-actions-card { display: grid; gap: 9px; }
.booking-actions-card h3 { margin-bottom: 3px; }
.cancellation-card { margin-top: 5px; }
.cancellation-card summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.cancellation-card summary::-webkit-details-marker { display: none; }
.cancellation-card summary > span { display: flex; flex-direction: column; }
.cancellation-card summary small { color: var(--muted); font-weight: 400; }
.cancellation-card summary b { color: var(--danger); font-size: 11px; }
.cancellation-card[open] summary { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cancel-submit { align-self: end; }
.danger-text { color: var(--danger) !important; }

/* Authentication */
.auth-page main { min-height: calc(100vh - 86px); }
.auth-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; max-width: 980px; min-height: 600px; margin: 54px auto 74px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.auth-visual { min-height: 600px; position: relative; overflow: hidden; color: #fff; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 31, 18, .18), rgba(30, 31, 18, .9)); }
.auth-visual > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.auth-visual > div { position: absolute; right: 34px; bottom: 34px; left: 34px; z-index: 2; }
.auth-visual-logo { width: 72px; height: 72px; object-fit: contain; }
.auth-visual h1 { margin: 7px 0; font-size: 38px; }
.auth-visual p { margin: 0; color: rgba(255, 255, 255, .75); }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 46px; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.auth-card-head { margin-bottom: 24px; }
.auth-card-head h1 { margin: 4px 0; font-size: 34px; }
.auth-card-head p { margin: 0; color: var(--muted); }
.auth-options { display: flex; justify-content: space-between; gap: 14px; align-items: center; font-size: 11px; }
.plain-check { display: flex; gap: 7px; align-items: center; }
.auth-options a,
.auth-switch a { color: var(--orange-dark); font-weight: 700; }
.auth-switch { margin: 23px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 12px; }
.auth-wrap { margin-top: 58px; }

/* Admin */
.admin-body { background: #f8f6f0; }
.admin-shell { grid-template-columns: 250px minmax(0, 1fr); gap: 30px; }
.admin-nav { top: 106px; padding: 13px; border-radius: 20px; }
.admin-nav-head { padding: 10px 11px 15px; }
.admin-nav-head span { font-size: 14px; }
.admin-nav a { min-height: 41px; margin: 2px 0; padding: 9px 11px; border-radius: 10px; font-weight: 600; }
.admin-nav a.active { background: rgba(255, 255, 255, .12); box-shadow: inset 3px 0 0 var(--orange); }
.admin-nav-separator { margin-top: 10px; padding-top: 11px; font-weight: 600; }
.admin-content .page-head h1 { font-size: 34px; }
.booking-filters { display: grid; grid-template-columns: minmax(220px, 1fr) 180px 150px 150px auto auto; }
.booking-filters .field { min-width: 0; }
.workflow-section { margin-top: 21px; }
.appointment-card { text-align: center; }
.appointment-card p { margin: 5px 0; font-size: 20px; }
.appointment-times { display: flex; justify-content: center; gap: 7px; }
.appointment-times span { padding: 5px 8px; border-radius: 8px; background: var(--cream); font-size: 11px; }
.appointment-card > small { display: block; margin-top: 10px; color: var(--muted); }
.amount-card > div + div { margin-top: 4px; }
.room-photo-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.room-photo-admin-card { margin: 0; }
.room-photo-preview { height: 220px; position: relative; overflow: hidden; border-radius: 15px; background: var(--sand); }
.room-photo-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.room-photo-preview span { position: absolute; bottom: 11px; left: 11px; padding: 5px 9px; border-radius: 999px; background: rgba(29, 30, 18, .78); color: #fff; font-size: 9px; }
.room-photo-admin-copy h2 { margin: 15px 0 2px; }
.room-photo-thumbs { display: flex; gap: 6px; margin: 12px 0; }
.room-photo-thumbs img { width: 58px; height: 44px; border-radius: 8px; object-fit: cover; }
.room-photo-admin-card form { display: grid; gap: 12px; }
.room-settings-card > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    list-style: none;
}
.room-settings-card > summary::-webkit-details-marker { display: none; }
.room-settings-card[open] > summary { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.room-settings-summary { display: flex; align-items: center; gap: 12px; }
.room-settings-summary > img { width: 64px; height: 52px; border-radius: 10px; object-fit: cover; }
.room-settings-summary > span { display: flex; flex-direction: column; }
.room-settings-summary small { color: var(--muted); font-size: 10px; font-weight: 400; }
.room-settings-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.room-toggle-options { display: flex; align-items: flex-end; gap: 8px; }
.price-tier-section { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.tier-add-form { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr auto; gap: 10px; align-items: end; margin-top: 18px; padding: 15px; border-radius: 14px; background: var(--cream); }
.new-room-card > summary { padding: 2px 0; }
.new-room-card > summary .help { margin-inline-start: auto; }

.weekday-picker {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .55rem;
}
.weekday-picker > input[type="hidden"] { display: none; }
.weekday-picker label { cursor: pointer; }
.weekday-picker label input { position: absolute; opacity: 0; pointer-events: none; }
.weekday-picker label span {
    display: grid;
    min-height: 2.8rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: .85rem;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    transition: .2s ease;
}
.weekday-picker label input:checked + span {
    border-color: var(--orange);
    background: var(--orange-soft);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--orange);
}
.weekday-picker label input:focus-visible + span { outline: 3px solid rgba(235, 145, 20, .25); outline-offset: 2px; }

/* Notifications */
.notification-list { padding-block: 4px; }
.notification-item { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: center; padding: 17px 4px; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item.is-read { opacity: .62; }
.notification-status { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.notification-item.is-read .notification-status { background: var(--line-strong); }
.notification-item h2 { margin: 0 0 3px; font-size: 15px; }
.notification-item p { margin: 0; color: var(--muted); font-size: 11px; }
.notification-item small { color: #999987; font-size: 9px; }

/* Footer */
.site-footer { margin-top: 0; padding: 55px 0; }
.footer-brand > strong { font-size: 17px; }
.cit-mark { height: 58px; opacity: .84; }

@keyframes pulse {
    0%, 100% { transform: scale(.8); opacity: .55; }
    50% { transform: scale(1.2); opacity: 1; }
}

@media (max-width: 1100px) {
    .hero-grid { gap: 40px; }
    .hero-gallery-main { width: 80%; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .booking-filters { grid-template-columns: 1fr 1fr 1fr; }
    .booking-filters .grow { grid-column: span 2; }
    .tier-add-form { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(31, 32, 18, .34); backdrop-filter: blur(2px); }
    .nav-toggle { display: grid; z-index: 52; }
    .main-nav {
        top: 86px;
        z-index: 51;
        padding: 14px 18px 20px;
        border-bottom: 1px solid var(--line);
        background: #fff;
    }
    .main-nav > a { text-align: right; }
    .main-nav > a.active { background: var(--orange-soft); }
    .main-nav > a.active::after { display: none; }
    .notification-link { width: 100%; border-radius: 12px !important; }
    .user-menu summary { border-radius: 13px; }
    .user-meta { display: flex; }
    .hero { min-height: auto; padding: 65px 0 75px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-gallery { width: min(620px, 100%); min-height: 470px; margin: 0 auto; }
    .room-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { gap: 30px; }
    .booking-form-shell { grid-template-columns: 1fr; }
    .booking-summary { position: static; }
    .booking-detail-grid { grid-template-columns: 1fr; }
    .auth-layout { grid-template-columns: 1fr; max-width: 620px; }
    .auth-visual { min-height: 270px; }
    .auth-visual > div { bottom: 24px; }
    .auth-visual h1 { font-size: 31px; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-nav { display: flex; position: static; overflow-x: auto; padding: 10px; border-radius: 15px; scrollbar-width: thin; }
    .admin-nav a { min-width: max-content; background: rgba(255, 255, 255, .06); }
    .admin-nav a.active { box-shadow: inset 0 -3px 0 var(--orange); }
    .room-photo-admin-grid { grid-template-columns: 1fr; }
    .room-toggle-options { align-items: stretch; flex-direction: column; }
}

@media (max-width: 720px) {
    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td { display: block; width: 100%; }
    .responsive-table thead { display: none; }
    .responsive-table tbody { padding: 8px 14px; }
    .responsive-table tr { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        padding: 8px 0;
        border-bottom: 1px solid #eee9dd;
        white-space: normal;
        text-align: left;
    }
    .responsive-table td:last-child { justify-content: flex-end; border-bottom: 0; }
    .responsive-table td[data-label]::before { content: attr(data-label); flex: 0 0 auto; color: var(--muted); font-size: 9px; font-weight: 700; }
    .responsive-table td.empty { display: block; padding: 28px 10px; text-align: center; }
    .dashboard-bookings .table-wrap,
    .bookings-list-card .table-wrap,
    .admin-table-card .table-wrap { overflow: visible; }
    .gallery-stage { min-height: 300px; grid-template-columns: 36px 1fr 36px; }
    .gallery-stage button { width: 34px; height: 34px; }
}

@media (max-width: 600px) {
    .nav-wrap { min-height: 76px; }
    .main-nav { top: 76px; }
    .brand img { width: 46px; height: 46px; }
    .brand span { font-size: 11px; }
    .brand small { display: block; font-size: 8px; }
    .hero { padding-top: 52px; }
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 15px; }
    .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
    .hero-facts span { min-width: 0; padding: 8px; }
    .hero-gallery { min-height: 370px; }
    .hero-gallery::before { width: 250px; height: 250px; }
    .hero-gallery-main { height: 260px; top: 47px; right: 0; }
    .hero-gallery-annex { height: 115px; bottom: 8px; }
    .hero-gallery-pergola { height: 150px; left: 0; }
    .hero-gallery-stamp { width: 84px; height: 84px; bottom: 6px; font-size: 10px; }
    .section { padding: 66px 0; }
    .section h2 { font-size: 30px; }
    .room-grid { grid-template-columns: 1fr; }
    .room-visual { height: 230px; }
    .location-card { display: block; padding: 30px 23px; }
    .location-card .btn { width: 100%; margin-top: 22px; }
    .gallery-dialog { width: calc(100% - 16px); padding: 14px; border-radius: 18px; }
    .gallery-stage { min-height: 250px; }
    .booking-page .page-head { padding-top: 34px; }
    .form-section { padding: 19px 17px; }
    .form-section-head > span { width: 36px; height: 36px; }
    .room-choice-grid { grid-template-columns: 1fr; }
    .room-choice { display: grid; grid-template-columns: 105px 1fr; min-height: 90px; }
    .room-choice-image { height: 100%; }
    .room-choice-copy { justify-content: center; }
    .booking-summary { padding: 20px; }
    .dashboard-page { padding-top: 20px; }
    .dashboard-welcome { display: block; padding: 26px 20px; }
    .dashboard-account-state { align-items: flex-start; margin-top: 18px; }
    .onboarding-card { grid-template-columns: 46px 1fr; padding: 20px; }
    .onboarding-card .btn { grid-column: 1 / -1; width: 100%; }
    .quick-actions { grid-template-columns: 1fr 1fr; }
    .booking-details-head { align-items: flex-start; }
    .status-banner { align-items: flex-start; }
    .detail-list > div { grid-template-columns: 1fr; }
    .auth-layout { margin: 20px auto 50px; border-radius: 20px; }
    .auth-visual { min-height: 220px; }
    .auth-visual > div { right: 21px; bottom: 20px; left: 21px; }
    .auth-visual-logo { width: 55px; height: 55px; }
    .auth-visual h1 { font-size: 27px; }
    .auth-card { padding: 30px 21px; }
    .auth-options { align-items: flex-start; flex-direction: column; }
    .booking-filters { grid-template-columns: 1fr; }
    .booking-filters .grow { grid-column: auto; }
    .notification-item { grid-template-columns: 9px 1fr; }
    .notification-item .table-action { grid-column: 2; justify-self: start; }
    .room-photo-preview { height: 190px; }
    .room-settings-card > summary { align-items: flex-start; flex-direction: column; }
    .room-settings-badges { margin-inline-start: 76px; }
    .tier-add-form { grid-template-columns: 1fr; }
    .weekday-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* SGWEN HQ Portal — v2.2 operational tools */
.booking-slot-picker { grid-template-columns: 1.15fr 1fr 1fr; }
.booking-slot-picker select:disabled { cursor: wait; opacity: .72; background: #f1eee6; }
.pricing-mode-field[hidden], [data-tier-section][hidden] { display: none !important; }
.standalone-import { margin-bottom: 22px; }
.standalone-import .upload-zone { min-height: 150px; }
.import-history > details { border-bottom: 1px solid var(--line); }
.import-history > details:last-of-type { border-bottom: 0; }

.mail-health-card {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto minmax(310px, 1fr);
    align-items: center;
    gap: 24px;
    margin-bottom: 22px;
    border-top: 4px solid var(--orange);
}
.mail-health-card > div:first-child { display: flex; align-items: center; gap: 14px; }
.mail-health-card h2, .mail-health-card p { margin: 0; }
.mail-health-card p { color: var(--muted); font-size: 11px; }
.mail-health-card dl { display: flex; gap: 20px; margin: 0; }
.mail-health-card dl div { text-align: center; }
.mail-health-card dt { color: var(--muted); font-size: 9px; }
.mail-health-card dd { margin: 2px 0 0; font-size: 18px; font-weight: 900; }
.mail-health-card form { display: flex; align-items: end; gap: 9px; }
.mail-health-card form .field { flex: 1; }

.backup-layout { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(380px, 1.15fr); gap: 22px; }
.backup-card { text-align: center; border-top: 4px solid var(--orange); }
.backup-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 22px; background: var(--orange-soft); color: var(--orange-dark); font-size: 36px; font-weight: 900; }
.backup-card h2, .backup-card p { margin: 0 0 10px; }
.backup-card p { color: var(--muted); }
.backup-card form { margin-top: 24px; }
.backup-notes h2 { margin-top: 0; }
.backup-notes ul { margin: 16px 0 22px; padding: 0 20px 0 0; line-height: 2; }

.calendar-toolbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 18px; padding: 14px 17px; }
.calendar-view-switch { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #f2eee4; }
.calendar-view-switch a { padding: 7px 13px; border-radius: 9px; color: var(--muted); font-size: 10px; font-weight: 800; }
.calendar-view-switch a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.calendar-navigation { display: flex; justify-content: center; align-items: center; gap: 20px; }
.calendar-navigation a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 24px; }
.calendar-navigation strong { min-width: 180px; text-align: center; font-size: 17px; }
.calendar-filter select { min-width: 180px; }
.calendar-month { padding: 0; overflow: hidden; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { border-bottom: 1px solid var(--line); background: var(--ink); color: #fff; }
.calendar-weekdays span { padding: 9px; text-align: center; font-size: 9px; font-weight: 800; }
.calendar-day { min-height: 135px; padding: 9px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.calendar-day:nth-child(7n) { border-inline-end: 0; }
.calendar-day.outside { background: #f8f6f0; color: #aaa; }
.calendar-day.today { box-shadow: inset 0 0 0 2px var(--orange); }
.calendar-day-number { width: 28px; height: 28px; display: grid; place-items: center; margin-bottom: 5px; border-radius: 50%; color: inherit; font-weight: 900; }
.calendar-day.today .calendar-day-number { background: var(--orange); color: #fff; }
.calendar-day-events { display: grid; gap: 4px; }
.calendar-event { display: grid; grid-template-columns: 35px 1fr; gap: 4px; padding: 4px 6px; border-inline-start: 3px solid var(--info); border-radius: 6px; background: var(--info-soft); color: var(--ink); font-size: 7.5px; overflow: hidden; }
.calendar-event b { direction: ltr; }.calendar-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event.status-success { border-color: var(--success); background: var(--success-soft); }
.calendar-event.status-warning, .calendar-event.block-event { border-color: var(--orange); background: var(--orange-soft); }
.calendar-event.status-danger { border-color: var(--danger); background: var(--danger-soft); }
.calendar-room-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 14px; }
.calendar-room-legend span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; color: #fff; font-size: 10px; font-weight: 800; }
.calendar-event.room-main-hall, .calendar-room-legend .room-main-hall { background: #7f1d1d; border-color: #7f1d1d; color: #fff; }
.calendar-event.room-annex-hall, .calendar-room-legend .room-annex-hall { background: #1e3a8a; border-color: #1e3a8a; color: #fff; }
.calendar-event.room-pergola, .calendar-room-legend .room-pergola { background: #166534; border-color: #166534; color: #fff; }
.calendar-event.room-multiple, .calendar-room-legend .room-multiple { background: #9a3412; border-color: #9a3412; color: #fff; }
.calendar-event.room-other { background: #374151; border-color: #374151; color: #fff; }
.agenda-event.room-main-hall { border-inline-start: 7px solid #7f1d1d; }
.agenda-event.room-annex-hall { border-inline-start: 7px solid #1e3a8a; }
.agenda-event.room-pergola { border-inline-start: 7px solid #166534; }
.agenda-event.room-multiple { border-inline-start: 7px solid #9a3412; }
.agenda-event.room-main-hall time { color: #7f1d1d; }
.agenda-event.room-annex-hall time { color: #1e3a8a; }
.agenda-event.room-pergola time { color: #166534; }
.agenda-event.room-multiple time { color: #9a3412; }
.more-events { color: var(--orange-dark); font-size: 8px; font-weight: 800; }
.day-agenda { display: grid; gap: 10px; }
.agenda-event { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 20px; padding: 18px 22px; color: inherit; border-inline-start: 4px solid var(--orange); }
.agenda-event time { direction: ltr; font-size: 20px; font-weight: 900; text-align: center; }
.agenda-event time small { display: block; color: var(--muted); font-size: 11px; }
.agenda-event h3, .agenda-event p { margin: 3px 0; }.agenda-event p { color: var(--muted); }
.agenda-block { border-inline-start-color: var(--danger); }
.year-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.year-month { display: grid; grid-template-columns: 1fr auto; align-items: end; color: inherit; }
.year-month > span { font-size: 17px; font-weight: 800; }.year-month > strong { grid-row: span 2; color: var(--orange-dark); font-size: 34px; }.year-month > small { color: var(--muted); }
.year-month-bar { grid-column: 1 / -1; height: 5px; margin-top: 14px; border-radius: 99px; background: #eee9dd; overflow: hidden; }.year-month-bar i { display: block; height: 100%; border-radius: inherit; background: var(--orange); }

@media (max-width: 980px) {
    .mail-health-card { grid-template-columns: 1fr 1fr; }
    .mail-health-card form { grid-column: 1 / -1; }
    .calendar-toolbar { grid-template-columns: 1fr 1fr; }
    .calendar-navigation { grid-column: 1 / -1; grid-row: 1; }
    .calendar-filter { justify-self: end; }
    .calendar-day { min-height: 105px; }
    .calendar-event { grid-template-columns: 1fr; }.calendar-event span { display: none; }
}

@media (max-width: 700px) {
    .booking-slot-picker, .backup-layout, .year-grid { grid-template-columns: 1fr; }
    .mail-health-card { grid-template-columns: 1fr; }.mail-health-card form { grid-column: auto; flex-direction: column; align-items: stretch; }
    .calendar-toolbar { display: flex; align-items: stretch; flex-direction: column; }
    .calendar-navigation { order: -1; }.calendar-filter { width: 100%; }.calendar-filter select { width: 100%; }
    .calendar-weekdays span { padding: 7px 2px; font-size: 7px; }
    .calendar-day { min-height: 68px; padding: 4px; }.calendar-day-number { width: 23px; height: 23px; font-size: 9px; }
    .calendar-event { padding: 3px; font-size: 6px; text-align: center; border-inline-start-width: 2px; }.calendar-event b { overflow: hidden; }
    .more-events { font-size: 6px; }
    .agenda-event { grid-template-columns: 60px 1fr; gap: 12px; padding: 15px; }.agenda-event time { font-size: 16px; }
}
