:root {
    --ink: #17212b;
    --muted: #68747f;
    --line: #dfe3e5;
    --paper: #fff;
    --canvas: #f4f3f0;
    --blue: #223f57;
    --blue-dark: #162f44;
    --accent: #c56b4f;
    --soft-blue: #edf2f5;
    --soft-green: #e9f2ed;
    --danger: #9f493f;
}

.reporting-review-list {
    display: grid;
    gap: 0;
}

.reporting-review-row {
    display: grid;
    grid-template-columns: minmax(230px, 1.35fr) repeat(3, minmax(170px, .75fr)) auto;
    gap: 16px;
    align-items: end;
    padding: 18px 24px;
    border-top: 1px solid var(--line);
}

.reporting-review-row.compact {
    grid-template-columns: minmax(280px, 1fr) auto;
}

.reporting-excluded-panel {
    margin-top: 18px;
    overflow: hidden;
}

.reporting-excluded-panel > summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 750;
}

.reporting-review-row > div {
    display: grid;
    gap: 4px;
}

.reporting-review-row small,
.reporting-review-row a {
    display: block;
}

.reporting-review-row a {
    color: var(--blue);
    font-weight: 700;
    width: fit-content;
}

.reporting-review-row label {
    margin: 0;
}

@media (max-width: 1100px) {
    .reporting-review-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .reporting-review-row {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}

* { box-sizing: border-box; }
html { color-scheme: light; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.eyebrow, .step-label { margin: 0; color: #88766e; font-size: 10px; font-weight: 750; letter-spacing: 1.45px; text-transform: uppercase; }
.brand-line { display: inline-block; width: 3px; height: 32px; border-radius: 4px; background: var(--accent); }
.environment-chip, .language-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border: 1px solid #d9dfe2; border-radius: 999px; color: #62717c; background: rgba(255,255,255,.75); font-size: 10px; font-weight: 700; }
.button { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 700; }
.button.primary { color: #fff; background: var(--blue); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { color: #334c5e; background: #fff; border: 1px solid #d8dee1; }
.button.secondary:hover { background: #f5f7f7; }
.notice { margin: 16px 0; padding: 13px 15px; border-radius: 7px; font-size: 12px; line-height: 1.45; }
.notice.success { color: #376650; background: var(--soft-green); border: 1px solid #cfe0d6; }
.notice.error { color: var(--danger); background: #f8ece9; border: 1px solid #ead1cb; }
label { display: grid; gap: 7px; color: #46545e; font-size: 10px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #d5dadd; border-radius: 6px; outline: 0; color: #1c2d38; background: white; }
input:focus, select:focus, textarea:focus { border-color: #55758b; box-shadow: 0 0 0 3px #e6edf1; }
label small { color: #8a959c; font-size: 8px; font-weight: 500; line-height: 1.45; }

.setup-page { background: linear-gradient(180deg, #f8f7f4 0, #f1f3f3 100%); }
.setup-shell { width: min(100% - 32px, 840px); margin: 0 auto; padding: 34px 0 50px; }
.setup-header { min-height: 48px; display: flex; justify-content: space-between; align-items: center; }
.setup-header > div { display: flex; align-items: center; gap: 13px; }
.setup-intro { max-width: 620px; padding: 60px 0 25px; }
.setup-intro h1 { margin: 10px 0 14px; font-size: clamp(32px, 7vw, 54px); line-height: 1.02; letter-spacing: -2.4px; font-weight: 610; }
.setup-intro > p:last-child { margin: 0; max-width: 570px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.check-card, .action-card { margin-top: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.check-card h2, .action-card h2 { margin: 0; font-size: 16px; letter-spacing: -.35px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 22px; margin-top: 20px; }
.check-list > div { display: flex; align-items: center; gap: 9px; min-height: 28px; }
.check-list strong { font-size: 11px; font-weight: 650; }
.check-mark { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; font-size: 10px; }
.check-mark.ok { color: #3d745b; background: #e6f1eb; }
.check-mark.pending { color: #97634f; background: #f6e9e4; }
.technical-note { margin: 16px 0 0; color: #8b5e50; font-size: 10px; }
.action-card { display: grid; grid-template-columns: minmax(210px, .8fr) 1.2fr; gap: 30px; }
.step-number { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 6px; color: #a9583e; background: #f1e5e0; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.action-card > div p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.action-card form { display: grid; gap: 13px; }
.action-card .button { justify-self: start; }
.form-grid { grid-template-columns: 1fr 1fr; }
.form-grid .button { grid-column: 1 / -1; }
.setup-footer { padding: 20px 0; color: #89939a; text-align: center; font-size: 9px; }

.login-page { background: #f2f1ee; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 520px; }
.login-brand { padding: clamp(40px, 8vw, 120px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(135deg, #1b3448, #29485f); color: white; }
.login-brand .eyebrow { margin-top: 26px; color: #cbd5db; }
.login-brand h1 { margin: 10px 0 14px; font-size: clamp(42px, 6vw, 72px); line-height: .98; letter-spacing: -3px; font-weight: 600; }
.login-brand p:last-child { max-width: 440px; margin: 0; color: #ced7dc; font-size: 14px; line-height: 1.6; }
.login-card { width: min(100% - 48px, 350px); margin: auto; }
.login-card h2 { margin: 9px 0 28px; font-size: 32px; letter-spacing: -1.2px; }
.login-card form { display: grid; gap: 16px; }
.login-card .button { margin-top: 4px; }
.login-card .login-remember { color: #596973; font-size: 10px; font-weight: 650; line-height: 1.35; text-transform: none; }
.security-copy { margin: 22px 0 0; color: #88939a; font-size: 9px; line-height: 1.5; text-align: center; }
.public-root-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: #f2f1ee; }
.public-root-shell { width: min(100%, 520px); padding: clamp(34px, 8vw, 72px); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(29, 45, 57, .08); }
.public-root-shell .eyebrow { margin: 24px 0 8px; }
.public-root-shell h1 { margin: 0 0 18px; font-size: clamp(36px, 8vw, 58px); line-height: .98; letter-spacing: -2.4px; }
.public-root-shell p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 30px 20px 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fafaf8; }
.admin-brand { display: flex; align-items: center; gap: 12px; }
.admin-brand > span:last-child { display: grid; gap: 2px; }
.admin-brand strong { font-size: 14px; font-weight: 700; }
.admin-brand small { color: #8a949b; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 5px; margin-top: 55px; }
.sidebar nav a, .sidebar nav span { min-height: 41px; padding: 0 12px; display: flex; align-items: center; border-radius: 7px; color: #6e7981; font-size: 11px; font-weight: 650; }
.sidebar nav a.active { color: #203f56; background: #ebf0f3; }
.sidebar-user { margin-top: auto; padding: 14px 12px 10px; display: grid; gap: 3px; border-top: 1px solid #e7e9e9; }
.sidebar-user strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { color: #8a949b; font-size: 8px; }
.sidebar form { margin-top: auto; }
.logout-button { width: 100%; min-height: 38px; border: 1px solid #dfe3e5; border-radius: 7px; color: #69747c; background: white; cursor: pointer; font-size: 10px; font-weight: 650; }
.dashboard { min-width: 0; padding: 42px clamp(24px, 5vw, 70px) 60px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.dashboard-header h1 { margin: 8px 0 5px; font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -1.7px; }
.dashboard-header > div > p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.narrow-dashboard { max-width: 1120px; width: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 28px 0 17px; }
.stats article { min-height: 110px; padding: 18px; display: grid; align-content: space-between; border: 1px solid var(--line); border-radius: 9px; background: white; }
.stats span { color: #6e7a82; font-size: 10px; font-weight: 700; }
.stats strong { font-size: 29px; letter-spacing: -1px; }
.panel { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.panel > header { padding: 21px 22px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel h2 { margin: 0; font-size: 17px; letter-spacing: -.4px; }
.panel header p { margin: 6px 0 0; color: #7e8990; font-size: 10px; }
.empty-state { min-height: 150px; padding: 30px; display: grid; place-items: center; align-content: center; border-top: 1px solid #edf0f1; text-align: center; }
.empty-state strong { font-size: 12px; }
.empty-state p { margin: 7px 0 0; color: #879198; font-size: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th { padding: 11px 15px; color: #89949a; background: #f8f9f9; font-size: 8px; letter-spacing: .8px; text-align: left; text-transform: uppercase; }
td { padding: 13px 15px; border-top: 1px solid #edf0f1; color: #52606a; font-size: 10px; }
td strong, td small { display: block; }
td strong { color: #2a3a46; }
td small { margin-top: 3px; color: #939ca2; font-size: 8px; }
.table-link { display: block; }
.table-action { text-align: right; }
.text-link, .text-button { color: #294f69; font-size: 10px; font-weight: 750; }
.text-link:hover, .text-button:hover { color: #162f44; text-decoration: underline; }
.text-button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.status { padding: 5px 8px; border-radius: 99px; background: #edf1f3; }
.status-ready { color: #3f6f59; background: #e8f1ec; }
.status-muted { color: #7d858a; background: #eff1f1; }
.status-waiting { color: #7a5b4b; background: #f5ebe6; }
.status-in_progress { color: #315e79; background: #e8f0f4; }
.status-exported { color: #59606b; background: #eceef0; }
.status-cancelled { color: #8b3f37; background: #f8e9e7; }
.status-error { color: #8b3f37; background: #f8e9e7; }
.daily-stays-date-control { padding: 0 22px 20px; display: flex; flex-wrap: wrap; align-items: end; gap: 9px; border-bottom: 1px solid var(--line); }
.daily-stays-date-control label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .45px; text-transform: uppercase; }
.daily-stays-date-control input { min-height: 38px; }
.daily-stays-quick-links { display: flex; flex-wrap: wrap; gap: 7px; }
.daily-stays-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.daily-stays-list + .daily-stays-list { border-left: 1px solid var(--line); }
.daily-stays-list > header { padding: 15px 18px 12px; border-bottom: 1px solid #edf0f1; }
.daily-stays-list h3 { margin: 0; color: #334651; font-size: 12px; }
.daily-stays-list h3 span { color: #7d898f; font-size: 10px; }
.daily-stays-empty { min-height: 74px; margin: 0; padding: 18px; color: #879198; font-size: 10px; line-height: 1.45; }
.daily-stay-row { min-height: 74px; padding: 13px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; color: inherit; border-bottom: 1px solid #edf0f1; }
.daily-stay-row:hover { background: #fafbfb; }
.daily-stay-main, .daily-stay-dates { min-width: 0; display: grid; gap: 4px; }
.daily-stay-main strong { overflow: hidden; color: #2a3a46; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.daily-stay-main small, .daily-stay-dates small { color: #7f8b91; font-size: 8px; }
.daily-stay-dates { grid-column: 1; grid-row: 2; grid-auto-flow: column; justify-content: start; gap: 12px; }
.daily-stay-row > .status { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; font-size: 8px; }
@media (max-width: 720px) {
    .daily-stays-date-control { align-items: stretch; }
    .daily-stays-date-control label, .daily-stays-date-control > .button { width: 100%; }
    .daily-stays-quick-links { width: 100%; }
    .daily-stays-quick-links .button { flex: 1 1 calc(50% - 7px); text-align: center; }
    .daily-stays-grid { grid-template-columns: 1fr; }
    .daily-stays-list + .daily-stays-list { border-top: 1px solid var(--line); border-left: 0; }
}
.property-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #edf0f1; }
.property-list > a, .property-list > div { min-height: 70px; padding: 14px 22px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #edf0f1; }
.property-list > a:hover { background: #fafbfb; }
.property-list > a:nth-child(odd), .property-list > div:nth-child(odd) { border-right: 1px solid #edf0f1; }
.property-list p { margin: 0; }
.property-list strong, .property-list small { display: block; }
.property-list strong { font-size: 11px; }
.property-list small { margin-top: 4px; color: #879198; font-size: 8px; }
.property-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #aeb7bc; }
.property-dot-ready { background: #4f8a6c; box-shadow: 0 0 0 3px #e7f1eb; }
.property-dot-warning { background: #c87955; box-shadow: 0 0 0 3px #f7eae4; }
.property-dot-muted { background: #aeb7bc; box-shadow: 0 0 0 3px #eef1f2; }
.property-sync-state { display: inline-flex; align-items: center; gap: 9px; color: #758188; font-size: 9px; font-weight: 700; }

.card-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.entity-card { min-height: 250px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 9px; background: white; }
.entity-card > header { display: flex; align-items: center; justify-content: space-between; }
.entity-card h2 { margin: 24px 0 7px; font-size: 20px; letter-spacing: -.55px; }
.entity-card > p { margin: 0; color: #7c878e; font-size: 10px; }
.entity-card dl { margin: 22px 0; display: grid; gap: 10px; }
.entity-card dl div { display: grid; grid-template-columns: 105px 1fr; gap: 10px; }
.entity-card dt { color: #929ba1; font-size: 8px; text-transform: uppercase; letter-spacing: .65px; }
.entity-card dd { margin: 0; color: #46555f; font-size: 10px; }
.entity-card .button { margin-top: auto; align-self: flex-start; }
.operator-assignments { display: grid; gap: 6px; min-width: 180px; }
.operator-assignments a { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #294c61; font-size: 10px; }
.operator-assignments a:hover span { text-decoration: underline; }
.operator-assignments small { color: #8a949a; white-space: nowrap; }
.muted-value { color: #8a949a; font-size: 10px; }
.assigned-properties-panel { margin-top: 20px; }
.assigned-properties-list > div { min-height: 72px; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #edf0f1; }
.assigned-properties-list p { margin: 0; }
.assigned-properties-list strong, .assigned-properties-list small { display: block; }
.assigned-properties-list strong { font-size: 12px; }
.assigned-properties-list small { margin-top: 4px; color: #879198; font-size: 9px; }
.assigned-properties-list .button { flex: 0 0 auto; }
.beds24-status-grid { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 16px; }
.integration-status-card, .integration-scope-card { min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.integration-status-card h2, .integration-scope-card h2 { margin: 20px 0 10px; font-size: 20px; letter-spacing: -.55px; }
.integration-status-card > p, .integration-scope-card > p:last-child { margin: 0; color: #718089; font-size: 10px; line-height: 1.55; }
.integration-status-card dl { margin: 22px 0 0; display: grid; gap: 9px; }
.integration-status-card dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.integration-status-card dt { color: #8c969c; font-size: 8px; text-transform: uppercase; letter-spacing: .65px; }
.integration-status-card dd { margin: 0; color: #33444f; font-size: 10px; font-weight: 650; }
.integration-scope-card ul { margin: 13px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.integration-scope-card li { padding: 6px 9px; border-radius: 99px; color: #315e79; background: #e8f0f4; font-size: 9px; font-weight: 700; }
.beds24-connect-form { padding: 0 22px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px; }
.beds24-connect-form .button { white-space: nowrap; }
.beds24-preview-form { padding: 0 22px 22px; display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) auto; align-items: end; gap: 14px; }
.beds24-preview-form .button { white-space: nowrap; }
.preview-summary { padding: 13px 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid #edf0f1; background: #f8f9f9; }
.preview-summary strong { color: #2f4656; font-size: 10px; }
.preview-summary span { color: #7c878e; font-size: 9px; }
.booking-preview-table { min-width: 980px; }
.field-presence { display: flex; flex-wrap: wrap; gap: 5px; }
.field-presence span { padding: 4px 6px; border-radius: 99px; font-size: 8px; white-space: nowrap; }
.field-presence .present { color: #3f6f59; background: #e8f1ec; }
.field-presence .absent { color: #7d858a; background: #eff1f1; }
.beds24-safety-note { margin-top: 16px; }
.beds24-import-action { min-width: 190px; }
.beds24-import-action form { margin-top: 8px; }
.beds24-import-action small { display: block; margin-top: 5px; }
.small-button { padding: 9px 12px; min-height: 38px; font-size: 13px; white-space: normal; }
.inline-notice { margin: 0 22px 18px; }
.sync-review-notice { margin-top: 18px; }
.sync-review-notice p { margin: 6px 0 0; }
.sync-review-notice form { margin-top: 12px; }
.cancelled-token-card { border-color: #ead0cc; background: #fffafa; }

.edit-form { padding: 26px; overflow: visible; }
.edit-form fieldset { margin: 0 0 28px; padding: 0; border: 0; }
.edit-form legend { width: 100%; margin-bottom: 17px; padding-bottom: 10px; border-bottom: 1px solid #e8eaea; color: #263a48; font-size: 12px; font-weight: 750; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.admin-form-grid .span-2 { grid-column: 1 / -1; }
.checkbox-row { display: flex; grid-template-columns: none; align-items: center; gap: 9px; }
.checkbox-row input { width: 17px; min-height: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.form-actions { margin-top: 26px; padding-top: 20px; display: flex; gap: 10px; border-top: 1px solid #e8eaea; }
.form-note { margin: 4px 0 22px; padding: 15px 17px; border-radius: 7px; background: #f4f6f6; }
.form-note strong { font-size: 10px; }
.form-note p { margin: 5px 0 0; color: #738087; font-size: 9px; line-height: 1.55; }

.admin-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .75fr); gap: 16px; align-items: start; }
.flush-panel, .create-card { margin-top: 28px; }
.user-list { border-top: 1px solid #edf0f1; }
.user-list article { min-height: 76px; padding: 14px 20px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf0f1; }
.user-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #315168; background: #eaf0f3; font-size: 11px; font-weight: 800; }
.user-copy { min-width: 0; display: grid; gap: 3px; }
.user-copy strong { font-size: 10px; }
.user-copy small { overflow: hidden; color: #8a949b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.stack-form { padding: 0 22px 24px; display: grid; gap: 14px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 16px; }
.detail-card, .token-card { margin-top: 28px; }
.detail-list { margin: 0; border-top: 1px solid #edf0f1; }
.detail-list > div { min-height: 52px; padding: 12px 22px; display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 15px; border-bottom: 1px solid #edf0f1; }
.detail-list dt { color: #8c969c; font-size: 8px; text-transform: uppercase; letter-spacing: .65px; }
.detail-list dd { margin: 0; color: #33444f; font-size: 10px; font-weight: 650; }
.token-copy { padding: 0 22px 18px; color: #6f7c84; font-size: 10px; line-height: 1.55; }
.token-copy p { margin: 0 0 10px; }
.token-copy small { color: #919ba0; font-size: 8px; }
.token-card form { padding: 0 22px 22px; }
.beds24-publish-card > p { margin: 0; padding: 0 22px 18px; color: #6f7c84; font-size: 10px; line-height: 1.55; }
.published-registration-link { margin: 0 22px 18px; padding: 15px; display: grid; gap: 9px; border: 1px solid #dbe8e0; border-radius: 8px; background: #f3f8f5; }
.published-registration-link > strong { color: #355f4c; font-size: 10px; }
.published-registration-link input { color: #284e67; background: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.published-registration-link > .button { justify-self: start; }
.published-registration-link small { color: #6f7f77; font-size: 8px; line-height: 1.5; }
.publish-link-form { display: grid; gap: 14px; }
.publish-confirmation { grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; color: #7a5c51; font-size: 9px; line-height: 1.5; }
.publish-confirmation input { width: 17px; min-height: 17px; height: 17px; margin-top: 1px; accent-color: var(--blue); }
.publish-link-form .button { justify-self: start; }
.generated-link { margin-top: 11px; display: grid; gap: 6px; color: #46545e; font-size: 10px; font-weight: 700; }
.generated-link input { color: #284e67; background: rgba(255,255,255,.8); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.copy-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.copy-button { min-width: 100px; min-height: 44px; white-space: nowrap; }
.copy-button.is-copied { color: #35634e; border-color: #bcd5c7; background: #eef6f1; }
.copy-feedback { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.inline-copy-control { margin: 0 3px; display: inline-flex; vertical-align: middle; gap: 5px; }
.inline-copy-control code { max-width: 100%; padding: 4px 7px; border-radius: 5px; color: #294f69; background: #eef3f5; font-size: 9px; overflow-wrap: anywhere; }
.inline-copy-button { min-height: 27px; padding: 0 8px; border: 1px solid #d5dde1; border-radius: 5px; color: #365469; background: #fff; cursor: pointer; font-size: 8px; font-weight: 750; }
.inline-copy-button:hover { background: #f4f7f8; }
.database-update-card { margin: 20px 0 0; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #d9c3b9; border-radius: 9px; background: #fbf4f0; }
.database-update-card strong { font-size: 11px; }
.database-update-card p { max-width: 680px; margin: 5px 0 0; color: #776e69; font-size: 9px; line-height: 1.55; }
.database-update-card form { flex: 0 0 auto; }
.country-filters { margin: 24px 0 14px; padding: 17px 19px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(190px, .55fr) auto; align-items: end; gap: 14px; border: 1px solid #dde2e3; border-radius: 9px; background: #fff; }
.country-filters .button { min-height: 43px; }
.admin-rule-note { margin-bottom: 14px; padding: 14px 17px; border-left: 3px solid #d39a84; border-radius: 6px; background: #f6f3f0; }
.admin-rule-note strong { font-size: 10px; }
.admin-rule-note p { margin: 4px 0 0; color: #747f85; font-size: 9px; line-height: 1.55; }
.guest-progress-card { grid-column: 1 / -1; }
.registration-progress-list article { min-height: 68px; padding: 13px 20px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 13px; border-top: 1px solid #edf0f1; }
.registration-progress-list article > div { min-width: 0; display: grid; gap: 4px; }
.registration-progress-list strong { font-size: 10px; }
.registration-progress-list small { color: #8a949b; font-size: 8px; }
.guest-order-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #315168; background: #eaf0f3; font-size: 9px; font-weight: 800; }
.compact-empty { min-height: 150px; }

.guest-page { padding: 0 18px 44px; background: linear-gradient(90deg, rgba(197,107,79,.065) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(rgba(34,63,87,.04) 1px, transparent 1px) 0 0 / 64px 64px, #f4f2ee; }
.guest-topbar { width: min(100%, 880px); height: 82px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.guest-card { width: min(100%, 640px); margin: 16px auto 0; padding: 48px 58px 38px; border: 1px solid #dedfdd; border-radius: 10px; background: rgba(255,255,255,.97); box-shadow: 0 18px 48px rgba(32,45,55,.075); }
.guest-card h1 { margin: 9px 0 0; font-size: clamp(30px, 6vw, 42px); line-height: 1.08; letter-spacing: -1.8px; font-weight: 610; }
.guest-lead { margin: 17px 0 22px; color: #66727c; font-size: 14px; line-height: 1.65; }
.guest-address { color: #8b6e62; font-size: 10px; font-weight: 700; }
.stay-grid { margin-top: 22px; padding: 19px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e6e8e8; border-bottom: 1px solid #e6e8e8; }
.stay-grid > div { padding: 0 14px; display: grid; gap: 5px; border-right: 1px solid #e6e8e8; }
.stay-grid > div:first-child { padding-left: 0; }
.stay-grid > div:last-child { border-right: 0; }
.stay-grid span { color: #899399; font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }
.stay-grid strong { font-size: 11px; }
.privacy-box { margin-top: 22px; padding: 14px 16px; border-left: 3px solid #d49a85; border-radius: 4px; background: #f6f3f0; }
.privacy-box strong { font-size: 11px; }
.privacy-box p { margin: 5px 0 0; color: #78838a; font-size: 9px; line-height: 1.55; }

.centered-page { padding: 24px; display: grid; place-items: center; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.guest-form-page {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background-color: #f5f3ef;
    background-image:
        linear-gradient(90deg, rgba(197,107,79,.055) 1px, transparent 1px),
        linear-gradient(rgba(34,63,87,.035) 1px, transparent 1px);
    background-position: 0 0, 0 0;
    background-size: 72px 72px, 72px 72px;
    background-repeat: repeat, repeat;
}
.guest-form-page::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: clamp(210px, 16vw, 320px);
    right: 0;
    left: 0;
    height: clamp(390px, 33.4vw, 725px);
    pointer-events: none;
    background-image:
        linear-gradient(180deg, rgba(245,243,239,.18), rgba(245,243,239,.03) 58%, rgba(245,243,239,.22)),
        url("/assets/bratislava-panorama-v1.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .78;
    filter: saturate(.78) contrast(.94);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 80%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 80%, transparent 100%);
}
.guest-registration-topbar,
.guest-registration-shell,
.guest-completion-shell {
    position: relative;
    z-index: 1;
}
.guest-registration-topbar {
    width: min(100% - 36px, 1040px);
    min-height: 84px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.guest-property-brand { min-width: 0; display: flex; align-items: center; gap: 12px; }
.guest-property-brand > span:last-child { min-width: 0; display: grid; gap: 3px; }
.guest-property-brand strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.guest-property-brand small { color: #77858d; font-size: 11px; letter-spacing: .85px; text-transform: uppercase; }
.language-select { display: block; }
.language-select select { width: auto; min-width: 132px; min-height: 44px; padding: 0 36px 0 15px; border-radius: 999px; color: #536773; background-color: rgba(255,255,255,.92); font-size: 14px; font-weight: 750; }

.guest-registration-shell { width: min(100% - 30px, 920px); margin: 0 auto; padding: 26px 0 70px; }
.guest-booking-summary {
    display: grid;
    grid-template-columns: minmax(250px, 1.8fr) repeat(3, minmax(105px, .65fr));
    border: 1px solid #dde1e2;
    border-radius: 10px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 10px 32px rgba(35,49,58,.045);
}
.guest-booking-summary > div { min-height: 82px; padding: 17px 19px; display: grid; align-content: center; gap: 5px; border-right: 1px solid #e6e9e9; }
.guest-booking-summary > div:last-child { border-right: 0; }
.guest-booking-summary span { color: #7d898f; font-size: 11px; font-weight: 750; letter-spacing: .65px; text-transform: uppercase; }
.guest-booking-summary strong { font-size: 15px; }
.guest-booking-summary small { color: #7f8b91; font-size: 12px; line-height: 1.4; }

.guest-form-intro { padding: 54px 8px 28px; }
.guest-form-intro h1 { max-width: 700px; margin: 10px 0 12px; font-size: clamp(34px, 6vw, 54px); line-height: 1.02; letter-spacing: -2.3px; font-weight: 610; }
.guest-form-intro > p:last-child { max-width: 660px; margin: 0; color: #596973; font-size: 16px; line-height: 1.65; }

.guest-progress { margin-bottom: 16px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #dfe3e4; border-radius: 9px; background: rgba(255,255,255,.82); }
.guest-progress-copy { display: grid; gap: 4px; }
.guest-progress-copy strong { font-size: 15px; }
.guest-progress-copy span { color: #75838a; font-size: 12px; }
.guest-progress-steps { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.guest-progress-steps a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #d8dee0; border-radius: 50%; color: #69777f; background: #fff; font-size: 13px; font-weight: 800; }
.guest-progress-steps a.current { color: #fff; border-color: var(--blue); background: var(--blue); }
.guest-progress-steps a.ready:not(.current) { color: #3f6f59; border-color: #c9ddd2; background: #e8f1ec; }

.form-error-summary { margin-bottom: 16px; padding: 15px 17px; border: 1px solid #e4c9c2; border-radius: 8px; color: #8b443c; background: #f9eeeb; }
.form-error-summary strong { font-size: 15px; }
.form-error-summary p { margin: 5px 0 0; font-size: 13px; }

.guest-data-form { display: grid; gap: 14px; }
.guest-manual-card { padding: 20px 22px; display: flex; align-items: flex-start; gap: 14px; border: 1px solid #c9ddd2; border-left: 4px solid #4f8a6d; border-radius: 10px; background: rgba(238,247,242,.98); box-shadow: 0 12px 30px rgba(28,44,53,.05); }
.guest-manual-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #35664f; background: #d8ebe0; font-size: 17px; font-weight: 900; }
.guest-manual-card h2 { margin: 1px 0 5px; font-size: 18px; letter-spacing: -.25px; }
.guest-manual-card p { max-width: 690px; margin: 0; color: #5d7167; font-size: 13px; line-height: 1.55; }
.guest-ocr-card { padding: 23px 25px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; border: 1px solid #b8ced2; border-left: 4px solid #315f6e; border-radius: 10px; background: rgba(239,247,247,.98); box-shadow: 0 12px 30px rgba(28,44,53,.06); }
.guest-ocr-copy { min-width: 0; display: flex; align-items: flex-start; gap: 13px; }
.guest-ocr-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; color: #31556a; background: #dfeaed; font-size: 18px; }
.guest-ocr-copy h2 { margin: 1px 0 5px; font-size: 18px; letter-spacing: -.25px; }
.guest-ocr-copy p { max-width: 600px; margin: 0; color: #64747c; font-size: 12px; line-height: 1.55; }
.guest-ocr-document-choice { display: grid; grid-template-columns: max-content minmax(156px, 220px); align-items: center; gap: 9px; margin-top: 12px; color: #50626c; font-size: 11px; font-weight: 750; }
.guest-ocr-document-choice select { min-height: 38px; padding: 7px 29px 7px 10px; border: 1px solid #adc4c9; border-radius: 6px; color: #294552; background: #fff; font: inherit; }
.guest-ocr-button { position: relative; overflow: hidden; white-space: nowrap; cursor: pointer; }
.guest-ocr-button input[type="file"] { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.guest-ocr-button:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.guest-ocr-card [data-ocr-id-sides] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; align-items: center; }
.guest-ocr-card [data-ocr-id-sides] .guest-ocr-button { text-align: center; }
.guest-ocr-card [data-ocr-side-status] { min-height: 1.2em; color: #426b58; font-size: 11px; }
.guest-ocr-privacy { grid-column: 1 / -1; margin: 0; padding-top: 11px; border-top: 1px solid #dae4e6; color: #64747c; font-size: 11px; line-height: 1.5; }
.guest-ocr-status { grid-column: 1 / -1; padding: 12px 14px; border-radius: 6px; color: #385a69; background: #e5eef1; font-size: 12px; font-weight: 650; line-height: 1.5; }
.guest-ocr-status[data-state="success"] { color: #355f4c; background: #e4f0e9; }
.guest-ocr-status[data-state="warning"] { color: #765a25; background: #f7f0dc; }
.guest-ocr-status[data-state="error"] { color: #8a473f; background: #f7eae7; }
.guest-ocr-diagnostics { grid-column: 1 / -1; color: #64747c; font-size: 11px; line-height: 1.45; }
.guest-form-section { padding: 24px 26px 27px; border: 1px solid #dfe2e2; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 9px 26px rgba(28,44,53,.035); }
.guest-form-section > header { margin-bottom: 22px; display: flex; align-items: flex-start; gap: 13px; }
.guest-form-section > header > span { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; color: #a9583e; background: #f3e7e2; font-size: 12px; font-weight: 850; letter-spacing: .5px; }
.guest-form-section > header > div { display: grid; gap: 5px; }
.guest-form-section h2 { margin: 0; font-size: 21px; letter-spacing: -.45px; }
.guest-form-section header p { margin: 0; color: #77848b; font-size: 12px; line-height: 1.5; }
.guest-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.guest-field-grid + .guest-field-grid { margin-top: 17px; }
.guest-field-grid .span-2 { grid-column: 1 / -1; }
.guest-data-form label { gap: 8px; font-size: 14px; }
.guest-data-form input, .guest-data-form select { min-height: 47px; }
.guest-data-form .is-invalid { border-color: #bd6b5e; background: #fffafa; box-shadow: 0 0 0 3px rgba(189,107,94,.09); }
.field-error { display: block; color: #934b42; font-size: 11px; font-weight: 700; line-height: 1.4; }
.guest-confirmation .field-error { flex-basis: 100%; padding-left: 29px; }
.manual-data-review { margin-bottom: 16px; padding: 16px; border: 1px solid #e0e5e5; border-radius: 8px; background: #f7f9f9; }
.manual-data-review dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.manual-data-review dl > div { min-width: 0; }
.manual-data-review dt { margin-bottom: 3px; color: #7a878e; font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.manual-data-review dd { margin: 0; overflow-wrap: anywhere; color: #263944; font-size: 13px; font-weight: 700; }
.country-combobox { position: relative; }
.country-combobox.is-open { z-index: 30; }
.country-search-input { padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, #718089 50%), linear-gradient(135deg, #718089 50%, transparent 50%); background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.country-search-input::-webkit-search-cancel-button { display: none; }
.country-results { position: absolute; top: calc(100% + 6px); right: 0; left: 0; max-height: 286px; overflow-y: auto; border: 1px solid #cfd7da; border-radius: 8px; background: #fff; box-shadow: 0 16px 38px rgba(26,42,52,.16); }
.country-results:empty { display: none; }
.country-results [role="option"] { min-height: 47px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #344650; background: #fff; cursor: pointer; }
.country-results [role="option"] + [role="option"] { border-top: 1px solid #edf0f1; }
.country-results [role="option"]:hover, .country-results [role="option"].is-active { background: #eef3f5; }
.country-results [role="option"] span { font-size: 14px; font-weight: 650; }
.country-results [role="option"] small { color: #7a878e; font-size: 11px; font-weight: 700; }
.birth-date-segments { display: grid; grid-template-columns: 76px minmax(125px, 1fr) 94px; gap: 9px; }
.birth-date-segments > div { min-width: 0; display: grid; gap: 6px; }
.birth-date-segments small { color: #758289; font-size: 11px; font-weight: 650; }
.birth-date-segments.is-invalid select, .birth-date-segments.is-invalid input { border-color: #bd6b5e; background: #fffafa; box-shadow: 0 0 0 3px rgba(189,107,94,.09); }
.ocr-field-review > input:not([type="hidden"]), .ocr-field-review > select, .ocr-field-review .country-search-input, .ocr-field-review .birth-date-segments input, .ocr-field-review .birth-date-segments select { border-color: #78a491; background-color: #f4faf7; box-shadow: 0 0 0 3px rgba(83,139,113,.11); }
.ocr-field-review > span:first-child::after { content: " ✓"; color: #4b8669; font-size: 12px; }
.ocr-field-review [data-ocr-confidence] { display: block; margin-top: 6px; color: #4b735e; font-size: 10px; font-weight: 700; }
.ocr-confidence-medium > input:not([type="hidden"]), .ocr-confidence-medium > select, .ocr-confidence-medium .country-search-input, .ocr-confidence-medium .birth-date-segments input, .ocr-confidence-medium .birth-date-segments select { border-color: #b79652; background: #fffaf0; box-shadow: 0 0 0 3px rgba(183,150,82,.12); }
.ocr-confidence-medium [data-ocr-confidence] { color: #876820; }
.context-hint, .travel-mode-hint { margin: 17px 0 0; padding: 13px 15px; border-radius: 6px; color: #66747b; background: #f4f6f5; font-size: 13px; line-height: 1.55; }
.context-hint p, .travel-mode-hint { margin-top: 17px; margin-bottom: 0; }
.country-suggestion-note { display: block; margin-top: 8px; color: #69777e; font-size: 12px; font-weight: 500; line-height: 1.45; }
.guest-confirmation { padding: 17px; display: flex; grid-template-columns: none; align-items: flex-start; gap: 12px; border: 1px solid #dce2e3; border-radius: 8px; background: #f8f9f8; font-size: 15px !important; line-height: 1.5; cursor: pointer; }
.guest-confirmation input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--blue); }
.guest-confirmation.is-invalid { border-color: #bd6b5e; background: #fff8f6; }
.legal-reality-note { margin-top: 15px; padding: 14px 16px; border-left: 3px solid #d99a84; border-radius: 5px; background: #f6f3f0; }
.legal-reality-note strong { font-size: 13px; }
.legal-reality-note p { margin: 6px 0 0; color: #66747b; font-size: 12px; line-height: 1.55; }

.guest-form-actions { padding: 10px 3px 0; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; }
.guest-form-actions > div:first-child { justify-self: start; }
.guest-form-actions .button { font-size: 14px; }
.save-state { color: #6e7c83; font-size: 12px; }
.save-state[data-state="saving"] { color: #526b7b; }
.save-state[data-state="error"] { color: var(--danger); }
.guest-form-actions button:disabled { opacity: .65; cursor: wait; }
.autosave-privacy { margin: -2px 3px 0; color: #77848b; font-size: 12px; line-height: 1.5; text-align: right; }
.guest-privacy-card { margin-top: 20px; padding: 19px 21px; border: 1px solid #e0e3e3; border-radius: 9px; background: rgba(255,255,255,.62); }
.guest-privacy-card strong { font-size: 14px; }
.guest-privacy-card p { margin: 7px 0; color: #66747b; font-size: 13px; line-height: 1.55; }
.guest-privacy-card small { color: #7e898f; font-size: 12px; }

.guest-completion-shell { width: min(100% - 30px, 720px); margin: 0 auto; padding: 60px 0 80px; }
.guest-completion-card { padding: clamp(28px, 7vw, 58px); border: 1px solid #dce1e1; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 18px 55px rgba(30,45,53,.075); }
.completion-mark { width: 54px; height: 54px; margin-bottom: 28px; display: grid; place-items: center; border-radius: 50%; color: #376650; background: #e5f0e9; font-size: 20px; font-weight: 800; }
.guest-completion-card h1 { margin: 10px 0 14px; font-size: clamp(31px, 6vw, 48px); line-height: 1.05; letter-spacing: -1.9px; font-weight: 610; }
.guest-completion-card > p:not(.eyebrow) { margin: 0; color: #596973; font-size: 16px; line-height: 1.65; }
.completion-stay { margin: 28px 0; padding: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e6e8e8; border-bottom: 1px solid #e6e8e8; }
.completion-stay > div { padding: 0 15px; display: grid; gap: 5px; border-right: 1px solid #e6e8e8; }
.completion-stay > div:first-child { padding-left: 0; }
.completion-stay > div:last-child { border-right: 0; }
.completion-stay span { color: #7d898f; font-size: 11px; text-transform: uppercase; letter-spacing: .65px; }
.completion-stay strong { font-size: 15px; }
.completion-edit-list { display: grid; }
.completion-edit-list > strong { margin-bottom: 8px; font-size: 14px; }
.completion-edit-list a { min-height: 48px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf0f0; color: #315168; font-size: 13px; font-weight: 700; }
.completion-edit-list a:hover { background: #f8faf9; }
.guest-submission-review { margin: 24px 0; border: 1px solid #dfe4e4; border-radius: 9px; overflow: hidden; background: #fbfcfb; }
.guest-submission-review > header { padding: 18px 19px; border-bottom: 1px solid #e5e8e8; }
.guest-submission-review h2 { margin: 0; font-size: 18px; letter-spacing: -.25px; }
.guest-submission-review header p { margin: 5px 0 0; color: #69777f; font-size: 12px; line-height: 1.5; }
.guest-submission-review details + details { border-top: 1px solid #e5e8e8; }
.guest-submission-review summary { min-height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #315168; cursor: pointer; }
.guest-submission-review summary span { font-size: 13px; font-weight: 750; }
.guest-submission-review summary strong { color: #172832; font-size: 13px; text-align: right; }
.guest-submission-review dl { margin: 0; padding: 17px 18px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 20px; border-top: 1px solid #edf0f0; background: #fff; }
.guest-submission-review dl div { min-width: 0; display: grid; gap: 4px; }
.guest-submission-review dt { color: #7d898f; font-size: 10px; font-weight: 780; letter-spacing: .55px; text-transform: uppercase; }
.guest-submission-review dd { margin: 0; color: #334851; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.guest-submission-review .sensitive-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 720; }
.review-unavailable { margin: 0; padding: 18px; border-top: 1px solid #edf0f0; color: #8a473f; background: #fff8f6; font-size: 12px; line-height: 1.5; }
.guest-completion-card .notice small { display: block; margin-top: 7px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.account-password-card { margin-bottom: 20px; }
.account-password-form { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }

@media (max-width: 860px) {
    .account-password-form { grid-template-columns: 1fr 1fr; }
    .guest-form-page::before { top: 230px; height: 480px; background-size: 1440px auto; background-position: 51% center; }
    .guest-registration-shell { width: min(100% - 26px, 920px); }
    .guest-booking-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .guest-booking-summary > div:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid #e6e9e9; }
    .guest-form-intro { padding-top: 44px; }
    .guest-form-intro h1 { max-width: 620px; }
}

@media (max-width: 700px) {
    .account-password-form { grid-template-columns: 1fr; }
    .guest-form-page::before { top: 250px; height: 460px; background-size: 1080px auto; background-position: 53% center; opacity: .68; }
    .guest-registration-topbar { width: min(100% - 26px, 1040px); min-height: 72px; }
    .guest-property-brand strong { font-size: 14px; }
    .language-select select { min-width: 96px; }
    .guest-registration-shell { width: min(100% - 22px, 920px); padding-top: 10px; }
    .guest-booking-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guest-booking-summary > div { min-height: 68px; padding: 13px 12px; }
    .guest-booking-summary > div:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid #e6e9e9; }
    .guest-booking-summary > div:nth-child(3) { border-right: 0; }
    .guest-booking-summary > div:last-child { grid-column: 1 / -1; border-top: 1px solid #e6e9e9; }
    .guest-booking-summary small { white-space: normal; }
    .guest-form-intro { padding: 38px 4px 23px; }
    .guest-progress { align-items: flex-start; flex-direction: column; }
    .guest-progress-steps { justify-content: flex-start; }
    .guest-form-section { padding: 20px 16px 22px; }
    .guest-manual-card { padding: 18px 16px; }
    .guest-ocr-card { grid-template-columns: 1fr; padding: 19px 17px; }
    .guest-ocr-document-choice { grid-template-columns: 1fr; gap: 5px; }
    .guest-ocr-document-choice select { width: 100%; }
    .guest-ocr-button { width: 100%; }
    .guest-field-grid { grid-template-columns: 1fr; gap: 14px; }
    .manual-data-review dl { grid-template-columns: 1fr; }
    .guest-submission-review dl { grid-template-columns: 1fr; }
    .guest-submission-review summary { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 11px; padding-bottom: 11px; }
    .guest-submission-review summary strong { text-align: left; }
    .guest-field-grid .span-2 { grid-column: auto; }
    .birth-date-segments { grid-template-columns: 68px minmax(112px, 1fr) 86px; gap: 7px; }
    .guest-form-actions { grid-template-columns: 1fr; }
    .guest-form-actions > div:first-child, .guest-form-actions .button, .guest-form-actions button { width: 100%; }
    .save-state { grid-row: 1; text-align: center; }
    .autosave-privacy { text-align: center; }
    .guest-completion-shell { padding-top: 26px; }
    .completion-stay { grid-template-columns: 1fr; gap: 13px; }
    .completion-stay > div { padding: 0; border-right: 0; }
}

@media (max-width: 430px) {
    .copy-control:not(.inline-copy-control) { grid-template-columns: 1fr; }
    .copy-control:not(.inline-copy-control) .copy-button { width: 100%; }
    .guest-form-page { background-size: 64px 64px, 64px 64px; }
    .guest-form-page::before { top: 270px; height: 430px; background-size: 930px auto; background-position: 58% center; opacity: .63; }
    .guest-registration-topbar { width: calc(100% - 20px); gap: 10px; }
    .guest-property-brand { gap: 9px; }
    .guest-property-brand strong { font-size: 13px; }
    .guest-property-brand small { display: none; }
    .language-select select { min-width: 86px; min-height: 42px; padding-left: 12px; font-size: 13px; }
    .guest-registration-shell { width: calc(100% - 16px); }
    .guest-form-intro { padding: 32px 3px 20px; }
    .guest-form-intro h1 { font-size: 32px; letter-spacing: -1.4px; }
    .guest-form-intro > p:last-child { font-size: 15px; line-height: 1.55; }
    .guest-progress { padding: 14px; }
    .guest-progress-steps a { width: 34px; height: 34px; }
    .guest-form-section { padding: 18px 13px 20px; }
    .guest-manual-card { padding: 16px 13px; gap: 10px; }
    .guest-ocr-card { padding: 17px 13px; }
    .guest-ocr-copy { gap: 10px; }
    .guest-form-section > header { margin-bottom: 18px; gap: 10px; }
    .guest-form-section > header > span { width: 34px; height: 34px; }
    .guest-form-section h2 { font-size: 19px; }
    .guest-data-form input, .guest-data-form select { min-height: 48px; font-size: 16px; }
    .birth-date-segments { grid-template-columns: minmax(0, .85fr) minmax(0, 1.55fr) minmax(0, 1.05fr); gap: 6px; }
    .birth-date-segments input, .birth-date-segments select { padding-right: 7px; padding-left: 7px; }
    .country-results { max-height: 48vh; }
    .guest-confirmation { padding: 15px 13px; }
    .guest-privacy-card { padding: 17px 15px; }
}
.message-card { width: min(100%, 480px); padding: 44px; border: 1px solid var(--line); border-radius: 10px; background: white; }


/* Wave 5A: registration review, print-to-PDF and guarded XML architecture */
.registration-review-card { grid-column: 1 / -1; }
.review-card-actions { padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); }
.submission-tracking-form { padding: 22px 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 13px; border-top: 1px solid var(--line); background: #fafaf8; }
.submission-tracking-form label { min-width: 0; }
.submission-tracking-form .button { min-height: 46px; }
.export-boundary-note { margin: 0; padding: 17px 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.review-error-list, .inline-validation-errors ul { margin: 10px 0 0; padding-left: 19px; }
.review-error-list li + li, .inline-validation-errors li + li { margin-top: 5px; }
.review-context-card { margin-bottom: 18px; }
.review-summary-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review-guest-list { display: grid; gap: 18px; }
.review-guest-card > header { align-items: flex-start; }
.review-guest-card > header .eyebrow { margin-bottom: 6px; }
.inline-validation-errors { margin: 0 26px 20px; padding: 15px 17px; border-left: 3px solid #c8735b; border-radius: 5px; color: #7c4a3f; background: #f9efec; font-size: 12px; }
.review-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.review-data-grid section { padding: 22px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review-data-grid section:nth-child(2n) { border-right: 0; }
.review-data-grid section:nth-last-child(-n+2) { border-bottom: 0; }
.review-data-grid h3 { margin: 0 0 15px; font-size: 15px; }
.review-data-grid dl { margin: 0; display: grid; gap: 12px; }
.review-data-grid dl div { display: grid; gap: 4px; }
.review-data-grid dt { color: #859198; font-size: 10px; font-weight: 780; letter-spacing: .65px; text-transform: uppercase; }
.review-data-grid dd { margin: 0; color: #40525d; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.review-data-grid .sensitive-value { color: #192833; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 750; letter-spacing: .3px; }
.review-decision-card { margin-top: 18px; }
.review-decision-form { padding: 24px 26px; display: grid; gap: 17px; }
.review-decision-form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; font: inherit; line-height: 1.5; resize: vertical; }
.guest-book-classification-card { margin-top: 18px; }
.guest-book-classification-form { padding: 24px 26px; display: grid; gap: 16px; }
.guest-book-classification-form fieldset { margin: 0; padding: 17px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 13px; }
.guest-book-classification-form legend { padding: 0 7px; color: var(--ink); font-weight: 780; }
.guest-book-classification-form fieldset > label:not(.checkbox-row) { display: grid; gap: 7px; }
.guest-book-classification-form fieldset > label:not(.checkbox-row) > span { color: #718089; font-size: 10px; font-weight: 780; letter-spacing: .55px; text-transform: uppercase; }
.guest-book-classification-form input[type="text"] { width: 100%; box-sizing: border-box; padding: 12px 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; font: inherit; }
.guest-book-classification-readonly { padding: 22px 26px; }
.guest-book-classification-readonly p { margin: 0 0 8px; color: var(--muted); }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.review-actions button:disabled { opacity: .45; cursor: not-allowed; }
.danger-button { color: #8a493d; border-color: #dfc1ba; }
.export-status-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.export-status-card { padding: 27px 29px; }
.export-status-card h2 { margin: 7px 0 10px; font-size: 25px; letter-spacing: -.8px; }
.export-status-card > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.65; }
.export-status-card dl { margin: 18px 0; display: grid; gap: 9px; }
.export-status-card dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.export-status-card dt { color: #869199; font-size: 10px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; }
.export-status-card dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.blocking-copy { padding: 12px 14px; border-radius: 5px; color: #815045 !important; background: #f8efec; }
.xml-disabled-notice { margin-bottom: 18px; }
.validation-reasons { max-width: 440px; margin-top: 7px; display: block; color: #87594e; line-height: 1.45; }

.police-print-page { margin: 0; color: #18252e; background: #e7eaeb; font-family: Arial, Helvetica, sans-serif; }
.print-toolbar { position: sticky; top: 0; z-index: 10; min-height: 74px; padding: 12px max(18px, calc((100vw - 210mm) / 2)); display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.96); box-shadow: 0 4px 18px rgba(25,38,46,.12); }
.print-toolbar p { min-width: 0; flex: 1; margin: 0; display: grid; gap: 3px; }
.print-toolbar p strong { font-size: 13px; }
.print-toolbar p span { color: #68767e; font-size: 11px; }
.print-legal-warning { width: 210mm; margin: 16px auto; padding: 11px 14px; border: 1px solid #d7a897; border-radius: 5px; color: #734c40; background: #fff6f2; font-size: 11px; line-height: 1.45; }
.police-form-sheet { box-sizing: border-box; width: 210mm; min-height: 297mm; margin: 16px auto; padding: 15mm 15mm 12mm; background: #fff; box-shadow: 0 8px 30px rgba(26,38,44,.14); page-break-after: always; }
.police-form-sheet:last-child { page-break-after: auto; }
.police-form-header { padding-bottom: 7mm; display: flex; justify-content: space-between; gap: 14mm; border-bottom: 2px solid #1c3444; }
.police-form-header p { margin: 0 0 2mm; color: #a6573f; font-size: 9pt; font-weight: 800; letter-spacing: 1.1pt; }
.police-form-header h1 { margin: 0 0 2mm; font-size: 19pt; letter-spacing: -.4pt; }
.police-form-header span { color: #617078; font-size: 8.5pt; }
.form-reference { min-width: 36mm; display: grid; align-content: start; gap: 2mm; text-align: right; }
.form-reference small { color: #748188; font-size: 7.5pt; text-transform: uppercase; }
.form-reference strong { font-size: 10pt; overflow-wrap: anywhere; }
.police-form-sheet section { margin-top: 6mm; break-inside: avoid; page-break-inside: avoid; }
.police-form-sheet section h2 { margin: 0 0 3mm; padding-bottom: 2mm; border-bottom: 1px solid #b9c1c5; font-size: 10pt; text-transform: uppercase; letter-spacing: .45pt; }
.police-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #ccd2d4; border-left: 1px solid #ccd2d4; }
.police-form-grid > div { min-height: 15mm; padding: 3mm; display: grid; align-content: start; gap: 2mm; border-right: 1px solid #ccd2d4; border-bottom: 1px solid #ccd2d4; }
.police-form-grid .wide { grid-column: 1 / -1; }
.police-form-grid span, .signature-section span { color: #647179; font-size: 7pt; line-height: 1.25; text-transform: uppercase; letter-spacing: .25pt; }
.police-form-grid strong { font-size: 9pt; line-height: 1.3; overflow-wrap: anywhere; }
.signature-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm; }
.signature-section > div { min-height: 22mm; padding-top: 3mm; display: grid; align-content: space-between; gap: 9mm; border-top: 1px solid #89959b; }
.signature-section strong { font-size: 8.5pt; }
.police-form-sheet footer { margin-top: 6mm; padding-top: 3mm; border-top: 1px solid #d9dddf; color: #7a858b; font-size: 6.5pt; text-align: center; }

@media (max-width: 900px) {
    .submission-tracking-form { grid-template-columns: 1fr; }
    .review-summary-list, .review-data-grid, .export-status-grid { grid-template-columns: 1fr; }
    .review-data-grid section, .review-data-grid section:nth-child(2n), .review-data-grid section:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
    .review-data-grid section:last-child { border-bottom: 0; }
    .police-print-page { overflow-x: auto; }
    .print-toolbar { position: static; min-width: 760px; padding: 12px 18px; }
    .print-legal-warning, .police-form-sheet { margin-right: 16px; margin-left: 16px; }
}

@media (max-width: 620px) {
    .review-card-actions, .review-actions { flex-direction: column; }
    .review-card-actions .button, .review-actions .button { width: 100%; }
    .review-data-grid section, .review-decision-form, .guest-book-classification-form { padding-right: 17px; padding-left: 17px; }
    .export-status-card { padding: 22px 19px; }
}

@media print {
    @page { size: A4 portrait; margin: 0; }
    .police-print-page { background: #fff; }
    .print-toolbar, .print-legal-warning { display: none !important; }
    .police-form-sheet { width: 210mm; min-height: 297mm; margin: 0; box-shadow: none; }
}
.message-card .eyebrow { margin-top: 24px; }
.message-card h1 { margin: 10px 0 12px; font-size: 30px; letter-spacing: -1.2px; }
.message-card > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.generated-webhook { margin-top: 14px; display: grid; gap: 11px; }
.generated-webhook small { color: #62736b; font-size: 12px; line-height: 1.5; }
.beds24-webhook-panel > header { align-items: flex-start; }
.webhook-setup-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.webhook-setup-grid > div { padding: 28px 32px; }
.webhook-setup-grid > div + div { border-left: 1px solid var(--line); }
.webhook-setup-grid h3, .webhook-events h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.35px; }
.webhook-setup-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.webhook-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.webhook-status-details { margin: 23px 0 0; display: grid; gap: 10px; }
.webhook-status-details > div { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 12px; }
.webhook-status-details dt { color: #87939a; font-size: 10px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; }
.webhook-status-details dd { margin: 0; color: #51646f; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.webhook-instructions { background: #fafaf8; }
.webhook-instructions ol { margin: 13px 0 16px; padding-left: 20px; color: #52646e; font-size: 13px; line-height: 1.65; }
.webhook-instructions li + li { margin-top: 6px; }
.webhook-events { border-top: 1px solid var(--line); }
.webhook-events > h3 { padding: 24px 32px 13px; }
.webhook-events td small { max-width: 320px; margin-top: 5px; display: block; color: #8a5a51; line-height: 1.45; }

@media (max-width: 900px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { min-height: 330px; padding: 50px 30px; }
    .login-card { padding: 55px 0; }
    .admin-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; padding: 16px 20px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .sidebar nav { grid-column: 1 / -1; margin-top: 13px; display: flex; gap: 5px; overflow-x: auto; padding-bottom: 4px; }
    .sidebar nav a { flex: 0 0 auto; }
    .sidebar-user { display: none; }
    .sidebar form { margin: 0 0 0 12px; }
    .logout-button { padding: 0 12px; }
    .admin-split, .detail-grid { grid-template-columns: 1fr; }
    .beds24-status-grid { grid-template-columns: 1fr; }
    .beds24-preview-form { grid-template-columns: 1fr 1fr; }
    .webhook-setup-grid { grid-template-columns: 1fr; }
    .webhook-setup-grid > div + div { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 620px) {
    .setup-intro { padding-top: 42px; }
    .check-list, .form-grid { grid-template-columns: 1fr; }
    .action-card { grid-template-columns: 1fr; }
    .form-grid .button { grid-column: auto; }
    .dashboard { padding: 28px 14px 45px; }
    .dashboard-header { align-items: flex-start; flex-direction: column; }
    .header-actions { justify-content: flex-start; }
    .stats { grid-template-columns: 1fr 1fr; }
    .property-list { grid-template-columns: 1fr; }
    .property-list > a:nth-child(odd), .property-list > div:nth-child(odd) { border-right: 0; }
    .card-grid, .admin-form-grid { grid-template-columns: 1fr; }
    .assigned-properties-list > div { align-items: flex-start; flex-direction: column; }
    .beds24-connect-form, .beds24-preview-form { grid-template-columns: 1fr; }
    .beds24-connect-form .button, .beds24-preview-form .button { width: 100%; }
    .admin-form-grid .span-2 { grid-column: auto; }
    .edit-form { padding: 20px 16px; }
    .form-actions { flex-direction: column; }
    .user-list article { grid-template-columns: 34px minmax(0, 1fr) auto; }
    .user-list article form { grid-column: 2 / -1; }
    .detail-list > div { grid-template-columns: 1fr; gap: 4px; }
    .database-update-card { align-items: stretch; flex-direction: column; }
    .database-update-card .button { width: 100%; }
    .country-filters { grid-template-columns: 1fr; }
    .registration-progress-list article { grid-template-columns: 34px minmax(0, 1fr); }
    .registration-progress-list article .status { grid-column: 2; justify-self: start; }
    .webhook-setup-grid > div { padding: 22px 18px; }
    .webhook-actions { flex-direction: column; }
    .webhook-actions .button { width: 100%; }
    .webhook-status-details > div { grid-template-columns: 1fr; gap: 3px; }
    .webhook-events > h3 { padding: 22px 18px 11px; }
    .guest-topbar { height: 70px; }
    .guest-card { margin-top: 7px; padding: 35px 23px 28px; }
    .stay-grid { grid-template-columns: 1fr; gap: 14px; }
    .stay-grid > div { padding: 0; border-right: 0; }
}


/* Wave 6A: electronic guest book, lifecycle and CR 1-12 statistics */
.locked-submission-note { margin: 24px 0 16px; padding: 15px 17px; display: flex; align-items: center; gap: 11px; border-radius: 6px; color: #35594c; background: #edf5f1; }
.locked-submission-note span { font-size: 18px; }
.locked-submission-note p { margin: 0; font-size: 13px; line-height: 1.5; }
.guest-correction-request { margin-top: 16px; padding: 19px; display: grid; gap: 11px; border: 1px solid var(--line); border-radius: 7px; background: #fbfbf9; }
.guest-correction-request > strong { font-size: 15px; }
.guest-correction-request > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.guest-correction-request label { display: grid; gap: 7px; color: #60717a; font-size: 11px; font-weight: 700; }
.guest-correction-request textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font: inherit; resize: vertical; }
.guest-correction-request .button { justify-self: start; }
.correction-requested { margin-top: 18px; }
.filter-panel { margin-bottom: 18px; padding: 22px 24px; }
.admin-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.admin-filter-grid label { min-width: 0; display: grid; gap: 7px; }
.admin-filter-grid label > span { color: #718089; font-size: 10px; font-weight: 780; letter-spacing: .55px; text-transform: uppercase; }
.admin-filter-grid input, .admin-filter-grid select { width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; font: inherit; }
.operator-source-settings { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.operator-source-settings > header { margin-bottom: 18px; }
.operator-source-settings > header p { margin: 6px 0 0; color: var(--muted); }
.operator-bulk-row { display: flex; gap: 14px; align-items: end; margin-bottom: 18px; }
.operator-bulk-row label { display: grid; gap: 7px; min-width: min(420px, 100%); }
.operator-bulk-row label > span { color: #718089; font-size: 10px; font-weight: 780; letter-spacing: .55px; text-transform: uppercase; }
.operator-bulk-row select, .operator-source-table select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
.operator-source-table { min-width: 1050px; }
.operator-source-table th:first-child { min-width: 230px; position: sticky; left: 0; z-index: 1; background: #fff; }
.operator-source-table td { min-width: 210px; }
.operator-source-table th small { display: block; margin-top: 4px; font-weight: 500; color: var(--muted); }
.filter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 9px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stats-grid > article { min-width: 0; min-height: 126px; padding: 20px 22px; display: grid; align-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 8px 24px rgba(32, 45, 55, .035); }
.stats-grid > article > span { color: #75828a; font-size: 10px; font-weight: 780; letter-spacing: .55px; text-transform: uppercase; }
.stats-grid > article > strong { color: var(--ink); font-size: clamp(27px, 3vw, 38px); line-height: 1; letter-spacing: -1.2px; overflow-wrap: anywhere; }
.stats-grid > article > small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.guest-book-summary, .statistics-summary { margin-bottom: 18px; }
.guest-book-panel { margin-bottom: 18px; }
.guest-book-panel td small, .statistics-country-panel td small { margin-top: 5px; display: block; color: var(--muted); line-height: 1.35; }
.retention-panel { margin-top: 18px; }
.retention-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.retention-grid article { padding: 23px 25px; border-right: 1px solid var(--line); }
.retention-grid article:last-child { border-right: 0; }
.retention-grid article strong, .retention-grid article span { display: block; overflow-wrap: anywhere; }
.retention-grid article span { margin: 8px 0; color: #42715e; font-size: 22px; font-weight: 800; }
.retention-grid article p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.statistics-missing { margin-bottom: 18px; }
.statistics-xml-panel { margin-bottom: 18px; }
.statistics-xml-panel > .notice, .statistics-xml-panel > details { margin-left: 22px; margin-right: 22px; }
.statistics-xml-panel > details { margin-bottom: 22px; }
.statistics-xml-panel > details .admin-form-grid { margin-top: 16px; }
.statistics-xml-completion { margin: 0 22px 22px; padding: 16px; border: 1px solid #d8dee1; border-radius: 7px; background: #fbfcfb; }
.statistics-xml-completion.is-ready { border-color: #cfe0d6; background: var(--soft-green); }
.statistics-xml-completion > .field-status, .statistics-xml-completion > .automatic-stat { margin-bottom: 12px; }
.statistics-inline-monthly-form { max-width: 760px; }
.statistics-inline-monthly-form .button { background: var(--blue); color: #fff; }
.button:disabled { cursor: not-allowed; opacity: .56; }
.report-chart-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.report-chart-card { min-width: 0; }
.report-chart-card > header { min-height: 88px; }
.donut-layout { padding: 20px 24px 25px; display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 24px; border-top: 1px solid var(--line); }
.report-donut { width: 170px; height: 170px; overflow: visible; }
.report-donut circle { fill: none; stroke-width: 5; }
.donut-base { stroke: #edf0f1; }
.donut-domestic { stroke: #4f8a6c; }
.donut-foreign { stroke: #315e79; }
.donut-platform { stroke: #7c68a3; }
.donut-operator { stroke: #c87955; }
.donut-unknown { stroke: #c5cbce; }
.donut-total { fill: var(--ink); font-size: 6px; font-weight: 800; text-anchor: middle; }
.donut-caption { fill: #7f8a91; font-size: 2.6px; font-weight: 700; text-anchor: middle; }
.chart-legend { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.chart-legend li { min-width: 0; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.chart-legend strong { min-width: 0; color: #52616a; font-size: 11px; overflow-wrap: anywhere; }
.chart-legend b { color: var(--ink); font-size: 14px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; background: #c5cbce; }
.legend-dot.domestic { background: #4f8a6c; }
.legend-dot.foreign { background: #315e79; }
.legend-dot.platform { background: #7c68a3; }
.legend-dot.operator { background: #c87955; }
.source-overview-list { border-top: 1px solid var(--line); }
.source-overview-list > div { min-height: 62px; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #edf0f1; }
.source-overview-list > div:last-child { border-bottom: 0; }
.source-overview-list span { min-width: 0; display: grid; gap: 4px; }
.source-overview-list span:last-child { flex: 0 0 auto; text-align: right; }
.source-overview-list strong, .source-overview-list b { color: var(--ink); font-size: 11px; }
.source-overview-list small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.report-source-panel { margin-bottom: 18px; }
.report-warning-details { margin-bottom: 18px; }
.report-warning-details summary { cursor: pointer; font-weight: 800; }
.report-warning-details ul { margin: 14px 0 0; padding-left: 20px; max-height: 260px; overflow: auto; }
.report-warning-details li { font-size: 11px; line-height: 1.5; }
.report-warning-details li + li { margin-top: 6px; }
.statistics-country-panel, .statistics-capacity-panel { margin-bottom: 18px; }
.statistics-property-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.statistics-property-card { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statistics-property-card:nth-child(2n) { border-right: 0; }
.statistics-property-card > header { padding: 0 0 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border: 0; }
.statistics-property-card > header strong, .statistics-property-card > header small { display: block; }
.statistics-property-card > header small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.automatic-stat { margin: 0 0 17px; padding: 10px 12px; border-radius: 5px; color: #4e625d; background: #eff5f2; font-size: 12px; }
.monthly-stat-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.monthly-stat-form label { display: grid; gap: 6px; }
.monthly-stat-form label > span { color: #718089; font-size: 10px; font-weight: 740; }
.monthly-stat-form label > small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.monthly-stat-form input { width: 100%; min-height: 41px; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; font: inherit; }
.monthly-stat-form .span-2, .monthly-stat-form .button { grid-column: 1 / -1; }
.monthly-stat-form .button { justify-self: start; }
.statistics-optional-fields { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fafaf8; }
.statistics-optional-fields summary { cursor: pointer; color: var(--ink); font-size: 11px; font-weight: 800; }
.statistics-optional-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.statistics-readonly { display: grid; gap: 8px; }
.statistics-readonly div { display: flex; justify-content: space-between; gap: 12px; }
.statistics-readonly dt { color: var(--muted); }
.statistics-readonly dd { margin: 0; font-weight: 700; }
.boundary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.boundary-grid article { padding: 23px 25px; border-right: 1px solid var(--line); }
.boundary-grid article:last-child { border-right: 0; }
.boundary-grid p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.csv-boundary-notice { margin-bottom: 18px; border-color: #c9d9df; color: #385664; background: #eff5f7; }
.fieldset-intro { margin: -3px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.operator-signature-preview { display: flex; align-items: center; justify-content: center; width: min(100%, 480px); height: 200px; margin: 0 0 16px; padding: 12px; overflow: hidden; border: 1px solid #d8dee1; border-radius: 7px; background: #fafcfc; }
.operator-signature-preview img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.report-validation-errors { margin-top: 12px; padding-top: 10px; border-top: 1px solid currentColor; }
.report-validation-errors section + section { margin-top: 10px; }
.report-validation-errors ul, .statistics-readiness-grid ul { margin: 7px 0 0; padding-left: 18px; }
.statistics-readiness-panel { margin-bottom: 18px; }
.statistics-readiness-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 22px 22px; }
.statistics-readiness-grid article { padding: 16px; border: 1px solid #e0e5e7; border-radius: 7px; background: #fbfcfc; }
.statistics-readiness-grid article strong, .statistics-readiness-grid article small { display: block; }
.statistics-readiness-grid article small { margin-top: 4px; color: var(--muted); }
.statistics-readiness-grid .button { margin-top: 12px; }

@media (max-width: 1000px) {
    .admin-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-chart-grid { grid-template-columns: 1fr; }
    .statistics-property-list { grid-template-columns: 1fr; }
    .statistics-property-card { border-right: 0; }
}

@media (max-width: 720px) {
    .admin-filter-grid, .stats-grid, .monthly-stat-form, .statistics-optional-grid, .retention-grid, .boundary-grid { grid-template-columns: 1fr; }
    .statistics-readiness-grid { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
    .operator-bulk-row { align-items: stretch; flex-direction: column; }
    .filter-actions, .monthly-stat-form .span-2, .monthly-stat-form .button { grid-column: auto; }
    .filter-actions .button, .guest-correction-request .button { width: 100%; }
    .retention-grid article, .boundary-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
    .retention-grid article:last-child, .boundary-grid article:last-child { border-bottom: 0; }
    .donut-layout { grid-template-columns: 1fr; justify-items: center; }
    .chart-legend { width: 100%; }
}

/* Wave 6C: accommodation tax */
.tax-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.tax-summary { margin: 18px 0; }
.tax-warning ul { margin: 10px 0 0; padding-left: 20px; }
.tax-warning li + li { margin-top: 5px; }
.tax-statement-panel { margin-bottom: 20px; }
.tax-statement-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, .75fr); border-top: 1px solid var(--line); }
.tax-form-table td:last-child { text-align: right; white-space: nowrap; }
.tax-operator-data { padding: 24px; border-left: 1px solid var(--line); background: #fafaf8; }
.tax-operator-data h3, .tax-breakdown-grid h3, .tax-settings-grid h3 { margin: 0 0 15px; font-size: 14px; }
.tax-operator-data dl { margin: 0; display: grid; gap: 12px; }
.tax-operator-data dl div { display: grid; gap: 3px; }
.tax-operator-data dt { color: var(--muted); font-size: 10px; font-weight: 780; letter-spacing: .45px; text-transform: uppercase; }
.tax-operator-data dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.tax-operator-data p { margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.tax-breakdown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tax-breakdown-grid > section { min-width: 0; padding: 24px; }
.tax-breakdown-grid > section + section { border-left: 1px solid var(--line); }
.tax-breakdown-grid table { width: 100%; }
.tax-settings-panel { margin-bottom: 20px; }
.tax-settings-panel form { border-top: 1px solid var(--line); }
.tax-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tax-settings-grid > section { padding: 24px; }
.tax-settings-grid > section + section { border-left: 1px solid var(--line); }
.tax-setting-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(145px, .8fr); align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tax-setting-row > span:first-child { font-weight: 700; }
.tax-setting-row input, .tax-setting-row select { width: 100%; min-height: 40px; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font: inherit; }
.tax-setting-row > span:last-child { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px; }
.tax-settings-panel .form-actions { padding: 0 24px 24px; }

@media (max-width: 1120px) {
    .tax-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tax-statement-grid, .tax-breakdown-grid, .tax-settings-grid { grid-template-columns: 1fr; }
    .tax-operator-data, .tax-breakdown-grid > section + section, .tax-settings-grid > section + section { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
    .tax-filter-grid { grid-template-columns: 1fr; }
    .tax-setting-row { grid-template-columns: 1fr; }
    .tax-statement-panel > header { align-items: flex-start; }
}
.candidate-xml-form { display: grid; gap: 1rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.candidate-xml-form > label:not(.checkbox-row) { display: grid; gap: .45rem; }
.candidate-xml-form select { width: 100%; }

/* Wave 7: operational readiness */
.daily-control-panel { margin-bottom: 18px; }
.daily-control-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.daily-control-summary article { padding: 20px 22px; display: grid; gap: 8px; border-right: 1px solid var(--line); }
.daily-control-summary article:last-child { border-right: 0; }
.daily-control-summary span { color: var(--muted); font-size: 11px; font-weight: 650; }
.daily-control-summary strong { font-size: 28px; }
.operations-boundary { margin-bottom: 18px; }
.operations-settings { max-width: 760px; padding: 22px; }
.operations-grid { align-items: stretch; }
.operations-grid > .panel { padding-bottom: 22px; }
.operations-grid > .panel > form { margin: 20px 24px 0; }
.form-help { margin: 18px 24px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.form-help code { overflow-wrap: anywhere; }
.compact-detail-list { margin: 0; }
.identity-check-row { margin: 18px 24px 0; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #ead2c6; border-radius: 9px; background: #fcf5f1; }
.identity-check-row.identity-check-complete { border-color: #c9dfd3; background: #f1f8f4; }
.identity-check-row p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.user-access-form { grid-column: 2 / -1; margin: 9px 0 4px; padding: 14px; display: grid; grid-template-columns: minmax(150px, .5fr) minmax(260px, 1.5fr) auto; align-items: end; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfa; }
.user-access-form fieldset, .create-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.user-access-form legend, .create-card legend { margin-bottom: 7px; font-size: 11px; font-weight: 700; }
.property-access-options { display: flex; flex-wrap: wrap; gap: 7px 12px; }
.property-access-options label { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 11px; }
.property-access-options input { width: auto; }

@media (max-width: 1050px) {
    .daily-control-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .daily-control-summary article:nth-child(2) { border-right: 0; }
    .daily-control-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .user-access-form { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .daily-control-summary { grid-template-columns: 1fr; }
    .daily-control-summary article { border-right: 0; border-bottom: 1px solid var(--line); }
    .daily-control-summary article:last-child { border-bottom: 0; }
    .identity-check-row { align-items: stretch; flex-direction: column; }
    .identity-check-row .button { width: 100%; }
}

/* Wave 8: grouped administration, report filters and operational readability */
.sidebar nav { margin-top: 30px; gap: 8px; overflow-y: auto; padding-right: 3px; }
.sidebar-nav-group { border: 1px solid transparent; border-radius: 9px; }
.sidebar-nav-group[open] { padding-bottom: 5px; border-color: #e4e8e9; background: rgba(255, 255, 255, .72); }
.sidebar-nav-group summary { min-height: 34px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7a6b64; cursor: pointer; list-style: none; font-size: 9px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.sidebar-nav-group summary::-webkit-details-marker { display: none; }
.sidebar-nav-group summary span:last-child { font-size: 13px; transition: transform .15s ease; }
.sidebar-nav-group[open] summary span:last-child { transform: rotate(180deg); }
.sidebar-nav-group.is-active > summary { color: #203f56; }
.sidebar-nav-links { display: grid; gap: 2px; padding: 0 5px; }
.sidebar nav .sidebar-nav-group a { min-height: 35px; }
.sidebar-build { margin: 12px 12px 5px; color: #90999e; font-size: 8px; font-weight: 700; letter-spacing: .45px; text-transform: uppercase; }
.maintenance-run-summary { margin: 0 24px 18px; padding: 14px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; border: 1px solid #e6ebed; border-radius: 8px; background: #f8faf9; }
.maintenance-run-summary strong { color: #253c4b; font-size: 11px; }
.maintenance-run-summary time { min-width: 0; color: #718089; font-size: 10px; overflow-wrap: anywhere; }
.beds24-history-form { padding: 0 22px 22px; display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)) auto; align-items: end; gap: 14px; }
.beds24-history-panel > .form-help { margin: -4px 22px 22px; }
.guest-ocr-formats { grid-column: 2; color: #61747d; font-size: 10px; text-align: center; }
@media (max-width: 920px) {
    .sidebar nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 13px; gap: 7px; overflow: visible; }
    .sidebar-nav-group { min-width: 0; }
    .sidebar-nav-group summary { min-height: 36px; }
    .sidebar-build { grid-column: 1 / -1; margin: 7px 2px 0; }
    .beds24-history-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .sidebar nav { grid-template-columns: 1fr; }
    .beds24-history-form { grid-template-columns: 1fr; }
    .beds24-history-form .button { width: 100%; }
    .maintenance-run-summary { align-items: flex-start; flex-direction: column; }
    .guest-ocr-formats { grid-column: 1; text-align: left; }
}

/* Wave 9A: SmartLife/Tuya safe dry-run automation */
.tuya-safety-panel { margin-bottom: 18px; }
.tuya-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tuya-principles article { padding: 22px; border-right: 1px solid var(--line); }
.tuya-principles article:last-child { border-right: 0; }
.tuya-principles strong { font-size: 14px; }
.tuya-principles p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tuya-connect-form { max-width: 780px; padding: 22px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tuya-connection-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tuya-connection-summary article { min-width: 0; padding: 20px; display: grid; gap: 8px; border-right: 1px solid var(--line); }
.tuya-connection-summary article:last-child { border-right: 0; }
.tuya-connection-summary span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.tuya-connection-summary strong { font-size: 12px; overflow-wrap: anywhere; }
.tuya-property-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px; }
.tuya-property-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.tuya-property-card > header { padding: 18px 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border-bottom: 1px solid var(--line); }
.tuya-property-card h3 { margin: 0; font-size: 18px; }
.tuya-property-card header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.tuya-property-form { padding: 18px 20px; }
.tuya-property-form fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.tuya-property-form legend { padding: 0 5px; font-size: 12px; font-weight: 750; }
.tuya-rule-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tuya-pause-form { padding: 0 20px 20px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.tuya-pause-form small { grid-column: 1 / -1; color: #9a6049; }

@media (max-width: 1120px) {
    .tuya-connection-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tuya-property-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .tuya-principles, .tuya-connection-summary { grid-template-columns: 1fr; }
    .tuya-principles article, .tuya-connection-summary article { border-right: 0; border-bottom: 1px solid var(--line); }
    .tuya-principles article:last-child, .tuya-connection-summary article:last-child { border-bottom: 0; }
    .tuya-rule-grid, .tuya-pause-form { grid-template-columns: 1fr; }
    .tuya-property-card > header { flex-direction: column; }
}

.ai-attention-panel { margin-bottom: 22px; border-color: #d7c5bd; }
.ai-attention-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ai-attention-grid a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 17px 20px; color: var(--ink); background: #fff; text-decoration: none; }
.ai-attention-grid a:hover { background: #f4f7f6; }
.ai-attention-grid span { color: var(--muted); font-size: 12px; font-weight: 700; }
.ai-attention-grid strong { font-size: 24px; }
.ai-attention-panel > .inline-notice { margin: 18px 22px 22px; }
.dashboard-message-queue { display: grid; gap: 14px; padding: 20px 22px 22px; border-top: 1px solid var(--line); background: #f7f8f7; }
.dashboard-message-queue-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px 0; border-top: 1px solid var(--line); }
.dashboard-message-queue-heading h3 { margin: 0; font-size: 17px; }
.dashboard-message-queue-heading p { margin: 5px 0 0; color: var(--muted); }
.dashboard-message-card { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.dashboard-message-card > header, .dashboard-message-card > footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 17px; }
.dashboard-message-card > header { border-bottom: 1px solid var(--line); }
.dashboard-message-card > header div { display: grid; gap: 4px; }
.dashboard-message-card > header small { color: var(--muted); }
.dashboard-message-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-message-copy section, .dashboard-message-copy details { min-width: 0; padding: 15px 17px; border-right: 1px solid var(--line); }
.dashboard-message-copy section:nth-child(2) { border-right: 0; }
.dashboard-message-copy details { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }
.dashboard-message-copy span, .dashboard-message-copy summary { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .5px; text-transform: uppercase; }
.dashboard-message-copy summary { cursor: pointer; }
.dashboard-message-copy p { margin: 8px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.dashboard-message-card > footer { border-top: 1px solid var(--line); }
.dashboard-message-card > footer form { margin: 0; }
@media (max-width: 760px) { .ai-attention-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .dashboard-message-copy { grid-template-columns: 1fr; } .dashboard-message-copy section { border-right: 0; border-bottom: 1px solid var(--line); } .dashboard-message-copy details { grid-column: auto; border-top: 0; } }
@media (max-width: 520px) { .ai-attention-grid { grid-template-columns: 1fr; } .dashboard-message-card > footer, .dashboard-message-card > footer form, .dashboard-message-card > footer .button { width: 100%; } }

/* Build 39: one filtering language and compact mobile records */
.unified-filter-form { display: grid; gap: 17px; }
.unified-filter-row { min-width: 0; display: grid; gap: 14px; align-items: end; }
.unified-filter-row--entities, .unified-filter-row--period { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.unified-filter-row--controls { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 17px; border-top: 1px solid #edf0f1; }
.unified-filter-form label, .filter-context { min-width: 0; display: grid; gap: 7px; }
.unified-filter-form label > span, .filter-context > span { color: #718089; font-size: 10px; font-weight: 780; letter-spacing: .55px; text-transform: uppercase; }
.unified-filter-form input, .unified-filter-form select, .filter-context { width: 100%; min-height: 48px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font: inherit; }
.unified-filter-form input, .unified-filter-form select { padding: 11px 13px; }
.filter-context { padding: 8px 13px; align-content: center; }
.filter-context strong { font-size: 12px; }
.unified-filter-form [data-period-field] { transition: opacity .15s ease; }
.unified-filter-form [data-period-field].is-disabled { opacity: .5; }
.unified-filter-form [data-period-field].is-disabled input { background: #f3f5f5; cursor: not-allowed; }
.unified-filter-form > .filter-actions { padding-top: 2px; }
.master-switch-panel { margin-bottom: 18px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-left: 4px solid #aeb8bd; }
.master-switch-panel.is-enabled { border-left-color: #4f8a6c; background: linear-gradient(90deg, #f2f8f5 0, #fff 34%); }
.master-switch-panel.is-disabled { background: linear-gradient(90deg, #f5f6f6 0, #fff 34%); }
.master-switch-panel > div { min-width: 0; display: flex; align-items: center; gap: 13px; }
.master-switch-panel h2 { margin: 0; font-size: 16px; }
.master-switch-panel p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.master-switch-panel form { flex: 0 0 auto; }
.master-switch-dot { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%; background: #aeb8bd; box-shadow: 0 0 0 5px rgba(174, 184, 189, .15); }
.master-switch-panel.is-enabled .master-switch-dot { background: #4f8a6c; box-shadow: 0 0 0 5px rgba(79, 138, 108, .14); }
.ai-relevance-note { margin-bottom: 18px; }

@media (max-width: 1050px) {
    .unified-filter-row--entities, .unified-filter-row--period { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .unified-filter-row--entities > :first-child, .unified-filter-row--period > :first-child { grid-column: 1 / -1; }
}

/* Build 40: exact control geometry, editable periods and mobile drawer */
.unified-filter-form label { grid-template-rows: auto 52px; align-content: end; }
.unified-filter-form input,
.unified-filter-form select,
.unified-filter-form .filter-context {
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    margin: 0;
    padding: 0 14px;
    border-radius: 8px;
    line-height: 1.2;
}
.unified-filter-form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: linear-gradient(45deg, transparent 50%, #53646e 50%), linear-gradient(135deg, #53646e 50%, transparent 50%);
    background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.unified-filter-form input[type="date"] { appearance: auto; -webkit-appearance: auto; background: #fff; color: var(--ink); cursor: pointer; }
.unified-filter-form [data-period-field],
.unified-filter-form [data-period-field].is-disabled { opacity: 1; }
.unified-filter-form [data-period-field] input,
.unified-filter-form [data-period-field].is-disabled input { background: #fff; color: var(--ink); cursor: pointer; }
.unified-filter-row--entities,
.unified-filter-row--period { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sidebar-mobile-drawer { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.mobile-nav-toggle { display: none; }

@media (max-width: 1050px) and (min-width: 721px) {
    .unified-filter-row--entities,
    .unified-filter-row--period { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .unified-filter-row--entities > :first-child,
    .unified-filter-row--period > :first-child { grid-column: auto; }
}

@media (max-width: 900px) {
    .admin-shell { display: block; }
    .sidebar {
        position: sticky;
        top: 0;
        z-index: 120;
        height: 72px;
        min-height: 72px;
        padding: 10px 16px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;
        align-items: center;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        background: rgba(250, 250, 248, .97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .sidebar .admin-brand { min-width: 0; }
    .sidebar .admin-brand strong { font-size: 17px; }
    .sidebar .admin-brand small { font-size: 8px; letter-spacing: 1.8px; }
    .mobile-nav-toggle {
        width: 46px;
        height: 46px;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid #d9dfe1;
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
    }
    .mobile-nav-toggle span { width: 20px; height: 2px; border-radius: 2px; background: #253d4e; transition: transform .16s ease, opacity .16s ease; }
    .sidebar.is-mobile-open .mobile-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .sidebar.is-mobile-open .mobile-nav-toggle span:nth-child(2) { opacity: 0; }
    .sidebar.is-mobile-open .mobile-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .sidebar-mobile-drawer {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        padding: 13px 16px 18px;
        display: none;
        border-bottom: 1px solid var(--line);
        background: #fafaf8;
        box-shadow: 0 18px 35px rgba(28, 42, 50, .14);
    }
    .sidebar.is-mobile-open .sidebar-mobile-drawer { display: flex; }
    .sidebar nav,
    .sidebar.is-mobile-open nav {
        width: 100%;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        overflow: visible;
    }
    .sidebar-nav-group summary { min-height: 43px; }
    .sidebar nav .sidebar-nav-group a { min-height: 43px; }
    .sidebar-build { margin: 14px 7px 7px; }
    .sidebar-user { margin-top: 8px; display: grid; }
    .sidebar form { margin: 8px 0 0; }
    .sidebar .logout-button { width: 100%; min-height: 48px; }
    body.mobile-nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
    .unified-filter-form label { grid-template-rows: auto 54px; }
    .unified-filter-form input,
    .unified-filter-form select,
    .unified-filter-form .filter-context { height: 54px; min-height: 54px; max-height: 54px; }
    .header-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
    .header-actions > * { width: 100%; box-sizing: border-box; justify-content: center; }
}

@media (max-width: 720px) {
    .dashboard { padding-left: 16px; padding-right: 16px; }
    .dashboard-header { align-items: stretch; flex-direction: column; }
    .dashboard-header > .button, .dashboard-header > a.button { width: 100%; box-sizing: border-box; }
    .filter-panel { padding: 17px; }
    .unified-filter-row--entities, .unified-filter-row--period, .unified-filter-row--controls { grid-template-columns: 1fr; }
    .unified-filter-row--entities > :first-child, .unified-filter-row--period > :first-child { grid-column: auto; }
    .unified-filter-form input, .unified-filter-form select { font-size: 16px; }
    .unified-filter-form .filter-actions { display: grid; grid-template-columns: 1fr; }
    .unified-filter-form .filter-actions .button { width: 100%; box-sizing: border-box; }
    .master-switch-panel { align-items: stretch; flex-direction: column; }
    .master-switch-panel form, .master-switch-panel form .button { width: 100%; }
    .table-wrap:has(.responsive-record-table) { overflow: visible; }
    table.responsive-record-table { min-width: 0; display: block; }
    table.responsive-record-table thead { display: none; }
    table.responsive-record-table tbody { display: grid; gap: 12px; padding: 12px; background: #f4f6f5; }
    table.responsive-record-table tr { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
    table.responsive-record-table td { min-width: 0; padding: 11px 13px; display: grid; grid-template-columns: minmax(92px, .38fr) minmax(0, 1fr); gap: 12px; align-items: start; border-bottom: 1px solid #edf0f1; overflow-wrap: anywhere; }
    table.responsive-record-table td::before { content: attr(data-label); color: #7b878e; font-size: 9px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; }
    table.responsive-record-table td.table-action { display: block; text-align: right; }
    table.responsive-record-table td.table-action::before { display: none; }
    table.responsive-record-table td.table-action .text-link { display: inline-flex; min-height: 40px; align-items: center; }
}

/* Build 47: stable iPhone forms and tappable reservation records */
html, body { max-width: 100%; overflow-x: hidden; }
.login-shell, .login-card, .login-card form, .login-card label,
.admin-shell, .dashboard, .panel, .table-wrap { min-width: 0; max-width: 100%; }
.clickable-record-row { cursor: pointer; transition: background-color .14s ease, box-shadow .14s ease; }
.clickable-record-row:hover { background: #f7f9f8; }
.clickable-record-row:focus-visible { outline: 3px solid #b9ced9; outline-offset: -3px; }

@media (max-width: 900px) {
    .login-shell { width: 100%; overflow: hidden; }
    .login-card { width: min(calc(100% - 32px), 420px); padding-left: 0; padding-right: 0; }
    .login-card input, .login-card select, .login-card textarea,
    .dashboard input, .dashboard select, .dashboard textarea { min-width: 0; max-width: 100%; font-size: 16px; }
}

@media (max-width: 720px) {
    table.responsive-record-table tr.clickable-record-row { position: relative; }
    table.responsive-record-table tr.clickable-record-row::after {
        content: "Otvoriť detail  →";
        display: block;
        padding: 11px 13px;
        color: #294f69;
        background: #fbfcfc;
        font-size: 10px;
        font-weight: 800;
        text-align: right;
    }
}
