/* Ordens de Serviço — estilos do aplicativo */

:root {
  --paper: #F2F4F8;
  --surface: #FFFFFF;
  --surface-2: #E8ECF3;
  --ink: #1C3FAA;
  --ink-bg: #1C3FAA;
  --ink-press: #152F85;
  --ink-soft: #E4EAFA;
  --text: #172034;
  --muted: #566177;
  --faint: #8891A4;
  --line: #DCE1EA;
  --line-strong: #C3CAD8;
  --ok: #1B7349;
  --ok-soft: #DFF2E7;
  --draft: #8D520A;
  --draft-soft: #FAEED8;
  --danger: #B42F27;
  --danger-soft: #FBE6E4;
  --shadow: 0 1px 2px rgba(23, 32, 52, .05), 0 6px 16px -8px rgba(23, 32, 52, .14);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1421;
    --surface: #171F30;
    --surface-2: #111826;
    --ink: #A8BAFF;
    --ink-bg: #3B5BDB;
    --ink-press: #3250C4;
    --ink-soft: rgba(130, 155, 255, .16);
    --text: #E8ECF4;
    --muted: #A2ABBD;
    --faint: #6E798D;
    --line: #263049;
    --line-strong: #34405C;
    --ok: #73D3A4;
    --ok-soft: rgba(80, 200, 140, .14);
    --draft: #F0C27A;
    --draft-soft: rgba(240, 180, 90, .14);
    --danger: #FF8A80;
    --danger-soft: rgba(255, 120, 110, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 20px -10px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; }
/* Sensação de app: sem "puxar para recarregar" acidental e sem seleção de texto ao tocar em controles */
html, body { overscroll-behavior-y: none; }
.tabbar, .fab, .btn, .chip, .ticket, .stepper, .seg, .tool, .swatch, .font-pick, .icon-btn, .filters, .pick, .client-row, .list-row, .qa, .add-row, .sig-paper-btn {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Estrutura ---------- */
.view { max-width: 640px; margin: 0 auto; padding: 0 16px calc(108px + env(safe-area-inset-bottom)); outline: none; }
body[data-mode="focus"] .tabbar { display: none; }

.screen-head { padding: calc(env(safe-area-inset-top) + 22px) 0 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 500; min-width: 0; cursor: pointer; -webkit-user-select: none; user-select: none; }
.brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; font-size: 15px; }
.brand-name small { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--faint); }
.brand-name small .ico { width: 16px; height: 16px; }
.brand-mark { flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--ink-bg); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; font-stretch: 120%; overflow: hidden; }
.brand-mark.has-logo { width: 56px; height: 56px; background: #fff; border: 1px solid var(--line); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.brand-mark:not(.has-logo) + .brand-name small { color: var(--ink); font-weight: 600; }
.brand:active .brand-mark { transform: scale(.96); }
.title { margin: 16px 0 0; font-size: 32px; line-height: 1.05; font-weight: 750; font-stretch: 120%; letter-spacing: -.015em; }
.sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.focus-head {
  position: sticky; top: 0; z-index: 15;
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  margin: 0 -16px 4px; padding: calc(env(safe-area-inset-top) + 6px) 8px 6px;
  background: var(--paper);
}
.focus-title { text-align: center; font-weight: 700; font-stretch: 115%; font-size: 17px; line-height: 1.2; }
.focus-title small { display: block; font-size: 12px; font-weight: 500; font-stretch: 100%; color: var(--ok); height: 15px; opacity: 0; transition: opacity .3s; }
.focus-title small.show { opacity: 1; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--text); }
.icon-btn:active { background: var(--surface-2); }

/* ---------- Barra de abas ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center; gap: 4px;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.tabbar a { flex: 1; max-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; font-size: 12.5px; font-weight: 600; color: var(--faint); border-radius: 12px; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] .ico { stroke-width: 2.2; }

.fab {
  position: fixed; z-index: 21;
  right: max(16px, calc(50% - 304px));
  bottom: calc(80px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 22px 0 18px; border-radius: 18px;
  background: var(--ink-bg); color: #fff; font-weight: 700; font-size: 16.5px; font-stretch: 108%;
  box-shadow: 0 10px 24px -8px rgba(28, 63, 170, .55), 0 2px 4px rgba(23, 32, 52, .12);
}
.fab .ico { stroke-width: 2.4; }
.fab:active { background: var(--ink-press); transform: translateY(1px); }

/* ---------- Busca e filtros ---------- */
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; margin-bottom: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; color: var(--faint); }
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; color: var(--text); }
.search input::placeholder { color: var(--faint); }

