@font-face {
  font-family: Bricolage;
  src: url('/assets/bricolage-400.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Bricolage;
  src: url('/assets/bricolage-600.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Bricolage;
  src: url('/assets/bricolage-700.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f6f2eb;
  --paper: #fffdf9;
  --white: #fff;
  --ink: #171513;
  --muted: #625e59;
  --orange: #ff4f01;
  --accent-ink: #a93400;
  --peach: #fff0e6;
  --peach-line: #f1c9b4;
  --line: #dedbd6;
  --shadow: 0 2px 8px #2919070b, 0 15px 35px -30px #442e18a1;
  --radius: 18px;
  font: 16px/1.55 Bricolage, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; min-width: 280px; min-height: 100vh; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.04; font-weight: 700; letter-spacing: -.04em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.45rem, 2vw, 1.85rem); }
h3 { font-size: 1.2rem; letter-spacing: -.025em; }
p, small { overflow-wrap: anywhere; }
button, input, textarea, select { color: inherit; font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .2em; }
img, svg { display: block; }
button, summary { cursor: pointer; }
button:disabled, input:disabled, textarea:disabled, select:disabled { cursor: not-allowed; opacity: .62; }
:focus-visible { outline: 3px solid #a23700; outline-offset: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
[aria-busy="true"] { cursor: wait; }
::selection { background: #ffd1b8; color: #361900; }

.sr-only, .skip-link:not(:focus) { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 9; top: 8px; left: 8px; padding: 12px; background: var(--paper); }
.initial { min-height: 100svh; display: grid; place-content: center; grid-auto-flow: column; align-items: center; gap: 10px; color: var(--muted); }
.loading-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.muted { color: var(--muted); }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.eyebrow { color: var(--accent-ink); font-size: .73rem; line-height: 1.3; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; }
.footnote { color: var(--muted); font-size: .84rem; }
.stack, .panel-stack { display: grid; gap: 16px; }
.panel-stack { gap: 18px; min-width: 0; }
.stack > *, .panel-stack > * { min-width: 0; }
.wide { width: 100%; }

.button {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.25;
  text-align: center;
}
.button svg, .icon-button svg { flex: none; }
.button.primary { background: var(--ink); color: var(--white); }
.button.primary:hover { background: #382719; }
.button.secondary { border-color: var(--line); background: var(--white); }
.button.secondary:hover { border-color: #aa9f93; background: var(--paper); }
.button.subtle:hover, .icon-button:hover { background: var(--canvas); }
.button.compact { min-height: 40px; padding: 8px 12px; font-size: .85rem; }
.button.danger-text { color: #9d3516; }
.icon-button {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.icon-button.small { width: 34px; height: 34px; }
.button-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 1.35rem; font-weight: 700; line-height: .95; letter-spacing: -.065em; }
.brand img { border-radius: 50%; flex: none; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .69rem; font-weight: 600; letter-spacing: .035em; }
.square-icon, .row-icon, .metric-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--peach-line); border-radius: 12px; color: var(--accent-ink); background: var(--peach); }
.row-icon { width: 40px; height: 40px; flex: none; background: #f5f1eb; border-color: #eee6dc; color: #685748; }
.avatar { display: inline-grid; place-items: center; flex: none; inline-size: 35px; block-size: 35px; border-radius: 50%; background: var(--peach); color: var(--accent-ink); font-weight: 700; font-size: .83rem; }
.avatar-small { width: 26px; height: 26px; font-size: .64rem; }
.private-label { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: .8rem; font-weight: 600; }
.auth-layout { min-height: 100svh; background: radial-gradient(ellipse at 25% 10%, #ffdfcb 0%, transparent 52%), var(--canvas); }
.auth-head { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(20px, 5vw, 64px); }
.auth-center { display: grid; justify-items: center; align-items: start; padding: clamp(24px, 9vh, 120px) 18px 48px; }
.auth-card { display: grid; gap: 14px; width: min(100%, 460px); background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 20px; padding: clamp(22px, 5vw, 42px); box-shadow: 0 22px 70px -45px #4b2b15b3; }
.auth-card h1 { font-size: clamp(2rem, 6vw, 2.7rem); margin-top: 5px; }
.auth-card form { margin-top: 7px; }
.auth-note { font-size: .78rem; color: var(--muted); font-weight: 600; }

.field { display: grid; align-content: start; gap: 6px; min-width: 0; color: var(--ink); font-size: .88rem; font-weight: 600; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea, .search-input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cfc8be;
  border-radius: 9px;
  background: var(--white);
  padding: 9px 11px;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 400;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input[type="file"] { font-size: .87rem; }
.field input[type="file"]::file-selector-button { margin-right: 10px; padding: 4px 9px; background: var(--canvas); border: 1px solid var(--line); border-radius: 6px; font: inherit; cursor: pointer; }
.field ::placeholder, .search-input ::placeholder { color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checkbox { display: block; color: var(--ink); font-size: .92rem; line-height: 1.5; cursor: pointer; }
.checkbox input { accent-color: #a33608; inline-size: 18px; block-size: 18px; margin: 0 7px 0 0; vertical-align: -.2em; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 4px; }
.notice { padding: 10px 12px; color: #6a300e; background: var(--peach); border: 1px solid var(--peach-line); border-radius: 9px; font-size: .88rem; overflow-wrap: anywhere; }
.notice-error { color: #8d2719; background: #fff0ed; border-color: #f1bdb3; }
[data-notice]:empty { display: none; }
.dialog { width: min(100% - 30px, 500px); max-height: 88svh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); padding: clamp(17px, 4vw, 30px); box-shadow: 0 28px 80px #24180b44; }
.dialog-wide { width: min(100% - 30px, 690px); }
.dialog::backdrop { background: #24180b65; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }

.workspace { display: grid; min-height: 100svh; grid-template-columns: 226px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; align-self: start; height: 100svh; display: flex; flex-direction: column; gap: 45px; padding: 29px 18px 20px; background: var(--paper); border-right: 1px solid var(--line); }
.sidebar > .brand { margin-left: 9px; align-self: start; }
.main-nav { display: grid; gap: 4px; }
.main-nav a { display: flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; font-weight: 600; border: 1px solid transparent; border-radius: 9px; min-height: 43px; padding: 9px 10px; font-size: .92rem; }
.main-nav a:hover { background: var(--canvas); color: var(--ink); }
.main-nav .nav-current { color: var(--accent-ink); background: var(--peach); border-color: #f6d9c8; }
.sidebar-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.workspace-identity { display: flex; align-items: center; gap: 8px; min-width: 0; }
.workspace-identity strong, .workspace-identity small { display: block; line-height: 1.22; overflow-wrap: anywhere; }
.workspace-identity strong { font-size: .88rem; }
.workspace-identity small { font-size: .71rem; color: var(--muted); margin-top: 2px; }
.sidebar-footer .icon-button { border: 0; background: transparent; }
.sidebar-footer .icon-button:hover { background: var(--canvas); }
.workspace-main { padding: 0 clamp(24px, 5.2vw, 78px); min-width: 0; }
.dashboard, .editor { width: min(100%, 1300px); margin-inline: auto; padding: clamp(40px, 7vw, 92px) 0 64px; }
.dashboard-heading, .editor-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.dashboard-heading h1, .editor-heading h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: .96; margin: 9px 0 14px; }
.dashboard-heading .button { flex: none; margin-bottom: 2px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.metric { display: flex; align-items: center; gap: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: clamp(12px, 2vw, 20px); box-shadow: var(--shadow); }
.metric p { color: var(--muted); font-size: .84rem; }
.metric strong { font-size: 1.9rem; display: block; line-height: 1.05; letter-spacing: -.05em; }
.metric-icon { width: 37px; height: 37px; border-radius: 10px; flex: none; }
.table-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-top { padding: 19px 20px; display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
.panel-top h2 { font-size: 1.2rem; }
.table-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.table-filters .field > span { position: absolute; clip-path: inset(50%); overflow: hidden; inline-size: 1px; block-size: 1px; }
.table-filters .field select { font-size: .85rem; }
.search-input { display: flex; align-items: center; gap: 7px; width: auto; color: var(--muted); min-height: 44px; }
.search-input input { min-width: 0; width: min(125px, 100%); border: 0; padding: 0; background: none; color: var(--ink); font-size: .9rem; }
.proposals-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.proposals-table th, .proposals-table td { padding: 12px 15px; text-align: left; }
.proposals-table thead { background: #f7f3ec; color: var(--muted); font-size: .8rem; }
.proposals-table tbody tr { border-bottom: 1px solid var(--line); }
.proposals-table tbody tr:hover { background: #fff9f1; }
.proposals-table tbody td:last-child { text-align: right; }
.row-link { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.row-link strong { line-height: 1.2; overflow-wrap: anywhere; }
.row-link small { color: var(--muted); font-weight: 400; display: block; }
.row-actions { white-space: nowrap; }
.row-actions .icon-button { width: 34px; height: 34px; }
.row-actions .icon-button + .icon-button { margin-left: 5px; }
.owner { display: inline-flex; align-items: center; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 3px 8px; border-radius: 30px; font-size: .76rem; font-weight: 700; background: #f1ede8; color: #534d44; }
.pill > span { background: currentColor; inline-size: 5px; block-size: 5px; border-radius: 50%; }
.pill-discussion { background: #fff0e6; color: #9b3404; }
.pill-sent { background: #e9f1fb; color: #245183; }
.pill-won { background: #e9f5ea; color: #316638; }
.pill-lost { background: #faece8; color: #8e3c29; }
.empty { display: grid; justify-items: center; gap: 8px; text-align: center; min-height: 212px; padding: 29px 14px; align-content: center; border-top: 1px solid var(--line); }
.empty h3 { margin-top: 5px; }
.empty p { color: var(--muted); font-size: .93rem; }
.empty button { margin-top: 6px; }
.table-note { color: var(--muted); padding: 12px 20px; font-size: .82rem; }
.table-note:empty { display: none; }

.editor { padding-top: clamp(28px, 4vw, 54px); }
.back-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .87rem; margin-bottom: 20px; }
.back-link:hover { color: var(--accent-ink); }
.editor-heading { margin-bottom: 22px; }
.editor-heading h1 { font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1; }
.editor-heading > div:first-child { min-width: 0; }
.editor-actions { display: flex; flex: none; flex-wrap: wrap; justify-content: end; align-items: center; gap: 8px; }
.editor-heading [role=status] { min-height: 1.3em; font-size: .9rem; }
.editor-tabs { display: flex; overflow: auto; align-items: center; border-bottom: 1px solid var(--line); gap: 6px; margin-bottom: 22px; }
.editor-tabs button { background: none; flex: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px 9px; color: var(--muted); min-height: 44px; font-size: .9rem; font-weight: 600; }
.editor-tabs button:focus-visible { outline-offset: -3px; }
.editor-tabs .tab-current { color: var(--accent-ink); border-bottom-color: var(--orange); font-weight: 700; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 18px; }
.editor-panel { min-width: 0; display: grid; align-content: start; gap: 16px; padding: clamp(14px, 2.1vw, 24px); background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.editor-panel > .button { justify-self: start; }
.panel-heading { display: grid; gap: 8px; }
.panel-heading h2 { font-size: 1.35rem; }
.panel-heading p { color: var(--muted); font-size: .91rem; }
.panel-heading-action { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; }
.panel-heading-action p { margin-top: 6px; }
.assistant-panel { background: #fff6eb; border-color: #efd7c7; }
.assistant-panel .square-icon { margin-bottom: 3px; }
.section-editor { padding: 13px; background: #faf7f0; border: 1px solid var(--line); border-radius: 12px; }
.section-editor-head { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.audit-list { display: grid; margin: 0; padding: 0; list-style: none; }
.audit-list li { padding: 9px 0; border-top: 1px solid var(--line); }
.audit-list small { display: block; color: var(--muted); }
.section-format:empty { display: none; }
.section-editor-caption { font-size: 1.02rem; font-weight: 700; overflow-wrap: anywhere; }
.illustration-editor { display: grid; gap: 10px; }
.illustration-editor > .button { justify-self: start; }
.illustration-preview { display: block; width: auto; max-width: 100%; max-height: 200px; border-radius: 8px; }
.diff-row .illustration-preview { margin-top: 6px; max-height: 135px; }
.section-editor-head .button-group { flex-wrap: nowrap; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.inline-form [data-notice] { grid-column: 1 / -1; }
.lookup-results { display: grid; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.lookup-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 11px 14px; }
.lookup-row + .lookup-row { border-top: 1px solid var(--line); }
.lookup-row:hover { background: var(--peach); }
.lookup-row > span:last-child { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-ink); font-size: .84rem; font-weight: 700; }
.lookup-row strong, .lookup-row small { display: block; }
.lookup-row small { color: var(--muted); }
.logo-line, .video-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.prospect-logo { width: 56px; height: 56px; object-fit: contain; background: var(--white); padding: 4px; border: 1px solid var(--line); border-radius: 9px; }
.price-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); gap: 12px; padding: 14px; background: var(--peach); border-radius: 10px; }
.price-preview span, .price-preview strong { display: block; }
.price-preview span { color: var(--muted); font-size: .85rem; }
.price-preview strong { letter-spacing: -.035em; font-size: 1.15rem; }
.fee-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.fee-row .icon-button { height: 44px; }
.resource-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.resource-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; padding: 9px 11px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.resource-list li > * { min-width: 0; }
.resource-list strong, .resource-list small { display: block; overflow-wrap: anywhere; }
.resource-list small { color: var(--muted); }
.resource-link { display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; text-decoration: none; }
.resource-link:hover strong { text-decoration: underline; }
.diff { display: grid; gap: 10px; }
.diff-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.diff-row > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.diff-row > div:last-child { background: #f5f6e9; }
.diff-row strong { display: block; margin-top: 5px; }
.diff-row small { color: var(--muted); font-size: .77rem; }
.diff-row p { font-size: .85rem; }
.publication { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.publication-title, .share-link, .history-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.publication-title p { margin-top: 4px; font-size: .84rem; }
.share-link { flex-wrap: wrap; padding: 11px 0; }
.share-link a { color: var(--accent-ink); overflow-wrap: anywhere; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li { border-top: 1px solid var(--line); padding: 7px 0; }
.history-list small { display: block; color: var(--muted); }
.activity-totals { display: grid; padding: 0 16px; }
.activity-totals > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); }
.activity-totals dd { font-weight: 700; }
.comment { padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.comment header { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.comment header :is(span,time) { color: var(--muted); font-size: .78rem; }

.client-shell { min-height: 100svh; }
.client-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 65px; padding: 8px max(18px, calc((100% - 1200px) / 2)); background: var(--paper); border-bottom: 1px solid var(--line); }
.client-main, .client-footer { width: min(100% - 40px, 1200px); margin-inline: auto; }
.client-main { padding: clamp(20px, 4vw, 48px) 0; }
.preview-banner { margin-bottom: 12px; padding: 8px 12px; background: var(--peach); border: 1px solid var(--peach-line); border-radius: 10px; color: #713012; font-size: .88rem; }
.client-hero { position: relative; overflow: hidden; display: grid; gap: clamp(18px, 3vw, 35px); padding: clamp(25px, 6vw, 76px); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: clamp(16px, 2.5vw, 25px); background: radial-gradient(ellipse at 94% 8%, #ffe6d4, transparent 58%), var(--paper); }
.client-hero h1 { max-width: 900px; font-size: clamp(2.5rem, 6.4vw, 6.2rem); line-height: .96; letter-spacing: -.052em; }
.hero-company { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.hero-company strong { color: var(--ink); }
.hero-company .prospect-logo { width: 42px; height: 42px; }
.hero-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--muted); }
.hero-footer span { margin: 0 5px; }
.client-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(20px, 4vw, 50px); margin-top: clamp(20px, 4vw, 48px); }
.client-outline { align-self: start; position: sticky; top: 95px; padding-left: 6px; }
.client-outline nav { display: grid; gap: 4px; max-height: calc(100svh - 110px); overflow: auto; }
.client-outline p { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; margin-bottom: 5px; }
.client-outline a { font-size: .9rem; color: var(--muted); text-decoration: none; border-left: 1px solid var(--line); padding: 5px 11px; overflow-wrap: anywhere; }
.client-outline a:hover { color: var(--accent-ink); border-left-color: var(--orange); }
.client-content { display: grid; gap: 17px; min-width: 0; }
.client-card { display: grid; gap: 13px; align-content: start; min-width: 0; padding: clamp(19px, 4vw, 41px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.proposal-illustration { display: grid; gap: 10px; justify-items: start; margin: 0; min-width: 0; }
.proposal-illustration img { display: block; width: auto; max-width: 100%; height: auto; max-height: 650px; object-fit: contain; border-radius: 10px; }
.proposal-illustration figcaption { color: var(--muted); font-size: .92rem; }
.client-card h2 { font-size: clamp(1.65rem, 3.4vw, 2.65rem); }
.section-body { max-width: 76ch; }
.section-flow { display: grid; gap: 0; list-style: none; margin: 3px 0; padding: 0; }
.section-flow li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 12px; padding-bottom: 13px; }
.section-flow li:not(:last-child)::before { content: ''; position: absolute; top: 28px; bottom: -3px; left: 15px; width: 1px; background: var(--peach-line); }
.section-flow li:last-child { padding-bottom: 0; }
.section-flow li > div { min-width: 0; padding: 5px 0; overflow-wrap: anywhere; }
.section-flow li p { margin-top: 3px; color: var(--muted); }
.flow-index { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--peach-line); border-radius: 50%; background: var(--peach); color: var(--accent-ink); font-size: .8rem; font-weight: 700; }
.section-steps { margin: 0; padding-left: 1.4em; }
.section-steps li { margin: 0 0 8px; padding-left: 5px; }
.section-steps li::marker { color: var(--accent-ink); font-weight: 700; }
.faq details, details.faq { border-top: 1px solid var(--line); padding: 9px 0; }
.faq summary { font-weight: 700; }
.faq p { margin: 6px 0 0 16px; }
.section-table-wrap { overflow: auto; }
.section-table { width: 100%; border-collapse: collapse; }
.section-table th { background: var(--ink); color: var(--white); }
.section-table th, .section-table td { min-width: 7rem; text-align: left; padding: 8px 10px; border: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.comment-disclosure { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 5px; }
.comment-disclosure summary { display: flex; align-items: center; gap: 7px; width: fit-content; min-height: 38px; font-size: .88rem; font-weight: 700; color: var(--accent-ink); }
.comment-disclosure summary::marker, .comment-disclosure summary::-webkit-details-marker { display: none; }
.comment-list, .comment-form { display: grid; gap: 10px; margin-top: 10px; }
.comment-form button { justify-self: start; }
.price-card, .signature-card { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.price-card dt, .signature-card p { color: #e8dbd0; }
.pricing-items, .pricing-totals { display: grid; gap: 8px; }
.pricing-items > div, .pricing-totals > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.pricing-items dd, .pricing-totals dd { font-weight: 700; }
.pricing-totals { padding-top: 10px; border-top: 1px solid #ffffff38; }
.grand-total dd { font-size: clamp(1.55rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -.06em; color: #ffb893; }
.pricing-extra { display: grid; gap: 7px; padding-top: 13px; border-top: 1px solid #ffffff38; }
.pricing-extra p { color: #e8dbd0; font-size: .88rem; }
.vat-note { color: #e8dbd0; font-size: .84rem; }
.roi-card { background: var(--peach); border-color: var(--peach-line); }
.roi-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 5px; }
.roi-metrics > div { min-width: 0; padding: 8px 0; border-top: 2px solid var(--orange); }
.roi-metrics dt { font-size: .82rem; color: var(--muted); }
.roi-metrics dd { font-size: clamp(1rem, 3vw, 1.65rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 700; overflow-wrap: anywhere; }
.roi-conclusion { margin-top: 8px; }
.video-card video { display: block; width: 100%; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: contain; background: var(--ink); }
.chapters { display: grid; gap: 8px; }
.signature-card :is(.button,a) { justify-self: start; }
.signature-card .primary { background: #ffae83; color: #291002; }
.signature-card .primary:hover { background: #ffcaad; }
.signature-card .secondary { color: var(--ink); }
.signed-card { background: #ecf5ec; color: #234b29; border-color: #bed8c0; }
.signed-card p { color: #315c37; }
.signed-card .primary { background: #234b29; color: var(--white); }
.signed-card .primary:hover { background: #2f6338; color: var(--white); }
.client-footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: start; gap: 16px; border-top: 1px solid var(--line); padding: 24px 0 40px; }
.client-footer .brand { font-size: 1.2rem; }
.client-footer .brand img { width: 29px; height: 29px; }
.privacy { max-width: 530px; color: var(--muted); font-size: .86rem; }
.privacy summary { text-decoration: underline; text-underline-offset: .17em; font-weight: 600; }
.privacy > div { display: grid; gap: 9px; margin-top: 8px; }

@media (max-width: 1080px) {
  .workspace { grid-template-columns: 181px minmax(0, 1fr); }
  .workspace-main { padding-inline: 23px; }
  .sidebar { padding-inline: 12px; }
  .table-filters .field select { max-width: 135px; }
  .proposals-table th, .proposals-table td { padding-inline: 10px; }
  .client-grid { grid-template-columns: 160px minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics { gap: 8px; }
  .metric { gap: 7px; }
  .metric-icon { width: 30px; height: 30px; }
  .client-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .client-outline { position: static; padding: 0; }
  .client-outline nav { display: flex; flex-wrap: wrap; gap: 6px; max-height: none; }
  .client-outline p { flex-basis: 100%; margin-bottom: 3px; }
  .client-outline a { padding: 5px 10px; border: 1px solid var(--line); border-radius: 40px; background: var(--paper); }
}

@media (max-width: 700px) {
  .workspace { display: block; }
  .sidebar { height: auto; position: static; padding: 12px 16px; flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar > .brand { align-self: center; margin: 0; }
  .main-nav { display: flex; flex-wrap: wrap; gap: 3px; order: 2; width: 100%; }
  .main-nav a { min-height: 38px; padding: 6px 8px; }
  .sidebar-footer { margin-top: 0; padding-top: 0; border: 0; }
  .workspace-identity small { display: none; }
  .workspace-main { padding-inline: 14px; }
  .dashboard, .editor { padding-top: 28px; }
  .dashboard-heading, .editor-heading { align-items: start; flex-wrap: wrap; gap: 12px; }
  .dashboard-heading h1 { margin: 5px 0 9px; }
  .dashboard-heading { margin-bottom: 15px; }
  .panel-top { padding: 13px 12px; }
  .table-filters { width: 100%; }
  .table-filters .search-input { flex-basis: 100%; }
  .table-filters .search-input input { width: 100%; }
  .proposals-table, .proposals-table tbody { display: block; }
  .proposals-table thead { position: absolute; clip-path: inset(50%); inline-size: 1px; block-size: 1px; overflow: hidden; }
  .proposals-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; padding: 11px 12px; }
  .proposals-table th, .proposals-table td { display: flex; gap: 5px; align-items: center; padding: 0; min-width: 0; }
  .proposals-table tbody th { grid-column: 1 / -1; }
  .proposals-table td[data-column] { font-size: .84rem; }
  .proposals-table .row-actions { justify-content: end; }
  .table-note { padding-inline: 12px; }
}

@media (max-width: 440px) {
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metric { padding: 9px 11px; }
  .metric > div { display: flex; justify-content: space-between; align-items: center; flex: 1; gap: 8px; }
  .metric strong { font-size: 1.45rem; }
  .fee-row { grid-template-columns: minmax(0, 1fr) auto; }
  .fee-row .field:first-child { grid-column: 1 / -1; }
  .fields, .inline-form, .diff-row { grid-template-columns: minmax(0, 1fr); }
  .client-main, .client-footer { width: calc(100% - 24px); }
  .client-header { padding-inline: 12px; }
  .client-header .brand img { width: 30px; height: 30px; }
  .client-header .brand { font-size: 1.15rem; gap: 5px; }
  .client-header .private-label { font-size: .72rem; }
  .client-hero { padding-inline: 18px; }
  .client-hero h1 { font-size: clamp(2.05rem, 11vw, 3.6rem); }
  .dialog-head h2 { font-size: 1.35rem; }
}
