/* ============================================================================
   Valmma Gastos · hoja de estilos
   Identidad corporativa Valmma Soluciones, S.L.
     · Rojo corporativo .... #DC2C39
     · Gris corporativo .... #5A5C63
   ========================================================================== */

:root {
  --vm-red: #DC2C39;
  --vm-red-dark: #B71F2B;
  --vm-red-soft: #FDECEE;
  --vm-gray: #5A5C63;
  --vm-gray-dark: #3E4045;
  --vm-gray-mid: #85878E;
  --vm-gray-soft: #F3F4F5;
  --vm-gray-line: #E2E5E9;
  --vm-white: #FFFFFF;
  --vm-ok: #1F8A54;
  --vm-ok-soft: #E8F5EE;
  --vm-warn: #C77700;
  --vm-warn-soft: #FFF6E5;
  --vm-info: #1F6FB2;
  --vm-info-soft: #EAF3FB;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --shadow-s: 0 1px 2px rgba(62, 64, 69, .08), 0 1px 3px rgba(62, 64, 69, .06);
  --shadow-m: 0 4px 14px rgba(62, 64, 69, .10), 0 2px 6px rgba(62, 64, 69, .06);
  --shadow-l: 0 18px 44px rgba(62, 64, 69, .16);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --header-h: 66px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--vm-gray-dark);
  background: var(--vm-gray-soft);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; color: var(--vm-gray-dark); letter-spacing: -.01em; }
p { margin: 0; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid rgba(220, 44, 57, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ layout */

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: var(--vm-white);
  border-bottom: 1px solid var(--vm-gray-line);
  box-shadow: var(--shadow-s);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.brand__mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  box-shadow: var(--shadow-s);
}

.brand__text { min-width: 0; }

.brand__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand__title span { color: var(--vm-red); }

.brand__sub {
  font-size: 11.5px;
  color: var(--vm-gray-mid);
  letter-spacing: .02em;
  white-space: nowrap;
}

.header-spacer { flex: 1 1 auto; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.app-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 20px 120px;
}

.app-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 40px;
  color: var(--vm-gray-mid);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.app-footer img { height: 22px; opacity: .75; }

/* ------------------------------------------------------------------ botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .16s, border-color .16s, color .16s, box-shadow .16s, transform .06s;
  background: var(--vm-gray-soft);
  color: var(--vm-gray-dark);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--vm-red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 44, 57, .28);
}
.btn--primary:hover:not([disabled]) { background: var(--vm-red-dark); }

.btn--dark { background: var(--vm-gray); color: #fff; }
.btn--dark:hover:not([disabled]) { background: var(--vm-gray-dark); }

.btn--ghost {
  background: transparent;
  border-color: var(--vm-gray-line);
  color: var(--vm-gray);
}
.btn--ghost:hover:not([disabled]) { background: var(--vm-gray-soft); border-color: var(--vm-gray-mid); }

.btn--danger { background: #fff; color: var(--vm-red); border-color: rgba(220, 44, 57, .35); }
.btn--danger:hover:not([disabled]) { background: var(--vm-red-soft); }

.btn--sm { padding: 7px 12px; font-size: 13px; border-radius: 7px; }
.btn--block { width: 100%; }

.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--vm-gray-line);
  background: #fff;
  color: var(--vm-gray);
  cursor: pointer;
  font-size: 15px;
  transition: background-color .16s, color .16s, border-color .16s;
}
.icon-btn:hover { background: var(--vm-gray-soft); color: var(--vm-red); border-color: var(--vm-gray-mid); }

/* ------------------------------------------------------------------ tarjetas */

.card {
  background: var(--vm-white);
  border: 1px solid var(--vm-gray-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 20px;
}

.card + .card { margin-top: 16px; }

.card__title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.card__hint { font-size: 13px; color: var(--vm-gray-mid); }

/* ------------------------------------------------------------------ cabecera de página */

.page-intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-intro__logo {
  width: 132px;
  flex: none;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--vm-gray-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
}
.page-intro__logo img { width: 100%; display: block; }
.page-intro__body { flex: 1 1 320px; min-width: 0; }
.page-intro h1 { font-size: 24px; margin-bottom: 6px; }
.page-intro p { color: var(--vm-gray); font-size: 14.5px; max-width: 62ch; }

/* ------------------------------------------------------------------ progreso */

.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}

.step {
  flex: 1 1 130px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-s);
  background: #fff;
  border: 1px solid var(--vm-gray-line);
  font-size: 12.5px;
  color: var(--vm-gray-mid);
  font-weight: 600;
  min-width: 0;
}
.step__num {
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--vm-gray-soft);
  color: var(--vm-gray-mid);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; flex: none;
}
.step__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step.is-active { border-color: var(--vm-red); color: var(--vm-red-dark); background: var(--vm-red-soft); }
.step.is-active .step__num { background: var(--vm-red); color: #fff; }
.step.is-done { border-color: rgba(31, 138, 84, .35); color: var(--vm-ok); background: var(--vm-ok-soft); }
.step.is-done .step__num { background: var(--vm-ok); color: #fff; }

/* ------------------------------------------------------------------ chat */

.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 8px;
}

.msg { display: flex; gap: 10px; max-width: 100%; }
.msg--bot { align-items: flex-start; }
.msg--user { justify-content: flex-end; }

.msg__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  box-shadow: var(--shadow-s);
  background: #fff;
}

