:root {
  --vf-bg: #eceef1;
  --vf-bg-elevated: #f6f7f9;
  --vf-surface: #ffffff;
  --vf-ink: #0c1222;
  --vf-muted: #5c6578;
  --vf-line: #e1e4ea;
  --vf-line-strong: #cfd5df;
  --vf-accent: #0f5c66;
  --vf-accent-soft: #e8f3f4;
  --vf-blue: #0f5c66;
  --vf-blue-soft: #e8f3f4;
  --vf-green: #0f7a45;
  --vf-green-soft: #e8f7ef;
  --vf-yellow: #a16207;
  --vf-yellow-soft: #faf3e0;
  --vf-red: #b42318;
  --vf-red-soft: #fceceb;
  --vf-gray: #8b93a7;
  --vf-radius: 14px;
  --vf-radius-sm: 10px;
  --vf-shadow: 0 1px 0 rgba(12, 18, 34, 0.04);
  --vf-nav-h: 60px;
  --vf-bottom-h: 68px;
  --vf-content: 1280px;
  --vf-font: "Manrope", "Segoe UI", sans-serif;
  --vf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --vf-space: 1.15rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--vf-font);
  font-feature-settings: "ss01" on, "cv11" on;
  background-color: var(--vf-bg);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 220px),
    radial-gradient(900px 420px at 0% -8%, rgba(15, 92, 102, 0.07), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(12, 18, 34, 0.04), transparent 50%);
  color: var(--vf-ink);
  min-height: 100vh;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.vf-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ——— Topbar ——— */
.vf-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(1.2) blur(18px);
  background: rgba(246, 247, 249, 0.92);
  border-bottom: 1px solid rgba(225, 228, 234, 0.95);
  height: var(--vf-nav-h);
}

.vf-topbar-inner {
  height: 100%;
  width: min(var(--vf-content), 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.vf-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 750;
  font-size: 1.02rem;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.vf-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--vf-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.vf-company-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 180px;
  padding: 0.35rem 0.65rem;
  border-radius: var(--vf-radius-sm);
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  font-size: 0.76rem;
  color: var(--vf-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vf-company-chip strong {
  color: var(--vf-ink);
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vf-topbar-context {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.vf-context-switch {
  max-width: min(320px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.vf-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex-shrink: 0;
  min-width: 0;
}

.vf-topbar-actions .vf-btn {
  min-height: 36px;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  border-radius: 9px;
  white-space: nowrap;
}

.vf-topbar-exit {
  color: var(--vf-muted);
}

.vf-topbar-logout {
  display: inline-flex;
  margin: 0;
}

.vf-main {
  width: min(var(--vf-content), 100%);
  margin: 0 auto;
  padding: 1.5rem 1.5rem calc(var(--vf-bottom-h) + 1.6rem);
  flex: 1;
  animation: vf-rise 0.45s var(--vf-ease) both;
}

.vf-page-head {
  margin-bottom: 1.75rem;
}

.vf-page-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.1rem 1.5rem;
}

.vf-page-head-main {
  min-width: 0;
  flex: 1 1 240px;
}

.vf-page-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex: 0 0 auto;
  padding-bottom: 0.1rem;
}

.vf-page-head--split .vf-page-title {
  margin-bottom: 0.45rem;
}

.vf-page-head--split .vf-page-sub {
  max-width: 32rem;
}

.vf-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.85rem 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 92, 102, 0.22);
  background: var(--vf-accent-soft);
  color: var(--vf-accent);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.15s var(--vf-ease), background 0.15s var(--vf-ease), border-color 0.15s var(--vf-ease);
}

.vf-back:hover {
  color: #0c4d55;
  background: #dceeef;
  border-color: rgba(15, 92, 102, 0.4);
}

.vf-page-title {
  font-size: clamp(1.55rem, 3.6vw, 2.05rem);
  font-weight: 750;
  letter-spacing: -0.048em;
  line-height: 1.12;
  margin: 0 0 0.4rem;
}

.vf-page-driver-name {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--vf-accent);
  line-height: 1.15;
}

.vf-page-sub {
  color: var(--vf-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 36rem;
}

.vf-page-section-label {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--vf-accent);
  line-height: 1.3;
}

.vf-page-head + .vf-toolbar,
.vf-page-head + .vf-panel,
.vf-page-head + .vf-form-panel,
.vf-page-head + .mb-3,
.vf-page-head + form,
.vf-page-head + .vf-filter-panel,
.vf-page-head + .vf-grid,
.vf-page-head + .vf-cols-wrap {
  margin-top: 0.15rem;
}

.vf-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--vf-line);
}

.vf-form-actions .vf-btn {
  flex: 0 0 auto;
  min-width: 140px;
}

.vf-form-actions-end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-left: auto;
}

.vf-form-actions-danger {
  margin-right: auto;
}

.vf-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.vf-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.vf-toolbar .vf-page-title {
  margin-bottom: 0.3rem;
}

.vf-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.vf-filter-panel {
  padding: 1rem 1.15rem;
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius);
  box-shadow: var(--vf-shadow);
  margin-bottom: 1.35rem;
}

.vf-filter-bar .vf-search-wrap {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 340px;
  margin: 0;
}

.vf-filter-bar .vf-filter-select {
  flex: 0 1 200px;
  min-width: 160px;
  max-width: 220px;
}

.vf-filter-bar .vf-btn {
  min-height: 42px;
  flex: 0 0 auto;
}

.vf-grid {
  display: grid;
  gap: 0.85rem;
}

.vf-grid-2 {
  grid-template-columns: 1fr;
}

.vf-grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vf-stat {
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius);
  padding: 1.05rem 1.1rem;
  box-shadow: var(--vf-shadow);
  animation: vf-rise 0.5s var(--vf-ease) both;
}

.vf-stat:nth-child(2) { animation-delay: 0.04s; }
.vf-stat:nth-child(3) { animation-delay: 0.08s; }
.vf-stat:nth-child(4) { animation-delay: 0.12s; }

.vf-stat-label {
  color: var(--vf-muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.vf-stat-value {
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.vf-stat-value.is-green { color: var(--vf-green); }
.vf-stat-value.is-yellow { color: var(--vf-yellow); }
.vf-stat-value.is-red { color: var(--vf-red); }
.vf-stat-value.is-blue { color: var(--vf-accent); }

.vf-panel {
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius);
  padding: 1.45rem 1.4rem 1.35rem;
  box-shadow: var(--vf-shadow);
}

.vf-form-panel {
  max-width: 920px;
}

.vf-panel + .vf-panel,
.vf-section + .vf-section {
  margin-top: 1rem;
}

.vf-panel-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

/* ——— Buttons ——— */
.vf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.7rem 1.1rem;
  border-radius: var(--vf-radius-sm);
  border: 1px solid transparent;
  background: var(--vf-ink);
  color: #fff;
  font-weight: 650;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition:
    transform 0.18s var(--vf-ease),
    background 0.18s var(--vf-ease),
    border-color 0.18s var(--vf-ease),
    opacity 0.18s var(--vf-ease);
}

.vf-btn:hover {
  transform: translateY(-1px);
}

.vf-btn:active {
  transform: translateY(0);
}

.vf-btn-primary {
  background: var(--vf-accent);
}

.vf-btn-primary:hover {
  background: #0c4d55;
}

.vf-btn-ghost {
  background: var(--vf-surface);
  color: var(--vf-ink);
  border-color: var(--vf-line);
}

.vf-btn-ghost:hover {
  border-color: var(--vf-line-strong);
  background: var(--vf-bg-elevated);
}

.vf-btn-soft {
  background: var(--vf-accent-soft);
  color: var(--vf-accent);
}

.vf-btn-block {
  width: 100%;
}

.vf-btn-lg {
  min-height: 52px;
  font-size: 1.02rem;
  border-radius: 12px;
}

/* ——— Forms ——— */
.vf-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--vf-line);
  background: #fff;
  border-radius: var(--vf-radius-sm);
  padding: 0.7rem 0.9rem;
  outline: none;
  color: var(--vf-ink);
  transition: border-color 0.18s var(--vf-ease), box-shadow 0.18s var(--vf-ease);
}

.vf-input:hover {
  border-color: var(--vf-line-strong);
}

.vf-input:focus {
  border-color: rgba(15, 92, 102, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 92, 102, 0.12);
}

.vf-input-date,
.vf-input-time {
  width: auto;
  max-width: 11.5rem;
  min-width: 8.5rem;
}

.vf-datetime-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-bottom: 1.15rem;
  grid-column: 1 / -1;
}

.vf-datetime-pair > .vf-field {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.vf-datetime-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  grid-column: 1 / -1;
}

.vf-datetime-stack > .vf-field {
  margin-bottom: 0;
}

.vf-datetime-stack .vf-field-date {
  max-width: 100%;
}

.vf-datetime-times {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 0.65rem 0.7rem;
  align-items: end;
}

.vf-datetime-times > .vf-field {
  margin-bottom: 0;
  min-width: 0;
  max-width: none;
}

.vf-field-session-total .vf-label {
  white-space: nowrap;
}

.vf-session-total-value {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 0.15rem;
}

.vf-session-total-value strong {
  font-size: 1.05rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--vf-ink);
  white-space: nowrap;
}

.vf-session-total {
  margin: 0;
  font-size: 0.92rem;
  color: var(--vf-muted);
  line-height: 1.4;
}

.vf-session-total strong {
  color: var(--vf-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.vf-field-date,
.vf-field-time {
  max-width: 12rem;
}

.vf-field-duration {
  min-width: 11rem;
  flex: 1 1 11rem;
}

/* ——— Registrar / editar treinamento (premium) ——— */
.vf-training-record-page .vf-page-head {
  margin-bottom: 1.5rem;
}

.vf-training-record-card {
  max-width: min(1280px, 100%);
  width: 100%;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(15, 92, 102, 0.12);
  box-shadow:
    0 1px 0 rgba(12, 18, 34, 0.04),
    0 18px 40px -28px rgba(12, 18, 34, 0.35);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  animation: vf-rise 0.45s var(--vf-ease) both;
}

.vf-training-record-card > .vf-selected-chip {
  margin: 1.35rem 1.45rem 0;
}

.vf-tr-section {
  padding: 1.35rem 1.65rem 1.4rem;
  border-bottom: 1px solid var(--vf-line);
  overflow: visible;
}

.vf-tr-section-last {
  border-bottom: none;
}

.vf-tr-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.vf-tr-section-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.45rem;
  border-radius: 9px;
  background: var(--vf-ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.vf-tr-section-title {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--vf-ink);
  line-height: 1.2;
}

.vf-tr-section-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--vf-muted);
  line-height: 1.35;
}

.vf-training-main-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr) minmax(0, 1.2fr) 5.25rem;
  gap: 0.85rem 0.95rem;
  align-items: start;
}

.vf-training-main-row.is-fixed-driver {
  grid-template-columns: 10.5rem minmax(0, 1fr) 5.25rem;
}

.vf-training-main-row.has-driver-search {
  grid-template-columns: 12.75rem 9.75rem minmax(15rem, 1.35fr) minmax(13rem, 1.15fr) 5.5rem;
  gap: 1.1rem 1.35rem;
  margin-bottom: 0.85rem;
  align-items: start;
}

.vf-field-matricula {
  position: relative;
}

.vf-field-matricula .vf-field-hint {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.2rem);
  min-height: 0;
  margin: 0;
  font-size: 0.72rem;
  color: var(--vf-muted);
  line-height: 1.2;
}

.vf-training-record-card .vf-training-main-row .vf-field-date {
  max-width: none;
  width: 100%;
}

