:root {
  --portal-navy: #082b52;
  --portal-deep: #031d3a;
  --portal-green: #24974f;
  --portal-green-dark: #1c7a40;
  --portal-mint: #edf8f1;
  --portal-bg: #f4f8f6;
  --portal-line: #dce5e5;
  --portal-muted: #627489;
  --portal-danger: #b42318;
}

.portal-body { min-height: 100vh; background: var(--portal-bg); }
.portal-main { min-height: 68vh; }
.portal-container { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.narrow-container { width: min(900px, calc(100% - 36px)); }
.portal-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); }
.portal-header .header-inner { min-height: 68px; }
.portal-nav { display: flex; align-items: center; gap: 23px; margin-left: auto; }
.portal-nav > a, .portal-nav .nav-link { color: #30465f; font-size: 12px; font-weight: 750; }
.portal-nav > a:hover, .portal-nav .nav-link:hover { color: var(--portal-green); }
.inline-form { display: inline-flex; margin: 0; }
.portal-header-tools { display: flex; align-items: center; gap: 9px; margin-left: 18px; }
.portal-menu-toggle { display: none; width: 40px; height: 40px; place-items: center; color: var(--portal-navy); border: 1px solid var(--portal-line); border-radius: 9px; background: #fff; font-size: 20px; }
.language-switch a { min-width: 30px; height: 27px; display: grid; place-items: center; color: #66778b; border-radius: 6px; font-size: 9px; font-weight: 800; }
.language-switch a[aria-current="true"] { color: #fff; background: var(--portal-navy); }
.portal-mobile-nav { display: none; padding: 12px 18px 18px; border-top: 1px solid var(--portal-line); background: #fff; }
.portal-mobile-nav.open { display: grid; }
.portal-mobile-nav a, .portal-mobile-nav button { width: 100%; padding: 13px 7px; color: var(--portal-navy); border: 0; border-bottom: 1px solid #edf1f3; background: transparent; text-align: left; font-size: 13px; font-weight: 750; }
.portal-mobile-nav form { margin: 0; }

.portal-section { padding: 52px 0 70px; }
.page-heading { margin-bottom: 27px; }
.page-heading h1, .auth-heading h1, .jobs-portal-hero h1, .job-detail-heading h1 { margin: 9px 0 10px; color: var(--portal-navy); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -1.7px; }
.page-heading p, .auth-heading p { max-width: 680px; margin: 0; color: var(--portal-muted); font-size: 13px; line-height: 1.65; }
.centred-heading { max-width: 700px; margin-inline: auto; text-align: center; }
.centred-heading p { margin-inline: auto; }
.eyebrow-pill { width: fit-content; display: inline-flex; padding: 7px 10px; color: var(--portal-green-dark); border: 1px solid #bfe0ca; border-radius: 999px; background: #f5fbf7; text-transform: uppercase; letter-spacing: .08em; font-size: 9px; font-weight: 850; }
.centred-heading .eyebrow-pill { margin-inline: auto; }
.muted-copy { color: var(--portal-muted); font-size: 12px; }
.back-link { display: inline-flex; margin-bottom: 20px; color: var(--portal-green-dark); font-size: 11px; font-weight: 800; }

.button-wide { width: 100%; }
.portal-body .button { text-decoration: none; }
.portal-body .button-quiet { color: #52677e; border: 1px solid var(--portal-line); background: #fff; }

.auth-section { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 18px 70px; background: radial-gradient(circle at 14% 12%, rgba(47,170,96,.12), transparent 30%), linear-gradient(135deg, #f8fbfa, #edf5f3); }
.auth-layout { width: min(920px, 100%); overflow: hidden; display: grid; grid-template-columns: 1.08fr .92fr; border: 1px solid #d6e2e2; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(3,29,58,.12); }
.auth-card { padding: 38px; }
.auth-heading { margin-bottom: 24px; }
.auth-heading h1 { font-size: 34px; }
.auth-aside { min-height: 520px; display: flex; flex-direction: column; justify-content: center; padding: 42px; color: #fff; background: linear-gradient(145deg, rgba(3,29,58,.93), rgba(3,42,76,.87)), url('assets/tradesman-banner.webp') 25% center/cover; }
.auth-aside > span { color: #71dd94; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 850; }
.auth-aside h2 { max-width: 350px; margin: 11px 0 24px; font-size: 31px; line-height: 1.16; letter-spacing: -1.1px; }
.auth-aside ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; color: #e5edf4; font-size: 12px; }
.auth-switch { display: flex; justify-content: center; gap: 7px; margin-top: 20px; padding-top: 18px; color: var(--portal-muted); border-top: 1px solid #e9eeef; font-size: 11px; }
.auth-switch a { color: var(--portal-green-dark); font-weight: 800; }
.install-card { width: min(790px, calc(100% - 28px)); border: 1px solid #d6e2e2; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(3,29,58,.12); }

.portal-form { display: grid; gap: 17px; }
.portal-form label { display: grid; gap: 7px; color: #18314e; font-size: 10px; font-weight: 800; }
.portal-form label > small { color: #7b8998; font-size: 9px; font-weight: 550; }
.portal-form input:not([type="checkbox"]), .portal-form select, .portal-form textarea, .filter-bar input, .filter-bar select { width: 100%; min-height: 48px; padding: 11px 13px; color: #142b47; border: 1px solid #d3dee4; border-radius: 9px; outline: none; background: #fbfcfd; font: inherit; font-size: 11px; }
.portal-form textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.portal-form input:focus, .portal-form select:focus, .portal-form textarea:focus, .filter-bar input:focus, .filter-bar select:focus { border-color: #51ad70; background: #fff; box-shadow: 0 0 0 3px rgba(36,151,79,.11); }
.form-grid { display: grid; gap: 16px; }
.form-grid.two-col { grid-template-columns: 1fr 1fr; }
.form-grid .wide { grid-column: 1 / -1; }
.form-card { padding: 28px; border: 1px solid var(--portal-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 36px rgba(3,29,58,.06); }
.form-section-title { display: flex; align-items: center; gap: 12px; margin: 9px 0 2px; padding-top: 21px; border-top: 1px solid #e8edef; }
.form-section-title:first-of-type { padding-top: 0; border-top: 0; }
.form-section-title > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 50%; background: var(--portal-green); font-size: 11px; font-weight: 850; }
.form-section-title strong, .form-section-title small { display: block; }
.form-section-title strong { color: var(--portal-navy); font-size: 13px; }
.form-section-title small { margin-top: 2px; color: var(--portal-muted); font-size: 9px; line-height: 1.4; }
.check-row { grid-template-columns: auto 1fr !important; align-items: flex-start; gap: 10px !important; color: var(--portal-muted) !important; font-size: 10px !important; line-height: 1.55; font-weight: 550 !important; }
.check-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--portal-green); }
.check-row a { color: var(--portal-green-dark); text-decoration: underline; }
.form-help { margin: -5px 0 0; color: #8793a0; text-align: center; font-size: 9px; }
.form-errors { padding: 13px 15px; color: #8b1e16; border: 1px solid #efc5c0; border-radius: 10px; background: #fff3f1; font-size: 10px; line-height: 1.5; }
.form-errors ul { margin: 5px 0 0; padding-left: 18px; }
.flash-stack { position: relative; z-index: 5; margin-top: 16px; }
.flash { padding: 12px 14px; border-radius: 9px; font-size: 11px; font-weight: 700; }
.flash-success { color: #176936; border: 1px solid #b9dfc5; background: #edf9f1; }
.flash-warning { color: #76520a; border: 1px solid #ecdcae; background: #fff9e8; }
.flash-error { color: #8b1e16; border: 1px solid #efc5c0; background: #fff3f1; }
.notice-card { display: grid; gap: 12px; padding: 17px; color: #42566d; border: 1px solid #cfe1d5; border-radius: 11px; background: #f5fbf7; font-size: 11px; line-height: 1.5; }
.notice-card strong { color: var(--portal-navy); }
.compact-notice { max-width: 760px; margin: 0 auto 20px; grid-template-columns: auto 1fr; }
.success-panel { display: grid; justify-items: center; gap: 17px; padding: 30px 15px; text-align: center; }
.success-mark { width: 70px; height: 70px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--portal-green); font-size: 35px; }
.success-panel h2 { color: var(--portal-navy); font-size: 23px; }

.registration-section { background: linear-gradient(180deg, #f8fbfa, var(--portal-bg)); }
.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 18px; }
.role-option { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; padding: 18px; color: #52667c; border: 1px solid var(--portal-line); border-radius: 13px; background: #fff; box-shadow: 0 7px 20px rgba(3,29,58,.04); }
.role-option > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: #eef4f3; font-size: 21px; }
.role-option strong, .role-option small { display: block; }
.role-option strong { color: var(--portal-navy); font-size: 13px; }
.role-option small { margin-top: 4px; font-size: 9px; line-height: 1.45; }
.role-option.active { border: 2px solid #4fae6f; background: #f7fcf8; box-shadow: 0 10px 28px rgba(36,151,79,.09); }

.dashboard-hero { padding: 42px 0; color: #fff; background: linear-gradient(125deg, #031d3a, #063760 65%, #0d4a65); }
.dashboard-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dashboard-hero .eyebrow-pill { color: #b8f2cb; border-color: rgba(126,224,155,.34); background: rgba(77,185,112,.12); }
.dashboard-hero h1 { margin: 10px 0 7px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -1.5px; }
.dashboard-hero p { max-width: 640px; margin: 0; color: #c8d5e1; font-size: 12px; line-height: 1.6; }
.dashboard-section { padding-top: 31px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; }
.stats-grid.four { grid-template-columns: repeat(4, 1fr); }
.stats-grid article { padding: 20px; border: 1px solid var(--portal-line); border-radius: 13px; background: #fff; box-shadow: 0 9px 26px rgba(3,29,58,.05); }
.stats-grid span, .stats-grid strong { display: block; }
.stats-grid span { color: var(--portal-muted); font-size: 10px; font-weight: 750; }
.stats-grid strong { margin-top: 6px; color: var(--portal-navy); font-size: 29px; }
.content-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 25px 0 15px; }
.content-heading h2 { margin: 0; color: var(--portal-navy); font-size: 23px; }
.content-heading p { max-width: 720px; margin: 5px 0 0; color: var(--portal-muted); font-size: 10px; line-height: 1.5; }
.portal-card-list { display: grid; gap: 11px; }
.dashboard-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 25px; padding: 17px 18px; border: 1px solid var(--portal-line); border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(3,29,58,.04); }
.dashboard-card-main h3 { margin: 7px 0 4px; color: var(--portal-navy); font-size: 15px; }
.dashboard-card-main p { margin: 0; color: var(--portal-muted); font-size: 9px; }
.dashboard-card-numbers { display: flex; align-items: center; gap: 24px; }
.dashboard-card-numbers span, .dashboard-card-numbers strong { display: block; }
.dashboard-card-numbers span { color: #7a8998; font-size: 8px; }
.dashboard-card-numbers strong { margin-top: 3px; color: var(--portal-navy); font-size: 14px; }
.status-pill { width: fit-content; display: inline-flex; align-items: center; padding: 5px 8px; color: #27673d; border-radius: 999px; background: #eaf7ee; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.status-paused, .status-withdrawn { color: #785b13; background: #fff6db; }
.status-closed, .status-declined { color: #6c7480; background: #eef1f3; }
.status-awarded, .status-accepted { color: #fff; background: var(--portal-green); }
.empty-state { display: grid; justify-items: center; gap: 16px; padding: 50px 20px; color: var(--portal-muted); border: 1px dashed #c8d6d7; border-radius: 14px; background: #fff; text-align: center; }
.empty-state h1, .empty-state h2, .empty-state h3 { margin: 0; color: var(--portal-navy); }
.empty-state p { max-width: 570px; margin: 0; line-height: 1.6; }

.jobs-portal-hero { padding: 55px 0 42px; color: #fff; background: linear-gradient(125deg, #031d3a, #073a60); }
.jobs-portal-hero h1 { max-width: 850px; color: #fff; }
.jobs-portal-hero p { max-width: 790px; margin: 0; color: #c8d6e2; font-size: 12px; line-height: 1.65; }
.jobs-portal-hero .eyebrow-pill { color: #b7f0c8; border-color: rgba(129,220,157,.34); background: rgba(61,174,96,.14); }
.jobs-browser { padding-top: 28px; }
.filter-bar { display: grid; grid-template-columns: 1.4fr 1fr auto auto; align-items: end; gap: 12px; margin-bottom: 23px; padding: 17px; border: 1px solid var(--portal-line); border-radius: 12px; background: #fff; }
.filter-bar label { display: grid; gap: 6px; color: #17324f; font-size: 9px; font-weight: 800; }
.filter-bar .button { min-height: 48px; }
.live-jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.live-job-card { min-width: 0; padding: 19px; border: 1px solid var(--portal-line); border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(3,29,58,.055); }
.live-job-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-category-badge { width: fit-content; display: inline-flex; padding: 6px 9px; color: #175f34; border-radius: 7px; background: #edf8f1; font-size: 9px; font-weight: 800; }
.live-job-card h2 { margin: 15px 0 6px; color: var(--portal-navy); font-size: 18px; letter-spacing: -.4px; }
.job-area { margin: 0; color: #738296; font-size: 10px; }
.job-excerpt { min-height: 56px; margin: 13px 0; color: #52657a; font-size: 10px; line-height: 1.55; }
.job-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid #e2e8eb; border-radius: 9px; background: #e2e8eb; }
.job-price-grid div { padding: 11px; background: #f9fbfb; }
.job-price-grid span, .job-price-grid strong { display: block; }
.job-price-grid span { color: #7b8997; font-size: 8px; }
.job-price-grid strong { margin-top: 3px; color: var(--portal-navy); font-size: 15px; }
.job-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 12px; color: #7a8998; border-top: 1px solid #edf0f2; font-size: 9px; }
.job-card-footer a { color: var(--portal-green-dark); font-weight: 850; }
.jobs-signup-cta { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 28px; padding: 24px; color: #fff; border-radius: 14px; background: linear-gradient(125deg, #042547, #0a3d62); }
.jobs-signup-cta h2 { margin: 0 0 5px; font-size: 21px; }
.jobs-signup-cta p { margin: 0; color: #c8d5e1; font-size: 11px; }

.form-page-layout, .offer-layout, .detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 25px; }
.form-page-main { min-width: 0; }
.privacy-aside, .detail-sidebar { position: sticky; top: 94px; display: grid; gap: 15px; }
.privacy-aside { padding: 22px; color: #dce7ef; border-radius: 14px; background: linear-gradient(145deg, #042445, #073a5c); }
.privacy-aside-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.1); font-size: 21px; }
.privacy-aside h2 { margin: 0; color: #fff; font-size: 18px; line-height: 1.35; }
.privacy-aside ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 10px; line-height: 1.5; }
.upload-grid { align-items: stretch; }
.portal-file-box { min-height: 150px; position: relative; place-content: center; justify-items: center; gap: 5px !important; padding: 18px; color: var(--portal-muted) !important; border: 1.5px dashed #9bc8aa; border-radius: 11px; background: #f6fbf8; text-align: center; cursor: pointer; }
.portal-file-box > span { font-size: 28px; }
.portal-file-box strong { color: var(--portal-navy); font-size: 11px; }
.portal-file-box small { max-width: 280px; color: var(--portal-muted); font-size: 8px; line-height: 1.45; }
.portal-file-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.portal-file-box.has-files { border-style: solid; border-color: var(--portal-green); background: #eef9f2; }
.staged-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-radius: 9px; background: #eef9f2; font-size: 9px; }
.staged-files strong { width: 100%; color: var(--portal-navy); }
.staged-files span { color: var(--portal-green-dark); }

.job-detail-hero { padding: 35px 0 31px; color: #fff; background: linear-gradient(125deg, #031d3a, #07385a); }
.job-detail-hero .back-link { color: #aeeac0; }
.job-detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.job-detail-heading h1 { color: #fff; }
.job-detail-heading p { margin: 0; color: #bfcedb; font-size: 10px; }
.detail-layout { grid-template-columns: minmax(0, 1fr) 330px; }
.detail-main { display: grid; gap: 16px; }
.detail-card { padding: 23px; border: 1px solid var(--portal-line); border-radius: 14px; background: #fff; box-shadow: 0 8px 25px rgba(3,29,58,.045); }
.detail-card > h2 { margin: 0 0 14px; color: var(--portal-navy); font-size: 20px; }
.long-copy { margin: 0; color: #435870; font-size: 12px; line-height: 1.75; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-top: 21px; border: 1px solid #e0e7e9; border-radius: 10px; background: #e0e7e9; }
.detail-facts div { padding: 13px; background: #f8fafb; }
.detail-facts span, .detail-facts strong { display: block; }
.detail-facts span { color: #7b8997; font-size: 8px; }
.detail-facts strong { margin-top: 4px; color: var(--portal-navy); font-size: 11px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; border-radius: 9px; background: #edf1f2; }
.document-link { display: flex; align-items: center; padding: 12px; color: var(--portal-navy); border: 1px solid var(--portal-line); border-radius: 9px; background: #f8fafb; font-size: 10px; font-weight: 750; }
.quote-summary-card { padding: 21px; border: 1px solid #d6e2df; border-radius: 14px; background: #fff; box-shadow: 0 12px 33px rgba(3,29,58,.08); }
.quote-summary-card > span { display: block; color: #788796; font-size: 9px; font-weight: 750; }
.quote-summary-card > strong { display: block; margin-top: 5px; color: var(--portal-green-dark); font-size: 30px; letter-spacing: -1px; }
.quote-summary-card h2 { margin: 6px 0; color: var(--portal-navy); font-size: 19px; }
.quote-summary-card hr { margin: 17px 0; border: 0; border-top: 1px solid #e5eaec; }
.quote-summary-card > div { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0; font-size: 9px; }
.quote-summary-card h3 { margin: 17px 0 6px; color: var(--portal-navy); font-size: 11px; }
.quote-summary-card p { margin: 0; color: #52657a; font-size: 10px; line-height: 1.55; }
.own-offer-mini { display: flex; align-items: center; justify-content: space-between; padding: 14px; color: var(--portal-green-dark); border: 1px solid #bfe0ca; border-radius: 10px; background: #eef9f2; font-size: 10px; }
.own-offer-mini strong { font-size: 18px; }
.received-offers { display: grid; gap: 10px; }
.received-offers article { padding: 15px; border: 1px solid #dce5e6; border-radius: 10px; background: #fbfcfc; }
.received-offers article > div:first-child { display: flex; justify-content: space-between; gap: 12px; color: #718093; font-size: 9px; }
.received-offers article > div:first-child strong { color: var(--portal-navy); font-size: 12px; }
.offer-costs { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 10px; margin: 12px 0; padding: 10px; border-radius: 8px; background: #edf6f0; color: #5f7185; font-size: 9px; }
.offer-costs b { color: var(--portal-navy); }
.offer-costs > strong { color: var(--portal-green-dark); font-size: 16px; }
.received-offers p { margin: 0; color: #4d6176; font-size: 10px; line-height: 1.55; }

.offer-section { background: linear-gradient(180deg, #f8fbfa, var(--portal-bg)); }
.offer-total-live { display: flex; align-items: center; justify-content: space-between; padding: 15px; color: var(--portal-green-dark); border: 1px solid #b9dfc6; border-radius: 10px; background: #edf9f1; font-size: 11px; font-weight: 800; }
.offer-total-live strong { font-size: 24px; }

.portal-footer { padding: 34px 0 14px; color: #c5d0dd; background: #031d3a; }
.portal-footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; }
.portal-footer .logo { color: #fff; }
.portal-footer p { margin: 10px 0 0; font-size: 10px; }
.portal-footer nav { display: flex; gap: 18px; font-size: 10px; }
.portal-footer nav a:hover { color: #6dda8e; }
.portal-copyright { margin-top: 23px; padding-top: 13px; color: #8495a8; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 8px; }

@media (max-width: 920px) {
  .portal-nav { display: none; }
  .portal-menu-toggle { display: grid; }
  .portal-header-tools { margin-left: auto; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { min-height: 300px; }
  .live-jobs-grid { grid-template-columns: 1fr 1fr; }
  .form-page-layout, .offer-layout, .detail-layout { grid-template-columns: 1fr; }
  .privacy-aside, .detail-sidebar { position: static; }
  .privacy-aside { order: -1; }
  .stats-grid.four { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .portal-container, .narrow-container { width: min(100% - 26px, 620px); }
  .portal-section { padding: 29px 0 45px; }
  .page-heading h1, .auth-heading h1, .jobs-portal-hero h1, .job-detail-heading h1 { font-size: 29px; letter-spacing: -1px; }
  .auth-section { display: block; padding: 23px 13px 40px; }
  .auth-card { padding: 24px 18px; }
  .auth-aside { min-height: 260px; padding: 28px 22px; }
  .auth-aside h2 { font-size: 25px; }
  .install-card { width: 100%; }
  .role-picker { grid-template-columns: 1fr; }
  .role-option { padding: 14px; }
  .form-card { padding: 19px 15px; }
  .form-grid.two-col, .upload-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .dashboard-hero { padding: 31px 0; }
  .dashboard-hero-inner { align-items: flex-start; flex-direction: column; }
  .dashboard-hero-inner .button { width: 100%; }
  .stats-grid, .stats-grid.four { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stats-grid article { padding: 15px; }
  .stats-grid strong { font-size: 23px; }
  .dashboard-card { grid-template-columns: 1fr; gap: 13px; }
  .dashboard-card-numbers { justify-content: space-between; }
  .dashboard-card .button { width: 100%; }
  .jobs-portal-hero { padding: 38px 0 30px; }
  .filter-bar { grid-template-columns: 1fr 1fr; padding: 13px; }
  .filter-bar label { grid-column: 1 / -1; }
  .live-jobs-grid { grid-template-columns: 1fr; gap: 11px; }
  .live-job-card { padding: 16px; }
  .jobs-signup-cta { align-items: flex-start; flex-direction: column; padding: 20px; }
  .jobs-signup-cta .button { width: 100%; }
  .job-detail-heading { align-items: flex-start; flex-direction: column; }
  .detail-card { padding: 17px; }
  .detail-facts { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .offer-costs { grid-template-columns: 1fr 1fr; }
  .offer-costs > strong { grid-column: 1 / -1; }
  .portal-footer-inner { flex-direction: column; }
  .portal-footer nav { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .stats-grid, .stats-grid.four { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar label { grid-column: auto; }
  .photo-grid { grid-template-columns: 1fr; }
}

/* v5 — larger, clearer marketplace interface */
.portal-body { font-size: 16px; line-height: 1.55; }
.portal-container { width: min(1340px, calc(100% - 48px)); }
.narrow-container { width: min(1040px, calc(100% - 48px)); }
.portal-header .header-inner { min-height: 80px; }
.portal-header .logo { color: var(--portal-navy); font-size: 30px; }
.portal-nav { gap: 30px; }
.portal-nav > a, .portal-nav .nav-link { font-size: 15px; }
.portal-header-tools { gap: 12px; margin-left: 22px; }
.language-switch a { min-width: 38px; height: 34px; font-size: 12px; }
.portal-mobile-nav a, .portal-mobile-nav button { padding: 16px 9px; font-size: 16px; }

.portal-section { padding: 64px 0 84px; }
.page-heading { margin-bottom: 32px; }
.page-heading h1, .auth-heading h1, .jobs-portal-hero h1, .job-detail-heading h1 { font-size: clamp(38px, 4.2vw, 56px); letter-spacing: -2px; }
.page-heading p, .auth-heading p { max-width: 820px; font-size: 17px; line-height: 1.7; }
.eyebrow-pill { padding: 8px 12px; font-size: 12px; }
.muted-copy { font-size: 15px; }
.back-link { margin-bottom: 24px; font-size: 14px; }
.portal-body .button { min-height: 52px; padding: 13px 22px; font-size: 15px; border-radius: 10px; }

.auth-layout { width: min(1100px, 100%); }
.auth-card { padding: 46px; }
.auth-heading h1 { font-size: 42px; }
.auth-aside { min-height: 590px; padding: 50px; }
.auth-aside > span { font-size: 13px; }
.auth-aside h2 { max-width: 430px; font-size: 38px; }
.auth-aside ul { gap: 16px; font-size: 15px; }
.auth-switch { font-size: 14px; }
.install-card { width: min(980px, calc(100% - 32px)); }

.portal-form { gap: 21px; }
.portal-form label { gap: 9px; font-size: 15px; }
.portal-form label > small { font-size: 13px; }
.portal-form input:not([type="checkbox"]), .portal-form select, .portal-form textarea, .filter-bar input, .filter-bar select { min-height: 56px; padding: 13px 15px; font-size: 16px; border-radius: 10px; }
.portal-form textarea { min-height: 150px; font-size: 16px; }
.form-grid { gap: 20px; }
.form-card { padding: 36px; border-radius: 18px; }
.form-section-title > span { width: 38px; height: 38px; font-size: 14px; }
.form-section-title strong { font-size: 17px; }
.form-section-title small { font-size: 13px; }
.check-row { font-size: 14px !important; }
.form-help { font-size: 13px; }
.form-errors { margin-bottom: 20px; padding: 17px 19px; font-size: 14px; }
.flash { padding: 15px 18px; font-size: 14px; }
.notice-card { padding: 21px; font-size: 15px; }
.field-invalid input, .field-invalid select, .field-invalid textarea { border-color: #d14338 !important; background: #fff8f7 !important; box-shadow: 0 0 0 3px rgba(209,67,56,.09); }
.portal-form .field-error, .field-error { margin: 2px 0 0; color: var(--portal-danger) !important; font-size: 13px !important; font-weight: 700 !important; }

.role-option { padding: 22px; }
.role-option > span { width: 52px; height: 52px; font-size: 25px; }
.role-option strong { font-size: 17px; }
.role-option small { font-size: 13px; }

.dashboard-hero { padding: 54px 0; }
.dashboard-hero h1 { font-size: clamp(38px, 4vw, 54px); }
.dashboard-hero p { max-width: 800px; font-size: 16px; }
.dashboard-section { padding-top: 42px; }
.stats-grid { gap: 20px; margin-bottom: 38px; }
.stats-grid article { padding: 26px; border-radius: 16px; }
.stats-grid span { font-size: 14px; }
.stats-grid strong { font-size: 38px; }
.content-heading { margin: 32px 0 20px; }
.content-heading h2 { font-size: 30px; }
.content-heading p { max-width: 880px; font-size: 15px; }
.portal-card-list { gap: 15px; }
.dashboard-card { gap: 32px; padding: 22px 24px; border-radius: 15px; }
.dashboard-card-main h3 { font-size: 20px; }
.dashboard-card-main p { font-size: 13px; }
.dashboard-card-numbers { gap: 32px; }
.dashboard-card-numbers span { font-size: 12px; }
.dashboard-card-numbers strong { font-size: 19px; }
.status-pill { padding: 7px 10px; font-size: 11px; }

.jobs-portal-hero { padding: 68px 0 54px; }
.jobs-portal-hero p { max-width: 900px; font-size: 16px; }
.jobs-browser { padding-top: 38px; }
.filter-bar { gap: 15px; margin-bottom: 30px; padding: 22px; }
.filter-bar label { font-size: 14px; }
.live-jobs-grid { gap: 22px; }
.live-job-card { padding: 25px; border-radius: 17px; }
.job-category-badge { padding: 8px 11px; font-size: 12px; }
.live-job-card h2 { margin-top: 18px; font-size: 23px; }
.job-area { font-size: 14px; }
.job-excerpt { min-height: 76px; font-size: 15px; line-height: 1.65; }
.job-price-grid div { padding: 15px; }
.job-price-grid span { font-size: 12px; }
.job-price-grid strong { font-size: 21px; }
.job-card-footer { font-size: 13px; }
.jobs-signup-cta { padding: 30px; }
.jobs-signup-cta h2 { font-size: 28px; }
.jobs-signup-cta p { font-size: 15px; }

.form-page-layout, .offer-layout, .detail-layout { grid-template-columns: minmax(0, 1fr) 390px; gap: 32px; }
.detail-layout { grid-template-columns: minmax(0, 1fr) 390px; }
.privacy-aside, .detail-sidebar { top: 108px; gap: 18px; }
.privacy-aside { padding: 28px; }
.privacy-aside h2 { font-size: 23px; }
.privacy-aside ul { font-size: 14px; }
.portal-file-box strong { font-size: 15px; }
.portal-file-box small { font-size: 12px; }
.staged-files { font-size: 13px; }

.job-detail-hero { padding: 48px 0 42px; }
.job-detail-heading p { font-size: 14px; }
.detail-main { gap: 20px; }
.detail-card { padding: 30px; border-radius: 17px; }
.detail-card > h2 { font-size: 27px; }
.long-copy { font-size: 17px; line-height: 1.8; }
.detail-facts { margin-top: 27px; }
.detail-facts div { padding: 17px; }
.detail-facts span { font-size: 12px; }
.detail-facts strong { font-size: 15px; }
.document-link { padding: 15px; font-size: 14px; }
.quote-summary-card { padding: 27px; border-radius: 17px; }
.quote-summary-card > span { font-size: 13px; }
.quote-summary-card > strong { font-size: 38px; }
.quote-summary-card h2 { font-size: 25px; }
.quote-summary-card > div { margin: 13px 0; font-size: 13px; }
.quote-summary-card h3 { font-size: 16px; }
.quote-summary-card p { font-size: 14px; line-height: 1.7; }
.privacy-box { padding: 17px; }
.privacy-box strong { font-size: 14px; line-height: 1.45; }
.own-offer-mini { padding: 17px; font-size: 14px; }
.own-offer-mini div { display: grid; gap: 3px; }
.own-offer-mini small { color: #5e7184; font-size: 12px; }
.own-offer-mini strong { font-size: 22px; }

.received-offers { gap: 16px; }
.received-offers article { padding: 22px; border-radius: 13px; }
.offer-company-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.offer-company-row > div { display: grid; gap: 4px; }
.received-offers .offer-company-row strong { color: var(--portal-navy); font-size: 18px; }
.received-offers .offer-company-row span:not(.status-pill) { color: #718093; font-size: 13px; }
.offer-costs { gap: 15px; margin: 16px 0; padding: 15px; font-size: 14px; }
.offer-costs > strong { font-size: 23px; }
.offer-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 15px 0; }
.offer-meta-grid > div { padding: 14px; border: 1px solid #e0e7e8; border-radius: 10px; background: #f8faf9; }
.offer-meta-grid span, .offer-meta-grid strong { display: block; }
.offer-meta-grid span { color: #748497; font-size: 12px; }
.offer-meta-grid strong { margin-top: 5px; color: var(--portal-navy); font-size: 15px; line-height: 1.45; }
.received-offers p { font-size: 15px; line-height: 1.7; }
.choose-offer-button { width: 100%; margin-top: 18px; }
.status-card-accepted { border: 2px solid #55ad73 !important; background: #f8fdf9 !important; }
.status-card-declined { opacity: .72; }

.contact-card { padding: 20px; color: #23445a; border: 1px solid #9fd4b0; border-radius: 13px; background: linear-gradient(145deg, #effaf3, #f8fcfa); }
.contact-card-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.contact-card-heading > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 50%; background: var(--portal-green); font-weight: 900; }
.contact-card-heading strong, .contact-card-heading small { display: block; }
.contact-card-heading strong { color: var(--portal-navy); font-size: 17px; }
.contact-card-heading small { margin-top: 3px; color: #5d7280; font-size: 12px; line-height: 1.45; }
.contact-card dl { display: grid; gap: 1px; margin: 0; overflow: hidden; border: 1px solid #d5e7db; border-radius: 10px; background: #d5e7db; }
.contact-card dl > div { display: grid; grid-template-columns: minmax(110px, .7fr) 1.3fr; gap: 12px; padding: 11px 13px; background: #fff; }
.contact-card dt { color: #728290; font-size: 12px; }
.contact-card dd { margin: 0; color: var(--portal-navy); font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
.contact-card a { color: var(--portal-green-dark); text-decoration: underline; }
.sidebar-contact-card { padding: 20px; }

.offer-total-live { padding: 19px; font-size: 15px; }
.offer-total-live strong { font-size: 31px; }

.selection-section { background: linear-gradient(180deg, #f8fbfa, var(--portal-bg)); }
.selection-container { width: min(900px, calc(100% - 48px)); }
.selection-card { padding: 42px; border: 1px solid var(--portal-line); border-radius: 22px; background: #fff; box-shadow: 0 22px 60px rgba(3,29,58,.10); }
.selection-card h1 { margin: 12px 0 8px; color: var(--portal-navy); font-size: clamp(34px, 5vw, 48px); letter-spacing: -1.6px; }
.selection-intro { margin: 0 0 25px; color: var(--portal-muted); font-size: 17px; line-height: 1.65; }
.selection-business { display: flex; align-items: center; gap: 15px; padding: 18px; border: 1px solid #dbe5e5; border-radius: 14px; background: #f8fbfa; }
.business-avatar { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 13px; background: var(--portal-navy); font-size: 21px; font-weight: 850; }
.selection-business strong, .selection-business span { display: block; }
.selection-business strong { color: var(--portal-navy); font-size: 19px; }
.selection-business span { margin-top: 3px; color: var(--portal-muted); font-size: 13px; }
.selection-price-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 1px; overflow: hidden; margin: 20px 0; border: 1px solid #dfe7e7; border-radius: 13px; background: #dfe7e7; }
.selection-price-grid > div { padding: 17px; background: #fff; }
.selection-price-grid span, .selection-price-grid strong { display: block; }
.selection-price-grid span { color: #748497; font-size: 13px; }
.selection-price-grid strong { margin-top: 5px; color: var(--portal-navy); font-size: 23px; }
.selection-price-grid .selection-total { background: #edf9f1; }
.selection-price-grid .selection-total strong { color: var(--portal-green-dark); }
.selection-message { padding: 18px; color: #42576b; border-radius: 12px; background: #f7f9fa; font-size: 15px; line-height: 1.7; }
.selection-warning { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 17px; color: #5c4a16; border: 1px solid #ead99d; border-radius: 12px; background: #fff9e7; font-size: 14px; line-height: 1.55; }
.selection-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 13px; margin-top: 24px; }

.portal-footer { padding-top: 44px; }
.portal-footer p, .portal-footer nav { font-size: 13px; }
.portal-copyright { font-size: 11px; }

@media (max-width: 920px) {
  .portal-container, .narrow-container { width: min(100% - 32px, 820px); }
  .portal-header .header-inner { min-height: 72px; }
  .form-page-layout, .offer-layout, .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}

@media (max-width: 680px) {
  .portal-body { font-size: 16px; }
  .portal-container, .narrow-container, .selection-container { width: min(100% - 24px, 640px); }
  .portal-section { padding: 36px 0 52px; }
  .portal-header .logo { font-size: 26px; }
  .portal-menu-toggle { width: 44px; height: 44px; }
  .page-heading h1, .auth-heading h1, .jobs-portal-hero h1, .job-detail-heading h1 { font-size: 34px; line-height: 1.12; }
  .page-heading p, .auth-heading p, .jobs-portal-hero p { font-size: 16px; }
  .auth-card { padding: 28px 20px; }
  .auth-aside { min-height: 300px; }
  .form-card { padding: 23px 18px; }
  .portal-form label { font-size: 15px; }
  .portal-form input:not([type="checkbox"]), .portal-form select, .portal-form textarea { font-size: 16px; }
  .dashboard-hero { padding: 38px 0; }
  .dashboard-hero h1 { font-size: 36px; }
  .dashboard-hero p { font-size: 15px; }
  .stats-grid article { padding: 18px; }
  .stats-grid span { font-size: 13px; }
  .stats-grid strong { font-size: 29px; }
  .content-heading h2 { font-size: 27px; }
  .content-heading p { font-size: 14px; }
  .dashboard-card { padding: 20px; }
  .dashboard-card-main h3 { font-size: 20px; }
  .dashboard-card-main p { font-size: 13px; }
  .dashboard-card-numbers span { font-size: 12px; }
  .dashboard-card-numbers strong { font-size: 19px; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar label { grid-column: auto; }
  .live-job-card { padding: 20px; }
  .live-job-card h2 { font-size: 22px; }
  .job-excerpt { min-height: 0; font-size: 15px; }
  .detail-card { padding: 22px 19px; }
  .detail-card > h2 { font-size: 25px; }
  .long-copy { font-size: 16px; }
  .detail-facts div { padding: 15px; }
  .detail-facts span { font-size: 12px; }
  .detail-facts strong { font-size: 15px; }
  .quote-summary-card { padding: 22px; }
  .quote-summary-card p { font-size: 15px; }
  .photo-grid { grid-template-columns: 1fr; }
  .offer-costs { grid-template-columns: 1fr 1fr; font-size: 13px; }
  .offer-costs > strong { grid-column: 1 / -1; font-size: 24px; }
  .offer-meta-grid { grid-template-columns: 1fr; }
  .received-offers article { padding: 18px; }
  .received-offers p { font-size: 15px; }
  .contact-card dl > div { grid-template-columns: 1fr; gap: 3px; }
  .selection-card { padding: 27px 19px; border-radius: 17px; }
  .selection-card h1 { font-size: 34px; }
  .selection-intro { font-size: 16px; }
  .selection-price-grid { grid-template-columns: 1fr 1fr; }
  .selection-price-grid .selection-total { grid-column: 1 / -1; }
  .selection-actions { grid-template-columns: 1fr; }
  .selection-actions .button-green { order: -1; }
  .portal-footer p, .portal-footer nav { font-size: 13px; }
}

/* v6 — confirmation, payment and public price history */
.status-awaiting_company, .status-selected { color: #765200; background: #fff2c9; }
.status-awaiting_payment { color: #8a4512; background: #ffe6d2; }
.status-in_progress { color: #0d5674; background: #dff3fb; }
.status-completed { color: #fff; background: #267541; }
.status-cancelled { color: #6c7480; background: #eef1f3; }
.status-card-selected { border: 2px solid #d8ad3e !important; background: #fffdf5 !important; }

.header-mobile-logout { display: none; margin: 0; }
.header-mobile-logout button { min-height: 38px; padding: 7px 10px; color: var(--portal-navy); border: 1px solid #cbd8d7; border-radius: 8px; background: #f7faf9; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }

.success-fee-preview { margin: 13px 0 20px; padding: 16px 18px; color: #385268; border: 1px solid #cfdcdd; border-radius: 11px; background: #f7faf9; }
.success-fee-preview > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.success-fee-preview span { font-size: 14px; font-weight: 750; }
.success-fee-preview strong { color: var(--portal-green-dark); font-size: 23px; }
.success-fee-preview small { display: block; margin-top: 7px; color: #687b8d; font-size: 12px; line-height: 1.55; }
.success-fee-preview .success-fee-normal { color: var(--portal-green-dark); font-weight: 850; }

.workflow-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 19px 21px; border: 1px solid #d8e1e3; border-radius: 14px; background: #fff; }
.workflow-notice strong { display: block; color: var(--portal-navy); font-size: 18px; }
.workflow-notice p { margin: 4px 0 0; color: #5f7387; font-size: 14px; line-height: 1.55; }
.workflow-waiting { border-color: #ead59b; background: #fffaf0; }
.workflow-active { border-color: #abd9e9; background: #f3fbfe; }
.workflow-completed { border-color: #9fd4b0; background: #f1faf4; }
.dashboard-action-notice { margin: 0 0 16px; }
.workflow-action-form { margin-top: 18px; }

.fee-breakdown-card { margin: 20px 0; padding: 22px; border: 1px solid #bfdcc9; border-radius: 14px; background: linear-gradient(145deg, #f0faf3, #fbfdfb); }
.fee-breakdown-card h2 { margin: 0; color: var(--portal-navy); font-size: 22px; }
.fee-breakdown-card > p { margin: 5px 0 17px; color: #617789; font-size: 14px; }
.fee-breakdown-card dl { display: grid; gap: 1px; margin: 0; overflow: hidden; border: 1px solid #d5e7db; border-radius: 10px; background: #d5e7db; }
.fee-breakdown-card dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 15px; background: #fff; }
.fee-breakdown-card dt { color: #65798a; font-size: 14px; }
.fee-breakdown-card dd { margin: 0; color: var(--portal-navy); font-size: 16px; font-weight: 850; }
.fee-breakdown-card .fee-discount dd { color: #267541; }
.fee-breakdown-card .fee-due { background: #eaf7ee; }
.fee-breakdown-card .fee-due dt, .fee-breakdown-card .fee-due dd { color: #175c31; font-size: 18px; font-weight: 900; }
.fee-breakdown-card > small { display: block; margin-top: 13px; color: #5e7284; font-size: 12px; line-height: 1.6; }
.fee-bands-details { margin: -4px 0 20px; border: 1px solid #d9e2e3; border-radius: 11px; background: #fff; }
.fee-bands-details summary { padding: 14px 16px; color: var(--portal-navy); font-size: 14px; font-weight: 850; cursor: pointer; }
.fee-bands-details > div { padding: 0 16px 14px; }
.fee-bands-details p { display: flex; justify-content: space-between; gap: 15px; margin: 0; padding: 9px 0; color: #607587; border-top: 1px solid #edf1f2; font-size: 13px; }
.fee-bands-details strong { color: var(--portal-navy); }
.split-actions { align-items: stretch; }
.split-actions form { display: flex; margin: 0; }
.split-actions form .button { width: 100%; }

.payment-state { margin: 18px 0; padding: 18px; border-radius: 12px; }
.payment-state strong { display: block; color: var(--portal-navy); font-size: 17px; }
.payment-state p { margin: 5px 0 0; color: #587083; font-size: 14px; line-height: 1.6; }
.payment-state-wait { border: 1px solid #e3d096; background: #fff9e9; }
.payment-state-success { border: 1px solid #9fd4b0; background: #f0faf3; }
.admin-test-payment { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #ccd6d8; }

.public-price-history { border-color: #c8d9d5; }
.anonymous-offer-list { display: grid; gap: 12px; }
.anonymous-offer { padding: 18px; border: 1px solid #dbe4e5; border-radius: 12px; background: #fafcfc; }
.anonymous-offer-chosen { border: 2px solid #55ad73; background: #f4fbf6; }
.anonymous-offer > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.anonymous-offer > div:first-child > strong { color: var(--portal-navy); font-size: 17px; }
.anonymous-offer dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 14px 0 0; overflow: hidden; border: 1px solid #dce5e6; border-radius: 9px; background: #dce5e6; }
.anonymous-offer dl > div { padding: 11px 13px; background: #fff; }
.anonymous-offer dt { color: #718395; font-size: 12px; }
.anonymous-offer dd { margin: 4px 0 0; color: var(--portal-navy); font-size: 18px; font-weight: 850; }
.accepted-price { color: var(--portal-green-dark) !important; }
.complete-job-form { display: grid; gap: 8px; margin-top: 18px; }
.complete-job-form small { color: #65798b; font-size: 12px; line-height: 1.5; text-align: center; }
.price-archive-section { margin-top: 52px; padding-top: 42px; border-top: 1px solid var(--portal-line); }
.jobs-section-heading { margin-bottom: 20px; }
.history-job-card { border-color: #cfdedd; }
.privacy-box small { display: block; margin-top: 5px; line-height: 1.5; }

@media (max-width: 680px) {
  .header-mobile-logout { display: block; }
  .portal-header-tools { gap: 7px; }
  .portal-header .language-switch { padding-inline: 7px; }
  .portal-header .language-switch a { font-size: 11px; }
  .header-mobile-logout button { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .workflow-notice, .dashboard-action-notice { align-items: stretch; flex-direction: column; }
  .workflow-notice .button { width: 100%; }
  .fee-breakdown-card { padding: 18px 15px; }
  .split-actions { display: flex; flex-direction: column-reverse; }
  .anonymous-offer dl { grid-template-columns: 1fr; }
  .anonymous-offer dd { font-size: 20px; }
}

@media (max-width: 480px) {
  .portal-header .header-inner { min-height: 64px; gap: 5px; }
  .portal-header .logo { font-size: 21px; }
  .portal-header-tools { gap: 4px; }
  .portal-header .language-switch { gap: 0; padding-inline: 2px; }
  .portal-header .language-switch span { display: none; }
  .portal-header .language-switch a { min-width: 25px; height: 27px; font-size: 9px; }
  .portal-header .header-mobile-logout button { width: auto; max-width: none; min-height: 34px; padding-inline: 6px; color: var(--portal-navy); border-color: #cbd8d7; background: #f7faf9; font-size: 10px; }
  .portal-menu-toggle { width: 36px; height: 36px; }
}

/* Public editorial job examples. These are intentionally styled differently
   from genuine marketplace records and never touch the customer database. */
.example-archive-section { margin-top: 54px; padding-top: 44px; border-top: 1px solid var(--portal-line); }
.example-jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.example-browser-card { overflow: hidden; padding: 0; }
.example-browser-photo { height: 190px; position: relative; overflow: hidden; display: block; background: #edf2f3; }
.example-browser-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.example-browser-photo:hover img { transform: scale(1.025); }
.example-browser-photo > span { position: absolute; left: 12px; top: 12px; display: inline-flex; padding: 6px 9px; color: #17324f; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 5px 18px rgba(3,29,58,.14); font-size: 10px; font-weight: 850; }
.example-browser-body { padding: 20px; }
.example-browser-body .job-excerpt { min-height: 66px; }
.example-browser-saving { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; padding: 9px 10px; border-radius: 8px; background: #eff8f2; color: #63758a; font-size: 11px; }
.example-browser-saving b { color: var(--portal-green-dark); white-space: nowrap; }

.example-detail-hero { padding: 38px 0 44px; color: #fff; background: linear-gradient(125deg,#031d3a,#073a60); }
.example-back-link { display: inline-flex; margin-bottom: 18px; color: #d8e5ef; font-size: 13px; font-weight: 800; }
.example-disclosure { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; padding: 12px 14px; color: #d8e8ef; border: 1px solid rgba(255,255,255,.17); border-radius: 10px; background: rgba(255,255,255,.07); }
.example-disclosure strong { padding: 6px 9px; color: #082d4d; border-radius: 999px; background: #d9f2e1; font-size: 11px; white-space: nowrap; }
.example-disclosure span { font-size: 12px; line-height: 1.45; }
.example-detail-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 34px; }
.example-detail-heading h1 { max-width: 850px; margin: 12px 0 9px; color: #fff; font-size: clamp(31px,4vw,50px); line-height: 1.08; }
.example-detail-heading p { margin: 0; color: #c9d9e5; font-size: 13px; }
.example-saving-badge { min-width: 175px; padding: 17px 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: rgba(255,255,255,.08); text-align: right; }
.example-saving-badge span, .example-saving-badge strong, .example-saving-badge em { display: block; }
.example-saving-badge span { color: #cbdbe6; font-size: 10px; }
.example-saving-badge strong { margin: 4px 0 2px; color: #6be18d; font-size: 33px; }
.example-saving-badge em { color: #e7f4ea; font-size: 11px; font-style: normal; font-weight: 850; }
.example-detail-section { padding-top: 30px; }
.example-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; align-items: start; gap: 26px; }
.example-detail-main { min-width: 0; display: grid; gap: 20px; }
.example-detail-sidebar { position: sticky; top: 96px; display: grid; gap: 18px; }
.example-detail-photo { overflow: hidden; margin: 0; border: 1px solid var(--portal-line); border-radius: 17px; background: #fff; box-shadow: 0 10px 28px rgba(3,29,58,.055); }
.example-detail-photo img { width: 100%; height: clamp(270px,42vw,500px); display: block; object-fit: cover; }
.example-detail-photo figcaption { padding: 11px 15px; color: #718194; background: #f8fafb; font-size: 11px; line-height: 1.5; }
.example-story-card, .example-offers-card, .example-price-summary, .example-cta-card { padding: 25px; }
.example-story-card h2, .example-offers-card h2, .example-price-summary h2, .example-cta-card h2 { margin: 10px 0; color: var(--portal-navy); }
.example-story-card > p, .example-offers-card .content-heading p, .example-cta-card p { color: #53677a; line-height: 1.7; }
.example-scope-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.example-scope-list span { padding: 8px 10px; color: #1e6c3c; border-radius: 8px; background: #edf8f1; font-size: 12px; font-weight: 750; }
.example-price-summary dl { display: grid; gap: 0; margin: 15px 0 0; }
.example-price-summary dl > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid #e7ecee; }
.example-price-summary dl > div:last-child { border-bottom: 0; }
.example-price-summary dt { color: #6f8193; font-size: 12px; }
.example-price-summary dd { margin: 0; color: var(--portal-navy); font-size: 18px; font-weight: 850; }
.example-cta-card { color: #d8e6ee; background: linear-gradient(145deg,#042445,#073a5c); }
.example-cta-card > span { color: #80dfa0; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .45px; }
.example-cta-card h2 { color: #fff; line-height: 1.25; }
.example-cta-card p { color: #c8d8e3; font-size: 12px; }
.example-cta-card .button { width: 100%; margin-top: 8px; }

@media (max-width: 960px) {
  .example-jobs-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .example-detail-layout { grid-template-columns: 1fr; }
  .example-detail-sidebar { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .example-jobs-grid { grid-template-columns: 1fr; gap: 14px; }
  .example-browser-photo { height: 205px; }
  .example-browser-body { padding: 17px; }
  .example-browser-body .job-excerpt { min-height: 0; }
  .example-detail-hero { padding: 25px 0 30px; }
  .example-disclosure { align-items: flex-start; flex-direction: column; gap: 8px; }
  .example-detail-heading { grid-template-columns: 1fr; gap: 18px; }
  .example-detail-heading h1 { font-size: 32px; }
  .example-saving-badge { min-width: 0; width: 100%; text-align: left; }
  .example-detail-sidebar { grid-template-columns: 1fr; }
  .example-detail-photo img { height: 270px; }
  .example-story-card, .example-offers-card, .example-price-summary, .example-cta-card { padding: 19px; }
}


/* Mobile list/card selector for the completed example archive. */
.portal-job-view-switch { margin-top: -5px; }
@media (max-width: 820px) {
  .portal-job-view-switch { display: flex; margin-bottom: 14px; }
  .example-jobs-grid[data-view="list"] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .example-jobs-grid[data-view="list"] .example-browser-card {
    display: grid;
    grid-template-columns: 112px minmax(0,1fr);
    align-items: stretch;
    min-height: 174px;
  }
  .example-jobs-grid[data-view="list"] .example-browser-photo {
    height: auto;
    min-height: 174px;
  }
  .example-jobs-grid[data-view="list"] .example-browser-photo > span {
    left: 7px;
    top: 7px;
    padding: 4px 6px;
    font-size: 8px;
  }
  .example-jobs-grid[data-view="list"] .example-browser-body {
    min-width: 0;
    padding: 11px 12px;
  }
  .example-jobs-grid[data-view="list"] .live-job-top { gap: 5px; }
  .example-jobs-grid[data-view="list"] .job-category-badge,
  .example-jobs-grid[data-view="list"] .status-pill { padding: 4px 6px; font-size: 8px; }
  .example-jobs-grid[data-view="list"] .example-browser-body h2 { margin: 7px 0 3px; font-size: 15px; line-height: 1.25; }
  .example-jobs-grid[data-view="list"] .job-area { margin: 0 0 6px; font-size: 9px; }
  .example-jobs-grid[data-view="list"] .job-excerpt {
    min-height: 0;
    margin: 0 0 7px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 9px;
    line-height: 1.4;
  }
  .example-jobs-grid[data-view="list"] .job-price-grid { margin-top: 6px; }
  .example-jobs-grid[data-view="list"] .job-price-grid span { font-size: 8px; }
  .example-jobs-grid[data-view="list"] .job-price-grid strong { font-size: 17px; }
  .example-jobs-grid[data-view="list"] .example-browser-saving { margin-top: 6px; padding: 5px 7px; font-size: 8px; }
  .example-jobs-grid[data-view="list"] .job-card-footer { margin-top: 7px; padding-top: 7px; font-size: 8px; }
  .example-jobs-grid[data-view="cards"] { grid-template-columns: 1fr; gap: 14px; }
  .example-jobs-grid[data-view="cards"] .example-browser-photo { height: 220px; }
}

@media (max-width: 390px) {
  .example-jobs-grid[data-view="list"] .example-browser-card { grid-template-columns: 96px minmax(0,1fr); }
  .example-jobs-grid[data-view="list"] .example-browser-saving span { display: none; }
}

/* AI quote analysis: authenticated review, admin setup and public protocol. */
.admin-hero-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.ai-spark {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--portal-green);
  background: #ddf4e5;
  font-size: 18px;
  font-weight: 900;
}
.ai-analysis-review,
.ai-public-protocol {
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #cfe5d6;
  border-radius: 17px;
  background: linear-gradient(145deg, #fbfefc, #f1f9f4);
  box-shadow: 0 10px 28px rgba(3, 29, 58, .045);
}
.ai-analysis-review { padding: 22px; }
.ai-analysis-review-head,
.ai-public-protocol-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 17px;
}
.ai-analysis-review-head > div,
.ai-public-protocol-head > div { min-width: 0; }
.ai-analysis-review-head strong { color: var(--portal-navy); font-size: 17px; }
.ai-analysis-review-head p,
.ai-public-protocol-head p { margin: 4px 0 0; color: var(--portal-muted); font-size: 12px; line-height: 1.6; }
.ai-public-protocol-head h2 { margin: 1px 0 0; color: var(--portal-navy); }
.ai-analysis-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  overflow: hidden;
  margin: 0 0 17px;
  border: 1px solid #dce8df;
  border-radius: 12px;
  background: #fff;
}
.ai-analysis-summary-grid > div { padding: 13px 14px; border-right: 1px solid #e5ece7; }
.ai-analysis-summary-grid > div:last-child { border-right: 0; }
.ai-analysis-summary-grid span { display: block; color: #718194; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .35px; }
.ai-analysis-summary-grid strong { display: block; margin-top: 3px; color: var(--portal-navy); font-size: 19px; }
.ai-analysis-summary-grid.public strong { font-size: 18px; }
.ai-line-items { display: grid; gap: 8px; margin-top: 12px; }
.ai-line-items article {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e0e9e3;
  border-radius: 11px;
  background: rgba(255,255,255,.94);
}
.ai-line-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #197143;
  background: #e8f6ed;
  font-size: 11px;
  font-weight: 850;
}
.ai-line-copy { min-width: 0; }
.ai-line-copy > strong { color: var(--portal-navy); font-size: 13px; }
.ai-line-copy p { margin: 3px 0 0; color: #53677a; font-size: 11px; line-height: 1.55; }
.ai-line-copy > small { display: block; margin-top: 4px; color: #778798; font-size: 9px; }
.ai-line-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ai-line-meta > span { padding: 4px 6px; border-radius: 6px; color: #627486; background: #f0f4f6; font-size: 8px; font-weight: 700; }
.ai-line-price { padding-top: 3px; color: var(--portal-navy); font-size: 15px; font-weight: 850; white-space: nowrap; }
.ai-line-price span { color: #9aa7b4; }
.ai-confidence-inferred { color: #735c12 !important; background: #fff4d6 !important; }
.ai-confidence-unclear { color: #9c3838 !important; background: #fce9e9 !important; }
.ai-clarifications {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #f0dba0;
  border-radius: 11px;
  background: #fffaf0;
}
.ai-clarifications > strong { color: #755d16; font-size: 11px; }
.ai-clarifications ul,
.ai-clarifications ol { margin: 7px 0 0; padding-left: 19px; color: #5e5b4d; font-size: 11px; line-height: 1.6; }
.ai-clarifications.public li { margin-bottom: 8px; }
.ai-clarifications.public li:last-child { margin-bottom: 0; }
.ai-clarifications.public li b { display: block; color: var(--portal-navy); }
.ai-clarifications.public li span { display: block; margin-top: 2px; color: #7a776b; font-size: 9px; }
.ai-analysis-warning {
  margin-top: 12px;
  padding: 11px 12px;
  border-left: 3px solid #dca934;
  border-radius: 8px;
  color: #6e5a26;
  background: #fff8e7;
  font-size: 10px;
  line-height: 1.55;
}
.ai-protocol-columns {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin-top: 14px;
}
.ai-protocol-columns > div { padding: 13px; border: 1px solid #e0e8e2; border-radius: 10px; background: #fff; }
.ai-protocol-columns strong { color: var(--portal-navy); font-size: 11px; }
.ai-protocol-columns ul { margin: 7px 0 0; padding-left: 17px; color: #596b7c; font-size: 10px; line-height: 1.55; }
.ai-protocol-disclaimer { display: block; margin-top: 14px; color: #7b8995; font-size: 9px; line-height: 1.5; }

.ai-inline-analyser {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 11px 16px;
  align-items: center;
  margin: 15px 0 18px;
  padding: 15px;
  border: 1px solid #cfe5d6;
  border-radius: 13px;
  background: #f2faf5;
}
.ai-inline-analyser > div:first-child { display: flex; align-items: flex-start; gap: 10px; }
.ai-inline-analyser > div:first-child > div { display: grid; gap: 3px; }
.ai-inline-analyser > div:first-child strong { color: var(--portal-navy); font-size: 13px; }
.ai-inline-analyser > div:first-child small { color: #647688; font-size: 10px; line-height: 1.5; }
.ai-inline-analyser .ai-quote-status,
.ai-inline-analyser .ai-quote-preview { grid-column: 1 / -1; }
.ai-quote-status { color: #65778a; font-size: 10px; line-height: 1.5; }
.ai-quote-status:empty { display: none; }
.ai-quote-status.is-working { color: #725d1e; }
.ai-quote-status.is-success { color: #176f40; font-weight: 750; }
.ai-quote-status.is-error { color: #a03939; font-weight: 750; }
.ai-quote-preview {
  padding: 11px 12px;
  border: 1px solid #dde8e1;
  border-radius: 10px;
  background: #fff;
}
.ai-quote-preview[hidden] { display: none; }
.ai-preview-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 11px; }
.ai-preview-summary span { color: #718194; font-size: 9px; }
.ai-preview-summary strong { color: var(--portal-navy); font-size: 18px; }
.ai-preview-questions { margin-top: 9px; padding-top: 8px; border-top: 1px solid #e7ece9; }
.ai-preview-questions strong { color: var(--portal-navy); font-size: 10px; }
.ai-preview-questions ul { margin: 5px 0 0; padding-left: 17px; color: #5c6d7e; font-size: 9px; line-height: 1.55; }
.ai-quote-preview > small { display: block; margin-top: 8px; color: #758494; font-size: 9px; }

@media (max-width: 760px) {
  .admin-hero-actions { width: 100%; justify-content: flex-start; }
  .admin-hero-actions .button { flex: 1 1 145px; }
  .ai-analysis-review { padding: 16px; }
  .ai-analysis-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ai-analysis-summary-grid > div { border-bottom: 1px solid #e5ece7; }
  .ai-analysis-summary-grid > div:nth-child(2n) { border-right: 0; }
  .ai-analysis-summary-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .ai-line-items article { grid-template-columns: 26px minmax(0,1fr); gap: 9px; }
  .ai-line-index { width: 25px; height: 25px; }
  .ai-line-price { grid-column: 2; padding-top: 0; font-size: 14px; }
  .ai-protocol-columns { grid-template-columns: 1fr; }
  .ai-inline-analyser { grid-template-columns: 1fr; }
  .ai-inline-analyser .button { width: 100%; }
  .ai-inline-analyser .ai-quote-status,
  .ai-inline-analyser .ai-quote-preview { grid-column: 1; }
}
.ai-terms-row {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.ai-terms-row > div { padding: 10px 11px; border: 1px solid #e0e9e3; border-radius: 9px; background: rgba(255,255,255,.92); }
.ai-terms-row span { display: block; color: #718194; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .35px; }
.ai-terms-row strong { display: block; margin-top: 3px; color: var(--portal-navy); font-size: 11px; line-height: 1.45; }
@media (max-width: 620px) { .ai-terms-row { grid-template-columns: 1fr; } }

/* v13 launch hardening — mobile-first marketplace controls. */
.button-danger { color: #a62626; border: 1px solid #edc7c7; background: #fff5f5; }
.button-danger:hover { color: #8a1919; background: #ffecec; }
.filter-bar-search { grid-template-columns: minmax(260px,1.55fr) minmax(180px,.8fr) minmax(150px,.65fr) auto auto; }
.filter-bar-search .filter-search-field { min-width: 0; }
.live-job-view-switch { display: none; }
.owner-job-tools { display: grid; gap: 9px; margin-top: 17px; padding: 15px; border: 1px solid #dce5e7; border-radius: 13px; background: #f8fbfb; }
.owner-job-tools > strong { color: var(--portal-navy); font-size: 13px; }
.owner-job-tools form, .compact-action-form { margin: 0; }
.admin-section-heading { margin-top: 42px; }
.admin-inline-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.admin-inline-actions form { margin: 0; }
.admin-inline-actions .button { min-height: 42px; padding: 9px 13px; font-size: 12px; }
.admin-dashboard-card { grid-template-columns: minmax(0,1fr) auto minmax(160px,auto); }
.mobile-job-action { display: none; }

@media (max-width: 820px) {
  .portal-main { padding-bottom: 0; }
  .filter-bar-search { grid-template-columns: 1fr 1fr; gap: 9px; }
  .filter-bar-search label, .filter-bar-search .filter-search-field { grid-column: 1 / -1; }
  .filter-bar-search .button { width: 100%; min-height: 48px; padding-inline: 10px; }
  .live-job-view-switch { display: flex; margin: 2px 0 13px; }

  /* Default phone view: dense, readable list. */
  .live-jobs-grid[data-view="list"] { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .live-jobs-grid[data-view="list"] .live-job-card { padding: 13px 14px; border-radius: 13px; box-shadow: 0 4px 15px rgba(3,29,58,.04); }
  .live-jobs-grid[data-view="list"] .live-job-top { gap: 6px; }
  .live-jobs-grid[data-view="list"] .job-category-badge,
  .live-jobs-grid[data-view="list"] .status-pill { padding: 4px 7px; font-size: 9px; }
  .live-jobs-grid[data-view="list"] h2 { margin: 8px 0 3px; font-size: 17px; line-height: 1.25; letter-spacing: -.25px; }
  .live-jobs-grid[data-view="list"] .job-area { margin: 0 0 6px; font-size: 10px; }
  .live-jobs-grid[data-view="list"] .job-excerpt { min-height: 0; margin: 0; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; line-height: 1.45; }
  .live-jobs-grid[data-view="list"] .job-price-grid { margin-top: 9px; gap: 8px; }
  .live-jobs-grid[data-view="list"] .job-price-grid > div { padding: 8px 9px; }
  .live-jobs-grid[data-view="list"] .job-price-grid span { font-size: 9px; }
  .live-jobs-grid[data-view="list"] .job-price-grid strong { font-size: 19px; }
  .live-jobs-grid[data-view="list"] .job-card-footer { margin-top: 9px; padding-top: 8px; font-size: 10px; }
  .live-jobs-grid[data-view="list"] .job-card-footer a { padding: 5px 0 5px 12px; font-size: 11px; }

  /* Optional card mode: thumb-swipe one job at a time. */
  .live-jobs-grid[data-view="cards"] { display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 365px); grid-template-columns: none; overflow-x: auto; gap: 12px; padding: 2px 2px 11px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .live-jobs-grid[data-view="cards"]::-webkit-scrollbar { display: none; }
  .live-jobs-grid[data-view="cards"] .live-job-card { scroll-snap-align: start; min-height: 285px; }

  .dashboard-action-notice { align-items: stretch; flex-direction: column; gap: 12px; }
  .dashboard-action-notice .button { width: 100%; }
  .admin-dashboard-card { grid-template-columns: 1fr; }
  .admin-inline-actions { justify-content: stretch; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-inline-actions .button, .admin-inline-actions form { width: 100%; }
  .admin-inline-actions form .button { width: 100%; }

  .mobile-job-action {
    position: fixed; z-index: 79; left: 12px; right: 12px; bottom: calc(78px + env(safe-area-inset-bottom));
    display: block; padding: 8px; border: 1px solid rgba(15,44,67,.10); border-radius: 16px;
    background: rgba(255,255,255,.97); box-shadow: 0 10px 30px rgba(2,24,47,.18); backdrop-filter: blur(16px);
  }
  .mobile-job-action .button { width: 100%; min-height: 50px; }
  body:has(.mobile-job-action) { padding-bottom: calc(146px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .filter-bar-search { grid-template-columns: 1fr 1fr; }
  .live-jobs-grid[data-view="cards"] { grid-auto-columns: 90vw; }
  .admin-inline-actions { grid-template-columns: 1fr; }
}

/* v14 job browser: thumbnail + information side by side on phones. */
.live-job-card.live-job-card-photo { overflow: hidden; padding: 0; }
.live-browser-photo { position: relative; overflow: hidden; display: block; height: 185px; background: #edf2f3; }
.live-browser-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.live-browser-photo small { position: absolute; right: 9px; bottom: 9px; padding: 4px 7px; color: #536579; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 8px; font-weight: 800; }
.live-browser-body { min-width: 0; padding: 25px; }

@media (max-width: 820px) {
  .live-jobs-grid[data-view="list"] .live-job-card-photo { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: stretch; min-height: 174px; padding: 0; }
  .live-jobs-grid[data-view="list"] .live-browser-photo { height: auto; min-height: 174px; }
  .live-jobs-grid[data-view="list"] .live-browser-photo small { right: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 3px 5px; font-size: 7px; text-align: center; }
  .live-jobs-grid[data-view="list"] .live-browser-body { padding: 11px 12px; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo h2 { margin: 7px 0 3px; font-size: 15px; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-area { font-size: 9px; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-excerpt { font-size: 9px; line-height: 1.4; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-price-grid { margin-top: 7px; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-price-grid > div { padding: 6px 7px; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-price-grid span { font-size: 8px; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-price-grid strong { font-size: 17px; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-card-footer { margin-top: 7px; padding-top: 7px; font-size: 8px; }
  .live-jobs-grid[data-view="cards"] .live-job-card-photo { min-height: 0; }
  .live-jobs-grid[data-view="cards"] .live-browser-photo { height: 210px; }
  .live-jobs-grid[data-view="cards"] .live-browser-body { padding: 17px; }
}
@media (max-width: 390px) {
  .live-jobs-grid[data-view="list"] .live-job-card-photo { grid-template-columns: 96px minmax(0,1fr); }
}

/* v15 launch polish: fast job sharing and compact mobile heading actions */
.job-heading-actions { display:flex; align-items:flex-end; justify-content:flex-end; gap:.55rem; flex-wrap:wrap; }
.job-share-button { min-height:40px; border:1px solid rgba(3,29,58,.14); background:#fff; color:#031d3a; border-radius:999px; padding:.55rem .8rem; font:inherit; font-size:.86rem; font-weight:800; display:inline-flex; align-items:center; gap:.4rem; cursor:pointer; box-shadow:0 8px 24px rgba(3,29,58,.06); }
.job-share-button:hover { transform:translateY(-1px); border-color:rgba(3,29,58,.28); }
.job-share-button span { font-size:1rem; }
.job-share-status { flex-basis:100%; min-height:1em; text-align:right; color:#557064; font-size:.75rem; }
.fast-join-note { margin-bottom:1rem; }
@media (max-width: 720px) {
  .job-detail-heading { align-items:flex-start; }
  .job-heading-actions { width:100%; align-items:center; justify-content:space-between; flex-wrap:nowrap; }
  .job-share-status { display:none; }
  .job-share-button { min-height:38px; padding:.48rem .7rem; font-size:.82rem; }
}

/* 2026-08 mobile launch polish: readable one-thumb lists and form controls. */
@media (max-width: 820px) {
  .portal-form input:not([type="checkbox"]):not([type="radio"]),
  .portal-form select,
  .portal-form textarea,
  .filter-bar input,
  .filter-bar select { min-height: 48px; font-size: 16px; }
  .portal-form textarea { min-height: 118px; }
  .portal-form label, .filter-bar label { font-size: 12px; }
  .live-jobs-grid[data-view="list"] .job-category-badge,
  .live-jobs-grid[data-view="list"] .status-pill,
  .example-jobs-grid[data-view="list"] .job-category-badge,
  .example-jobs-grid[data-view="list"] .status-pill { font-size: 9px; line-height: 1.15; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo h2,
  .example-jobs-grid[data-view="list"] .example-browser-body h2 { font-size: 16px; line-height: 1.3; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-area,
  .example-jobs-grid[data-view="list"] .job-area { font-size: 10px; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-excerpt,
  .example-jobs-grid[data-view="list"] .job-excerpt { font-size: 11px; line-height: 1.45; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-price-grid span,
  .example-jobs-grid[data-view="list"] .job-price-grid span { font-size: 9px; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-price-grid strong,
  .example-jobs-grid[data-view="list"] .job-price-grid strong { font-size: 18px; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-card-footer,
  .example-jobs-grid[data-view="list"] .job-card-footer,
  .example-jobs-grid[data-view="list"] .example-browser-saving { font-size: 10px; }
  .live-jobs-grid[data-view="list"] .job-card-footer a { min-height: 36px; display: inline-flex; align-items: center; }
  .job-share-button { min-height: 42px; }
}

/* v17: the whole job card is a single fast tap target. */
.tap-through-card { cursor: pointer; -webkit-tap-highlight-color: rgba(33,145,82,.12); }
.tap-through-card:focus-visible { outline: 3px solid rgba(33,145,82,.32); outline-offset: 3px; }
.tap-through-card:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .tap-through-card:active { transform: none; } }


/* v18 — category directory and category browsing */
.category-directory-hero { padding: 46px 0 26px; background: linear-gradient(180deg, #f4f8f6 0%, #fff 100%); }
.category-directory-hero h1 { margin: 10px 0 8px; color: var(--navy); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -1.4px; }
.category-directory-hero p { max-width: 720px; margin: 0; color: #607188; font-size: 14px; line-height: 1.7; }
.category-directory-back { display: inline-flex; margin-bottom: 16px; color: #267b48; font-size: 12px; font-weight: 800; }
.category-directory-section { padding-top: 24px; }
.category-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.category-directory-card { overflow: hidden; border: 1px solid #dce4e8; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(4,31,61,.06); }
.category-directory-main { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; padding: 12px; color: var(--navy); text-decoration: none; }
.category-directory-main img { width: 96px; height: 78px; object-fit: cover; border-radius: 10px; }
.category-directory-main strong, .category-directory-main span { display: block; }
.category-directory-main strong { font-size: 15px; line-height: 1.25; }
.category-directory-main span { margin-top: 6px; color: #2b7e49; font-size: 10px; font-weight: 800; }
.category-directory-counts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e5ebee; }
.category-directory-counts a { display: flex; align-items: baseline; gap: 6px; padding: 10px 12px; color: #596b80; text-decoration: none; }
.category-directory-counts a + a { border-left: 1px solid #e5ebee; }
.category-directory-counts b { color: var(--navy); font-size: 17px; }
.category-directory-counts span { font-size: 9px; font-weight: 700; text-transform: uppercase; }
.category-browser-tabs { display: flex; gap: 8px; margin: 18px 0 6px; }
.category-browser-tabs a { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; color: #54667c; border: 1px solid #d9e2e7; border-radius: 999px; background: #fff; font-size: 10px; font-weight: 800; text-decoration: none; }
.category-browser-tabs a.active { color: #fff; border-color: #299852; background: #299852; }
.category-browser-heading { margin-bottom: 6px; }
.category-browser-heading h2 { margin-bottom: 4px; }

@media (max-width: 820px) {
  .category-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .category-directory-hero { padding: 25px 0 14px; }
  .category-directory-hero h1 { font-size: 30px; }
  .category-directory-hero p { font-size: 11px; }
  .category-directory-grid { grid-template-columns: 1fr; gap: 10px; }
  .category-directory-main { grid-template-columns: 88px 1fr; padding: 10px; }
  .category-directory-main img { width: 88px; height: 70px; }
  .category-directory-counts a { padding: 9px 10px; }
  .category-browser-tabs { position: sticky; z-index: 4; top: 0; padding: 8px 0; background: rgba(247,250,249,.96); backdrop-filter: blur(10px); }
  .category-browser-tabs a { flex: 1; }
}


/* v19 — consistent back control on portal pages without their own contextual back link. */
.portal-global-back-wrap { padding-top: 18px; padding-bottom: 0; }
.portal-global-back {
  margin: 0;
  padding: 5px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.portal-global-back:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .portal-global-back-wrap { padding-top: 11px; }
  .portal-global-back { min-height: 38px; font-size: 13px; }
}


/* v23 — guest sign-in/register remain visible beside the FairerQuote header on mobile. */
.portal-header .header-mobile-auth { display: none; }
.portal-header .header-mobile-auth a { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 9px; border-radius: 8px; font-size: 10px; font-weight: 850; white-space: nowrap; text-decoration: none; }
.portal-header .header-mobile-login { color: var(--portal-navy); border: 1px solid var(--portal-line); background: #fff; }
.portal-header .header-mobile-register { color: #fff; border: 1px solid var(--portal-green); background: var(--portal-green); }
@media (max-width: 920px) {
  .portal-header .header-mobile-auth { display: inline-flex; gap: 5px; }
}
@media (max-width: 420px) {
  .portal-header .header-mobile-auth { gap: 3px; }
  .portal-header .header-mobile-auth a { min-height: 32px; padding-inline: 6px; font-size: 9px; }
  .portal-header-tools { gap: 5px; margin-left: auto; }
}

/* Launch legal clarity: concise platform-role notice across signed-in pages. */
.portal-platform-notice {
  padding-top: 12px;
  color: #74879a;
  font-size: 12px;
  line-height: 1.55;
}

/* Accessible reporting route for user-generated job content. */
.job-report-link {
  display: inline-flex;
  margin: 12px 0 6px;
  color: #6d7f91;
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* v37 — public About and Pricing pages. */
.public-info-hero .portal-container { max-width: 1120px; }
.public-info-section { background: linear-gradient(180deg,#f8fbfc 0%,#fff 24%); }
.public-info-card { padding: 24px; border: 1px solid #dce7ea; border-radius: 20px; background: #fff; box-shadow: 0 16px 36px rgba(3,29,58,.05); }
.public-info-card h2 { margin: 0; color: var(--portal-navy); font-size: 28px; line-height: 1.18; }
.public-info-card p, .public-info-card li { color: #566a7f; line-height: 1.68; }
.public-info-card ul { margin: 15px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.pricing-zero-grid, .about-purpose-grid, .pricing-example-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 20px; }
.pricing-zero-grid article { display: grid; justify-items: center; gap: 6px; padding: 22px; border: 1px solid #dce9df; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 12px 28px rgba(3,29,58,.04); }
.pricing-zero-grid .icon { width: 38px; height: 38px; color: var(--portal-green); }
.pricing-zero-grid strong { color: var(--portal-navy); font-size: 30px; }
.pricing-zero-grid span { color: var(--portal-muted); }
.pricing-explain-card { margin-bottom: 20px; }
.pricing-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; margin: 20px 0 14px; }
.pricing-flow > div { display: grid; gap: 5px; align-content: start; padding: 16px; border: 1px solid #e0e9ec; border-radius: 16px; background: #fafdff; }
.pricing-flow b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--portal-navy); color: #fff; }
.pricing-flow strong { color: var(--portal-navy); }
.pricing-flow span { color: var(--portal-muted); font-size: 13px; }
.pricing-flow-arrow { align-self: center; color: #6ca981; font-size: 28px; font-weight: 900; }
.public-info-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 18px; }
.public-info-heading > p { max-width: 520px; margin: 0; text-align: right; }
.pricing-table { overflow: hidden; border: 1px solid #dce7ea; border-radius: 14px; }
.pricing-table-head, .pricing-table-row { display: grid; grid-template-columns: 1fr 150px; align-items: center; min-height: 52px; padding: 0 18px; }
.pricing-table-head { color: #fff; background: var(--portal-navy); font-size: 13px; }
.pricing-table-head strong, .pricing-table-row strong { text-align: right; }
.pricing-table-row { border-top: 1px solid #e5edef; color: #52677d; }
.pricing-table-row strong { color: var(--portal-green-dark); font-size: 18px; }
.pricing-first-win { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 16px; border: 1px solid #bfe0ca; border-radius: 14px; background: #f3faf5; }
.pricing-first-win .icon { flex: 0 0 auto; width: 28px; height: 28px; color: var(--portal-green); }
.pricing-first-win div { display: grid; gap: 4px; }
.pricing-first-win strong { color: var(--portal-navy); }
.pricing-first-win span { color: #5e7285; line-height: 1.55; }
.pricing-example-grid { margin-top: 20px; }
.pricing-example-grid .public-info-card { padding: 18px; }
.pricing-example-grid span { color: var(--portal-green-dark); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.pricing-example-grid strong { display: block; margin-top: 7px; color: var(--portal-navy); font-size: 21px; }
.pricing-important-card { margin-top: 20px; }
.pricing-important-card .button { margin-top: 16px; }
.about-purpose-grid .public-info-card { padding: 22px; }
.about-purpose-grid .icon { width: 38px; height: 38px; margin-bottom: 14px; color: var(--portal-green); }
.about-purpose-grid h2 { font-size: 23px; }
.about-story-card { margin-bottom: 20px; }
.about-story-card .button { margin-top: 14px; }
.about-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.about-privacy-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; margin-bottom: 20px; }
.about-privacy-card > div:first-child { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: #eef8f1; }
.about-privacy-card .icon { width: 30px; height: 30px; color: var(--portal-green); }
.about-privacy-card a, .about-email { color: var(--portal-green-dark); font-weight: 800; }
.about-operator-card { margin-bottom: 10px; }
.about-email { display: inline-block; margin: 4px 0 10px; font-size: 20px; }
.about-legal-note { font-size: 13px; }
.portal-footer nav { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 900px) { .pricing-flow { grid-template-columns: 1fr; } .pricing-flow-arrow { transform: rotate(90deg); justify-self: center; } .pricing-zero-grid, .about-purpose-grid, .pricing-example-grid { grid-template-columns: 1fr; } .about-two-column { grid-template-columns: 1fr; } .public-info-heading { display: grid; } .public-info-heading > p { max-width: none; text-align: left; } }
@media (max-width: 600px) { .public-info-card { padding: 18px; } .public-info-card h2 { font-size: 24px; } .pricing-table-head, .pricing-table-row { grid-template-columns: 1fr 88px; padding-inline: 12px; font-size: 12px; } .about-privacy-card { grid-template-columns: 1fr; } .about-email { font-size: 17px; } }

/* v41 — admin-only, fail-safe traffic analytics. */
.admin-traffic-strip {
  display: grid;
  grid-template-columns: minmax(190px,1.4fr) repeat(4,minmax(90px,.65fr));
  gap: 0;
  margin: 16px 0 30px;
  overflow: hidden;
  border: 1px solid #d7e5de;
  border-radius: 18px;
  background: #fff;
  color: var(--portal-navy);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(3,29,58,.06);
}
.admin-traffic-strip > span { min-height: 78px; display: grid; align-content: center; gap: 4px; padding: 14px 16px; border-left: 1px solid #e3ece7; }
.admin-traffic-strip > span:first-child { border-left: 0; }
.admin-traffic-strip small { color: #728499; font-size: 10px; font-weight: 750; }
.admin-traffic-strip strong { font-size: 24px; line-height: 1; }
.admin-traffic-strip .admin-traffic-title { background: linear-gradient(135deg,#f1faf4,#fff); }
.admin-traffic-strip .admin-traffic-title b { color: var(--portal-green-dark); font-size: 14px; }
.admin-traffic-strip:hover { border-color: #b8d7c3; transform: translateY(-1px); }

.analytics-hero .analytics-back { display: inline-flex; margin-bottom: 12px; }
.analytics-section { padding-top: 22px; }
.analytics-safe-note { margin-bottom: 14px; }
.analytics-live-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.analytics-live-card { min-height: 128px; display: grid; align-content: center; gap: 5px; padding: 18px; border: 1px solid #dce7ea; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(3,29,58,.05); }
.analytics-live-card.is-online { border-color: #bce0c8; background: linear-gradient(145deg,#effaf3,#fff); }
.analytics-live-card span { color: #61758a; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .055em; }
.analytics-live-card strong { color: var(--portal-navy); font-size: 36px; line-height: 1; }
.analytics-live-card.is-online strong { color: var(--portal-green-dark); }
.analytics-live-card small { color: #8190a0; font-size: 10px; }
.analytics-range-bar { display: flex; align-items: center; gap: 8px; margin: 18px 0 4px; padding: 8px; overflow-x: auto; border: 1px solid #e0e8eb; border-radius: 14px; background: #f8fafb; }
.analytics-range-bar div { padding: 0 6px; color: #667a8f; font-size: 11px; white-space: nowrap; }
.analytics-range-bar a { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 7px 13px; border: 1px solid transparent; border-radius: 10px; color: #5d7085; font-size: 11px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.analytics-range-bar a.active { color: #fff; background: var(--portal-navy); }
.analytics-heading { margin-top: 30px; }
.analytics-summary-grid { margin-top: 10px; }
.analytics-two-column { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr); gap: 16px; margin-top: 16px; }
.analytics-chart-card, .analytics-top-card { padding: 20px; }
.analytics-card-head h3 { margin: 8px 0 0; color: var(--portal-navy); font-size: 20px; }
.analytics-trend-list { display: grid; gap: 9px; margin-top: 18px; }
.analytics-trend-row { display: grid; grid-template-columns: 72px minmax(100px,1fr) 42px 48px; gap: 9px; align-items: center; }
.analytics-trend-row > span { color: #63768a; font-size: 10px; font-weight: 750; white-space: nowrap; }
.analytics-trend-row progress { width: 100%; height: 12px; accent-color: var(--portal-green-dark); }
.analytics-trend-row > b { color: var(--portal-navy); font-size: 11px; text-align: right; }
.analytics-trend-row > small { color: #8a98a6; font-size: 9px; white-space: nowrap; }
.analytics-page-list { display: grid; margin-top: 14px; }
.analytics-page-list > div { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; min-height: 54px; border-top: 1px solid #edf1f3; }
.analytics-page-list > div:first-child { border-top: 0; }
.analytics-page-list > div > b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #eef5f1; color: var(--portal-green-dark); font-size: 10px; }
.analytics-page-list span { min-width: 0; display: grid; gap: 2px; }
.analytics-page-list span strong { overflow: hidden; color: var(--portal-navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-page-list span small { overflow: hidden; color: #8a98a6; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-page-list em { display: grid; justify-items: end; color: var(--portal-navy); font-style: normal; font-size: 14px; font-weight: 850; }
.analytics-page-list em small { color: #8b99a7; font-size: 8px; font-weight: 700; }
.analytics-kpi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.analytics-kpi-grid article { min-height: 108px; display: grid; align-content: center; gap: 5px; padding: 17px; border: 1px solid #dce7ea; border-radius: 16px; background: #fff; }
.analytics-kpi-grid span { color: #677b90; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.analytics-kpi-grid strong { color: var(--portal-navy); font-size: 29px; line-height: 1; }
.analytics-kpi-grid small { color: #7b8c9d; font-size: 9px; }
.analytics-kpi-grid .is-money { border-color: #bfe1cb; background: #f5fbf7; }
.analytics-kpi-grid .is-money strong { color: var(--portal-green-dark); }
.analytics-privacy-note { margin-top: 18px; padding: 14px 16px; border: 1px solid #e2e9ec; border-radius: 14px; background: #f8fafb; color: #66798d; font-size: 11px; line-height: 1.6; }
.analytics-privacy-note strong { color: var(--portal-navy); }
.analytics-empty { min-height: 170px; display: grid; place-items: center; }

@media (max-width: 900px) {
  .admin-traffic-strip { grid-template-columns: repeat(4,1fr); }
  .admin-traffic-strip .admin-traffic-title { grid-column: 1 / -1; min-height: 58px; }
  .admin-traffic-strip > span:nth-child(2) { border-left: 0; }
  .analytics-live-grid { grid-template-columns: repeat(2,1fr); }
  .analytics-two-column { grid-template-columns: 1fr; }
  .analytics-kpi-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .admin-traffic-strip { grid-template-columns: repeat(2,1fr); border-radius: 14px; }
  .admin-traffic-strip .admin-traffic-title { grid-column: 1 / -1; }
  .admin-traffic-strip > span { min-height: 68px; padding: 11px 12px; }
  .admin-traffic-strip > span:nth-child(4) { border-left: 0; border-top: 1px solid #e3ece7; }
  .admin-traffic-strip > span:nth-child(5) { border-top: 1px solid #e3ece7; }
  .admin-traffic-strip strong { font-size: 21px; }
  .analytics-live-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .analytics-live-card { min-height: 105px; padding: 13px; border-radius: 14px; }
  .analytics-live-card strong { font-size: 29px; }
  .analytics-range-bar { margin-inline: -2px; }
  .analytics-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .analytics-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .analytics-kpi-grid article { min-height: 94px; padding: 13px; }
  .analytics-kpi-grid strong { font-size: 23px; }
  .analytics-chart-card, .analytics-top-card { padding: 15px; }
  .analytics-trend-row { grid-template-columns: 58px minmax(80px,1fr) 34px 42px; gap: 6px; }
}

/* v42 admin analytics — EalingPulse-style traffic overview */
.analytics-pulse-section { padding-top: 26px; }
.analytics-pulse-container { max-width: 1040px; }
.analytics-pulse-card {
  overflow: hidden;
  border: 1px solid #e2e8ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(3,29,58,.07);
}
.analytics-pulse-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 18px;
}
.analytics-pulse-head h2 { margin: 0; color: var(--portal-navy); font-size: 24px; line-height: 1.15; }
.analytics-pulse-head p { margin: 5px 0 0; color: #75879a; font-size: 11px; }
.analytics-pulse-online { display: grid; justify-items: end; gap: 2px; white-space: nowrap; }
.analytics-pulse-online span { color: #7a8b9c; font-size: 10px; font-weight: 750; }
.analytics-pulse-online strong { color: var(--portal-green-dark); font-size: 28px; line-height: 1; }
.analytics-pulse-tabs {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-top: 1px solid #edf1f3;
  border-bottom: 1px solid #edf1f3;
  background: #fff;
}
.analytics-pulse-tabs a {
  min-height: 46px;
  display: grid;
  place-items: center;
  border-right: 1px solid #edf1f3;
  color: #687b8f;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.analytics-pulse-tabs a:last-child { border-right: 0; }
.analytics-pulse-tabs a.active { color: var(--portal-navy); background: #fbfcfd; box-shadow: inset 0 -3px 0 var(--portal-green); }
.analytics-pulse-summary {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  min-height: 172px;
  border-bottom: 1px solid #edf1f3;
}
.analytics-pulse-summary > div { display: grid; place-items: center; align-content: center; gap: 8px; }
.analytics-pulse-summary > div + div { border-left: 1px solid #edf1f3; }
.analytics-pulse-summary span { color: #65798e; font-size: 11px; font-weight: 750; }
.analytics-pulse-summary strong { color: #0c3156; font-size: 58px; line-height: 1; letter-spacing: -.035em; }
.analytics-pulse-pages { padding: 22px 26px 26px; }
.analytics-pulse-pages h3 { margin: 0 0 18px; color: var(--portal-navy); font-size: 18px; }
.analytics-pulse-page-list { display: grid; gap: 15px; }
.analytics-pulse-page-row { display: grid; grid-template-columns: minmax(170px,220px) minmax(160px,1fr) 76px; gap: 14px; align-items: center; }
.analytics-pulse-page-name { min-width: 0; display: grid; gap: 2px; }
.analytics-pulse-page-name strong { overflow: hidden; color: #203d5c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-pulse-page-name small { overflow: hidden; color: #9aa6b1; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-pulse-page-bar { height: 9px; overflow: hidden; border-radius: 999px; background: #e8ecef; }
.analytics-pulse-page-bar i { height: 100%; display: block; border-radius: inherit; background: #123d69; }
.analytics-pulse-page-count { display: grid; justify-items: end; gap: 1px; }
.analytics-pulse-page-count strong { color: #1e3f60; font-size: 13px; line-height: 1; }
.analytics-pulse-page-count small { color: #8b9aa8; font-size: 8px; white-space: nowrap; }
.analytics-pulse-empty { padding: 28px 0 12px; color: #8191a0; font-size: 11px; text-align: center; }
.analytics-pulse-detail-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(260px,.55fr); gap: 16px; margin-top: 18px; }
.analytics-average-card { padding: 20px; }
.analytics-average-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 18px; }
.analytics-average-grid > div { min-height: 96px; display: grid; align-content: center; gap: 5px; padding: 14px; border: 1px solid #e3e9ed; border-radius: 14px; background: #fbfcfd; }
.analytics-average-grid span { color: #73869a; font-size: 9px; font-weight: 800; }
.analytics-average-grid strong { color: var(--portal-navy); font-size: 27px; line-height: 1; }
.analytics-average-card > p { margin: 14px 0 0; color: #8a98a6; font-size: 9px; line-height: 1.55; }

@media (max-width: 760px) {
  .analytics-pulse-head { padding: 19px 17px 15px; }
  .analytics-pulse-head h2 { font-size: 21px; }
  .analytics-pulse-tabs a { min-height: 43px; font-size: 11px; }
  .analytics-pulse-summary { min-height: 138px; }
  .analytics-pulse-summary strong { font-size: 46px; }
  .analytics-pulse-pages { padding: 18px 17px 20px; }
  .analytics-pulse-page-row { grid-template-columns: minmax(110px,1fr) minmax(90px,1.15fr) 58px; gap: 9px; }
  .analytics-pulse-page-name strong { font-size: 10px; }
  .analytics-pulse-page-name small { display: none; }
  .analytics-pulse-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .analytics-pulse-online span { font-size: 9px; }
  .analytics-pulse-online strong { font-size: 24px; }
  .analytics-pulse-summary strong { font-size: 41px; }
  .analytics-pulse-page-row { grid-template-columns: minmax(98px,1fr) minmax(68px,.9fr) 52px; gap: 7px; }
  .analytics-average-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .analytics-average-grid > div { min-height: 82px; padding: 11px; }
  .analytics-average-grid strong { font-size: 23px; }
}

/* SEO trade landing pages */
.trade-seo-hero { padding: 42px 0 34px; background: linear-gradient(180deg,#f6faf9 0%,#fff 100%); }
.trade-seo-hero-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr); gap:34px; align-items:center; }
.trade-seo-hero h1 { max-width:760px; margin:14px 0 12px; color:var(--portal-navy); font-size:clamp(34px,5vw,58px); line-height:1.02; letter-spacing:-.04em; }
.trade-seo-hero p { max-width:760px; margin:0; color:#536b81; font-size:17px; line-height:1.7; }
.trade-seo-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.trade-seo-hero-image { overflow:hidden; min-height:290px; border-radius:24px; box-shadow:0 18px 45px rgba(3,29,58,.12); background:#dfe8ea; }
.trade-seo-hero-image img { width:100%; height:100%; min-height:290px; object-fit:cover; display:block; }
.trade-seo-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(270px,.45fr); gap:24px; align-items:start; }
.trade-seo-main, .trade-seo-sidebar { display:grid; gap:22px; }
.trade-seo-services h2, .trade-seo-sidebar h2 { color:var(--portal-navy); }
.trade-seo-services > p { color:#5f7488; line-height:1.7; }
.trade-seo-service-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 0; }
.trade-seo-service-grid span { padding:13px 14px; border:1px solid #e2eaed; border-radius:13px; background:#fbfdfd; color:#28475f; font-weight:750; }
.trade-seo-example-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.trade-seo-example-card { overflow:hidden; display:grid; grid-template-columns:145px minmax(0,1fr); border:1px solid #e2e8eb; border-radius:18px; background:#fff; box-shadow:0 10px 30px rgba(3,29,58,.05); }
.trade-seo-example-card > a img { width:100%; height:100%; min-height:210px; object-fit:cover; display:block; }
.trade-seo-example-card > div { padding:16px; }
.trade-seo-example-card h3 { margin:10px 0 5px; font-size:17px; line-height:1.25; }
.trade-seo-example-card h3 a { color:var(--portal-navy); text-decoration:none; }
.trade-seo-example-card p { margin:0 0 11px; color:#718397; font-size:12px; }
.trade-seo-example-card dl { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0; }
.trade-seo-example-card dl div { padding:8px; border-radius:10px; background:#f5f8f9; }
.trade-seo-example-card dt { color:#7b8b99; font-size:9px; text-transform:uppercase; }
.trade-seo-example-card dd { margin:3px 0 0; color:var(--portal-navy); font-weight:850; }
.trade-seo-saving { display:block; margin-top:10px; color:var(--portal-green-dark); font-size:12px; }
.trade-seo-live-list { display:grid; gap:9px; }
.trade-seo-live-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; align-items:center; padding:15px 17px; border:1px solid #e2e8eb; border-radius:14px; background:#fff; text-decoration:none; }
.trade-seo-live-row > span { display:grid; gap:3px; }
.trade-seo-live-row > span:last-child { justify-items:end; }
.trade-seo-live-row strong, .trade-seo-live-row b { color:var(--portal-navy); }
.trade-seo-live-row small { color:#75889a; }
.trade-seo-cta .button { width:100%; margin-top:12px; }
.trade-seo-areas > div { display:flex; flex-wrap:wrap; gap:7px; }
.trade-seo-areas > div span { padding:7px 9px; border-radius:999px; background:#eef5f4; color:#315c56; font-size:11px; font-weight:800; }
.trade-seo-related > div { display:grid; gap:9px; margin:12px 0; }
.trade-seo-related > div a, .trade-seo-all-link { color:#17496f; font-weight:800; text-decoration:none; }
@media (max-width: 900px) {
  .trade-seo-hero-grid, .trade-seo-layout { grid-template-columns:1fr; }
  .trade-seo-hero-image { min-height:220px; max-height:360px; }
}
@media (max-width: 680px) {
  .trade-seo-hero { padding:26px 0 22px; }
  .trade-seo-hero h1 { font-size:36px; }
  .trade-seo-hero p { font-size:15px; }
  .trade-seo-service-grid, .trade-seo-example-grid { grid-template-columns:1fr; }
  .trade-seo-example-card { grid-template-columns:112px minmax(0,1fr); }
  .trade-seo-example-card > a img { min-height:190px; }
  .trade-seo-live-row { grid-template-columns:1fr; gap:8px; }
  .trade-seo-live-row > span:last-child { justify-items:start; }
}

/* FairerQuote SEO Stage 2: curated UK city + trade landing pages */
.local-seo-breadcrumb { margin-bottom: 14px; }
.local-seo-breadcrumb a { color:#267b48; font-size:12px; font-weight:850; text-decoration:none; }
.local-seo-context h2, .local-seo-checklist h2 { margin:10px 0 8px; color:var(--portal-navy); }
.local-seo-context > p, .local-seo-checklist > p { color:#5f7488; line-height:1.7; }
.local-seo-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-top:18px; }
.local-seo-facts > div { padding:13px 14px; border:1px solid #e2eaed; border-radius:13px; background:#f8fbfb; }
.local-seo-facts span, .local-seo-facts strong { display:block; }
.local-seo-facts span { color:#7b8b99; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.local-seo-facts strong { margin-top:4px; color:var(--portal-navy); font-size:14px; }
.local-seo-checklist ul { display:grid; gap:9px; margin:18px 0 0; padding-left:20px; color:#526c80; line-height:1.6; }
.local-seo-related > div { max-height:330px; overflow:auto; padding-right:3px; }
.local-directory-hero p { max-width:820px; }
.local-directory-section { padding-top:24px; }
.local-directory-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.local-directory-card { padding:22px; }
.local-directory-card h2 { margin:8px 0 8px; color:var(--portal-navy); font-size:24px; }
.local-directory-card p { margin:0; color:#60758a; line-height:1.65; }
.local-directory-region { color:#2b7e49; font-size:10px; font-weight:850; text-transform:uppercase; letter-spacing:.05em; }
.local-directory-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:16px; }
.local-directory-links a { padding:10px 11px; border:1px solid #dfe8e9; border-radius:11px; background:#f8fbfa; color:#17496f; font-size:11px; font-weight:850; text-decoration:none; }
@media (max-width:780px) {
  .local-seo-facts { grid-template-columns:1fr; }
  .local-directory-grid { grid-template-columns:1fr; gap:10px; }
  .local-directory-card { padding:17px; }
  .local-directory-links { grid-template-columns:1fr; }
}

/* SEO Stage 3: quote-check and cost-guide content */
.stage3-hero { padding: 44px 0 36px; background: linear-gradient(180deg,#f5faf8 0%,#fff 100%); }
.stage3-hero-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr); gap:28px; align-items:center; }
.stage3-hero h1 { max-width:800px; margin:13px 0 12px; color:var(--portal-navy); font-size:clamp(36px,5vw,60px); line-height:1.02; letter-spacing:-.045em; }
.stage3-hero p { max-width:760px; margin:0; color:#566f83; font-size:17px; line-height:1.72; }
.stage3-callout { display:grid; gap:11px; padding:24px; border:1px solid #dce8e4; border-radius:22px; background:#fff; box-shadow:0 16px 42px rgba(3,29,58,.08); }
.stage3-callout strong { color:var(--portal-navy); font-size:20px; }
.stage3-callout span { padding:11px 12px; border-radius:12px; background:#f2f8f5; color:#315e52; font-size:13px; font-weight:800; }
.stage3-section { padding-top:30px; }
.stage3-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.stage3-guide-card { overflow:hidden; display:grid; grid-template-columns:170px minmax(0,1fr); border:1px solid #dfe8e9; border-radius:19px; background:#fff; box-shadow:0 10px 30px rgba(3,29,58,.05); }
.stage3-guide-card img { width:100%; height:100%; min-height:230px; object-fit:cover; }
.stage3-guide-card > div { padding:20px; }
.stage3-guide-card h2,.stage3-guide-card h3 { margin:11px 0 8px; color:var(--portal-navy); font-size:21px; line-height:1.22; }
.stage3-guide-card p { color:#62778a; font-size:13px; line-height:1.65; }
.stage3-guide-card a,.stage3-related a,.stage3-method a { color:#17623b; font-weight:850; text-decoration:none; }
.stage3-detail-hero .trade-seo-hero-image { min-height:300px; }
.stage3-answer-card p,.stage3-market-guide p,.stage3-warning-card li,.stage3-method p,.stage3-method li { color:#566f83; line-height:1.72; }
.stage3-check-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:17px; }
.stage3-check-grid span { padding:12px 13px; border:1px solid #e0e9e9; border-radius:12px; background:#f9fbfb; color:#36546a; font-weight:750; }
.stage3-warning-card ul,.stage3-method ul { display:grid; gap:9px; margin:16px 0 0; padding-left:21px; }
.stage3-stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:18px 0; }
.stage3-stat-grid div { padding:16px; border:1px solid #dbe8e1; border-radius:14px; background:#f5faf7; }
.stage3-stat-grid span,.stage3-stat-grid strong { display:block; }
.stage3-stat-grid span { color:#6d8276; font-size:10px; font-weight:850; text-transform:uppercase; letter-spacing:.04em; }
.stage3-stat-grid strong { margin-top:5px; color:var(--portal-navy); font-size:21px; }
.stage3-smallprint { margin-top:10px!important; color:#7a8b98!important; font-size:11px!important; }
.stage3-data-pending { display:flex; align-items:center; gap:12px; margin-top:16px; padding:14px; border-radius:13px; background:#f3f6f7; color:#607487; }
.stage3-data-pending strong { color:var(--portal-navy); font-size:30px; }
.stage3-headline-price { color:var(--portal-navy)!important; font-size:18px; font-weight:800; }
.stage3-range-grid { display:grid; gap:10px; margin:18px 0; }
.stage3-range-grid > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 16px; align-items:center; padding:14px 15px; border:1px solid #dfe8ea; border-radius:13px; background:#fbfdfd; }
.stage3-range-grid span { color:#4d667a; font-weight:800; }
.stage3-range-grid strong { color:var(--portal-navy); font-size:18px; }
.stage3-range-grid small { grid-column:1/-1; color:#7b8d9b; }
.stage3-related p { color:#62788b; line-height:1.65; }
@media (max-width:900px) {
  .stage3-hero-grid { grid-template-columns:1fr; }
  .stage3-card-grid { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .stage3-hero { padding:26px 0 22px; }
  .stage3-hero h1 { font-size:36px; }
  .stage3-hero p { font-size:15px; }
  .stage3-callout { padding:17px; }
  .stage3-guide-card { grid-template-columns:104px minmax(0,1fr); }
  .stage3-guide-card img { min-height:210px; }
  .stage3-guide-card > div { padding:15px; }
  .stage3-guide-card h2,.stage3-guide-card h3 { font-size:18px; }
  .stage3-check-grid,.stage3-stat-grid { grid-template-columns:1fr; }
  .stage3-range-grid > div { grid-template-columns:1fr; }
  .stage3-range-grid small { grid-column:auto; }
}


/* v45 — public job photos, photo editing and high-readability typography. */
.job-detail-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 28px;
}
.job-detail-heading > div:first-child { min-width: 0; }
.job-detail-heading h1 {
  max-width: 980px;
  margin-top: 12px;
  font-size: clamp(36px, 3.6vw, 50px);
  line-height: 1.06;
  letter-spacing: -1.6px;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}
.job-detail-heading p { font-size: 15px; line-height: 1.5; }
.job-heading-actions { align-self: end; padding-bottom: 4px; }

.detail-card-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.detail-card-heading-row h2 { margin: 0; color: var(--portal-navy); font-size: 27px; }
.detail-card-heading-row .text-button { white-space: nowrap; }
.job-photo-card .photo-grid a { overflow: hidden; border-radius: 12px; background: #edf2f3; }
.job-photo-card .photo-grid img { border-radius: 12px; transition: transform .2s ease; }
.job-photo-card .photo-grid a:hover img { transform: scale(1.02); }
.job-photo-empty { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.job-photo-empty h2 { margin: 0 0 5px; color: var(--portal-navy); font-size: 24px; }
.job-photo-empty p { margin: 0; color: var(--portal-muted); font-size: 16px; line-height: 1.6; }
.job-photo-empty .button { flex: 0 0 auto; }

.edit-photo-manager { display: grid; gap: 16px; padding-top: 4px; }
.edit-photo-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.edit-photo-item { overflow: hidden; display: grid !important; gap: 0 !important; border: 1px solid #dce5e5; border-radius: 13px; background: #fff; }
.edit-photo-item img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; background: #edf2f3; }
.edit-photo-meta { padding: 9px 10px 3px; color: var(--portal-navy); font-size: 13px; font-weight: 850; }
.edit-photo-remove { display: flex; align-items: center; gap: 7px; padding: 6px 10px 10px; color: #9b2c2c; font-size: 13px; font-weight: 750; }
.edit-photo-remove input { width: 18px; height: 18px; accent-color: #b42318; }
.edit-photo-empty { margin: 0; padding: 15px 17px; color: #53677a; border: 1px solid #d9e7dd; border-radius: 11px; background: #f5fbf7; font-size: 15px; line-height: 1.6; }
.edit-photo-upload { min-height: 132px; }

/* Keep the marketplace comfortable to read instead of compressing important copy. */
.portal-nav > a, .portal-nav .nav-link { font-size: 16px; }
.back-link { font-size: 15px; }
.job-category-badge { font-size: 13px; }
.status-pill { font-size: 12px; }
.live-job-card h2 { font-size: 24px; line-height: 1.25; text-wrap: balance; }
.job-area { font-size: 15px; }
.job-excerpt { font-size: 16px; line-height: 1.65; }
.job-price-grid span { font-size: 13px; }
.job-price-grid strong { font-size: 22px; }
.job-card-footer { font-size: 14px; }
.quote-summary-card > span { font-size: 14px; }
.quote-summary-card > div { font-size: 14px; }
.quote-summary-card h3 { font-size: 17px; }
.quote-summary-card p { font-size: 15px; line-height: 1.7; }
.privacy-box strong { font-size: 15px; }
.ai-public-protocol-head h2 { font-size: 25px; }
.ai-analysis-review-head p, .ai-public-protocol-head p { font-size: 14px; }
.ai-analysis-summary-grid span { font-size: 11px; }
.ai-analysis-summary-grid strong, .ai-analysis-summary-grid.public strong { font-size: 20px; }
.ai-line-index { font-size: 12px; }
.ai-line-copy > strong { font-size: 15px; }
.ai-line-copy p { font-size: 14px; line-height: 1.6; }
.ai-line-copy > small { font-size: 12px; }
.ai-line-meta > span { font-size: 11px; }
.ai-line-price { font-size: 17px; }
.ai-clarifications > strong { font-size: 14px; }
.ai-clarifications ul, .ai-clarifications ol { font-size: 14px; line-height: 1.65; }
.ai-clarifications.public li span { font-size: 12px; }
.ai-analysis-warning { font-size: 13px; line-height: 1.6; }
.ai-protocol-columns strong { font-size: 14px; }
.ai-protocol-columns ul { font-size: 13px; line-height: 1.6; }
.ai-protocol-disclaimer { font-size: 12px; line-height: 1.6; }
.ai-terms-row span { font-size: 10px; }
.ai-terms-row strong { font-size: 14px; }
.portal-footer p, .portal-footer nav { font-size: 14px; }
.portal-copyright { font-size: 12px; }

@media (max-width: 920px) {
  .job-detail-heading { grid-template-columns: 1fr; gap: 18px; }
  .job-heading-actions { width: 100%; justify-content: flex-start; padding-bottom: 0; }
  .edit-photo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .portal-body { font-size: 17px; }
  .page-heading h1, .auth-heading h1, .jobs-portal-hero h1 { font-size: 36px; line-height: 1.08; }
  .job-detail-heading h1 { max-width: 100%; margin-top: 10px; font-size: clamp(31px, 9vw, 38px); line-height: 1.08; letter-spacing: -1px; text-wrap: balance; }
  .job-detail-heading p { font-size: 15px; }
  .detail-card > h2, .detail-card-heading-row h2 { font-size: 26px; }
  .long-copy { font-size: 17px; line-height: 1.72; }
  .detail-facts span { font-size: 13px; }
  .detail-facts strong { font-size: 17px; }
  .quote-summary-card > span, .quote-summary-card > div { font-size: 14px; }
  .quote-summary-card p { font-size: 16px; }
  .portal-form label, .filter-bar label { font-size: 15px; }
  .portal-form label > small { font-size: 13px; }
  .portal-file-box strong { font-size: 16px; }
  .portal-file-box small { font-size: 13px; }
  .edit-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .edit-photo-meta, .edit-photo-remove { font-size: 14px; }
  .job-photo-empty { align-items: stretch; flex-direction: column; }
  .job-photo-empty p { font-size: 16px; }
  .job-photo-empty .button { width: 100%; }

  .live-jobs-grid[data-view="list"] .live-job-card-photo { grid-template-columns: 118px minmax(0,1fr); }
  .live-jobs-grid[data-view="list"] .live-browser-body { padding: 14px; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo h2,
  .example-jobs-grid[data-view="list"] .example-browser-body h2 { margin: 7px 0 4px; font-size: 18px; line-height: 1.28; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-area,
  .example-jobs-grid[data-view="list"] .job-area { font-size: 12px; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-excerpt,
  .example-jobs-grid[data-view="list"] .job-excerpt { font-size: 13px; line-height: 1.48; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-price-grid span,
  .example-jobs-grid[data-view="list"] .job-price-grid span { font-size: 11px; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-price-grid strong,
  .example-jobs-grid[data-view="list"] .job-price-grid strong { font-size: 20px; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo .job-card-footer,
  .example-jobs-grid[data-view="list"] .job-card-footer,
  .example-jobs-grid[data-view="list"] .example-browser-saving { font-size: 11px; }

  .ai-analysis-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ai-analysis-summary-grid > div { border-bottom: 1px solid #e5ece7; }
  .ai-line-items article { grid-template-columns: 30px minmax(0,1fr); }
  .ai-line-price { grid-column: 2; padding-top: 0; }
  .ai-line-copy > strong { font-size: 16px; }
  .ai-line-copy p { font-size: 14px; }
  .ai-clarifications ul, .ai-clarifications ol { font-size: 14px; }
}

@media (max-width: 390px) {
  .edit-photo-grid { grid-template-columns: 1fr; }
  .live-jobs-grid[data-view="list"] .live-job-card-photo { grid-template-columns: 105px minmax(0,1fr); }
  .job-detail-heading h1 { font-size: 31px; }
}

/* v46 — same-page job photo lightbox with wheel zoom. */
.job-photo-lightbox-trigger {
  cursor: zoom-in;
}
.job-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 70px 28px 28px;
  background: rgba(3, 18, 32, .92);
  opacity: 0;
  transition: opacity .17s ease;
  overscroll-behavior: contain;
}
.job-lightbox.is-open { display: flex; }
.job-lightbox.is-visible { opacity: 1; }
.job-lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-out;
  touch-action: none;
}
.job-lightbox-image {
  max-width: min(96vw, 1500px);
  max-height: calc(100vh - 105px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
  transform-origin: center center;
  transition: transform .09s ease-out;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-out;
}
.job-lightbox.is-zoomed .job-lightbox-image { cursor: grab; }
.job-lightbox-image.is-dragging {
  cursor: grabbing !important;
  transition: none;
}
.job-lightbox-toolbar {
  position: absolute;
  top: 16px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  pointer-events: none;
}
.job-lightbox-toolbar > span {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(7px);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}
.job-lightbox-close {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.42);
  font: 400 34px/1 Arial, sans-serif;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(7px);
}
.job-lightbox-close:hover,
.job-lightbox-close:focus-visible { background: rgba(255,255,255,.2); outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 700px) {
  .job-lightbox { padding: 64px 10px 14px; }
  .job-lightbox-image { max-width: 98vw; max-height: calc(100vh - 86px); border-radius: 7px; }
  .job-lightbox-toolbar { top: 10px; left: 10px; right: 10px; }
  .job-lightbox-toolbar > span { font-size: 11px; padding: 7px 9px; max-width: calc(100vw - 72px); }
  .job-lightbox-close { width: 42px; height: 42px; flex-basis: 42px; font-size: 30px; }
}