.msg__bubble {
  background: #fff;
  border: 1px solid var(--vm-gray-line);
  border-radius: var(--radius-m);
  border-top-left-radius: 4px;
  padding: 14px 16px;
  box-shadow: var(--shadow-s);
  max-width: 660px;
  font-size: 14.5px;
}
.msg--user .msg__bubble {
  background: var(--vm-gray);
  color: #fff;
  border-color: var(--vm-gray);
  border-radius: var(--radius-m);
  border-top-right-radius: 4px;
}
.msg__bubble p + p { margin-top: 8px; }
.msg__bubble strong { font-weight: 700; }

.msg__meta {
  font-size: 11px;
  color: var(--vm-gray-mid);
  margin-top: 8px;
  letter-spacing: .01em;
}

.chat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chat-input {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--vm-gray-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
}
.chat-input textarea,
.chat-input input[type="text"] {
  flex: 1 1 auto;
  border: 0;
  resize: none;
  font: inherit;
  font-size: 14.5px;
  padding: 8px 4px;
  min-height: 40px;
  max-height: 130px;
  background: transparent;
  color: inherit;
}
.chat-input textarea:focus, .chat-input input:focus { outline: none; }

/* ------------------------------------------------------------------ subida */

.dropzone {
  border: 2px dashed var(--vm-gray-line);
  border-radius: var(--radius-m);
  background: #fff;
  padding: 26px 20px;
  text-align: center;
  transition: border-color .18s, background-color .18s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--vm-red); background: var(--vm-red-soft); }
.dropzone__icon { font-size: 30px; color: var(--vm-red); margin-bottom: 8px; }
.dropzone__title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.dropzone__hint { font-size: 13px; color: var(--vm-gray-mid); }

/* Consejos de fotografía (mejoran directamente la calidad de la lectura) */
.photo-tips {
  margin-top: 14px;
  border: 1px solid var(--vm-gray-line);
  border-radius: var(--radius-s);
  background: #fff;
  overflow: hidden;
}
.photo-tips summary {
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--vm-gray);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.photo-tips summary::-webkit-details-marker { display: none; }
.photo-tips summary::before {
  content: "▸";
  color: var(--vm-red);
  font-size: 12px;
  transition: transform .16s;
}
.photo-tips[open] summary::before { transform: rotate(90deg); }
.photo-tips summary:hover { background: var(--vm-gray-soft); }
.photo-tips ul {
  margin: 0;
  padding: 0 16px 4px 32px;
  font-size: 13px;
  color: var(--vm-gray);
  line-height: 1.6;
}
.photo-tips li { margin-bottom: 6px; }
.photo-tips li strong { color: var(--vm-gray-dark); }
.photo-tips__note {
  margin: 0;
  padding: 10px 16px 14px;
  font-size: 12.5px;
  color: var(--vm-gray-mid);
  border-top: 1px dashed var(--vm-gray-line);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.thumb {
  position: relative;
  background: #fff;
  border: 1px solid var(--vm-gray-line);
  border-radius: var(--radius-s);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.thumb img { width: 100%; height: 118px; object-fit: cover; display: block; background: var(--vm-gray-soft); }
.thumb__body { padding: 8px 9px 9px; }
.thumb__name {
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.thumb__badges { display: flex; flex-wrap: wrap; gap: 4px; }

.thumb__remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgba(62, 64, 69, .78);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.thumb__remove:hover { background: var(--vm-red); }

.thumb__spinner {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--vm-gray);
  font-weight: 600;
}

/* ------------------------------------------------------------------ badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: var(--vm-gray-soft);
  color: var(--vm-gray);
  border: 1px solid transparent;
}
.badge--factura { background: var(--vm-ok-soft); color: var(--vm-ok); }
.badge--ticket { background: var(--vm-info-soft); color: var(--vm-info); }
.badge--tarjeta { background: var(--vm-info-soft); color: var(--vm-info); }
.badge--efectivo { background: var(--vm-warn-soft); color: var(--vm-warn); }
.badge--duda { background: var(--vm-red-soft); color: var(--vm-red-dark); }
.badge--ok { background: var(--vm-ok-soft); color: var(--vm-ok); }
.badge--dup { background: #F0EAFB; color: #6B3FBF; }
.badge--pendiente { background: var(--vm-warn-soft); color: var(--vm-warn); }

/* ------------------------------------------------------------------ barra de progreso */

.progress-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: #fff;
  border: 1px solid var(--vm-gray-line);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  box-shadow: var(--shadow-m);
  margin-bottom: 16px;
}
.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--vm-gray-soft);
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--vm-red), #E8606A);
  border-radius: 999px;
  transition: width .3s ease;
}
.progress-detail { font-size: 12px; color: var(--vm-gray-mid); margin-top: 7px; }

