/* Studio Monarch Client Suite */
:root {
  --ink-2: #3A332E;
  --burgundy: #3D1A1A;
  --burgundy-2: #52241F;
  --burgundy-3: #6B332C;
  --forest: #1E2B1F;
  --forest-2: #2C3B2D;
  --gold: #C9A96E;
  --gold-deep: #9C7C43;
  --gold-soft: #EBDDBE;
  --cream: #F7EFE6;
  --paper: #FFFFFF;
  --ivory: #FFFFFF;
  --brown: #4A2E1A;
  --ink: #161311;
  --muted: #6F6760;
  --line: #ECE7E1;
  --line-2: #DDD6CD;
  --ok: #3F6B4A;
  --ok-bg: #E6EEE4;
  --warn: #9A6A22;
  --warn-bg: #F5EAD3;
  --bad: #963A33;
  --bad-bg: #F4E1DD;
  --info: #3E5566;
  --info-bg: #E3E9EC;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --caps: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(22, 19, 17, .04), 0 10px 30px rgba(22, 19, 17, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--burgundy-3); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -.03em; }
h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.045em; }
h2 { font-size: 28px; }
h3 { font-size: 20px; letter-spacing: -.02em; }
h4 { font-size: 16px; }
.accent-serif, em.accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--burgundy); }
p { margin: 0 0 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-soft); }

.eyebrow {
  font-family: var(--caps); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.serif { font-family: var(--serif); font-style: italic; }
.big-number { font-size: 38px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; }
.hide { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--burgundy); background: var(--burgundy); color: #ffffff;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  padding: 0 20px; border-radius: 999px; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .12s;
  text-decoration: none !important; white-space: nowrap; min-height: 44px;
}
.btn:active { transform: scale(.98); }
.btn:hover { background: var(--burgundy-2); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #D3B57F; }
.btn.line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.line:hover { border-color: var(--burgundy); background: var(--ivory); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--burgundy-3); padding-left: 8px; padding-right: 8px; }
.btn.ghost:hover { background: rgba(201, 169, 110, .12); }
.btn.danger { background: transparent; color: var(--bad); border-color: #DDB7B1; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { padding: 0 14px; font-size: 13px; min-height: 36px; }
.btn.block { width: 100%; }
.btn svg { width: 15px; height: 15px; }

/* ---------- Forms ---------- */
label.field { display: block; }
label.field > span, .label {
  display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink-2, #3A332E); margin-bottom: 6px;
}
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=url], input[type=password], input[type=search], select, textarea {
  width: 100%; background: var(--ivory); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; font-size: 15px; outline: none;
  transition: border-color .15s, box-shadow .15s; min-height: 44px; appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237B685A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(61, 26, 26, .1); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14.5px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--burgundy); flex: none; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.form-error { color: var(--bad); font-size: 14px; min-height: 0; }
