:root {
  --navy: #0b3d64;
  --navy-2: #082f4e;
  --blue: #1769aa;
  --blue-soft: #e9f3fb;
  --green: #267657;
  --green-soft: #e9f6ef;
  --amber: #9a5d09;
  --amber-soft: #fff4dc;
  --red: #a23b43;
  --red-soft: #fdecef;
  --ink: #17263a;
  --muted: #5a6b80;
  --line: #d9e1e9;
  --surface: #fff;
  --canvas: #f3f6f9;
  --shadow: 0 10px 32px rgba(20, 47, 73, .09);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
*[hidden] { display: none !important; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .55rem; font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1.1; letter-spacing: -.025em; }
h2 { margin-bottom: .4rem; font-size: 1.25rem; }
small { color: var(--muted); }

.app-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px; background: var(--navy-2); color: #fff; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; margin: 0 8px 28px; }
.brand:hover { text-decoration: none; }
.brand strong, .brand small { display: block; color: #fff; }
.brand strong { font-size: 1.08rem; }
.brand small { opacity: .72; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.brand-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; color: var(--navy); background: #fff; font-weight: 900; font-size: 1.35rem; }
.aerolynq-brand-icon { position: relative; display: block; width: 52px; height: 52px; flex: 0 0 52px; overflow: hidden; border-radius: 13px; background: #fff; }
.aerolynq-brand-icon img { position: absolute; width: 98px; max-width: none; height: 98px; top: -4px; left: -23px; }
.main-nav { display: flex; flex-direction: column; gap: 11px; overflow-y: auto; padding-right: 3px; }
.main-nav a { display: block; color: rgba(255,255,255,.9); padding: 10px 12px; border-radius: 9px; font-weight: 650; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.11); text-decoration: none; }
.main-nav .nav-home { margin: 0 4px 2px; background: rgba(255,255,255,.08); font-weight: 800; }
.nav-section { padding: 6px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(255,255,255,.045); }
.nav-section:focus-within { border-color: rgba(118,202,241,.68); }
.nav-section .nav-group { margin: 0 0 5px; padding: 7px 9px 8px; border-bottom: 1px solid rgba(255,255,255,.18); color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .13em; line-height: 1.2; text-transform: uppercase; }
.nav-section .nav-group::before { display: inline-block; width: 4px; height: .85rem; margin-right: 8px; border-radius: 999px; vertical-align: -.12rem; background: #76caf1; content: ""; }
.nav-section a { margin-top: 2px; padding-left: 17px; border-left: 3px solid transparent; }
.nav-section a:hover, .nav-section a:focus-visible { border-left-color: #76caf1; }
.sidebar-footer { margin-top: auto; padding: 20px 10px 0; border-top: 1px solid rgba(255,255,255,.15); display: grid; gap: 10px; }
.sidebar-footer a, .link-button { color: rgba(255,255,255,.76); font-size: .9rem; }
.link-button { appearance: none; border: 0; padding: 0; background: transparent; cursor: pointer; }
.content-shell { min-width: 0; }
.topbar { min-height: 80px; display: flex; align-items: center; gap: 16px; padding: 15px clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); }
.topbar .status-pill { margin-left: auto; }
.topbar p { margin: 0; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; }
.page-content { padding: clamp(24px, 4vw, 48px); max-width: 1500px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.page-heading .lead { max-width: 750px; }
.eyebrow { margin-bottom: 7px; color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.lead { color: var(--muted); line-height: 1.6; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.metric-card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.metric-card { padding: 22px; display: grid; gap: 5px; }
.metric-link { color: inherit; text-decoration: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.metric-link:hover, .metric-link:focus-visible { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 14px 34px rgba(11, 61, 100, .15); }
.copy-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); overflow-wrap: anywhere; }
.metric-card span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.metric-card strong { font-size: 2rem; }
.metric-card.attention { border-color: #e6c987; background: #fffdf8; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 20px; }
.panel { padding: 24px; margin-bottom: 20px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-heading p, .panel-heading h2 { margin-bottom: 3px; }
.empty-state { padding: 34px; border: 1px dashed #b9c5d2; border-radius: 12px; text-align: center; color: var(--muted); }
.list { display: grid; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid #edf1f5; }
.list-row:last-child { border: 0; }
.list-row strong, .list-row small { display: block; }
.list-row small { margin-top: 3px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 10px; align-items: center; }
.check-list span { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 900; }
.review-check-list { display: grid; gap: 10px; padding: 0; margin: 16px 0 0; list-style: none; }
.review-check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.review-check-list strong, .review-check-list small { display: block; }
.review-check-list small { margin-top: 3px; color: var(--muted); line-height: 1.4; }
.review-check-icon { display: inline-grid; flex: 0 0 25px; place-items: center; width: 25px; height: 25px; border-radius: 50%; font-weight: 900; }
.review-check-list li.safe .review-check-icon { color: var(--green); background: var(--green-soft); }
.review-check-list li.warning .review-check-icon { color: var(--amber); background: var(--amber-soft); }
.review-check-list li.danger .review-check-icon { color: var(--red); background: var(--red-soft); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.workflow-card { display: block; min-height: 220px; padding: 22px; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.workflow-card:hover { transform: translateY(-2px); border-color: #9fc8e7; box-shadow: var(--shadow); text-decoration: none; }
.workflow-card p { color: var(--muted); line-height: 1.5; }
.workflow-card strong { color: var(--blue); }
.workflow-number { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 11px; color: #fff; background: var(--navy); font-weight: 900; }
.wizard-progress { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; padding: 0; margin: 0 0 24px; list-style: none; }
.wizard-progress li { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 9px 11px; color: var(--muted); border: 2px solid transparent; border-bottom: 3px solid var(--line); border-radius: 10px 10px 0 0; font-size: .8rem; font-weight: 800; }
.wizard-progress li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #4d6177; background: #edf2f6; }
.wizard-progress li.active { color: #0b4e83; border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(23,105,170,.12); }
.wizard-progress li.active span { color: #fff; background: var(--blue); }
.wizard-progress li.complete { color: var(--green); border-color: #8bc5a8; }
.wizard-progress li.complete span { color: #fff; background: var(--green); }
.wizard-progress li.reachable { cursor: pointer; }
.wizard-progress li.reachable:hover, .wizard-progress li.reachable:focus-visible { color: #0b4e83; border-color: #8cbddd; background: #f0f7fc; outline: none; }
.wizard-step { min-width: 0; padding: 0; border: 0; }
.wizard-step legend { width: 100%; margin-bottom: 16px; font-size: 1.35rem; font-weight: 800; }
.wizard-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.wizard-summary { display: grid; grid-template-columns: minmax(140px, .6fr) minmax(0, 1.4fr); gap: 8px 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.wizard-summary dt { color: var(--muted); font-weight: 700; }
.wizard-summary dd { margin: 0; overflow-wrap: anywhere; }
.customer-search { position: relative; display: block; }
.customer-search-results { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; left: 0; max-height: 260px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(22, 43, 66, .16); }
.customer-search-option, .customer-search-empty { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 7px; text-align: left; color: var(--ink); background: transparent; font: inherit; }
.customer-search-option { cursor: pointer; }
.customer-search-option:hover, .customer-search-option:focus { outline: none; background: #edf4fa; }
.customer-search-empty { color: var(--muted); }

.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; cursor: pointer; }
.button:hover { text-decoration: none; }
.button.primary { color: #fff; background: var(--blue); }
.button.primary:hover { background: #125b94; }
.button.secondary { color: var(--blue); background: var(--blue-soft); border-color: #c1dbef; }
.button.danger { color: var(--red); background: var(--red-soft); border-color: #efc8cc; }
.button.small { min-height: 34px; padding: 6px 11px; font-size: .84rem; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; color: #42566d; background: #edf2f6; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.status-pill.safe { color: var(--green); background: var(--green-soft); }
.status-pill.warning { color: var(--amber); background: var(--amber-soft); }
.status-pill.danger { color: var(--red); background: var(--red-soft); }
.notice { padding: 13px 15px; margin-bottom: 18px; border: 1px solid; border-radius: 11px; line-height: 1.45; }
.notice.success { color: #18583d; background: var(--green-soft); border-color: #b7dbc7; }
.notice.warning { color: #71460a; background: var(--amber-soft); border-color: #e8cb8c; }
.notice.danger { color: #7f2b32; background: var(--red-soft); border-color: #edc5ca; }
.wizard-continuation { margin: 0 0 22px; padding: 18px 20px; border: 1px solid #9fc7e2; border-left: 5px solid var(--blue); border-radius: 12px; background: #f1f8fc; box-shadow: 0 8px 24px rgba(11,61,100,.08); }
.wizard-continuation .eyebrow { margin-bottom: 4px; color: #356986; }
.wizard-continuation h2 { margin-bottom: 6px; }
.wizard-continuation > p:not(.eyebrow) { margin-bottom: 13px; color: #344b62; }
.wizard-continuation ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.wizard-continuation li { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); gap: 12px; padding-top: 9px; border-top: 1px solid #c9deec; }
.wizard-continuation li:first-child { padding-top: 0; border-top: 0; }
.wizard-continuation li span { color: #42566d; }

.form-stack { display: grid; gap: 8px; }
.form-stack label { margin-top: 8px; font-size: .82rem; font-weight: 800; color: #394d65; }
input, select, textarea { width: 100%; min-height: 43px; padding: 9px 11px; color: var(--ink); background: #fff; border: 1px solid #b8c5d3; border-radius: 9px; }
input::-ms-reveal, input::-ms-clear { display: none; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(23,105,170,.17); border-color: var(--blue); }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-toggle { position: absolute; top: 50%; right: 5px; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; transform: translateY(-50%); color: #4d6177; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.password-toggle:hover { color: var(--blue); background: var(--blue-soft); }
.password-toggle:focus-visible { outline: 3px solid rgba(23,105,170,.22); }
.password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.pilot-section { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.pilot-section h3 { margin: 0 0 4px; }
.pilot-list { display: grid; gap: 12px; margin: 14px 0; }
.pilot-entry { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.pilot-entry:first-child { padding-top: 0; border-top: 0; }
.pilot-entry h4 { grid-column: 1 / -1; margin: 0 0 -4px; color: var(--muted); }
.form-actions { display: flex; gap: 10px; margin-top: 18px; }
.validation { color: var(--red); font-size: .88rem; font-weight: 650; }
.validation-summary, .validation-summary-errors { margin: 0 0 20px; padding: 15px 18px; border: 2px solid var(--red); border-radius: 12px; background: #fff1f1; color: #8b1414; font-size: 1rem; line-height: 1.5; box-shadow: 0 8px 22px rgba(139, 20, 20, .12); }
.validation-summary:empty, .validation-summary.validation-summary-valid, .validation-summary-errors:empty { display: none; }
.validation-summary ul, .validation-summary-errors ul { margin: 0; padding-left: 20px; }
.field-validation { display: block; margin-top: 6px; }
.field-validation:empty, .field-validation-valid { display: none; }
.input-validation-error { border-color: var(--red) !important; outline: 3px solid rgba(180, 31, 31, .14); background: #fff8f8; }
.legal-document-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 20px; }
.contract-renewal-review { padding: 16px 18px; border: 2px solid #8b6d1f; border-radius: 12px; background: #fff9e8; }
.contract-renewal-review h3 { margin: 0 0 10px; }
.checkbox-row { display: flex !important; align-items: center; gap: 9px; }
.checkbox-row input { width: 18px; min-height: 18px; }
.help { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.authenticator-qr { display: inline-flex; margin: 12px 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.authenticator-qr img { display: block; width: min(240px, 100%); height: auto; image-rendering: pixelated; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 10px; border-bottom: 1px solid #e8edf2; text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.data-table tbody tr:hover { background: #f8fafc; }
.table-wrap { overflow-x: auto; }
.definition-grid { display: grid; grid-template-columns: 180px 1fr; gap: 8px 22px; margin: 0; }
.definition-grid dt { color: var(--muted); font-size: .82rem; font-weight: 700; }
.definition-grid dd { margin: 0; }
.workflow-hint { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid #c1dbef; border-radius: 12px; background: var(--blue-soft); }
.workflow-hint > div { min-width: 0; }
.workflow-hint strong, .workflow-hint span { display: block; }
.workflow-hint span { margin-top: 3px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.workflow-hint .button { flex: 0 0 auto; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.folder-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfd; }
.folder-card h3 { margin-bottom: 7px; font-size: 1rem; }
.document-list { display: grid; gap: 8px; margin-top: 12px; }
.document-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; padding: 11px; border-radius: 9px; background: #fff; border: 1px solid #e3e9ef; }
.document-copy { min-width: 0; }
.document-row strong, .document-row small { display: block; overflow-wrap: anywhere; }
.document-actions { align-items: center; }
.document-actions form { margin: 0; }
.authority-selection { display: block; padding: 16px; border: 1px solid #9fc8e7; border-left: 4px solid var(--blue); border-radius: 12px; background: var(--blue-soft); }
.authority-selection-title { display: block; margin-bottom: 8px; color: var(--navy); font-size: 1rem; font-weight: 850; }
.authority-selection .help { display: block; margin-top: 7px; }
.mono { font-family: Consolas, monospace; font-size: .82rem; }
.report-block { max-height: 420px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; border-radius: 9px; background: #f4f7fa; font: .75rem/1.45 Consolas, monospace; }
details summary { cursor: pointer; font-weight: 750; }
.contract-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contract-card { padding: 17px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 13px; background: #fbfcfd; }
.contract-card.ended { border-left-color: #8e9bab; background: #f5f7f9; }
.contract-card h3 { margin: 0 0 4px; }
.contract-coverages { display: grid; gap: 7px; margin: 14px 0; }
.contract-coverage { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid #e3e9ef; }
.contract-coverage span { overflow-wrap: anywhere; text-align: right; }
.contract-end-note { padding: 10px 12px; border-radius: 9px; color: #526274; background: #e9edf1; font-size: .84rem; }
.contract-end-note p { margin: 7px 0 0; }
.contract-end { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); }
.contract-end form { margin-top: 12px; }
.contract-number-index { margin-top: 24px; }
.contract-number-index h3 { margin-bottom: 8px; }
.quote-aircraft-list { display: grid; gap: 16px; margin: 18px 0; }
.quote-aircraft-entry { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #f8fafc; }
.quote-aircraft-entry h3 { margin: 0; }
.premium-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.premium-grid > * { min-width: 0; }
.premium-card { min-width: 0; max-width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; overflow-wrap: anywhere; }
.premium-card h4 { margin: 0 0 10px; }
.premium-card p, .premium-card span, .premium-card strong, .premium-card small { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.premium-card select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.premium-option { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; min-width: 0; padding: 9px 0; border-top: 1px solid #edf1f5; font-size: .84rem; }
.premium-option > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.premium-option:first-of-type { border-top: 0; }
.offer-access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.offer-secret { padding: 14px; border: 1px solid #d5bf7a; border-radius: 11px; background: #fff9e9; overflow-wrap: anywhere; }
.offer-secret code { display: block; margin-top: 6px; font-size: .9rem; }
.offer-secret-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.offer-secret-row code, .offer-secret-row a { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.offer-secret-row a { flex: 1 1 320px; }

.public-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #edf3f8; }
.auth-shell { width: min(520px, 100%); }
.auth-card { padding: clamp(26px, 5vw, 46px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 55px rgba(16,48,76,.14); }
.auth-card .brand-mark { margin-bottom: 24px; color: #fff; background: var(--navy); }
.aerolynq-login-logo { display: block; width: min(280px, 82%); height: auto; margin: -24px auto 10px; }
.offer-shell { width: min(1180px, 100%); margin: 0 auto; }
.offer-brand { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.offer-brand .brand-mark { color: #fff; background: var(--navy); }
.offer-brand strong, .offer-brand small { display: block; }
.offer-brand small { color: var(--muted); }
.offer-document { padding: clamp(20px, 4vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.offer-heading { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 2px solid var(--navy); }
.offer-heading h1 { margin: 0 0 6px; }
.offer-aircraft { padding: 20px 0; border-bottom: 1px solid var(--line); }
.offer-aircraft h2 { margin-bottom: 5px; }
.offer-acceptance { margin-top: 24px; padding: 20px; border: 1px solid #a9c7df; border-radius: 14px; background: var(--blue-soft); }
.offer-acceptance h2 { margin-top: 0; }
.customer-search-input { max-width: 32rem; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.55; }
.changelog-list { display: grid; gap: 16px; }
.changelog-entry { margin: 0; }
.changelog-entry ul { margin-bottom: 0; }
.contact-panel { max-width: 880px; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contract-grid { grid-template-columns: 1fr; }
  .premium-grid, .offer-access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 30; width: min(290px, 88vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 16px 0 40px rgba(0,0,0,.2); }
  .menu-open .sidebar { transform: translateX(0); }
  .menu-toggle { display: block; }
  .topbar { padding: 13px 18px; }
  .topbar .status-pill { display: none; }
  .page-content { padding: 24px 18px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .two-column, .form-grid, .pilot-entry { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .pilot-entry h4 { grid-column: auto; }
}

@media (max-width: 520px) {
  .metric-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .workflow-hint { align-items: stretch; flex-direction: column; }
  .workflow-hint .button { width: 100%; }
  .definition-grid { grid-template-columns: 1fr; gap: 2px; }
  .definition-grid dd { margin-bottom: 10px; }
  .wizard-summary { grid-template-columns: 1fr; gap: 2px; }
  .wizard-summary dd { margin-bottom: 9px; }
  .wizard-continuation li { grid-template-columns: 1fr; gap: 3px; }
  .offer-heading { flex-direction: column; }
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.offer-brand-logo {
  max-width: 180px;
  max-height: 68px;
  object-fit: contain;
}

.brand-preview, .customer-preview-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 96px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafb;
}

.brand-preview img, .customer-preview-brand img {
  max-width: 240px;
  max-height: 82px;
  object-fit: contain;
}

.customer-preview-brand small { display: block; color: var(--muted); }
.placeholder-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.placeholder-list code { padding: .35rem .55rem; border-radius: 8px; background: #edf3f6; }
.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.template-card { min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: #f8fafb; }
.template-card textarea { min-height: 22rem; resize: vertical; }
.customer-preview-shell { max-width: 1040px; margin: 0 auto; }

@media (max-width: 900px) {
  .template-grid { grid-template-columns: 1fr; }
}
