:root {
  --ink: #101820;
  --muted: #687078;
  --paper: #f4f2eb;
  --surface: #ffffff;
  --accent: #e8ff3d;
  --accent-dark: #bed51a;
  --orange: #ff6b35;
  --line: #dcded8;
  --success: #147d56;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.topbar {
  height: 76px;
  padding: 0 clamp(16px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  background: #ffffff;
}
.brand img { display: block; width: 250px; height: 54px; object-fit: contain; }
.session-bar { display: flex; gap: 16px; align-items: center; }
.session-identity { display: grid; text-align: right; line-height: 1.2; }
.session-identity strong { color: var(--ink); font-size: 14px; }
.session-identity small { color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-size: 10px; }

/* Ocupa a largura da tela, com a mesma margem lateral do topo. */
main { width: 100%; padding: 0 clamp(16px, 3vw, 48px); margin: 0 auto; flex: 1 0 auto; }
.welcome {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 7vw, 100px);
  align-items: center;
  padding: 70px 0;
}
h1 { margin: 12px 0 24px; max-width: 720px; font-size: clamp(50px, 7vw, 90px); line-height: .92; letter-spacing: -5px; }
h1 span { color: var(--orange); }
h2 { font-size: 38px; letter-spacing: -1.5px; margin: 0; }
h3 { margin: 0 0 6px; font-size: 21px; }
.eyebrow { color: var(--orange); font-weight: 850; letter-spacing: 2px; font-size: 12px; }
.lead { max-width: 620px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.muted { color: var(--muted); margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 18px 50px rgba(16,24,32,.06); }
.auth-card h2 { margin-bottom: 8px; }
.admin-entry { margin: 18px 0 0; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: underline; }
.otp-help { margin: 0; padding: 12px 14px; border-radius: 10px; background: #f1f7b8; color: #303607; line-height: 1.5; }
form { display: grid; gap: 18px; margin-top: 24px; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 750; }
input, select { width: 100%; border: 1px solid #c7cbc4; border-radius: 10px; background: #fafbf8; padding: 13px 14px; outline: none; }
input:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232,255,61,.55); }
input[readonly] { color: #4f565b; background: #ecefeb; cursor: not-allowed; }
.button { border: 0; border-radius: 10px; padding: 13px 18px; font-weight: 800; }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: #29343d; }
.button-ghost { background: transparent; border: 1px solid currentColor; color: inherit; }
.button-danger { background: #b42318; color: white; }
.button-danger:hover { background: #8f1c14; }
.message { min-height: 24px; margin: 14px 0 0; font-weight: 700; }
.message.error { color: #b42318; }
.message.success { color: var(--success); }

#app-panel {
  padding: 56px 0 40px 220px;
  min-height: 620px; /* o menu lateral é absoluto: evita o rodapé subir por baixo dele */
  position: relative;
}
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.summary-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.summary-chip { background: var(--ink); color: white; padding: 12px 16px; border-radius: 12px; min-width: 125px; }
.summary-chip strong { display: block; color: var(--accent); font-size: 20px; }
.summary-chip span { font-size: 12px; color: #c9ced0; }
#app-panel > .card { margin-bottom: 18px; }
.workspace-menu {
  position: absolute;
  top: 56px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 190px;
  margin: 0;
  padding: 12px;
  overflow: visible;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16, 24, 32, .04);
}
.menu-button {
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  text-align: left;
}
.menu-button:hover { background: var(--paper); color: var(--ink); }
.menu-button.active { background: var(--ink); color: var(--accent); }
.account-details { display: grid; gap: 12px; margin-top: 22px; }
.account-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.account-row span { color: var(--muted); }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.admin-settings-form { max-width: 900px; grid-template-columns: 1fr auto auto; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.inline-form { grid-template-columns: 1fr auto; align-items: end; max-width: 620px; }
.input-action { display: flex; gap: 8px; }
.input-action input { min-width: 0; flex: 1; }
.route-map { height: 300px; margin-top: 20px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #e8ece6; }
.route-quote { display: flex; flex-direction: column; justify-content: center; min-height: 48px; color: var(--muted); line-height: 1.45; }
.route-quote strong { color: var(--ink); font-size: 19px; }
.leaflet-container { font: inherit; }
.badge { display: inline-flex; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 850; background: #fff4c7; color: #765c00; }
.badge.active { background: #d9f7e9; color: #087047; }
.badge.rejected { background: #ffe0dc; color: #a52617; }
.order-list { display: grid; gap: 12px; margin-top: 22px; }
.empty { text-align: center; color: var(--muted); padding: 38px 10px; }
.order {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.order h4 { margin: 0 0 8px; }
.route { color: var(--muted); margin: 0; line-height: 1.7; }
.order-money { text-align: right; }
.order-money strong { display: block; font-size: 22px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.status { display: inline-block; margin-bottom: 9px; text-transform: uppercase; letter-spacing: .8px; font-size: 10px; font-weight: 900; color: var(--orange); }
footer.site-footer {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 22px 20px; margin-top: 8px;
  border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: 12px;
}
footer.site-footer strong { color: var(--ink); }
.footer-dot { color: var(--orange); font-weight: 900; }

@media (max-width: 800px) {
  .welcome { grid-template-columns: 1fr; padding: 48px 0; }
  h1 { letter-spacing: -3px; }
  .section-heading, .card-heading { align-items: stretch; flex-direction: column; }
  #app-panel { padding: 32px 0 40px; min-height: 0; }
  .workspace-menu {
    position: static;
    width: 100%;
    flex-direction: row;
    margin: 0 0 22px;
    overflow-x: auto;
  }
  .menu-button { width: auto; flex: 0 0 auto; }
  .form-grid, .inline-form { grid-template-columns: 1fr; }
  .admin-settings-form { grid-template-columns: 1fr; }
  .account-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .order { grid-template-columns: 1fr; }
  .order-money { text-align: left; }
  .actions { justify-content: flex-start; flex-wrap: wrap; }
  .session-bar .session-identity { display: none; }
  .brand img { width: 185px; height: 45px; }
}

/* Motoboys online no mapa */
.moto-marker { background: none; border: 0; }
.moto-marker svg { width: 38px; height: 38px; filter: drop-shadow(0 2px 3px rgba(16, 24, 32, .35)); }
.map-caption { margin: 8px 0 0; font-size: 13px; }

/* Contador de motoboys online no menu lateral */
.online-widget { margin-top: 12px; display: grid; gap: 8px; }
.live-card {
  position: relative; overflow: hidden;
  display: grid; gap: 2px;
  padding: 14px 14px 13px;
  border-radius: 12px;
  background: radial-gradient(120% 140% at 100% 0%, #2a3540 0%, var(--ink) 60%);
  color: #fff;
}
.live-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase;
  color: #c9ced0; margin-bottom: 6px;
}
.live-count { font-size: 34px; line-height: 1; color: var(--accent); font-weight: 900; letter-spacing: -1px; }
.live-label { font-size: 12px; color: #c9ced0; font-weight: 700; }
.live-mine {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border-radius: 12px;
  background: #fff3ec; border: 1px solid #ffd6c2;
}
.live-avatar { width: 34px; height: 34px; flex: 0 0 auto; }
.live-avatar svg { width: 34px; height: 34px; }
.live-mine strong { display: block; font-size: 13px; color: var(--ink); line-height: 1.2; }
.live-mine small { display: block; font-size: 11px; color: #b5420f; font-weight: 700; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa1a6; flex: 0 0 auto; }
.online-dot.on { background: #2ee07f; box-shadow: 0 0 0 0 rgba(46, 224, 127, .6); animation: online-pulse 1.8s infinite; }
@keyframes online-pulse {
  70% { box-shadow: 0 0 0 8px rgba(46, 224, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 224, 127, 0); }
}
@media (prefers-reduced-motion: reduce) { .online-dot.on { animation: none; } }
@media (max-width: 800px) {
  .online-widget { margin: 0 0 0 6px; flex: 0 0 auto; display: flex; }
  .live-card { padding: 8px 12px; grid-template-columns: auto auto; align-items: center; column-gap: 8px; }
  .live-tag { display: none; }
  .live-count { font-size: 20px; }
  .live-mine { display: none; }
}

/* Status do frete: selo colorido + linha do tempo */
.order-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.order-status small { font-size: 12px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-awaiting_payment { background: #fff4c7; color: #7a5a00; }
.status-available { background: #e2edff; color: #1d4fa8; }
.status-accepted { background: #ece6ff; color: #5b34b8; }
.status-collected { background: #ffe9dd; color: #b5420f; }
.status-delivered { background: #d9f7e9; color: #087047; }
.status-cancelled { background: #f0f0ee; color: #6b6f73; }
.order-accepted, .order-collected { border-color: #ffc9ad; }
.order-cancelled { opacity: .75; }

.timeline { display: flex; list-style: none; margin: 4px 0 14px; padding: 0; }
.step { position: relative; flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 3px; text-align: center; font-size: 11px; color: var(--muted); }
.step::before {
  content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--line);
}
.step:first-child::before { display: none; }
.step-dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.step-label { font-weight: 800; }
.step small { font-size: 10px; color: var(--muted); }
.step-done .step-dot { background: var(--success); border-color: var(--success); }
.step-done::before, .step-current::before { background: var(--success); }
.step-done .step-label { color: var(--ink); }
.step-current .step-dot { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 107, 53, .18); }
.step-current .step-label { color: var(--orange); }
.step-skipped { opacity: .45; }
.step-cancelled .step-dot { background: #b42318; border-color: #b42318; }
.step-cancelled .step-label { color: #b42318; }
@media (max-width: 560px) {
  .step-label { font-size: 10px; }
  .step small { display: none; }
}

/* Trajeto coleta → destino */
.route-card {
  margin: 4px 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #faf9f5;
  border: 1px solid var(--line);
}
.route-stop { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.route-stop strong { display: block; font-size: 15px; color: var(--ink); line-height: 1.35; }
.route-stop small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.route-label {
  display: block; margin-bottom: 2px;
  font-size: 10px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
}
.route-marker {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 12px; font-weight: 900;
}
.route-marker-a { background: var(--ink); color: var(--accent); }
.route-marker-b { background: var(--orange); color: #fff; }
.route-connector {
  position: relative; display: flex; align-items: center;
  min-height: 26px; margin: 2px 0 2px 13px; padding-left: 27px;
  border-left: 2px dashed #c9ccc4;
}
.route-connector span {
  font-size: 11px; font-weight: 800; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
}

/* Código de entrega */
.code-ticket {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; margin-bottom: 4px;
  border-radius: 12px;
  background: var(--ink); color: #fff;
}
.code-ticket .route-label { color: #c9ced0; }
.code-ticket small { display: block; margin-top: 8px; font-size: 12px; color: #c9ced0; }
.code-digits { display: flex; gap: 6px; margin-top: 4px; }
.code-digits span {
  display: grid; place-items: center;
  width: 38px; height: 44px; border-radius: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  font-size: 24px; font-weight: 900; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.code-copy { flex: 0 0 auto; color: #fff; border-color: rgba(255, 255, 255, .35); background: transparent; }
.code-copy:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 560px) {
  .code-ticket { flex-direction: column; align-items: flex-start; }
}

/* Janela de confirmação de entrega */
.code-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0; border: 0; border-radius: 18px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 70px rgba(16, 24, 32, .28);
}
.code-dialog::backdrop { background: rgba(16, 24, 32, .55); backdrop-filter: blur(3px); }
.code-dialog form { display: grid; gap: 12px; padding: 28px 26px 24px; text-align: center; }
.code-dialog h3 { margin: 0; font-size: 22px; }
.code-dialog p { margin: 0; }
.code-dialog-icon {
  justify-self: center; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: #fff3ec; font-size: 24px;
}
.code-dialog-destination:not(:empty) {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  text-align: left; padding: 12px 14px; border-radius: 12px;
  background: #faf9f5; border: 1px solid var(--line);
}
.code-dialog-destination strong { display: block; font-size: 14px; line-height: 1.35; }
.code-dialog-destination small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.code-inputs { display: flex; justify-content: center; gap: 10px; margin: 6px 0 0; }
.code-inputs input {
  width: 58px; height: 68px; padding: 0;
  border: 2px solid var(--line); border-radius: 12px;
  background: #faf9f5;
  text-align: center; font-size: 30px; font-weight: 900; color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s;
}
.code-inputs input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 107, 53, .18); background: #fff; }
.code-inputs.has-error input { border-color: #b42318; animation: code-shake .35s; }
@keyframes code-shake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) { .code-inputs.has-error input { animation: none; } }
.code-dialog-error { min-height: 18px; color: #b42318; font-size: 13px; font-weight: 700; }
.code-dialog-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.code-dialog-actions .button:disabled { opacity: .45; cursor: not-allowed; }

/* Alertas flutuantes */
.toast-stack {
  position: fixed; top: 92px; right: 24px; z-index: 2000;
  display: grid; gap: 10px; width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  position: relative; overflow: hidden; pointer-events: auto;
  display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 14px 16px;
  border-radius: 14px;
  background: var(--ink); color: #fff;
  box-shadow: 0 18px 45px rgba(16, 24, 32, .28);
  animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2);
}
.toast-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 20px; }
.toast-success .toast-icon { background: #18a957; }
.toast-body strong { display: block; font-size: 15px; color: var(--accent); }
.toast-body span { display: block; font-size: 13px; color: #c9ced0; margin-top: 2px; }
.toast-close { align-self: start; border: 0; background: none; color: #c9ced0; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.toast-close:hover { color: #fff; }
.toast-progress {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--accent); transform-origin: left;
  animation: toast-progress linear forwards;
}
.toast-success .toast-progress { background: #2ee07f; }
.toast-leaving { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }
@keyframes toast-progress { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .toast, .toast-leaving { animation: none; }
}
@media (max-width: 560px) {
  .toast-stack { top: auto; bottom: 16px; right: 16px; }
}

/* Solicitação de entrega em etapas */
textarea {
  width: 100%; font: inherit; resize: vertical; min-height: 84px;
  border: 1px solid #c7cbc4; border-radius: 10px; background: #fafbf8; padding: 13px 14px; outline: none;
}
textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232,255,61,.55); }
.span-2 { grid-column: span 2; }

.wizard-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  list-style: none; margin: 22px 0 0; padding: 0; counter-reset: none;
}
.wizard-steps li { position: relative; }
.wizard-steps li::after {
  content: ""; position: absolute; top: 17px; left: calc(50% + 24px); right: calc(-50% + 24px);
  height: 2px; background: var(--line);
}
.wizard-steps li:last-child::after { display: none; }
.wizard-steps li.done::after { background: var(--success); }
.wizard-steps button {
  display: grid; justify-items: center; gap: 6px; width: 100%;
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 12px; font-weight: 800; color: var(--muted);
}
.wizard-steps button:disabled { cursor: default; }
.wizard-steps button span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: 14px; font-weight: 900; transition: all .2s;
}
.wizard-steps li.current button { color: var(--ink); }
.wizard-steps li.current button span { background: var(--ink); border-color: var(--ink); color: var(--accent); box-shadow: 0 0 0 5px rgba(16, 24, 32, .08); }
.wizard-steps li.done button { color: var(--success); }
.wizard-steps li.done button span { background: var(--success); border-color: var(--success); color: #fff; font-size: 0; }
.wizard-steps li.done button span::before { content: "✓"; font-size: 16px; }

#order-form { margin-top: 22px; gap: 16px; }
.wizard-pickup .route-card { margin: 0; }
.wizard-panel { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; animation: wizard-in .25s ease; }
.wizard-panel[hidden] { display: none; }
.wizard-panel legend { padding: 0; margin-bottom: 14px; font-size: 18px; font-weight: 850; color: var(--ink); }
.wizard-panel .form-grid { display: grid; gap: 16px; }
@keyframes wizard-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .wizard-panel { animation: none; } }

.wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; }
.wizard-actions .button { min-width: 150px; }
.wizard-actions .button:disabled { opacity: .45; cursor: not-allowed; }
.wizard-error { margin: 0; min-height: 0; color: #b42318; font-size: 13px; font-weight: 700; }
.wizard-error:empty { display: none; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 750; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.selected { background: var(--ink); border-color: var(--ink); color: var(--accent); }

#wizard-summary { display: grid; gap: 10px; }
#wizard-summary .route-card { margin: 0; }
.summary-item { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: #faf9f5; }
.summary-item strong { display: block; font-size: 15px; }

.quote-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px; border-radius: 14px; background: var(--ink); color: #fff;
}
.quote-card .route-label { color: #c9ced0; }
.quote-main strong { display: block; font-size: 32px; line-height: 1.1; color: var(--accent); letter-spacing: -.5px; }
.quote-facts { display: flex; gap: 10px; }
.quote-facts span {
  display: grid; gap: 2px; padding: 8px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, .08); font-size: 11px; color: #c9ced0; text-align: center;
}
.quote-facts b { font-size: 15px; color: #fff; }
.quote-card.loading { justify-content: flex-start; color: #c9ced0; font-size: 14px; }
.quote-card.error { background: #ffe0dc; color: #a52617; font-weight: 700; font-size: 14px; }
.quote-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 800px) {
  .span-2 { grid-column: auto; }
  .wizard-actions .button { min-width: 0; flex: 1; }
  .quote-facts { width: 100%; }
  .quote-facts span { flex: 1; }
}

/* Admin: faturamento por motoboy */
.segmented { display: inline-flex; padding: 4px; gap: 2px; border-radius: 11px; background: #ecefeb; flex: 0 0 auto; }
.segmented button {
  border: 0; background: none; padding: 8px 13px; border-radius: 8px;
  font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer;
}
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(16, 24, 32, .12); }
.billing-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 18px; }
.billing-totals div { padding: 14px 16px; border-radius: 12px; background: #faf9f5; border: 1px solid var(--line); }
.billing-totals span { display: block; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.billing-totals strong { display: block; margin-top: 4px; font-size: 22px; color: var(--ink); }
.billing-totals .accent { background: var(--ink); border-color: var(--ink); }
.billing-totals .accent span { color: #c9ced0; }
.billing-totals .accent strong { color: var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.billing-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.billing-table th {
  padding: 11px 14px; text-align: left; background: #faf9f5;
  font-size: 11px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.billing-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.billing-table tbody tr:last-child td { border-bottom: 0; }
.billing-table tbody tr:hover td { background: #fcfbf8; }
.billing-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.billing-table td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.billing-table .payable { color: var(--success); font-weight: 900; }
.billing-table .pix { font-size: 12px; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.billing-table tr.idle td { color: var(--muted); }
.billing-table .empty { text-align: center; padding: 28px; }
.share-bar { display: block; width: 120px; height: 4px; margin-top: 7px; border-radius: 4px; background: #ecefeb; overflow: hidden; }
.share-bar i { display: block; height: 100%; background: var(--orange); border-radius: 4px; }

/* Admin: tarifas */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.money-input { display: flex; align-items: center; border: 1px solid #c7cbc4; border-radius: 10px; background: #fafbf8; overflow: hidden; }
.money-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232,255,61,.55); }
.money-input i { padding: 0 0 0 13px; font-style: normal; font-weight: 800; color: var(--muted); }
.money-input.suffix i { padding: 0 13px 0 0; }
.money-input input { border: 0; background: transparent; box-shadow: none; font-weight: 800; font-size: 16px; }
.money-input input:focus { box-shadow: none; }
.pricing-preview { grid-column: 1 / -1; display: grid; gap: 8px; }
.billing-table.compact { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.billing-table.compact td { padding: 10px 14px; }
.pricing-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.pricing-actions .button { min-width: 180px; }

@media (max-width: 900px) {
  .billing-totals, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .billing-totals, .pricing-grid { grid-template-columns: 1fr; }
}
.wizard-map { margin-top: 0; }

/* Cadastro completo do motoboy */
.profile-form { display: grid; gap: 14px; margin-top: 22px; }
.profile-section {
  margin: 0; padding: 18px 18px 20px; min-width: 0;
  border: 1px solid var(--line); border-radius: 14px; background: #fcfbf8;
}
.profile-section legend {
  display: flex; align-items: center; gap: 9px; padding: 0 6px;
  font-size: 14px; font-weight: 900; color: var(--ink);
}
.profile-section legend span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: var(--accent); font-size: 12px;
}
.profile-section .form-grid { display: grid; gap: 14px; margin-top: 6px; }
.profile-note {
  margin: 0; padding: 12px 14px; border-radius: 12px;
  background: #fff8e1; color: #6b5300; font-size: 13px; line-height: 1.5;
}
.profile-actions { display: flex; justify-content: flex-end; }
.profile-actions .button { min-width: 200px; }
.profile-actions .button:disabled { opacity: .5; }

/* Identificação do motoboy para o cliente */
.vehicle-chip {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px;
  margin: 0 0 10px; padding: 8px 12px; border-radius: 10px;
  background: #ece6ff; color: #3d2380; font-size: 13px;
}
.plate {
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  background: #fff; border: 1.5px solid #1d3a8a; color: #101820;
  font-weight: 900; letter-spacing: 1px; font-size: 12px;
}

/* Códigos de coleta e entrega para o cliente */
.code-tickets { display: grid; gap: 10px; }
.code-ticket-pickup { background: #fff3ec; color: var(--ink); border: 1px solid #ffd6c2; }
.code-ticket-pickup .route-label { color: #b5420f; }
.code-ticket-pickup small { color: #7a4a33; }
.code-ticket-pickup .code-digits span { background: #fff; border-color: #ffc9ad; color: var(--orange); }
.code-ticket-pickup .code-copy { color: var(--ink); border-color: #ffc9ad; }
.code-ticket-pickup .code-copy:hover { background: #ffe9dd; }

/* Motoboy com entrega em andamento */
.busy-banner {
  padding: 12px 16px; border-radius: 12px;
  background: #fff3ec; border: 1px solid #ffd6c2; color: #7a3a14;
  font-size: 13px; font-weight: 700;
}
.order .button:disabled { opacity: .4; cursor: not-allowed; }

/* Admin: lista de fretes com abas, filtro e paginação */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin-toolbar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-bottom: 4px;
}
.admin-tabs button { display: inline-flex; align-items: center; gap: 7px; }
.admin-tabs .count {
  min-width: 22px; padding: 1px 7px; border-radius: 999px;
  background: rgba(16, 24, 32, .08); font-size: 11px; font-weight: 900; text-align: center;
}
.admin-tabs button.active .count { background: var(--ink); color: var(--accent); }
.day-filter { display: flex; align-items: center; gap: 8px; }
.day-filter input { width: auto; padding: 9px 12px; }
.day-filter .button { padding: 9px 14px; }
.order-people {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -2px 0 10px;
  font-size: 13px; color: var(--muted);
}
.order-people strong { color: var(--ink); }
.pager {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 6px; font-size: 13px; color: var(--muted);
}
.pager .button { padding: 9px 16px; }
.pager .button:disabled { opacity: .35; cursor: not-allowed; }
#order-list.is-loading { opacity: .55; transition: opacity .15s; pointer-events: none; }
@media (max-width: 560px) {
  .pager { justify-content: center; }
  .pager span { order: -1; width: 100%; text-align: center; }
}

/* Destinatário */
.wizard-subtitle {
  margin: 0 0 -4px; font-size: 12px; font-weight: 900; letter-spacing: .6px;
  text-transform: uppercase; color: var(--muted);
}
.recipient-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  margin: 10px 0 0 40px; padding: 10px 12px;
  border-radius: 10px; background: #fff; border: 1px solid var(--line);
  font-size: 14px;
}
.recipient-line .route-label { width: 100%; margin: 0; }
.recipient-actions { display: inline-flex; gap: 6px; margin-left: auto; }
.contact-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 12px; font-weight: 800; color: var(--ink); text-decoration: none; background: #faf9f5;
}
.contact-link:hover { border-color: var(--ink); }
.contact-link.whatsapp { background: #e7f9ee; border-color: #b9ecd0; color: #0b7a3e; }
.dialog-recipient { grid-column: 2; font-size: 12.5px; color: var(--ink); }
@media (max-width: 560px) {
  .recipient-line { margin-left: 0; }
  .recipient-actions { margin-left: 0; }
}

/* Situação do WhatsApp enviado a quem recebe */
.notify-status {
  display: inline-block; margin-top: 10px; padding: 6px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .08); color: #c9ced0; font-size: 12px; font-weight: 700;
}
.notify-status.ok { background: rgba(46, 224, 127, .14); color: #7cf0b0; }
.notify-status.error { background: rgba(255, 107, 53, .18); color: #ffb08f; }

.track-link { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.order-money .actions { flex-wrap: wrap; }

/* Configurações: campo de chave com ações na mesma linha */
.key-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin-top: 18px; max-width: 900px; }
.key-actions { display: flex; gap: 8px; }
.btn-with-icon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn-icon {
  width: 18px; height: 18px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.btn-outline-danger {
  background: transparent; color: #b42318; border: 1.5px solid #f1b7ae;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-outline-danger:hover { background: #b42318; border-color: #b42318; color: #fff; }
.key-actions .button-primary:hover { filter: brightness(1.15); }
.settings-divider { border: 0; border-top: 1px solid var(--line); margin: 26px 0 22px; }
@media (max-width: 700px) {
  .key-form { grid-template-columns: 1fr; }
  .key-actions .button { flex: 1; }
}

/* Saldo e saques (motoboy) */
.payout-balance { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 10px; margin: 22px 0 16px; }
.payout-balance div { padding: 14px 16px; border-radius: 12px; background: #faf9f5; border: 1px solid var(--line); }
.payout-balance span { display: block; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.payout-balance strong { display: block; margin-top: 4px; font-size: 20px; }
.payout-balance .balance-main { background: var(--ink); border-color: var(--ink); }
.payout-balance .balance-main span { color: #c9ced0; }
.payout-balance .balance-main strong { color: var(--accent); font-size: 28px; }
.payout-form {
  display: grid; grid-template-columns: 220px 1fr auto; align-items: end; gap: 14px; margin: 0 0 6px;
  padding: 16px; border-radius: 14px; border: 1px dashed #c9ccc4; background: #fcfbf8;
}
.payout-form[hidden] { display: none; }
.payout-pix strong { display: block; font-size: 14px; word-break: break-all; }
.payout-history-title { margin: 22px 0 10px; }
.payout-history { display: grid; gap: 12px; }
.payout-detail { font-size: 13px; color: var(--muted); }

/* Repasses (admin) */
.menu-badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px;
  border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 900;
}
.payout-totals { grid-template-columns: repeat(2, minmax(0, 260px)); }
.payout-list { display: grid; gap: 10px; margin-top: 14px; }
.payout-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: 14px;
}
.payout-who strong { display: block; font-size: 16px; }
.payout-who small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.payout-pix-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 700; }
.payout-amount { display: grid; justify-items: end; gap: 6px; }
.payout-amount > strong { font-size: 22px; }
.payout-amount .actions { margin-top: 4px; }
.payout-dialog-summary {
  display: grid; gap: 2px; padding: 14px; border-radius: 12px; background: #faf9f5; border: 1px solid var(--line);
}
.payout-dialog-summary strong { font-size: 28px; }
.payout-dialog-summary small { color: var(--muted); margin-top: 6px; }
.payout-dialog-pix { font-weight: 800; word-break: break-all; }
#payout-dialog label { text-align: left; }

@media (max-width: 800px) {
  .payout-balance { grid-template-columns: 1fr 1fr; }
  .payout-balance .balance-main { grid-column: 1 / -1; }
  .payout-form { grid-template-columns: 1fr; }
  .payout-row { grid-template-columns: 1fr; }
  .payout-amount { justify-items: start; }
}

/* Envio de documentos */
.doc-help { margin: 4px 0 12px; font-size: 13px; }
.doc-section { display: grid; gap: 4px; padding-top: 6px; }
.doc-section .muted { margin: 0 0 8px; font-size: 13px; }
.doc-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc-tile {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start;
  padding: 14px; border-radius: 14px; border: 1.5px dashed #c9ccc4; background: #fff;
}
.doc-tile.sent { border-style: solid; border-color: #b9ecd0; background: #f4fcf8; }
.doc-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: #faf9f5; border: 1px solid var(--line); font-size: 22px;
}
.doc-body strong { display: block; font-size: 14px; }
.doc-body small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.doc-status { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.doc-status.ok { background: #d9f7e9; color: #087047; }
.doc-status.missing { background: #fff4c7; color: #7a5a00; }
.doc-status.sending { background: #e2edff; color: #1d4fa8; }
.doc-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.doc-pick { cursor: pointer; padding: 9px 16px; font-size: 13px; }
.doc-pick.disabled { opacity: .5; pointer-events: none; }
.doc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.doc-chip-missing {
  display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px;
  background: #fff4c7; color: #7a5a00; font-size: 12px; font-weight: 800;
}
@media (max-width: 700px) { .doc-uploads { grid-template-columns: 1fr; } }

/* Faturamento: saldo a repassar */
.billing-totals { grid-template-columns: repeat(3, 1fr); }
.billing-totals .balance { background: #e7f9ee; border-color: #b9ecd0; }
.billing-totals .balance strong { color: #087047; }
.billing-totals small { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #7a5a00; }
.billing-table .requested { display: block; font-size: 11px; font-weight: 700; color: #7a5a00; }
.payout-totals { grid-template-columns: repeat(2, minmax(0, 260px)); }

/* A tela de login continua centralizada e com largura confortável de leitura. */
.welcome { max-width: 1180px; margin: 0 auto; }

/* Tarifas especiais por dia e horário */
.pricing-now {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 12px;
  background: #f4f8ff; border: 1px solid #d4e2fb; color: #1d3a6b; font-size: 14px;
}
.rule-form {
  display: grid; gap: 16px; margin-top: 16px; padding: 18px;
  border-radius: 14px; border: 1px solid var(--line); background: #fcfbf8;
}
.rule-form[hidden] { display: none; }
.rule-days { display: grid; gap: 8px; }
.day-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.day-chip { display: inline-flex; cursor: pointer; }
.day-chip input { position: absolute; opacity: 0; pointer-events: none; }
.day-chip span {
  padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-size: 13px; font-weight: 800; color: var(--muted); transition: all .15s;
}
.day-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.day-chip input:focus-visible + span { outline: 3px solid rgba(232, 255, 61, .8); }
.day-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; }
.rule-hours { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; }
.rule-hours label:not(.inline-check) { width: 150px; }
.rule-hours input:disabled { opacity: .45; }
.inline-check { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 800; cursor: pointer; padding-bottom: 12px; }
.inline-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.rule-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rule-actions { display: flex; justify-content: flex-end; gap: 10px; }
.rule-list { display: grid; gap: 10px; margin-top: 16px; }
.rule-item {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
}
.rule-item.live { border-color: #b9ecd0; background: #f4fcf8; }
.rule-item.paused { opacity: .6; }
.rule-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rule-title strong { font-size: 16px; }
.rule-days-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 4px; }
.day-tag { padding: 2px 8px; border-radius: 6px; background: #ecefeb; font-size: 11px; font-weight: 800; }
.rule-hours-text { display: block; font-size: 13px; font-weight: 700; }
.rule-values-text { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.rule-buttons { display: flex; align-items: center; gap: 8px; }
.contact-link.danger:hover { border-color: #b42318; color: #b42318; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #c9ccc4; transition: background .15s; }
.switch span::before {
  content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.switch input:checked + span { background: var(--success); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid rgba(232, 255, 61, .8); }
.holiday-form { display: grid; grid-template-columns: 200px 1fr auto; align-items: end; gap: 12px; margin-top: 16px; max-width: 760px; }
.holiday-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.holiday-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 8px 7px 12px;
  border-radius: 999px; background: #fff8e1; border: 1px solid #f3e3a5; font-size: 13px;
}
.holiday-chip button {
  border: 0; background: none; cursor: pointer; font-size: 17px; line-height: 1;
  color: #7a5a00; padding: 0 4px; border-radius: 50%;
}
.holiday-chip button:hover { background: #f3e3a5; }
.tariff-tag {
  display: inline-block; margin: 2px 0 4px; padding: 2px 9px; border-radius: 999px;
  background: #ece6ff; color: #5b34b8; font-size: 11px; font-weight: 900;
}
@media (max-width: 800px) {
  .rule-values { grid-template-columns: 1fr 1fr; }
  .rule-item { grid-template-columns: 1fr; }
  .holiday-form { grid-template-columns: 1fr; }
}
.day-chip { position: relative; }

/* Auditoria */
.audit-failed td { background: #fff5f3; }
.audit-ip { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--muted); }
#audit-body .billing-table td small { display: inline; }

/* ===== Quadro de valor do frete ===== */
.order { grid-template-columns: minmax(0, 1fr) 270px; align-items: start; }
.price-panel {
  display: grid; gap: 8px; align-content: start;
  padding: 16px; border-radius: 14px;
  background: #faf9f5; border: 1px solid var(--line);
}
.price-label { font-size: 11px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.price-total { font-size: 30px; line-height: 1; letter-spacing: -.5px; color: var(--ink); }
.price-panel .tariff-tag { justify-self: start; margin: 0; padding: 4px 10px; font-size: 11.5px; }
.tariff-tag.standard { background: #ecefeb; color: #4f565b; }
.price-breakdown { margin: 4px 0 0; padding-top: 10px; border-top: 1px dashed #d6d9d2; display: grid; gap: 6px; }
.price-breakdown div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.price-breakdown dt { color: var(--muted); }
.price-breakdown dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-breakdown .highlight { padding: 8px 10px; margin: 0 -6px; border-radius: 10px; background: #e7f9ee; }
.price-breakdown .highlight dt { color: #087047; font-weight: 800; }
.price-breakdown .highlight dd { color: #087047; font-size: 16px; }
.price-panel .actions { display: grid; gap: 8px; margin-top: 6px; justify-content: stretch; }
.price-panel .actions .button { width: 100%; text-align: center; }

/* ===== Celular e tablet ===== */
.table-wrap { -webkit-overflow-scrolling: touch; }
.segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { white-space: nowrap; flex: 0 0 auto; }

@media (max-width: 1000px) {
  .order { grid-template-columns: minmax(0, 1fr) 230px; }
}

@media (max-width: 800px) {
  /* Campos com 16px evitam o zoom automático do iPhone ao tocar. */
  input, select, textarea { font-size: 16px; }

  .topbar { height: 60px; gap: 10px; }
  .brand img { width: 150px; height: 38px; }
  .session-bar { gap: 8px; min-width: 0; }
  .session-bar .button { padding: 9px 14px; }
  #location-status { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; font-size: 11px; padding: 6px 9px; }

  /* Menu fixo no topo ao rolar, para trocar de página com o polegar. */
  .workspace-menu {
    position: sticky; top: 0; z-index: 60;
    padding: 8px; gap: 4px; border-radius: 14px;
    scrollbar-width: none;
  }
  .workspace-menu::-webkit-scrollbar { display: none; }
  .menu-button { padding: 10px 13px; font-size: 14px; }

  .section-heading { gap: 14px; margin-bottom: 18px; }
  h2 { font-size: 28px; letter-spacing: -1px; }
  h3 { font-size: 18px; }
  .summary-strip { gap: 8px; }
  .summary-chip { flex: 1 1 140px; min-width: 0; padding: 10px 12px; }
  .summary-chip strong { font-size: 18px; }

  .card { padding: 18px; border-radius: 18px; }
  #app-panel > .card { margin-bottom: 14px; }

  .order { grid-template-columns: 1fr; padding: 14px; gap: 12px; }
  .price-panel { grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
  .price-panel .price-label { grid-column: 1 / -1; }
  .price-panel .price-total { font-size: 26px; }
  .price-panel .tariff-tag { justify-self: end; }
  .price-breakdown, .price-panel .actions { grid-column: 1 / -1; }

  .timeline { margin-bottom: 10px; }
  .step-label { font-size: 10.5px; }
  .route-card { padding: 12px; }
  .route-stop strong { font-size: 14px; }
  .recipient-line { margin-left: 0; }
  .code-ticket { padding: 12px; }
  .code-digits span { width: 34px; height: 40px; font-size: 21px; }

  .admin-toolbar { align-items: stretch; }
  .admin-toolbar .segmented { width: 100%; }
  .day-filter { width: 100%; }
  .day-filter input { flex: 1; }

  .welcome { padding: 32px 0; gap: 24px; min-height: 0; }
  h1 { font-size: clamp(40px, 11vw, 60px); letter-spacing: -2px; }
  .lead { font-size: 16px; }

  footer.site-footer { padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); font-size: 11px; }
}

@media (max-width: 420px) {
  .brand img { width: 120px; }
  .card { padding: 14px; }
  .order { padding: 12px; }
  .step small { display: none; }
  .code-dialog form { padding: 22px 16px 18px; }
  .code-inputs { gap: 8px; }
  .code-inputs input { width: 52px; height: 62px; font-size: 26px; }
}