.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 4px; }
.filters button { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.filters button span { color: var(--faint); font-weight: 500; margin-left: 3px; }
.filters button[aria-selected="true"] { background: var(--text); color: var(--paper); }
.filters button[aria-selected="true"] span { color: inherit; opacity: .7; }

.group-label { margin: 22px 4px 10px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- Ordem em forma de canhoto ---------- */
.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticket {
  --stub: 96px;
  position: relative; display: grid; grid-template-columns: var(--stub) 1fr;
  min-height: 104px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.ticket:active { transform: scale(.985); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: var(--stub); width: 18px; height: 18px; margin-left: -10px; border-radius: 50%; background: var(--paper); }
.ticket::before { top: -9px; }
.ticket::after { bottom: -9px; }
.stub { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; border-right: 2px dashed var(--line); text-align: center; }
.stub-prefix { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--faint); }
.stub-num { font-size: 27px; line-height: 1.05; font-weight: 800; font-stretch: 125%; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stub-date { margin-top: 5px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stub.draft { color: var(--draft); gap: 4px; }
.stub.draft .stub-num { font-size: 13.5px; font-stretch: 105%; letter-spacing: 0; color: var(--draft); }
.t-body { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 16px; min-width: 0; }
.t-client { font-size: 16.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-type { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.t-value { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.draft { background: var(--draft-soft); color: var(--draft); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.ticket.cancelada .stub-num, .ticket.cancelada .t-value { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 2px; }
.filters.tec { margin-top: 2px; }
.filters.tec button { font-size: 13.5px; padding: 6px 12px; }

/* ---------- Estados vazios e avisos ---------- */
.empty { text-align: center; padding: 28px 12px 12px; }
.empty h2 { margin: 22px 0 8px; font-size: 22px; font-weight: 700; font-stretch: 112%; line-height: 1.2; }
.empty p { margin: 0 auto 22px; max-width: 34ch; color: var(--muted); }
.empty .ticket { max-width: 300px; margin: 0 auto; text-align: left; transform: rotate(-2deg); }
.empty .ticket .t-body span { display: block; height: 10px; border-radius: 6px; background: var(--surface-2); }
.empty .ticket .t-body span + span { width: 60%; margin-top: 10px; }
.empty-small { color: var(--muted); text-align: center; padding: 24px 8px; margin: 0; }

.install-card { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 10px 4px; padding: 14px 6px 16px 16px; margin-bottom: 16px; background: var(--ink-soft); border-radius: 16px; }
.install-card > div { min-width: 0; padding-top: 2px; }
.install-card > .btn { grid-column: 1 / -1; justify-self: start; }
.install-card .icon-btn { margin-top: -8px; }
.install-card strong { display: block; font-size: 15px; }
.install-card span { display: block; font-size: 13.5px; color: var(--muted); }

.update-bar {
  position: fixed; z-index: 70; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 10px);
  max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px;
  background: var(--text); color: var(--paper); border-radius: 16px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45);
  animation: drop .35s cubic-bezier(.2, .9, .3, 1) both;
}
.update-bar > div { flex: 1; min-width: 0; }
.update-bar strong { display: block; font-size: 15px; }
.update-bar span { display: block; font-size: 13px; opacity: .75; }
@keyframes drop { from { transform: translateY(-120%); } to { transform: none; } }

.toast {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  background: var(--text); color: var(--paper); border-radius: 14px; font-size: 15px; font-weight: 500;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast span { flex: 1; }
.toast button { font-weight: 700; color: inherit; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 14px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center;
  transition: background-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; transform: none; }
.btn.primary { background: var(--ink-bg); color: #fff; }
.btn.primary:active { background: var(--ink-press); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost.danger { background: var(--surface); color: var(--danger); border-color: var(--line); }
.btn.light { background: var(--paper); color: var(--text); }
.btn.block { width: 100%; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14.5px; border-radius: 11px; }
.btn.big { min-height: 60px; font-size: 17.5px; border-radius: 16px; font-stretch: 108%; }
.btn.loading { pointer-events: none; }
.btn.loading .ico { display: none; }
.btn.loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--ink); font-weight: 600; font-size: 14.5px; padding: 6px 2px; }
.link.danger { color: var(--danger); }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.label { font-size: 14px; font-weight: 600; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 13px 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 13px;
  font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--ink-soft); }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
input[type="date"].input { min-height: 52px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-2 > .field { margin-bottom: 18px; }
.r-num { grid-template-columns: 112px 1fr; }
.r-city { grid-template-columns: 1fr 88px; }
.invalid .input, .invalid.sig-field, .invalid .chips { border-color: var(--danger); }
.invalid .label { color: var(--danger); }
.invalid .chips { border-radius: 14px; outline: 1.5px solid var(--danger); outline-offset: 6px; }

.money { display: flex; align-items: center; min-height: 52px; padding: 0 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 13px; }
.money:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--ink-soft); }
.money span { font-weight: 600; color: var(--muted); margin-right: 8px; }
.money input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; padding: 12px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 9px 16px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--text);
}
.chip[aria-checked="true"] { background: var(--ink-bg); border-color: var(--ink-bg); color: #fff; }
.chip.ghost { min-height: 36px; padding: 6px 12px 6px 9px; font-size: 14px; font-weight: 500; color: var(--muted); border-style: dashed; }
.chip.ghost .ico { width: 16px; height: 16px; }
.quick { margin-top: 4px; }
.quick > span { display: block; font-size: 13px; color: var(--faint); margin: 4px 0 8px; }

/* ---------- Editor (passos) ---------- */
.stepper { list-style: none; margin: 4px 0 22px; padding: 0; display: flex; align-items: center; gap: 6px; }
.stepper li { display: flex; align-items: center; gap: 6px; flex: 1; }
.stepper li:last-child { flex: none; }
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--line); }
.stepper li.done:not(:last-child)::after { background: var(--ink); opacity: .35; }
.stepper button { display: flex; align-items: center; gap: 8px; padding: 4px 2px; font-size: 14px; font-weight: 600; color: var(--faint); }
.stepper .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); font-size: 13.5px; font-weight: 700; }
.stepper .n .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.stepper li.on button { color: var(--text); }
.stepper li.on .n { background: var(--ink-bg); border-color: var(--ink-bg); color: #fff; }
.stepper li.done button { color: var(--muted); }
.stepper li.done .n { background: var(--ink-soft); border-color: transparent; color: var(--ink); }
@media (max-width: 400px) { .stepper li:not(.on) .lbl { display: none; } }

.step-title { margin: 0 0 6px; font-size: 25px; line-height: 1.15; font-weight: 750; font-stretch: 115%; letter-spacing: -.01em; }
.step-hint { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.step > .step-title + :not(.step-hint) { margin-top: 18px; }

.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.actionbar .inner { max-width: 608px; margin: 0 auto; display: flex; gap: 10px; }
.actionbar .btn { flex: 1; }
.actionbar .btn.back { flex: 0 0 56px; padding: 0; }

.add-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; margin-bottom: 18px; text-align: left; background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: 16px; }
.add-row strong { display: block; font-size: 16px; color: var(--ink); }
.add-row small { display: block; font-size: 13.5px; color: var(--muted); }
.add-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--ink-soft); color: var(--ink); }

