/* ==========================================================================
   Tolliver Quote: the visual layer (Priya). SAMPLE WORK.
   Tolliver Landscape & Light is an invented business.
   Binds to artifacts/brand/tokens.json (palette, type, sample badge).
   Contract with the engine: artifacts/app/DESIGN-CONTRACT.md
   Phone (390px) is the origin; tablet and desktop grow from it.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600&family=Public+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  /* palette: tokens.json */
  --ink: #1C211E;
  --bur-oak: #2E4A3B;
  --fescue: #5E7D5A;
  --limestone: #EFE9DC;
  --paper: #FBF8F2;
  --brass: #B8893D;
  --dusk: #1E2935;
  --clay: #A4553A;
  --rule: #D9D1C0;
  /* derived, for quiet text that still clears 7:1 on Paper */
  --ink-2: #4A524C;
  --rule-strong: #BFB5A0;
  --oak-tint: #E4EAE2;
  --clay-tint: #F5E6DF;
  --white-warm: #FFFDF8;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-ui: "Public Sans", -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 6px;
  --r: 12px;
  --r-lg: 16px;
  --tap: 56px;          /* primary targets */
  --tap-min: 44px;      /* never below */
  --pad: 16px;
  --shadow-dock: 0 -1px 0 var(--rule), 0 -8px 24px rgba(28, 33, 30, .06);
  --shadow-sheet: 0 1px 2px rgba(28, 33, 30, .06), 0 12px 40px rgba(28, 33, 30, .08);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.tq {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* resets carry zero specificity so every component class below wins */
:where(.tq) img { max-width: 100%; display: block; }
:where(.tq) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.tq) a { color: var(--bur-oak); text-underline-offset: 3px; }
.tq :focus-visible { outline: 3px solid var(--bur-oak); outline-offset: 2px; }
.tq-num, .tq-total-amount, .tq-line-total, .tq-q-item-total, .tq-q-row, .tq-deposit-amount,
.tq-recent-amount, .tq-service-price, .tq-q-item-calc, .tq-num-input, .tq-stepper-value, .tq-result {
  font-variant-numeric: tabular-nums lining-nums;
}
.tq-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the sample badge (brand-kit §1) ---------- */
.tq-badge {
  display: inline-flex; align-items: center;
  font: 600 11px/1 var(--f-ui);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brass); background: var(--limestone);
  border: 1px solid var(--brass); border-radius: 3px;
  padding: 5px 7px 4px;
  white-space: nowrap;
}

/* ---------- app shell ---------- */
.tq-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.tq-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 var(--pad);
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.tq-brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--bur-oak); }
.tq-brand-name { font: 600 21px/1 var(--f-display); letter-spacing: -.01em; }
.tq-brand-app { font: 600 13px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.tq-header .tq-badge { flex: none; }
@media (max-width: 400px) {
  /* the badge never clips: the name gives up a few pixels instead */
  .tq-header { gap: 8px; padding: 0 12px; }
  .tq-brand { gap: 5px; }
  .tq-brand-name { font-size: 19px; }
  .tq-brand-app { font-size: 12px; letter-spacing: .04em; }
}
@media (max-width: 359px) { .tq-header .tq-badge { white-space: normal; max-width: 128px; text-align: center; line-height: 1.25; padding: 4px 6px; } }

.tq-progress {
  position: sticky; top: 56px; z-index: 25;
  display: flex; align-items: center; gap: 10px;
  padding: 10px var(--pad) 10px 4px;
  background: var(--limestone);
}
.tq-back {
  flex: none; width: var(--tap-min); height: var(--tap-min);
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--bur-oak); cursor: pointer;
}
.tq-back:active { background: var(--rule); }
.tq-back svg { width: 22px; height: 22px; }
.tq-progress-main { flex: 1; min-width: 0; }
.tq-step-label { display: block; font: 600 14px/1.2 var(--f-ui); color: var(--ink-2); margin-bottom: 7px; }
.tq-step-label b { color: var(--ink); font-weight: 600; }
.tq-progress-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tq-progress-bar span { height: 4px; border-radius: 2px; background: var(--rule); transition: background .2s; }
.tq-progress[data-step="1"] .tq-progress-bar span:nth-child(-n+1),
.tq-progress[data-step="2"] .tq-progress-bar span:nth-child(-n+2),
.tq-progress[data-step="3"] .tq-progress-bar span:nth-child(-n+3),
.tq-progress[data-step="4"] .tq-progress-bar span:nth-child(-n+4) { background: var(--bur-oak); }

.tq-banner { padding: 10px var(--pad); font-size: 14px; line-height: 1.4; }
.tq-banner--offline { background: var(--ink); color: var(--paper); }
.tq-banner--offline::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); margin-right: 8px; vertical-align: 1px; }

