* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #app { max-width: 100%; min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss03", "tnum";
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
input, select, textarea { min-width: 0; width: 100%; }
button { cursor: pointer; }
button:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(99, 91, 255, 0.28);
  outline-offset: 2px;
}
.num { font-variant-numeric: tabular-nums; }

.launcher {
  align-items: center;
  background: radial-gradient(ellipse at 50% -20%, #1a2b50, #0a2540 60%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 48px 24px;
  position: relative;
}
.launcher::before {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 91, 255, 0.15), transparent 70%);
  content: "";
  height: 60vh;
  inset: 0 0 auto;
  pointer-events: none;
  position: absolute;
}
.launcher-mark {
  background: linear-gradient(135deg, #7a72ff, #635bff);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(99, 91, 255, 0.4);
  color: #fff;
  display: grid;
  font-size: 32px;
  font-weight: 800;
  height: 64px;
  letter-spacing: 0;
  margin-bottom: 24px;
  place-items: center;
  position: relative;
  width: 64px;
  z-index: 1;
}
.launcher h1 {
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}
.launcher .tag {
  color: #adbdcc;
  font-size: 15px;
  font-weight: 500;
  margin: 8px 0 10px;
  max-width: 520px;
  position: relative;
  text-align: center;
  z-index: 1;
}
.launcher-note {
  color: #7a8c9e;
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 660px;
  position: relative;
  text-align: center;
  z-index: 1;
}
.session-note {
  margin-bottom: 18px;
}
.session-note strong {
  color: #dce8f5;
}
.auth-launcher {
  justify-content: flex-start;
  min-height: 100vh;
  overflow: visible;
}
.login-panel {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  margin: 10px 0 24px;
  max-width: 420px;
  padding: 22px;
  position: relative;
  width: 100%;
  z-index: 1;
}
.login-panel .field {
  margin-bottom: 0;
}
.login-panel .field label,
.login-accounts h2,
.login-accounts p {
  color: #dce8f5;
}
.login-panel input {
  background: rgba(255, 255, 255, 0.92);
}
.auth-message {
  border-radius: 8px;
  font-weight: 700;
  margin: 4px 0 12px;
  max-width: 560px;
  padding: 10px 12px;
  position: relative;
  text-align: center;
  z-index: 1;
}
.auth-message.error {
  background: #fff2f2;
  color: #9f1d1d;
}
.auth-message.ok {
  background: #eefaf4;
  color: #17633e;
}
.login-accounts {
  max-width: 860px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.session-replacement {
  color: #dce8f5;
}

.session-replacement fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}

.session-replacement legend {
  font-weight: 700;
  margin-bottom: 6px;
}

.session-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.session-choice input {
  width: auto;
  margin-top: 4px;
}

.session-choice span,
.session-choice small {
  display: block;
}
.session-choice strong {
  color: #fff;
}
.session-choice small {
  color: #adbdcc;
}
.login-accounts h2 {
  font-size: 18px;
  margin-bottom: 4px;
  text-align: center;
}
.login-accounts p {
  color: #adbdcc;
  margin-bottom: 14px;
  text-align: center;
}
.account-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.account-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
}
.account-card span {
  color: #c3d0dd;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.auth-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.logout-form,
.topbar-form {
  display: inline-flex;
  position: relative;
  z-index: 1;
}
.role-groups {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 920px;
  position: relative;
  width: 100%;
  z-index: 1;
}
.profile-head {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
}
.profile-icon {
  border-radius: 12px;
  display: grid;
  flex: 0 0 auto;
  font-size: 22px;
  height: 44px;
  place-items: center;
  width: 44px;
}
.profile-name { color: #fff; font-size: 18px; font-weight: 700; }
.profile-desc { color: #adbdcc; font-size: 13px; margin-top: 2px; }
.role-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.role-card {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 148px;
  padding: 20px 18px;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.role-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.role-card .role-icon { font-size: 24px; }
.role-card strong { font-size: 15px; font-weight: 600; margin-top: 11px; }
.role-card span { color: #c3d0dd; font-size: 12px; line-height: 1.5; margin-top: 4px; }

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .tbtn, .icon-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--sh-sm);
  color: var(--ink-2);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
}
.topbar-form .icon-btn {
  width: auto;
}
.topbar-profile,
.topbar-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-short,
.bottom-nav .nav-label::after {
  display: none;
}
.urlbar {
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--mute);
  display: flex;
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  gap: 8px;
  min-width: 220px;
  overflow: hidden;
  padding: 7px 12px;
}
.dot { background: var(--green); border-radius: 99px; height: 6px; width: 6px; }
main[data-screen="role"]:not(.mobile-shell) {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.app-shell {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 0;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 12px;
}
.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 0 6px 10px;
}
.brand-mark {
  background: var(--primary);
  border-radius: 8px;
  color: #fff;
  display: grid;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 800;
  height: 32px;
  place-items: center;
  width: 32px;
}
.brand strong { display: block; font-size: 14px; }
.brand small, .user-card small { color: var(--mute); display: block; font-size: 12px; }
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  align-items: center;
  border-radius: 7px;
  color: var(--ink-2);
  display: flex;
  font-weight: 600;
  gap: 10px;
  padding: 9px 10px;
}
.nav-label {
  min-width: 0;
}
.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
}
.mobile-role-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 18px;
  scrollbar-width: thin;
}
.mobile-role-nav .nav-item {
  border: 1px solid var(--line);
  flex: 0 0 auto;
  min-height: 38px;
  white-space: nowrap;
}
.mobile-role-nav .nav-item.active {
  border-color: #dedbff;
}
.sidebar-foot {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 16px 10px 0;
}
.user-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 12px;
  padding: 12px;
}
.main {
  min-width: 0;
}
.page-head {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 26px 32px;
}
.page-title-copy { min-width: 0; }
.page-head h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
}
.page-head p { color: var(--mute); margin-top: 4px; }
.page-help {
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  cursor: help;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}
.page-help:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}
.content {
  display: grid;
  gap: 16px;
  padding: 24px 32px 44px;
}
.content > *, .grid, .card { min-width: 0; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--sh-sm);
  color: var(--ink);
  padding: 20px;
}
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { color: var(--ink-2); }
.kpi label {
  color: var(--mute);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.kpi strong { display: block; font-size: 30px; line-height: 1.1; }
.delta { color: var(--green); font-size: 13px; margin-top: 4px; }
.report-overview {
  display: grid;
  gap: 18px;
}
.report-overview-copy p {
  max-width: 72ch;
}
.report-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.report-metric {
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
}
.report-metric span {
  color: var(--mute);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.report-metric strong {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.1;
}
.report-metric small {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.report-nav {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.report-nav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 5px;
  min-height: 82px;
  min-width: 0;
  padding: 12px;
  text-decoration: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}
.report-nav a:hover {
  border-color: var(--primary);
  box-shadow: var(--sh-sm);
  transform: translateY(-1px);
}
.report-nav a:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.18);
  outline: 0;
}
.report-nav a span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.report-nav a strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}
.report-nav a small {
  color: var(--mute);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}