.vf-training-record-card .vf-field-matricula {
  max-width: none;
  width: 100%;
}

.vf-field-matricula .vf-input {
  width: 100%;
  min-width: 0;
}

.vf-training-main-row .vf-field-date .vf-input,
.vf-training-main-row .vf-input-date {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.vf-training-record-card .vf-training-main-row .vf-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vf-field-driver-pick {
  margin-bottom: 0;
  position: relative;
  min-width: 0;
}

.vf-field-driver-pick .vf-search-wrap {
  margin-bottom: 0;
}

.vf-field-driver-pick .vf-picker-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 40;
  margin-top: 0;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius-sm);
  box-shadow: 0 12px 28px -16px rgba(12, 18, 34, 0.45);
}

.vf-field-driver-pick .vf-picker-panel.is-collapsed {
  display: none;
}

.vf-selected-chip.vf-selected-chip-inline {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  margin-bottom: 0;
  padding: 0 0.55rem 0 0.85rem;
  box-sizing: border-box;
  align-items: center;
  overflow: hidden;
}

.vf-selected-chip.vf-selected-chip-inline strong {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vf-selected-chip.vf-selected-chip-inline .vf-btn {
  min-height: 32px;
  height: 32px;
  padding: 0 0.7rem;
  font-size: 0.78rem;
}

.vf-training-main-row .vf-search-wrap .vf-input,
.vf-training-main-row .vf-input,
.vf-training-main-row select.vf-input {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

.vf-training-main-row .vf-dur-sm-box {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 0.35rem;
  box-sizing: border-box;
}

.vf-training-main-row > .vf-field,
.vf-tr-session-row > .vf-field {
  margin-bottom: 0;
}

.vf-training-record-card .vf-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vf-muted);
  margin-bottom: 0.45rem;
}

.vf-training-record-card .vf-input,
.vf-training-record-card select.vf-input,
.vf-training-record-card textarea.vf-input {
  border-color: #d8dde6;
  background: #fff;
  transition:
    border-color 0.18s var(--vf-ease),
    box-shadow 0.18s var(--vf-ease),
    background 0.18s var(--vf-ease);
}

.vf-training-record-card .vf-input:hover,
.vf-training-record-card select.vf-input:hover {
  border-color: var(--vf-line-strong);
}

.vf-training-record-card .vf-input:focus,
.vf-training-record-card select.vf-input:focus,
.vf-training-record-card textarea.vf-input:focus {
  outline: none;
  border-color: var(--vf-accent);
  box-shadow: 0 0 0 3px rgba(15, 92, 102, 0.14);
}

.vf-field-dur-sm {
  max-width: 5.25rem;
}

.vf-dur-sm-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.3rem;
  border-radius: var(--vf-radius-sm);
  border: 1px solid rgba(15, 92, 102, 0.18);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  color: var(--vf-accent);
  background:
    linear-gradient(180deg, #f3fafb 0%, var(--vf-accent-soft) 100%);
  text-align: center;
}

.vf-tr-session-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 34rem;
}

.vf-tr-session-row > .vf-field-time {
  flex: 0 0 9.75rem;
  max-width: 9.75rem;
}

.vf-tr-session-row > .vf-field-duration {
  flex: 0 0 11.5rem;
  max-width: 11.5rem;
  min-width: 0;
}

.vf-training-record-card .vf-duration-box {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--vf-radius-sm);
  border: 1px solid rgba(15, 92, 102, 0.2);
  background:
    linear-gradient(135deg, #0f5c66 0%, #0a454c 100%);
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(15, 92, 102, 0.65);
}

.vf-training-record-card .vf-duration-box strong {
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  color: #fff;
}

.vf-training-record-card .vf-duration-hint {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
}

.vf-training-record-card textarea.vf-input {
  min-height: 108px;
  background: #fafbfc;
}

.vf-tr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 1.1rem 1.45rem 1.25rem;
  background: linear-gradient(180deg, #f4f6f8 0%, #eef1f4 100%);
  border-top: 1px solid var(--vf-line);
}

.vf-tr-actions .vf-form-actions-end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-left: auto;
}

.vf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .vf-training-main-row.has-driver-search {
    grid-template-columns: 1fr 1fr;
  }

  .vf-training-main-row,
  .vf-training-main-row.is-fixed-driver {
    grid-template-columns: 1fr 1fr;
  }

  .vf-field-dur-sm,
  .vf-field-matricula {
    max-width: none;
  }

  .vf-tr-session-row {
    max-width: none;
  }

  .vf-tr-session-row > .vf-field-time,
  .vf-tr-session-row > .vf-field-duration {
    flex: 1 1 8rem;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .vf-training-main-row,
  .vf-training-main-row.is-fixed-driver,
  .vf-training-main-row.has-driver-search,
  .vf-tr-session-row {
    flex-direction: column;
  }

  .vf-training-main-row,
  .vf-training-main-row.is-fixed-driver,
  .vf-training-main-row.has-driver-search {
    grid-template-columns: 1fr;
  }

  .vf-tr-session-row > .vf-field-time,
  .vf-tr-session-row > .vf-field-duration {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }

  .vf-tr-section {
    padding: 1.15rem 1.1rem 1rem;
  }

  .vf-tr-actions {
    padding: 1rem 1.1rem 1.15rem;
  }
}

/* Evita o grid 2-col genérico do form.vf-panel nesta tela */
@media (min-width: 900px) {
  form.vf-training-record-card.vf-panel {
    display: block;
    padding: 0;
  }

  form.vf-training-record-card > .vf-tr-section,
  form.vf-training-record-card > .vf-tr-actions,
  form.vf-training-record-card > .vf-selected-chip {
    grid-column: auto;
  }
}

.vf-duration-box {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius-sm);
  background: var(--vf-accent-soft, #e6f1f2);
}

.vf-duration-box strong {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--vf-accent);
}

.vf-duration-hint {
  font-size: 0.72rem;
  color: var(--vf-muted);
}

.vf-hours-course-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.vf-hours-course-total {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  color: var(--vf-accent);
  font-variant-numeric: tabular-nums;
}

.vf-cols-hours .vf-cols-head,
.vf-cols-hours .vf-cols-row {
  grid-template-columns: 120px 90px 90px 110px;
}

.vf-cols-hours-modules .vf-cols-head,
.vf-cols-hours-modules .vf-cols-row {
  grid-template-columns: minmax(0, 1.6fr) 120px 110px 110px 140px;
}

textarea.vf-input {
  min-height: 110px;
  resize: vertical;
}

.vf-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  color: #334155;
}

.vf-optional {
  font-weight: 550;
  color: var(--vf-muted);
  letter-spacing: 0;
}

.vf-field {
  margin-bottom: 1.35rem;
}

.vf-field small {
  color: var(--vf-muted);
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.vf-field.has-error .vf-input,
.vf-field.has-error .vf-search-input {
  border-color: rgba(180, 35, 24, 0.55);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.vf-field-error {
  margin: 0.45rem 0 0;
  color: var(--vf-red);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

.vf-auth-error {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  background: var(--vf-red-soft);
  border-radius: var(--vf-radius-sm);
}

.vf-auth-footer {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--vf-muted);
}

.vf-auth-section-label {
  margin: 1.15rem 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vf-accent, #0f5c66);
}

.vf-auth-hint-block {
  margin: 0 0 0.75rem;
}

.vf-auth-footer a {
  color: var(--vf-accent);
  font-weight: 650;
}

.vf-auth-footer a:hover {
  text-decoration: underline;
}

.vf-list {
  display: grid;
  gap: 0.55rem;
}

.vf-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius-sm);
  transition: border-color 0.18s var(--vf-ease), background 0.18s var(--vf-ease);
}

.vf-row:hover {
  border-color: var(--vf-line-strong);
  background: #fbfcfd;
}

.vf-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(145deg, #e8eaef, #f3f4f6);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--vf-muted);
  flex-shrink: 0;
  overflow: hidden;
}

.vf-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vf-row-body {
  flex: 1;
  min-width: 0;
}