/* ------------------------------------------------------------------ tabla de revisión */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--vm-gray-line);
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: var(--shadow-s);
}

table.review {
  border-collapse: collapse;
  width: 100%;
  min-width: 1180px;
  font-size: 12.5px;
}

table.review th {
  background: var(--vm-gray);
  color: #fff;
  text-align: left;
  padding: 9px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}
table.review th.col-num { width: 38px; text-align: center; }
table.review td {
  border-top: 1px solid var(--vm-gray-line);
  padding: 6px 6px;
  vertical-align: top;
}
table.review tr:nth-child(even) td { background: #FAFBFB; }
table.review tr.is-dup td { background: #F7F3FD; }
table.review tr.is-duda td { background: #FFF9F9; }
table.review tr.is-excluded td { opacity: .45; text-decoration: line-through; }

table.review td.col-num { text-align: center; font-weight: 700; color: var(--vm-gray-mid); }
table.review input[type="text"],
table.review input[type="date"],
table.review select {
  width: 100%;
  border: 1px solid var(--vm-gray-line);
  border-radius: 6px;
  padding: 5px 6px;
  font: inherit;
  font-size: 12.5px;
  background: #fff;
  color: inherit;
}
table.review input.is-pendiente,
table.review select.is-pendiente {
  border-color: var(--vm-warn);
  background: var(--vm-warn-soft);
}
table.review input:focus, table.review select:focus {
  border-color: var(--vm-red);
  outline: 2px solid rgba(220, 44, 57, .18);
}
table.review .cell-note {
  font-size: 10.5px;
  color: var(--vm-warn);
  margin-top: 3px;
  line-height: 1.35;
}
table.review .cell-tools { display: flex; flex-direction: column; gap: 4px; }
table.review img.cell-thumb {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--vm-gray-line);
  cursor: zoom-in;
  background: var(--vm-gray-soft);
}

/* ------------------------------------------------------------------ avisos */

.alert {
  display: flex;
  gap: 11px;
  padding: 13px 15px;
  border-radius: var(--radius-s);
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.alert__icon { flex: none; font-size: 15px; line-height: 1.35; }
.alert + .alert { margin-top: 10px; }
.alert--info { background: var(--vm-info-soft); border-color: rgba(31, 111, 178, .22); color: #17547F; }
.alert--warn { background: var(--vm-warn-soft); border-color: rgba(199, 119, 0, .25); color: #8A5300; }
.alert--error { background: var(--vm-red-soft); border-color: rgba(220, 44, 57, .25); color: var(--vm-red-dark); }
.alert--ok { background: var(--vm-ok-soft); border-color: rgba(31, 138, 84, .25); color: #146B40; }
.alert strong { font-weight: 700; }

/* ------------------------------------------------------------------ resumen */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.summary-stat {
  background: #fff;
  border: 1px solid var(--vm-gray-line);
  border-radius: var(--radius-s);
  padding: 13px 14px;
  box-shadow: var(--shadow-s);
}
.summary-stat__label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--vm-gray-mid); font-weight: 700; }
.summary-stat__value { font-size: 21px; font-weight: 700; margin-top: 3px; letter-spacing: -.02em; }
.summary-stat__value.is-red { color: var(--vm-red); }
.summary-stat__value.is-warn { color: var(--vm-warn); }

.kv-list { margin: 0; padding: 0; list-style: none; }
.kv-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--vm-gray-line);
  font-size: 13.5px;
}
.kv-list li:last-child { border-bottom: 0; }
.kv-list dt, .kv-list .k {
  flex: 0 0 44%;
  color: var(--vm-gray-mid);
  font-weight: 600;
}
.kv-list .v { flex: 1 1 auto; font-weight: 600; }

/* ------------------------------------------------------------------ entregables */

.deliverables { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 6px; }
.deliverable {
  border: 1px solid var(--vm-gray-line);
  border-radius: var(--radius-m);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.deliverable__head { display: flex; align-items: center; gap: 11px; }
.deliverable__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex: none;
  background: var(--vm-red-soft); color: var(--vm-red);
}
.deliverable__icon--pdf { background: var(--vm-info-soft); color: var(--vm-info); }
.deliverable__title { font-size: 14.5px; font-weight: 700; }
.deliverable__meta { font-size: 12px; color: var(--vm-gray-mid); }
.deliverable__desc { font-size: 13px; color: var(--vm-gray); flex: 1 1 auto; }

/* ------------------------------------------------------------------ modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(62, 64, 69, .55);
  backdrop-filter: blur(2px);
}
.modal.is-open { display: flex; }
.modal__box {
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--vm-gray-line);
}
.modal__title { font-size: 15.5px; font-weight: 700; }
.modal__body { padding: 16px 18px; overflow: auto; }
.modal__body img { width: 100%; border-radius: var(--radius-s); border: 1px solid var(--vm-gray-line); }
.modal__foot { padding: 13px 18px; border-top: 1px solid var(--vm-gray-line); display: flex; gap: 9px; justify-content: flex-end; }

/* ------------------------------------------------------------------ spinner */

.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(220, 44, 57, .22);
  border-top-color: var(--vm-red);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex: none;
}
.spinner--lg { width: 30px; height: 30px; border-width: 3.5px; }
.spinner--light { border-color: rgba(255,255,255,.4); border-top-color: #fff; }

@keyframes spin { to { transform: rotate(360deg); } }

.loading-row { display: flex; align-items: center; gap: 11px; color: var(--vm-gray); font-size: 13.5px; }

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 24px);
  background: var(--vm-gray-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-s);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-l);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 120;
  max-width: min(92vw, 520px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: var(--vm-red-dark); }
