:root {
  --cks-font: "League Spartan", Arial, sans-serif;
  --navy: #0b1020;
  --navy-2: #20283b;
  --teal: #20b3aa;
  --teal-dark: #148e87;
  --teal-light: #72d9d2;
  --pink: #ff3b68;
  --pink-dark: #e82f61;
  --yellow: #ffc857;
  --cream: #f7f1e8;
  --paper: #fffdf9;
  --white: #ffffff;
  --ink: #0b1020;
  --muted: #686f7d;
  --line: #ded9d0;
  --danger: #c9344b;
  --success: #137c67;
  --warning: #9a6500;
  --info: #246aa5;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 8px 24px rgba(11, 16, 32, .08);
  --shadow: 0 22px 60px rgba(11, 16, 32, .14);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--cks-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden], .hidden { display: none !important; }

.shell { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.stack > * + * { margin-top: var(--stack-space, 18px); }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spread { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.text-right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.portal-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(11,16,32,.98);
  border-bottom: 1px solid rgba(32,179,170,.28);
  backdrop-filter: blur(12px);
}
.portal-nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.portal-logo { width: 214px; height: auto; }
.portal-links { display: flex; align-items: center; gap: 20px; }
.portal-links a, .portal-links button.link-button {
  border: 0;
  background: none;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 0;
}
.portal-links a:hover, .portal-links button.link-button:hover { color: var(--teal-light); }
.portal-menu-button {
  display: none;
  border: 1px solid rgba(114,217,210,.55);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  padding: 9px 14px;
  font-weight: 700;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 12px !important;
}
.account-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255,59,104,.24);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(255,59,104,.31); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.button.secondary { background: var(--teal); color: var(--navy); box-shadow: 0 12px 28px rgba(32,179,170,.2); }
.button.secondary:hover { background: var(--teal-light); }
.button.yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 12px 28px rgba(255,200,87,.2); }
.button.outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); box-shadow: none; }
.button.outline:hover { background: var(--navy); color: #fff; }
.button.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.button.danger { background: var(--danger); }
.button.small-button { min-height: 38px; padding: 9px 14px; font-size: 12px; }
.button.full { width: 100%; }
.link-button { border: 0; background: none; padding: 0; color: var(--teal-dark); text-decoration: underline; font-weight: 700; }

.portal-main { min-height: calc(100vh - 260px); }
.page-hero {
  padding: 70px 0 64px;
  background:
    radial-gradient(circle at 85% 20%, rgba(32,179,170,.19), transparent 28%),
    radial-gradient(circle at 70% 100%, rgba(255,59,104,.13), transparent 32%),
    var(--navy);
  color: #fff;
}
.page-hero.compact { padding: 42px 0; }
.page-hero-grid { display: grid; grid-template-columns: 1fr .78fr; gap: 64px; align-items: center; }
.eyebrow { color: var(--teal-light); text-transform: uppercase; letter-spacing: 2.2px; font-weight: 900; font-size: 11px; }
.page-hero h1, .auth-card h1, .section-title, .panel-title {
  font-family: "League Spartan", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.03;
}
.page-hero h1 { margin: 14px 0 18px; font-size: clamp(44px, 6vw, 76px); }
.page-hero p { max-width: 690px; color: #d6dae3; font-size: 18px; }
.hero-account-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.07);
  box-shadow: 0 28px 70px rgba(0,0,0,.25);
}
.hero-account-card strong { display: block; font-size: 22px; margin-bottom: 8px; }
.hero-account-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.hero-account-card li { padding: 7px 0; color: #e8eaf0; }
.hero-account-card li::before { content: "✓"; color: var(--teal-light); font-weight: 900; margin-right: 10px; }

.page-section { padding: 72px 0; }
.page-section.soft { background: var(--cream); }
.page-section.teal-band { background: var(--teal); }
.section-heading { margin-bottom: 32px; }
.section-title { margin: 9px 0 10px; font-size: clamp(34px, 4.5vw, 54px); }
.section-lead { max-width: 760px; color: var(--muted); font-size: 17px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 26px; }
.card-pad-lg { padding: 34px; }
.panel-title { margin: 0 0 9px; font-size: 28px; }
.panel-subtitle { margin: 0 0 22px; color: var(--muted); }
.notice {
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(36,106,165,.22);
  background: #eef6fd;
  color: #164f7f;
  font-size: 13px;
}
.notice.warning { border-color: rgba(154,101,0,.24); background: #fff7df; color: #765000; }
.notice.success { border-color: rgba(19,124,103,.24); background: #ebf8f4; color: #0b634f; }
.notice.danger { border-color: rgba(201,52,75,.25); background: #fff0f2; color: #9d2339; }
.notice strong { display: block; margin-bottom: 2px; }
.demo-banner {
  display: none;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--navy);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.demo-banner.visible { display: block; }

.auth-wrap { min-height: calc(100vh - 86px); display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-art {
  min-height: 650px;
  padding: 70px max(34px, calc((100vw - 1180px)/2));
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.auth-art::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 85px solid rgba(32,179,170,.14);
  border-radius: 50%;
  right: -230px;
  bottom: -210px;
}
.auth-art h2 { font-family: "League Spartan", Arial, sans-serif; font-size: clamp(46px, 6vw, 78px); line-height: 1.02; margin: 20px 0; font-weight: 400; }
.auth-art h2 em { color: var(--yellow); font-style: normal; }
.auth-art p { max-width: 540px; color: #d6dae3; font-size: 17px; }
.auth-panel { display: grid; place-items: center; background: var(--cream); padding: 44px 24px; }
.auth-card { width: min(100%, 520px); padding: 38px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 43px; margin: 10px 0 12px; }
.auth-card .logo-dark { width: 220px; background: var(--navy); border-radius: 12px; padding: 10px 14px; margin-bottom: 26px; }
.auth-help { color: var(--muted); font-size: 14px; }
.demo-login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #8c8f97; font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

label { display: block; color: var(--navy); font-size: 12px; font-weight: 800; margin-bottom: 16px; }
label .optional { color: #9297a0; font-weight: 500; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cfd3da;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  margin-top: 7px;
  outline: none;
  transition: border .15s, box-shadow .15s;
}
textarea { min-height: 116px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(32,179,170,.12); }
input[type="checkbox"], input[type="radio"] { width: auto; margin: 0; accent-color: var(--pink); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-grid.three { grid-template-columns: repeat(3,1fr); }
.field-hint { display: block; color: #848992; font-size: 11px; margin-top: 5px; font-weight: 500; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; }
.checkbox-row input { margin-top: 3px; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-top: 26px; }
.error-text { color: var(--danger); font-size: 12px; margin-top: 8px; }

.portal-shell { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 30px; padding: 38px 0 80px; }
.sidebar { align-self: start; position: sticky; top: 112px; padding: 18px; }
.sidebar-title { padding: 8px 10px 15px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.sidebar-title strong { display: block; }
.sidebar-title span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.side-nav { display: grid; gap: 4px; }
.side-nav a, .side-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.side-nav a:hover, .side-nav button:hover, .side-nav a.active { background: var(--cream); color: var(--teal-dark); }
.content-area { min-width: 0; }
.content-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 26px; }
.content-header h1 { font-family: "League Spartan", Arial, sans-serif; font-size: clamp(38px, 5vw, 58px); line-height: 1.02; font-weight: 400; margin: 5px 0 0; }
.content-header p { color: var(--muted); margin: 8px 0 0; }

.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 26px; }
.metric-card { padding: 22px; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-card .metric-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800; }
.metric-card strong { font-family: "League Spartan", Arial, sans-serif; font-weight: 400; font-size: 40px; line-height: 1; }
.metric-card.accent { background: var(--navy); color: #fff; border-color: var(--navy); }
.metric-card.accent .metric-label { color: var(--teal-light); }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: #7a7f88; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
td { padding: 15px 14px; border-bottom: 1px solid #ece8e1; font-size: 13px; vertical-align: middle; }
tbody tr:hover { background: #fffcf7; }
.order-link { font-weight: 900; text-decoration: none; color: var(--navy); }
.order-link:hover { color: var(--teal-dark); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 9px;
  background: #eef1f5;
  color: #525b68;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-draft, .status-quote_requested { background: #f2f0ed; color: #6d665d; }
.status-awaiting_payment, .status-quote_sent { background: #fff5d7; color: var(--warning); }
.status-paid, .status-brief_received { background: #eaf8f4; color: var(--success); }
.status-in_design, .status-proof_ready, .status-amendments { background: #edf5ff; color: var(--info); }
.status-approved, .status-complete { background: #e6f7ef; color: #08705a; }
.status-cancelled { background: #fff0f2; color: var(--danger); }

.order-card-list { display: grid; gap: 14px; }
.order-card { padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.order-card h3 { margin: 0; font-size: 17px; }
.order-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.empty-state { text-align: center; padding: 55px 28px; }
.empty-state-icon { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; margin: 0 auto 18px; background: var(--cream); font-size: 28px; }
.empty-state h3 { font-family: "League Spartan", Arial, sans-serif; font-size: 28px; margin: 0 0 8px; }
.empty-state p { color: var(--muted); max-width: 500px; margin: 0 auto 20px; }

.order-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 28px; align-items: start; }
.order-panel { padding: 30px; }
.order-summary { position: sticky; top: 112px; padding: 24px; }
.order-summary h3 { margin: 0 0 18px; font-family: "League Spartan", Arial, sans-serif; font-size: 28px; font-weight: 400; }
.summary-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #ece8e1; font-size: 13px; }
.summary-row span { color: var(--muted); }
.summary-row strong { text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-top: 20px; }
.summary-total strong { font-family: "League Spartan", Arial, sans-serif; font-size: 38px; font-weight: 400; }
.stepper { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin: 0 0 24px; }
.step-item { min-width: 0; text-align: center; color: #8a8f98; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.step-item::before { content: attr(data-step); display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 50%; background: #e8e5df; color: #7a7f87; }
.step-item.active { color: var(--navy); }
.step-item.active::before { background: var(--pink); color: #fff; }
.step-item.complete::before { content: "✓"; background: var(--teal); color: var(--navy); }
.step-pane { display: none; }
.step-pane.active { display: block; animation: step-in .25s ease; }
@keyframes step-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.step-pane h2 { font-family: "League Spartan", Arial, sans-serif; font-size: 38px; font-weight: 400; line-height: 1.08; margin: 0 0 8px; }
.step-pane > p { color: var(--muted); margin: 0 0 26px; }

.package-choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.choice-card { position: relative; display: block; border: 2px solid #e1ddd5; border-radius: 17px; padding: 21px; background: #fff; cursor: pointer; transition: border .16s, transform .16s, box-shadow .16s; }
.choice-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card.selected, .choice-card:has(input:checked) { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,59,104,.1); }
.choice-card .choice-label { display: block; color: var(--teal-dark); font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 900; }
.choice-card h3 { margin: 8px 0 5px; font-size: 20px; }
.choice-card .choice-price { font-family: "League Spartan", Arial, sans-serif; font-size: 34px; line-height: 1; }
.choice-card p { color: var(--muted); font-size: 12px; margin: 11px 0 0; }
.choice-card.bespoke-choice { grid-column: 1 / -1; background: var(--navy); color: #fff; border-color: var(--navy); }
.choice-card.bespoke-choice .choice-label { color: var(--teal-light); }
.choice-card.bespoke-choice p { color: #d6dae3; }

.template-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; }
.filter-button { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); padding: 8px 12px; font-size: 11px; font-weight: 800; }
.filter-button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.template-choice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.template-choice { position: relative; display: block; overflow: hidden; min-width: 0; border: 2px solid #e1ddd5; border-radius: 15px; background: #fff; cursor: pointer; transition: border .16s, transform .16s, box-shadow .16s; }
.template-choice:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.template-choice.selected, .template-choice:has(input:checked) { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,59,104,.12); }
.template-choice input { position: absolute; opacity: 0; }
.template-preview { height: 215px; background-repeat: no-repeat; background-color: #ece9e3; }
.template-choice[data-crop="main"] .template-preview { background-size: 112% auto; background-position: 50% 20%; }
.template-choice[data-crop="left"] .template-preview { background-size: 225% auto; background-position: 0 86%; }
.template-choice[data-crop="middle"] .template-preview { background-size: 225% auto; background-position: 50% 86%; }
.template-choice[data-crop="right"] .template-preview { background-size: 225% auto; background-position: 100% 86%; }
.template-choice[data-crop="full"] .template-preview { background-size: cover; background-position: center top; }
.template-choice-body { padding: 13px; }
.template-code { display: inline-block; border-radius: 6px; background: var(--cream); padding: 4px 6px; color: var(--teal-dark); font-size: 9px; font-weight: 900; letter-spacing: .8px; }
.template-choice h3 { margin: 8px 0 2px; font-size: 14px; line-height: 1.2; }
.template-choice p { color: var(--muted); font-size: 10px; margin: 0; }

.upload-zone { border: 2px dashed #c8cbd1; border-radius: 16px; padding: 28px; text-align: center; background: #fffdfa; }
.upload-zone.dragover { border-color: var(--teal); background: #effaf8; }
.upload-zone input { display: none; }
.upload-zone strong { display: block; font-size: 16px; }
.upload-zone p { color: var(--muted); font-size: 12px; margin: 5px 0 14px; }
.pending-files, .file-list { display: grid; gap: 10px; margin-top: 16px; }
.file-row { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: #fff; }
.file-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: var(--cream); font-size: 18px; }
.file-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.file-row span { color: var(--muted); font-size: 10px; }

.review-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.review-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; }
.review-row:last-child { border-bottom: 0; }
.review-row span { color: var(--muted); }

.project-header-card { padding: 26px; margin-bottom: 22px; background: var(--navy); color: #fff; border-color: var(--navy); }
.project-header-grid { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; }
.project-header-card h1 { font-family: "League Spartan", Arial, sans-serif; font-size: clamp(38px,5vw,58px); font-weight: 400; line-height: 1.04; margin: 6px 0 8px; }
.project-header-card p { margin: 0; color: #d8dbe3; }
.project-total { text-align: right; }
.project-total span { display: block; color: var(--teal-light); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.project-total strong { font-family: "League Spartan", Arial, sans-serif; font-size: 42px; font-weight: 400; }
.project-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.project-column { display: grid; gap: 20px; }
.timeline { display: grid; gap: 0; padding: 8px 0; }
.timeline-step { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-bottom: 19px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::after { content: ""; position: absolute; left: 16px; top: 32px; bottom: 0; width: 2px; background: #e0ddd7; }
.timeline-step:last-child::after { display: none; }
.timeline-dot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e7e4df; color: #81858b; font-size: 11px; font-weight: 900; }
.timeline-step.done .timeline-dot { background: var(--teal); color: var(--navy); }
.timeline-step.current .timeline-dot { background: var(--pink); color: #fff; box-shadow: 0 0 0 5px rgba(255,59,104,.12); }
.timeline-step strong { display: block; font-size: 13px; }
.timeline-step span { color: var(--muted); font-size: 11px; }

.message-thread { max-height: 440px; overflow-y: auto; display: grid; gap: 12px; padding: 4px; }
.message { max-width: 84%; padding: 12px 14px; border-radius: 15px 15px 15px 4px; background: var(--cream); }
.message.own { justify-self: end; border-radius: 15px 15px 4px 15px; background: #def5f1; }
.message.admin-message { background: #eef3ff; }
.message p { margin: 0; font-size: 13px; white-space: pre-wrap; }
.message-meta { margin-top: 5px; color: #7b8088; font-size: 9px; }
.message-compose { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; }
.message-compose textarea { min-height: 52px; margin: 0; }

.proof-card { border: 2px solid var(--teal); }
.proof-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.proof-feedback { margin-top: 16px; }

.brand-colours { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.colour-chip { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; font-size: 11px; }
.colour-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

.admin-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 20px; align-items: start; }
.admin-detail { position: sticky; top: 112px; max-height: calc(100vh - 140px); overflow-y: auto; }
.filter-row { display: grid; grid-template-columns: 1fr 190px 180px; gap: 12px; margin-bottom: 18px; }
.admin-order-row { cursor: pointer; }
.admin-order-row.selected { background: #eaf8f5; }
.admin-detail-section { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.admin-detail-section h3 { margin: 0 0 12px; font-size: 14px; }

.policy-page { padding: 64px 0 90px; }
.policy-card { max-width: 900px; margin: auto; padding: 40px; }
.policy-card h1 { font-family: "League Spartan", Arial, sans-serif; font-size: 54px; line-height: 1.05; font-weight: 400; margin: 0 0 20px; }
.policy-card h2 { font-family: "League Spartan", Arial, sans-serif; font-size: 30px; font-weight: 400; margin: 34px 0 10px; }
.policy-card p, .policy-card li { color: #4f5661; }
.placeholder { background: #fff2c9; color: #795300; padding: 2px 5px; border-radius: 4px; font-weight: 800; }

.portal-footer { background: var(--navy); color: #c7cbd5; padding: 46px 0 24px; }
.portal-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 45px; }
.portal-footer-logo { width: 220px; margin-bottom: 14px; }
.portal-footer p { font-size: 12px; max-width: 440px; }
.portal-footer strong { color: #fff; display: block; margin-bottom: 8px; }
.portal-footer a { display: block; color: #c7cbd5; text-decoration: none; font-size: 12px; padding: 3px 0; }
.portal-footer a:hover { color: var(--teal-light); }
.portal-footer-bottom { border-top: 1px solid rgba(255,255,255,.13); margin-top: 34px; padding-top: 16px; font-size: 10px; }

.loading-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; background: rgba(11,16,32,.72); backdrop-filter: blur(4px); }
.loading-card { display: flex; align-items: center; gap: 13px; padding: 18px 22px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-weight: 800; }
.spinner { width: 22px; height: 22px; border: 3px solid #dedfe3; border-top-color: var(--pink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-region { position: fixed; z-index: 1200; right: 18px; bottom: 18px; display: grid; gap: 10px; width: min(390px, calc(100vw - 36px)); }
.toast { border-radius: 13px; padding: 14px 16px; background: var(--navy); color: #fff; box-shadow: var(--shadow); font-size: 13px; animation: toast-in .22s ease; }
.toast.success { border-left: 5px solid var(--teal); }
.toast.error { border-left: 5px solid var(--pink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1060px) {
  .portal-menu-button { display: inline-flex; }
  .portal-links { position: absolute; display: none; flex-direction: column; align-items: stretch; left: 18px; right: 18px; top: 76px; padding: 18px; border-radius: 16px; background: var(--navy-2); box-shadow: var(--shadow); }
  .portal-links.open { display: flex; }
  .portal-links a, .portal-links button.link-button { width: 100%; text-align: left; }
  .page-hero-grid, .auth-wrap, .project-grid, .admin-layout { grid-template-columns: 1fr; }
  .auth-art { min-height: 430px; padding: 60px 40px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .portal-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .side-nav { grid-template-columns: repeat(4,1fr); }
  .side-nav a, .side-nav button { justify-content: center; text-align: center; }
  .order-layout { grid-template-columns: 1fr; }
  .order-summary, .admin-detail { position: static; max-height: none; }
  .template-choice-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 24px), var(--container)); }
  .portal-nav { min-height: 74px; }
  .portal-logo { width: 176px; }
  .page-hero { padding: 48px 0; }
  .page-hero p { font-size: 16px; }
  .auth-art { display: none; }
  .auth-panel { min-height: calc(100vh - 74px); }
  .auth-card { padding: 28px 22px; }
  .auth-card h1 { font-size: 36px; }
  .demo-login-grid, .field-grid, .field-grid.three, .package-choice-grid, .template-choice-grid, .proof-actions { grid-template-columns: 1fr; }
  .choice-card.bespoke-choice { grid-column: auto; }
  .page-section { padding: 50px 0; }
  .portal-shell { padding-top: 24px; }
  .side-nav { grid-template-columns: 1fr 1fr; }
  .content-header { display: block; }
  .content-header .button { margin-top: 16px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 112px; padding: 18px; }
  .metric-card strong { font-size: 34px; }
  .order-panel { padding: 22px 18px; }
  .stepper { gap: 3px; }
  .step-item { font-size: 8px; }
  .step-item::before { width: 26px; height: 26px; }
  .review-row { grid-template-columns: 1fr; gap: 3px; }
  .project-header-grid, .order-card { grid-template-columns: 1fr; }
  .project-total { text-align: left; }
  .filter-row { grid-template-columns: 1fr; }
  .portal-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .policy-card { padding: 26px 20px; }
  .policy-card h1 { font-size: 42px; }
  .message-compose { grid-template-columns: 1fr; }
}

/* Restored offer-ladder order choices */
.choice-group-heading {
  grid-column: 1 / -1;
  margin: 14px 0 -2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-family: "League Spartan", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.choice-group-heading:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.choice-card { min-height: 100%; }
.choice-card.recommended-choice { border-color: var(--teal); background: #f1fbfa; }
.choice-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--pink);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.choice-billing {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.choice-features {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #ece8e1;
  list-style: none;
}
.choice-features li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}
.choice-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-dark);
  font-weight: 900;
}
.choice-card.bespoke-choice .choice-billing,
.choice-card.bespoke-choice .choice-features li { color: #d6dae3; }
.choice-card.bespoke-choice .choice-features { border-top-color: rgba(255,255,255,.15); }
.choice-card.bespoke-choice .choice-features li::before { color: var(--yellow); }
.recommendation-choice {
  min-height: 260px;
  display: grid;
  align-content: center;
  text-align: center;
  border-style: dashed;
  background: #f8f5ef;
}
.template-recommendation-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 24px auto 4px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--yellow);
  font-size: 24px;
}
[data-brief-field][hidden] { display: none !important; }
@media (max-width: 700px) {
  .choice-badge { position: static; display: inline-block; margin: 8px 0 2px; }
}


/* League Spartan v2: customer, order and admin areas */
html, body, button, input, select, textarea, optgroup {
  font-family: var(--cks-font) !important;
  font-synthesis: none;
}
body *:not(svg):not(path) { font-family: var(--cks-font) !important; }
h1, h2, h3, h4, h5, h6,
.content-header h1, .auth-art h2, .metric-card strong, .empty-state h3,
.order-summary h3, .summary-total strong, .step-pane h2, .choice-card .choice-price,
.project-header-card h1, .project-total strong, .policy-card h1, .policy-card h2 {
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
}

/* Compact vertical spacing: public account, order, project and policy pages. */
.page-hero { padding-top: 52px; padding-bottom: 46px; }
.page-hero.compact { padding-top: 30px; padding-bottom: 30px; }
.page-section { padding-top: 52px; padding-bottom: 52px; }
.portal-shell { padding-top: 28px; padding-bottom: 56px; }
.policy-page { padding-top: 44px; padding-bottom: 64px; }
.portal-footer { padding-top: 36px; padding-bottom: 20px; }
.portal-footer-bottom { margin-top: 28px; }

@media (max-width: 650px) {
  .page-hero { padding-top: 34px; padding-bottom: 34px; }
  .page-hero.compact { padding-top: 24px; padding-bottom: 24px; }
  .page-section { padding-top: 38px; padding-bottom: 38px; }
  .portal-shell { padding-top: 20px; padding-bottom: 42px; }
  .policy-page { padding-top: 34px; padding-bottom: 48px; }
  .portal-footer { padding-top: 30px; padding-bottom: 18px; }
  .portal-footer-bottom { margin-top: 22px; }
}