.vf-row-title {
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vf-row-meta {
  color: var(--vf-muted);
  font-size: 0.82rem;
}

.vf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.vf-badge.green { background: var(--vf-green-soft); color: var(--vf-green); }
.vf-badge.yellow { background: var(--vf-yellow-soft); color: var(--vf-yellow); }
.vf-badge.red { background: var(--vf-red-soft); color: var(--vf-red); }
.vf-badge.blue { background: var(--vf-accent-soft); color: var(--vf-accent); }
.vf-badge.gray { background: #eef0f4; color: #5c6578; }

.vf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.vf-dot.green { background: var(--vf-green); }
.vf-dot.yellow { background: #ca8a04; }
.vf-dot.red { background: var(--vf-red); }
.vf-dot.blue { background: var(--vf-accent); }
.vf-dot.gray { background: var(--vf-gray); }

/* ——— Data columns (desktop-first tables) ——— */
.vf-cols-wrap {
  border: 1px solid var(--vf-line);
  border-radius: calc(var(--vf-radius) + 2px);
  background: var(--vf-surface);
  box-shadow: 0 1px 0 rgba(12, 18, 34, 0.04), 0 8px 24px rgba(12, 18, 34, 0.04);
  overflow: hidden;
}

.vf-cols-head,
.vf-cols-row {
  display: grid;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  width: 100%;
  min-width: 0;
}

.vf-cols-head {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7488;
  background: linear-gradient(180deg, #f7f8fa 0%, #f3f5f7 100%);
  border-bottom: 1px solid var(--vf-line);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.vf-cols-row {
  border-bottom: 1px solid var(--vf-line);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s var(--vf-ease);
  min-height: 58px;
}

.vf-cols-row:last-child {
  border-bottom: none;
}

.vf-cols-row:hover {
  background: #f7fafb;
}

.vf-cols-row:active {
  background: #f1f4f6;
}

button.vf-cols-row {
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
}

.vf-cols-wrap > form {
  margin: 0;
}

.vf-cols-drivers .vf-cols-head,
.vf-cols-drivers .vf-cols-row {
  grid-template-columns: minmax(0, 2fr) 160px 100px 72px;
}

/* Avaliações: cabe em tela de celular em pé (sem "pts", data curta) */
.vf-cols-eval-list .vf-cols-head,
.vf-cols-eval-list .vf-cols-row {
  grid-template-columns: minmax(0, 1.5fr) 68px 48px 36px;
  gap: 0.45rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.vf-cols-eval-list .vf-cols-cell-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.vf-cols-eval-list .vf-cols-cell-date,
.vf-cols-eval-list .vf-cols-cell-score,
.vf-cols-eval-list .vf-cols-row > span:last-child {
  text-align: right;
  justify-self: end;
  white-space: nowrap;
}

.vf-cols-eval-list .vf-cols-head > span:nth-child(n + 2) {
  text-align: right;
}

.vf-cols-eval-list .vf-cols-cell-score strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

@media (min-width: 700px) {
  .vf-cols-eval-list .vf-cols-head,
  .vf-cols-eval-list .vf-cols-row {
    grid-template-columns: minmax(0, 2fr) 88px 64px 48px;
    gap: 0.85rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.vf-cols-evals .vf-cols-head,
.vf-cols-evals .vf-cols-row {
  grid-template-columns: 148px 80px 72px 128px minmax(0, 1.4fr) 250px;
}

.vf-cols-trucks .vf-cols-head,
.vf-cols-trucks .vf-cols-row {
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.1fr) 100px 80px 220px;
}

.vf-cols-people .vf-cols-head,
.vf-cols-people .vf-cols-row {
  grid-template-columns: minmax(0, 1.8fr) 110px minmax(0, 1.1fr) 100px 260px;
}

.vf-cols-trainings .vf-cols-head,
.vf-cols-trainings .vf-cols-row {
  /* catálogo: título | tipo | duração | status | ações */
  grid-template-columns: minmax(0, 1.6fr) 120px 90px 90px 200px;
}

.vf-cols-trainings-records .vf-cols-head,
.vf-cols-trainings-records .vf-cols-row {
  /* resultados: motorista | treinamento | data | tipo | duração | realizado | ações */
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) 100px 100px 80px 100px 300px;
}

.vf-cols-cell-num.is-complete {
  color: var(--vf-green, #0f7a45);
  font-weight: 700;
}

.vf-progress-ok {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.vf-btn.is-disabled,
.vf-btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.vf-cols-trainings-history .vf-cols-head,
.vf-cols-trainings-history .vf-cols-row {
  /* histórico do motorista: título | data | tipo | duração | ações */
  grid-template-columns: minmax(0, 1.6fr) 100px 110px 80px 200px;
}

.vf-cols-branches .vf-cols-head,
.vf-cols-branches .vf-cols-row {
  grid-template-columns: minmax(0, 1.4fr) 100px minmax(0, 1.1fr) 100px 200px;
}

.vf-cols-filiais .vf-cols-head,
.vf-cols-filiais .vf-cols-row {
  grid-template-columns: minmax(0, 1.4fr) 100px minmax(0, 1.1fr) 100px 200px;
}

.vf-cols-brands .vf-cols-head,
.vf-cols-brands .vf-cols-row {
  grid-template-columns: minmax(0, 1.6fr) 100px 100px 200px;
}

.vf-cols-models .vf-cols-head,
.vf-cols-models .vf-cols-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 100px 200px;
}

.vf-toolbar-search {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 320px;
  margin: 0;
}

.vf-toolbar-search .vf-input {
  width: 100%;
  max-width: none;
}

.vf-toolbar-search--split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 480px;
}

.vf-toolbar-search--split .vf-input {
  flex: 1 1 140px;
}

.vf-cols-row-static {
  cursor: default;
}

.vf-cols-row-static:hover {
  background: #f9fbfb;
}

.vf-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: nowrap;
  width: 100%;
}

.vf-row-actions form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.vf-row-actions .vf-btn-sm {
  min-height: 34px;
  min-width: 4.6rem;
  padding: 0.32rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.vf-form-actions form {
  margin: 0;
  display: inline;
}

.vf-btn-sm {
  min-height: 32px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 8px;
}

.vf-cols-companies .vf-cols-head,
.vf-cols-companies .vf-cols-row {
  grid-template-columns: minmax(0, 1.5fr) 160px minmax(0, 1fr) 260px;
}

.vf-cols-search-drivers .vf-cols-head,
.vf-cols-search-drivers .vf-cols-row {
  grid-template-columns: minmax(0, 1.6fr) 140px minmax(0, 1.2fr);
}

/* Dashboard ranking: nome largo, categoria só o badge, score compacto */
.vf-cols-dash-rank .vf-cols-head,
.vf-cols-dash-rank .vf-cols-row {
  grid-template-columns: minmax(0, 1fr) max-content 44px;
  gap: 0.55rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.vf-cols-dash-rank .vf-cols-cell-name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
  word-break: break-word;
}

.vf-cols-dash-rank .vf-cols-cell-cat {
  justify-self: start;
}

.vf-cols-dash-rank .vf-cols-cell-num,
.vf-cols-dash-rank .vf-cols-head > span:last-child {
  text-align: right;
  justify-self: end;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 700px) {
  .vf-cols-dash-rank .vf-cols-head,
  .vf-cols-dash-rank .vf-cols-row {
    grid-template-columns: minmax(0, 1fr) max-content 56px;
    gap: 0.85rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.vf-cols-search-trucks .vf-cols-head,
.vf-cols-search-trucks .vf-cols-row {
  grid-template-columns: 120px minmax(0, 1.4fr) 100px 200px;
}

.vf-cols-search-evals .vf-cols-head,
.vf-cols-search-evals .vf-cols-row {
  grid-template-columns: minmax(0, 1.4fr) 110px 120px;
}

.vf-cols-cell-name {
  font-weight: 700;
  letter-spacing: -0.025em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  line-height: 1.35;
}

.vf-cols-cell-muted {
  color: var(--vf-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.vf-cols-cell-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.95rem;
}

.vf-cols-cell-note {
  color: var(--vf-muted);
  font-size: 0.88rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.vf-cols-cell-fleet {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ——— Certificado actions ——— */
.vf-cert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--vf-line);
}

.vf-cert-actions .vf-btn {
  flex: 1 1 220px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  padding: 0.85rem 1rem;
}

@media (max-width: 640px) {
  .vf-cert-actions {
    flex-direction: column;
  }

  .vf-cert-actions .vf-btn {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* ——— Bottom nav ——— */
.vf-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: var(--vf-bottom-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--vf-line);
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0.4rem calc(0.25rem + env(safe-area-inset-bottom));
}

.vf-bottom-nav::-webkit-scrollbar {
  display: none;
}

.vf-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  flex: 0 0 auto;
  width: 4.55rem;
  min-width: 4.55rem;
  max-width: 4.55rem;
  height: 100%;
  padding: 0.2rem 0.15rem;
  color: #8b93a7;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-align: center;
  border-radius: 10px;
  transition: color 0.15s var(--vf-ease), background 0.15s var(--vf-ease);
}

.vf-bottom-nav a span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-bottom-nav a.active,
.vf-bottom-nav a[aria-current="page"] {
  color: var(--vf-accent, #0f5c66);
  background: var(--vf-accent-soft, #e6f1f2);
  font-weight: 750;
}

.vf-bottom-nav a.active svg,
.vf-bottom-nav a[aria-current="page"] svg {
  stroke: var(--vf-accent, #0f5c66);
  stroke-width: 2.2;
}

.vf-bottom-nav a:hover:not(.active):not([aria-current="page"]) {
  color: var(--vf-ink);
  background: rgba(12, 18, 34, 0.04);
}

.vf-bottom-nav svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: block;
}

/* ——— Auth ——— */
.vf-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(15, 92, 102, 0.1), transparent 55%),
    radial-gradient(600px 360px at 90% 20%, rgba(12, 18, 34, 0.05), transparent 50%),
    var(--vf-bg);
}

.vf-auth-card {
  width: min(440px, 100%);
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: 18px;
  padding: 2rem 1.6rem;
  box-shadow: var(--vf-shadow);
  animation: vf-rise 0.55s var(--vf-ease);
}

.vf-auth-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--vf-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.vf-auth-back:hover {
  color: var(--vf-ink);
}

.vf-auth-card.vf-auth-card-wide {
  width: min(980px, 100%);
  padding: 2.25rem 2rem;
}

.vf-auth-card h1 {
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.045em;
  margin: 1rem 0 0.35rem;
}

.vf-auth-card > p,
.vf-auth-lead {
  color: var(--vf-muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
  max-width: 52rem;
}

.vf-auth-grid {
  display: grid;
  gap: 0.15rem 2rem;
}

.vf-auth-col {
  min-width: 0;
}

.vf-auth-actions {
  margin-top: 0.75rem;
}

@media (min-width: 900px) {
  .vf-auth {
    padding: 2.5rem 2rem;
    align-content: center;
  }

  .vf-auth-card:not(.vf-auth-card-wide) {
    width: min(480px, 100%);
    padding: 2.5rem 2.25rem;
  }

  .vf-auth-card.vf-auth-card-wide {
    width: min(1040px, 100%);
    padding: 2.75rem 2.75rem 2.25rem;
  }

  .vf-auth-card.vf-auth-card-wide h1 {
    font-size: 1.85rem;
  }

  .vf-auth-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 2.5rem;
    align-items: start;
  }

  .vf-auth-section-label:first-child {
    margin-top: 0;
  }

  .vf-auth-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--vf-line);
  }

  .vf-auth-actions .vf-btn-block {
    width: auto;
    min-width: 220px;
  }

  .vf-auth-actions .vf-auth-footer {
    margin: 0;
    text-align: left;
  }
}

/* Seleção de empresa — visão PC */
.vf-select-page {
  min-height: 100vh;
  padding: 2.5rem 1.5rem 3rem;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(15, 92, 102, 0.08), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(12, 18, 34, 0.04), transparent 50%),
    var(--vf-bg);
}

.vf-select-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  animation: vf-rise 0.45s var(--vf-ease);
}

.vf-select-form-card {
  margin-top: 0.25rem;
  box-shadow: var(--vf-shadow);
}

.vf-select-form-card.is-collapsed,
.vf-select-form-card[hidden] {
  display: none;
}

.vf-select-welcome {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  color: var(--vf-ink);
  line-height: 1.4;
}

.vf-select-welcome strong {
  font-weight: 750;
}

.vf-select-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.35rem 0 1.35rem;
}

.vf-select-toolbar .vf-btn-primary {
  min-width: 200px;
  font-weight: 750;
}

.vf-select-toolbar > .vf-btn,
.vf-select-toolbar > form {
  margin: 0;
}

.vf-select-footer {
  display: grid;
  gap: 0.65rem;
  margin: 1.35rem 0 0.5rem;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--vf-line);
}

.vf-select-footer > .vf-btn,
.vf-select-footer > form,
.vf-select-footer form > .vf-btn {
  width: 100%;
  margin: 0;
  min-height: 48px;
  justify-content: center;
  text-align: center;
  text-transform: none;
  letter-spacing: -0.015em;
  font-weight: 700;
  border-radius: 12px;
}

.vf-select-footer > form {
  display: block;
}

.vf-select-hub {
  width: 100%;
  margin: 0 0 1.5rem;
}

.vf-select-hub-card {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  padding: 1.15rem 1.25rem;
  border-radius: var(--vf-radius);
  background: #161b2e;
  border: 1px solid #2a3152;
  color: #e8ecff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(12, 18, 34, 0.12);
  transition: transform 0.18s var(--vf-ease), background 0.18s var(--vf-ease);
}

.vf-select-hub-card:hover {
  background: #1d2440;
  color: #fff;
  transform: translateY(-1px);
}

.vf-select-hub-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa6d6;
}

.vf-select-hub-card strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.vf-select-hub-card > span:not(.vf-select-hub-eyebrow):not(.vf-select-hub-cta) {
  color: #c5ccea;
  font-size: 0.92rem;
  line-height: 1.4;
}

.vf-select-hub-cta {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.vf-select-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 2rem;
}

.vf-select-header .vf-brand {
  margin-bottom: 1.75rem;
}

.vf-select-header .vf-page-title {
  margin: 0 0 0.45rem;
}

.vf-select-header .vf-page-sub {
  margin: 0;
  max-width: 34rem;
}

.vf-company-select {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.vf-company-select > form {
  margin: 0;
  min-width: 0;
}

.vf-company-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.25rem;
  border-radius: var(--vf-radius);
  border: 1px solid var(--vf-line);
  background: var(--vf-surface);
  cursor: pointer;
  box-shadow: var(--vf-shadow);
  transition: border-color 0.18s var(--vf-ease), transform 0.18s var(--vf-ease), background 0.18s var(--vf-ease), box-shadow 0.18s var(--vf-ease);
  min-height: 92px;
}

.vf-company-card:hover {
  border-color: rgba(15, 92, 102, 0.4);
  background: #f8fbfb;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(12, 18, 34, 0.06);
}

.vf-company-card-mark,
.vf-company-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.vf-company-card-mark {
  background: var(--vf-ink);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.vf-company-card-icon {
  background: var(--vf-accent-soft);
  color: var(--vf-accent);
  border: 1px solid rgba(15, 92, 102, 0.12);
}

.vf-company-card-icon svg {
  width: 22px;
  height: 22px;
}

.vf-company-card:hover .vf-company-card-icon {
  background: rgba(15, 92, 102, 0.14);
}

.vf-company-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.vf-company-card-body strong {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--vf-ink);
}

.vf-company-card-body span {
  color: var(--vf-muted);
  font-size: 0.9rem;
  text-transform: none;
}

.vf-company-card-action {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--vf-accent);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: var(--vf-accent-soft);
}

.vf-select-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}