.report-block {
  display: grid;
  gap: 16px;
  min-width: 0;
  scroll-margin-top: 92px;
}
.report-block:target {
  border-radius: 12px;
  outline: 3px solid rgba(99, 91, 255, 0.16);
  outline-offset: 4px;
}
.table-card { overflow: auto; padding: 0; }
table { border-collapse: collapse; min-width: 760px; width: 100%; }
th {
  background: var(--bg-soft);
  color: var(--mute);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  text-align: left;
  text-transform: uppercase;
}
td {
  border-top: 1px solid var(--line-2);
  color: var(--ink);
  padding: 13px 14px;
  vertical-align: middle;
}
.mobile-details-cell { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions > * { min-width: 0; }
.compact-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.compact-form h3 { grid-column: 1 / -1; margin: 0; }
.compact-form > .grid { grid-column: 1 / -1; }
.compact-form .field { margin-bottom: 0; }
.compact-form .btn { align-self: end; }
.mobile-shell[data-offline-shell="inspection"] .compact-form {
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr);
}
.mobile-shell[data-offline-shell="inspection"] .compact-form > * {
  min-width: 0;
  width: 100%;
}
.mobile-shell[data-offline-shell="inspection"] .compact-form h2,
.mobile-shell[data-offline-shell="inspection"] .compact-form p {
  overflow-wrap: anywhere;
}
.mobile-shell[data-offline-shell="inspection"] .compact-form input[type="file"] {
  display: block;
  max-width: 100%;
}
.mobile-shell[data-offline-shell="inspection"] .compact-form .btn {
  align-self: stretch;
  white-space: normal;
}
.quote-workflow { display: grid; gap: 14px; margin-bottom: 18px; }
.quote-workflow > h2, .quote-workflow > p { margin: 0; }
.quote-card { display: grid; gap: 14px; }
.quote-card__header { align-items: center; display: flex; justify-content: space-between; gap: 12px; }
.quote-card__header h3 { margin: 4px 0 0; }
.guided-readback-grid { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); gap: 8px 16px; margin: 14px 0; }
.guided-readback-grid dt { color: var(--mute); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.guided-readback-grid dd { margin: 0; overflow-wrap: anywhere; }
.guided-history { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 22px; }
.guided-history li { display: grid; gap: 2px; }
.guided-history span { color: var(--mute); font-size: 12px; }
.quote-form summary { cursor: pointer; }
.quote-form > form { margin-top: 16px; }
.quote-form__wide, .quote-lines { grid-column: 1 / -1; }
.quote-lines { display: grid; gap: 12px; }
.quote-line { border: 1px solid var(--line-2); border-radius: 9px; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px; }
.quote-line legend { color: var(--mute); font-size: 12px; font-weight: 700; padding: 0 6px; }
.quote-line .btn { justify-self: start; }
.result-focus-panel { align-items: stretch; grid-template-columns: 1fr; }
.result-focus-panel p { color: var(--mute); grid-column: 1 / -1; margin: -4px 0 0; }
.result-focus-panel .actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.result-focus-panel .btn { min-height: 44px; width: 100%; }
.action-feedback {
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 9px;
  box-shadow: var(--sh-sm);
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px 14px;
}
.action-feedback.ok {
  background: #eefaf4;
  border-left-color: var(--green);
}
.action-feedback.error {
  background: #fff2f2;
  border-left-color: var(--red);
}
.action-feedback strong {
  color: var(--ink);
  font-size: 14px;
}
.action-feedback span {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.maintenance-banner {
  background: #fff8e7;
  border: 1px solid #e7c56a;
  border-radius: 9px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  margin: 14px 24px 0;
  padding: 12px 14px;
}
.maintenance-banner span {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.table-filter small { color: var(--mute); display: block; margin-top: 8px; }
.filter-actions .actions { align-items: center; min-height: 42px; }
.filter-actions .btn { min-width: 86px; }
.empty-state { color: var(--mute); display: block; padding: 10px 0; }
.btn {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: normal;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink-2); }
.btn.ghost:hover,
.topbar .tbtn:hover,
.icon-btn:hover {
  background: var(--bg-soft);
  border-color: #d4dce7;
  color: var(--ink);
}
.pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
}
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.bad { background: var(--red-soft); color: var(--red); }
.pill.info { background: var(--blue-soft); color: var(--blue); }
.pill.mute { background: var(--line-2); color: var(--mute); }
.health {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}
.ring {
  border-radius: 50%;
  display: inline-grid;
  font-size: 11px;
  font-weight: 800;
  height: 38px;
  place-items: center;
  width: 38px;
}
.bar-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 210px minmax(120px, 1fr) 90px 42px;
  padding: 11px 0;
}
.bar-track { background: var(--bg-soft); border-radius: 999px; height: 22px; overflow: hidden; }
.bar-fill { background: var(--primary); height: 100%; }
.mobile-shell {
  background: #f8fafc;
  margin: 0 auto;
  max-width: 430px;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}
