/* IonicNet Client Portal */
:root { --ink: #1d2433; --muted: #4f5869; --line: #cfd5df; --bg: #f5f7fa; --panel: #ffffff; --brand: #0b5cad; --brand-dark: #08437f; --focus: #c2410c; --ok: #146c2e; --ok-bg: #e3f4e8; --warn: #8a4b00; --warn-bg: #fff1d6; --bad: #a3141e; --bad-bg: #fde5e6; --info-bg: #e5f0fb; --radius: 6px; }
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 0.15em; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.25; margin: 1.5em 0 0.5em; }
h1 { font-size: 2rem; margin-top: 0.75em; }
h2, .h2 { font-size: 1.5rem; }
h3, .h3 { font-size: 1.25rem; }
p, ul, ol, dl { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1rem; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 34rem; padding-top: 2rem; padding-bottom: 3rem; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--panel); color: var(--brand-dark); padding: 0.5rem 1rem; border: 2px solid var(--brand); border-radius: var(--radius); z-index: 10; }
.skip-link:focus { top: 1rem; }

/* Header and navigation */
.site-header { background: var(--brand-dark); color: #fff; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.brand span { font-weight: 400; }
.brand:hover, .brand:focus { color: #fff; text-decoration: underline; }
.brand-plain { font-weight: 700; font-size: 1.25rem; color: var(--brand-dark); }
.brand-plain span { font-weight: 400; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav a, .nav .link-button { display: block; color: #fff; text-decoration: none; padding: 0.4rem 0.7rem; border-radius: var(--radius); font-size: 1rem; }
.nav a:hover, .nav .link-button:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.nav a[aria-current="page"] { background: #fff; color: var(--brand-dark); }
.nav :focus-visible { outline-color: #fff; }
.nav form { margin: 0; }
.count { display: inline-block; min-width: 1.5em; padding: 0 0.35em; border-radius: 1em; background: #ffd166; color: #1d2433; text-align: center; font-weight: 700; }
.site-footer { margin-top: 4rem; padding: 1.5rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.breadcrumb { margin: 1.5rem 0 0; font-size: 1rem; }
.breadcrumb + h1 { margin-top: 0.25em; }

/* Buttons */
.button { display: inline-block; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.3; padding: 0.65rem 1.1rem; border: 2px solid var(--brand); border-radius: var(--radius); background: var(--brand); color: #fff; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button.secondary { background: var(--panel); color: var(--brand-dark); }
.button.secondary:hover { background: var(--info-bg); color: var(--brand-dark); }
.button.danger { background: var(--bad); border-color: var(--bad); }
.link-button { font: inherit; font-size: 1rem; background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
.link-button.danger, a.danger { color: var(--bad); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.inline-form { display: inline; margin: 0; }

/* Forms */
.stack > * + * { margin-top: 1rem; }
.field { margin: 0 0 1rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 0.25rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 2px solid #8a93a3; border-radius: var(--radius); padding: 0.55rem 0.7rem; width: 100%; max-width: 40rem; }
textarea { min-height: 6rem; }
input[type="checkbox"], input[type="radio"] { width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--brand); }
input[type="file"] { border-style: dashed; padding: 0.75rem; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
.check { display: flex; align-items: flex-start; gap: 0.6rem; }
.check label { font-weight: 400; margin: 0; }
.field.check { margin-bottom: 0.75rem; }
.check.small label { font-size: 1rem; }
.hint { color: var(--muted); font-size: 1rem; margin: 0 0 0.35rem; }
.hint ul { margin: 0.25rem 0 0.5rem; }
.field-error { color: var(--bad); font-weight: 600; margin: 0.35rem 0 0; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.field-row > .field { flex: 1 1 12rem; }
.error-summary { border: 3px solid var(--bad); background: var(--bad-bg); padding: 1rem 1.25rem; border-radius: var(--radius); margin: 1rem 0; }
.error-summary h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--bad); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 1rem; }
.filters .field { flex: 0 1 16rem; }
.copy-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.copy-row input { flex: 1 1 24rem; max-width: none; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Messages */
.flashes { margin: 1rem 0; }
.flash { padding: 0.75rem 1rem; border-radius: var(--radius); border-left: 6px solid var(--ok); background: var(--ok-bg); margin: 0 0 0.5rem; }
.flash-error { border-color: var(--bad); background: var(--bad-bg); }
.flash-info { border-color: var(--brand); background: var(--info-bg); }

/* Layout pieces */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 0 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 1.25rem; }
.tool-forms .panel { margin: 1rem 0; }
.card-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.card h2, .card h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.card p { margin-bottom: 0.5rem; }
.plain-list { padding-left: 1.25rem; }
.plain-list li { margin-bottom: 0.5rem; }
.stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.stats a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--ink); text-decoration: none; }
.stats a:hover { border-color: var(--brand); }
.stat-num { display: block; font-size: 1.75rem; font-weight: 700; color: var(--brand-dark); }
.meta-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; }
.meta-list dt { font-weight: 600; }
.meta-list dd { margin: 0; }
.danger-zone { margin-top: 3rem; padding-top: 1rem; border-top: 2px solid var(--bad-bg); }
.checks { list-style: none; padding: 0; }
.checks .ok span[aria-hidden] { color: var(--ok); font-weight: 700; }
.checks .bad { color: var(--bad); font-weight: 600; }
.tabs ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.tabs a { display: block; padding: 0.35rem 0.8rem; border: 2px solid var(--line); border-radius: 2rem; text-decoration: none; font-size: 1rem; }
.tabs a[aria-current="page"] { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

/* Badges */
.badge { display: inline-block; font-size: 1rem; line-height: 1.3; font-weight: 600; padding: 0.05rem 0.55rem; border-radius: 1rem; background: #e7eaf0; color: var(--ink); border: 1px solid #b8c0cc; white-space: nowrap; }
.badge-active, .badge-in_progress, .badge-sent, .badge-soon { background: var(--info-bg); border-color: #8fb5df; color: var(--brand-dark); }
.badge-completed, .badge-done, .badge-paid { background: var(--ok-bg); border-color: #8cc79d; color: var(--ok); }
.badge-on_hold, .badge-waiting { background: var(--warn-bg); border-color: #e5b866; color: var(--warn); }
.badge-urgent, .badge-void { background: var(--bad-bg); border-color: #e59aa0; color: var(--bad); }

/* Progress */
.progress-wrap { margin: 0.5rem 0 1rem; }
.progress-label { margin: 0 0 0.25rem; }
progress { -webkit-appearance: none; appearance: none; width: 100%; max-width: 40rem; height: 1rem; border: 1px solid #8a93a3; border-radius: 1rem; background: #e7eaf0; overflow: hidden; display: block; }
progress::-webkit-progress-bar { background: #e7eaf0; border-radius: 1rem; }
progress::-webkit-progress-value { background: var(--ok); border-radius: 1rem; }
progress::-moz-progress-bar { background: var(--ok); border-radius: 1rem; }

/* Checklist (admin) */
.phase { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1.25rem 0.5rem; margin: 0 0 1rem; }
.phase legend { font-size: 1.25rem; font-weight: 700; padding: 0 0.35rem; }
.phase-tools { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.5rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.5rem 0; border-top: 1px solid #e6e9ef; }
.checklist li:first-child { border-top: 0; }
.checklist .is-done > .check label { color: var(--muted); text-decoration: line-through; }
.item-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.sticky-save { position: sticky; bottom: 0; background: var(--bg); padding: 0.75rem 0; margin: 0; display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--line); }

/* Plan (client) */
.phases { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.phase-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.phase-card h3 { margin: 0 0 0.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
.status-list { list-style: none; padding: 0; margin: 0; }
.status-list li { padding: 0.2rem 0; }
.status-list .mark { display: inline-block; width: 1.25em; font-weight: 700; color: var(--muted); }
.status-list .is-done .mark { color: var(--ok); }

/* Updates, comments, threads */
.update { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0 0 1.5rem; scroll-margin-top: 1rem; }
.update header h3 { margin: 0; }
.update header p { margin: 0.25rem 0 0.75rem; }
.comments ol, .thread { list-style: none; padding: 0; margin: 1rem 0; }
.comment { border-left: 4px solid var(--line); padding: 0.5rem 0 0.5rem 1rem; margin: 0 0 0.75rem; scroll-margin-top: 1rem; }
.comment-admin { border-left-color: var(--brand); }
.comment-client { border-left-color: var(--ok); }
.comment-meta { margin: 0 0 0.25rem; }
.comment p:last-child { margin-bottom: 0; }
.comment-form { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.file-list { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.file-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; }
.file-thumb { display: inline-flex; flex-direction: column; gap: 0.25rem; }
.file-thumb img { width: 160px; height: 110px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.email-body { white-space: normal; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); }
.table th, .table td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
.table thead th { background: #eef1f5; }
.table tbody th { font-weight: 600; }
.table .num { text-align: right; white-space: nowrap; }
.line-table input { max-width: none; }
.line-table td:first-child { width: 60%; }

/* Invoice */
.invoice { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; margin: 1.5rem 0; }
.invoice-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.invoice-head p { margin: 0 0 0.25rem; }
.invoice-meta { display: grid; grid-template-columns: max-content auto; gap: 0.15rem 1rem; margin: 0; }
.invoice-meta dt { font-weight: 600; }
.invoice-meta dd { margin: 0; }
.small-heading { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 1.5rem 0 0.25rem; }
.invoice .table-wrap { margin: 1.5rem 0; }
.invoice-lines .total { font-weight: 700; font-size: 1.25rem; }


/* Design Studio */
.is-studio .wrap { max-width: 110rem; }
.badge-submitted { background: var(--info-bg); border-color: #8fb5df; color: var(--brand-dark); }
.badge-approved { background: var(--ok-bg); border-color: #8cc79d; color: var(--ok); }
.studio-head { margin-bottom: 1rem; }
.studio-title h1 { margin-bottom: 0.25rem; }
.studio-title p { margin: 0; }
.studio-save { margin: 0.5rem 0; font-weight: 600; color: var(--muted); }
.studio { display: grid; grid-template-columns: 14rem minmax(20rem, 30rem) 1fr; gap: 1.25rem; align-items: start; }
.studio-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: step; position: sticky; top: 1rem; }
.studio-step { display: block; width: 100%; text-align: left; font: inherit; font-size: 1rem; padding: 0.6rem 0.8rem; margin: 0 0 0.35rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); cursor: pointer; }
.studio-step::before { counter-increment: step; content: counter(step) ". "; font-weight: 700; }
.studio-step:hover { border-color: var(--brand); }
.studio-step[aria-current="step"] { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.studio-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.studio-panel h2:first-child { margin-top: 0; }
.studio-panel h2:focus { outline: none; }
.studio-panel h2:focus-visible { outline: 3px solid var(--focus); }
.studio-panel input, .studio-panel select, .studio-panel textarea { max-width: none; }
.step-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.35rem 1rem; }
.field-label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.image-current { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.image-current img { width: 160px; height: 80px; object-fit: contain; background: repeating-conic-gradient(#e7eaf0 0% 25%, #fff 0% 50%) 50% / 16px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.upload-label { display: inline-block; font-weight: 400; margin: 0 0 0.25rem; }
.palette-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.5rem; }
.palette { font: inherit; font-size: 1rem; text-align: left; padding: 0.5rem; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.palette[aria-pressed="true"] { border-color: var(--brand-dark); box-shadow: 0 0 0 2px var(--brand-dark); }
.swatches { display: flex; margin-bottom: 0.35rem; }
.swatches span { flex: 1; height: 1.5rem; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.75rem 1rem; }
.color-field label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.color-row { display: flex; gap: 0.5rem; }
.color-row input[type="color"] { width: 3.25rem; height: 2.75rem; padding: 0.2rem; flex: none; }
.color-row .hex { font-family: ui-monospace, Menlo, Consolas, monospace; }
.contrast { margin: 1rem 0; }
.contrast h3 { margin-top: 0; }
.contrast ul { list-style: none; padding: 0; }
.contrast li { margin-bottom: 0.4rem; }
.contrast .bad { color: var(--bad); }
.chip { display: inline-block; padding: 0 0.4rem; border: 1px solid var(--line); border-radius: 4px; font-weight: 700; }
.item-list { padding-left: 1.25rem; }
.item-list li { margin-bottom: 0.75rem; }
.item-list li > input { width: auto; max-width: 70%; }
.item-row { border-left: 3px solid var(--line); padding-left: 0.75rem; }
.icon-row { display: flex; align-items: center; gap: 0.5rem; }
.icon-preview { width: 2.5rem; height: 2.5rem; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); font-size: 1.25rem; color: var(--brand-dark); }
.section-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.section-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.5rem; background: #fbfcfd; }
.section-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; }
.section-name { font-weight: 700; }
.section-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.section-opts { border-top: 1px solid var(--line); padding: 0.75rem; }
.button.small { padding: 0.35rem 0.6rem; }
.add-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.5rem; }
.add-section { width: 100%; height: 100%; font: inherit; font-size: 1rem; text-align: left; padding: 0.6rem 0.75rem; border: 2px dashed #8a93a3; border-radius: var(--radius); background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 0.2rem; }
.add-section:hover { border-color: var(--brand); background: var(--info-bg); }
.add-section strong::before { content: "+ "; }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; }
.summary dt { font-weight: 700; }
.summary dd { margin: 0; }
.summary ol { margin: 0; padding-left: 1.25rem; }
.studio-preview { position: sticky; top: 1rem; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.preview-bar h2 { margin: 0; }
.device-toggle { display: flex; gap: 0.35rem; }
.device-toggle .button[aria-pressed="true"], .device-toggle .button[aria-pressed="true"]:hover { background: var(--brand-dark); color: #fff; }
.preview-note { margin: 0.35rem 0 0.5rem; }
.preview-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #e7eaf0; max-height: 80vh; overflow-y: auto; }
.preview-frame.is-mobile { background: #cfd5df; }
.studio-admin { margin-top: 2rem; }
@media (max-width: 75rem) { .studio { grid-template-columns: 1fr 1.2fr; } .studio-steps { grid-column: 1 / -1; } .studio-steps ol { position: static; display: flex; flex-wrap: wrap; gap: 0.35rem; } .studio-step { width: auto; margin: 0; } }
@media (max-width: 50rem) { .studio { grid-template-columns: 1fr; } .studio-preview { position: static; } }

/* Preview canvas (drawn at full size, scaled by script). Inherits fonts and colors from the design. */
.pv { position: absolute; top: 0; left: 0; transform-origin: top left; font-size: 16px; line-height: 1.5; background: #fff; }
.pv i { margin-right: 0.25em; }
.pv-stripes { display: flex; height: 10px; }
.pv-stripes span { flex: 1; }
.pv-info { display: flex; justify-content: space-between; gap: 1rem; padding: 6px 24px; font-size: 16px; }
.pv-info-links, .pv-header-links { display: flex; gap: 18px; }
.pv-header { padding: 16px 24px; }
.pv-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pv-row-search { margin-top: 12px; }
.pv-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pv-center { text-align: center; }
.pv-tagline { margin: 4px 0 0; }
.pv-logo-img { max-height: 72px; max-width: 320px; display: inline-block; }
.pv-logo-text { font-size: 30px; font-weight: 700; }
.pv-inline-nav { display: flex; gap: 22px; font-weight: 700; }
.pv-nav { display: flex; gap: 28px; padding: 12px 24px; font-weight: 700; }
.pv-burger { display: none; }
.pv-mega { display: flex; gap: 24px; align-items: center; padding: 14px 24px; background: #f5f7fa; box-shadow: 0 6px 12px rgba(0,0,0,.08); }
.pv-search { min-width: 420px; }
.pv-tabs { display: flex; gap: 4px; margin-bottom: 4px; }
.pv-tabs span { padding: 4px 12px; border-radius: 6px 6px 0 0; background: #e7eaf0; }
.pv-tabs-left { margin-bottom: 12px; }
.pv-input { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border: 2px solid #8a93a3; border-radius: 6px; background: #fff; color: #555; }
.pv-small { padding: 6px 10px; margin-bottom: 8px; }
.pv-body { min-height: 200px; }
.pv-with-side { display: grid; grid-template-columns: 240px 1fr; }
.pv-side { display: flex; flex-direction: column; gap: 4px; padding: 16px; font-weight: 700; }
.pv-side span { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.25); }
.pv-section { padding: 28px 24px; }
.pv-h { margin: 0 0 14px; font-size: 26px; }
.pv-band { padding: 28px 24px; }
.pv-search-big { max-width: 760px; }
.pv-cta { display: flex; justify-content: space-between; align-items: center; font-size: 24px; }
.pv-btn { display: inline-block; padding: 8px 18px; border-radius: 6px; font-weight: 700; margin: 8px 8px 0 0; }
.pv-alert { padding: 12px 24px; }
.pv-hero { position: relative; }
.pv-hero-img { height: 100%; position: absolute; inset: 0; background-size: cover; background-position: center; }
.pv-hero-tall { height: 420px; }
.pv-hero-short { height: 280px; }
.pv-hero-text { position: absolute; left: 32px; bottom: 40px; padding: 18px 22px; border-radius: 8px; font-size: 24px; max-width: 520px; }
.pv-hero-center { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); text-align: center; }
.pv-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.pv-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.6); }
.pv-dots .on { background: #fff; }
.pv-grid { display: grid; gap: 16px; }
.pv-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pv-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pv-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pv-grid-6 { grid-template-columns: repeat(6, 1fr); }
.pv-list { display: grid; gap: 10px; }
.pv-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; border: 2px solid; border-radius: 10px; font-weight: 700; text-align: center; }
.pv-box i { font-size: 36px; margin: 0; }
.pv-box-img { width: 100%; height: 110px; border-radius: 6px; background-size: cover; background-position: center; }
.pv-event { display: flex; gap: 12px; align-items: center; padding: 10px; background: #fff; border: 1px solid #dde2ea; border-radius: 8px; color: #1d2433; }
.pv-date { display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border-radius: 6px; line-height: 1.1; }
.pv-date b { font-size: 22px; }
.pv-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: #fff; border: 1px solid #dde2ea; border-radius: 8px; color: #1d2433; }
.pv-card-img { height: 110px; border-radius: 6px; background-size: cover; }
.pv-books { display: flex; gap: 18px; }
.pv-book { width: 130px; height: 190px; border-radius: 4px; box-shadow: 4px 4px 0 rgba(0,0,0,.15); }
.pv-db { padding: 26px 8px; text-align: center; border: 1px dashed #8a93a3; border-radius: 8px; background: #fff; color: #555; }
.pv-map { display: grid; place-items: center; min-height: 160px; background: #dfe7df; border-radius: 8px; color: #355; font-size: 20px; }
.pv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.pv-split-left .pv-split-img { order: -1; }
.pv-split-img { height: 240px; border-radius: 10px; background-size: cover; background-position: center; }
.pv-inline-form { display: flex; gap: 10px; align-items: center; max-width: 560px; margin-top: 10px; }
.pv-inline-form .pv-input { flex: 1; }
.pv-inline-form .pv-btn { margin: 0; }
.pv-faq { display: flex; justify-content: space-between; padding: 12px 14px; border: 2px solid; border-radius: 6px; margin-bottom: 8px; background: #fff; color: #1d2433; }
.pv-footer { padding: 28px 24px 14px; }
.pv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.pv-cols p { margin: 6px 0 0; }
.pv-social { display: flex; gap: 14px; font-size: 24px; margin: 16px 0 0; }
.pv-footer .pv-center .pv-social { justify-content: center; }
.pv-bottom { display: flex; gap: 22px; border-top: 1px solid rgba(127,127,127,.4); margin-top: 18px; padding-top: 10px; }
.is-mobile .pv-inline-nav, .is-mobile .pv-nav > span:not(.pv-burger), .is-mobile .pv-info-links, .is-mobile .pv-header-links, .is-mobile .pv-mega, .is-mobile .pv-side { display: none; }
.is-mobile .pv-burger { display: block; }
.is-mobile .pv-row { flex-wrap: wrap; }
.is-mobile .pv-search { min-width: 0; width: 100%; }
.is-mobile .pv-with-side, .is-mobile .pv-split, .is-mobile .pv-cols { grid-template-columns: 1fr; }
.is-mobile .pv-grid-3, .is-mobile .pv-grid-4, .is-mobile .pv-grid-6 { grid-template-columns: repeat(2, 1fr); }
.is-mobile .pv-books { flex-wrap: wrap; }
.is-mobile .pv-book { width: 100px; height: 150px; }
.is-mobile .pv-hero-tall { height: 320px; }
.is-mobile .pv-hero-text { left: 12px; right: 12px; bottom: 30px; font-size: 20px; }
.is-mobile .pv-hero-center { left: 50%; right: auto; width: 85%; }
.is-mobile .pv-cta { flex-direction: column; align-items: flex-start; }
.is-mobile .pv-logo-text { font-size: 24px; }
.is-mobile .pv-bottom { flex-direction: column; gap: 4px; }

@media (max-width: 40rem) {
	h1 { font-size: 1.75rem; }
	.panel, .update, .invoice { padding: 1rem; }
	.invoice .table th, .invoice .table td { padding: 0.5rem; }
	.nav a, .nav .link-button { padding: 0.35rem 0.5rem; }
}

@media print {
	body { background: #fff; font-size: 12pt; }
	.site-header, .site-footer, .skip-link, .no-print, .flashes { display: none !important; }
	.wrap { max-width: none; padding: 0; }
	.invoice { border: 0; padding: 0; margin: 0; }
	a { color: inherit; text-decoration: none; }
	.badge { border: 1px solid #000; background: none; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