.vf-select-actions form {
  margin: 0;
}

.vf-btn-danger-soft {
  background: #fef2f2 !important;
  color: #b42318 !important;
  border-color: #fecaca !important;
}

.vf-btn-danger {
  background: var(--vf-red) !important;
  color: #fff !important;
  border-color: var(--vf-red) !important;
}

.vf-btn-danger:hover {
  filter: brightness(0.95);
}

@media (min-width: 800px) {
  .vf-select-page {
    padding: 3.5rem 2rem 4rem;
    display: grid;
    align-content: center;
  }

  .vf-select-header {
    margin-bottom: 2.25rem;
  }

  .vf-select-header .vf-brand {
    margin-bottom: 2rem;
  }

  .vf-company-select {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .vf-company-card {
    min-height: 124px;
    padding: 1.4rem 1.5rem;
  }

  .vf-select-actions {
    justify-content: flex-start;
    margin-top: 1.75rem;
  }
}

@media (min-width: 1100px) {
  .vf-select-shell {
    width: min(1100px, 100%);
  }

  .vf-company-select:has(> form:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.vf-eval-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(700px 320px at 50% -10%, rgba(15, 92, 102, 0.06), transparent 55%),
    var(--vf-surface);
}

.vf-eval-top {
  padding: 1rem 1.2rem 0.5rem;
  width: min(720px, 100%);
  margin: 0 auto;
}

.vf-eval-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.vf-eval-exit {
  color: var(--vf-muted);
  font-weight: 650;
  font-size: 0.9rem;
}

.vf-eval-exit:hover {
  color: var(--vf-ink);
}

.vf-eval-driver {
  letter-spacing: -0.02em;
  font-size: 0.95rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 50%;
}

.vf-eval-count {
  color: var(--vf-muted);
  font-size: 0.85rem;
  font-weight: 650;
  flex-shrink: 0;
}

.vf-progress {
  height: 4px;
  background: #eceef2;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.85rem;
}

.vf-progress > span {
  display: block;
  height: 100%;
  background: var(--vf-accent);
  border-radius: inherit;
  transition: width 0.35s var(--vf-ease);
}

.vf-eval-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
}

.vf-eval-step {
  color: var(--vf-muted);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  font-weight: 650;
}

.vf-eval-question {
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.vf-eval-desc {
  color: var(--vf-muted);
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  line-height: 1.5;
}

.vf-eval-error {
  margin-top: 1rem;
  text-align: center;
}

.vf-rating-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.vf-rating {
  width: 100%;
  min-height: 92px;
  height: 100%;
  margin: 0;
  padding: 0.85rem 0.45rem;
  border-radius: 12px;
  border: 1.5px solid var(--vf-line);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    transform 0.16s var(--vf-ease),
    border-color 0.16s var(--vf-ease),
    background 0.16s var(--vf-ease);
}

.vf-rating .vf-rating-emoji,
.vf-rating .vf-rating-dot {
  line-height: 1;
}

.vf-rating .vf-rating-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.vf-rating .vf-rating-dot.green { background: var(--vf-green); }
.vf-rating .vf-rating-dot.yellow { background: #ca8a04; }
.vf-rating .vf-rating-dot.red { background: var(--vf-red); }

.vf-rating .vf-rating-label {
  display: block;
  width: 100%;
}

.vf-rating:hover {
  transform: translateY(-1px);
}

.vf-rating.green { border-color: #b8e6cc; background: var(--vf-green-soft); color: var(--vf-green); }
.vf-rating.yellow { border-color: #edd9a3; background: var(--vf-yellow-soft); color: var(--vf-yellow); }
.vf-rating.red { border-color: #f0c0bb; background: var(--vf-red-soft); color: var(--vf-red); }

.vf-rating.selected {
  border-width: 2px;
  transform: translateY(-1px);
}

.vf-rating.green.selected { border-color: var(--vf-green); }
.vf-rating.yellow.selected { border-color: #ca8a04; }
.vf-rating.red.selected { border-color: var(--vf-red); }

.vf-eval-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.75rem;
  padding: 0 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  width: min(720px, 100%);
  margin: 0 auto;
}

.vf-result {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% -10%, rgba(15, 92, 102, 0.08), transparent 55%),
    var(--vf-bg);
}

.vf-result-card {
  width: min(420px, 100%);
  animation: vf-rise 0.5s var(--vf-ease);
}

.vf-result-brand {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.vf-result-eyebrow {
  color: var(--vf-muted);
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vf-result-meta {
  margin: 0.5rem auto 1.25rem;
  color: var(--vf-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.vf-result-quote {
  max-width: 360px;
  margin: 0 auto 1.5rem;
  color: var(--vf-muted);
  line-height: 1.5;
  font-style: italic;
}

.vf-result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(360px, 100%);
  margin: 0 auto;
}

.vf-score-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(var(--ring-color, var(--vf-accent)) calc(var(--score) * 1%), #eceef2 0);
  animation: vf-pop 0.7s var(--vf-ease);
}

.vf-score-ring-green { --ring-color: #0f7a45; }
.vf-score-ring-yellow { --ring-color: #a16207; }
.vf-score-ring-red { --ring-color: #b42318; }

.vf-score-dot {
  width: 28px;
  height: 28px;
}

.vf-score-ring strong {
  font-size: 2.6rem;
  letter-spacing: -0.05em;
}

.vf-profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  text-align: center;
  padding: 1.25rem 0 0.5rem;
}

.vf-profile-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.vf-profile-copy {
  min-width: 0;
}

.vf-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.vf-profile-photo {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--vf-accent-soft);
  border: 1px solid var(--vf-line);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.vf-profile-photo img,
.vf-profile-photo .vf-avatar {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
}

.vf-profile-photo .vf-avatar {
  display: grid;
  place-items: center;
  background: var(--vf-ink);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.vf-panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vf-stat-value-sm {
  font-size: 1.1rem !important;
}

.vf-muted-copy {
  color: var(--vf-muted);
  line-height: 1.55;
}

.vf-input-readonly {
  display: flex;
  align-items: center;
  min-height: 46px;
  background: #f3f5f7 !important;
  color: var(--vf-ink);
  font-weight: 650;
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.vf-field-hint {
  margin: 0.35rem 0 0;
  color: var(--vf-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.vf-chart-wrap {
  position: relative;
  height: 280px;
}

/* ——— Dashboard desktop layout ——— */
.vf-dash-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.vf-dash-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

.vf-chart-card {
  display: flex;
  flex-direction: column;
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius);
  box-shadow: var(--vf-shadow);
  padding: 1.15rem 1.2rem 1rem;
  min-height: 360px;
}

.vf-chart-card-list {
  min-height: 0;
}

.vf-chart-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  min-height: 3.2rem;
}

.vf-chart-card-head .vf-panel-title {
  margin: 0;
}

.vf-chart-hint {
  margin: 0.25rem 0 0;
  color: var(--vf-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.vf-chart-tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  flex-shrink: 0;
}

.vf-chart-tool {
  border: 1px solid var(--vf-line);
  background: #fff;
  color: var(--vf-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s var(--vf-ease), color 0.15s var(--vf-ease), border-color 0.15s var(--vf-ease);
}

.vf-chart-tool:hover {
  border-color: var(--vf-line-strong);
  color: var(--vf-ink);
}

.vf-chart-tool.is-active {
  background: var(--vf-ink);
  border-color: var(--vf-ink);
  color: #fff;
}

.vf-chart-body {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 260px;
  height: 260px;
}

.vf-chart-body canvas {
  width: 100% !important;
  height: 100% !important;
}

.vf-chart-empty {
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--vf-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
  background: #fafbfc;
  border-radius: 10px;
  border: 1px dashed var(--vf-line);
}

@media (min-width: 900px) {
  .vf-dash-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .vf-dash-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .vf-chart-card {
    min-height: 400px;
    padding: 1.25rem 1.35rem 1.1rem;
  }

  .vf-chart-body {
    min-height: 280px;
    height: 280px;
  }
}

@media (min-width: 1200px) {
  .vf-dash-kpis {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .vf-dash-kpis .vf-stat-value {
    font-size: 1.45rem;
  }
}

.vf-empty {
  text-align: center;
  padding: 3rem 1.25rem;
  color: var(--vf-muted);
  font-size: 0.95rem;
  background: var(--vf-surface);
  border: 1px dashed var(--vf-line);
  border-radius: var(--vf-radius);
}

.vf-empty-compact {
  padding: 1.35rem 1.1rem;
}

.vf-empty-title {
  margin: 0 0 0.4rem;
  color: var(--vf-ink);
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.vf-empty-text {
  margin: 0 auto 1.15rem;
  max-width: 28rem;
  line-height: 1.5;
}

.vf-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.vf-signature {
  border: 1px dashed var(--vf-line-strong);
  border-radius: 12px;
  background: #fafbfc;
  width: 100%;
  height: 140px;
  touch-action: none;
}

.vf-messages {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(420px, calc(100% - 2rem));
}

.vf-message {
  background: var(--vf-ink);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  animation: vf-rise 0.35s var(--vf-ease);
  font-size: 0.92rem;
  font-weight: 550;
}

.vf-filters {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.vf-chip {
  flex: 0 0 auto;
  padding: 0.42rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--vf-line);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--vf-muted);
  transition: background 0.15s var(--vf-ease), color 0.15s var(--vf-ease), border-color 0.15s var(--vf-ease);
}

.vf-chip.active {
  background: var(--vf-ink);
  color: #fff;
  border-color: var(--vf-ink);
}

.vf-desktop-nav {
  display: none;
}

.vf-search-wrap {
  position: relative;
}

.vf-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8b93a7;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.vf-search-input {
  padding-left: 2.6rem !important;
}

.vf-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.35rem 0 0.65rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius-sm);
  background: var(--vf-bg-elevated, #f4f7f8);
}

.vf-picker-head-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--vf-ink);
  letter-spacing: 0.01em;
}

.vf-picker-toggle {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.35rem;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--vf-accent, #0f6a73);
  border-radius: 999px;
  background: #fff;
  color: var(--vf-accent, #0f6a73);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 106, 115, 0.12);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.vf-picker-toggle-label {
  white-space: nowrap;
}

.vf-picker-toggle:hover {
  background: var(--vf-accent, #0f6a73);
  color: #fff;
  transform: translateY(-1px);
}

.vf-picker-toggle:active {
  transform: translateY(0);
}

.vf-picker-toggle:focus-visible {
  outline: 2px solid var(--vf-accent, #0f6a73);
  outline-offset: 2px;
}

.vf-picker-toggle-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.vf-picker-toggle[aria-expanded="false"] .vf-picker-toggle-icon {
  transform: rotate(-90deg);
}

.vf-picker-panel {
  overflow: hidden;
  transition: max-height 0.28s var(--vf-ease), opacity 0.2s var(--vf-ease), margin 0.2s var(--vf-ease);
}

.vf-picker-panel.is-expanded {
  max-height: 320px;
  opacity: 1;
  margin-bottom: 0.25rem;
}

.vf-picker-panel.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.vf-picker-results {
  margin-top: 0;
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius-sm);
  background: #fff;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: var(--vf-shadow);
}

.vf-picker-results:empty:not(.is-always-open) {
  display: none;
}

.vf-picker-results.is-always-open {
  display: block;
}

.vf-picker-hint {
  padding: 1.1rem 1rem;
  color: var(--vf-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.vf-picker-item {
  width: 100%;
  display: block;
  padding: 0.8rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--vf-line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s var(--vf-ease);
}

.vf-picker-item:last-child {
  border-bottom: 0;
}

.vf-picker-item:hover {
  background: #f8fafb;
}

.vf-picker-item.is-selected {
  background: var(--vf-accent-soft);
  box-shadow: inset 3px 0 0 var(--vf-accent);
}

.vf-picker-item .vf-row-title {
  font-weight: 650;
  font-size: 0.94rem;
}

.vf-picker-item .vf-row-meta {
  font-size: 0.78rem;
}

.vf-selected-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 92, 102, 0.22);
  border-radius: var(--vf-radius-sm);
  background: var(--vf-accent-soft);
}

.vf-selected-chip strong {
  font-weight: 700;
  letter-spacing: -0.025em;
  display: block;
  margin-bottom: 0.15rem;
}

.vf-selected-chip .vf-selected-meta {
  color: var(--vf-muted);
  font-size: 0.8rem;
}

.vf-selected-chip .vf-btn {
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

@keyframes vf-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vf-pop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Caixa alta só nos DADOS de cadastro (listas/campos), não em cards/títulos/botões */
body.vf-cadastro-case .vf-cols-row,
body.vf-cadastro-case .vf-cols-row > span {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body.vf-cadastro-case form.vf-panel input.vf-input,
body.vf-cadastro-case form.vf-panel textarea.vf-input,
body.vf-cadastro-case form.vf-panel select.vf-input {
  text-transform: uppercase;
}

body.vf-cadastro-case form.vf-panel input[type="email"] {
  text-transform: none;
}

.vf-cadastro-home {
  display: flex;
  flex-direction: column;
  gap: 2.15rem;
  max-width: 920px;
}

#escolinha {
  scroll-margin-top: calc(var(--vf-nav-h) + 1.25rem);
}

.vf-cadastro-section {
  margin: 0;
  padding: 1.35rem 1.4rem 1.45rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(225, 228, 234, 0.9);
  border-radius: calc(var(--vf-radius) + 4px);
  box-shadow: 0 1px 0 rgba(12, 18, 34, 0.03);
}

.vf-cadastro-section-head {
  margin: 0 0 1.1rem;
  padding: 0 0 0.95rem;
  border-bottom: 1px solid var(--vf-line);
}

.vf-cadastro-section-title {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--vf-ink);
}

.vf-cadastro-section-sub {
  margin: 0;
  color: var(--vf-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 46rem;
}

.vf-cadastro-section-sub strong {
  color: var(--vf-ink);
  font-weight: 700;
}

.vf-cadastro-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.vf-cadastro-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 6.4rem;
  padding: 1.2rem 1.25rem;
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius);
  box-shadow: var(--vf-shadow);
  transition:
    border-color 0.18s var(--vf-ease),
    background 0.18s var(--vf-ease),
    box-shadow 0.18s var(--vf-ease),
    transform 0.18s var(--vf-ease);
}

.vf-cadastro-card:hover {
  border-color: rgba(15, 92, 102, 0.35);
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 18, 34, 0.06);
  transform: translateY(-1px);
}

.vf-cadastro-card:focus-visible {
  outline: 2px solid rgba(15, 92, 102, 0.35);
  outline-offset: 2px;
}

.vf-cadastro-card strong {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.vf-cadastro-card span {
  color: var(--vf-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (min-width: 700px) {
  .vf-cadastro-grid,
  .vf-cadastro-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .vf-cadastro-home {
    gap: 2.4rem;
  }

  .vf-cadastro-section {
    padding: 1.5rem 1.55rem 1.6rem;
  }

  .vf-cadastro-grid:not(.vf-cadastro-grid--2) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .vf-page-head--split {
    align-items: stretch;
  }

  .vf-page-head-actions {
    width: 100%;
    justify-content: stretch;
  }

  .vf-page-head-actions .vf-btn {
    width: 100%;
  }

  .vf-filter-bar .vf-search-wrap {
    max-width: none;
    flex: 1 1 100%;
  }

  .vf-filter-bar .vf-filter-select {
    flex: 1 1 calc(50% - 0.4rem);
    max-width: none;
  }
}

/* ——— Desktop (PC) ——— */
@media (min-width: 900px) {
  .vf-bottom-nav {
    display: none;
  }

  .vf-main {
    padding: 2rem 1.75rem 2.75rem;
  }

  .vf-page-title {
    font-size: 2rem;
  }

  .vf-page-sub {
    max-width: 42rem;
  }

  .vf-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }

  .vf-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .vf-desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1 1 auto;
    justify-content: flex-start;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .vf-desktop-nav a {
    flex: 0 0 auto;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    color: var(--vf-muted);
    font-size: 0.84rem;
    font-weight: 650;
    white-space: nowrap;
    transition: background 0.15s var(--vf-ease), color 0.15s var(--vf-ease);
  }

  .vf-desktop-nav a.active,
  .vf-desktop-nav a:hover {
    background: rgba(12, 18, 34, 0.05);
    color: var(--vf-ink);
  }

  .vf-company-chip {
    max-width: 200px;
  }

  .vf-topbar-context {
    padding-right: 0.45rem;
    margin-right: 0.2rem;
    border-right: 1px solid var(--vf-line);
  }

  .vf-profile-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 1.5rem;
    padding: 0.5rem 0 0.75rem;
  }

  .vf-profile-identity {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1.25rem;
    flex: 1;
    min-width: 0;
  }

  .vf-profile-copy .vf-page-title {
    margin-bottom: 0.25rem;
  }

  .vf-profile-copy .vf-page-sub {
    margin-bottom: 0.65rem;
  }

  .vf-profile-actions {
    justify-content: flex-end;
    flex-shrink: 0;
    max-width: 42%;
  }

  .vf-eval-body {
    width: min(560px, 100%);
    margin: 0 auto;
  }

  /* Formulários em 2 colunas no PC */
  form.vf-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 0.15rem;
    padding: 1.75rem 1.7rem 1.5rem;
  }

  form.vf-panel > .vf-field {
    margin-bottom: 1.25rem;
  }

  form.vf-panel > .vf-selected-chip {
    grid-column: 1 / -1;
    margin-bottom: 1.15rem;
  }

  form.vf-panel > .vf-field:has(textarea),
  form.vf-panel > .vf-field:has(.vf-picker-results),
  form.vf-panel > .vf-field:has(.vf-rating-grid),
  form.vf-panel > .vf-field:has(.vf-search-wrap),
  form.vf-panel > .vf-field:has(#selected-driver-box),
  form.vf-panel > .vf-datetime-pair,
  form.vf-panel > .vf-datetime-stack,
  form.vf-panel > .vf-training-main-row,
  form.vf-panel > .vf-form-hint,
  form.vf-panel > .vf-form-actions {
    grid-column: 1 / -1;
  }

  form.vf-panel > .vf-form-hint {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    color: var(--vf-muted);
  }

  form.vf-panel > .vf-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: 0.35rem;
  }

  form.vf-panel > .vf-form-actions .vf-btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 220px;
    justify-content: center;
  }

  .vf-cols-head,
  .vf-cols-row {
    padding: 1.05rem 1.4rem;
    gap: 1.25rem;
  }

  .vf-cols-head {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
  }

  .vf-page-head--split {
    margin-bottom: 1.9rem;
  }

  .vf-stat {
    padding: 1.2rem 1.25rem;
  }
}

/* Telas muito largas */
@media (min-width: 1400px) {
  :root {
    --vf-content: 1360px;
  }
}

/* Mobile: tabelas podem rolar se precisar */
@media (max-width: 899px) {
  .vf-cols-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .vf-cols-trucks:not(.vf-cols-mobile) .vf-cols-head,
  .vf-cols-trucks:not(.vf-cols-mobile) .vf-cols-row,
  .vf-cols-people:not(.vf-cols-mobile) .vf-cols-head,
  .vf-cols-people:not(.vf-cols-mobile) .vf-cols-row,
  .vf-cols-evals .vf-cols-head,
  .vf-cols-evals .vf-cols-row,
  .vf-cols-trainings:not(.vf-cols-mobile) .vf-cols-head,
  .vf-cols-trainings:not(.vf-cols-mobile) .vf-cols-row,
  .vf-cols-trainings-records:not(.vf-cols-mobile) .vf-cols-head,
  .vf-cols-trainings-records:not(.vf-cols-mobile) .vf-cols-row,
  .vf-cols-trainings-history .vf-cols-head,
  .vf-cols-trainings-history .vf-cols-row,
  .vf-cols-hours-modules:not(.vf-cols-mobile) .vf-cols-head,
  .vf-cols-hours-modules:not(.vf-cols-mobile) .vf-cols-row,
  .vf-cols-escolinha-modules:not(.vf-cols-mobile) .vf-cols-head,
  .vf-cols-escolinha-modules:not(.vf-cols-mobile) .vf-cols-row,
  .vf-cols-escolinha-students:not(.vf-cols-mobile) .vf-cols-head,
  .vf-cols-escolinha-students:not(.vf-cols-mobile) .vf-cols-row,
  .vf-cols-escolinha-assign:not(.vf-cols-mobile) .vf-cols-head,
  .vf-cols-escolinha-assign:not(.vf-cols-mobile) .vf-cols-row {
    min-width: 560px;
  }

  .vf-form-actions {
    align-items: stretch;
  }

  .vf-form-actions .vf-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    justify-content: center;
  }

  .vf-toolbar {
    gap: 0.75rem;
  }

  .vf-toolbar > .vf-btn,
  .vf-toolbar-actions {
    width: 100%;
    margin-left: 0;
  }

  .vf-toolbar > .vf-btn {
    justify-content: center;
  }

  .vf-toolbar-search,
  .vf-toolbar-search--split {
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
  }
}

.vf-form-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--vf-muted);
  line-height: 1.45;
}

/* Listas de cadastro: cards no celular (sem colunas emboladas).
   !important no grid: regras .vf-cols-* específicas vêm depois e sobrescreviam 1fr. */
@media (max-width: 700px) {
  .vf-cols-wrap.vf-cols-mobile {
    overflow: visible;
  }

  .vf-cols-wrap.vf-cols-mobile .vf-cols-head {
    display: none !important;
  }

  .vf-cols-wrap.vf-cols-mobile .vf-cols-desktop-only,
  .vf-cols-wrap.vf-cols-mobile .vf-cols-row > .vf-cols-desktop-only {
    display: none !important;
  }

  .vf-cols-wrap.vf-cols-mobile .vf-cols-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.55rem;
    align-items: stretch;
    padding: 1rem 1.05rem;
    min-width: 0 !important;
    min-height: 0;
    overflow: hidden;
  }

  .vf-cols-wrap.vf-cols-mobile .vf-cols-row > span[data-label] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .vf-cols-wrap.vf-cols-mobile .vf-cols-row > span[data-label]::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7488;
  }

  .vf-cols-wrap.vf-cols-mobile .vf-cols-row > .vf-cols-cell-name {
    display: block;
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    padding-bottom: 0.35rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid var(--vf-line);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .vf-cols-wrap.vf-cols-mobile .vf-cols-row > .vf-cols-cell-name::before {
    display: block;
    margin-bottom: 0.2rem;
  }

  .vf-cols-wrap.vf-cols-mobile .vf-cols-row > .vf-row-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: stretch;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    padding-top: 0.35rem;
    margin-top: 0.15rem;
    border-top: 1px solid var(--vf-line);
    min-width: 0;
  }

  .vf-cols-wrap.vf-cols-mobile .vf-cols-row > .vf-row-actions::before {
    display: none;
  }

  .vf-cols-wrap.vf-cols-mobile .vf-row-actions .vf-btn,
  .vf-cols-wrap.vf-cols-mobile .vf-row-actions form {
    flex: 1 1 calc(50% - 0.25rem);
    margin: 0;
    min-width: 0;
    max-width: 100%;
  }

  .vf-cols-wrap.vf-cols-mobile .vf-row-actions .vf-btn {
    width: 100%;
    justify-content: center;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .vf-cols-wrap.vf-cols-mobile .vf-row-actions form:only-child,
  .vf-cols-wrap.vf-cols-mobile .vf-row-actions .vf-btn:only-child {
    flex: 1 1 100%;
  }
}

/* ——— Confirm modal ——— */
.vf-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.vf-modal.is-open {
  display: flex;
}

.vf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 34, 0.42);
  backdrop-filter: blur(4px);
}

.vf-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: 16px;
  padding: 1.5rem 1.4rem 1.25rem;
  box-shadow: 0 24px 48px rgba(12, 18, 34, 0.18);
  animation: vf-pop 0.28s var(--vf-ease);
}

.vf-modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.vf-modal-text {
  margin: 0 0 1.35rem;
  color: var(--vf-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.vf-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ——— HTMX loading ——— */
.vf-search-wrap {
  position: relative;
}

.vf-htmx-indicator {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--vf-muted);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #fff 18%);
  padding-left: 1rem;
}

.htmx-request .vf-htmx-indicator,
.vf-htmx-indicator.htmx-request {
  display: inline-flex;
}

.vf-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--vf-line-strong);
  border-top-color: var(--vf-accent);
  border-radius: 50%;
  animation: vf-spin 0.7s linear infinite;
}

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

#drivers-results-wrap.htmx-request,
#driver-picker-results.htmx-request {
  opacity: 0.5;
  transition: opacity 0.15s var(--vf-ease);
  pointer-events: none;
}

/* ——— Escolinha ——— */
.vf-auth-choice-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.35rem 0 0.5rem;
}

.vf-auth-choice {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s var(--vf-ease), box-shadow 0.18s var(--vf-ease), transform 0.18s var(--vf-ease);
}

.vf-auth-choice:hover {
  border-color: rgba(15, 92, 102, 0.45);
  box-shadow: 0 8px 22px rgba(12, 18, 34, 0.06);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}

.vf-auth-choice strong {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--vf-accent);
  letter-spacing: -0.02em;
}