.mobile-shell .topbar { padding-left: 12px; padding-right: 12px; position: static; }
.mobile-shell .urlbar { min-width: 0; }
.mobile-main { padding: 12px 18px 96px; }
.mobile-main.guided-tour-active { padding-bottom: 140px; }
.mobile-page-head { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; margin: 4px 0 14px; }
.mobile-page-head h2 { font-size: 22px; margin: 0; }
.mobile-page-head p { color: var(--mute); margin: 4px 0 0; }
.mobile-page-head .page-help { height: 30px; width: 30px; }
.mobile-shell .grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.mobile-shell .kpi strong { font-size: 26px; overflow-wrap: anywhere; }
.mobile-hero {
  background: #11294a;
  border-radius: 14px 14px 0 0;
  color: #fff;
  padding: 24px 22px;
}
.mobile-hero small { color: #adbdcc; }
.mobile-hero h2 { font-size: 21px; margin-top: 4px; }
.bottom-nav {
  background: #fff;
  border-top: 1px solid var(--line);
  bottom: 0;
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  left: 50%;
  max-width: 430px;
  padding: 7px;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 10;
}
.bottom-nav a {
  border-radius: 8px;
  color: var(--mute);
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 2px;
  min-height: 48px;
  min-width: 0;
  overflow: hidden;
  place-items: center;
  text-align: center;
}
.bottom-nav a span:first-child {
  font-size: 16px;
  line-height: 1;
}
.bottom-nav a span:last-child {
  max-width: 100%;
  line-height: 1.05;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.bottom-nav a.active { background: var(--primary-soft); color: var(--primary); }
.mobile-shell[data-section="entregas"] {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.mobile-shell[data-section="entregas"] .mobile-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 18px;
}
.mobile-shell[data-section="entregas"] > .topbar,
.mobile-shell[data-section="entregas"] > .mobile-hero {
  flex-shrink: 0;
}
.mobile-shell[data-section="entregas"] .bottom-nav {
  flex-shrink: 0;
  grid-auto-flow: column;
  grid-auto-columns: 88px;
  grid-template-columns: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  position: static;
  transform: none;
}
.mobile-shell[data-section="entregas"] .bottom-nav .nav-label::after {
  white-space: normal;
  overflow-wrap: anywhere;
}
.marketing {
  background: #fbfaf8;
  min-height: 100vh;
}
.site-nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-nav .wrap, .marketing .wrap {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 28px;
}
.site-nav .wrap {
  align-items: center;
  display: flex;
  gap: 18px;
  min-height: 68px;
}
.site-nav .links { align-items: center; display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--ink-2); font-weight: 700; }
.site-nav .app-link {
  background: var(--primary);
  border-radius: 10px;
  color: #fff;
  padding: 11px 18px;
}
.logo { align-items: center; display: flex; gap: 10px; font-size: 19px; font-weight: 800; }
.logo .brand-mark { background: var(--ink); }
.marketing-hero {
  padding: 90px 0 70px;
}
.marketing-hero h1 {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
  max-width: 14ch;
}
.marketing-hero h1 em { color: var(--theme); }
.marketing-hero p {
  color: var(--ink-2);
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.55;
  margin: 26px 0 34px;
  max-width: 56ch;
}
.eyebrow {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--theme);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 26px;
  padding: 6px 14px;
}
.shot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 40px 80px -30px rgba(10, 37, 64, 0.4);
  margin-top: 54px;
  overflow: hidden;
}
.browser-bar {
  align-items: center;
  background: #f0f2f5;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 7px;
  padding: 11px 16px;
}
.browser-bar i { border-radius: 50%; height: 11px; width: 11px; }
.mini-app { display: grid; grid-template-columns: 210px 1fr; min-height: 360px; }
.mini-side { border-right: 1px solid var(--line); padding: 18px; }
.mini-main { padding: 22px; }
.marketing-section {
  padding: 76px 0;
}
.feature-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.feature h3 { font-family: var(--display); font-size: 22px; margin-bottom: 8px; }
.price-band { background: var(--ink); color: #fff; }
.price-band h2 { color: #fff; font-family: var(--display); font-size: 42px; }

.modal-backdrop {
  align-items: center;
  background: rgba(10, 37, 64, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100;
}
.modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--sh-xl);
  max-width: 620px;
  padding: 24px;
  width: 100%;
}
.modal h3 { font-size: 20px; margin-bottom: 6px; }
.modal p { color: var(--ink-2); margin-bottom: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.financial-ledger-entry { border-bottom: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere; }
.financial-ledger-entry summary { cursor: pointer; min-height: 40px; padding: 10px 0; font-weight: 700; }
.financial-ledger-entry .workflow-readback { padding: 12px 0; scroll-margin-top: 72px; }
.financial-ledger-entry dl { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr); gap: 8px 16px; margin: 12px 0 20px; }
.financial-ledger-entry dt { color: var(--mute); }
.financial-ledger-entry dd { margin: 0; min-width: 0; }
.financial-ledger-entry a { text-decoration: underline; text-underline-offset: 3px; }
.field label { color: var(--mute); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.field input, .field select, .field textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 10px 11px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #7a8c9e;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
  outline: 0;
}

.modal-close {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  float: right;
  font-size: 18px;
  font-weight: 800;
  height: 34px;
  line-height: 1;
  width: 34px;
}

/* The guided tour keeps the current page in place and exposes only the
   control that the participant must use for the current step.  The four shade
   pieces leave a real hole, so the highlighted control remains clickable while
   every other part of the page is inert. */
.guided-tour-overlay {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 1000;
}
.guided-tour-shades,
.guided-tour-shades span {
  inset: 0;
  position: fixed;
}
.guided-tour-shades span {
  background: rgba(10, 37, 64, 0.72);
  pointer-events: auto;
}
.guided-tour-shades [data-guided-shade="top"] { bottom: auto; height: 0; }
.guided-tour-shades [data-guided-shade="right"] { left: auto; width: 0; }
.guided-tour-shades [data-guided-shade="bottom"] { top: auto; height: 0; }
.guided-tour-shades [data-guided-shade="left"] { right: auto; width: 0; }
.guided-tour-spotlight {
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 5px rgba(99, 91, 255, 0.45), 0 0 26px rgba(255, 255, 255, 0.45);
  pointer-events: none;
  position: fixed;
  transition: height 180ms ease, left 180ms ease, opacity 180ms ease, top 180ms ease, width 180ms ease;
  z-index: 2;
}
.guided-tour-dialog {
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.14);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(4, 22, 39, 0.34);
  max-height: min(78vh, 560px);
  max-width: 390px;
  overflow-y: auto;
  padding: 22px;
  pointer-events: auto;
  position: fixed;
  width: min(390px, calc(100vw - 32px));
  z-index: 3;
}
.guided-tour-dialog .eyebrow {
  margin-bottom: 8px;
}
.guided-tour-dialog h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 8px 0;
}
.guided-tour-dialog p {
  color: var(--ink-2);
  margin: 8px 0;
}
.guided-tour-progress {
  color: var(--mute);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.guided-tour-why {
  background: var(--blue-soft);
  border-radius: 8px;
  color: var(--ink) !important;
  font-size: 13px;
  padding: 9px 10px;
}
.guided-tour-hint,
.guided-tour-validation {
  font-size: 13px;
}
.guided-tour-validation {
  background: var(--amber-soft);
  border-radius: 8px;
  color: var(--ink) !important;
  padding: 9px 10px;
}
.guided-tour-validation.ok {
  background: var(--green-soft);
  color: var(--green) !important;
}
.guided-tour-validation.error {
  background: var(--red-soft);
  color: var(--red) !important;
}
.guided-tour-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.guided-tour-overlay-complete .guided-tour-dialog {
  text-align: center;
}
.guided-tour-overlay-reset-requested .guided-tour-shades span {
  pointer-events: none;
}
.guided-tour-overlay-reset-requested .guided-tour-dialog {
  pointer-events: auto;
}
.guided-tour-overlay-complete .guided-tour-dialog .actions {
  justify-content: center;
}
.guided-tour-resume {
  bottom: 18px;
  left: 18px;
  position: fixed;
  z-index: 1001;
}

@media (max-width: 680px) {
  .guided-tour-dialog {
    bottom: 16px;
    left: 16px !important;
    max-height: min(70vh, 520px);
    width: calc(100vw - 32px);
  }
}

.inline-action {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.inline-action input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 32px;
  padding: 6px 8px;
  width: 100%;
}
#toast-host {
  display: grid;
  gap: 10px;
  max-width: min(420px, calc(100vw - 24px));
  pointer-events: none;
  position: fixed;
  right: 12px;
  top: 12px;
  z-index: 200;
}
.toast {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--sh-lg);
  color: var(--ink);
  display: grid;
  gap: 3px;
  font-weight: 700;
  padding: 12px 14px 12px 16px;
  pointer-events: none;
  position: relative;
}
.toast::before {
  border-radius: 9px 0 0 9px;
  content: "";
  inset: -1px auto -1px -1px;
  position: absolute;
  width: 5px;
}
.toast.ok::before { background: var(--green); }
.toast.error::before { background: var(--red); }
.toast.warn::before { background: var(--amber); }
.toast.info::before { background: var(--primary); }
.toast small {
  color: var(--ink-2);
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .role-grid, .feature-grid, .filter-grid, .compact-form, .quote-line, .cols-4, .cols-3, .cols-2, .account-grid, .report-metrics { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-role-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    overflow-x: visible;
  }
  .mobile-role-nav .nav-item {
    flex: initial;
    min-width: 0;
    white-space: normal;
  }
  .mobile-role-nav .nav-item span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .content, .page-head { padding-left: 18px; padding-right: 18px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .topbar {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 9px 18px;
  }
  .topbar .urlbar,
  .topbar .topbar-email {
    display: none;
  }
  .topbar-profile {
    flex: 1 1 auto;
    min-width: 140px;
  }
  .bar-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bar-row b, .bar-row span { justify-self: start; }
  .site-nav .links { gap: 10px; }
  .site-nav .links a:not(.app-link) { display: none; }
  .mini-app { grid-template-columns: 1fr; }
  .mini-side { display: none; }
}

@media (max-width: 900px) {
  .table-card { overflow-x: hidden; padding: 0; }
  table { display: block; min-width: 0; width: 100%; }
  thead { display: none; }
  tbody { display: grid; gap: 0; }
  tr {
    border-top: 1px solid var(--line-2);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 6px 0;
  }
  tbody tr:first-child { border-top: 0; }
  td {
    align-items: start;
    border-top: 0;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(92px, 28%) minmax(0, 1fr);
    font-size: 12px;
    overflow-wrap: anywhere;
    padding: 7px 12px;
    word-break: normal;
  }
  td[data-mobile-priority="false"] {
    display: none;
  }
  td.mobile-details-cell {
    display: block;
    padding-top: 2px;
  }
  td::before {
    color: var(--mute);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
  }
  td .btn,
  td button {
    font-size: 12px;
    min-height: 34px;
    padding: 5px 9px;
  }
  td .pill {
    font-size: 11px;
    padding: 3px 7px;
  }
  .mobile-details-cell::before {
    content: "";
    display: none;
  }
  .mobile-details-cell details {
    border-top: 1px dashed var(--line);
    color: var(--ink-2);
    padding-top: 8px;
  }
  .mobile-details-cell summary {
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    list-style-position: inside;
  }
  .mobile-details-cell dl {
    display: grid;
    gap: 6px;
    margin-top: 8px;
  }
  .mobile-details-cell dl div {
    display: grid;
    gap: 4px;
    grid-template-columns: minmax(92px, 28%) minmax(0, 1fr);
  }
  .mobile-details-cell dt {
    color: var(--mute);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .mobile-details-cell dd {
    color: var(--ink);
    font-size: 12px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  td[colspan] {
    display: block;
  }
  td[colspan]::before {
    content: "";
    display: none;
  }
}

@media (max-width: 1100px) {
  .topbar {
    flex-wrap: nowrap;
  }
  .topbar .topbar-email {
    display: none;
  }
  .urlbar {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .inline-action { min-width: 0; }
  .topbar {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar .tbtn, .icon-btn { max-width: 100%; }
  .topbar .urlbar,
  .topbar-email {
    display: none;
  }
  .topbar .topbar-back {
    flex: 0 0 auto;
    font-size: 0;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    width: 34px;
  }
  .topbar .topbar-back::before {
    content: "‹";
    font-size: 18px;
    line-height: 1;
  }
  .topbar-profile {
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
  }
  .topbar-profile .profile-full {
    display: none;
  }
  .topbar-profile .profile-short {
    display: inline;
  }
  .topbar .topbar-note,
  .topbar .topbar-logout {
    font-size: 0;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    width: 34px;
  }
  .topbar .topbar-note::before {
    content: "✎";
    font-size: 14px;
  }
  .topbar .topbar-logout::before {
    content: "⎋";
    font-size: 13px;
    font-weight: 900;
  }
  .urlbar { flex-basis: 100%; min-width: 0; }
  .content, .page-head { padding-left: 12px; padding-right: 12px; }
  .table-filter {
    padding: 12px;
  }
  .table-filter .filter-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table-filter .filter-grid > .field:first-child,
  .table-filter .filter-actions {
    grid-column: 1 / -1;
  }
  .table-filter .field {
    margin-bottom: 0;
  }
  .table-filter .field label {
    font-size: 10px;
    letter-spacing: 0.03em;
  }
  .table-filter .field input,
  .table-filter .field select {
    min-height: 38px;
    padding: 8px 9px;
  }
  .report-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-nav a {
    min-height: 62px;
    padding: 10px;
  }
  .report-nav a small {
    display: none;
  }
  .mobile-role-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    padding-left: 12px;
    padding-right: 12px;
  }
  .mobile-role-nav .nav-item {
    flex: initial;
    min-width: 0;
    white-space: normal;
  }
  .mobile-role-nav .nav-item span:last-child {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .mobile-role-nav .nav-label {
    font-size: 0;
  }
  .mobile-role-nav .nav-label::after {
    content: attr(data-short-label);
    display: inline;
    font-size: 13px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .bottom-nav {
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  }
  .bottom-nav .nav-label {
    display: block;
    font-size: 0;
    max-width: 100%;
    overflow: visible;
    text-align: center;
  }
  .bottom-nav .nav-label::after {
    color: currentColor;
    content: attr(data-short-label);
    display: block;
    font-size: 10px;
    line-height: 1.05;
    white-space: nowrap;
  }
  .card { padding: 16px; }
  .table-card { overflow-x: hidden; padding: 0; }
  table { display: block; min-width: 0; width: 100%; }
  thead { display: none; }
  tbody { display: grid; gap: 0; }
  tr {
    border-top: 1px solid var(--line-2);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 6px 0;
  }
  tbody tr:first-child { border-top: 0; }
  td {
    align-items: start;
    border-top: 0;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(76px, 30%) minmax(0, 1fr);
    font-size: 12px;
    overflow-wrap: anywhere;
    padding: 6px 10px;
    word-break: normal;
  }
  td[data-mobile-priority="false"] {
    display: none;
  }
  td.mobile-details-cell {
    display: block;
    padding-top: 2px;
  }
  td::before {
    color: var(--mute);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
  }
  td .btn,
  td button {
    font-size: 11px;
    min-height: 34px;
    padding: 5px 8px;
  }
  td .pill {
    font-size: 11px;
    padding: 3px 7px;
  }
  .mobile-details-cell::before {
    content: "";
    display: none;
  }
  .mobile-details-cell details {
    border-top: 1px dashed var(--line);
    color: var(--ink-2);
    padding-top: 8px;
  }
  .mobile-details-cell summary {
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    list-style-position: inside;
  }
  .mobile-details-cell dl {
    display: grid;
    gap: 6px;
    margin-top: 8px;
  }
  .mobile-details-cell dl div {
    display: grid;
    gap: 4px;
    grid-template-columns: minmax(76px, 30%) minmax(0, 1fr);
  }
  .mobile-details-cell dt {
    color: var(--mute);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .mobile-details-cell dd {
    color: var(--ink);
    font-size: 12px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  td[colspan] {
    display: block;
  }
  td[colspan]::before {
    content: "";
    display: none;
  }
  .btn, .pill {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .actions .btn,
  .filter-actions .btn {
    flex: 1 1 auto;
  }
  #toast-host {
    left: 12px;
    right: 12px;
    top: 10px;
  }
  .bottom-nav {
    left: 0;
    margin: 0 auto;
    right: 0;
    transform: none;
  }
}

.company-administration,
.company-admin-grid,
.company-settings-form,
.company-settings-form fieldset {
  min-width: 0;
}

.company-administration {
  display: grid;
  gap: 16px;
}

.company-state-card .split-title,
.company-settings-form .split-title {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.company-settings-form fieldset {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  margin: 16px 0;
  padding: 14px;
}

.company-settings-form legend {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 900;
  padding: 0 6px;
  text-transform: uppercase;
}

.check-row {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 42px;
}

.check-row input {
  flex: 0 0 auto;
  width: auto;
}

.dependency-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.dependency-list div {
  align-items: center;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
}

@media (max-width: 680px) {
  .company-admin-grid,
  .company-settings-form .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-settings-form fieldset {
    padding: 10px;
  }

  .company-state-card .split-title,
  .company-settings-form .split-title {
    flex-wrap: wrap;
  }
}

@media (max-width: 360px) {
  .mobile-main {
    padding-bottom: 88px;
  }
  .bottom-nav {
    align-items: stretch;
    grid-auto-columns: minmax(52px, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none;
    max-width: 100vw;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .bottom-nav::-webkit-scrollbar {
    display: none;
  }
  .bottom-nav a {
    min-height: 50px;
    min-width: 52px;
  }
}

#job-detail {
  min-width: 0;
  overflow-wrap: anywhere;
}

#job-detail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
