/* Agent Swiftly portal mockups. Tokens follow agentswiftly.com/style-guide. */
:root {
  --navy: #06254A;
  --blue: #1599DF;
  --blue-hover: #0F87C9;
  --text: #172638;
  --muted: #64748B;
  --line: #E2E8F0;
  --white: #FFFFFF;
  --soft: #F7F9FB;
  --light-blue: #F1F8FC;
  --ok: #157F4F;
  --ok-bg: #EAF6EF;
  --warn: #9A5B00;
  --warn-bg: #FFF5E5;
  --bad: #B42318;
  --bad-bg: #FDEDEC;
  --radius: 10px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--soft);
  color: var(--text);
  font: 400 15px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; text-wrap: balance; margin: 0; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* Header: logo left, Talk to Us right. No hamburger. */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .bar {
  max-width: 1120px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo img { height: 50px; width: auto; display: block; }
.header-right { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.balance {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--light-blue); color: var(--navy);
  padding: 4px 12px; border-radius: 999px; font-weight: 700;
}
.balance span { font-weight: 500; color: var(--muted); font-size: 13px; }
.account { color: var(--muted); }

/* Section tabs sit under the header and scroll sideways on a phone. */
.tabs { background: var(--white); border-bottom: 1px solid var(--line); }
.tabs nav {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none;
}
.tabs a {
  display: block; padding: 12px 0; color: var(--muted); font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs a:hover { color: var(--navy); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--blue); }

main { flex: 1 0 auto; width: 100%; max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; display: grid; gap: 24px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { margin-top: 4px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.card-body { padding: 24px; display: grid; gap: 16px; }
.card-head { padding: 16px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Buttons: primary Swift Blue, secondary quiet. */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 700 14px/1 "Manrope", system-ui, sans-serif;
  padding: 12px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); text-decoration: none; }
.btn-quiet { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-quiet:hover { background: var(--soft); text-decoration: none; color: var(--navy); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.arrow { width: 16px; height: 16px; flex: none; }

/* Forms */
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input, select {
  font: 400 15px/1.4 "Manrope", system-ui, sans-serif; color: var(--text);
  padding: 10px 12px; border: 1px solid #CBD5E1; border-radius: var(--radius-sm); background: var(--white);
  width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,153,223,.15); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; }
.filters input { width: auto; flex: 1 1 240px; }
.filters select { width: auto; flex: 0 1 180px; }

/* Tables scroll inside their card, never the page. */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--soft);
}
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.right, th.right { text-align: right; }
tbody tr:hover { background: var(--light-blue); }
.file-no { font-weight: 700; color: var(--navy); white-space: nowrap; }
.sub { color: var(--muted); font-size: 13px; }

/* Status pills: form and colour both carry the state. */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ready { color: var(--ok); background: var(--ok-bg); }
.pill.working { color: var(--blue-hover); background: var(--light-blue); }
.pill.failed { color: var(--bad); background: var(--bad-bg); }
.pill.removed { color: var(--muted); background: var(--soft); border: 1px solid var(--line); }
.pill.role { color: var(--navy); background: var(--light-blue); }
.pill.role::before { display: none; }

/* Upload */
.drop {
  border: 1.5px dashed #9CC9E6; background: var(--light-blue); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; display: grid; gap: 8px; justify-items: center;
}
.drop .icon { width: 40px; height: 40px; color: var(--blue); }
.quote {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.quote div { background: var(--white); padding: 16px 20px; }
.quote dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.quote dd { margin: 4px 0 0; font-size: 22px; font-weight: 800; color: var(--navy); }
.notice { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.notice.info { background: var(--light-blue); color: var(--navy); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }

/* File progress */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.steps li:last-child { border-bottom: 0; }
.dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.done .dot { background: var(--blue); border-color: var(--blue); }
.done .dot::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.now .dot { border-color: var(--blue); }
.now .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 1.6s ease-in-out infinite; }
.todo { color: var(--muted); }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .now .dot::after { animation: none; } .btn { transition: none; } }

.downloads { display: grid; gap: 0; }
.download {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 24px; border-bottom: 1px solid var(--line); color: var(--text);
}
.download:last-child { border-bottom: 0; }
.download:hover { background: var(--light-blue); text-decoration: none; color: var(--text); }
.download .doc { width: 32px; height: 32px; color: var(--navy); }
.download strong { color: var(--navy); display: block; }
.download .go { color: var(--blue); font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.download.primary { background: var(--light-blue); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 24px; margin: 0; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; color: var(--navy); font-weight: 600; }

.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.big-number { font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper input { width: 96px; text-align: center; font-weight: 700; }

/* Sign in */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: min(420px, 100%); }
.auth .logo img { height: 56px; margin: 0 auto; }

/* Footer: navy, owner named once. */
.site-footer { background: var(--navy); color: #C7D3E3; font-size: 13px; }
.site-footer .bar {
  max-width: 1120px; margin: 0 auto; padding: 20px 24px;
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
}
.site-footer a { color: #FFFFFF; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Mockup index only */
.index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.index-grid a.card { display: grid; gap: 4px; padding: 20px; color: var(--text); }
.index-grid a.card:hover { border-color: var(--blue); text-decoration: none; }

@media (max-width: 640px) {
  .site-header .bar, .tabs nav, main, .site-footer .bar { padding-left: 16px; padding-right: 16px; }
  .logo img { height: 34px; }
  .account { display: none; }
  .header-right { gap: 12px; }
  .card-body { padding: 18px; }
  .card-head { padding: 14px 18px; }
  .download { padding: 14px 18px; }
  h1 { font-size: 22px; }
  .hide-sm { display: none; }
}

/* Portal additions */
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 6px; }
.small { font-size: 13px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; margin: 0; }
.messages { display: grid; gap: 8px; }
.notice.good { background: var(--ok-bg); color: var(--ok); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.inset { margin: 16px 24px 0; }
.field-error { color: var(--bad); font-weight: 500; font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; }
.linklike:hover { color: var(--blue-hover); text-decoration: underline; }
.linklike.danger { color: var(--bad); }
.crumbs { font-size: 14px; }
.crumbs a::before { content: "\2190\00a0"; }
.pager { font-size: 14px; }
.empty { justify-items: start; }
.empty p { max-width: 62ch; }
.plain { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.file-chip { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; }
.file-chip .doc { width: 32px; height: 32px; color: var(--navy); }
.file-chip strong { color: var(--navy); overflow-wrap: anywhere; }
.drop input[type="file"] { width: auto; max-width: 100%; border: 0; background: transparent; padding: 0; margin-top: 8px; }
.drop { cursor: pointer; font-weight: 400; }
.drop strong { color: var(--navy); font-size: 16px; }
td select { width: auto; padding: 6px 10px; font-size: 14px; }
td input[readonly] { margin-top: 6px; font-size: 12px; padding: 6px 8px; }
details summary { cursor: pointer; color: var(--blue); }
.total { display: flex; justify-content: space-between; font-size: 15px; }
.total strong { color: var(--navy); font-size: 18px; }
.plus { color: var(--ok); font-weight: 700; }
.auth-page { min-height: 100vh; display: grid; grid-template-rows: 1fr auto; }
.auth-logo img { height: 52px; margin: 0 0 8px; }
.underwriter-row { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.underwriter-row:last-of-type { border-bottom: 0; }
textarea { font: 400 15px/1.5 "Manrope", system-ui, sans-serif; color: var(--text); padding: 10px 12px; border: 1px solid #CBD5E1; border-radius: var(--radius-sm); width: 100%; resize: vertical; }
textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,153,223,.15); }
.site-header form { margin: 0; }

.auth-page { flex: 1 0 auto; }
input[type="file"]::file-selector-button {
  font: 700 14px/1 "Manrope", system-ui, sans-serif; color: var(--navy);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; margin-right: 12px; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--soft); }
@media (max-width: 640px) {
  .hide-xs { display: none; }
  .files-table td:first-child { min-width: 9.5rem; }
  .ledger td:first-child { white-space: nowrap; }
  .filters select { flex: 1 1 140px; }
}
/* Grid items default to their content's width; a wide table must scroll inside its card instead. */
main > *, .split > *, .stack > * { min-width: 0; }
@media (max-width: 860px) { .balance-first > aside { order: -1; } }
.sub.step { margin-top: 4px; }
.chip { display: inline-block; padding: 2px 8px; margin: 0 6px 6px 0; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--navy); background: var(--soft); }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
label.check input { width: auto; }

/* A finished file: read it, copy from it. */
.pill.warn { color: var(--warn); background: var(--warn-bg); }
.results-split { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 860px) {
  .results-split { grid-template-columns: 1fr; }
  /* On a phone the downloads lead; the rest of the side panel follows the file. */
  .results-split > aside { display: contents; }
  .results-split > aside > .card:first-child { order: -1; }
  .results-split > aside > .card { order: 1; }
}
@media (min-width: 861px) { .sticky { position: sticky; top: 16px; align-self: start; } }
.jump {
  position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap;
  padding: 10px 0; background: var(--soft);
}
.jump a {
  font-size: 13px; font-weight: 700; color: var(--navy); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.jump a:hover { border-color: var(--blue); text-decoration: none; }
.jump .count { color: var(--muted); font-weight: 600; margin-left: 2px; }
section.card { scroll-margin-top: 64px; }
.copy {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font: 600 12px/1 "Manrope", system-ui, sans-serif; color: var(--muted);
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 8px; cursor: pointer; transition: color .15s, border-color .15s;
}
.copy svg { width: 14px; height: 14px; }
.copy:hover { color: var(--blue); border-color: var(--blue); }
.copy.copied { color: var(--ok); border-color: var(--ok); }
.copy-list { margin: 0; }
.copy-row {
  display: grid; grid-template-columns: minmax(130px, 200px) 1fr auto; gap: 16px; align-items: start;
  padding: 12px 24px; border-bottom: 1px solid var(--line);
}
.copy-row:last-child { border-bottom: 0; }
.copy-row dt { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.copy-row dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.copy-row .copy, .clause .copy { opacity: .55; }
.copy-row:hover .copy, .clause:hover .copy, .copy:focus-visible { opacity: 1; }
.clauses { list-style: none; margin: 0; padding: 0; }
.clause {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: start;
  padding: 14px 24px; border-bottom: 1px solid var(--line);
}
.clause:last-child { border-bottom: 0; }
.clause-no { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.clause-text { display: grid; gap: 8px; min-width: 0; }
.clause-text p { overflow-wrap: anywhere; }
.sub-item { padding-left: 16px; }
.sub-item span { font-weight: 700; color: var(--navy); }
.clause.standard { display: none; }
.clause.standard .clause-text { color: var(--muted); }
.show-standard .clause.standard { display: grid; }
.legal { gap: 20px; }
.legal-part { display: grid; gap: 8px; }
.legal-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.legal-part p { white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
.matter { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.matter:last-child { border-bottom: 0; padding-bottom: 0; }
.matter-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.matter h3 { font-size: 15px; }
.downloads.compact .download { grid-template-columns: 28px 1fr 16px; padding: 10px 16px; gap: 10px; }
.downloads.compact .doc { width: 24px; height: 24px; }
.downloads.compact .arrow { color: var(--blue); }
@media (max-width: 640px) {
  .copy-row { grid-template-columns: 1fr auto; padding: 12px 18px; }
  .copy-row dt { grid-column: 1 / -1; }
  .clause { grid-template-columns: 24px 1fr; padding: 14px 18px; }
  .clause .copy { grid-column: 2; justify-self: start; opacity: 1; }
  .copy-row .copy { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .copy { transition: none; } }
.prose p { margin: 0 0 8px; overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }
.legal-part .prose p { font-size: 14px; }
.pager-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 24px; border-top: 1px solid var(--line); font-size: 14px;
}
.pager-nav { display: flex; align-items: center; gap: 14px; }
.pager-nav > span:not(.muted) { color: var(--line); }
.pager-nav a { font-weight: 600; }
@media (max-width: 640px) { .pager-bar { padding: 12px 18px; } }
/* Files and the work on them */
.req-chip {
  display: inline-flex; gap: 6px; align-items: center; margin: 0 6px 6px 0; padding: 3px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--blue-hover); background: var(--light-blue);
}
.req-chip strong { font-weight: 800; }
a.req-chip:hover { text-decoration: none; filter: brightness(.97); }
.req-chip.ready { color: var(--ok); background: var(--ok-bg); }
.req-chip.failed { color: var(--bad); background: var(--bad-bg); }
.req-chip.removed { color: var(--muted); background: var(--soft); border: 1px solid var(--line); }
.req-chip.warn { color: var(--warn); background: var(--warn-bg); }
.request-list { list-style: none; margin: 0; padding: 0; }
.request-list li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 14px 24px; border-bottom: 1px solid var(--line);
}
.request-list li:last-child { border-bottom: 0; }
.offer { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.offer:last-child { border-bottom: 0; padding-bottom: 0; }
.waiting { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.compact-drop { padding: 20px 16px; }
@media (max-width: 640px) {
  .request-list li { grid-template-columns: 1fr auto; padding: 14px 18px; }
  .request-list li .btn { grid-column: 1 / -1; justify-self: start; }
}
/* A short page leaves its spare height below the content, not between sections. */
main { align-content: start; }
.card-body > *, label { min-width: 0; }
select, input:not([type="checkbox"]):not([type="radio"]) { max-width: 100%; }
/* Services and settings */
.section-title { font-size: 16px; margin-top: 8px; }
.service-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.service-card .card-body { gap: 10px; align-content: start; }
.service-card.active { border-color: #BFE0F4; }
.service-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.service-head h3 { font-size: 16px; }
.service-facts { display: grid; gap: 8px; margin: 4px 0 0; }
.service-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.service-facts dd { margin: 2px 0 0; font-size: 14px; }
.service-settings { padding-top: 12px; border-top: 1px solid var(--line); }
.subnav { display: flex; gap: 8px; }
.subnav a { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); border: 1px solid var(--line); background: var(--white); }
.subnav a[aria-current="page"] { color: var(--navy); border-color: var(--blue); background: var(--light-blue); }
.subnav a:hover { text-decoration: none; color: var(--navy); }
.top-ups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.top-ups .btn { padding: 10px 0; }
.amount { display: flex; align-items: center; gap: 6px; }
.amount span { color: var(--muted); font-weight: 700; }
code.copy-target { font-size: 13px; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; overflow-wrap: anywhere; }
.compact-drop strong { font-size: 15px; }
.compact-drop input[type="file"] { font-size: 13px; max-width: 100%; }
.compact-drop input[type="file"]::file-selector-button { padding: 8px 12px; margin-right: 8px; }
.compact-head { margin-top: 8px; }
.stage-head {
  padding: 10px 24px; background: var(--soft); border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.card > .stage-head:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 12px 24px; border-bottom: 1px solid var(--line);
}
.offer-list li:last-child { border-bottom: 0; }
.offer-text { display: grid; gap: 2px; min-width: 0; }
.offer-text strong { color: var(--navy); }
.offer-text details { margin-top: 4px; }
.offer-text details p { margin: 6px 0 0; max-width: 70ch; }
@media (max-width: 640px) { .offer-list li { padding: 12px 18px; } .stage-head { padding: 10px 18px; } }
/* The catalogue */
.subnav .count { margin-left: 4px; color: var(--muted); font-weight: 600; }
.catalog-stage { display: grid; gap: 12px; }
.stage-title { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.catalog-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.catalog-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.catalog-card:hover { border-color: #9CC9E6; box-shadow: 0 6px 20px rgba(6, 37, 74, .06); }
.catalog-card h3 { font-size: 16px; }
.catalog-card > p { color: var(--text); font-size: 14px; line-height: 1.55; }
.catalog-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--light-blue); color: var(--blue);
}
.catalog-icon svg { width: 24px; height: 24px; }
.catalog-card details { font-size: 13px; color: var(--muted); }
.catalog-card details summary { color: var(--blue); font-weight: 600; }
.catalog-card details p { margin-top: 8px; line-height: 1.55; }
.catalog-card details .delivery { color: var(--navy); font-weight: 600; }
.catalog-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 10px; }
.catalog-card.requested { background: var(--soft); }
.catalog-card.requested .catalog-icon { background: var(--white); border: 1px solid var(--line); color: var(--muted); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .catalog-card { transition: none; } }
.request-btn .arrow { color: var(--blue); width: 14px; height: 14px; }
.request-btn:hover { border-color: var(--blue); }
/* A file's "Order a service" rows: the text takes the room, the action never wraps. */
.offer > div { flex: 1 1 auto; min-width: 0; }
.offer > button, .offer > .pill, .offer > .btn { flex: 0 0 auto; white-space: nowrap; }
.request-list li > form, .request-list li > .pill, .request-list li > .btn { white-space: nowrap; }
.btn, .linklike { white-space: nowrap; }
.quiet-section { display: grid; gap: 10px; }
.quiet-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.quiet-list .offer { padding: 12px 0; border-bottom: 1px solid var(--line); }