.tq-body { flex: 1; display: block; }
.tq-main { padding: 8px var(--pad) 32px; }
.tq-preview { display: none; }
.tq-screen-title { font: 600 30px/1.1 var(--f-display); letter-spacing: -.015em; color: var(--ink); margin: 12px 0 8px; }
.tq-lede { font-size: 17px; line-height: 1.5; color: var(--ink-2); margin: 0 0 24px; max-width: 34ch; }
.tq-section-label { font: 600 13px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 28px 0 10px; }

/* the dock: running total + primary action, under the thumb */
.tq-dock {
  position: sticky; bottom: 0; z-index: 20;
  background: var(--paper);
  box-shadow: var(--shadow-dock);
  padding: 10px var(--pad) calc(12px + var(--safe-b));
}
.tq-total-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.tq-total-count { font: 600 14px/1 var(--f-ui); color: var(--ink-2); }
.tq-total-amount { font: 600 26px/1 var(--f-display); color: var(--ink); letter-spacing: -.01em; }
.tq-total-amount.is-bump { animation: tq-bump .35s ease-out; }
@keyframes tq-bump { 0% { color: var(--bur-oak); transform: translateY(-2px); } 100% { color: var(--ink); transform: none; } }
.tq-actions { display: flex; gap: 10px; }
.tq-actions > .tq-btn { flex: 1; }
.tq-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

.tq-toast {
  position: fixed; left: var(--pad); right: var(--pad); bottom: calc(150px + var(--safe-b)); z-index: 60;
  max-width: 440px; margin: 0 auto;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r); padding: 14px 16px; font-size: 15px; line-height: 1.4;
  box-shadow: var(--shadow-sheet);
}