.vf-auth-choice span {
  color: var(--vf-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Login — botão Criar conta bem visível */
.vf-auth-card-login {
  width: min(480px, 100%);
}

.vf-login-remember {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.15rem 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vf-ink);
  cursor: pointer;
  line-height: 1.35;
  user-select: none;
}

.vf-login-remember input {
  margin-top: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--vf-accent, #0f5c66);
  flex: 0 0 auto;
}

.vf-auth-signup {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--vf-line);
  display: grid;
  gap: 0.75rem;
}

.vf-auth-signup-title {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 750;
  color: var(--vf-ink);
}

.vf-auth-signup .vf-btn-accent {
  background: var(--vf-accent);
  color: #fff;
  border-color: var(--vf-accent);
  text-decoration: none;
}

.vf-auth-signup .vf-btn-accent:hover {
  background: #0c4a52;
  border-color: #0c4a52;
  color: #fff;
}

.vf-auth-signup-hint {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--vf-muted);
  line-height: 1.4;
}

.vf-auth-student-link {
  display: block;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--vf-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vf-auth-student-link:hover {
  color: #0c4a52;
}

.vf-escolinha-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.vf-escolinha-hero-copy {
  flex: 1 1 260px;
  min-width: 0;
}

.vf-cols-escolinha-modules .vf-cols-head,
.vf-cols-escolinha-modules .vf-cols-row {
  grid-template-columns: minmax(0, 1.6fr) 70px 80px 90px 80px 260px;
}

.vf-cols-escolinha-assign .vf-cols-head,
.vf-cols-escolinha-assign .vf-cols-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 70px 120px;
}

