/* Customer portal */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1440px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 16px; }
.brand img { height: 46px; display: block; }
.topbar .tag { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-2); border-left: 1px solid var(--line); padding-left: 16px; }

/* landing */
.hero { max-width: 1240px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 3.1rem; margin: 14px 0 16px; }
.hero h1 em { font-style: italic; color: var(--gold-600); }
.hero p.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 540px; }
.hero-steps { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.hero-steps li { display: flex; gap: 14px; align-items: flex-start; }
.hero-steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold-300); color: var(--gold-600); font-family: var(--serif); font-weight: 700; display: grid; place-items: center; background: var(--white); }
.hero-steps b { color: var(--navy-800); display: block; }
.hero-steps span { color: var(--ink-3); font-size: 13.5px; }
.hero-visual { background: linear-gradient(160deg, var(--white), var(--sand)); border: 1px solid var(--line); border-radius: 22px; padding: 34px 26px 26px; box-shadow: var(--shadow); position: relative; }
.hero-visual .row { justify-content: center; align-items: flex-end; gap: 22px; }
.hero-visual .diagram { width: 120px; }
.hero-visual .diagram.big { width: 150px; }
.hero-visual .caption { text-align: center; margin-top: 18px; font-family: var(--serif); font-size: 1.1rem; color: var(--ink-2); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--ink-3); font-size: 13px; }
.trust span::before { content: '✓'; color: var(--gold-500); margin-right: 6px; font-weight: 700; }