.pick-list, .client-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.pick-list:empty, .client-list:empty { display: none; }
.pick-list li + li, .client-list li + li { border-top: 1px solid var(--line); }
.pick, .client-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; text-align: left; min-height: 68px; }
.pick:active, .client-row:active { background: var(--surface-2); }
.pick > .ico, .client-row > .ico { color: var(--faint); width: 20px; height: 20px; }
.pick-txt, .cr-txt { flex: 1; min-width: 0; }
.pick-txt strong, .cr-txt strong { display: block; font-size: 16px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-txt small, .cr-txt small { display: block; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-count { font-size: 13px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--ink-soft); color: var(--ink); font-weight: 800; font-size: 14px; font-stretch: 115%; }

.client-card { background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.cc-top { display: flex; align-items: center; gap: 12px; }
.cc-top strong { display: block; font-size: 18px; font-weight: 700; line-height: 1.25; }
.cc-top span { display: block; color: var(--muted); font-size: 14.5px; }
.cc-info { list-style: none; margin: 16px 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cc-info li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; overflow-wrap: anywhere; }
.cc-info .ico { width: 18px; height: 18px; color: var(--faint); margin-top: 2px; }

/* ---------- Campos de assinatura (no editor) ---------- */
.sig-field { background: #fff; color: #172034; border: 1.5px solid var(--line); border-radius: 18px; padding: 6px 18px 16px; margin-bottom: 14px; }
.sig-paper-btn { display: block; width: 100%; text-align: center; }
.sig-area { height: 116px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; }
.sig-area img { max-height: 108px; max-width: 100%; object-fit: contain; }
.sig-area .tap { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #EEF2FC; color: #1C3FAA; font-weight: 700; font-size: 15px; }
.sig-line { display: flex; align-items: flex-end; gap: 8px; border-bottom: 1.5px solid #8A93A3; }
.sig-x { font-size: 22px; line-height: 1; color: #8A93A3; transform: translateY(2px); }
.sig-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.sig-caption strong { display: block; font-size: 15.5px; }
.sig-caption span { display: block; font-size: 13.5px; color: #566177; }
.sig-field .pill.ok { background: #DFF2E7; color: #1B7349; }
.sig-field .redo { color: #1C3FAA; font-weight: 600; font-size: 14px; }

/* ---------- Painéis ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; }
.backdrop { position: absolute; inset: 0; background: rgba(10, 16, 30, .5); opacity: 0; transition: opacity .25s; }
.overlay.open .backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto;
  max-width: 640px; max-height: 94dvh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 24px 24px 0 0;
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .85, .25, 1);
}
.overlay.open .sheet { transform: none; }
.sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: var(--line-strong); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px 10px 6px 20px; }
.sheet-head h2 { margin: 0; font-size: 21px; font-weight: 750; font-stretch: 115%; }
.sheet-body { flex: 1; overflow-y: auto; padding: 10px 20px 8px; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; }
.sheet-foot .btn.ghost.danger:first-child:not(:last-child) { flex: 0 0 56px; padding: 0; }
.confirm-msg { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.form-sub { margin: 8px 0 12px; font-size: 16px; font-weight: 700; font-stretch: 110%; }
.cep-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: end; }
.cep-msg { margin: 0 0 18px; padding-bottom: 15px; font-size: 13.5px; color: var(--faint); line-height: 1.3; }
.cep-msg.ok { color: var(--ok); }
.cep-msg.warn { color: var(--draft); }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin: 0 0 20px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; background: var(--ink-soft); color: var(--ink); font-size: 13px; font-weight: 650; }

@media (prefers-reduced-motion: reduce) {
  .sheet, .backdrop, .toast, .ticket, .btn { transition: none; }
  .update-bar, .stamp { animation: none; }
}

/* ---------- Tela de assinatura ---------- */
.sig-overlay { background: #161D2C; color: #E8ECF4; opacity: 0; transition: opacity .2s; }
.sig-overlay.open { opacity: 1; }
.sig-modal {
  position: absolute; inset: 0; max-width: 960px; margin: 0 auto;
  display: grid; grid-template-rows: auto 1fr auto auto; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 8px) 14px calc(env(safe-area-inset-bottom) + 14px);
}
.sig-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 6px; }
.sig-head h2 { margin: 0; font-size: 18px; font-weight: 700; font-stretch: 112%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig-head .icon-btn { color: #E8ECF4; }
.sig-head .icon-btn:active { background: rgba(255, 255, 255, .1); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #B5BFD2; }
.seg button .ico { width: 18px; height: 18px; }
.seg button[aria-selected="true"] { background: #fff; color: #161D2C; }
@media (max-width: 520px) {
  .sig-head { grid-template-columns: 44px 1fr; }
  .sig-head .seg { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .seg button { justify-content: center; padding: 9px 12px; }
}
.sig-stage { position: relative; min-height: 180px; }
.sig-sheet { position: absolute; inset: 0; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); }
.sig-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sig-guide { position: absolute; left: 22px; right: 22px; bottom: 26%; display: flex; align-items: flex-end; gap: 10px; color: #9AA3B2; pointer-events: none; }
.sig-guide .x { font-size: 30px; line-height: .7; }
.sig-guide .line { flex: 1; border-bottom: 2px solid #CCD3DE; }
.sig-empty { position: absolute; left: 0; right: 0; top: 34%; margin: 0; text-align: center; color: #A8B0BE; font-size: 18px; pointer-events: none; transition: opacity .2s; }
.sig-rotate { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font-size: 12.5px; color: #A8B0BE; pointer-events: none; }
@media (orientation: landscape) { .sig-rotate { display: none; } }
.sig-typed { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 28px calc(26% + 4px); pointer-events: none; }
.typed-text { font-size: clamp(46px, 12vw, 96px); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: clip; max-width: 100%; }
.typed-text.placeholder { font-family: var(--font) !important; font-size: 18px; color: #A8B0BE !important; align-self: center; }
.sig-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sig-tools .spacer { flex: 1; }
.swatches, .font-picks { display: flex; gap: 8px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; background: var(--c); border: 3px solid #161D2C; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px #fff; }
.font-pick { min-width: 54px; height: 40px; padding: 0 10px; border-radius: 11px; background: rgba(255, 255, 255, .08); color: #E8ECF4; font-size: 24px; line-height: 1; }
.font-pick[aria-pressed="true"] { background: #fff; color: #161D2C; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 11px; background: rgba(255, 255, 255, .08); color: #E8ECF4; font-size: 14px; font-weight: 600; }
.tool .ico { width: 19px; height: 19px; }
.tool:disabled { opacity: .4; }
.sig-foot { display: grid; gap: 10px; }
.sig-name span { display: block; font-size: 13px; font-weight: 600; color: #A9B3C6; margin-bottom: 6px; }
.sig-name input { width: 100%; height: 50px; padding: 0 14px; border-radius: 13px; border: 1.5px solid transparent; background: rgba(255, 255, 255, .08); color: #fff; font-size: 16px; outline: none; }
.sig-name input:focus { border-color: #8EA6FF; }
.sig-name input::placeholder { color: #7F8AA0; }
.sig-save { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #CDD5E3; }
.sig-save input { width: 20px; height: 20px; accent-color: #3B5BDB; }
.sig-foot .btn.primary { background: #3B5BDB; }
.sig-foot .btn.primary:disabled { opacity: .4; }

@media (orientation: landscape) and (max-height: 600px) {
  .sig-modal { grid-template-columns: 1fr 270px; grid-template-rows: auto 1fr auto; grid-template-areas: "head head" "stage tools" "stage foot"; gap: 10px 14px; }
  .sig-head { grid-area: head; }
  .sig-stage { grid-area: stage; min-height: 0; }
  .sig-tools { grid-area: tools; align-content: start; }
  .sig-tools .spacer { display: none; }
  .sig-foot { grid-area: foot; align-content: end; }
}

/* ---------- Ordem pronta ---------- */
.done-banner { display: flex; align-items: center; gap: 16px; padding: 16px; margin: 2px 0 14px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.done-banner strong { display: block; font-size: 17px; }
.done-banner span:not(.stamp) { display: block; font-size: 14.5px; color: var(--muted); }
.stamp {
  flex: none; padding: 7px 10px; border: 2.5px solid currentColor; border-radius: 9px;
  color: var(--ok); font-weight: 800; font-stretch: 125%; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap;
  transform: rotate(-5deg); animation: stamp .55s cubic-bezier(.2, 1.5, .4, 1) .1s both;
}
@keyframes stamp { from { opacity: 0; transform: scale(1.9) rotate(-14deg); } to { opacity: 1; transform: scale(1) rotate(-5deg); } }
.share-card { margin-bottom: 18px; }
.share-sub { margin: 8px 0 12px; text-align: center; font-size: 13.5px; color: var(--muted); }
.share-card .row-2 .btn { padding: 0 12px; }
.more-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.more-actions .btn { padding: 0 8px; font-size: 15px; }

/* Pré-visualização do documento (espelha o PDF) */
.doc-preview { background: var(--surface-2); border-radius: 20px; padding: 14px; margin: 0 0 18px; }
.paper { container-type: inline-size; background: #fff; color: #1A2233; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 14px 30px -14px rgba(20, 32, 60, .35); }
.pp { --mm: calc(100cqw / 210); padding: calc(var(--mm) * 14); min-height: calc(var(--mm) * 297); font: 400 calc(var(--mm) * 3.5)/1.3 Helvetica, Arial, sans-serif; }
.pp-head { display: flex; justify-content: space-between; gap: calc(var(--mm) * 4); }
.pp-co { display: flex; gap: calc(var(--mm) * 5); min-width: 0; }
.pp-co img { height: calc(var(--mm) * 20); width: auto; max-width: calc(var(--mm) * 34); object-fit: contain; }
.pp-co b { display: block; font-size: calc(var(--mm) * 4.6); margin-bottom: calc(var(--mm) * 1.3); }
.pp-co span { display: block; font-size: calc(var(--mm) * 3); line-height: 1.32; color: #606A7C; overflow-wrap: anywhere; }
.pp-num { flex: none; text-align: right; }
.pp-num span { display: block; font-size: calc(var(--mm) * 3); color: #606A7C; }
.pp-num span:first-child { font-weight: 700; }
.pp-num b { display: block; margin: calc(var(--mm) * 1) 0; font-size: calc(var(--mm) * 7); line-height: 1.1; color: #1C3FAA; }
.pp-rule { position: relative; height: 1px; margin: calc(var(--mm) * 3) 0 calc(var(--mm) * 8); background: #DDE2EA; }
.pp-rule::before { content: ""; position: absolute; left: 0; top: -1px; width: calc(var(--mm) * 26); height: 3px; background: #1C3FAA; }
.pp-title { margin-bottom: calc(var(--mm) * 6); text-align: center; text-transform: uppercase; font-weight: 700; font-size: calc(var(--mm) * 4.8); }
.pp-sec { margin-bottom: calc(var(--mm) * 2); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: calc(var(--mm) * 3.2); }
.pp-box { margin-bottom: calc(var(--mm) * 6); padding: calc(var(--mm) * 5); background: #F4F6FA; border-radius: calc(var(--mm) * 2.2); }
.pp-box small { display: block; margin-bottom: calc(var(--mm) * .8); font-size: calc(var(--mm) * 2.65); color: #606A7C; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--mm) * 3.5) calc(var(--mm) * 6); }
.pp-grid.three { grid-template-columns: 1fr 1fr 1fr; margin-bottom: calc(var(--mm) * 3); }
.pp-grid > div { min-width: 0; overflow-wrap: anywhere; }
.pp-wide { grid-column: 1 / -1; }
.pp-desc p { margin: 0; min-height: calc(var(--mm) * 12); white-space: pre-wrap; overflow-wrap: anywhere; font-size: calc(var(--mm) * 3.7); line-height: 1.45; }
.pp-total { display: flex; align-items: center; justify-content: space-between; padding-block: calc(var(--mm) * 3.6); }
.pp-total span { font-weight: 700; font-size: calc(var(--mm) * 3.7); }
.pp-total b { font-size: calc(var(--mm) * 4.6); color: #1C3FAA; }
.pp-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--mm) * 8); }
.pp-sig { text-align: center; }
.pp-sig .area { position: relative; height: calc(var(--mm) * 30); display: flex; align-items: flex-end; justify-content: center; padding: 0 calc(var(--mm) * 8) calc(var(--mm) * 4.5); background: #F4F6FA; border-radius: calc(var(--mm) * 2.2); }
.pp-sig .area::after { content: ""; position: absolute; left: calc(var(--mm) * 8); right: calc(var(--mm) * 8); bottom: calc(var(--mm) * 6); height: 1px; background: #8A93A3; }
.pp-sig img { position: relative; z-index: 1; max-height: calc(var(--mm) * 21); max-width: 100%; }
.pp-sig b { display: block; margin-top: calc(var(--mm) * 2); font-size: calc(var(--mm) * 3.35); }
.pp-sig span { display: block; font-size: calc(var(--mm) * 2.8); color: #606A7C; }
.pp-sig em { display: block; font-style: normal; font-size: calc(var(--mm) * 2.5); color: #8A93A3; }

/* ---------- Acesso (entrada com PIN) ---------- */
.gate { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: var(--paper); }
.gate-inner {
  position: relative; max-width: 420px; min-height: 100%; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(env(safe-area-inset-top) + 44px) 20px calc(env(safe-area-inset-bottom) + 24px);
}
.gate-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.gate-brand .brand-mark { width: 64px; height: 64px; border-radius: 19px; font-size: 20px; }
.gate-brand .brand-mark.has-logo { width: 84px; height: 84px; border-radius: 22px; }
.gate-title { margin: 22px 0 6px; font-size: 28px; line-height: 1.1; font-weight: 750; font-stretch: 118%; letter-spacing: -.01em; }
.gate-sub { min-height: 22px; margin: 0 0 24px; max-width: 34ch; color: var(--muted); font-size: 15.5px; }
.gate-sub.err { color: var(--danger); font-weight: 600; }
.gate-back { position: absolute; left: 8px; top: calc(env(safe-area-inset-top) + 8px); }
.gate-list { list-style: none; width: 100%; margin: 0; padding: 0; text-align: left; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.gate-list li + li { border-top: 1px solid var(--line); }
.gate-user { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 74px; padding: 14px 16px; text-align: left; }
.gate-user:active { background: var(--surface-2); }
.gate-user .avatar { width: 48px; height: 48px; border-radius: 15px; }
.gate-user > .ico { color: var(--faint); width: 20px; height: 20px; }
.gate-form { width: 100%; text-align: left; }
.avatar.big { width: 72px; height: 72px; border-radius: 22px; font-size: 24px; }
.pin-dots { display: flex; gap: 18px; margin: 2px 0 30px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); transition: background-color .12s, border-color .12s; }
.pin-dots i.on { background: var(--ink-bg); border-color: var(--ink-bg); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 28px; justify-content: center; margin-bottom: 20px; }
.keypad button {
  width: 76px; height: 76px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow);
  font-size: 29px; font-weight: 600; font-stretch: 110%; font-variant-numeric: tabular-nums;
  -webkit-user-select: none; user-select: none; transition: background-color .1s, transform .08s;
}
.keypad button:active { background: var(--ink-soft); transform: scale(.94); }
.keypad button[data-k="del"] { background: none; box-shadow: none; color: var(--muted); display: grid; place-items: center; }
.keypad button[data-k="del"] .ico { width: 30px; height: 30px; }
@media (max-height: 700px) {
  .gate-inner { padding-top: calc(env(safe-area-inset-top) + 24px); }
  .keypad { grid-template-columns: repeat(3, 68px); gap: 12px 26px; }
  .keypad button { width: 68px; height: 68px; font-size: 26px; }
}

.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.user-chip { flex: none; padding: 3px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); }
.user-chip .avatar { width: 40px; height: 40px; border-radius: 50%; font-size: 13.5px; }
.me-card { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.me-card strong { display: block; font-size: 19px; font-weight: 700; }
.me-card span:not(.avatar) { display: block; color: var(--muted); }
.input.static { display: flex; align-items: center; gap: 10px; background: var(--surface-2); color: var(--text); font-weight: 600; }
.input.static .ico { width: 18px; height: 18px; color: var(--faint); }
.input:disabled { background: var(--surface-2); color: var(--muted); }

.keypad.off button { opacity: .35; pointer-events: none; }
.rec-code {
  width: 100%; margin: 4px 0 18px; padding: 18px 12px; border-radius: 16px; border: 2px dashed var(--line-strong);
  background: var(--surface); text-align: center; font-size: 28px; font-weight: 800; font-stretch: 118%;
  letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--ink); -webkit-user-select: all; user-select: all;
}
.gate-check { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 15px; text-align: left; }
.gate-check input { width: 22px; height: 22px; accent-color: var(--ink-bg); flex: none; }
.rec-input { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* ---------- Ordem cancelada ---------- */
.cancel-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin: 2px 0 14px; border-radius: 16px; background: var(--danger-soft); color: var(--danger); }
.cancel-banner strong { display: block; font-size: 15.5px; }
.cancel-banner span { display: block; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.pp-num .pp-cancel { margin-top: calc(var(--mm) * 1.5); color: #B42F27; font-weight: 700; font-size: calc(var(--mm) * 3.6); }

/* ---------- Administração ---------- */
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.group-head .group-title { margin: 0 4px; }
.input.mini { width: auto; min-height: 40px; padding: 6px 12px; font-size: 14.5px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat { padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.stat span { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.stat b { display: block; margin-top: 2px; font-size: 24px; font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tec-total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gap-top { margin-top: 12px; }
.gap-bottom { margin-bottom: 16px; }
.list-row.col { flex-direction: column; align-items: stretch; gap: 12px; }
.list-row.inativo { opacity: .6; }
.lr-txt small.warn { color: var(--draft); }
.switch-row { cursor: pointer; }
.field-switch { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.switch {
  flex: none; position: relative; width: 50px; height: 30px; margin: 0; border-radius: 999px; cursor: pointer;
  background: var(--line-strong); -webkit-appearance: none; appearance: none; transition: background-color .15s;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch:checked { background: var(--ink-bg); }
.switch:checked::after { transform: translateX(20px); }
.check-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 500; }
.check-list li .ico { width: 19px; height: 19px; margin-top: 1px; }
.check-list li.ok { background: var(--ok-soft); color: var(--ok); }
.check-list li.warn { background: var(--draft-soft); color: var(--draft); }
.log-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.log-list li { display: flex; gap: 12px; padding: 11px 16px; font-size: 14px; }
.log-list li + li { border-top: 1px solid var(--line); }
.log-list time { flex: none; width: 82px; color: var(--faint); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 1px; }
.log-list span { min-width: 0; overflow-wrap: anywhere; }
.log-list strong { font-weight: 650; }
.log-list em { font-style: normal; color: var(--muted); }
.log-list small { display: block; color: var(--faint); font-size: 12.5px; }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ---------- Ajustes ---------- */
.group { margin-bottom: 28px; }
.group-title { margin: 0 4px 4px; font-size: 18px; font-weight: 700; font-stretch: 112%; }
.group-hint { margin: 0 4px 12px; font-size: 14px; color: var(--muted); }
.group-title + .card { margin-top: 10px; }
.card { background: var(--surface); border-radius: 18px; padding: 18px 16px 2px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card.pad { padding-bottom: 16px; }
.logo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.logo-box { width: 76px; height: 76px; flex: none; display: grid; place-items: center; border-radius: 16px; background: #fff; border: 1.5px dashed var(--line-strong); color: var(--faint); overflow: hidden; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.logo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.list-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; text-align: left; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row:not(.static):active { background: var(--surface-2); }
.list-row > .ico:last-child { color: var(--faint); width: 20px; height: 20px; }
.list-row.add { color: var(--ink); font-weight: 650; }
.lr-txt { flex: 1; min-width: 0; }
.lr-txt strong { display: block; font-size: 15.5px; font-weight: 650; }
.lr-txt small { display: block; font-size: 13.5px; color: var(--muted); }
.lr-txt small.ok { color: var(--ok); }
.tag-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 13px; border-radius: 999px; background: var(--surface-2); font-size: 14.5px; font-weight: 550; }
.tag-list button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.tag-list button .ico { width: 16px; height: 16px; }
.tag-list button:active { background: var(--line); }
.add-inline { display: flex; gap: 8px; margin-bottom: 16px; }
.add-inline .input { min-height: 46px; padding: 10px 13px; }
.add-inline .btn { min-height: 46px; }
.next-preview { grid-column: 1 / -1; margin: -6px 0 16px; font-size: 14px; color: var(--muted); }
.next-preview b { color: var(--ink); font-stretch: 120%; font-variant-numeric: tabular-nums; }
.backup-status { margin: 0 0 12px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.sig-preview { display: grid; place-items: center; height: 120px; margin-bottom: 10px; padding: 10px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); }
.sig-preview img { max-height: 100%; object-fit: contain; }
