/* XMOTO · Identidade do modelo enviado · v195-reference-completion
 * Camada de apresentação. Formulários, permissões, dados e eventos continuam
 * pertencendo ao portal. A foto é o JPEG original incorporado ao modelo.
 */
body.portal-brand-v3 {
  --bg: #f5f7fa;
  --card: #fff;
  --ink: #121923;
  --ink-soft: #38475a;
  --text: #121923;
  --muted: #637082;
  --line: #e4e9ef;
  --line-strong: #ccd5df;
  --border: #e4e9ef;
  --brand: #f7b426;
  --brand-dark: #94630a;
  --brand-strong: #94630a;
  --brand-soft: #fff3d3;
  --brand-faint: #fffaf0;
  --brand-graphite: #111923;
  --shadow-sm: 0 5px 20px #10172005;
  --shadow: 0 12px 35px #1d293512;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
body.portal-brand-v3 :is(button, input, select, textarea) { font-family: inherit; }
body.portal-brand-v3 :is(h1, h2, h3) { color: var(--ink); }
body.portal-brand-v3 h2 { font-weight: 800; letter-spacing: -.035em; }
body.portal-brand-v3 .eyebrow {
  color: #94630a; font-size: 10px; font-weight: 800;
  letter-spacing: .13em; line-height: 1.5; text-transform: uppercase;
}
body.portal-brand-v3 :is(.primary, .new-order-button) {
  min-height: 44px; padding: 12px 18px; border: 1px solid #f7b426;
  border-radius: 12px; background: #f7b426; color: #161a21;
  font-size: 13px; font-weight: 800; box-shadow: none;
}
body.portal-brand-v3 :is(.primary, .new-order-button):hover:not(:disabled) {
  background: #f4a90d; border-color: #f4a90d; color: #161a21;
  box-shadow: 0 6px 18px #b27a001a; transform: none;
}
body.portal-brand-v3 :is(.ghost, .secondary) {
  border-color: #dbe1e9; border-radius: 11px; background: #fff;
  color: #38475a; min-height: 40px;
}
body.portal-brand-v3 :is(.ghost, .secondary):hover:not(:disabled) {
  background: #fffbf2; border-color: #e7bf69;
}
body.portal-brand-v3 :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #94630a; outline-offset: 3px;
}
body.portal-brand-v3 :is(button:disabled, input:disabled, select:disabled, textarea:disabled) {
  cursor: not-allowed;
}
body.portal-brand-v3 input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
body.portal-brand-v3 select, body.portal-brand-v3 textarea {
  border-color: #dbe1e9; border-radius: 11px; min-height: 44px;
  padding: 11px 13px; color: #263449; font-size: 14px;
}
body.portal-brand-v3 :is(input, select, textarea):focus {
  border-color: #c89021; box-shadow: 0 0 0 3px #f7b42626;
}
body.portal-brand-v3 .field label { font-size: 12px; color: #38475a; }
body.portal-brand-v3 .card {
  border: 1px solid var(--line); border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-sm);
}
body.portal-brand-v3 :is(.pill, .status-chip, .mini-chip) { border-radius: 30px; }
body.portal-brand-v3 .status-filter { border-radius: 9px; min-height: 38px; }
body.portal-brand-v3 .status-filter.active { background: #fff3d3; border-color: #e6bd60; color: #805306; }
body.portal-brand-v3 .link-button { color: #94630a; }

/* Acesso público: cabeçalho claro, fotografia original e formulário real. */
body.portal-brand-v3 .ux-access-shell {
  --brand-page-pad: max(32px, calc((100vw - 1180px) / 2));
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: start; align-content: start; justify-content: normal; justify-items: stretch;
  gap: 32px 64px; width: 100%; max-width: none; min-height: 100dvh;
  margin: 0; padding: 0 var(--brand-page-pad) 0;
  background: linear-gradient(118deg, #fff 38%, #fffaf0 100%);
}
body.portal-brand-v3 .brand-access-topline {
  grid-column: 1 / -1; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  margin: 0 calc(-1 * var(--brand-page-pad)) -32px;
  padding: 9px var(--brand-page-pad); background: #0c1420; color: #e8edf4;
  font-size: 11px; line-height: 1.5;
}
body.portal-brand-v3 .brand-access-topline > span:first-child { display: flex; align-items: center; gap: 8px; }
body.portal-brand-v3 .brand-access-topline i { width: 6px; height: 6px; border-radius: 50%; background: #f7b426; }
body.portal-brand-v3 .brand-access-header {
  grid-column: 1 / -1; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; min-width: 0;
  padding: 20px 0; border-bottom: 1px solid #e4e9ef;
}
body.portal-brand-v3 .brand-access-logo { display: grid; gap: 5px; }
body.portal-brand-v3 .brand-access-logo img { display: block; width: 142px; height: 40px; object-fit: contain; }
body.portal-brand-v3 .brand-access-logo > span { color: #637082; font-size: 9px; letter-spacing: .2em; font-weight: 700; }
body.portal-brand-v3 .brand-access-nav { display: flex; align-items: center; gap: 30px; }
body.portal-brand-v3 .brand-access-nav a { color: #38475a; font-size: 13px; font-weight: 700; text-decoration: none; }
body.portal-brand-v3 .brand-access-nav a:hover { color: #94630a; }
body.portal-brand-v3 .brand-access-nav .brand-access-link {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px;
  padding: 12px 18px; color: #161a21; background: #f7b426; border-radius: 11px;
}
body.portal-brand-v3 .ux-access-story {
  display: flex; flex-direction: column; gap: 22px;
  min-width: 0; min-height: 0; border: 0; border-radius: 0;
  padding: 9px 0 20px; background: none; overflow: visible;
}
body.portal-brand-v3 .ux-access-story-copy { padding: 0; }
body.portal-brand-v3 .ux-access-story-copy .eyebrow,
body.portal-brand-v3 .portal-destination-copy .eyebrow {
  display: flex; align-items: center; gap: 9px; margin: 0 0 17px;
}
body.portal-brand-v3 .ux-access-story-copy .eyebrow::before,
body.portal-brand-v3 .portal-destination-copy .eyebrow::before {
  content: ""; flex: 0 0 18px; height: 3px; border-radius: 3px; background: #f7b426;
}
body.portal-brand-v3 .ux-access-story-copy h2 {
  max-width: 580px; margin: 0 0 17px; font-size: clamp(36px, 3.6vw, 50px);
  line-height: 1.1; letter-spacing: -.045em; font-weight: 800;
}
body.portal-brand-v3 .ux-access-story-copy h2 > span,
body.portal-brand-v3 .portal-destination-copy h2 > span { color: #b97b06; }
body.portal-brand-v3 .ux-access-story-copy > p:not(.eyebrow) {
  max-width: 480px; margin: 0; font-size: 15px; line-height: 1.75; color: #566376;
}
body.portal-brand-v3 .ux-access-visual {
  position: relative; isolation: isolate; height: 300px;
  margin: 4px 12px 12px 5px; background: none; border-radius: 25px;
}
body.portal-brand-v3 .ux-access-visual::before {
  content: ""; position: absolute; inset: 14px -14px -12px 24px;
  border-radius: 28px; background: #ffe9ae; z-index: -1;
}
body.portal-brand-v3 .ux-access-visual > img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  object-position: 64% 57%; border: 4px solid #fff; border-radius: 25px;
  box-shadow: 0 18px 38px #1a253124;
}
body.portal-brand-v3 .brand-photo-note {
  position: absolute; z-index: 2; left: -13px; bottom: 15px;
  display: flex; align-items: center; gap: 11px; max-width: calc(100% + 4px);
  padding: 13px 15px; border: 1px solid #eef0f2; border-radius: 14px;
  background: #fff; color: #121923; box-shadow: 0 10px 30px #1d29351a;
}
body.portal-brand-v3 .brand-photo-note strong { display: block; font-size: 12px; font-weight: 800; }
body.portal-brand-v3 .brand-photo-note small { display: block; font-size: 10px; margin-top: 3px; color: #637082; }
body.portal-brand-v3 .brand-photo-icon {
  display: grid; place-items: center; flex: 0 0 37px; height: 37px;
  border-radius: 10px; background: #fff1ce; color: #a16c08; font-size: 23px;
}
body.portal-brand-v3 #loginCard {
  width: 100%; max-width: none; min-width: 0; min-height: 0;
  margin: 8px 0 0; padding: 30px; border: 1px solid #e4e9ef;
  border-radius: 22px; background: #fff; box-shadow: 0 12px 40px #1d29350d;
  scroll-margin-top: 24px;
}
body.portal-brand-v3 #loginCard .login-brand { margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
body.portal-brand-v3 #loginCard .brand-logo { width: 112px; max-height: 34px; object-fit: contain; }
body.portal-brand-v3 #loginCard .login-brand .pill { background: #fff3d3; color: #94630a; border: 0; padding: 7px 11px; }
body.portal-brand-v3 #loginCard .login-copy h1 { font-size: 25px; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 11px; }
body.portal-brand-v3 #loginCard .login-copy > p:not(.eyebrow) { font-size: 13px; color: #637082; line-height: 1.65; }
body.portal-brand-v3 #loginCard .auth-switch { margin: 22px 0; padding: 5px; background: #f5f7fa; border-radius: 12px; }
body.portal-brand-v3 #loginCard .auth-switch-button { min-height: 42px; border-radius: 9px; font-size: 13px; }
body.portal-brand-v3 #loginCard .auth-switch-button.active { background: #fff; border-color: #ead29c; color: #805306; box-shadow: 0 2px 7px #10172008; }
body.portal-brand-v3 #loginCard .login-form { gap: 18px; }
body.portal-brand-v3 #loginCard .login-form .primary { min-height: 47px; margin-top: 5px; }
body.portal-brand-v3 #loginCard .login-footer { margin-top: 23px; padding-top: 16px; }
body.portal-brand-v3 #loginCard .auth-register-intro { background: #fffbf2; border-color: #f0e1bd; border-radius: 12px; padding: 13px; }
body.portal-brand-v3 #loginCard .signup-type-card { border-radius: 12px; padding: 12px; }
body.portal-brand-v3 #loginCard .signup-type-card.active { border-color: #e3b34d; background: #fff8e8; }
body.portal-brand-v3 #loginCard .signup-type-card small { font-size: 11px; }
body.portal-brand-v3 #loginCard .signup-fields { gap: 14px; margin: 15px 0; }
body.portal-brand-v3 #loginCard .terms-check { font-size: 12px; line-height: 1.6; }
body.portal-brand-v3 .brand-access-steps { grid-column: 1 / -1; padding: 23px 0 16px; scroll-margin-top: 20px; }
body.portal-brand-v3 .brand-steps-heading { margin-bottom: 20px; }
body.portal-brand-v3 .brand-steps-heading h2 { font-size: 26px; margin: 7px 0 0; }
body.portal-brand-v3 .brand-access-steps ol {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; padding: 0; margin: 0; list-style: none;
}
body.portal-brand-v3 .brand-access-steps li {
  min-width: 0; padding: 23px; border: 1px solid #e4e9ef;
  border-radius: 17px; background: #fff;
}
body.portal-brand-v3 .brand-access-steps li > span {
  display: grid; place-items: center; width: 38px; height: 38px;
  margin-bottom: 15px; border-radius: 11px; background: #fff1c8;
  color: #94630a; font-size: 13px; font-weight: 800;
}
body.portal-brand-v3 .brand-access-steps strong { font-size: 14px; }
body.portal-brand-v3 .brand-access-steps p { margin: 8px 0 0; color: #637082; font-size: 12px; line-height: 1.65; }
body.portal-brand-v3 .brand-access-footer {
  grid-column: 1 / -1; display: flex; justify-content: space-between;
  gap: 20px; margin: 0 calc(-1 * var(--brand-page-pad));
  padding: 24px var(--brand-page-pad); background: #111923;
  color: #cbd1da; font-size: 11px;
}
body.portal-brand-v3 .brand-access-footer > span:first-child { color: #f7b426; font-weight: 700; }

/* A largura útil segue o container de 1180 px do modelo. Seletores com ID
 * vencem os limites antigos de #homePanel sem mudar a navegação do aplicativo. */
body.portal-brand-v3 .app-shell { background: #fff; }
body.portal-brand-v3.portal-redesign-v1.portal-minimal-ux .main-area {
  --brand-main-gutter: 48px;
  padding: 0 var(--brand-main-gutter) 64px!important;
  background: linear-gradient(118deg, #fff 42%, #fffaf0 100%);
}
body.portal-brand-v3 #appView .main-area > .view-panel {
  width: 100%; max-width: 1180px; margin-inline: auto;
}
body.portal-brand-v3 #portalNavigation {
  box-sizing: border-box; background: #fff; border-right-color: #e4e9ef;
  padding: 20px 16px 16px;
}
body.portal-brand-v3 .sidebar-hero {
  padding: 16px 8px 21px; background: #fff; border: 0;
  border-bottom: 1px solid #e4e9ef; border-radius: 0;
}
body.portal-brand-v3 .sidebar-hero-logo { width: 145px; }
body.portal-brand-v3 .ux-brand-caption { color: #637082; font-size: 9px; letter-spacing: .16em; }
body.portal-brand-v3 .nav-section-title { margin-top: 18px; color: #778294; }
body.portal-brand-v3 .nav-item { min-height: 45px; border-radius: 11px; color: #38475a; }
body.portal-brand-v3 .nav-item.active { color: #805306; background: #fff3d3; border-color: #f0d591; box-shadow: none; }
body.portal-brand-v3 .nav-item.active:hover { background: #ffedbd; }
body.portal-brand-v3 .company-mini { border-radius: 12px; background: #f8f9fb; }
body.portal-brand-v3 .sidebar-logout-button { border-radius: 10px; }
body.portal-brand-v3.portal-redesign-v1.portal-minimal-ux .topbar {
  width: 100%!important; max-width: 1180px; margin: 0 auto!important;
  padding: 18px 0!important; min-height: 80px;
  background: #fff; border-bottom-color: #e4e9ef;
}
body.portal-brand-v3 .topbar-identity { flex: 1 1 auto; min-width: 0; }
body.portal-brand-v3.portal-redesign-v1.portal-minimal-ux .topbar-title-row { min-width: 0; flex-wrap: nowrap!important; }
body.portal-brand-v3 .topbar .company-switcher { flex: 0 1 auto; min-width: 0; max-width: 100%; }
body.portal-brand-v3 .topbar .company-switcher summary { min-width: 0; max-width: 100%; }
body.portal-brand-v3 .topbar-greeting {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 19px; color: #263449;
}
body.portal-brand-v3 .topbar-current-view {
  flex: 0 0 auto; background: #fff3d3; border-color: #f0dfb5;
  color: #94630a; border-radius: 30px;
}
body.portal-brand-v3 .topbar-actions { flex: 0 0 auto; }
body.portal-brand-v3 .topbar-actions :is(button, .sync-chip) {
  flex: 0 0 auto; white-space: nowrap; overflow-wrap: normal; word-break: normal;
}
body.portal-brand-v3 .topbar-actions button > span {
  flex: 0 0 auto; white-space: nowrap; overflow-wrap: normal; word-break: normal;
}
body.portal-brand-v3 .topbar .referral-chip {
  background: #f7b426; border-color: #f7b426; color: #161a21; border-radius: 10px;
}
body.portal-brand-v3 .company-menu-panel { border-radius: 16px; }

/* Dois blocos independentes: o texto não estica a fotografia. */
body.portal-brand-v3 .portal-destination-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr);
  grid-template-areas: none; grid-template-rows: auto; align-items: center;
  gap: 35px; min-height: 520px; margin: 0; padding: 61px 0 68px;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  overflow: visible; isolation: isolate;
}
body.portal-brand-v3 .brand-home-content { min-width: 0; }
body.portal-brand-v3 .portal-destination-copy { padding: 0; }
body.portal-brand-v3 .portal-destination-copy .eyebrow {
  margin: 0; color: #a17009; font-size: 11px; letter-spacing: 1.5px;
}
body.portal-brand-v3 .portal-destination-copy h2 {
  margin: 24px 0 18px; max-width: 615px;
  font-size: clamp(39px, 3.4vw, 54px); line-height: 1.13;
  letter-spacing: -2.6px; font-weight: 800; overflow-wrap: normal;
}
body.portal-brand-v3 .portal-destination-copy h2 > span { color: #d39108; }
body.portal-brand-v3 .portal-destination-copy p:not(.eyebrow) {
  margin: 0 0 24px; max-width: 535px; font-size: 16px;
  line-height: 1.7; color: #566376; font-weight: 400;
}
body.portal-brand-v3 .brand-home-actions {
  display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px;
}
body.portal-brand-v3 .portal-destination-input {
  width: fit-content; max-width: 100%; min-height: 50px;
  grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center;
  gap: 9px; padding: 14px 20px; background: #f7b426;
  border: 1px solid #f7b426; border-radius: 12px; box-shadow: none;
}
body.portal-brand-v3 .portal-destination-input:hover {
  border-color: #f4a90d; background: #f4a90d; box-shadow: 0 6px 18px #b27a001a;
}
body.portal-brand-v3 .portal-destination-icon {
  width: 18px; height: 18px; border: 0; border-radius: 0;
  background: none; color: #161a21;
}
body.portal-brand-v3 .portal-destination-icon svg { width: 18px; height: 18px; }
body.portal-brand-v3 .portal-destination-placeholder {
  color: #161a21; font-size: 14px; font-weight: 800;
}
body.portal-brand-v3 .portal-destination-input strong {
  padding: 0; background: none; color: #161a21; font-size: 16px;
}
body.portal-brand-v3 .brand-home-support {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 50px; padding: 14px 20px; border: 1px solid #dbe1e9;
  border-radius: 12px; background: #fff; color: #121923;
  font-size: 14px; font-weight: 800; white-space: nowrap;
}
body.portal-brand-v3 .brand-home-support:hover { border-color: #e7bf69; background: #fffbf2; }
body.portal-brand-v3 .portal-destination-shortcuts {
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px 24px;
  margin: 24px 0 0;
}
body.portal-brand-v3 .portal-destination-shortcuts button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0; border: 0; border-radius: 6px;
  background: none; color: #536272; font-size: 12px; font-weight: 700;
}
body.portal-brand-v3 .portal-destination-shortcuts button::before {
  content: "✓"; color: #039775; font-size: 17px;
}
body.portal-brand-v3 .portal-destination-shortcuts button:hover { color: #805306; background: none; }
body.portal-brand-v3 .ux-hero-art {
  grid-area: auto; position: relative; align-self: center; inset: auto;
  width: 100%; height: auto; min-height: 0; max-height: none;
  padding: 0 0 20px 18px; margin: 0; overflow: visible;
  opacity: 1; z-index: auto; isolation: isolate;
}
body.portal-brand-v3 .ux-hero-art::before {
  content: ""; position: absolute; inset: 18px -24px -8px 42px;
  background: #ffe9ae; border-radius: 36px; z-index: -1;
}
body.portal-brand-v3 .ux-hero-art::after {
  content: ""; position: absolute; z-index: 1; inset: 5px 5px 25px 23px;
  border-radius: 21px; background: linear-gradient(0deg, #0d142061, #0000 58%);
  pointer-events: none;
}
body.portal-brand-v3 .ux-hero-art > img {
  display: block; width: 100%; height: auto; aspect-ratio: 534 / 395;
  min-height: 0; max-height: 395px; object-fit: cover; object-position: center;
  border: 5px solid #fff; border-radius: 26px; box-shadow: 0 23px 65px #1a253132;
}
body.portal-brand-v3 .ux-hero-art .brand-photo-note {
  display: grid; grid-template-columns: 40px minmax(0, 1fr);
  left: -12px; bottom: 0; gap: 12px; width: 312px; max-width: calc(100% + 12px);
  padding: 15px 17px; border-radius: 14px; box-shadow: 0 12px 35px #1d29351d;
}
/* A largura inclui ícone, intervalo e padding em todos os navegadores. */
body.portal-brand-v3 .ux-hero-art .brand-photo-note > span:last-child {
  min-width: 0; overflow-wrap: normal; word-break: normal;
}
body.portal-brand-v3 .ux-hero-art .brand-photo-note strong { font-size: 13px; white-space: normal; }
body.portal-brand-v3 .ux-hero-art .brand-photo-note small { font-size: 11px; margin-top: 2px; }
body.portal-brand-v3 .ux-hero-art .brand-photo-icon {
  width: 40px; height: 50px; border-radius: 12px; color: #ce8b00; font-size: 21px;
}

/* Três intenções do modelo, seguidas pelos atalhos operacionais existentes. */
body.portal-brand-v3 #homePanel .home-simple-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr)!important;
  grid-template-areas: "quick quick" "shortcuts shortcuts" "metrics metrics" "recent proofs";
  gap: 32px!important; margin-top: -8px;
}
body.portal-brand-v3 #homePanel .customer-live-board.home-simple-grid > .home-next-step-card { grid-area: quick!important; }
body.portal-brand-v3 #homePanel .customer-live-board.home-simple-grid > .home-metrics { grid-area: metrics!important; }
body.portal-brand-v3 #homePanel .customer-live-board.home-simple-grid > .home-recent-deliveries-card { grid-area: recent!important; position: static; }
body.portal-brand-v3 #homePanel .customer-live-board.home-simple-grid > .home-proof-panel { grid-area: proofs!important; }
body.portal-brand-v3 #homePanel .home-next-step-card { padding: 0; border: 0; background: none; box-shadow: none; }
body.portal-brand-v3 #homePanel .home-primary-actions { grid-template-columns: repeat(3, minmax(0, 1fr))!important; gap: 16px!important; }
body.portal-brand-v3 #homePanel .home-primary-action {
  flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 16px; padding: 23px!important; min-height: 114px!important;
  border: 1px solid #e4e9ef; border-radius: 18px; background: #fff;
  box-shadow: 0 8px 30px #1017200b; transition: border-color .18s, box-shadow .18s;
}
body.portal-brand-v3 #homePanel .home-primary-action:last-child { grid-column: auto; min-height: 114px!important; }
body.portal-brand-v3 #homePanel .home-primary-action:hover { border-color: #e6aa28; background: #fffdfa; box-shadow: 0 11px 28px #c9951e24; }
body.portal-brand-v3 #homePanel .home-primary-action .quick-action-icon {
  width: 58px; height: 58px; flex: 0 0 58px; border-radius: 12px;
  background: #fff4d9; color: #a17009;
}
body.portal-brand-v3 #homePanel .home-primary-action > div { min-width: 0; }
body.portal-brand-v3 #homePanel .home-primary-action strong { font-size: 15px; color: #121923; }
body.portal-brand-v3 #homePanel .home-primary-action div span {
  font-size: 12px; line-height: 1.5; color: #778294; margin-top: 6px;
}
body.portal-brand-v3 #homePanel .home-primary-action::after {
  content: "→"; flex: 0 0 auto; margin-left: auto; color: #b28727;
}
body.portal-brand-v3 #homePanel .home-metrics { gap: 12px!important; margin: 0; }
body.portal-brand-v3 #homePanel .home-metric-card { border-color: #e4e9ef; border-radius: 15px; box-shadow: 0 5px 20px #10172004; }
body.portal-brand-v3 #homePanel .home-metric-card strong { color: #121923; }
body.portal-brand-v3 #homePanel .home-recent-deliveries-card,
body.portal-brand-v3 #homePanel .home-proof-panel { padding: 24px; }
body.portal-brand-v3 #homePanel .home-recent-deliveries-card h2,
body.portal-brand-v3 #homePanel .home-proof-panel h2 { font-size: 20px; }
body.portal-brand-v3 #homePanel .home-next-delivery-card { border-radius: 12px; border-color: #e4e9ef; }
body.portal-brand-v3 .quick-support-button { border-radius: 13px; border-color: #e4e9ef; box-shadow: 0 5px 20px #10172012; }

/* Apresentação completa das soluções, sem substituir os fluxos de contratação. */
body.portal-brand-v3 .brand-home-sections {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px;
}
body.portal-brand-v3 .brand-home-sections button {
  min-height: 36px; padding: 4px 0; border: 0; border-radius: 4px;
  background: none; color: #815707; font-size: 12px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 4px;
}
body.portal-brand-v3 #homePanel .brand-work-actions {
  grid-area: shortcuts; display: flex; flex-wrap: wrap; gap: 8px 20px;
  padding: 0 0 4px; border-bottom: 1px solid #e4e9ef;
}
body.portal-brand-v3 .brand-work-actions button {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 10px; min-height: 44px; padding: 8px 0; border: 0; border-radius: 4px;
  background: none; color: #536272; font-size: 12px; font-weight: 700;
}
body.portal-brand-v3 :is(.brand-work-actions, .brand-home-sections) button:hover { color: #94630a; }
body.portal-brand-v3 .brand-work-actions button > span { color: #a17009; }
body.portal-brand-v3 .brand-home-section { padding: 72px 0; scroll-margin-top: 100px; }
body.portal-brand-v3 .brand-section-heading {
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: 20px; margin-bottom: 26px;
}
body.portal-brand-v3 .brand-section-heading .eyebrow { margin: 0 0 12px; }
body.portal-brand-v3 .brand-section-heading h2,
body.portal-brand-v3 .brand-local-copy h2 {
  margin: 0; font-size: 31px; line-height: 1.2; letter-spacing: -1px;
}
body.portal-brand-v3 .brand-section-pill {
  padding: 9px 13px; border: 1px solid #e6e0d3; border-radius: 999px;
  background: #fffaf0; color: #856121; font-size: 11px; font-weight: 600;
}
body.portal-brand-v3 .brand-service-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px;
}
body.portal-brand-v3 .brand-service-card {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
  min-height: 235px; padding: 24px; background: #fff;
  border: 1px solid #e7ebef; border-radius: 17px;
}
body.portal-brand-v3 .brand-service-icon {
  width: 32px; height: 32px; flex: 0 0 32px; margin-bottom: 19px;
  color: #a17009; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
body.portal-brand-v3 .brand-service-card h3 { margin: 0 0 9px; font-size: 16px; line-height: 1.4; }
body.portal-brand-v3 .brand-service-card p {
  flex: 1; margin: 0 0 15px; font-size: 12px; line-height: 1.65; color: #637082;
}
body.portal-brand-v3 .brand-service-card button {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 8px; min-height: 44px; max-width: 100%; padding: 6px 0; border: 0;
  border-radius: 4px; background: none; color: #8f6103; font-size: 12px;
  font-weight: 800; text-align: left; line-height: 1.5; white-space: normal;
}
body.portal-brand-v3 .brand-service-card button:hover { color: #614000; text-decoration: underline; }
body.portal-brand-v3 .brand-section-note { margin: 16px 0 0; color: #637082; font-size: 12px; line-height: 1.6; }

body.portal-brand-v3 .brand-economy {
  position: relative; display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1fr);
  overflow: hidden; isolation: isolate; scroll-margin-top: 100px;
  border-radius: 25px; background: #111923; color: #fff;
}
body.portal-brand-v3 .brand-economy::after {
  content: ""; position: absolute; z-index: -1; top: -180px; right: -220px;
  width: 450px; height: 450px; border-radius: 50%; background: #e9ac22;
  opacity: .07; pointer-events: none;
}
body.portal-brand-v3 .brand-economy-copy { min-width: 0; padding: 45px; }
body.portal-brand-v3 .brand-economy-status {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px;
  border: 1px solid #6f6140; border-radius: 999px; background: #343127;
  color: #ffcf69; font-size: 10px; font-weight: 800;
  letter-spacing: .07em; line-height: 1.5; text-transform: uppercase;
}
body.portal-brand-v3 .brand-economy h2 {
  margin: 16px 0 14px; color: #fff; font-size: 36px; line-height: 1.18; letter-spacing: -1px;
}
body.portal-brand-v3 .brand-economy-copy > p {
  margin: 0 0 18px; color: #cbd1da; font-size: 14px; line-height: 1.75;
}
body.portal-brand-v3 .brand-economy-copy > .brand-economy-availability {
  margin: 0 0 20px; font-size: 12px; color: #f8d99a;
}
body.portal-brand-v3 .brand-economy-conditions { margin: 0; padding: 0; border: 0; background: none; }
body.portal-brand-v3 .brand-economy-conditions > summary {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; max-width: 100%; padding: 13px 19px; border: 1px solid #f7b426;
  border-radius: 12px; background: #f7b426; color: #161a21;
  font-size: 13px; font-weight: 800; line-height: 1.5; cursor: pointer;
  list-style: none;
}
body.portal-brand-v3 .brand-economy-conditions > summary::-webkit-details-marker { display: none; }
body.portal-brand-v3 .brand-economy-conditions > summary::marker { content: ""; }
body.portal-brand-v3 .brand-economy-conditions > summary:hover { background: #f4a90d; }
body.portal-brand-v3 .brand-economy-conditions > summary:focus-visible { outline-color: #ffdf96; }
body.portal-brand-v3 .brand-economy-conditions[open] > summary span { transform: rotate(90deg); }
body.portal-brand-v3 .brand-economy-conditions-copy { margin-top: 22px; padding-top: 20px; border-top: 1px solid #3a4654; }
body.portal-brand-v3 .brand-economy-conditions-copy h3 { margin: 0 0 12px; color: #fff; font-size: 16px; }
body.portal-brand-v3 .brand-economy-conditions-copy p,
body.portal-brand-v3 .brand-economy-conditions-copy li { color: #cbd1da; font-size: 13px; line-height: 1.7; }
body.portal-brand-v3 .brand-economy-conditions-copy p { margin: 0 0 12px; }
body.portal-brand-v3 .brand-economy-conditions-copy ul { margin: 0 0 16px; padding-left: 18px; }
body.portal-brand-v3 .brand-economy-conditions-copy li + li { margin-top: 8px; }
body.portal-brand-v3 .brand-economy-timings { min-width: 0; padding: 42px 45px 42px 0; }
body.portal-brand-v3 .brand-economy-window-label { margin: 0 0 12px; color: #b8c0ca; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
body.portal-brand-v3 .brand-economy-timing { margin-bottom: 12px; padding: 19px 20px; border: 1px solid #3a4654; border-radius: 15px; background: #222c38; }
body.portal-brand-v3 .brand-economy-timing h3 { margin: 0 0 12px; color: #fff; font-size: 16px; line-height: 1.5; }
body.portal-brand-v3 .brand-economy-timing h3 > span { margin-right: 6px; color: #ffd063; }
body.portal-brand-v3 .brand-economy-time-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
body.portal-brand-v3 .brand-economy-time-grid > div {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 4px;
  min-width: 0; padding: 15px; border: 1px solid #3a4654; border-radius: 13px; background: #161f2a;
}
body.portal-brand-v3 .brand-economy-time-grid dt { font-size: 11px; color: #b8c0ca; line-height: 1.5; text-align: left; }
body.portal-brand-v3 .brand-economy-time-grid dd { order: -1; margin: 0; font-size: 19px; font-weight: 800; line-height: 1.35; color: #f7b426; text-align: left; }
body.portal-brand-v3 .brand-economy-disclaimer { margin: 14px 0 0; font-size: 11px; line-height: 1.7; color: #b8c0ca; }

body.portal-brand-v3 .brand-how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
body.portal-brand-v3 .brand-how-step { min-width: 0; padding: 26px 22px; border: 1px solid #e4e9ee; border-radius: 17px; background: #fff; }
body.portal-brand-v3 .brand-step-number {
  display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 17px;
  border-radius: 12px; background: #fff1c8; color: #9a6800; font-weight: 900;
}
body.portal-brand-v3 .brand-how-step h3 { margin: 0 0 10px; font-size: 15px; line-height: 1.5; }
body.portal-brand-v3 .brand-how-step p { margin: 0; color: #637082; font-size: 13px; line-height: 1.7; }
body.portal-brand-v3 .brand-local { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 35px; }
body.portal-brand-v3 .brand-local-flag {
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
  min-height: 265px; padding: 38px; border-radius: 25px; background: #fff2d7;
}
body.portal-brand-v3 .brand-local-flag .eyebrow { margin: 0 0 22px; }
body.portal-brand-v3 .brand-local-flag > strong { color: #ae7300; font-size: 58px; line-height: .95; font-weight: 900; letter-spacing: -3px; }
body.portal-brand-v3 .brand-local-flag > strong > span { white-space: nowrap; }
body.portal-brand-v3 .brand-local-flag > p:last-child { margin: 20px 0 0; color: #725c33; font-size: 14px; line-height: 1.7; }
body.portal-brand-v3 .brand-local-copy { min-width: 0; }
body.portal-brand-v3 .brand-local-copy .eyebrow { margin: 0 0 12px; }
body.portal-brand-v3 .brand-local-copy > p:not(.eyebrow) { margin: 18px 0; color: #617085; font-size: 14px; line-height: 1.7; }
body.portal-brand-v3 .brand-local-copy ul { list-style: none; padding: 0; margin: 20px 0 0; }
body.portal-brand-v3 .brand-local-copy li { position: relative; padding: 7px 0 7px 24px; color: #536071; font-size: 13px; line-height: 1.6; }
body.portal-brand-v3 .brand-local-copy li::before { content: "✓"; position: absolute; left: 0; color: #148160; font-weight: 900; }
body.portal-brand-v3 .brand-final-cta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 24px; margin-top: 72px; padding: 32px; border: 1px solid #e8d4a3;
  border-radius: 20px; background: #fff6df;
}
body.portal-brand-v3 .brand-final-cta h2 { margin: 0 0 7px; font-size: 29px; line-height: 1.25; letter-spacing: -1px; }
body.portal-brand-v3 .brand-final-cta p { margin: 0; color: #6d6249; font-size: 13px; line-height: 1.7; }
body.portal-brand-v3 .brand-final-cta > button { flex: 0 0 auto; min-height: 48px; }
body.portal-brand-v3 .brand-home-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: 28px; padding: 25px 0; border-top: 1px solid #e4e9ef; color: #637082; font-size: 11px;
}
body.portal-brand-v3 .brand-home-footer strong { color: #121923; font-size: 14px; }
body.portal-brand-v3 .brand-home-footer strong span { margin-left: 8px; color: #637082; font-size: 11px; font-weight: 400; }
body.portal-brand-v3 .brand-order-entry-hint { padding: 16px 18px; border: 1px solid #e3c77c; border-radius: 12px; background: #fff8e7; color: #634600; }
body.portal-brand-v3 .brand-order-entry-hint strong { display: block; margin-bottom: 5px; font-size: 14px; }
body.portal-brand-v3 .brand-order-entry-hint p { margin: 0; font-size: 13px; line-height: 1.6; }
body.portal-brand-v3 .brand-business-dialog {
  width: min(560px, calc(100% - 40px)); max-width: calc(100% - 40px);
  max-height: calc(100dvh - 48px); margin: auto; padding: 36px;
  border: 1px solid #e4e9ef; border-radius: 22px; background: #fff;
  color: #121923; box-shadow: 0 24px 80px #11192355; overflow: auto;
}
body.portal-brand-v3 .brand-business-dialog::backdrop { background: #11192399; }
body.portal-brand-v3 .brand-business-dialog > .eyebrow { margin: 0 35px 12px 0; }
body.portal-brand-v3 .brand-business-dialog h2 { margin: 0 30px 20px 0; font-size: 28px; line-height: 1.25; }
body.portal-brand-v3 .brand-business-dialog > p:not(.eyebrow),
body.portal-brand-v3 .brand-business-dialog li { color: #536272; font-size: 14px; line-height: 1.7; }
body.portal-brand-v3 .brand-business-dialog > p { margin: 0 0 16px; }
body.portal-brand-v3 .brand-business-dialog ul { margin: 20px 0; padding-left: 20px; }
body.portal-brand-v3 .brand-business-dialog li + li { margin-top: 8px; }
body.portal-brand-v3 .brand-business-dialog > .brand-dialog-note { padding: 14px; border-radius: 12px; background: #f5f7fa; font-size: 12px; }
body.portal-brand-v3 .brand-dialog-close {
  position: absolute; top: 15px; right: 15px; width: 36px; height: 36px;
  padding: 0; border: 1px solid #e4e9ef; border-radius: 10px; background: #fff;
  color: #536272; font-size: 24px; line-height: 1; cursor: pointer;
}
body.portal-brand-v3 .brand-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (min-width: 1201px) and (max-width: 1400px) {
  body.portal-brand-v3 .brand-local-flag > strong { font-size: 45px; letter-spacing: -2px; }
}
@media (max-width: 1200px) {
  body.portal-brand-v3 .brand-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.portal-brand-v3 .brand-economy { grid-template-columns: minmax(0, 1fr); }
  body.portal-brand-v3 .brand-economy-copy { padding: 34px 34px 22px; }
  body.portal-brand-v3 .brand-economy-timings { padding: 0 34px 34px; }
  body.portal-brand-v3 .brand-local { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body.portal-brand-v3 .brand-local-flag { min-height: 230px; }
}
@media (max-width: 760px) {
  body.portal-brand-v3 .brand-home-sections { gap: 5px 18px; margin-top: 10px; }
  body.portal-brand-v3 #homePanel .brand-work-actions { gap: 4px 18px; }
  body.portal-brand-v3 .brand-home-section { padding: 48px 0; }
  body.portal-brand-v3 .brand-section-heading { margin-bottom: 22px; gap: 14px; }
  body.portal-brand-v3 .brand-section-heading h2,
  body.portal-brand-v3 .brand-local-copy h2 { font-size: 25px; }
  body.portal-brand-v3 .brand-service-grid { gap: 10px; }
  body.portal-brand-v3 .brand-service-card { min-height: 220px; padding: 17px; }
  body.portal-brand-v3 .brand-service-icon { width: 28px; height: 28px; flex-basis: 28px; margin-bottom: 14px; }
  body.portal-brand-v3 .brand-service-card h3 { font-size: 14px; }
  body.portal-brand-v3 .brand-service-card p { font-size: 12px; }
  body.portal-brand-v3 .brand-economy { border-radius: 22px; }
  body.portal-brand-v3 .brand-economy-copy { padding: 27px 23px 24px; }
  body.portal-brand-v3 .brand-economy h2 { font-size: 28px; }
  body.portal-brand-v3 .brand-economy-timings { padding: 0 23px 25px; }
  body.portal-brand-v3 .brand-economy-timing { padding: 14px; }
  body.portal-brand-v3 .brand-economy-time-grid { gap: 8px; }
  body.portal-brand-v3 .brand-economy-time-grid > div { padding: 10px; }
  body.portal-brand-v3 .brand-economy-time-grid dd { font-size: 18px; }
  body.portal-brand-v3 .brand-how-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.portal-brand-v3 .brand-how-step { padding: 22px; }
  body.portal-brand-v3 .brand-local { gap: 26px; }
  body.portal-brand-v3 .brand-local-flag { min-height: 210px; padding: 28px; }
  body.portal-brand-v3 .brand-local-flag > strong { font-size: 40px; letter-spacing: -2px; }
  body.portal-brand-v3 .brand-final-cta { margin-top: 48px; padding: 24px; }
  body.portal-brand-v3 .brand-final-cta h2 { font-size: 23px; }
  body.portal-brand-v3 .brand-home-footer { padding-bottom: 16px; }
  body.portal-brand-v3 .brand-business-dialog { padding: 28px 23px; }
  body.portal-brand-v3 .brand-business-dialog h2 { font-size: 24px; }
  body.portal-brand-v3 .brand-dialog-actions { flex-direction: column; }
}

/* Mesma identidade nas telas de trabalho; estados continuam semânticos. */
body.portal-brand-v3 .ux-context-header {
  padding: 22px 24px; border-color: #ede3cb; border-radius: 19px;
  background: linear-gradient(110deg, #fffaf0, #fff 65%);
}
body.portal-brand-v3 .ux-context-header h2 { font-size: 26px; }
body.portal-brand-v3 .form-section { border-radius: 14px; }
body.portal-brand-v3 :is(.order-form, .guide-card, .order-preview-card) { border-radius: 18px; }
body.portal-brand-v3 .section-title > span { border-radius: 9px; }
body.portal-brand-v3 #ordersPanel :is(.orders-card, .order-detail-card) { border-radius: 17px!important; }
body.portal-brand-v3 :is(.proof-card, .vehicle-rental-row, .support-ticket-card) { border-radius: 13px; }
body.portal-brand-v3 .ux-form-intro { border-bottom-color: #e4e9ef; }
body.portal-brand-v3 .ux-form-intro h2 { font-size: 25px; }

@media (max-width: 1200px) {
  body.portal-brand-v3 .ux-access-shell { column-gap: 36px; }
  body.portal-brand-v3 .ux-access-story-copy h2 { font-size: 42px; }
}
@media (max-width: 1000px) {
  body.portal-brand-v3 .ux-access-shell { --brand-page-pad: 24px; column-gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(330px, .95fr); }
  body.portal-brand-v3 .ux-access-story-copy h2 { font-size: 37px; }
  body.portal-brand-v3 .ux-access-visual { height: 270px; }
  body.portal-brand-v3 #loginCard { padding: 24px; }
}
@media (max-width: 760px) {
  body.portal-brand-v3 .ux-access-shell {
    --brand-page-pad: 20px; grid-template-columns: minmax(0, 1fr);
    row-gap: 24px; padding-top: 0;
  }
  body.portal-brand-v3 .brand-access-topline { justify-content: center; margin-bottom: -24px; }
  body.portal-brand-v3 .brand-access-topline > span:last-child { display: none; }
  body.portal-brand-v3 .brand-access-header { padding: 16px 0; gap: 14px; }
  body.portal-brand-v3 .brand-access-logo img { width: 122px; height: 34px; }
  body.portal-brand-v3 .brand-access-logo > span { font-size: 8px; letter-spacing: .13em; }
  body.portal-brand-v3 .brand-access-nav > a:first-child { display: none; }
  body.portal-brand-v3 .brand-access-nav .brand-access-link { font-size: 11px; padding: 11px 12px; gap: 7px; }
  body.portal-brand-v3 .ux-access-story {
    display: grid; grid-template-columns: minmax(0, 1fr) 175px;
    align-items: center; gap: 20px; padding: 0;
    width: 100%; max-width: 560px; margin: 0 auto;
  }
  body.portal-brand-v3 .ux-access-story-copy h2 { font-size: 33px; margin-bottom: 12px; }
  body.portal-brand-v3 .ux-access-story-copy .eyebrow { font-size: 9px; gap: 6px; margin-bottom: 13px; letter-spacing: .08em; }
  body.portal-brand-v3 .ux-access-story-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.6; }
  body.portal-brand-v3 .ux-access-visual { height: 210px; margin: 0 8px 5px 0; }
  body.portal-brand-v3 .ux-access-visual::before { inset: 10px -7px -7px 13px; border-radius: 20px; }
  body.portal-brand-v3 .ux-access-visual > img { border-width: 3px; border-radius: 18px; object-position: 73% center; }
  body.portal-brand-v3 .ux-access-visual .brand-photo-note { display: none; }
  body.portal-brand-v3 #loginCard { width: 100%; max-width: 560px; margin: 0 auto; padding: 26px; border-radius: 20px; }
  body.portal-brand-v3 #loginCard .login-brand { margin-bottom: 19px; }
  body.portal-brand-v3 #loginCard .login-copy h1 { font-size: 25px; }
  body.portal-brand-v3 #loginCard .auth-switch { margin: 20px 0; }
  body.portal-brand-v3 .brand-access-steps { padding: 15px 0 8px; width: 100%; max-width: 560px; margin: 0 auto; }
  body.portal-brand-v3 .brand-steps-heading h2 { font-size: 24px; }
  body.portal-brand-v3 .brand-access-steps ol { grid-template-columns: 1fr; gap: 12px; }
  body.portal-brand-v3 .brand-access-steps li { display: flex; align-items: flex-start; gap: 15px; padding: 19px; }
  body.portal-brand-v3 .brand-access-steps li > span { flex: 0 0 36px; margin: 0; }
  body.portal-brand-v3 .brand-access-steps p { margin-top: 5px; }
  body.portal-brand-v3 .brand-access-footer { flex-direction: column; gap: 6px; padding-block: 22px; }
  body.portal-brand-v3 .ux-context-header { padding: 18px; border-radius: 16px; }
  body.portal-brand-v3 .ux-context-header h2 { font-size: 23px; }
}
@media (max-width: 720px) {
  body.portal-brand-v3 .card { border-radius: 16px; }
  body.portal-brand-v3 :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) { font-size: 16px; }
}
@media (max-width: 480px) {
  body.portal-brand-v3 .ux-access-shell { --brand-page-pad: 16px; row-gap: 22px; }
  body.portal-brand-v3 .brand-access-topline { margin-bottom: -22px; }
  body.portal-brand-v3 .brand-access-header { gap: 10px; }
  body.portal-brand-v3 .brand-access-logo img { width: 112px; height: 32px; }
  body.portal-brand-v3 .brand-access-nav .brand-access-link { font-size: 10px; padding-inline: 11px; }
  body.portal-brand-v3 .ux-access-story { grid-template-columns: minmax(0, 1fr) 105px; gap: 13px; }
  body.portal-brand-v3 .ux-access-story-copy h2 { font-size: 28px; }
  body.portal-brand-v3 .ux-access-story-copy > p:not(.eyebrow) { font-size: 12px; }
  body.portal-brand-v3 .ux-access-story-copy .eyebrow { font-size: 8px; letter-spacing: .06em; }
  body.portal-brand-v3 .ux-access-story-copy .eyebrow::before { flex-basis: 12px; }
  body.portal-brand-v3 .ux-access-visual { height: 170px; }
  body.portal-brand-v3 #loginCard { padding: 23px 20px; }
  body.portal-brand-v3 #loginCard .login-copy h1 { font-size: 23px; }
  body.portal-brand-v3 #loginCard .signup-type-grid { gap: 8px; }
  body.portal-brand-v3 #loginCard .signup-type-card { padding: 11px 8px; }
  body.portal-brand-v3 #loginCard .signup-type-card small { font-size: 10px; }
}
@media (max-width: 350px) {
  body.portal-brand-v3 .ux-access-story { grid-template-columns: minmax(0, 1fr) 85px; gap: 10px; }
  body.portal-brand-v3 .ux-access-story-copy h2 { font-size: 25px; }
  body.portal-brand-v3 .ux-access-story-copy .eyebrow { font-size: 7px; }
}

/* Breakpoints follow the existing drawer (1000 px); only presentation changes. */
@media (max-width: 1400px) and (min-width: 1001px) {
  body.portal-brand-v3 .portal-destination-copy h2 { font-size: 46px; letter-spacing: -2px; }
  body.portal-brand-v3 .portal-destination-hero { gap: 28px; }
  body.portal-brand-v3 .brand-home-actions { gap: 10px; }
  body.portal-brand-v3 .brand-home-actions > button { padding-inline: 15px; font-size: 13px; }
  body.portal-brand-v3 .portal-destination-placeholder { font-size: 13px; }
  body.portal-brand-v3 #homePanel .home-primary-action { padding: 20px!important; gap: 12px; }
  body.portal-brand-v3 #homePanel .home-primary-action .quick-action-icon { width: 48px; height: 48px; flex-basis: 48px; }
}
@media (max-width: 1200px) {
  body.portal-brand-v3.portal-redesign-v1.portal-minimal-ux .main-area { --brand-main-gutter: 32px; }
  body.portal-brand-v3 .portal-destination-hero {
    grid-template-columns: minmax(0, 1fr); gap: 30px; min-height: 0;
    padding-block: 48px 56px;
  }
  body.portal-brand-v3 .ux-hero-art { max-width: 552px; margin-inline: auto; }
  body.portal-brand-v3 #homePanel .home-primary-actions { grid-template-columns: repeat(2, minmax(0, 1fr))!important; }
  body.portal-brand-v3 #homePanel .home-simple-grid {
    grid-template-columns: minmax(0, 1fr)!important;
    grid-template-areas: "quick" "shortcuts" "metrics" "recent" "proofs"; gap: 28px!important;
  }
}
@media (max-width: 1000px) {
  body.portal-brand-v3 .portal-destination-copy h2 { font-size: 42px; letter-spacing: -1.9px; }
}
@media (max-width: 760px) {
  body.portal-brand-v3.portal-redesign-v1.portal-minimal-ux .main-area {
    --brand-main-gutter: 20px; padding-bottom: max(78px, env(safe-area-inset-bottom))!important;
  }
  body.portal-brand-v3.portal-redesign-v1.portal-minimal-ux .topbar { padding: 14px 0!important; min-height: 66px; }
  body.portal-brand-v3 .portal-destination-hero {
    grid-template-columns: minmax(0, 1fr); gap: 30px;
    min-height: 0; padding: 34px 0 42px;
  }
  body.portal-brand-v3 .portal-destination-copy h2 { margin: 18px 0; font-size: 35px; line-height: 1.13; letter-spacing: -1.5px; max-width: 540px; }
  body.portal-brand-v3 .portal-destination-copy p:not(.eyebrow) { font-size: 14px; line-height: 1.7; max-width: 520px; }
  body.portal-brand-v3 .portal-destination-copy .eyebrow { font-size: 10px; letter-spacing: 1.2px; }
  body.portal-brand-v3 .brand-home-actions { gap: 10px; }
  body.portal-brand-v3 #homePanel .brand-home-actions > button {
    min-height: 48px; padding: 13px 16px!important; flex: 1 1 auto;
  }
  body.portal-brand-v3 #homePanel .portal-destination-input { grid-template-columns: 18px minmax(0, 1fr) auto!important; gap: 9px; }
  body.portal-brand-v3 #homePanel .portal-destination-input strong { padding: 0; font-size: 16px; }
  body.portal-brand-v3 #homePanel .portal-destination-placeholder { font-size: 13px; }
  body.portal-brand-v3 .brand-home-support { font-size: 13px; }
  body.portal-brand-v3 .portal-destination-shortcuts { gap: 8px 16px; margin-top: 18px; }
  body.portal-brand-v3 .portal-destination-shortcuts button { font-size: 11px; }
  body.portal-brand-v3 .ux-hero-art { width: 100%; max-width: 540px; padding: 0 8px 18px 0; margin: 0 auto; }
  body.portal-brand-v3 .ux-hero-art::before { inset: 10px -5px 0 30px; border-radius: 28px; }
  body.portal-brand-v3 .ux-hero-art::after { inset: 5px 13px 23px 5px; border-radius: 13px; }
  body.portal-brand-v3 .ux-hero-art > img { height: 250px; aspect-ratio: auto; border-radius: 18px; object-position: center; }
  body.portal-brand-v3 .ux-hero-art .brand-photo-note {
    grid-template-columns: 36px minmax(0, 1fr); width: 280px;
    left: 0; bottom: 0; padding: 10px 12px; max-width: 100%; gap: 10px;
  }
  body.portal-brand-v3 .ux-hero-art .brand-photo-note strong { font-size: 12px; }
  body.portal-brand-v3 .ux-hero-art .brand-photo-note small { font-size: 10px; }
  body.portal-brand-v3 .ux-hero-art .brand-photo-icon { width: 36px; height: 42px; }
  body.portal-brand-v3 #homePanel .home-primary-actions { grid-template-columns: minmax(0, 1fr)!important; gap: 12px!important; }
  body.portal-brand-v3 #homePanel .home-primary-action,
  body.portal-brand-v3 #homePanel .home-primary-action:last-child { min-height: 98px!important; padding: 19px!important; gap: 16px; }
  body.portal-brand-v3 #homePanel .home-primary-action .quick-action-icon { width: 50px; height: 50px; flex-basis: 50px; }
  body.portal-brand-v3 #homePanel .home-primary-action strong { font-size: 14px!important; }
  body.portal-brand-v3 #homePanel .home-primary-action div span { font-size: 12px!important; }
  body.portal-brand-v3 #homePanel .home-metrics { gap: 10px!important; }
  body.portal-brand-v3 #homePanel .home-metric-card { border-radius: 12px; }
  body.portal-brand-v3 #homePanel .home-recent-deliveries-card,
  body.portal-brand-v3 #homePanel .home-proof-panel { padding: 20px; }
}
@media (max-width: 370px) {
  body.portal-brand-v3 .portal-destination-copy h2 { font-size: 33px; letter-spacing: -1.4px; }
  body.portal-brand-v3 .ux-hero-art > img { height: 235px; }
  body.portal-brand-v3 .ux-hero-art .brand-photo-note { padding: 10px; gap: 8px; }
  body.portal-brand-v3 .ux-hero-art .brand-photo-note strong { font-size: 11px; }
  body.portal-brand-v3 .ux-hero-art .brand-photo-note small { font-size: 9px; }
}

/* Validation is authoritative over the neutral field and gold focus styles. */
body.portal-brand-v3 .field.has-error input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
body.portal-brand-v3 .field.has-error select,
body.portal-brand-v3 .field.has-error textarea,
body.portal-brand-v3 #newOrderPanel .field.has-error :is(input, select, textarea) {
  border-color: rgba(220, 38, 38, .72);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .10);
}
body.portal-brand-v3 .field.has-error :is(input, select, textarea):focus-visible {
  outline-color: rgb(220, 38, 38);
}

/* Important declarations inside a layer precede the legacy unlayered layout
 * overrides. A visual rule must never reveal a permission-gated or closed area. */
@layer xmoto-visibility {
  body.portal-brand-v3 :is([hidden], .hidden, .permission-hidden, .ux-pane-inactive, .retired-view-panel) { display: none!important; }
}