.vf-cols-escolinha-students .vf-cols-head,
.vf-cols-escolinha-students .vf-cols-row {
  grid-template-columns: minmax(0, 1.2fr) 140px minmax(0, 1.2fr) 200px;
}

.vf-escolinha-q-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.vf-escolinha-options {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--vf-muted);
}

.vf-escolinha-options .is-correct {
  color: var(--vf-green);
  font-weight: 650;
}

.vf-escolinha-option-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.35rem;
}

.vf-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
}

.vf-escolinha-img,
.vf-escolinha-cover {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--vf-radius);
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--vf-line);
}

.vf-escolinha-module-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 920px;
}

@media (min-width: 700px) {
  .vf-escolinha-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vf-escolinha-module-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--vf-line);
  border-radius: calc(var(--vf-radius) + 2px);
  overflow: hidden;
  box-shadow: var(--vf-shadow);
  border-top: 3px solid var(--vf-accent);
  transition: border-color 0.18s var(--vf-ease), transform 0.18s var(--vf-ease);
}

.vf-escolinha-module-card:hover {
  border-color: rgba(15, 92, 102, 0.35);
  transform: translateY(-1px);
}

.vf-escolinha-module-cover {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--vf-line);
}

.vf-escolinha-module-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem 1.2rem 1.25rem;
}

.vf-escolinha-module-body strong {
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.vf-escolinha-module-body span,
.vf-escolinha-module-body em {
  font-style: normal;
  color: var(--vf-muted);
  font-size: 0.88rem;
}

.vf-escolinha-module-body em.is-ok { color: var(--vf-green); font-weight: 650; }
.vf-escolinha-module-body em.is-bad { color: var(--vf-red); font-weight: 650; }

.vf-escolinha-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vf-line);
  color: var(--vf-muted);
  font-size: 0.9rem;
}

.vf-escolinha-content {
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.vf-escolinha-progress {
  color: var(--vf-muted);
  font-size: 0.88rem;
  font-weight: 650;
  margin: 0 0 1rem;
}

.vf-escolinha-q-title {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.35;
}

.vf-escolinha-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  margin-bottom: 0.55rem;
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s var(--vf-ease), background 0.15s var(--vf-ease);
}

.vf-escolinha-choice:hover {
  border-color: rgba(15, 92, 102, 0.35);
  background: #f7fbfb;
}

.vf-escolinha-choice input {
  margin-top: 0.2rem;
}

.vf-escolinha-choice.is-locked {
  cursor: default;
  pointer-events: none;
}

.vf-escolinha-choice.is-locked:hover {
  background: #fff;
  border-color: var(--vf-line);
}

.vf-escolinha-choice.is-picked {
  border-color: rgba(15, 92, 102, 0.45);
  background: #f3f8f9;
}

.vf-escolinha-choice.is-right {
  border-color: rgba(15, 122, 69, 0.45);
  background: var(--vf-green-soft);
}

.vf-escolinha-feedback {
  padding: 0.85rem 1rem;
  border-radius: var(--vf-radius-sm);
  margin: 0 0 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vf-escolinha-feedback.is-ok {
  background: var(--vf-green-soft);
  color: var(--vf-green);
}

.vf-escolinha-feedback.is-bad {
  background: var(--vf-red-soft);
  color: var(--vf-red);
}

.vf-escolinha-quiz-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--vf-line);
}

.vf-escolinha-nav-btn {
  min-width: 8.5rem;
  gap: 0.35rem;
}

.vf-escolinha-nav-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.vf-escolinha-result-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  background: var(--vf-accent-soft);
  color: var(--vf-accent);
}

.vf-escolinha-result-badge.is-ok {
  background: var(--vf-green-soft);
  color: var(--vf-green);
}

.vf-escolinha-result-badge.is-bad {
  background: var(--vf-red-soft);
  color: var(--vf-red);
}

.vf-escolinha-answer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.vf-escolinha-answer-list li {
  padding: 0.95rem 1.05rem;
  border-radius: var(--vf-radius-sm);
  border: 1px solid var(--vf-line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.vf-escolinha-answer-list li.is-ok {
  border-color: rgba(15, 122, 69, 0.45);
  background: var(--vf-green-soft);
}

.vf-escolinha-answer-list li.is-bad {
  border-color: rgba(180, 35, 24, 0.4);
  background: var(--vf-red-soft);
}

.vf-escolinha-answer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.85rem;
}

.vf-escolinha-answer-top strong {
  flex: 1 1 200px;
  min-width: 0;
  line-height: 1.35;
  color: var(--vf-ink);
}

.vf-escolinha-tag {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.vf-escolinha-tag.is-ok {
  background: #0f7a45;
  color: #fff;
}

.vf-escolinha-tag.is-bad {
  background: #b42318;
  color: #fff;
}

.vf-escolinha-answer-pick {
  font-size: 0.9rem;
  line-height: 1.4;
}

.vf-escolinha-answer-list li.is-ok .vf-escolinha-answer-pick {
  color: #0b5c34;
  font-weight: 650;
}

.vf-escolinha-answer-list li.is-bad .vf-escolinha-answer-pick {
  color: #8f1c14;
  font-weight: 650;
}

.vf-escolinha-cert-list {
  display: grid;
  gap: 0.85rem;
  max-width: 720px;
}

.vf-escolinha-cert-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.1rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--vf-line);
  border-top: 3px solid var(--vf-accent);
  border-radius: var(--vf-radius-sm);
  background: #fff;
}

.vf-escolinha-cert-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 220px;
}

.vf-escolinha-cert-body strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--vf-ink);
}

.vf-escolinha-cert-body span {
  font-size: 0.88rem;
  color: var(--vf-muted);
}

.vf-escolinha-cert-body em {
  font-style: normal;
  font-size: 0.88rem;
}

.vf-escolinha-cert-body em.is-ok {
  color: var(--vf-green);
  font-weight: 650;
}

.vf-escolinha-cert-kind {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--vf-accent-soft);
  color: var(--vf-accent);
}

.vf-escolinha-cert-kind.is-training {
  background: #eef2f7;
  color: #3a4658;
}

.vf-escolinha-cert-kind.is-recycling {
  background: #f3efe6;
  color: #8a6a1f;
}

.vf-escolinha-cert-kind.is-escolinha {
  background: var(--vf-accent-soft);
  color: var(--vf-accent);
}

.vf-logo-preview-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.25rem;
}

.vf-logo-preview {
  width: 140px;
  height: 100px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--vf-line-strong);
  border-radius: var(--vf-radius-sm);
  background: #f7f8fa;
  overflow: hidden;
  padding: 0.5rem;
}

.vf-logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.vf-logo-preview-empty {
  font-size: 0.82rem;
  color: var(--vf-muted);
  text-align: center;
}

.vf-logo-preview-fields {
  flex: 1 1 220px;
  min-width: 0;
}

.vf-logo-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.15rem;
}

.vf-logo-editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
  flex: 1 1 200px;
  min-width: 0;
}

.vf-logo-pick {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
}

.vf-logo-pick input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.vf-logo-clear-btn {
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.vf-logo-clear-input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--vf-red, #b42318);
}

.vf-input-file {
  max-width: 100%;
}

.vf-dossier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.vf-dossier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.vf-dossier {
  display: grid;
  gap: 1.15rem;
  max-width: 980px;
}

.vf-dossier-section {
  background: #fff;
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius-sm);
  padding: 1.15rem 1.25rem 1.25rem;
}

