/* Layout: the hub as Lizzie and Maria see it, under a dark prototype bar. Light only, like the Tides site. */
:root {
  --paper: #FCFCF8; --ink: #312B2B; --grey: #6E6868; --line: #DDDAD3;
  --tint: #F1F0E9; --wash: #EDE6D3; --gold: #92762F; --red: #C8352F; --stone: #A9A49B;
  --serif: Canela, Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--paper); color: var(--ink); }
body { font-family: var(--sans); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--ink); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* prototype bar */
.proto { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ink); color: var(--paper);
  padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
.proto-in { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 12px; }
.proto-tag { font-size: 10px; letter-spacing: 0.18em; color: #C9B98E; }
.seg { display: inline-flex; border: 1px solid #6E6868; }
.seg button { background: none; border: 0; color: #CFCBC4; padding: 4px 12px; cursor: pointer; font-size: 12px; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.proto-link { background: none; border: 0; color: var(--paper); cursor: pointer; padding: 4px 0; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #6E6868; }
.proto select { background: var(--ink); color: var(--paper); border: 1px solid #6E6868; padding: 3px 6px; font-size: 12px; max-width: 100%; }
.proto-right { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.badge { display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 4px; background: var(--red); color: #fff; border-radius: 8px; font-size: 10px; line-height: 16px; text-align: center; text-decoration: none; }

/* page shell */
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 760px) { .wrap { padding-left: max(48px, env(safe-area-inset-left, 0px)); padding-right: max(48px, env(safe-area-inset-right, 0px)); } }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 26px; border-bottom: 1px solid var(--ink); }
.logo { font-family: var(--serif); font-weight: 100; font-size: 17px; line-height: 1; letter-spacing: 0.3em; white-space: nowrap; }
.back { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.12em; background: none; border: 0; padding: 0; cursor: pointer; text-transform: uppercase; }
.back:hover, .navlink:hover { color: var(--gold); }
.nav { display: flex; gap: 6px 24px; flex-wrap: wrap; justify-content: flex-end; font-size: 12px; letter-spacing: 0.12em; }
.navlink { background: none; border: 0; padding: 0 0 2px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; }
.navlink[aria-current="page"] { color: var(--gold); border-bottom: 1px solid var(--gold); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: inline-block; flex-shrink: 0; }
.dot.gold { background: var(--gold); }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-bottom: 1px solid var(--ink); }
.split > .main { padding: 32px 32px 48px 0; min-width: 0; }
.split > .side { padding: 32px 0 48px 32px; border-left: 1px solid var(--ink); display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.titlebar > .main { padding: 36px 24px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.titlebar > .side { justify-content: flex-end; gap: 2px; padding-block: 24px; }
h1 { margin: 0; font-family: var(--serif); font-weight: 100; font-size: 40px; line-height: 1.02; text-wrap: balance; }
h2 { margin: 0; font-family: var(--serif); font-weight: 100; font-size: 26px; line-height: 1.15; text-wrap: balance; }
h3 { margin: 0 0 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.lab { font-size: 10px; letter-spacing: 0.16em; color: var(--grey); text-transform: uppercase; }
.lab.gold { color: var(--gold); }
.muted { color: var(--grey); }
.small { font-size: 12px; }
.gold { color: var(--gold); }
.red { color: var(--red); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-s { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.row > :last-child { text-align: right; }
.rows > .row:last-child { border-bottom: 1px solid var(--line); }
.btns { display: flex; flex-wrap: wrap; align-items: center; column-gap: 32px; row-gap: 14px; padding-top: 6px; }
.tides-btn-primary.normal { text-transform: none; letter-spacing: 0.02em; font-size: 13px; }
button[disabled].tides-btn-primary, button[disabled].tides-btn-secondary { opacity: 0.35; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--gold); }

.part { border: 1px solid var(--gold); box-shadow: inset 0 0 0 1px var(--gold); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.panel { background: var(--tint); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.box { border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 10px; }

/* steps list */
.step { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; width: 100%; cursor: default; }
.steps > .step:last-child { border-bottom: 1px solid var(--line); }
button.step { cursor: pointer; }
button.step:hover .step-t { color: var(--gold); }
.step-n { font-size: 11px; color: var(--grey); font-variant-numeric: tabular-nums; }
.step.done .step-t { color: var(--grey); }
.step.now .step-t { font-weight: 500; }
.step-s { font-size: 12px; color: var(--grey); text-align: right; }
.step.done .step-s { color: var(--gold); }

/* forms */
.field { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 8px 0; font-size: 15px; border-radius: 0; }
textarea.field { resize: vertical; min-height: 80px; line-height: 1.5; }
.field:focus { outline: none; border-bottom-color: var(--gold); }
.q { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.q-n { font-size: 11px; color: var(--grey); padding-top: 3px; font-variant-numeric: tabular-nums; }
.q label.q-t { font-weight: 500; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { accent-color: var(--gold); width: 15px; height: 15px; margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }

/* proposal */
.pkgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pkg { border: 1px solid var(--line); padding: 20px; text-align: left; background: none; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.pkg[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.pkg-p { font-family: var(--serif); font-weight: 100; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink); }
.stepper button { background: none; border: 0; width: 34px; height: 30px; cursor: pointer; font-size: 16px; }
.stepper span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.weeks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.week { border: 1px solid var(--line); background: none; padding: 10px 12px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.week[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.week[disabled] { cursor: not-allowed; color: var(--grey); background: repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 6px); }
.week[disabled] .w-d { text-decoration: line-through; }
.w-s { font-size: 11px; color: var(--grey); }
.money { font-variant-numeric: tabular-nums; }

/* contract */
.clause { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.clause b { font-weight: 500; }
.init { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.init input { width: 70px; border: 0; border-bottom: 1px solid var(--gold); background: transparent; text-align: center; font-family: var(--serif); font-size: 20px; padding: 2px 0; }
.init input:focus { outline: none; }
.sig { font-family: var(--serif); font-style: italic; font-weight: 100; font-size: 28px; }

/* payment */
.paygrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.paycard { border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.paycard.best { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.copyrow { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.copyrow span:last-child { overflow-wrap: anywhere; }

/* photos */
.howto { background: var(--tint); padding: 22px 24px 14px; }
.howto ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.group { padding: 24px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.group.over { background: var(--tint); }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tile { aspect-ratio: 4 / 5; max-width: 100%; border: 0; padding: 0; cursor: pointer; background-size: cover; background-position: center; position: relative; }
.tile[aria-pressed="true"] { outline: 2px solid var(--gold); outline-offset: 2px; }
.addtile { aspect-ratio: 4 / 5; max-width: 100%; border: 1px dashed var(--stone); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--grey); cursor: pointer; font-size: 12px; text-align: center; padding: 6px; background: none; }
.addtile:hover { border-color: var(--gold); color: var(--gold); }
.movebar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 10px 14px; background: var(--ink); color: var(--paper); font-size: 13px; }
.movebar button { background: none; border: 0; color: var(--paper); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

/* preview mock */
.browser { border: 1px solid var(--ink); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--ink); font-size: 12px; color: var(--grey); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink); display: inline-block; }
.browser-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 240px; }
.browser-img { background: linear-gradient(160deg, #B8B2A6, #8F897D); min-height: 180px; }
.browser-copy { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }

.bwrap { position: relative; display: flex; align-items: center; gap: 8px; max-width: min(82%, 520px); transition: transform .25s ease; touch-action: pan-y; }
.mine .bwrap { flex-direction: row-reverse; }
.bwrap.dragging { transition: none; }
.bwrap .bubble { max-width: 100%; cursor: default; }
.reply-hint { position: absolute; left: -30px; top: 50%; transform: translateY(-50%); color: var(--grey); opacity: 0; transition: opacity .15s; }
.reply-hint.ready { color: var(--gold); }
.reply-btn { background: none; border: 0; padding: 4px; color: var(--grey); cursor: pointer; opacity: 0; transition: opacity .15s; flex-shrink: 0; }
.reply-btn:hover, .reply-btn:focus-visible { color: var(--gold); opacity: 1; }
@media (hover: hover) { .mrow:hover .reply-btn { opacity: 1; } }
@media (hover: none) { .reply-btn { display: none; } }
.quote { display: block; padding: 2px 0 2px 10px; margin-bottom: 6px; border-left: 2px solid var(--gold); font-size: 12px; color: var(--grey); white-space: normal; }
.quote b { display: block; font-weight: 500; color: var(--ink); }
.compose { flex-direction: column; align-items: stretch; gap: 10px; }
.compose-row { display: flex; gap: 16px; align-items: flex-end; }
.replybar { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.replybar .quote { margin: 0; flex: 1; min-width: 0; }
.mimgs { display: grid; gap: 4px; margin: -3px -8px 6px; }
.mimgs.n1 { grid-template-columns: minmax(0, 220px); }
.mimgs.n2 { grid-template-columns: repeat(2, minmax(0, 120px)); }
.mimgs.n3 { grid-template-columns: repeat(3, minmax(0, 96px)); }
.mimg { display: block; aspect-ratio: 1; max-width: 100%; border-radius: 12px; background: var(--stone) center / cover; }
.mimg.gone { display: flex; align-items: flex-end; padding: 6px; font-size: 10px; color: var(--paper); overflow: hidden; }
.mfile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -4px 6px; background: var(--paper); border-radius: 10px; text-align: left; }
.mfile > span { display: flex; flex-direction: column; min-width: 0; }
.mfile b { font-weight: 500; font-size: 13px; overflow-wrap: anywhere; }
.bubble > :last-child { margin-bottom: 0; }
.mtext { display: block; }
.pending { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: 10px; max-width: 100%; font-size: 12px; }
.pthumb { width: 32px; height: 32px; border-radius: 6px; background: var(--stone) center / cover; flex-shrink: 0; }
.pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.clip { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--grey); cursor: pointer; flex-shrink: 0; margin-bottom: 4px; }
.clip:hover { color: var(--gold); }
.compose.over, .thread.over { background: var(--tint); }
.side-stick { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 761px) { .side-stick { position: sticky; top: 72px; } }
.sec { border-bottom: 1px solid var(--line); }
.sec summary { display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.sec summary::-webkit-details-marker { display: none; }
.sec summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.sec[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.sec summary:hover { color: var(--gold); }
.sec-n { font-size: 10px; letter-spacing: 0; color: var(--grey); font-weight: 400; }
.sec-body { padding-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.side-stick > .small { padding-top: 14px; }
.side-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.side-media .mimg { border-radius: 8px; }
/* messages: soft bubbles, theirs left in stone, mine right in a gold wash */
.thread { display: flex; flex-direction: column; gap: 4px; padding: 4px 0 28px; overflow-x: hidden; }
.mrow { position: relative; display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
.mrow.first:not(:first-child) { margin-top: 18px; }
.mrow.mine { align-items: flex-end; }
.mrow .lab { margin: 0 4px 4px; }
.bubble { max-width: min(82%, 520px); padding: 9px 14px; background: var(--tint); border-radius: 4px 16px 16px 4px; overflow-wrap: anywhere; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.bubble.b-first { border-top-left-radius: 16px; }
.bubble.b-last { border-bottom-left-radius: 4px; }
.mrow:not(.mine) .bubble.b-first.b-last { border-radius: 16px 16px 16px 4px; }
.mine .bubble { background: var(--wash); border-radius: 16px 4px 4px 16px; }
.mine .bubble.b-first { border-top-right-radius: 16px; }
.mine .bubble.b-first.b-last { border-radius: 16px 16px 4px 16px; }
.mtime { font-size: 10px; color: var(--grey); margin: 3px 6px 0; font-variant-numeric: tabular-nums; }
.compose { display: flex; padding-top: 16px; border-top: 1px solid var(--ink); }
.compose textarea { flex: 1; min-width: 0; min-height: 0; resize: none; overflow-y: hidden; max-height: 240px; }

/* navi */
.navi { border: 1px solid var(--ink); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.navi-a { background: var(--tint); padding: 12px 16px; font-size: 13px; }
.navi-form { display: flex; gap: 16px; align-items: flex-end; }
.navi-form input { flex: 1; min-width: 0; }

/* studio list */
.clients .crow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: center; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.clients .crow:last-child { border-bottom: 1px solid var(--line); }
button.crow { cursor: pointer; }
button.crow:hover .c-n { color: var(--gold); }
.c-n { font-family: var(--serif); font-weight: 100; font-size: 20px; line-height: 1.1; }
.need { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; }
.needs > .need:last-child { border-bottom: 1px solid var(--line); }
.need:hover .need-t { color: var(--gold); }
.need-t { font-weight: 500; }
.tick { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.ticks > .tick:last-child { border-bottom: 1px solid var(--line); }
button.tick { cursor: pointer; }
.tbox { width: 16px; height: 16px; border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.tick.on .tbox { background: var(--gold); border-color: var(--gold); color: var(--paper); }
.tick.on .tick-t { color: var(--grey); }
.tick-t { flex: 1; min-width: 0; }
.stars { display: flex; gap: 6px; }
.stars button { background: none; border: 0; cursor: pointer; font-size: 22px; color: var(--line); padding: 0; line-height: 1; }
.stars button.on { color: var(--gold); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding: 20px 0 32px; border-top: 1px solid var(--ink); font-size: 11px; letter-spacing: 0.14em; }

/* overlays */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: 13px; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(49,43,43,.18); }
.drawer-bg { position: fixed; inset: 0; background: rgba(49,43,43,.35); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--paper); z-index: 41; overflow-y: auto;
  padding: calc(24px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) 24px; display: flex; flex-direction: column; gap: 18px; }
.mail-list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; padding: 12px 0; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; }
.mail-list button:hover .m-s { color: var(--gold); }
.m-s { font-weight: 500; }
.mail { border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pdf { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); font-size: 13px; }
.pdf b { font-size: 10px; letter-spacing: 0.14em; font-weight: 400; color: var(--paper); background: var(--ink); padding: 2px 6px; }

/* messages: a wider conversation and a slimmer column of sections */
.split.wide { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.wide { grid-template-columns: minmax(0, 1fr); }
  .split > .main { padding: 28px 0 36px; }
  .split > .side { padding: 28px 0 36px; border-left: 0; border-top: 1px solid var(--ink); }
  .titlebar > .main { padding: 26px 0 12px; }
  .titlebar > .side { padding: 0 0 20px; border-top: 0; }
  h1 { font-size: 32px; }
  .top { padding-block: 18px; }
  .pkgs, .paygrid { grid-template-columns: minmax(0, 1fr); }
  .weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .browser-body { grid-template-columns: minmax(0, 1fr); }
  .browser-img { aspect-ratio: 4 / 3; min-height: 0; }
  .part { padding: 18px; }
  .clients .crow { grid-template-columns: minmax(0, 1fr) auto; }
  .clients .crow .hide-s { display: none; }
  .foot { margin-top: 48px; }
  .proto-right { margin-left: 0; }
  .nav { gap: 6px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.tap-only { display: none; }
@media (hover: none) { .tap-only { display: list-item; } .drag-only { display: none; } }
@media (max-width: 760px) {
  .proto-tag, .proto .hide-s { display: none; }
  .proto-in, .proto-right { gap: 8px 14px; flex-wrap: nowrap; }
  .proto select { width: 96px; }
  .proto-right { margin-left: auto; }
}
.proto-link { white-space: nowrap; display: inline-flex; align-items: center; }
.seg button { white-space: nowrap; }
.mrow:not(.mine) .reply-btn svg { transform: scaleX(-1); }   /* points away from the bubble on either side */

/* proposal: three-step guide in the side column */
.guide { display: flex; flex-direction: column; }
.gstep { display: flex; align-items: center; gap: 14px; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; width: 100%; }
.guide > .gstep:last-child { border-bottom: 1px solid var(--line); }
.gnum { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: var(--grey); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.gstep.ok .gnum { background: var(--gold); border-color: var(--gold); color: var(--paper); }
.gstep.now .gnum { border-color: var(--gold); color: var(--gold); }
.gstep.now .gt { color: var(--gold); font-weight: 500; }
.gstep:hover .gt { color: var(--gold); }
#p-options, #p-weeks, #p-accept { scroll-margin-top: 72px; }
@media (max-width: 760px) { .split > .side.guide-side { display: none; } }   /* on phones the page itself is the guide */
.later { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.later .btns { padding-top: 6px; }
.checkout { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(400px, calc(100% - 32px)); background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(49,43,43,.25); overflow: hidden; }
.co-bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--wash); }
.co-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 22px; }
.co-note { background: var(--paper); border-radius: 8px; padding: 12px 14px; margin: 8px 0 4px; }
.co-pay { font: inherit; font-size: 15px; padding: 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); cursor: pointer; }
.co-pay:hover { background: var(--gold); }