.toast--ok { background: var(--vm-ok); }

/* ------------------------------------------------------------------ barra fija inferior */

.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 35;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--vm-gray-line);
  box-shadow: 0 -3px 14px rgba(62, 64, 69, .08);
  padding: 11px 20px;
  display: none;
}
.action-bar.is-visible { display: block; }
.action-bar__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.action-bar__info { font-size: 13px; color: var(--vm-gray); flex: 1 1 200px; min-width: 0; }
.action-bar__info strong { color: var(--vm-gray-dark); }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .app-main { padding: 16px 13px 130px; }
  .app-header { padding: 0 13px; gap: 10px; }
  .brand__sub { display: none; }
  .brand__mark { width: 34px; height: 34px; }
  .page-intro h1 { font-size: 20px; }
  .page-intro__logo { width: 108px; }
  .card { padding: 16px; }
  .msg__bubble { font-size: 14px; padding: 12px 13px; }
  .step { flex: 1 1 46%; font-size: 11.5px; padding: 8px 9px; }
  .action-bar { padding: 10px 13px; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
  .thumb img { height: 96px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .modal { padding: 10px; }
  .btn { padding: 10px 14px; font-size: 14px; }
}

@media (max-width: 420px) {
  .summary-grid { grid-template-columns: 1fr; }
  .step__label { display: none; }
  .step { flex: 1 1 auto; justify-content: center; }
}

@media print {
  .app-header, .action-bar, .steps, .dropzone, .chat-input { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