.vf-dossier-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.95rem;
}

.vf-dossier-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--vf-accent);
}

.vf-dossier-id {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.35rem;
  align-items: flex-start;
}

.vf-dossier-photo {
  width: 88px;
  height: 88px;
  border-radius: var(--vf-radius-sm);
  overflow: hidden;
  background: var(--vf-accent-soft);
  flex: 0 0 auto;
}

.vf-dossier-photo img,
.vf-dossier-photo .vf-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 750;
  color: var(--vf-accent);
}

.vf-dossier-id-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  flex: 1 1 260px;
  min-width: 0;
}

.vf-dossier-id-grid .vf-label {
  display: block;
  margin-bottom: 0.2rem;
}

.vf-dossier-id-grid strong {
  font-weight: 650;
  color: var(--vf-ink);
  word-break: break-word;
}

.vf-stat-hint {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--vf-muted);
}

.vf-dossier-stack {
  display: grid;
  gap: 0.65rem;
}

.vf-dossier-eval,
.vf-dossier-line {
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius-sm);
  padding: 0.85rem 0.95rem;
  background: #fbfcfd;
}

.vf-dossier-eval.is-green { border-left: 3px solid var(--vf-green); }
.vf-dossier-eval.is-yellow { border-left: 3px solid #ca8a04; }
.vf-dossier-eval.is-red { border-left: 3px solid var(--vf-red); }

.vf-dossier-eval-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
}

.vf-dossier-eval-meta,
.vf-dossier-line span {
  margin: 0;
  font-size: 0.88rem;
  color: var(--vf-muted);
  line-height: 1.4;
}

.vf-dossier-eval-notes,
.vf-dossier-line em,
.vf-dossier-notes {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--vf-ink);
  font-style: normal;
}

.vf-dossier-line {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.vf-dossier-line strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.vf-dossier-foot {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 700px) {
  .vf-dossier-id-grid {
    grid-template-columns: 1fr;
  }
}

.vf-dossier-id {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.4rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--vf-line);
}

.vf-dossier-id-main {
  flex: 1 1 280px;
  min-width: 0;
  display: grid;
  gap: 0.95rem;
}

.vf-dossier-id-titleblock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.vf-dossier-id-name {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--vf-ink);
}

.vf-dossier-id-meta {
  font-size: 0.9rem;
  color: var(--vf-muted);
  line-height: 1.35;
}

.vf-dossier-scorebox {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.65rem 1.25rem;
  align-items: end;
  padding: 0.9rem 1rem;
  border-radius: var(--vf-radius-sm);
  border: 1px solid rgba(15, 92, 102, 0.18);
  background: linear-gradient(180deg, #f3fafb 0%, var(--vf-accent-soft) 100%);
}

.vf-dossier-scorebox-score strong {
  display: block;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--vf-accent);
  margin-top: 0.2rem;
}

.vf-dossier-scorebox-cat .vf-badge {
  margin-top: 0.25rem;
}

.vf-dossier-scorebox-help {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--vf-muted);
}

.vf-dossier-id-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
}

.vf-dossier-id-fields .vf-label {
  display: block;
  margin-bottom: 0.2rem;
}

.vf-dossier-id-fields strong {
  font-weight: 650;
  color: var(--vf-ink);
  word-break: break-word;
}

@media (max-width: 700px) {
  .vf-dossier-scorebox {
    grid-template-columns: 1fr 1fr;
  }
  .vf-dossier-id-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.vf-score-legend {
  margin: 0.85rem 0 1.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 92, 102, 0.2);
  border-radius: var(--vf-radius-sm);
  background: #f3fafb;
}

.vf-score-legend-title {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vf-accent);
}

.vf-score-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.vf-score-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--vf-ink);
}

.vf-score-legend-note {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--vf-muted);
  line-height: 1.35;
}

.vf-rating-pts {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--vf-ink);
}

.vf-result .vf-score-legend {
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.vf-scoreboard-legend-block {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius-sm);
  background: #fff;
}

.vf-scoreboard-colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.vf-scoreboard-color {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: var(--vf-radius-sm);
  border: 1px solid var(--vf-line);
  background: #fbfcfd;
}

.vf-scoreboard-color.is-green { border-left: 3px solid var(--vf-green); }
.vf-scoreboard-color.is-yellow { border-left: 3px solid #ca8a04; }
.vf-scoreboard-color.is-red { border-left: 3px solid var(--vf-red); }

.vf-scoreboard-color strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.vf-scoreboard-color p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--vf-muted);
}

.vf-scoreboard-formula {
  margin: 0.95rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--vf-muted);
}

.vf-cols-scoreboard .vf-cols-head,
.vf-cols-scoreboard .vf-cols-row {
  grid-template-columns: 48px minmax(0, 1.8fr) 110px minmax(0, 1fr) 90px 150px 72px;
}

.vf-scoreboard-rank {
  font-weight: 750;
  color: var(--vf-muted);
}

.vf-scoreboard-pts {
  color: var(--vf-accent);
  font-weight: 700;
  text-align: right;
  justify-self: end;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .vf-scoreboard-colors {
    grid-template-columns: 1fr;
  }

  .vf-cols-scoreboard .vf-cols-head,
  .vf-cols-scoreboard .vf-cols-row {
    grid-template-columns: 36px minmax(0, 1fr) 44px;
    gap: 0.55rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .vf-cols-scoreboard .vf-cols-head span:nth-child(3),
  .vf-cols-scoreboard .vf-cols-head span:nth-child(4),
  .vf-cols-scoreboard .vf-cols-head span:nth-child(5),
  .vf-cols-scoreboard .vf-cols-head span:nth-child(6),
  .vf-cols-scoreboard .vf-cols-row span:nth-child(3),
  .vf-cols-scoreboard .vf-cols-row span:nth-child(4),
  .vf-cols-scoreboard .vf-cols-row span:nth-child(5),
  .vf-cols-scoreboard .vf-cols-row span:nth-child(6) {
    display: none;
  }

  .vf-cols-scoreboard .vf-cols-head > span:last-child,
  .vf-cols-scoreboard .vf-scoreboard-pts {
    text-align: right;
  }

  .vf-cols-scoreboard .vf-cols-cell-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
    word-break: break-word;
  }
}

.vf-scoreboard-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.1rem;
  margin-bottom: 0.25rem;
}

.vf-scoreboard-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.75rem;
  flex: 1 1 320px;
  max-width: 720px;
}

.vf-scoreboard-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-bottom: 2px;
}

.vf-reports-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.7rem 0.85rem;
}

.vf-reports-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-bottom: 2px;
}

.vf-reports-open {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--vf-line);
}

.vf-dossier-logic-note {
  margin: 0.95rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--vf-radius-sm);
  border: 1px solid rgba(15, 92, 102, 0.16);
  background: #f7fafb;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--vf-muted);
}

.vf-dossier-logic-note strong {
  color: var(--vf-ink);
}

.vf-dossier-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.vf-dossier-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1.15rem;
}

.vf-dossier-toolbar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 320px;
}

.vf-dossier {
  max-width: none;
  width: 100%;
}

.vf-dossier-id-grid-pro {
  display: grid;
  grid-template-columns: 112px minmax(0, 1.4fr) minmax(240px, 0.9fr);
  gap: 1rem 1.25rem;
  align-items: stretch;
}

.vf-dossier-photo-pro {
  width: 112px;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef5f6 0%, var(--vf-accent-soft) 100%);
  border: 1px solid rgba(15, 92, 102, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vf-dossier-photo-pro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vf-dossier-photo-pro .vf-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--vf-accent);
  background: transparent;
}

.vf-dossier-id-fields-pro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1rem;
  align-content: start;
}

.vf-dossier-id-fields-pro .vf-label {
  display: block;
  margin-bottom: 0.15rem;
}

.vf-dossier-id-fields-pro strong {
  font-weight: 650;
  color: var(--vf-ink);
  word-break: break-word;
}

.vf-dossier-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  margin-top: 0.35rem;
}

.vf-dossier-meta > span:not(:last-child)::after {
  content: "·";
  margin-left: 0.55rem;
  color: var(--vf-muted);
  opacity: 0.7;
}

.vf-dossier-score-panel {
  border: 1px solid rgba(15, 92, 102, 0.18);
  border-radius: var(--vf-radius-sm);
  background: linear-gradient(180deg, #f3fafb 0%, var(--vf-accent-soft) 100%);
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vf-dossier-score-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.vf-dossier-score-num {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 2rem;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--vf-accent);
}

.vf-dossier-score-unit {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--vf-muted);
  margin-left: 0.2rem;
}

.vf-dossier-score-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--vf-ink);
}

.vf-dossier-score-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.vf-dossier-score-legend .vf-dot {
  width: 0.55rem;
  height: 0.55rem;
}

.vf-dossier-score-panel > p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--vf-muted);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .vf-dossier-id-grid-pro {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .vf-dossier-score-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .vf-dossier-page {
    max-width: 100%;
    overflow-x: hidden;
  }

  .vf-dossier-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 0.95rem;
  }

  .vf-dossier-toolbar-left {
    flex: 1 1 auto;
  }

  .vf-dossier-toolbar-left .vf-page-title {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .vf-dossier-toolbar-left .vf-page-sub {
    margin-top: 0.35rem;
    font-size: 0.86rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .vf-dossier-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0.5rem;
  }

  .vf-dossier-actions .vf-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .vf-dossier-section {
    padding: 0.95rem 0.9rem 1.05rem;
    overflow: hidden;
  }

  .vf-dossier-id-grid-pro {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .vf-dossier-photo-pro {
    width: 76px;
    height: 76px;
  }

  .vf-dossier-photo-pro .vf-avatar {
    font-size: 1.7rem;
  }

  .vf-dossier-id-fields-pro {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .vf-dossier-id-fields-pro > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--vf-line);
    min-width: 0;
  }

  .vf-dossier-id-fields-pro > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .vf-dossier-id-fields-pro .vf-label {
    margin: 0;
    flex: 0 0 auto;
    max-width: 42%;
  }

  .vf-dossier-id-fields-pro strong {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .vf-dossier-score-panel {
    grid-column: auto;
  }

  .vf-dossier-page .vf-grid.vf-grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .vf-dossier-page .vf-stat {
    padding: 0.85rem 0.8rem;
    min-width: 0;
  }

  .vf-dossier-page .vf-stat-value {
    font-size: 1.25rem;
  }

  .vf-dossier-eval-meta,
  .vf-dossier-line span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .vf-dossier-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .vf-dossier-foot .vf-form-actions-end {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .vf-dossier-foot .vf-form-actions-end .vf-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .vf-reports-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .vf-reports-filter .vf-field {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100%;
  }

  .vf-reports-filter-actions {
    width: 100%;
    padding-bottom: 0;
  }

  .vf-reports-filter-actions .vf-btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .vf-reports-open {
    flex-direction: column;
    align-items: stretch;
  }

  .vf-reports-open .vf-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Dash gerencial — títulos com ênfase de cor (mesmo tamanho) */
.vf-manager-dash .vf-panel-title {
  color: var(--vf-accent);
  font-weight: 750;
  padding-bottom: 0.65rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 92, 102, 0.18);
  box-shadow: inset 0 -2px 0 0 var(--vf-accent);
}

/* Landing / capa pública */
.vf-landing-body {
  margin: 0;
  min-height: 100vh;
  background: #070d14;
  color: #f4f7fa;
  font-family: var(--vf-font);
}

.vf-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.vf-landing-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.1rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
  background-color: #0a1620;
  background-image:
    linear-gradient(105deg, rgba(4, 10, 16, 0.92) 0%, rgba(4, 10, 16, 0.72) 38%, rgba(4, 10, 16, 0.28) 68%, rgba(4, 10, 16, 0.45) 100%),
    var(--vf-landing-image);
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}

.vf-landing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 2;
  animation: vf-landing-rise 0.7s var(--vf-ease) both;
}

