: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.webp?v=20261025224040') 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, .auth-panel .auth-title { margin-bottom: 12px; font-size: 2.4rem; }
/* A second panel's heading that replaces the page's h1 when shown (reset-password.php), so the page keeps one h1. */
.auth-panel .auth-title { line-height: 1.08; letter-spacing: -0.055em; }
.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; }
.summary-links { margin: 18px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }
.summary-links a { color: inherit; }
.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; }
.topbar-actions { flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.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 :is(button, a) { min-height: 44px; padding: 8px 12px; border: 0; border-right: 1px solid var(--line); background: #fff; font-weight: 650; }
.view-tabs a { display: inline-flex; align-items: center; text-decoration: none; }
.view-tabs :is(button, a):last-child { border-right: 0; }
.view-tabs :is(button, a).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; }
/* DeskFlow configuration status (shared markup from scripts/deskflow-config-status.php).
   :is(body, #dcs#dcs#dcs) matches every page but carries three-ID specificity, so these rules
   win over the products' element rules (#outerwrap dt, #content li, #outerwrap #content form *). */
:is(body, #dcs#dcs#dcs) .deskflow-config-status {
	--dcs-ok: #15803d;
	--dcs-ok-soft: #dcfce7;
	--dcs-info: #1d4ed8;
	--dcs-info-soft: #dbeafe;
	--dcs-warn: #a16207;
	--dcs-warn-soft: #fef3c7;
	--dcs-danger: #b91c1c;
	--dcs-danger-soft: #fee2e2;
	--dcs-line: #d7dce1;
	--dcs-muted: #5b6573;
	display: block;
	float: none;
	clear: both;
	width: auto;
	margin: 0 0 24px;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status :is(section, header, p, ul, li, dl, dt, dd, form, fieldset, legend, label, input, button, table, div) {
	float: none;
	clear: none;
	box-sizing: border-box;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__summary {
	display: block;
	width: auto;
	margin: 8px 0 16px;
	padding: 20px 24px;
	border: 1px solid var(--dcs-line);
	border-radius: 12px;
	background: #fff;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	background: none;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__head p {
	flex: 1 1 100%;
	width: auto;
	margin: 4px 0 0;
	color: var(--dcs-muted);
	line-height: 1.5;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__chip,
:is(body, #dcs#dcs#dcs) .deskflow-config-status__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	max-width: 100%;
	border-radius: 999px;
	font-weight: 600;
	line-height: 1.2;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__chip {
	padding: 6px 12px;
	white-space: normal;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__badge {
	padding: 3px 10px;
	font-size: 0.9em;
	white-space: nowrap;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__table td:first-child {
	white-space: nowrap;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__chip::before,
:is(body, #dcs#dcs#dcs) .deskflow-config-status__badge::before {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

:is(body, #dcs#dcs#dcs) :is(.deskflow-config-status__chip--ok, .deskflow-config-status__badge--ok) {
	background: var(--dcs-ok-soft);
	color: var(--dcs-ok);
}

:is(body, #dcs#dcs#dcs) :is(.deskflow-config-status__chip--info, .deskflow-config-status__badge--info) {
	background: var(--dcs-info-soft);
	color: var(--dcs-info);
}

:is(body, #dcs#dcs#dcs) :is(.deskflow-config-status__chip--warn, .deskflow-config-status__badge--warn) {
	background: var(--dcs-warn-soft);
	color: var(--dcs-warn);
}

:is(body, #dcs#dcs#dcs) :is(.deskflow-config-status__chip--danger, .deskflow-config-status__badge--danger) {
	background: var(--dcs-danger-soft);
	color: var(--dcs-danger);
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__counts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: auto;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__count {
	display: block;
	margin: 0;
	padding: 6px 12px;
	border-left: 4px solid currentColor;
	border-radius: 6px;
	background: #f6f7f9;
	font-size: inherit;
	line-height: 1.3;
	list-style: none;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__count::marker {
	content: "";
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__count::before {
	content: none;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__count strong {
	font-variant-numeric: tabular-nums;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__count--ok { color: var(--dcs-ok); }
:is(body, #dcs#dcs#dcs) .deskflow-config-status__count--info { color: var(--dcs-info); }
:is(body, #dcs#dcs#dcs) .deskflow-config-status__count--warn { color: var(--dcs-warn); }
:is(body, #dcs#dcs#dcs) .deskflow-config-status__count--danger { color: var(--dcs-danger); }

:is(body, #dcs#dcs#dcs) .deskflow-config-status__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	gap: 14px 24px;
	width: auto;
	margin: 0;
	padding: 0;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__grid > div {
	min-width: 0;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__grid :is(dt, dd) {
	display: block;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	overflow-wrap: break-word;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__grid dt {
	margin-bottom: 4px;
	color: var(--dcs-muted);
	font-size: 0.85em;
	font-weight: 600;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	width: auto;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	background: none;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__search {
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__search label {
	display: block;
	flex: 1 0 100%;
	width: auto;
	margin: 0;
	font-weight: 600;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__search input[type="search"] {
	flex: 1 1 240px;
	width: auto;
	min-width: 0;
	min-height: 40px;
	margin: 0;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__search .button,
:is(body, #dcs#dcs#dcs) .deskflow-config-status__search button {
	flex: 0 0 auto;
	width: auto;
	min-height: 40px;
	margin: 0;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	margin: 0;
	font-size: inherit;
	cursor: pointer;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__check input {
	width: auto;
	min-height: 0;
	margin: 0;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__labels {
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
	gap: 8px 16px;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--dcs-line);
	border-radius: 8px;
	background: none;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__labels legend {
	display: block;
	width: auto;
	margin: 0;
	padding: 0 4px;
	border: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	font-weight: 600;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__table-wrap {
	display: block;
	width: auto;
	max-width: 100%;
	overflow-x: auto;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__table {
	width: 100%;
	min-width: 640px;
	max-width: none;
	margin: 0;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__table :is(td, code) {
	overflow-wrap: break-word;
	word-break: normal;
	white-space: normal;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__row td:first-child {
	border-left: 4px solid transparent;
}

:is(body, #dcs#dcs#dcs) .deskflow-config-status__row--ok td:first-child { border-left-color: var(--dcs-ok); }
:is(body, #dcs#dcs#dcs) .deskflow-config-status__row--info td:first-child { border-left-color: var(--dcs-info); }
:is(body, #dcs#dcs#dcs) .deskflow-config-status__row--warn td:first-child { border-left-color: var(--dcs-warn); }
:is(body, #dcs#dcs#dcs) .deskflow-config-status__row--danger td:first-child { border-left-color: var(--dcs-danger); }
:is(body, #dcs#dcs#dcs) .deskflow-config-status__row--danger td { background: #fff7f7; }
.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}
/* Messages and information published in DeskFlow (functions/deskflow-content.func.php), on their own admin pages.
   DeskFlow's colours (--deskflow-message-bg/-fg, set per card) go on the header band and the edge. */
.deskflow-messages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; margin: 0 0 22px; }
/* "Viktige meldinger" in the top menu (include/admin_header.php): bold with a red count while this user has unseen messages. */
.topbar-messages { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-messages.has-new { font-weight: 700; border-radius: 6px; animation: topbar-messages-pulse 1s ease-in-out 4; }
/* While there are unseen messages, the link pulses red four times (4 s) on each page load, then rests as it was (from NewsFlow 728cf36b58).
   The glow is a shadow, so the link keeps its place in the bar. */
@keyframes topbar-messages-pulse { 50% { background-color: var(--rust-soft); box-shadow: 0 0 0 6px var(--rust-soft), 0 0 0 8px rgb(196 59 34 / 35%); color: var(--rust); } }
.topbar-messages.active { text-decoration: underline; text-underline-offset: 5px; }
.topbar-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rust); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1; }
.deskflow-message__new { display: inline-block; margin-right: 4px; padding: 0 5px; border: 1px solid rgb(255 255 255 / 85%); border-radius: 4px; background: var(--rust); color: #fff; font-size: .72rem; font-weight: 700; vertical-align: 2px; }
.deskflow-messages__archive { margin: 0 0 22px; font-size: .9rem; font-weight: 700; }
.deskflow-messages__archive a { color: var(--green); text-decoration: underline; }
/* The edge is the message colour a little darker, so a white or pale message still shows its edge and band. */
.deskflow-message { --deskflow-message-edge: color-mix(in srgb, var(--deskflow-message-bg, var(--green)) 82%, #000); min-width: 0; border: 1px solid var(--line); border-left: 4px solid var(--deskflow-message-edge); border-radius: var(--radius); background: #fff; overflow: hidden; }
.deskflow-message--important { border-color: var(--deskflow-message-edge); border-width: 2px 2px 2px 4px; box-shadow: var(--shadow); }
.deskflow-message__header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 10px 16px; background: var(--deskflow-message-bg, var(--green)); color: var(--deskflow-message-fg, #fff); border-bottom: 1px solid var(--deskflow-message-edge); }
.deskflow-message__header h2 { margin: 0; font-size: 1rem; line-height: 1.35; letter-spacing: 0; overflow-wrap: anywhere; }
.deskflow-message__date { font-size: .8rem; font-weight: 650; white-space: nowrap; opacity: .85; }
.deskflow-message__body { padding: 12px 16px 0; font-size: .92rem; overflow-wrap: anywhere; }
.deskflow-message__body > :last-child { margin-bottom: 12px; }
.deskflow-message__more { margin: 0; padding: 8px 16px 12px; font-size: .85rem; font-weight: 700; }
.deskflow-message__more a, .deskflow-message__body a, .deskflow-archive a { color: var(--green); text-decoration: underline; }
.deskflow-message__body p, .deskflow-message__body ul, .deskflow-message__body ol { margin: 0 0 8px; }
.deskflow-message__body img, .deskflow-message__body iframe, .deskflow-archive img, .deskflow-archive iframe { max-width: 100%; height: auto; }
.deskflow-message__body iframe, .deskflow-archive iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.deskflow-message__body code, .deskflow-archive code { padding: 1px 4px; border-radius: 3px; background: var(--paper-deep); font-size: .88em; }
.deskflow-archive { width: min(880px, 100%); overflow-wrap: anywhere; }
.deskflow-archive__item { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.deskflow-archive__item:first-child, .deskflow-archive__pages + .deskflow-archive__item { padding-top: 0; }
.deskflow-archive__item:last-child, .deskflow-archive__item:has(+ .deskflow-archive__pages) { border-bottom: 0; }
.deskflow-archive__item h2 { margin: 0 0 4px; font-size: 1.15rem; letter-spacing: -.01em; }
.deskflow-archive__date { margin: 0 0 8px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.deskflow-archive__empty { margin: 0; color: var(--muted); }
.deskflow-archive__pages ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.deskflow-archive__item + .deskflow-archive__pages ul { margin: 18px 0 0; }
.deskflow-archive__pages a { display: grid; min-width: 40px; min-height: 40px; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: inherit; font-weight: 650; text-decoration: none; }
.deskflow-archive__pages a:hover { background: #f0f1ed; }
.deskflow-archive__page--active a { border-color: var(--green); background: var(--green); color: #fff; }

/* Cookie banner and cookie list. Same layout as ImageFlow's and NewsFlow's cookie_consent.css, in AdsFlow's colours.
   The three buttons are equally prominent, so declining is as easy to see as accepting. It sits above the toasts
   (z-index 250-252); the small-screen layout is in base-small.css. */
.cookie-banner { position: fixed; z-index: 300; inset: auto 1rem 1rem; max-width: 46rem; max-height: 90vh; overflow: auto; margin: auto; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 .5rem 2rem rgb(20 27 23 / 30%); line-height: 1.45; }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { margin: 0 0 .4rem; font-size: 1.35em; }
.cookie-banner p { margin: 0 0 1rem; }
.cookie-banner__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0 1.25rem; }
.cookie-banner__choices label { display: flex; align-items: flex-start; gap: .75rem; padding: .8rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.cookie-banner__choices label:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.cookie-banner__choices input { flex: none; width: 1.2rem; height: 1.2rem; margin: .1rem 0 0; accent-color: var(--green); cursor: pointer; }
.cookie-banner__choices input:disabled { cursor: default; }
.cookie-banner__choices strong { display: block; }
.cookie-banner__choices small { display: block; color: var(--muted); font-size: .85em; line-height: 1.35; }
.cookie-banner__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.cookie-banner__actions button { min-height: 2.75rem; padding: .6rem .8rem; border: 2px solid var(--green); border-radius: var(--radius); background: var(--surface); color: var(--green-dark); cursor: pointer; font: inherit; font-weight: 700; }
.cookie-banner__actions button:hover { background: var(--green-soft); }
.cookie-banner__actions button:disabled { cursor: wait; opacity: .7; }
.cookie-banner__actions button:focus-visible, .cookie-banner a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.cookie-banner .cookie-banner__privacy { margin: 1rem 0 0; text-align: center; }
.cookie-banner__privacy a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.cookie-catalog-scroll { max-width: 100%; overflow-x: auto; }
.cookie-catalog { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cookie-catalog th, .cookie-catalog td { padding: .45rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }

@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; }
.auth-wrap { grid-template-columns: minmax(0, 1fr); }
.auth-wrap .panel { overflow-x: auto; }

}
@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; grid-column: 2; grid-row: 1; }
.hero { background-image: url('/assets/img/adsflow-newspaper-hero-small.webp?v=20261025224040'); 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: 0; width: 108px; }
.topbar-actions { flex-shrink: 0; 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: 4px; padding-right: 15px; padding-left: 15px; }
.analytics-chart i { min-width: 0; }
.inline-form, .clone-form { min-width: 0; max-width: 100%; flex-direction: column; align-items: stretch; }
.inline-form .compact-control, .clone-form .compact-control { width: 100%; }
.clone-form label { display: grid; gap: 6px; }
.table-actions > details { min-width: 0; max-width: 100%; }
.table-actions > details[open] { flex-basis: 100%; width: 100%; }
.clone-form { width: 100%; }
.auth-panel .panel-header { flex-wrap: wrap; gap: 12px; }
.permission-grid { grid-template-columns: 1fr; }
.receipt-meta { grid-template-columns: 1fr; }
.receipt > .data-table { display: block; min-width: 0; overflow-x: auto; }
.receipt > .data-table th, .receipt > .data-table td { white-space: nowrap; }
.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); }
.cookie-banner { inset: auto .5rem .5rem; max-height: calc(100vh - 1rem); padding: 1rem; }
.cookie-banner__choices, .cookie-banner__actions { grid-template-columns: 1fr; }
.deskflow-messages { margin-bottom: 18px; }
.deskflow-message__header, .deskflow-message__more { padding-inline: 12px; }
.deskflow-message__body { padding-inline: 12px; }
.deskflow-archive.settings-section { padding: 16px; }

/* Shared record cards: keep original controls and row filtering in place. */
:is(.data-table, .admin-calendar).record-list,
:is(.data-table, .admin-calendar).record-list > tbody,
:is(.data-table, .admin-calendar).record-list > tfoot { display: block; width: 100%; min-width: 0; }
:is(.data-table, .admin-calendar).record-list > thead { display: none; }
:is(.data-table, .admin-calendar).record-list > tbody > tr,
:is(.data-table, .admin-calendar).record-list > tfoot > tr,
:is(.data-table, .admin-calendar).record-list > thead.record-list-has-controls { display: block; }
:is(.data-table, .admin-calendar).record-list > tbody > tr { padding: 8px 0; border-bottom: 2px solid var(--border, var(--line)); }
:is(.data-table, .admin-calendar).record-list > tbody > tr:last-child { border-bottom: 0; }
:is(.data-table, .admin-calendar).record-list > :is(tbody, tfoot) > tr > :is(td, th),
:is(.data-table, .admin-calendar).record-list > thead.record-list-has-controls > tr > .record-list-control {
    display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
    padding: 8px 12px; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere;
}
:is(.data-table, .admin-calendar).record-list > thead.record-list-has-controls > tr { display: block; }
:is(.data-table, .admin-calendar).record-list > thead.record-list-has-controls > tr > :not(.record-list-control) { display: none; }
:is(.data-table, .admin-calendar).record-list > tbody > tr > [data-label]:not([data-label=""])::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    color: var(--muted); font-size: .8rem; font-weight: 650;
}
:is(.data-table, .admin-calendar).record-list .table-actions { flex-wrap: wrap; white-space: normal; }
:is(.data-table, .admin-calendar).record-list :is(input:not([type=checkbox]):not([type=radio]), select, textarea, img, .inline-form) {
    min-width: 0; max-width: 100%; box-sizing: border-box;
}
:is(.data-table, .admin-calendar).record-list :is(button, .button) { white-space: normal; }
:is(.data-table, .admin-calendar).record-list img { height: auto; }
:is(.data-table, .admin-calendar).record-list [hidden] { display: none !important; }

/* Match the shared configuration widget's existing scoped overrides. */
:is(body, #dcs#dcs#dcs) .deskflow-config-status__table.record-list { min-width: 0; }
:is(body, #dcs#dcs#dcs) .deskflow-config-status__table.record-list :is(td, code) { overflow-wrap: anywhere; white-space: normal; }

.admin-calendar.record-list td { height: auto; }
.admin-calendar.record-list .calendar-booking { min-height: 44px; white-space: normal; overflow-wrap: anywhere; }

}
@media (prefers-reduced-motion: reduce) {
/* For visitors who ask for less motion (prefers-reduced-motion, wrapped by web/style.php): what moves on its own stands still. */
.topbar-messages.has-new { animation: none; }

}