/* ---------- buttons ---------- */
.tq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 20px;
  border: 1.5px solid transparent; border-radius: var(--r);
  font: 600 17px/1.15 var(--f-ui); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; user-select: none;
  transition: background .15s, transform .08s;
}
.tq-btn:active { transform: scale(.985); }
.tq-btn svg { width: 20px; height: 20px; flex: none; }
.tq-btn--block { display: flex; width: 100%; }
.tq-btn--primary { background: var(--bur-oak); color: var(--paper); }
.tq-btn--primary:active { background: #243B2F; }
.tq-btn--pay { background: var(--ink); color: var(--paper); min-height: 60px; font-size: 18px; }
.tq-btn--pay:active { background: #000; }
.tq-btn--secondary { background: var(--paper); color: var(--bur-oak); border-color: var(--bur-oak); }
.tq-btn--secondary:active { background: var(--oak-tint); }
.tq-btn--ghost { background: transparent; color: var(--bur-oak); min-height: var(--tap-min); padding: 0 12px; }
.tq-btn--ghost:active { background: var(--rule); }
.tq-btn--danger { background: var(--paper); color: var(--clay); border-color: var(--clay); }
.tq-btn--small { min-height: var(--tap-min); font-size: 15px; padding: 0 14px; border-radius: 10px; }
.tq-btn[disabled], .tq-btn[aria-disabled="true"] { background: var(--rule); color: var(--ink-2); border-color: transparent; cursor: not-allowed; transform: none; }
.tq-link-btn { background: none; border: 0; padding: 10px 0; min-height: var(--tap-min); color: var(--bur-oak); font: 600 15px/1.2 var(--f-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- fields ---------- */
.tq-field { margin: 0 0 18px; }
.tq-label { display: block; font: 600 14px/1.3 var(--f-ui); color: var(--ink); margin-bottom: 6px; }
.tq-input {
  display: block; width: 100%;
  min-height: var(--tap); padding: 14px 14px;
  font-size: 17px; line-height: 1.3;   /* never under 16: no iOS zoom */
  background: var(--white-warm); color: var(--ink);
  border: 1.5px solid var(--rule-strong); border-radius: var(--r);
  appearance: none; -webkit-appearance: none;
}
.tq-input::placeholder { color: #8A8F86; opacity: 1; }
.tq-input:focus { outline: none; border-color: var(--bur-oak); box-shadow: 0 0 0 3px rgba(46, 74, 59, .18); }
textarea.tq-input { min-height: 96px; resize: vertical; }
select.tq-input {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232E4A3B' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.tq-help { font-size: 14px; line-height: 1.4; color: var(--ink-2); margin-top: 6px; }
.tq-error { font-size: 14px; line-height: 1.4; color: var(--clay); margin-top: 6px; font-weight: 600; }
.tq-field.is-invalid .tq-input { border-color: var(--clay); }
.tq-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- status chips ---------- */
.tq-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px/1 var(--f-ui); letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--limestone); color: var(--ink-2); border: 1px solid var(--rule-strong);
}
.tq-chip--sent { background: var(--paper); color: var(--bur-oak); border-color: var(--bur-oak); }
.tq-chip--viewed { background: var(--oak-tint); color: var(--bur-oak); border-color: transparent; }
.tq-chip--signed { background: var(--bur-oak); color: var(--paper); border-color: transparent; }
.tq-chip--paid { background: var(--dusk); color: var(--paper); border-color: transparent; }
.tq-chip--paid::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.tq-chip--expired { background: var(--clay-tint); color: var(--clay); border-color: transparent; }

/* ---------- A. home ---------- */
.tq-home-hero { padding: 20px 0 8px; }
.tq-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tq-recent-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 14px 16px; min-height: 72px; text-decoration: none; color: var(--ink);
}
.tq-recent-name { font: 600 17px/1.25 var(--f-ui); }
.tq-recent-meta { font-size: 14px; color: var(--ink-2); grid-column: 1; }
.tq-recent-amount { font: 600 18px/1 var(--f-display); grid-column: 2; grid-row: 1; text-align: right; }
.tq-recent-item .tq-chip { grid-column: 2; grid-row: 2; justify-self: end; }
.tq-empty { padding: 28px 20px; text-align: center; color: var(--ink-2); background: var(--paper); border: 1.5px dashed var(--rule-strong); border-radius: var(--r); }

/* ---------- C. services ---------- */
.tq-tabs {
  position: sticky; top: 118px; z-index: 15;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 10px;
  background: var(--limestone);
}
.tq-tabs::-webkit-scrollbar { display: none; }
.tq-tab {
  flex: none; min-height: var(--tap-min); padding: 0 16px;
  border: 1.5px solid var(--rule-strong); border-radius: 999px;
  background: var(--paper); color: var(--ink); font: 600 15px/1 var(--f-ui); cursor: pointer;
}
.tq-tab[aria-selected="true"] { background: var(--bur-oak); border-color: var(--bur-oak); color: var(--paper); }
.tq-tab[data-cat="lighting"][aria-selected="true"] { background: var(--dusk); border-color: var(--dusk); box-shadow: inset 0 -3px 0 var(--brass); }
.tq-search { margin: 4px 0 14px; }
.tq-search .tq-input {
  padding-left: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234A524C' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 15px center;
}
.tq-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tq-service {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: start;
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--r);
  padding: 14px 14px 14px 16px;
}
.tq-service.is-added { border-color: var(--bur-oak); background: #F7F8F2; }
.tq-service[data-cat="lighting"].is-added { border-color: var(--dusk); }
.tq-service-name { font: 600 17px/1.3 var(--f-ui); margin: 0; }
.tq-service-price { font: 600 14px/1.3 var(--f-ui); color: var(--bur-oak); margin-top: 2px; }
.tq-service-desc { grid-column: 1 / -1; font-size: 14px; line-height: 1.45; color: var(--ink-2); margin: 0; }
.tq-add {
  min-height: var(--tap-min); min-width: 92px; padding: 0 16px;
  border: 1.5px solid var(--bur-oak); border-radius: 999px;
  background: var(--paper); color: var(--bur-oak);
  font: 600 15px/1 var(--f-ui); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.tq-add[aria-pressed="true"] { background: var(--bur-oak); color: var(--paper); }
.tq-add[aria-pressed="true"]::before {
  content: ""; width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tq-service[data-cat="lighting"] .tq-add[aria-pressed="true"] { background: var(--dusk); border-color: var(--dusk); }
.tq-footnote { font-size: 14px; line-height: 1.45; color: var(--ink-2); font-style: italic; margin: 14px 2px 0; }

/* ---------- D. measure ---------- */
.tq-lines { display: grid; gap: 14px; }
.tq-line {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg);
  border-top: 4px solid var(--bur-oak);
  overflow: hidden;
}
.tq-line[data-cat="lighting"] { border-top-color: var(--brass); }
.tq-line-head {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline;
  padding: 14px 16px 12px; border-bottom: 1px solid var(--rule);
}
.tq-line-name { font: 600 18px/1.25 var(--f-ui); margin: 0; }
.tq-line-each { font-size: 14px; color: var(--ink-2); grid-column: 1; }
.tq-line-total { font: 600 24px/1 var(--f-display); color: var(--ink); grid-column: 2; grid-row: 1 / span 2; align-self: center; letter-spacing: -.01em; }
.tq-area { padding: 14px 16px 16px; }
.tq-area + .tq-area { border-top: 1px dashed var(--rule-strong); }
.tq-prompt { font: 600 16px/1.3 var(--f-ui); margin: 0 0 10px; }
.tq-dims { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 8px; align-items: end; }
.tq-dims .tq-field { margin: 0; }
.tq-times { font: 400 26px/56px var(--f-display); color: var(--ink-2); text-align: center; height: 64px; line-height: 64px; }
.tq-num-input {
  min-height: 64px; padding: 10px 12px; text-align: center;
  font: 600 28px/1 var(--f-ui); letter-spacing: -.01em;
  caret-color: var(--bur-oak);
}
.tq-num-input.is-keypad-active { border-color: var(--bur-oak); box-shadow: 0 0 0 3px rgba(46, 74, 59, .25); background: var(--paper); }
.tq-num-input--single { max-width: 220px; }
.tq-result-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.tq-result { font: 600 20px/1.2 var(--f-display); color: var(--bur-oak); }
.tq-result:empty { display: none; }
.tq-switch { background: none; border: 0; min-height: var(--tap-min); padding: 0; color: var(--bur-oak); font: 600 15px/1.2 var(--f-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tq-min-note { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--clay-tint); color: #7E3F2A; font-size: 14px; line-height: 1.4; font-weight: 600; }
.tq-area-where { margin-top: 14px; }
.tq-area-where .tq-input { min-height: 48px; padding: 11px 12px; font-size: 16px; }
.tq-add-area { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-top: 1px solid var(--rule); background: transparent; color: var(--bur-oak); font: 600 15px/1 var(--f-ui); cursor: pointer; }
.tq-add-area::before { content: "+"; font: 400 24px/1 var(--f-ui); }
.tq-remove-area { float: right; }

/* stepper for fixtures, each, steps */
.tq-stepper { display: grid; grid-template-columns: var(--tap) 1fr var(--tap); align-items: center; gap: 10px; max-width: 280px; }
.tq-step-btn {
  width: var(--tap); height: var(--tap); border-radius: 50%;
  border: 1.5px solid var(--bur-oak); background: var(--paper); color: var(--bur-oak);
  font: 400 30px/1 var(--f-ui); display: grid; place-items: center; cursor: pointer;
}
.tq-step-btn:active { background: var(--oak-tint); }
.tq-step-btn[disabled] { border-color: var(--rule-strong); color: var(--rule-strong); }
.tq-stepper-value { text-align: center; font: 600 34px/1 var(--f-ui); border: 0; background: transparent; width: 100%; min-height: var(--tap); padding: 0; }
.tq-line[data-cat="lighting"] .tq-step-btn { border-color: var(--dusk); color: var(--dusk); }

/* ---------- the number pad (keypad.js) ---------- */
.tq-keypad {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--paper); border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(28, 33, 30, .18);
  padding: 8px 12px calc(12px + var(--safe-b));
  transform: translateY(105%); transition: transform .22s cubic-bezier(.2, .8, .2, 1);
  max-width: 560px; margin: 0 auto;
}
.tq-keypad.is-open { transform: none; }
.tq-keypad-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--rule-strong); margin: 0 auto 10px; }
.tq-keypad-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; padding: 0 6px 12px; }
.tq-keypad-label { font: 600 14px/1.2 var(--f-ui); color: var(--ink-2); }
.tq-keypad-value { font: 600 40px/1.05 var(--f-ui); font-variant-numeric: tabular-nums; color: var(--ink); min-height: 42px; grid-column: 1; }
.tq-keypad-value.is-fresh { color: var(--ink-2); }
.tq-keypad-line { grid-column: 2; grid-row: 1 / span 2; text-align: right; font: 600 14px/1.3 var(--f-ui); color: var(--ink-2); }
.tq-keypad-line b { display: block; font: 600 22px/1.1 var(--f-display); color: var(--bur-oak); font-variant-numeric: tabular-nums; }
.tq-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tq-key {
  height: 60px; border: 0; border-radius: 12px;
  background: var(--limestone); color: var(--ink);
  font: 600 26px/1 var(--f-ui); cursor: pointer; touch-action: manipulation;
}
.tq-key:active { background: var(--rule); }
.tq-key--back svg { width: 28px; height: 28px; }
.tq-keypad-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 8px; }
body.tq-keypad-open .tq-main { padding-bottom: 380px; }
body.tq-keypad-open .tq-dock { visibility: hidden; }

/* ---------- E. photos ---------- */
.tq-photo-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 4px 0 14px; }
.tq-photo-actions .tq-btn { font-size: 16px; padding: 0 14px; white-space: nowrap; }
.tq-tip { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--rule); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tq-tip svg { flex: none; width: 20px; height: 20px; color: var(--fescue); margin-top: 1px; }
.tq-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tq-photo { position: relative; margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.tq-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tq-caption { display: block; width: 100%; border: 0; border-top: 1px solid var(--rule); background: var(--paper); padding: 9px 10px; font-size: 16px; line-height: 1.3; min-height: 48px; resize: none; }
textarea.tq-caption { height: 88px; }
.tq-caption:focus { outline: none; background: var(--white-warm); box-shadow: inset 0 0 0 2px var(--bur-oak); }
.tq-photo-remove {
  position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(28, 33, 30, .72); color: var(--paper); font: 400 22px/1 var(--f-ui); cursor: pointer;
}
.tq-photo-count { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

/* ---------- F. review ---------- */
.tq-check-line { font: italic 400 20px/1.35 var(--f-display); color: var(--bur-oak); margin: 0 0 18px; }
.tq-review-start { margin: 22px 0 0; }
.tq-edit { font: 600 14px/1 var(--f-ui); color: var(--bur-oak); background: none; border: 0; padding: 10px 0 10px 12px; min-height: var(--tap-min); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ==========================================================================
   G. THE CUSTOMER'S QUOTE: a document a homeowner keeps
   ========================================================================== */
body.tq-customer { background: var(--limestone); }
.tq-quote {
  position: relative;
  max-width: 780px; margin: 0 auto;
  background-color: var(--paper);
  /* SAMPLE watermark: diagonal, 6% Ink, behind the body (brand-kit §1) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='460'%3E%3Ctext x='300' y='245' text-anchor='middle' transform='rotate(-30 300 230)' font-family='Georgia,serif' font-weight='700' font-size='104' letter-spacing='14' fill='%231C211E' fill-opacity='0.06'%3ESAMPLE%3C/text%3E%3C/svg%3E");
  background-repeat: repeat; background-position: center 120px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  padding: 24px 20px 28px;
  color: var(--ink);
}
.tq-q-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--bur-oak); }
.tq-q-head .tq-badge { order: -1; }
.tq-wordmark { color: var(--bur-oak); line-height: 1; }
.tq-wordmark-name { display: block; font: 600 34px/0.95 var(--f-display); letter-spacing: -.02em; font-variation-settings: "opsz" 144, "SOFT" 50; }
.tq-wordmark-sub { display: block; font: 600 11px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; margin-top: 7px; white-space: nowrap; }
.tq-q-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 16px 0 0; padding: 0; }
.tq-q-meta div { margin: 0; }
.tq-q-meta dt { font: 600 11px/1.2 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.tq-q-meta dd { margin: 3px 0 0; font: 600 15px/1.3 var(--f-ui); font-variant-numeric: tabular-nums; }
.tq-q-meta div:first-child { grid-column: 1 / -1; }

.tq-q-for { font: 600 32px/1.1 var(--f-display); letter-spacing: -.01em; margin: 30px 0 6px; font-variation-settings: "opsz" 48; }
.tq-q-site { font-size: 16px; color: var(--ink-2); margin: 0; }
.tq-q-intro { font-size: 17px; line-height: 1.6; margin: 16px 0 0; max-width: 58ch; }
.tq-q-hero-photo { margin: 22px -20px 0; }
.tq-q-hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.tq-q-section { margin-top: 36px; }
.tq-q-h { font: 600 22px/1.2 var(--f-display); color: var(--bur-oak); margin: 0 0 14px; padding-top: 14px; border-top: 1px solid var(--rule); letter-spacing: -.01em; }
.tq-q-group { margin: 0 0 8px; }
.tq-q-group + .tq-q-group { margin-top: 22px; }
.tq-q-group-label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: 600 12px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--bur-oak);
  padding: 0 0 8px;
}
.tq-q-group-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fescue); margin-right: -2px; }
.tq-q-group-label span:first-child { flex: 1; }
.tq-q-group-label .tq-num { flex: none; text-align: right; }
.tq-q-group-label .tq-num { letter-spacing: .02em; color: var(--ink-2); }
.tq-q-group[data-cat="lighting"] .tq-q-group-label {
  background: var(--dusk); color: var(--paper); padding: 9px 12px; border-radius: var(--r-sm); margin-bottom: 4px;
}
.tq-q-group[data-cat="lighting"] .tq-q-group-label::before { background: var(--brass); box-shadow: 0 0 0 3px rgba(184, 137, 61, .25); }
.tq-q-group[data-cat="lighting"] .tq-q-group-label .tq-num { color: #E8D9BC; }
.tq-q-items { list-style: none; margin: 0; padding: 0; }
.tq-q-item {
  display: grid; grid-template-columns: 1fr auto; gap: 3px 16px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.tq-q-group[data-cat="lighting"] .tq-q-item { border-left: 2px solid var(--brass); padding-left: 12px; }
.tq-q-item-name { font: 600 17px/1.3 var(--f-ui); margin: 0; }
.tq-q-item-total { font: 600 17px/1.3 var(--f-ui); text-align: right; grid-column: 2; grid-row: 1; }
.tq-q-item-calc { grid-column: 1 / -1; font-size: 14px; line-height: 1.4; color: var(--ink-2); font-weight: 600; }
.tq-q-item-desc { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 2px 0 0; max-width: 56ch; }
.tq-q-item-min { grid-column: 1 / -1; font: 600 13px/1.3 var(--f-ui); color: var(--bur-oak); }
.tq-q-item:has(.tq-edit) .tq-q-item-calc { grid-column: 1; }
.tq-q-item .tq-edit { grid-column: 2; grid-row: 2; justify-self: end; align-self: start; padding: 0 0 0 12px; min-height: 0; line-height: 1.4; }
.tq-q-footnote { font-size: 14px; line-height: 1.45; color: var(--ink-2); font-style: italic; margin: 10px 0 0 14px; }

.tq-q-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tq-q-photos figure { margin: 0; }
.tq-q-photos figure:first-child { grid-column: 1 / -1; }
.tq-q-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--rule); }
.tq-q-photos figure:first-child img { aspect-ratio: 3 / 2; }
.tq-q-photos figcaption { font-size: 13px; line-height: 1.35; color: var(--ink-2); margin-top: 6px; }

.tq-q-totals { margin: 0; }
.tq-q-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; font-size: 16px; }
.tq-q-row dt { color: var(--ink-2); }
.tq-q-row dd { margin: 0; font-weight: 600; }
.tq-q-row--total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 14px; }
.tq-q-row--total dt { font: 600 22px/1 var(--f-display); color: var(--ink); }
.tq-q-row--total dd { font: 600 34px/1 var(--f-display); letter-spacing: -.01em; font-variation-settings: "opsz" 60; font-variant-numeric: tabular-nums lining-nums; }
.tq-q-tax { font-size: 14px; color: var(--ink-2); margin: 4px 0 0; text-align: right; }
.tq-q-deposit-preview {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; padding: 14px 16px; border-radius: var(--r);
  background: var(--limestone); border-left: 4px solid var(--brass);
}
.tq-q-deposit-preview span { font: 600 15px/1.3 var(--f-ui); }
.tq-q-deposit-preview strong { font: 600 22px/1 var(--f-display); font-variant-numeric: tabular-nums lining-nums; }
.tq-q-balance { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 10px 0 0; }
.tq-q-balance b { color: var(--ink); font-variant-numeric: tabular-nums; }

.tq-q-start p { font-size: 16px; line-height: 1.6; margin: 0; max-width: 60ch; }
.tq-q-covered { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tq-q-covered li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.45; }
.tq-q-covered li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--oak-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%232E4A3B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.tq-q-change { margin-top: 28px; padding: 16px; border: 1px solid var(--rule); border-radius: var(--r); background: rgba(239, 233, 220, .6); font-size: 16px; line-height: 1.55; }
.tq-q-change a { font-weight: 600; white-space: nowrap; }

.tq-q-foot { margin-top: 40px; padding-top: 16px; border-top: 2px solid var(--bur-oak); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.tq-q-foot p { margin: 0 0 6px; }
.tq-q-foot a { color: var(--ink-2); }
.tq-q-tagline { font: italic 400 17px/1.3 var(--f-display); color: var(--bur-oak); }
.tq-q-sample-line { margin-top: 12px !important; padding-top: 10px; border-top: 1px dashed var(--rule-strong); font-size: 13px; }
.tq-q-sample-line .tq-badge { margin-right: 8px; vertical-align: 1px; }

/* signed stamp on the quote */
.tq-q-signed-stamp {
  display: inline-grid; gap: 4px; margin-top: 14px; padding: 10px 14px 10px;
  border: 1.5px solid var(--bur-oak); border-radius: var(--r-sm); background: var(--white-warm);
}
.tq-q-signed-stamp img { height: 56px; width: auto; }
.tq-q-signed-stamp span { font: 600 13px/1.3 var(--f-ui); color: var(--bur-oak); letter-spacing: .02em; }

/* ---------- H. approve and sign ---------- */
.tq-sign { margin-top: 40px; }
.tq-sign-lead { font-size: 16px; line-height: 1.55; margin: 0 0 16px; }
.tq-consent {
  margin: 0 0 18px; padding: 14px 16px;
  background: var(--white-warm); border: 1px solid var(--rule); border-left: 4px solid var(--bur-oak); border-radius: var(--r-sm);
  font: 600 16px/1.5 var(--f-ui);
}
.tq-consent b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tq-pad {
  position: relative; height: 210px; margin-top: 4px;
  background: var(--white-warm); border: 1.5px dashed var(--rule-strong); border-radius: var(--r);
  touch-action: none; overflow: hidden;
}
.tq-pad.is-drawing, .tq-sign[data-state="signed"] .tq-pad { border-style: solid; border-color: var(--bur-oak); }
.tq-pad-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.tq-pad-line { position: absolute; left: 20px; right: 20px; bottom: 54px; height: 1.5px; background: var(--ink-2); opacity: .55; pointer-events: none; }
.tq-pad-x { position: absolute; left: 22px; bottom: 60px; font: 400 26px/1 var(--f-display); color: var(--ink-2); pointer-events: none; }
.tq-pad-prompt {
  position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; pointer-events: none;
  font: 600 15px/1 var(--f-ui); color: var(--ink-2); letter-spacing: .02em;
}
.tq-pad-prompt svg { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }
.tq-sign[data-state="signed"] .tq-pad-prompt, .tq-pad.has-ink .tq-pad-prompt { opacity: 0; }
.tq-pad-clear { position: absolute; top: 6px; right: 6px; z-index: 2; }
.tq-legal { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 10px 0 18px; }
.tq-hint { font-size: 14px; color: var(--ink-2); text-align: center; margin: 10px 0 0; }
.tq-add-signer { display: block; margin: 8px auto 0; }
.tq-sign-success { text-align: left; padding: 20px; border-radius: var(--r-lg); background: var(--oak-tint); }
.tq-sign-success h3 { font: 600 24px/1.2 var(--f-display); color: var(--bur-oak); margin: 12px 0 6px; }
.tq-sign-success p { margin: 0; font-size: 16px; line-height: 1.5; }
.tq-seal { width: 48px; height: 48px; border-radius: 50%; background: var(--bur-oak); color: var(--paper); display: grid; place-items: center; }
.tq-seal svg { width: 26px; height: 26px; }
.tq-sign-error { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--clay-tint); color: #7E3F2A; font-weight: 600; font-size: 15px; }

/* state switches: the engine flips data-state, the stylesheet shows the right block */
.tq-sign .tq-when-empty, .tq-sign .tq-when-signed, .tq-sign .tq-when-saved, .tq-sign .tq-when-error,
.tq-deposit .tq-when-locked, .tq-deposit .tq-when-open, .tq-deposit .tq-when-paid, .tq-deposit .tq-when-failed { display: none; }
.tq-sign[data-state="empty"] .tq-when-empty,
.tq-sign[data-state="signed"] .tq-when-signed,
.tq-sign[data-state="saved"] .tq-when-saved,
.tq-sign[data-state="error"] .tq-when-error, .tq-sign[data-state="error"] .tq-when-signed,
.tq-deposit[data-state="locked"] .tq-when-locked,
.tq-deposit[data-state="open"] .tq-when-open,
.tq-deposit[data-state="paid"] .tq-when-paid,
.tq-deposit[data-state="failed"] .tq-when-failed, .tq-deposit[data-state="failed"] .tq-when-open { display: block; }
.tq-sign[data-state="saved"] .tq-sign-form { display: none; }

/* ---------- I. the deposit: calm, obvious, honest ---------- */
.tq-deposit {
  margin-top: 36px; padding: 22px 18px 20px;
  background: var(--white-warm); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: 0 1px 0 var(--rule);
}
.tq-deposit .tq-q-h { border-top: 0; padding-top: 0; }
.tq-deposit-amount { font: 600 46px/1 var(--f-display); letter-spacing: -.01em; color: var(--ink); margin: 2px 0 12px; font-variation-settings: "opsz" 60; font-variant-numeric: tabular-nums lining-nums; }
.tq-deposit[data-state="locked"] .tq-deposit-amount { color: var(--ink-2); }
.tq-deposit-explain { font-size: 16px; line-height: 1.55; margin: 0 0 20px; max-width: 52ch; }
.tq-deposit-explain b { font-variant-numeric: tabular-nums; }
.tq-onspot { font: 600 15px/1.45 var(--f-ui); color: var(--bur-oak); margin: 0 0 14px; }
.tq-deposit[data-state="failed"] .tq-onspot { display: none; }
.tq-safety { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
/* the honesty, made visible: where the money goes, three stops, no card field on the way */
.tq-money-path { list-style: none; margin: 20px 0 0; padding: 16px 8px 4px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr 1fr; position: relative; }
.tq-money-path::before { content: ""; position: absolute; top: 37px; left: 17%; right: 17%; height: 0; border-top: 1.5px dashed var(--rule-strong); }
.tq-money-path li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font: 600 13px/1.3 var(--f-ui); color: var(--ink-2); padding: 0 4px; }
.tq-money-path .tq-node { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--rule-strong); color: var(--ink-2); position: relative; z-index: 1; }
.tq-money-path li:nth-child(2) .tq-node { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tq-money-path li:nth-child(3) .tq-node { background: var(--bur-oak); border-color: var(--bur-oak); color: var(--paper); }
.tq-money-path svg { width: 20px; height: 20px; }
.tq-later { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 16px 0 0; }
.tq-locked-note { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--limestone); font: 600 15px/1.4 var(--f-ui); color: var(--ink-2); }
.tq-locked-note svg { flex: none; width: 22px; height: 22px; }
.tq-paid { padding: 18px; border-radius: var(--r); background: var(--bur-oak); color: var(--paper); }
.tq-paid p { margin: 12px 0 0; font-size: 17px; line-height: 1.5; }
.tq-paid .tq-seal { background: var(--paper); color: var(--bur-oak); }
.tq-paid-amount { font: 600 15px/1.3 var(--f-ui); color: #DCE5DE; margin-top: 10px; font-variant-numeric: tabular-nums; }
.tq-failed { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--clay-tint); border-left: 4px solid var(--clay); color: #6E3624; font-size: 15px; line-height: 1.45; }
.tq-sample-pay-note { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }

/* ---------- K. edge states ---------- */
.tq-quote > .tq-notice { margin-top: 22px; }
.tq-notice { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--ink); font-size: 16px; line-height: 1.5; }
.tq-notice--expired { border-left-color: var(--clay); background: var(--clay-tint); }
.tq-notice--replaced { border-left-color: var(--brass); }
.tq-notice--signed { border-left-color: var(--bur-oak); background: var(--oak-tint); }
.tq-notice--missing { max-width: 440px; margin: 64px auto; text-align: center; border-left-width: 1px; padding: 28px 20px; }

/* ---------- the quote inside the estimator's app (review / preview) ---------- */
.tq-quote--embedded { margin: 0 calc(-1 * var(--pad)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tq-quote--preview { font-size: 15px; }

/* ==========================================================================
   Tablet: the column widens, nothing else moves
   ========================================================================== */
@media (min-width: 600px) {
  :root { --pad: 24px; }
  .tq-main, .tq-progress, .tq-dock > * { max-width: 600px; margin-left: auto; margin-right: auto; }
  .tq-progress { padding-left: max(4px, calc((100% - 600px) / 2)); padding-right: max(24px, calc((100% - 600px) / 2)); max-width: none; }
  .tq-tabs { margin: 0; padding-left: 0; padding-right: 0; }
  .tq-photos { grid-template-columns: 1fr 1fr 1fr; }
  .tq-quote { padding: 44px 48px 40px; margin-top: 24px; margin-bottom: 40px; border-radius: 4px; box-shadow: var(--shadow-sheet); }
  .tq-quote--embedded { margin: 0; border: 1px solid var(--rule); border-radius: var(--r); padding: 28px 28px; box-shadow: none; }
  .tq-q-head { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .tq-q-head .tq-badge { order: 0; margin-top: 4px; }
  .tq-q-hero-photo { margin: 26px 0 0; }
  .tq-q-hero-photo img { border-radius: var(--r-sm); }
  .tq-q-meta { grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 36px; }
  .tq-q-meta div:first-child { grid-column: auto; }
  .tq-q-for { font-size: 42px; margin-top: 40px; }
  .tq-wordmark-name { font-size: 40px; }
  .tq-q-photos { grid-template-columns: 1fr 1fr; }
  .tq-q-row--total dd { font-size: 42px; }
  .tq-deposit { padding: 28px 28px 24px; }
  .tq-deposit-amount { font-size: 56px; }
  .tq-pad { height: 240px; }
  .tq-sign-actions { display: grid; grid-template-columns: 1fr; max-width: 420px; }
}

/* ==========================================================================
   Desktop and the office: the flow on the left, the live quote on the right
   ========================================================================== */
@media (min-width: 1000px) {
  .tq-app {
    display: grid;
    grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr auto;
    grid-template-areas: "header header" "banner banner" "progress preview" "main preview" "dock preview";
    min-height: 100vh;
    column-gap: 0;
  }
  .tq-header { grid-area: header; padding: 0 32px; }
  .tq-banner { grid-area: banner; }
  .tq-progress { grid-area: progress; top: 56px; padding: 14px 32px 10px 16px; max-width: none; margin: 0; }
  .tq-body { display: contents; }
  .tq-main { grid-area: main; max-width: none; margin: 0; padding: 8px 32px 40px; }
  .tq-dock { grid-area: dock; }
  .tq-dock > * { max-width: none; }
  .tq-tabs { top: 128px; }
  .tq-main, .tq-progress, .tq-dock { border-right: 1px solid var(--rule); }
  .tq-preview {
    display: block; grid-area: preview;
    position: sticky; top: 56px; align-self: start;
    height: calc(100vh - 56px); overflow: auto;
    padding: 28px 40px 48px;
    background: #E7E0D0;
  }
  .tq-preview-label { font: 600 12px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 auto 12px; max-width: 780px; display: flex; justify-content: space-between; }
  .tq-preview .tq-quote { margin: 0 auto; }
  /* the review screen already shows the quote in the flow: let it breathe */
  .tq-app.is-review { grid-template-columns: minmax(420px, 560px) minmax(0, 1fr); }
  .tq-photos { grid-template-columns: 1fr 1fr; }
  body.tq-customer .tq-quote { margin-top: 48px; padding: 56px 72px 48px; }
  .tq-toast { left: 32px; right: auto; bottom: 140px; width: 440px; }
}

@media (min-width: 1000px) {
  .tq-hide-wide { display: none !important; }
}

@media (min-width: 1600px) {
  .tq-app { grid-template-columns: 560px minmax(0, 1fr); }
}

/* ---------- motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  .tq *, .tq *::before, .tq *::after { transition: none !important; animation: none !important; }
}

@media print {
  @page { margin: 14mm 14mm 16mm; }
  body.tq { background: #fff; }
  .tq-header, .tq-progress, .tq-dock, .tq-banner, .tq-toast, .tq-keypad, .tq-main > :not(.tq-quote), .tq-btn, .tq-pad, .tq-pad-clear,
  .tq-edit, .tq-add-signer, .tq-money-path, .tq-later, .tq-hint, .tq-legal, .tq-sign-form { display: none !important; }
  .tq-app, .tq-body { display: block !important; }
  .tq-preview { display: block !important; position: static; height: auto; overflow: visible; padding: 0; background: none; }
  .tq-quote { max-width: none; margin: 0; padding: 0; box-shadow: none; border: 0; font-size: 11pt; }
  .tq-q-item, .tq-q-photos figure, .tq-q-totals, .tq-deposit, .tq-q-covered li { break-inside: avoid; }
  .tq-q-section { break-inside: auto; }
  .tq-deposit { border: 1px solid var(--rule); }
  a[href^="http"]::after { content: ""; }
}