.money-input { position: relative; }
.money-input::before { content: '$'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money-input input { padding-left: 24px; }

/* ---------- Cards ---------- */
.card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.card.flat { box-shadow: none; }
.card.tight { padding: 16px 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h3 { font-size: 22px; }
.card + .card { margin-top: 18px; }
.empty { padding: 30px 12px; text-align: center; color: var(--muted); font-size: 15px; }
.empty .serif { display: block; font-size: 22px; color: var(--ink-2, #3A332E); margin-bottom: 4px; }

/* ---------- Pills and status ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: 99px; background: var(--cream); color: var(--ink); white-space: nowrap; border: 1px solid transparent;
}
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.gold { background: var(--gold-soft); color: var(--burgundy); }
.pill.outline { background: transparent; border-color: var(--line-2); color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.list { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.list th {
  text-align: left; font-family: var(--sans); font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.list td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: rgba(242, 234, 216, .55); }
table.list .strong { font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.3; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; padding: 12px 14px; cursor: pointer; font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button.on { color: var(--ink); border-bottom-color: var(--burgundy); }
.tabs .count { font-family: var(--sans); letter-spacing: 0; margin-left: 6px; font-size: 12px; opacity: .8; }

/* ---------- Admin shell ---------- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--burgundy) 250px, var(--paper) 250px); }
.side {
  background: var(--burgundy); color: var(--cream); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 28px 18px 18px; overflow-y: auto;
  background-image: radial-gradient(120% 60% at 0% 0%, rgba(201, 169, 110, .10), transparent 60%);
}
.brand { padding: 0 10px 26px; }
.brand .word { font-family: var(--caps); letter-spacing: .3em; font-size: 12.5px; color: var(--gold); display: block; white-space: nowrap; }
.brand .sub { font-family: var(--serif); font-style: italic; font-size: 17px; color: rgba(242, 234, 216, .75); display: block; margin-top: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: rgba(242, 234, 216, .82); border-radius: 3px; margin-bottom: 2px;
  font-size: 14.5px; letter-spacing: .01em; text-decoration: none; border-left: 2px solid transparent;
}
.nav a:hover { background: rgba(255, 255, 255, .05); color: var(--cream); text-decoration: none; }
.nav a.on { background: rgba(201, 169, 110, .13); color: var(--cream); border-left-color: var(--gold); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav .badge { margin-left: auto; background: var(--gold); color: var(--burgundy); font-size: 11px; border-radius: 99px; padding: 1px 7px; font-weight: 500; }
.side-foot { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(242, 234, 216, .12); }
.side-foot a { color: rgba(242, 234, 216, .6); font-size: 13px; }
.main { padding: 34px 44px 80px; max-width: 1280px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head .eyebrow { margin-bottom: 8px; display: block; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.topbar { display: none; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.layout-2 > div > .card + .card { margin-top: 18px; }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.tile { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.tile .eyebrow { display: block; margin-bottom: 12px; }
.tile .sub { color: var(--muted); font-size: 13px; margin-top: 8px; }
.tile.dark { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.tile.dark .eyebrow { color: var(--gold); }
.tile.dark .big-number { color: var(--cream); }
.tile.dark .sub { color: rgba(242, 234, 216, .65); }

/* Feed and lists */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed .when { color: var(--muted); font-size: 12px; white-space: nowrap; margin-left: auto; padding-left: 10px; }
.feed .mark { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex: none; }
.feed .mark.payment { background: var(--ok); }
.feed .mark.inquiry { background: var(--burgundy-3); }
.feed .mark.contract { background: var(--info); }
.attn { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.attn:last-child { border-bottom: 0; }
.attn .what { flex: 1; min-width: 0; }
.attn .what b { font-weight: 500; }
.attn .what .small { display: block; }

/* Bar chart */
.bars { display: flex; align-items: flex-end; gap: 12px; height: 150px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .fill { width: 100%; max-width: 44px; background: var(--gold-soft); border-radius: 2px 2px 0 0; min-height: 2px; position: relative; }
.bars .bar.now .fill { background: var(--gold); }
.bars .v { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars .l { font-family: var(--caps); font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }

/* Pipeline board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
.col { background: rgba(242, 234, 216, .55); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 60vh; }
.col-head { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.col-head .name { font-family: var(--caps); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--burgundy); }
.col-head .meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.col-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; flex: 1; transition: background .15s; }
.col.over .col-body { background: rgba(201, 169, 110, .16); }
.pcard {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 3px; padding: 12px 13px; cursor: grab; box-shadow: 0 1px 2px rgba(61, 26, 26, .05);
  transition: box-shadow .15s, transform .15s; user-select: none; -webkit-user-select: none;
}
.pcard:hover { box-shadow: 0 6px 18px rgba(61, 26, 26, .09); }
.pcard.dragging { opacity: .5; }
.pcard .who { font-family: var(--serif); font-size: 19px; color: var(--burgundy); line-height: 1.15; }
.pcard .what { font-size: 13px; color: var(--muted); margin-top: 3px; }
.pcard .foot { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12.5px; }
.pcard .val { font-variant-numeric: tabular-nums; color: var(--brown); }
.pcard .move { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 4px; font-size: 16px; line-height: 1; }

/* Line items editor */
.items .item { display: grid; grid-template-columns: minmax(0, 1fr) 80px 140px 36px; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.items .item textarea { min-height: 58px; font-size: 13.5px; margin-top: 6px; resize: vertical; overflow: hidden; }
.items .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; padding: 10px 6px; }
.items .x:hover { color: var(--bad); }
.summary { margin-left: auto; max-width: 340px; font-variant-numeric: tabular-nums; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .line.total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px; font-size: 19px; font-weight: 800; }

/* Chips for merge fields */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: var(--ivory); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--ink); }

/* Timeline of proposal steps */
.steps { display: flex; gap: 0; margin: 6px 0 4px; }
.steps .s { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--muted); padding-top: 22px; }
.steps .s::before { content: ''; position: absolute; top: 6px; left: 50%; width: 11px; height: 11px; margin-left: -6px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--line-2); z-index: 1; }
.steps .s::after { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 1px; background: var(--line-2); }
.steps .s:first-child::after { display: none; }
.steps .s.done { color: var(--burgundy); }
.steps .s.done::before { background: var(--gold); border-color: var(--gold); }
.steps .s.done::after { background: var(--gold); }

/* Modal and toast */
.overlay { position: fixed; inset: 0; background: rgba(42, 26, 20, .42); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; backdrop-filter: blur(2px); }
.modal { background: var(--ivory); border-radius: 26px; width: 100%; max-width: 560px; box-shadow: 0 30px 80px rgba(22, 19, 17, .24); padding: 28px 30px; }
.modal.wide { max-width: 760px; }
.modal h2 { margin-bottom: 4px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transition: all .25s; z-index: 80; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: var(--bad); }
.linkbox { display: flex; gap: 8px; }
.linkbox input { font-size: 13px; color: var(--muted); }
.notice { background: var(--cream); border: 0; border-radius: 14px; padding: 14px 16px; font-size: 14px; }
.notice.gold { background: #FBF4E4; border-color: var(--gold-soft); }
.notice b { font-weight: 500; }
code, .code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; background: var(--cream); padding: 2px 6px; border-radius: 3px; word-break: break-all; }
pre.code { display: block; padding: 12px 14px; white-space: pre-wrap; margin: 0; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--burgundy); background-image: radial-gradient(90% 60% at 20% 0%, rgba(201, 169, 110, .16), transparent 60%); }
.login { width: 100%; max-width: 400px; text-align: center; color: var(--cream); }
.login .word { font-family: var(--caps); letter-spacing: .38em; color: var(--gold); font-size: 16px; }
.login h1 { color: var(--cream); font-style: italic; font-weight: 400; font-size: 38px; margin: 12px 0 30px; }
.login input { background: rgba(255, 253, 248, .96); text-align: center; }
.login .form-error { color: #F0C3BA; margin-top: 10px; }

/* ---------- Client pages ---------- */
.client-body { background: #ffffff; min-height: 100vh; }
.client-head { background: #ffffff; color: var(--ink); padding: 20px 28px; border-bottom: 1px solid var(--line); }
.client-head .word { font-family: var(--sans); font-weight: 800; letter-spacing: .16em; color: var(--ink); font-size: 13px; }
.client-wrap { max-width: 780px; margin: 0 auto; padding: 36px 20px 70px; }
.client-hero { text-align: center; margin-bottom: 30px; }
.client-hero h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 800; letter-spacing: -.045em; }
.client-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--burgundy); }
.client-hero p { color: var(--muted); max-width: 540px; margin: 12px auto 0; }
.paper { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; }
.paper + .paper { margin-top: 20px; }
.section-title { font-family: var(--sans); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.stepper { display: flex; justify-content: center; gap: 0; margin: 0 auto 28px; max-width: 520px; }
.stepper .s { flex: 1; text-align: center; font-family: var(--sans); font-weight: 600; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); position: relative; padding-top: 30px; }
.stepper .s .n { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ivory); display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: 0; z-index: 1; }
.stepper .s::after { content: ''; position: absolute; top: 12px; left: -50%; width: 100%; height: 1px; background: var(--line-2); }
.stepper .s:first-child::after { display: none; }
.stepper .s.on { color: var(--burgundy); }
.stepper .s.on .n { border-color: var(--burgundy); background: var(--burgundy); color: var(--cream); }
.stepper .s.done { color: var(--gold-deep); }
.stepper .s.done .n { background: var(--gold); border-color: var(--gold); color: var(--burgundy); }
.stepper .s.done::after, .stepper .s.on::after { background: var(--gold); }
.lines { width: 100%; border-collapse: collapse; }
.lines td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines tr:last-child td { border-bottom: 0; }
.lines .desc { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: -.01em; }
.lines .det { color: var(--muted); font-size: 14px; margin-top: 4px; }
.lines .amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 16px; }
.totals { margin-top: 18px; margin-left: auto; max-width: 320px; font-variant-numeric: tabular-nums; }
.totals .line { display: flex; justify-content: space-between; padding: 5px 0; }
.totals .line.total { font-size: 24px; font-weight: 800; letter-spacing: -.03em; border-top: 2px solid var(--ink); padding-top: 12px; margin-top: 8px; }
.contract-text { font-size: 15.5px; line-height: 1.7; color: var(--ink-2, #3A332E); max-height: 460px; overflow-y: auto; padding: 24px 26px; border: 1px solid var(--line); background: #fff; border-radius: 16px; }
.contract-text.full { max-height: none; }
.contract-text h3 { font-size: 21px; margin: 22px 0 8px; }
.contract-text h4 { font-size: 16px; margin: 16px 0 6px; }
.contract-text p { margin: 0 0 12px; }
.contract-text ul { margin: 0 0 12px; padding-left: 22px; }
.sigpad { border: 1px dashed var(--line-2); border-radius: 16px; background: #fff; position: relative; touch-action: none; height: 170px; }
.sigpad canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.sigpad .hint { position: absolute; left: 18px; bottom: 12px; font-size: 12px; color: var(--muted); pointer-events: none; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sigpad .line { position: absolute; left: 16px; right: 16px; bottom: 36px; border-bottom: 1px solid var(--line-2); pointer-events: none; }
.signed-block { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.signed-block .sig { border-bottom: 1px solid var(--line-2); min-height: 70px; display: flex; align-items: flex-end; font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--ink); padding-bottom: 4px; }
.signed-block .sig img { max-height: 70px; }
.signed-block .who { font-size: 13px; color: var(--muted); margin-top: 6px; }
.audit { font-size: 12px; color: var(--muted); margin-top: 18px; line-height: 1.6; word-break: break-word; }
.big-cta { text-align: center; padding: 10px 0; }
.big-cta .amount { font-size: 54px; font-weight: 800; letter-spacing: -.045em; color: var(--ink); line-height: 1; margin: 8px 0 18px; }
.ok-mark { width: 60px; height: 60px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; margin: 0 auto 16px; }
.ok-mark svg { width: 26px; height: 26px; }
.track { display: flex; margin: 14px 0 6px; }
.track .s { flex: 1; position: relative; padding-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
.track .s::before { content: ''; position: absolute; top: 4px; left: 50%; margin-left: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--line-2); z-index: 1; }
.track .s::after { content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 1px; background: var(--line-2); }
.track .s:first-child::after { display: none; }
.track .s.done { color: var(--burgundy); }
.track .s.done::before { background: var(--gold); border-color: var(--gold); }
.track .s.done::after { background: var(--gold); }
.track .s.now::before { background: var(--burgundy); border-color: var(--burgundy); box-shadow: 0 0 0 4px rgba(61, 26, 26, .12); }
.client-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 34px; }
.client-foot .word { font-family: var(--sans); font-weight: 800; letter-spacing: .16em; color: var(--ink); font-size: 11.5px; display: block; margin-bottom: 6px; }
.action-card { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.action-card:last-child { border-bottom: 0; }
.action-card .t { flex: 1; min-width: 0; }
.action-card .t b { font-size: 17px; font-weight: 700; color: var(--ink); display: block; line-height: 1.3; letter-spacing: -.01em; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.file { display: block; border: 1px solid var(--line); padding: 16px; border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none !important; }
.file:hover { border-color: var(--gold); }
.file .eyebrow { display: block; margin-bottom: 6px; }
.file .serif { font-size: 19px; }

/* ---------- Widgets for Wix ---------- */
.widget-body { background: transparent; }
.widget-body.bg-cream { background: #F4EEE3; }
.widget-body.bg-white { background: #FFFFFF; }
.widget-body.bg-dark { background: var(--burgundy); color: var(--cream); }
.widget-body.bg-forest { background: var(--forest); color: var(--cream); }
.widget { max-width: 720px; margin: 0 auto; padding: 22px 18px; }
.widget h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 6px; }
.widget .intro { color: var(--muted); margin-bottom: 20px; }
.bg-dark .widget h2, .bg-forest .widget h2 { color: var(--cream); }
.bg-dark .widget .intro, .bg-forest .widget .intro { color: rgba(242, 234, 216, .75); }
.bg-dark label.field > span, .bg-forest label.field > span { color: rgba(242, 234, 216, .7); }
.bg-dark .btn, .bg-forest .btn { background: var(--gold); border-color: var(--gold); color: var(--burgundy); }
.bg-dark .muted, .bg-forest .muted { color: rgba(242, 234, 216, .72); }
.bg-dark .eyebrow, .bg-forest .eyebrow { color: var(--gold); }
.bg-dark .form-error, .bg-forest .form-error { color: #F0C3BA; }
.bg-dark a, .bg-forest a { color: var(--gold-soft); }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.day { border: 1px solid var(--line-2); background: var(--ivory); border-radius: 14px; padding: 10px 6px; text-align: center; cursor: pointer; color: var(--ink); }
.day .dw { font-family: var(--sans); font-weight: 600; font-size: 10.5px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.day .dn { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.day .dm { font-size: 11.5px; color: var(--muted); }
.day.on { border-color: var(--burgundy); background: var(--burgundy); }
.day.on .dw, .day.on .dm { color: rgba(242, 234, 216, .75); }
.day.on .dn { color: #fff; }
.day.off { opacity: .38; cursor: default; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 14px; }
.time { border: 1px solid var(--line-2); background: var(--ivory); border-radius: 999px; padding: 11px 6px; text-align: center; cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.time:hover { border-color: var(--ink); }
.time.on { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.types { display: grid; gap: 10px; }
.type { border: 1px solid var(--line-2); background: var(--ivory); border-radius: 16px; padding: 16px 18px; cursor: pointer; text-align: left; width: 100%; color: var(--ink); }
.type:hover { border-color: var(--ink); }
.type b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }

/* Two ways in: book a call, or pay for something small outright. */
.wtabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line-2); margin-bottom: 20px; }
.wtabs button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 10px 12px; font-family: var(--caps); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.wtabs button.on { background: var(--burgundy); color: var(--cream); }
.bg-dark .wtabs, .bg-forest .wtabs { background: rgba(255,255,255,.08); border-color: rgba(242,234,216,.2); }
.bg-dark .wtabs button, .bg-forest .wtabs button { color: rgba(242,234,216,.7); }
.bg-dark .wtabs button.on, .bg-forest .wtabs button.on { background: var(--gold); color: var(--burgundy); }

.wgroup + .wgroup { margin-top: 26px; }
.wgroup > h3 { font-family: var(--caps); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 10px; }
.bg-dark .wgroup > h3, .bg-forest .wgroup > h3 { color: var(--gold); }
.wsvcs { display: grid; gap: 10px; }
.wsvc { border: 1px solid var(--line-2); background: var(--ivory); border-radius: 16px; padding: 16px 18px; display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.wsvc .meat { flex: 1 1 240px; min-width: 0; }
.wsvc b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.bg-dark .wsvc b, .bg-forest .wsvc b { color: var(--cream); }
.wsvc p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 5px 0 0; }
.wsvc .tag { display: inline-block; font-family: var(--caps); font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); background: var(--gold-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 7px; }
.wsvc .buy { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wsvc .amt { font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1; }
.bg-dark .wsvc .amt, .bg-forest .wsvc .amt { color: var(--cream); }
.wsvc .per { font-size: 11.5px; color: var(--muted); }
.bg-dark .wsvc, .bg-forest .wsvc { background: rgba(255,255,255,.06); border-color: rgba(242,234,216,.18); }
@media (max-width: 520px) {
  .wsvc .buy { text-align: left; align-items: flex-start; width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Print ---------- */
@media print {
  body, .client-body { background: #fff !important; }
  .no-print, .client-head, .side, .topbar, .btn { display: none !important; }
  .paper { box-shadow: none; border: 0; padding: 0; }
  .contract-text { max-height: none; border: 0; padding: 0; }
  .client-wrap { padding: 0; }
}

/* ---------- Small screens ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: var(--paper); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 40; transform: translateX(-100%); transition: transform .25s; }
  .shell.open .side { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .25); }
  .shell.open::after { content: ''; position: fixed; inset: 0; background: rgba(42, 26, 20, .35); z-index: 30; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; background: var(--burgundy); color: var(--cream);
    padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  }
  .topbar .word { font-family: var(--caps); letter-spacing: .3em; color: var(--gold); font-size: 12px; }
  .topbar button { background: none; border: 0; color: var(--cream); padding: 6px; cursor: pointer; }
  .topbar svg { width: 24px; height: 24px; }
  .main { padding: 22px 16px 70px; }
  h1 { font-size: 32px; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .items .item { grid-template-columns: minmax(0, 1fr) 64px 110px 30px; gap: 8px; }
  .paper { padding: 24px 20px; }
  .contract-text { padding: 16px 14px; font-size: 17px; }
  .client-hero h1 { font-size: 34px; }
  .signed-block { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .items .item { grid-template-columns: minmax(0, 1fr) 90px 30px; }
  .items .item .qty { display: none; }
  .page-head .actions { width: 100%; }
}