.vf-landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.vf-landing-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #0a1620;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.vf-landing-top-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
}

.vf-landing-top-link:hover {
  color: #fff;
}

.vf-landing-content {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  padding-bottom: 1.5rem;
}

.vf-landing-brand-hero {
  margin: 0 0 0.55rem;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: #fff;
  animation: vf-landing-rise 0.75s var(--vf-ease) 0.08s both;
}

.vf-landing-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
  animation: vf-landing-rise 0.75s var(--vf-ease) 0.16s both;
}

.vf-landing-lead {
  margin: 0 0 1.6rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.45;
  color: rgba(236, 242, 247, 0.86);
  max-width: 28rem;
  animation: vf-landing-rise 0.75s var(--vf-ease) 0.24s both;
}

.vf-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: vf-landing-rise 0.75s var(--vf-ease) 0.32s both;
}

.vf-btn-landing-primary {
  background: #0f5c66;
  color: #fff;
  border: 1px solid #0f5c66;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-weight: 700;
  border-radius: 11px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--vf-ease), transform 0.2s var(--vf-ease);
}

.vf-btn-landing-primary:hover {
  background: #127480;
  color: #fff;
  transform: translateY(-1px);
}

.vf-btn-landing-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-weight: 700;
  border-radius: 11px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--vf-ease), border-color 0.2s var(--vf-ease), transform 0.2s var(--vf-ease);
}

.vf-btn-landing-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}

.vf-landing-strip {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  background: #0e151d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  max-width: none;
}

.vf-landing-strip-title {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #fff;
}

.vf-landing-strip-text {
  margin: 0;
  max-width: 40rem;
  color: rgba(220, 228, 236, 0.78);
  line-height: 1.55;
  font-size: 1.02rem;
}

.vf-landing-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem) 1.4rem;
  background: #0a1016;
  color: rgba(200, 210, 220, 0.55);
  font-size: 0.85rem;
  font-weight: 600;
}

.vf-landing-footer-sep {
  opacity: 0.5;
}

@keyframes vf-landing-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .vf-landing-hero {
    background-position: 70% center;
    min-height: 92vh;
  }

  .vf-landing-actions {
    width: 100%;
  }

  .vf-btn-landing-primary,
  .vf-btn-landing-ghost {
    flex: 1 1 auto;
    min-width: 140px;
  }
}

/* VisionLab — painel do superusuário */
.vf-btn-lab {
  background: #1a1f36;
  color: #f4f6ff;
  border: 1px solid #2c3358;
}

.vf-btn-lab:hover {
  background: #252b4a;
  color: #fff;
}

.vf-desktop-nav .vf-nav-lab {
  background: #1a1f36;
  color: #f4f6ff !important;
  border-radius: 9px;
  padding: 0.35rem 0.7rem;
  font-weight: 750;
}

.vf-desktop-nav .vf-nav-lab:hover,
.vf-desktop-nav .vf-nav-lab.active {
  background: #252b4a;
  color: #fff !important;
}

.vf-platform {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
  max-width: 100%;
}

.vf-platform-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  flex-wrap: wrap;
}

.vf-platform-banner > div {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 640px) {
  .vf-platform-banner-actions {
    width: 100%;
  }

  .vf-platform-banner-actions .vf-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.vf-platform-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a5680;
}

.vf-platform-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.45rem;
  border-radius: var(--vf-radius);
  background: #161b2e;
  border: 1px solid #2a3152;
  max-width: 100%;
}

.vf-platform-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  color: #c8d0ef;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

.vf-platform-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.vf-platform-nav-item.is-active {
  background: #fff;
  color: #161b2e;
}

.vf-platform-intro {
  margin: 0;
  color: var(--vf-muted);
  overflow-wrap: anywhere;
}

.vf-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.vf-platform .vf-dash-kpis,
.vf-platform .vf-stat,
.vf-platform .vf-panel {
  min-width: 0;
  max-width: 100%;
}

.vf-platform .table-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.15rem;
  padding: 0 0.15rem;
}

.vf-platform-cards {
  display: none;
  gap: 0.75rem;
}

.vf-platform-card {
  border: 1px solid var(--vf-line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fafbfc;
}

.vf-platform-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.vf-platform-card-meta {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.vf-platform-card-meta > div {
  display: grid;
  gap: 0.12rem;
}

.vf-platform-card-meta dt {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vf-muted);
}

.vf-platform-card-meta dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.vf-platform-table {
  margin: 0;
  font-size: 0.92rem;
  width: 100%;
}

.vf-platform-table th {
  color: var(--vf-muted);
  font-weight: 650;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.vf-platform-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
}

.vf-platform-actions form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.vf-platform-actions .vf-btn {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}

.vf-platform-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  color: var(--vf-muted);
  font-weight: 650;
  font-size: 0.9rem;
}

.vf-platform-back:hover {
  color: var(--vf-ink);
}

.vf-platform-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.vf-platform-search .vf-input {
  min-width: 12rem;
}

.vf-platform-form-panel {
  max-width: 720px;
}

.vf-platform-form {
  display: grid;
  gap: 0.85rem;
}

.vf-platform-form--inline {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
}

.vf-platform-form--inline .vf-form-actions {
  grid-column: 1 / -1;
}

.vf-muted-sm {
  display: block;
  font-size: 0.8rem;
  color: var(--vf-muted);
}

.vf-tag {
  display: inline-flex;
  margin: 0 0.2rem 0.2rem 0;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: #eef0f4;
  color: #3d465c;
  font-size: 0.72rem;
  font-weight: 650;
}

.vf-check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

/* VisionLab: mantém bottom nav no celular para o admin sair da gestão SaaS */
.vf-platform-page .vf-main {
  padding-bottom: calc(var(--vf-bottom-h) + 1.6rem);
}

@media (max-width: 900px) {
  .vf-platform-grid {
    grid-template-columns: 1fr;
  }

  .vf-platform .vf-dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vf-platform-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .vf-platform-nav::-webkit-scrollbar {
    display: none;
  }

  .vf-platform-search .vf-input {
    min-width: 0;
    flex: 1 1 100%;
  }

  .vf-platform-form--inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .vf-platform .vf-dash-kpis {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .vf-platform .vf-stat {
    padding: 0.9rem 1rem;
  }

  .vf-platform .vf-stat-value {
    font-size: 1.45rem;
  }

  .vf-platform .vf-panel {
    padding: 1.1rem 1rem 1rem;
  }

  .vf-platform-nav-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .vf-platform-cards {
    display: grid;
  }

  .vf-platform-table-wrap {
    display: none;
  }

  .vf-topbar-inner {
    padding: 0 0.75rem;
    gap: 0.45rem;
  }

  .vf-brand span:not(.vf-brand-mark) {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .vf-context-switch {
    max-width: min(132px, 34vw);
    font-size: 0.72rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .vf-topbar-switch-client {
    display: none;
  }

  .vf-topbar-actions {
    gap: 0.25rem;
  }

  .vf-topbar-actions .vf-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
  }

  .vf-main {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    overflow-x: hidden;
  }
}

/* Assinatura — acabamento premium */
.vf-sub-page .vf-main {
  padding-top: 1.25rem;
}

.vf-sub {
  display: grid;
  gap: 1.35rem;
  animation: vf-rise 0.5s var(--vf-ease) both;
}

.vf-sub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.6rem 1.7rem;
  border-radius: 20px;
  background:
    radial-gradient(700px 280px at 0% 0%, rgba(15, 92, 102, 0.18), transparent 55%),
    linear-gradient(135deg, #0c1520 0%, #12303a 55%, #0f5c66 120%);
  color: #f4f8fa;
  box-shadow: 0 18px 40px rgba(12, 18, 34, 0.12);
}

.vf-sub-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(220, 236, 240, 0.7);
}

.vf-sub-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.vf-sub-lead {
  margin: 0;
  max-width: 34rem;
  color: rgba(230, 240, 244, 0.82);
  line-height: 1.5;
  font-size: 0.98rem;
}

.vf-sub-trial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.vf-sub-trial-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 236, 240, 0.7);
}

.vf-sub-trial-days {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
}

.vf-sub-trial-num {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.vf-sub-trial-unit {
  font-size: 0.95rem;
  font-weight: 650;
  color: rgba(230, 240, 244, 0.85);
}

.vf-sub-trial-status {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.vf-sub-trial-until {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: rgba(220, 236, 240, 0.65);
}

.vf-sub-trial-bar {
  margin-top: 0.9rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.vf-sub-trial-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7fd0d8, #e8f7f8);
  transition: width 0.4s var(--vf-ease);
}

.vf-sub-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1rem;
}

.vf-sub-plan,
.vf-sub-setup,
.vf-sub-includes,
.vf-sub-invoices {
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(12, 18, 34, 0.03);
}

.vf-sub-plan {
  padding: 1.5rem 1.55rem 1.6rem;
  border-color: rgba(15, 92, 102, 0.22);
  background:
    linear-gradient(180deg, #f3fafb 0%, #fff 42%);
}

.vf-sub-setup {
  padding: 1.5rem 1.45rem;
}

.vf-sub-plan-kicker,
.vf-sub-setup-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--vf-accent);
}

.vf-sub-setup-kicker {
  color: var(--vf-muted);
}

.vf-sub-plan-price,
.vf-sub-setup-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.vf-sub-currency {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--vf-muted);
}

.vf-sub-amount {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
  color: var(--vf-ink);
}

.vf-sub-amount--sm {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.vf-sub-period {
  font-size: 1rem;
  font-weight: 650;
  color: var(--vf-muted);
}

.vf-sub-plan-desc,
.vf-sub-setup-desc {
  margin: 0 0 1rem;
  color: var(--vf-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.vf-sub-plan-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.vf-sub-plan-points li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--vf-ink);
}

.vf-sub-plan-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--vf-accent);
  box-shadow: 0 0 0 3px var(--vf-accent-soft);
}

.vf-sub-setup-status {
  margin-top: 0.35rem;
}

.vf-sub-includes,
.vf-sub-invoices {
  padding: 1.4rem 1.5rem 1.5rem;
}

.vf-sub-section-title {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--vf-ink);
}

.vf-sub-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.vf-sub-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--vf-bg-elevated);
  border: 1px solid var(--vf-line);
}

.vf-sub-step-num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--vf-accent);
  padding-top: 0.15rem;
}

.vf-sub-step h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.vf-sub-step p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--vf-muted);
}

.vf-sub-note {
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  color: var(--vf-muted);
  line-height: 1.45;
}

.vf-sub-invoices-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.vf-sub-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.vf-sub-table th {
  text-align: left;
  padding: 0.65rem 0.5rem;
  color: var(--vf-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--vf-line);
}

.vf-sub-table td {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--vf-line);
  vertical-align: top;
}

.vf-sub-table tr:last-child td {
  border-bottom: 0;
}

.vf-sub-table-note {
  color: var(--vf-muted);
  max-width: 18rem;
}

.vf-sub-empty {
  padding: 1.4rem 0.25rem 0.5rem;
}

.vf-sub-empty-title {
  margin: 0 0 0.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.vf-sub-empty-text {
  margin: 0;
  color: var(--vf-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 36rem;
}

@media (max-width: 960px) {
  .vf-sub-hero,
  .vf-sub-pricing,
  .vf-sub-steps {
    grid-template-columns: 1fr;
  }
}
