:root {
	--paper: #f7f5ef;
	--paper-deep: #f0eee7;
	--surface: #fff;
	--ink: #151817;
	--muted: #666b67;
	--line: #c9cbc6;
	--line-soft: #dedfd9;
	--green: #0d4d31;
	--green-dark: #083b25;
	--green-soft: #e8efe9;
	--rust: #c43b22;
	--rust-soft: #f8e9e4;
	--ochre: #d38e00;
	--ochre-soft: #f7eed9;
	--shadow: 0 2px 8px rgb(20 27 23 / 10%);
	--radius: 8px;
	--content: 1400px;
	--sidebar: 260px;
	--topbar: 64px;
	--font: "Avenir Next", Avenir, Futura, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: 1.08; letter-spacing: -0.055em; }
h2 { font-size: clamp(2rem, 3vw, 3.15rem); line-height: 1.12; letter-spacing: -0.04em; }
h3 { font-size: 1.2rem; line-height: 1.3; }
.icon { width: 21px; height: 21px; flex: 0 0 auto; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: 178px; height: auto; }
.site-header { position: relative; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 56px; height: 86px; padding: 0 max(38px, calc((100vw - var(--content)) / 2)); border-bottom: 1px solid var(--line); background: rgb(247 245 239 / 96%); }
.site-nav { display: flex; align-items: center; gap: 46px; }
.site-nav a, .site-actions a { font-size: 1rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-actions .text-link:hover { text-decoration: underline; }
.site-actions { display: flex; align-items: center; gap: 32px; }
.nav-toggle { display: none; border: 0; background: none; padding: 8px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 11px 22px; border: 1px solid transparent; border-radius: var(--radius); font-size: .95rem; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-dark); }
.button-outline { border-color: var(--green); background: transparent; color: var(--green); }
.button-outline:hover { background: var(--green-soft); }
.button-danger { background: var(--rust); color: #fff; }
.button-small { min-height: 36px; padding: 7px 14px; font-size: .85rem; }
.button.disabled { opacity: .45; pointer-events: none; }
.text-link { font-weight: 650; }
.toast-region { position: fixed; z-index: 251; right: 20px; bottom: 82px; display: flex; width: min(390px, calc(100vw - 40px)); max-height: calc(100vh - 104px); flex-direction: column; gap: 10px; pointer-events: none; }
.toast { --toast-color: #386c87; display: grid; grid-template-columns: 28px minmax(0, 1fr) 30px; gap: 10px; align-items: center; padding: 11px 10px 11px 12px; border: 1px solid var(--line); border-left: 4px solid var(--toast-color); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 28px rgb(20 27 23 / 18%); pointer-events: auto; animation: toast-in 220ms ease-out; }
.toast-success { --toast-color: var(--green); }
.toast-warning { --toast-color: var(--ochre); }
.toast-error { --toast-color: var(--rust); }
.toast-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #edf1f3; color: var(--toast-color); font-size: 15px; font-weight: 800; }
.toast-success .toast-icon { background: var(--green-soft); }
.toast-warning .toast-icon { background: var(--ochre-soft); }
.toast-error .toast-icon { background: var(--rust-soft); }
.toast-message { min-width: 0; overflow-wrap: anywhere; font-weight: 650; }
.toast-dismiss, .toast-history-close { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 21px; line-height: 1; }
.toast-dismiss:hover, .toast-history-close:hover { background: var(--paper-deep); color: var(--ink); }
.toast.is-leaving { opacity: 0; transform: translateX(32px); transition: opacity 180ms ease-in, transform 180ms ease-in; }
.toast-history-toggle { position: fixed; z-index: 250; right: 20px; bottom: 20px; display: grid; width: 46px; height: 46px; padding: 0; place-items: center; border: 1px solid var(--green-dark); border-radius: 50%; background: var(--green); box-shadow: 0 7px 22px rgb(0 0 0 / 24%); color: #fff; }
.toast-history-toggle:hover { background: var(--green-dark); }
.toast-history-toggle .icon { width: 21px; height: 21px; }
.toast-history-count { position: absolute; top: -5px; right: -5px; display: grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--rust); color: #fff; font-size: 10px; font-weight: 800; }
.toast-history-count[hidden] { display: none; }
.toast-history-panel { position: fixed; z-index: 252; right: 20px; bottom: 82px; width: min(400px, calc(100vw - 40px)); max-height: min(520px, calc(100vh - 104px)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 14px 38px rgb(20 27 23 / 24%); }
.toast-history-panel[hidden] { display: none; }
.toast-history-panel > header { display: flex; min-height: 50px; align-items: center; justify-content: space-between; padding: 9px 10px 9px 15px; border-bottom: 1px solid var(--line); background: var(--paper); }
.toast-history-panel h2 { margin: 0; font-size: 1rem; letter-spacing: 0; }
.toast-history-list { max-height: calc(min(520px, calc(100vh - 104px)) - 51px); overflow: auto; }
.toast-history-item { --toast-color: #386c87; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 12px 15px; border-bottom: 1px solid var(--line-soft); }
.toast-history-item:last-child { border-bottom: 0; }
.toast-history-item .toast-icon { width: 22px; height: 22px; font-size: 12px; }
.toast-history-copy { min-width: 0; }
.toast-history-copy p { margin: 0; overflow-wrap: anywhere; }
.toast-history-copy time { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }
.toast-history-empty { margin: 0; padding: 22px 15px; color: var(--muted); text-align: center; }
@keyframes toast-in { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: translateX(0); } }

/* Marketing */
.hero { position: relative; min-height: 585px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper) url('/assets/img/adsflow-newspaper-hero.png') right center / auto 100% no-repeat; }
.hero::after { position: absolute; inset: 0 0 0 43%; content: ""; pointer-events: none; background: linear-gradient(90deg, var(--paper) 0%, rgb(247 245 239 / 70%) 15%, transparent 45%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(390px, .86fr) minmax(560px, 1.15fr); gap: 72px; align-items: center; width: min(var(--content), calc(100% - 76px)); min-height: 585px; margin: 0 auto; }
.hero-copy { align-self: center; max-width: 640px; padding: 42px 0; }
.hero-copy h1 { margin-bottom: 30px; }
.hero-copy p { max-width: 530px; margin-bottom: 30px; font-size: 1.3rem; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 34px; }
.hero-actions.centered { justify-content: center; }
.availability-preview { border: 1px solid #777b77; border-radius: var(--radius); background: rgb(255 255 255 / 92%); box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(2px); }
.site-picker-label { display: block; padding: 18px 20px 7px; font-size: .88rem; font-weight: 700; }
.site-picker { margin: 0 20px 14px; border: 1px solid #777b77; border-radius: 6px; background: #fff; }
.site-picker-row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 10px 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.site-picker-row:last-child { border-bottom: 0; }
.site-picker-row.is-selected { background: var(--green-soft); }
.site-monogram { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 3px; background: var(--green); color: #fff; font-weight: 800; }
.site-monogram.dark { background: #303331; }
.preview-table { width: calc(100% - 40px); margin: 0 20px 14px; border-collapse: collapse; table-layout: fixed; font-size: .82rem; }
.preview-table th { padding: 9px 5px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 650; }
.preview-table td { padding: 11px 5px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.preview-table tr:last-child td { border-bottom: 0; }
.format-thumb { display: inline-block; width: 64px; height: 46px; border: 1px solid var(--line); background: #f6f5f1; vertical-align: middle; }
.format-thumb::after { display: block; width: 68%; height: 48%; margin: 8px auto; content: ""; background: #c9cac6; }
.status-free { color: var(--green); font-weight: 700; }
.status-busy { color: var(--rust); font-weight: 700; }
.steps-section { padding: 42px max(38px, calc((100vw - var(--content)) / 2)) 50px; background: var(--paper); }
.steps-section h2 { margin-bottom: 30px; text-align: center; font-size: 2.25rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { min-height: 150px; padding: 0 34px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step-number { display: inline-block; margin-right: 16px; color: var(--green); font-size: 3.4rem; font-weight: 600; line-height: 1; }
.step .icon { width: 40px; height: 40px; vertical-align: 4px; }
.step h3 { margin: 20px 0 5px; }
.step p { color: var(--muted); }
.site-marquee { padding: 0 0 54px; overflow: hidden; background: var(--paper); }
.site-marquee h2 { width: min(var(--content), calc(100% - 76px)); margin: 0 auto 20px; font-size: 1rem; text-align: center; text-transform: uppercase; letter-spacing: .12em; }
.site-marquee-window { overflow: hidden; border-block: 1px solid var(--line); background: #fff; }
.site-marquee-track, .site-marquee-group { display: flex; align-items: center; }
.site-marquee-track { width: 100%; justify-content: center; }
.site-marquee-track.is-scrolling { width: max-content; justify-content: initial; animation: site-marquee-slide 16s linear infinite; }
.site-marquee-group { flex: 0 0 auto; }
.site-marquee-track:not(.is-scrolling) .site-marquee-group:last-child { display: none; }
.site-marquee-item { display: flex; flex-direction: column; min-width: 270px; min-height: 78px; align-items: center; justify-content: center; gap: 4px; padding: 6px 38px; border-right: 1px solid var(--line); color: inherit; font-size: 1.05rem; font-weight: 700; text-align: center; text-decoration: none; white-space: nowrap; }
.site-marquee-item:hover, .site-marquee-item:focus-visible { background: var(--green-soft); }
.site-marquee-item img { display: block; width: 150px; max-width: 100%; height: 36px; max-height: 100%; object-fit: contain; }
@keyframes site-marquee-slide { to { transform: translateX(-50%); } }
.publisher-section { display: grid; grid-template-columns: .8fr 1.4fr; gap: 80px; align-items: center; padding: 72px max(38px, calc((100vw - var(--content)) / 2)); border-top: 1px solid var(--line); background: #fff; }
.publisher-copy > p { max-width: 560px; color: #303432; font-size: 1.05rem; }
.feature-row { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row .icon-box { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--green); }
.feature-row h3 { margin-bottom: 4px; }
.feature-row p { margin-bottom: 0; color: var(--muted); }
.calendar-demo { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.calendar-demo-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.calendar-demo-header h3 { margin: 0; font-size: 1.35rem; }
.mini-calendar { display: grid; grid-template-columns: 120px repeat(5, 1fr); }
.mini-calendar > div { min-height: 65px; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .8rem; }
.mini-calendar .approved { display: grid; place-items: center; background: var(--green); color: #fff; }
.mini-calendar .waiting { display: grid; place-items: center; background: var(--rust); color: #fff; }
.mini-calendar .free { display: grid; place-items: center; background: var(--green-soft); }
.api-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; padding: 64px max(38px, calc((100vw - var(--content)) / 2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.api-section p { max-width: 540px; font-size: 1.05rem; }
.api-flow { display: flex; align-items: center; justify-content: center; gap: 24px; }
.api-node { display: grid; min-width: 140px; min-height: 130px; place-items: center; padding: 18px; border: 1px solid var(--green); border-radius: var(--radius); text-align: center; }
.api-node.primary { background: var(--green); color: #fff; font-size: 1.15rem; font-weight: 750; }
.api-events { min-width: 180px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.api-events div { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.api-events div:last-child { border-bottom: 0; }
.api-arrow { width: 58px; }
.ecosystem-section { padding: 72px max(38px, calc((100vw - var(--content)) / 2)); border-bottom: 1px solid var(--line); background: #fff; }
.ecosystem-section > header { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.ecosystem-section > header h2 { margin-bottom: 14px; }
.ecosystem-section > header p { margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ecosystem-card { display: flex; min-width: 0; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: box-shadow 150ms ease, transform 150ms ease; }
.ecosystem-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.ecosystem-card > p:not(.ecosystem-tagline) { flex: 1; color: var(--muted); }
.ecosystem-brand { font-size: 1.55rem; font-weight: 750; letter-spacing: -.03em; }
.ecosystem-brand span { color: var(--green); }
.ecosystem-tagline { margin: 4px 0 14px; color: var(--rust); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ecosystem-card .text-link { align-self: flex-start; color: var(--green); }
.cta-section { padding: 46px 20px; text-align: center; background: #fff; }
.cta-section h2 { margin-bottom: 22px; font-size: 2.1rem; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 24px max(38px, calc((100vw - var(--content)) / 2)); border-top: 1px solid var(--line); background: #fff; }
.site-footer .brand-logo { width: 136px; }
.site-footer nav { display: flex; gap: 52px; }
.site-footer nav a { font-size: .85rem; text-decoration: none; }

/* Forms and authentication */
.auth-page { background: #fff; }
.auth-wrap { display: grid; min-height: calc(100vh - 86px); place-items: center; padding: 48px 20px; }
.auth-panel { width: min(470px, 100%); }
.customer-panel { width: min(1180px, 100%); }
.auth-panel h1 { margin-bottom: 12px; font-size: 2.4rem; }
.auth-panel > p { color: var(--muted); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 700; }
.form-control { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #9a9e99; border-radius: 6px; background: #fff; }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-control:focus { outline: 3px solid rgb(13 77 49 / 18%); border-color: var(--green); }
.form-help { margin-top: 5px; color: var(--muted); font-size: .8rem; }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* Booking flow */
.booking-header { display: flex; align-items: center; justify-content: space-between; height: 78px; padding: 0 28px; border-bottom: 1px solid var(--line); background: #fff; }
.booking-header .brand-logo { width: 160px; }
.booking-shell { display: grid; grid-template-columns: minmax(0, 1fr) 390px; min-height: calc(100vh - 78px); background: #fff; }
.booking-main { padding: 34px 36px 50px; border-right: 1px solid var(--line); }
.booking-main h1 { margin-bottom: 24px; font-size: 2.3rem; letter-spacing: -0.035em; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 760px; margin: 0 auto 30px; }
.progress-step { position: relative; text-align: center; color: var(--muted); }
.progress-step::after { position: absolute; top: 18px; left: calc(50% + 25px); width: calc(100% - 50px); height: 1px; content: ""; background: var(--line); }
.progress-step:last-child::after { display: none; }
.progress-number { position: relative; z-index: 1; display: grid; width: 36px; height: 36px; place-items: center; margin: 0 auto 7px; border: 1px solid #8e938f; border-radius: 50%; background: #fff; }
.progress-step.active { color: var(--green); font-weight: 700; }
.progress-step.active .progress-number { border-color: var(--green); background: var(--green); color: #fff; }
.booking-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 26px; }
.booking-filters label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 700; }
.availability-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.availability-table { width: 100%; min-width: 790px; border-collapse: collapse; table-layout: fixed; }
.availability-table th, .availability-table td { height: 72px; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.availability-table th:last-child, .availability-table td:last-child { border-right: 0; }
.availability-table tr:last-child td { border-bottom: 0; }
.availability-table th { height: 48px; background: #fbfaf7; }
.availability-table th:first-child, .availability-table td:first-child { width: 210px; text-align: left; }
.availability-cell { border: 0; background: var(--green-soft); color: var(--green); font-weight: 700; }
.availability-cell.busy { background: var(--rust-soft); color: var(--rust); cursor: not-allowed; }
.availability-cell.selected { background: var(--green); color: #fff; }
.format-detail { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.format-detail h2 { margin: 0 0 5px; font-size: 1.4rem; letter-spacing: -.02em; }
.format-detail p { margin: 2px 0; }
.booking-summary { padding: 84px 34px 40px; background: #fff; }
.booking-summary h2 { margin-bottom: 4px; font-size: 1.65rem; letter-spacing: -.02em; }
.summary-site { margin-bottom: 30px; color: var(--green); font-weight: 800; }
.summary-item { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.summary-item p { margin: 2px 0; color: var(--muted); }
.summary-price { font-weight: 800; }
.summary-total { display: flex; justify-content: space-between; padding: 28px 0; font-size: 1.25rem; font-weight: 800; }
.booking-summary .button { width: 100%; margin-bottom: 12px; }
.count-offers { margin-top: 34px; }
.count-offers > h2 { margin-bottom: 4px; font-size: 1.6rem; }
.count-offers > p { color: var(--muted); }
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.offer-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.offer-card > p { margin: 4px 0; }
.offer-price { color: var(--green); font-size: 1.2rem; font-weight: 800; }

/* Dashboard */
.dashboard-layout { display: grid; grid-template-columns: var(--sidebar) 1fr; grid-template-rows: var(--topbar) 1fr; background: #f7f7f5; }
.dashboard-topbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; height: var(--topbar); padding: 0 28px; border-bottom: 1px solid var(--line); background: #fff; }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 30px; }
.dashboard-topbar .brand-logo { width: 148px; }
.admin-site-logo { --admin-logo-width: 118px; --admin-logo-height: 42px; display: grid; flex: 0 0 var(--admin-logo-width); width: var(--admin-logo-width); height: var(--admin-logo-height); place-items: center; }
.admin-site-logo img { display: block; width: auto; height: auto; max-width: var(--admin-logo-width); max-height: var(--admin-logo-height); object-fit: contain; }
.topbar-actions a, .topbar-actions button { color: inherit; text-decoration: none; }
.topbar-actions button { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.site-switcher { min-width: 170px; height: 42px; padding: 0 32px 0 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
select.form-control, select.site-switcher { padding-right: 36px; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23666b67' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center / 10px 6px; }
.sidebar-toggle { display: none; border: 0; background: transparent; }
.dashboard-sidebar { position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); padding: 20px 8px; overflow-y: auto; border-right: 1px solid var(--line); background: #fff; }
.sidebar-nav { display: flex; flex-direction: column; }
.sidebar-section-label { margin: 16px 16px 7px; font-size: .86rem; font-weight: 800; }
.sidebar-link { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 10px 17px; border-radius: 5px; font-size: .95rem; text-decoration: none; }
.sidebar-link:hover { background: #f0f1ed; }
.sidebar-link.active { background: var(--green); color: #fff; font-weight: 700; }
.sidebar-overlay { display: none; }
.dashboard-main { min-width: 0; padding: 26px 28px 50px; overflow-x: auto; }
.dashboard-main > h1, .dashboard-page-header h1 { margin-bottom: 22px; font-size: 2.35rem; }
.dashboard-page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dashboard-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.toolbar-select { width: 170px; }
.view-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.view-tabs button { min-height: 44px; padding: 8px 12px; border: 0; border-right: 1px solid var(--line); background: #fff; font-weight: 650; }
.view-tabs button:last-child { border-right: 0; }
.view-tabs button.active { background: var(--green); color: #fff; }
.month-control { display: grid; flex: 0 0 auto; grid-template-columns: 44px 160px 44px; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.month-control button, .month-control a, .month-control strong { display: grid; min-height: 44px; place-items: center; border: 0; border-right: 1px solid var(--line); background: #fff; text-decoration: none; }
.month-control > :last-child { border-right: 0; }
.toolbar-spacer { flex: 1; }
.admin-calendar-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.admin-calendar { width: 100%; min-width: 960px; border-collapse: collapse; table-layout: fixed; }
.admin-calendar th, .admin-calendar td { height: 74px; padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.admin-calendar th:first-child, .admin-calendar td:first-child { width: 160px; text-align: left; }
.admin-calendar th:last-child, .admin-calendar td:last-child { border-right: 0; }
.admin-calendar tr:last-child td { border-bottom: 0; }
.calendar-booking { display: grid; min-height: 48px; place-items: center; padding: 8px; border-radius: 4px; background: #eff0ee; }
.calendar-booking.approved { background: var(--green); color: #fff; }
.calendar-booking.reserved { background: var(--ochre); color: #fff; }
.calendar-booking.waiting { background: var(--rust); color: #fff; }
.calendar-legend { display: flex; gap: 28px; align-items: center; padding: 14px 0; font-size: .87rem; }
.legend-swatch { display: inline-block; width: 17px; height: 17px; margin-right: 7px; vertical-align: -3px; background: #e4e5e2; }
.legend-swatch.approved { background: var(--green); }
.legend-swatch.reserved { background: var(--ochre); }
.legend-swatch.waiting { background: var(--rust); }
.panel { margin-top: 12px; border: 1px solid var(--line); background: #fff; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: 1.05rem; letter-spacing: 0; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.data-table th:last-child, .data-table td:last-child { border-right: 0; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table th { color: #3f4441; font-size: .82rem; font-weight: 650; }
.config-status-table tr.config-status-row--missing td,
.config-status-table tr.config-status-row--missing code { color: #b91c1c; }
.config-status-summary { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.table-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-block { padding: 20px 0; border-top: 1px solid var(--line); }
.stat-value { font-size: 2rem; font-weight: 750; }
.stat-label { color: var(--muted); font-size: .86rem; }
.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.settings-section { padding: 24px; border: 1px solid var(--line); background: #fff; }
.settings-section h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.status-text { font-size: .85rem; font-weight: 700; }
.status-text.approved { color: var(--green); }
.status-text.waiting { color: var(--rust); }
.empty-state { padding: 50px 20px; color: var(--muted); text-align: center; }
.check-row { display: flex !important; align-items: center; gap: 8px; margin: 8px 0; font-weight: 500 !important; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.clone-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; min-width: 340px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); background: #fbfaf7; }
.clone-form label { font-size: .8rem; font-weight: 700; }
.compact-control { width: 130px; min-height: 36px; padding: 6px 8px; }
.settings-narrow { width: min(880px, 100%); margin-top: 20px; }
.settings-logo-preview { display: block; width: 180px; max-width: 100%; max-height: 72px; margin-top: 10px; object-fit: contain; object-position: left center; }
.analytics-chart { display: flex; height: 300px; align-items: end; gap: 18px; padding: 42px 32px 25px; }
.analytics-chart i { flex: 1; min-width: 12px; border-radius: 3px 3px 0 0; background: var(--green); }
.credential-reveal { display: block; margin: 0 0 24px; padding: 20px; border: 1px solid var(--ochre); background: #fff8e8; }
.credential-reveal p { margin: 8px 0 0; overflow-wrap: anywhere; }
.app-dialog { width: min(760px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 24px 80px rgb(0 0 0 / 24%); }
.app-dialog::backdrop { background: rgb(11 26 19 / 55%); }
.app-dialog form { padding: 26px; }
.app-dialog > .dialog-header { padding: 26px 26px 0; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dialog-header h2 { margin: 0; }
.dialog-header button { border: 0; background: transparent; font-size: 2rem; }
.permission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-bottom: 12px; }
.receipt { width: min(920px, 100%); }
.receipt-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 24px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.contact-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}

@media only screen and (max-width: 1024px) {
.site-header { grid-template-columns: auto 1fr auto; gap: 24px; padding-inline: 24px; }
.site-nav { gap: 22px; }
.hero-inner { grid-template-columns: .8fr 1.2fr; gap: 32px; width: calc(100% - 48px); }
.hero-copy h1 { font-size: 3.5rem; }
.hero-copy p { font-size: 1.08rem; }
.steps-section, .publisher-section, .api-section, .ecosystem-section, .site-footer { padding-inline: 24px; }
.site-marquee h2 { width: calc(100% - 48px); }
.site-marquee-item { min-width: 230px; padding-inline: 28px; }
.publisher-section, .api-section { gap: 36px; }
.site-footer nav { gap: 22px; }
.booking-shell { grid-template-columns: minmax(0, 1fr) 320px; }
.booking-main { padding-inline: 24px; }
.booking-summary { padding-inline: 24px; }
.dashboard-layout { grid-template-columns: 1fr; }
.dashboard-topbar { grid-column: 1; }
.sidebar-toggle { display: inline-grid; place-items: center; }
.dashboard-sidebar { position: fixed; z-index: 200; top: var(--topbar); left: 0; width: var(--sidebar); transform: translateX(-100%); transition: transform 180ms ease; }
.dashboard-sidebar.is-open { transform: translateX(0); }
.sidebar-overlay.is-visible { position: fixed; z-index: 190; inset: var(--topbar) 0 0; display: block; background: rgb(0 0 0 / 30%); }
.dashboard-toolbar { flex-wrap: wrap; }
.toolbar-spacer { display: none; }

}
@media only screen and (max-width: 680px) {
body { font-size: 15px; }
.site-header { height: 70px; grid-template-columns: 1fr auto; padding-inline: 16px; }
.site-header .brand-logo { width: 150px; }
.site-nav, .site-actions { display: none; }
.site-header.nav-open { height: auto; grid-template-columns: 1fr auto; padding-block: 14px; }
.site-header.nav-open .site-nav, .site-header.nav-open .site-actions { grid-column: 1 / -1; display: flex; align-items: stretch; flex-direction: column; gap: 14px; }
.nav-toggle { display: inline-grid; place-items: center; }
.hero { background-position: 68% top; background-size: auto 390px; }
.hero::after { inset: 0; background: linear-gradient(180deg, transparent 0, var(--paper) 370px); }
.hero-inner { display: block; width: calc(100% - 32px); padding-top: 300px; }
.hero-copy { padding-bottom: 28px; }
.hero-copy h1 { margin-bottom: 20px; font-size: 3rem; }
.hero-copy p { font-size: 1rem; }
.hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
.availability-preview { margin-bottom: 24px; }
.preview-table th:nth-child(2), .preview-table td:nth-child(2) { display: none; }
.steps-section { padding: 32px 16px; }
.steps-section h2 { font-size: 1.8rem; text-align: left; }
.steps { grid-template-columns: 1fr; }
.step { display: grid; grid-template-columns: 62px 1fr; min-height: auto; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-number { grid-row: 1 / 3; }
.step .icon { display: none; }
.step h3 { margin: 0; }
.step p { margin: 4px 0 0; }
.site-marquee { padding-bottom: 36px; }
.site-marquee h2 { width: calc(100% - 32px); margin-bottom: 14px; font-size: .78rem; }
.site-marquee-item { min-width: 210px; min-height: 66px; gap: 2px; padding-inline: 20px; font-size: .95rem; }
.site-marquee-item img { width: 118px; height: 38px; }
.publisher-section, .api-section { display: block; padding: 42px 16px; }
.publisher-copy { margin-bottom: 32px; }
.calendar-demo { overflow-x: auto; }
.mini-calendar { min-width: 720px; }
.api-flow { align-items: stretch; flex-direction: column; }
.api-node, .api-events { width: 100%; min-height: auto; }
.api-arrow { align-self: center; transform: rotate(90deg); }
.ecosystem-section { padding: 42px 16px; }
.ecosystem-section > header { margin-bottom: 26px; text-align: left; }
.ecosystem-grid { grid-template-columns: 1fr; }
.ecosystem-card { padding: 24px; }
.site-footer { align-items: flex-start; flex-direction: column; gap: 22px; padding: 22px 16px; }
.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.booking-header { height: 68px; padding-inline: 16px; }
.booking-header .brand-logo { width: 138px; }
.booking-header > a:nth-child(2) { display: none; }
.booking-header > a:last-child { font-size: 0; }
.booking-header > a:last-child .icon { width: 24px; height: 24px; }
.booking-shell { display: block; }
.booking-main { padding: 24px 16px; border-right: 0; }
.booking-main h1 { font-size: 1.85rem; }
.booking-main h1, .dashboard-page-header h1, .auth-panel h1 { overflow-wrap: anywhere; }
.progress { margin-bottom: 24px; }
.progress-step span:last-child { display: none; }
.booking-filters { grid-template-columns: 1fr; gap: 12px; }
.format-detail { align-items: stretch; flex-direction: column; }
.booking-summary { padding: 28px 16px; border-top: 1px solid var(--line); }
.offer-grid { grid-template-columns: 1fr; }
.topbar-left { min-width: 0; gap: 10px; }
.dashboard-topbar { padding-inline: 12px; }
.dashboard-topbar .brand-logo { width: 92px; }
.admin-site-logo { display: none; }
.site-switcher { min-width: 108px; width: 108px; }
.topbar-actions { gap: 0; }
.topbar-actions a { display: none; }
.topbar-actions button { white-space: nowrap; font-size: .82rem; }
.dashboard-main { padding: 20px 14px 40px; }
.dashboard-page-header { align-items: flex-start; flex-direction: column; }
.dashboard-main > h1, .dashboard-page-header h1 { font-size: 1.75rem; }
.dashboard-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
.month-control { grid-template-columns: 44px 1fr 44px; }
.dashboard-toolbar .form-control { width: 100%; }
.calendar-legend { flex-wrap: wrap; gap: 12px 20px; }
.panel { overflow-x: auto; }
.app-dialog > .data-table { display: block; overflow-x: auto; }
.data-table { min-width: 720px; }
.dashboard-grid, .section-grid, .form-grid { grid-template-columns: 1fr; }
.auth-wrap { min-height: calc(100vh - 70px); padding-inline: 16px; }
.analytics-chart { gap: 6px; padding-right: 15px; padding-left: 15px; }
.inline-form { min-width: 360px; }
.permission-grid { grid-template-columns: 1fr; }
.receipt-meta { grid-template-columns: 1fr; }
.toast-region, .toast-history-panel { right: 12px; left: 12px; width: auto; }
.toast-region, .toast-history-panel { bottom: calc(70px + env(safe-area-inset-bottom)); max-height: calc(100vh - 94px); }
.toast-history-toggle { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
.toast-history-list { max-height: calc(100vh - 145px); }

}