/* workspace */
.workspace { max-width: 1440px; margin: 0 auto; padding: 18px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 22px; height: calc(100vh - 64px); }
.chat { display: flex; flex-direction: column; min-height: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.chat-head { padding: 12px 20px; border-bottom: 2px solid var(--gold-500); display: flex; align-items: center; gap: 12px; background: linear-gradient(180deg, #fff, #fcfaf6); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-800); color: var(--gold-300); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1rem; flex: none; letter-spacing: .02em; }
.avatar.admin { background: var(--gold-500); color: var(--navy-900); }
.chat-head .who b { display: block; color: var(--navy-800); font-size: 14.5px; }
.chat-head .who > span { font-size: 12px; color: var(--ok); }
.chat-head .who > span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.messages { flex: 1; overflow-y: auto; padding: 22px 22px 8px; }
.msg { display: flex; gap: 10px; margin-bottom: 16px; }
.msg.fresh { animation: rise .25s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.msg-body { max-width: min(680px, 88%); }
.msg .bubble { max-width: 100%; padding: 11px 15px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: var(--navy-800); color: #fff; border-color: var(--navy-800); border-radius: 16px; border-top-right-radius: 4px; }
.msg.admin .bubble { background: var(--gold-100); border-color: var(--gold-300); }
.msg .author { font-size: 11.5px; font-weight: 600; color: var(--gold-600); margin-bottom: 2px; }
.msg-body { min-width: 0; }
.msg.user .msg-body { display: flex; justify-content: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.chip { border: 1px solid var(--navy-600); color: var(--navy-800); background: var(--white); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 13.5px; transition: all .15s; text-align: left; }
.chip:hover { background: var(--navy-800); color: #fff; }
.chip.subtle { border-color: var(--line-strong); color: var(--ink-2); border-style: dashed; }
.chip.subtle:hover { background: var(--sand); color: var(--ink); }
.chip.primary { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); font-weight: 600; }
.chip.primary:hover { background: var(--gold-300); border-color: var(--gold-300); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 4px; max-width: 760px; }
.cat-group-title { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; margin: 12px 0 0; }
.cat-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 9px; cursor: pointer; text-align: left; display: flex; gap: 10px; align-items: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-card:hover { border-color: var(--gold-500); box-shadow: var(--shadow); transform: translateY(-1px); }
.cat-card .diagram { width: 38px; flex: none; }
.cat-card b { font-size: 13px; color: var(--navy-800); display: block; line-height: 1.25; }
.cat-card span { font-size: 11.5px; color: var(--ink-3); }
.multi { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
/* take-off: units read from an uploaded drawing, checked before anything is added */
.msg.wide .msg-body { max-width: min(720px, 100%); flex: 1; }
.takeoff { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.tk-row { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.tk-row.off { background: var(--sand); }
.tk-row.off .tk-ref, .tk-row.off .tk-size { opacity: .6; }
.tk-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-inc input { width: 18px; height: 18px; accent-color: var(--navy-800); cursor: pointer; }
.tk-ref { font-family: var(--serif); font-size: 17px; color: var(--gold-600); min-width: 42px; }
.tk-ref-in { width: 74px; }
.tk-type { flex: 1 1 180px; min-width: 0; }
.tk-tag { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tk-tag.ok { background: var(--ok-bg); color: var(--ok); }
.tk-tag.warn { background: var(--warn-bg); color: var(--warn); }
.tk-tag.info { background: var(--info-bg); color: var(--info); }
.tk-tag.muted { background: var(--line); color: var(--ink-2); }
.tk-size { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; padding-left: 28px; }
.tk-field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-2); flex: 1 1 90px; max-width: 130px; }
.tk-field .input { width: 100%; }
.tk-qty { flex: 0 1 70px; }
.tk-x { padding-bottom: 10px; color: var(--ink-2); }
.tk-notes { font-size: 12.5px; color: var(--ink-2); padding-left: 28px; }
.tk-review { font-size: 12.5px; color: var(--warn); padding-left: 28px; }
.tk-review::before { content: '! '; font-weight: 700; }
.tk-review.info { color: var(--info); }
.tk-review.info::before { content: none; }
.sizebox { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; flex-wrap: wrap; max-width: 460px; }
.sizebox-ref { flex-basis: 100%; font-size: 13px; color: var(--ink-2); }
.sizebox-ref b { font-family: var(--serif); font-size: 15px; color: var(--gold-600); }
.sizebox-field { display: flex; flex-direction: column; gap: 3px; flex: 1 1 96px; min-width: 0; font-size: 12px; color: var(--ink-2); }
.sizebox .input { width: 100%; }
.sizebox-x { padding-bottom: 10px; color: var(--ink-2); }
.sizebox .btn { flex: 1 0 auto; min-height: 40px; }
.inline-item { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; max-width: 560px; }
.inline-item .diagram { width: 86px; flex: none; }
.inline-item .lines { font-size: 12.5px; color: var(--ink-2); }
.inline-item .lines div + div { margin-top: 2px; }
/* "Try an example" prompts, shown before the first customer message */
.examples { margin: -4px 0 18px 48px; animation: rise .3s ease both; }
.examples-label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; margin-bottom: 8px; }
.examples-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; max-width: 760px; }
.example-card { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; cursor: pointer; font-size: 13.5px; line-height: 1.45; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.example-card:hover:not(:disabled) { border-color: var(--gold-500); box-shadow: var(--shadow); transform: translateY(-1px); }
.example-card:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 2px; }
.example-card:disabled { opacity: .6; cursor: default; }
.example-card .ex-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; }
.example-card .ex-icon svg { width: 15px; height: 15px; }
.example-card .ex-text { font-style: italic; color: var(--ink-2); }
.typing {display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; gap: 8px; align-items: flex-end; background: #fdfcfa; }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--line-strong); border-radius: 14px; padding: 10px 14px; max-height: 140px; min-height: 44px; outline: none; background: #fff; }
.composer textarea:focus { border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(42, 72, 103, .12); }
.composer .icon-btn { width: 44px; height: 44px; }
.composer .icon-btn svg { width: 19px; height: 19px; }
.composer .icon-btn.on { border-color: var(--gold-500); color: var(--gold-600); background: var(--gold-100); }
/* voice messages */
.recording { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--bad); border-radius: 14px; padding: 8px 14px; background: #fff; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); flex: none; animation: recpulse 1.2s ease-in-out infinite; }
@keyframes recpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--bad); flex: none; font-size: 13px; }
.rec-time .muted { font-weight: 400; color: var(--ink-3); }
.rec-heard { flex: 1; min-width: 0; color: var(--ink-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-note { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-top: 1px solid var(--line); background: var(--gold-100); color: #5e4a28; font-size: 12.5px; }
.voice-note svg { width: 15px; height: 15px; flex: none; }
.linkish { border: 0; background: none; color: var(--navy-600); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 2px 4px; }
.voice-tag { display: flex; align-items: center; gap: 4px; font-size: 11px; opacity: .8; margin-bottom: 2px; }
.voice-tag svg { width: 12px; height: 12px; }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
@media (max-width: 480px) { .rec-time .muted { display: none; } .recording { padding: 8px 10px; gap: 8px; } }
.dropzone { position: absolute; inset: 0; background: rgba(11, 31, 58, .78); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; z-index: 5; border-radius: 18px; pointer-events: none; }
.attach-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.attach-thumbs a { display: block; width: 76px; height: 60px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .4); background: #fff; }
.attach-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.attach-thumbs .pdf { display: grid; place-items: center; color: var(--navy-800); font-size: 11px; font-weight: 600; }

/* summary panel */
.summary { display: flex; flex-direction: column; min-height: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.sum-head { padding: 16px 18px 12px; background: var(--navy-800); color: #fff; position: relative; overflow: hidden; }
.sum-head::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(214, 192, 154, .25); }
.sum-head h2 { color: #fff; margin: 0; font-size: 1.45rem; }
.sum-head .meta { font-size: 12.5px; color: rgba(255, 255, 255, .7); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.sum-head .pill { background: rgba(255, 255, 255, .12); color: var(--gold-300); }
.sum-body { flex: 1; overflow-y: auto; padding: 12px 14px; }
.sum-empty { text-align: center; padding: 34px 18px; color: var(--ink-3); }
.sum-empty .diagram { width: 70px; margin: 0 auto 12px; opacity: .55; }
.sitem { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); position: relative; border-radius: 10px; transition: background .15s; }
.sitem.active { background: var(--gold-100); }
.sitem:last-child { border-bottom: 0; }
.sitem .diagram { width: 74px; }
.sitem .ref { font-family: var(--serif); font-weight: 700; color: var(--gold-600); font-size: 1.05rem; }
.sitem .name { font-weight: 600; color: var(--navy-800); font-size: 13.5px; line-height: 1.3; }
.sitem .spec { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.sitem .foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.sitem .price { margin-left: auto; font-weight: 600; font-size: 13px; color: var(--navy-800); }
.sitem .price.pending { color: var(--gold-600); font-weight: 500; font-style: italic; }
.sitem .progress { font-size: 11.5px; color: var(--warn); }
.sitem .acts { display: flex; gap: 2px; }
.sitem .acts .btn { padding: 4px 8px; }
.sitem details { margin-top: 6px; }
.sitem summary { font-size: 12px; color: var(--navy-600); cursor: pointer; }
.sitem .lines { font-size: 11.5px; color: var(--ink-2); margin-top: 4px; }
.sum-section { padding: 10px 8px; border-top: 1px solid var(--line); font-size: 13px; }
.sum-section .row { justify-content: space-between; padding: 3px 0; }
.sum-totals { padding: 12px 18px; background: var(--paper); border-top: 1px solid var(--line); }
.sum-totals .row { justify-content: space-between; padding: 2px 0; font-size: 13.5px; }
.sum-totals .grand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--navy-800); border-top: 1px solid var(--line-strong); margin-top: 6px; padding-top: 6px; }
.sum-totals.provisional { background: var(--gold-100); }
.prov-banner { font-size: 12px; color: #5e4a28; background: #fff; border: 1px solid var(--gold-300); border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; line-height: 1.4; }
.prov-banner b { display: block; color: var(--gold-600); text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; margin-bottom: 2px; }
.sitem .price small.prov { display: block; font-size: 10px; font-weight: 500; color: var(--gold-600); text-align: right; text-transform: uppercase; letter-spacing: .06em; }
.sum-totals .pending-note { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.sum-actions { padding: 12px 14px; display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.sum-actions .btn { flex: 1; }

.mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; max-width: 600px; }
.mode-card { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; cursor: pointer; line-height: 1.45; transition: border-color .15s, box-shadow .15s, transform .15s; }
.mode-card:hover:not(:disabled) { border-color: var(--gold-500); box-shadow: var(--shadow); transform: translateY(-1px); }
.mode-card:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 2px; }
.mode-card:disabled { opacity: .6; cursor: default; }
.mode-card b { display: block; color: var(--navy-800); font-size: 14.5px; margin-bottom: 2px; }
.mode-card span span { font-size: 13px; color: var(--ink-2); }
.mode-card .mode-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; }
.mode-card .mode-icon svg { width: 16px; height: 16px; }
.mode-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; background: var(--white); flex: none; }
.mode-toggle button { border: 0; background: transparent; color: var(--ink-2); font-size: 12.5px; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.mode-toggle button.on { background: var(--navy-800); color: #fff; cursor: default; }
.mode-toggle button:not(.on):hover:not(:disabled) { background: var(--gold-100); color: var(--navy-800); }
.std-note { font-size: 12px; color: #5e4a28; background: var(--gold-100); border: 1px solid var(--gold-300); border-radius: 8px; padding: 8px 10px; margin: 10px 8px 4px; line-height: 1.45; }
.std-note b { display: block; color: var(--gold-600); text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; margin-bottom: 2px; }
.mobile-tabs { display: none; }

/* Tablets and phones: one panel at a time. The open quotation fills the visible screen (--app-h is set
   from the visual viewport, so browser toolbars and the on-screen keyboard are allowed for): header, the chosen panel, then
   the Assistant | Quotation tab bar in its own row at the bottom, below the message box (never over it). Both
   panels share one grid cell and the hidden one keeps its scroll position. */
@media (max-width: 1060px) {
  .workspace { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); grid-template-areas: 'panel'; height: auto; padding: 10px 12px 12px; }
  .workspace > .chat, .workspace > .summary { grid-area: panel; }
  .workspace.show-chat .summary, .workspace.show-summary .chat { visibility: hidden; }
  .in-quote, .in-quote body { overflow: hidden; overscroll-behavior: none; }
  .in-quote #app { position: fixed; left: 0; right: 0; top: var(--app-top, 0px); display: flex; flex-direction: column; height: 100vh; height: 100dvh; height: var(--app-h, 100dvh); }
  .in-quote #app > .topbar { position: static; flex: none; padding-top: env(safe-area-inset-top); }
  .in-quote #app > .workspace { order: 1; flex: 1; min-height: 0; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .in-quote #app > .mobile-tabs { order: 2; }
  .mobile-tabs { display: flex; flex: none; background: var(--white); border-top: 1px solid var(--line); padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left)); }
  .mobile-tabs button { flex: 1 1 0; min-width: 0; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; position: relative; box-shadow: inset 0 2px 0 transparent; transition: color .15s, box-shadow .15s; }
  .mobile-tabs button.on { color: var(--navy-800); font-weight: 600; box-shadow: inset 0 2px 0 var(--gold-500); }
  .mobile-tabs button:focus-visible { outline: 2px solid var(--navy-600); outline-offset: -4px; border-radius: 6px; }
  .mobile-tabs .count { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--sand); color: var(--navy-800); font-size: 11.5px; font-weight: 600; line-height: 18px; }
  .mobile-tabs button.on .count { background: var(--navy-800); color: #fff; }
  .fresh-dot { flex: none; width: 7px; height: 7px; margin-left: -2px; border-radius: 50%; background: var(--gold-500); }
  /* typing: the header and tab bar step aside so the message box sits just above the keyboard */
  .kb.in-quote #app > .topbar, .kb.in-quote #app > .mobile-tabs { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 28px; }
}
/* landscape phones (little height): tighter header and chat heading */
@media (max-width: 1060px) and (max-height: 500px) and (orientation: landscape) {
  .in-quote .topbar-in { padding-top: 2px; padding-bottom: 2px; }
  .in-quote .brand img { height: 30px; }
  .in-quote .chat-head { padding-top: 6px; padding-bottom: 6px; }
  .in-quote .messages { padding-top: 10px; }
  .kb.in-quote .chat-head { display: none; }
}
@media (max-width: 640px) {
  .topbar-in { padding: 6px 14px; }
  .brand img { height: 38px; }
  .topbar .tag, .hide-sm { display: none; }
  /* phones: full-screen chat, edge to edge */
  .in-quote #app > .workspace { padding: 0; }
  .in-quote .chat, .in-quote .summary { border: 0; border-radius: 0; box-shadow: none; }
  .in-quote .dropzone { border-radius: 0; }
  .composer { padding: 8px 10px; }
  .sizebox .input, .takeoff .input { font-size: 16px; } /* iPhone does not zoom in */
  .tk-size, .tk-notes, .tk-review { padding-left: 0; }
  .composer .icon-btn { width: 40px; height: 40px; }
  .composer textarea { font-size: 16px; min-height: 40px; padding: 8px 12px; } /* 16px: iPhone does not zoom in when typing */
  .chat-head { padding: 10px 12px; gap: 8px; }
  .chat-head .who { min-width: 0; }
  .chat-head .who b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero { padding: 24px 16px; }
  .hero h1 { font-size: 2.2rem; }
  .messages { padding: 16px 12px 6px; }
  .msg-body { max-width: 92%; }
  .avatar { width: 30px; height: 30px; font-size: .85rem; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .examples { margin-left: 0; }
  .examples-grid { grid-template-columns: 1fr; }
  .mode-cards { grid-template-columns: 1fr; }
  .mode-toggle button { padding: 5px 8px; }
}

/* embedded in the website's quote page (?embed=1): the website supplies the logo, header and footer */
.topbar.slim .topbar-in { padding: 6px 16px; min-height: 44px; }
.topbar.slim .tag { border-left: 0; padding-left: 0; }
.embed .workspace { height: calc(100vh - 46px); padding: 12px 16px; }
.embed-start { max-width: 640px; margin: 0 auto; padding: 40px 24px; text-align: center; }
.embed-start h1 { font-size: 2.2rem; margin: 12px 0 10px; }
.embed-start p { color: var(--ink-2); margin: 0 auto 24px; max-width: 480px; }
.embed-start .trust { justify-content: center; }
@media (max-width: 1060px) { .embed .workspace { height: auto; padding: 8px; } }
@media (max-width: 640px) { .embed.in-quote #app > .workspace { padding: 0; } }
.partial-note { font-size: 12px; color: var(--warn); margin-top: 6px; }
.price.pending { white-space: normal; }
.tk-general { background: var(--gold-100); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.tk-general-title { font-size: 12px; font-weight: 600; color: var(--gold-600); text-transform: uppercase; letter-spacing: .06em; }
.tk-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.tk-note select { flex: 0 1 230px; }
