:root {
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --brand-dark: #1e3a8a;
  --paper: #f8fafc;
  --panel: #ffffff;
  --text: #15263a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --surface: #f1f5f9;
  --accent: #5a7f37;
  --ok: #0d9488;
  --danger: #dc2626;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 22px 70px rgba(15, 23, 42, 0.14);
  --radius: 8px;
  --container: min(1480px, 96vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", "Avenir Next", sans-serif;
  background: var(--paper);
  line-height: 1.5;
}

.skip-links {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  pointer-events: none;
}

.skip-link {
  position: relative;
  transform: translateY(-180%);
  background: var(--brand);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
  transition: transform 0.16s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.skip-target {
  scroll-margin-top: 6rem;
}

@media (forced-colors: active) {
  .skip-link {
    background: ButtonFace !important;
    border: 2px solid Highlight !important;
    color: ButtonText !important;
    forced-color-adjust: auto !important;
    outline: 3px solid Highlight !important;
    outline-offset: 2px !important;
  }
}

/* Admin mobile clarity polish */
@media (max-width: 760px) {
  .admin-shell .admin-main,
  .admin-shell main {
    padding-inline: clamp(0.75rem, 4vw, 1rem);
  }

  .admin-shell .admin-panel,
  .admin-shell .metric-card,
  .admin-shell .business-card {
    border-radius: 1rem;
  }

  .admin-shell .grid-two-form,
  .admin-shell .filter-form,
  .admin-shell .business-form {
    grid-template-columns: 1fr;
  }

  .admin-shell input,
  .admin-shell select,
  .admin-shell textarea,
  .admin-shell button,
  .admin-shell .btn {
    min-height: 2.75rem;
  }

  .admin-shell .inline-actions,
  .admin-shell .table-actions,
  .admin-shell .admin-actions,
  .admin-shell .panel-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-shell .inline-actions button,
  .admin-shell .inline-actions .btn,
  .admin-shell .table-actions button,
  .admin-shell .table-actions .btn,
  .admin-shell .admin-actions button,
  .admin-shell .admin-actions .btn,
  .admin-shell .panel-actions button,
  .admin-shell .panel-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .admin-shell .table-wrapper,
  .admin-shell .admin-table-wrapper {
    margin-inline: -0.5rem;
    overflow-x: auto;
    padding-inline: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .admin-shell table {
    min-width: 44rem;
  }

  .admin-shell .compact-list {
    line-height: 1.45;
  }
}

.public-shell main:focus,
.admin-shell .admin-layout:focus {
  outline: 3px solid rgba(34, 211, 238, 0.65);
  outline-offset: 0.35rem;
  scroll-margin-top: 6rem;
}

.public-shell {
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.1), transparent 26rem),
    radial-gradient(circle at 92% 8%, rgba(245, 158, 11, 0.1), transparent 24rem),
    linear-gradient(180deg, #0b0b0d 0%, #111114 34%, #f8fafc 34%, #f1f5f9 100%);
}

.auth-bg {
  background:
    radial-gradient(circle at 10% 4%, rgba(34, 211, 238, 0.16), transparent 26rem),
    radial-gradient(circle at 90% 12%, rgba(245, 158, 11, 0.16), transparent 24rem),
    #0b0b0d;
  min-height: 100vh;
}

.container,
.auth-shell,
.public-nav,
.public-footer {
  width: var(--container);
  margin-inline: auto;
}

.container {
  padding: 1.2rem 0 2.4rem;
}

.public-header {
  background: rgba(12, 12, 15, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.public-nav {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.public-nav nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.public-nav nav a {
  text-decoration: none;
  color: #d4d4d8;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  display: inline-flex;
}

.public-nav nav a:hover,
.public-nav nav a:focus-visible,
.public-nav a.btn-small:hover,
.public-nav a.btn-small:focus-visible,
.btn:hover,
button:hover,
.btn:focus-visible,
button:focus-visible {
  background: rgba(34, 211, 238, 0.1);
}

.public-nav nav a.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(245, 158, 11, 0.13));
  color: #f8fafc;
}

/* Public inspired restyle 2026-06-26 */
.public-shell {
  background:
    radial-gradient(circle at 12% -8%, rgba(96, 165, 250, 0.22), transparent 30rem),
    radial-gradient(circle at 88% 10%, rgba(191, 219, 254, 0.48), transparent 28rem),
    linear-gradient(180deg, #eff6ff 0%, #ffffff 38%, #f8fafc 100%);
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(147, 197, 253, 0.42);
  box-shadow: 0 18px 55px rgba(30, 64, 175, 0.08);
  backdrop-filter: blur(18px);
}

.public-nav {
  padding: 0.6rem 0;
  min-height: 4.25rem;
}

.public-header .brand,
.public-header .brand:visited {
  color: #0f172a;
}

.public-header .brand {
  gap: 0.72rem;
  font-size: 1.04rem;
}

.public-header .logo-inline {
  width: 2.45rem;
  height: 2.45rem;
  padding: 0.22rem;
  border-radius: 0.95rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.12);
}

.public-header nav.public-menu {
  color: #172554;
}

.public-menu-groups {
  align-items: stretch;
}

.public-menu-column,
.public-menu-action,
.public-menu-locale {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(191, 219, 254, 0.88);
  border-radius: 1.15rem;
  box-shadow: 0 16px 40px rgba(30, 64, 175, 0.07);
}

.public-menu-column {
  padding: 0.74rem;
}

.public-menu-group-title {
  color: #1e3a8a;
}

.public-menu-group-title strong,
.public-menu-copy strong {
  color: #0f172a;
}

.public-menu-group-title span,
.public-menu-copy small {
  color: #52637a;
}

.public-nav nav.public-menu a.public-menu-link,
.public-nav nav a {
  color: #1f3655;
}

.public-nav nav.public-menu a.public-menu-link {
  min-height: 3.9rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.public-nav nav.public-menu a.public-menu-link:hover,
.public-nav nav.public-menu a.public-menu-link:focus-visible,
.public-nav nav.public-menu a.public-menu-link.active,
.public-nav nav.public-menu a.public-menu-link[aria-current="page"],
.public-nav nav a:hover,
.public-nav nav a:focus-visible,
.public-nav nav a.active {
  color: #123178;
  background: #eff6ff;
  border-color: #bfdbfe;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.12);
}

.public-nav nav.public-menu a.public-menu-link:hover,
.public-nav nav.public-menu a.public-menu-link:focus-visible {
  transform: translateY(-1px);
}

.public-menu-icon {
  color: #1d4ed8;
  background: linear-gradient(145deg, #dbeafe, #ffffff);
  border: 1px solid #bfdbfe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(37, 99, 235, 0.12);
}

.public-menu-icon svg {
  stroke-width: 2.1;
}

.public-menu-action .btn-small.public-menu-link,
.btn-small {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.public-menu-action .btn-small.public-menu-link:hover,
.public-menu-action .btn-small.public-menu-link:focus-visible,
.btn-small:hover,
.btn-small:focus-visible {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  border-color: rgba(29, 78, 216, 0.75);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
}

.public-menu-action .btn-small.public-menu-link .public-menu-icon {
  color: #1d4ed8;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
}

.locale-switch {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.08);
}

.locale-switch a {
  color: #1e3a8a;
}

.locale-switch a.is-active {
  color: #ffffff !important;
  background: #1d4ed8;
}

.public-menu-toggle {
  color: #1e3a8a;
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.12);
}

.public-menu-toggle-lines i {
  background: #1d4ed8;
}

.home-hero,
.home-hero-product {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(147, 197, 253, 0.35), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
  border: 1px solid rgba(147, 197, 253, 0.72);
  border-radius: clamp(1.25rem, 2.6vw, 2.25rem);
  box-shadow: 0 28px 80px rgba(30, 64, 175, 0.14);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.48) 46%, transparent 72%),
    radial-gradient(circle at 18% 18%, rgba(219, 234, 254, 0.72), transparent 19rem);
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

.home-hero-copy {
  max-width: 43rem;
}

.home-hero h1 {
  max-width: 10.8ch;
  color: #07142f;
  letter-spacing: -0.072em;
  text-wrap: balance;
}

.home-hero-copy p:not(.eyebrow) {
  max-width: 35rem;
  color: #234263;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.eyebrow {
  color: #1d4ed8;
}

.hero-actions .btn,
.btn {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: #1d4ed8;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.hero-actions .btn:hover,
.hero-actions .btn:focus-visible,
.btn:hover,
.btn:focus-visible {
  background: linear-gradient(135deg, #1e40af, #2563eb);
}

.btn-outline {
  color: #1d4ed8;
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 12px 26px rgba(30, 64, 175, 0.08);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: #1e40af;
  background: #eff6ff;
}

.home-hero-proof span,
.home-hero-trust span,
.sector-card-price,
.public-pill,
.status-badge {
  color: #1e3a8a;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.home-hero-media {
  align-self: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #bfdbfe;
  border-radius: clamp(1.15rem, 2.4vw, 1.8rem);
  box-shadow: 0 26px 70px rgba(30, 64, 175, 0.16);
  overflow: hidden;
}

.screen-bar {
  background: #ffffff;
  border-bottom: 1px solid #dbeafe;
}

.screen-bar span {
  background: #93c5fd;
}

.home-flow-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.78rem;
  padding: clamp(1rem, 2vw, 1.45rem);
}

.home-flow-step {
  position: relative;
  grid-column: span 2;
  min-height: clamp(8.6rem, 13vw, 12rem);
  overflow: hidden;
  align-items: end;
  justify-content: start;
  padding: 0.86rem;
  color: #ffffff;
  background: #0f2c5f;
  border: 1px solid rgba(147, 197, 253, 0.76);
  border-radius: 1.15rem;
  box-shadow: 0 14px 34px rgba(30, 64, 175, 0.16);
}

.home-flow-step:nth-child(4),
.home-flow-step:nth-child(5) {
  grid-column: span 3;
}

.home-flow-step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 20, 47, 0.06), rgba(7, 20, 47, 0.76));
  pointer-events: none;
}

.home-flow-photo,
.home-flow-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-flow-photo-img {
  object-fit: cover;
  filter: saturate(0.98) contrast(1.03);
}

.home-flow-step > svg {
  position: relative;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  padding: 0.42rem;
  margin: 0 0 0.44rem;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(7, 20, 47, 0.2);
}

.home-flow-step {
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(7, 20, 47, 0.34);
}

.home-flow-step > :not(.home-flow-photo):not(svg) {
  position: relative;
  z-index: 2;
}

.section-heading {
  max-width: none;
  width: 100%;
}

.section-heading :is(h2) {
  max-width: 18ch;
  color: #07142f;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-heading :is(p) {
  max-width: 52rem;
  color: #36516f;
}

.sector-card {
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border-color: rgba(147, 197, 253, 0.78);
  border-radius: 1.25rem;
  box-shadow: 0 18px 48px rgba(30, 64, 175, 0.09);
}

.sector-card:hover,
.sector-card:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 22px 58px rgba(30, 64, 175, 0.16);
}

.sector-card h3 {
  color: #07142f;
  letter-spacing: -0.025em;
}

.sector-card p {
  color: #2c4968;
}

.sector-card img,
.sector-card-photo img,
.sector-photo img {
  filter: saturate(0.98) contrast(1.04);
}

@media (min-width: 821px) {
  .public-menu-toggle {
    display: none !important;
  }

  .public-header nav.public-menu {
    position: static;
    display: block !important;
    width: auto;
    max-width: min(75rem, calc(100vw - 18rem));
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .public-header nav.public-menu .public-menu-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(10.5rem, 1fr));
    gap: 0.6rem;
  }
}

@media (max-width: 1120px) and (min-width: 821px) {
  .public-header nav.public-menu .public-menu-groups {
    grid-template-columns: repeat(3, minmax(10rem, 1fr));
  }

  .public-header nav.public-menu {
    max-width: calc(100vw - 13rem);
  }
}

@media (max-width: 820px) {
  .public-nav {
    min-height: 4rem;
  }

  .public-header nav.public-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: #bfdbfe;
    box-shadow: 0 26px 70px rgba(30, 64, 175, 0.18);
  }

  .public-header nav.public-menu .public-menu-groups {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .home-hero-product {
    border-radius: 1.2rem;
  }

  .home-hero::before {
    background: radial-gradient(circle at 24% 5%, rgba(219, 234, 254, 0.74), transparent 18rem);
  }

  .home-hero h1 {
    max-width: 11.5ch;
    font-size: clamp(2.75rem, 15vw, 4.6rem);
  }

  .home-flow-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .home-flow-step,
  .home-flow-step:nth-child(4),
  .home-flow-step:nth-child(5) {
    grid-column: span 1;
    min-height: 8.2rem;
  }
}

@media (max-width: 560px) {
  .home-flow-gallery {
    grid-template-columns: 1fr;
  }

  .home-flow-step,
  .home-flow-step:nth-child(4),
  .home-flow-step:nth-child(5) {
    min-height: 9rem;
  }
}

/* Public sectors secondary details 2026-06-26 */
.sector-secondary-detail {
  padding: 0;
  overflow: hidden;
  border-color: rgba(191, 219, 254, 0.9);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 42px rgba(30, 64, 175, 0.07);
}

.sector-secondary-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  min-height: 5.4rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  cursor: pointer;
  list-style: none;
}

.sector-secondary-summary::-webkit-details-marker {
  display: none;
}

.sector-secondary-summary::after {
  content: "+";
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.sector-secondary-detail[open] .sector-secondary-summary::after {
  content: "-";
}

.sector-secondary-summary .eyebrow,
.sector-secondary-summary h2,
.sector-secondary-summary p {
  margin: 0;
}

.sector-secondary-summary h2 {
  color: #07142f;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  letter-spacing: -0.04em;
}

.sector-secondary-summary p:not(.eyebrow) {
  color: #36516f;
}

.sector-secondary-detail-body {
  display: grid;
  gap: 1rem;
  padding: 0 clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.35rem);
  border-top: 1px solid rgba(191, 219, 254, 0.75);
}

.sector-secondary-detail-body > .section-heading {
  display: none;
}

.sector-secondary-detail[open] {
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

@media (max-width: 820px) {
  .sector-secondary-summary {
    grid-template-columns: 1fr auto;
  }

  .sector-secondary-summary .eyebrow,
  .sector-secondary-summary p:not(.eyebrow) {
    grid-column: 1 / -1;
  }
}

.locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.locale-switch a {
  min-width: 2.25rem;
  justify-content: center;
  border-radius: 999px;
  padding: 0.42rem 0.58rem !important;
  font-size: 0.78rem !important;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.locale-switch a.is-active {
  color: #111827 !important;
  background: linear-gradient(135deg, #67e8f9, #fde68a);
}

.auth-locale-bar {
  width: min(980px, 100%);
  display: flex;
  justify-content: flex-end;
  margin: 0 auto 0.75rem;
}

.auth-locale-switch a {
  color: #e5e7eb;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.public-header .brand,
.public-footer a {
  min-height: var(--touch-target, 44px);
}

.public-footer a {
  display: inline-flex;
  align-items: center;
}

.btn-small {
  margin-left: 0.2rem;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 7px;
  background: linear-gradient(135deg, #2563eb, #facc15);
  color: #121212 !important;
  padding: 0.58rem 0.9rem;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.btn-small:hover,
.btn-small:focus-visible {
  transform: none;
  background: linear-gradient(135deg, #fbbf24, #fde68a);
  border-color: rgba(250, 204, 21, 0.45);
}

.logo-inline {
  width: 46px;
  height: auto;
  border-radius: 12px;
}

.brand span {
  letter-spacing: 0.01em;
}

.card + .card {
  margin-top: 0.9rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.auth-bg .card {
  background: rgba(18, 18, 22, 0.94);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.auth-bg .hint,
.auth-bg .small,
.auth-bg label {
  color: #a1a1aa;
}

.auth-bg input {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.auth-shell {
  min-height: calc(100vh - 3rem);
  display: grid;
  align-items: center;
  justify-items: stretch;
  padding: 2rem 0;
}

.auth-card {
  width: min(980px, 100%);
  display: grid;
  gap: 1rem;
}

.auth-card-pro {
  width: min(1180px, 100%);
  grid-template-columns: minmax(17rem, 0.9fr) minmax(0, 1.25fr);
  align-items: stretch;
  padding: clamp(0.85rem, 2vw, 1.2rem);
}

.auth-card-minimal {
  width: min(980px, 100%);
  padding: clamp(0.85rem, 2vw, 1.2rem);
}

.auth-minimal-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.9fr) minmax(19rem, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.auth-product-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 1.25rem;
  min-height: 100%;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: calc(var(--radius) - 0.35rem);
  background:
    radial-gradient(circle at 18% 14%, rgba(34, 211, 238, 0.2), transparent 16rem),
    radial-gradient(circle at 85% 20%, rgba(255, 123, 99, 0.24), transparent 18rem),
    linear-gradient(145deg, #101827 0%, #172033 48%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-product-hero::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  width: 13rem;
  height: 13rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.auth-product-hero > * {
  position: relative;
  z-index: 1;
}

.auth-product-copy h2 {
  max-width: 12ch;
  margin: 0.35rem 0 0.65rem;
  color: #f8fafc;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.auth-product-hero-compact .auth-product-copy h2 {
  max-width: 11ch;
  font-size: clamp(2rem, 5vw, 3.65rem);
}

.auth-product-copy p:not(.eyebrow),
.auth-protection-note {
  color: #cbd5e1;
  line-height: 1.55;
}

.auth-product-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.42);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.28);
}

.auth-product-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 620;
  object-fit: cover;
}

.auth-proof-list {
  display: grid;
  gap: 0.75rem;
}

.auth-proof-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
  padding: 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.auth-proof-list span {
  grid-row: span 2;
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.8rem;
  background: rgba(34, 211, 238, 0.16);
  color: #67e8f9;
  font-size: 0.75rem;
  font-weight: 900;
}

.auth-proof-list strong {
  color: #f8fafc;
}

.auth-proof-list small {
  color: #cbd5e1;
  line-height: 1.4;
}

.auth-protection-note {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.auth-login-column {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}

.auth-login-heading {
  padding: 0.25rem 0.25rem 0;
}

.auth-login-heading h2 {
  margin: 0.2rem 0 0.35rem;
  color: #f8fafc;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
}

.auth-login-heading p:not(.eyebrow) {
  margin: 0;
  color: #cbd5e1;
}

.auth-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-form-actions a,
.auth-access-links a {
  color: #67e8f9;
  font-weight: 850;
  text-decoration: none;
}

.auth-form-actions a:hover,
.auth-form-actions a:focus-visible,
.auth-access-links a:hover,
.auth-access-links a:focus-visible {
  text-decoration: underline;
}

.auth-access-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  padding-top: 0.2rem;
}

.access-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.access-grid-single {
  grid-template-columns: minmax(0, 30rem);
  justify-content: center;
}

.auth-entry {
  background: #fbfdff;
}

.brand-row,
.brand-mini {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.brand-row h1,
.brand-mini h1 {
  font-size: 1.45rem;
}

.hint {
  color: var(--muted);
  margin-top: 0.9rem;
  font-size: 0.95rem;
}

.topbar,
.hero,
.public-section,
.actions,
.card + .card,
.grid-two,
.grid-three,
.grid-two-form,
.stacked-form,
.contact-form {
  margin-top: 1rem;
}

.topbar {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.68rem;
  background: #e6f1fb;
  color: #194a7f;
  font-size: 0.8rem;
}

.admin-mode-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-mode-badge-ops {
  background: #dcfce7;
  border-color: #86efac;
  color: #14532d;
}

.admin-mode-badge-client {
  background: #ffedd5;
  border-color: #fdba74;
  color: #1d4ed8;
}

.hero,
.hero-home {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.hero-home {
  margin-top: 1.2rem;
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
}

.hero-copy {
  max-width: 74ch;
}

.hero-home h1 {
  font-size: clamp(1.9rem, 2.7vw, 2.9rem);
  line-height: 1.1;
}

.hero img,
.hero-home img,
.hero-art img {
  width: min(360px, 100%);
  border-radius: 8px;
}

.hero p,
.public-section p {
  color: var(--muted);
  margin-top: 0.45rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
  color: #0e7a8d;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.home-hero {
  min-height: 560px;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(380px, 0.72fr);
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(110deg, rgba(18, 18, 22, 0.96) 0%, rgba(18, 18, 22, 0.9) 58%, rgba(34, 211, 238, 0.12) 100%),
    url("/assets/media/home/sector-generic.jpg") right 1.4rem center / 42% auto no-repeat;
  color: #f8fafc;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.home-hero-copy {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 860px;
}

.home-hero h1 {
  max-width: 16ch;
  font-size: 4rem;
  line-height: 1;
}

.home-hero-copy p:not(.eyebrow) {
  max-width: 68ch;
  margin-top: 1rem;
  color: #d4d4d8;
  font-size: 1.08rem;
  line-height: 1.58;
}

.home-hero-media {
  margin: 2rem;
  align-self: end;
  min-height: 390px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 9, 11, 0.72);
  box-shadow: none;
  display: grid;
  grid-template-rows: auto 1fr;
}

.screen-bar {
  height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding-inline: 1rem;
}

.screen-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9eb4c8;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px;
}

.screen-grid div {
  background: rgba(18, 18, 22, 0.92);
  padding: 1rem;
  display: grid;
  align-content: start;
  min-height: 160px;
}

.screen-grid strong,
.service-ledger span,
.metric-row span,
.work-list span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.screen-grid b {
  margin-top: 0.6rem;
  font-size: 1.6rem;
}

.sales-card p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.screen-grid small {
  margin-top: 0.5rem;
  color: #a1a1aa;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong);
  border-top: 0;
  background: #fff;
}

.metrics-strip div {
  min-height: 118px;
  padding: 1.1rem;
  border-right: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 0.2rem;
}

.metrics-strip div:last-child {
  border-right: 0;
}

.metrics-strip strong {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.metrics-strip span {
  color: var(--muted);
}

.home-band,
.ops-board,
.home-cta {
  margin-top: 1.2rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 8px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading :is(h2),
.home-cta h2 {
  max-width: 840px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.service-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-ledger article {
  min-height: 240px;
  padding: 1.1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.service-ledger h3,
.ops-lanes h3,
.admin-panel h3 {
  font-size: 1.04rem;
}

.service-ledger p,
.ops-lanes p {
  color: var(--muted);
}

.service-table {
  border: 1px solid var(--line);
  background: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
}

.pricing-card {
  display: grid;
  gap: 0.65rem;
}

.pricing-card .eyebrow {
  min-height: 1.6rem;
}

.price-tag {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.plan-highlight {
  border-color: #bdd6e8;
  box-shadow: var(--shadow);
}

.plan-matrix {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
}

.plan-line {
  min-height: 56px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.plan-line:last-child {
  border-bottom: 0;
}

.plan-line strong {
  font-size: 1.35rem;
}

.service-head {
  background: var(--surface);
  font-weight: 800;
}

.ops-lanes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.ops-lanes article {
  min-height: 190px;
  background: #fbfcff;
  padding: 1.1rem;
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(90deg, #ffffff 0%, #eef6f2 100%);
}

.public-section h1 {
  margin-top: 0.2rem;
  font-size: clamp(1.7rem, 2.2vw, 2.5rem);
}

.public-section h2 {
  margin-top: 0.2rem;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.public-section h2 {
  margin-top: 0.1rem;
}

.public-section h3 {
  margin-top: 0.1rem;
}

.btn,
button,
.inline-actions button,
.grid-two-form button {
  font: inherit;
}

.btn,
button {
  border: 0;
  border-radius: 7px;
  padding: 0.58rem 0.9rem;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn:hover,
button:hover {
  background: var(--brand-2);
}

.btn:active,
button:active {
  transform: translateY(0);
}

.btn-outline {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text) !important;
}

.grid-two-form,
.contact-form,
.grid-two {
  display: grid;
  gap: 0.65rem;
}

.grid-two {
  grid-template-columns: 2fr 1fr;
}

.grid-two-form {
  grid-template-columns: 1fr 1fr;
}

.contact-form input,
.contact-form textarea,
.grid-two-form input,
.grid-two-form select,
.stacked-form input,
button,
.btn,
textarea {
  width: 100%;
}

.contact-form input,
.contact-form textarea,
.grid-two-form input,
.grid-two-form select,
.grid-two-form textarea,
.stacked-form input {
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.62rem 0.68rem;
}

.auth-bg .stacked-form label {
  color: #e5e7eb;
  font-weight: 800;
}

.auth-bg .stacked-form input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #111827;
  color-scheme: light;
  caret-color: #111827;
  -webkit-text-fill-color: #111827;
}

.auth-bg .stacked-form input::placeholder {
  color: #64748b;
}

.auth-bg .stacked-form input::selection {
  background: #bfdbfe;
  color: #111827;
  -webkit-text-fill-color: #111827;
}

.auth-bg .stacked-form input:-webkit-autofill,
.auth-bg .stacked-form input:-webkit-autofill:hover,
.auth-bg .stacked-form input:-webkit-autofill:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 1000px #ffffff inset;
  caret-color: #111827;
  -webkit-text-fill-color: #111827;
}

.auth-field-hint {
  margin: -0.38rem 0 0;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.36;
}

.auth-bg .stacked-form input:focus-visible {
  border-color: #93c5fd;
  outline: 3px solid rgba(147, 197, 253, 0.85);
  outline-offset: 2px;
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form button,
.stacked-form button,
.grid-two-form button,
button.danger {
  min-width: 160px;
}

button.danger,
.inline-actions button.danger {
  background: var(--danger);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 3px solid #9dc5f2;
  outline-offset: 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  padding: 0;
  margin: -1px;
}

.grid-three {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, 1fr);
}

.inline-check {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.compact-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.error {
  color: var(--danger);
  margin: 0.55rem 0 0;
}

.success {
  color: var(--ok);
  margin: 0.55rem 0 0;
}

.error-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--danger);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: #deebfa;
  border: 1px solid #bed1eb;
}

.status-respondido {
  background: #d1fae5;
  border-color: #86efac;
}

.status-active,
.status-paid,
.status-accepted {
  background: #d1fae5;
  border-color: #86efac;
}

.status-inactive,
.status-rejected,
.status-overdue,
.status-cancelled,
.status-void {
  background: #fee2e2;
  border-color: #fca5a5;
}

.status-draft {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.status-sent,
.status-issued {
  background: #dbeafe;
  border-color: #93c5fd;
}

.small {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.table-wrap {
  overflow: auto;
}

.admin-shell {
  background: var(--paper);
}

.admin-topbar {
  width: var(--container);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.admin-layout {
  width: var(--container);
  margin: 1rem auto 2rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-rail {
  position: sticky;
  top: 1rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  padding: 0.5rem;
  gap: 0.25rem;
}

.admin-rail a {
  min-height: 38px;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.admin-rail a:hover,
.admin-rail a:focus-visible,
.admin-rail a.active {
  background: #e7f0f8;
  color: var(--brand-dark);
}

.admin-content {
  display: grid;
  gap: 1rem;
}

.admin-heading,
.admin-panel {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: none;
  padding: 1rem;
}

.admin-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.admin-heading h2 {
  font-size: 1.65rem;
  line-height: 1.1;
}

.admin-heading p:not(.eyebrow) {
  margin-top: 0.5rem;
  color: var(--muted);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric-row article {
  min-height: 112px;
  background: #fff;
  padding: 1rem;
  display: grid;
  align-content: space-between;
}

.metric-row strong {
  font-size: 1.85rem;
  line-height: 1;
}

.metric-row small {
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.work-list {
  display: grid;
  border: 1px solid var(--line);
  margin-top: 0.85rem;
}

.work-list div {
  min-height: 54px;
  padding: 0.65rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.work-list div:last-child {
  border-bottom: 0;
}

.work-list strong {
  font-size: 1.15rem;
}

.admin-actions {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.admin-mode-toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-switch-btn {
  min-height: 34px;
}

.compact-actions {
  min-width: min(360px, 100%);
  margin-top: 0;
}

.filter-form {
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  align-items: end;
}

.filter-form .btn {
  width: 100%;
}

.result-count {
  margin: 0.35rem 0 0.8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  font-size: 0.92rem;
}

thead {
  background: #f8fafc;
}

th,
td {
  text-align: left;
  padding: 0.58rem 0.68rem;
  border-bottom: 1px solid var(--line);
}

tbody tr:hover {
  background: #f8fafc;
}

.inline-actions {
  display: flex;
  gap: 0.4rem;
}

.inline-actions button {
  min-width: 112px;
}

.inline-actions .btn {
  width: auto;
  min-width: 72px;
  padding: 0.55rem 0.7rem;
}

.document-actions {
  align-items: center;
  flex-wrap: wrap;
}

.document-actions form {
  margin: 0;
}

.document-shell {
  background: #f1f3f6;
}

.document-page {
  width: min(980px, 94vw);
  margin: 1.4rem auto 2rem;
}

.document-card {
  background: #fff;
  border: 1px solid var(--line-strong);
  padding: clamp(1.2rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.document-header,
.document-parties,
.document-total {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
}

.document-header {
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--text);
}

.document-header h2 {
  font-size: 2rem;
}

.document-issuer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.document-issuer-logo {
  display: inline-grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 1rem;
  background: var(--text);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.document-number {
  text-align: right;
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.document-number span,
.document-parties span,
.document-total span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.document-number strong {
  font-size: 1.5rem;
}

.document-parties {
  margin-top: 1.4rem;
}

.document-parties article {
  width: 50%;
}

.document-parties p {
  color: var(--muted);
  margin-top: 0.25rem;
}

.document-table {
  margin-top: 1.6rem;
}

.document-total {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  align-items: center;
}

.document-total strong {
  font-size: 2rem;
}

.steps {
  list-style: decimal;
  margin: 0.8rem 0 0;
  padding-left: 1.25rem;
}

.public-footer {
  width: var(--container);
  margin: 1.4rem auto 1.4rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.public-footer a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  top: 0;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Admin theme inspired by Adynra/Filament: dark workspace, dense panels, signal accents. */
.admin-shell {
  --brand: #2563eb;
  --brand-2: #facc15;
  --brand-dark: #f8fafc;
  --paper: #0b0b0d;
  --panel: rgba(18, 18, 22, 0.94);
  --text: #f8fafc;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.04);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.12), transparent 28rem),
    radial-gradient(circle at 96% 12%, rgba(245, 158, 11, 0.12), transparent 24rem),
    #0b0b0d;
}

.admin-shell .admin-topbar {
  background: rgba(12, 12, 15, 0.96);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.admin-shell .brand-mini h1,
.admin-shell .brand-mini p,
.admin-shell .user-meta,
.admin-shell .admin-heading h2,
.admin-shell .admin-panel h3,
.admin-shell th,
.admin-shell td,
.admin-shell label {
  color: var(--text);
}

.admin-shell .brand-mini p,
.admin-shell .admin-heading p:not(.eyebrow),
.admin-shell .small,
.admin-shell .hint,
.admin-shell .work-list span,
.admin-shell .metric-row span,
.admin-shell .metric-row small {
  color: var(--muted);
}

.admin-shell .logo-inline {
  width: 44px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.12);
}

.admin-shell .admin-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.35rem;
}

.admin-shell .admin-rail,
.admin-shell .admin-heading,
.admin-shell .admin-panel,
.admin-shell .metric-row article,
.admin-shell .work-list,
.admin-shell .document-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.admin-shell .admin-rail {
  padding: 0.7rem;
  border-radius: 14px;
  backdrop-filter: blur(18px);
}

.admin-shell .admin-rail a {
  color: #d4d4d8;
  border-radius: 9px;
  min-height: 42px;
  font-weight: 700;
}

.admin-shell .admin-rail a:hover,
.admin-shell .admin-rail a:focus-visible,
.admin-shell .admin-rail a.active {
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(245, 158, 11, 0.13));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-shell .admin-heading,
.admin-shell .admin-panel {
  border-radius: 14px;
  backdrop-filter: blur(14px);
}

.admin-shell .admin-heading {
  min-height: 132px;
}

.admin-shell .admin-heading h2 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

.admin-shell .eyebrow {
  color: #22d3ee;
}

.admin-shell .metric-row {
  background: var(--line);
  border-color: var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.admin-shell .metric-row strong {
  color: #f8fafc;
}

.admin-shell .btn,
.admin-shell button {
  background: linear-gradient(135deg, #2563eb, #facc15);
  color: #121212;
  border: 1px solid rgba(250, 204, 21, 0.22);
  box-shadow: none;
}

.admin-shell .btn:hover,
.admin-shell button:hover,
.admin-shell .btn:focus-visible,
.admin-shell button:focus-visible {
  background: linear-gradient(135deg, #fbbf24, #fde68a);
}

.admin-shell .btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc !important;
  border-color: var(--line-strong);
}

.admin-shell .btn-outline:hover,
.admin-shell .btn-outline:focus-visible {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.45);
}

.admin-shell button.danger,
.admin-shell .inline-actions button.danger {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
}

.admin-shell input,
.admin-shell select,
.admin-shell textarea {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.11);
}

.admin-shell input:focus-visible,
.admin-shell textarea:focus-visible,
.admin-shell select:focus-visible {
  outline: 0;
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25);
}

.admin-shell thead {
  background: rgba(255, 255, 255, 0.035);
}

.admin-shell th,
.admin-shell td,
.admin-shell .work-list div {
  border-color: var(--line);
}

.admin-shell tbody tr:hover {
  background: rgba(34, 211, 238, 0.05);
}

.admin-shell .status-badge {
  color: #f8fafc;
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.28);
}

.admin-shell .status-active,
.admin-shell .status-paid,
.admin-shell .status-accepted {
  background: rgba(20, 184, 166, 0.16);
  border-color: rgba(20, 184, 166, 0.36);
}

.admin-shell .status-inactive,
.admin-shell .status-rejected,
.admin-shell .status-overdue,
.admin-shell .status-cancelled,
.admin-shell .status-void {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.36);
}

.admin-shell .status-draft {
  background: rgba(161, 161, 170, 0.14);
  border-color: rgba(161, 161, 170, 0.28);
}

.admin-shell .status-sent,
.admin-shell .status-issued {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.34);
}

/* Final Adynra-like admin pass with selectable dark/light modes. */
.theme-switch {
  display: inline-flex;
  align-items: center;
}

.theme-switch select {
  width: auto;
  min-width: 112px;
  min-height: 42px;
  color: #f8fafc;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.65rem;
  padding: 0.45rem 0.65rem;
}

.admin-shell {
  --panel: #0f1420;
  --text: #f8fafc;
  --muted: #a7adbb;
  --line: #26324a;
  --line-strong: #314061;
  --shadow: none;
  background:
    linear-gradient(90deg, #090a0d 0 412px, transparent 412px),
    radial-gradient(circle at 94% 8%, rgba(245, 158, 11, 0.12), transparent 25rem),
    radial-gradient(circle at 38% 8%, rgba(34, 211, 238, 0.08), transparent 20rem),
    #0b0b0d;
}

.admin-shell .admin-topbar {
  width: calc(100% - 412px);
  margin-left: 412px;
  padding: 1.35rem 1.55rem 1rem;
  border-bottom: 0;
  background: rgba(11, 11, 13, 0.92);
}

.admin-shell .admin-topbar::before {
  content: "Buscar";
  order: 2;
  min-width: min(360px, 38vw);
  min-height: 48px;
  margin-left: auto;
  margin-right: 1rem;
  display: inline-flex;
  align-items: center;
  padding-left: 3.2rem;
  color: #a1a1aa;
  border-radius: 0.7rem;
  background: #141416;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.admin-shell .admin-topbar .brand-mini {
  position: fixed;
  left: 1.55rem;
  top: 1.55rem;
  z-index: 5;
}

.admin-shell .admin-topbar .user-meta {
  order: 3;
}

.admin-shell .admin-layout {
  width: 100%;
  margin: 0;
  padding: 1rem 1.7rem 2rem 0;
  grid-template-columns: 412px minmax(0, 1fr);
  gap: 0;
}

.admin-shell .admin-rail {
  width: 390px;
  min-height: calc(100vh - 8rem);
  margin-top: 4rem;
  margin-left: 0.4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-shell .admin-rail a {
  min-height: 54px;
  padding: 0.78rem 1rem;
  color: #646875;
  border-radius: 10px;
  font-size: 1rem;
}

.admin-shell .admin-rail a:hover,
.admin-shell .admin-rail a:focus-visible,
.admin-shell .admin-rail a.active {
  color: #f8fafc;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.2), rgba(245, 158, 11, 0.15));
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.28);
}

.admin-shell .admin-heading {
  min-height: 116px;
  border: 0;
  background:
    radial-gradient(circle at 96% 0%, rgba(245, 158, 11, 0.12), transparent 24rem),
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.08), transparent 20rem),
    transparent;
}

.admin-shell .admin-heading h2 {
  font-size: 2.6rem;
}

.admin-shell .admin-panel,
.admin-shell .metric-row article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0f1420;
  box-shadow: none;
}

.admin-shell .metric-row {
  gap: 1rem;
  border: 0;
  background: transparent;
}

.admin-shell .metric-row article {
  min-height: 120px;
}

.admin-shell .metric-row strong {
  font-size: 2rem;
}

.admin-shell .table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 9, 11, 0.24);
}

.admin-shell table {
  min-width: 980px;
}

.admin-shell .filter-form {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.025);
}

.admin-shell .document-card {
  color: #111827;
  background: #fff;
}

.admin-shell .document-card h2,
.admin-shell .document-card h3,
.admin-shell .document-card th,
.admin-shell .document-card td {
  color: #111827;
}

html[data-theme="light"] .admin-shell {
  --panel: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: #dbe3ef;
  --line-strong: #c5d1e2;
  background:
    linear-gradient(90deg, #ffffff 0 412px, transparent 412px),
    radial-gradient(circle at 94% 8%, rgba(245, 158, 11, 0.12), transparent 25rem),
    radial-gradient(circle at 38% 8%, rgba(34, 211, 238, 0.12), transparent 20rem),
    #f5f7fb;
}

html[data-theme="light"] .admin-shell .admin-topbar {
  background: rgba(245, 247, 251, 0.92);
}

html[data-theme="light"] .admin-shell .admin-topbar::before,
html[data-theme="light"] .theme-switch select {
  color: #64748b;
  background: #ffffff;
  border-color: #dbe3ef;
}

html[data-theme="light"] .admin-shell .brand-mini h1,
html[data-theme="light"] .admin-shell .brand-mini p,
html[data-theme="light"] .admin-shell .user-meta,
html[data-theme="light"] .admin-shell .admin-heading h2,
html[data-theme="light"] .admin-shell .admin-panel h3,
html[data-theme="light"] .admin-shell th,
html[data-theme="light"] .admin-shell td,
html[data-theme="light"] .admin-shell label,
html[data-theme="light"] .admin-shell .metric-row strong {
  color: #111827;
}

html[data-theme="light"] .admin-shell .admin-panel,
html[data-theme="light"] .admin-shell .metric-row article {
  background: #ffffff;
}

html[data-theme="light"] .admin-shell .admin-rail a {
  color: #667085;
}

html[data-theme="light"] .admin-shell .admin-rail a:hover,
html[data-theme="light"] .admin-shell .admin-rail a:focus-visible,
html[data-theme="light"] .admin-shell .admin-rail a.active {
  color: #0f172a;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.14), rgba(245, 158, 11, 0.13));
}

html[data-theme="light"] .admin-shell input,
html[data-theme="light"] .admin-shell select,
html[data-theme="light"] .admin-shell textarea {
  color: #111827;
  background: #ffffff;
  border-color: #dbe3ef;
}

html[data-theme="light"] .admin-shell .btn-outline {
  color: #111827 !important;
  background: #ffffff;
}

/* Light management mode inspired by the provided Filament-style screens. */
html[data-theme="light"] .admin-shell {
  --brand: #ff7b63;
  --brand-2: #ff947d;
  --panel: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --line-strong: #d7dce3;
  background: #f7f7f8;
}

html[data-theme="light"] .admin-shell .admin-topbar {
  width: 100%;
  margin-left: 0;
  padding: 0.7rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .admin-shell .admin-topbar .brand-mini {
  position: static;
}

html[data-theme="light"] .admin-shell .admin-topbar::before {
  content: "Buscar";
  min-width: 300px;
  min-height: 38px;
  padding-left: 2.4rem;
  color: #98a2b3;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

html[data-theme="light"] .admin-shell .admin-layout {
  width: min(1760px, 96vw);
  margin: 0 auto 2rem;
  padding: 0;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
}

html[data-theme="light"] .admin-shell .admin-rail {
  width: 100%;
  min-height: auto;
  margin: 1rem 0 0;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
}

html[data-theme="light"] .admin-shell .admin-rail a {
  min-height: 42px;
  color: #344054;
  border-radius: 8px;
  font-size: 0.92rem;
}

html[data-theme="light"] .admin-shell .admin-rail a:hover,
html[data-theme="light"] .admin-shell .admin-rail a:focus-visible,
html[data-theme="light"] .admin-shell .admin-rail a.active {
  color: #111827;
  background: #f3f6fb;
  box-shadow: inset 0 0 0 1px #d8e0ec;
}

html[data-theme="light"] .admin-shell .admin-content {
  margin-top: 1rem;
}

html[data-theme="light"] .admin-shell .admin-heading {
  min-height: auto;
  padding: 0.3rem 0 1rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="light"] .admin-shell .admin-heading h2 {
  color: #030712;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

html[data-theme="light"] .admin-shell .admin-heading p:not(.eyebrow) {
  color: #667085;
}

html[data-theme="light"] .admin-shell .eyebrow {
  color: #667085;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
}

html[data-theme="light"] .admin-shell .admin-panel,
html[data-theme="light"] .admin-shell .metric-row article,
html[data-theme="light"] .admin-shell .work-list {
  border: 1px solid #e0e4ea;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

html[data-theme="light"] .admin-shell .admin-panel {
  padding: 1rem;
}

html[data-theme="light"] .admin-shell .metric-row {
  gap: 0.7rem;
}

html[data-theme="light"] .admin-shell .metric-row article {
  min-height: 96px;
  padding: 0.9rem;
}

html[data-theme="light"] .admin-shell .metric-row strong {
  color: #030712;
  font-size: 1.55rem;
}

html[data-theme="light"] .admin-shell .filter-form {
  margin: 0.9rem -1rem 0.9rem;
  padding: 0.75rem 1rem;
  border-width: 1px 0;
  border-radius: 0;
  background: #fbfbfc;
}

html[data-theme="light"] .admin-shell .grid-two-form input,
html[data-theme="light"] .admin-shell .grid-two-form select,
html[data-theme="light"] .admin-shell .grid-two-form textarea,
html[data-theme="light"] .admin-shell .stacked-form input,
html[data-theme="light"] .admin-shell .contact-form input,
html[data-theme="light"] .admin-shell .contact-form textarea {
  min-height: 38px;
  color: #111827;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 1px rgba(16, 24, 40, 0.03);
}

html[data-theme="light"] .admin-shell .btn,
html[data-theme="light"] .admin-shell button {
  min-height: 38px;
  color: #ffffff;
  border: 1px solid #1d4ed8;
  border-radius: 8px;
  background: #1d4ed8;
  box-shadow: none;
}

html[data-theme="light"] .admin-shell .btn:hover,
html[data-theme="light"] .admin-shell button:hover {
  background: #1e40af;
}

html[data-theme="light"] .admin-shell .btn-outline {
  color: #344054 !important;
  border-color: #d9dee7;
  background: #ffffff;
}

html[data-theme="light"] .admin-shell .inline-actions {
  align-items: center;
}

html[data-theme="light"] .admin-shell .inline-actions .btn,
html[data-theme="light"] .admin-shell .inline-actions button {
  min-height: 34px;
  padding: 0.4rem 0.7rem;
}

html[data-theme="light"] .admin-shell .table-wrap {
  margin: 0 -1rem -1rem;
  border-width: 1px 0 0;
  border-radius: 0 0 10px 10px;
  background: #ffffff;
}

html[data-theme="light"] .admin-shell table {
  min-width: 980px;
  font-size: 0.86rem;
}

html[data-theme="light"] .admin-shell thead {
  background: #fbfbfc;
}

html[data-theme="light"] .admin-shell th {
  color: #111827;
  font-size: 0.82rem;
  font-weight: 800;
}

html[data-theme="light"] .admin-shell td {
  color: #111827;
}

html[data-theme="light"] .admin-shell th,
html[data-theme="light"] .admin-shell td {
  padding: 0.72rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

html[data-theme="light"] .admin-shell tbody tr:hover {
  background: #fafafa;
}

html[data-theme="light"] .admin-shell .status-badge {
  color: #344054;
  border-color: #d9dee7;
  background: #ffffff;
  font-size: 0.72rem;
}

html[data-theme="light"] .admin-shell .status-active,
html[data-theme="light"] .admin-shell .status-paid,
html[data-theme="light"] .admin-shell .status-accepted {
  color: #008a3d;
  border-color: #bbf7d0;
  background: #ecfdf3;
}

html[data-theme="light"] .admin-shell .status-draft {
  color: #344054;
  border-color: #e5e7eb;
  background: #ffffff;
}

html[data-theme="light"] .admin-shell .status-sent,
html[data-theme="light"] .admin-shell .status-issued {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

html[data-theme="light"] .admin-shell .status-inactive,
html[data-theme="light"] .admin-shell .status-rejected,
html[data-theme="light"] .admin-shell .status-overdue,
html[data-theme="light"] .admin-shell .status-cancelled,
html[data-theme="light"] .admin-shell .status-void {
  color: #c2410c;
  border-color: #fed7aa;
  background: #fff7ed;
}

html[data-theme="light"] .theme-switch select {
  min-height: 36px;
  color: #344054;
  border-color: #d9dee7;
  background: #ffffff;
}

@media (max-width: 920px) {
  :root {
    --container: min(100%, 95vw);
  }

  .grid-three,
  .grid-two-form,
  .grid-two,
  .hero-home,
  .home-hero,
  .service-ledger,
  .pricing-grid,
  .ops-lanes,
  .metric-row,
  .admin-grid,
.access-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    background: #fff;
  }

  .home-hero h1 {
    max-width: 14ch;
  }

  .home-hero-media {
    margin: 0 1rem 1rem;
    min-height: 300px;
  }

  .metrics-strip {
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line-strong);
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-rail {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

  .public-nav {
    flex-wrap: nowrap;
  }

  .public-nav nav ul {
    flex-wrap: nowrap;
  }

  .hero,
  .hero-home,
  .public-footer {
    text-align: left;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100%, 95vw);
  }

  .topbar {
    flex-wrap: wrap;
  }

  .public-nav nav ul {
    flex-wrap: wrap;
  }

  .btn-small {
    margin-left: 0;
  }

  .home-hero-copy {
    padding: 1.4rem;
  }

  .home-hero h1 {
    font-size: 2.7rem;
  }

  .home-hero-media {
    display: none;
  }

  .metrics-strip,
  .screen-grid,
  .admin-rail,
  .admin-actions {
    grid-template-columns: 1fr;
  }

  .home-cta,
  .admin-heading,
  .user-meta,
  .document-header,
  .document-parties,
  .document-total {
    align-items: stretch;
    flex-direction: column;
  }

  .document-number {
    text-align: left;
  }

  .document-issuer-brand {
    flex-direction: column;
  }

  .document-parties article {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .admin-shell {
    background:
      radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.1), transparent 18rem),
      #0b0b0d;
  }

  .admin-shell .admin-topbar {
    width: var(--container);
    margin-left: auto;
    padding: 0.85rem 0;
  }

  .admin-shell .admin-topbar::before {
    display: none;
  }

  .admin-shell .admin-topbar .brand-mini {
    position: static;
  }

  .admin-shell .admin-layout {
    width: var(--container);
    margin: 1rem auto 2rem;
    padding: 0;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .admin-shell .admin-rail {
    width: 100%;
    min-height: auto;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
  }
}

@media print {
  .document-toolbar,
  body.document-shell .admin-topbar,
  body.document-shell .admin-rail,
  body.document-shell .admin-content > .admin-heading,
  body.document-shell .admin-actions,
  body.document-shell .context-inline-help,
  body.document-shell .admin-help-trigger,
  body.document-shell .admin-mobile-action-dock,
  .public-mobile-cta,
  .skip-link {
    display: none !important;
  }

  body,
  .document-shell {
    background: #fff !important;
  }

  body.document-shell .admin-layout {
    display: block !important;
    gap: 0 !important;
    margin: 0 !important;
  }

  body.document-shell .admin-content,
  body.document-shell .document-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .document-page {
    width: 100%;
    margin: 0;
  }

  .document-card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
/* Final desktop management pass inspired by Filament/Adynra reference captures. */
html[data-theme="light"] .admin-shell {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: #e1e5ea;
  --line-strong: #d7dde5;
  --text: #0b1220;
  --muted: #667085;
  --primary: #1d4ed8;
  --primary-strong: #1e40af;
  --primary-soft: #eff6ff;
  --accent: #0ea5b7;
  --ok: #00c875;
  --warn: #2563eb;
  --danger: #dc2626;
  background: #f7f7f8;
  color: #0b1220;
}

html[data-theme="light"] .admin-shell .admin-topbar {
  width: 100%;
  max-width: none;
  min-height: 42px;
  margin: 0;
  padding: 0.45rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .admin-shell .admin-topbar::before {
  content: "Gestion";
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.85rem;
  border-right: 1px solid #e5e7eb;
  color: #111827;
  font-size: 0.88rem;
  font-weight: 800;
}

html[data-theme="light"] .admin-shell .admin-topbar .brand-mini {
  gap: 0.55rem;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 800;
}

html[data-theme="light"] .admin-shell .admin-topbar .brand-mini img {
  width: 26px;
  height: 26px;
}

html[data-theme="light"] .admin-shell .user-meta {
  margin-left: auto;
  color: #475467;
  font-size: 0.82rem;
}

html[data-theme="light"] .admin-shell .user-meta a,
html[data-theme="light"] .admin-shell .theme-toggle {
  border: 1px solid #d8dee8;
  background: #ffffff;
  color: #182230;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

html[data-theme="light"] .admin-shell .admin-layout {
  width: min(1780px, 96vw);
  max-width: none;
  margin: 0 auto 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

html[data-theme="light"] .admin-shell .admin-rail {
  position: static;
  width: 100%;
  min-height: auto;
  margin: 0.65rem 0 0.35rem;
  padding: 0.45rem;
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

html[data-theme="light"] .admin-shell .admin-rail nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: stretch;
}

html[data-theme="light"] .admin-shell .admin-rail a {
  min-height: 34px;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #344054;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: none;
}

html[data-theme="light"] .admin-shell .admin-rail a:hover,
html[data-theme="light"] .admin-shell .admin-rail a.active {
  border-color: #d6deea;
  background: #f3f6fb;
  color: #111827;
  transform: none;
}

html[data-theme="light"] .admin-shell .admin-main {
  min-width: 0;
}

html[data-theme="light"] .admin-shell .admin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.75rem 0 1rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="light"] .admin-shell .admin-heading h1 {
  margin: 0;
  color: #030712;
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

html[data-theme="light"] .admin-shell .admin-heading p {
  max-width: 820px;
  margin-top: 0.28rem;
  color: #667085;
  font-size: 0.88rem;
}

html[data-theme="light"] .admin-shell .admin-actions,
html[data-theme="light"] .admin-shell .document-toolbar,
html[data-theme="light"] .admin-shell .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

html[data-theme="light"] .admin-shell .admin-panel,
html[data-theme="light"] .admin-shell .stat-card,
html[data-theme="light"] .admin-shell .notice,
html[data-theme="light"] .admin-shell .help-card,
html[data-theme="light"] .admin-shell .document-card {
  border: 1px solid #dfe4eb;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  box-shadow: none;
}

html[data-theme="light"] .admin-shell .admin-panel {
  padding: 0;
  overflow: hidden;
}

html[data-theme="light"] .admin-shell .admin-panel > h2,
html[data-theme="light"] .admin-shell .admin-panel > h3,
html[data-theme="light"] .admin-shell .admin-panel > p:first-child {
  margin: 0;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

html[data-theme="light"] .admin-shell .admin-panel > form:not(.filter-form),
html[data-theme="light"] .admin-shell .admin-panel > .form-grid,
html[data-theme="light"] .admin-shell .admin-panel > .form-help,
html[data-theme="light"] .admin-shell .admin-panel > .admin-actions,
html[data-theme="light"] .admin-shell .admin-panel > .notice {
  margin: 0;
  padding: 1rem 1.2rem;
}

html[data-theme="light"] .admin-shell .filter-form,
html[data-theme="light"] .admin-shell .filters {
  margin: 0;
  padding: 0.65rem 1.2rem;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  background: #fbfbfc;
  box-shadow: none;
}

html[data-theme="light"] .admin-shell .filter-form label,
html[data-theme="light"] .admin-shell label,
html[data-theme="light"] .admin-shell th {
  color: #111827;
  font-size: 0.78rem;
  font-weight: 800;
}

html[data-theme="light"] .admin-shell input,
html[data-theme="light"] .admin-shell select,
html[data-theme="light"] .admin-shell textarea {
  min-height: 34px;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-size: 0.86rem;
  box-shadow: inset 0 1px 1px rgba(16, 24, 40, 0.03), 0 1px 2px rgba(16, 24, 40, 0.04);
}

html[data-theme="light"] .admin-shell input:focus,
html[data-theme="light"] .admin-shell select:focus,
html[data-theme="light"] .admin-shell textarea:focus {
  border-color: #9aa8bd;
  outline: 2px solid rgba(255, 128, 104, 0.18);
  outline-offset: 1px;
}

html[data-theme="light"] .admin-shell .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  overflow-x: auto;
}

html[data-theme="light"] .admin-shell table {
  min-width: 1040px;
  width: 100%;
  border-collapse: collapse;
  color: #101828;
  font-size: 0.86rem;
}

html[data-theme="light"] .admin-shell thead {
  background: #fafafa;
}

html[data-theme="light"] .admin-shell th,
html[data-theme="light"] .admin-shell td {
  padding: 0.78rem 1.15rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

html[data-theme="light"] .admin-shell tbody tr:hover {
  background: #f9fafb;
}

html[data-theme="light"] .admin-shell .btn,
html[data-theme="light"] .admin-shell button,
html[data-theme="light"] .admin-shell input[type="submit"] {
  min-height: 34px;
  border: 1px solid #1d4ed8;
  border-radius: 8px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: none;
}

html[data-theme="light"] .admin-shell .btn:hover,
html[data-theme="light"] .admin-shell button:hover,
html[data-theme="light"] .admin-shell input[type="submit"]:hover {
  background: #1e40af;
  border-color: #1e40af;
  transform: none;
}

html[data-theme="light"] .admin-shell .btn-outline,
html[data-theme="light"] .admin-shell .btn-secondary,
html[data-theme="light"] .admin-shell .btn-small,
html[data-theme="light"] .admin-shell .actions-menu button,
html[data-theme="light"] .admin-shell .table-actions .btn {
  border-color: #d7dce3;
  background: #ffffff;
  color: #182230;
}

html[data-theme="light"] .admin-shell .btn-danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b42318;
}

html[data-theme="light"] .admin-shell .status,
html[data-theme="light"] .admin-shell .badge {
  border-radius: 6px;
  padding: 0.18rem 0.45rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #344054;
  font-size: 0.72rem;
  font-weight: 800;
}

html[data-theme="light"] .admin-shell .status-active,
html[data-theme="light"] .admin-shell .status-accepted,
html[data-theme="light"] .admin-shell .status-paid {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #008a45;
}

html[data-theme="light"] .admin-shell .status-sent,
html[data-theme="light"] .admin-shell .status-issued {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

html[data-theme="light"] .admin-shell .status-overdue,
html[data-theme="light"] .admin-shell .status-cancelled,
html[data-theme="light"] .admin-shell .status-void,
html[data-theme="light"] .admin-shell .status-rejected {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b42318;
}

html[data-theme="light"] .admin-shell .metric-row,
html[data-theme="light"] .admin-shell .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 0.9rem;
}

html[data-theme="light"] .admin-shell .metric-card,
html[data-theme="light"] .admin-shell .stat-card {
  min-height: 92px;
  padding: 1rem 1.15rem;
  border: 1px solid #dfe4eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

html[data-theme="light"] .admin-shell .metric-card strong,
html[data-theme="light"] .admin-shell .stat-card strong {
  color: #030712;
  font-size: 1.75rem;
  font-weight: 850;
}

html[data-theme="light"] .admin-shell .metric-card span,
html[data-theme="light"] .admin-shell .stat-card span {
  color: #667085;
  font-size: 0.82rem;
}

html[data-theme="light"] .admin-shell .actions-menu,
html[data-theme="light"] .admin-shell .dropdown-menu {
  border: 1px solid #dfe4eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.12);
}

@media (max-width: 1180px) {
  html[data-theme="light"] .admin-shell .metric-row,
  html[data-theme="light"] .admin-shell .stats-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 720px) {
  html[data-theme="light"] .admin-shell .admin-topbar {
    padding: 0.55rem 1rem;
  }

  html[data-theme="light"] .admin-shell .admin-layout {
    width: min(100%, 94vw);
  }

  html[data-theme="light"] .admin-shell .admin-rail nav,
  html[data-theme="light"] .admin-shell .admin-actions,
  html[data-theme="light"] .admin-shell .document-toolbar,
  html[data-theme="light"] .admin-shell .form-actions {
    justify-content: flex-start;
  }

  html[data-theme="light"] .admin-shell .metric-row,
  html[data-theme="light"] .admin-shell .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Override final: estetica de escritorio tipo gestion para toda area administrativa */
.admin-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #f6f7fb, #edf0f7);
}

html[data-theme="dark"] .admin-shell {
  background: linear-gradient(180deg, #060b16, #0d1321);
}

.admin-shell .admin-layout {
  margin-inline: auto;
  width: min(1380px, 100% - 2rem);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding-top: 1rem;
}

.admin-shell .admin-rail {
  position: sticky;
  top: 0;
  width: auto;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #d9e0ea;
  background: #ffffff;
  min-height: calc(100vh - 5.4rem);
}

html[data-theme="dark"] .admin-shell .admin-rail {
  border-color: #1f2a44;
  background: #0f1626;
}

.admin-shell .admin-rail nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-shell .admin-rail a {
  min-height: 36px;
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  border: 1px solid transparent;
  color: #111827;
  font-size: 0.91rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

html[data-theme="dark"] .admin-shell .admin-rail a {
  color: #e5e7eb;
}

.admin-shell .admin-rail a.active,
.admin-shell .admin-rail a:hover,
.admin-shell .admin-rail a:focus-visible {
  border-color: rgba(96, 165, 250, 0.25);
  color: #0f172a;
  background: #edf5ff;
}

html[data-theme="dark"] .admin-shell .admin-rail a.active,
html[data-theme="dark"] .admin-shell .admin-rail a:hover,
html[data-theme="dark"] .admin-shell .admin-rail a:focus-visible {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.95);
}

.admin-shell .admin-content {
  display: grid;
  gap: 1rem;
}

.admin-shell .admin-heading {
  padding: 0.35rem 0.15rem 0.2rem;
}

.admin-shell .admin-heading h2 {
  font-size: 1.7rem;
  letter-spacing: 0.005em;
}

.admin-shell .admin-panel,
.admin-shell .notice,
.admin-shell .help-card {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  overflow: hidden;
}

html[data-theme="dark"] .admin-shell .admin-panel,
html[data-theme="dark"] .admin-shell .notice,
html[data-theme="dark"] .admin-shell .help-card {
  border-color: #22304f;
  background: #0b1221;
  color: #d7deea;
}

.admin-shell .admin-panel > h2,
.admin-shell .admin-panel > h3,
.admin-shell .admin-panel > p:first-child,
.admin-shell .admin-content > .admin-heading + .admin-panel {
  margin: 0;
  padding: 0.9rem 1.05rem;
  border-bottom: 1px solid #edf2f7;
}

html[data-theme="dark"] .admin-shell .admin-panel > h2,
html[data-theme="dark"] .admin-shell .admin-panel > h3,
html[data-theme="dark"] .admin-shell .admin-panel > p:first-child,
html[data-theme="dark"] .admin-shell .admin-content > .admin-heading + .admin-panel {
  border-bottom-color: #1c2743;
}

.admin-shell .admin-panel > form:not(.filter-form),
.admin-shell .admin-panel > .table-wrap,
.admin-shell .admin-panel > div,
.admin-shell .admin-panel > .table-actions {
  margin: 0;
  padding: 1.05rem;
}

.admin-shell .filter-form {
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}

.admin-shell .filter-form,
.admin-shell .filters {
  margin: 0;
  padding: 0.8rem 1rem;
}

.admin-shell .filter-form > div {
  min-width: 200px;
}

.admin-shell .filter-form + .table-wrap {
  border-top: 0;
}

.admin-shell .table-wrap {
  margin: 0;
  border: 1px solid #dee4ee;
  border-radius: 0;
  background: #fff;
}

html[data-theme="dark"] .admin-shell .table-wrap {
  border-color: #233051;
  background: #0b1323;
}

.admin-shell table {
  font-size: 0.84rem;
}

.admin-shell thead th {
  background: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.74rem;
}

html[data-theme="dark"] .admin-shell thead th {
  background: #141c2f;
}

.admin-shell .btn,
.admin-shell button,
.admin-shell .btn-small {
  border-radius: 9px;
  min-height: 34px;
  padding-inline: 0.95rem;
  letter-spacing: 0.01em;
}

.admin-shell .admin-topbar {
  max-width: 100%;
  border-bottom: 1px solid #d9e1ef;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .admin-shell .admin-topbar {
  border-bottom-color: #1d2a46;
}

.admin-shell .brand-mini .logo-inline {
  width: 32px;
  display: none;
}

.admin-shell .brand-mini::before {
  content: "M";
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}

.admin-shell .brand-mini h1 {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.admin-shell .user-meta .badge {
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
}

@media (max-width: 1180px) {
  .admin-shell .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-shell .admin-rail {
    position: static;
    min-height: auto;
  }

  .admin-shell .admin-rail nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
/* Mantivo - vista administrativa estilo escritorio final */
.admin-shell {
  --admin-border: #d9e2ef;
  --admin-muted: #6b7280;
  --admin-title: #0f172a;
  --admin-bg: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  --admin-panel-bg: #ffffff;
  --admin-topbar-bg: rgba(248, 250, 252, 0.96);
  --admin-surface-bg: #f3f6fb;
  min-height: 100vh;
  background: var(--admin-bg);
}

html[data-theme="dark"] .admin-shell {
  --admin-border: #22304b;
  --admin-muted: #94a3b8;
  --admin-title: #f8fafc;
  --admin-bg: linear-gradient(180deg, #050a14 0%, #0b1221 100%);
  --admin-panel-bg: #0b1322;
  --admin-topbar-bg: rgba(8, 15, 27, 0.96);
  --admin-surface-bg: #0f182b;
  color: #e2e8f0;
}

.admin-shell,
.admin-shell .admin-topbar,
.admin-shell .admin-layout,
.admin-shell .admin-rail,
.admin-shell .admin-panel {
  border-color: var(--admin-border);
}

.admin-shell .admin-topbar {
  max-width: none;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--admin-topbar-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--admin-border);
  min-height: 64px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  padding: 0.65rem 1.1rem;
}

.admin-shell .admin-topbar .brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.admin-shell .brand-mini .logo-inline {
  width: 34px;
  height: 34px;
  display: block;
}

.admin-shell .brand-mini::before {
  content: none;
}

.admin-shell .brand-mini h1 {
  margin: 0;
  letter-spacing: 0.01em;
  color: var(--admin-title);
  font-size: 1.18rem;
}

.admin-shell .admin-layout {
  width: min(1400px, 100% - 2rem);
  margin: 0 auto;
  padding-top: 1rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.05rem;
  align-items: start;
}

.admin-shell .admin-rail {
  position: sticky;
  top: 76px;
  height: calc(100vh - 108px);
  background: var(--admin-panel-bg);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.admin-shell .admin-rail nav {
  display: flex;
  flex-direction: column;
  gap: 0.44rem;
}

.admin-shell .admin-rail a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0.56rem 0.68rem;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--admin-title);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.admin-shell .admin-rail a:hover,
.admin-shell .admin-rail a:focus-visible,
.admin-shell .admin-rail a.active {
  color: #0f172a;
  background: #eef3fd;
  border-color: rgba(37, 99, 235, 0.22);
}

html[data-theme="dark"] .admin-shell .admin-rail a {
  color: #e2e8f0;
}

html[data-theme="dark"] .admin-shell .admin-rail a:hover,
html[data-theme="dark"] .admin-shell .admin-rail a:focus-visible,
html[data-theme="dark"] .admin-shell .admin-rail a.active {
  color: #f8fafc;
  background: #1b2740;
  border-color: rgba(56, 189, 248, 0.28);
}

.admin-shell .admin-content {
  display: grid;
  gap: 1rem;
}

.admin-shell .admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.1rem 0.2rem;
}

.admin-shell .admin-heading h2 {
  margin: 0;
  color: var(--admin-title);
  font-size: 1.72rem;
  letter-spacing: 0.005em;
}

.admin-shell .admin-heading p:not(.eyebrow) {
  margin: 0.3rem 0 0;
  color: var(--admin-muted);
}

.admin-shell .admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-shell .admin-actions .btn,
.admin-shell .admin-actions .btn-outline {
  border-radius: 10px;
}

.admin-shell .admin-panel {
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  background: var(--admin-panel-bg);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.admin-shell .admin-panel > h3,
.admin-shell .admin-panel > p:first-child {
  margin: 0;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-shell .admin-panel > form:not(.filter-form),
.admin-shell .admin-panel > div,
.admin-shell .admin-panel > .table-wrap,
.admin-shell .admin-panel > .admin-actions,
.admin-shell .admin-panel > .notice {
  margin: 0;
  padding: 1rem;
}

.admin-shell .metric-row,
.admin-shell .admin-grid {
  display: grid;
  gap: 0.85rem;
}

.admin-shell .metric-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-shell .admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-shell .metric-row article,
.admin-shell .admin-panel,
.admin-shell .document-card {
  min-width: 0;
  background: var(--admin-panel-bg);
}

.admin-shell .metric-row strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 1.42rem;
}

.admin-shell .metric-row span {
  display: block;
  color: var(--admin-muted);
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-shell .table-wrap {
  background: var(--admin-panel-bg);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  overflow-x: auto;
  margin: 0;
}

.admin-shell table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.admin-shell thead th {
  text-align: left;
  padding: 0.6rem 0.7rem;
  background: var(--admin-surface-bg);
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-title);
  text-transform: none;
}

.admin-shell td {
  padding: 0.62rem 0.7rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-shell tbody tr:hover {
  background: #eef2ff;
}

html[data-theme="dark"] .admin-shell tbody tr:hover {
  background: #1f2a45;
}

.admin-shell .filter-form,
.admin-shell .filters {
  margin: 0;
  padding: 0.7rem;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--admin-panel-bg);
}

.admin-shell .filter-form {
  border: 1px solid var(--admin-border);
}

.admin-shell input,
.admin-shell select,
.admin-shell textarea {
  min-height: 36px;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  color: #0f172a;
  border-radius: 10px;
  padding: 0.48rem 0.65rem;
}

html[data-theme="dark"] .admin-shell input,
html[data-theme="dark"] .admin-shell select,
html[data-theme="dark"] .admin-shell textarea {
  background: #111c30;
  color: #e2e8f0;
}

.admin-shell .btn,
.admin-shell button {
  border-radius: 10px;
  min-height: 34px;
  padding-inline: 0.95rem;
  background: #334155;
  border: 1px solid #cbd5e1;
  color: #ffffff;
}

.admin-shell .btn:hover,
.admin-shell .btn:focus-visible,
.admin-shell button:hover,
.admin-shell button:focus-visible {
  background: #1f2937;
}

.admin-shell .btn-outline {
  background: #ffffff;
  color: #0f172a;
  border-color: #d1d5db;
}

.admin-shell .btn-outline:hover,
.admin-shell .btn-outline:focus-visible {
  color: #0f172a;
  border-color: #94a3b8;
}

html[data-theme="dark"] .admin-shell .btn {
  background: #3b82f6;
  border-color: rgba(191, 219, 254, 0.4);
}

html[data-theme="dark"] .admin-shell .btn:hover,
html[data-theme="dark"] .admin-shell .btn:focus-visible,
html[data-theme="dark"] .admin-shell button:hover,
html[data-theme="dark"] .admin-shell button:focus-visible {
  background: #2563eb;
}

html[data-theme="dark"] .admin-shell .btn-outline {
  background: transparent;
  color: #f8fafc;
  border-color: #475569;
}

html[data-theme="dark"] .admin-mode-badge-ops {
  background: #052e16;
  border-color: #14532d;
  color: #86efac;
}

html[data-theme="dark"] .admin-mode-badge-client {
  background: #3b230f;
  border-color: #7c2d12;
  color: #fdba74;
}

html[data-theme="dark"] .admin-shell .btn-outline:hover,
html[data-theme="dark"] .admin-shell .btn-outline:focus-visible {
  background: rgba(148, 163, 184, 0.16);
}

.admin-shell .status-badge {
  border-radius: 999px;
  padding: 0.17rem 0.58rem;
}

.admin-shell .inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-shell .admin-feature-grid {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-shell .admin-feature-grid > article {
  border: 1px dashed var(--admin-border);
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.85rem;
}

.admin-shell .admin-feature-grid h4 {
  margin: 0 0 0.4rem;
  color: var(--admin-title);
  font-size: 0.98rem;
}

.admin-shell .admin-feature-grid p {
  margin: 0 0 0.5rem;
  color: var(--admin-muted);
  font-size: 0.88rem;
}

.admin-shell .admin-empty-state {
  margin: 0;
  border: 1px dashed var(--admin-border);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.03);
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.admin-shell .admin-empty-state p {
  margin: 0;
  color: var(--admin-muted);
}

.admin-shell .admin-empty-state strong {
  color: var(--admin-title);
}

.admin-shell .admin-empty-state .admin-empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-shell .admin-topbar .brand-mini .logo-inline {
  display: none;
}

.admin-shell .admin-topbar .brand-mini::before {
  content: "M";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f97316;
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1;
}

.admin-shell .admin-example-grid {
  margin-top: 0.45rem;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--admin-panel-bg);
  padding: 0.8rem;
}

.admin-shell .admin-example-grid dl {
  margin: 0.55rem 0 0;
  display: grid;
  gap: 0.42rem;
  grid-template-columns: auto 1fr;
}

.admin-shell .admin-example-grid dt {
  font-weight: 700;
  color: var(--admin-title);
}

.admin-shell .admin-example-grid dd {
  margin: 0;
  color: var(--admin-muted);
}

html[data-theme="dark"] .admin-shell .admin-empty-state {
  background: rgba(148, 163, 184, 0.08);
}

html[data-theme="dark"] .admin-shell .admin-feature-grid > article {
  background: #0f1a30;
}

@media (max-width: 1200px) {
  .admin-shell .admin-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .admin-shell .metric-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .admin-shell .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-shell .admin-rail {
    position: static;
    height: auto;
  }

  .admin-shell .admin-rail nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .admin-shell .admin-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-shell .metric-row,
  .admin-shell .admin-grid,
  .admin-shell .admin-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Mantivo Admin UI v3
   Diseno de escritorio inspirado en flujo operativo tipo panel gestionable (CET-Apunts).
-------------------------------------------------------------------------- */
:root {
  --admin-shell-sidebar: 282px;
  --admin-shell-gap: 1rem;
}

html[data-theme="light"] .admin-shell {
  --admin-bg: linear-gradient(180deg, #f4f7fc 0%, #edf3fb 100%);
  --admin-panel-bg: #ffffff;
  --admin-title: #0b1220;
  --admin-muted: #5b6b80;
  --admin-border: #d9e3f2;
  --admin-line: #e2e8f0;
  --admin-surface-bg: #f8fbff;
  --admin-topbar-bg: rgba(255, 255, 255, 0.96);
  --admin-rail-bg: #ffffff;
}

html[data-theme="dark"] .admin-shell {
  --admin-bg: linear-gradient(180deg, #040b16 0%, #0a1220 100%);
  --admin-panel-bg: #0b1324;
  --admin-title: #f8fafc;
  --admin-muted: #a3b0c4;
  --admin-border: #21304b;
  --admin-line: #1e2c46;
  --admin-surface-bg: #111c32;
  --admin-topbar-bg: rgba(11, 19, 37, 0.95);
  --admin-rail-bg: #0f1a2f;
}

.admin-shell {
  background: var(--admin-bg);
  color: var(--admin-title);
}

.admin-shell .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: min(1440px, 100% - 1.6rem);
  margin: 0 auto;
  background: var(--admin-topbar-bg);
  border-bottom: 1px solid var(--admin-border);
  min-height: 64px;
  padding: 0.65rem 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(8px);
}

.admin-shell .admin-topbar .brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-shell .brand-mark,
.admin-shell .brand-mini::before {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
  background: #f97316;
  line-height: 1;
}

.admin-shell .brand-mini::before {
  content: "M";
}

.admin-shell .brand-mini h1 {
  font-size: 1.1rem;
}

.admin-shell .user-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-shell .admin-topbar .user-meta .badge {
  background: #e2f4ff;
  color: #0b4a75;
  border-color: #9fd3ff;
}

.admin-shell .admin-layout {
  width: min(1440px, 100% - 1.6rem);
  margin-inline: auto;
  padding-top: 1rem;
  display: grid;
  grid-template-columns: var(--admin-shell-sidebar) minmax(0, 1fr);
  gap: var(--admin-shell-gap);
  align-items: start;
}

.admin-shell .admin-rail {
  position: sticky;
  top: 5.05rem;
  height: calc(100vh - 6.3rem);
  overflow: auto;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-rail-bg);
  padding: 0.8rem;
}

.admin-shell .admin-rail nav {
  display: grid;
  gap: 0.45rem;
}

.admin-shell .admin-rail-title {
  margin: 0.55rem 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--admin-muted);
  font-weight: 700;
}

.admin-shell .admin-rail-title:first-of-type {
  margin-top: 0;
}

.admin-shell .admin-rail a {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  min-height: 39px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.52rem 0.68rem;
  color: var(--admin-title);
  text-decoration: none;
  font-weight: 600;
}

.admin-shell .admin-rail a:hover,
.admin-shell .admin-rail a:focus-visible,
.admin-shell .admin-rail a.active {
  border-color: color-mix(in oklab, var(--admin-border) 80%, transparent);
  background: var(--admin-surface-bg);
}

.admin-shell .admin-rail a.active {
  font-weight: 700;
}

.admin-shell .admin-rail a::before,
.admin-shell .admin-rail a:focus-visible::before {
  content: "";
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: transparent;
  flex: 0 0 auto;
}

.admin-shell .admin-rail a:hover::before,
.admin-shell .admin-rail a:focus-visible::before,
.admin-shell .admin-rail a.active::before {
  background: var(--admin-title);
}

.admin-shell .admin-rail-icon {
  width: 1.45rem;
  min-width: 1.45rem;
  height: 1.45rem;
  border-radius: 8px;
  background: color-mix(in oklab, var(--admin-surface-bg) 80%, transparent);
  border: 1px solid var(--admin-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--admin-muted);
}

.admin-shell .admin-content {
  display: grid;
  gap: 1rem;
}

.admin-shell .admin-heading,
.admin-shell .admin-panel,
.admin-shell .admin-empty-state,
.admin-shell .admin-feature-grid > article,
.admin-shell .admin-example-grid {
  background: var(--admin-panel-bg);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
}

.admin-shell .admin-heading {
  padding: 0.92rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.admin-shell .admin-heading p:not(.eyebrow) {
  margin-top: 0.35rem;
  color: var(--admin-muted);
}

.admin-shell .admin-heading .eyebrow {
  margin-bottom: 0.15rem;
}

.admin-shell .admin-heading .actions,
.admin-shell .admin-heading .admin-mode-toolbar,
.admin-shell .admin-heading .admin-actions,
.admin-shell .admin-grid .admin-actions,
.admin-shell .admin-mode-toolbar,
.admin-shell .admin-feature-grid .admin-actions,
.admin-shell .admin-empty-state .admin-empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.admin-shell .admin-panel > h2,
.admin-shell .admin-panel > h3,
.admin-shell .admin-empty-state > h3,
.admin-shell .admin-feature-grid > article > h3,
.admin-shell .admin-panel > p:first-child {
  margin: 0;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-shell .admin-panel,
.admin-shell .admin-empty-state,
.admin-shell .admin-feature-grid > article {
  min-width: 0;
}

.admin-shell .admin-panel > .table-wrap,
.admin-shell .admin-panel > div,
.admin-shell .admin-panel > form,
.admin-shell .admin-panel > .admin-empty-state,
.admin-shell .admin-panel > .admin-example-grid,
.admin-shell .admin-feature-grid > article > div,
.admin-shell .admin-panel .admin-grid,
.admin-shell .admin-empty-state,
.admin-shell .admin-panel .admin-feature-grid,
.admin-shell .admin-example-grid,
.admin-shell .admin-empty-state .admin-empty-state-actions {
  padding: 1rem;
}

.admin-shell .admin-grid,
.admin-shell .admin-feature-grid,
.admin-shell .metric-row {
  display: grid;
  gap: var(--admin-shell-gap);
  min-width: 0;
}

.admin-shell .admin-grid,
.admin-shell .admin-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-shell .metric-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-shell .admin-grid .admin-panel,
.admin-shell .admin-feature-grid > article {
  box-shadow: none;
}

.admin-shell .metric-row article,
.admin-shell .admin-grid .admin-panel,
.admin-shell .work-list div {
  background: var(--admin-panel-bg);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
}

.admin-shell .metric-row article,
.admin-shell .admin-example-grid,
.admin-shell .admin-empty-state,
.admin-shell .table-wrap {
  padding: 0.95rem;
}

.admin-shell .metric-row article {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.admin-shell .metric-row strong {
  font-size: 1.45rem;
  line-height: 1;
  display: block;
}

.admin-shell .metric-row span,
.admin-shell .metric-row small {
  color: var(--admin-muted);
}

.admin-shell .work-list {
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  margin-top: 0.8rem;
  overflow: hidden;
}

.admin-shell .work-list div {
  min-height: 52px;
  padding: 0.62rem 0.78rem;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: center;
}

.admin-shell .compact-list {
  display: grid;
  gap: 0.42rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.admin-shell .compact-list li {
  margin: 0;
  color: var(--admin-title);
}

.admin-shell .admin-empty-state p {
  margin: 0;
  color: var(--admin-muted);
}

.admin-shell .admin-empty-state strong {
  color: var(--admin-title);
}

.admin-shell .admin-example-grid {
  margin-top: 0.4rem;
}

.admin-shell .admin-example-grid dl {
  margin: 0.65rem 0 0;
  display: grid;
  gap: 0.34rem;
}

.admin-shell .admin-example-grid dt {
  font-weight: 700;
  color: var(--admin-title);
}

.admin-shell .admin-example-grid dd {
  margin: 0;
  color: var(--admin-muted);
}

.admin-shell .grid-two-form,
.admin-shell .grid-two,
.admin-shell .grid-three,
.admin-shell .stacked-form,
.admin-shell .contact-form {
  display: grid;
  gap: 0.72rem;
}

.admin-shell .grid-two-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-shell .filter-form,
.admin-shell .admin-empty-state,
.admin-shell .admin-example-grid {
  margin-top: 0.65rem;
}

.admin-shell .filter-form .admin-actions {
  margin-top: 0.65rem;
}

.admin-shell .table-wrap {
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  overflow: auto;
}

.admin-shell table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  font-size: 0.88rem;
}

.admin-shell thead th,
.admin-shell th {
  position: relative;
  background: var(--admin-surface-bg);
  color: var(--admin-title);
  text-align: left;
  padding: 0.6rem 0.72rem;
  border-bottom: 1px solid var(--admin-line);
}

.admin-shell td,
.admin-shell th {
  padding: 0.62rem 0.72rem;
  border-bottom: 1px solid var(--admin-line);
}

.admin-shell tbody tr:hover {
  background: color-mix(in oklab, var(--admin-surface-bg) 70%, transparent);
}

.admin-shell .btn,
.admin-shell button {
  min-height: 34px;
  border-radius: 9px;
  padding-inline: 0.9rem;
  font-weight: 700;
}

.admin-shell .btn:hover,
.admin-shell button:hover,
.admin-shell .btn:focus-visible,
.admin-shell button:focus-visible {
  opacity: 0.95;
}

.admin-shell .inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.43rem;
}

.admin-shell .btn-outline,
.admin-shell .btn-secondary {
  border-radius: 9px;
}

.admin-shell input,
.admin-shell select,
.admin-shell textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 0.48rem 0.62rem;
}

html[data-theme="dark"] .admin-shell input,
html[data-theme="dark"] .admin-shell select,
html[data-theme="dark"] .admin-shell textarea {
  background: #111a2b;
  color: #f8fafc;
}

.admin-shell .status-badge,
.admin-shell .badge {
  border-radius: 999px;
}

.admin-shell .status-active,
.admin-shell .status-paid,
.admin-shell .status-accepted,
.admin-shell .status-sent,
.admin-shell .status-issued {
  background: #dbeafe;
  border-color: #93c5fd;
}

.admin-shell .status-inactive,
.admin-shell .status-rejected,
.admin-shell .status-overdue,
.admin-shell .status-cancelled,
.admin-shell .status-void {
  background: #fee2e2;
  border-color: #fca5a5;
}

.admin-shell .status-draft {
  background: #e5e7eb;
  border-color: #cbd5e1;
}

.admin-shell .theme-switch {
  margin-right: 0.35rem;
}

.admin-shell .theme-switch select {
  border: 1px solid var(--admin-border);
  border-radius: 9px;
  min-height: 34px;
  padding: 0.36rem 0.6rem;
  color: var(--admin-title);
  background: var(--admin-panel-bg);
}

.admin-shell .admin-topbar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  width: min(1440px, 100% - 1.6rem);
  margin: 0 auto;
  padding-inline: 0.95rem;
}

.admin-shell .admin-topbar .brand-mini {
  min-width: 12rem;
  justify-self: start;
}

.admin-shell .admin-topbar .user-meta {
  justify-self: end;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 14rem;
}

.admin-shell .admin-topbar .theme-switch {
  margin-right: 0;
}

.admin-shell .admin-mega-nav {
  justify-self: stretch;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  padding: 0.1rem 0;
  scrollbar-width: none;
}

.admin-shell .admin-mega-nav::-webkit-scrollbar {
  display: none;
}

.admin-shell .admin-mega-nav__item {
  position: relative;
}

.admin-shell .admin-mega-nav__button {
  appearance: none;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: color-mix(in oklab, var(--admin-panel-bg) 88%, transparent);
  color: var(--admin-title);
  min-height: 36px;
  padding: 0 0.8rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  list-style: none;
}

.admin-shell .admin-mega-nav__button::marker,
.admin-shell .admin-mega-nav__button::-webkit-details-marker {
  display: none;
}

.admin-shell .admin-mega-nav__button::after {
  content: "v";
  font-size: 0.7rem;
  color: var(--admin-muted);
  transition: transform 120ms ease;
}

.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__button::after {
  transform: rotate(180deg);
}

.admin-shell .admin-mega-nav__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  width: min(20rem, calc(100vw - 2rem));
  padding: 0.55rem;
  background: var(--admin-panel-bg);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  z-index: 50;
  display: none;
}

.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
}

.admin-shell .admin-mega-nav__panel a,
.admin-shell .admin-mega-nav__panel a:visited {
  display: flex;
  gap: 0.52rem;
  align-items: center;
  border-radius: 8px;
  min-height: 34px;
  padding: 0.42rem 0.55rem;
  color: var(--admin-title);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  font-size: 0.82rem;
}

.admin-shell .admin-mega-nav__panel a:hover,
.admin-shell .admin-mega-nav__panel a:focus-visible,
.admin-shell .admin-mega-nav__panel a.active {
  border-color: color-mix(in oklab, var(--admin-border) 65%, transparent);
  background: var(--admin-surface-bg);
}

.admin-shell .admin-mega-nav__icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 8px;
  border: 1px solid var(--admin-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--admin-surface-bg) 84%, transparent);
  font-size: 0.8rem;
  color: var(--admin-muted);
  flex: 0 0 auto;
}

.admin-shell .admin-mega-nav__panel a.active .admin-mega-nav__icon {
  color: var(--admin-title);
  border-color: color-mix(in oklab, var(--admin-title) 35%, transparent);
}

.admin-shell .admin-rail-title {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.admin-shell .admin-rail-title-icon {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 6px;
  border: 1px solid var(--admin-line);
  background: color-mix(in oklab, var(--admin-surface-bg) 86%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__button,
html[data-theme="dark"] .admin-shell .admin-mega-nav__panel,
html[data-theme="dark"] .admin-shell .admin-mega-nav__panel a {
  background: #0e162b;
}

@media (max-width: 1100px) {
  .admin-shell .admin-topbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-shell .admin-topbar .brand-mini {
    justify-self: stretch;
  }

  .admin-shell .admin-topbar .admin-mega-nav {
    order: 3;
    width: 100%;
  }

  .admin-shell .admin-topbar .user-meta {
    order: 2;
    justify-self: stretch;
    width: 100%;
  }

  .admin-shell .admin-mega-nav__panel {
    width: min(100%, 100vw - 2rem);
  }
}

@media (max-width: 1440px) {
  .admin-shell .admin-layout {
    width: min(1400px, 100% - 1.2rem);
  }

  .admin-shell .admin-grid,
  .admin-shell .admin-feature-grid,
  .admin-shell .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell .metric-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .admin-shell .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-shell .admin-rail {
    position: static;
    height: auto;
    overflow: visible;
  }

  .admin-shell .admin-rail nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell .admin-grid,
  .admin-shell .admin-feature-grid,
  .admin-shell .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .admin-shell .admin-topbar {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0.78rem;
  }

  .admin-shell .admin-topbar .brand-mini {
    order: 1;
  }

  .admin-shell .admin-topbar .user-meta {
    order: 2;
    width: 100%;
  }

  .admin-shell .admin-mega-nav {
    order: 3;
    width: 100%;
    overflow-x: visible;
  }

  .admin-shell .admin-mega-nav__panel {
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
  }

  .admin-shell .admin-layout {
    width: min(100%, 100% - 1rem);
  }

  .admin-shell .admin-rail nav {
    grid-template-columns: 1fr;
  }

  .admin-shell .admin-heading,
  .admin-shell .admin-heading .admin-heading-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-shell .admin-grid,
  .admin-shell .admin-feature-grid,
  .admin-shell .metric-row,
  .admin-shell .grid-two-form {
    grid-template-columns: 1fr;
  }

  .admin-shell .admin-heading .actions,
  .admin-shell .admin-actions,
  .admin-shell .admin-mode-toolbar,
  .admin-shell .admin-empty-state-actions {
    width: 100%;
  }
}

/* Mantivo Admin - estilo de navegacion inspirado en CET Apunts */
.admin-shell .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: min(1440px, 100% - 1.6rem);
  margin: 0 auto;
  background: color-mix(in oklab, var(--admin-panel-bg, #ffffff) 93%, transparent);
  border-bottom: 1px solid var(--admin-border, #d9e3f2);
  padding: 0.7rem 0.95rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  backdrop-filter: blur(8px);
}

.admin-shell .admin-topbar .brand-mini {
  min-width: 15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: start;
}

.admin-shell .admin-topbar .brand-mini h1 {
  margin: 0;
  font-size: 1.04rem;
}

.admin-shell .admin-topbar .brand-mini p {
  margin: 0;
  font-size: 0.74rem;
  color: var(--admin-muted, #5b6b80);
}

.admin-shell .admin-topbar .user-meta {
  justify-self: end;
  justify-content: flex-end;
  justify-self: end;
}

.admin-shell .admin-mega-nav {
  justify-self: stretch;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow-x: auto;
}

.admin-shell .admin-mega-nav__item {
  position: relative;
}

.admin-shell .admin-mega-nav__button {
  cursor: pointer;
  list-style: none;
  border-radius: 9px;
  border: 1px solid var(--admin-border, #d9e3f2);
  background: color-mix(in oklab, var(--admin-panel-bg, #ffffff) 92%, transparent);
  color: var(--admin-title, #0b1220);
  min-height: 36px;
  padding: 0 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-shell .admin-mega-nav__button::-webkit-details-marker,
.admin-shell .admin-mega-nav__button::marker {
  display: none;
}

.admin-shell .admin-mega-nav__item-icon,
.admin-shell .admin-mega-nav__button-icon,
.admin-shell .admin-mega-nav__section-icon {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 8px;
  border: 1px solid var(--admin-line, #e2e8f0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--admin-surface-bg, #f8fbff) 88%, transparent);
  font-size: 0.74rem;
  color: var(--admin-muted, #5b6b80);
  flex: 0 0 auto;
}

.admin-shell .admin-mega-nav__button::after {
  margin-left: auto;
  content: "v";
  font-size: 0.72rem;
  color: var(--admin-muted, #5b6b80);
}

.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__button::after,
.admin-shell .admin-mega-nav__item.is-open .admin-mega-nav__button::after {
  transform: rotate(180deg);
}

.admin-shell .admin-mega-nav__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  width: min(54rem, calc(100vw - 2rem));
  display: none;
  grid-template-columns: repeat(2, minmax(16rem, 1fr));
  gap: 0.5rem;
  padding: 0.65rem;
  background: var(--admin-panel-bg, #ffffff);
  border: 1px solid var(--admin-border, #d9e3f2);
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
  z-index: 50;
}

.admin-shell .admin-mega-nav__item:hover .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item:focus-within .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item.is-open .admin-mega-nav__panel {
  display: grid;
}

.admin-shell .admin-mega-nav__panel > section {
  border-radius: 10px;
  border: 1px solid var(--admin-line, #e2e8f0);
  background: color-mix(in oklab, var(--admin-surface-bg, #f8fbff) 65%, transparent);
  min-width: 0;
  display: grid;
  gap: 0.2rem;
  padding: 0.45rem;
}

.admin-shell .admin-mega-nav__panel h2 {
  margin: 0.18rem 0 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--admin-muted, #5b6b80);
  text-transform: uppercase;
  font-weight: 800;
}

.admin-shell .admin-mega-nav__panel a {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  min-height: 2.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--admin-title, #0b1220);
  text-decoration: none;
  padding: 0.35rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-shell .admin-mega-nav__panel a:hover,
.admin-shell .admin-mega-nav__panel a:focus-visible,
.admin-shell .admin-mega-nav__panel a.active {
  border-color: color-mix(in oklab, var(--admin-border, #d9e3f2) 75%, transparent);
  background: color-mix(in oklab, var(--admin-surface-bg, #f8fbff) 78%, transparent);
}

.admin-shell .admin-mega-nav__panel a.active {
  font-weight: 800;
}

.admin-shell .admin-rail-title-icon {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 7px;
}

@media (max-width: 1200px) {
  .admin-shell .admin-mega-nav__panel {
    width: min(100%, calc(100vw - 2rem));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .admin-shell .admin-topbar {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0.78rem;
  }

  .admin-shell .admin-topbar .brand-mini,
  .admin-shell .admin-topbar .admin-mega-nav,
  .admin-shell .admin-topbar .user-meta {
    order: initial;
    width: 100%;
    justify-self: stretch;
  }

  .admin-shell .admin-topbar .admin-mega-nav {
    margin-top: 0.2rem;
    overflow: visible;
  }

  .admin-shell .admin-mega-nav__panel {
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
  }
}

@media (max-width: 1024px) {
  .admin-shell .admin-help-layout {
    grid-template-columns: 1fr;
  }
}

.admin-shell .admin-help-layout {
  display: grid;
  grid-template-columns: minmax(220px, 23rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-shell .admin-help-nav {
  border: 1px solid var(--admin-border, #d9e3f2);
  border-radius: 11px;
  background: var(--admin-panel-bg, #ffffff);
  padding: 0.85rem;
}

.admin-shell .admin-help-nav h2 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
}

.admin-shell .admin-help-search label {
  display: block;
  margin: 0 0 0.3rem;
  color: var(--admin-muted, #5b6b80);
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-shell .admin-help-search div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.admin-shell .admin-help-search input {
  width: 100%;
  min-height: 2.15rem;
}

.admin-shell .admin-help-results {
  margin-top: 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--admin-line, #e2e8f0);
  background: color-mix(in oklab, var(--admin-surface-bg, #f8fbff) 70%, transparent);
  padding: 0.5rem;
}

.admin-shell .admin-help-results strong,
.admin-shell .admin-help-results p {
  display: block;
  margin: 0 0 0.4rem;
}

.admin-shell .admin-help-results a {
  display: grid;
  gap: 0.1rem;
  padding: 0.38rem 0.45rem;
  border-radius: 8px;
  color: var(--admin-title, #0b1220);
  text-decoration: none;
  margin-bottom: 0.22rem;
}

.admin-shell .admin-help-results a span {
  color: var(--admin-muted, #5b6b80);
  font-size: 0.72rem;
}

.admin-shell .admin-help-nav nav a {
  display: block;
  border-radius: 8px;
  color: var(--admin-title, #0b1220);
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.58rem;
  margin: 0.25rem 0;
}

.admin-shell .admin-help-nav nav a.is-active {
  background: color-mix(in oklab, var(--admin-border, #d9e3f2) 60%, transparent);
}

.admin-shell .admin-help-content {
  border: 1px solid var(--admin-border, #d9e3f2);
  border-radius: 11px;
  background: var(--admin-panel-bg, #ffffff);
  padding: 1rem;
}

.admin-shell .admin-help-kicker {
  margin: 0 0 0.45rem;
  color: var(--admin-muted, #5b6b80);
  font-size: 0.76rem;
}

.admin-shell .admin-help-kicker strong {
  color: var(--admin-title, #0b1220);
}

.admin-shell .admin-help-content h3,
.admin-shell .admin-help-content h4 {
  margin: 0 0 0.38rem;
}

.admin-shell .admin-help-summary {
  margin-top: 0;
  color: var(--admin-muted, #5b6b80);
}

.admin-shell .admin-help-section {
  margin-top: 0.9rem;
}

.admin-shell .admin-help-feature-list {
  display: grid;
  gap: 0.5rem;
}

.admin-shell .admin-help-feature-list article {
  padding: 0.55rem 0.62rem;
  border: 1px dashed var(--admin-line, #e2e8f0);
  border-radius: 8px;
  color: var(--admin-title, #0b1220);
  background: color-mix(in oklab, var(--admin-surface-bg, #f8fbff) 60%, transparent);
}

.admin-shell .admin-help-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.admin-shell .admin-help-stat-strip article {
  border: 1px solid var(--admin-line, #e2e8f0);
  border-radius: 9px;
  background: var(--admin-surface-bg, #f8fbff);
  padding: 0.75rem;
}

.admin-shell .admin-help-stat-strip strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.78rem;
}

.admin-shell .admin-help-stat-strip span {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--admin-title, #0b1220);
}

/* Mantivo admin final: maquetacion tipo Cetapunt/Filament */
.admin-shell {
  --cet-accent: #ff8069;
  --cet-accent-dark: #d9432d;
  --cet-ink: #1f2933;
  --cet-muted: #6b7280;
  --cet-line: #e5e7eb;
  --cet-soft: #f8fafc;
  --cet-panel: #ffffff;
  --admin-panel-bg: #ffffff;
  --admin-surface-bg: #f8fafc;
  --admin-border: #e5e7eb;
  --admin-line: #edf0f3;
  --admin-title: #1f2933;
  --admin-muted: #6b7280;
  background: #f7f8fa;
  color: var(--cet-ink);
  font-size: 14px;
}

.admin-shell .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  min-height: 4rem;
  margin: 0;
  padding: 0.45rem 1.15rem;
  border-bottom: 1px solid var(--cet-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.admin-shell .brand-mini {
  min-width: 7.2rem;
  max-width: 10rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cet-ink);
  text-decoration: none;
}

.admin-shell .brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  border: 0;
  border-radius: 0.78rem;
  background: transparent;
  color: inherit;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.12);
  object-fit: contain;
}

.admin-shell .brand-mark::before {
  content: none;
  display: none;
}

.admin-shell .brand-mini h1 {
  margin: 0;
  color: #111827;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.05;
}

.admin-shell .brand-mini p {
  margin: 0.12rem 0 0;
  max-width: 9rem;
  color: var(--cet-muted);
  font-size: 0.58rem;
  font-weight: 650;
  line-height: 1.15;
}

.admin-shell .admin-mega-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow: visible;
  justify-self: start;
}

.admin-shell .admin-mega-nav__item {
  position: relative;
}

.admin-shell .admin-mega-nav__button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.625rem;
  background: transparent;
  color: var(--cet-ink);
  cursor: pointer;
  font-size: 0.925rem;
  font-weight: 850;
  list-style: none;
  padding: 0 0.85rem;
  white-space: nowrap;
}

.admin-shell .admin-mega-nav__button::-webkit-details-marker,
.admin-shell .admin-mega-nav__button::marker {
  display: none;
}

.admin-shell .admin-mega-nav__button::after {
  content: "v";
  margin-left: 0.1rem;
  color: #9ca3af;
  font-size: 0.75rem;
  line-height: 1;
}

.admin-shell .admin-mega-nav__item:hover .admin-mega-nav__button,
.admin-shell .admin-mega-nav__item:focus-within .admin-mega-nav__button,
.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__button,
.admin-shell .admin-mega-nav__item.is-active .admin-mega-nav__button {
  background: #f8fafc;
  outline: none;
}

.admin-shell .admin-mega-nav__button-icon,
.admin-shell .admin-mega-nav__section-icon,
.admin-shell .admin-mega-nav__item-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #a3acba;
  font-size: 0.78rem;
}

.admin-shell .admin-mega-nav__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 90;
  display: none;
  width: min(69rem, calc(100vw - 2rem));
  grid-template-columns: repeat(3, minmax(13rem, 1fr));
  gap: 0.5rem;
  border: 1px solid var(--cet-line);
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  padding: 0.65rem;
}

.admin-shell .admin-mega-nav__item:nth-child(2) .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel {
  width: min(22rem, calc(100vw - 2rem));
  grid-template-columns: 1fr;
}

.admin-shell .admin-mega-nav__item:hover .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item:focus-within .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__panel {
  display: grid;
}

.admin-shell .admin-mega-nav__panel > section {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  min-width: 0;
  border: 1px solid #f0f0f0;
  border-radius: 0.625rem;
  background: #ffffff;
  padding: 0.45rem;
}

.admin-shell .admin-mega-nav__panel h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.25rem;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.25rem 0.4rem;
  text-transform: uppercase;
}

.admin-shell .admin-mega-nav__panel a,
.admin-shell .admin-mega-nav__panel a:visited {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.25rem;
  margin-left: 1.35rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: var(--cet-ink);
  font-size: 0.925rem;
  font-weight: 760;
  padding: 0.4rem 0.5rem;
  text-decoration: none;
}

.admin-shell .admin-mega-nav__panel a:hover,
.admin-shell .admin-mega-nav__panel a:focus-visible,
.admin-shell .admin-mega-nav__panel a.active {
  border-color: #ffe1d9;
  background: #fff7f4;
  color: #111827;
  outline: none;
}

.admin-shell .user-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
  justify-self: end;
  color: #475569;
  font-size: 0.88rem;
  white-space: nowrap;
}

.admin-shell .theme-switch select,
.admin-shell .user-meta .btn,
.admin-shell .user-meta .btn-outline {
  width: auto;
  min-height: 2.1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #111827 !important;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
}

.admin-shell .badge,
.admin-shell .admin-mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  border-radius: 0.42rem;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0.18rem 0.55rem;
}

.admin-shell .admin-mode-badge-ops {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}

.admin-shell .admin-mode-badge-client {
  background: #ffedd5;
  border-color: #fed7aa;
  color: #1d4ed8;
}

.admin-shell .admin-layout {
  display: block;
  width: min(95%, 1800px);
  max-width: min(95%, 1800px);
  margin: 0 auto;
  padding: 0.9rem 0 2.5rem;
}

.admin-shell .admin-rail {
  display: none;
}

.admin-shell .admin-content {
  display: grid;
  gap: 0.75rem;
}

.admin-shell .admin-heading,
.admin-shell .admin-panel {
  border: 1px solid var(--cet-line);
  border-radius: 0.65rem;
  background: #ffffff;
  box-shadow: none;
}

.admin-shell .admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 4.25rem;
  padding: 0.8rem 1rem;
}

.admin-shell .admin-heading h2 {
  color: #111827;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.18;
}

.admin-shell .admin-heading p:not(.eyebrow),
.admin-shell .admin-panel p,
.admin-shell .small,
.admin-shell .hint {
  color: var(--cet-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.admin-shell .eyebrow {
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.admin-shell .admin-panel {
  padding: 0.9rem;
}

.admin-shell .admin-panel h3 {
  margin: 0 0 0.55rem;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 900;
}

.admin-shell .metric-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  border: 0;
  background: transparent;
}

.admin-shell .metric-row article {
  min-height: 5.2rem;
  border: 1px solid var(--cet-line);
  border-left: 0.22rem solid var(--cet-accent);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.65rem 0.72rem;
}

.admin-shell .metric-row span {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-shell .metric-row strong {
  color: #1f2937;
  font-size: 1.08rem;
  font-weight: 950;
}

.admin-shell .metric-row small {
  color: #6b7280;
  font-size: 0.72rem;
}

.admin-shell .filter-form,
.admin-shell .business-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 0.55rem;
  border: 1px solid #edf0f3;
  border-radius: 0.6rem;
  background: #fbfcfd;
  padding: 0.7rem;
}

.admin-shell .business-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-shell .filter-form label,
.admin-shell .business-form label {
  display: grid;
  gap: 0.22rem;
  color: #4b5563;
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-shell input,
.admin-shell select,
.admin-shell textarea {
  min-height: 2.15rem;
  border: 1px solid #d1d5db;
  border-radius: 0.48rem;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.82rem;
  padding: 0.36rem 0.55rem;
}

.admin-shell textarea {
  min-height: 4.2rem;
}

.admin-shell .btn,
.admin-shell button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 2.15rem;
  border: 1px solid var(--cet-accent-dark);
  border-radius: 0.5rem;
  background: var(--cet-accent);
  color: #111827;
  box-shadow: none;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1;
  padding: 0.42rem 0.72rem;
  text-decoration: none;
}

.admin-shell .btn:hover,
.admin-shell button:hover,
.admin-shell .btn:focus-visible,
.admin-shell button:focus-visible {
  border-color: var(--cet-accent-dark);
  background: #ff6f57;
  box-shadow: 0 0 0 3px rgba(232, 75, 42, 0.16);
  outline: none;
}

.admin-shell .btn-outline,
.admin-shell .btn-secondary,
.admin-shell a.btn-outline {
  border-color: #d1d5db;
  background: #ffffff;
  color: #374151 !important;
}

.admin-shell .btn-outline:hover,
.admin-shell .btn-outline:focus-visible {
  border-color: var(--cet-accent-dark);
  color: #111827 !important;
}

.admin-shell button.danger,
.admin-shell .inline-actions button.danger {
  border-color: #dc2626;
  background: #fee2e2;
  color: #991b1b;
}

.admin-shell .actions,
.admin-shell .admin-actions,
.admin-shell .compact-actions,
.admin-shell .inline-actions,
.admin-shell .document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.admin-shell .compact-actions {
  justify-content: flex-end;
  max-width: min(42rem, 100%);
}

.admin-shell .admin-mode-toolbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-shell .table-wrap {
  overflow: auto;
  border: 1px solid var(--cet-line);
  border-radius: 0.65rem;
  background: #ffffff;
  padding: 0;
}

.admin-shell table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-shell thead th,
.admin-shell th {
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0.55rem 0.55rem 0.45rem;
  text-align: left;
  text-transform: none;
}

.admin-shell td,
.admin-shell th {
  border-bottom: 1px solid #f1f5f9;
  padding: 0.6rem 0.55rem;
  vertical-align: middle;
}

.admin-shell tbody tr:hover td {
  background: #fafafa;
}

.admin-shell tbody tr:last-child td {
  border-bottom: 0;
}

.admin-shell .status-badge {
  min-height: 1.45rem;
  border-radius: 0.45rem;
  font-size: 0.72rem;
  font-weight: 820;
  padding: 0.12rem 0.45rem;
}

.admin-shell .status-active,
.admin-shell .status-paid,
.admin-shell .status-accepted {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.admin-shell .status-draft {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

.admin-shell .status-sent,
.admin-shell .status-issued {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.admin-shell .status-inactive,
.admin-shell .status-rejected,
.admin-shell .status-overdue,
.admin-shell .status-cancelled,
.admin-shell .status-void {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.admin-shell .admin-grid,
.admin-shell .admin-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .work-list {
  overflow: hidden;
  border: 1px solid var(--cet-line);
  border-radius: 0.55rem;
  background: #ffffff;
}

.admin-shell .work-list div {
  min-height: 2.75rem;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  padding: 0.5rem 0.6rem;
}

.admin-shell .work-list span {
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: none;
}

.admin-shell .work-list strong {
  color: #111827;
  font-size: 0.86rem;
  font-weight: 900;
}

.admin-shell .admin-empty-state,
.admin-shell .admin-example-grid {
  border: 1px dashed #d1d5db;
  border-radius: 0.6rem;
  background: #f8fafc;
  padding: 0.75rem;
}

.admin-shell .result-count {
  margin: 0.55rem 0;
}

html[data-theme="dark"] .admin-shell,
html[data-theme="dark"] .admin-shell .admin-topbar,
html[data-theme="dark"] .admin-shell .admin-panel,
html[data-theme="dark"] .admin-shell .admin-heading,
html[data-theme="dark"] .admin-shell .table-wrap,
html[data-theme="dark"] .admin-shell .admin-mega-nav__panel,
html[data-theme="dark"] .admin-shell .admin-mega-nav__panel > section,
html[data-theme="dark"] .admin-shell .work-list,
html[data-theme="dark"] .admin-shell .work-list div {
  background: #ffffff;
  color: var(--cet-ink);
}

@media (max-width: 1200px) {
  .admin-shell .admin-topbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-shell .brand-mini,
  .admin-shell .user-meta,
  .admin-shell .admin-mega-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-shell .user-meta {
    flex-wrap: wrap;
  }

  .admin-shell .admin-mega-nav {
    overflow-x: auto;
  }

  .admin-shell .metric-row,
  .admin-shell .admin-grid,
  .admin-shell .admin-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-shell .admin-layout {
    width: calc(100% - 1rem);
  }

  .admin-shell .admin-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-shell .metric-row,
  .admin-shell .admin-grid,
  .admin-shell .admin-feature-grid,
  .admin-shell .filter-form,
  .admin-shell .business-form {
    grid-template-columns: 1fr;
  }

  .admin-shell .admin-mega-nav__panel {
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    grid-template-columns: 1fr;
  }
}

/* Override final de cabecera: mantener una sola barra tipo Cetapunt en escritorio. */
@media (min-width: 1201px) {
  .admin-shell .admin-topbar {
    grid-template-columns: auto auto minmax(18rem, 1fr) !important;
    grid-template-rows: auto !important;
    align-content: center !important;
    row-gap: 0 !important;
    min-height: 4rem !important;
  }

  .admin-shell .admin-topbar::before,
  .admin-shell .admin-topbar::after {
    content: none !important;
    display: none !important;
  }

  .admin-shell .admin-topbar .brand-mini {
    justify-self: start !important;
  }

  .admin-shell .admin-topbar .admin-mega-nav {
    justify-self: start !important;
    width: auto !important;
    overflow: visible !important;
  }

  .admin-shell .admin-topbar .user-meta {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    width: auto !important;
  }

  .admin-shell .admin-mega-nav__item:first-child .admin-mega-nav__panel {
    width: min(76rem, calc(100vw - 2rem)) !important;
    grid-template-columns: repeat(3, minmax(13rem, 1fr)) !important;
  }

  .admin-shell .admin-mega-nav__item:nth-child(2) .admin-mega-nav__panel,
  .admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel {
    width: min(24rem, calc(100vw - 2rem)) !important;
    grid-template-columns: 1fr !important;
  }
}

/* Pasada final publica: venta de producto Mantivo */
.public-shell {
  --sales-ink: #111827;
  --sales-muted: #5b6472;
  --sales-line: #e5e7eb;
  --sales-soft: #f7f8fa;
  --sales-panel: #ffffff;
  --sales-accent: #2563eb;
  --sales-accent-strong: #1d4ed8;
  background: #f6f9ff;
  color: var(--sales-ink);
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.public-nav {
  padding: 0.7rem 0;
}

.public-nav nav a {
  color: #374151;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.52rem 0.72rem;
}

.public-nav nav a:hover,
.public-nav nav a:focus-visible,
.public-nav nav a.active {
  background: #eff6ff;
  color: #111827;
}

.public-nav a.btn-small {
  border-color: var(--sales-accent-strong);
  background: var(--sales-accent);
  color: #ffffff !important;
  font-weight: 900;
}

.public-shell .brand {
  color: #111827;
  font-weight: 950;
}

.public-shell .logo-inline {
  width: 38px;
  border-radius: 8px;
}

.public-shell .container {
  padding-top: 1rem;
}

.home-hero,
.hero-home {
  overflow: hidden;
  border: 1px solid var(--sales-line);
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.16), transparent 18rem),
    linear-gradient(105deg, #ffffff 0%, #ffffff 56%, #eef6ff 100%);
  color: var(--sales-ink);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

.home-hero {
  min-height: 520px;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
}

.home-hero h1,
.hero-home h1,
.public-section h1 {
  color: #0f172a;
  max-width: 13ch;
  font-size: clamp(2.55rem, 5vw, 5.2rem);
  line-height: 0.96;
}

.hero-home h1,
.public-section h1 {
  max-width: 15ch;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
}

.home-hero-copy p:not(.eyebrow),
.hero-copy p,
.public-section p {
  color: var(--sales-muted);
}

.home-hero-media {
  margin: 1.35rem;
  min-height: 390px;
  border: 1px solid #dbeafe;
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.screen-bar {
  border-bottom-color: #f1f5f9;
}

.screen-grid {
  background: #edf0f3;
}

.screen-grid div {
  background: #ffffff;
}

.screen-grid b {
  color: #111827;
  font-size: 1rem;
  line-height: 1.35;
}

.metrics-strip {
  overflow: hidden;
  border: 1px solid var(--sales-line);
  border-radius: 0.8rem;
  background: #ffffff;
}

.metrics-strip div {
  min-height: 104px;
  border-right-color: #edf0f3;
}

.metrics-strip strong {
  color: #111827;
  font-size: clamp(1.9rem, 3.2vw, 3.4rem);
}

.home-band,
.public-section,
.home-cta {
  border-color: var(--sales-line);
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: none;
}

.public-section {
  margin-top: 1.2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.section-heading {
  align-items: flex-start;
}

.section-heading :is(h2),
.home-cta h2 {
  max-width: 920px;
  color: #111827;
  font-size: clamp(1.55rem, 3vw, 3rem);
  line-height: 1.05;
}

.public-shell .eyebrow {
  color: #0f5fb8;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.public-shell .btn,
.public-shell button {
  border: 1px solid var(--sales-accent-strong);
  border-radius: 0.55rem;
  background: var(--sales-accent);
  color: #ffffff;
  font-weight: 900;
  box-shadow: none;
}

.public-shell .btn:hover,
.public-shell button:hover,
.public-shell .btn:focus-visible,
.public-shell button:focus-visible {
  background: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.public-shell .btn-outline {
  border-color: #d1d5db;
  background: #ffffff;
  color: #1f2937 !important;
}

.service-ledger {
  border-color: #edf0f3;
}

.service-ledger article {
  min-height: 210px;
  border-color: #edf0f3;
  background: #ffffff;
}

.service-ledger span,
.sales-card span,
.metric-row span,
.work-list span {
  letter-spacing: 0;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.pricing-card {
  position: relative;
  align-content: start;
  border-color: #e5e7eb;
  min-height: 100%;
}

.pricing-card.plan-highlight {
  border-color: #93c5fd;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.pricing-card.plan-highlight::before {
  content: "Recomendado";
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 950;
  padding: 0.18rem 0.5rem;
}

.price-tag {
  color: #111827;
  font-size: 1.55rem;
}

.price-monthly-note {
  width: fit-content;
  margin: -0.25rem 0 0;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a !important;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.24rem 0.52rem;
}

.sales-contact-hero {
  display: grid;
  min-height: 280px;
  align-items: end;
  background:
    linear-gradient(105deg, #ffffff 0%, #ffffff 58%, #eef6ff 100%);
}

.sales-contact-hero h1 {
  max-width: 18ch;
}

.contact-form.card,
.public-shell aside.card {
  border-color: var(--sales-line);
  box-shadow: none;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.grid-two-form input,
.grid-two-form select,
.grid-two-form textarea {
  border-radius: 0.5rem;
  border-color: #d1d5db;
  background: #ffffff;
}

.home-cta {
  background: linear-gradient(105deg, #ffffff 0%, #f0f7ff 100%);
}

.public-footer {
  color: #5b6472;
}

.admin-shell .admin-heading,
.admin-shell .admin-panel,
.admin-shell .metric-row article {
  border-color: #e5e7eb;
}

.admin-shell .admin-content {
  gap: 0.85rem;
}

@media (max-width: 1180px) {
  .pricing-grid,
  .home-hero,
  .hero-home {
    grid-template-columns: 1fr;
  }

  .home-hero h1,
  .hero-home h1,
  .public-section h1 {
    max-width: 16ch;
  }
}

@media (max-width: 760px) {
  .public-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-nav nav ul {
    gap: 0.35rem;
  }

  .home-hero h1,
  .hero-home h1,
  .public-section h1 {
    font-size: 2.35rem;
  }

  .pricing-grid,
  .metrics-strip,
  .grid-three,
  .grid-two {
    grid-template-columns: 1fr;
  }
}

/* Ayuda contextual, trazabilidad y microafinamiento profesional */
.admin-help-trigger {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.admin-help-trigger:hover,
.admin-help-trigger:focus-visible {
  border-color: #94a3b8;
  background: #f8fafc;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.22);
}

.context-help-card {
  grid-column: 2;
  margin: 0 1rem 1rem 0;
  border: 1px solid #dbe3ef;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
  padding: 1rem;
}

.context-help-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.85rem;
}

.context-help-card h2,
.context-help-card h3 {
  color: #111827;
  margin: 0;
}

.context-help-card p {
  color: #5b6472;
  margin: 0.35rem 0 0;
}

.context-help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.context-help-grid article {
  border: 1px solid #edf0f3;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.9rem;
}

.context-help-grid ol,
.context-help-grid ul {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
  color: #374151;
}

.context-help-grid li + li {
  margin-top: 0.45rem;
}

.action-log-table code {
  display: inline-block;
  max-width: 34rem;
  white-space: normal;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.45rem;
  padding: 0.22rem 0.4rem;
}

.audit-review-panel {
  display: grid;
  gap: 0.85rem;
}

.audit-review-total {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.62rem;
}

.audit-review-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.audit-review-card {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  min-height: 9rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #0ea5e9;
  border-radius: 0.62rem;
  background: #f8fafc;
}

.audit-review-card strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.22;
}

.audit-review-card p,
.audit-review-card small {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.audit-review-card a {
  align-self: end;
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 900;
}

.audit-review-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  text-transform: uppercase;
}

.audit-review-high {
  border-left-color: #ef4444;
}

.audit-review-medium {
  border-left-color: #2563eb;
}

.audit-review-low {
  border-left-color: #0ea5e9;
}

.audit-review-badge-high {
  background: #fee2e2;
  color: #991b1b;
}

.audit-review-badge-medium {
  background: #fef3c7;
  color: #92400e;
}

.audit-review-badge-low {
  background: #e0f2fe;
  color: #075985;
}

.audit-review-empty {
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.62rem;
  background: #f8fafc;
}

.referral-decision-panel {
  display: grid;
  gap: 0.85rem;
}

.referral-decision-total {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.62rem;
}

.referral-decision-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.referral-decision-card {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  min-height: 9rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #0ea5e9;
  border-radius: 0.62rem;
  background: #f8fafc;
}

.referral-decision-card strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.22;
}

.referral-decision-card p,
.referral-decision-card small {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.referral-decision-card a {
  align-self: end;
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 900;
}

.referral-decision-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  text-transform: uppercase;
}

.referral-decision-high {
  border-left-color: #ef4444;
}

.referral-decision-medium {
  border-left-color: #2563eb;
}

.referral-decision-low {
  border-left-color: #0ea5e9;
}

.referral-decision-badge-high {
  background: #fee2e2;
  color: #991b1b;
}

.referral-decision-badge-medium {
  background: #fef3c7;
  color: #92400e;
}

.referral-decision-badge-low {
  background: #e0f2fe;
  color: #075985;
}

.referral-decision-empty {
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.62rem;
  background: #f8fafc;
}

.admin-shell .referral-empty-state {
  display: grid;
  gap: 0.75rem;
}

.admin-shell .table-wrap .referral-empty-state {
  margin: 0.35rem 0;
}

.admin-shell .admin-panel,
.admin-shell .admin-heading,
.admin-shell .metric-row article,
.admin-shell .table-wrap {
  border-radius: 0.82rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-shell table th {
  font-size: 0.73rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
}

.admin-shell table td {
  vertical-align: top;
}

.admin-shell .btn,
.admin-shell button,
.admin-shell select,
.admin-shell input,
.admin-shell textarea {
  border-radius: 0.52rem;
}

@media (max-width: 1100px) {
  .context-help-card {
    grid-column: 1;
    margin: 0 1rem 1rem;
  }

  .context-help-grid {
    grid-template-columns: 1fr;
  }

  .context-help-card__head {
    flex-direction: column;
  }
}

/* Afinacion profesional inspirada en Cetapunts: microdetalle admin */
.admin-shell {
  --admin-surface: #ffffff;
  --admin-muted-surface: #f8fafc;
  --admin-line-soft: #e5e7eb;
  --admin-line-strong: #cbd5e1;
  --admin-text-strong: #111827;
  --admin-text-muted: #64748b;
}

.admin-topbar {
  min-height: 4.1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.brand-mini {
  border-radius: 0.85rem;
  padding: 0.4rem 0.55rem;
}

.brand-mini:hover,
.brand-mini:focus-visible {
  background: #f8fafc;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.65rem;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.12);
}

.admin-mega-nav__button {
  min-height: 2.55rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  padding: 0.48rem 0.72rem;
  color: #1f2937;
  font-weight: 850;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-mega-nav__item.is-active .admin-mega-nav__button,
.admin-mega-nav__button:hover,
.admin-mega-nav__button:focus-visible {
  border-color: #e2e8f0;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.045);
}

.admin-mega-nav__panel {
  border-color: #e5e7eb;
  border-radius: 0.9rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
}

.admin-mega-nav__panel section {
  border-radius: 0.72rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.admin-mega-nav__panel h2 {
  color: #64748b;
  font-size: 0.72rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.admin-mega-nav__panel a {
  border-radius: 0.6rem;
  padding: 0.54rem 0.62rem;
  color: #1f2937;
  font-weight: 780;
}

.admin-mega-nav__panel a:hover,
.admin-mega-nav__panel a:focus-visible,
.admin-mega-nav__panel a.active {
  background: #f1f5f9;
  color: #0f172a;
}

.admin-rail {
  border-right-color: #eef2f7;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.admin-rail-title {
  margin-top: 0.75rem;
  color: #64748b;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.admin-rail a {
  min-height: 2.45rem;
  border: 1px solid transparent;
  border-radius: 0.68rem;
  color: #334155;
  font-weight: 760;
}

.admin-rail a:hover,
.admin-rail a:focus-visible,
.admin-rail a.active {
  border-color: #e2e8f0;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.admin-content {
  max-width: 1480px;
}

.admin-heading {
  align-items: center;
  min-height: 8.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 58%, #f8fafc 100%);
}

.admin-heading h2 {
  letter-spacing: -0.035em;
}

.admin-heading p:not(.eyebrow),
.admin-panel p,
.small,
.hint {
  color: var(--admin-text-muted);
}

.metric-row article {
  min-height: 7.1rem;
  background: #ffffff;
}

.metric-row article span {
  color: #64748b;
  font-size: 0.72rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.metric-row article strong {
  letter-spacing: -0.035em;
}

.admin-panel {
  background: #ffffff;
}

.admin-panel h3 {
  color: #111827;
  letter-spacing: -0.015em;
}

.table-wrap {
  overflow: hidden;
  background: #ffffff;
}

.admin-shell table {
  border-collapse: separate;
  border-spacing: 0;
}

.admin-shell table th,
.admin-shell table td {
  border-bottom: 1px solid #edf2f7;
}

.admin-shell table tbody tr {
  transition: background 0.12s ease;
}

.admin-shell table tbody tr:hover {
  background: #fbfdff;
}

.admin-shell table tbody tr:last-child td {
  border-bottom: 0;
}

.status-badge {
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 850;
}

.inline-actions,
.document-actions,
.compact-actions,
.admin-actions {
  gap: 0.38rem;
}

.admin-shell .btn,
.admin-shell button {
  min-height: 2.18rem;
  padding: 0.48rem 0.72rem;
  font-weight: 850;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.admin-shell .btn:hover,
.admin-shell button:hover,
.admin-shell .btn:focus-visible,
.admin-shell button:focus-visible {
  transform: translateY(-1px);
}

.admin-shell input,
.admin-shell select,
.admin-shell textarea {
  min-height: 2.45rem;
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
}

.admin-shell input:focus,
.admin-shell select:focus,
.admin-shell textarea:focus {
  border-color: #94a3b8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.22);
}

.admin-mode-badge {
  border-radius: 0.5rem;
  font-weight: 850;
}

.admin-help-trigger {
  position: relative;
  min-width: 1.9rem;
  width: auto;
  padding: 0 0.62rem;
  border-radius: 0.62rem;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-help-popover {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 0.2rem;
  width: min(22rem, 84vw);
  padding: 0.78rem 0.86rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.78rem;
  background: #ffffff;
  color: #334155;
  text-align: left;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.admin-help-popover strong {
  color: #111827;
  font-size: 0.84rem;
}

.admin-help-popover span {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-help-trigger:hover .admin-help-popover,
.admin-help-trigger:focus-visible .admin-help-popover {
  opacity: 1;
  transform: translateY(0);
}

.context-help-card {
  border-radius: 0.95rem;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.065);
}

.context-help-grid article {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-help-layout {
  gap: 0.9rem;
}

.admin-help-nav,
.admin-help-content {
  border-radius: 0.9rem;
  border-color: #e5e7eb;
}

.admin-help-nav a {
  border-radius: 0.62rem;
}

.admin-help-nav a span {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.3;
}

.action-log-table td:first-child {
  white-space: nowrap;
  color: #475569;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .admin-heading {
    align-items: flex-start;
  }

  .audit-review-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .referral-decision-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-help-popover {
    right: auto;
    left: 0;
  }
}

/* Modulos por gremio */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.sector-card {
  display: grid;
  align-content: start;
  min-height: 220px;
  border-color: #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.sector-card h3 {
  max-width: 16rem;
  color: #111827;
  letter-spacing: -0.02em;
}

.sector-card .btn {
  align-self: end;
  width: fit-content;
  margin-top: 0.4rem;
}

.sector-search-band {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: #ffffff;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.sector-search-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(190px, 0.72fr) auto auto;
  align-items: end;
  gap: 0.62rem;
}

.sector-search-form label {
  display: grid;
  gap: 0.32rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
}

.sector-search-form input,
.sector-search-form select {
  min-width: 0;
  min-height: 2.7rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.7rem;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 0.72rem;
}

.sector-search-form button,
.sector-search-form .btn {
  min-height: 2.7rem;
  white-space: nowrap;
}

.sector-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sector-filter-chips a {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  padding: 0.42rem 0.72rem;
}

.sector-filter-chips a:hover,
.sector-filter-chips a:focus-visible,
.sector-filter-chips a.is-active {
  border-color: #ff7a59;
  background: #fff4ef;
  color: #9f321f;
  outline: none;
}

.sector-result-summary {
  margin: 0;
  color: #536078;
  font-size: 0.9rem;
  font-weight: 800;
}

.sector-empty-state {
  margin-top: 0.9rem;
}

.sector-hero-card {
  display: grid;
  align-content: center;
  gap: 0.6rem;
  border: 1px solid #ffe0d8;
  border-radius: 0.85rem;
  background: #ffffff;
  padding: clamp(1rem, 2vw, 2rem);
}

.sector-hero-card strong {
  color: #111827;
  font-size: clamp(1.3rem, 2vw, 2.1rem);
  letter-spacing: -0.03em;
}

.sector-hero-card span {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
}

.sector-summary-card {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.public-sector-selling-points {
  display: grid;
  gap: 0.65rem;
}

.public-sector-selling-points article {
  padding: 0.78rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.72rem;
  background: #ffffff;
}

.public-sector-selling-points strong {
  display: block;
  color: #111827;
  font-size: 0.84rem;
}

.public-sector-selling-points ul {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
  color: #5b6472;
  font-size: 0.86rem;
}

.sector-proof-band {
  border: 1px solid #e7ebf0;
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 128, 105, 0.12), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 62%, #fff2ee 100%);
}

.sector-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.sector-proof-grid article {
  min-height: 220px;
  padding: 1.1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.sector-proof-grid span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.52rem;
  border: 1px solid #ffd5ca;
  border-radius: 999px;
  background: #fff7f4;
  color: #bd3e2b;
  font-size: 0.72rem;
  font-weight: 900;
}

.sector-proof-grid h3 {
  margin: 0;
  color: #111827;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.sector-proof-grid p {
  margin-top: 0.55rem;
  color: #5b6472;
}

@media (max-width: 1180px) {
  .sector-grid,
  .sector-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sector-grid,
  .sector-proof-grid {
    grid-template-columns: 1fr;
  }

  .sector-search-form {
    grid-template-columns: 1fr;
  }

  .sector-search-form button,
  .sector-search-form .btn {
    width: 100%;
  }
}

/* Guia sectorial en presupuestos */
.sector-quote-guidance {
  margin-top: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  background: #fbfdff;
  padding: 0.95rem;
}

.sector-quote-guidance h4 {
  margin: 0 0 0.75rem;
  color: #111827;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.sector-quote-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.sector-quote-grid article {
  border: 1px solid #edf2f7;
  border-radius: 0.68rem;
  background: #ffffff;
  padding: 0.7rem;
}

.sector-quote-grid strong {
  display: block;
  color: #111827;
  font-size: 0.82rem;
  line-height: 1.2;
}

.sector-quote-grid ul {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
  color: #64748b;
  font-size: 0.78rem;
}

@media (max-width: 1180px) {
  .sector-quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sector-quote-grid {
    grid-template-columns: 1fr;
  }
}

/* Campos sectoriales persistidos */
.sector-fields-editor {
  grid-column: 1 / -1;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #fbfdff;
  padding: 0.95rem;
}

.sector-fields-editor h4 {
  margin: 0.15rem 0 0;
  color: #111827;
}

.sector-fields-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  margin-top: 0.8rem;
  border: 1px solid #edf2f7;
  border-radius: 0.72rem;
  background: #ffffff;
  padding: 0.8rem;
}

.sector-fields-group[hidden] {
  display: none !important;
}

.sector-fields-group strong {
  grid-column: 1 / -1;
  color: #111827;
}

.document-sector-block {
  margin: 1rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  background: #fbfdff;
  padding: 1rem;
}

.document-sector-block > span {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.document-sector-block h3 {
  margin: 0.25rem 0 0.7rem;
  color: #111827;
}

.document-sector-block dl {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 0.45rem 0.8rem;
  margin: 0;
}

.document-sector-block dt {
  color: #64748b;
  font-weight: 800;
}

.document-sector-block dd {
  margin: 0;
  color: #111827;
}

.document-verifactu-block {
  margin: 1rem 0 0;
  border: 1px solid #bae6fd;
  border-radius: 0.8rem;
  background: #f0f9ff;
  padding: 1rem;
  color: #0f172a;
}

.document-verifactu-block > span {
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.document-verifactu-block h3 {
  margin: 0.25rem 0 0.45rem;
  color: #0f172a;
}

.document-verifactu-block p {
  margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
}

.document-verifactu-block code,
.admin-shell code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78em;
}

.admin-shell .verifactu-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 1rem;
  align-items: start;
  border-color: #bae6fd;
  background: color-mix(in oklab, var(--admin-panel-bg) 88%, #e0f2fe 12%);
}

.admin-shell .verifactu-warning {
  border-color: #fed7aa;
  background: color-mix(in oklab, var(--admin-panel-bg) 88%, #fff7ed 12%);
}

.admin-shell .verifactu-inline-panel .badge,
.admin-shell .verifactu-notice li {
  white-space: normal;
}

.admin-shell .verifactu-readiness-panel {
  display: grid;
  gap: 0.85rem;
}

.admin-shell .verifactu-readiness-total {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.62rem;
}

.admin-shell .verifactu-readiness-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .verifactu-readiness-card {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  min-height: 10rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #0ea5e9;
  border-radius: 0.62rem;
  background: #f8fafc;
}

.admin-shell .verifactu-readiness-card strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.22;
}

.admin-shell .verifactu-readiness-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.admin-shell .verifactu-readiness-card a {
  align-self: end;
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-shell .verifactu-readiness-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  text-transform: uppercase;
}

.admin-shell .verifactu-readiness-high {
  border-left-color: #ef4444;
}

.admin-shell .verifactu-readiness-medium {
  border-left-color: #2563eb;
}

.admin-shell .verifactu-readiness-low {
  border-left-color: #0ea5e9;
}

.admin-shell .verifactu-readiness-badge-high {
  background: #fee2e2;
  color: #991b1b;
}

.admin-shell .verifactu-readiness-badge-medium {
  background: #fef3c7;
  color: #92400e;
}

.admin-shell .verifactu-readiness-badge-low {
  background: #e0f2fe;
  color: #075985;
}

@media (max-width: 1100px) {
  .admin-shell .verifactu-readiness-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sector-fields-group,
  .document-sector-block dl,
  .admin-shell .verifactu-notice,
  .admin-shell .verifactu-readiness-list {
    grid-template-columns: 1fr;
  }
}

/* Partes de trabajo por gremio */
.work-order-checklist {
  margin: 0;
  padding-left: 1rem;
  color: #475569;
  font-size: 0.78rem;
}

.admin-shell .work-order-checklist-progress {
  color: var(--admin-muted);
  font-size: 0.8rem;
  font-weight: 900;
  margin: 0 0 0.4rem;
}

.admin-shell .work-order-checklist {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  padding-left: 0;
}

.admin-shell .work-order-checklist li {
  align-items: center;
  border: 1px solid var(--admin-border);
  border-radius: 0.65rem;
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
  padding: 0.4rem 0.45rem;
}

.admin-shell .work-order-checklist li.is-done {
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.admin-shell .work-order-checklist li.is-done span {
  color: #166534;
  text-decoration: line-through;
}

.admin-shell .work-checklist-toggle-form {
  margin: 0;
}

.admin-shell .work-checklist-toggle-form button {
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
}

html[data-theme="dark"] .admin-shell .work-order-checklist li.is-done {
  background: rgba(22, 101, 52, 0.18);
  border-color: rgba(74, 222, 128, 0.25);
}

.status-planned { background: #f8fafc; color: #334155; }
.status-in_progress { background: #eff6ff; color: #1d4ed8; }
.status-done { background: #ecfdf5; color: #047857; }
.status-blocked { background: #fff7ed; color: #c2410c; }
.status-cancelled { background: #fef2f2; color: #b91c1c; }

.sector-hero-card-premium {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.88)),
    radial-gradient(circle at 90% 0%, rgba(34, 211, 238, 0.32), transparent 18rem);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-strong);
}

.sector-hero-card-premium small {
  color: #bae6fd;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sector-hero-card-premium span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e0f2fe;
}

.sector-fit-band,
.sector-journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.sector-fit-card,
.sector-journey article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.sector-fit-card {
  min-height: 170px;
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.sector-fit-card span,
.sector-journey span {
  width: fit-content;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.58rem;
  text-transform: uppercase;
}

.sector-fit-card strong,
.sector-journey h3 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.sector-fit-card p,
.sector-journey p,
.sector-summary-kicker {
  color: var(--muted);
}

.sector-journey {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sector-journey article {
  display: grid;
  gap: 0.5rem;
  border-top: 4px solid #22d3ee;
}

.sector-page-cta {
  background:
    linear-gradient(135deg, #0f172a, #12314f 58%, #155e75),
    radial-gradient(circle at 85% 20%, rgba(250, 204, 21, 0.24), transparent 18rem);
  color: #f8fafc;
  border: 0;
  box-shadow: var(--shadow-strong);
}

.sector-page-cta .eyebrow,
.sector-page-cta h2 {
  color: #f8fafc;
}

/* Module request inbox contract: public form and admin queue must remain readable and non-overlapping. */
.module-request-hero .hero-home {
  align-items: stretch;
}

.module-request-signal-card {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.module-request-signal-card span,
.sector-hero-card span {
  min-height: 38px;
}

.module-request-public-band {
  background: #f7fbff;
  border: 1px solid #dbeafe;
}

.module-request-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.module-request-route-grid article {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #ffffff;
}

.module-request-route-grid span {
  color: #0e7490;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.module-request-route-grid h3,
.module-request-route-grid p {
  margin: 0;
}

.module-request-route-grid .btn {
  width: fit-content;
}

.module-request-form {
  scroll-margin-top: 7rem;
}

.compact-module-request-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.module-request-form select,
.module-request-form input,
.module-request-form textarea {
  min-width: 0;
}

.module-request-side-card {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.module-request-known {
  display: grid;
  gap: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.module-request-known > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.module-request-known a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.3rem 0.55rem;
  border: 1px solid #d9e2ef;
  border-radius: 6px;
  color: #1f2937;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
}

.module-request-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.module-request-priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.module-request-priority-card {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid var(--admin-border, #d9e3f2);
  border-radius: 10px;
  background: var(--admin-surface-bg, #f8fbff);
}

.module-request-priority-card h4,
.module-request-priority-card p {
  margin: 0;
}

.module-request-priority-card p {
  color: var(--admin-muted, #5b6b80);
}

.module-request-demand-panel {
  display: grid;
  gap: 0.85rem;
}

.module-request-demand-total {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  min-height: 34px;
  padding: 0.28rem 0.66rem;
  border-radius: 999px;
  background: #ecfeff;
  color: #155e75;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.module-request-demand-grid,
.module-request-candidate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.module-request-demand-card,
.module-request-candidate-card {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  min-height: 9rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #16a34a;
  border-radius: 0.7rem;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.055);
}

.module-request-demand-card span,
.module-request-candidate-card span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-request-demand-card strong,
.module-request-candidate-card strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.2;
}

.module-request-demand-card p,
.module-request-demand-card small,
.module-request-candidate-card p,
.module-request-candidate-card small {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.module-request-demand-card small,
.module-request-candidate-card small {
  color: #475569;
}

.module-request-candidate-visual-brief {
  display: grid;
  gap: 0.22rem;
  padding: 0.64rem;
  border: 1px solid #dbeafe;
  border-radius: 0.6rem;
  background: #f8fbff;
}

.module-request-candidate-visual-brief span {
  color: #1e3a8a;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-request-candidate-visual-brief p {
  margin: 0;
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.42;
}

.module-request-candidate-shortlist {
  display: grid;
  gap: 0.24rem;
  padding: 0.66rem;
  border: 1px solid #c7d2fe;
  border-radius: 0.6rem;
  background: #eef2ff;
}

.module-request-candidate-shortlist span {
  color: #3730a3;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-request-candidate-shortlist p,
.module-request-candidate-shortlist small {
  margin: 0;
  color: #312e81;
  font-size: 0.8rem;
  line-height: 1.42;
}

.module-request-candidate-validation {
  display: grid;
  gap: 0.24rem;
  padding: 0.66rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  background: #f8fafc;
}

.module-request-candidate-validation span {
  color: #334155;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-request-candidate-validation strong {
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.22;
}

.module-request-candidate-validation p,
.module-request-candidate-validation small {
  margin: 0;
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.42;
}

.module-request-candidate-validation-ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.module-request-candidate-validation-high {
  border-color: #fed7aa;
  background: #fff7ed;
}

.module-request-candidate-validation-medium {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.module-request-candidate-validation-watch {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.module-request-candidate-plan {
  display: grid;
  gap: 0.24rem;
  padding: 0.66rem;
  border: 1px solid #bae6fd;
  border-radius: 0.6rem;
  background: #f0f9ff;
}

.module-request-candidate-plan span {
  color: #075985;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-request-candidate-plan p,
.module-request-candidate-plan small {
  margin: 0;
  color: #164e63;
  font-size: 0.8rem;
  line-height: 1.42;
}

.module-request-candidate-blueprint {
  display: grid;
  gap: 0.24rem;
  padding: 0.66rem;
  border: 1px solid #ddd6fe;
  border-radius: 0.6rem;
  background: #f5f3ff;
}

.module-request-candidate-blueprint span {
  color: #5b21b6;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-request-candidate-blueprint strong {
  color: #2e1065;
  font-size: 0.88rem;
  line-height: 1.22;
}

.module-request-candidate-blueprint p,
.module-request-candidate-blueprint small {
  margin: 0;
  color: #4c1d95;
  font-size: 0.8rem;
  line-height: 1.42;
}

.module-request-candidate-assets {
  display: grid;
  gap: 0.28rem;
  padding: 0.66rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.6rem;
  background: #eff6ff;
}

.module-request-candidate-assets span {
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-request-candidate-assets strong {
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.22;
}

.module-request-candidate-assets small,
.module-request-candidate-assets a {
  margin: 0;
  color: #1e3a8a;
  font-size: 0.8rem;
  line-height: 1.42;
}

.module-request-candidate-assets a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.module-request-candidate-prepublication {
  display: grid;
  gap: 0.28rem;
  padding: 0.66rem;
  border: 1px solid #fed7aa;
  border-radius: 0.6rem;
  background: #fff7ed;
}

.module-request-candidate-prepublication span {
  color: #9a3412;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-request-candidate-prepublication strong {
  color: #431407;
  font-size: 0.88rem;
  line-height: 1.22;
}

.module-request-candidate-prepublication small {
  margin: 0;
  color: #7c2d12;
  font-size: 0.8rem;
  line-height: 1.42;
}

.module-request-demand-decision {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.25rem;
  padding: 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  background: #f8fafc;
}

.module-request-demand-decision span {
  color: #334155;
  font-size: 0.7rem;
}

.module-request-demand-decision strong {
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.22;
}

.module-request-demand-decision p {
  color: #334155;
  font-size: 0.8rem;
}

.module-request-demand-decision-high {
  border-color: #fecaca;
  background: #fff7ed;
}

.module-request-demand-decision-medium,
.module-request-demand-decision-planned {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.module-request-demand-decision-existing {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.module-request-demand-decision-candidate {
  border-color: #ddd6fe;
  background: #f5f3ff;
}

.module-request-demand-high {
  border-left-color: #ef4444;
}

.module-request-demand-medium {
  border-left-color: #2563eb;
}

.module-request-demand-ok {
  border-left-color: #16a34a;
}

.module-request-candidate-alta,
.module-request-candidate-media-alta {
  border-left-color: #7c3aed;
}

.module-request-candidate-media {
  border-left-color: #2563eb;
}

.module-request-candidate-observacion {
  border-left-color: #64748b;
}

html[data-theme="dark"] .admin-shell .module-request-demand-card,
html[data-theme="dark"] .admin-shell .module-request-candidate-card {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .module-request-demand-card strong,
html[data-theme="dark"] .admin-shell .module-request-candidate-card strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .module-request-demand-card p,
html[data-theme="dark"] .admin-shell .module-request-demand-card small,
html[data-theme="dark"] .admin-shell .module-request-candidate-card p,
html[data-theme="dark"] .admin-shell .module-request-candidate-card small {
  color: #94a3b8;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-visual-brief {
  border-color: #38517a;
  background: #111c31;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-visual-brief span {
  color: #bfdbfe;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-visual-brief p {
  color: #dbeafe;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-shortlist {
  border-color: #4338ca;
  background: #171b3a;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-shortlist span {
  color: #c7d2fe;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-shortlist p,
html[data-theme="dark"] .admin-shell .module-request-candidate-shortlist small {
  color: #e0e7ff;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-validation {
  border-color: #334155;
  background: #111c31;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-validation span,
html[data-theme="dark"] .admin-shell .module-request-candidate-validation p,
html[data-theme="dark"] .admin-shell .module-request-candidate-validation small {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-validation strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-plan {
  border-color: #155e75;
  background: #0d1f2a;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-plan span {
  color: #67e8f9;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-plan p,
html[data-theme="dark"] .admin-shell .module-request-candidate-plan small {
  color: #cffafe;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-blueprint {
  border-color: #5b21b6;
  background: #1e1635;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-blueprint span {
  color: #ddd6fe;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-blueprint strong {
  color: #f5f3ff;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-blueprint p,
html[data-theme="dark"] .admin-shell .module-request-candidate-blueprint small {
  color: #ddd6fe;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-assets {
  border-color: #2563eb;
  background: #12203d;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-assets span {
  color: #bfdbfe;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-assets strong {
  color: #eff6ff;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-assets small,
html[data-theme="dark"] .admin-shell .module-request-candidate-assets a {
  color: #dbeafe;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-prepublication {
  border-color: #c2410c;
  background: #30170b;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-prepublication span {
  color: #fed7aa;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-prepublication strong {
  color: #fff7ed;
}

html[data-theme="dark"] .admin-shell .module-request-candidate-prepublication small {
  color: #ffedd5;
}

html[data-theme="dark"] .admin-shell .module-request-demand-decision {
  border-color: #334155;
  background: #111c31;
}

html[data-theme="dark"] .admin-shell .module-request-demand-decision strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .module-request-demand-decision span,
html[data-theme="dark"] .admin-shell .module-request-demand-decision p {
  color: #cbd5e1;
}

.module-request-sla-panel {
  display: grid;
  gap: 0.85rem;
}

.module-request-sla-total {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.62rem;
}

.module-request-sla-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.module-request-sla-card {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  min-height: 9rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #0ea5e9;
  border-radius: 0.62rem;
  background: #f8fafc;
}

.module-request-sla-card span,
.module-request-sla-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  text-transform: uppercase;
}

.module-request-sla-card strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.22;
}

.module-request-sla-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.module-request-sla-card a {
  align-self: end;
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 900;
}

.module-request-sla-high {
  border-left-color: #ef4444;
}

.module-request-sla-medium {
  border-left-color: #2563eb;
}

.module-request-sla-low {
  border-left-color: #0ea5e9;
}

.module-request-sla-high span,
.module-request-sla-badge-high {
  background: #fee2e2;
  color: #991b1b;
}

.module-request-sla-medium span,
.module-request-sla-badge-medium {
  background: #fef3c7;
  color: #92400e;
}

.module-request-sla-low span,
.module-request-sla-badge-low {
  background: #e0f2fe;
  color: #075985;
}

.module-request-sla-badge-ok {
  background: #dcfce7;
  color: #166534;
}

.module-request-sla-empty {
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.62rem;
  background: #f8fafc;
}

.module-request-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.module-request-empty-actions .btn {
  min-height: 2.5rem;
}

.module-request-score {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-weight: 800;
  white-space: nowrap;
}

.module-request-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 800;
  white-space: nowrap;
}

.module-request-table td {
  vertical-align: top;
}

.module-request-table td small {
  display: block;
  margin-top: 0.3rem;
  color: var(--admin-muted, #5b6b80);
}

.module-request-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  min-width: min(360px, 100%);
}

.module-request-actions form {
  margin: 0;
}

.module-request-actions .btn,
.module-request-actions button {
  width: 100%;
  min-height: 36px;
  padding: 0.35rem 0.45rem;
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: normal;
}

.btn.danger,
button.danger {
  border-color: #fecaca !important;
  background: #fff1f2 !important;
  color: #9f1239 !important;
}

@media (max-width: 980px) {
  .module-request-benefit-grid,
  .module-request-route-grid,
  .module-request-priority-grid,
  .module-request-demand-grid,
  .module-request-sla-list,
  .module-request-metrics {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 640px) {
  .module-request-benefit-grid,
  .module-request-route-grid,
  .module-request-priority-grid,
  .module-request-demand-grid,
  .module-request-sla-list,
  .module-request-metrics,
  .compact-module-request-fields,
  .module-request-actions {
    grid-template-columns: 1fr !important;
  }

  .module-request-known a {
    width: 100%;
  }
}

.sector-next-step-band {
  display: grid;
  gap: 1rem;
  border: 1px solid #dbe3ee;
  background: #ffffff;
}

.sector-next-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.sector-next-step-grid a {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  min-height: 9rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sector-next-step-grid a:hover,
.sector-next-step-grid a:focus-visible {
  border-color: #0f766e;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.sector-next-step-grid span {
  width: max-content;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.35rem 0.52rem;
}

.sector-next-step-grid strong {
  color: #111827;
  font-size: 1.02rem;
  line-height: 1.2;
}

.sector-next-step-grid small {
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.42;
}

.sector-summary-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0;
}

.sector-summary-proof span {
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #f0f9ff;
  color: #075985;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.34rem 0.62rem;
}

.plan-sector-selector {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, #ffffff, #f8fafc),
    radial-gradient(circle at 0 0, rgba(255, 123, 99, 0.12), transparent 22rem);
  padding: 1.2rem;
}

.plan-trade-shortcuts {
  border: 1px solid rgba(234, 88, 12, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.9)),
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.12), transparent 18rem);
}

.plan-trade-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.plan-trade-shortcut-card {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-width: 0;
  min-height: 21rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-top: 0.3rem solid #0ea5e9;
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.plan-trade-shortcut-card.is-recommended {
  border-top-color: #ff8069;
  background: #fffaf7;
}

.plan-trade-request-card {
  border-top-color: #111827;
  background: #f8fafc;
}

.plan-trade-shortcut-card span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-trade-shortcut-card h3,
.plan-trade-shortcut-card p {
  margin: 0;
}

.plan-trade-shortcut-card h3 {
  color: #111827;
  font-size: 1.02rem;
  line-height: 1.18;
}

.plan-trade-shortcut-card p,
.plan-trade-shortcut-card dd {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.42;
}

.plan-trade-shortcut-card dl {
  display: grid;
  gap: 0.48rem;
  margin: 0;
}

.plan-trade-shortcut-card dl div {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.48rem;
  border-top: 1px solid #e2e8f0;
}

.plan-trade-shortcut-card dt {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-trade-shortcut-card dd {
  margin: 0;
}

.plan-trade-shortcut-actions {
  display: grid;
  gap: 0.45rem;
  align-self: end;
}

.plan-trade-shortcut-actions .btn,
.plan-trade-shortcut-actions .btn-outline {
  width: 100%;
}

.plan-sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.plan-sector-grid article {
  display: grid;
  gap: 0.55rem;
  min-height: 15rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.plan-sector-grid span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-sector-grid h3 {
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.2;
}

.plan-sector-grid p {
  color: var(--muted);
  font-size: 0.94rem;
}

.plan-sector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-self: end;
}

.plan-sector-actions .btn,
.plan-sector-actions .btn-outline {
  width: auto;
}

@media (max-width: 1000px) {
  .plan-trade-shortcuts-grid,
  .plan-sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .plan-trade-shortcuts-grid,
  .plan-sector-grid {
    grid-template-columns: 1fr;
  }

  .plan-sector-grid {
    min-height: 0;
  }
}

.demo-sector-hero {
  position: relative;
}

.home-demo-band {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, #ffffff, #f8fafc),
    radial-gradient(circle at 100% 0, rgba(34, 211, 238, 0.16), transparent 22rem);
  padding: 1.2rem;
}

.home-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

/* Professional admin refinement pass: density, readability and table ergonomics. */
.admin-shell {
  --admin-focus: rgba(232, 75, 42, 0.16);
  --admin-row-hover: #fffaf8;
  --admin-row-alt: #fcfcfd;
}

.admin-shell .admin-layout {
  align-items: start;
}

.admin-shell .admin-content {
  min-width: 0;
}

.admin-shell .admin-heading {
  padding: 1rem 1.15rem;
  gap: 0.8rem;
}

.admin-shell .admin-heading h2 {
  max-width: 58rem;
  line-height: 1.16;
}

.admin-shell .admin-panel {
  padding: 1rem;
}

.admin-shell .admin-panel + .admin-panel,
.admin-shell .metric-row + .admin-panel,
.admin-shell .admin-heading + .admin-panel {
  margin-top: 0.85rem;
}

.admin-shell .metric-row {
  gap: 0.65rem;
}

.admin-shell .metric-row article {
  min-height: 5.8rem;
  padding: 0.85rem;
}

.admin-shell .metric-row strong {
  font-variant-numeric: tabular-nums;
}

.admin-shell .filter-form,
.admin-shell .business-form {
  gap: 0.65rem;
  padding: 0.8rem;
  background: #fbfcfe;
}

.admin-shell .filter-form label,
.admin-shell .business-form label {
  min-width: 0;
}

.admin-shell input,
.admin-shell select,
.admin-shell textarea {
  min-width: 0;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.admin-shell input:focus-visible,
.admin-shell select:focus-visible,
.admin-shell textarea:focus-visible {
  box-shadow: 0 0 0 3px var(--admin-focus);
}

.admin-shell .table-wrap {
  overflow: auto;
  max-width: 100%;
}

.admin-shell table {
  font-size: 0.9rem;
}

.admin-shell thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}

.admin-shell tbody tr:nth-child(even) td {
  background: var(--admin-row-alt);
}

.admin-shell tbody tr:hover td,
.admin-shell tbody tr:hover {
  background: var(--admin-row-hover);
}

.admin-shell table td {
  line-height: 1.35;
}

.admin-shell table td:first-child {
  font-weight: 760;
  color: #111827;
}

.admin-shell .inline-actions,
.admin-shell .document-actions,
.admin-shell .compact-actions,
.admin-shell .admin-actions {
  align-items: center;
  row-gap: 0.32rem;
}

.admin-shell .document-actions form,
.admin-shell .inline-actions form {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.admin-shell .inline-actions button,
.admin-shell .document-actions button,
.admin-shell .inline-actions .btn,
.admin-shell .document-actions .btn {
  min-width: auto;
  white-space: nowrap;
}

.admin-shell .status-badge,
.admin-shell .badge,
.admin-shell .admin-mode-badge {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-shell .admin-help-trigger {
  min-width: 2.1rem;
  min-height: 2.1rem;
}

@media (max-width: 760px) {
  .admin-shell .admin-panel {
    padding: 0.85rem;
  }

  .admin-shell table {
    font-size: 0.84rem;
  }

  .admin-shell .document-actions,
  .admin-shell .inline-actions {
    align-items: stretch;
  }
}

.module-priority-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.module-priority-strip article {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #ffffff;
}

.module-priority-strip article > div {
  padding: 0.85rem;
}

.module-priority-visual {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #e5e7eb;
}

.module-priority-strip strong {
  display: block;
  color: #111827;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.module-priority-strip span {
  color: #64748b;
  font-size: 0.82rem;
}

html[data-theme="dark"] .admin-shell .module-priority-strip article {
  border-color: rgba(148, 163, 184, 0.3);
  background: #111827;
}

html[data-theme="dark"] .admin-shell .module-priority-strip strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .module-priority-strip span {
  color: #cbd5e1;
}

.module-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.module-catalog-card {
  display: grid;
  gap: 0.85rem;
}

.module-catalog-card header {
  display: grid;
  gap: 0.35rem;
}

.module-catalog-card header h3 {
  font-size: 1.12rem;
}

.module-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.module-priority-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.28rem 0.58rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.module-priority-high {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.module-priority-medium {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.module-priority-low {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

.module-signal-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
}

.module-signal-grid span {
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.5rem;
  text-align: center;
}

.module-signal-grid strong {
  display: block;
  color: #111827;
  font-size: 1rem;
}

.module-catalog-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.module-catalog-columns section {
  min-width: 0;
}

.module-catalog-columns h4 {
  margin: 0 0 0.35rem;
  color: #374151;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.module-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media (max-width: 1200px) {
  .module-catalog-grid,
  .module-priority-strip {
    grid-template-columns: 1fr;
  }

  .module-catalog-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .module-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-shell .lead-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-shell .lead-source-panel {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.72rem;
  background: #ffffff;
}

.admin-shell .lead-source-card {
  display: grid;
  min-height: 5.5rem;
  gap: 0.3rem;
  padding: 0.85rem;
  border: 1px solid var(--admin-border);
  border-left: 0.22rem solid var(--cet-accent);
  border-radius: 0.7rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.admin-shell .lead-source-card span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.admin-shell .lead-source-card strong {
  color: #111827;
  font-size: 1.35rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.admin-shell .lead-source-card small {
  color: var(--admin-text-muted);
}

.admin-shell .lead-source-card:hover {
  border-color: #b8c4d6;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.admin-shell .lead-source-card-active {
  border-color: #2563eb;
  border-left-color: #2563eb;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28);
}

.admin-shell .lead-source-card-active small,
.admin-shell .lead-source-card-active span {
  color: #92400e;
}

.admin-shell .lead-priority-panel {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.admin-shell .lead-priority-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .lead-priority-card {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  min-height: 9.8rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #0ea5e9;
  border-radius: 0.72rem;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.055);
}

.admin-shell .lead-priority-card span,
.admin-shell .lead-score-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  text-transform: uppercase;
}

.admin-shell .lead-priority-card strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.22;
}

.admin-shell .lead-priority-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.admin-shell .lead-priority-card a {
  align-self: end;
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-shell .lead-priority-high {
  border-left-color: #ef4444;
}

.admin-shell .lead-priority-medium {
  border-left-color: #2563eb;
}

.admin-shell .lead-priority-low {
  border-left-color: #0ea5e9;
}

.admin-shell .lead-priority-high span,
.admin-shell .lead-score-high {
  background: #fee2e2;
  color: #991b1b;
}

.admin-shell .lead-priority-medium span,
.admin-shell .lead-score-medium {
  background: #fef3c7;
  color: #92400e;
}

.admin-shell .lead-priority-low span,
.admin-shell .lead-score-low {
  background: #e0f2fe;
  color: #075985;
}

.admin-shell .lead-priority-empty {
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.72rem;
  background: #ffffff;
}

.admin-shell .lead-response-panel {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.72rem;
  background: #ffffff;
}

.admin-shell .lead-response-total {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.62rem;
}

.admin-shell .lead-response-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .lead-response-card {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  min-height: 9rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #2563eb;
  border-radius: 0.62rem;
  background: #f8fafc;
}

.admin-shell .lead-response-card span,
.admin-shell .lead-response-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  text-transform: uppercase;
}

.admin-shell .lead-response-card strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.22;
}

.admin-shell .lead-response-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.admin-shell .lead-response-card a {
  align-self: end;
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-shell .lead-response-high {
  border-left-color: #ef4444;
}

.admin-shell .lead-response-medium {
  border-left-color: #2563eb;
}

.admin-shell .lead-response-low {
  border-left-color: #0ea5e9;
}

.admin-shell .lead-response-high span,
.admin-shell .lead-response-badge-high {
  background: #fee2e2;
  color: #991b1b;
}

.admin-shell .lead-response-medium span,
.admin-shell .lead-response-badge-medium {
  background: #fef3c7;
  color: #92400e;
}

.admin-shell .lead-response-low span,
.admin-shell .lead-response-badge-low {
  background: #e0f2fe;
  color: #075985;
}

.admin-shell .lead-response-badge-ok {
  background: #dcfce7;
  color: #166534;
}

.admin-shell .lead-response-empty {
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.62rem;
  background: #f8fafc;
}

.admin-shell .lead-result-summary {
  margin-bottom: 0.8rem;
}

.admin-shell .message-conversion-hint {
  display: block;
  flex-basis: 100%;
  margin-top: 0.18rem;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

html[data-theme="dark"] .admin-shell .message-conversion-hint {
  color: #cbd5e1;
}

.admin-shell .lead-conversion-panel {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.5rem;
  background: #ffffff;
}

.admin-shell .lead-conversion-total {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.62rem;
}

.admin-shell .lead-conversion-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .lead-conversion-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  min-height: 10rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #16a34a;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.admin-shell .lead-conversion-card strong {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.22;
}

.admin-shell .lead-conversion-card p,
.admin-shell .lead-conversion-card small {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.admin-shell .lead-conversion-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  text-transform: uppercase;
}

.admin-shell .lead-conversion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.admin-shell .lead-conversion-empty {
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.admin-shell .lead-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.admin-shell .lead-empty-actions .btn {
  min-height: 2.5rem;
}

.admin-shell .customer-readiness-panel {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.admin-shell .customer-readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .customer-readiness-card {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  min-height: 9rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #2563eb;
  border-radius: 0.72rem;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.055);
}

.admin-shell .customer-readiness-card span,
.admin-shell .customer-readiness-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  text-transform: uppercase;
}

.admin-shell .customer-readiness-card strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.22;
}

.admin-shell .customer-readiness-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.admin-shell .customer-readiness-card a,
.admin-shell .customer-readiness-card em {
  align-self: end;
  color: #b45309;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.admin-shell .customer-readiness-complete {
  border-left-color: #16a34a;
}

.admin-shell .customer-readiness-partial {
  border-left-color: #2563eb;
}

.admin-shell .customer-readiness-attention {
  border-left-color: #ef4444;
}

.admin-shell .customer-readiness-complete span,
.admin-shell .customer-readiness-badge.customer-readiness-complete {
  background: #dcfce7;
  color: #166534;
}

.admin-shell .customer-readiness-partial span,
.admin-shell .customer-readiness-badge.customer-readiness-partial {
  background: #fef3c7;
  color: #92400e;
}

.admin-shell .customer-readiness-attention span,
.admin-shell .customer-readiness-badge.customer-readiness-attention {
  background: #fee2e2;
  color: #991b1b;
}

.admin-shell .customer-readiness-empty {
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.72rem;
  background: #ffffff;
}

.admin-shell .customer-action-panel {
  display: grid;
  gap: 0.85rem;
}

.admin-shell .import-client-guard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.8fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34%),
    #f8fbff;
}

.admin-shell .import-client-guard h4,
.admin-shell .import-client-guard p {
  margin: 0;
}

.admin-shell .import-client-guard h4 {
  color: #0f172a;
  font-size: clamp(1rem, 1.7vw, 1.24rem);
}

.admin-shell .import-client-guard ul {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding-left: 1.1rem;
  color: #475569;
}

html[data-theme="dark"] .admin-shell .import-client-guard {
  border-color: rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34%),
    #0f182b;
}

html[data-theme="dark"] .admin-shell .import-client-guard h4 {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .import-client-guard ul {
  color: #cbd5e1;
}

@media (max-width: 720px) {
  .admin-shell .import-client-guard {
    grid-template-columns: 1fr;
  }
}

.admin-shell .customer-client-scope {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34%),
    #f8fbff;
}

.admin-shell .customer-client-scope strong,
.admin-shell .customer-client-scope small {
  display: block;
}

.admin-shell .customer-client-scope strong {
  color: #0f172a;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.admin-shell .customer-client-scope small {
  margin-top: 0.25rem;
  color: #475569;
  line-height: 1.45;
}

html[data-theme="dark"] .admin-shell .customer-client-scope {
  border-color: rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34%),
    #0f182b;
}

html[data-theme="dark"] .admin-shell .customer-client-scope strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .customer-client-scope small {
  color: #cbd5e1;
}

@media (max-width: 720px) {
  .admin-shell .customer-client-scope {
    grid-template-columns: 1fr;
  }
}

.admin-shell .customer-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .customer-action-card,
.admin-shell .customer-action-empty {
  min-width: 0;
  border: 1px solid #dbeafe;
  border-left: 0.32rem solid #0ea5e9;
  border-radius: 0.78rem;
  background: #f8fafc;
  padding: 0.85rem;
}

.admin-shell .customer-action-card {
  display: grid;
  gap: 0.38rem;
  color: #111827;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-shell .customer-action-card:hover,
.admin-shell .customer-action-card:focus-visible {
  border-color: #0ea5e9;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.13);
  transform: translateY(-1px);
}

.admin-shell .customer-action-high {
  border-left-color: #ef4444;
}

.admin-shell .customer-action-medium {
  border-left-color: #2563eb;
}

.admin-shell .customer-action-low {
  border-left-color: #0ea5e9;
}

.admin-shell .customer-action-card span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-shell .customer-action-card strong,
.admin-shell .customer-action-empty strong {
  color: #111827;
  line-height: 1.18;
}

.admin-shell .customer-action-card small,
.admin-shell .customer-action-empty p {
  margin: 0;
  color: #64748b;
  line-height: 1.4;
}

.admin-shell .customer-action-card em {
  justify-self: start;
  margin-top: 0.18rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

html[data-theme="dark"] .admin-shell .customer-action-card,
html[data-theme="dark"] .admin-shell .customer-action-empty {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .customer-action-card:hover,
html[data-theme="dark"] .admin-shell .customer-action-card:focus-visible {
  border-color: #38bdf8;
  background: #111c31;
}

html[data-theme="dark"] .admin-shell .customer-action-card strong,
html[data-theme="dark"] .admin-shell .customer-action-empty strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .customer-action-card span,
html[data-theme="dark"] .admin-shell .customer-action-card small,
html[data-theme="dark"] .admin-shell .customer-action-empty p {
  color: #94a3b8;
}

html[data-theme="dark"] .admin-shell .customer-action-card em {
  background: #111c31;
  color: #7dd3fc;
}

@media (max-width: 1180px) {
  .admin-shell .customer-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-shell .customer-action-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .customer-action-panel .section-heading-row .btn,
  .admin-shell .customer-action-panel .section-heading-row .btn-outline {
    width: 100%;
  }
}

.admin-shell .invoice-collection-panel {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.75rem;
  background: #ffffff;
}

.admin-shell .invoice-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
  border-color: #bfdbfe;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.admin-shell .invoice-next-action-panel h3 {
  margin: 0.12rem 0 0.28rem;
  color: #0f172a;
  font-size: clamp(1.16rem, 2vw, 1.58rem);
  line-height: 1.15;
}

.admin-shell .invoice-next-action-panel p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.admin-shell .invoice-next-action-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.22rem 0.58rem;
  min-width: 12.5rem;
  margin: 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid #dbeafe;
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.86);
}

.admin-shell .invoice-next-action-meta dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-shell .invoice-next-action-meta dd {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
}

.admin-shell .invoice-next-action-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-shell .invoice-next-action-high {
  border-color: #fecaca;
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.12), transparent 34%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.admin-shell .invoice-next-action-medium {
  border-color: #fde68a;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.13), transparent 34%),
    linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

@media (max-width: 980px) {
  .admin-shell .invoice-next-action-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-shell .invoice-next-action-actions {
    justify-content: flex-start;
  }
}

html[data-theme="dark"] .admin-shell .invoice-next-action-panel {
  border-color: #1d4ed8;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 34%),
    #0b1220;
}

html[data-theme="dark"] .admin-shell .invoice-next-action-panel h3,
html[data-theme="dark"] .admin-shell .invoice-next-action-meta dd {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .invoice-next-action-panel p,
html[data-theme="dark"] .admin-shell .invoice-next-action-meta dt {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .invoice-next-action-meta {
  border-color: #22304b;
  background: #0f182b;
}

.admin-shell .invoice-client-scope {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34%),
    #f8fbff;
}

.admin-shell .invoice-client-scope strong,
.admin-shell .invoice-client-scope small {
  display: block;
}

.admin-shell .invoice-client-scope strong {
  color: #0f172a;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.admin-shell .invoice-client-scope small {
  margin-top: 0.25rem;
  color: #475569;
  line-height: 1.45;
}

html[data-theme="dark"] .admin-shell .invoice-client-scope {
  border-color: rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34%),
    #0f182b;
}

html[data-theme="dark"] .admin-shell .invoice-client-scope strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .invoice-client-scope small {
  color: #cbd5e1;
}

.admin-shell .invoice-flow-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-shell .quote-flow-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-shell .quote-flow-shortcut {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #dcfce7;
  border-radius: 0.78rem;
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-shell .quote-flow-shortcut:hover,
.admin-shell .quote-flow-shortcut:focus-visible,
.admin-shell .quote-flow-shortcut.is-active {
  border-color: #22c55e;
  background: #f0fdf4;
  box-shadow: 0 12px 26px rgba(34, 197, 94, 0.13);
  transform: translateY(-1px);
}

.admin-shell .invoice-flow-shortcut {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #dbeafe;
  border-radius: 0.78rem;
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-shell .invoice-flow-shortcut:hover,
.admin-shell .invoice-flow-shortcut:focus-visible,
.admin-shell .invoice-flow-shortcut.is-active {
  border-color: #0ea5e9;
  background: #f0f9ff;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.13);
  transform: translateY(-1px);
}

.admin-shell .invoice-flow-shortcut span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-shell .quote-flow-shortcut span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-shell .invoice-flow-shortcut strong {
  color: #111827;
  font-size: 1.55rem;
  line-height: 1;
}

.admin-shell .quote-flow-shortcut strong {
  color: #111827;
  font-size: 1.55rem;
  line-height: 1;
}

.admin-shell .invoice-flow-shortcut small {
  color: #64748b;
  line-height: 1.35;
}

.admin-shell .invoice-result-filter-text {
  display: inline-flex;
  margin-left: 0.35rem;
  color: var(--text-muted);
  font-weight: 650;
}

.admin-shell .quote-result-filter-text {
  display: inline-flex;
  margin-left: 0.35rem;
  color: var(--text-muted);
  font-weight: 650;
}

.admin-shell .work-order-result-filter-text {
  display: inline-flex;
  margin-left: 0.35rem;
  color: var(--text-muted);
  font-weight: 650;
}

.admin-shell .customer-result-filter-text {
  display: inline-flex;
  margin-left: 0.35rem;
  color: var(--text-muted);
  font-weight: 650;
}

.admin-shell .message-result-filter-text {
  display: inline-flex;
  margin-left: 0.35rem;
  color: var(--text-muted);
  font-weight: 650;
}

.admin-shell .support-result-filter-text {
  display: inline-flex;
  margin-left: 0.35rem;
  color: var(--text-muted);
  font-weight: 650;
}

.admin-shell .quote-flow-shortcut small {
  color: #64748b;
  line-height: 1.35;
}

.admin-shell .invoice-collection-total {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.62rem;
}

.admin-shell .invoice-collection-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .invoice-collection-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  min-height: 10.2rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #2563eb;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.admin-shell .invoice-collection-card strong {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.22;
}

.admin-shell .invoice-collection-card p,
.admin-shell .invoice-collection-card small {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.admin-shell .invoice-collection-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  text-transform: uppercase;
}

.admin-shell .invoice-collection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.admin-shell .invoice-paid-form {
  display: inline-flex;
  min-width: 0;
  margin: 0;
}

.admin-shell .invoice-paid-form button {
  min-width: min(11rem, 100%);
  border: 1px solid #047857;
  background: #d1fae5;
  color: #065f46;
  white-space: normal;
}

.admin-shell .invoice-paid-form button:hover,
.admin-shell .invoice-paid-form button:focus-visible {
  border-color: #065f46;
  background: #a7f3d0;
  color: #064e3b;
}

.admin-shell .invoice-collection-high {
  border-left-color: #ef4444;
  background: #fff7f7;
}

.admin-shell .invoice-collection-medium {
  border-left-color: #2563eb;
  background: #fffbeb;
}

.admin-shell .invoice-collection-low {
  border-left-color: #2563eb;
}

.admin-shell .invoice-collection-high .invoice-collection-badge {
  background: #fee2e2;
  color: #991b1b;
}

.admin-shell .invoice-collection-medium .invoice-collection-badge {
  background: #fef3c7;
  color: #92400e;
}

.admin-shell .invoice-collection-empty {
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.72rem;
  background: #f8fafc;
}

.admin-shell .quote-followup-panel {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.75rem;
  background: #ffffff;
}

.admin-shell .quote-followup-total {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: #ecfeff;
  color: #155e75;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.62rem;
}

.admin-shell .quote-followup-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .quote-followup-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  min-height: 10rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #0891b2;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.admin-shell .quote-followup-card strong {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.22;
}

.admin-shell .quote-followup-card p,
.admin-shell .quote-followup-card small {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.admin-shell .quote-followup-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #cffafe;
  color: #155e75;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  text-transform: uppercase;
}

.admin-shell .quote-followup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.admin-shell .quote-cycle-form {
  display: inline-flex;
  min-width: 0;
  margin: 0;
}

.admin-shell .quote-cycle-form button {
  min-width: min(12rem, 100%);
  border: 1px solid #15803d;
  background: #dcfce7;
  color: #14532d;
  white-space: normal;
}

.admin-shell .quote-cycle-form button:hover,
.admin-shell .quote-cycle-form button:focus-visible {
  border-color: #166534;
  background: #bbf7d0;
  color: #052e16;
}

.admin-shell .quote-context-strip,
.admin-shell .invoice-context-strip,
.admin-shell .work-context-strip,
.admin-shell .support-context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin: 0.85rem 0 1rem;
  padding: 0.85rem;
  border: 1px solid #dbeafe;
  border-radius: 0.7rem;
  background: #eff6ff;
}

.admin-shell .quote-context-strip p,
.admin-shell .invoice-context-strip p,
.admin-shell .work-context-strip p,
.admin-shell .support-context-strip p {
  margin: 0.18rem 0 0;
}

.admin-shell .quote-context-list,
.admin-shell .invoice-context-list,
.admin-shell .work-context-list,
.admin-shell .support-context-list {
  display: flex;
  flex: 1 1 18rem;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-shell .quote-context-list span,
.admin-shell .invoice-context-list span,
.admin-shell .work-context-list span,
.admin-shell .support-context-list span {
  display: inline-flex;
  max-width: 100%;
  gap: 0.25rem;
  align-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.38rem 0.55rem;
}

.admin-shell .quote-context-list strong,
.admin-shell .invoice-context-list strong,
.admin-shell .work-context-list strong,
.admin-shell .support-context-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-shell .quote-followup-high {
  border-left-color: #ef4444;
  background: #fff7f7;
}

.admin-shell .quote-followup-medium {
  border-left-color: #2563eb;
  background: #fffbeb;
}

.admin-shell .quote-followup-low {
  border-left-color: #0891b2;
}

.admin-shell .quote-followup-high .quote-followup-badge {
  background: #fee2e2;
  color: #991b1b;
}

.admin-shell .quote-followup-medium .quote-followup-badge {
  background: #fef3c7;
  color: #92400e;
}

.admin-shell .quote-followup-empty {
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.72rem;
  background: #f8fafc;
}

.admin-shell .work-execution-panel {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.75rem;
  background: #ffffff;
}

.admin-shell .work-execution-total {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.62rem;
}

.admin-shell .work-execution-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .work-execution-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  min-height: 10rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #16a34a;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.admin-shell .work-execution-card strong {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.22;
}

.admin-shell .work-execution-card p,
.admin-shell .work-execution-card small {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.admin-shell .work-execution-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  text-transform: uppercase;
}

.admin-shell .work-execution-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.admin-shell .work-start-form,
.admin-shell .work-complete-form {
  display: inline-flex;
  min-width: 0;
  margin: 0;
}

.admin-shell .work-start-form button,
.admin-shell .work-complete-form button {
  min-height: 2.35rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  color: #ffffff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: normal;
  padding: 0.54rem 0.72rem;
}

.admin-shell .work-start-form button {
  background: #2563eb;
}

.admin-shell .work-complete-form button {
  background: #15803d;
}

.admin-shell .work-start-form button:hover,
.admin-shell .work-start-form button:focus-visible {
  background: #1d4ed8;
}

.admin-shell .work-complete-form button:hover,
.admin-shell .work-complete-form button:focus-visible {
  background: #166534;
}

.admin-shell .work-order-next-actions {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.admin-shell .work-order-next-actions .work-order-next-link {
  width: 100%;
  min-height: 2.6rem;
  justify-content: center;
  text-align: center;
}

.admin-shell .work-execution-high {
  border-left-color: #ef4444;
  background: #fff7f7;
}

.admin-shell .work-execution-medium {
  border-left-color: #2563eb;
  background: #fffbeb;
}

.admin-shell .work-execution-low {
  border-left-color: #16a34a;
}

.admin-shell .work-execution-high .work-execution-badge {
  background: #fee2e2;
  color: #991b1b;
}

.admin-shell .work-execution-medium .work-execution-badge {
  background: #fef3c7;
  color: #92400e;
}

.admin-shell .work-execution-empty {
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.72rem;
  background: #f8fafc;
}

.admin-shell .project-cost-decision-panel {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.75rem;
  background: #ffffff;
}

.admin-shell .project-cost-decision-total {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.62rem;
}

.admin-shell .project-cost-decision-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .project-cost-decision-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  min-height: 10.2rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #ea580c;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.admin-shell .project-cost-decision-card strong {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.22;
}

.admin-shell .project-cost-decision-card p,
.admin-shell .project-cost-decision-card small {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.admin-shell .project-cost-decision-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #ffedd5;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  text-transform: uppercase;
}

.admin-shell .project-cost-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.admin-shell .project-cost-decision-high {
  border-left-color: #ef4444;
  background: #fff7f7;
}

.admin-shell .project-cost-decision-medium {
  border-left-color: #2563eb;
  background: #fffbeb;
}

.admin-shell .project-cost-decision-low {
  border-left-color: #ea580c;
}

.admin-shell .project-cost-decision-high .project-cost-decision-badge {
  background: #fee2e2;
  color: #991b1b;
}

.admin-shell .project-cost-decision-medium .project-cost-decision-badge {
  background: #fef3c7;
  color: #92400e;
}

.admin-shell .project-cost-decision-empty {
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.72rem;
  background: #f8fafc;
}

.admin-shell .project-cost-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-shell .project-cost-module-grid article {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  background: #ffffff;
}

.admin-shell .project-cost-module-grid span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-shell .project-cost-module-grid strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.18;
}

.admin-shell .project-cost-module-grid small {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-shell .security-focus-panel {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.75rem;
  background: #ffffff;
}

.admin-shell .security-focus-total {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.62rem;
}

.admin-shell .security-focus-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .security-focus-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  min-height: 9.6rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #2563eb;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.admin-shell .security-focus-card strong {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.admin-shell .security-focus-card p,
.admin-shell .security-focus-card small {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.admin-shell .security-focus-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  text-transform: uppercase;
}

.admin-shell .security-focus-high {
  border-left-color: #dc2626;
  background: #fff7f7;
}

.admin-shell .security-focus-medium {
  border-left-color: #2563eb;
  background: #fffbeb;
}

.admin-shell .security-focus-low {
  border-left-color: #2563eb;
}

.admin-shell .security-focus-high .security-focus-badge,
.admin-shell .security-focus-badge-high {
  background: #fee2e2;
  color: #991b1b;
}

.admin-shell .security-focus-medium .security-focus-badge,
.admin-shell .security-focus-badge-medium {
  background: #fef3c7;
  color: #92400e;
}

.admin-shell .security-focus-empty {
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.72rem;
  background: #f8fafc;
}

.admin-shell .access-health-panel {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.75rem;
  background: #ffffff;
}

.admin-shell .access-health-total {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.62rem;
}

.admin-shell .access-health-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .access-health-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  min-height: 10rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #16a34a;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.admin-shell .access-health-card strong {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.22;
}

.admin-shell .access-health-card p,
.admin-shell .access-health-card small {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.admin-shell .access-health-card .btn {
  justify-self: start;
  margin-top: 0.2rem;
}

.admin-shell .access-health-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  text-transform: uppercase;
}

.admin-shell .access-health-high {
  border-left-color: #dc2626;
  background: #fff7f7;
}

.admin-shell .access-health-medium {
  border-left-color: #2563eb;
  background: #fffbeb;
}

.admin-shell .access-health-low {
  border-left-color: #16a34a;
}

.admin-shell .access-health-high .access-health-badge,
.admin-shell .access-health-badge-high {
  background: #fee2e2;
  color: #991b1b;
}

.admin-shell .access-health-medium .access-health-badge,
.admin-shell .access-health-badge-medium {
  background: #fef3c7;
  color: #92400e;
}

.admin-shell .access-health-empty {
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.72rem;
  background: #f8fafc;
}

.admin-shell .client-link-form {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  gap: 0.42rem;
  width: min(100%, 28rem);
  margin: 0;
}

.admin-shell .client-link-form select {
  min-width: 0;
  min-height: 2.35rem;
  border-radius: 0.55rem;
  font-size: 0.82rem;
}

.admin-shell .client-link-form button {
  min-height: 2.35rem;
  white-space: nowrap;
}

.admin-shell .import-preflight-panel {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.75rem;
  background: #ffffff;
}

.admin-shell .import-preflight-total {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.62rem;
}

.admin-shell .import-preflight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-shell .import-final-guard-panel {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.1), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.admin-shell .import-final-guard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-shell .import-final-guard-card {
  display: grid;
  align-content: start;
  gap: 0.38rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #dbeafe;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
}

.admin-shell .import-final-guard-card span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.admin-shell .import-final-guard-card strong {
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.18;
}

.admin-shell .import-final-guard-card small {
  color: #475569;
  font-size: 0.83rem;
  line-height: 1.42;
}

.admin-shell .import-final-guard-card a {
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: none;
}

.admin-shell .import-final-guard-card a:hover,
.admin-shell .import-final-guard-card a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .admin-shell .import-final-guard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-shell .import-final-guard-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .admin-shell .import-final-guard-panel {
  border-color: #1d4ed8;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 32%),
    #0b1220;
}

html[data-theme="dark"] .admin-shell .import-final-guard-card {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .import-final-guard-card span,
html[data-theme="dark"] .admin-shell .import-final-guard-card a {
  color: #93c5fd;
}

html[data-theme="dark"] .admin-shell .import-final-guard-card strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .import-final-guard-card small {
  color: #cbd5e1;
}

.admin-shell .import-preflight-card {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-width: 0;
  min-height: 8.2rem;
  padding: 0.8rem;
  border: 1px solid #e2e8f0;
  border-left: 0.28rem solid #16a34a;
  border-radius: 0.7rem;
  background: #f8fafc;
}

.admin-shell .import-preflight-card span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-shell .import-preflight-card strong {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.18;
}

.admin-shell .import-preflight-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.38;
}

.admin-shell .import-preflight-pending {
  border-left-color: #2563eb;
  background: #fffbeb;
}

.admin-shell .import-preflight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-shell .import-mode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-shell .import-mode-actions button {
  min-width: min(13rem, 100%);
}

/* Import technical detail folding: keep CSV internals available without forcing them into first reading. */
.admin-shell .import-technical-detail {
  border: 1px solid var(--admin-border);
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--admin-panel-bg) 88%, #eff6ff 12%);
}

.admin-shell .import-technical-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
  list-style: none;
  padding: 0.9rem 1rem;
}

.admin-shell .import-technical-summary::-webkit-details-marker,
.admin-shell .import-technical-summary::marker {
  display: none;
}

.admin-shell .import-technical-summary::after {
  color: var(--admin-accent, #2563eb);
  content: "Ver";
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-shell .import-technical-detail[open] .import-technical-summary::after {
  content: "Ocultar";
}

.admin-shell .import-technical-detail[open] {
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.08);
}

.admin-shell .import-header-detail {
  margin-top: 0.45rem;
  padding: 0;
}

.admin-shell .import-header-detail summary {
  cursor: pointer;
  font-weight: 850;
  padding: 0.7rem 0.85rem;
}

.admin-shell .import-header-detail p,
.admin-shell .import-load-format-detail > p,
.admin-shell .import-load-format-detail > dl,
.admin-shell .import-load-format-detail > .admin-empty-state-actions {
  margin-inline: 1rem;
}

.admin-shell .import-load-format-detail > .admin-empty-state-actions {
  margin-bottom: 1rem;
}

.admin-shell .import-preview-issues {
  display: grid;
  gap: 0.75rem;
  border: 1px solid #fed7aa;
  border-left: 0.28rem solid #f97316;
  border-radius: 0.7rem;
  background: #fff7ed;
  padding: 0.85rem;
}

.admin-shell .import-preview-issues strong,
.admin-shell .import-preview-issues p {
  margin: 0;
}

.admin-shell .import-preview-issues ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-shell .import-preview-issues li {
  display: grid;
  grid-template-columns: minmax(5rem, auto) minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  min-width: 0;
}

.admin-shell .import-preview-issues li span {
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-shell .import-preview-issues li strong {
  color: #431407;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .admin-shell .lead-source-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .work-execution-list,
  .admin-shell .quote-followup-list,
  .admin-shell .invoice-collection-list,
  .admin-shell .project-cost-decision-list,
  .admin-shell .security-focus-list,
  .admin-shell .access-health-list,
  .admin-shell .import-preflight-grid,
  .admin-shell .customer-readiness-grid,
  .admin-shell .lead-response-list,
  .admin-shell .lead-conversion-list,
  .admin-shell .lead-priority-list {
    grid-template-columns: 1fr;
  }

  .admin-shell .work-execution-card,
  .admin-shell .quote-followup-card,
  .admin-shell .invoice-collection-card,
  .admin-shell .project-cost-decision-card,
  .admin-shell .security-focus-card,
  .admin-shell .access-health-card,
  .admin-shell .import-preflight-card,
  .admin-shell .customer-readiness-card,
  .admin-shell .lead-response-card,
  .admin-shell .lead-conversion-card,
  .admin-shell .lead-priority-card {
    min-height: 0;
  }

  .admin-shell .project-cost-module-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .client-link-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-shell .work-start-form,
  .admin-shell .work-complete-form,
  .admin-shell .work-start-form button,
  .admin-shell .work-complete-form button {
    width: 100%;
  }

  .admin-shell .import-preview-issues li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.module-origin-panel {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.module-origin-panel h4 {
  margin: 0;
  color: #374151;
  font-size: 0.82rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.module-origin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.module-origin-grid a {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.module-origin-grid strong {
  color: #111827;
  font-size: 1.05rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.module-origin-grid span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.module-origin-grid a:hover {
  border-color: #b8c4d6;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.07);
}

@media (max-width: 760px) {
  .module-origin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sector-sales-band {
  border: 1px solid #e7ebf0;
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 128, 105, 0.12), transparent 20rem),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.sector-sales-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.sector-sales-grid article {
  min-height: 260px;
  padding: 1.05rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.055);
}

.sector-sales-grid span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.75rem;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.55rem;
  text-transform: uppercase;
}

.sector-sales-grid h3 {
  margin: 0 0 0.65rem;
  color: #111827;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
}

@media (max-width: 980px) {
  .sector-sales-grid {
    grid-template-columns: 1fr;
  }

  .sector-sales-grid article {
    min-height: auto;
  }
}

.admin-shell .admin-help-sector-examples .admin-help-feature-list article {
  border-style: solid;
  border-left: 0.22rem solid var(--cet-accent, #ff8069);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.admin-shell .admin-help-sector-examples strong {
  display: block;
  margin-bottom: 0.18rem;
  color: #111827;
  font-size: 0.86rem;
}

.admin-shell .admin-help-sector-examples span {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
}

.module-sales-copy {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 128, 105, 0.1), transparent 14rem),
    #ffffff;
}

.module-sales-copy > h4 {
  margin: 0;
  color: #374151;
  font-size: 0.82rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.module-sales-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.module-sales-copy-grid article {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid #edf0f3;
  border-radius: 0.62rem;
  background: rgba(248, 250, 252, 0.82);
}

.module-sales-copy-grid span {
  display: block;
  margin-bottom: 0.3rem;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.module-sales-copy-grid strong {
  display: block;
  color: #111827;
  font-size: 0.88rem;
  line-height: 1.2;
}

.module-sales-copy-grid p {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .module-sales-copy-grid {
    grid-template-columns: 1fr;
  }
}

.sector-commitment,
.sector-contact-hook {
  border: 1px solid rgba(255, 128, 104, 0.26);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 128, 104, 0.12), rgba(255, 255, 255, 0.92));
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
}

.sector-commitment {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
}

.sector-commitment strong {
  margin-right: 0.3rem;
  color: #111827;
  font-weight: 850;
}

.sector-commitment span,
.sector-summary-proof span {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.42rem 0.68rem;
}

.sector-contact-hook {
  margin: 1rem 0;
  padding: 0.95rem 1rem;
}

.sector-contact-hook strong {
  display: block;
  color: #111827;
  font-size: 0.98rem;
  font-weight: 850;
}

.sector-contact-hook p {
  margin: 0.35rem 0 0;
}

.sector-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sector-summary-actions .btn,
.sector-summary-actions .btn-outline {
  width: auto;
}

.contact-success-next {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.94));
  color: #14532d;
}

.contact-success-next strong {
  color: #166534;
  font-size: 0.98rem;
  font-weight: 850;
}

.contact-success-next span {
  color: #14532d;
}

.contact-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.contact-success-actions .btn,
.contact-success-actions .btn-outline {
  width: auto;
}

.sector-lead-questions {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.95), rgba(255, 255, 255, 0.9));
}

.sector-lead-questions strong {
  display: block;
  margin-bottom: 0.55rem;
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 850;
}

.sector-lead-questions ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #475467;
}

.sector-lead-questions li + li {
  margin-top: 0.32rem;
}

@media (max-width: 860px) {
  .sector-summary-actions .btn,
  .sector-summary-actions .btn-outline,
  .contact-success-actions .btn,
  .contact-success-actions .btn-outline {
    width: 100%;
  }
}

.subscription-sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.subscription-sector-grid article {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  padding: 1rem;
}

.subscription-sector-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.subscription-sector-head span,
.subscription-sector-head strong {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 0.25rem 0.55rem;
}

.subscription-sector-head span {
  background: #eef6ff;
  color: #175cd3;
}

.subscription-sector-head strong {
  background: #fff7ed;
  color: #c2410c;
}

.subscription-sector-grid h4 {
  margin: 0 0 0.45rem;
  color: #111827;
}

.subscription-sector-grid p {
  margin: 0 0 0.85rem;
  color: #64748b;
}

.subscription-sector-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.subscription-sector-columns strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #111827;
  font-size: 0.82rem;
}

.subscription-sector-columns ul {
  margin: 0;
  padding-left: 1.05rem;
  color: #475467;
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .subscription-sector-columns {
    grid-template-columns: 1fr;
  }
}

.admin-shell .admin-billing-panel {
  display: grid;
  gap: 0.9rem;
}

.admin-shell .admin-billing-grid,
.admin-shell .admin-billing-catalog {
  display: grid;
  gap: 0.65rem;
}

.admin-shell .admin-billing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-shell .admin-billing-catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-shell .billing-price-review {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.78rem;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.admin-shell .billing-price-review-head strong {
  display: block;
  color: #111827;
  font-size: 0.98rem;
}

.admin-shell .billing-price-review-head p {
  margin: 0.2rem 0 0;
}

.admin-shell .billing-price-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-shell .billing-price-review-grid article {
  min-width: 0;
  display: grid;
  gap: 0.24rem;
  padding: 0.85rem;
  border: 1px solid #dbeafe;
  border-radius: 0.72rem;
  background: #ffffff;
}

.admin-shell .billing-price-review-grid span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-shell .billing-price-review-grid strong {
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1.1;
}

.admin-shell .billing-price-review-grid small {
  color: #475569;
  font-weight: 700;
}

.admin-shell .admin-billing-grid article,
.admin-shell .admin-billing-catalog article,
.admin-shell .admin-billing-missing,
.admin-shell .admin-billing-events {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.72rem;
  background: #ffffff;
}

.admin-shell .billing-readiness-panel {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid #dbeafe;
  border-radius: 0.75rem;
  background: #f8fbff;
}

.admin-shell .billing-readiness-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-shell .billing-readiness-head strong {
  display: block;
  color: #111827;
  font-size: 0.98rem;
}

.admin-shell .billing-readiness-head p {
  margin: 0.2rem 0 0;
}

.admin-shell .billing-readiness-head > span {
  display: inline-flex;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.62rem;
}

.admin-shell .billing-readiness-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.62rem;
}

.admin-shell .billing-readiness-list article {
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.72rem;
  background: #ffffff;
}

.admin-shell .billing-readiness-list article > span {
  display: inline-flex;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.3rem 0.48rem;
  text-transform: uppercase;
}

.admin-shell .billing-readiness-list .is-ready > span {
  background: #dcfce7;
  color: #166534;
}

.admin-shell .billing-readiness-list .is-pending > span {
  background: #fef3c7;
  color: #92400e;
}

.admin-shell .billing-readiness-list strong {
  display: block;
  margin-top: 0.45rem;
  color: #111827;
  font-size: 0.86rem;
}

.admin-shell .billing-readiness-list p,
.admin-shell .billing-next-action {
  margin: 0.32rem 0 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.42;
}

.admin-shell .billing-next-action {
  margin: 0;
  padding: 0.72rem;
  border: 1px dashed #bfdbfe;
  border-radius: 0.72rem;
  background: #ffffff;
}

.admin-shell .admin-billing-grid span,
.admin-shell .admin-billing-catalog span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-shell .admin-billing-grid strong,
.admin-shell .admin-billing-catalog strong,
.admin-shell .admin-billing-events > strong,
.admin-shell .admin-billing-missing > strong {
  display: block;
  margin-top: 0.24rem;
  color: #111827;
  font-size: 0.95rem;
}

.admin-shell .admin-billing-grid small,
.admin-shell .admin-billing-catalog small {
  display: block;
  margin-top: 0.28rem;
  color: #64748b;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.admin-shell .admin-billing-events table {
  margin-top: 0.55rem;
}

@media (max-width: 1120px) {
  .admin-shell .billing-readiness-list,
  .admin-shell .admin-billing-grid,
  .admin-shell .admin-billing-catalog,
  .admin-shell .billing-price-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-shell .billing-readiness-list,
  .admin-shell .admin-billing-grid,
  .admin-shell .admin-billing-catalog,
  .admin-shell .billing-price-review-grid {
    grid-template-columns: 1fr;
  }
}

.module-readiness-panel {
  margin-top: 0.9rem;
  padding: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.module-readiness-head {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.module-readiness-head h4 {
  margin: 0;
  color: #111827;
  font-size: 0.88rem;
}

.module-readiness-head strong {
  border-radius: 999px;
  background: #eef6ff;
  color: #175cd3;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0.24rem 0.55rem;
}

.module-readiness-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.module-readiness-list span {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 0.25rem 0.52rem;
}

.module-readiness-list .is-ready {
  border: 1px solid #bbf7d0;
  background: #ecfdf3;
  color: #008a45;
}

.module-readiness-list .is-pending {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}


/* Final professional polish: public rhythm, touch targets and responsive clarity. */
:root {
  --radius-lg: 18px;
  --touch-target: 44px;
}

.public-shell .container {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.public-nav {
  min-height: 4.25rem;
}

.public-nav nav a,
.btn,
button,
.btn-small {
  min-height: var(--touch-target);
  align-items: center;
  justify-content: center;
}

.public-section,
.home-band,
.home-cta,
.metrics-strip,
.hero-home,
.home-hero {
  border-radius: var(--radius-lg);
}

.public-section,
.home-band,
.home-cta {
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.055);
}

.public-section h1,
.home-hero h1,
.hero-home h1 {
  letter-spacing: -0.045em;
}

.public-section p,
.home-band p,
.home-cta p,
.sector-card p,
.pricing-card p {
  text-wrap: pretty;
}

.card,
.pricing-card,
.sector-card {
  border-color: #dfe5ee;
}

.card:hover,
.pricing-card:hover,
.sector-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

/* Instant sector activation: public decision path for existing gremios. */
.sector-instant-band,
.signup-instant-band {
  border: 1px solid #dbe3ee;
  background: #f8fafc;
}

.sector-instant-grid,
.signup-instant-grid,
.instant-module-list {
  display: grid;
  gap: 0.85rem;
}

.sector-instant-grid,
.signup-instant-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sector-instant-grid article,
.signup-instant-grid article,
.instant-module-list a {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.95rem;
}

.sector-instant-grid span,
.signup-instant-grid span,
.instant-module-list span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 0.74rem;
  font-weight: 850;
  padding: 0.26rem 0.55rem;
}

.sector-instant-grid h3,
.signup-instant-grid h3 {
  margin: 0.5rem 0 0;
  color: #111827;
}

.sector-instant-grid p,
.signup-instant-grid p,
.instant-module-list small {
  color: #536078;
}

.instant-module-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.9rem;
}

.instant-module-list a {
  display: grid;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
}

.instant-module-list a:hover,
.instant-module-list a:focus-visible {
  border-color: #2563eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.instant-module-list strong {
  color: #111827;
  line-height: 1.2;
}

.sector-card-price {
  display: inline-flex;
  width: fit-content;
  margin: 0.25rem 0 0;
  padding: 0.42rem 0.68rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.94rem;
  font-weight: 900;
}

.public-next-step-band {
  display: grid;
  gap: 1rem;
  border: 1px solid #dbe3ee;
  background: #ffffff;
}

.public-next-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.public-next-step-card {
  display: grid;
  gap: 0.48rem;
  min-width: 0;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
}

.public-next-step-card:hover,
.public-next-step-card:focus-visible {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.public-next-step-card span {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-next-step-card strong {
  color: #111827;
  font-size: 1.06rem;
  line-height: 1.18;
}

.public-next-step-card small {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.45;
}

.public-next-step-card em {
  color: #334155;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
}

.public-next-step-card b {
  align-self: end;
  justify-self: start;
  margin-top: 0.25rem;
  color: #d9432d;
  font-size: 0.9rem;
}

.home-decision-band {
  border: 1px solid #dbe4ef;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #fff5f1 100%);
}

.home-decision-band > div:first-child {
  max-width: 44rem;
}

.home-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-decision-grid article {
  display: grid;
  align-content: start;
  gap: 0.72rem;
  min-height: 13rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.home-decision-grid span {
  width: fit-content;
  padding: 0.28rem 0.52rem;
  border: 1px solid #ffd4c8;
  border-radius: 999px;
  background: #fff7f4;
  color: #bd3e2b;
  font-size: 0.72rem;
  font-weight: 900;
}

.home-decision-grid strong {
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.2;
}

.home-decision-grid small {
  color: #5b6472;
  font-size: 0.9rem;
  line-height: 1.5;
}

.home-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.contact-form label,
.grid-two-form label,
.stacked-form label {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.grid-two-form input,
.grid-two-form select,
.grid-two-form textarea,
.stacked-form input,
.admin-shell input,
.admin-shell select,
.admin-shell textarea {
  min-height: var(--touch-target);
  font-size: 0.96rem;
}

.admin-shell .admin-heading,
.admin-shell .admin-panel,
.admin-rail {
  border-radius: 14px;
}

.admin-shell th,
.admin-shell td {
  padding-block: 0.66rem;
}

.admin-shell .inline-actions .btn,
.admin-shell .inline-actions button,
.admin-shell .document-actions .btn,
.admin-shell .document-actions button {
  min-height: 2.35rem;
}

@media (max-width: 980px) {
  .public-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-nav nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .public-nav nav ul {
    width: max-content;
    min-width: 100%;
  }

  .home-hero,
  .hero-home,
  .grid-two,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    background-size: 58% auto;
    background-position: right 1rem top 1rem;
  }

  .home-hero-copy {
    padding: clamp(1.4rem, 5vw, 2.2rem);
  }

  .home-hero-media {
    margin: 0 clamp(1.4rem, 5vw, 2.2rem) clamp(1.4rem, 5vw, 2.2rem);
    min-height: 0;
    border-left: 0;
  }

  .metrics-strip,
  .service-ledger,
  .ops-lanes,
  .sector-instant-grid,
  .signup-instant-grid,
  .instant-module-list,
  .public-next-step-grid,
  .home-decision-grid,
  .grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 1rem, 1480px);
  }

  .public-nav nav a,
  .btn,
  button,
  .btn-small {
    min-height: 46px;
  }

  .home-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 13vw, 3.25rem);
  }

  .screen-grid,
  .metrics-strip,
  .service-ledger,
  .ops-lanes,
  .sector-instant-grid,
  .signup-instant-grid,
  .instant-module-list,
  .public-next-step-grid,
  .home-decision-grid,
  .grid-three,
  .grid-two-form {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .home-cta,
  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions,
  .home-demo-actions,
  .plan-sector-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .home-demo-actions .btn,
  .plan-sector-actions .btn,
  .hero-actions .btn-outline,
  .home-demo-actions .btn-outline,
  .plan-sector-actions .btn-outline {
    width: 100%;
  }
}

/* Sector signup page: plan + gremio conversion path. */
.signup-config-card {
  display: grid;
  gap: 0.65rem;
  align-content: center;
  border: 1px solid rgba(255, 128, 104, 0.26);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  padding: clamp(1rem, 3vw, 1.4rem);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.09);
}

.signup-config-card strong {
  color: #111827;
  font-size: 1.15rem;
}

.signup-config-card span {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 850;
  padding: 0.52rem 0.7rem;
}

.signup-equation,
.signup-plan-grid {
  display: grid;
  gap: 0.9rem;
}

.signup-equation {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signup-equation article,
.signup-plan-grid article {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.signup-equation span,
.signup-plan-grid header span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signup-equation h3,
.signup-plan-grid h3 {
  margin-top: 0.28rem;
  color: #111827;
  font-size: 1.08rem;
}

.signup-equation p,
.signup-plan-grid p {
  margin-top: 0.45rem;
  color: #64748b;
}

.signup-equation small,
.signup-plan-grid header small {
  display: block;
  margin-top: 0.28rem;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.4;
}

.signup-plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signup-brief-band {
  border-color: #dbe3ee;
  background: #ffffff;
}

.signup-brief-grid,
.signup-next-actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.signup-brief-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signup-brief-grid article {
  display: grid;
  align-content: start;
  gap: 0.52rem;
  min-width: 0;
  min-height: 16rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #0ea5e9;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.signup-brief-grid article:nth-child(2) {
  border-left-color: #ff8069;
}

.signup-brief-grid article:nth-child(3) {
  border-left-color: #16a34a;
}

.signup-brief-grid article:nth-child(4) {
  border-left-color: #7c3aed;
}

.signup-brief-grid span,
.signup-next-actions span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signup-brief-grid h3 {
  margin: 0;
  color: #111827;
  font-size: 1.02rem;
  line-height: 1.18;
}

.signup-brief-grid p,
.signup-next-actions small {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.signup-brief-grid .compact-list {
  margin-top: 0.1rem;
}

.signup-next-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signup-next-actions a {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
  min-height: 8rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.signup-next-actions a:hover,
.signup-next-actions a:focus-visible {
  border-color: #ff8069;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.signup-next-actions strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.2;
}

.signup-module-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.85rem;
}

.signup-module-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 820;
  padding: 0.36rem 0.62rem;
  text-decoration: none;
}

.signup-module-links a:hover,
.signup-module-links a:focus-visible {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1e40af;
}

@media (max-width: 980px) {
  .signup-equation,
  .signup-brief-grid,
  .signup-next-actions,
  .signup-plan-grid {
    grid-template-columns: 1fr;
  }

  .signup-brief-grid article,
  .signup-next-actions a {
    min-height: 0;
  }
}

.checkout-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, 0.12), transparent 18rem),
    #ffffff;
}

.checkout-panel {
  display: grid;
  gap: 1rem;
}

/* Checkout step strip 2026-06-27: plan, trade and payment before the summary. */
.public-shell .checkout-step-strip {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
  max-width: 34rem;
}

.public-shell .checkout-step-strip span {
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.08);
  color: #172033;
  display: flex;
  font-weight: 850;
  gap: 0.45rem;
  justify-content: center;
  min-height: 44px;
  padding: 0.62rem 0.78rem;
}

.public-shell .checkout-step-strip strong {
  align-items: center;
  background: #2454d6;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  height: 1.45rem;
  justify-content: center;
  line-height: 1;
  width: 1.45rem;
}

.checkout-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.checkout-summary-grid article {
  min-width: 0;
  min-height: 9rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

.checkout-summary-grid span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-summary-grid strong {
  display: block;
  margin-top: 0.28rem;
  color: #111827;
  font-size: 1rem;
}

.checkout-summary-grid p {
  margin-top: 0.45rem;
  color: #64748b;
}


html[data-theme="dark"] .public-shell .checkout-step-strip span,
body.theme-dark .public-shell .checkout-step-strip span {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(147, 197, 253, 0.24);
  color: #eff6ff;
}

html[data-theme="dark"] .public-shell .checkout-step-strip strong,
body.theme-dark .public-shell .checkout-step-strip strong {
  background: #60a5fa;
  color: #0f172a;
}

.checkout-action-form {
  width: min(22rem, 100%);
}
@media (max-width: 900px) {
  .public-shell .checkout-step-strip {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .public-shell .checkout-step-strip span {
    justify-content: flex-start;
  }
}

.checkout-pending {
  margin-top: 0;
}

.checkout-state-band,
.checkout-recovery-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.checkout-state-band {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}

.checkout-state-band h2,
.checkout-state-band h3,
.checkout-recovery-panel h3 {
  margin-top: 0.24rem;
  color: #111827;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.checkout-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-step-list li {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  background: #ffffff;
}

.checkout-step-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.78rem;
  font-weight: 950;
}

.checkout-step-list strong {
  display: block;
  margin-top: 0.45rem;
  color: #111827;
}

.checkout-step-list p {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.92rem;
}

.checkout-success-decision-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #bbf7d0;
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 28rem),
    #f0fdf4;
}

.checkout-success-decision-panel h2 {
  margin: 0.24rem 0 0;
  color: #111827;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.checkout-success-decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.checkout-success-decision-card {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  min-height: 10.5rem;
  padding: 0.9rem;
  border: 1px solid rgba(187, 247, 208, 0.95);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.checkout-success-decision-card:hover,
.checkout-success-decision-card:focus-visible {
  border-color: #22c55e;
  box-shadow: 0 16px 34px rgba(34, 197, 94, 0.18);
  transform: translateY(-1px);
}

.checkout-success-decision-card span {
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.checkout-success-decision-card strong {
  color: #0f172a;
  line-height: 1.18;
}

.checkout-success-decision-card small {
  color: #64748b;
  line-height: 1.42;
}

.checkout-success-decision-card em {
  align-self: end;
  color: #0f766e;
  font-style: normal;
  font-weight: 950;
}

.checkout-cancel-decision-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #fed7aa;
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.14), transparent 28rem),
    #fff7ed;
}

.checkout-cancel-decision-panel h3 {
  margin: 0.24rem 0 0;
  color: #111827;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.checkout-cancel-decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.checkout-cancel-decision-card {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  min-height: 11.5rem;
  padding: 0.85rem;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.checkout-cancel-decision-card:hover,
.checkout-cancel-decision-card:focus-visible {
  border-color: #fb923c;
  box-shadow: 0 16px 34px rgba(251, 146, 60, 0.18);
  transform: translateY(-1px);
}

.checkout-cancel-decision-card span {
  color: #c2410c;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.checkout-cancel-decision-card strong {
  color: #0f172a;
  line-height: 1.18;
}

.checkout-cancel-decision-card small {
  color: #64748b;
  line-height: 1.42;
}

.checkout-cancel-decision-card em {
  align-self: end;
  color: #0f766e;
  font-style: normal;
  font-weight: 950;
}

.checkout-preparation-band {
  align-items: stretch;
}

.checkout-preparation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.checkout-preparation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.checkout-preparation-card {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  background: #ffffff;
}

.checkout-preparation-card span {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-preparation-card h4 {
  margin: 0.35rem 0 0;
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.2;
}

.checkout-preparation-card p {
  margin: 0.45rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.checkout-preparation-card ul {
  display: grid;
  gap: 0.35rem;
  margin: 0.7rem 0 0;
  padding-left: 1rem;
  color: #334155;
  font-size: 0.88rem;
}

.checkout-recovery-panel {
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: center;
}

.checkout-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

@media (max-width: 900px) {
  .checkout-summary-grid,
  .checkout-state-band,
  .checkout-step-list,
  .checkout-preparation-grid,
  .checkout-success-decision-grid,
  .checkout-cancel-decision-grid,
  .checkout-recovery-panel {
    grid-template-columns: 1fr;
  }

  .checkout-summary-grid article,
  .checkout-success-decision-card,
  .checkout-cancel-decision-card {
    min-height: 0;
  }

  .checkout-recovery-actions {
    justify-content: stretch;
  }

  .checkout-preparation-actions .btn,
  .checkout-preparation-actions .btn-outline,
  .checkout-recovery-actions .btn,
  .checkout-recovery-actions .btn-outline {
    width: 100%;
  }
}

/* Cetapunts-style contextual help: ? trigger, summary tooltip, click to manual section. */
.admin-shell .admin-help-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  min-width: 1.9rem;
  height: 1.9rem;
  min-height: 1.9rem;
  padding: 0;
  border: 1px solid #94a3b8;
  border-radius: 0.62rem;
  background: #ffffff;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.admin-shell .admin-help-trigger:hover,
.admin-shell .admin-help-trigger:focus-visible {
  border-color: var(--cet-accent, #ff8069);
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
}

.admin-shell .admin-help-popover {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 80;
  display: grid;
  width: min(21rem, calc(100vw - 2rem));
  gap: 0.28rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.8rem;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.25rem);
  transition: opacity 150ms ease, transform 150ms ease;
}

.admin-shell .admin-help-popover::before {
  content: "";
  position: absolute;
  top: -0.38rem;
  right: 0.65rem;
  width: 0.7rem;
  height: 0.7rem;
  border-top: 1px solid #dbe3ee;
  border-left: 1px solid #dbe3ee;
  background: #ffffff;
  transform: rotate(45deg);
}

.admin-shell .admin-help-popover strong {
  color: #111827;
  font-size: 0.86rem;
  font-weight: 900;
}

.admin-shell .admin-help-popover span {
  color: #64748b;
  font-size: 0.79rem;
  font-weight: 650;
  line-height: 1.35;
}

.admin-shell .admin-help-trigger:hover .admin-help-popover,
.admin-shell .admin-help-trigger:focus-visible .admin-help-popover {
  opacity: 1;
  transform: translateY(0);
}

.admin-shell #manual-section:focus-visible {
  outline: 3px solid rgba(255, 128, 105, 0.36);
  outline-offset: 0.35rem;
}

.admin-shell .admin-heading-note {
  margin-top: 4px;
}

.admin-shell .section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.admin-shell .section-heading-row > div {
  min-width: 0;
}

.admin-shell .section-heading-row h3 {
  margin: 0;
}

.admin-shell .section-heading-row .small {
  margin-top: 0.35rem;
}

.admin-shell .admin-command-strip {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.admin-shell .admin-command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.admin-shell .admin-command-card {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  min-height: 9.6rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-top: 0.32rem solid #0ea5e9;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
}

.admin-shell .admin-command-card:hover,
.admin-shell .admin-command-card:focus-visible {
  border-color: #cbd5e1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.admin-shell .admin-command-card span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-shell .admin-command-card strong {
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.2;
}

.admin-shell .admin-command-card small {
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.42;
}

.admin-shell .admin-command-card em {
  align-self: end;
  color: #0f766e;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 850;
}

.admin-shell .command-level-high {
  border-top-color: #ef4444;
}

.admin-shell .command-level-medium {
  border-top-color: #2563eb;
}

.admin-shell .command-level-low {
  border-top-color: #0ea5e9;
}

.admin-shell .command-level-ok {
  border-top-color: #16a34a;
}

html[data-theme="dark"] .admin-shell .admin-command-strip,
html[data-theme="dark"] .admin-shell .admin-command-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.9);
}

html[data-theme="dark"] .admin-shell .admin-command-card strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .admin-command-card small {
  color: #cbd5e1;
}

.admin-shell .first-quote-guide {
  display: grid;
  gap: 0.9rem;
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.admin-shell .first-quote-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.admin-shell .first-quote-steps article {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  min-height: 8.2rem;
  padding: 0.85rem;
  border: 1px solid #dbeafe;
  border-radius: 0.72rem;
  background: #ffffff;
}

.admin-shell .first-quote-steps span {
  display: inline-grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
}

.admin-shell .first-quote-steps strong {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.2;
}

.admin-shell .first-quote-steps small {
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.42;
}

.admin-shell .first-quote-steps a {
  align-self: end;
  color: #1d4ed8;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-shell .first-quote-steps a:hover,
.admin-shell .first-quote-steps a:focus-visible {
  text-decoration: underline;
}

.admin-shell .dashboard-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  border-color: #bfdbfe;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.admin-shell .dashboard-next-action-panel h3 {
  margin: 0.12rem 0 0.28rem;
  color: #0f172a;
  font-size: clamp(1.22rem, 2.2vw, 1.72rem);
  line-height: 1.12;
}

.admin-shell .dashboard-next-action-panel p {
  margin: 0;
  max-width: 56rem;
  color: #475569;
  line-height: 1.45;
}

.admin-shell .dashboard-next-action-panel dl {
  display: grid;
  gap: 0.25rem 0.6rem;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 14rem;
  margin: 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid #dbeafe;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
}

.admin-shell .dashboard-next-action-panel dt {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-shell .dashboard-next-action-panel dd {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
}

.admin-shell .dashboard-next-action-high {
  border-color: #fecaca;
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.12), transparent 34%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.admin-shell .dashboard-next-action-medium {
  border-color: #fde68a;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.13), transparent 34%),
    linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.admin-shell .quick-quote-panel {
  display: grid;
  gap: 0.85rem;
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f7fef9 0%, #ffffff 100%);
}

.admin-shell .quick-quote-client-scope {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(34, 197, 94, 0.26);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.13), transparent 34%),
    #f8fff9;
}

.admin-shell .quick-quote-client-scope strong,
.admin-shell .quick-quote-client-scope small {
  display: block;
}

.admin-shell .quick-quote-client-scope strong {
  color: #0f172a;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.admin-shell .quick-quote-client-scope small {
  margin-top: 0.25rem;
  color: #475569;
  line-height: 1.45;
}

.admin-shell .quick-quote-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.admin-shell .quick-quote-step-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  color: #173a8a;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.admin-shell .quick-quote-step-strip strong {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
  flex: 0 0 auto;
}

.admin-shell .quick-quote-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
  align-items: end;
}

.admin-shell .quick-quote-field {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 850;
}

.admin-shell .quick-quote-field span {
  overflow-wrap: anywhere;
}

.admin-shell .quick-quote-field-wide {
  grid-column: span 2;
}

.admin-shell .quick-quote-total-box {
  display: grid;
  gap: 0.22rem;
  align-self: stretch;
  min-height: 2.55rem;
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 0.72rem;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.admin-shell .quick-quote-total-box span,
.admin-shell .quick-quote-total-box small {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-shell .quick-quote-total-box strong {
  color: #1d4ed8;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 950;
}

.admin-shell .quick-quote-form input,
.admin-shell .quick-quote-form select {
  width: 100%;
  min-width: 0;
  min-height: 2.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.58rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

.admin-shell .quick-quote-form input {
  padding: 0.58rem 0.72rem;
}

.admin-shell .quick-quote-form select {
  padding: 0.5rem 0.72rem;
}

.admin-shell .quick-quote-form button {
  align-self: end;
  min-width: 0;
  min-height: 2.55rem;
  white-space: normal;
}

html[data-theme="dark"] .admin-shell .first-quote-guide {
  border-color: #1e3a8a;
  background: #0b1220;
}

html[data-theme="dark"] .admin-shell .first-quote-steps article {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .first-quote-steps strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .first-quote-steps small {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .first-quote-steps a {
  color: #93c5fd;
}

html[data-theme="dark"] .admin-shell .dashboard-next-action-panel {
  border-color: #1d4ed8;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 34%),
    #0b1220;
}

html[data-theme="dark"] .admin-shell .dashboard-next-action-panel h3,
html[data-theme="dark"] .admin-shell .dashboard-next-action-panel dd {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .dashboard-next-action-panel p,
html[data-theme="dark"] .admin-shell .dashboard-next-action-panel dt {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .dashboard-next-action-panel dl {
  border-color: #22304b;
  background: #0f182b;
}

/* Dashboard quick start: daily work actions before the full menu. */
.admin-shell .dashboard-quick-start {
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
  border: 1px solid var(--admin-border);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.1), transparent 18rem),
    #ffffff;
  box-shadow: var(--admin-shadow-soft);
}

.admin-shell .dashboard-quick-start-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-shell .dashboard-quick-start-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
}

.admin-shell .dashboard-quick-start-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-shell .dashboard-quick-start-grid a {
  display: grid;
  gap: 0.42rem;
  min-height: 7rem;
  padding: 0.85rem;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.86);
  color: var(--admin-text);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-shell .dashboard-quick-start-grid a:hover,
.admin-shell .dashboard-quick-start-grid a:focus-visible {
  border-color: #93c5fd;
  background: #eff6ff;
  outline: none;
  transform: translateY(-1px);
}

.admin-shell .dashboard-quick-start-grid span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 950;
}

.admin-shell .dashboard-quick-start-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.admin-shell .dashboard-quick-start-grid em {
  width: fit-content;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-shell .dashboard-quick-start-grid strong {
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.18;
}

.admin-shell .dashboard-quick-start-grid small {
  color: #475569;
  font-weight: 750;
  line-height: 1.32;
}

@media (max-width: 1100px) {
  .admin-shell .dashboard-quick-start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-shell .dashboard-quick-start-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-shell .dashboard-quick-start-head .btn {
    width: 100%;
  }

  .admin-shell .dashboard-quick-start-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .admin-shell .dashboard-quick-start {
  border-color: rgba(96, 165, 250, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.14), transparent 18rem),
    #0b1220;
}

html[data-theme="dark"] .admin-shell .dashboard-quick-start-head h3,
html[data-theme="dark"] .admin-shell .dashboard-quick-start-grid strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .dashboard-quick-start-grid a {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(15, 23, 42, 0.82);
}

html[data-theme="dark"] .admin-shell .dashboard-quick-start-grid a:hover,
html[data-theme="dark"] .admin-shell .dashboard-quick-start-grid a:focus-visible {
  border-color: rgba(147, 197, 253, 0.62);
  background: rgba(30, 41, 59, 0.96);
}

html[data-theme="dark"] .admin-shell .dashboard-quick-start-grid span {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

html[data-theme="dark"] .admin-shell .dashboard-quick-start-grid em {
  color: #bfdbfe;
}

html[data-theme="dark"] .admin-shell .dashboard-quick-start-grid small {
  color: #cbd5e1;
}

/* Dashboard demo flow: make seeded client demos discoverable from the first screen. */
.admin-shell .dashboard-demo-flow-panel {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(30, 64, 175, 0.12);
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.2rem;
  padding: clamp(1rem, 2vw, 1.4rem);
}

.admin-shell .dashboard-demo-flow-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.admin-shell .dashboard-demo-flow-head h3 {
  color: #0f172a;
  margin: 0;
}

.admin-shell .dashboard-demo-flow-head p:not(.eyebrow) {
  color: #475569;
  margin: 0.35rem 0 0;
  max-width: 56rem;
}

.admin-shell .dashboard-demo-sequence-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-shell .dashboard-demo-sequence-grid a {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 22px;
  color: #12213a;
  display: grid;
  gap: 0.35rem;
  min-height: 9rem;
  padding: 1rem;
  text-decoration: none;
}

.admin-shell .dashboard-demo-sequence-grid a:hover,
.admin-shell .dashboard-demo-sequence-grid a:focus-visible {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.admin-shell .dashboard-demo-sequence-grid span {
  align-items: center;
  background: #2454d6;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.admin-shell .dashboard-demo-sequence-grid small,
.admin-shell .dashboard-demo-sequence-grid em {
  color: #52627a;
  font-style: normal;
  font-weight: 800;
}

.admin-shell .dashboard-demo-sequence-grid strong {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.25;
}

@media (max-width: 980px) {
  .admin-shell .dashboard-demo-sequence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell .dashboard-demo-flow-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .admin-shell .dashboard-demo-sequence-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .dashboard-demo-sequence-grid a {
    min-height: 0;
  }
}

html[data-theme="dark"] .admin-shell .dashboard-demo-flow-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  border-color: rgba(147, 197, 253, 0.24);
}

html[data-theme="dark"] .admin-shell .dashboard-demo-flow-head h3,
html[data-theme="dark"] .admin-shell .dashboard-demo-sequence-grid strong {
  color: #eff6ff;
}

html[data-theme="dark"] .admin-shell .dashboard-demo-flow-head p:not(.eyebrow),
html[data-theme="dark"] .admin-shell .dashboard-demo-sequence-grid small,
html[data-theme="dark"] .admin-shell .dashboard-demo-sequence-grid em {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .dashboard-demo-sequence-grid a {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(147, 197, 253, 0.24);
}

/* Dashboard autonomy monitor: automatic health signals before manual browsing. */
.admin-shell .autonomy-monitor-panel {
  display: grid;
  gap: 0.85rem;
}

.admin-shell .autonomy-monitor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-shell .autonomy-monitor-head h3 {
  margin: 0.12rem 0 0.25rem;
  color: #0f172a;
}

.admin-shell .autonomy-monitor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-shell .autonomy-monitor-card {
  display: grid;
  gap: 0.38rem;
  min-height: 8.4rem;
  padding: 0.9rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.78rem;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.055);
}

.admin-shell .autonomy-monitor-card span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-shell .autonomy-monitor-card strong {
  font-size: 1rem;
  line-height: 1.2;
}

.admin-shell .autonomy-monitor-card small {
  color: #64748b;
  line-height: 1.4;
}

.admin-shell .autonomy-monitor-card:hover,
.admin-shell .autonomy-monitor-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.52);
  outline: none;
}

.admin-shell .autonomy-monitor-high {
  border-color: #fecaca;
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.94), #ffffff);
}

.admin-shell .autonomy-monitor-medium {
  border-color: #fde68a;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.94), #ffffff);
}

.admin-shell .autonomy-monitor-ok {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.94), #ffffff);
}

html[data-theme="dark"] .admin-shell .autonomy-monitor-head h3,
html[data-theme="dark"] .admin-shell .autonomy-monitor-card strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .autonomy-monitor-card {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .admin-shell .autonomy-monitor-card small,
html[data-theme="dark"] .admin-shell .autonomy-monitor-card span {
  color: #cbd5e1;
}

@media (max-width: 1180px) {
  .admin-shell .autonomy-monitor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .admin-shell .autonomy-monitor-head {
    display: grid;
  }

  .admin-shell .autonomy-monitor-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .admin-shell .quick-quote-panel {
  border-color: #14532d;
  background: #0b1220;
}

html[data-theme="dark"] .admin-shell .quick-quote-client-scope {
  border-color: rgba(74, 222, 128, 0.22);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 34%),
    #0f182b;
}

html[data-theme="dark"] .admin-shell .quick-quote-client-scope strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .quick-quote-client-scope small {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .quick-quote-step-strip span {
  border-color: rgba(147, 197, 253, 0.28);
  background: linear-gradient(135deg, #0f2744, #111827);
  color: #dbeafe;
}

html[data-theme="dark"] .admin-shell .quick-quote-step-strip strong {
  background: #60a5fa;
  color: #0f172a;
}

html[data-theme="dark"] .admin-shell .quick-quote-field {
  color: #dbeafe;
}

html[data-theme="dark"] .admin-shell .quick-quote-total-box {
  border-color: rgba(147, 197, 253, 0.28);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.3), rgba(15, 23, 42, 0.9));
}

html[data-theme="dark"] .admin-shell .quick-quote-total-box span,
html[data-theme="dark"] .admin-shell .quick-quote-total-box small {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .quick-quote-total-box strong {
  color: #bfdbfe;
}

html[data-theme="dark"] .admin-shell .quick-quote-form input,
html[data-theme="dark"] .admin-shell .quick-quote-form select {
  border-color: #263449;
  background: #101a2c;
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .work-start-form button {
  background: #3b82f6;
}

html[data-theme="dark"] .admin-shell .work-complete-form button {
  background: #22c55e;
  color: #052e16;
}

html[data-theme="dark"] .admin-shell .quote-cycle-form button {
  border-color: #22c55e;
  background: #14532d;
  color: #dcfce7;
}

html[data-theme="dark"] .admin-shell .invoice-paid-form button {
  border-color: #34d399;
  background: #064e3b;
  color: #d1fae5;
}

html[data-theme="dark"] .admin-shell .invoice-flow-shortcut {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .quote-flow-shortcut {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .invoice-flow-shortcut:hover,
html[data-theme="dark"] .admin-shell .invoice-flow-shortcut:focus-visible,
html[data-theme="dark"] .admin-shell .invoice-flow-shortcut.is-active {
  border-color: #38bdf8;
  background: #111c31;
}

html[data-theme="dark"] .admin-shell .quote-flow-shortcut:hover,
html[data-theme="dark"] .admin-shell .quote-flow-shortcut:focus-visible,
html[data-theme="dark"] .admin-shell .quote-flow-shortcut.is-active {
  border-color: #22c55e;
  background: #111c31;
}

html[data-theme="dark"] .admin-shell .invoice-flow-shortcut strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .quote-flow-shortcut strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .invoice-flow-shortcut span,
html[data-theme="dark"] .admin-shell .invoice-flow-shortcut small {
  color: #94a3b8;
}

html[data-theme="dark"] .admin-shell .quote-flow-shortcut span,
html[data-theme="dark"] .admin-shell .quote-flow-shortcut small {
  color: #94a3b8;
}

/* Delivery note flow shortcuts: keep albaranes actionable without reading the table first. */
.admin-shell .delivery-note-flow-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.admin-shell .delivery-note-flow-shortcut {
  display: grid;
  min-height: var(--mantivo-touch-target, 44px);
  gap: 0.2rem;
  padding: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  background: var(--surface-card);
  color: var(--text-main);
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.admin-shell .delivery-note-flow-shortcut:hover,
.admin-shell .delivery-note-flow-shortcut:focus-visible,
.admin-shell .delivery-note-flow-shortcut.is-active {
  border-color: rgba(37, 99, 235, 0.45);
  background: #eff6ff;
  color: #0f2f63;
}

.admin-shell .delivery-note-flow-shortcut span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-shell .delivery-note-flow-shortcut strong {
  color: inherit;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1;
}

.admin-shell .delivery-note-flow-shortcut small {
  color: var(--text-muted);
  font-weight: 650;
  line-height: 1.35;
}

html[data-theme="dark"] .admin-shell .delivery-note-flow-shortcut {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .delivery-note-flow-shortcut:hover,
html[data-theme="dark"] .admin-shell .delivery-note-flow-shortcut:focus-visible,
html[data-theme="dark"] .admin-shell .delivery-note-flow-shortcut.is-active {
  border-color: #38bdf8;
  background: #111c31;
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .delivery-note-flow-shortcut span,
html[data-theme="dark"] .admin-shell .delivery-note-flow-shortcut small {
  color: #94a3b8;
}

.admin-shell .delivery-note-result-count {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: -0.35rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.admin-shell .delivery-note-result-count strong {
  color: var(--text-main);
}

.admin-shell .delivery-note-result-count span {
  color: var(--text-muted);
}

@media (max-width: 1180px) {
  .admin-shell .quote-flow-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell .delivery-note-flow-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-shell .quote-flow-shortcuts {
    grid-template-columns: 1fr;
  }

  .admin-shell .delivery-note-flow-shortcuts {
    grid-template-columns: 1fr;
  }
}

.admin-shell .activation-funnel-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.admin-shell .activation-funnel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.admin-shell .activation-funnel-card {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  min-height: 8.8rem;
  padding: 0.85rem;
  border: 1px solid #e2e8f0;
  border-left: 0.32rem solid #0ea5e9;
  border-radius: 0.72rem;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
}

.admin-shell .activation-funnel-card:hover,
.admin-shell .activation-funnel-card:focus-visible {
  border-color: #cbd5e1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.admin-shell .activation-funnel-card span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-shell .activation-funnel-card strong {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.2;
}

.admin-shell .activation-funnel-card small {
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.42;
}

.admin-shell .activation-funnel-card em {
  align-self: end;
  color: #0f766e;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 850;
}

.admin-shell .activation-funnel-high {
  border-left-color: #ef4444;
}

.admin-shell .activation-funnel-medium {
  border-left-color: #2563eb;
}

.admin-shell .activation-funnel-ok {
  border-left-color: #16a34a;
}

html[data-theme="dark"] .admin-shell .activation-funnel-panel,
html[data-theme="dark"] .admin-shell .activation-funnel-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.9);
}

html[data-theme="dark"] .admin-shell .activation-funnel-card strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .activation-funnel-card small {
  color: #cbd5e1;
}

.admin-shell .admin-priority-panel {
  border-color: #dbe3ee;
}

.admin-shell .admin-priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  margin-top: 0.75rem;
}

.admin-shell .admin-priority-card {
  display: grid;
  min-width: 0;
  min-height: 10rem;
  gap: 0.42rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-left-width: 0.32rem;
  border-radius: 0.72rem;
  background: #ffffff;
  color: #1f2937;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.admin-shell .admin-priority-card:hover,
.admin-shell .admin-priority-card:focus-visible {
  border-color: #cbd5e1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.11);
  transform: translateY(-1px);
}

.admin-shell .admin-priority-card span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-shell .admin-priority-card strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.22;
}

.admin-shell .admin-priority-card small {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.42;
}

.admin-shell .admin-priority-card em {
  align-self: end;
  color: #b45309;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 850;
}

.admin-shell .admin-priority-high {
  border-left-color: #ef4444;
}

.admin-shell .admin-priority-medium {
  border-left-color: #2563eb;
}

.admin-shell .admin-priority-low {
  border-left-color: #0ea5e9;
}

.admin-shell .admin-priority-ok {
  border-left-color: #16a34a;
}

@media (max-width: 1180px) {
  .admin-shell .admin-command-grid,
  .admin-shell .first-quote-steps,
  .admin-shell .activation-funnel-grid,
  .admin-shell .admin-priority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell .quick-quote-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell .dashboard-next-action-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-shell .invoice-flow-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-shell .admin-command-grid,
  .admin-shell .first-quote-steps,
  .admin-shell .activation-funnel-grid,
  .admin-shell .admin-priority-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .admin-command-card,
  .admin-shell .first-quote-steps article,
  .admin-shell .activation-funnel-card,
  .admin-shell .admin-priority-card {
    min-height: 0;
  }

  .admin-shell .quick-quote-form,
  .admin-shell .quick-quote-client-scope,
  .admin-shell .invoice-client-scope,
  .admin-shell .invoice-flow-shortcuts,
  .admin-shell .quick-quote-field-wide {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .admin-shell .quick-quote-form button {
    width: 100%;
  }

  .admin-shell .quick-quote-step-strip {
    position: sticky;
    top: 0.75rem;
    z-index: 2;
    grid-template-columns: 1fr;
    gap: 0.42rem;
  }

  .admin-shell .quick-quote-step-strip span {
    justify-content: flex-start;
    min-height: 2.55rem;
    padding-inline: 0.8rem;
  }
}

.admin-shell .operational-agenda-panel {
  border-color: #dbe3ee;
}

.admin-shell .operational-agenda-list {
  display: grid;
  gap: 0.65rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}

.admin-shell .operational-agenda-item {
  min-width: 0;
}

.admin-shell .operational-agenda-item a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.9rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-left-width: 0.32rem;
  border-radius: 0.72rem;
  background: var(--admin-panel-bg, #ffffff);
  color: var(--admin-title, #0f172a);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.055);
}

.admin-shell .operational-agenda-item a:hover,
.admin-shell .operational-agenda-item a:focus-visible {
  border-color: #cbd5e1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.admin-shell .agenda-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
}

.admin-shell .agenda-body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.admin-shell .agenda-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}

.admin-shell .agenda-meta strong {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-shell .agenda-meta em {
  color: #0f766e;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.admin-shell .agenda-title {
  color: var(--admin-title, #111827);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.22;
}

.admin-shell .agenda-text {
  color: #64748b;
  font-size: 0.83rem;
  line-height: 1.42;
}

.admin-shell .agenda-action {
  justify-self: end;
  min-width: max-content;
  color: #b45309;
  font-size: 0.8rem;
  font-weight: 900;
}

.admin-shell .agenda-level-high a {
  border-left-color: #ef4444;
}

.admin-shell .agenda-level-medium a {
  border-left-color: #2563eb;
}

.admin-shell .agenda-level-low a {
  border-left-color: #0ea5e9;
}

.admin-shell .agenda-level-ok a {
  border-left-color: #16a34a;
}

html[data-theme="dark"] .admin-shell .operational-agenda-item a {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .agenda-index {
  background: #1e2a46;
  color: #c7d2fe;
}

html[data-theme="dark"] .admin-shell .agenda-meta strong,
html[data-theme="dark"] .admin-shell .agenda-text {
  color: #94a3b8;
}

html[data-theme="dark"] .admin-shell .agenda-meta em {
  color: #5eead4;
}

.admin-shell .client-account-panel,
.admin-shell .client-account-route-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.78rem;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.055);
}

.admin-shell .client-account-panel {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.35fr);
  align-items: stretch;
}

.admin-shell .client-account-summary {
  display: grid;
  align-content: start;
  gap: 0.72rem;
  min-width: 0;
}

.admin-shell .client-account-summary h3,
.admin-shell .client-account-route-panel h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.18rem, 2vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.admin-shell .client-account-summary p {
  margin: 0;
  color: #475569;
  line-height: 1.48;
}

.admin-shell .client-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.admin-shell .client-account-status-grid,
.admin-shell .client-account-route-grid {
  display: grid;
  gap: 0.68rem;
  min-width: 0;
}

.admin-shell .client-account-status-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-shell .client-account-route-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-shell .client-account-status-grid article,
.admin-shell .client-account-route-grid a {
  min-width: 0;
  min-height: 7.8rem;
  padding: 0.82rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.72rem;
  background: #f8fafc;
}

.admin-shell .client-account-route-grid a {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  color: #111827;
  text-decoration: none;
}

.admin-shell .client-account-route-grid a:hover,
.admin-shell .client-account-route-grid a:focus-visible {
  border-color: #0ea5e9;
  background: #f0f9ff;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.13);
  transform: translateY(-1px);
}

.admin-shell .client-account-status-grid span,
.admin-shell .client-account-route-grid span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-shell .client-account-route-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
}

.admin-shell .client-account-route-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(14rem, 0.8fr);
  gap: 0.85rem;
  align-items: stretch;
  margin: 0.8rem 0 0.9rem;
  padding: 0.9rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.82), rgba(240, 249, 255, 0.9)),
    #eff6ff;
}

.admin-shell .client-account-route-focus strong {
  display: block;
  color: #0f172a;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.18;
}

.admin-shell .client-account-route-focus small,
.admin-shell .client-account-route-scope {
  margin: 0.35rem 0 0;
  color: #475569;
  line-height: 1.45;
}

.admin-shell .client-account-route-scope {
  display: grid;
  align-content: center;
  min-height: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(14, 165, 233, 0.26);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.76);
  color: #0f3f62;
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-shell .client-account-status-grid strong,
.admin-shell .client-account-route-grid strong {
  display: block;
  margin-top: 0.25rem;
  color: #111827;
  font-size: 0.96rem;
  line-height: 1.2;
}

.admin-shell .client-account-status-grid p,
.admin-shell .client-account-route-grid small {
  margin: 0.32rem 0 0;
  color: #64748b;
  font-size: 0.83rem;
  line-height: 1.42;
}

html[data-theme="dark"] .admin-shell .client-account-panel,
html[data-theme="dark"] .admin-shell .client-account-route-panel {
  border-color: #22304b;
  background: #0b1220;
}

html[data-theme="dark"] .admin-shell .client-account-status-grid article,
html[data-theme="dark"] .admin-shell .client-account-route-grid a {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .client-account-summary h3,
html[data-theme="dark"] .admin-shell .client-account-route-panel h3,
html[data-theme="dark"] .admin-shell .client-account-route-focus strong,
html[data-theme="dark"] .admin-shell .client-account-status-grid strong,
html[data-theme="dark"] .admin-shell .client-account-route-grid strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .client-account-summary p,
html[data-theme="dark"] .admin-shell .client-account-route-focus small,
html[data-theme="dark"] .admin-shell .client-account-status-grid p,
html[data-theme="dark"] .admin-shell .client-account-route-grid small {
  color: #94a3b8;
}

html[data-theme="dark"] .admin-shell .client-account-route-focus {
  border-color: #1e3a5f;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(15, 23, 42, 0.92)),
    #0f182b;
}

html[data-theme="dark"] .admin-shell .client-account-route-scope {
  border-color: rgba(125, 211, 252, 0.24);
  background: rgba(15, 23, 42, 0.82);
  color: #bae6fd;
}

.admin-shell .client-work-route-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.78rem;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 32%),
    #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.055);
}

.admin-shell .client-work-route-panel h3 {
  margin: 0.18rem 0 0;
  color: #111827;
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.admin-shell .client-work-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.admin-shell .client-work-route-card,
.admin-shell .client-work-route-empty {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid #dbeafe;
  border-radius: 0.82rem;
  background: rgba(248, 250, 252, 0.9);
}

.admin-shell .client-work-route-card {
  display: grid;
  gap: 0.45rem;
  color: #111827;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-shell .client-work-route-card:hover,
.admin-shell .client-work-route-card:focus-visible {
  border-color: #0ea5e9;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.15);
  transform: translateY(-1px);
}

.admin-shell .client-work-route-status {
  justify-self: start;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-shell .client-work-route-card strong,
.admin-shell .client-work-route-empty strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.18;
}

.admin-shell .client-work-route-card small,
.admin-shell .client-work-route-empty p {
  margin: 0;
  color: #64748b;
  line-height: 1.42;
}

.admin-shell .client-work-route-meta,
.admin-shell .client-work-route-assignment {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-shell .client-work-route-meta span,
.admin-shell .client-work-route-assignment em {
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.admin-shell .client-work-route-assignment em {
  background: #ecfdf5;
  color: #047857;
}

.admin-shell .client-work-route-empty {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

html[data-theme="dark"] .admin-shell .client-work-route-panel {
  border-color: #22304b;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 32%),
    #0b1220;
}

html[data-theme="dark"] .admin-shell .client-work-route-card,
html[data-theme="dark"] .admin-shell .client-work-route-empty {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .client-work-route-panel h3,
html[data-theme="dark"] .admin-shell .client-work-route-card strong,
html[data-theme="dark"] .admin-shell .client-work-route-empty strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .client-work-route-card small,
html[data-theme="dark"] .admin-shell .client-work-route-empty p {
  color: #94a3b8;
}

html[data-theme="dark"] .admin-shell .client-work-route-meta span {
  background: #111c31;
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .client-work-route-assignment em {
  background: rgba(16, 185, 129, 0.14);
  color: #86efac;
}

.admin-shell .client-next-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.78rem;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.055);
}

.admin-shell .client-next-panel h3 {
  margin: 0.18rem 0 0;
  color: #111827;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.admin-shell .client-next-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.68rem;
}

.admin-shell .client-next-card {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 8.2rem;
  gap: 0.38rem;
  padding: 0.85rem;
  border: 1px solid #e2e8f0;
  border-left-width: 0.32rem;
  border-radius: 0.72rem;
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
}

.admin-shell .client-next-card:hover,
.admin-shell .client-next-card:focus-visible {
  border-color: #0ea5e9;
  background: #f0f9ff;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.13);
  transform: translateY(-1px);
}

.admin-shell .client-next-card span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-shell .client-next-card strong {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.2;
}

.admin-shell .client-next-card small {
  color: #64748b;
  font-size: 0.83rem;
  line-height: 1.42;
}

.admin-shell .client-next-card em {
  align-self: end;
  color: #b45309;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 900;
}

.admin-shell .client-next-high {
  border-left-color: #ef4444;
}

.admin-shell .client-next-medium {
  border-left-color: #2563eb;
}

.admin-shell .client-next-low {
  border-left-color: #0ea5e9;
}

.admin-shell .client-next-ok {
  border-left-color: #16a34a;
}

html[data-theme="dark"] .admin-shell .client-next-panel {
  border-color: #22304b;
  background: #0b1220;
}

html[data-theme="dark"] .admin-shell .client-next-card {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .client-next-panel h3,
html[data-theme="dark"] .admin-shell .client-next-card strong {
  color: #f8fafc;
}

/* Work operational memory */
.admin-shell .work-memory-strip {
  border-left: 0.35rem solid #0f766e;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.14), transparent 34%),
    #ffffff;
}

.admin-shell .work-memory-strip-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.admin-shell .work-memory-strip-heading h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.15;
}

.admin-shell .work-memory-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-shell .work-memory-strip-card {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
  padding: 0.82rem 0.88rem;
  border: 1px solid #99f6e4;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #f0fdfa, #ffffff);
  color: #0f172a;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-shell .work-memory-strip-card:hover,
.admin-shell .work-memory-strip-card:focus-visible {
  border-color: #0f766e;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.15);
  transform: translateY(-1px);
}

.admin-shell .work-memory-strip-card span {
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-shell .work-memory-strip-card strong {
  font-size: 0.98rem;
  line-height: 1.18;
}

.admin-shell .work-memory-strip-card small {
  align-items: center;
  color: #64748b;
  display: inline-flex;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 850;
}

.admin-shell .work-memory-strip-count {
  align-items: center;
  background: #ccfbf1;
  border-radius: 999px;
  color: #115e59;
  display: inline-flex;
  font-style: normal;
  font-weight: 950;
  justify-content: center;
  min-width: 1.7rem;
  padding: 0.18rem 0.45rem;
}

.admin-shell .work-order-quick-notes {
  margin-top: 0.45rem;
}

.admin-shell .work-order-quick-notes li {
  padding: 0.38rem 0.45rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  background: #f8fafc;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-shell .work-order-quick-notes span {
  display: inline-flex;
  margin-right: 0.28rem;
  color: #0f766e;
  font-weight: 900;
}

.admin-shell .work-order-quick-note {
  margin-top: 0.45rem;
}

.admin-shell .work-order-quick-note summary {
  cursor: pointer;
  color: #0f172a;
  font-weight: 900;
}

.admin-shell .work-order-quick-note textarea {
  min-height: 4rem;
  resize: vertical;
}

.admin-shell .work-order-quick-note select,
.admin-shell .work-order-quick-note textarea {
  width: 100%;
}

html[data-theme="dark"] .admin-shell .work-order-quick-notes li {
  border-color: #22304b;
  background: #0f182b;
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .work-order-quick-notes span {
  color: #5eead4;
}

html[data-theme="dark"] .admin-shell .work-order-quick-note summary {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .work-memory-strip {
  border-color: #14b8a6;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 34%),
    #0f182b;
}

html[data-theme="dark"] .admin-shell .work-memory-strip-heading h3,
html[data-theme="dark"] .admin-shell .work-memory-strip-card strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .work-memory-strip-card {
  border-color: #134e4a;
  background: #0b1220;
}

html[data-theme="dark"] .admin-shell .work-memory-strip-card span {
  color: #5eead4;
}

html[data-theme="dark"] .admin-shell .work-memory-strip-card small {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .work-memory-strip-count {
  background: #134e4a;
  color: #99f6e4;
}

@media (max-width: 760px) {
  .admin-shell .work-memory-strip-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .work-memory-strip-card {
    padding: 0.95rem;
  }
}

/* Customer special conditions */
.admin-shell .customer-special-condition {
  margin: 0.42rem 0 0;
  padding: 0.48rem 0.55rem;
  border: 1px solid #fde68a;
  border-radius: 0.6rem;
  background: #fffbeb;
  color: #713f12;
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-shell .customer-special-condition span {
  display: inline-flex;
  margin-right: 0.32rem;
  color: #92400e;
  font-weight: 950;
}

.admin-shell .customer-special-advice {
  grid-column: 1 / -1;
  margin-top: -0.2rem;
}

.admin-shell .dashboard-day-semaphore {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 1.35rem;
  box-shadow: var(--admin-shadow-soft);
  margin: 1rem 0;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.admin-shell .dashboard-day-semaphore-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin-shell .dashboard-day-semaphore-head h3 {
  margin: 0;
}

.admin-shell .dashboard-day-focus {
  align-items: center;
  border: 1px solid #bbf7d0;
  border-radius: 1.15rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 0.9rem;
  padding: 1rem;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 34%),
    linear-gradient(135deg, #f0fdf4, #ffffff);
}

.admin-shell .dashboard-day-focus.is-orange {
  border-color: #fed7aa;
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.16), transparent 34%),
    linear-gradient(135deg, #fff7ed, #ffffff);
}

.admin-shell .dashboard-day-focus.is-red {
  border-color: #fecdd3;
  background:
    radial-gradient(circle at top right, rgba(244, 63, 94, 0.14), transparent 34%),
    linear-gradient(135deg, #fff1f2, #ffffff);
}

.admin-shell .dashboard-day-focus .eyebrow,
.admin-shell .dashboard-day-focus strong,
.admin-shell .dashboard-day-focus small {
  display: block;
}

.admin-shell .dashboard-day-focus-priority {
  display: inline-flex !important;
  width: fit-content;
  margin: 0 0 0.45rem !important;
  padding: 0.28rem 0.62rem !important;
  border-radius: 999px;
  background: #1d4ed8 !important;
  color: #ffffff !important;
  font-size: 0.76rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em;
}

.admin-shell .dashboard-day-focus span {
  display: inline-flex;
  width: fit-content;
  margin: 0.2rem 0 0.35rem;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #166534;
  font-size: 0.78rem;
  font-weight: 950;
}

.admin-shell .dashboard-day-focus.is-orange span {
  color: #1d4ed8;
}

.admin-shell .dashboard-day-focus.is-red span {
  color: #991b1b;
}

.admin-shell .dashboard-day-focus strong {
  color: #111827;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.1;
}

.admin-shell .dashboard-day-focus small {
  max-width: 58rem;
  margin-top: 0.35rem;
  color: #475569;
  font-weight: 750;
  line-height: 1.45;
}

.admin-shell .dashboard-day-focus .btn {
  white-space: nowrap;
}

.admin-shell .dashboard-day-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 0.9rem;
}

.admin-shell .dashboard-day-shortcuts a {
  display: grid;
  gap: 0.22rem;
  min-height: 4.5rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: #f8fbff;
  color: #1e3a8a;
  text-decoration: none;
}

.admin-shell .dashboard-day-shortcuts a:hover,
.admin-shell .dashboard-day-shortcuts a:focus-visible {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.admin-shell .dashboard-day-shortcuts strong {
  color: #1e3a8a;
  font-size: 0.98rem;
}

.admin-shell .dashboard-day-shortcuts small {
  color: #475569;
  font-weight: 750;
  line-height: 1.35;
}

.admin-shell .dashboard-day-semaphore-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-shell .dashboard-day-semaphore-card {
  border: 1px solid var(--admin-border);
  border-radius: 1.1rem;
  color: var(--admin-text);
  display: grid;
  gap: 0.25rem;
  min-height: 7rem;
  padding: 1rem;
  text-decoration: none;
}

.admin-shell .dashboard-day-semaphore-card span {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-shell .dashboard-day-semaphore-card em {
  display: inline-flex;
  width: fit-content;
  margin: 0.05rem 0 0.15rem;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e40af;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.admin-shell .dashboard-day-semaphore-card strong {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.95;
}

.admin-shell .dashboard-day-semaphore-card small {
  color: var(--admin-muted);
  font-weight: 750;
}

.admin-shell .dashboard-day-semaphore-card.is-green {
  background: linear-gradient(135deg, #ecfdf3, #ffffff);
  border-color: #bbf7d0;
}

.admin-shell .dashboard-day-semaphore-card.is-orange {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border-color: #fed7aa;
}

.admin-shell .dashboard-day-semaphore-card.is-red {
  background: linear-gradient(135deg, #fff1f2, #ffffff);
  border-color: #fecdd3;
}

html[data-theme="dark"] .admin-shell .dashboard-day-focus {
  border-color: rgba(74, 222, 128, 0.28);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(22, 38, 31, 0.94));
}

html[data-theme="dark"] .admin-shell .dashboard-day-focus.is-orange {
  border-color: rgba(251, 146, 60, 0.34);
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(43, 30, 19, 0.94));
}

html[data-theme="dark"] .admin-shell .dashboard-day-focus.is-red {
  border-color: rgba(251, 113, 133, 0.36);
  background:
    radial-gradient(circle at top right, rgba(244, 63, 94, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(48, 22, 29, 0.94));
}

html[data-theme="dark"] .admin-shell .dashboard-day-focus span {
  background: rgba(255, 255, 255, 0.08);
  color: #86efac;
}

html[data-theme="dark"] .admin-shell .dashboard-day-focus-priority {
  background: #60a5fa !important;
  color: #082f49 !important;
}

html[data-theme="dark"] .admin-shell .dashboard-day-focus.is-orange span {
  color: #fdba74;
}

html[data-theme="dark"] .admin-shell .dashboard-day-focus.is-red span {
  color: #fda4af;
}

html[data-theme="dark"] .admin-shell .dashboard-day-focus strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .dashboard-day-focus small {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .dashboard-day-shortcuts a {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(15, 23, 42, 0.9);
  color: #bfdbfe;
}

html[data-theme="dark"] .admin-shell .dashboard-day-shortcuts a:hover,
html[data-theme="dark"] .admin-shell .dashboard-day-shortcuts a:focus-visible {
  border-color: rgba(147, 197, 253, 0.62);
  background: rgba(30, 41, 59, 0.96);
}

html[data-theme="dark"] .admin-shell .dashboard-day-shortcuts strong {
  color: #dbeafe;
}

html[data-theme="dark"] .admin-shell .dashboard-day-shortcuts small {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .dashboard-day-semaphore-card em {
  background: rgba(96, 165, 250, 0.18);
  color: #bfdbfe;
}

/* Customer message library */
.admin-shell .customer-message-library {
  border: 1px solid var(--admin-border);
  border-radius: 0.9rem;
  padding: 0.45rem 0.6rem;
}

.admin-shell .customer-message-library summary {
  cursor: pointer;
  font-weight: 900;
}

.admin-shell .customer-message-library-panel {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.7rem;
  min-width: min(28rem, 78vw);
}

.admin-shell .customer-message-library-panel textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.admin-shell .customer-message-library-status {
  color: var(--admin-muted);
  font-weight: 850;
}

.admin-shell .customer-message-library-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Offline field mode */
.admin-shell .admin-offline-status {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 0.45rem 0.7rem;
}

.admin-shell .work-offline-draft-status,
.admin-shell .work-execution-offline-status {
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.85rem;
  color: #1d4ed8;
  font-weight: 850;
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.65rem 0.8rem;
}

/* Work signature pad */
.admin-shell .work-signature-pad {
  display: grid;
  gap: 0.45rem;
}

.admin-shell .work-signature-pad span {
  color: var(--admin-text);
  font-weight: 900;
}

.admin-shell .work-signature-pad canvas {
  background: #ffffff;
  border: 1px dashed var(--admin-border-strong);
  border-radius: 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  max-width: 100%;
  touch-action: none;
}

.admin-shell .work-signature-pad small {
  color: var(--admin-muted);
  font-weight: 800;
}

.admin-shell .work-signature-preview {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 0.65rem;
  display: block;
  max-height: 4.5rem;
  max-width: 12rem;
  padding: 0.25rem;
}

/* Work mobile field usability */
@media (max-width: 720px) {
  .admin-shell .work-next-action-panel,
  .admin-shell .work-reminder-panel,
  .admin-shell .pending-materials-panel,
  .admin-shell .work-route-today-panel {
    border-radius: 1rem;
    margin-inline: -0.15rem;
    padding: 1rem;
  }

  .admin-shell .work-next-action-actions,
  .admin-shell .work-execution-actions,
  .admin-shell .customer-message-library-actions,
  .admin-shell .work-route-today-contact {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-shell .work-next-action-actions .btn,
  .admin-shell .work-next-action-actions button,
  .admin-shell .work-execution-actions .btn,
  .admin-shell .work-execution-actions button,
  .admin-shell .customer-message-library-actions .btn,
  .admin-shell .customer-message-library-actions button,
  .admin-shell .work-route-today-contact a,
  .admin-shell .work-route-today-contact button {
    justify-content: center;
    min-height: 2.85rem;
    width: 100%;
  }

  .admin-shell .work-order-quick-note,
  .admin-shell .work-order-execution,
  .admin-shell .customer-message-library {
    border-radius: 0.95rem;
    margin-top: 0.55rem;
  }

  .admin-shell .work-order-quick-note summary,
  .admin-shell .work-order-execution summary,
  .admin-shell .customer-message-library summary {
    min-height: 2.75rem;
    padding: 0.65rem 0.2rem;
  }

  .admin-shell .work-order-checklist-progress {
    white-space: normal;
  }

  .admin-shell .work-checklist-toggle-form,
  .admin-shell .pending-material-inline-form,
  .admin-shell .work-reminder-done-form,
  .admin-shell .pending-material-purchased-form {
    width: 100%;
  }

  .admin-shell .work-checklist-toggle-form button,
  .admin-shell .pending-material-inline-form button,
  .admin-shell .work-reminder-done-form button,
  .admin-shell .pending-material-purchased-form button {
    min-height: 2.7rem;
    width: 100%;
  }

  .admin-shell .pending-material-group-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-shell .work-signature-pad canvas {
    height: auto;
    width: 100%;
  }

  .admin-shell .work-signature-preview {
    max-height: 5.5rem;
    max-width: 100%;
  }
}

/* Field operator mode */
.admin-shell .field-operator-scope {
  align-items: center;
  background: linear-gradient(135deg, #ecfeff, #ffffff);
  border-left: 0.35rem solid #0891b2;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.admin-shell .field-operator-scope strong {
  background: #cffafe;
  border-radius: 999px;
  color: #155e75;
  font-weight: 950;
  padding: 0.55rem 0.75rem;
  white-space: nowrap;
}

.admin-shell .work-order-customer-contact {
  margin-top: 0.35rem;
}

.admin-shell .work-order-customer-contact li {
  color: var(--admin-muted);
  font-size: 0.82rem;
}

.admin-shell .work-order-customer-contact span {
  color: var(--admin-text);
  font-weight: 950;
}

.admin-shell .work-order-customer-contact a {
  color: inherit;
  font-weight: 800;
}

/* Pending material purchase queue */
.admin-shell .pending-materials-panel {
  border-left: 0.35rem solid #f97316;
}

.admin-shell .pending-materials-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.admin-shell .pending-material-groups {
  display: grid;
  gap: 1rem;
}

.admin-shell .pending-material-panel-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.admin-shell .pending-material-panel-actions strong {
  color: #1d4ed8;
  font-weight: 950;
}

.admin-shell .pending-material-copy-status {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 0.85rem;
  color: #1d4ed8;
  font-size: 0.86rem;
  font-weight: 850;
  margin: 0;
  padding: 0.65rem 0.8rem;
  white-space: pre-wrap;
}

.admin-shell .pending-material-group {
  background: rgba(255, 247, 237, 0.58);
  border: 1px solid #fed7aa;
  border-radius: 1.15rem;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}

.admin-shell .pending-material-group-heading {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.admin-shell .pending-material-group-heading strong {
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 950;
}

.admin-shell .pending-material-group-heading span {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-shell .pending-material-card {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border: 1px solid #fed7aa;
  border-radius: 1rem;
  color: var(--admin-text);
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  text-decoration: none;
}

.admin-shell .pending-material-card a {
  color: inherit;
  display: grid;
  gap: 0.25rem;
  text-decoration: none;
}

.admin-shell .pending-material-card span {
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-shell .pending-material-card strong {
  font-size: 1rem;
}

.admin-shell .pending-material-card small,
.admin-shell .pending-material-card em {
  color: var(--admin-muted);
  font-style: normal;
  font-weight: 750;
}

.admin-shell .pending-material-purchased-form,
.admin-shell .pending-material-inline-form {
  margin-top: 0.45rem;
}

.admin-shell .pending-material-purchased-form button,
.admin-shell .pending-material-inline-form button {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

.admin-shell .pending-material-inline-form {
  display: inline-flex;
  margin-left: 0.35rem;
}

/* Work reminder queue */
.admin-shell .work-reminder-panel {
  border-left: 0.35rem solid #0ea5e9;
}

.admin-shell .work-reminder-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.admin-shell .work-reminder-panel-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.admin-shell .work-reminder-panel-actions strong {
  color: #075985;
  font-weight: 950;
}

.admin-shell .work-reminder-copy-status {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.85rem;
  color: #075985;
  font-size: 0.86rem;
  font-weight: 850;
  margin: 0;
  padding: 0.65rem 0.8rem;
  white-space: pre-wrap;
}

.admin-shell .work-reminder-card {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  color: var(--admin-text);
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
}

.admin-shell .work-reminder-card a {
  color: inherit;
  display: grid;
  gap: 0.25rem;
  text-decoration: none;
}

.admin-shell .work-reminder-card span {
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-shell .work-reminder-card small,
.admin-shell .work-reminder-card em {
  color: var(--admin-muted);
  font-style: normal;
  font-weight: 750;
}

.admin-shell .work-reminder-done-form {
  margin-top: 0.45rem;
}

.admin-shell .work-reminder-done-form button {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

@media (max-width: 760px) {
  .admin-shell .dashboard-day-semaphore-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-shell .dashboard-day-focus {
    grid-template-columns: 1fr;
  }

  .admin-shell .dashboard-day-focus .btn {
    width: 100%;
  }

  .admin-shell .dashboard-day-semaphore-grid {
    grid-template-columns: 1fr;
  }
}

.admin-shell .customer-special-field {
  min-height: 4.5rem;
  resize: vertical;
}

.admin-shell .customer-special-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: -0.25rem;
}

.admin-shell .customer-special-suggestions button {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 0.42rem 0.68rem;
}

.admin-shell .customer-special-suggestions button:hover,
.admin-shell .customer-special-suggestions button:focus-visible {
  border-color: #fb923c;
  background: #ffedd5;
  outline: 0;
}

.admin-shell .customer-form-preview {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.28rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 1rem;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.admin-shell .customer-form-preview span,
.admin-shell .customer-form-preview small {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-shell .customer-form-preview strong {
  color: #0f172a;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 950;
}

.admin-shell .customer-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.8rem 0 1rem;
}

.admin-shell .customer-step-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  color: #173a8a;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.admin-shell .customer-step-strip strong {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
  flex: 0 0 auto;
}

html[data-theme="dark"] .admin-shell .customer-special-condition {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(120, 53, 15, 0.22);
  color: #fde68a;
}

html[data-theme="dark"] .admin-shell .customer-special-condition span {
  color: #fbbf24;
}

html[data-theme="dark"] .admin-shell .customer-special-suggestions button {
  border-color: rgba(251, 146, 60, 0.34);
  background: rgba(120, 53, 15, 0.22);
  color: #fed7aa;
}

html[data-theme="dark"] .admin-shell .customer-special-suggestions button:hover,
html[data-theme="dark"] .admin-shell .customer-special-suggestions button:focus-visible {
  border-color: #fb923c;
  background: rgba(154, 52, 18, 0.35);
}

html[data-theme="dark"] .admin-shell .customer-form-preview {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.28), rgba(15, 23, 42, 0.92));
}

html[data-theme="dark"] .admin-shell .customer-form-preview span,
html[data-theme="dark"] .admin-shell .customer-form-preview small {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .customer-form-preview strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .customer-step-strip span {
  border-color: rgba(147, 197, 253, 0.28);
  background: linear-gradient(135deg, #0f2744, #111827);
  color: #dbeafe;
}

html[data-theme="dark"] .admin-shell .customer-step-strip strong {
  background: #60a5fa;
  color: #0f172a;
}

@media (max-width: 640px) {
  .admin-shell .customer-step-strip {
    position: sticky;
    top: 0.75rem;
    z-index: 2;
    grid-template-columns: 1fr;
    gap: 0.42rem;
  }

  .admin-shell .customer-step-strip span {
    justify-content: flex-start;
    min-height: 2.55rem;
    padding-inline: 0.8rem;
  }
}

/* Invoice warranty control */
.admin-shell .invoice-warranty-badge {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  align-items: center;
  margin: 0.42rem 0 0;
  padding: 0.36rem 0.52rem;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #14532d;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-shell .invoice-warranty-badge span {
  color: #166534;
  font-weight: 950;
}

.admin-shell .invoice-warranty-expired {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.admin-shell .invoice-warranty-expired span {
  color: #b91c1c;
}

html[data-theme="dark"] .admin-shell .invoice-warranty-badge {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(20, 83, 45, 0.26);
  color: #bbf7d0;
}

html[data-theme="dark"] .admin-shell .invoice-warranty-badge span {
  color: #86efac;
}

html[data-theme="dark"] .admin-shell .invoice-warranty-expired {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.24);
  color: #fecaca;
}

html[data-theme="dark"] .admin-shell .invoice-warranty-expired span {
  color: #fca5a5;
}

/* Support warranty context */
.admin-shell .support-warranty-panel {
  border-left: 0.35rem solid #0ea5e9;
}

.admin-shell .support-warranty-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.admin-shell .support-warranty-card {
  border: 1px solid var(--admin-border);
  border-radius: 1rem;
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
}

.admin-shell .support-warranty-card.is-active,
.admin-shell .support-ticket-warranty.is-active {
  background: #ecfdf3;
  color: #166534;
}

.admin-shell .support-warranty-card.is-expired,
.admin-shell .support-ticket-warranty.is-expired {
  background: #fff1f2;
  color: #9f1239;
}

.admin-shell .support-warranty-card span {
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-shell .support-ticket-warranty,
.admin-shell .support-warranty-hint {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.32rem 0.55rem;
}

.admin-shell .support-warranty-hint {
  background: #eff6ff;
  color: #1d4ed8;
  margin: -0.2rem 0 0;
}

.admin-shell .support-customer-special-hint {
  margin: -0.2rem 0 0;
}

.admin-shell .support-ticket-special-condition {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  color: #713f12;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.32rem 0.55rem;
}

html[data-theme="dark"] .admin-shell .client-next-card small {
  color: #94a3b8;
}

.admin-shell .client-preview-sales-panel {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.95rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.78rem;
  background: #f8fafc;
}

.admin-shell .client-preview-sales-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.admin-shell .client-preview-sales-head > div {
  min-width: 0;
}

.admin-shell .client-preview-sales-head h4 {
  margin: 0.2rem 0 0;
  color: #111827;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.admin-shell .client-preview-sales-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.68rem;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #1d4ed8;
  font-size: 0.86rem;
  font-weight: 950;
  white-space: nowrap;
}

.admin-shell .client-preview-kpi-grid,
.admin-shell .client-preview-signal-grid,
.admin-shell .client-preview-fit-grid {
  display: grid;
  gap: 0.72rem;
  min-width: 0;
}

.admin-shell .client-preview-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-shell .client-preview-signal-grid,
.admin-shell .client-preview-fit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-shell .client-preview-kpi-grid article,
.admin-shell .client-preview-fit-grid article,
.admin-shell .client-preview-module-card,
.admin-shell .client-preview-signal {
  min-width: 0;
  padding: 0.86rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  background: #ffffff;
}

.admin-shell .client-preview-kpi-grid span,
.admin-shell .client-preview-signal span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-shell .client-preview-kpi-grid strong,
.admin-shell .client-preview-signal strong,
.admin-shell .client-preview-module-card strong {
  display: block;
  margin-top: 0.28rem;
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.2;
}

.admin-shell .client-preview-kpi-grid p,
.admin-shell .client-preview-fit-grid p,
.admin-shell .client-preview-signal p,
.admin-shell .client-preview-module-card p {
  margin-top: 0.36rem;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.admin-shell .client-preview-signal {
  display: grid;
  gap: 0.3rem;
  border-left-width: 0.32rem;
  color: #1f2937;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.055);
}

.admin-shell .client-preview-signal:hover,
.admin-shell .client-preview-signal:focus-visible {
  border-color: #cbd5e1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.admin-shell .client-preview-signal em {
  margin-top: 0.18rem;
  color: #b45309;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.admin-shell .client-preview-signal-high {
  border-left-color: #ef4444;
}

.admin-shell .client-preview-signal-medium {
  border-left-color: #2563eb;
}

.admin-shell .client-preview-signal-low {
  border-left-color: #0ea5e9;
}

.admin-shell .client-preview-signal-ok {
  border-left-color: #16a34a;
}

.admin-shell .client-preview-fit-grid h4,
.admin-shell .client-preview-module-card h4 {
  margin: 0;
  color: #111827;
  font-size: 0.96rem;
}

.admin-shell .client-preview-module-card {
  display: grid;
  gap: 0.8rem;
}

html[data-theme="dark"] .admin-shell .client-preview-sales-panel {
  border-color: #22304b;
  background: #0b1220;
}

html[data-theme="dark"] .admin-shell .client-preview-kpi-grid article,
html[data-theme="dark"] .admin-shell .client-preview-fit-grid article,
html[data-theme="dark"] .admin-shell .client-preview-module-card,
html[data-theme="dark"] .admin-shell .client-preview-signal {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .client-preview-sales-head h4,
html[data-theme="dark"] .admin-shell .client-preview-kpi-grid strong,
html[data-theme="dark"] .admin-shell .client-preview-signal strong,
html[data-theme="dark"] .admin-shell .client-preview-module-card strong,
html[data-theme="dark"] .admin-shell .client-preview-fit-grid h4,
html[data-theme="dark"] .admin-shell .client-preview-module-card h4 {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .client-preview-kpi-grid p,
html[data-theme="dark"] .admin-shell .client-preview-fit-grid p,
html[data-theme="dark"] .admin-shell .client-preview-signal p,
html[data-theme="dark"] .admin-shell .client-preview-module-card p {
  color: #94a3b8;
}

@media (max-width: 1180px) {
  .admin-shell .client-account-panel,
  .admin-shell .client-account-status-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .client-next-grid,
  .admin-shell .client-work-route-grid,
  .admin-shell .client-account-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell .client-preview-kpi-grid,
  .admin-shell .client-preview-signal-grid,
  .admin-shell .client-preview-fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-shell .section-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-shell .section-heading-row .btn {
    width: 100%;
  }

  .admin-shell .operational-agenda-item a {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .admin-shell .agenda-action {
    grid-column: 2;
    justify-self: start;
  }

  .admin-shell .client-preview-sales-head {
    flex-direction: column;
  }

  .admin-shell .client-account-actions,
  .admin-shell .client-account-route-focus,
  .admin-shell .client-account-route-grid,
  .admin-shell .client-account-status-grid,
  .admin-shell .client-next-grid,
  .admin-shell .client-work-route-grid,
  .admin-shell .client-preview-kpi-grid,
  .admin-shell .client-preview-signal-grid,
  .admin-shell .client-preview-fit-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .client-account-actions .btn,
  .admin-shell .client-account-actions .btn-outline,
  .admin-shell .client-next-panel .section-heading-row .btn,
  .admin-shell .client-next-panel .section-heading-row .btn-outline,
  .admin-shell .client-work-route-panel .section-heading-row .btn,
  .admin-shell .client-work-route-panel .section-heading-row .btn-outline {
    width: 100%;
  }
}

.admin-shell .work-client-scope {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34%),
    #f8fbff;
}

.admin-shell .work-client-scope strong,
.admin-shell .work-client-scope small {
  display: block;
}

.admin-shell .work-client-scope strong {
  color: #0f172a;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.admin-shell .work-client-scope small {
  margin-top: 0.25rem;
  color: #475569;
  line-height: 1.45;
}

html[data-theme="dark"] .admin-shell .work-client-scope {
  border-color: rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34%),
    #0f182b;
}

html[data-theme="dark"] .admin-shell .work-client-scope strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .work-client-scope small {
  color: #cbd5e1;
}

.admin-shell .work-route-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.85rem 0;
}

.admin-shell .work-route-shortcut,
.admin-shell .work-route-today-card {
  min-width: 0;
  border: 1px solid #dbeafe;
  border-radius: 0.78rem;
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-shell .work-route-shortcut {
  display: grid;
  gap: 0.22rem;
  padding: 0.78rem 0.85rem;
}

.admin-shell .work-route-shortcut:hover,
.admin-shell .work-route-shortcut:focus-visible,
.admin-shell .work-route-shortcut.is-active,
.admin-shell .work-route-today-card:hover,
.admin-shell .work-route-today-card:focus-visible {
  border-color: #0ea5e9;
  background: #f0f9ff;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.13);
  transform: translateY(-1px);
}

.admin-shell .work-route-shortcut strong,
.admin-shell .work-route-today-card strong {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.18;
}

.admin-shell .work-route-shortcut span,
.admin-shell .work-route-today-card small {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-shell .work-route-today-panel {
  display: grid;
  gap: 0.75rem;
  margin: 0.9rem 0;
  padding: 0.9rem;
  border: 1px solid #dbeafe;
  border-radius: 0.82rem;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.11), transparent 34%),
    #ffffff;
}

.admin-shell .work-route-today-panel h4 {
  margin: 0.12rem 0 0;
  color: #111827;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.15;
}

.admin-shell .work-route-today-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-shell .work-route-today-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.78rem;
}

.admin-shell .work-route-today-card-main {
  color: inherit;
  display: grid;
  gap: 0.35rem;
  text-decoration: none;
}

.admin-shell .work-route-today-card-main:focus-visible {
  border-radius: 0.55rem;
  outline: 3px solid rgba(14, 165, 233, 0.34);
  outline-offset: 0.18rem;
}

.admin-shell .work-route-today-card span {
  justify-self: start;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-shell .work-route-today-card em {
  justify-self: start;
  padding: 0.24rem 0.48rem;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.admin-shell .work-route-today-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.1rem;
}

.admin-shell .work-route-today-contact a {
  background: #e0f2fe;
  border-radius: 999px;
  color: #075985;
  font-size: 0.76rem;
  font-weight: 950;
  padding: 0.3rem 0.55rem;
  text-decoration: none;
}

.admin-shell .work-route-today-contact a:hover,
.admin-shell .work-route-today-contact a:focus-visible {
  background: #bae6fd;
  outline: none;
}

html[data-theme="dark"] .admin-shell .work-route-shortcut,
html[data-theme="dark"] .admin-shell .work-route-today-card,
html[data-theme="dark"] .admin-shell .work-route-today-panel {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .work-route-shortcut:hover,
html[data-theme="dark"] .admin-shell .work-route-shortcut:focus-visible,
html[data-theme="dark"] .admin-shell .work-route-shortcut.is-active,
html[data-theme="dark"] .admin-shell .work-route-today-card:hover,
html[data-theme="dark"] .admin-shell .work-route-today-card:focus-visible {
  border-color: #38bdf8;
  background: #111c31;
}

html[data-theme="dark"] .admin-shell .work-route-today-panel {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 34%),
    #0b1220;
}

html[data-theme="dark"] .admin-shell .work-route-shortcut strong,
html[data-theme="dark"] .admin-shell .work-route-today-panel h4,
html[data-theme="dark"] .admin-shell .work-route-today-card strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .work-route-shortcut span,
html[data-theme="dark"] .admin-shell .work-route-today-card small {
  color: #94a3b8;
}

html[data-theme="dark"] .admin-shell .work-route-today-card em {
  background: #111c31;
  color: #cbd5e1;
}

@media (max-width: 1180px) {
  .admin-shell .work-route-today-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-shell .work-client-scope,
  .admin-shell .work-route-shortcuts,
  .admin-shell .work-route-today-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .work-route-today-panel .section-heading-row .btn,
  .admin-shell .work-route-today-panel .section-heading-row .btn-outline {
    width: 100%;
  }
}

/* Admin shell closing layout contract: the top navigation owns desktop admin flow. */
.admin-shell {
  overflow-x: hidden;
}

html[data-theme="light"] body.admin-shell .admin-layout,
html[data-theme="dark"] body.admin-shell .admin-layout,
body.admin-shell .admin-layout,
.admin-shell .admin-layout {
  display: block;
  width: min(95%, 1800px);
  max-width: min(95%, 1800px);
  margin: 0 auto;
  padding: 0.9rem 0 2.5rem;
}

html[data-theme="light"] body.admin-shell .admin-rail,
html[data-theme="dark"] body.admin-shell .admin-rail,
body.admin-shell .admin-rail,
.admin-shell .admin-rail {
  display: none;
}

html[data-theme="light"] body.admin-shell .admin-content,
html[data-theme="dark"] body.admin-shell .admin-content,
body.admin-shell .admin-content,
.admin-shell .admin-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html[data-theme="light"] body.admin-shell .admin-topbar,
html[data-theme="dark"] body.admin-shell .admin-topbar,
body.admin-shell .admin-topbar,
.admin-shell .admin-topbar {
  box-sizing: border-box;
  max-width: calc(100% - 1.6rem);
}

html[data-theme="light"] body.admin-shell .admin-topbar .user-meta,
html[data-theme="dark"] body.admin-shell .admin-topbar .user-meta,
body.admin-shell .admin-topbar .user-meta,
.admin-shell .admin-topbar .user-meta {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  flex-wrap: wrap;
}

/* Admin mobile topbar contract: menus and help must not widen the viewport. */
html[data-theme="light"] body.admin-shell .table-wrap,
html[data-theme="dark"] body.admin-shell .table-wrap,
body.admin-shell .table-wrap,
.admin-shell .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

html[data-theme="light"] body.admin-shell .admin-help-popover,
html[data-theme="dark"] body.admin-shell .admin-help-popover,
body.admin-shell .admin-help-popover,
.admin-shell .admin-help-popover {
  display: none;
  max-width: calc(100vw - 1rem);
}

html[data-theme="light"] body.admin-shell .admin-help-trigger:hover .admin-help-popover,
html[data-theme="light"] body.admin-shell .admin-help-trigger:focus-visible .admin-help-popover,
html[data-theme="dark"] body.admin-shell .admin-help-trigger:hover .admin-help-popover,
html[data-theme="dark"] body.admin-shell .admin-help-trigger:focus-visible .admin-help-popover,
body.admin-shell .admin-help-trigger:hover .admin-help-popover,
body.admin-shell .admin-help-trigger:focus-visible .admin-help-popover,
.admin-shell .admin-help-trigger:hover .admin-help-popover,
.admin-shell .admin-help-trigger:focus-visible .admin-help-popover {
  display: grid;
}

html[data-theme="light"] body.admin-shell .admin-help-popover strong,
html[data-theme="light"] body.admin-shell .admin-help-popover span,
html[data-theme="dark"] body.admin-shell .admin-help-popover strong,
html[data-theme="dark"] body.admin-shell .admin-help-popover span,
body.admin-shell .admin-help-popover strong,
body.admin-shell .admin-help-popover span,
.admin-shell .admin-help-popover strong,
.admin-shell .admin-help-popover span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  html[data-theme="light"] body.admin-shell .admin-topbar,
  html[data-theme="dark"] body.admin-shell .admin-topbar,
  body.admin-shell .admin-topbar,
  .admin-shell .admin-topbar {
    width: calc(100% - 0.75rem);
    max-width: calc(100% - 0.75rem);
    overflow: hidden;
  }

  html[data-theme="light"] body.admin-shell .admin-mega-nav,
  html[data-theme="dark"] body.admin-shell .admin-mega-nav,
  body.admin-shell .admin-mega-nav,
  .admin-shell .admin-mega-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
    overflow-x: visible;
  }

  html[data-theme="light"] body.admin-shell .admin-mega-nav__item,
  html[data-theme="dark"] body.admin-shell .admin-mega-nav__item,
  body.admin-shell .admin-mega-nav__item,
  .admin-shell .admin-mega-nav__item {
    min-width: 0;
  }

  html[data-theme="light"] body.admin-shell .admin-mega-nav__item:nth-child(3),
  html[data-theme="dark"] body.admin-shell .admin-mega-nav__item:nth-child(3),
  body.admin-shell .admin-mega-nav__item:nth-child(3),
  .admin-shell .admin-mega-nav__item:nth-child(3) {
    grid-column: 1 / -1;
  }

  html[data-theme="light"] body.admin-shell .admin-mega-nav__button,
  html[data-theme="dark"] body.admin-shell .admin-mega-nav__button,
  body.admin-shell .admin-mega-nav__button,
  .admin-shell .admin-mega-nav__button {
    justify-content: center;
    width: 100%;
    min-width: 0;
  }

  html[data-theme="light"] body.admin-shell .admin-mega-nav__button > span:not(.admin-mega-nav__button-icon),
  html[data-theme="dark"] body.admin-shell .admin-mega-nav__button > span:not(.admin-mega-nav__button-icon),
  body.admin-shell .admin-mega-nav__button > span:not(.admin-mega-nav__button-icon),
  .admin-shell .admin-mega-nav__button > span:not(.admin-mega-nav__button-icon) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-theme="light"] body.admin-shell .admin-help-popover,
  html[data-theme="dark"] body.admin-shell .admin-help-popover,
  body.admin-shell .admin-help-popover,
  .admin-shell .admin-help-popover {
    right: auto;
    left: 50%;
    width: min(19rem, calc(100vw - 1rem));
    transform: translate(-50%, -0.25rem);
  }

  html[data-theme="light"] body.admin-shell .admin-help-trigger:hover .admin-help-popover,
  html[data-theme="light"] body.admin-shell .admin-help-trigger:focus-visible .admin-help-popover,
  html[data-theme="dark"] body.admin-shell .admin-help-trigger:hover .admin-help-popover,
  html[data-theme="dark"] body.admin-shell .admin-help-trigger:focus-visible .admin-help-popover,
  body.admin-shell .admin-help-trigger:hover .admin-help-popover,
  body.admin-shell .admin-help-trigger:focus-visible .admin-help-popover,
  .admin-shell .admin-help-trigger:hover .admin-help-popover,
  .admin-shell .admin-help-trigger:focus-visible .admin-help-popover {
    transform: translate(-50%, 0);
  }
}

/* Admin heading closing layout contract: headings must stay in normal flow and never cover panels. */
html[data-theme="light"] body.admin-shell .admin-topbar .brand-mini,
html[data-theme="dark"] body.admin-shell .admin-topbar .brand-mini,
body.admin-shell .admin-topbar .brand-mini,
.admin-shell .admin-topbar .brand-mini {
  position: static !important;
}

/* Mantivo professional logo final guard: one sober blue symbol across public, access and admin. */
html[data-theme="light"] body.admin-shell .admin-topbar .brand-mark,
html[data-theme="dark"] body.admin-shell .admin-topbar .brand-mark,
body.admin-shell .admin-topbar .brand-mark,
.admin-shell .admin-topbar .brand-mark,
.public-shell .logo-inline,
.auth-bg .logo-inline {
  display: inline-block !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  border-radius: 0.85rem !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.12) !important;
  object-fit: contain !important;
}

/* Mantivo professional monogram guard: keep the mark crisp, square and unwrapped. */
html[data-theme="light"] body.admin-shell .admin-topbar .brand-mark,
html[data-theme="dark"] body.admin-shell .admin-topbar .brand-mark,
body.admin-shell .admin-topbar .brand-mark,
.admin-shell .admin-topbar .brand-mark,
.public-shell .logo-inline,
.auth-bg .logo-inline {
  flex: 0 0 2.45rem !important;
  padding: 0 !important;
  overflow: visible !important;
  vertical-align: middle !important;
}

html[data-theme="light"] body.admin-shell .admin-topbar .brand-mark::before,
html[data-theme="dark"] body.admin-shell .admin-topbar .brand-mark::before,
body.admin-shell .admin-topbar .brand-mark::before,
.admin-shell .admin-topbar .brand-mark::before {
  content: none !important;
  display: none !important;
}

html[data-theme="light"] body.admin-shell .brand-mini::before,
html[data-theme="dark"] body.admin-shell .brand-mini::before,
body.admin-shell .brand-mini::before,
.admin-shell .brand-mini::before {
  content: none !important;
  display: none !important;
}

html[data-theme="light"] body.admin-shell .admin-layout,
html[data-theme="dark"] body.admin-shell .admin-layout,
body.admin-shell .admin-layout,
.admin-shell .admin-layout {
  display: block !important;
  width: min(95%, 1800px) !important;
  max-width: min(95%, 1800px) !important;
  margin: 0 auto !important;
  padding: 0.9rem 0 2.5rem !important;
}

html[data-theme="light"] body.admin-shell .admin-rail,
html[data-theme="dark"] body.admin-shell .admin-rail,
body.admin-shell .admin-rail,
.admin-shell .admin-rail {
  display: none !important;
  position: static !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html[data-theme="light"] body.admin-shell .admin-content,
html[data-theme="dark"] body.admin-shell .admin-content,
body.admin-shell .admin-content,
.admin-shell .admin-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html[data-theme="light"] body.admin-shell .admin-heading,
html[data-theme="dark"] body.admin-shell .admin-heading,
body.admin-shell .admin-heading,
.admin-shell .admin-heading {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

html[data-theme="light"] body.admin-shell .admin-heading > div:first-child,
html[data-theme="dark"] body.admin-shell .admin-heading > div:first-child,
body.admin-shell .admin-heading > div:first-child,
.admin-shell .admin-heading > div:first-child {
  min-width: 0 !important;
  max-width: 78ch !important;
}

html[data-theme="light"] body.admin-shell .admin-heading .admin-actions,
html[data-theme="dark"] body.admin-shell .admin-heading .admin-actions,
html[data-theme="light"] body.admin-shell .admin-heading .actions,
html[data-theme="dark"] body.admin-shell .admin-heading .actions,
body.admin-shell .admin-heading .admin-actions,
body.admin-shell .admin-heading .actions,
.admin-shell .admin-heading .admin-actions,
.admin-shell .admin-heading .actions {
  align-self: start !important;
  justify-self: end !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 0.5rem !important;
  width: auto !important;
  min-width: min(22rem, 100%) !important;
  max-width: min(28rem, 100%) !important;
  margin: 0 !important;
}

html[data-theme="light"] body.admin-shell .admin-heading .admin-mode-toolbar,
html[data-theme="dark"] body.admin-shell .admin-heading .admin-mode-toolbar,
body.admin-shell .admin-heading .admin-mode-toolbar,
.admin-shell .admin-heading .admin-mode-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 0.45rem !important;
  width: 100% !important;
}

@media (max-width: 980px) {
  html[data-theme="light"] body.admin-shell .admin-heading,
  html[data-theme="dark"] body.admin-shell .admin-heading,
  body.admin-shell .admin-heading,
  .admin-shell .admin-heading {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-theme="light"] body.admin-shell .admin-heading > div:first-child,
  html[data-theme="dark"] body.admin-shell .admin-heading > div:first-child,
  body.admin-shell .admin-heading > div:first-child,
  .admin-shell .admin-heading > div:first-child {
    max-width: 100% !important;
  }

  html[data-theme="light"] body.admin-shell .admin-heading .admin-actions,
  html[data-theme="dark"] body.admin-shell .admin-heading .admin-actions,
  html[data-theme="light"] body.admin-shell .admin-heading .actions,
  html[data-theme="dark"] body.admin-shell .admin-heading .actions,
  body.admin-shell .admin-heading .admin-actions,
  body.admin-shell .admin-heading .actions,
  .admin-shell .admin-heading .admin-actions,
  .admin-shell .admin-heading .actions {
    justify-self: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html[data-theme="light"] body.admin-shell .admin-heading .admin-mode-toolbar,
  html[data-theme="dark"] body.admin-shell .admin-heading .admin-mode-toolbar,
  body.admin-shell .admin-heading .admin-mode-toolbar,
  .admin-shell .admin-heading .admin-mode-toolbar {
    justify-content: flex-start !important;
  }
}

/* Admin compact mobile topbar contract: navigation must stay usable without pushing content excessively. */
@media (max-width: 860px) {
  html[data-theme="light"] body.admin-shell .admin-topbar,
  html[data-theme="dark"] body.admin-shell .admin-topbar,
  body.admin-shell .admin-topbar,
  .admin-shell .admin-topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    width: calc(100% - 0.75rem) !important;
    max-width: calc(100% - 0.75rem) !important;
    margin: 0.35rem auto 0 !important;
    padding: 0.65rem !important;
    overflow: visible !important;
  }

  html[data-theme="light"] body.admin-shell .admin-topbar .brand-mini,
  html[data-theme="dark"] body.admin-shell .admin-topbar .brand-mini,
  body.admin-shell .admin-topbar .brand-mini,
  .admin-shell .admin-topbar .brand-mini {
    min-width: 0 !important;
    justify-self: stretch !important;
  }

  html[data-theme="light"] body.admin-shell .brand-mini h1,
  html[data-theme="dark"] body.admin-shell .brand-mini h1,
  body.admin-shell .brand-mini h1,
  .admin-shell .brand-mini h1 {
    font-size: 1.2rem !important;
    line-height: 1.05 !important;
  }

  html[data-theme="light"] body.admin-shell .brand-mini p,
  html[data-theme="dark"] body.admin-shell .brand-mini p,
  body.admin-shell .brand-mini p,
  .admin-shell .brand-mini p {
    font-size: 0.78rem !important;
    line-height: 1.15 !important;
  }

  html[data-theme="light"] body.admin-shell .admin-mega-nav,
  html[data-theme="dark"] body.admin-shell .admin-mega-nav,
  body.admin-shell .admin-mega-nav,
  .admin-shell .admin-mega-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }

  html[data-theme="light"] body.admin-shell .admin-mega-nav__button,
  html[data-theme="dark"] body.admin-shell .admin-mega-nav__button,
  body.admin-shell .admin-mega-nav__button,
  .admin-shell .admin-mega-nav__button {
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 0.45rem 0.55rem !important;
    font-size: 0.88rem !important;
    line-height: 1.1 !important;
  }

  html[data-theme="light"] body.admin-shell .admin-mega-nav__button > span:not(.admin-mega-nav__button-icon),
  html[data-theme="dark"] body.admin-shell .admin-mega-nav__button > span:not(.admin-mega-nav__button-icon),
  body.admin-shell .admin-mega-nav__button > span:not(.admin-mega-nav__button-icon),
  .admin-shell .admin-mega-nav__button > span:not(.admin-mega-nav__button-icon) {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html[data-theme="light"] body.admin-shell .admin-mega-nav__item:nth-child(3),
  html[data-theme="dark"] body.admin-shell .admin-mega-nav__item:nth-child(3),
  body.admin-shell .admin-mega-nav__item:nth-child(3),
  .admin-shell .admin-mega-nav__item:nth-child(3) {
    grid-column: auto !important;
  }

  html[data-theme="light"] body.admin-shell .admin-topbar .user-meta,
  html[data-theme="dark"] body.admin-shell .admin-topbar .user-meta,
  body.admin-shell .admin-topbar .user-meta,
  .admin-shell .admin-topbar .user-meta {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }

  html[data-theme="light"] body.admin-shell .admin-topbar .user-meta > span:first-child,
  html[data-theme="dark"] body.admin-shell .admin-topbar .user-meta > span:first-child,
  body.admin-shell .admin-topbar .user-meta > span:first-child,
  .admin-shell .admin-topbar .user-meta > span:first-child {
    display: none !important;
  }

  html[data-theme="light"] body.admin-shell .admin-topbar .user-meta > span:not(.badge):not(.admin-mode-badge),
  html[data-theme="dark"] body.admin-shell .admin-topbar .user-meta > span:not(.badge):not(.admin-mode-badge),
  body.admin-shell .admin-topbar .user-meta > span:not(.badge):not(.admin-mode-badge),
  .admin-shell .admin-topbar .user-meta > span:not(.badge):not(.admin-mode-badge) {
    display: none !important;
  }

  html[data-theme="light"] body.admin-shell .theme-switch,
  html[data-theme="dark"] body.admin-shell .theme-switch,
  body.admin-shell .theme-switch,
  .admin-shell .theme-switch {
    width: 100% !important;
  }

  html[data-theme="light"] body.admin-shell .theme-switch select,
  html[data-theme="dark"] body.admin-shell .theme-switch select,
  body.admin-shell .theme-switch select,
  .admin-shell .theme-switch select {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    font-size: 0.86rem !important;
  }

  html[data-theme="light"] body.admin-shell .admin-topbar .user-meta .btn,
  html[data-theme="dark"] body.admin-shell .admin-topbar .user-meta .btn,
  html[data-theme="light"] body.admin-shell .admin-topbar .user-meta .badge,
  html[data-theme="dark"] body.admin-shell .admin-topbar .user-meta .badge,
  html[data-theme="light"] body.admin-shell .admin-mode-badge,
  html[data-theme="dark"] body.admin-shell .admin-mode-badge,
  body.admin-shell .admin-topbar .user-meta .btn,
  body.admin-shell .admin-topbar .user-meta .badge,
  body.admin-shell .admin-mode-badge,
  .admin-shell .admin-topbar .user-meta .btn,
  .admin-shell .admin-topbar .user-meta .badge,
  .admin-shell .admin-mode-badge {
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0.4rem 0.48rem !important;
    font-size: 0.74rem !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  html[data-theme="light"] body.admin-shell .admin-help-trigger,
  html[data-theme="dark"] body.admin-shell .admin-help-trigger,
  body.admin-shell .admin-help-trigger,
  .admin-shell .admin-help-trigger {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    justify-content: center !important;
  }

  html[data-theme="light"] body.admin-shell .admin-topbar .user-meta .btn,
  html[data-theme="dark"] body.admin-shell .admin-topbar .user-meta .btn,
  body.admin-shell .admin-topbar .user-meta .btn,
  .admin-shell .admin-topbar .user-meta .btn {
    grid-column: span 2 !important;
  }
}

/* Admin topbar no-overlap contract: desktop and tablet navigation stays in normal flow. */
html[data-theme="light"] body.admin-shell .admin-topbar,
html[data-theme="dark"] body.admin-shell .admin-topbar,
body.admin-shell .admin-topbar,
.admin-shell .admin-topbar {
  display: grid !important;
  grid-template-columns: minmax(10rem, 14rem) minmax(16rem, 1fr) minmax(14rem, 32rem) !important;
  align-items: center !important;
  gap: 0.65rem !important;
  overflow: visible !important;
}

html[data-theme="light"] body.admin-shell .admin-topbar .brand-mini,
html[data-theme="dark"] body.admin-shell .admin-topbar .brand-mini,
body.admin-shell .admin-topbar .brand-mini,
.admin-shell .admin-topbar .brand-mini {
  min-width: 0 !important;
  max-width: 100% !important;
}

html[data-theme="light"] body.admin-shell .admin-mega-nav,
html[data-theme="dark"] body.admin-shell .admin-mega-nav,
body.admin-shell .admin-mega-nav,
.admin-shell .admin-mega-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scrollbar-width: thin !important;
}

html[data-theme="light"] body.admin-shell .admin-mega-nav__item,
html[data-theme="dark"] body.admin-shell .admin-mega-nav__item,
body.admin-shell .admin-mega-nav__item,
.admin-shell .admin-mega-nav__item {
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

html[data-theme="light"] body.admin-shell .admin-mega-nav__panel,
html[data-theme="dark"] body.admin-shell .admin-mega-nav__panel,
body.admin-shell .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__panel {
  max-width: calc(100vw - 2rem) !important;
  max-height: calc(100vh - 7rem) !important;
  overflow: auto !important;
}

html[data-theme="light"] body.admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel,
html[data-theme="dark"] body.admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel,
body.admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel {
  right: 0 !important;
  left: auto !important;
}

html[data-theme="light"] body.admin-shell .admin-topbar .user-meta,
html[data-theme="dark"] body.admin-shell .admin-topbar .user-meta,
body.admin-shell .admin-topbar .user-meta,
.admin-shell .admin-topbar .user-meta {
  justify-self: end !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

html[data-theme="light"] body.admin-shell .admin-mode-badge,
html[data-theme="dark"] body.admin-shell .admin-mode-badge,
body.admin-shell .admin-mode-badge,
.admin-shell .admin-mode-badge {
  max-width: min(18rem, 100%) !important;
  overflow-wrap: anywhere !important;
}

/* Admin desktop topbar compression contract: user controls must never steal the content column. */
@media (min-width: 1181px) {
  html[data-theme="light"] body.admin-shell .admin-topbar .user-meta,
  html[data-theme="dark"] body.admin-shell .admin-topbar .user-meta,
  body.admin-shell .admin-topbar .user-meta,
  .admin-shell .admin-topbar .user-meta {
    width: min(32rem, 100%) !important;
    max-width: min(32rem, 100%) !important;
    align-content: center !important;
    row-gap: 0.42rem !important;
  }

  html[data-theme="light"] body.admin-shell .admin-topbar .user-meta > *,
  html[data-theme="dark"] body.admin-shell .admin-topbar .user-meta > *,
  body.admin-shell .admin-topbar .user-meta > *,
  .admin-shell .admin-topbar .user-meta > * {
    min-width: 0 !important;
  }

  html[data-theme="light"] body.admin-shell .theme-switch,
  html[data-theme="dark"] body.admin-shell .theme-switch,
  body.admin-shell .theme-switch,
  .admin-shell .theme-switch {
    flex: 0 1 7rem !important;
    max-width: 7rem !important;
  }

  html[data-theme="light"] body.admin-shell .theme-switch select,
  html[data-theme="dark"] body.admin-shell .theme-switch select,
  body.admin-shell .theme-switch select,
  .admin-shell .theme-switch select {
    width: 100% !important;
    min-width: 0 !important;
  }

  html[data-theme="light"] body.admin-shell .admin-topbar .user-meta > span:first-child,
  html[data-theme="dark"] body.admin-shell .admin-topbar .user-meta > span:first-child,
  body.admin-shell .admin-topbar .user-meta > span:first-child,
  .admin-shell .admin-topbar .user-meta > span:first-child {
    max-width: 10rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html[data-theme="light"] body.admin-shell .admin-topbar .user-meta .btn,
  html[data-theme="dark"] body.admin-shell .admin-topbar .user-meta .btn,
  body.admin-shell .admin-topbar .user-meta .btn,
  .admin-shell .admin-topbar .user-meta .btn {
    max-width: 12rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html[data-theme="light"] body.admin-shell .admin-mode-badge,
  html[data-theme="dark"] body.admin-shell .admin-mode-badge,
  body.admin-shell .admin-mode-badge,
  .admin-shell .admin-mode-badge {
    max-width: min(12rem, 100%) !important;
  }
}

@media (max-width: 1180px) {
  html[data-theme="light"] body.admin-shell .admin-topbar,
  html[data-theme="dark"] body.admin-shell .admin-topbar,
  body.admin-shell .admin-topbar,
  .admin-shell .admin-topbar {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
  }

  html[data-theme="light"] body.admin-shell .admin-topbar .brand-mini,
  html[data-theme="dark"] body.admin-shell .admin-topbar .brand-mini,
  html[data-theme="light"] body.admin-shell .admin-mega-nav,
  html[data-theme="dark"] body.admin-shell .admin-mega-nav,
  html[data-theme="light"] body.admin-shell .admin-topbar .user-meta,
  html[data-theme="dark"] body.admin-shell .admin-topbar .user-meta,
  body.admin-shell .admin-topbar .brand-mini,
  body.admin-shell .admin-mega-nav,
  body.admin-shell .admin-topbar .user-meta,
  .admin-shell .admin-topbar .brand-mini,
  .admin-shell .admin-mega-nav,
  .admin-shell .admin-topbar .user-meta {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

/* Admin menu dropdown blocker: keep this after compact topbar overrides. */
html[data-theme="light"] body.admin-shell .admin-topbar,
html[data-theme="dark"] body.admin-shell .admin-topbar,
body.admin-shell .admin-topbar,
.admin-shell .admin-topbar,
html[data-theme="light"] body.admin-shell .admin-mega-nav,
html[data-theme="dark"] body.admin-shell .admin-mega-nav,
body.admin-shell .admin-mega-nav,
.admin-shell .admin-mega-nav {
  overflow: visible !important;
}

html[data-theme="light"] body.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__panel,
html[data-theme="dark"] body.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__panel,
body.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__panel,
html[data-theme="light"] body.admin-shell .admin-mega-nav__item.is-open .admin-mega-nav__panel,
html[data-theme="dark"] body.admin-shell .admin-mega-nav__item.is-open .admin-mega-nav__panel,
body.admin-shell .admin-mega-nav__item.is-open .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item.is-open .admin-mega-nav__panel {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

html[data-theme="light"] body.admin-shell .admin-mega-nav__button[aria-expanded="true"]::after,
html[data-theme="dark"] body.admin-shell .admin-mega-nav__button[aria-expanded="true"]::after,
body.admin-shell .admin-mega-nav__button[aria-expanded="true"]::after,
.admin-shell .admin-mega-nav__button[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Admin full-width mega menu contract: desktop panels use the available viewport width. */
@media (min-width: 1181px) {
  html[data-theme="light"] body.admin-shell .admin-mega-nav__panel,
  html[data-theme="dark"] body.admin-shell .admin-mega-nav__panel,
  body.admin-shell .admin-mega-nav__panel,
  .admin-shell .admin-mega-nav__panel {
    position: fixed !important;
    top: 4.75rem !important;
    left: 1rem !important;
    right: 1rem !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)) !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }

  html[data-theme="light"] body.admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel,
  html[data-theme="dark"] body.admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel,
  body.admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel,
  .admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel {
    left: 1rem !important;
    right: 1rem !important;
  }

  .admin-shell .admin-mega-nav__panel > section {
    min-width: 0 !important;
    border-radius: 14px !important;
  }
}

/* Module request final override contract: keep this after admin closing contracts. */
.module-request-benefit-grid,
.module-request-route-grid,
.module-request-priority-grid,
.module-request-demand-grid,
.module-request-candidate-grid,
.module-request-sla-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.85rem !important;
  min-width: 0 !important;
}

.module-request-route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.module-request-demand-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.module-request-candidate-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.module-request-metrics {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.module-request-priority-card,
.module-request-demand-card,
.module-request-candidate-card,
.module-request-route-grid article,
.module-request-sla-card,
.module-request-table,
.module-request-table td,
.module-request-table th,
.module-request-side-card,
.module-request-form {
  min-width: 0 !important;
}

.module-request-hero h1 {
  letter-spacing: 0 !important;
}

.module-request-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.35rem !important;
  min-width: min(360px, 100%) !important;
}

.module-request-actions form,
.module-request-actions .btn,
.module-request-actions button {
  min-width: 0 !important;
}

.module-request-actions .btn,
.module-request-actions button {
  width: 100% !important;
  min-height: 36px !important;
  white-space: normal !important;
}

@media (max-width: 980px) {
  .module-request-benefit-grid,
  .module-request-route-grid,
  .module-request-priority-grid,
  .module-request-demand-grid,
  .module-request-candidate-grid,
  .module-request-sla-list,
  .module-request-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .module-request-benefit-grid,
  .module-request-route-grid,
  .module-request-priority-grid,
  .module-request-demand-grid,
  .module-request-candidate-grid,
  .module-request-sla-list,
  .module-request-metrics,
  .compact-module-request-fields,
  .module-request-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .module-request-hero .hero-home {
    gap: 0.75rem !important;
    padding: 0.85rem !important;
  }

  .module-request-hero .hero-home h1 {
    max-width: 100% !important;
    font-size: 2rem !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }

  .module-request-hero .hero-copy p:not(.eyebrow) {
    font-size: 0.95rem !important;
    line-height: 1.42 !important;
  }

  .module-request-hero .hero-actions {
    gap: 0.45rem !important;
  }

  .module-request-hero .module-request-signal-card {
    display: grid !important;
    min-height: 16rem !important;
  }
}

/* Stripe activation package desk: compact operational review after confirmed checkout. */
.activation-package-panel {
  overflow: hidden;
}

.activation-package-summary,
.activation-package-grid,
.activation-package-distribution {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  min-width: 0;
}

.activation-package-summary {
  margin-top: 0.95rem;
}

.activation-package-summary article,
.activation-package-card,
.activation-package-distribution article {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.74);
  padding: 0.9rem;
}

.activation-package-summary span,
.activation-package-card-head span {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.activation-package-summary strong {
  display: block;
  margin-top: 0.25rem;
  color: #0f172a;
  font-size: 1.18rem;
  line-height: 1.15;
}

.activation-package-summary small,
.activation-package-card small,
.activation-package-card p,
.activation-package-distribution dd {
  color: #536078;
}

.activation-package-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.95rem;
}

.activation-package-card {
  display: grid;
  gap: 0.7rem;
}

.activation-package-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
}

.activation-package-card h4 {
  margin: 0;
  color: #0f172a;
  font-size: 1.02rem;
  line-height: 1.2;
}

.activation-package-card p {
  margin: 0;
  line-height: 1.45;
}

.activation-package-meta,
.activation-package-distribution dl {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  gap: 0.35rem 0.65rem;
  margin: 0;
}

.activation-package-meta dt,
.activation-package-distribution dt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.activation-package-meta dd,
.activation-package-distribution dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}

.activation-step-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding-left: 1.1rem;
}

.activation-step-list li {
  color: #263247;
  line-height: 1.4;
}

.activation-package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.activation-package-actions .btn {
  min-width: 0;
}

.activation-package-state-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.activation-package-state-actions form {
  margin: 0;
  min-width: 0;
}

.activation-package-state-actions .btn,
.activation-package-state-actions button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0.35rem 0.45rem;
  white-space: normal;
}

.activation-package-distribution {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.95rem;
}

.activation-package-empty {
  margin-top: 0.95rem;
}

@media (max-width: 920px) {
  .activation-package-summary,
  .activation-package-grid,
  .activation-package-distribution {
    grid-template-columns: minmax(0, 1fr);
  }

  .activation-package-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .activation-package-state-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

html[data-theme="dark"] .activation-package-summary article,
html[data-theme="dark"] .activation-package-card,
html[data-theme="dark"] .activation-package-distribution article {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .activation-package-summary strong,
html[data-theme="dark"] .activation-package-card h4 {
  color: #f8fafc;
}

html[data-theme="dark"] .activation-package-card p,
html[data-theme="dark"] .activation-step-list li,
html[data-theme="dark"] .activation-package-summary small,
html[data-theme="dark"] .activation-package-card small,
html[data-theme="dark"] .activation-package-distribution dd {
  color: #cbd5e1;
}

html[data-theme="dark"] .activation-package-state-actions {
  border-top-color: rgba(148, 163, 184, 0.22);
}

/* Billing reconciliation desk: first actions for Stripe, invoices and deliveries. */
.billing-reconciliation-panel {
  overflow: hidden;
}

.billing-reconciliation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.95rem;
  min-width: 0;
}

.billing-reconciliation-card {
  display: grid;
  min-width: 0;
  gap: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-left-width: 4px;
  background: rgba(255, 255, 255, 0.76);
  padding: 0.9rem;
}

.billing-reconciliation-card h4,
.billing-reconciliation-card p {
  margin: 0;
}

.billing-reconciliation-card h4 {
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.22;
}

.billing-reconciliation-card p {
  color: #536078;
  line-height: 1.42;
}

.billing-reconciliation-card-head,
.billing-reconciliation-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 0.65rem;
}

.billing-reconciliation-card-head span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-reconciliation-card-head strong {
  color: #0f172a;
  font-size: 1.22rem;
  line-height: 1;
}

.billing-reconciliation-foot small {
  min-width: 0;
  color: #64748b;
  overflow-wrap: anywhere;
}

.billing-reconciliation-foot a {
  flex: 0 0 auto;
  font-weight: 800;
}

.reconciliation-level-critical {
  border-left-color: #dc2626;
}

.reconciliation-level-warning {
  border-left-color: #d97706;
}

.reconciliation-level-ok {
  border-left-color: #16a34a;
}

@media (max-width: 1180px) {
  .billing-reconciliation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .billing-reconciliation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .billing-reconciliation-card-head,
  .billing-reconciliation-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

html[data-theme="dark"] .billing-reconciliation-card {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .billing-reconciliation-card h4,
html[data-theme="dark"] .billing-reconciliation-card-head strong {
  color: #f8fafc;
}

html[data-theme="dark"] .billing-reconciliation-card p {
  color: #cbd5e1;
}

html[data-theme="dark"] .reconciliation-level-critical {
  border-left-color: #f87171;
}

html[data-theme="dark"] .reconciliation-level-warning {
  border-left-color: #fbbf24;
}

html[data-theme="dark"] .reconciliation-level-ok {
  border-left-color: #4ade80;
}

/* Account profile area: read-only operational profile without exposing credentials. */
.account-profile-page {
  gap: 0.85rem;
}

.account-profile-grid,
.account-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  min-width: 0;
}

.account-profile-card {
  min-width: 0;
}

.account-client-overview-panel {
  display: grid;
  gap: 0.85rem;
}

.account-primary-next-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.32fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.account-primary-next-action h3 {
  margin: 0.12rem 0 0.45rem;
  color: #0f172a;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.12;
}

.account-primary-next-action p:not(.eyebrow) {
  max-width: 72ch;
  margin: 0;
  color: #526071;
  line-height: 1.52;
}

.account-primary-next-meta {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
  padding: 0.85rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.account-primary-next-meta span {
  display: inline-flex;
  width: fit-content;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-primary-next-meta strong {
  color: #0f172a;
}

.account-client-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.account-client-overview-card {
  display: grid;
  min-width: 0;
  min-height: 158px;
  align-content: start;
  gap: 0.42rem;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-left: 4px solid #0ea5e9;
  border-radius: 0.65rem;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.account-client-overview-card span,
.account-client-overview-card em {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  overflow-wrap: anywhere;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.account-client-overview-card span {
  color: #2563eb;
}

.account-client-overview-card strong {
  min-width: 0;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.account-client-overview-card small {
  min-width: 0;
  color: #536078;
  font-size: 0.84rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.account-client-overview-card em {
  margin-top: auto;
  color: #0f766e;
}

.account-client-overview-card:hover,
.account-client-overview-card:focus-visible {
  border-color: rgba(14, 165, 233, 0.58);
  outline: none;
  transform: translateY(-1px);
}

.account-complete-channels-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(1rem, 2vw, 1.35rem);
  align-items: stretch;
  border-color: rgba(37, 99, 235, 0.24);
  background:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.12), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.92));
}

.account-complete-channels-intro {
  display: grid;
  align-content: center;
  gap: 0.5rem;
  min-width: 0;
}

.account-complete-channels-intro h3,
.account-complete-channels-intro p {
  margin: 0;
}

.account-complete-channels-intro h3 {
  color: #0f172a;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.12;
}

.account-complete-channels-intro p:not(.eyebrow) {
  color: #475569;
  line-height: 1.5;
}

.account-complete-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.account-complete-channel-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  min-height: 10.5rem;
  padding: 0.9rem;
  border: 1px solid rgba(147, 197, 253, 0.75);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.account-complete-channel-card span {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.8rem;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 950;
}

.account-complete-channel-card strong {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.2;
}

.account-complete-channel-card small {
  color: #526071;
  line-height: 1.42;
}

.account-complete-channel-card em {
  align-self: end;
  margin-top: auto;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.account-complete-channel-card:hover,
.account-complete-channel-card:focus-visible {
  border-color: #2563eb;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.12);
}

.account-client-activity-panel {
  border-color: rgba(15, 118, 110, 0.2);
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(240, 253, 250, 0.92), rgba(255, 255, 255, 0.98));
}

.account-client-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.account-client-activity-card {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.account-client-activity-card > span {
  justify-self: start;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-client-activity-card strong {
  color: #111827;
  font-size: 1.05rem;
}

.account-client-activity-card small,
.account-client-activity-card p {
  color: #64748b;
  line-height: 1.45;
}

.account-client-activity-card p {
  margin: 0;
}

.account-client-activity-card dl {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) 1fr;
  gap: 0.35rem 0.8rem;
  margin: 0;
  padding: 0.75rem;
  border-radius: 0.85rem;
  background: rgba(15, 118, 110, 0.06);
}

.account-client-activity-card dt {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
}

.account-client-activity-card dd {
  margin: 0;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 800;
}

.overview-level-high {
  border-left-color: #dc2626;
}

.overview-level-medium {
  border-left-color: #d97706;
}

.overview-level-ok {
  border-left-color: #16a34a;
}

.account-profile-list {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 0.45rem 0.8rem;
  margin: 0;
}

.account-profile-list dt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

.account-profile-list dd {
  min-width: 0;
  margin: 0;
  color: #0f172a;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.account-status-list,
.account-login-list,
.account-password-form {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-password-panel > .success,
.account-password-panel > .error {
  margin: 0.85rem 0 0;
}

.account-client-request-panel > .error {
  margin: 0.85rem 0 0;
}

.account-client-request-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 0.85rem;
  margin-top: 0.9rem;
  min-width: 0;
}

.account-client-request-form {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.account-client-request-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.account-client-request-form button {
  justify-self: start;
}

.account-client-request-summary {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.72rem;
  background: rgba(248, 250, 252, 0.88);
}

.account-client-request-summary h4 {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
}

.account-client-request-summary p {
  margin-top: 0.45rem;
  color: #536078;
  font-size: 0.86rem;
  line-height: 1.45;
}

.account-password-form {
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  align-items: center;
}

.account-password-form button {
  grid-column: 2;
  justify-self: start;
}

.account-status-list li,
.account-login-list li,
.account-action-card {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.72rem;
  background: rgba(248, 250, 252, 0.88);
  padding: 0.8rem;
}

.account-status-list strong,
.account-login-list strong,
.account-action-card strong {
  display: block;
  color: #0f172a;
  line-height: 1.22;
}

.account-status-list span,
.account-login-list span,
.account-action-card span {
  display: block;
  margin-top: 0.28rem;
  color: #536078;
  font-size: 0.84rem;
  line-height: 1.42;
}

.account-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.account-action-card {
  color: inherit;
  text-decoration: none;
}

.account-action-card:hover,
.account-action-card:focus-visible {
  border-color: rgba(14, 165, 233, 0.5);
  outline: none;
}

.account-action-card-help {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.65rem;
}

.account-action-card-help .account-action-icon {
  display: inline-grid;
  grid-row: span 2;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
}

@media (max-width: 920px) {
  .account-primary-next-action {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-client-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-profile-grid,
  .account-action-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-profile-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-password-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-client-request-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-complete-channels-panel,
  .account-complete-channels-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-password-form button {
    grid-column: auto;
    width: 100%;
  }

  .account-client-request-form button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .account-client-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-client-overview-card {
    min-height: auto;
  }
}

html[data-theme="dark"] .account-profile-list dd,
html[data-theme="dark"] .account-status-list strong,
html[data-theme="dark"] .account-login-list strong,
html[data-theme="dark"] .account-action-card strong,
html[data-theme="dark"] .account-primary-next-action h3,
html[data-theme="dark"] .account-primary-next-meta strong,
html[data-theme="dark"] .account-client-overview-card strong,
html[data-theme="dark"] .account-client-activity-card strong,
html[data-theme="dark"] .account-client-activity-card dd {
  color: #f8fafc;
}

html[data-theme="dark"] .account-status-list li,
html[data-theme="dark"] .account-login-list li,
html[data-theme="dark"] .account-action-card,
html[data-theme="dark"] .account-primary-next-meta,
html[data-theme="dark"] .account-client-overview-card,
html[data-theme="dark"] .account-client-request-summary,
html[data-theme="dark"] .account-client-activity-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .account-profile-list dt,
html[data-theme="dark"] .account-status-list span,
html[data-theme="dark"] .account-login-list span,
html[data-theme="dark"] .account-action-card span,
html[data-theme="dark"] .account-primary-next-action p:not(.eyebrow),
html[data-theme="dark"] .account-client-overview-card small,
html[data-theme="dark"] .account-client-request-summary p,
html[data-theme="dark"] .account-client-activity-card p,
html[data-theme="dark"] .account-client-activity-card small,
html[data-theme="dark"] .account-client-activity-card dt {
  color: #cbd5e1;
}

html[data-theme="dark"] .account-client-overview-card span {
  color: #93c5fd;
}

html[data-theme="dark"] .account-action-card-help .account-action-icon {
  background: #172554;
  color: #dbeafe;
}

html[data-theme="dark"] .account-client-overview-card em {
  color: #5eead4;
}

html[data-theme="dark"] .account-primary-next-action {
  border-color: rgba(56, 189, 248, 0.24);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.88));
}

html[data-theme="dark"] .account-complete-channels-panel {
  border-color: rgba(96, 165, 250, 0.24);
  background:
    radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.12), transparent 22rem),
    rgba(15, 23, 42, 0.78);
}

html[data-theme="dark"] .account-complete-channel-card {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .account-complete-channels-intro h3,
html[data-theme="dark"] .account-complete-channel-card strong {
  color: #f8fafc;
}

html[data-theme="dark"] .account-complete-channels-intro p:not(.eyebrow),
html[data-theme="dark"] .account-complete-channel-card small {
  color: #cbd5e1;
}

html[data-theme="dark"] .account-complete-channel-card em {
  color: #93c5fd;
}

html[data-theme="dark"] .account-client-activity-panel {
  border-color: rgba(45, 212, 191, 0.16);
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.82));
}

html[data-theme="dark"] .account-client-activity-card dl {
  background: rgba(45, 212, 191, 0.08);
}

html[data-theme="dark"] .account-client-request-summary h4 {
  color: #f8fafc;
}

/* Support desk: internal ticket queue with SLA priority signals. */
.support-desk-page {
  gap: 0.85rem;
}

.support-intake-shortcuts {
  border: 1px solid rgba(14, 165, 233, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.9)),
    radial-gradient(circle at 100% 0, rgba(255, 128, 105, 0.12), transparent 18rem);
}

.support-intake-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.support-intake-shortcut-grid article {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-width: 0;
  min-height: 13rem;
  padding: 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.support-intake-shortcut-grid h4,
.support-intake-shortcut-grid p {
  margin: 0;
}

.support-intake-shortcut-grid h4 {
  color: #111827;
  font-size: 1rem;
  line-height: 1.2;
}

.support-intake-shortcut-grid p {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.42;
}

.support-intake-badge {
  justify-self: start;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.18rem 0.5rem;
  text-transform: uppercase;
}

.support-intake-high {
  background: #fff1f2;
  color: #be123c;
}

.support-intake-medium {
  background: #eff6ff;
  color: #1d4ed8;
}

.support-intake-shortcut-grid .btn,
.support-intake-shortcut-grid .btn-outline {
  align-self: end;
  width: 100%;
}

.support-focus-panel {
  display: grid;
  gap: 0.85rem;
}

.support-focus-total,
.support-focus-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.support-focus-total {
  min-height: 32px;
  padding: 0.4rem 0.7rem;
  background: #e0f2fe;
  color: #075985;
}

.support-focus-list,
.support-ticket-list {
  display: grid;
  gap: 0.75rem;
}

.support-knowledge-gap-list,
.support-knowledge-review-list {
  display: grid;
  gap: 0.7rem;
}

.support-knowledge-gap-card,
.support-knowledge-review-card {
  align-items: center;
  background: #f8fbff;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.9rem;
}

.support-knowledge-review-card.is-high {
  background: #fff7ed;
  border-color: rgba(234, 88, 12, 0.34);
}

.support-knowledge-review-card.is-high span {
  color: #c2410c;
}

.support-knowledge-review-card.is-medium {
  background: #f8fbff;
  border-color: rgba(37, 99, 235, 0.22);
}

.support-knowledge-gap-card div,
.support-knowledge-review-card div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.support-knowledge-gap-card span,
.support-knowledge-review-card span {
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-knowledge-gap-card strong,
.support-knowledge-review-card strong {
  color: #0f172a;
  line-height: 1.2;
}

.support-knowledge-gap-card small,
.support-knowledge-review-card small {
  color: #52627a;
  line-height: 1.35;
}

.support-knowledge-review-actions {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.support-knowledge-gap-metric a,
.support-knowledge-review-metric a {
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.support-knowledge-health-panel {
  align-items: center;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  border-color: rgba(37, 99, 235, 0.16);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.support-knowledge-health-panel h3 {
  margin-bottom: 0.25rem;
}

.support-knowledge-gap-hint {
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  color: #1e3a8a;
  font-size: 0.86rem;
  font-weight: 800;
  margin: 0;
  padding: 0.65rem 0.75rem;
}

.support-focus-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-followup-panel {
  display: grid;
  gap: 0.85rem;
}

.support-followup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.support-followup-card {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-left: 0.32rem solid #2563eb;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.85rem;
}

.support-followup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
}

.support-followup-head strong {
  color: #111827;
  font-size: 1.22rem;
  line-height: 1;
}

.support-followup-card h4,
.support-followup-card p {
  margin: 0;
}

.support-followup-card h4 {
  color: #111827;
  line-height: 1.22;
}

.support-followup-card p {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.support-followup-card a {
  font-weight: 900;
}

.support-focus-card,
.support-ticket-card {
  display: grid;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-left: 0.32rem solid #2563eb;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.85rem;
}

.support-focus-card {
  align-content: start;
  gap: 0.42rem;
}

.support-focus-card strong,
.support-ticket-card h4 {
  margin: 0;
  color: #111827;
  line-height: 1.22;
}

.support-focus-card p,
.support-focus-card small,
.support-ticket-card p,
.support-ticket-meta dd {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.support-focus-card p,
.support-focus-card small,
.support-ticket-card p {
  margin: 0;
}

.support-focus-badge {
  min-height: 28px;
  padding: 0.3rem 0.58rem;
  background: #dbeafe;
  color: #1e3a8a;
}

.support-focus-high {
  border-left-color: #dc2626;
  background: #fff7f7;
}

.support-focus-medium {
  border-left-color: #2563eb;
  background: #fffbeb;
}

.support-focus-high .support-focus-badge {
  background: #fee2e2;
  color: #991b1b;
}

.support-focus-medium .support-focus-badge {
  background: #fef3c7;
  color: #92400e;
}

.support-ticket-form,
.support-filter-form {
  display: grid;
  gap: 0.65rem;
}

.support-ticket-form textarea {
  resize: vertical;
}

.admin-shell .support-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.8rem 0 1rem;
}

.admin-shell .support-step-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  color: #173a8a;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.admin-shell .support-step-strip strong {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
  flex: 0 0 auto;
}

.support-sla-note {
  margin-top: 0.8rem;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 0.7rem;
  padding: 0.85rem;
}

.support-ticket-card {
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.75fr);
  gap: 0.85rem;
}

.support-ticket-main {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-width: 0;
}

.support-ticket-meta {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  gap: 0.34rem 0.6rem;
  margin: 0;
}

.support-ticket-meta dt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.support-ticket-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.support-ticket-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.support-ticket-actions form {
  margin: 0;
}

@media (max-width: 920px) {
  .support-intake-shortcut-grid,
  .support-focus-list,
  .support-followup-grid,
  .support-knowledge-gap-card,
  .support-knowledge-review-card,
  .support-ticket-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-shell .support-step-strip {
    position: sticky;
    top: 0.75rem;
    z-index: 2;
    grid-template-columns: 1fr;
    gap: 0.42rem;
  }

  .admin-shell .support-step-strip span {
    justify-content: flex-start;
    min-height: 2.55rem;
    padding-inline: 0.8rem;
  }
}

html[data-theme="dark"] .support-focus-card,
html[data-theme="dark"] .support-followup-card,
html[data-theme="dark"] .support-knowledge-gap-card,
html[data-theme="dark"] .support-knowledge-health-panel,
html[data-theme="dark"] .support-knowledge-review-card,
html[data-theme="dark"] .support-ticket-card,
html[data-theme="dark"] .support-sla-note {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .support-knowledge-review-card.is-high {
  background: rgba(124, 45, 18, 0.32);
  border-color: rgba(251, 146, 60, 0.42);
}

html[data-theme="dark"] .support-knowledge-review-card.is-high span {
  color: #fdba74;
}

html[data-theme="dark"] .support-focus-card strong,
html[data-theme="dark"] .support-followup-card h4,
html[data-theme="dark"] .support-followup-head strong,
html[data-theme="dark"] .support-knowledge-gap-card strong,
html[data-theme="dark"] .support-knowledge-health-panel h3,
html[data-theme="dark"] .support-knowledge-review-card strong,
html[data-theme="dark"] .support-ticket-card h4 {
  color: #f8fafc;
}

html[data-theme="dark"] .support-focus-card p,
html[data-theme="dark"] .support-focus-card small,
html[data-theme="dark"] .support-followup-card p,
html[data-theme="dark"] .support-knowledge-gap-card small,
html[data-theme="dark"] .support-knowledge-health-panel .small,
html[data-theme="dark"] .support-knowledge-review-card small,
html[data-theme="dark"] .support-knowledge-gap-hint,
html[data-theme="dark"] .support-ticket-card p,
html[data-theme="dark"] .support-ticket-meta dt,
html[data-theme="dark"] .support-ticket-meta dd {
  color: #cbd5e1;
}

html[data-theme="dark"] .support-knowledge-gap-hint {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(147, 197, 253, 0.28);
}

html[data-theme="dark"] .support-knowledge-gap-metric a,
html[data-theme="dark"] .support-knowledge-review-metric a {
  color: #93c5fd;
}

html[data-theme="dark"] .admin-shell .support-step-strip span {
  border-color: rgba(147, 197, 253, 0.28);
  background: linear-gradient(135deg, #0f2744, #111827);
  color: #dbeafe;
}

html[data-theme="dark"] .admin-shell .support-step-strip strong {
  background: #60a5fa;
  color: #0f172a;
}

.operator-route-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}

.public-sector-picker {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-top: 0;
  background: #fff;
}

.public-sector-picker h2 {
  max-width: 720px;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
  line-height: 1.08;
}

.public-sector-picker p:not(.eyebrow) {
  margin-top: 0.45rem;
  color: var(--muted);
}

.public-sector-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.public-sector-picker-grid a {
  display: grid;
  gap: 0.28rem;
  min-height: 86px;
  align-content: center;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  text-decoration: none;
}

.public-sector-picker-grid a:hover,
.public-sector-picker-grid a:focus-visible {
  border-color: rgba(37, 99, 235, 0.38);
  background: #eef6ff;
  outline: none;
}

.public-sector-picker-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-sector-picker-grid strong {
  line-height: 1.18;
}

.public-sector-picker-request {
  background: #111114 !important;
  color: #f8fafc !important;
}

.public-sector-picker-request span {
  color: #fbbf24;
}

@media (max-width: 920px) {
  .public-sector-picker {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .public-sector-picker-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.operator-route-step {
  display: flex;
  min-height: 172px;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.operator-route-step:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.42);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.11);
}

.operator-route-step span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.operator-route-step strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.operator-route-step small {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .operator-route-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .operator-route-steps {
    grid-template-columns: 1fr;
  }

  .operator-route-step {
    min-height: auto;
  }
}

.admin-shell .import-scope-panel {
  display: grid;
  gap: 0.85rem;
  border-color: rgba(14, 165, 233, 0.24);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 26rem),
    #ffffff;
}

.admin-shell .import-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-shell .import-scope-card {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid #dbeafe;
  border-radius: 0.82rem;
  background: rgba(248, 250, 252, 0.92);
}

.admin-shell .import-scope-card span {
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.admin-shell .import-scope-card strong {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.18;
}

.admin-shell .import-scope-card small {
  color: #475569;
  line-height: 1.42;
}

@media (max-width: 900px) {
  .admin-shell .import-scope-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .admin-shell .import-scope-panel {
  border-color: #22304b;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 26rem),
    #0b1220;
}

html[data-theme="dark"] .admin-shell .import-scope-card {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .import-scope-card strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .import-scope-card small {
  color: #cbd5e1;
}

.admin-shell .import-column-map-panel {
  border: 1px solid rgba(14, 165, 233, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.9)),
    radial-gradient(circle at 100% 0, rgba(255, 128, 105, 0.1), transparent 18rem);
}

.admin-shell .import-column-map-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.35rem 0.75rem;
}

.admin-shell .import-column-map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.admin-shell .import-column-map-grid article {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
}

.admin-shell .import-column-map-grid span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-shell .import-column-map-grid strong,
.admin-shell .import-column-map-grid p {
  min-width: 0;
  margin: 0;
}

.admin-shell .import-column-map-grid code,
.admin-shell .import-column-aliases code {
  overflow-wrap: anywhere;
}

.admin-shell .import-column-map-grid p {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-shell .import-column-aliases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.admin-shell .import-column-aliases code {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 0.18rem 0.42rem;
}

@media (max-width: 1100px) {
  .admin-shell .import-column-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .admin-shell .import-column-map-grid {
    grid-template-columns: 1fr;
  }
}

.subscription-client-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.subscription-client-facts-grid article {
  display: grid;
  align-content: start;
  gap: 0.48rem;
  min-width: 0;
  min-height: 132px;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.78rem;
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.94), rgba(255, 255, 255, 0.9));
}

.subscription-client-facts-grid span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-weight: 900;
}

.subscription-client-facts-grid strong {
  color: #0f172a;
  line-height: 1.2;
}

.subscription-client-facts-grid small {
  color: #536078;
  line-height: 1.42;
}

@media (max-width: 1100px) {
  .subscription-client-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .subscription-client-facts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .subscription-client-facts-grid article {
    min-height: auto;
  }
}

html[data-theme="dark"] .subscription-client-facts-grid article {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .subscription-client-facts-grid strong {
  color: #f8fafc;
}

html[data-theme="dark"] .subscription-client-facts-grid small {
  color: #cbd5e1;
}







.trace-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(14, 165, 233, 0.22);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(240, 249, 255, 0.96), rgba(255, 255, 255, 0.94));
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08);
}

.trace-next-action-panel h3 {
  margin: 0.2rem 0 0.38rem;
  color: #0f172a;
}

.trace-next-action-panel p {
  max-width: 880px;
  margin: 0;
  color: #475569;
}

.trace-next-action-high {
  border-color: rgba(225, 29, 72, 0.3);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 241, 242, 0.98), rgba(255, 255, 255, 0.94));
}

.trace-next-action-medium {
  border-color: rgba(245, 158, 11, 0.32);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.94));
}

.trace-next-action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.82rem;
}

.trace-next-action-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.62rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
}

.trace-next-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

@media (max-width: 760px) {
  .trace-next-action-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .trace-next-action-buttons {
    justify-content: flex-start;
  }
}

html[data-theme="dark"] .trace-next-action-panel {
  border-color: rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.72));
}

html[data-theme="dark"] .trace-next-action-panel h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .trace-next-action-panel p {
  color: #cbd5e1;
}

html[data-theme="dark"] .trace-next-action-meta span {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.74);
  color: #e2e8f0;
}

.help-operator-guide {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.8fr);
  gap: 1rem;
  align-items: stretch;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(34, 197, 94, 0.09));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.help-operator-guide h3 {
  margin: 0.15rem 0 0.35rem;
}

.help-operator-guide p {
  margin: 0;
  color: var(--muted);
}

.help-operator-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.help-operator-guide-grid article {
  min-height: 100%;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.help-operator-guide-grid span {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.55rem;
  place-items: center;
  border-radius: 999px;
  background: #15803d;
  color: #fff;
  font-weight: 800;
}

.help-operator-guide-grid strong,
.help-operator-guide-grid small {
  display: block;
}

.help-operator-guide-grid small {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .help-operator-guide {
    grid-template-columns: 1fr;
  }

  .help-operator-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .help-operator-guide {
    padding: 0.85rem;
    border-radius: 18px;
  }

  .help-operator-guide-grid {
    grid-template-columns: 1fr;
  }
}

body.theme-dark .help-operator-guide {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.74), rgba(21, 128, 61, 0.18));
}

body.theme-dark .help-operator-guide-grid article {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

.help-primary-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(14, 165, 233, 0.2);
  background:
    radial-gradient(circle at 0 0, rgba(14, 165, 233, 0.15), transparent 32%),
    linear-gradient(135deg, rgba(240, 249, 255, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08);
}

.help-primary-next-step h3 {
  max-width: 920px;
  margin: 0.16rem 0 0.42rem;
}

.help-primary-next-step p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
}

.help-primary-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.help-primary-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.3rem 0.62rem;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #075985;
  font-size: 0.84rem;
  font-weight: 850;
}

.help-primary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

@media (max-width: 780px) {
  .help-primary-next-step {
    grid-template-columns: minmax(0, 1fr);
  }

  .help-primary-actions {
    justify-content: flex-start;
  }
}

html[data-theme="dark"] .help-primary-next-step,
body.theme-dark .help-primary-next-step {
  border-color: rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.72));
}

html[data-theme="dark"] .help-primary-proof span,
body.theme-dark .help-primary-proof span {
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: #e0f2fe;
}

.sector-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.sector-card-actions .btn,
.sector-card-actions .btn-outline {
  flex: 1 1 9rem;
  justify-content: center;
  text-align: center;
}

@media (max-width: 620px) {
  .sector-card-actions {
    display: grid;
  }

  .sector-card-actions .btn,
  .sector-card-actions .btn-outline {
    width: 100%;
  }
}
.signup-primary-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.36fr);
  gap: clamp(1rem, 2.2vw, 1.6rem);
  align-items: center;
  border: 1px solid rgba(34, 197, 94, 0.24);
  background:
    radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.14), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #effaf3 100%);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
}

.signup-primary-next-step h2 {
  max-width: 880px;
  margin: 0.12rem 0 0.45rem;
  color: #0f172a;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.signup-primary-next-step p:not(.eyebrow) {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.signup-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

/* Signup step strip 2026-06-27: reduce decision friction before checkout. */
.public-shell .signup-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.public-shell .signup-step-strip span {
  align-items: center;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
  color: #173a8a;
  display: inline-flex;
  font-weight: 900;
  gap: 0.48rem;
  justify-content: center;
  min-height: 3rem;
  min-width: 0;
  padding: 0.62rem 0.85rem;
}

.public-shell .signup-step-strip strong {
  background: #1d4ed8;
  border-radius: 999px;
  color: #ffffff;
  display: inline-grid;
  flex: 0 0 auto;
  font-size: 0.8rem;
  height: 1.55rem;
  line-height: 1;
  place-items: center;
  width: 1.55rem;
}

.signup-primary-proof {
  display: grid;
  gap: 0.72rem;
  padding: 1rem;
  border: 1px solid rgba(187, 247, 208, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.signup-primary-proof > span {
  width: fit-content;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signup-primary-proof dl {
  margin: 0;
}

.signup-primary-proof dt {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signup-primary-proof dd {
  margin: 0.12rem 0 0;
  color: #0f172a;
  font-weight: 950;
  line-height: 1.15;
}

@media (max-width: 820px) {
  .signup-primary-next-step {
    grid-template-columns: 1fr;
  }

  .signup-primary-actions .btn,
  .signup-primary-actions .btn-outline {
    width: 100%;
  }

  .public-shell .signup-step-strip {
    grid-template-columns: 1fr;
  }

  .public-shell .signup-step-strip span {
    justify-content: flex-start;
  }
}

html[data-theme="dark"] .signup-primary-next-step {
  border-color: rgba(74, 222, 128, 0.28);
  background:
    radial-gradient(circle at 0 0, rgba(74, 222, 128, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(22, 49, 42, 0.92));
}

html[data-theme="dark"] .signup-primary-next-step h2,
html[data-theme="dark"] .signup-primary-proof dd {
  color: #f8fafc;
}

html[data-theme="dark"] .signup-primary-next-step p:not(.eyebrow),
html[data-theme="dark"] .signup-primary-proof dt {
  color: #cbd5e1;
}

html[data-theme="dark"] .signup-primary-proof {
  border-color: rgba(74, 222, 128, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .public-shell .signup-step-strip span {
  background: linear-gradient(135deg, #0f2744, #111827);
  border-color: rgba(147, 197, 253, 0.28);
  color: #dbeafe;
}

html[data-theme="dark"] .public-shell .signup-step-strip strong {
  background: #60a5fa;
  color: #0f172a;
}

.sector-catalog-primary-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: center;
  border: 1px solid rgba(15, 118, 110, 0.2);
  background:
    radial-gradient(circle at 0 0, rgba(20, 184, 166, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(240, 253, 250, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
}

.sector-catalog-primary-next-step h2 {
  max-width: 860px;
  margin: 0.16rem 0 0.45rem;
}

.sector-catalog-primary-next-step p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
}

.sector-catalog-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.sector-catalog-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.34rem 0.68rem;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #115e59;
  font-size: 0.86rem;
  font-weight: 850;
}

.sector-catalog-primary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

@media (max-width: 780px) {
  .sector-catalog-primary-next-step {
    grid-template-columns: minmax(0, 1fr);
  }

  .sector-catalog-primary-actions {
    justify-content: flex-start;
  }
}

html[data-theme="dark"] .sector-catalog-primary-next-step {
  border-color: rgba(45, 212, 191, 0.28);
  background:
    radial-gradient(circle at 0 0, rgba(45, 212, 191, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(20, 83, 45, 0.28));
}

html[data-theme="dark"] .sector-catalog-proof span {
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: #ccfbf1;
}

.demo-access-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: start;
  border: 1px solid rgba(14, 165, 233, 0.2);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.92));
}

.demo-access-panel h2,
.demo-access-panel p {
  margin-top: 0;
}

.demo-access-form {
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.demo-access-form button {
  width: 100%;
}

.demo-access-result {
  margin-top: 1rem;
}

.demo-access-result strong {
  color: #0f172a;
}

@media (max-width: 860px) {
  .demo-access-panel {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .demo-access-panel {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 18rem),
    #0b1220;
}

html[data-theme="dark"] .demo-access-form {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.78);
}

html[data-theme="dark"] .demo-access-result strong {
  color: #f8fafc;
}

.module-request-checklist {
  border: 1px solid rgba(234, 88, 12, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.9)),
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.12), transparent 18rem);
}

.module-request-checklist-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.module-request-checklist-grid article {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.module-request-checklist-grid span {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: #ea580c;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.module-request-checklist-grid h3,
.module-request-checklist-grid p {
  margin: 0;
}

.module-request-checklist-grid h3 {
  color: #111827;
  font-size: 1rem;
  line-height: 1.18;
}

.module-request-checklist-grid p {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.42;
}

.referral-action-band {
  border: 1px solid rgba(14, 165, 233, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.9)),
    radial-gradient(circle at 100% 0, rgba(255, 128, 105, 0.12), transparent 18rem);
}

.referral-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.referral-action-grid article {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-width: 0;
  min-height: 13.5rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-top: 0.3rem solid #0ea5e9;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.referral-action-grid article.is-primary {
  border-top-color: #ff8069;
  background: #fffaf7;
}

.referral-action-grid span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.referral-action-grid h3,
.referral-action-grid p {
  margin: 0;
}

.referral-action-grid h3 {
  color: #111827;
  font-size: 1.04rem;
  line-height: 1.2;
}

.referral-action-grid p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.42;
}

.referral-action-grid .btn,
.referral-action-grid .btn-outline {
  align-self: end;
  width: 100%;
}

@media (max-width: 1100px) {
  .referral-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .referral-action-grid {
    grid-template-columns: 1fr;
  }
}

.sector-page-fast-decision {
    border: 1px solid rgba(14, 165, 233, 0.18);
    background:
        radial-gradient(circle at top right, rgba(255, 128, 105, 0.12), transparent 18rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.86));
}

.sector-page-fast-decision-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sector-page-fast-decision-card {
    display: grid;
    align-content: start;
    gap: 0.48rem;
    min-width: 0;
    min-height: 13rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.sector-page-fast-decision-card:hover,
.sector-page-fast-decision-card:focus-visible {
    border-color: #ff8069;
    box-shadow: 0 18px 42px rgba(255, 128, 105, 0.16);
    transform: translateY(-2px);
}

.sector-page-fast-decision-card span {
    color: #ff5d42;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.sector-page-fast-decision-card strong {
    color: #111827;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.12;
}

.sector-page-fast-decision-card small {
    color: #475569;
    line-height: 1.45;
}

.sector-page-fast-decision-card em {
    align-self: end;
    margin-top: 0.35rem;
    color: #0f766e;
    font-style: normal;
    font-weight: 950;
}

.sector-page-fast-decision-card.decision-growth {
    border-color: rgba(34, 197, 94, 0.28);
    background: linear-gradient(180deg, #f0fdf4, #ffffff);
}

.sector-page-fast-decision-card.decision-support {
    border-color: rgba(99, 102, 241, 0.26);
    background: linear-gradient(180deg, #eef2ff, #ffffff);
}

@media (max-width: 980px) {
    .sector-page-fast-decision-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sector-page-fast-decision-grid {
        grid-template-columns: 1fr;
    }

    .sector-page-fast-decision-card {
        min-height: auto;
    }
}

html[data-theme="dark"] .sector-page-fast-decision {
    border-color: rgba(148, 163, 184, 0.22);
    background:
        radial-gradient(circle at top right, rgba(255, 128, 105, 0.12), transparent 18rem),
        #0b1220;
}

html[data-theme="dark"] .sector-page-fast-decision-card,
html[data-theme="dark"] .sector-page-fast-decision-card.decision-growth,
html[data-theme="dark"] .sector-page-fast-decision-card.decision-support {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.74);
}

html[data-theme="dark"] .sector-page-fast-decision-card strong {
    color: #f8fafc;
}

html[data-theme="dark"] .sector-page-fast-decision-card small {
    color: #cbd5e1;
}

.empresa-vertical-proof {
    display: grid;
    gap: 1rem;
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.13), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.82));
    border: 1px solid rgba(251, 146, 60, 0.24);
}

.empresa-vertical-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.empresa-vertical-proof-grid article {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    min-height: 14.5rem;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.empresa-vertical-proof-grid span {
    color: #c2410c;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.empresa-vertical-proof-grid h3,
.empresa-vertical-proof-grid p {
    margin: 0;
}

.empresa-vertical-proof-grid h3 {
    color: #111827;
    font-size: 1.05rem;
    line-height: 1.2;
}

.empresa-vertical-proof-grid p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
}

.empresa-vertical-proof-grid a {
    align-self: end;
    color: #1d4ed8;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

@media (max-width: 980px) {
    .empresa-vertical-proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .empresa-vertical-proof-grid {
        grid-template-columns: 1fr;
    }

    .empresa-vertical-proof-grid article {
        min-height: auto;
    }
}
.privacy-primary-next-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(260px, 0.7fr);
    gap: 1rem;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
    border: 1px solid rgba(14, 165, 233, 0.26);
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08);
}

.privacy-primary-next-step h2,
.privacy-primary-next-step p {
    margin: 0;
}

.privacy-primary-next-step h2 {
    color: #0f172a;
    font-size: clamp(1.35rem, 2.6vw, 2.08rem);
    line-height: 1.08;
}

.privacy-primary-next-step p:not(.eyebrow) {
    max-width: 64ch;
    margin-top: 0.5rem;
    color: #475569;
    line-height: 1.5;
}

/* Privacy step strip 2026-06-27: data, use and rights at a glance. */
.public-shell .privacy-step-strip {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
    max-width: 34rem;
}

.public-shell .privacy-step-strip span {
    align-items: center;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.08);
    color: #172033;
    display: flex;
    font-weight: 850;
    gap: 0.45rem;
    justify-content: center;
    min-height: 44px;
    padding: 0.62rem 0.78rem;
}

.public-shell .privacy-step-strip strong {
    align-items: center;
    background: #2454d6;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    height: 1.45rem;
    justify-content: center;
    line-height: 1;
    width: 1.45rem;
}

.privacy-primary-next-links {
    display: grid;
    gap: 0.55rem;
}

.privacy-primary-next-links a {
    display: grid;
    gap: 0.18rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    color: inherit;
    text-decoration: none;
}

.privacy-primary-next-links a:hover,
.privacy-primary-next-links a:focus-visible {
    border-color: rgba(14, 165, 233, 0.42);
    background: #ffffff;
}

.privacy-primary-next-links strong {
    color: #0f172a;
}

.privacy-primary-next-links span {
    color: #64748b;
    font-size: 0.86rem;
}

@media (max-width: 980px) {
    .privacy-primary-next-step {
        grid-template-columns: 1fr;
    }

    .public-shell .privacy-step-strip {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .public-shell .privacy-step-strip span {
        justify-content: flex-start;
    }

    .privacy-primary-next-step > .btn {
        justify-self: start;
        width: auto;
    }
}

@media (max-width: 640px) {
    .privacy-primary-next-step > .btn {
        width: 100%;
    }
}

html[data-theme="dark"] .privacy-primary-next-step {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.92));
    border-color: rgba(14, 165, 233, 0.3);
}

html[data-theme="dark"] .privacy-primary-next-step h2,
html[data-theme="dark"] .privacy-primary-next-links strong {
    color: #f8fafc;
}

html[data-theme="dark"] .privacy-primary-next-step p:not(.eyebrow),
html[data-theme="dark"] .privacy-primary-next-links span {
    color: #cbd5e1;
}

html[data-theme="dark"] .privacy-primary-next-links a {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .public-shell .privacy-step-strip span {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(147, 197, 253, 0.24);
    color: #eff6ff;
}

html[data-theme="dark"] .public-shell .privacy-step-strip strong {
    background: #60a5fa;
    color: #0f172a;
}

.cookies-primary-next-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(260px, 0.7fr);
    gap: 1rem;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
    border: 1px solid rgba(20, 184, 166, 0.28);
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08);
}

.cookies-primary-next-step h2,
.cookies-primary-next-step p {
    margin: 0;
}

.cookies-primary-next-step h2 {
    color: #0f172a;
    font-size: clamp(1.35rem, 2.6vw, 2.08rem);
    line-height: 1.08;
}

.cookies-primary-next-step p:not(.eyebrow) {
    max-width: 64ch;
    margin-top: 0.5rem;
    color: #475569;
    line-height: 1.5;
}

/* Cookie consent step strip 2026-06-27: necessary, analytics and marketing at a glance. */
.public-shell .cookie-consent-step-strip {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
    max-width: 34rem;
}

.public-shell .cookie-consent-step-strip span {
    align-items: center;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.08);
    color: #172033;
    display: flex;
    font-weight: 850;
    gap: 0.45rem;
    justify-content: center;
    min-height: 44px;
    padding: 0.62rem 0.78rem;
}

.public-shell .cookie-consent-step-strip strong {
    align-items: center;
    background: #2454d6;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    height: 1.45rem;
    justify-content: center;
    line-height: 1;
    width: 1.45rem;
}

.cookies-primary-next-links {
    display: grid;
    gap: 0.55rem;
}

.cookies-primary-next-links a {
    display: grid;
    gap: 0.18rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    color: inherit;
    text-decoration: none;
}

.cookies-primary-next-links a:hover,
.cookies-primary-next-links a:focus-visible {
    border-color: rgba(20, 184, 166, 0.44);
    background: #ffffff;
}

.cookies-primary-next-links strong {
    color: #0f172a;
}

.cookies-primary-next-links span {
    color: #64748b;
    font-size: 0.86rem;
}

@media (max-width: 980px) {
    .cookies-primary-next-step {
        grid-template-columns: 1fr;
    }

    .public-shell .cookie-consent-step-strip {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .public-shell .cookie-consent-step-strip span {
        justify-content: flex-start;
    }

    .cookies-primary-next-step > .btn {
        justify-self: start;
        width: auto;
    }
}

@media (max-width: 640px) {
    .cookies-primary-next-step > .btn {
        width: 100%;
    }
}

html[data-theme="dark"] .cookies-primary-next-step {
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.92));
    border-color: rgba(20, 184, 166, 0.32);
}

html[data-theme="dark"] .cookies-primary-next-step h2,
html[data-theme="dark"] .cookies-primary-next-links strong {
    color: #f8fafc;
}

html[data-theme="dark"] .cookies-primary-next-step p:not(.eyebrow),
html[data-theme="dark"] .cookies-primary-next-links span {
    color: #cbd5e1;
}

html[data-theme="dark"] .cookies-primary-next-links a {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .public-shell .cookie-consent-step-strip span {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(147, 197, 253, 0.24);
    color: #eff6ff;
}

html[data-theme="dark"] .public-shell .cookie-consent-step-strip strong {
    background: #60a5fa;
    color: #0f172a;
}

.legal-primary-next-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(260px, 0.7fr);
    gap: 1rem;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(100, 116, 139, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(100, 116, 139, 0.28);
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08);
}

.legal-primary-next-step h2,
.legal-primary-next-step p {
    margin: 0;
}

.legal-primary-next-step h2 {
    color: #0f172a;
    font-size: clamp(1.35rem, 2.6vw, 2.08rem);
    line-height: 1.08;
}

.legal-primary-next-step p:not(.eyebrow) {
    max-width: 66ch;
    margin-top: 0.5rem;
    color: #475569;
    line-height: 1.5;
}

/* Legal step strip 2026-06-27: identity, use and contact at a glance. */
.public-shell .legal-step-strip {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
    max-width: 34rem;
}

.public-shell .legal-step-strip span {
    align-items: center;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.08);
    color: #172033;
    display: flex;
    font-weight: 850;
    gap: 0.45rem;
    justify-content: center;
    min-height: 44px;
    padding: 0.62rem 0.78rem;
}

.public-shell .legal-step-strip strong {
    align-items: center;
    background: #2454d6;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    height: 1.45rem;
    justify-content: center;
    line-height: 1;
    width: 1.45rem;
}

.legal-primary-next-links {
    display: grid;
    gap: 0.55rem;
}

.legal-primary-next-links a {
    display: grid;
    gap: 0.18rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    color: inherit;
    text-decoration: none;
}

.legal-primary-next-links a:hover,
.legal-primary-next-links a:focus-visible {
    border-color: rgba(100, 116, 139, 0.46);
    background: #ffffff;
}

.legal-primary-next-links strong {
    color: #0f172a;
}

.legal-primary-next-links span {
    color: #64748b;
    font-size: 0.86rem;
}

@media (max-width: 980px) {
    .legal-primary-next-step {
        grid-template-columns: 1fr;
    }

    .public-shell .legal-step-strip {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .public-shell .legal-step-strip span {
        justify-content: flex-start;
    }

    .legal-primary-next-step > .btn {
        justify-self: start;
        width: auto;
    }
}

@media (max-width: 640px) {
    .legal-primary-next-step > .btn {
        width: 100%;
    }
}

html[data-theme="dark"] .legal-primary-next-step {
    background:
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.15), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.92));
    border-color: rgba(148, 163, 184, 0.32);
}

html[data-theme="dark"] .legal-primary-next-step h2,
html[data-theme="dark"] .legal-primary-next-links strong {
    color: #f8fafc;
}

html[data-theme="dark"] .legal-primary-next-step p:not(.eyebrow),
html[data-theme="dark"] .legal-primary-next-links span {
    color: #cbd5e1;
}

html[data-theme="dark"] .legal-primary-next-links a {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .public-shell .legal-step-strip span {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(147, 197, 253, 0.24);
    color: #eff6ff;
}

html[data-theme="dark"] .public-shell .legal-step-strip strong {
    background: #60a5fa;
    color: #0f172a;
}

.document-next-action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 125, 99, 0.2), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.9));
    border: 1px solid rgba(255, 125, 99, 0.26);
}

.document-next-action-copy {
    min-width: 0;
}

.document-next-action-panel h3 {
    max-width: 760px;
    margin: 0;
}

.document-next-action-panel p:not(.eyebrow) {
    max-width: 860px;
    margin: 8px 0 0;
}

.document-next-action-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 0;
}

.document-next-action-meta div {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.68);
}

.document-next-action-meta dt {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.document-next-action-meta dd {
    margin: 4px 0 0;
    color: #111827;
    font-weight: 850;
}

.document-next-action-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    min-width: 280px;
}

html[data-theme="dark"] .document-next-action-panel {
    background:
        radial-gradient(circle at top right, rgba(255, 125, 99, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
    border-color: rgba(251, 146, 60, 0.24);
}

html[data-theme="dark"] .document-next-action-meta div {
    background: rgba(15, 23, 42, 0.68);
    border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .document-next-action-meta dd {
    color: #f8fafc;
}

@media (max-width: 860px) {
    .document-next-action-panel,
    .document-next-action-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .document-next-action-meta {
        grid-template-columns: 1fr;
    }

    .document-next-action-actions {
        min-width: 0;
    }

    .document-next-action-actions .btn,
    .document-next-action-actions button {
        width: 100%;
        justify-content: center;
    }
}

.auth-success {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #065f46;
    font-weight: 700;
    line-height: 1.45;
}

.auth-help-panel {
    margin: 22px 0 0;
    padding: 20px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.86));
    border: 1px solid rgba(96, 165, 250, 0.24);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.auth-help-panel h2 {
    margin: 4px 0 10px;
    color: #111827;
    font-size: clamp(1.12rem, 2vw, 1.42rem);
    line-height: 1.2;
}

.auth-help-panel > div:first-child p:last-child {
    margin-bottom: 16px;
    color: #64748b;
}

.auth-help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.auth-help-grid article {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.94);
}

.auth-help-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
}

.auth-help-grid strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
}

.auth-help-grid p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .auth-help-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard cycle progress: show the simple operational lifecycle at a glance. */
.admin-shell .dashboard-cycle-progress {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
}

.admin-shell .dashboard-cycle-progress-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.admin-shell .dashboard-cycle-progress-head h4 {
  margin: 0.1rem 0 0.25rem;
  color: #0f172a;
  font-size: clamp(1.14rem, 2vw, 1.45rem);
}

.admin-shell .dashboard-cycle-progress-head strong {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 950;
}

.admin-shell .dashboard-cycle-progress-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-shell .dashboard-cycle-progress-card {
  display: grid;
  gap: 0.45rem;
  min-height: 100%;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-shell .dashboard-cycle-progress-card:hover,
.admin-shell .dashboard-cycle-progress-card:focus-visible {
  border-color: rgba(14, 165, 233, 0.62);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.admin-shell .dashboard-cycle-progress-card span {
  justify-self: start;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-shell .dashboard-cycle-progress-card strong {
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.2;
}

.admin-shell .dashboard-cycle-progress-card p,
.admin-shell .dashboard-cycle-progress-card em {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
}

.admin-shell .dashboard-cycle-progress-card em {
  color: #0f766e;
  font-style: normal;
  font-weight: 900;
}

.admin-shell .dashboard-cycle-progress-card.is-ready {
  border-color: rgba(22, 163, 74, 0.26);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.92), rgba(255, 255, 255, 0.96));
}

.admin-shell .dashboard-cycle-progress-card.is-ready span {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.admin-shell .dashboard-cycle-progress-card.is-missing {
  border-color: rgba(245, 158, 11, 0.26);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.94), rgba(255, 255, 255, 0.96));
}

.admin-shell .dashboard-cycle-progress-card.is-missing span {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

@media (max-width: 1100px) {
  .admin-shell .dashboard-cycle-progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-shell .dashboard-cycle-progress-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .admin-shell .dashboard-cycle-progress {
  border-color: rgba(96, 165, 250, 0.22);
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.84));
}

html[data-theme="dark"] .admin-shell .dashboard-cycle-progress-head h4,
html[data-theme="dark"] .admin-shell .dashboard-cycle-progress-card strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .dashboard-cycle-progress-card {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .admin-shell .dashboard-cycle-progress-card p {
  color: #cbd5e1;
}

/* Customer next action: one recommended customer task before the full queue. */
.admin-shell .customer-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.85rem;
  border-color: rgba(14, 165, 233, 0.26);
  background:
    radial-gradient(circle at 0 0, rgba(14, 165, 233, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.admin-shell .customer-next-action-panel h3 {
  margin: 0.1rem 0 0.28rem;
  color: #0f172a;
  font-size: clamp(1.16rem, 2vw, 1.5rem);
  line-height: 1.15;
}

.admin-shell .customer-next-action-panel p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.admin-shell .customer-next-action-panel > span {
  justify-self: end;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #075985;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-shell .customer-next-action-high {
  border-color: rgba(239, 68, 68, 0.26);
  background:
    radial-gradient(circle at 0 0, rgba(239, 68, 68, 0.11), transparent 18rem),
    linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.98));
}

.admin-shell .customer-next-action-high > span {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}

.admin-shell .customer-next-action-medium {
  border-color: rgba(245, 158, 11, 0.28);
}

.admin-shell .customer-next-action-medium > span {
  background: rgba(245, 158, 11, 0.13);
  color: #92400e;
}

@media (max-width: 860px) {
  .admin-shell .customer-next-action-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-shell .customer-next-action-panel > span,
  .admin-shell .customer-next-action-panel .btn {
    justify-self: start;
  }
}

html[data-theme="dark"] .admin-shell .customer-next-action-panel {
  border-color: rgba(96, 165, 250, 0.22);
  background:
    radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.14), transparent 18rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.86));
}

html[data-theme="dark"] .admin-shell .customer-next-action-panel h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .customer-next-action-panel p {
  color: #cbd5e1;
}

/* Supplier next action: keep purchases actionable before metrics and tables. */
.admin-shell .supplier-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  border-color: rgba(14, 165, 233, 0.24);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.admin-shell .supplier-next-action-panel h3 {
  margin: 0.1rem 0 0.28rem;
  color: #0f172a;
  font-size: clamp(1.16rem, 2vw, 1.5rem);
  line-height: 1.15;
}

.admin-shell .supplier-next-action-panel p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.admin-shell .supplier-next-action-panel > span {
  justify-self: end;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #075985;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-shell .supplier-next-action-high {
  border-color: rgba(245, 158, 11, 0.28);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.98));
}

.admin-shell .supplier-next-action-high > span {
  background: rgba(245, 158, 11, 0.13);
  color: #92400e;
}

.admin-shell .supplier-next-action-buttons {
  justify-content: flex-end;
  margin: 0;
}

@media (max-width: 860px) {
  .admin-shell .supplier-next-action-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-shell .supplier-next-action-panel > span,
  .admin-shell .supplier-next-action-buttons {
    justify-self: start;
  }

  .admin-shell .supplier-next-action-buttons,
  .admin-shell .supplier-next-action-buttons .btn {
    width: 100%;
  }
}

html[data-theme="dark"] .admin-shell .supplier-next-action-panel {
  border-color: rgba(96, 165, 250, 0.22);
  background:
    radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.14), transparent 18rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.86));
}

html[data-theme="dark"] .admin-shell .supplier-next-action-panel h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .supplier-next-action-panel p {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .supplier-next-action-panel > span {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

html[data-theme="dark"] .admin-shell .supplier-next-action-high > span {
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
}

/* Quote next action: one recommended proposal before the full follow-up queue. */
.admin-shell .quote-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  border-color: rgba(14, 165, 233, 0.24);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.admin-shell .quote-next-action-panel h3 {
  margin: 0.1rem 0 0.28rem;
  color: #0f172a;
  font-size: clamp(1.16rem, 2vw, 1.5rem);
  line-height: 1.15;
}

.admin-shell .quote-next-action-panel p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.admin-shell .quote-next-action-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.24rem 0.58rem;
  min-width: 12rem;
  margin: 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.86);
}

.admin-shell .quote-next-action-meta dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-shell .quote-next-action-meta dd {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
}

.admin-shell .quote-next-action-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-shell .quote-next-action-high {
  border-color: rgba(239, 68, 68, 0.28);
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.98));
}

.admin-shell .quote-next-action-medium {
  border-color: rgba(245, 158, 11, 0.28);
}

@media (max-width: 980px) {
  .admin-shell .quote-next-action-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-shell .quote-next-action-actions {
    justify-content: flex-start;
  }
}

html[data-theme="dark"] .admin-shell .quote-next-action-panel {
  border-color: rgba(96, 165, 250, 0.24);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.86));
}

html[data-theme="dark"] .admin-shell .quote-next-action-panel h3,
html[data-theme="dark"] .admin-shell .quote-next-action-meta dd {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .quote-next-action-panel p,
html[data-theme="dark"] .admin-shell .quote-next-action-meta dt {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .quote-next-action-meta {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
}

.admin-shell .work-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  border-color: #bae6fd;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.admin-shell .work-next-action-panel h3 {
  margin: 0.12rem 0 0.28rem;
  color: #0f172a;
  font-size: clamp(1.16rem, 2vw, 1.58rem);
  line-height: 1.15;
}

.admin-shell .work-next-action-panel p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.admin-shell .work-next-action-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.22rem 0.58rem;
  min-width: 12.5rem;
  padding: 0.72rem;
  border: 1px solid #dbeafe;
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.82);
}

.admin-shell .work-next-action-meta dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-shell .work-next-action-meta dd {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
}

.admin-shell .work-next-action-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-shell .work-next-action-high {
  border-color: #fecaca;
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.12), transparent 34%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.admin-shell .work-next-action-medium {
  border-color: #fde68a;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.13), transparent 34%),
    linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.admin-shell .work-next-action-low {
  border-color: #bbf7d0;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 34%),
    linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

@media (max-width: 980px) {
  .admin-shell .work-next-action-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-shell .work-next-action-actions {
    justify-content: flex-start;
  }
}

html[data-theme="dark"] .admin-shell .work-next-action-panel {
  border-color: #1d4ed8;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 34%),
    #0b1220;
}

html[data-theme="dark"] .admin-shell .work-next-action-panel h3,
html[data-theme="dark"] .admin-shell .work-next-action-meta dd {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .work-next-action-panel p,
html[data-theme="dark"] .admin-shell .work-next-action-meta dt {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .work-next-action-meta {
  border-color: #22304b;
  background: #0f182b;
}

/* Support next action: one recommended ticket before the full support queue. */
.admin-shell .support-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  border-color: #bae6fd;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.admin-shell .support-next-action-panel h3 {
  margin: 0.12rem 0 0.28rem;
  color: #0f172a;
  font-size: clamp(1.16rem, 2vw, 1.58rem);
  line-height: 1.15;
}

.admin-shell .support-next-action-panel p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.admin-shell .support-next-action-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.22rem 0.58rem;
  min-width: 13rem;
  padding: 0.72rem;
  border: 1px solid #dbeafe;
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.82);
}

.admin-shell .support-next-action-meta dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-shell .support-next-action-meta dd {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
}

.admin-shell .support-next-action-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-shell .support-next-action-actions form {
  margin: 0;
}

.admin-shell .support-next-action-high {
  border-color: #fecaca;
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.12), transparent 34%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.admin-shell .support-next-action-medium {
  border-color: #fde68a;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.13), transparent 34%),
    linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.admin-shell .support-next-action-low {
  border-color: #bbf7d0;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 34%),
    linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

@media (max-width: 980px) {
  .admin-shell .support-next-action-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-shell .support-next-action-actions {
    justify-content: flex-start;
  }
}

html[data-theme="dark"] .admin-shell .support-next-action-panel {
  border-color: #1d4ed8;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 34%),
    #0b1220;
}

html[data-theme="dark"] .admin-shell .support-next-action-panel h3,
html[data-theme="dark"] .admin-shell .support-next-action-meta dd {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .support-next-action-panel p,
html[data-theme="dark"] .admin-shell .support-next-action-meta dt {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .support-next-action-meta {
  border-color: #22304b;
  background: #0f182b;
}

.admin-shell .legal-activity-editor {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(240, 253, 250, 0.9), rgba(255, 255, 255, 0.98));
}

.admin-shell .legal-activity-editor h4,
.admin-shell .legal-activity-editor p {
  margin: 0;
}

.admin-shell .legal-activity-grid {
  display: grid;
  gap: 0.75rem;
}

.admin-shell .legal-activity-row {
  display: grid;
  grid-template-columns: minmax(11rem, 1.2fr) repeat(3, minmax(8rem, 1fr));
  gap: 0.65rem;
  align-items: end;
  padding: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-shell .legal-activity-row label {
  display: grid;
  gap: 0.35rem;
  color: #0f172a;
  font-weight: 850;
}

@media (max-width: 980px) {
  .admin-shell .legal-activity-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .admin-shell .legal-activity-row {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .admin-shell .legal-activity-editor {
  border-color: rgba(45, 212, 191, 0.2);
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.82));
}

html[data-theme="dark"] .admin-shell .legal-activity-row {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .admin-shell .legal-activity-row label {
  color: #f8fafc;
}

/* Lead next action: one recommended contact before the full lead queues. */
.admin-shell .lead-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
  border-color: rgba(245, 158, 11, 0.24);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.11), transparent 18rem),
    linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.98));
}

.admin-shell .lead-next-action-panel h3 {
  margin: 0.1rem 0 0.28rem;
  color: #0f172a;
  font-size: clamp(1.16rem, 2vw, 1.5rem);
  line-height: 1.15;
}

.admin-shell .lead-next-action-panel p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.admin-shell .lead-next-action-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.24rem 0.58rem;
  min-width: 12rem;
  margin: 0;
  padding: 0.82rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.admin-shell .lead-next-action-meta dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-shell .lead-next-action-meta dd {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
}

.admin-shell .lead-next-action-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-shell .lead-next-action-actions form {
  margin: 0;
}

.admin-shell .lead-next-action-high {
  border-color: rgba(239, 68, 68, 0.28);
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.98));
}

.admin-shell .lead-next-action-medium {
  border-color: rgba(245, 158, 11, 0.3);
}

.admin-shell .lead-next-action-low,
.admin-shell .lead-next-action-ok {
  border-color: rgba(14, 165, 233, 0.24);
}

@media (max-width: 980px) {
  .admin-shell .lead-next-action-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-shell .lead-next-action-actions {
    justify-content: flex-start;
  }
}

html[data-theme="dark"] .admin-shell .lead-next-action-panel {
  border-color: rgba(96, 165, 250, 0.24);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.86));
}

html[data-theme="dark"] .admin-shell .lead-next-action-panel h3,
html[data-theme="dark"] .admin-shell .lead-next-action-meta dd {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .lead-next-action-panel p,
html[data-theme="dark"] .admin-shell .lead-next-action-meta dt {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .lead-next-action-meta {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
}

/* Module request next action: one recommended decision before the queue. */
.admin-shell .module-request-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.55fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(248, 113, 113, 0.26);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 126, 103, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 241, 0.94));
  box-shadow: 0 20px 50px rgba(148, 85, 54, 0.14);
}

.admin-shell .module-request-next-action-panel h3 {
  margin: 0.15rem 0 0.35rem;
  color: #111827;
}

.admin-shell .module-request-next-action-panel p {
  margin: 0;
  color: #5f6b7b;
}

.admin-shell .module-request-next-action-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.7rem;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-shell .module-request-next-action-meta dt {
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-shell .module-request-next-action-meta dd {
  margin: 0;
  color: #111827;
  font-weight: 850;
}

.admin-shell .module-request-next-action-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.admin-shell .module-request-next-action-actions form {
  margin: 0;
}

.admin-shell .module-request-next-action-actions button,
.admin-shell .module-request-next-action-actions .btn {
  white-space: nowrap;
}

.admin-shell .module-request-next-action-high {
  border-color: rgba(220, 38, 38, 0.34);
}

.admin-shell .module-request-next-action-medium {
  border-color: rgba(245, 158, 11, 0.34);
}

.admin-shell .module-request-next-action-ok {
  border-color: rgba(34, 197, 94, 0.28);
}

@media (max-width: 980px) {
  .admin-shell .module-request-next-action-panel {
    grid-template-columns: 1fr;
  }

  .admin-shell .module-request-next-action-actions {
    justify-content: flex-start;
  }
}

html[data-theme="dark"] .admin-shell .module-request-next-action-panel {
  border-color: rgba(248, 113, 113, 0.28);
  background:
    radial-gradient(circle at 10% 0%, rgba(248, 113, 113, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.94));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .admin-shell .module-request-next-action-panel h3,
html[data-theme="dark"] .admin-shell .module-request-next-action-meta dd {
  color: #f9fafb;
}

html[data-theme="dark"] .admin-shell .module-request-next-action-panel p,
html[data-theme="dark"] .admin-shell .module-request-next-action-meta dt {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .module-request-next-action-meta {
  border-color: rgba(71, 85, 105, 0.7);
  background: rgba(15, 23, 42, 0.72);
}

/* Referral next action: one reward to decide before scanning the list. */
.admin-shell .referral-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(14, 165, 233, 0.26);
  background:
    radial-gradient(circle at 8% 0%, rgba(14, 165, 233, 0.15), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
  box-shadow: 0 20px 50px rgba(15, 76, 117, 0.13);
}

.admin-shell .referral-next-action-panel h3 {
  margin: 0.15rem 0 0.35rem;
  color: #111827;
}

.admin-shell .referral-next-action-panel p {
  margin: 0;
  color: #5f6b7b;
}

.admin-shell .referral-next-action-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.7rem;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-shell .referral-next-action-meta dt {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-shell .referral-next-action-meta dd {
  margin: 0;
  color: #111827;
  font-weight: 850;
}

.admin-shell .referral-next-action-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.admin-shell .referral-next-action-actions form {
  margin: 0;
}

.admin-shell .referral-next-action-actions button,
.admin-shell .referral-next-action-actions .btn {
  white-space: nowrap;
}

.admin-shell .referral-next-action-high {
  border-color: rgba(14, 165, 233, 0.34);
}

.admin-shell .referral-next-action-medium {
  border-color: rgba(245, 158, 11, 0.34);
}

.admin-shell .referral-next-action-low {
  border-color: rgba(148, 163, 184, 0.34);
}

@media (max-width: 980px) {
  .admin-shell .referral-next-action-panel {
    grid-template-columns: 1fr;
  }

  .admin-shell .referral-next-action-actions {
    justify-content: flex-start;
  }
}

html[data-theme="dark"] .admin-shell .referral-next-action-panel {
  border-color: rgba(14, 165, 233, 0.3);
  background:
    radial-gradient(circle at 8% 0%, rgba(14, 165, 233, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .admin-shell .referral-next-action-panel h3,
html[data-theme="dark"] .admin-shell .referral-next-action-meta dd {
  color: #f9fafb;
}

html[data-theme="dark"] .admin-shell .referral-next-action-panel p,
html[data-theme="dark"] .admin-shell .referral-next-action-meta dt {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .referral-next-action-meta {
  border-color: rgba(71, 85, 105, 0.7);
  background: rgba(15, 23, 42, 0.72);
}

/* Project cost next action: one investment decision before the full ledger. */
.admin-shell .project-cost-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr) auto;
  gap: 1rem;
  align-items: center;
  border-color: rgba(245, 158, 11, 0.3);
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 158, 11, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.94));
  box-shadow: 0 20px 50px rgba(120, 77, 13, 0.13);
}

.admin-shell .project-cost-next-action-panel h3 {
  margin: 0.15rem 0 0.35rem;
  color: #111827;
  font-size: clamp(1.16rem, 2vw, 1.52rem);
  line-height: 1.15;
}

.admin-shell .project-cost-next-action-panel p {
  margin: 0;
  color: #5f6b7b;
}

.admin-shell .project-cost-next-action-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem 0.7rem;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid rgba(253, 230, 138, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-shell .project-cost-next-action-meta dt {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-shell .project-cost-next-action-meta dd {
  margin: 0;
  color: #111827;
  font-weight: 850;
}

.admin-shell .project-cost-next-action-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.admin-shell .project-cost-next-action-actions form {
  margin: 0;
}

.admin-shell .project-cost-next-action-actions button,
.admin-shell .project-cost-next-action-actions .btn {
  white-space: nowrap;
}

.admin-shell .project-cost-next-action-high {
  border-color: rgba(220, 38, 38, 0.34);
  background:
    radial-gradient(circle at 8% 0%, rgba(239, 68, 68, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.96));
}

.admin-shell .project-cost-next-action-medium {
  border-color: rgba(245, 158, 11, 0.38);
}

.admin-shell .project-cost-next-action-low {
  border-color: rgba(14, 165, 233, 0.28);
}

@media (max-width: 980px) {
  .admin-shell .project-cost-next-action-panel {
    grid-template-columns: 1fr;
  }

  .admin-shell .project-cost-next-action-actions {
    justify-content: flex-start;
  }
}

html[data-theme="dark"] .admin-shell .project-cost-next-action-panel {
  border-color: rgba(245, 158, 11, 0.28);
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 158, 11, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.94));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .admin-shell .project-cost-next-action-panel h3,
html[data-theme="dark"] .admin-shell .project-cost-next-action-meta dd {
  color: #f9fafb;
}

html[data-theme="dark"] .admin-shell .project-cost-next-action-panel p,
html[data-theme="dark"] .admin-shell .project-cost-next-action-meta dt {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .project-cost-next-action-meta {
  border-color: rgba(71, 85, 105, 0.7);
  background: rgba(15, 23, 42, 0.72);
}

/* Dashboard guided next step: one clear action for non-technical users. */
.admin-shell .dashboard-guided-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 0.9rem 0 1rem;
  padding: 1rem;
  border: 1px solid #fed7aa;
  border-radius: 1rem;
  background:
    radial-gradient(circle at top right, rgba(255, 127, 102, 0.18), transparent 34%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 62%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.admin-shell .dashboard-guided-next-step h4,
.admin-shell .dashboard-guided-next-step p {
  margin: 0;
}

.admin-shell .dashboard-guided-next-step h4 {
  color: #111827;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.12;
}

.admin-shell .dashboard-guided-next-step p:not(.eyebrow) {
  margin-top: 0.38rem;
  max-width: 48rem;
  color: #475569;
  line-height: 1.45;
}

.admin-shell .dashboard-guided-next-step span {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.65rem;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-shell .dashboard-guided-next-step .btn {
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(255, 127, 102, 0.2);
}

@media (max-width: 760px) {
  .admin-shell .dashboard-guided-next-step {
    grid-template-columns: 1fr;
  }

  .admin-shell .dashboard-guided-next-step .btn {
    width: 100%;
  }
}

html[data-theme="dark"] .admin-shell .dashboard-guided-next-step {
  border-color: #7c2d12;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 36%),
    #0f182b;
}

html[data-theme="dark"] .admin-shell .dashboard-guided-next-step h4 {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .dashboard-guided-next-step p:not(.eyebrow) {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .dashboard-guided-next-step span {
  background: rgba(251, 146, 60, 0.12);
  color: #fdba74;
}

/* Import guided next step: one safe action before historical CSV writes. */
.admin-shell .import-guided-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 0.85rem 0 1rem;
  padding: 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 34%),
    linear-gradient(135deg, #eff6ff 0%, #ffffff 66%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.admin-shell .import-guided-next-step h4,
.admin-shell .import-guided-next-step p {
  margin: 0;
}

.admin-shell .import-guided-next-step h4 {
  color: #111827;
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  line-height: 1.13;
}

.admin-shell .import-guided-next-step p:not(.eyebrow) {
  margin-top: 0.38rem;
  max-width: 50rem;
  color: #475569;
  line-height: 1.45;
}

.admin-shell .import-guided-next-step-review {
  border-color: #fed7aa;
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.16), transparent 34%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 66%);
}

.admin-shell .import-guided-next-step-import {
  border-color: #bbf7d0;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 34%),
    linear-gradient(135deg, #f0fdf4 0%, #ffffff 66%);
}

.admin-shell .import-guided-next-step-done {
  border-color: #c7d2fe;
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.13), transparent 34%),
    linear-gradient(135deg, #eef2ff 0%, #ffffff 66%);
}

.admin-shell .import-guided-next-step .btn {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .admin-shell .import-guided-next-step {
    grid-template-columns: 1fr;
  }

  .admin-shell .import-guided-next-step .btn {
    width: 100%;
  }
}

html[data-theme="dark"] .admin-shell .import-guided-next-step,
html[data-theme="dark"] .admin-shell .import-guided-next-step-review,
html[data-theme="dark"] .admin-shell .import-guided-next-step-import,
html[data-theme="dark"] .admin-shell .import-guided-next-step-done {
  border-color: #22304b;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 36%),
    #0f182b;
}

html[data-theme="dark"] .admin-shell .import-guided-next-step h4 {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .import-guided-next-step p:not(.eyebrow) {
  color: #cbd5e1;
}

/* Access decision panel: route visitors before they try credentials. */
.auth-bg .access-decision-panel {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 36%),
    linear-gradient(135deg, #eff6ff 0%, #ffffff 70%);
}

.auth-bg .access-decision-panel h2,
.auth-bg .access-decision-panel p {
  margin: 0;
}

.auth-bg .access-decision-panel h2 {
  color: #111827;
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  line-height: 1.15;
}

.auth-bg .access-decision-panel p:not(.eyebrow) {
  margin-top: 0.35rem;
  color: #475569;
  line-height: 1.45;
}

.auth-bg .access-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.auth-bg .access-decision-grid a {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #dbeafe;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.auth-bg .access-decision-grid a:hover,
.auth-bg .access-decision-grid a:focus-visible {
  border-color: #0ea5e9;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.16);
  transform: translateY(-1px);
}

.auth-bg .access-decision-grid span {
  color: #0e7490;
  font-size: 0.76rem;
  font-weight: 900;
}

.auth-bg .access-decision-grid strong {
  color: #111827;
  line-height: 1.18;
}

.auth-bg .access-decision-grid small {
  color: #64748b;
  line-height: 1.35;
}

.auth-bg .auth-shell:focus {
  outline: 3px solid rgba(34, 211, 238, 0.65);
  outline-offset: 0.35rem;
}

@media (max-width: 760px) {
  .auth-card-pro {
    grid-template-columns: 1fr;
  }

  .auth-minimal-grid {
    grid-template-columns: 1fr;
  }

  .auth-product-hero {
    min-height: auto;
  }

  .auth-product-visual {
    max-width: 26rem;
  }

  .auth-product-copy h2 {
    max-width: 14ch;
  }

  .auth-bg .access-decision-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact primary next step: direct checkout before asking users to write. */
/* Public contact blue CTA guard: contact CTAs must follow the sober blue identity, not orange accents. */
.contact-primary-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.20), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.contact-primary-next-step h2,
.contact-primary-next-step p {
  margin: 0;
}

.contact-primary-next-step h2 {
  color: #111827;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1.08;
}

.contact-primary-next-step p:not(.eyebrow) {
  margin-top: 0.45rem;
  max-width: 52rem;
  color: #475569;
  line-height: 1.5;
}

.contact-primary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: min(100%, 24rem);
}

.contact-primary-actions > a:not(.btn):not(.btn-outline) {
  align-self: center;
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: none;
}

.contact-primary-actions > a:not(.btn):not(.btn-outline):hover,
.contact-primary-actions > a:not(.btn):not(.btn-outline):focus-visible {
  text-decoration: underline;
}

/* Contact step strip 2026-06-27: make the form understandable before typing. */
.public-shell .contact-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 0 0.35rem;
}

.public-shell .contact-step-strip span {
  align-items: center;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  color: #173a8a;
  display: inline-flex;
  font-weight: 900;
  gap: 0.42rem;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 0;
  padding: 0.5rem 0.72rem;
}

.public-shell .contact-step-strip strong {
  background: #1d4ed8;
  border-radius: 999px;
  color: #ffffff;
  display: inline-grid;
  flex: 0 0 auto;
  font-size: 0.78rem;
  height: 1.45rem;
  line-height: 1;
  place-items: center;
  width: 1.45rem;
}

@media (max-width: 860px) {
  .contact-primary-next-step {
    grid-template-columns: 1fr;
  }

  .contact-primary-actions {
    justify-content: flex-start;
  }

  .contact-primary-actions .btn,
  .contact-primary-actions .btn-outline {
    width: 100%;
  }

  .public-shell .contact-step-strip {
    grid-template-columns: 1fr;
  }

  .public-shell .contact-step-strip span {
    justify-content: flex-start;
  }
}

html[data-theme="dark"] .contact-primary-next-step {
  border-color: rgba(96, 165, 250, 0.34);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 36%),
    #0f182b;
}

html[data-theme="dark"] .contact-primary-next-step h2 {
  color: #f8fafc;
}

html[data-theme="dark"] .contact-primary-next-step p:not(.eyebrow) {
  color: #cbd5e1;
}

html[data-theme="dark"] .contact-primary-actions > a:not(.btn):not(.btn-outline) {
  color: #fdba74;
}

html[data-theme="dark"] .public-shell .contact-step-strip span {
  background: linear-gradient(135deg, #0f2744, #111827);
  border-color: rgba(147, 197, 253, 0.28);
  color: #dbeafe;
}

/* Public contact intent chips 2026-06-28: reduce typing before the form. */
.public-shell .contact-intent-panel {
  display: grid;
  gap: 0.68rem;
  margin: 0.15rem 0 0.45rem;
  padding: 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.public-shell .contact-intent-panel > strong {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 900;
}

.public-shell .contact-intent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.public-shell .contact-intent-grid button {
  min-height: 2.75rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #173a8a;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
  box-shadow: none;
}

.public-shell .contact-intent-grid button:hover,
.public-shell .contact-intent-grid button:focus-visible {
  border-color: rgba(37, 99, 235, 0.48);
  background: #eff6ff;
  color: #1d4ed8;
}

.public-shell .contact-intent-grid button[aria-pressed="true"],
.public-shell .contact-intent-grid button.is-selected {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(29, 78, 216, 0.18);
}

.public-shell .contact-intent-panel small {
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .public-shell .contact-intent-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .public-shell .contact-intent-panel {
  border-color: rgba(147, 197, 253, 0.24);
  background: linear-gradient(135deg, rgba(15, 39, 68, 0.72), rgba(17, 24, 39, 0.92));
}

html[data-theme="dark"] .public-shell .contact-intent-panel > strong {
  color: #f8fafc;
}

html[data-theme="dark"] .public-shell .contact-intent-grid button {
  border-color: rgba(147, 197, 253, 0.28);
  background: #0f172a;
  color: #dbeafe;
}

html[data-theme="dark"] .public-shell .contact-intent-grid button:hover,
html[data-theme="dark"] .public-shell .contact-intent-grid button:focus-visible {
  background: #172554;
  color: #ffffff;
}

html[data-theme="dark"] .public-shell .contact-intent-grid button[aria-pressed="true"],
html[data-theme="dark"] .public-shell .contact-intent-grid button.is-selected {
  border-color: #93c5fd;
  background: #1d4ed8;
  color: #ffffff;
}

html[data-theme="dark"] .public-shell .contact-intent-panel small {
  color: #cbd5e1;
}

html[data-theme="dark"] .public-shell .contact-step-strip strong {
  background: #60a5fa;
  color: #0f172a;
}

/* Trade request step strip 2026-06-27: explain new trade request before typing. */
.public-shell .trade-request-step-strip {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 0.35rem;
}

.public-shell .trade-request-step-strip span {
  align-items: center;
  background: linear-gradient(135deg, #eff6ff, #fff);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  color: #173a8a;
  display: inline-flex;
  font-weight: 900;
  gap: 0.42rem;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 0;
  padding: 0.5rem 0.72rem;
}

.public-shell .trade-request-step-strip strong {
  background: #1d4ed8;
  border-radius: 999px;
  color: #fff;
  display: inline-grid;
  flex: 0 0 auto;
  font-size: 0.78rem;
  height: 1.45rem;
  line-height: 1;
  place-items: center;
  width: 1.45rem;
}

@media (max-width: 860px) {
  .public-shell .trade-request-step-strip {
    grid-template-columns: 1fr;
  }

  .public-shell .trade-request-step-strip span {
    justify-content: flex-start;
  }
}

html[data-theme="dark"] .public-shell .trade-request-step-strip span {
  background: linear-gradient(135deg, #0f2744, #111827);
  border-color: rgba(147, 197, 253, 0.28);
  color: #dbeafe;
}

html[data-theme="dark"] .public-shell .trade-request-step-strip strong {
  background: #60a5fa;
  color: #0f172a;
}

/* Referral primary next step: one clear action before referral shortcuts. */
.referral-primary-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(14, 165, 233, 0.24);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.referral-primary-next-step h2,
.referral-primary-next-step p {
  margin: 0;
}

.referral-primary-next-step h2 {
  color: #111827;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.referral-primary-next-step p:not(.eyebrow) {
  margin-top: 0.45rem;
  max-width: 52rem;
  color: #475569;
  line-height: 1.5;
}

/* Referral step strip 2026-06-27: code, payment and credit before choosing a path. */
.public-shell .referral-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0 0;
  max-width: 34rem;
}

.public-shell .referral-step-strip span {
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.08);
  color: #172033;
  display: flex;
  font-weight: 850;
  gap: 0.45rem;
  justify-content: center;
  min-height: 44px;
  padding: 0.62rem 0.78rem;
}

.public-shell .referral-step-strip strong {
  align-items: center;
  background: #2454d6;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  height: 1.45rem;
  justify-content: center;
  line-height: 1;
  width: 1.45rem;
}

.referral-primary-next-step span {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.65rem;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: #ffffff;
  color: #0e7490;
  font-size: 0.78rem;
  font-weight: 900;
}

.referral-primary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: min(100%, 22rem);
}

@media (max-width: 860px) {
  .referral-primary-next-step {
    grid-template-columns: 1fr;
  }

  .public-shell .referral-step-strip {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .public-shell .referral-step-strip span {
    justify-content: flex-start;
  }

  .referral-primary-actions {
    justify-content: flex-start;
  }

  .referral-primary-actions .btn,
  .referral-primary-actions .btn-outline {
    width: 100%;
  }
}

html[data-theme="dark"] .referral-primary-next-step {
  border-color: rgba(14, 165, 233, 0.35);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 36%),
    #0f182b;
}

html[data-theme="dark"] .referral-primary-next-step h2 {
  color: #f8fafc;
}

html[data-theme="dark"] .referral-primary-next-step p:not(.eyebrow) {
  color: #cbd5e1;
}

html[data-theme="dark"] .referral-primary-next-step span {
  background: rgba(14, 165, 233, 0.12);
  color: #67e8f9;
}

html[data-theme="dark"] .public-shell .referral-step-strip span {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(147, 197, 253, 0.24);
  color: #eff6ff;
}

html[data-theme="dark"] .public-shell .referral-step-strip strong {
  background: #60a5fa;
  color: #0f172a;
}

/* Reduced motion accessibility contract: respect OS-level motion preferences across public and admin UI. */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

/* Security next action: one clear review before the full technical log. */
.security-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.9));
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08);
}

.security-next-action-panel h3 {
  margin: 0.2rem 0 0.45rem;
  color: var(--text);
}

.security-next-action-panel p {
  margin: 0 0 0.45rem;
  color: var(--muted);
  line-height: 1.55;
}

.security-next-action-panel small {
  color: var(--muted);
}

.security-next-action-panel > span {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
  font-weight: 800;
  white-space: nowrap;
}

.security-next-action-high {
  border-color: rgba(220, 38, 38, 0.32);
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(254, 242, 242, 0.92));
}

.security-next-action-high > span {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.security-next-action-medium > span {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

@media (max-width: 860px) {
  .security-next-action-panel {
    grid-template-columns: 1fr;
  }

  .security-next-action-panel > span,
  .security-next-action-panel .btn {
    justify-self: start;
  }
}

html[data-theme="dark"] .security-next-action-panel {
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  border-color: rgba(245, 158, 11, 0.28);
}

html[data-theme="dark"] .security-next-action-high {
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  border-color: rgba(248, 113, 113, 0.34);
}

/* Access next action: one user to review before scanning all access cards. */
.admin-shell .access-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.9));
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08);
}

.admin-shell .access-next-action-panel h3 {
  margin: 0.2rem 0 0.45rem;
  color: var(--text);
}

.admin-shell .access-next-action-panel p {
  margin: 0 0 0.45rem;
  color: var(--muted);
  line-height: 1.55;
}

.admin-shell .access-next-action-panel small {
  color: var(--muted);
}

.admin-shell .access-next-action-panel > span {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
  font-weight: 800;
  white-space: nowrap;
}

.admin-shell .access-next-action-high {
  border-color: rgba(220, 38, 38, 0.32);
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(254, 242, 242, 0.92));
}

.admin-shell .access-next-action-high > span {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.admin-shell .access-next-action-medium > span {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

@media (max-width: 860px) {
  .admin-shell .access-next-action-panel {
    grid-template-columns: 1fr;
  }

  .admin-shell .access-next-action-panel > span,
  .admin-shell .access-next-action-panel .btn {
    justify-self: start;
  }
}

html[data-theme="dark"] .admin-shell .access-next-action-panel {
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  border-color: rgba(245, 158, 11, 0.28);
}

html[data-theme="dark"] .admin-shell .access-next-action-high {
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  border-color: rgba(248, 113, 113, 0.34);
}

/* VeriFactu next action: one fiscal preparation decision before metrics and records. */
.admin-shell .verifactu-next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.9));
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08);
}

.admin-shell .verifactu-next-action-panel h3 {
  margin: 0.2rem 0 0.45rem;
  color: var(--text);
}

.admin-shell .verifactu-next-action-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-shell .verifactu-next-action-panel > span {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
  font-weight: 800;
  white-space: nowrap;
}

.admin-shell .verifactu-next-action-high {
  border-color: rgba(220, 38, 38, 0.32);
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(254, 242, 242, 0.92));
}

.admin-shell .verifactu-next-action-high > span {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.admin-shell .verifactu-next-action-medium > span {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

@media (max-width: 860px) {
  .admin-shell .verifactu-next-action-panel {
    grid-template-columns: 1fr;
  }

  .admin-shell .verifactu-next-action-panel > span,
  .admin-shell .verifactu-next-action-panel .btn {
    justify-self: start;
  }
}

html[data-theme="dark"] .admin-shell .verifactu-next-action-panel {
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  border-color: rgba(245, 158, 11, 0.28);
}

html[data-theme="dark"] .admin-shell .verifactu-next-action-high {
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  border-color: rgba(248, 113, 113, 0.34);
}

/* Admin user menu and SVG icon contract: no letter-only menu icons, no loose preview badge. */
.admin-shell .admin-mega-nav__button-icon svg,
.admin-shell .admin-mega-nav__section-icon svg,
.admin-shell .admin-mega-nav__item-icon svg,
.admin-shell .admin-rail-title-icon svg,
.admin-shell .admin-rail-icon svg,
.admin-shell .admin-user-menu__avatar svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: block;
}

.admin-shell .admin-mega-nav__button-icon,
.admin-shell .admin-mega-nav__section-icon,
.admin-shell .admin-mega-nav__item-icon,
.admin-shell .admin-rail-title-icon,
.admin-shell .admin-rail-icon {
  color: #697587;
}

.admin-shell .admin-mega-nav__button:hover .admin-mega-nav__button-icon,
.admin-shell .admin-mega-nav__item.is-active .admin-mega-nav__button-icon,
.admin-shell .admin-mega-nav__panel a:hover .admin-mega-nav__item-icon,
.admin-shell .admin-mega-nav__panel a.active .admin-mega-nav__item-icon,
.admin-shell .admin-rail a:hover .admin-rail-icon,
.admin-shell .admin-rail a.active .admin-rail-icon {
  color: #0f172a;
  background: #fff7ed;
  border-color: #fed7aa;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__button:hover .admin-mega-nav__button-icon,
html[data-theme="dark"] .admin-shell .admin-mega-nav__item.is-active .admin-mega-nav__button-icon,
html[data-theme="dark"] .admin-shell .admin-mega-nav__panel a:hover .admin-mega-nav__item-icon,
html[data-theme="dark"] .admin-shell .admin-mega-nav__panel a.active .admin-mega-nav__item-icon,
html[data-theme="dark"] .admin-shell .admin-rail a:hover .admin-rail-icon,
html[data-theme="dark"] .admin-shell .admin-rail a.active .admin-rail-icon {
  color: #f8fafc;
  background: rgba(251, 146, 60, 0.15);
  border-color: rgba(251, 146, 60, 0.42);
}

.admin-shell .admin-user-menu {
  position: relative;
  min-width: 0;
}

.admin-shell .admin-user-menu__summary {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  max-width: 100%;
  padding: 0.28rem 0.45rem;
  border: 1px solid #d8dee8;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #182230;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.admin-shell .admin-user-menu__summary::-webkit-details-marker,
.admin-shell .admin-user-menu__summary::marker {
  display: none;
  content: "";
}

.admin-shell .admin-user-menu__summary::after {
  content: "v";
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.admin-shell .admin-user-menu[open] .admin-user-menu__summary::after {
  transform: rotate(180deg);
}

.admin-shell .admin-user-menu__avatar {
  width: 1.75rem;
  min-width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3ee;
  border-radius: 0.62rem;
  color: #344054;
  background: #f8fafc;
}

.admin-shell .admin-user-menu__name {
  min-width: 0;
  max-width: 13rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #344054;
  font-size: 0.9rem;
}

.admin-shell .admin-user-menu__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 85;
  width: min(23rem, calc(100vw - 1rem));
  display: grid;
  gap: 0.72rem;
  padding: 0.82rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.9rem;
  background: #ffffff;
  color: #182230;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16);
}

.admin-shell .admin-user-menu__facts {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.admin-shell .admin-user-menu__facts div {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding-bottom: 0.48rem;
  border-bottom: 1px solid #edf2f7;
}

.admin-shell .admin-user-menu__facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-shell .admin-user-menu__facts dt {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-shell .admin-user-menu__facts dd {
  min-width: 0;
  margin: 0;
  color: #101828;
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-shell .admin-user-menu__actions {
  display: grid;
  gap: 0.45rem;
}

.admin-shell .admin-user-menu__actions .theme-switch {
  width: 100%;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  margin: 0;
}

.admin-shell .theme-switch__icon {
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8dee8;
  border-radius: 0.72rem;
  background: #ffffff;
  color: #344054;
}

.admin-shell .theme-switch__icon svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-shell .admin-user-menu__actions .theme-switch select {
  width: 100%;
  min-width: 0;
}

.admin-shell .admin-user-menu__actions .btn {
  width: 100%;
  justify-content: center;
}

.admin-shell .user-meta > .admin-mode-badge {
  display: none !important;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__summary,
html[data-theme="dark"] .admin-shell .admin-user-menu__panel {
  border-color: #22304b;
  background: #0f182b;
  color: #e5e7eb;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__name,
html[data-theme="dark"] .admin-shell .admin-user-menu__facts dd {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__avatar {
  border-color: #2c3a58;
  background: #111d32;
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .theme-switch__icon {
  border-color: #2c3a58;
  background: #111d32;
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__facts div {
  border-bottom-color: #1c2743;
}

@media (max-width: 860px) {
  html[data-theme="light"] body.admin-shell .admin-topbar .user-meta,
  html[data-theme="dark"] body.admin-shell .admin-topbar .user-meta,
  body.admin-shell .admin-topbar .user-meta,
  .admin-shell .admin-topbar .user-meta {
    grid-template-columns: minmax(3rem, 0.28fr) minmax(0, 1fr) !important;
  }

  html[data-theme="light"] body.admin-shell .admin-user-menu,
  html[data-theme="dark"] body.admin-shell .admin-user-menu,
  body.admin-shell .admin-user-menu,
  .admin-shell .admin-user-menu {
    width: 100% !important;
    min-width: 0 !important;
  }

  html[data-theme="light"] body.admin-shell .admin-user-menu__summary,
  html[data-theme="dark"] body.admin-shell .admin-user-menu__summary,
  body.admin-shell .admin-user-menu__summary,
  .admin-shell .admin-user-menu__summary {
    width: 100% !important;
    justify-content: center !important;
    min-width: 0 !important;
  }

  .admin-shell .admin-user-menu__panel {
    right: 0;
  }
}

/* Public plan simple-name guide: explain Basico, Normal and Completo without SaaS jargon. */
.plan-simple-names {
  background:
    radial-gradient(circle at top left, rgba(255, 128, 104, 0.12), transparent 26rem),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.plan-simple-names-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.plan-simple-names-grid article {
  min-height: 100%;
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid #dfe6ef;
  border-radius: 0.95rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
}

.plan-simple-names-grid article.is-recommended {
  border-color: #ffb19f;
  background: linear-gradient(180deg, #fff7f2 0%, #ffffff 100%);
}

.plan-simple-names-grid span {
  width: fit-content;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  background: #eef6ff;
  color: #155e75;
  font-size: 0.74rem;
  font-weight: 900;
}

.plan-simple-names-grid article.is-recommended span {
  background: #ffedd5;
  color: #1d4ed8;
}

.plan-simple-names-grid h3 {
  color: #0f172a;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.plan-simple-names-grid p,
.plan-simple-names-grid small {
  color: #64748b;
  line-height: 1.48;
}

.plan-simple-names-grid small {
  display: block;
  min-height: 3.2rem;
  font-weight: 700;
}

.plan-simple-names-grid .btn {
  align-self: end;
  margin-top: 0.2rem;
}

@media (max-width: 900px) {
  .plan-simple-names-grid {
    grid-template-columns: 1fr;
  }

  .plan-simple-names-grid small {
    min-height: 0;
  }
}

/* Import template shortcuts: direct CSV choices before upload. */
.admin-shell .import-template-shortcuts {
  display: grid;
  gap: 1rem;
}

.admin-shell .import-template-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .import-template-shortcuts-grid article {
  min-width: 0;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 0.9rem;
  border: 1px solid #dfe6ef;
  border-radius: 0.8rem;
  background: #ffffff;
}

.admin-shell .import-template-shortcuts-grid article.is-selected {
  border-color: #ffb19f;
  background: linear-gradient(180deg, #fff7f2 0%, #ffffff 100%);
}

.admin-shell .import-template-shortcuts-grid span {
  width: fit-content;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: #eef6ff;
  color: #155e75;
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-shell .import-template-shortcuts-grid article.is-selected span {
  background: #ffedd5;
  color: #1d4ed8;
}

.admin-shell .import-template-shortcuts-grid strong {
  color: #0f172a;
  font-size: 1rem;
}

.admin-shell .import-template-shortcuts-grid p,
.admin-shell .import-template-shortcuts-grid small {
  color: #64748b;
  line-height: 1.42;
}

html[data-theme="dark"] .admin-shell .import-template-shortcuts-grid article {
  border-color: #22304b;
  background: #0f182b;
}

html[data-theme="dark"] .admin-shell .import-template-shortcuts-grid article.is-selected {
  border-color: rgba(251, 146, 60, 0.42);
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.14) 0%, #0f182b 100%);
}

html[data-theme="dark"] .admin-shell .import-template-shortcuts-grid strong {
  color: #f8fafc;
}

@media (max-width: 900px) {
  .admin-shell .import-template-shortcuts-grid {
    grid-template-columns: 1fr;
  }
}

/* Access state panel: keep login errors and signed-out feedback visible before the form. */
.auth-state-panel {
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 24px;
  padding: 1.15rem 1.25rem;
  margin: 1.1rem 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.auth-state-panel span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-state-panel h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.auth-state-panel p {
  margin: 0;
  color: var(--muted);
}

.auth-state-panel a {
  display: inline-flex;
  margin-top: 0.85rem;
  font-weight: 900;
  color: var(--accent-strong);
}

.auth-state-panel-error {
  border-color: rgba(220, 38, 38, 0.24);
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.88));
}

.auth-state-panel-error span,
.auth-state-panel-error h2 {
  color: #991b1b;
}

.auth-state-panel-success {
  border-color: rgba(22, 163, 74, 0.24);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(236, 253, 245, 0.88));
}

.auth-state-panel-success span,
.auth-state-panel-success h2 {
  color: #166534;
}

html[data-theme="dark"] .auth-state-panel {
  border-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9));
}

html[data-theme="dark"] .auth-state-panel-error {
  border-color: rgba(248, 113, 113, 0.32);
  background: linear-gradient(135deg, rgba(69, 10, 10, 0.76), rgba(30, 41, 59, 0.88));
}

html[data-theme="dark"] .auth-state-panel-success {
  border-color: rgba(74, 222, 128, 0.3);
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.58), rgba(30, 41, 59, 0.88));
}

/* Client dashboard next action: one clear operational start before secondary cards. */
.admin-shell .client-account-next-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 1.1rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 120, 95, 0.26);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: 0 20px 48px rgba(127, 29, 29, 0.08);
}

.admin-shell .client-account-next-action h4 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.admin-shell .client-account-next-action p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.admin-shell .client-account-next-action span {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 120, 95, 0.12);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 900;
}

.admin-shell .client-account-next-action .btn {
  min-width: 170px;
  justify-content: center;
}

@media (max-width: 760px) {
  .admin-shell .client-account-next-action {
    grid-template-columns: 1fr;
  }

  .admin-shell .client-account-next-action .btn {
    width: 100%;
  }
}

html[data-theme="dark"] .admin-shell .client-account-next-action {
  border-color: rgba(251, 146, 60, 0.32);
  background: linear-gradient(135deg, rgba(67, 20, 7, 0.82), rgba(15, 23, 42, 0.92));
}

html[data-theme="dark"] .admin-shell .client-account-next-action h4 {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .client-account-next-action p:not(.eyebrow) {
  color: #cbd5e1;
}

/* Invoice paid result guide: clarify consequences before closing collection state. */
.admin-shell .invoice-paid-result-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.2rem;
}

.admin-shell .invoice-paid-result-guide article {
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.92), rgba(255, 255, 255, 0.88));
}

.admin-shell .invoice-paid-result-guide span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.13);
  color: #15803d;
  font-weight: 900;
}

.admin-shell .invoice-paid-result-guide strong,
.admin-shell .invoice-paid-result-guide small {
  display: block;
}

.admin-shell .invoice-paid-result-guide strong {
  margin-bottom: 0.35rem;
  color: var(--text);
}

.admin-shell .invoice-paid-result-guide small {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .admin-shell .invoice-paid-result-guide {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .admin-shell .invoice-paid-result-guide article {
  border-color: rgba(74, 222, 128, 0.24);
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.46), rgba(15, 23, 42, 0.86));
}

html[data-theme="dark"] .admin-shell .invoice-paid-result-guide span {
  color: #86efac;
}

html[data-theme="dark"] .admin-shell .invoice-paid-result-guide strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .invoice-paid-result-guide small {
  color: #cbd5e1;
}

/* Invoice paid folded guide: payment consequences stay available without occupying the billing workflow. */
.admin-shell .invoice-paid-result-guide-folded {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.92), rgba(255, 255, 255, 0.88));
}

.admin-shell .invoice-paid-result-guide-folded > summary {
  display: grid;
  gap: 0.22rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
}

.admin-shell .invoice-paid-result-guide-folded > summary::-webkit-details-marker {
  display: none;
}

.admin-shell .invoice-paid-result-guide-folded > summary::after {
  content: "Abrir";
  justify-self: start;
  margin-top: 0.18rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(22, 163, 74, 0.28);
  border-radius: 999px;
  background: rgba(220, 252, 231, 0.92);
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 950;
}

.admin-shell .invoice-paid-result-guide-folded[open] > summary::after {
  content: "Cerrar";
}

.admin-shell .invoice-paid-result-guide-folded > summary span {
  width: auto;
  height: auto;
  margin: 0;
  justify-content: flex-start;
  background: transparent;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-shell .invoice-paid-result-guide-folded > summary strong {
  color: #0f172a;
  font-size: 1.02rem;
}

.admin-shell .invoice-paid-result-guide-folded > summary small {
  color: #475569;
  font-weight: 750;
}

.admin-shell .invoice-paid-result-guide-folded[open] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0 1rem 1rem;
}

.admin-shell .invoice-paid-result-guide-folded[open] > summary {
  grid-column: 1 / -1;
  margin-inline: -1rem;
}

html[data-theme="dark"] .admin-shell .invoice-paid-result-guide-folded {
  border-color: rgba(74, 222, 128, 0.24);
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.46), rgba(15, 23, 42, 0.86));
}

html[data-theme="dark"] .admin-shell .invoice-paid-result-guide-folded > summary strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .invoice-paid-result-guide-folded > summary small {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .invoice-paid-result-guide-folded > summary::after {
  border-color: rgba(74, 222, 128, 0.26);
  background: rgba(20, 83, 45, 0.36);
  color: #bbf7d0;
}

/* Work order complete result guide: clarify consequences before closing a job. */
.admin-shell .work-complete-result-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.2rem;
}

.admin-shell .work-complete-result-guide article {
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.88));
}

.admin-shell .work-complete-result-guide span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-weight: 900;
}

.admin-shell .work-complete-result-guide strong,
.admin-shell .work-complete-result-guide small {
  display: block;
}

.admin-shell .work-complete-result-guide strong {
  margin-bottom: 0.35rem;
  color: var(--text);
}

.admin-shell .work-complete-result-guide small {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .admin-shell .work-complete-result-guide {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .admin-shell .work-complete-result-guide article {
  border-color: rgba(96, 165, 250, 0.24);
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.42), rgba(15, 23, 42, 0.86));
}

html[data-theme="dark"] .admin-shell .work-complete-result-guide span {
  color: #93c5fd;
}

html[data-theme="dark"] .admin-shell .work-complete-result-guide strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .work-complete-result-guide small {
  color: #cbd5e1;
}

/* Work complete folded guide: close-result details stay available without pushing work actions down. */
.admin-shell .work-complete-result-guide-folded {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.88));
}

.admin-shell .work-complete-result-guide-folded > summary {
  display: grid;
  gap: 0.22rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
}

.admin-shell .work-complete-result-guide-folded > summary::-webkit-details-marker {
  display: none;
}

.admin-shell .work-complete-result-guide-folded > summary::after {
  content: "Abrir";
  justify-self: start;
  margin-top: 0.18rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.92);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 950;
}

.admin-shell .work-complete-result-guide-folded[open] > summary::after {
  content: "Cerrar";
}

.admin-shell .work-complete-result-guide-folded > summary span {
  width: auto;
  height: auto;
  margin: 0;
  justify-content: flex-start;
  background: transparent;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-shell .work-complete-result-guide-folded > summary strong {
  color: #0f172a;
  font-size: 1.02rem;
}

.admin-shell .work-complete-result-guide-folded > summary small {
  color: #475569;
  font-weight: 750;
}

.admin-shell .work-complete-result-guide-folded[open] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0 1rem 1rem;
}

.admin-shell .work-complete-result-guide-folded[open] > summary {
  grid-column: 1 / -1;
  margin-inline: -1rem;
}

html[data-theme="dark"] .admin-shell .work-complete-result-guide-folded {
  border-color: rgba(96, 165, 250, 0.24);
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.42), rgba(15, 23, 42, 0.86));
}

html[data-theme="dark"] .admin-shell .work-complete-result-guide-folded > summary strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .work-complete-result-guide-folded > summary small {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .work-complete-result-guide-folded > summary::after {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(30, 58, 138, 0.36);
  color: #dbeafe;
}

/* CSV import result guide: make irreversible import consequences explicit. */
.import-result-guide {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  gap: 1rem;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 247, 237, .86)),
    var(--surface);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.import-result-guide h4,
.import-result-guide p {
  margin: 0;
}

.import-result-guide p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.import-result-guide ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.import-result-guide li {
  display: grid;
  gap: .35rem;
  padding: .85rem;
  border: 1px solid rgba(248, 113, 113, .22);
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
}

.import-result-guide li strong {
  color: var(--text);
}

.import-result-guide li span {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

.admin-shell .import-result-guide-folded {
  padding: 0;
  overflow: hidden;
}

.admin-shell .import-result-guide-folded > summary {
  display: grid;
  gap: 0.22rem;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.admin-shell .import-result-guide-folded > summary::-webkit-details-marker {
  display: none;
}

.admin-shell .import-result-guide-folded > summary::after {
  content: "Abrir";
  justify-self: start;
  margin-top: 0.2rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 950;
}

.admin-shell .import-result-guide-folded[open] > summary::after {
  content: "Cerrar";
}

.admin-shell .import-result-guide-folded > summary strong {
  color: #0f172a;
  font-size: 1.02rem;
}

.admin-shell .import-result-guide-folded > summary small {
  color: #475569;
  font-weight: 750;
}

.admin-shell .import-result-guide-folded .import-result-guide-body,
.admin-shell .import-result-guide-folded ol {
  margin-inline: 1rem;
}

.admin-shell .import-result-guide-folded ol {
  margin-bottom: 1rem;
}

html[data-theme="dark"] .admin-shell .import-result-guide-folded > summary strong {
  color: #e5edf9;
}

html[data-theme="dark"] .admin-shell .import-result-guide-folded > summary small {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .import-result-guide-folded > summary::after {
  border-color: #334155;
  background: #172554;
  color: #bfdbfe;
}

@media (max-width: 900px) {
  .import-result-guide,
  .import-result-guide ol {
    grid-template-columns: 1fr;
  }
}

/* Lead conversion result guide: explain irreversible customer creation before actions. */
.admin-shell .lead-conversion-result-guide {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.4fr);
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, .12), transparent 16rem),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(240, 253, 244, .86));
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.admin-shell .lead-conversion-result-guide h3,
.admin-shell .lead-conversion-result-guide p {
  margin: 0;
}

.admin-shell .lead-conversion-result-guide p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.admin-shell .lead-conversion-result-guide ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-shell .lead-conversion-result-guide li {
  display: grid;
  gap: .35rem;
  padding: .85rem;
  border: 1px solid rgba(34, 197, 94, .24);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
}

.admin-shell .lead-conversion-result-guide li span {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .admin-shell .lead-conversion-result-guide,
  .admin-shell .lead-conversion-result-guide ol {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .admin-shell .lead-conversion-result-guide {
  border-color: rgba(74, 222, 128, .24);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, .18), transparent 16rem),
    linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(20, 83, 45, .28));
}

html[data-theme="dark"] .admin-shell .lead-conversion-result-guide li {
  border-color: rgba(74, 222, 128, .22);
  background: rgba(15, 23, 42, .72);
}

/* Lead conversion folded guide: keep conversion details available without pushing actions down. */
.admin-shell .lead-conversion-result-guide-folded {
  display: block;
  padding: 0;
  overflow: hidden;
}

.admin-shell .lead-conversion-result-guide-folded > summary {
  display: grid;
  gap: 0.22rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
}

.admin-shell .lead-conversion-result-guide-folded > summary::-webkit-details-marker {
  display: none;
}

.admin-shell .lead-conversion-result-guide-folded > summary::after {
  content: "Abrir";
  justify-self: start;
  margin-top: 0.18rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(34, 197, 94, .32);
  border-radius: 999px;
  background: rgba(240, 253, 244, .96);
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 950;
}

.admin-shell .lead-conversion-result-guide-folded[open] > summary::after {
  content: "Cerrar";
}

.admin-shell .lead-conversion-result-guide-folded > summary strong {
  color: #0f172a;
  font-size: 1.02rem;
}

.admin-shell .lead-conversion-result-guide-folded > summary small {
  color: #475569;
  font-weight: 750;
}

.admin-shell .lead-conversion-result-guide-folded .lead-conversion-result-guide-body,
.admin-shell .lead-conversion-result-guide-folded ol {
  margin-inline: 1rem;
}

.admin-shell .lead-conversion-result-guide-folded ol {
  margin-bottom: 1rem;
}

html[data-theme="dark"] .admin-shell .lead-conversion-result-guide-folded > summary strong {
  color: #e5edf9;
}

html[data-theme="dark"] .admin-shell .lead-conversion-result-guide-folded > summary small {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .lead-conversion-result-guide-folded > summary::after {
  border-color: rgba(74, 222, 128, .26);
  background: rgba(20, 83, 45, .36);
  color: #bbf7d0;
}

/* Account request result guide: explain client review ticket creation. */
/* Access coherence polish: simple light login aligned with Mantivo admin/public UI. */
.auth-bg {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 111, 88, 0.12), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(14, 165, 233, 0.13), transparent 24rem),
    linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%) !important;
}

.auth-bg .card.auth-card-minimal {
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #111827 !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12) !important;
}

.auth-bg .auth-product-hero {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 111, 88, 0.18), transparent 15rem),
    linear-gradient(145deg, #111827 0%, #1f2937 100%) !important;
}

.auth-bg .auth-entry {
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.auth-bg .auth-login-heading h2,
.auth-bg .auth-login-heading p:not(.eyebrow) {
  color: #111827 !important;
}

.auth-bg .auth-login-heading p:not(.eyebrow),
.auth-bg .auth-field-hint {
  color: #64748b !important;
}

.auth-password-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.auth-password-toggle {
  min-height: 2.15rem;
  padding: 0.32rem 0.72rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 850;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  border-color: #ff6f58;
  color: #9f321f;
}

.auth-bg .auth-form-actions button {
  min-width: 8rem;
}

/* Public clarity and elegance pass: less dense copy, softer cards, clearer CTAs. */
.public-shell .hero-home,
.public-shell .home-band,
.public-shell .public-section > .grid-two,
.public-shell .public-section > .grid-three {
  gap: clamp(1rem, 2.4vw, 2rem);
}

.public-shell .home-band {
  border-radius: clamp(1rem, 2.2vw, 1.5rem);
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.07);
}

.public-shell .section-heading,
.public-shell .hero-copy {
  max-width: 760px;
}

.public-shell .section-heading :is(p),
.public-shell .hero-copy p,
.public-shell .home-band > div > p,
.public-shell .card > p {
  max-width: 62ch;
}

.public-shell .hero-copy h1,
.public-shell .section-heading :is(h2),
.public-shell .home-band h2 {
  letter-spacing: -0.055em;
}

.public-shell .hero-copy p,
.public-shell .section-heading :is(p) {
  color: var(--muted);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
}

.public-shell .card,
.public-shell .home-band article {
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.06);
}

.public-shell .btn,
.public-shell button {
  min-height: 2.75rem;
  border-radius: 999px;
  font-weight: 850;
}

.public-shell .btn-outline {
  background: rgba(255, 255, 255, 0.72);
}

.public-shell .compact-list li + li {
  margin-top: 0.42rem;
}

.public-shell .eyebrow {
  letter-spacing: 0.08em;
}

/* Work audio intake: first no-cloud dictation layer for non technical users. */
.admin-shell .work-audio-intake-panel {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 14%, rgba(14, 165, 233, 0.14), transparent 34%),
    color-mix(in oklab, var(--admin-panel-bg, #ffffff) 92%, #ecfeff 8%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.admin-shell .work-audio-intake-panel h3,
.admin-shell .work-audio-intake-panel p {
  margin: 0;
}

.admin-shell .work-audio-intake-panel textarea {
  min-height: 7rem;
  resize: vertical;
}

.admin-shell .work-audio-intake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-shell .work-audio-intake-panel small {
  color: var(--muted);
  line-height: 1.5;
}

.admin-shell .work-order-intake-note {
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 0.8rem;
  background: rgba(14, 165, 233, 0.06);
}

html[data-theme="dark"] .admin-shell .work-audio-intake-panel {
  border-color: rgba(56, 189, 248, 0.24);
  background:
    radial-gradient(circle at 92% 14%, rgba(14, 165, 233, 0.16), transparent 34%),
    rgba(15, 23, 42, 0.82);
}

html[data-theme="dark"] .admin-shell .work-order-intake-note {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(14, 165, 233, 0.1);
}

/* Work voice touch polish: field users must hit voice actions comfortably on mobile. */
.admin-shell .work-audio-intake-actions .btn-outline {
  min-height: 2.8rem;
  padding-inline: 1rem;
}

.admin-shell .work-audio-intake-panel textarea:focus {
  border-color: rgba(14, 165, 233, 0.72);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

@media (max-width: 720px) {
  .admin-shell .work-audio-intake-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-shell .work-audio-intake-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* Work voice field mobile final guard 2026-07-02:
   the voice panel must be usable with thumbs before leaving for a job. */
.admin-shell .work-audio-intake-panel {
  scroll-margin-top: 7rem !important;
}

.admin-shell .work-audio-intake-actions {
  align-items: stretch !important;
}

.admin-shell .work-audio-intake-actions .btn-outline {
  min-height: 3rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  touch-action: manipulation !important;
  white-space: normal !important;
}

.admin-shell .work-audio-intake-panel textarea {
  font-size: max(1rem, 16px) !important;
  line-height: 1.45 !important;
}

.admin-shell .work-audio-intake-panel [data-work-voice-status] {
  display: block !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 720px) {
  .admin-shell .work-audio-intake-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 460px) {
  .admin-shell .work-audio-intake-actions {
    grid-template-columns: 1fr !important;
  }
}
/* Delivery notes */
.delivery-note-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.delivery-note-guide-grid {
  display: grid;
  gap: 0.75rem;
}

.delivery-note-guide-grid article {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(13, 148, 136, 0.06));
}

.admin-shell .delivery-note-next-action-panel {
  align-items: center;
  border-left: 0.35rem solid #0d9488;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.admin-shell .delivery-note-next-action-panel h3,
.admin-shell .delivery-note-next-action-panel p {
  margin: 0;
}

.admin-shell .delivery-note-next-action-panel > span {
  background: #ccfbf1;
  border-radius: 999px;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 0.4rem 0.65rem;
}

.admin-shell .delivery-note-next-action-attention {
  border-left-color: #1d4ed8;
}

.admin-shell .delivery-note-next-action-attention > span {
  background: #dbeafe;
  color: #1e3a8a;
}

.admin-shell .delivery-note-next-action-form {
  margin: 0;
}

.admin-shell .delivery-note-form-preview {
  display: grid;
  gap: 0.28rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 1rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.admin-shell .delivery-note-form-preview span,
.admin-shell .delivery-note-form-preview small {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-shell .delivery-note-form-preview strong {
  color: #0f172a;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 950;
}

.admin-shell .delivery-note-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.8rem 0 1rem;
}

.admin-shell .delivery-note-step-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  color: #173a8a;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.admin-shell .delivery-note-step-strip strong {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
  flex: 0 0 auto;
}

html[data-theme="dark"] .admin-shell .delivery-note-form-preview {
  border-color: rgba(56, 189, 248, 0.28);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.24), rgba(15, 23, 42, 0.92));
}

html[data-theme="dark"] .admin-shell .delivery-note-form-preview span,
html[data-theme="dark"] .admin-shell .delivery-note-form-preview small {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .delivery-note-form-preview strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .delivery-note-step-strip span {
  border-color: rgba(147, 197, 253, 0.28);
  background: linear-gradient(135deg, #0f2744, #111827);
  color: #dbeafe;
}

html[data-theme="dark"] .admin-shell .delivery-note-step-strip strong {
  background: #60a5fa;
  color: #0f172a;
}

.admin-shell .delivery-note-empty-state {
  margin-top: 1rem;
}

.admin-shell .delivery-note-empty-state h4,
.admin-shell .delivery-note-empty-state p {
  margin: 0;
}

@media (max-width: 760px) {
  .delivery-note-guide {
    grid-template-columns: 1fr;
  }

  .admin-shell .delivery-note-next-action-panel {
    grid-template-columns: 1fr;
  }

  .admin-shell .delivery-note-next-action-panel .btn,
  .admin-shell .delivery-note-next-action-form button {
    width: 100%;
  }

  .admin-shell .delivery-note-step-strip {
    position: sticky;
    top: 0.75rem;
    z-index: 2;
    grid-template-columns: 1fr;
    gap: 0.42rem;
  }

  .admin-shell .delivery-note-step-strip span {
    justify-content: flex-start;
    min-height: 2.55rem;
    padding-inline: 0.8rem;
  }
}

/* AI assisted intake */
.admin-shell .ai-intake-hero {
  align-items: center;
}

.admin-shell .ai-intake-mode {
  min-width: min(15rem, 100%);
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.1));
}

.admin-shell .ai-intake-mode strong,
.admin-shell .ai-intake-mode span,
.admin-shell .ai-intake-checks strong,
.admin-shell .ai-intake-checks span {
  display: block;
}

.admin-shell .ai-intake-mode span,
.admin-shell .ai-intake-checks span {
  color: var(--muted);
}

.admin-shell .ai-intake-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 1rem;
}

.admin-shell .ai-intake-source {
  display: grid;
  gap: 0.8rem;
}

.admin-shell .ai-intake-source .form-intro {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.admin-shell .ai-intake-source .form-intro h3,
.admin-shell .ai-intake-source .form-intro p {
  margin: 0;
}

.admin-shell .ai-intake-source .form-intro h3 {
  color: #0f172a;
}

.admin-shell .ai-intake-source .form-intro p:not(.eyebrow) {
  color: #334155;
  line-height: 1.45;
}

.admin-shell .ai-intake-source textarea {
  min-height: 10rem;
  resize: vertical;
}

.admin-shell .ai-intake-checks {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.admin-shell .ai-intake-checks article {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.62);
}

/* Corporate email intake: explicit connection readiness before automation. */
.admin-shell .email-connection-readiness {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(1rem, 2vw, 1.25rem);
  align-items: start;
  border-color: rgba(37, 99, 235, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, 0.10), transparent 20rem),
    rgba(255, 255, 255, 0.82);
}

.admin-shell .email-connection-readiness h3,
.admin-shell .email-connection-readiness p {
  margin: 0;
}

.admin-shell .email-connection-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .email-connection-steps article {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(147, 197, 253, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.admin-shell .email-connection-steps span {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 900;
}

.admin-shell .email-connection-steps strong {
  color: #0f172a;
}

.admin-shell .email-connection-steps p {
  color: var(--muted);
  line-height: 1.42;
}

@media (max-width: 920px) {
  .admin-shell .email-connection-readiness,
  .admin-shell .email-connection-steps {
    grid-template-columns: 1fr;
  }
}

.admin-shell .quote-ai-proposal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.admin-shell .quote-ai-proposal-grid article {
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.68);
}

.admin-shell .quote-ai-copy-block {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.admin-shell .quote-ai-copy-block textarea {
  min-height: 13rem;
}

html[data-theme="dark"] .admin-shell .ai-intake-checks article {
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .admin-shell .ai-intake-source .form-intro {
  border-color: rgba(96, 165, 250, 0.24);
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.78));
}

html[data-theme="dark"] .admin-shell .ai-intake-source .form-intro h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .ai-intake-source .form-intro p:not(.eyebrow) {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .email-connection-readiness {
  border-color: rgba(96, 165, 250, 0.24);
  background:
    radial-gradient(circle at 100% 0, rgba(96, 165, 250, 0.12), transparent 20rem),
    rgba(15, 23, 42, 0.78);
}

html[data-theme="dark"] .admin-shell .email-connection-steps article {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .admin-shell .email-connection-steps strong {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .quote-ai-proposal-grid article {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

@media (max-width: 860px) {
  .admin-shell .ai-intake-grid,
  .admin-shell .quote-ai-proposal-grid {
    grid-template-columns: 1fr;
  }
}



/* Public SEO/mobile menu: hamburger navigation for small screens. */
.public-menu-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  color: #111827;
  cursor: pointer;
  display: none;
  font: inherit;
  font-weight: 900;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
}

.public-menu-toggle-lines {
  display: grid;
  gap: 0.22rem;
  width: 1.05rem;
}

.public-menu-toggle-lines i {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  transition: opacity 160ms ease, transform 160ms ease;
  width: 100%;
}

.public-menu-toggle[aria-expanded="true"] {
  background: #fff7ed;
  border-color: rgba(255, 128, 104, 0.42);
  color: #111827;
}

.public-menu-toggle[aria-expanded="true"] .public-menu-toggle-lines i:nth-child(1) {
  transform: translateY(0.24rem) rotate(45deg);
}

.public-menu-toggle[aria-expanded="true"] .public-menu-toggle-lines i:nth-child(2) {
  opacity: 0;
}

.public-menu-toggle[aria-expanded="true"] .public-menu-toggle-lines i:nth-child(3) {
  transform: translateY(-0.24rem) rotate(-45deg);
}

@media (max-width: 980px) {
  .public-header {
    overflow: visible;
  }

  .public-nav {
    position: relative;
  }

  .public-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .public-nav nav.public-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1.35rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    display: none;
    left: 0;
    padding: 0.75rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    z-index: 90;
  }

  .public-nav nav.public-menu.is-open {
    display: block;
  }

  .public-nav nav.public-menu ul {
    align-items: stretch;
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
  }

  .public-nav nav.public-menu li {
    display: flex;
  }

  .public-nav nav.public-menu a,
  .public-nav nav.public-menu .locale-switch {
    justify-content: center;
    min-height: 2.65rem;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .public-menu-toggle-label {
    display: none;
  }

  .public-nav nav.public-menu ul {
    grid-template-columns: 1fr;
  }
}

/* Public full-width mega menu: grouped navigation with icons and mobile hamburger. */
.public-nav nav.public-menu {
  flex: 1;
}

.public-menu-groups {
  align-items: stretch !important;
  display: grid !important;
  gap: 0.75rem !important;
  grid-template-columns: repeat(3, minmax(13.5rem, 1fr)) minmax(10rem, 0.75fr) auto;
  width: 100%;
}

.public-menu-group,
.public-menu-action,
.public-menu-locale {
  display: flex;
  min-width: 0;
}

.public-menu-column {
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 128, 104, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.15rem;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
  display: grid;
  gap: 0.45rem;
  padding: 0.62rem;
  width: 100%;
}

.public-menu-group-title {
  display: grid;
  gap: 0.05rem;
  padding: 0.15rem 0.25rem 0.35rem;
}

.public-menu-group-title strong {
  color: #111827;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-menu-group-title span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 750;
}

.public-menu-column ul {
  display: grid !important;
  gap: 0.28rem !important;
  width: 100% !important;
}

.public-nav nav.public-menu a.public-menu-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.92rem;
  display: grid;
  gap: 0.62rem;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  justify-content: start;
  min-height: 3.1rem;
  padding: 0.5rem 0.62rem;
  text-align: left;
  width: 100%;
}

.public-nav nav.public-menu a.public-menu-link:hover,
.public-nav nav.public-menu a.public-menu-link:focus-visible,
.public-nav nav.public-menu a.public-menu-link.active,
.public-nav nav.public-menu a.public-menu-link[aria-current="page"] {
  background: #fff7ed;
  border-color: rgba(255, 128, 104, 0.34);
  box-shadow: 0 10px 24px rgba(255, 128, 104, 0.11);
  color: #111827;
}

.public-menu-icon {
  align-items: center;
  background: linear-gradient(135deg, #fff7ed, #e0f2fe);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.78rem;
  color: #e04f34;
  display: inline-flex;
  height: 2.15rem;
  justify-content: center;
  width: 2.15rem;
}

.public-menu-icon svg {
  fill: none;
  height: 1.2rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 1.2rem;
}

.public-menu-copy {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.public-menu-copy strong {
  color: #111827;
  font-size: 0.91rem;
  font-weight: 950;
  line-height: 1.05;
}

.public-menu-copy small {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.public-menu-action .btn-small.public-menu-link {
  background:
    radial-gradient(circle at 95% 10%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(135deg, #1e40af, #2563eb);
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(30, 64, 175, 0.2);
  color: #ffffff !important;
}

.public-menu-action .btn-small.public-menu-link .public-menu-icon {
  background: rgba(255, 255, 255, 0.62);
  color: #1e40af;
}

.public-menu-action .btn-small.public-menu-link .public-menu-copy small,
.public-menu-action .btn-small.public-menu-link .public-menu-copy strong {
  color: #ffffff;
}

.public-menu-locale {
  align-items: center;
  justify-content: flex-end;
}

.public-menu-locale .locale-switch {
  min-height: 3.1rem;
}

@media (max-width: 1180px) {
  .public-menu-groups {
    grid-template-columns: repeat(3, minmax(12rem, 1fr));
  }

  .public-menu-action,
  .public-menu-locale {
    grid-column: span 1;
  }
}

@media (max-width: 980px) {
  .public-menu-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .public-menu-group,
  .public-menu-action,
  .public-menu-locale {
    min-width: 0;
  }

  .public-menu-column {
    box-shadow: none;
  }

  .public-menu-action .btn-small.public-menu-link,
  .public-menu-locale .locale-switch {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .public-menu-groups {
    grid-template-columns: 1fr !important;
  }

  .public-nav nav.public-menu a.public-menu-link {
    min-height: 3.25rem;
  }
}

/* Public polished mega menu contract: grouped icon columns, compact cards, no flat list fallback. */
.public-menu-column {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.public-menu-column::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.78));
  content: "";
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.public-menu-group-title {
  align-items: flex-start;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding-bottom: 0.9rem;
}

.public-menu-group-icon {
  align-items: center;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.78), transparent 28%),
    linear-gradient(135deg, #1e40af, #60a5fa);
  border-radius: 1rem;
  box-shadow: 0 16px 30px rgba(30, 64, 175, 0.2);
  color: #ffffff;
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.public-menu-group-icon svg {
  fill: none;
  height: 1.2rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1.2rem;
}

.public-menu-group-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.public-nav nav.public-menu a.public-menu-link {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.public-nav nav.public-menu a.public-menu-link:hover,
.public-nav nav.public-menu a.public-menu-link:focus-visible {
  transform: translateY(-1px);
}

.public-menu-link:hover .public-menu-icon,
.public-menu-link:focus-visible .public-menu-icon,
.public-menu-link.active .public-menu-icon,
.public-menu-link[aria-current="page"] .public-menu-icon {
  background: linear-gradient(135deg, #1e40af, #60a5fa);
  border-color: transparent;
  color: #ffffff;
}

@media (max-width: 980px) {
  .public-menu-group-title {
    padding-bottom: 0.55rem;
  }

  .public-menu-column::before {
    opacity: 0.42;
  }
}

/* Public collapsed mega menu contract: compact header, full mega panel only on demand. */
.public-header .public-nav {
  position: relative;
}

.public-header .public-menu-toggle {
  display: inline-flex;
  margin-left: auto;
}

.public-header nav.public-menu {
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 128, 104, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1.55rem;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  display: none;
  left: 0;
  padding: 0.82rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.72rem);
  z-index: 90;
}

.public-header nav.public-menu.is-open {
  display: block;
}

.public-header nav.public-menu .public-menu-groups {
  grid-template-columns: repeat(3, minmax(13rem, 1fr)) minmax(10rem, 0.75fr) auto;
}

@media (max-width: 1180px) {
  .public-header nav.public-menu .public-menu-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .public-header nav.public-menu {
    border-radius: 1.2rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    padding: 0.62rem;
  }

  .public-header nav.public-menu .public-menu-groups {
    grid-template-columns: 1fr !important;
  }
}

/* Public first-level menu contract: hamburger only on smartphone, submenus by click above mobile. */
@media (min-width: 641px) {
  .public-header .public-menu-toggle {
    display: none;
  }

  .public-header nav.public-menu {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    flex: 0 1 auto;
    left: auto;
    margin-left: auto;
    padding: 0;
    position: static;
    right: auto;
    top: auto;
    z-index: auto;
  }

  .public-header nav.public-menu .public-menu-groups {
    align-items: center !important;
    display: flex !important;
    gap: 0.45rem !important;
    justify-content: flex-end;
    width: auto;
  }

  .public-header .public-menu-group {
    position: relative;
  }

  .public-header .public-menu-column {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    overflow: visible;
    padding: 0;
  }

  .public-header .public-menu-column::before {
    content: none;
  }

  .public-header .public-menu-group-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #e5e7eb;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    gap: 0.45rem;
    min-height: 2.65rem;
    padding: 0.48rem 0.72rem;
    text-align: left;
  }

  .public-header .public-menu-group-toggle:hover,
  .public-header .public-menu-group-toggle:focus-visible,
  .public-header .public-menu-group.is-open .public-menu-group-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
  }

  .public-header .public-menu-group-toggle .public-menu-group-icon {
    height: 1.85rem;
    width: 1.85rem;
  }

  .public-header .public-menu-group-toggle .public-menu-group-copy {
    gap: 0;
  }

  .public-header .public-menu-group-toggle .public-menu-group-copy strong {
    color: inherit;
    font-size: 0.86rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .public-header .public-menu-group-toggle .public-menu-group-copy > span {
    display: none;
  }

  .public-header .public-menu-submenu {
    background:
      radial-gradient(circle at 92% 0%, rgba(255, 128, 104, 0.12), transparent 32%),
      rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1.25rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    display: none !important;
    left: 0;
    min-width: 19rem;
    padding: 0.58rem;
    position: absolute;
    top: calc(100% + 0.55rem);
    z-index: 95;
  }

  .public-header .public-menu-group.is-open .public-menu-submenu {
    display: grid !important;
  }

  .public-header .public-menu-action .btn-small.public-menu-link {
    min-height: 2.65rem;
    padding: 0.46rem 0.72rem;
  }

  .public-header .public-menu-action .public-menu-icon,
  .public-header .public-menu-action .public-menu-copy small {
    display: none;
  }

  .public-header .public-menu-locale .locale-switch {
    min-height: 2.65rem;
  }
}

@media (max-width: 640px) {
  .public-header .public-menu-toggle {
    display: inline-flex;
  }

  .public-header nav.public-menu {
    display: none;
  }

  .public-header nav.public-menu.is-open {
    display: block;
  }

  .public-header .public-menu-group-toggle {
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    padding: 0;
    text-align: left;
    width: 100%;
  }

  .public-header .public-menu-submenu,
  .public-header .public-menu-group.is-open .public-menu-submenu {
    display: grid !important;
    position: static;
  }
}

/* Signup demo expired conversion: direct path from trial to subscription. */
.signup-demo-expired-panel {
  align-items: center;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 128, 104, 0.2), transparent 34%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 58%, #f8fafc 100%);
  border: 1px solid rgba(255, 128, 104, 0.32);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) auto;
}

/* Mantivo blue identity override: calmer professional palette. */
:root {
  --brand: #1e40af;
  --brand-2: #2563eb;
  --brand-dark: #172554;
  --accent: #60a5fa;
  --primary: #1e40af;
  --primary-soft: #eff6ff;
}

.public-shell {
  background:
    radial-gradient(circle at 8% 0%, rgba(96, 165, 250, 0.1), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(147, 197, 253, 0.1), transparent 24rem),
    linear-gradient(180deg, #13233f 0%, #1e355c 32%, #f8fbff 32%, #eef5ff 100%) !important;
}

.public-header {
  background: rgba(19, 35, 63, 0.94) !important;
  border-bottom-color: rgba(191, 219, 254, 0.16) !important;
}

.auth-bg {
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.12), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(14, 165, 233, 0.13), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%) !important;
}

.auth-bg .auth-product-hero {
  background:
    radial-gradient(circle at 18% 10%, rgba(96, 165, 250, 0.22), transparent 15rem),
    linear-gradient(145deg, #13233f 0%, #1e40af 100%) !important;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  border-color: #2563eb !important;
  color: #1e40af !important;
}

.public-nav nav a:hover,
.public-nav nav a:focus-visible,
.public-nav a.btn-small:hover,
.public-nav a.btn-small:focus-visible,
.btn:hover,
button:hover,
.btn:focus-visible,
button:focus-visible {
  background: rgba(96, 165, 250, 0.14);
}

.public-nav nav a.active {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(14, 165, 233, 0.16)) !important;
}

.locale-switch a.is-active,
.public-mobile-cta a.active,
.public-mobile-cta a[aria-current="page"] {
  background: #dbeafe !important;
  color: #1e3a8a !important;
}

.btn,
.public-shell .btn,
.admin-shell .btn,
html[data-theme="light"] .admin-shell .btn {
  background: #1e40af !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.16) !important;
}

.btn:hover,
.btn:focus-visible,
.public-shell .btn:hover,
.public-shell .btn:focus-visible,
.admin-shell .btn:hover,
.admin-shell .btn:focus-visible,
html[data-theme="light"] .admin-shell .btn:hover,
html[data-theme="light"] .admin-shell .btn:focus-visible {
  background: #2563eb !important;
  border-color: #2563eb !important;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.2) !important;
}

.btn-outline,
.public-shell .btn-outline,
.admin-shell .btn-outline,
html[data-theme="light"] .admin-shell .btn-outline {
  background: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.28) !important;
  color: #1e3a8a !important;
  box-shadow: none !important;
}

.btn-outline:hover,
.btn-outline:focus-visible,
.public-shell .btn-outline:hover,
.public-shell .btn-outline:focus-visible,
.admin-shell .btn-outline:hover,
.admin-shell .btn-outline:focus-visible {
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.44) !important;
  color: #1d4ed8 !important;
}

.logo-inline {
  filter: drop-shadow(0 10px 22px rgba(30, 64, 175, 0.1));
}

.public-header .logo-inline,
.auth-bg .logo-inline {
  aspect-ratio: 1;
  object-fit: contain;
}

.admin-shell .brand-mark,
.admin-shell .brand-mini::before {
  background: linear-gradient(135deg, #1e40af, #60a5fa) !important;
  box-shadow: 0 14px 30px rgba(30, 64, 175, 0.16) !important;
  color: #ffffff !important;
}

.public-menu-toggle[aria-expanded="true"] {
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.42) !important;
  color: #1e3a8a !important;
}

.public-menu-column,
.public-header nav.public-menu,
.public-header .public-menu-submenu {
  background:
    radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.98) !important;
}

.public-nav nav.public-menu a.public-menu-link:hover,
.public-nav nav.public-menu a.public-menu-link:focus-visible,
.public-nav nav.public-menu a.public-menu-link.active,
.public-nav nav.public-menu a.public-menu-link[aria-current="page"] {
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.28) !important;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.1) !important;
}

.public-menu-icon {
  background: linear-gradient(135deg, #eff6ff, #e0f2fe) !important;
  color: #1e40af !important;
}

.public-menu-group-icon,
.public-menu-link:hover .public-menu-icon,
.public-menu-link:focus-visible .public-menu-icon,
.public-menu-link.active .public-menu-icon,
.public-menu-link[aria-current="page"] .public-menu-icon {
  background: linear-gradient(135deg, #1e40af, #60a5fa) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 30px rgba(30, 64, 175, 0.16) !important;
}

.public-menu-action .btn-small.public-menu-link {
  background:
    radial-gradient(circle at 95% 10%, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(135deg, #1e40af, #60a5fa) !important;
  box-shadow: 0 18px 34px rgba(30, 64, 175, 0.18) !important;
  color: #ffffff !important;
}

.public-menu-action .btn-small.public-menu-link .public-menu-icon {
  background: rgba(255, 255, 255, 0.72) !important;
  color: #1e40af !important;
}

.signup-demo-expired-panel {
  background:
    radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.16), transparent 34%),
    linear-gradient(135deg, #eff6ff 0%, #ffffff 58%, #f8fafc 100%) !important;
  border-color: rgba(37, 99, 235, 0.24) !important;
}

.signup-demo-expired-panel h2,
.signup-demo-expired-panel p {
  margin: 0;
}

.signup-demo-expired-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.signup-demo-expired-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  grid-column: 1 / -1;
}

.signup-demo-expired-proof span {
  background: rgba(255, 128, 104, 0.13);
  border: 1px solid rgba(255, 128, 104, 0.22);
  border-radius: 999px;
  color: #8a2f1d;
  font-size: 0.86rem;
  font-weight: 900;
  padding: 0.42rem 0.7rem;
}

@media (max-width: 760px) {
  .signup-demo-expired-panel {
    grid-template-columns: 1fr;
  }

  .signup-demo-expired-actions {
    justify-content: stretch;
  }

  .signup-demo-expired-actions .btn,
  .signup-demo-expired-actions .btn-outline {
    justify-content: center;
    width: 100%;
  }
}

/* Mantivo blue identity final guard: no orange accents in brand/commercial surfaces. */
.signup-demo-expired-proof span,
.public-shell .plan-simple-names-grid article:nth-child(2),
.public-shell .plan-simple-names-grid article:nth-child(3),
.public-shell .referral-action-card,
.public-shell .sector-page-fast-decision-card {
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.24) !important;
  color: #1e3a8a !important;
}

.signup-demo-expired-proof span {
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.22);
}

.public-shell .plan-simple-names-grid article:nth-child(2)::before,
.public-shell .plan-simple-names-grid article:nth-child(3)::before {
  background: linear-gradient(90deg, #1e40af, #60a5fa) !important;
}

/* Mantivo white header blue navigation guard: menus stay calm, white and blue. */
html[data-theme="light"] body.admin-shell .admin-topbar,
html[data-theme="dark"] body.admin-shell .admin-topbar,
body.admin-shell .admin-topbar,
.admin-shell .admin-topbar,
.public-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(191, 219, 254, 0.72) !important;
  border-bottom: 1px solid rgba(191, 219, 254, 0.72) !important;
  box-shadow: 0 16px 42px rgba(30, 64, 175, 0.1) !important;
  color: #172554 !important;
}

html[data-theme="light"] body.admin-shell .admin-topbar::before,
html[data-theme="dark"] body.admin-shell .admin-topbar::before,
html[data-theme="light"] body.admin-shell .admin-topbar::after,
html[data-theme="dark"] body.admin-shell .admin-topbar::after,
body.admin-shell .admin-topbar::before,
body.admin-shell .admin-topbar::after,
.admin-shell .admin-topbar::before,
.admin-shell .admin-topbar::after,
.public-header::before,
.public-header::after {
  content: none !important;
  display: none !important;
}

.public-header .brand,
.public-header .brand span,
.public-header .brand strong,
.public-nav nav a,
.public-nav nav a:visited,
.public-menu-toggle,
.public-menu-group-toggle,
.admin-shell .brand-mini,
.admin-shell .brand-mini h1,
.admin-shell .brand-mini p,
.admin-shell .admin-mega-nav__button,
.admin-shell .admin-mega-nav__button > span:not(.admin-mega-nav__button-icon) {
  color: #172554 !important;
}

.public-menu-toggle,
.public-header nav.public-menu,
.public-header nav.public-menu.is-open,
.public-header .public-menu-column,
.public-header .public-menu-submenu,
.public-header .public-menu-group-toggle,
html[data-theme="light"] body.admin-shell .admin-mega-nav,
html[data-theme="dark"] body.admin-shell .admin-mega-nav,
body.admin-shell .admin-mega-nav,
.admin-shell .admin-mega-nav,
html[data-theme="light"] body.admin-shell .admin-mega-nav__button,
html[data-theme="dark"] body.admin-shell .admin-mega-nav__button,
body.admin-shell .admin-mega-nav__button,
.admin-shell .admin-mega-nav__button,
html[data-theme="light"] body.admin-shell .admin-mega-nav__panel,
html[data-theme="dark"] body.admin-shell .admin-mega-nav__panel,
body.admin-shell .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__panel {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(191, 219, 254, 0.72) !important;
}

.public-nav nav a:hover,
.public-nav nav a:focus-visible,
.public-nav nav a.active,
.public-nav nav a[aria-current="page"],
.public-header .public-menu-group-toggle:hover,
.public-header .public-menu-group-toggle:focus-visible,
.public-header .public-menu-group.is-open .public-menu-group-toggle,
html[data-theme="light"] body.admin-shell .admin-mega-nav__button:hover,
html[data-theme="dark"] body.admin-shell .admin-mega-nav__button:hover,
html[data-theme="light"] body.admin-shell .admin-mega-nav__button:focus-visible,
html[data-theme="dark"] body.admin-shell .admin-mega-nav__button:focus-visible,
body.admin-shell .admin-mega-nav__button:hover,
body.admin-shell .admin-mega-nav__button:focus-visible,
.admin-shell .admin-mega-nav__button:hover,
.admin-shell .admin-mega-nav__button:focus-visible,
.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__button,
.admin-shell .admin-mega-nav__item.is-open .admin-mega-nav__button {
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.34) !important;
  color: #1e40af !important;
}

.public-menu-action .btn-small.public-menu-link,
.public-shell .btn,
.public-shell .btn-primary {
  background: linear-gradient(135deg, #1e40af, #60a5fa) !important;
  border-color: rgba(30, 64, 175, 0.34) !important;
  box-shadow: 0 16px 34px rgba(30, 64, 175, 0.18) !important;
  color: #ffffff !important;
}

.public-menu-icon,
.public-menu-group-icon,
.admin-shell .admin-mega-nav__button-icon,
.admin-shell .admin-mega-nav__section-icon,
.admin-shell .admin-mega-nav__item-icon {
  background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
  color: #1e40af !important;
}

.public-menu-link:hover .public-menu-icon,
.public-menu-link:focus-visible .public-menu-icon,
.public-menu-link.active .public-menu-icon,
.public-menu-link[aria-current="page"] .public-menu-icon,
.public-header .public-menu-group.is-open .public-menu-group-icon,
.admin-shell .admin-mega-nav__button:hover .admin-mega-nav__button-icon,
.admin-shell .admin-mega-nav__button:focus-visible .admin-mega-nav__button-icon,
.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__button-icon,
.admin-shell .admin-mega-nav__item.is-open .admin-mega-nav__button-icon {
  background: linear-gradient(135deg, #1e40af, #60a5fa) !important;
  color: #ffffff !important;
}

/* Mantivo accessible contrast guard: readable blues on public and auth surfaces. */
:root {
  --mantivo-text-strong: #0f172a;
  --mantivo-text: #1e293b;
  --mantivo-muted: #475569;
  --mantivo-link: #1d4ed8;
  --mantivo-link-hover: #1e40af;
  --mantivo-border: #cbd5e1;
}

.public-shell,
.auth-bg,
.admin-shell {
  color: var(--mantivo-text-strong);
}

.auth-bg .auth-product-hero {
  background:
    radial-gradient(circle at 85% 90%, rgba(96, 165, 250, 0.18), transparent 15rem),
    linear-gradient(145deg, #172554 0%, #1e3a8a 52%, #1e40af 100%) !important;
  color: #ffffff !important;
}

.auth-bg .auth-product-hero *,
.auth-bg .auth-product-hero .brand,
.auth-bg .auth-product-hero .brand *,
.auth-bg .auth-product-hero h1,
.auth-bg .auth-product-hero p,
.auth-bg .auth-product-hero strong {
  color: #ffffff !important;
}

.auth-bg .auth-product-hero .eyebrow,
.auth-bg .auth-product-hero small,
.auth-bg .auth-product-hero span:not(.brand-mark) {
  color: #bfdbfe !important;
}

.auth-bg .auth-card,
.auth-bg .auth-panel,
.auth-bg .auth-form,
.auth-bg form {
  color: var(--mantivo-text-strong) !important;
}

.auth-bg label,
.auth-bg .form-label,
.auth-bg .field-label,
.auth-bg .auth-field-label {
  color: var(--mantivo-text) !important;
  font-weight: 850;
}

.auth-bg input,
.auth-bg select,
.auth-bg textarea {
  background: #ffffff !important;
  border-color: var(--mantivo-border) !important;
  color: var(--mantivo-text-strong) !important;
}

.auth-bg input::placeholder,
.auth-bg textarea::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

.auth-bg input:focus,
.auth-bg select:focus,
.auth-bg textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.18) !important;
  outline: none !important;
}

.auth-bg .auth-password-toggle {
  background: #f8fafc !important;
  border-color: var(--mantivo-border) !important;
  color: #1e40af !important;
}

.auth-bg .auth-password-toggle:hover,
.auth-bg .auth-password-toggle:focus-visible {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
}

.public-shell a:not(.btn):not(.btn-small):not(.public-menu-link),
.auth-bg a:not(.btn):not(.btn-small),
.admin-shell a:not(.btn):not(.btn-small) {
  color: var(--mantivo-link) !important;
  text-decoration-color: rgba(29, 78, 216, 0.36) !important;
}

.public-shell a:not(.btn):not(.btn-small):not(.public-menu-link):hover,
.public-shell a:not(.btn):not(.btn-small):not(.public-menu-link):focus-visible,
.auth-bg a:not(.btn):not(.btn-small):hover,
.auth-bg a:not(.btn):not(.btn-small):focus-visible,
.admin-shell a:not(.btn):not(.btn-small):hover,
.admin-shell a:not(.btn):not(.btn-small):focus-visible {
  color: var(--mantivo-link-hover) !important;
  text-decoration-color: rgba(30, 64, 175, 0.72) !important;
}

.public-shell .eyebrow,
.auth-bg .eyebrow,
.public-shell .section-eyebrow,
.auth-bg .section-eyebrow {
  color: #0f766e !important;
}

.public-shell p,
.public-shell li,
.auth-bg p,
.auth-bg li,
.admin-shell p,
.admin-shell li {
  color: var(--mantivo-muted);
}

.public-shell h1,
.public-shell h2,
.public-shell h3,
.auth-bg h1,
.auth-bg h2,
.auth-bg h3,
.admin-shell h1,
.admin-shell h2,
.admin-shell h3 {
  color: var(--mantivo-text-strong);
}

.public-header .logo-inline,
.auth-bg .logo-inline {
  filter: drop-shadow(0 10px 20px rgba(30, 64, 175, 0.14));
}

.public-header .brand span,
.auth-bg .brand span {
  color: #0f172a !important;
  font-weight: 950;
  letter-spacing: -0.03em;
}

/* Mantivo forced-colors accessibility guard: keep controls usable in Windows High Contrast. */
@media (forced-colors: active) {
  html,
  body,
  :where(.public-shell, .auth-bg, .admin-shell) {
    background: Canvas !important;
    color: CanvasText !important;
    forced-color-adjust: auto !important;
  }

  :where(.public-shell, .auth-bg, .admin-shell) :where(
    .public-header,
    .public-nav,
    .public-menu-column,
    .public-menu-action,
    .public-menu-locale,
    .public-section,
    .home-band,
    .home-hero,
    .hero-home,
    .admin-topbar,
    .admin-panel,
    .admin-card,
    .admin-mega-nav__panel,
    .auth-card,
    .auth-login-card,
    .auth-product-hero
  ) {
    background: Canvas !important;
    border-color: CanvasText !important;
    box-shadow: none !important;
    color: CanvasText !important;
    forced-color-adjust: auto !important;
  }

  :where(.public-shell, .auth-bg, .admin-shell) :where(a, button, .btn, .btn-small, input, select, textarea, summary) {
    border-color: CanvasText !important;
    color: CanvasText !important;
    forced-color-adjust: auto !important;
  }

  :where(.public-shell, .auth-bg, .admin-shell) a {
    color: LinkText !important;
    text-decoration: underline !important;
  }

  :where(.public-shell, .auth-bg, .admin-shell) :where(a, button, .btn, .btn-small, input, select, textarea, summary):focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
  }

  :where(.public-shell, .auth-bg, .admin-shell) :where(.btn, .btn-small, button[type="submit"], input[type="submit"]) {
    background: ButtonFace !important;
    border-color: ButtonText !important;
    color: ButtonText !important;
  }

  :where(.public-shell, .auth-bg, .admin-shell) :where(input, select, textarea) {
    background: Field !important;
    border-color: FieldText !important;
    color: FieldText !important;
  }
}

/* Mantivo focus and touch accessibility guard: visible keyboard focus and usable tap targets. */
:root {
  --mantivo-focus-ring: #2563eb;
  --mantivo-focus-inner: #ffffff;
  --mantivo-touch-target: 44px;
}

:where(.public-shell, .auth-bg, .admin-shell) :where(
  button,
  .btn,
  .btn-small,
  summary,
  [role="button"],
  .public-menu-toggle,
  .public-menu-link,
  .public-menu-group-toggle,
  .public-mobile-cta a,
  .admin-mega-nav__button,
  .admin-mega-nav__panel a,
  .admin-user-menu__summary,
  .admin-user-menu__panel a,
  .table-actions a,
  .table-actions button,
  .inline-actions a,
  .inline-actions button,
  .panel-actions a,
  .panel-actions button,
  .actions a,
  .actions button
) {
  min-height: 44px !important;
  min-width: 44px;
}

:where(.public-shell, .auth-bg, .admin-shell) :where(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea
) {
  min-height: 44px !important;
}

:where(.public-shell, .auth-bg, .admin-shell) :where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex="-1"]),
  [role="button"]
):focus-visible {
  outline: 3px solid var(--mantivo-focus-ring) !important;
  outline-offset: 0.18rem !important;
  box-shadow:
    0 0 0 2px var(--mantivo-focus-inner),
    0 0 0 6px rgba(37, 99, 235, 0.28) !important;
}

:where(.public-shell, .auth-bg, .admin-shell) :where(
  .admin-panel,
  .auth-card,
  .public-card,
  .business-card,
  .metric-card,
  section,
  article,
  [id]
):target {
  scroll-margin-top: 7rem;
}

/* Mantivo reduced motion final guard: respect system motion preferences after all visual overrides. */
/* Mantivo product logo cleanup guard: render the product mark without inherited pseudo-logo wrappers. */
html[data-theme="light"] body.admin-shell .admin-topbar .brand-mark,
html[data-theme="dark"] body.admin-shell .admin-topbar .brand-mark,
body.admin-shell .admin-topbar .brand-mark,
.admin-shell .admin-topbar .brand-mark,
.public-header .logo-inline,
.public-shell .logo-inline,
.auth-bg .logo-inline {
  aspect-ratio: 1 / 1 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-block !important;
  height: 2.5rem !important;
  min-height: 2.5rem !important;
  min-width: 2.5rem !important;
  object-fit: contain !important;
  padding: 0 !important;
  width: 2.5rem !important;
}

html[data-theme="light"] body.admin-shell .brand-mini::before,
html[data-theme="dark"] body.admin-shell .brand-mini::before,
body.admin-shell .brand-mini::before,
.admin-shell .brand-mini::before,
html[data-theme="light"] body.admin-shell .admin-topbar .brand-mark::before,
html[data-theme="dark"] body.admin-shell .admin-topbar .brand-mark::before,
body.admin-shell .admin-topbar .brand-mark::before,
.admin-shell .admin-topbar .brand-mark::before {
  content: none !important;
  display: none !important;
}

.auth-bg .brand-row .logo-inline {
  height: 2.75rem !important;
  min-height: 2.75rem !important;
  min-width: 2.75rem !important;
  width: 2.75rem !important;
}

.admin-shell .brand-mini {
  gap: 0.72rem !important;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within,
  html,
  body,
  .public-shell,
  .auth-bg,
  .admin-shell {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
}

/* Sector landing visual sales guard */
:root {
  --mantivo-blue-900: #0f2f63;
  --mantivo-blue-800: #1e40af;
  --mantivo-blue-700: #1d4ed8;
  --mantivo-blue-100: #dbeafe;
  --mantivo-blue-50: #eff6ff;
}

/* Public plan entry price strip */
.plan-entry-price-strip {
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border-color: rgba(29, 78, 216, 0.16);
}

.plan-entry-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.plan-entry-price-grid article {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 1.15rem;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 47, 99, 0.08);
}

.plan-entry-price-grid article.is-featured {
  border-color: rgba(29, 78, 216, 0.34);
  background: linear-gradient(180deg, #ffffff, #dbeafe);
}

.plan-entry-price-grid span {
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-entry-price-grid strong {
  color: #0f172a;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1;
}

.plan-entry-price-grid p {
  margin: 0;
  color: #334155;
}

.plan-entry-price-grid p b {
  color: #1e40af;
  font-size: 1.45rem;
}

.plan-entry-price-grid small,
.plan-entry-price-grid em {
  color: #475569;
  font-style: normal;
}

.plan-entry-price-grid .btn {
  margin-top: 0.2rem;
  justify-content: center;
}

@media (max-width: 860px) {
  .plan-entry-price-grid {
    grid-template-columns: 1fr;
  }
}

/* Mantivo Wiwink-inspired public product guard: modular, blue, short and sector-first without copying brand assets. */
.public-product-modules-band {
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.16), transparent 24rem),
    #ffffff !important;
}

.public-product-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.public-product-module-card {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 15rem;
  padding: 1rem;
  border: 1px solid rgba(147, 197, 253, 0.56);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(219, 234, 254, 0.82), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 34px rgba(30, 64, 175, 0.08);
}

.public-product-module-card > span {
  display: inline-grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 1rem;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.public-product-module-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.public-product-module-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.public-product-module-card p {
  margin: 0;
  color: #475569 !important;
}

.public-product-module-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-product-module-card li {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #1e3a8a !important;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0.32rem 0.52rem;
}

.public-sector-picker-grid .home-sector-card {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  align-items: stretch;
  gap: 0.85rem;
  min-height: 10.5rem;
  padding: 0.72rem;
  border-color: rgba(147, 197, 253, 0.56) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(219, 234, 254, 0.74), transparent 42%),
    #ffffff !important;
}

.home-sector-card-visual {
  position: relative;
  display: block !important;
  min-height: 100%;
  overflow: hidden;
  border-radius: 0.95rem !important;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.86), transparent 3rem),
    linear-gradient(135deg, #dbeafe, #93c5fd) !important;
  padding: 0 !important;
}

.home-sector-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-sector-card-visual::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.12) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 0.55rem, rgba(255, 255, 255, 0) 0.55rem 1.15rem);
}

.home-sector-card-visual::after {
  z-index: 2;
}

.home-sector-card-copy {
  display: grid !important;
  align-content: start;
  gap: 0.38rem;
  min-width: 0;
  padding: 0.12rem 0 !important;
}

.home-sector-card-kicker {
  color: #1d4ed8 !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-sector-card small,
.home-sector-card em {
  color: #475569;
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.35;
}

.home-sector-card em {
  width: fit-content;
  margin-top: 0.16rem;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 850;
  padding: 0.24rem 0.48rem;
}

.home-sector-card-cta {
  display: inline-flex !important;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff !important;
  font-size: 0.78rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  padding: 0.34rem 0.6rem !important;
  text-transform: none !important;
}

.home-sector-card-cta::after {
  content: "->";
  font-weight: 950;
}

.sector-visual-image,
.sector-example-picture {
  position: relative;
  isolation: isolate;
}

.sector-visual-image::after,
.sector-example-picture::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 5.4rem;
  aspect-ratio: 1;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(219, 234, 254, 0.92));
  box-shadow: 0 18px 34px rgba(30, 64, 175, 0.18);
  z-index: -1;
}

.sector-photo-jardineria {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.16)),
    url("/assets/media/home/sector-jardineria.jpg?v=noperson-20260626") center / cover no-repeat,
    radial-gradient(circle at 22% 26%, rgba(22, 163, 74, 0.24), transparent 7rem),
    radial-gradient(circle at 76% 20%, rgba(132, 204, 22, 0.2), transparent 6rem),
    linear-gradient(135deg, #e0f2fe 0%, #dcfce7 50%, #bfdbfe 100%) !important;
}

.sector-photo-lampisteria {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.16)),
    url("/assets/media/home/sector-lampisteria.jpg?v=noperson-20260626") center / cover no-repeat,
    radial-gradient(circle at 22% 24%, rgba(250, 204, 21, 0.22), transparent 6rem),
    radial-gradient(circle at 78% 22%, rgba(14, 165, 233, 0.28), transparent 7rem),
    linear-gradient(135deg, #eff6ff 0%, #dbeafe 48%, #bae6fd 100%) !important;
}

.sector-photo-paleteria {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.16)),
    url("/assets/media/home/sector-paleteria.jpg?v=noperson-20260626") center / cover no-repeat,
    radial-gradient(circle at 24% 24%, rgba(148, 163, 184, 0.32), transparent 7rem),
    radial-gradient(circle at 78% 18%, rgba(59, 130, 246, 0.22), transparent 6rem),
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 52%, #bfdbfe 100%) !important;
}

.sector-photo-limpieza {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.16)),
    url("/assets/media/home/sector-limpieza.jpg?v=noperson-20260626") center / cover no-repeat,
    radial-gradient(circle at 26% 22%, rgba(45, 212, 191, 0.22), transparent 6rem),
    radial-gradient(circle at 78% 18%, rgba(96, 165, 250, 0.24), transparent 7rem),
    linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 54%, #dbeafe 100%) !important;
}

.sector-photo-pintura {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.16)),
    url("/assets/media/home/sector-pintura.jpg?v=noperson-20260626") center / cover no-repeat,
    radial-gradient(circle at 22% 24%, rgba(96, 165, 250, 0.24), transparent 7rem),
    radial-gradient(circle at 78% 22%, rgba(191, 219, 254, 0.42), transparent 7rem),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 52%, #bfdbfe 100%) !important;
}

.sector-photo-climatizacion {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.16)),
    url("/assets/media/home/sector-climatizacion.jpg?v=noperson-20260626") center / cover no-repeat,
    radial-gradient(circle at 22% 24%, rgba(96, 165, 250, 0.24), transparent 7rem),
    radial-gradient(circle at 78% 22%, rgba(191, 219, 254, 0.42), transparent 7rem),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 52%, #bfdbfe 100%) !important;
}

.sector-photo-cerrajeria {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.16)),
    url("/assets/media/home/sector-cerrajeria.jpg?v=noperson-20260626") center / cover no-repeat,
    radial-gradient(circle at 22% 24%, rgba(96, 165, 250, 0.24), transparent 7rem),
    radial-gradient(circle at 78% 22%, rgba(191, 219, 254, 0.42), transparent 7rem),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 52%, #bfdbfe 100%) !important;
}

.sector-photo-mudanzas {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.16)),
    url("/assets/media/home/sector-mudanzas.jpg?v=noperson-20260626") center / cover no-repeat,
    radial-gradient(circle at 22% 24%, rgba(96, 165, 250, 0.24), transparent 7rem),
    radial-gradient(circle at 78% 22%, rgba(191, 219, 254, 0.42), transparent 7rem),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 52%, #bfdbfe 100%) !important;
}

.sector-photo-piscinas {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.16)),
    url("/assets/media/home/sector-piscinas.jpg?v=noperson-20260626") center / cover no-repeat,
    radial-gradient(circle at 22% 24%, rgba(96, 165, 250, 0.24), transparent 7rem),
    radial-gradient(circle at 78% 22%, rgba(191, 219, 254, 0.42), transparent 7rem),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 52%, #bfdbfe 100%) !important;
}

.sector-photo-control-plagas {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.16)),
    url("/assets/media/home/sector-control-plagas.jpg?v=noperson-20260626") center / cover no-repeat,
    radial-gradient(circle at 22% 24%, rgba(96, 165, 250, 0.24), transparent 7rem),
    radial-gradient(circle at 78% 22%, rgba(191, 219, 254, 0.42), transparent 7rem),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 52%, #bfdbfe 100%) !important;
}

.sector-photo-sat-electrodomesticos {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.16)),
    url("/assets/media/home/sector-sat-electrodomesticos.jpg?v=noperson-20260626") center / cover no-repeat,
    radial-gradient(circle at 22% 24%, rgba(96, 165, 250, 0.24), transparent 7rem),
    radial-gradient(circle at 78% 22%, rgba(191, 219, 254, 0.42), transparent 7rem),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 52%, #bfdbfe 100%) !important;
}


.sector-photo-carpinteria {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-carpinteria.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-cristaleria {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-cristaleria.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-toldos-persianas {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-toldos-persianas.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-energia-solar {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-energia-solar.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-telecom-antenas {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-telecom-antenas.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-alarmas-seguridad {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-alarmas-seguridad.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-ascensores {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-ascensores.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-desatascos-saneamiento {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-desatascos-saneamiento.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-cubiertas-impermeabilizacion {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-cubiertas-impermeabilizacion.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-pavimentos-parquet {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-pavimentos-parquet.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-mantenimiento-industrial {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-mantenimiento-industrial.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-taller-mecanico {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-taller-mecanico.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-chapa-pintura {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-chapa-pintura.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-rotulacion-senaletica {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-rotulacion-senaletica.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-frio-comercial-vending {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-frio-comercial-vending.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-gestion-fincas-comunidades {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    url("/assets/media/home/sector-gestion-fincas-comunidades.jpg?v=noperson-20260626") center / cover no-repeat,
    #dbeafe;
}

.sector-photo-generic {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.16)),
    url("/assets/media/home/sector-generic.jpg?v=noperson-20260626") center / cover no-repeat,
    radial-gradient(circle at 22% 24%, rgba(96, 165, 250, 0.24), transparent 7rem),
    radial-gradient(circle at 78% 22%, rgba(191, 219, 254, 0.42), transparent 7rem),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 52%, #bfdbfe 100%) !important;
}

@media (max-width: 1100px) {
  .public-product-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .public-product-modules-grid {
    grid-template-columns: 1fr;
  }

  .public-sector-picker-grid .home-sector-card {
    grid-template-columns: 1fr;
  }

  .home-sector-card-visual {
    min-height: 8rem;
  }
}

/* Admin client compact actions guard: six daily actions stay usable on small screens. */
html[data-theme="light"] body.admin-shell .admin-heading .compact-actions,
html[data-theme="dark"] body.admin-shell .admin-heading .compact-actions,
body.admin-shell .admin-heading .compact-actions,
.admin-shell .admin-heading .compact-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overscroll-behavior-inline: contain;
  padding-bottom: 0.18rem;
  scrollbar-gutter: stable;
}

html[data-theme="light"] body.admin-shell .admin-heading .compact-actions .btn,
html[data-theme="dark"] body.admin-shell .admin-heading .compact-actions .btn,
body.admin-shell .admin-heading .compact-actions .btn,
.admin-shell .admin-heading .compact-actions .btn {
  flex: 0 0 auto !important;
  min-height: 40px !important;
  width: auto !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  html[data-theme="light"] body.admin-shell .admin-heading .compact-actions .btn,
  html[data-theme="dark"] body.admin-shell .admin-heading .compact-actions .btn,
  body.admin-shell .admin-heading .compact-actions .btn,
  .admin-shell .admin-heading .compact-actions .btn {
    min-width: 8.4rem !important;
  }
}

/* Mantivo Wiwink sector refinement guard: white header, blue mega-menu and visual trade previews. */
.public-header nav.public-menu,
.public-header .public-menu-submenu {
  background: rgba(255, 255, 255, 0.985) !important;
  border-color: rgba(147, 197, 253, 0.48) !important;
  box-shadow: 0 26px 70px rgba(30, 64, 175, 0.13) !important;
}

@media (min-width: 641px) {
  .public-header .public-menu-group-toggle {
    color: #172554 !important;
  }

  .public-header .public-menu-group-toggle:hover,
  .public-header .public-menu-group-toggle:focus-visible,
  .public-header .public-menu-group.is-open .public-menu-group-toggle {
    background: #eff6ff !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    color: #1d4ed8 !important;
  }

  .public-header .public-menu-submenu {
    background:
      radial-gradient(circle at 92% 0%, rgba(96, 165, 250, 0.16), transparent 34%),
      rgba(255, 255, 255, 0.985) !important;
  }
}

/* Public sales polish inspired by modular SaaS landings: blue, visual, compact and sector-first. */
.public-shell {
  --public-blue-950: #0b1f46;
  --public-blue-900: #102a5c;
  --public-blue-800: #1e40af;
  --public-blue-700: #1d4ed8;
  --public-blue-100: #dbeafe;
  --public-blue-50: #eff6ff;
}

.public-shell .btn {
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.16);
}

.public-shell .btn:not(.btn-outline) {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 58%, #0f5fa8 100%) !important;
  color: #ffffff !important;
}

.public-shell .btn-outline {
  border-color: rgba(29, 78, 216, 0.24) !important;
  background: #ffffff !important;
  color: #1e40af !important;
}

.home-hero.home-hero-product {
  background:
    radial-gradient(circle at 84% 14%, rgba(147, 197, 253, 0.56), transparent 22rem),
    radial-gradient(circle at 18% 94%, rgba(219, 234, 254, 0.64), transparent 22rem),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 46%, #e6f1ff 100%) !important;
}

.home-hero.home-hero-product h1 {
  max-width: 12.5ch;
}

.home-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.home-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.15rem;
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #0f2f63;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.36rem 0.68rem;
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.07);
}

.home-hero-trust span::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 0.22rem #dbeafe;
}

.home-hero.home-hero-product .home-hero-media {
  transform: rotate(-1deg);
}

.home-hero.home-hero-product .home-hero-media::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 8rem;
  height: 8rem;
  border-radius: 1.8rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(219, 234, 254, 0.92)),
    repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.12) 0 0.45rem, transparent 0.45rem 0.9rem);
  box-shadow: 0 24px 54px rgba(30, 64, 175, 0.2);
}

.price-tag.price-tag-monthly {
  color: #1e40af;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 0.95;
}

.pricing-card .price-monthly-note,
.plan-entry-price-grid small {
  color: #475569 !important;
  font-weight: 800;
}

.sector-mini-gallery-band {
  background:
    radial-gradient(circle at 92% 0%, rgba(96, 165, 250, 0.18), transparent 22rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
}

.sector-mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.sector-mini-photo {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: clamp(13rem, 24vw, 19rem);
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(147, 197, 253, 0.56);
  border-radius: 1.35rem;
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(30, 64, 175, 0.12);
}

.sector-mini-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 47, 99, 0.72) 100%),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.62), transparent 4rem),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 0.55rem, rgba(255, 255, 255, 0) 0.55rem 1.2rem);
}

.sector-mini-photo span {
  width: fit-content;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.56rem;
  text-transform: uppercase;
}

.sector-mini-photo strong {
  max-width: 20rem;
  color: #ffffff;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.08;
  text-shadow: 0 2px 14px rgba(15, 23, 42, 0.32);
}

.sector-mini-photo em {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  background: #ffffff;
  color: #1e40af;
  font-style: normal;
  font-weight: 950;
}

.home-sector-card-visual,
.sector-scene-picture,
.sector-use-case-visual {
  position: relative;
  isolation: isolate;
}

.sector-visual-image span,
.sector-visual-image strong,
.sector-visual-image small {
  position: relative;
  z-index: 1;
}

.sector-page-fast-decision-card,
.sector-use-case-card,
.sector-scene-card,
.sector-example-card,
.plan-entry-price-grid article,
.pricing-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(219, 234, 254, 0.72), transparent 42%),
    #ffffff !important;
}

@media (max-width: 860px) {
  .sector-mini-gallery {
    grid-template-columns: 1fr;
  }

  .home-hero.home-hero-product .home-hero-media {
    transform: none;
  }
}

.home-sector-card-visual,
.sector-visual-image,
.sector-example-picture,
.sector-scene-picture,
.sector-use-case-visual {
  overflow: hidden;
}

.home-sector-card-visual::before,
.sector-visual-image::before,
.sector-example-picture::before,
.sector-scene-picture::before,
.sector-use-case-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), transparent 46%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 0.55rem, rgba(255, 255, 255, 0) 0.55rem 1.15rem);
  opacity: 0.8;
  pointer-events: none;
}

.home-sector-card-visual::after,
.sector-example-picture::after,
.sector-scene-picture::after,
.sector-use-case-visual::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 0.45rem rgba(29, 78, 216, 0.16);
}

.public-product-module-card,
.public-sector-picker-grid .home-sector-card,
.sector-example-card,
.sector-use-case-card,
.sector-scene-card {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.public-product-module-card:hover,
.public-sector-picker-grid .home-sector-card:hover,
.sector-example-card:hover,
.sector-use-case-card:hover,
.sector-scene-card:hover {
  border-color: rgba(37, 99, 235, 0.32) !important;
  box-shadow: 0 22px 62px rgba(30, 64, 175, 0.14) !important;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .public-product-module-card,
  .public-sector-picker-grid .home-sector-card,
  .sector-example-card,
  .sector-use-case-card,
  .sector-scene-card {
    transition: none;
  }

  .public-product-module-card:hover,
  .public-sector-picker-grid .home-sector-card:hover,
  .sector-example-card:hover,
  .sector-use-case-card:hover,
  .sector-scene-card:hover {
    transform: none;
  }
}

/* Admin contextual help touch polish: the ? button stays tappable and the tooltip stays inside the viewport. */
.admin-shell .admin-help-trigger {
  min-width: var(--mantivo-touch-target, 44px) !important;
  min-height: var(--mantivo-touch-target, 44px) !important;
  padding-inline: 0.72rem !important;
}

/* Mantivo sector SaaS final polish: sober blue identity, white header and dynamic starter price entry. */
.public-shell {
  background:
    radial-gradient(circle at 14% 0%, rgba(219, 234, 254, 0.9), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 46%, #eef6ff 100%) !important;
}

.public-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(147, 197, 253, 0.46) !important;
}

.public-header::before,
.public-header::after {
  display: none !important;
}

.public-shell .brand strong,
.public-shell .brand span,
.public-nav nav a,
.public-menu-toggle {
  color: #0b1f46 !important;
}

.public-menu-action .btn-small.public-menu-link,
.public-shell .btn:not(.btn-outline),
.home-sector-card-cta {
  background: linear-gradient(135deg, #1e40af, #2563eb) !important;
  color: #ffffff !important;
}

.public-shell .btn-outline,
.public-nav nav.public-menu a.public-menu-link {
  color: #1e40af !important;
}

.home-hero-proof span:first-child,
.sector-price-pill,
.plan-entry-price-grid article:first-child,
.pricing-card:first-child {
  border-color: rgba(30, 64, 175, 0.32) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(191, 219, 254, 0.78), transparent 42%),
    #ffffff !important;
  box-shadow: 0 18px 50px rgba(30, 64, 175, 0.12) !important;
}

.home-hero-proof span:first-child,
.sector-price-pill strong,
.plan-entry-price-grid article:first-child p b,
.pricing-card:first-child .price-tag.price-tag-monthly {
  color: #1e3a8a !important;
}

.plan-entry-price-grid article:first-child p b::after,
.pricing-card:first-child .price-tag.price-tag-monthly::after {
  content: " entrada";
  display: inline-block;
  margin-left: 0.38rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
  padding: 0.22rem 0.5rem;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .plan-entry-price-grid article:first-child p b::after,
  .pricing-card:first-child .price-tag.price-tag-monthly::after {
    display: table;
    margin: 0.35rem 0 0;
  }
}

.admin-shell .admin-help-popover {
  max-width: min(22rem, calc(100vw - 2rem)) !important;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .admin-shell .admin-help-trigger {
    flex: 0 0 auto;
  }

  .admin-shell .admin-help-popover {
    right: auto !important;
    left: 50% !important;
    transform: translate(-50%, -0.2rem) !important;
  }

  .admin-shell .admin-help-trigger:hover .admin-help-popover,
  .admin-shell .admin-help-trigger:focus-visible .admin-help-popover {
    transform: translate(-50%, 0) !important;
  }
}

/* Public sector menu guard: popular trades stay one click away without opening a long catalog page first. */
@media (min-width: 641px) {
  .public-header nav.public-menu .public-menu-groups {
    gap: 0.32rem !important;
  }

  .public-header .public-menu-group-toggle {
    padding-inline: 0.58rem !important;
  }

  .public-header .public-menu-submenu {
    min-width: min(24rem, calc(100vw - 2rem));
  }
}

.public-menu-submenu .public-menu-link small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Public home usability equalization guard: full-width headings, readable trade cards and consistent monthly prices. */
.public-shell .section-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  justify-content: stretch !important;
  width: 100% !important;
  max-width: none !important;
}

.public-shell .section-heading > *,
.public-shell .section-heading :is(h2),
.public-shell .section-heading :is(p),
.public-sector-picker h2,
.home-cta h2 {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  text-wrap: balance !important;
  width: 100% !important;
  max-width: none !important;
}

.home-flow-preview {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.7rem !important;
  padding: 1rem !important;
}

.home-flow-preview span {
  display: grid !important;
  min-height: 7.2rem !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 0.52rem !important;
  border-radius: 1.35rem !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(191, 219, 254, 0.72), transparent 4.2rem),
    #ffffff !important;
  color: #1e3a8a !important;
  text-align: center !important;
  padding: 0.78rem 0.55rem !important;
}

.home-flow-preview svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.home-flow-preview strong {
  color: #0f2f63;
  font-size: 0.84rem;
  line-height: 1.12;
}

.public-sector-picker {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 1.1rem !important;
  padding: clamp(1.2rem, 3vw, 2rem) !important;
}

.public-sector-picker-grid {
  width: 100% !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.85rem !important;
}

.public-sector-picker-grid .home-sector-card {
  grid-template-columns: minmax(5rem, 0.36fr) minmax(0, 1fr) !important;
  min-height: 13rem !important;
  padding: 0.82rem !important;
}

.home-sector-card-copy > strong {
  color: #0f172a !important;
  font-size: 1rem !important;
  line-height: 1.16 !important;
  letter-spacing: -0.025em !important;
}

.home-sector-card-kicker {
  font-size: 0.68rem !important;
  line-height: 1.18 !important;
  letter-spacing: 0.055em !important;
}

.home-sector-card small {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

.home-sector-card em {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.service-table-band .pricing-grid {
  align-items: stretch !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.service-table-band .pricing-card {
  position: relative;
  min-height: 100% !important;
  align-content: start !important;
  gap: 0.78rem !important;
  padding: 1.2rem !important;
}

.service-table-band .pricing-card .compact-list {
  align-content: start;
  min-height: 8.4rem;
}

.service-table-band .pricing-card .btn {
  align-self: end;
}

.service-table-band .pricing-card.plan-highlight {
  border-color: rgba(37, 99, 235, 0.54) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(147, 197, 253, 0.42), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #eff6ff 100%) !important;
  box-shadow: 0 26px 74px rgba(30, 64, 175, 0.18) !important;
  transform: translateY(-0.28rem);
}

.service-table-band .pricing-card.plan-highlight::after {
  content: "Recomendado";
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.55rem;
  text-transform: uppercase;
}

.home-hero-proof span {
  min-width: 11rem;
  justify-content: center;
}

@media (max-width: 1100px) {
  .home-flow-preview,
  .service-table-band .pricing-grid,
  .public-sector-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .home-flow-preview,
  .service-table-band .pricing-grid,
  .public-sector-picker-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .public-sector-picker-grid .home-sector-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-flow-preview span {
    min-height: 5.8rem !important;
  }

  .service-table-band .pricing-card.plan-highlight {
    transform: none;
  }
}

/* Public home human workflow guard: two-row photographic cards, not empty icon pills. */
.home-flow-preview {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 0.85rem !important;
  align-items: stretch !important;
  padding: clamp(0.85rem, 2vw, 1.15rem) !important;
}

.home-flow-preview .home-flow-step {
  position: relative !important;
  display: grid !important;
  grid-column: span 2 !important;
  min-height: 12.2rem !important;
  overflow: hidden !important;
  align-content: end !important;
  justify-items: start !important;
  border: 1px solid rgba(147, 197, 253, 0.56) !important;
  border-radius: 1.35rem !important;
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 0 !important;
  box-shadow: 0 18px 38px rgba(30, 64, 175, 0.14) !important;
}

.home-flow-preview .home-flow-step:nth-child(n+4) {
  grid-column: span 3 !important;
}

.home-flow-preview .home-flow-photo {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.24) 42%, rgba(15, 23, 42, 0.82) 100%),
    var(--home-flow-photo) center / cover no-repeat;
  transform: scale(1.01);
}

.home-flow-preview svg {
  display: none !important;
}

.home-flow-preview .home-flow-step strong {
  position: relative;
  z-index: 1;
  max-width: 12rem;
  color: #ffffff !important;
  font-size: clamp(0.95rem, 1.35vw, 1.12rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em;
  padding: 0.9rem !important;
  text-shadow: 0 2px 14px rgba(15, 23, 42, 0.65);
}

@media (max-width: 1100px) {
  .home-flow-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-flow-preview .home-flow-step,
  .home-flow-preview .home-flow-step:nth-child(n+4) {
    grid-column: span 1 !important;
  }
}

@media (max-width: 680px) {
  .home-flow-preview {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-flow-preview .home-flow-step {
    min-height: 9.5rem !important;
  }
}

/* Public home photographic flow: explicit 3 + 2 layout, readable over real images. */
.home-hero-product .home-flow-preview.home-flow-gallery {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: clamp(0.72rem, 1.3vw, 0.95rem) !important;
  padding: clamp(0.85rem, 2vw, 1.1rem) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step {
  position: relative !important;
  grid-column: span 2 !important;
  min-height: clamp(10.4rem, 17vw, 13.2rem) !important;
  overflow: hidden !important;
  align-content: end !important;
  justify-items: start !important;
  border: 1px solid rgba(147, 197, 253, 0.58) !important;
  border-radius: 1.45rem !important;
  background: #0b1f46 !important;
  box-shadow: 0 22px 54px rgba(30, 64, 175, 0.16) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4),
.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) {
  grid-column: span 3 !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background:
    linear-gradient(180deg, rgba(11, 31, 70, 0.04) 0%, rgba(11, 31, 70, 0.32) 44%, rgba(11, 31, 70, 0.9) 100%),
    var(--home-flow-photo) center / cover no-repeat !important;
  transform: scale(1.018) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step::after {
  content: "";
  position: absolute;
  inset: auto 0.78rem 0.78rem auto;
  z-index: 1;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 0.5rem rgba(96, 165, 250, 0.16);
}

.home-hero-product .home-flow-preview.home-flow-gallery svg {
  display: none !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step strong {
  position: relative !important;
  z-index: 2 !important;
  max-width: 13.5rem !important;
  color: #ffffff !important;
  font-size: clamp(1rem, 1.45vw, 1.18rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.035em !important;
  padding: 0.95rem !important;
  text-align: left !important;
  text-shadow: 0 2px 16px rgba(2, 6, 23, 0.82) !important;
}

@media (max-width: 1100px) {
  .home-hero-product .home-flow-preview.home-flow-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step,
  .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4),
  .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) {
    grid-column: span 1 !important;
  }
}

@media (max-width: 680px) {
  .home-hero-product .home-flow-preview.home-flow-gallery {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step {
    min-height: 9.8rem !important;
  }
}

/* Public home cinematic workflow guard: two clean photo rows instead of small icon cards. */
.home-hero-product .home-flow-preview.home-flow-gallery {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: clamp(0.82rem, 1.4vw, 1.05rem) !important;
  padding: clamp(1rem, 2.2vw, 1.35rem) !important;
  border-bottom: 0 !important;
  background:
    radial-gradient(circle at 15% 0%, rgba(219, 234, 254, 0.72), transparent 16rem),
    #f8fbff !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step {
  grid-column: span 4 !important;
  min-height: clamp(11.2rem, 18vw, 14.4rem) !important;
  border-radius: 1.55rem !important;
  box-shadow: 0 24px 58px rgba(30, 64, 175, 0.18) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4),
.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) {
  grid-column: span 6 !important;
  min-height: clamp(10.8rem, 16vw, 13rem) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo {
  background:
    linear-gradient(180deg, rgba(5, 18, 43, 0.02) 0%, rgba(5, 18, 43, 0.22) 38%, rgba(5, 18, 43, 0.92) 100%),
    var(--home-flow-photo) center / cover no-repeat !important;
  filter: saturate(1.04) contrast(1.02) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(1) .home-flow-photo {
  background-position: center 34% !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(2) .home-flow-photo,
.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) .home-flow-photo {
  background-position: center 48% !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step strong {
  max-width: 10.8rem !important;
  padding: 1rem !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4) strong,
.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) strong {
  max-width: 13rem !important;
}

.home-hero.home-hero-product .screen-grid {
  gap: 0.7rem !important;
  padding: 0 clamp(1rem, 2.2vw, 1.35rem) clamp(1rem, 2.2vw, 1.35rem) !important;
  background: #f8fbff !important;
}

.home-hero.home-hero-product .screen-grid div {
  min-height: 7.2rem !important;
  border: 1px solid rgba(147, 197, 253, 0.42) !important;
  border-radius: 1.15rem !important;
}

@media (max-width: 1100px) {
  .home-hero-product .home-flow-preview.home-flow-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step,
  .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4),
  .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) {
    grid-column: span 1 !important;
  }
}

@media (max-width: 680px) {
  .home-hero-product .home-flow-preview.home-flow-gallery,
  .home-hero.home-hero-product .screen-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Public sector picker readability fix: cards must not clip trade names or descriptions. */
.public-sector-picker-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)) !important;
  gap: clamp(0.9rem, 1.6vw, 1.2rem) !important;
}

.public-sector-picker-grid .home-sector-card {
  grid-template-columns: clamp(6.1rem, 22%, 8rem) minmax(0, 1fr) !important;
  min-height: 14.6rem !important;
  overflow: hidden !important;
  padding: clamp(0.9rem, 1.5vw, 1.1rem) !important;
}

.home-sector-card-copy,
.home-sector-card-copy > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

.home-sector-card-copy > strong {
  overflow-wrap: anywhere !important;
  text-wrap: balance;
}

.home-sector-card-kicker,
.home-sector-card small {
  overflow-wrap: anywhere !important;
}

.home-sector-card small {
  -webkit-line-clamp: 4 !important;
}

.home-sector-card em {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 860px) {
  .public-sector-picker-grid .home-sector-card {
    grid-template-columns: minmax(5.8rem, 0.26fr) minmax(0, 1fr) !important;
  }
}

/* Public home pricing card polish: equal cards, clear monthly price and stable recommended state. */
.service-table-band .pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)) !important;
  gap: clamp(0.95rem, 1.7vw, 1.25rem) !important;
}

.service-table-band .pricing-card {
  display: grid !important;
  grid-template-rows: auto auto auto auto 1fr auto !important;
  min-height: 100% !important;
  overflow: hidden !important;
  border-radius: 1.35rem !important;
}

.service-table-band .pricing-card .price-tag.price-tag-monthly {
  margin: 0.1rem 0 0 !important;
  color: #0f2f63 !important;
  font-size: clamp(1.8rem, 3vw, 2.35rem) !important;
  letter-spacing: -0.055em !important;
}

.service-table-band .pricing-card .price-monthly-note {
  width: fit-content;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af !important;
  font-size: 0.84rem !important;
  font-weight: 850;
  padding: 0.3rem 0.56rem;
}

.service-table-band .pricing-card .compact-list {
  min-height: 0 !important;
}

.service-table-band .pricing-card.plan-highlight {
  transform: none !important;
}

.service-table-band .pricing-card.plan-highlight::after {
  top: 1rem !important;
  right: 1rem !important;
  box-shadow: 0 10px 28px rgba(30, 64, 175, 0.12);
}

/* Public home photo visibility fix: real images must be visible, not dark placeholders. */
.home-hero-product .home-flow-preview.home-flow-gallery {
  background:
    radial-gradient(circle at 18% 0%, rgba(191, 219, 254, 0.7), transparent 18rem),
    linear-gradient(135deg, #f8fbff, #eef6ff) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step {
  min-height: clamp(8.8rem, 13vw, 11.4rem) !important;
  background:
    linear-gradient(135deg, #dbeafe, #f8fbff) !important;
  box-shadow: 0 18px 42px rgba(30, 64, 175, 0.13) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4),
.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) {
  min-height: clamp(9.2rem, 13vw, 11.8rem) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo {
  overflow: hidden !important;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.72), rgba(248, 251, 255, 0.88)),
    var(--home-flow-photo) center / cover no-repeat !important;
  filter: none !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 30, 68, 0.02) 0%, rgba(8, 30, 68, 0.1) 45%, rgba(8, 30, 68, 0.58) 100%);
}

.home-flow-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step strong {
  margin: 0.85rem !important;
  padding: 0.46rem 0.62rem !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.78rem;
  background: rgba(8, 30, 68, 0.68);
  backdrop-filter: blur(8px);
  text-shadow: none !important;
}

/* Public home local photo and pricing hierarchy guard: local images, readable hero, annual discount. */
.home-flow-visual-grid {
    align-items: stretch;
    overflow: hidden;
}

.home-flow-photo-card {
    position: relative;
    min-height: clamp(9.5rem, 17vw, 13.5rem);
    overflow: hidden;
    background: #10264d;
    border: 1px solid rgba(37, 99, 235, .18);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.home-flow-photo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, .02), rgba(15, 23, 42, .58));
    pointer-events: none;
}

.home-flow-photo-card::after {
    z-index: 2;
    background: rgba(255, 255, 255, .26);
    border-color: rgba(255, 255, 255, .58);
}

.home-flow-photo-img,
.home-sector-card-img {
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
    filter: saturate(1.08) contrast(1.06);
    transform: scale(1.01);
}

.home-flow-photo-label {
    z-index: 3;
    max-width: calc(100% - 1.7rem);
    color: #fff;
    background: rgba(15, 32, 62, .88);
    border: 1px solid rgba(255, 255, 255, .26);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .22);
    text-shadow: none;
}

.home-flow-photo-card:nth-child(4),
.home-flow-photo-card:nth-child(5) {
    min-height: clamp(10.5rem, 18vw, 14.5rem);
}

.public-sector-picker-grid .home-sector-card {
    min-width: 0;
    overflow: hidden;
}

.public-sector-picker-grid .home-sector-card-visual {
    position: relative;
    min-height: 10.5rem;
    overflow: hidden;
    background: #e8f1ff;
    border: 1px solid rgba(29, 78, 216, .18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
}

.public-sector-picker-grid .home-sector-card-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(12, 34, 67, .42));
    pointer-events: none;
}

.public-sector-picker-grid .home-sector-card-visual::after {
    z-index: 2;
    background: rgba(255,255,255,.24);
    border-color: rgba(255,255,255,.62);
}

.public-sector-picker-grid .home-sector-card-body {
    min-width: 0;
}

.public-sector-picker-grid .home-sector-card-body h3,
.public-sector-picker-grid .home-sector-card-kicker,
.public-sector-picker-grid .home-sector-card-text {
    overflow-wrap: anywhere;
}

.price-annual-discount {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: .55rem 0 0;
    padding: .36rem .68rem;
    border-radius: 999px;
    color: #0f2d68;
    background: #e8f1ff;
    border: 1px solid rgba(37, 99, 235, .22);
    font-size: .82rem;
    font-weight: 800;
}

.service-table-band .pricing-grid {
    align-items: end !important;
}

.service-table-band .pricing-card {
    height: 100%;
}

.service-table-band .pricing-card.is-highlight,
.pricing-card.is-highlight {
    transform: translateY(-1.15rem) !important;
    border-color: #1d4ed8 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
    box-shadow: 0 28px 58px rgba(29, 78, 216, .18), 0 0 0 1px rgba(29, 78, 216, .12);
}

.service-table-band .pricing-card.is-highlight::before,
.pricing-card.is-highlight::before {
    content: "Recomendado";
    position: absolute;
    top: -1rem;
    right: 1.25rem;
    padding: .38rem .75rem;
    border-radius: 999px;
    color: #ffffff;
    background: #1d4ed8;
    box-shadow: 0 12px 24px rgba(29, 78, 216, .24);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .service-table-band .pricing-grid {
        align-items: stretch !important;
    }

    .service-table-band .pricing-card.is-highlight,
    .pricing-card.is-highlight {
        transform: none !important;
    }

    .home-flow-photo-card,
    .home-flow-photo-card:nth-child(4),
    .home-flow-photo-card:nth-child(5) {
        min-height: 12rem;
    }
}
/* Invoice start shortcuts guard: clear first actions for non-technical billing users. */
.admin-shell .invoice-start-shortcuts {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr);
    gap: 1rem;
    align-items: stretch;
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(255,255,255,.94));
    box-shadow: 0 16px 36px rgba(15, 23, 42, .06);
}

.admin-shell .invoice-start-shortcuts h3 {
    margin: .2rem 0 0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.admin-shell .invoice-start-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.admin-shell .invoice-start-shortcut-grid a {
    display: grid;
    gap: .4rem;
    min-height: 100%;
    padding: .9rem;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 1rem;
    color: var(--text-color);
    background: rgba(255,255,255,.92);
    text-decoration: none;
}

.admin-shell .invoice-start-shortcut-grid a:hover,
.admin-shell .invoice-start-shortcut-grid a:focus-visible {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .12);
    transform: translateY(-1px);
}

.admin-shell .invoice-start-shortcut-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    color: #174ea6;
    background: #e8f1ff;
    font-weight: 900;
}

.admin-shell .invoice-start-shortcut-grid strong {
    font-size: 1rem;
}

.admin-shell .invoice-start-shortcut-grid small {
    color: var(--text-muted);
    line-height: 1.45;
}

@media (max-width: 820px) {
    .admin-shell .invoice-start-shortcuts,
    .admin-shell .invoice-start-shortcut-grid {
        grid-template-columns: 1fr;
    }
}
/* Delivery note start shortcuts guard: first delivery actions before filters and tables. */
.admin-shell .delivery-note-start-shortcuts {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.65fr);
    gap: 1rem;
    align-items: stretch;
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, .08), rgba(255,255,255,.94));
    box-shadow: 0 16px 36px rgba(15, 23, 42, .06);
}

.admin-shell .delivery-note-start-shortcuts h3 {
    margin: .2rem 0 0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.admin-shell .delivery-note-start-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.admin-shell .delivery-note-start-shortcut-grid a {
    display: grid;
    gap: .4rem;
    min-height: 100%;
    padding: .9rem;
    border: 1px solid rgba(14, 165, 233, .22);
    border-radius: 1rem;
    color: var(--text-color);
    background: rgba(255,255,255,.92);
    text-decoration: none;
}

.admin-shell .delivery-note-start-shortcut-grid a:hover,
.admin-shell .delivery-note-start-shortcut-grid a:focus-visible {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .12);
    transform: translateY(-1px);
}

.admin-shell .delivery-note-start-shortcut-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    color: #174ea6;
    background: #e8f1ff;
    font-weight: 900;
}

.admin-shell .delivery-note-start-shortcut-grid strong {
    font-size: 1rem;
}

.admin-shell .delivery-note-start-shortcut-grid small {
    color: var(--text-muted);
    line-height: 1.45;
}

@media (max-width: 820px) {
    .admin-shell .delivery-note-start-shortcuts,
    .admin-shell .delivery-note-start-shortcut-grid {
        grid-template-columns: 1fr;
    }
}
/* Quote start shortcuts guard: first sales actions before filters and tables. */
.admin-shell .quote-start-shortcuts {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.65fr);
    gap: 1rem;
    align-items: stretch;
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(255,255,255,.94));
    box-shadow: 0 16px 36px rgba(15, 23, 42, .06);
}

.admin-shell .quote-start-shortcuts h3 {
    margin: .2rem 0 0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.admin-shell .quote-start-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.admin-shell .quote-start-shortcut-grid a {
    display: grid;
    gap: .4rem;
    min-height: 100%;
    padding: .9rem;
    border: 1px solid rgba(37, 99, 235, .2);
    border-radius: 1rem;
    color: var(--text-color);
    background: rgba(255,255,255,.92);
    text-decoration: none;
}

.admin-shell .quote-start-shortcut-grid a:hover,
.admin-shell .quote-start-shortcut-grid a:focus-visible {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .12);
    transform: translateY(-1px);
}

.admin-shell .quote-start-shortcut-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    color: #174ea6;
    background: #e8f1ff;
    font-weight: 900;
}

.admin-shell .quote-start-shortcut-grid strong {
    font-size: 1rem;
}

.admin-shell .quote-start-shortcut-grid small {
    color: var(--text-muted);
    line-height: 1.45;
}

@media (max-width: 820px) {
    .admin-shell .quote-start-shortcuts,
    .admin-shell .quote-start-shortcut-grid {
        grid-template-columns: 1fr;
    }
}
/* Public home final visual hierarchy guard: real photos, readable hero and elevated recommended plan. */
.home-hero-product {
  grid-template-columns: minmax(0, 0.98fr) minmax(25rem, 0.86fr) !important;
  align-items: center !important;
  min-height: auto !important;
  padding: clamp(1.1rem, 2vw, 1.75rem) !important;
  background:
    radial-gradient(circle at 86% 12%, rgba(147, 197, 253, 0.34), transparent 22rem),
    linear-gradient(115deg, #ffffff 0%, #f8fbff 48%, #eaf4ff 100%) !important;
}

.home-hero-product .home-hero-copy {
  max-width: 48rem !important;
  padding: clamp(2rem, 4.2vw, 4.3rem) !important;
}

.home-hero-product h1 {
  max-width: 12.7ch !important;
  color: #071936 !important;
  font-size: clamp(3.25rem, 6.1vw, 6.25rem) !important;
  line-height: 0.93 !important;
  letter-spacing: -0.082em !important;
  text-wrap: balance;
}

.home-hero-product .home-hero-copy p:not(.eyebrow) {
  max-width: 32rem !important;
  color: #19345f !important;
  font-size: clamp(1rem, 1.45vw, 1.18rem) !important;
}

.home-hero-product .home-hero-media {
  margin: clamp(0.7rem, 1.4vw, 1.15rem) !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(9.4rem, 1fr) !important;
  gap: clamp(0.75rem, 1.2vw, 1rem) !important;
  padding: clamp(0.9rem, 1.5vw, 1.2rem) !important;
  background: linear-gradient(145deg, #f8fbff 0%, #eaf4ff 100%) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step {
  position: relative !important;
  isolation: isolate !important;
  min-height: clamp(9rem, 13.2vw, 12.8rem) !important;
  overflow: hidden !important;
  border: 1px solid rgba(96, 165, 250, 0.45) !important;
  border-radius: 1.25rem !important;
  background: #dbeafe !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4),
.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) {
  min-height: clamp(10rem, 14vw, 13.2rem) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo,
.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo-img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo {
  z-index: 0 !important;
  background: var(--home-flow-photo) center / cover no-repeat !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo-img {
  z-index: 0 !important;
  object-fit: cover !important;
  opacity: 1 !important;
  filter: saturate(1.05) contrast(1.02) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, rgba(7, 25, 54, 0.02) 0%, rgba(7, 25, 54, 0.22) 48%, rgba(7, 25, 54, 0.76) 100%) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step svg {
  position: absolute !important;
  z-index: 2 !important;
  top: 0.9rem !important;
  left: 0.9rem !important;
  width: 1.4rem !important;
  height: 1.4rem !important;
  color: #ffffff !important;
  filter: drop-shadow(0 6px 14px rgba(7, 25, 54, 0.32));
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step strong {
  position: absolute !important;
  z-index: 2 !important;
  left: 0.75rem !important;
  right: 0.75rem !important;
  bottom: 0.75rem !important;
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
  color: #ffffff !important;
  background: rgba(7, 25, 54, 0.76) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  font-size: clamp(0.9rem, 1.25vw, 1.05rem) !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}

.public-sector-picker-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 1.7vw, 1.35rem) !important;
}

.public-sector-picker-grid .home-sector-card {
  grid-template-columns: minmax(13rem, 38%) minmax(0, 1fr) !important;
  min-height: 15.2rem !important;
  align-items: stretch !important;
  border-radius: 1.35rem !important;
  background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%) !important;
}

.public-sector-picker-grid .home-sector-card-visual {
  min-height: 13rem !important;
  border-radius: 1.1rem !important;
  background: #dbeafe !important;
}

.public-sector-picker-grid .home-sector-card-img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  filter: saturate(1.04) contrast(1.03) !important;
}

.public-sector-picker-grid .home-sector-card-copy {
  justify-content: center !important;
  align-content: center !important;
}

.service-table-band .pricing-grid {
  align-items: end !important;
  padding-top: 1.8rem !important;
}

.service-table-band .pricing-card {
  position: relative !important;
  min-height: 100% !important;
  border-radius: 1.35rem !important;
}

.service-table-band .pricing-card.plan-highlight,
.service-table-band .pricing-card.is-highlight {
  transform: translateY(-1.45rem) !important;
  border: 2px solid #1d4ed8 !important;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%) !important;
  box-shadow: 0 30px 70px rgba(29, 78, 216, 0.2), 0 0 0 6px rgba(147, 197, 253, 0.24) !important;
}

.service-table-band .pricing-card.plan-highlight::before,
.service-table-band .pricing-card.is-highlight::before {
  content: "Recomendado";
  position: absolute;
  top: -1.15rem;
  right: 1.1rem;
  z-index: 2;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.24);
}

.service-table-band .pricing-card .price-annual-discount {
  background: #dbeafe !important;
  border-color: #93c5fd !important;
  color: #0f2d68 !important;
  font-weight: 950 !important;
}

@media (max-width: 1080px) {
  .home-hero-product,
  .public-sector-picker-grid {
    grid-template-columns: 1fr !important;
  }

  .home-hero-product h1 {
    max-width: 13.5ch !important;
  }

  .service-table-band .pricing-grid {
    align-items: stretch !important;
  }

  .service-table-band .pricing-card.plan-highlight,
  .service-table-band .pricing-card.is-highlight {
    transform: none !important;
  }
}

@media (max-width: 700px) {
  .home-hero-product .home-hero-copy {
    padding: 1.25rem !important;
  }

  .home-hero-product h1 {
    font-size: clamp(2.65rem, 14vw, 4.15rem) !important;
  }

  .public-sector-picker-grid .home-sector-card {
    grid-template-columns: 1fr !important;
  }
}

/* Public home hyperreal photo layout guard: real imagery must stay visible, readable and commercially polished. */
.home-hero.home-hero-product {
  grid-template-columns: minmax(0, 1.02fr) minmax(28rem, 0.92fr) !important;
  gap: clamp(1.2rem, 3vw, 3rem) !important;
  align-items: center !important;
  overflow: hidden !important;
}

.home-hero-product .home-hero-copy {
  max-width: 52rem !important;
  padding: clamp(2rem, 4vw, 4.8rem) clamp(1.5rem, 3.2vw, 4rem) !important;
}

.home-hero-product h1 {
  max-width: 14.2ch !important;
  color: #061a38 !important;
  font-size: clamp(3.35rem, 5.35vw, 5.9rem) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.068em !important;
}

.home-hero-product .home-hero-copy p:not(.eyebrow) {
  max-width: 36rem !important;
  color: #16345f !important;
}

.home-hero-product .home-hero-media {
  align-self: stretch !important;
  min-height: clamp(30rem, 43vw, 38rem) !important;
  border: 1px solid rgba(147, 197, 253, 0.58) !important;
  border-radius: 1.8rem !important;
  background: #ffffff !important;
  box-shadow: 0 28px 80px rgba(30, 64, 175, 0.14) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(11.5rem, 1fr) !important;
  padding: clamp(1rem, 1.8vw, 1.45rem) !important;
  gap: clamp(0.85rem, 1.35vw, 1.15rem) !important;
  min-height: calc(100% - 2.4rem) !important;
  background: linear-gradient(145deg, #f8fbff 0%, #eaf4ff 100%) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step {
  grid-column: span 2 !important;
  min-height: 12rem !important;
  border-radius: 1.35rem !important;
  background: #dbeafe !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66), 0 14px 30px rgba(30, 64, 175, 0.12) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4),
.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) {
  grid-column: span 3 !important;
  min-height: 12.6rem !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo,
.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo-img {
  z-index: 0 !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo-img {
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  filter: saturate(1.12) contrast(1.05) brightness(1.02) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo::after {
  background:
    linear-gradient(180deg, rgba(7, 25, 54, 0) 0%, rgba(7, 25, 54, 0.08) 46%, rgba(7, 25, 54, 0.44) 100%) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step strong {
  left: 0.85rem !important;
  right: auto !important;
  bottom: 0.85rem !important;
  max-width: calc(100% - 1.7rem) !important;
  padding: 0.45rem 0.62rem !important;
  border: 1px solid rgba(255, 255, 255, 0.46) !important;
  border-radius: 0.75rem !important;
  background: rgba(8, 31, 67, 0.78) !important;
  color: #ffffff !important;
  font-size: clamp(0.9rem, 1.05vw, 1rem) !important;
  letter-spacing: -0.035em !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32) !important;
}

.home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step svg {
  top: 0.85rem !important;
  left: 0.85rem !important;
  padding: 0.28rem !important;
  border-radius: 0.65rem !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #1d4ed8 !important;
  filter: none !important;
}

.public-sector-picker-grid {
  grid-template-columns: repeat(2, minmax(min(100%, 31rem), 1fr)) !important;
}

.public-sector-picker-grid .home-sector-card {
  grid-template-columns: clamp(12.5rem, 34%, 16.5rem) minmax(0, 1fr) !important;
  min-height: 14.8rem !important;
  padding: 1rem !important;
  overflow: hidden !important;
}

.public-sector-picker-grid .home-sector-card-visual {
  min-height: 12.8rem !important;
  background: #e8f1ff !important;
}

.public-sector-picker-grid .home-sector-card-visual::before {
  z-index: 1 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(7, 25, 54, 0.14) 100%) !important;
  opacity: 1 !important;
}

.public-sector-picker-grid .home-sector-card-visual::after {
  display: none !important;
}

.public-sector-picker-grid .home-sector-card-img {
  z-index: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  filter: saturate(1.12) contrast(1.06) brightness(1.02) !important;
}

.public-sector-picker-grid .home-sector-card-copy {
  min-width: 0 !important;
  gap: 0.52rem !important;
  padding: 0.25rem 0.15rem !important;
  justify-content: center !important;
}

.public-sector-picker-grid .home-sector-card-copy > strong {
  font-size: clamp(1.45rem, 2vw, 1.9rem) !important;
  line-height: 1.02 !important;
}

.public-sector-picker-grid .home-sector-card small {
  max-width: 26rem !important;
  color: #183966 !important;
  font-size: 0.98rem !important;
  line-height: 1.35 !important;
}

.public-sector-picker-grid .home-sector-card em {
  width: fit-content !important;
  max-width: 100% !important;
}

.service-table-band .pricing-grid {
  align-items: stretch !important;
  padding-top: 2.4rem !important;
}

.service-table-band .pricing-card {
  display: grid !important;
  grid-template-rows: auto auto auto auto auto 1fr auto !important;
  height: 100% !important;
}

.service-table-band .pricing-card.plan-highlight,
.service-table-band .pricing-card.is-highlight {
  transform: translateY(-1.65rem) !important;
  border: 2px solid #1d4ed8 !important;
  box-shadow: 0 34px 76px rgba(29, 78, 216, 0.22), 0 0 0 7px rgba(147, 197, 253, 0.26) !important;
}

.service-table-band .pricing-card.plan-highlight .btn,
.service-table-band .pricing-card.is-highlight .btn {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  color: #ffffff !important;
}

.service-table-band .pricing-card .price-annual-discount {
  margin-top: 0 !important;
}

@media (max-width: 1120px) {
  .home-hero.home-hero-product {
    grid-template-columns: 1fr !important;
  }

  .home-hero-product .home-hero-media {
    min-height: auto !important;
  }

  .service-table-band .pricing-card.plan-highlight,
  .service-table-band .pricing-card.is-highlight {
    transform: none !important;
  }
}

@media (max-width: 760px) {
  .home-hero-product h1 {
    max-width: 12.8ch !important;
    font-size: clamp(2.72rem, 13vw, 4.2rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.058em !important;
  }

  .home-hero-product .home-flow-preview.home-flow-gallery {
    grid-template-columns: 1fr !important;
  }

  .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step,
  .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4),
  .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) {
    grid-column: auto !important;
    min-height: 11.5rem !important;
  }

  .public-sector-picker-grid .home-sector-card {
    grid-template-columns: 1fr !important;
  }

  .public-sector-picker-grid .home-sector-card-visual {
    min-height: 13.5rem !important;
  }
}

/* Public home decisive visual fix: visible hyperreal photos, readable hero and aligned pricing. */
.public-shell .home-hero.home-hero-product {
  grid-template-columns: minmax(0, 0.92fr) minmax(31rem, 0.9fr) !important;
  gap: clamp(1.25rem, 3.2vw, 3.4rem) !important;
  padding: clamp(1.25rem, 2.6vw, 2.25rem) !important;
}

.public-shell .home-hero-product .home-hero-copy {
  padding: clamp(2rem, 4vw, 4.6rem) clamp(1.25rem, 3vw, 3.2rem) !important;
}

.public-shell .home-hero-product h1 {
  max-width: 15.5ch !important;
  font-size: clamp(3rem, 4.9vw, 5.25rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.052em !important;
  overflow-wrap: normal !important;
}

.public-shell .home-hero-product .home-hero-copy p:not(.eyebrow) {
  max-width: 34rem !important;
  color: #183966 !important;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem) !important;
}

.public-shell .home-hero-product .home-hero-media {
  min-height: auto !important;
  align-self: center !important;
  border-radius: 1.65rem !important;
  overflow: hidden !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  min-height: 0 !important;
  padding: clamp(0.9rem, 1.6vw, 1.25rem) !important;
  gap: clamp(0.75rem, 1.2vw, 1rem) !important;
  background: linear-gradient(145deg, #f8fbff 0%, #eaf4ff 100%) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step {
  grid-column: span 2 !important;
  min-height: clamp(9.6rem, 12.5vw, 12rem) !important;
  border-radius: 1.15rem !important;
  background: #eef6ff !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4),
.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) {
  grid-column: span 3 !important;
  min-height: clamp(10.4rem, 13.2vw, 12.8rem) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo,
.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo-img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  visibility: visible !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo {
  z-index: 0 !important;
  background: var(--home-flow-photo) center / cover no-repeat !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo-img {
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  filter: saturate(1.12) contrast(1.08) brightness(1.03) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo::after {
  background: linear-gradient(180deg, rgba(6, 26, 56, 0.02) 0%, rgba(6, 26, 56, 0.08) 42%, rgba(6, 26, 56, 0.62) 100%) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step strong {
  left: 0.78rem !important;
  right: 0.78rem !important;
  bottom: 0.78rem !important;
  max-width: calc(100% - 1.56rem) !important;
  padding: 0.48rem 0.62rem !important;
  border-radius: 0.7rem !important;
  background: rgba(7, 25, 54, 0.84) !important;
  color: #ffffff !important;
  font-size: clamp(0.86rem, 1vw, 0.98rem) !important;
  line-height: 1.08 !important;
  white-space: normal !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.public-shell .public-sector-picker-grid {
  grid-template-columns: repeat(2, minmax(min(100%, 27rem), 1fr)) !important;
  gap: clamp(1.1rem, 2vw, 1.55rem) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto 1fr !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 1.45rem !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-visual {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-height: clamp(13.5rem, 20vw, 17rem) !important;
  border-radius: 1.45rem 1.45rem 0 0 !important;
  overflow: hidden !important;
  background: #e8f1ff !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: saturate(1.1) contrast(1.06) brightness(1.02) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-copy {
  display: grid !important;
  align-content: start !important;
  justify-content: stretch !important;
  gap: 0.52rem !important;
  padding: 1.05rem 1.1rem 1.15rem !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-copy > strong {
  font-size: clamp(1.35rem, 1.8vw, 1.8rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
}

.public-shell .public-sector-picker-grid .home-sector-card small {
  display: block !important;
  max-width: none !important;
  color: #183966 !important;
  font-size: 1rem !important;
  line-height: 1.34 !important;
  -webkit-line-clamp: unset !important;
}

.public-shell .public-sector-picker-grid .home-sector-card em {
  width: fit-content !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.public-shell .service-table-band .pricing-grid {
  align-items: start !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  padding-top: 2.4rem !important;
}

.public-shell .service-table-band .pricing-card {
  display: grid !important;
  grid-template-rows: auto auto auto auto auto 1fr auto !important;
  height: 100% !important;
  margin-top: 1.15rem !important;
}

.public-shell .service-table-band .pricing-card.plan-highlight,
.public-shell .service-table-band .pricing-card.is-highlight {
  margin-top: 0 !important;
  transform: translateY(-0.95rem) !important;
  z-index: 2 !important;
  border: 2px solid #1d4ed8 !important;
  box-shadow: 0 34px 80px rgba(29, 78, 216, 0.22), 0 0 0 7px rgba(147, 197, 253, 0.24) !important;
}

.public-shell .service-table-band .pricing-card.plan-highlight::before,
.public-shell .service-table-band .pricing-card.is-highlight::before {
  top: -1.1rem !important;
}

.public-shell .service-table-band .pricing-card .price-annual-discount {
  display: inline-flex !important;
  width: fit-content !important;
  border-radius: 999px !important;
}

@media (max-width: 1120px) {
  .public-shell .home-hero.home-hero-product,
  .public-shell .service-table-band .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .public-shell .service-table-band .pricing-card,
  .public-shell .service-table-band .pricing-card.plan-highlight,
  .public-shell .service-table-band .pricing-card.is-highlight {
    margin-top: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 760px) {
  .public-shell .home-hero-product h1 {
    max-width: 13.2ch !important;
    font-size: clamp(2.55rem, 12.2vw, 3.95rem) !important;
    letter-spacing: -0.045em !important;
  }

  .public-shell .home-hero-product .home-flow-preview.home-flow-gallery,
  .public-shell .public-sector-picker-grid {
    grid-template-columns: 1fr !important;
  }

  .public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step,
  .public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4),
  .public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) {
    grid-column: auto !important;
    min-height: 12rem !important;
  }

  .public-shell .public-sector-picker-grid .home-sector-card-visual {
    min-height: 13rem !important;
  }
}

/* Public home hyperreal photo finish guard: local real photos, simpler hero, clean trade cards and clear annual discount. */
.public-shell .home-hero.home-hero-product {
  grid-template-columns: minmax(0, 0.98fr) minmax(28rem, 0.82fr) !important;
  align-items: center !important;
  min-height: auto !important;
  gap: clamp(1.25rem, 2.6vw, 2.6rem) !important;
  padding: clamp(1.2rem, 2.2vw, 2rem) !important;
}

.public-shell .home-hero-product .home-hero-copy {
  padding: clamp(2.15rem, 4vw, 4.25rem) clamp(1.2rem, 2.7vw, 2.8rem) !important;
}

.public-shell .home-hero-product h1 {
  max-width: 16.2ch !important;
  font-size: clamp(2.85rem, 4.45vw, 4.75rem) !important;
  line-height: 1.03 !important;
  letter-spacing: -0.048em !important;
  text-wrap: balance !important;
}

.public-shell .home-hero-product .home-hero-media {
  min-height: auto !important;
  margin: 0 !important;
  align-self: center !important;
  transform: none !important;
  border: 1px solid rgba(147, 197, 253, 0.72) !important;
  border-radius: 1.45rem !important;
  background: #ffffff !important;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.13) !important;
}

.public-shell .home-hero-product .home-hero-media::after,
.public-shell .home-hero-product .screen-grid {
  display: none !important;
}

.public-shell .home-hero-product .screen-bar {
  background: #ffffff !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  padding: clamp(0.8rem, 1.2vw, 1.05rem) !important;
  gap: clamp(0.65rem, 1vw, 0.9rem) !important;
  background: linear-gradient(145deg, #f8fbff 0%, #eef6ff 100%) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step {
  grid-column: span 2 !important;
  min-height: clamp(8.8rem, 10.7vw, 10.9rem) !important;
  overflow: hidden !important;
  border: 1px solid rgba(147, 197, 253, 0.72) !important;
  border-radius: 1rem !important;
  background: #eaf3ff !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4),
.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) {
  grid-column: span 3 !important;
  min-height: clamp(9.4rem, 11.5vw, 11.8rem) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo,
.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo-img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  visibility: visible !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo {
  z-index: 0 !important;
  background: var(--home-flow-photo) center / cover no-repeat !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo-img {
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  filter: saturate(1.08) contrast(1.05) brightness(1.03) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo::after {
  background: linear-gradient(180deg, rgba(5, 18, 40, 0) 0%, rgba(5, 18, 40, 0.08) 44%, rgba(5, 18, 40, 0.58) 100%) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step svg {
  display: none !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step strong {
  left: 0.72rem !important;
  right: 0.72rem !important;
  bottom: 0.72rem !important;
  width: fit-content !important;
  max-width: calc(100% - 1.44rem) !important;
  padding: 0.42rem 0.58rem !important;
  border-radius: 0.68rem !important;
  background: rgba(11, 31, 70, 0.86) !important;
  color: #ffffff !important;
  font-size: clamp(0.82rem, 0.92vw, 0.94rem) !important;
  line-height: 1.08 !important;
  white-space: normal !important;
}

.public-shell .public-sector-picker-grid {
  grid-template-columns: repeat(2, minmax(min(100%, 28rem), 1fr)) !important;
  gap: clamp(1rem, 1.8vw, 1.45rem) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto 1fr !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-color: rgba(147, 197, 253, 0.72) !important;
  border-radius: 1.35rem !important;
  background: #ffffff !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-visual {
  min-height: clamp(14rem, 20vw, 17.5rem) !important;
  border-radius: 1.35rem 1.35rem 0 0 !important;
  background: #dbeafe !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: saturate(1.08) contrast(1.04) brightness(1.02) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-visual::before {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.1) 100%) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-copy {
  padding: 1rem 1.1rem 1.15rem !important;
}

.public-shell .service-table-band .pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start !important;
  padding-top: 2.6rem !important;
}

.public-shell .service-table-band .pricing-card {
  grid-template-rows: auto auto auto auto auto 1fr auto !important;
  height: 100% !important;
  margin-top: 1.2rem !important;
}

.public-shell .service-table-band .pricing-card.plan-highlight,
.public-shell .service-table-band .pricing-card.is-highlight {
  margin-top: 0 !important;
  transform: translateY(-1.1rem) !important;
  border: 2px solid #1d4ed8 !important;
  box-shadow: 0 32px 76px rgba(29, 78, 216, 0.22), 0 0 0 7px rgba(147, 197, 253, 0.25) !important;
}

.public-shell .service-table-band .pricing-card .price-annual-discount {
  display: inline-flex !important;
  width: fit-content !important;
  align-items: center !important;
  border: 1px solid rgba(29, 78, 216, 0.18) !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #1e3a8a !important;
  font-weight: 950 !important;
  padding: 0.32rem 0.62rem !important;
}

@media (max-width: 1120px) {
  .public-shell .home-hero.home-hero-product,
  .public-shell .service-table-band .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .public-shell .service-table-band .pricing-card,
  .public-shell .service-table-band .pricing-card.plan-highlight,
  .public-shell .service-table-band .pricing-card.is-highlight {
    margin-top: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 760px) {
  .public-shell .home-hero-product h1 {
    max-width: 14ch !important;
    font-size: clamp(2.35rem, 11vw, 3.65rem) !important;
    letter-spacing: -0.04em !important;
  }

  .public-shell .home-hero-product .home-flow-preview.home-flow-gallery,
  .public-shell .public-sector-picker-grid {
    grid-template-columns: 1fr !important;
  }

  .public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step,
  .public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4),
  .public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) {
    grid-column: auto !important;
    min-height: 11.5rem !important;
  }

  .public-shell .public-sector-picker-grid .home-sector-card-visual {
    min-height: 12.5rem !important;
  }
}

/* Public home composition guard 2026-06-24:
   keeps the hero, trade cards and pricing readable with real photos visible. */
.public-shell .section-heading,
.public-shell .hero-copy {
  width: 100% !important;
  max-width: none !important;
}

.public-shell .section-heading :is(p),
.public-shell .hero-copy p,
.public-shell .home-band > div > p,
.public-shell .card > p {
  max-width: 76ch !important;
}

.public-shell .home-hero.home-hero-product {
  grid-template-columns: minmax(0, 0.92fr) minmax(31rem, 0.9fr) !important;
  background:
    radial-gradient(circle at 86% 12%, rgba(147, 197, 253, 0.45), transparent 18rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 48%, #eaf4ff 100%) !important;
  color: #0f172a !important;
}

.public-shell .home-hero-product .home-hero-copy {
  padding: clamp(2.2rem, 4.4vw, 4.6rem) clamp(1.6rem, 3vw, 3.2rem) !important;
}

.public-shell .home-hero-product h1 {
  max-width: 17ch !important;
  color: #07111f !important;
  font-size: clamp(2.75rem, 4.15vw, 4.55rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.052em !important;
  text-wrap: balance !important;
}

.public-shell .home-hero-product .home-hero-copy p:not(.eyebrow) {
  max-width: 58ch !important;
  color: #334155 !important;
}

.public-shell .home-hero-product .home-hero-media {
  align-self: stretch !important;
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-content: stretch !important;
  min-height: clamp(25rem, 35vw, 34rem) !important;
  padding: clamp(0.85rem, 1.25vw, 1.15rem) !important;
  gap: clamp(0.7rem, 1vw, 0.95rem) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step {
  position: relative !important;
  isolation: isolate !important;
  display: block !important;
  grid-column: span 2 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(147, 197, 253, 0.7) !important;
  border-radius: 1.2rem !important;
  background: #dbeafe !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4),
.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) {
  grid-column: span 3 !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo,
.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo-img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo {
  z-index: 0 !important;
  background: var(--home-flow-photo) center / cover no-repeat !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.02) 0%, rgba(7, 17, 31, 0.12) 45%, rgba(7, 17, 31, 0.68) 100%) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-photo-img {
  z-index: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: saturate(1.08) contrast(1.06) brightness(1.03) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step svg {
  display: none !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step strong {
  position: absolute !important;
  z-index: 2 !important;
  left: 0.72rem !important;
  right: auto !important;
  bottom: 0.72rem !important;
  display: inline-flex !important;
  max-width: calc(100% - 1.44rem) !important;
  padding: 0.44rem 0.62rem !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 0.74rem !important;
  background: rgba(10, 31, 68, 0.88) !important;
  color: #ffffff !important;
  font-size: clamp(0.9rem, 1vw, 1.05rem) !important;
  line-height: 1.08 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  white-space: normal !important;
}

.public-shell .public-sector-picker {
  grid-template-columns: 1fr !important;
  gap: clamp(1.15rem, 2vw, 1.8rem) !important;
}

.public-shell .public-sector-picker h2 {
  max-width: none !important;
}

.public-shell .public-sector-picker-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 1.8vw, 1.5rem) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card {
  display: grid !important;
  grid-template-columns: minmax(13rem, 0.48fr) minmax(0, 1fr) !important;
  min-height: clamp(13.5rem, 17vw, 17rem) !important;
  overflow: hidden !important;
  padding: 0 !important;
  border-color: rgba(147, 197, 253, 0.72) !important;
  border-radius: 1.35rem !important;
  background: #ffffff !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-visual {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-height: 100% !important;
  overflow: hidden !important;
  border-radius: 1.35rem 0 0 1.35rem !important;
  background: #dbeafe !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-visual::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.14)) !important;
  pointer-events: none !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: saturate(1.08) contrast(1.05) brightness(1.02) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-copy {
  display: grid !important;
  align-content: center !important;
  min-width: 0 !important;
  padding: clamp(1rem, 1.7vw, 1.35rem) !important;
  gap: 0.5rem !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-copy > strong {
  overflow-wrap: anywhere !important;
  font-size: clamp(1.35rem, 1.55vw, 1.75rem) !important;
  line-height: 1.04 !important;
}

.public-shell .public-sector-picker-grid .home-sector-card small {
  display: block !important;
  max-width: 34ch !important;
  color: #183966 !important;
  font-size: clamp(0.96rem, 1vw, 1.05rem) !important;
  line-height: 1.32 !important;
}

.public-shell .public-sector-picker-grid .home-sector-card em {
  width: fit-content !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

.public-shell .service-table-band .pricing-grid {
  align-items: start !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 1.6vw, 1.35rem) !important;
  padding-top: 2.8rem !important;
}

.public-shell .service-table-band .pricing-card {
  display: grid !important;
  grid-template-rows: auto auto auto auto auto 1fr auto !important;
  min-height: 100% !important;
  margin-top: 1.45rem !important;
  border-radius: 1.25rem !important;
}

.public-shell .service-table-band .pricing-card.plan-highlight,
.public-shell .service-table-band .pricing-card.is-highlight {
  margin-top: 0 !important;
  transform: translateY(-1.25rem) !important;
  border: 2px solid #1d4ed8 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%) !important;
  box-shadow: 0 34px 86px rgba(29, 78, 216, 0.24), 0 0 0 8px rgba(147, 197, 253, 0.24) !important;
}

.public-shell .service-table-band .pricing-card.plan-highlight::before,
.public-shell .service-table-band .pricing-card.is-highlight::before {
  top: -1.35rem !important;
  right: 1rem !important;
  background: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.24) !important;
}

.public-shell .service-table-band .pricing-card .price-annual-discount {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  align-items: center !important;
  border: 1px solid rgba(29, 78, 216, 0.2) !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #1e3a8a !important;
  font-weight: 950 !important;
  padding: 0.32rem 0.7rem !important;
}

@media (max-width: 1120px) {
  .public-shell .home-hero.home-hero-product,
  .public-shell .service-table-band .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .public-shell .service-table-band .pricing-card,
  .public-shell .service-table-band .pricing-card.plan-highlight,
  .public-shell .service-table-band .pricing-card.is-highlight {
    margin-top: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 780px) {
  .public-shell .home-hero-product h1 {
    max-width: 14ch !important;
    font-size: clamp(2.35rem, 11vw, 3.7rem) !important;
  }

  .public-shell .home-hero-product .home-flow-preview.home-flow-gallery,
  .public-shell .public-sector-picker-grid {
    grid-template-columns: 1fr !important;
  }

  .public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step,
  .public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(4),
  .public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step:nth-child(5) {
    grid-column: auto !important;
    min-height: 11.5rem !important;
  }

  .public-shell .public-sector-picker-grid .home-sector-card {
    grid-template-columns: 1fr !important;
  }

  .public-shell .public-sector-picker-grid .home-sector-card-visual {
    min-height: 14rem !important;
    border-radius: 1.35rem 1.35rem 0 0 !important;
  }
}

/* Google Analytics consent banner: optional analytics must stay explicit and unobtrusive. */
.cookie-consent-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
}

.cookie-consent-banner[hidden] {
  display: none !important;
}

.cookie-consent-copy strong {
  display: block;
  color: #0f172a;
  font-weight: 950;
  margin-bottom: 0.25rem;
}

.cookie-consent-copy p {
  margin: 0;
  max-width: 58rem;
  color: #475569;
  line-height: 1.55;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

@media (max-width: 760px) {
  .cookie-consent-banner {
    grid-template-columns: 1fr;
    inset: auto 0.75rem 5rem 0.75rem;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions > * {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* Cookie preference center */
.cookie-preferences-panel {
  border-color: rgba(37, 99, 235, .22);
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.cookie-preferences-panel h2 {
  max-width: none;
}

.cookie-preference-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.2rem;
}

.cookie-preference-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: flex-start;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  padding: 1rem;
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.cookie-preference-option input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: .15rem;
  accent-color: #1d4ed8;
}

.cookie-preference-option strong,
.cookie-preference-option small {
  display: block;
}

.cookie-preference-option small {
  color: #475569;
  margin-top: .25rem;
}

.cookie-preference-option.is-essential {
  background: #f8fafc;
}

.cookie-preference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.cookie-preference-status {
  min-height: 1.5rem;
  color: #1e3a8a;
  font-weight: 800;
  margin-top: .75rem;
}

@media (max-width: 900px) {
  .cookie-preference-options {
    grid-template-columns: 1fr;
  }
}

/* Public SaaS restyle 2026-06-26: calm blue identity, collected mega-menu and cleaner commercial cards. */
.public-shell {
  --brand: #1f5fbf;
  --brand-2: #174ea6;
  --brand-dark: #0b2d63;
  --sales-blue-50: #f3f8ff;
  --sales-blue-100: #e5f0ff;
  --sales-blue-200: #c6dcff;
  --sales-blue-700: #174ea6;
  --sales-blue-900: #08204a;
  --paper: #f6f9ff;
  --panel: #ffffff;
  --text: #081a33;
  --muted: #52647d;
  --line: #d9e5f7;
  --line-strong: #bfd3f2;
  --surface: #eef5ff;
  background:
    radial-gradient(circle at 18% 0%, rgba(99, 167, 255, 0.22), transparent 30rem),
    radial-gradient(circle at 92% 10%, rgba(31, 95, 191, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 48%, #eef5ff 100%) !important;
}

.public-shell .container,
.public-nav,
.public-footer {
  width: min(1440px, 94vw) !important;
}

.public-header {
  z-index: 70 !important;
  overflow: visible !important;
  border-bottom: 1px solid rgba(15, 55, 110, 0.12) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 12px 38px rgba(8, 32, 74, 0.08) !important;
  backdrop-filter: blur(18px) !important;
}

.public-nav {
  position: relative !important;
  min-height: 4.25rem !important;
  padding: 0.55rem 0 !important;
  gap: clamp(0.7rem, 1.4vw, 1.25rem) !important;
}

.public-header .brand {
  color: var(--sales-blue-900) !important;
  gap: 0.7rem !important;
  min-width: max-content !important;
}

.public-header .brand span {
  font-size: 1.05rem !important;
  font-weight: 950 !important;
}

.public-header .logo-inline {
  width: 38px !important;
  border-radius: 0.85rem !important;
  box-shadow: 0 10px 24px rgba(31, 95, 191, 0.12) !important;
}

.public-menu-toggle {
  display: none !important;
}

.public-nav nav.public-menu,
.public-nav nav.public-menu[hidden] {
  display: flex !important;
  flex: 1 1 auto !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.public-nav .public-menu-groups {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.35rem !important;
  width: 100% !important;
  min-width: 0 !important;
}

.public-menu-group,
.public-menu-action,
.public-menu-locale {
  display: flex !important;
  align-items: center !important;
}

.public-menu-group {
  position: static !important;
}

.public-menu-column {
  display: contents !important;
}

.public-menu-group-title,
.public-nav nav.public-menu a.btn-small,
.public-menu-locale .locale-switch {
  min-height: 2.75rem !important;
  border: 1px solid rgba(31, 95, 191, 0.12) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #173b70 !important;
  box-shadow: 0 8px 22px rgba(8, 32, 74, 0.06) !important;
}

.public-menu-group-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.52rem !important;
  width: auto !important;
  padding: 0.42rem 0.72rem 0.42rem 0.48rem !important;
  cursor: pointer !important;
}

.public-menu-group-title:hover,
.public-menu-group-title:focus-visible,
.public-menu-group.is-open .public-menu-group-title,
.public-nav nav.public-menu a.btn-small:hover,
.public-nav nav.public-menu a.btn-small:focus-visible {
  border-color: rgba(31, 95, 191, 0.28) !important;
  background: #eef5ff !important;
  color: var(--sales-blue-900) !important;
  outline: none !important;
}

.public-menu-group-icon,
.public-menu-icon {
  display: inline-grid !important;
  flex: 0 0 auto !important;
  place-items: center !important;
  color: var(--sales-blue-700) !important;
  background: #eaf2ff !important;
}

.public-menu-group-icon {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 999px !important;
}

.public-menu-icon {
  width: 2.35rem !important;
  height: 2.35rem !important;
  border-radius: 0.82rem !important;
}

.public-menu-group-icon svg,
.public-menu-icon svg {
  width: 1.12rem !important;
  height: 1.12rem !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.public-menu-group-copy {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

.public-menu-group-copy strong {
  color: inherit !important;
  font-size: 0.88rem !important;
  font-weight: 950 !important;
  letter-spacing: -0.01em !important;
}

.public-menu-group-copy span {
  display: none !important;
}

.public-menu-submenu {
  position: absolute !important;
  left: 50% !important;
  top: calc(100% + 0.65rem) !important;
  z-index: 75 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.7rem !important;
  width: min(980px, calc(100vw - 2rem)) !important;
  margin: 0 !important;
  padding: 0.85rem !important;
  border: 1px solid rgba(31, 95, 191, 0.15) !important;
  border-radius: 1.45rem !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 30px 80px rgba(8, 32, 74, 0.16) !important;
  transform: translateX(-50%) !important;
  backdrop-filter: blur(16px) !important;
}

.public-menu-submenu[hidden] {
  display: none !important;
}

.public-nav nav.public-menu .public-menu-link {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 0.7rem !important;
  min-height: 4.4rem !important;
  width: 100% !important;
  padding: 0.75rem !important;
  border: 1px solid transparent !important;
  border-radius: 1rem !important;
  background: transparent !important;
  color: #173b70 !important;
  text-decoration: none !important;
}

.public-nav nav.public-menu .public-menu-link:hover,
.public-nav nav.public-menu .public-menu-link:focus-visible,
.public-nav nav.public-menu .public-menu-link.active {
  border-color: rgba(31, 95, 191, 0.14) !important;
  background: linear-gradient(135deg, #f8fbff 0%, #eaf2ff 100%) !important;
  outline: none !important;
}

.public-menu-copy {
  display: grid !important;
  gap: 0.12rem !important;
  min-width: 0 !important;
}

.public-menu-copy strong {
  color: var(--sales-blue-900) !important;
  font-size: 0.94rem !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
}

.public-menu-copy small {
  color: #52647d !important;
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
}

.public-menu-action {
  margin-left: 0.2rem !important;
}

.public-nav nav.public-menu a.btn-small {
  display: inline-grid !important;
  grid-template-columns: auto auto !important;
  align-items: center !important;
  width: auto !important;
  padding: 0.3rem 0.7rem 0.3rem 0.38rem !important;
  color: var(--sales-blue-900) !important;
}

.public-nav nav.public-menu a.btn-small .public-menu-copy small {
  display: none !important;
}

.public-menu-locale {
  margin-left: 0.25rem !important;
}

.public-menu-locale .locale-switch {
  padding: 0.2rem !important;
  background: #f8fbff !important;
}

.public-menu-locale .locale-switch a {
  color: #173b70 !important;
  min-height: 2.25rem !important;
}

.public-menu-locale .locale-switch a.is-active {
  color: #ffffff !important;
  background: var(--brand) !important;
}

.public-shell .home-hero.home-hero-product,
.public-shell .hero-home,
.public-shell .home-band,
.public-shell .home-cta,
.public-shell .public-sector-picker {
  border: 1px solid rgba(31, 95, 191, 0.14) !important;
  border-radius: clamp(1.3rem, 2.2vw, 2rem) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 24px 70px rgba(8, 32, 74, 0.08) !important;
}

.public-shell .home-hero.home-hero-product {
  min-height: auto !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(28rem, 0.82fr) !important;
  align-items: center !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 86% 12%, rgba(99, 167, 255, 0.28), transparent 19rem),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 52%, #eaf2ff 100%) !important;
}

.public-shell .home-hero-product .home-hero-copy {
  padding: clamp(2rem, 4vw, 4.2rem) !important;
}

.public-shell .home-hero-product h1 {
  max-width: 15ch !important;
  color: #071a36 !important;
  font-size: clamp(2.55rem, 4.6vw, 5.1rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.065em !important;
}

.public-shell .home-hero-product .home-hero-copy p:not(.eyebrow) {
  max-width: 50ch !important;
  color: #30455f !important;
  font-size: clamp(1rem, 1.1vw, 1.12rem) !important;
}

.public-shell .eyebrow {
  color: var(--brand) !important;
  font-weight: 950 !important;
  letter-spacing: 0.11em !important;
}

.public-shell .btn,
.public-shell button {
  border-radius: 999px !important;
  background: linear-gradient(135deg, #1f5fbf 0%, #2f74df 100%) !important;
  box-shadow: 0 14px 30px rgba(31, 95, 191, 0.18) !important;
}

.public-shell .btn:hover,
.public-shell button:hover,
.public-shell .btn:focus-visible,
.public-shell button:focus-visible {
  background: linear-gradient(135deg, #174ea6 0%, #1f5fbf 100%) !important;
}

.public-shell .btn-outline {
  border: 1px solid rgba(31, 95, 191, 0.18) !important;
  background: #ffffff !important;
  color: var(--sales-blue-900) !important;
  box-shadow: 0 12px 26px rgba(8, 32, 74, 0.06) !important;
}

.public-shell .home-hero-proof span,
.public-shell .home-hero-trust span,
.public-shell .sector-filter-chips a,
.public-shell .sector-card-chips li {
  border-color: rgba(31, 95, 191, 0.18) !important;
  background: #f3f8ff !important;
  color: #174ea6 !important;
}

.public-shell .home-hero-product .home-hero-media {
  margin: clamp(1rem, 2vw, 1.5rem) !important;
  border: 1px solid rgba(31, 95, 191, 0.13) !important;
  border-radius: 1.65rem !important;
  box-shadow: 0 26px 70px rgba(8, 32, 74, 0.12) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery {
  gap: 0.85rem !important;
  min-height: clamp(23rem, 31vw, 30rem) !important;
  background: linear-gradient(145deg, #f8fbff 0%, #eef5ff 100%) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step {
  border-color: rgba(31, 95, 191, 0.18) !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 14px 34px rgba(8, 32, 74, 0.1) !important;
}

.public-shell .home-hero-product .home-flow-preview.home-flow-gallery .home-flow-step strong {
  background: rgba(8, 32, 74, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  border-radius: 999px !important;
}

.public-shell .public-product-modules-grid,
.public-shell .service-ledger,
.public-shell .ops-lanes,
.public-shell .sector-grid,
.public-shell .pricing-grid {
  gap: clamp(1rem, 1.6vw, 1.35rem) !important;
}

.public-shell .public-product-module-card,
.public-shell .card,
.public-shell .sector-card,
.public-shell .pricing-card {
  border-color: rgba(31, 95, 191, 0.13) !important;
  border-radius: 1.35rem !important;
  background: #ffffff !important;
  box-shadow: 0 16px 42px rgba(8, 32, 74, 0.07) !important;
}

.public-shell .public-product-module-icon,
.public-shell .professionals-flow .grid-three .card strong,
.public-shell .sector-instant-grid article span {
  color: #174ea6 !important;
  background: #eaf2ff !important;
}

.public-shell .public-sector-picker {
  display: grid !important;
  grid-template-columns: 1fr !important;
  padding: clamp(1.2rem, 2.4vw, 2rem) !important;
}

.public-shell .public-sector-picker-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card {
  border-color: rgba(31, 95, 191, 0.14) !important;
  border-radius: 1.5rem !important;
  background: #ffffff !important;
  box-shadow: 0 18px 48px rgba(8, 32, 74, 0.08) !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease !important;
}

.public-shell .public-sector-picker-grid .home-sector-card:hover,
.public-shell .public-sector-picker-grid .home-sector-card:focus-visible,
.public-shell .sector-card:hover,
.public-shell .sector-card:focus-within {
  border-color: rgba(31, 95, 191, 0.34) !important;
  box-shadow: 0 28px 72px rgba(8, 32, 74, 0.13) !important;
  transform: translateY(-2px) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-copy > strong,
.public-shell .sector-card h3,
.public-shell .pricing-card h3 {
  color: #071a36 !important;
  letter-spacing: -0.035em !important;
}

.public-shell .public-sector-picker-grid .home-sector-card small,
.public-shell .sector-card p,
.public-shell .pricing-card p,
.public-shell .public-section p {
  color: #415776 !important;
}

.public-shell .home-sector-card-kicker,
.public-shell .sector-card .eyebrow {
  color: var(--brand) !important;
}

.public-shell .home-sector-card-cta,
.public-shell .sector-card-demo-link {
  color: var(--brand) !important;
  font-weight: 950 !important;
}

.public-shell .service-table-band .pricing-card.plan-highlight,
.public-shell .service-table-band .pricing-card.is-highlight {
  border-color: #1f5fbf !important;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%) !important;
  box-shadow: 0 34px 86px rgba(31, 95, 191, 0.18), 0 0 0 8px rgba(198, 220, 255, 0.34) !important;
}

.public-shell .price-tag {
  color: var(--brand-dark) !important;
}

.public-shell .price-annual-discount {
  background: #eaf2ff !important;
  color: #174ea6 !important;
}

.public-shell .home-cta {
  background: linear-gradient(135deg, #ffffff 0%, #eaf2ff 100%) !important;
}

@media (max-width: 1120px) {
  .public-shell .home-hero.home-hero-product {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .public-nav .public-menu-groups {
    gap: 0.22rem !important;
  }

  .public-menu-group-copy strong {
    font-size: 0.82rem !important;
  }
}

@media (max-width: 760px) {
  .public-nav {
    flex-direction: row !important;
    align-items: center !important;
  }

  .public-menu-toggle {
    display: inline-flex !important;
    margin-left: auto !important;
    border-color: rgba(31, 95, 191, 0.16) !important;
    background: #ffffff !important;
    color: var(--sales-blue-900) !important;
  }

  .public-menu-toggle[hidden] {
    display: none !important;
  }

  .public-menu-toggle[aria-expanded="true"] {
    background: #eaf2ff !important;
    border-color: rgba(31, 95, 191, 0.32) !important;
  }

  .public-nav nav.public-menu,
  .public-nav nav.public-menu[hidden],
  .public-nav nav.public-menu:not(.is-open) {
    display: none !important;
  }

  .public-nav nav.public-menu.is-open {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 0.55rem) !important;
    display: block !important;
    width: 100% !important;
    max-height: calc(100vh - 6.5rem) !important;
    overflow: auto !important;
    padding: 0.75rem !important;
    border: 1px solid rgba(31, 95, 191, 0.16) !important;
    border-radius: 1.35rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 26px 80px rgba(8, 32, 74, 0.18) !important;
  }

  .public-nav .public-menu-groups {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  .public-menu-group,
  .public-menu-action,
  .public-menu-locale {
    display: block !important;
  }

  .public-menu-group-title,
  .public-nav nav.public-menu a.btn-small,
  .public-menu-locale .locale-switch {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .public-menu-group-copy span {
    display: block !important;
    color: #52647d !important;
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
  }

  .public-menu-submenu {
    position: static !important;
    width: 100% !important;
    grid-template-columns: 1fr !important;
    margin-top: 0.45rem !important;
    padding: 0.45rem !important;
    border-radius: 1rem !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .public-shell .home-hero-product h1 {
    max-width: 12ch !important;
    font-size: clamp(2.45rem, 13vw, 4.1rem) !important;
  }

  .public-shell .home-hero-product .home-hero-copy {
    padding: clamp(1.25rem, 6vw, 2rem) !important;
  }

  .public-shell .home-hero-product .home-hero-media {
    margin: 0 1rem 1rem !important;
  }

  .public-shell .public-sector-picker-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Public SaaS reference polish 2026-06-26: white product header, blue icon menu and calmer cards. */
.public-shell {
  --public-ink: #081b3d;
  --public-muted: #4b6285;
  --public-blue-950: #071a3f;
  --public-blue-900: #0b2a66;
  --public-blue-800: #1446a0;
  --public-blue-700: #1f5fd2;
  --public-blue-600: #2563eb;
  --public-blue-100: #dbeafe;
  --public-blue-050: #eff6ff;
  --public-line: rgba(117, 160, 230, 0.32);
  --public-shadow-soft: 0 20px 58px rgba(15, 43, 91, 0.12);
  --public-shadow-menu: 0 28px 80px rgba(8, 27, 61, 0.16);
  background:
    radial-gradient(circle at 12% -8%, rgba(147, 197, 253, 0.34), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(191, 219, 254, 0.36), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 38%, #f4f8ff 100%) !important;
  color: var(--public-ink);
}

.public-shell .container {
  width: min(1240px, calc(100vw - 2rem));
}

.public-header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(191, 219, 254, 0.8) !important;
  box-shadow: 0 12px 36px rgba(8, 27, 61, 0.06) !important;
  overflow: visible !important;
  position: sticky;
  top: 0;
  z-index: 80;
}

.public-nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin: 0 auto;
  max-width: 1240px;
  min-height: 4.05rem;
  padding: 0.55rem 1rem;
  position: relative;
}

.public-nav .brand {
  align-items: center;
  color: var(--public-ink) !important;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 950;
  gap: 0.62rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.public-nav .brand .logo-inline {
  filter: drop-shadow(0 8px 14px rgba(37, 99, 235, 0.14));
  height: 2.15rem;
  width: 2.15rem;
}

.public-menu-toggle {
  background: #ffffff !important;
  border: 1px solid rgba(147, 197, 253, 0.92) !important;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.1) !important;
  color: var(--public-blue-900) !important;
}

.public-menu-toggle[aria-expanded="true"] {
  background: var(--public-blue-050) !important;
  border-color: rgba(37, 99, 235, 0.46) !important;
  color: var(--public-blue-800) !important;
}

.public-menu-group-title,
.public-menu-group-toggle {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.public-menu-group-title:focus-visible,
.public-menu-link:focus-visible,
.public-menu-toggle:focus-visible,
.public-locale-switch a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32) !important;
  outline-offset: 0.18rem;
}

.public-menu-group-icon,
.public-menu-icon {
  align-items: center;
  background: linear-gradient(135deg, #f8fbff, #dbeafe) !important;
  border: 1px solid rgba(147, 197, 253, 0.72) !important;
  border-radius: 0.95rem !important;
  color: var(--public-blue-700) !important;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.public-menu-group-icon svg,
.public-menu-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.public-menu-copy strong,
.public-menu-group-copy strong {
  color: var(--public-ink) !important;
}

.public-menu-copy small,
.public-menu-group-copy span {
  color: var(--public-muted) !important;
}

.public-menu-action .btn-small.public-menu-link {
  background: linear-gradient(135deg, var(--public-blue-800), var(--public-blue-600)) !important;
  border: 1px solid rgba(37, 99, 235, 0.34) !important;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22) !important;
  color: #ffffff !important;
}

.public-menu-action .btn-small.public-menu-link .public-menu-copy strong,
.public-menu-action .btn-small.public-menu-link .public-menu-copy small {
  color: #ffffff !important;
}

.public-menu-action .btn-small.public-menu-link .public-menu-icon {
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--public-blue-800) !important;
}

.public-shell .hero-home,
.public-shell .home-hero,
.public-shell .public-section,
.public-shell .home-band {
  border-color: var(--public-line) !important;
}

.public-shell .card,
.public-shell .home-band,
.public-shell .public-section,
.public-shell .pricing-card,
.public-shell .sector-card,
.public-shell .professional-card,
.public-shell .trade-card {
  box-shadow: 0 16px 48px rgba(8, 27, 61, 0.07);
}

.public-shell .eyebrow {
  color: var(--public-blue-700) !important;
}

.public-shell .btn,
.public-shell .btn-small,
.public-shell button[type="submit"] {
  background-color: var(--public-blue-700);
  border-color: var(--public-blue-700);
}

.public-shell .btn:hover,
.public-shell .btn-small:hover,
.public-shell button[type="submit"]:hover {
  background-color: var(--public-blue-800);
  border-color: var(--public-blue-800);
}

.public-shell .btn-outline,
.public-shell a.btn-outline {
  background: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.28) !important;
  color: var(--public-blue-800) !important;
}

.public-shell .btn-outline:hover,
.public-shell a.btn-outline:hover {
  background: var(--public-blue-050) !important;
  border-color: rgba(37, 99, 235, 0.48) !important;
  color: var(--public-blue-900) !important;
}

@media (min-width: 761px) {
  .public-header .public-menu-toggle {
    display: none !important;
  }

  .public-header nav.public-menu,
  .public-header nav.public-menu[hidden] {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    position: static !important;
  }

  .public-header .public-menu-groups {
    align-items: center !important;
    display: flex !important;
    gap: 0.42rem !important;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .public-menu-group,
  .public-menu-action,
  .public-menu-locale {
    position: relative;
  }

  .public-menu-column {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .public-menu-column::before {
    display: none !important;
  }

  .public-menu-group-title {
    align-items: center !important;
    border: 1px solid rgba(147, 197, 253, 0.58) !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    gap: 0.5rem !important;
    min-height: 2.72rem;
    padding: 0.38rem 0.72rem !important;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    white-space: nowrap;
  }

  .public-menu-group-title:hover,
  .public-menu-group-title[aria-expanded="true"] {
    background: var(--public-blue-050) !important;
    border-color: rgba(37, 99, 235, 0.42) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
  }

  .public-menu-group-title .public-menu-group-icon {
    height: 1.92rem !important;
    width: 1.92rem !important;
  }

  .public-menu-group-title .public-menu-group-icon svg {
    height: 1rem;
    width: 1rem;
  }

  .public-menu-group-copy {
    display: block !important;
  }

  .public-menu-group-copy strong {
    display: block;
    font-size: 0.9rem !important;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none !important;
  }

  .public-menu-group-copy span {
    display: none !important;
  }

  .public-menu-submenu {
    background:
      radial-gradient(circle at 8% 0%, rgba(147, 197, 253, 0.28), transparent 18rem),
      linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
    border: 1px solid rgba(147, 197, 253, 0.72) !important;
    border-radius: 1.35rem !important;
    box-shadow: var(--public-shadow-menu) !important;
    display: grid !important;
    gap: 0.5rem !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    left: 50%;
    list-style: none;
    margin: 0 !important;
    min-width: min(34rem, calc(100vw - 2rem));
    padding: 0.7rem !important;
    position: absolute;
    top: calc(100% + 0.72rem);
    transform: translateX(-50%);
    z-index: 120;
  }

  .public-menu-submenu[hidden] {
    display: none !important;
  }

  .public-menu-submenu::before {
    background: #ffffff;
    border-left: 1px solid rgba(147, 197, 253, 0.62);
    border-top: 1px solid rgba(147, 197, 253, 0.62);
    content: "";
    height: 0.82rem;
    left: 50%;
    position: absolute;
    top: -0.46rem;
    transform: translateX(-50%) rotate(45deg);
    width: 0.82rem;
  }

  .public-menu-submenu li {
    display: flex;
    min-width: 0;
  }

  .public-nav nav.public-menu a.public-menu-link {
    background: rgba(255, 255, 255, 0.76) !important;
    border: 1px solid rgba(191, 219, 254, 0.72) !important;
    border-radius: 1rem !important;
    box-shadow: none !important;
    color: var(--public-ink) !important;
    display: grid !important;
    gap: 0.62rem !important;
    grid-template-columns: 2.25rem minmax(0, 1fr) !important;
    min-height: 4.2rem !important;
    padding: 0.7rem !important;
    text-decoration: none !important;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    width: 100%;
  }

  .public-nav nav.public-menu a.public-menu-link:hover,
  .public-nav nav.public-menu a.public-menu-link:focus-visible,
  .public-nav nav.public-menu a.public-menu-link.active,
  .public-nav nav.public-menu a.public-menu-link[aria-current="page"] {
    background: #ffffff !important;
    border-color: rgba(37, 99, 235, 0.45) !important;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.12) !important;
    color: var(--public-blue-900) !important;
    transform: translateY(-1px);
  }

  .public-menu-link:hover .public-menu-icon,
  .public-menu-link:focus-visible .public-menu-icon,
  .public-menu-link.active .public-menu-icon,
  .public-menu-link[aria-current="page"] .public-menu-icon {
    background: linear-gradient(135deg, var(--public-blue-800), var(--public-blue-600)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
  }

  .public-menu-icon {
    height: 2.15rem !important;
    width: 2.15rem !important;
  }

  .public-menu-icon svg {
    height: 1.12rem;
    width: 1.12rem;
  }

  .public-menu-action .btn-small.public-menu-link {
    border-radius: 999px !important;
    display: inline-flex !important;
    gap: 0.42rem !important;
    grid-template-columns: none !important;
    min-height: 2.72rem !important;
    padding: 0.42rem 0.85rem !important;
    white-space: nowrap;
  }

  .public-menu-action .public-menu-copy small {
    display: none !important;
  }

  .public-menu-locale .locale-switch {
    min-height: 2.72rem !important;
  }
}

@media (max-width: 760px) {
  .public-header .public-menu-toggle {
    display: inline-flex !important;
    margin-left: auto;
  }

  .public-header nav.public-menu {
    background:
      radial-gradient(circle at 12% 0%, rgba(147, 197, 253, 0.22), transparent 18rem),
      #ffffff !important;
    border: 1px solid rgba(147, 197, 253, 0.78) !important;
    border-radius: 1.2rem !important;
    box-shadow: var(--public-shadow-menu) !important;
    display: none !important;
    left: 0 !important;
    max-height: calc(100vh - 6.4rem);
    overflow-y: auto;
    padding: 0.68rem !important;
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 0.62rem) !important;
    z-index: 120;
  }

  .public-header nav.public-menu.is-open {
    display: block !important;
  }

  .public-menu-groups {
    display: grid !important;
    gap: 0.56rem !important;
    grid-template-columns: 1fr !important;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .public-menu-column {
    background: #f8fbff !important;
    border: 1px solid rgba(191, 219, 254, 0.74) !important;
    border-radius: 1rem !important;
    box-shadow: none !important;
    padding: 0.55rem !important;
  }

  .public-menu-column::before {
    display: none !important;
  }

  .public-menu-group-title {
    align-items: center !important;
    display: grid !important;
    gap: 0.65rem !important;
    grid-template-columns: 2.15rem minmax(0, 1fr) !important;
    padding: 0.1rem 0.1rem 0.52rem !important;
    width: 100%;
  }

  .public-menu-group-icon,
  .public-menu-icon {
    height: 2.05rem !important;
    width: 2.05rem !important;
  }

  .public-menu-group-copy strong {
    font-size: 0.92rem !important;
    line-height: 1.1;
  }

  .public-menu-group-copy span {
    font-size: 0.78rem !important;
    line-height: 1.25;
  }

  .public-menu-submenu {
    display: grid !important;
    gap: 0.42rem !important;
    grid-template-columns: 1fr !important;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
  }

  .public-menu-submenu[hidden] {
    display: none !important;
  }

  .public-nav nav.public-menu a.public-menu-link {
    background: #ffffff !important;
    border: 1px solid rgba(191, 219, 254, 0.78) !important;
    border-radius: 0.92rem !important;
    display: grid !important;
    gap: 0.56rem !important;
    grid-template-columns: 2.05rem minmax(0, 1fr) !important;
    justify-content: start !important;
    min-height: 3.35rem !important;
    padding: 0.58rem !important;
    text-align: left !important;
    text-decoration: none !important;
    width: 100%;
  }

  .public-menu-action .btn-small.public-menu-link,
  .public-menu-locale .locale-switch {
    width: 100% !important;
  }
}

/* Admin daily action hierarchy 2026-06-26: keep core work actions visually above assistants. */
.admin-shell .admin-mega-nav__panel a.is-priority,
.admin-shell .admin-rail a.is-priority {
  background:
    radial-gradient(circle at 92% 12%, rgba(96, 165, 250, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.94)) !important;
  border-color: rgba(37, 99, 235, 0.28) !important;
  color: #0f2f68 !important;
  font-weight: 900;
}

.admin-shell .admin-mega-nav__panel a.is-priority .admin-mega-nav__item-icon,
.admin-shell .admin-rail a.is-priority .admin-rail-icon {
  background: linear-gradient(135deg, #1d4ed8, #60a5fa) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.admin-shell .admin-mega-nav__panel a.is-priority:hover,
.admin-shell .admin-mega-nav__panel a.is-priority:focus-visible,
.admin-shell .admin-mega-nav__panel a.is-priority.active,
.admin-shell .admin-rail a.is-priority:hover,
.admin-shell .admin-rail a.is-priority:focus-visible,
.admin-shell .admin-rail a.is-priority.active {
  background: linear-gradient(135deg, #dbeafe, #ffffff) !important;
  border-color: rgba(29, 78, 216, 0.48) !important;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.14) !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__panel a.is-priority,
html[data-theme="dark"] .admin-shell .admin-rail a.is-priority {
  background:
    radial-gradient(circle at 92% 12%, rgba(96, 165, 250, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(30, 58, 138, 0.44), rgba(15, 23, 42, 0.86)) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
  color: #dbeafe !important;
}

/* Signup secondary details 2026-06-26: keep extra buying detail available without forcing long reading. */
.public-shell .signup-secondary-detail {
  display: block;
}

.public-shell .signup-secondary-detail > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
  list-style: none;
  min-height: 3.6rem;
  padding: 0.15rem 0;
}

.public-shell .signup-secondary-detail > summary::-webkit-details-marker {
  display: none;
}

.public-shell .signup-secondary-detail > summary::after {
  align-items: center;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  color: #1d4ed8;
  content: "+";
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 950;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  width: 2rem;
}

.public-shell .signup-secondary-detail[open] > summary::after {
  content: "-";
}

.public-shell .signup-secondary-detail > summary span,
.public-shell .signup-secondary-detail > summary strong {
  display: block;
}

.public-shell .signup-secondary-detail > summary span {
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-shell .signup-secondary-detail > summary strong {
  color: #081b3d;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.1;
}

.public-shell .signup-secondary-detail[open] > .section-heading {
  margin-top: 1rem;
}

html[data-theme="dark"] .public-shell .signup-secondary-detail > summary::after {
  background: rgba(30, 58, 138, 0.42);
  border-color: rgba(96, 165, 250, 0.28);
  color: #dbeafe;
}

html[data-theme="dark"] .public-shell .signup-secondary-detail > summary strong {
  color: #f8fafc;
}

/* Public reference-grade restyle 2026-06-26: white header, blue trust palette, icon-led mega menu and calmer commercial surfaces. */
.public-shell {
  --public-ref-ink: #07182f;
  --public-ref-muted: #52627a;
  --public-ref-blue-950: #08204a;
  --public-ref-blue-900: #0f2f6d;
  --public-ref-blue-800: #1746a2;
  --public-ref-blue-700: #225bd8;
  --public-ref-blue-600: #2d72f3;
  --public-ref-line: #cfe0f6;
  --public-ref-shadow: 0 18px 50px rgba(8, 32, 74, 0.1);
  --public-ref-menu-shadow: 0 24px 70px rgba(8, 32, 74, 0.16);
  background:
    radial-gradient(circle at 78% 6%, rgba(147, 197, 253, 0.45), transparent 30rem),
    radial-gradient(circle at 6% 18%, rgba(219, 234, 254, 0.72), transparent 32rem),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 42%, #f6f9ff 100%) !important;
  color: var(--public-ref-ink);
}

.public-header {
  z-index: 90 !important;
  border-bottom: 1px solid rgba(207, 224, 246, 0.95) !important;
  background: #ffffff !important;
  box-shadow: 0 12px 34px rgba(8, 32, 74, 0.08) !important;
  backdrop-filter: saturate(160%) blur(14px);
}

.public-nav {
  min-height: 4.85rem;
  padding-block: 0.72rem !important;
}

.public-header .brand {
  min-height: 3rem;
  padding: 0.28rem 0.55rem 0.28rem 0.18rem;
  border-radius: 999px;
  color: var(--public-ref-ink) !important;
  text-decoration: none;
}

.public-header .brand:hover,
.public-header .brand:focus-visible {
  background: #eff6ff;
  outline: none;
}

.public-header .logo-inline {
  width: 2.55rem !important;
  height: 2.55rem !important;
  border: 1px solid #b9d5fb !important;
  border-radius: 0.92rem !important;
  background: linear-gradient(145deg, #ffffff, #eaf3ff) !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12) !important;
}

.public-header nav.public-menu {
  flex: 1;
  justify-content: flex-end;
}

.public-menu-groups {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem !important;
  width: 100%;
}

.public-menu-group {
  position: relative;
}

.public-menu-column,
.public-menu-action,
.public-menu-locale {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.public-menu-group-title,
.public-menu-action .public-menu-link,
.public-locale-switch a {
  min-height: 2.85rem;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #31415a !important;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.public-menu-group-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  padding: 0.32rem 0.78rem 0.32rem 0.38rem !important;
}

.public-menu-group-title::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.05rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.58;
  transform: rotate(45deg) translateY(-0.1rem);
}

.public-menu-group.is-open .public-menu-group-title::after {
  transform: rotate(225deg) translate(-0.05rem, -0.05rem);
}

.public-menu-group-title:hover,
.public-menu-group-title:focus-visible,
.public-menu-group.is-open .public-menu-group-title,
.public-menu-action .public-menu-link:hover,
.public-menu-action .public-menu-link:focus-visible,
.public-locale-switch a:hover,
.public-locale-switch a:focus-visible {
  border-color: #b9d5fb !important;
  background: #edf5ff !important;
  color: var(--public-ref-blue-900) !important;
  outline: none;
}

.public-menu-group-icon,
.public-menu-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  border: 1px solid #cfe0f6;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--public-ref-blue-800);
}

.public-menu-group-icon svg,
.public-menu-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 2.2;
}

.public-menu-group-copy strong,
.public-menu-copy strong {
  color: inherit;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.public-menu-group-copy span {
  display: none !important;
}

.public-menu-action {
  margin-left: 0.35rem;
}

.public-menu-action .public-menu-link {
  border-color: var(--public-ref-blue-700) !important;
  background: linear-gradient(135deg, var(--public-ref-blue-800), var(--public-ref-blue-600)) !important;
  color: #ffffff !important;
  padding-inline: 0.42rem 0.82rem !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2) !important;
}

.public-menu-action .public-menu-link .public-menu-icon {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.public-menu-action .public-menu-link:hover,
.public-menu-action .public-menu-link:focus-visible {
  background: linear-gradient(135deg, var(--public-ref-blue-900), var(--public-ref-blue-700)) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.public-menu-submenu {
  top: calc(100% + 0.75rem) !important;
  right: 0 !important;
  left: auto !important;
  width: min(52rem, calc(100vw - 2rem)) !important;
  min-width: min(34rem, calc(100vw - 2rem)) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.62rem !important;
  border: 1px solid #b9d5fb !important;
  border-radius: 1.25rem !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--public-ref-menu-shadow) !important;
  padding: 0.82rem !important;
}

.public-menu-submenu::before {
  content: "";
  position: absolute;
  top: -0.48rem;
  right: 2.2rem;
  width: 0.9rem;
  height: 0.9rem;
  border-top: 1px solid #b9d5fb;
  border-left: 1px solid #b9d5fb;
  background: #ffffff;
  transform: rotate(45deg);
}

.public-menu-submenu[hidden] {
  display: none !important;
}

.public-menu-link {
  gap: 0.72rem !important;
  min-width: 0;
}

.public-menu-submenu .public-menu-link {
  height: 100%;
  border: 1px solid #d8e7fb !important;
  border-radius: 1rem !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
  color: var(--public-ref-ink) !important;
  padding: 0.82rem !important;
}

.public-menu-submenu .public-menu-link:hover,
.public-menu-submenu .public-menu-link:focus-visible,
.public-menu-submenu .public-menu-link.active {
  border-color: #93c5fd !important;
  background: #edf5ff !important;
  box-shadow: 0 14px 30px rgba(8, 32, 74, 0.09);
  outline: none;
}

.public-menu-copy small {
  color: var(--public-ref-muted) !important;
  font-size: 0.78rem;
  line-height: 1.32;
}

.public-locale-switch {
  gap: 0.22rem;
}

.public-locale-switch a {
  min-width: 2.65rem;
  padding-inline: 0.7rem !important;
  font-weight: 900;
}

.public-locale-switch a.active {
  border-color: #b9d5fb !important;
  background: #edf5ff !important;
  color: var(--public-ref-blue-900) !important;
}

.public-shell .container {
  width: min(1440px, 94vw);
  padding-top: clamp(1rem, 2vw, 1.6rem);
}

.public-shell .hero-home,
.public-shell .home-hero,
.public-shell .public-section,
.public-shell .home-band,
.public-shell .home-cta {
  border: 1px solid var(--public-ref-line) !important;
  border-radius: 1.45rem !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(147, 197, 253, 0.22), transparent 21rem),
    linear-gradient(135deg, #ffffff 0%, #ffffff 58%, #eef6ff 100%) !important;
  box-shadow: var(--public-ref-shadow) !important;
}

.public-shell .hero-home,
.public-shell .home-hero {
  align-items: center;
}

.public-shell .hero-home h1,
.public-shell .home-hero h1,
.public-shell .public-section h1 {
  color: var(--public-ref-ink) !important;
  letter-spacing: -0.06em;
}

.public-shell .hero-home p,
.public-shell .home-hero p,
.public-shell .public-section p {
  color: var(--public-ref-muted) !important;
}

.public-shell .eyebrow {
  color: var(--public-ref-blue-800) !important;
  letter-spacing: 0.08em !important;
}

.public-shell .section-heading {
  width: 100%;
  max-width: none !important;
}

.public-shell .section-heading :is(h2) {
  max-width: min(980px, 100%) !important;
}

.public-shell .btn,
.public-shell .btn-small,
.public-shell button {
  border-radius: 999px !important;
}

.public-shell .btn:not(.btn-outline),
.public-shell button:not(.public-menu-toggle):not(.public-menu-group-toggle) {
  border-color: var(--public-ref-blue-700) !important;
  background: linear-gradient(135deg, var(--public-ref-blue-800), var(--public-ref-blue-600)) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.public-shell .btn-outline {
  border-color: #b9d5fb !important;
  background: #ffffff !important;
  color: var(--public-ref-blue-900) !important;
}

.public-shell .card,
.public-shell .pricing-card,
.public-shell .sector-card,
.public-shell .sales-card {
  border-color: var(--public-ref-line) !important;
  border-radius: 1.25rem !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.public-shell .card:hover,
.public-shell .pricing-card:hover,
.public-shell .sector-card:hover,
.public-shell .sales-card:hover {
  border-color: #9fc8fb !important;
  box-shadow: 0 18px 42px rgba(8, 32, 74, 0.12) !important;
}

.public-shell .pricing-card.plan-highlight,
.public-shell .pricing-card.is-recommended {
  border-color: #7db5fb !important;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%) !important;
  box-shadow: 0 24px 58px rgba(37, 99, 235, 0.16) !important;
}

@media (min-width: 761px) {
  .public-header nav.public-menu,
  .public-header nav.public-menu[hidden] {
    display: flex !important;
  }

  .public-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 1180px) and (min-width: 761px) {
  .public-nav {
    gap: 0.65rem !important;
  }

  .public-menu-group-title {
    padding-inline: 0.32rem 0.58rem !important;
  }

  .public-menu-group-icon {
    width: 1.95rem;
    height: 1.95rem;
  }
}

@media (max-width: 760px) {
  .public-nav {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center !important;
    gap: 0.75rem !important;
  }

  .public-menu-toggle {
    display: inline-flex !important;
    min-height: 2.9rem;
    border-color: #b9d5fb !important;
    background: #ffffff !important;
    color: var(--public-ref-blue-900) !important;
    box-shadow: none !important;
  }

  .public-menu-toggle-lines i {
    background: currentColor !important;
  }

  .public-header nav.public-menu {
    grid-column: 1 / -1;
    width: 100%;
  }

  .public-header nav.public-menu[hidden] {
    display: none !important;
  }

  .public-header nav.public-menu.is-open {
    display: block !important;
  }

  .public-menu-groups {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
    width: 100%;
    padding: 0.35rem 0 0.75rem !important;
  }

  .public-menu-group-title,
  .public-menu-action .public-menu-link {
    width: 100%;
    justify-content: flex-start !important;
    border-color: #d8e7fb !important;
    background: #ffffff !important;
  }

  .public-menu-submenu {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 0.45rem !important;
    grid-template-columns: 1fr !important;
    border-radius: 1rem !important;
    box-shadow: none !important;
  }

  .public-menu-submenu::before {
    display: none !important;
  }

  .public-menu-action {
    margin-left: 0;
  }
}


/* Public reference navigation system polish: compact SaaS-style white header, blue iconography and accessible menu panels. */
:root {
  --public-nav-blue: #1d4ed8;
  --public-nav-blue-strong: #123f96;
  --public-nav-blue-soft: #eaf3ff;
  --public-nav-ink: #07152f;
  --public-nav-muted: #53627a;
  --public-nav-border: #c9ddff;
  --public-nav-surface: #ffffff;
  --public-nav-shadow: 0 24px 60px rgba(18, 63, 150, 0.16);
}

.public-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(156, 188, 238, 0.55) !important;
  box-shadow: 0 14px 34px rgba(28, 82, 160, 0.08) !important;
  backdrop-filter: blur(18px);
}

.public-nav {
  max-width: 1280px !important;
  min-height: 76px;
  gap: clamp(0.7rem, 1.6vw, 1.4rem) !important;
  padding: 0.68rem clamp(1rem, 3vw, 2.2rem) !important;
}

.public-header .brand {
  color: var(--public-nav-ink) !important;
  gap: 0.74rem !important;
  padding: 0.42rem 0.72rem 0.42rem 0.44rem !important;
  border-radius: 1.2rem;
  border: 1px solid transparent;
}

.public-header .brand:hover,
.public-header .brand:focus-visible {
  background: var(--public-nav-blue-soft) !important;
  border-color: var(--public-nav-border) !important;
  text-decoration: none !important;
}

.public-header .logo-inline {
  width: 2.38rem !important;
  height: 2.38rem !important;
  border-radius: 0.85rem !important;
  filter: drop-shadow(0 10px 20px rgba(29, 78, 216, 0.18));
}

.public-header .brand span {
  font-size: 1.03rem !important;
  letter-spacing: -0.02em;
  color: var(--public-nav-ink) !important;
}

.public-menu-group-title,
.public-menu-action .public-menu-link,
.public-locale-switch a,
.public-menu-locale .locale-switch a {
  border-radius: 999px !important;
  border: 1px solid rgba(160, 190, 238, 0.82) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--public-nav-ink) !important;
  box-shadow: 0 10px 24px rgba(35, 86, 160, 0.07) !important;
}

.public-menu-group-title {
  min-height: 3rem !important;
  padding: 0.48rem 0.86rem !important;
}

.public-menu-group-title:hover,
.public-menu-group-title:focus-visible,
.public-menu-group.is-open .public-menu-group-title,
.public-menu-action .public-menu-link:hover,
.public-menu-action .public-menu-link:focus-visible {
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%) !important;
  border-color: #8db8ff !important;
  color: var(--public-nav-blue-strong) !important;
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.15) !important;
  transform: translateY(-1px);
}

.public-menu-group-icon,
.public-menu-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 2.05rem !important;
  height: 2.05rem !important;
  flex: 0 0 2.05rem !important;
  border-radius: 0.9rem !important;
  background: linear-gradient(135deg, #eaf3ff 0%, #d9eaff 100%) !important;
  color: var(--public-nav-blue) !important;
  border: 1px solid rgba(141, 184, 255, 0.75) !important;
}

.public-menu-group-icon svg,
.public-menu-icon svg {
  width: 1.08rem !important;
  height: 1.08rem !important;
  stroke-width: 2.2;
}

.public-menu-group-copy strong,
.public-menu-copy strong {
  color: var(--public-nav-ink) !important;
  letter-spacing: -0.015em;
}

.public-menu-group-copy span,
.public-menu-copy small {
  color: var(--public-nav-muted) !important;
}

.public-menu-submenu {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid var(--public-nav-border) !important;
  border-radius: 1.45rem !important;
  box-shadow: var(--public-nav-shadow) !important;
  padding: 0.88rem !important;
}

.public-menu-submenu .public-menu-link {
  border-radius: 1rem !important;
  border: 1px solid transparent !important;
  background: transparent !important;
}

.public-menu-submenu .public-menu-link:hover,
.public-menu-submenu .public-menu-link:focus-visible,
.public-menu-submenu .public-menu-link.active,
.public-menu-submenu .public-menu-link[aria-current="page"] {
  background: linear-gradient(135deg, #f5f9ff 0%, #e8f2ff 100%) !important;
  border-color: #b8d4ff !important;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.12) !important;
}

.public-menu-action .public-menu-link {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.24) !important;
}

.public-menu-action .public-menu-link .public-menu-copy strong,
.public-menu-action .public-menu-link .public-menu-copy small {
  color: #ffffff !important;
}

.public-menu-action .public-menu-link .public-menu-icon {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.public-shell .hero-home,
.public-shell .home-hero,
.public-shell .public-section,
.public-shell .home-band,
.public-shell .service-table-band {
  border-radius: clamp(1.15rem, 2.3vw, 2rem) !important;
}

.public-shell .hero-home,
.public-shell .home-hero.home-hero-product {
  background:
    radial-gradient(circle at 84% 12%, rgba(96, 165, 250, 0.28), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f3f8ff 52%, #e7f1ff 100%) !important;
  border: 1px solid #b9d5ff !important;
  box-shadow: 0 28px 70px rgba(29, 78, 216, 0.13) !important;
}

.public-shell .eyebrow,
.public-shell .home-sector-card-kicker {
  color: var(--public-nav-blue) !important;
  letter-spacing: 0.09em !important;
}

.public-shell .section-heading {
  max-width: 100% !important;
  width: 100% !important;
  gap: 0.85rem !important;
}

.public-shell .section-heading :is(h2),
.public-shell .hero-home h1,
.public-shell .home-hero h1 {
  color: var(--public-nav-ink) !important;
  letter-spacing: -0.055em;
}

.public-shell .btn,
.public-shell .btn-primary,
.public-shell .button,
.public-shell button:not(.public-menu-toggle):not(.public-menu-group-toggle) {
  border-radius: 999px !important;
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.16);
}

.public-shell .pricing-card,
.public-shell .home-sector-card,
.public-shell .sector-card,
.public-shell .feature-card {
  border-color: #c6dcff !important;
  box-shadow: 0 18px 42px rgba(29, 78, 216, 0.10) !important;
}

.public-shell .pricing-card:hover,
.public-shell .home-sector-card:hover,
.public-shell .sector-card:hover,
.public-shell .feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(29, 78, 216, 0.16) !important;
}

.public-shell .pricing-card.plan-highlight,
.public-shell .pricing-card.is-highlight,
.public-shell .pricing-card.is-recommended {
  border-color: #1d4ed8 !important;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%) !important;
  box-shadow: 0 30px 70px rgba(29, 78, 216, 0.18) !important;
}

@media (min-width: 981px) {
  .public-header nav.public-menu,
  .public-header nav.public-menu[hidden] {
    display: block !important;
    overflow: visible !important;
  }

  .public-nav .public-menu-groups {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.58rem !important;
  }

  .public-menu-group {
    position: relative !important;
  }

  .public-menu-submenu {
    position: absolute !important;
    top: calc(100% + 0.82rem) !important;
    right: 0 !important;
    min-width: min(31rem, calc(100vw - 2rem)) !important;
    max-width: min(38rem, calc(100vw - 2rem)) !important;
    z-index: 80 !important;
  }

  .public-menu-submenu::before {
    content: "";
    position: absolute;
    top: -0.48rem;
    right: 1.35rem;
    width: 0.9rem;
    height: 0.9rem;
    transform: rotate(45deg);
    background: #ffffff;
    border-left: 1px solid var(--public-nav-border);
    border-top: 1px solid var(--public-nav-border);
  }

  .public-menu-submenu .public-menu-link {
    display: grid !important;
    grid-template-columns: 2.05rem minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0.72rem !important;
    padding: 0.72rem !important;
  }
}

@media (max-width: 980px) {
  .public-nav {
    min-height: 68px;
  }

  .public-menu-toggle {
    border-radius: 999px !important;
    border: 1px solid #b8d4ff !important;
    background: #ffffff !important;
    color: var(--public-nav-blue-strong) !important;
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.14) !important;
  }

  .public-header nav.public-menu.is-open {
    border: 1px solid var(--public-nav-border) !important;
    background: rgba(255, 255, 255, 0.99) !important;
    box-shadow: var(--public-nav-shadow) !important;
    border-radius: 1.35rem !important;
  }

  .public-menu-submenu {
    box-shadow: inset 0 0 0 1px rgba(185, 213, 255, 0.8) !important;
  }
}


/* Dashboard quick start primary action guard: make the first action obvious for non-technical client accounts. */
.admin-shell .dashboard-quick-start-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.admin-shell .dashboard-quick-start-grid a.is-primary {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
}

.admin-shell .dashboard-quick-start-grid a.is-primary em {
  color: #1d4ed8;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  width: fit-content;
}

html[data-theme="dark"] .admin-shell .dashboard-quick-start-grid a.is-primary {
  border-color: rgba(147, 197, 253, 0.72);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.48), rgba(15, 23, 42, 0.94));
}

@media (max-width: 640px) {
  .admin-shell .dashboard-quick-start-actions,
  .admin-shell .dashboard-quick-start-actions .btn {
    width: 100%;
  }
}


/* Public centered mega menu position fix: desktop panels align to the header, not to the clicked pill. */
@media (min-width: 981px) {
  .public-header nav.public-menu .public-menu-submenu {
    position: fixed !important;
    top: 5.15rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(58rem, calc(100vw - 2rem)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 2rem) !important;
    max-height: calc(100vh - 6.4rem) !important;
    overflow: auto !important;
    z-index: 999 !important;
  }

  .public-header nav.public-menu .public-menu-submenu[hidden] {
    display: none !important;
  }

  .public-header nav.public-menu .public-menu-group.is-open .public-menu-submenu:not([hidden]) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.56rem !important;
  }

  .public-header nav.public-menu .public-menu-submenu::before {
    display: none !important;
  }
}


/* Customer first sale shortcut guard: keep client creation and first quote visible without reading the full customer page. */
.admin-shell .section-heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

@media (max-width: 640px) {
  .admin-shell .section-heading-actions,
  .admin-shell .section-heading-actions .btn {
    width: 100%;
  }
}


/* Quote first shortcut full flow guard: first quote shortcut must expose customer + quote as one action. */
.admin-shell .quote-start-shortcut-grid a.is-primary {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
}

.admin-shell .quote-start-shortcut-grid a.is-primary span {
  background: #1d4ed8;
  color: #ffffff;
}

html[data-theme="dark"] .admin-shell .quote-start-shortcut-grid a.is-primary {
  border-color: rgba(147, 197, 253, 0.72);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.48), rgba(15, 23, 42, 0.94));
}


/* Invoice first shortcut accepted quote guard: prioritize invoicing accepted quotes before manual invoice entry. */
.admin-shell .invoice-start-shortcut-grid a.is-primary {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
}

.admin-shell .invoice-start-shortcut-grid a.is-primary span {
  background: #1d4ed8;
  color: #ffffff;
}

.admin-shell .invoice-total-preview {
  display: grid;
  gap: 0.22rem;
  align-self: stretch;
  min-height: 2.75rem;
  padding: 0.65rem 0.78rem;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 0.76rem;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.admin-shell .invoice-total-preview span,
.admin-shell .invoice-total-preview small {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-shell .invoice-total-preview strong {
  color: #1d4ed8;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 950;
}

.admin-shell .invoice-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.8rem 0 1rem;
}

.admin-shell .invoice-step-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  color: #173a8a;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.admin-shell .invoice-step-strip strong {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
  flex: 0 0 auto;
}

html[data-theme="dark"] .admin-shell .invoice-start-shortcut-grid a.is-primary {
  border-color: rgba(147, 197, 253, 0.72);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.48), rgba(15, 23, 42, 0.94));
}

html[data-theme="dark"] .admin-shell .invoice-total-preview {
  border-color: rgba(147, 197, 253, 0.28);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.3), rgba(15, 23, 42, 0.9));
}

html[data-theme="dark"] .admin-shell .invoice-total-preview span,
html[data-theme="dark"] .admin-shell .invoice-total-preview small {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-shell .invoice-total-preview strong {
  color: #bfdbfe;
}

html[data-theme="dark"] .admin-shell .invoice-step-strip span {
  border-color: rgba(147, 197, 253, 0.28);
  background: linear-gradient(135deg, #0f2744, #111827);
  color: #dbeafe;
}

html[data-theme="dark"] .admin-shell .invoice-step-strip strong {
  background: #60a5fa;
  color: #0f172a;
}

@media (max-width: 640px) {
  .admin-shell .invoice-step-strip {
    position: sticky;
    top: 0.75rem;
    z-index: 2;
    grid-template-columns: 1fr;
    gap: 0.42rem;
  }

  .admin-shell .invoice-step-strip span {
    justify-content: flex-start;
    min-height: 2.55rem;
    padding-inline: 0.8rem;
  }
}

/* Public trades megamenu scalable catalog guard: compact names and Ver todos keep an expanded catalog usable. */
@media (min-width: 981px) {
  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu:not([hidden]) {
    width: min(72rem, calc(100vw - 2rem)) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
  }

  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu .public-menu-link {
    min-height: 4.55rem !important;
    padding: 0.68rem !important;
  }

  .public-header nav.public-menu .public-menu-group-trades .public-menu-copy small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}


/* Public trades megamenu reachability guard: first 12 plus Ver todos must remain reachable. */
@media (min-width: 761px) {
  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu:not([hidden]) {
    position: fixed !important;
    top: 5.15rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(78rem, calc(100vw - 2rem)) !important;
    max-width: calc(100vw - 2rem) !important;
    max-height: calc(100vh - 6.75rem) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
  }

  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu .public-menu-link {
    min-height: 4.05rem !important;
    padding: 0.62rem !important;
  }

  .public-header nav.public-menu .public-menu-group-trades .public-menu-icon {
    width: 1.85rem !important;
    height: 1.85rem !important;
    flex-basis: 1.85rem !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu:not([hidden]) {
    width: min(46rem, calc(100vw - 2rem)) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* Public trades megamenu folded catalog final guard: expanded catalog must not become a tall unreadable panel. */
@media (min-width: 761px) {
  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu:not([hidden]) {
    width: min(92rem, calc(100vw - 1rem)) !important;
    max-width: calc(100vw - 1rem) !important;
    max-height: none !important;
    overflow: visible !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.48rem !important;
    padding: 0.72rem !important;
  }

  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu .public-menu-link {
    min-height: 3.35rem !important;
    gap: 0.55rem !important;
    padding: 0.5rem !important;
  }

  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu .public-menu-copy strong {
    font-size: 0.88rem !important;
    line-height: 1.12 !important;
  }

  .public-header nav.public-menu .public-menu-group-trades .public-menu-copy small {
    font-size: 0.74rem !important;
    line-height: 1.2 !important;
    -webkit-line-clamp: 1 !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu:not([hidden]) {
    width: min(62rem, calc(100vw - 1rem)) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Public trades menu explicit count guard: the expanded catalog count must be obvious from the collapsed menu too. */
.public-menu-group-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.85rem;
  height: 1.85rem;
  padding-inline: 0.35rem;
  border-radius: 999px;
  border: 1px solid #b8d4ff;
  background: #eaf3ff;
  color: #123178;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}

@media (min-width: 761px) {
  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu:not([hidden]) {
    grid-template-columns: repeat(4, minmax(13.5rem, 1fr)) !important;
    width: min(94rem, calc(100vw - 1rem)) !important;
  }
}

/* Public trades menu full catalog blocker: the opened menu must show the 11 concrete gremios, not only a count. */
@media (min-width: 821px) {
  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu-trades:not([hidden]) {
    display: grid !important;
    position: fixed !important;
    top: 5.05rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(96rem, calc(100vw - 1.5rem)) !important;
    max-width: calc(100vw - 1.5rem) !important;
    max-height: calc(100vh - 6.1rem) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)) !important;
    gap: 0.62rem !important;
    padding: 0.86rem !important;
    align-items: stretch !important;
  }

  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu-trades .public-menu-link {
    min-height: 4.35rem !important;
    gap: 0.68rem !important;
    padding: 0.66rem 0.72rem !important;
  }

  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu-trades .public-menu-copy strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #07142f;
    font-size: 0.94rem !important;
    line-height: 1.16 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu-trades .public-menu-copy small {
    display: -webkit-box !important;
    overflow: hidden !important;
    color: #385777;
    font-size: 0.78rem !important;
    line-height: 1.24 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2 !important;
  }
}

@media (max-width: 820px) {
  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu-trades:not([hidden]) {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    transform: none !important;
    overflow: visible !important;
    grid-template-columns: 1fr !important;
  }
}

/* Public trades menu visible catalog final blocker: the open menu must show an explicit 11-trade catalog. */
.public-header nav.public-menu .public-menu-trades-summary {
  align-items: center;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  color: #0f2f68;
  display: flex;
  gap: 0.7rem;
  grid-column: 1 / -1;
  justify-content: space-between;
  list-style: none;
  min-width: 0;
  padding: 0.68rem 0.78rem;
}

.public-header nav.public-menu .public-menu-trades-summary strong {
  color: #07142f;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.15;
}

.public-header nav.public-menu .public-menu-trades-summary span {
  color: #385777;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}

@media (min-width: 981px) {
  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu-trades:not([hidden]) {
    grid-template-columns: repeat(4, minmax(13rem, 1fr)) !important;
    width: min(94rem, calc(100vw - 1.5rem)) !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu-trades:not([hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .public-header nav.public-menu .public-menu-trades-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-header nav.public-menu .public-menu-trades-summary span {
    text-align: left;
  }
}

/* Trace detail disclosure guard: keep raw change data folded behind a plain-language summary. */
.admin-shell .trace-detail-disclosure {
  display: grid;
  gap: 0.45rem;
}

.admin-shell .trace-detail-disclosure summary {
  cursor: pointer;
  color: var(--admin-accent, #1d4ed8);
  font-weight: 800;
}

.admin-shell .trace-detail-disclosure code {
  display: block;
  max-width: 34rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Security detail disclosure guard: keep raw event data available without exposing it as the first reading layer. */
.admin-shell .security-detail-disclosure {
  display: grid;
  gap: 0.45rem;
}

.admin-shell .security-detail-disclosure summary {
  cursor: pointer;
  color: var(--admin-accent, #1d4ed8);
  font-weight: 800;
}

.admin-shell .security-detail-disclosure code {
  display: block;
  max-width: 34rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* VeriFactu code disclosure guard: keep fiscal hashes available without making them the first reading layer. */
.admin-shell .verifactu-code-disclosure {
  display: grid;
  gap: 0.35rem;
  min-width: 7.5rem;
}

.admin-shell .verifactu-code-disclosure summary {
  cursor: pointer;
  color: var(--admin-accent, #1d4ed8);
  font-weight: 850;
}

.admin-shell .verifactu-code-disclosure code {
  display: inline-flex;
  width: fit-content;
  max-width: 12rem;
  overflow-wrap: anywhere;
  padding: 0.24rem 0.42rem;
  border-radius: 0.5rem;
  background: rgba(148, 163, 184, 0.14);
  color: #334155;
}

@media (max-width: 760px) {
  .public-menu-group-count {
    margin-left: auto;
  }
}

/* Trade request priority plain labels: keep internal scoring out of the visible workflow. */
.admin-shell .module-request-priority-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(239, 246, 255, 0.92);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-shell .module-request-priority-high {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(254, 242, 242, 0.94);
  color: #b91c1c;
}

.admin-shell .module-request-priority-medium {
  border-color: rgba(217, 119, 6, 0.26);
  background: rgba(255, 251, 235, 0.96);
  color: #92400e;
}

.admin-shell .module-request-priority-low {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(240, 253, 244, 0.94);
  color: #166534;
}

/* Demo public contrast guard: real sector photo with a readable preview overlay. */
.public-shell .demo-sector-hero .sector-hero-card-premium {
  display: block !important;
  min-height: clamp(22rem, 34vw, 31rem) !important;
  padding: 0 !important;
  background: #0f172a !important;
  border: 1px solid rgba(96, 165, 250, 0.34) !important;
  color: #0f172a !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14) !important;
}

.public-shell .demo-sector-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.public-shell .demo-sector-preview-overlay {
  position: absolute;
  inset: auto 1.15rem 1.15rem 1.15rem;
  display: grid;
  gap: 0.72rem;
  padding: 1rem;
  border: 1px solid rgba(191, 219, 254, 0.7);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.public-shell .demo-sector-preview-overlay small {
  color: #1d4ed8 !important;
  text-shadow: none !important;
}

.public-shell .demo-sector-preview-overlay strong {
  color: #07142f !important;
  text-shadow: none !important;
}

.public-shell .demo-sector-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.public-shell .demo-sector-preview-list span {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
  color: #0f172a !important;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.08) !important;
  text-shadow: none !important;
}

@media (max-width: 620px) {
  .public-shell .demo-sector-preview-overlay {
    inset: auto 0.8rem 0.8rem 0.8rem;
    padding: 0.85rem;
  }
}

/* Access button layout guard: password toggle is not a primary CTA and bottom actions are structured. */
.auth-bg .auth-entry .stacked-form {
  gap: 0.64rem !important;
}

.auth-bg .auth-password-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.85rem !important;
  margin-top: 0.18rem !important;
}

.auth-bg .auth-password-row label {
  margin: 0 !important;
}

.auth-bg .auth-password-row .auth-password-toggle {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 2.75rem !important;
  min-height: 2.35rem !important;
  padding: 0.35rem 0.85rem !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 0.84rem !important;
  line-height: 1 !important;
}

.auth-bg .auth-entry .auth-form-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.7rem !important;
  margin-top: 0.68rem !important;
}

.auth-bg .auth-entry .auth-form-actions button[type="submit"] {
  width: 100% !important;
  min-height: 2.9rem !important;
  border-radius: 0.72rem !important;
  font-weight: 950 !important;
}

.auth-bg .auth-entry .auth-form-actions a {
  align-items: center !important;
  display: inline-flex !important;
  justify-content: center !important;
  min-height: 2.65rem !important;
  border: 1px solid rgba(37, 99, 235, 0.24) !important;
  border-radius: 0.72rem !important;
  background: #f8fbff !important;
  color: #1e40af !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.auth-bg .auth-entry .auth-form-actions a:hover,
.auth-bg .auth-entry .auth-form-actions a:focus-visible {
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.44) !important;
  color: #1d4ed8 !important;
}

.auth-bg .auth-password-help {
  border-color: rgba(37, 99, 235, 0.22) !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08) !important;
}

.auth-bg .auth-access-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.7rem !important;
  margin-top: 1rem !important;
}

.auth-bg .auth-access-links a {
  align-items: center !important;
  display: inline-flex !important;
  justify-content: center !important;
  min-height: 2.75rem !important;
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
  border-radius: 0.82rem !important;
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06) !important;
  color: #1e40af !important;
  font-weight: 950 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.auth-bg .auth-access-links a:hover,
.auth-bg .auth-access-links a:focus-visible {
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.36) !important;
  color: #1d4ed8 !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 620px) {
  .auth-bg .auth-access-links {
    grid-template-columns: 1fr !important;
  }
}

/* Work order card layout guard: parts are operational cards, not a spreadsheet wall. */
.admin-shell .work-orders-card-wrap {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.admin-shell .work-orders-card-table {
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.admin-shell .work-orders-card-table thead {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.admin-shell .work-orders-card-table tbody {
  display: grid !important;
  gap: 0.95rem !important;
}

.admin-shell .work-orders-card-table tbody tr {
  display: grid !important;
  grid-template-columns: minmax(9rem, 0.55fr) minmax(13rem, 0.8fr) minmax(14rem, 1fr) minmax(15rem, 1.05fr) minmax(14rem, 1fr) minmax(12rem, 0.78fr) !important;
  gap: 0.75rem !important;
  align-items: stretch !important;
  padding: 1rem !important;
  border: 1px solid rgba(203, 213, 225, 0.86) !important;
  border-radius: 1.15rem !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07) !important;
}

.admin-shell .work-orders-card-table tbody tr:hover {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
  box-shadow: 0 18px 46px rgba(30, 64, 175, 0.1) !important;
}

.admin-shell .work-orders-card-table th,
.admin-shell .work-orders-card-table td {
  border: 0 !important;
}

.admin-shell .work-orders-card-table td {
  display: grid !important;
  align-content: start !important;
  gap: 0.42rem !important;
  min-width: 0 !important;
  padding: 0.72rem !important;
  border-radius: 0.9rem !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.admin-shell .work-orders-card-table td::before {
  display: block !important;
  margin-bottom: 0.14rem !important;
  color: #64748b !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

.admin-shell .work-orders-card-table td:nth-child(1)::before { content: "Fecha"; }
.admin-shell .work-orders-card-table td:nth-child(2)::before { content: "Cliente"; }
.admin-shell .work-orders-card-table td:nth-child(3)::before { content: "Gremio"; }
.admin-shell .work-orders-card-table td:nth-child(4)::before { content: "Trabajo"; }
.admin-shell .work-orders-card-table td:nth-child(5)::before { content: "Planificacion"; }
.admin-shell .work-orders-card-table td:nth-child(6)::before { content: "Prioridad"; }
.admin-shell .work-orders-card-table td:nth-child(7)::before { content: "Checklist"; }
.admin-shell .work-orders-card-table td:nth-child(8)::before { content: "Evidencias"; }
.admin-shell .work-orders-card-table td:nth-child(9)::before { content: "Estado"; }
.admin-shell .work-orders-card-table td:nth-child(10)::before { content: "Acciones"; }

.admin-shell .work-orders-card-table td:nth-child(1),
.admin-shell .work-orders-card-table td:nth-child(6),
.admin-shell .work-orders-card-table td:nth-child(9) {
  align-content: center !important;
  justify-items: start !important;
  background: rgba(239, 246, 255, 0.78) !important;
  font-weight: 900 !important;
}

.admin-shell .work-orders-card-table td:nth-child(2),
.admin-shell .work-orders-card-table td:nth-child(4),
.admin-shell .work-orders-card-table td:nth-child(5),
.admin-shell .work-orders-card-table td:nth-child(7),
.admin-shell .work-orders-card-table td:nth-child(8),
.admin-shell .work-orders-card-table td:nth-child(10) {
  grid-row: span 2 !important;
}

.admin-shell .work-orders-card-table .compact-list {
  gap: 0.35rem !important;
  margin: 0 !important;
}

.admin-shell .work-orders-card-table .work-order-checklist li {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 0.45rem !important;
  padding: 0.42rem 0.5rem !important;
}

.admin-shell .work-orders-card-table .work-checklist-toggle-form button,
.admin-shell .work-orders-card-table .pending-material-inline-form button,
.admin-shell .work-orders-card-table .work-start-form button,
.admin-shell .work-orders-card-table .work-complete-form button,
.admin-shell .work-orders-card-table .inline-actions button {
  min-height: 2.15rem !important;
  width: auto !important;
  padding: 0.34rem 0.62rem !important;
  border-radius: 0.62rem !important;
  white-space: nowrap !important;
}

.admin-shell .work-orders-card-table td:nth-child(10) {
  align-content: start !important;
  gap: 0.55rem !important;
}

.admin-shell .work-orders-card-table td:nth-child(10) > form,
.admin-shell .work-orders-card-table td:nth-child(10) > details {
  margin: 0 !important;
}

.admin-shell .work-orders-card-table .work-order-quick-note summary,
.admin-shell .work-orders-card-table .work-order-execution summary,
.admin-shell .work-orders-card-table .customer-message-library summary {
  min-height: 2.35rem !important;
  padding: 0.5rem 0.62rem !important;
  border-radius: 0.7rem !important;
  background: #f8fafc !important;
}

@media (max-width: 1380px) {
  .admin-shell .work-orders-card-table tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .admin-shell .work-orders-card-table td:nth-child(2),
  .admin-shell .work-orders-card-table td:nth-child(4),
  .admin-shell .work-orders-card-table td:nth-child(5),
  .admin-shell .work-orders-card-table td:nth-child(7),
  .admin-shell .work-orders-card-table td:nth-child(8),
  .admin-shell .work-orders-card-table td:nth-child(10) {
    grid-row: auto !important;
  }
}

@media (max-width: 760px) {
  .admin-shell .work-orders-card-table tbody tr {
    grid-template-columns: 1fr !important;
    padding: 0.78rem !important;
  }

  .admin-shell .work-orders-card-table td {
    padding: 0.68rem !important;
  }
}

/* Work order quick create guard: mobile-first part creation before long operational reading. */
.admin-shell .work-mobile-focus-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 1rem !important;
  align-items: center !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.18), transparent 16rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
}

.admin-shell .work-mobile-focus-panel h3 {
  margin-bottom: 0 !important;
}

.admin-shell .work-mobile-focus-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(5.4rem, 1fr)) !important;
  gap: 0.55rem !important;
}

.admin-shell .work-mobile-focus-card {
  display: grid !important;
  gap: 0.08rem !important;
  min-height: 4.4rem !important;
  padding: 0.72rem 0.9rem !important;
  border: 1px solid rgba(147, 197, 253, 0.78) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  color: #0f172a !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08) !important;
}

.admin-shell .work-mobile-focus-card strong {
  color: #1d4ed8 !important;
  font-size: clamp(1.45rem, 3vw, 2rem) !important;
  line-height: 1 !important;
}

.admin-shell .work-mobile-focus-card span {
  color: #334155 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.admin-shell .work-mobile-focus-card:hover,
.admin-shell .work-mobile-focus-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.75) !important;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.16) !important;
  transform: translateY(-1px) !important;
}

html[data-theme="dark"] .admin-shell .work-mobile-focus-panel {
  border-color: rgba(96, 165, 250, 0.3) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.24), transparent 16rem),
    linear-gradient(135deg, #0f172a 0%, #111827 100%) !important;
}

html[data-theme="dark"] .admin-shell .work-mobile-focus-card {
  border-color: rgba(96, 165, 250, 0.42) !important;
  background: #111827 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .work-mobile-focus-card strong {
  color: #93c5fd !important;
}

html[data-theme="dark"] .admin-shell .work-mobile-focus-card span {
  color: #cbd5e1 !important;
}

@media (max-width: 720px) {
  .admin-shell .work-mobile-focus-panel {
    grid-template-columns: 1fr !important;
    padding: 0.85rem !important;
  }

  .admin-shell .work-mobile-focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.42rem !important;
  }

  .admin-shell .work-mobile-focus-card {
    min-height: 4rem !important;
    padding: 0.62rem 0.5rem !important;
    justify-items: center !important;
    text-align: center !important;
  }
}

.admin-shell .work-quick-create-panel {
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.18), transparent 22rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 18px 52px rgba(30, 64, 175, 0.09) !important;
}

.admin-shell .work-quick-create-panel .section-heading-row {
  margin-bottom: 0.8rem !important;
}
.admin-shell .work-quick-create-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 0.55rem !important;
}

.admin-shell .work-quick-create-actions .btn-outline {
  min-height: 2.55rem !important;
  padding-inline: 1rem !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
  background: #ffffff !important;
  color: #1d4ed8 !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

/* Work quick mobile presets: one tap sets date and priority before typing. */
.admin-shell .work-quick-create-presets {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.55rem !important;
  margin: 0 0 0.75rem !important;
}

.admin-shell .work-quick-create-presets button {
  display: grid !important;
  min-height: 4rem !important;
  align-content: center !important;
  gap: 0.12rem !important;
  border: 1px solid rgba(37, 99, 235, 0.22) !important;
  border-radius: 0.95rem !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.08) !important;
  cursor: pointer !important;
}

.admin-shell .work-quick-create-presets button span {
  font-size: 0.92rem !important;
  font-weight: 950 !important;
}

.admin-shell .work-quick-create-presets button small {
  color: #475569 !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
}

.admin-shell .work-quick-create-presets button[aria-pressed="true"],
.admin-shell .work-quick-create-presets button:hover,
.admin-shell .work-quick-create-presets button:focus-visible {
  border-color: rgba(37, 99, 235, 0.52) !important;
  background: linear-gradient(135deg, #dbeafe, #eff6ff) !important;
  color: #1d4ed8 !important;
  outline: none !important;
}

.admin-shell .work-quick-create-presets button:focus-visible {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18) !important;
}

@media (max-width: 720px) {
  .admin-shell .work-quick-create-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
    width: 100% !important;
  }

  .admin-shell .work-quick-create-actions .btn-outline {
    justify-content: center !important;
    width: 100% !important;
  }
}

.admin-shell .work-quick-create-form {
  display: grid !important;
  grid-template-columns: minmax(13rem, 1fr) minmax(16rem, 1.45fr) minmax(10rem, 0.75fr) minmax(9rem, 0.72fr) auto auto;
  gap: 0.62rem !important;
  align-items: end !important;
}

.admin-shell .work-quick-create-form label {
  display: grid !important;
  gap: 0.32rem !important;
  color: #334155 !important;
  font-size: 0.78rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}

.admin-shell .work-quick-create-form .work-quick-create-note {
  grid-column: 1 / -1 !important;
}

.admin-shell .work-quick-create-form input,
.admin-shell .work-quick-create-form select,
.admin-shell .work-quick-create-form textarea {
  min-height: 2.9rem !important;
  border-radius: 0.8rem !important;
  font-size: 1rem !important;
}

.admin-shell .work-quick-create-form button,
.admin-shell .work-quick-create-form .btn {
  min-height: 2.9rem !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.admin-shell .work-quick-create-form button {
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.18) !important;
}

@media (max-width: 1180px) {
  .admin-shell .work-quick-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .admin-shell .work-quick-create-panel {
    padding: 0.85rem !important;
  }

  .admin-shell .work-quick-create-form {
    grid-template-columns: 1fr !important;
    gap: 0.72rem !important;
  }

  .admin-shell .work-quick-create-form button,
  .admin-shell .work-quick-create-form .btn {
    width: 100% !important;
  }

  .admin-shell .work-quick-create-presets {
    gap: 0.42rem !important;
  }

  .admin-shell .work-quick-create-presets button {
    min-height: 3.7rem !important;
    padding: 0.55rem 0.35rem !important;
  }

  .admin-shell .work-quick-create-presets button small {
    font-size: 0.66rem !important;
  }
}

/* Message mobile lead cards guard: incoming opportunities must be handled without reading a wide table. */
@media (max-width: 760px) {
  .admin-shell .table-wrap:has(.message-target-row) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-shell .table-wrap:has(.message-target-row) table,
  .admin-shell .table-wrap:has(.message-target-row) tbody {
    display: block !important;
    width: 100% !important;
  }

  .admin-shell .table-wrap:has(.message-target-row) thead,
  .admin-shell .table-wrap:has(.message-target-row) caption.sr-only {
    display: none !important;
  }

  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row {
    display: grid !important;
    gap: 0.68rem !important;
    width: 100% !important;
    margin: 0 0 0.95rem !important;
    padding: 1rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 1.15rem !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
  }

  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td {
    display: grid !important;
    grid-template-columns: minmax(6.5rem, 38%) 1fr !important;
    align-items: start !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0f172a !important;
    white-space: normal !important;
  }

  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td::before {
    content: "" !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(1)::before { content: "Fecha" !important; }
  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(2)::before { content: "Respuesta" !important; }
  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(3)::before { content: "Prioridad" !important; }
  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(4)::before { content: "Nombre" !important; }
  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(5)::before { content: "Email" !important; }
  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(6)::before { content: "Plan" !important; }
  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(7)::before { content: "Gremio" !important; }
  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(8)::before { content: "Origen" !important; }
  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(9)::before { content: "Mensaje" !important; }
  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(10)::before { content: "Consentimiento" !important; }
  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(11)::before { content: "Estado" !important; }
  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(12)::before { content: "Acciones" !important; }

  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(4),
  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(9) {
    font-size: 1.01rem !important;
    font-weight: 850 !important;
    line-height: 1.28 !important;
  }

  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(12) {
    grid-template-columns: 1fr !important;
    gap: 0.78rem !important;
    padding-top: 0.85rem !important;
    border-top: 1px solid #dbeafe !important;
  }

  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(12) form,
  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(12) .inline-actions {
    display: grid !important;
    width: 100% !important;
    gap: 0.55rem !important;
  }

  .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(12) :where(.btn, button) {
    width: 100% !important;
    min-height: 2.9rem !important;
    justify-content: center !important;
  }

  .admin-shell .table-wrap:has(.message-target-row) .message-conversion-hint {
    display: block !important;
    margin: 0 !important;
    padding: 0.55rem 0.65rem !important;
    border-radius: 0.8rem !important;
    background: #eff6ff !important;
    color: #1e3a8a !important;
    font-size: 0.86rem !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td {
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td::before {
    color: #93c5fd !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.message-target-row) tr.message-target-row td:nth-child(12) {
    border-top-color: rgba(147, 197, 253, 0.28) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.message-target-row) .message-conversion-hint {
    background: rgba(37, 99, 235, 0.16) !important;
    color: #bfdbfe !important;
  }
}

html[data-theme="dark"] .admin-shell .work-quick-create-presets button {
  border-color: rgba(96, 165, 250, 0.28) !important;
  background: rgba(15, 23, 42, 0.86) !important;
  color: #e0f2fe !important;
}

html[data-theme="dark"] .admin-shell .work-quick-create-presets button small {
  color: #bfdbfe !important;
}

html[data-theme="dark"] .admin-shell .work-quick-create-presets button[aria-pressed="true"],
html[data-theme="dark"] .admin-shell .work-quick-create-presets button:hover,
html[data-theme="dark"] .admin-shell .work-quick-create-presets button:focus-visible {
  border-color: rgba(96, 165, 250, 0.52) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(30, 64, 175, 0.2)) !important;
  color: #eff6ff !important;
}

/* Admin mobile action dock: phone users should not depend on the full menu for daily work. */
.admin-shell .admin-mobile-action-dock {
  display: none;
}

@media (max-width: 760px) {
  body.admin-shell {
    padding-bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .admin-shell .admin-mobile-action-dock {
    position: fixed !important;
    right: 0.75rem !important;
    bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px)) !important;
    left: 0.75rem !important;
    z-index: 70 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.34rem !important;
    padding: 0.42rem !important;
    border: 1px solid rgba(147, 197, 253, 0.72) !important;
    border-radius: 1.25rem !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
  }

  .admin-shell .admin-mobile-action-dock a {
    display: grid !important;
    min-width: 44px !important;
    min-height: 3.8rem !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 0.18rem !important;
    padding: 0.42rem 0.2rem !important;
    border: 1px solid transparent !important;
    border-radius: 0.95rem !important;
    color: #1e3a8a !important;
    text-align: center !important;
    text-decoration: none !important;
    touch-action: manipulation !important;
  }

  .admin-shell .admin-mobile-action-dock a span {
    display: grid !important;
    width: 1.45rem !important;
    height: 1.45rem !important;
    place-items: center !important;
  }

  .admin-shell .admin-mobile-action-dock a svg {
    width: 1.28rem !important;
    height: 1.28rem !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .admin-shell .admin-mobile-action-dock a strong {
    max-width: 100% !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: 0.68rem !important;
    font-weight: 950 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .admin-shell .admin-mobile-action-dock a.is-active,
  .admin-shell .admin-mobile-action-dock a:hover,
  .admin-shell .admin-mobile-action-dock a:focus-visible {
    border-color: rgba(37, 99, 235, 0.36) !important;
    background: linear-gradient(135deg, #dbeafe, #eff6ff) !important;
    color: #1d4ed8 !important;
    outline: none !important;
  }

  .admin-shell .admin-mobile-action-dock a:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.24) !important;
  }
}

@media (max-width: 420px) {
  .admin-shell .admin-mobile-action-dock {
    right: 0.5rem !important;
    left: 0.5rem !important;
  }

  .admin-shell .admin-mobile-action-dock a strong {
    font-size: 0.62rem !important;
  }
}

html[data-theme="dark"] .admin-shell .admin-mobile-action-dock {
  border-color: rgba(96, 165, 250, 0.3) !important;
  background: rgba(15, 23, 42, 0.96) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42) !important;
}

html[data-theme="dark"] .admin-shell .admin-mobile-action-dock a {
  color: #bfdbfe !important;
}

html[data-theme="dark"] .admin-shell .admin-mobile-action-dock a.is-active,
html[data-theme="dark"] .admin-shell .admin-mobile-action-dock a:hover,
html[data-theme="dark"] .admin-shell .admin-mobile-action-dock a:focus-visible {
  border-color: rgba(96, 165, 250, 0.48) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(30, 64, 175, 0.2)) !important;
  color: #eff6ff !important;
}

/* Public home professional directory entry: customers can look for help without reading SaaS copy. */
.public-shell .home-hero-directory-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  width: fit-content !important;
  max-width: min(100%, 34rem) !important;
  margin-top: 0.95rem !important;
  padding: 0.72rem 0.95rem !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.84) !important;
  color: #1e3a8a !important;
  text-decoration: none !important;
  box-shadow: 0 14px 34px rgba(30, 64, 175, 0.1) !important;
}

.public-shell .home-hero-directory-link span {
  color: #475569 !important;
  font-size: 0.88rem !important;
  font-weight: 750 !important;
}

.public-shell .home-hero-directory-link strong {
  color: #1d4ed8 !important;
  font-size: 0.9rem !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.public-shell .home-hero-directory-link:hover,
.public-shell .home-hero-directory-link:focus-visible {
  border-color: rgba(37, 99, 235, 0.46) !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px rgba(30, 64, 175, 0.16) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

.public-shell .home-hero-directory-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22), 0 18px 42px rgba(30, 64, 175, 0.16) !important;
}

@media (max-width: 640px) {
  .public-shell .home-hero-directory-link {
    display: grid !important;
    width: 100% !important;
    justify-items: start !important;
    border-radius: 1rem !important;
  }

  .public-shell .home-hero-directory-link strong {
    white-space: normal !important;
  }
}


/* Invoice target highlight: landing from delivery notes must show the generated draft clearly. */
.admin-shell .invoice-target-row:target {
  outline: 3px solid rgba(37, 99, 235, 0.42) !important;
  outline-offset: 0.2rem !important;
  background: #eff6ff !important;
}

html[data-theme="dark"] .admin-shell .invoice-target-row:target {
  outline-color: rgba(96, 165, 250, 0.58) !important;
  background: rgba(30, 64, 175, 0.22) !important;
}

/* Admin user menu compact theme/language controls: icon-only theme, languages to the right. */
.admin-shell .admin-user-menu__actions {
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
}

.admin-shell .admin-user-menu__actions .theme-switch {
  width: 2.65rem !important;
  min-width: 2.65rem !important;
  height: 2.65rem !important;
  min-height: 2.65rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #cfe0f7 !important;
  border-radius: 0.9rem !important;
  background: #ffffff !important;
  color: #1e3a8a !important;
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.08) !important;
  cursor: pointer !important;
}

.admin-shell .admin-user-menu__actions select,
.admin-shell .admin-user-menu__actions .theme-switch select,
.admin-shell .admin-user-menu__actions [data-theme-select] {
  display: none !important;
}

.admin-shell .admin-user-menu__actions .admin-locale-switch.locale-switch {
  justify-self: end !important;
  width: auto !important;
  min-height: 2.65rem !important;
  padding: 0.18rem !important;
  border: 1px solid #cfe0f7 !important;
  border-radius: 999px !important;
  background: #f8fbff !important;
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.06) !important;
}

.admin-shell .admin-user-menu__actions .admin-locale-switch.locale-switch a {
  min-width: 2.35rem !important;
  min-height: 2.25rem !important;
  color: #1e3a8a !important;
  border-radius: 999px !important;
}

.admin-shell .admin-user-menu__actions .admin-locale-switch.locale-switch a.is-active,
.admin-shell .admin-user-menu__actions .admin-locale-switch.locale-switch a.active {
  background: #dbeafe !important;
  color: #1e40af !important;
  box-shadow: inset 0 0 0 1px #bfdbfe !important;
}

.admin-shell .admin-user-menu__actions .btn {
  grid-column: 1 / -1 !important;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__actions .theme-switch {
  border-color: #2c3a58 !important;
  background: #111d32 !important;
  color: #bfdbfe !important;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__actions .admin-locale-switch.locale-switch {
  border-color: #2c3a58 !important;
  background: #0f172a !important;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__actions .admin-locale-switch.locale-switch a {
  color: #bfdbfe !important;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__actions .admin-locale-switch.locale-switch a.is-active,
html[data-theme="dark"] .admin-shell .admin-user-menu__actions .admin-locale-switch.locale-switch a.active {
  background: #1e3a8a !important;
  color: #eff6ff !important;
  box-shadow: inset 0 0 0 1px #2563eb !important;
}

/* Admin user menu final simplification: the summary already identifies the user. */
.admin-shell .admin-user-menu__panel {
  width: min(18.5rem, calc(100vw - 1rem)) !important;
  gap: 0.65rem !important;
}

.admin-shell .admin-user-menu__panel .admin-user-menu__facts {
  display: none !important;
}

.admin-shell .admin-user-menu__actions {
  gap: 0.58rem !important;
}

.admin-shell .admin-user-menu__actions .theme-switch,
.admin-shell .admin-user-menu__actions .admin-locale-switch.locale-switch {
  align-self: center !important;
}


/* Admin user menu theme/language final guard: no day/night dropdown, only icon plus ES/CA pills. */
.admin-shell .admin-user-menu__actions .theme-switch--icon {
  aspect-ratio: 1 / 1 !important;
}

.admin-shell .admin-user-menu__actions .theme-switch--icon::after {
  content: none !important;
}

.admin-shell .admin-user-menu__actions .admin-locale-switch.locale-switch {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.16rem !important;
}
/* Admin mobile sticky form actions: keep save/create visible above the mobile dock. */
@media (max-width: 760px) {
  .admin-shell .form-actions,
  .admin-shell .work-quick-create-actions {
    position: sticky !important;
    bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 68 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    margin-top: 0.9rem !important;
    padding: 0.62rem !important;
    border: 1px solid rgba(191, 219, 254, 0.82) !important;
    border-radius: 1rem !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
  }

  .admin-shell .form-actions .btn,
  .admin-shell .form-actions button,
  .admin-shell .form-actions a,
  .admin-shell .work-quick-create-actions .btn,
  .admin-shell .work-quick-create-actions button,
  .admin-shell .work-quick-create-actions a {
    min-width: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    min-height: 2.95rem !important;
    border-radius: 0.82rem !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    line-height: 1.15 !important;
    touch-action: manipulation !important;
  }

  .admin-shell .form-actions button[type="submit"],
  .admin-shell .work-quick-create-actions button[type="submit"] {
    font-weight: 950 !important;
  }
}

html[data-theme="dark"] .admin-shell .form-actions,
html[data-theme="dark"] .admin-shell .work-quick-create-actions {
  border-color: rgba(96, 165, 250, 0.32) !important;
  background: rgba(15, 23, 42, 0.96) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38) !important;
}

/* Admin mobile secondary action groups: avoid tiny crowded buttons in cards and tables. */
@media (max-width: 760px) {
  .admin-shell .table-actions,
  .admin-shell .inline-actions,
  .admin-shell .panel-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(8.25rem, 1fr)) !important;
    gap: 0.48rem !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-shell .table-actions a,
  .admin-shell .table-actions button,
  .admin-shell .inline-actions a,
  .admin-shell .inline-actions button,
  .admin-shell .panel-actions a,
  .admin-shell .panel-actions button {
    min-width: 0 !important;
    min-height: 2.75rem !important;
    width: 100% !important;
    justify-content: center !important;
    border-radius: 0.78rem !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    line-height: 1.15 !important;
    touch-action: manipulation !important;
  }

  .admin-shell .table-actions form,
  .admin-shell .inline-actions form,
  .admin-shell .panel-actions form {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Admin mobile input ergonomics: prevent iOS zoom and make fields easy to tap. */
@media (max-width: 760px) {
  .admin-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .admin-shell select,
  .admin-shell textarea {
    min-height: 2.9rem !important;
    width: 100% !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    border-radius: 0.78rem !important;
  }

  .admin-shell textarea {
    min-height: 7.2rem !important;
    resize: vertical !important;
  }

  .admin-shell input[type="checkbox"],
  .admin-shell input[type="radio"] {
    width: 1.22rem !important;
    min-width: 1.22rem !important;
    height: 1.22rem !important;
    min-height: 1.22rem !important;
  }

  .admin-shell label,
  .admin-shell .form-grid label,
  .admin-shell .stacked-form label {
    gap: 0.36rem !important;
  }
}

/* Auth mobile input ergonomics: access forms still load app.css. */
@media (max-width: 760px) {
  .auth-bg input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .auth-bg select,
  .auth-bg textarea {
    min-height: 2.9rem !important;
    width: 100% !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    border-radius: 0.78rem !important;
  }

  .auth-bg textarea {
    min-height: 7.2rem !important;
    resize: vertical !important;
  }

  .auth-bg input[type="checkbox"],
  .auth-bg input[type="radio"] {
    width: 1.22rem !important;
    min-width: 1.22rem !important;
    height: 1.22rem !important;
    min-height: 1.22rem !important;
  }
}

/* Auth mobile action ergonomics: access CTAs stay thumb-friendly. */
@media (max-width: 760px) {
  .auth-bg .auth-form-actions,
  .auth-bg .auth-access-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.62rem !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .auth-bg .btn,
  .auth-bg button,
  .auth-bg .auth-form-actions a,
  .auth-bg .auth-access-links a {
    min-width: 0 !important;
    min-height: 2.95rem !important;
    width: 100% !important;
    justify-content: center !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    border-radius: 0.84rem !important;
    line-height: 1.15 !important;
    touch-action: manipulation !important;
    white-space: normal !important;
  }

  .auth-bg button[type="submit"] {
    font-weight: 950 !important;
  }
}

/* Mobile feedback clarity: status, error and success messages must be readable on phones. */
@media (max-width: 760px) {
  .admin-shell .alert,
  .admin-shell .flash,
  .admin-shell .notice,
  .admin-shell .form-error,
  .admin-shell .error,
  .admin-shell .success,
  .admin-shell [role="alert"],
  .admin-shell [role="status"],
  .public-shell .alert,
  .public-shell .flash,
  .public-shell .notice,
  .public-shell .form-error,
  .public-shell .error,
  .public-shell .success,
  .public-shell [role="alert"],
  .public-shell [role="status"],
  .auth-bg .alert,
  .auth-bg .flash,
  .auth-bg .notice,
  .auth-bg .form-error,
  .auth-bg .error,
  .auth-bg .success,
  .auth-bg [role="alert"],
  .auth-bg [role="status"] {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding: 0.82rem 0.92rem !important;
    border-radius: 0.9rem !important;
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1) !important;
  }

  .admin-shell [role="alert"],
  .public-shell [role="alert"],
  .auth-bg [role="alert"] {
    border-left: 0.28rem solid #dc2626 !important;
  }

  .admin-shell [role="status"],
  .public-shell [role="status"],
  .auth-bg [role="status"] {
    border-left: 0.28rem solid #2563eb !important;
  }
}

/* Mobile safe bottom spacing guard: fixed docks must not cover final content or actions. */
@media (max-width: 760px) {
  body.admin-shell {
    padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.public-shell {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.auth-bg {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .admin-shell .admin-layout,
  .public-shell main,
  .auth-bg main,
  .auth-bg .auth-card {
    margin-bottom: max(1rem, env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Mobile anchor landing guard: internal jumps must land with breathing room around fixed headers and docks. */
@media (max-width: 760px) {
  .admin-shell :where([id]):target,
  .public-shell :where([id]):target,
  .auth-bg :where([id]):target {
    scroll-margin-top: 6.75rem !important;
    scroll-margin-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .admin-shell :where(section, article, form, table, .panel, .card, .admin-card)[id]:target,
  .public-shell :where(section, article, form, .public-card, .plan-card)[id]:target,
  .auth-bg :where(section, form, .auth-card)[id]:target {
    outline: 3px solid rgba(37, 99, 235, 0.24) !important;
    outline-offset: 0.22rem !important;
    border-radius: 1rem !important;
  }
}

/* Mobile long text overflow guard: long names, emails, URLs and codes must not break cards or actions. */
@media (max-width: 760px) {
  .admin-shell :where(.panel, .card, .admin-card, .table-card, .table-responsive, .table-actions, .inline-actions, .panel-actions, .document-line-target-row, .document-next-action-panel, details, summary, dl, td, th, p, li, dd, dt, a, button, .btn, .btn-small, .badge, .status-pill, code, pre, input, textarea),
  .public-shell :where(.public-card, .plan-card, .sector-card, .home-sector-card, .public-actions, .hero-actions, .form-actions, details, summary, dl, p, li, dd, dt, a, button, .btn, .btn-small, .badge, code, pre, input, textarea),
  .auth-bg :where(.auth-card, .auth-form-actions, .auth-access-links, details, summary, dl, p, li, dd, dt, a, button, .btn, .btn-small, code, pre, input, textarea) {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }

  .admin-shell :where(.table-responsive, .table-card, table, details, summary, .document-line-target-row, .document-next-action-panel),
  .public-shell :where(.public-table, table, details, summary),
  .auth-bg :where(.auth-card, details, summary) {
    min-width: 0 !important;
  }
}

/* Disabled action clarity guard: inactive or pending actions must remain readable and clearly unavailable. */
.admin-shell :where(button, .btn, .btn-small, input[type="submit"]):disabled,
.admin-shell :where(button, .btn, .btn-small)[aria-disabled="true"],
.auth-bg :where(button, .btn, .btn-small, input[type="submit"]):disabled,
.auth-bg :where(button, .btn, .btn-small)[aria-disabled="true"] {
  opacity: 1 !important;
  color: #475569 !important;
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  filter: grayscale(0.08) !important;
}

.admin-shell :where(input:not([type="submit"]), select, textarea):disabled,
.auth-bg :where(input:not([type="submit"]), select, textarea):disabled {
  opacity: 1 !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  cursor: not-allowed !important;
}

html[data-theme="dark"] .admin-shell :where(button, .btn, .btn-small, input[type="submit"]):disabled,
html[data-theme="dark"] .admin-shell :where(button, .btn, .btn-small)[aria-disabled="true"] {
  color: #cbd5e1 !important;
  background: #1f2937 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .admin-shell :where(input:not([type="submit"]), select, textarea):disabled {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
  background: #1f2937 !important;
  border-color: #334155 !important;
}

/* Mobile helper text readability guard: hints and secondary copy must stay readable on phones. */
@media (max-width: 760px) {
  .admin-shell :where(.small, small, .form-hint, .field-help, .help-text, .text-muted, .muted, .hint, .description),
  .public-shell :where(.small, small, .form-hint, .field-help, .help-text, .text-muted, .muted, .hint, .description),
  .auth-bg :where(.small, small, .form-hint, .field-help, .help-text, .text-muted, .muted, .hint, .description) {
    min-height: 1.25rem !important;
    font-size: clamp(0.92rem, 2.8vw, 1rem) !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    color: #475569 !important;
  }

  html[data-theme="dark"] .admin-shell :where(.small, small, .form-hint, .field-help, .help-text, .text-muted, .muted, .hint, .description),
  html[data-theme="dark"] .public-shell :where(.small, small, .form-hint, .field-help, .help-text, .text-muted, .muted, .hint, .description),
  html[data-theme="dark"] .auth-bg :where(.small, small, .form-hint, .field-help, .help-text, .text-muted, .muted, .hint, .description) {
    color: #cbd5e1 !important;
  }
}

/* Admin user menu compact controls v2: theme is icon-only; languages sit to its right. */
.admin-shell .admin-user-menu__actions {
  grid-template-columns: 1fr !important;
}

.admin-shell .admin-user-menu__utility {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.48rem !important;
}

.admin-shell .admin-user-menu__utility > .theme-switch--icon {
  flex: 0 0 2.65rem !important;
  width: 2.65rem !important;
  min-width: 2.65rem !important;
  height: 2.65rem !important;
  min-height: 2.65rem !important;
  aspect-ratio: 1 / 1 !important;
}

.admin-shell .admin-user-menu__utility > .theme-switch--icon::after {
  content: none !important;
}

.admin-shell .admin-user-menu__utility > .admin-locale-switch.locale-switch {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.16rem !important;
}

.admin-shell .admin-user-menu__utility select,
.admin-shell .admin-user-menu__utility [data-theme-select],
.admin-shell .admin-user-menu__actions select,
.admin-shell .admin-user-menu__actions [data-theme-select] {
  display: none !important;
}

.admin-shell .admin-user-menu__session-actions {
  width: 100% !important;
  display: grid !important;
  gap: 0.5rem !important;
}

.admin-shell .admin-user-menu__session-actions .btn,
.admin-shell .admin-user-menu__actions .btn {
  width: 100% !important;
}
/* Icon-only accessible controls guard: compact header buttons must remain touchable and keyboard-visible. */
.admin-shell :where(.theme-switch--icon, .admin-help-trigger, .admin-user-menu__avatar, .admin-user-menu__summary, .admin-locale-switch a),
.public-shell :where(.public-menu-toggle, .public-menu-group-toggle, .public-menu-link-icon, .public-locale-switch a),
.auth-bg :where(.theme-switch--icon, .auth-locale-switch a) {
  min-width: 2.75rem !important;
  min-height: 2.75rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  touch-action: manipulation !important;
  line-height: 1.15 !important;
  flex-shrink: 0 !important;
}

.admin-shell :where(.theme-switch--icon, .admin-help-trigger, .admin-user-menu__summary, .admin-locale-switch a):focus-visible,
.public-shell :where(.public-menu-toggle, .public-menu-group-toggle, .public-menu-link, .public-locale-switch a):focus-visible,
.auth-bg :where(.auth-locale-switch a, .theme-switch--icon):focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.58) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(191, 219, 254, 0.72) !important;
}

.admin-shell :where(.theme-switch--icon, .admin-help-trigger, .admin-locale-switch a),
.public-shell :where(.public-menu-toggle, .public-menu-group-toggle, .public-locale-switch a),
.auth-bg :where(.auth-locale-switch a, .theme-switch--icon) {
  -webkit-tap-highlight-color: rgba(37, 99, 235, 0.22) !important;
}

html[data-theme="dark"] .admin-shell :where(.theme-switch--icon, .admin-help-trigger, .admin-user-menu__summary, .admin-locale-switch a):focus-visible,
html[data-theme="dark"] .public-shell :where(.public-menu-toggle, .public-menu-group-toggle, .public-menu-link, .public-locale-switch a):focus-visible,
html[data-theme="dark"] .auth-bg :where(.auth-locale-switch a, .theme-switch--icon):focus-visible {
  outline-color: rgba(147, 197, 253, 0.82) !important;
  box-shadow: 0 0 0 6px rgba(30, 64, 175, 0.52) !important;
}
/* Actionable empty state polish: empty lists should still show a clear next step. */
.admin-shell :where(.admin-empty-state, .lead-empty-state, .support-empty-state, .delivery-note-empty-state, .activation-package-empty, .referral-empty-state) {
  border: 1px solid rgba(191, 219, 254, 0.9) !important;
  border-radius: 1.15rem !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #eef6ff 100%) !important;
  box-shadow: 0 18px 46px rgba(30, 64, 175, 0.08) !important;
  padding: clamp(1rem, 3vw, 1.35rem) !important;
  color: #0f172a !important;
}

.admin-shell :where(.admin-empty-state, .lead-empty-state, .support-empty-state, .delivery-note-empty-state, .activation-package-empty, .referral-empty-state) :where(h2, h3, h4, strong) {
  color: #0b1220 !important;
}

.admin-shell :where(.admin-empty-state, .lead-empty-state, .support-empty-state, .delivery-note-empty-state, .activation-package-empty, .referral-empty-state) :where(p, small, span) {
  color: #475569 !important;
  line-height: 1.5 !important;
}

.admin-shell :where(.empty-actions, .admin-empty-state-actions, .lead-empty-actions, .support-empty-actions, .module-request-empty-actions) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.55rem !important;
  margin-top: 0.85rem !important;
}

.admin-shell :where(.empty-actions, .admin-empty-state-actions, .lead-empty-actions, .support-empty-actions, .module-request-empty-actions) :where(a, button, .btn) {
  min-width: 0 !important;
  min-height: 2.75rem !important;
  align-items: center !important;
  justify-content: center !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
  touch-action: manipulation !important;
  white-space: normal !important;
}

.admin-shell :where(.empty-actions, .admin-empty-state-actions, .lead-empty-actions, .support-empty-actions, .module-request-empty-actions) :where(a, button, .btn):focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.72) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(191, 219, 254, 0.72) !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.empty-actions, .admin-empty-state-actions, .lead-empty-actions, .support-empty-actions, .module-request-empty-actions) {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .admin-shell :where(.empty-actions, .admin-empty-state-actions, .lead-empty-actions, .support-empty-actions, .module-request-empty-actions) :where(a, button, .btn) {
    min-width: 0 !important;
    width: 100% !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.admin-empty-state, .lead-empty-state, .support-empty-state, .delivery-note-empty-state, .activation-package-empty) {
  border-color: rgba(59, 130, 246, 0.42) !important;
  background: linear-gradient(135deg, #0f172a 0%, #111d32 100%) !important;
  color: #e5eefb !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-empty-state, .lead-empty-state, .support-empty-state, .delivery-note-empty-state, .activation-package-empty) :where(h2, h3, h4, strong) {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-empty-state, .lead-empty-state, .support-empty-state, .delivery-note-empty-state, .activation-package-empty) :where(p, small, span) {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell :where(.empty-actions, .admin-empty-state-actions, .lead-empty-actions, .support-empty-actions, .module-request-empty-actions) :where(a, button, .btn):focus-visible {
  outline-color: rgba(147, 197, 253, 0.88) !important;
  box-shadow: 0 0 0 6px rgba(30, 64, 175, 0.58) !important;
}
/* Partial admin empty state polish 2026-07-02: solicitud/costes must look like actionable next steps, not old table placeholders. */
.admin-shell :where(.module-request-sla-empty, .module-request-demand-empty, .module-request-candidate-empty, .module-request-priority-empty, .module-request-table-empty, .project-cost-decision-empty, .project-cost-empty-state, .user-access-health-empty, .user-client-empty-state, .user-reset-readonly-empty, .user-reset-empty-state, .user-table-empty-state, .dashboard-empty-action) {
  display: grid !important;
  gap: 0.8rem !important;
  align-items: start !important;
  border: 1px solid rgba(191, 219, 254, 0.9) !important;
  border-left: 0.34rem solid #2563eb !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #eef6ff 100%) !important;
  box-shadow: 0 16px 42px rgba(30, 64, 175, 0.08) !important;
}

.admin-shell :where(.module-request-sla-empty, .module-request-demand-empty, .module-request-candidate-empty, .module-request-priority-empty, .module-request-table-empty, .project-cost-decision-empty, .project-cost-empty-state, .user-access-health-empty, .user-client-empty-state, .user-reset-readonly-empty, .user-reset-empty-state, .user-table-empty-state, .dashboard-empty-action) p {
  margin: 0 !important;
  max-width: 62rem !important;
  color: #475569 !important;
  line-height: 1.48 !important;
}

.admin-shell :where(.module-request-sla-empty, .module-request-demand-empty, .module-request-candidate-empty, .module-request-priority-empty, .module-request-table-empty, .project-cost-decision-empty, .project-cost-empty-state, .user-access-health-empty, .user-client-empty-state, .user-reset-readonly-empty, .user-reset-empty-state, .user-table-empty-state, .dashboard-empty-action) strong {
  color: #0b1220 !important;
}

.admin-shell :where(.module-request-empty-actions, .admin-empty-state-actions) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.55rem !important;
  align-items: center !important;
}

.admin-shell :where(.module-request-empty-actions, .admin-empty-state-actions) :where(a, button, .btn) {
  min-height: 2.75rem !important;
  white-space: normal !important;
}

html[data-theme="dark"] .admin-shell :where(.module-request-sla-empty, .module-request-demand-empty, .module-request-candidate-empty, .module-request-priority-empty, .module-request-table-empty, .project-cost-decision-empty, .project-cost-empty-state, .user-access-health-empty, .user-client-empty-state, .user-reset-readonly-empty, .user-reset-empty-state, .user-table-empty-state, .dashboard-empty-action) {
  border-color: rgba(59, 130, 246, 0.44) !important;
  border-left-color: #60a5fa !important;
  background: linear-gradient(135deg, #0f172a 0%, #111d32 100%) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .admin-shell :where(.module-request-sla-empty, .module-request-demand-empty, .module-request-candidate-empty, .module-request-priority-empty, .module-request-table-empty, .project-cost-decision-empty, .project-cost-empty-state, .user-access-health-empty, .user-client-empty-state, .user-reset-readonly-empty, .user-reset-empty-state, .user-table-empty-state, .dashboard-empty-action) strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell :where(.module-request-sla-empty, .module-request-demand-empty, .module-request-candidate-empty, .module-request-priority-empty, .module-request-table-empty, .project-cost-decision-empty, .project-cost-empty-state, .user-access-health-empty, .user-client-empty-state, .user-reset-readonly-empty, .user-reset-empty-state, .user-table-empty-state, .dashboard-empty-action) p {
  color: #cbd5e1 !important;
}

/* Security empty action guard 2026-07-02: empty security states must be calm, clear and actionable. */
.admin-shell .security-empty-state {
  display: grid !important;
  gap: 0.85rem !important;
  border: 1px solid rgba(191, 219, 254, 0.9) !important;
  border-left: 0.34rem solid #0f766e !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #ecfdf5 100%) !important;
  box-shadow: 0 16px 42px rgba(15, 118, 110, 0.08) !important;
}

.admin-shell .security-empty-state p {
  margin: 0 !important;
  max-width: 58rem !important;
  color: #475569 !important;
  line-height: 1.48 !important;
}

.admin-shell .security-empty-state strong {
  color: #0f172a !important;
}

.admin-shell .security-empty-state .admin-empty-state-actions {
  padding: 0 !important;
}

html[data-theme="dark"] .admin-shell .security-empty-state {
  border-color: rgba(45, 212, 191, 0.34) !important;
  border-left-color: #2dd4bf !important;
  background: linear-gradient(135deg, #0f172a 0%, #10201f 100%) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .admin-shell .security-empty-state strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .security-empty-state p {
  color: #cbd5e1 !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.module-request-empty-actions, .admin-empty-state-actions) {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .admin-shell :where(.module-request-empty-actions, .admin-empty-state-actions) :where(a, button, .btn) {
    width: 100% !important;
  }
}
/* Admin table scan polish: dense operational lists must stay readable and scroll affordance must be visible. */
.admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper, .table-card) {
  overscroll-behavior-x: contain !important;
  scrollbar-color: rgba(37, 99, 235, 0.46) rgba(219, 234, 254, 0.72) !important;
  scrollbar-gutter: stable both-edges !important;
  scrollbar-width: thin !important;
  scroll-behavior: smooth !important;
}

.admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  background: #f8fbff !important;
  box-shadow: inset 0 -1px 0 rgba(203, 213, 225, 0.95) !important;
}

.admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) tbody tr:nth-child(even) td {
  background: rgba(248, 251, 255, 0.72) !important;
}

.admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) tbody tr:hover td,
.admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) tbody tr:focus-within td {
  background: #eff6ff !important;
}

.admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) :where(th, td) {
  min-width: 0 !important;
  max-width: 26rem !important;
  overflow-wrap: anywhere !important;
  vertical-align: top !important;
}

.admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) :where(td a, td button, td .btn) {
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  touch-action: manipulation !important;
}

.admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) :where(a, button, .btn):focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.68) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px rgba(191, 219, 254, 0.74) !important;
  border-radius: 0.65rem !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) {
    border-inline: 1px solid rgba(191, 219, 254, 0.82) !important;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0)) left / 1.25rem 100% no-repeat,
      linear-gradient(270deg, rgba(219, 234, 254, 0.95), rgba(219, 234, 254, 0)) right / 1.25rem 100% no-repeat,
      #ffffff !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) table {
    min-width: 46rem !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) thead th {
  background: #111d32 !important;
  box-shadow: inset 0 -1px 0 rgba(71, 85, 105, 0.9) !important;
}

html[data-theme="dark"] .admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper, .table-card) {
  scrollbar-color: rgba(147, 197, 253, 0.62) rgba(15, 23, 42, 0.86) !important;
}

html[data-theme="dark"] .admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.62) !important;
}

html[data-theme="dark"] .admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) tbody tr:hover td,
html[data-theme="dark"] .admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) tbody tr:focus-within td {
  background: rgba(30, 64, 175, 0.24) !important;
}

html[data-theme="dark"] .admin-shell :where(.table-wrap, .table-responsive, .admin-table-wrapper) :where(a, button, .btn):focus-visible {
  outline-color: rgba(147, 197, 253, 0.88) !important;
  box-shadow: 0 0 0 5px rgba(30, 64, 175, 0.58) !important;
}
/* Admin filter clarity polish: filters and active-result summaries must read as one decision area. */
.admin-shell :where(.filter-form, .filters, .support-filter-form) {
  border: 1px solid rgba(191, 219, 254, 0.82) !important;
  border-radius: 1.05rem !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 14px 34px rgba(30, 64, 175, 0.06) !important;
  padding: clamp(0.85rem, 2vw, 1.05rem) !important;
}

.admin-shell :where(.filter-form, .filters, .support-filter-form) label {
  color: #334155 !important;
  font-size: 0.82rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.01em !important;
}

.admin-shell :where(.filter-form, .filters, .support-filter-form) :where(input, select, textarea, button, .btn) {
  min-width: 0 !important;
  min-height: 2.75rem !important;
  align-items: center !important;
  justify-content: center !important;
  border-color: #cfe0f7 !important;
  background-color: #ffffff !important;
  overflow-wrap: anywhere !important;
}

.admin-shell :where(.filter-form, .filters, .support-filter-form) :where(input, select, textarea, button, .btn, a):focus-visible {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.76) !important;
  outline: none !important;
  border-radius: 0.75rem !important;
}

.admin-shell :where(.invoice-result-filter-text, .quote-result-filter-text, .work-order-result-filter-text, .customer-result-filter-text, .message-result-filter-text, .support-result-filter-text, .delivery-note-result-count, .work-order-result-count) {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.35rem !important;
  margin: 0.6rem 0 0.75rem !important;
  padding: 0.5rem 0.7rem !important;
  border: 1px solid rgba(191, 219, 254, 0.82) !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #334155 !important;
  line-height: 1.35 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

.admin-shell :where(.invoice-result-filter-text, .quote-result-filter-text, .work-order-result-filter-text, .customer-result-filter-text, .message-result-filter-text, .support-result-filter-text, .delivery-note-result-count, .work-order-result-count) strong {
  color: #0f172a !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.filter-form, .filters, .support-filter-form) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.72rem !important;
  }

  .admin-shell :where(.filter-form, .filters, .support-filter-form) :where(button, .btn, a) {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 2.85rem !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    touch-action: manipulation !important;
  }

  .admin-shell :where(.invoice-result-filter-text, .quote-result-filter-text, .work-order-result-filter-text, .customer-result-filter-text, .message-result-filter-text, .support-result-filter-text, .delivery-note-result-count, .work-order-result-count) {
    width: 100% !important;
    border-radius: 0.95rem !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.filter-form, .filters, .support-filter-form) {
  border-color: rgba(59, 130, 246, 0.38) !important;
  background: linear-gradient(135deg, #0f172a 0%, #111d32 100%) !important;
}

html[data-theme="dark"] .admin-shell :where(.filter-form, .filters, .support-filter-form) label {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell :where(.filter-form, .filters, .support-filter-form) :where(input, select, textarea, button, .btn) {
  border-color: #2c3a58 !important;
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell :where(.invoice-result-filter-text, .quote-result-filter-text, .work-order-result-filter-text, .customer-result-filter-text, .message-result-filter-text, .support-result-filter-text, .delivery-note-result-count, .work-order-result-count) {
  border-color: rgba(59, 130, 246, 0.4) !important;
  background: rgba(30, 64, 175, 0.24) !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell :where(.invoice-result-filter-text, .quote-result-filter-text, .work-order-result-filter-text, .customer-result-filter-text, .message-result-filter-text, .support-result-filter-text, .delivery-note-result-count, .work-order-result-count) strong {
  color: #f8fafc !important;
}

/* Admin filter result status unification 2026-08-04: every filtered list must explain itself the same way. */
.admin-shell .result-count {
  width: fit-content !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.45rem !important;
  margin: 0.75rem 0 0.9rem !important;
  padding: 0.52rem 0.72rem !important;
  border: 1px solid rgba(147, 197, 253, 0.58) !important;
  border-radius: 999px !important;
  background: #f8fbff !important;
  color: #475569 !important;
  line-height: 1.3 !important;
}

.admin-shell :where(.invoice-result-filter-text, .quote-result-filter-text, .work-order-result-filter-text, .customer-result-filter-text, .message-result-filter-text, .support-result-filter-text, .delivery-note-result-count, .work-order-result-count, .supplier-result-filter-text, .subscription-result-filter-text) {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.35rem !important;
  min-height: 2.35rem !important;
  margin: 0 !important;
  padding: 0.44rem 0.68rem !important;
  border: 1px solid rgba(147, 197, 253, 0.7) !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #1e3a8a !important;
  font-weight: 780 !important;
  line-height: 1.25 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

.admin-shell :where(.invoice-result-filter-text, .quote-result-filter-text, .work-order-result-filter-text, .customer-result-filter-text, .message-result-filter-text, .support-result-filter-text, .delivery-note-result-count, .work-order-result-count, .supplier-result-filter-text, .subscription-result-filter-text) strong {
  color: #071327 !important;
  font-weight: 900 !important;
}

@media (max-width: 760px) {
  .admin-shell .result-count,
  .admin-shell :where(.invoice-result-filter-text, .quote-result-filter-text, .work-order-result-filter-text, .customer-result-filter-text, .message-result-filter-text, .support-result-filter-text, .delivery-note-result-count, .work-order-result-count, .supplier-result-filter-text, .subscription-result-filter-text) {
    width: 100% !important;
    justify-content: center !important;
    border-radius: 0.95rem !important;
    text-align: center !important;
  }
}

@media (max-width: 640px) {
  .skip-links {
    left: 0.75rem;
    right: 0.75rem;
  }

  .skip-link {
    min-height: var(--mantivo-touch-target, 44px);
    display: inline-flex;
    align-items: center;
  }
}

@media print {
  .skip-links {
    display: none !important;
  }
}

html[data-theme="dark"] .admin-shell .result-count {
  background: rgba(15, 23, 42, 0.74) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell :where(.invoice-result-filter-text, .quote-result-filter-text, .work-order-result-filter-text, .customer-result-filter-text, .message-result-filter-text, .support-result-filter-text, .delivery-note-result-count, .work-order-result-count, .supplier-result-filter-text, .subscription-result-filter-text) {
  background: rgba(30, 58, 138, 0.32) !important;
  border-color: rgba(96, 165, 250, 0.42) !important;
  color: #bfdbfe !important;
}

html[data-theme="dark"] .admin-shell :where(.invoice-result-filter-text, .quote-result-filter-text, .work-order-result-filter-text, .customer-result-filter-text, .message-result-filter-text, .support-result-filter-text, .delivery-note-result-count, .work-order-result-count, .supplier-result-filter-text, .subscription-result-filter-text) strong {
  color: #f8fafc !important;
}

/* Public hero decision path polish 2026-08-04: first-screen choices must read as a clear route. */
.public-shell .home-hero-decision {
  width: min(100%, 58rem) !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.7rem !important;
  align-items: stretch !important;
  padding: 0.72rem !important;
  border: 1px solid rgba(147, 197, 253, 0.58) !important;
  border-radius: 1.35rem !important;
  background:
    radial-gradient(circle at 8% 18%, rgba(37, 99, 235, 0.1), transparent 14rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9)) !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08) !important;
}

.public-shell .home-hero-decision-card {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 2.25rem minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 0.68rem !important;
  align-items: center !important;
  min-height: 5.2rem !important;
  min-width: 0 !important;
  padding: 0.82rem 0.92rem !important;
  border: 1px solid rgba(191, 219, 254, 0.84) !important;
  border-radius: 1rem !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #0f172a !important;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055) !important;
  overflow: hidden !important;
}

.public-shell .home-hero-decision-card > span {
  grid-row: 1 / span 2 !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0.78rem !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.public-shell .home-hero-decision-card > strong,
.public-shell .home-hero-decision-card > small {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

.public-shell .home-hero-decision-card > strong {
  color: #071327 !important;
  font-size: 1rem !important;
  line-height: 1.05 !important;
  letter-spacing: -0.025em !important;
}

.public-shell .home-hero-decision-card > small {
  color: #475569 !important;
  line-height: 1.3 !important;
}

.public-shell .home-hero-decision-card.is-primary {
  border-color: rgba(37, 99, 235, 0.8) !important;
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.22) !important;
}

.public-shell .home-hero-decision-card.is-primary > span {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.public-shell .home-hero-decision-card.is-primary > strong,
.public-shell .home-hero-decision-card.is-primary > small {
  color: #ffffff !important;
}

.public-shell .home-hero-decision-card:hover,
.public-shell .home-hero-decision-card:focus-visible {
  transform: translateY(-1px) !important;
  border-color: rgba(37, 99, 235, 0.86) !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.16) !important;
}

@media (max-width: 920px) {
  .public-shell .home-hero-decision {
    grid-template-columns: 1fr !important;
  }

  .public-shell .home-hero-decision-card {
    min-height: 4.65rem !important;
  }
}

html[data-theme="dark"] .public-shell .home-hero-decision {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9)) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
}

html[data-theme="dark"] .public-shell .home-hero-decision-card {
  background: rgba(15, 23, 42, 0.94) !important;
  border-color: rgba(96, 165, 250, 0.36) !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .public-shell .home-hero-decision-card > strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .public-shell .home-hero-decision-card > small {
  color: #cbd5e1 !important;
}

/* Admin contextual help beacon 2026-08-04: the question mark must be easy to notice without adding page copy. */
.admin-shell .admin-help-trigger {
  position: relative !important;
  isolation: isolate !important;
  width: var(--mantivo-touch-target, 44px) !important;
  height: var(--mantivo-touch-target, 44px) !important;
  min-width: var(--mantivo-touch-target, 44px) !important;
  min-height: var(--mantivo-touch-target, 44px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(147, 197, 253, 0.78) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.32) 38%, transparent 40%),
    linear-gradient(135deg, #eff6ff, #dbeafe) !important;
  color: #1d4ed8 !important;
  font-size: 1.05rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.13) !important;
  text-decoration: none !important;
}

.admin-shell .admin-help-trigger::after {
  content: "" !important;
  position: absolute !important;
  inset: -0.28rem !important;
  z-index: -1 !important;
  border-radius: inherit !important;
  background: rgba(37, 99, 235, 0.08) !important;
  opacity: 0 !important;
  transition: opacity 0.16s ease !important;
}

.admin-shell .admin-help-trigger:hover::after,
.admin-shell .admin-help-trigger:focus-visible::after {
  opacity: 1 !important;
}

.admin-shell .admin-help-trigger:hover,
.admin-shell .admin-help-trigger:focus-visible {
  border-color: rgba(37, 99, 235, 0.86) !important;
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .admin-help-trigger .admin-help-popover {
  width: min(22rem, calc(100vw - 2rem)) !important;
  padding: 0.9rem !important;
  border: 1px solid rgba(147, 197, 253, 0.72) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.18) !important;
}

.admin-shell .admin-help-trigger .admin-help-popover strong {
  display: block !important;
  color: #071327 !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
}

.admin-shell .admin-help-trigger .admin-help-popover span {
  display: block !important;
  margin-top: 0.28rem !important;
  color: #475569 !important;
  line-height: 1.35 !important;
}

@media (max-width: 760px) {
  .admin-shell .admin-help-trigger {
    width: 2.9rem !important;
    height: 2.9rem !important;
    min-width: 2.9rem !important;
    min-height: 2.9rem !important;
  }

  .admin-shell .admin-help-trigger .admin-help-popover {
    position: fixed !important;
    top: 4.6rem !important;
    right: 0.85rem !important;
    left: auto !important;
    max-width: calc(100vw - 1.7rem) !important;
  }
}

html[data-theme="dark"] .admin-shell .admin-help-trigger {
  background: linear-gradient(135deg, #172554, #1e3a8a) !important;
  border-color: rgba(96, 165, 250, 0.46) !important;
  color: #dbeafe !important;
}

html[data-theme="dark"] .admin-shell .admin-help-trigger .admin-help-popover {
  background: #0f172a !important;
  border-color: rgba(96, 165, 250, 0.42) !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .admin-shell .admin-help-trigger .admin-help-popover strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .admin-help-trigger .admin-help-popover span {
  color: #cbd5e1 !important;
}

/* Admin mobile action dock five-action clarity 2026-08-04: five rendered actions need five stable columns. */
@media (max-width: 760px) {
  .admin-shell .admin-mobile-action-dock {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0.3rem !important;
    padding: 0.46rem !important;
    border-radius: 1.28rem !important;
  }

  .admin-shell .admin-mobile-action-dock a {
    min-height: 4rem !important;
    padding: 0.44rem 0.16rem !important;
    border-radius: 0.98rem !important;
  }

  .admin-shell .admin-mobile-action-dock a span {
    width: 1.38rem !important;
    height: 1.38rem !important;
  }

  .admin-shell .admin-mobile-action-dock a strong {
    max-width: 100% !important;
    font-size: clamp(0.58rem, 2.7vw, 0.68rem) !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .admin-shell .admin-mobile-action-dock a.is-active {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22) !important;
  }
}

html[data-theme="dark"] .admin-shell .admin-mobile-action-dock a.is-active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: rgba(147, 197, 253, 0.58) !important;
  color: #ffffff !important;
}

/* Admin surface hierarchy polish 2026-08-04: private screens should feel like a modern workbench, not raw forms and tables. */
.admin-shell .admin-content {
  gap: clamp(1rem, 1.8vw, 1.45rem) !important;
}

.admin-shell :where(.admin-heading, .admin-panel, .metric-row article, .table-wrap, .admin-table-wrapper, .work-list) {
  border-radius: 1.25rem !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07) !important;
}

.admin-shell .admin-heading {
  padding: clamp(1.05rem, 2vw, 1.6rem) !important;
  align-items: flex-start !important;
}

.admin-shell .admin-heading :where(h1, h2) {
  max-width: 18ch !important;
  letter-spacing: -0.045em !important;
}

.admin-shell .admin-heading p:not(.eyebrow) {
  max-width: 68ch !important;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem) !important;
  line-height: 1.45 !important;
}

.admin-shell .admin-panel {
  padding: clamp(1rem, 1.7vw, 1.35rem) !important;
}

.admin-shell .admin-panel > :where(h2, h3):first-child,
.admin-shell .document-card > :where(h2, h3):first-child {
  letter-spacing: -0.03em !important;
}

.admin-shell :where(.grid-two-form, .business-form, .filter-form, .quick-form, .form-grid) {
  border-radius: 1.1rem !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

.admin-shell :where(input, select, textarea) {
  min-height: var(--admin-touch-target, 2.9rem) !important;
  border-radius: 0.85rem !important;
  border-color: rgba(148, 163, 184, 0.58) !important;
}

.admin-shell :where(input, select, textarea):focus-visible {
  border-color: #2563eb !important;
  outline: 3px solid rgba(37, 99, 235, 0.18) !important;
  outline-offset: 1px !important;
}

.admin-shell :where(.btn, button) {
  border-radius: 0.85rem !important;
  font-weight: 850 !important;
}

.admin-shell .btn:not(.btn-outline),
.admin-shell :where(.form-actions, .admin-actions, .panel-actions, .inline-actions, .table-actions) button:not(.btn-outline):not(.danger) {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
}

.admin-shell .btn-outline {
  background: #ffffff !important;
  color: #1e3a8a !important;
  border-color: rgba(37, 99, 235, 0.32) !important;
}

.admin-shell .btn-outline:hover,
.admin-shell .btn-outline:focus-visible {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #2563eb !important;
}

html[data-theme="light"] .admin-shell :where(.admin-heading, .admin-panel, .metric-row article, .table-wrap, .admin-table-wrapper, .work-list) {
  background:
    radial-gradient(circle at 100% 0%, rgba(147, 197, 253, 0.16), transparent 18rem),
    #ffffff !important;
}

html[data-theme="light"] .admin-shell :where(.grid-two-form, .business-form, .filter-form, .quick-form, .form-grid) {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(239, 246, 255, 0.72)) !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-heading, .admin-panel, .metric-row article, .table-wrap, .admin-table-wrapper, .work-list) {
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.18), transparent 20rem),
    rgba(15, 23, 42, 0.94) !important;
  border-color: rgba(96, 165, 250, 0.24) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="dark"] .admin-shell :where(.grid-two-form, .business-form, .filter-form, .quick-form, .form-grid) {
  background: rgba(15, 23, 42, 0.62) !important;
  border-color: rgba(96, 165, 250, 0.22) !important;
}

html[data-theme="dark"] .admin-shell .btn-outline {
  background: rgba(15, 23, 42, 0.86) !important;
  color: #bfdbfe !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
}

@media (max-width: 760px) {
  .admin-shell .admin-heading {
    display: grid !important;
    gap: 0.85rem !important;
  }

  .admin-shell .admin-heading :where(h1, h2) {
    max-width: 100% !important;
  }

  .admin-shell :where(.admin-heading, .admin-panel, .metric-row article, .table-wrap, .admin-table-wrapper, .work-list) {
    border-radius: 1rem !important;
  }
}
/* Admin user menu icon theme v3: theme is only a sun/moon button and locales sit to its right. */
.admin-shell .admin-user-menu__utility--icon-theme,
.admin-shell .admin-user-menu__utility {
  display: grid !important;
  grid-template-columns: 2.75rem auto !important;
  align-items: center !important;
  justify-content: end !important;
  gap: 0.55rem !important;
}

.admin-shell .admin-user-menu__utility .theme-switch--icon {
  width: 2.75rem !important;
  height: 2.75rem !important;
  min-width: 2.75rem !important;
  min-height: 2.75rem !important;
  padding: 0 !important;
  border-radius: 0.9rem !important;
  color: #1e3a8a !important;
  background: linear-gradient(145deg, #ffffff, #eff6ff) !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.1) !important;
}

.admin-shell .admin-user-menu__utility .theme-switch--icon:hover,
.admin-shell .admin-user-menu__utility .theme-switch--icon:focus-visible {
  color: #1d4ed8 !important;
  background: #eff6ff !important;
  border-color: #93c5fd !important;
}

.admin-shell .admin-user-menu__utility .theme-switch__icon,
.admin-shell .admin-user-menu__utility .theme-switch__icon svg {
  width: 1.2rem !important;
  height: 1.2rem !important;
}

.admin-shell .admin-user-menu__utility :where(select, [data-theme-select], .theme-switch:not(.theme-switch--icon) select) {
  display: none !important;
}

.admin-shell .admin-user-menu__utility > .admin-locale-switch.locale-switch {
  min-height: 2.75rem !important;
  padding: 0.18rem !important;
  gap: 0.16rem !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.08) !important;
}

.admin-shell .admin-user-menu__utility > .admin-locale-switch.locale-switch a {
  min-width: 2.45rem !important;
  min-height: 2.35rem !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  color: #1e3a8a !important;
}

.admin-shell .admin-user-menu__utility > .admin-locale-switch.locale-switch a.is-active,
.admin-shell .admin-user-menu__utility > .admin-locale-switch.locale-switch a.active {
  color: #ffffff !important;
  background: #1d4ed8 !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2) !important;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__utility .theme-switch--icon,
html[data-theme="dark"] .admin-shell .admin-user-menu__utility > .admin-locale-switch.locale-switch {
  background: #111d32 !important;
  border-color: #334155 !important;
  color: #dbeafe !important;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__utility > .admin-locale-switch.locale-switch a {
  color: #dbeafe !important;
}

/* Admin mobile topbar fit guard: header controls must not overflow or hide the user menu on phones. */
@media (max-width: 760px) {
  .admin-shell .admin-topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.55rem !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .admin-shell .admin-topbar .brand-mini {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .admin-shell .admin-topbar .brand-mini h1,
  .admin-shell .admin-topbar .brand-mini p {
    max-width: 9.5rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .admin-shell .admin-topbar .admin-mega-nav {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .admin-shell .admin-topbar .user-meta {
    min-width: 0 !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.4rem !important;
    flex-wrap: nowrap !important;
  }

  .admin-shell .admin-help-trigger,
  .admin-shell .admin-user-menu__summary {
    flex: 0 0 auto !important;
  }

  .admin-shell .admin-user-menu__summary {
    max-width: min(52vw, 12rem) !important;
    min-width: 0 !important;
  }

  .admin-shell .admin-user-menu__name {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .admin-shell .admin-user-menu__panel {
    position: fixed !important;
    top: 4.85rem !important;
    left: max(0.75rem, env(safe-area-inset-left, 0px)) !important;
    right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    z-index: 120 !important;
  }
}

/* Admin mobile mega panel fit guard: dropdown panels must stay usable inside narrow screens. */
@media (max-width: 760px) {
  .admin-shell .admin-mega-nav__panel {
    position: fixed !important;
    top: 8.9rem !important;
    left: max(0.75rem, env(safe-area-inset-left, 0px)) !important;
    right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 10rem - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 119 !important;
  }

  .admin-shell .admin-mega-nav__panel section {
    min-width: 0 !important;
  }

  .admin-shell .admin-mega-nav__panel a {
    min-height: 2.85rem !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .admin-shell .admin-mega-nav__panel h2 {
    position: sticky !important;
    top: 0 !important;
    z-index: 1 !important;
    background: inherit !important;
  }
}

/* Auth mobile viewport fit guard: login must stay compact, readable and touch-friendly on phones. */
@media (max-width: 760px) {
  .auth-bg .auth-shell {
    width: min(100%, calc(100vw - 1rem)) !important;
    padding: 0.5rem !important;
  }

  .auth-bg .auth-card-minimal {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    padding: clamp(0.85rem, 4vw, 1rem) !important;
    border-radius: 1.05rem !important;
    overflow: hidden !important;
  }

  .auth-bg .auth-minimal-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    min-width: 0 !important;
  }

  .auth-bg .auth-product-hero-compact {
    min-height: auto !important;
    padding: 1rem !important;
    border-radius: 0.95rem !important;
  }

  .auth-bg .auth-product-hero-compact .auth-product-copy h2 {
    max-width: 11ch !important;
    font-size: clamp(2rem, 11vw, 3.1rem) !important;
    line-height: 0.94 !important;
  }

  .auth-bg .auth-login-column,
  .auth-bg .auth-entry,
  .auth-bg .stacked-form {
    min-width: 0 !important;
    width: 100% !important;
  }

  .auth-bg .auth-password-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .auth-bg .auth-password-toggle {
    min-width: 4.75rem !important;
    min-height: 2.75rem !important;
    white-space: nowrap !important;
  }

  .auth-bg .auth-access-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }
}

/* Public mobile menu viewport guard: hamburger menu must stay inside phone viewport and scroll safely. */
@media (max-width: 820px) {
  .public-header nav.public-menu.is-open,
  .public-header nav.public-menu:not([hidden]) {
    position: fixed !important;
    top: 4.65rem !important;
    left: max(0.75rem, env(safe-area-inset-left, 0px)) !important;
    right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 5.5rem - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .public-header nav.public-menu .public-menu-groups,
  .public-header nav.public-menu .public-menu-column,
  .public-header nav.public-menu .public-menu-group,
  .public-header nav.public-menu .public-menu-submenu {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .public-header nav.public-menu .public-menu-submenu:not([hidden]) {
    max-height: none !important;
    overflow: visible !important;
  }

  .public-header nav.public-menu .public-menu-link,
  .public-header nav.public-menu .public-menu-group-title {
    min-height: 2.85rem !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* Admin user menu icon-only hard guard: remove visual dropdown and keep locales to the right. */
.admin-shell .admin-user-menu__utility.admin-user-menu__utility--icon-theme {
  display: inline-grid !important;
  grid-template-columns: 2.75rem max-content !important;
  align-items: center !important;
  justify-content: end !important;
  justify-self: end !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  gap: 0.55rem !important;
}

.admin-shell .admin-user-menu__utility.admin-user-menu__utility--icon-theme .theme-switch--icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.admin-shell .admin-user-menu__utility.admin-user-menu__utility--icon-theme > .admin-locale-switch.locale-switch {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
}

.admin-shell .admin-user-menu__utility.admin-user-menu__utility--icon-theme :where(select, [data-theme-select], .theme-switch:not(.theme-switch--icon)) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.admin-shell .admin-user-menu__utility.admin-user-menu__utility--icon-theme .theme-switch--icon + .admin-locale-switch.locale-switch {
  margin-left: 0 !important;
}

@media (max-width: 520px) {
  .admin-shell .admin-user-menu__utility.admin-user-menu__utility--icon-theme {
    grid-template-columns: 2.65rem max-content !important;
    gap: 0.45rem !important;
  }

  .admin-shell .admin-user-menu__utility.admin-user-menu__utility--icon-theme > .admin-locale-switch.locale-switch a {
    min-width: 2.25rem !important;
    min-height: 2.25rem !important;
  }
}

/* Admin user menu final preference rail: no Dia/Noche dropdown, just icon plus locales. */
.admin-shell .admin-user-menu__panel :where(.theme-switch:not(.theme-switch--icon), select[name="theme"], select[name="color_scheme"], select[data-theme-mode], [data-theme-select]) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.admin-shell .admin-user-menu__panel .admin-user-menu__utility {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.55rem !important;
  width: 100% !important;
}

.admin-shell .admin-user-menu__panel .theme-switch--icon {
  flex: 0 0 2.75rem !important;
}

.admin-shell .admin-user-menu__panel .admin-locale-switch.locale-switch {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0.18rem !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

.admin-shell .admin-user-menu__panel .admin-locale-switch.locale-switch a {
  min-width: 2.35rem !important;
  min-height: 2.35rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  color: #1e3a8a !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-decoration: none !important;
}

.admin-shell .admin-user-menu__panel .admin-locale-switch.locale-switch a:hover,
.admin-shell .admin-user-menu__panel .admin-locale-switch.locale-switch a:focus-visible {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.admin-shell .admin-user-menu__panel .admin-locale-switch.locale-switch a.is-active,
.admin-shell .admin-user-menu__panel .admin-locale-switch.locale-switch a.active {
  color: #ffffff !important;
  background: #1d4ed8 !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22) !important;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__panel .admin-locale-switch.locale-switch {
  background: #111d32 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__panel .admin-locale-switch.locale-switch a {
  color: #dbeafe !important;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__panel .admin-locale-switch.locale-switch a:hover,
html[data-theme="dark"] .admin-shell .admin-user-menu__panel .admin-locale-switch.locale-switch a:focus-visible {
  background: #1e3a8a !important;
  color: #ffffff !important;
}

/* Public plan-complete multichannel capture: WhatsApp and corporate email stay visible without long copy. */
.public-shell .plan-complete-channel-strip,
.public-shell .signup-complete-channel-strip {
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
  border-color: rgba(37, 99, 235, 0.2);
  background:
    radial-gradient(circle at 100% 0, rgba(96, 165, 250, 0.2), transparent 22rem),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.public-shell .plan-complete-channel-strip .section-heading {
  width: 100%;
  max-width: none;
}

.public-shell .plan-complete-channel-grid,
.public-shell .signup-complete-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.1rem);
}

.public-shell .plan-complete-channel-grid article,
.public-shell .signup-complete-channel-grid article {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  padding: clamp(0.9rem, 1.8vw, 1.2rem);
  border: 1px solid rgba(147, 197, 253, 0.84);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(30, 64, 175, 0.08);
}

.public-shell .plan-complete-channel-grid span,
.public-shell .signup-complete-channel-grid span {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.8rem;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.public-shell .plan-complete-channel-grid strong,
.public-shell .signup-complete-channel-grid strong {
  color: #07142f;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.12;
}

.public-shell .plan-complete-channel-grid p,
.public-shell .signup-complete-channel-grid p {
  margin: 0;
  color: #2f4e6f;
  line-height: 1.42;
}

.public-shell .plan-complete-channel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.public-shell .signup-complete-channel-strip {
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  align-items: center;
}

@media (max-width: 900px) {
  .public-shell .plan-complete-channel-grid,
  .public-shell .signup-complete-channel-grid,
  .public-shell .signup-complete-channel-strip {
    grid-template-columns: 1fr;
  }

  .public-shell .plan-complete-channel-actions,
  .public-shell .plan-complete-channel-actions .btn {
    width: 100%;
  }
}

html[data-theme="dark"] .public-shell .plan-complete-channel-strip,
html[data-theme="dark"] .public-shell .signup-complete-channel-strip {
  border-color: rgba(96, 165, 250, 0.32);
  background:
    radial-gradient(circle at 100% 0, rgba(96, 165, 250, 0.16), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
}

html[data-theme="dark"] .public-shell .plan-complete-channel-grid article,
html[data-theme="dark"] .public-shell .signup-complete-channel-grid article {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(15, 23, 42, 0.76);
}

html[data-theme="dark"] .public-shell .plan-complete-channel-grid strong,
html[data-theme="dark"] .public-shell .signup-complete-channel-grid strong {
  color: #f8fafc;
}

html[data-theme="dark"] .public-shell .plan-complete-channel-grid p,
html[data-theme="dark"] .public-shell .signup-complete-channel-grid p {
  color: #cbd5e1;
}

/* Work quick one-screen mobile guard: create a work order from phone without scanning a long form. */
.admin-shell .work-quick-create-panel {
  scroll-margin-top: 6rem !important;
}

.admin-shell .work-quick-create-presets {
  align-items: stretch !important;
}

.admin-shell .work-quick-create-presets button {
  min-height: 2.8rem !important;
  border-radius: 999px !important;
  font-weight: 950 !important;
}

@media (max-width: 760px) {
  .admin-shell .work-quick-create-panel {
    margin-inline: -0.15rem !important;
    padding: 0.9rem !important;
    border-radius: 1.1rem !important;
    border: 1px solid #bfdbfe !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    box-shadow: 0 18px 45px rgba(30, 64, 175, 0.1) !important;
  }

  .admin-shell .work-quick-create-panel .section-heading,
  .admin-shell .work-quick-create-panel .form-hint,
  .admin-shell .work-quick-create-panel .help-text {
    max-width: 100% !important;
  }

  .admin-shell .work-quick-create-panel .section-heading :is(p) {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
  }

  .admin-shell .work-quick-create-presets {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    margin-bottom: 0.75rem !important;
  }

  .admin-shell .work-quick-create-presets button {
    width: 100% !important;
    min-height: 3rem !important;
    padding-inline: 0.5rem !important;
    white-space: normal !important;
    line-height: 1.12 !important;
  }

  .admin-shell .work-quick-create-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
  }

  .admin-shell .work-quick-create-form label {
    display: grid !important;
    gap: 0.32rem !important;
    margin: 0 !important;
  }

  .admin-shell .work-quick-create-form label:has(#quick_title),
  .admin-shell .work-quick-create-form label:has(#customer_id),
  .admin-shell .work-quick-create-form label:has(select[name="customer_id"]) {
    padding: 0.72rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 0.95rem !important;
    background: #eff6ff !important;
  }

  .admin-shell .work-quick-create-form .work-quick-create-note {
    order: 2 !important;
    padding: 0.72rem !important;
    border-radius: 0.95rem !important;
    background: #f8fafc !important;
    border: 1px solid #dbeafe !important;
  }

  .admin-shell .work-quick-create-form .work-quick-create-note textarea {
    min-height: 5.2rem !important;
  }

  .admin-shell .work-quick-create-form :where(input, select, textarea) {
    font-size: 1rem !important;
  }

  .admin-shell .work-quick-create-actions {
    margin-top: 0.15rem !important;
  }

  .admin-shell .work-quick-create-actions .btn,
  .admin-shell .work-quick-create-actions button {
    min-height: 3.05rem !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 420px) {
  .admin-shell .work-quick-create-presets {
    grid-template-columns: 1fr !important;
  }
}

html[data-theme="dark"] .admin-shell .work-quick-create-panel {
  border-color: rgba(96, 165, 250, 0.36) !important;
  background: linear-gradient(180deg, #111d32 0%, #0f172a 100%) !important;
}

html[data-theme="dark"] .admin-shell .work-quick-create-form label:has(#quick_title),
html[data-theme="dark"] .admin-shell .work-quick-create-form label:has(#customer_id),
html[data-theme="dark"] .admin-shell .work-quick-create-form label:has(select[name="customer_id"]),
html[data-theme="dark"] .admin-shell .work-quick-create-form .work-quick-create-note {
  border-color: rgba(96, 165, 250, 0.34) !important;
  background: rgba(30, 64, 175, 0.18) !important;
}

/* Admin user menu preference rail v2: compact icon plus languages, never a form row. */
.admin-shell .admin-user-menu__panel .admin-user-menu__utility,
.admin-shell .admin-user-menu__panel .admin-user-menu__utility.admin-user-menu__utility--icon-theme {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  justify-content: flex-start !important;
  justify-self: start !important;
  align-self: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0.5rem !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.admin-shell .admin-user-menu__panel .admin-user-menu__utility :where(select, option, [role="combobox"], [data-theme-select], .theme-switch:not(.theme-switch--icon)) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
}

.admin-shell .admin-user-menu__panel .admin-user-menu__utility .theme-switch--icon {
  flex: 0 0 2.65rem !important;
  inline-size: 2.65rem !important;
  block-size: 2.65rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid #bfdbfe !important;
  background: #f8fbff !important;
  color: #1e40af !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12) !important;
}

.admin-shell .admin-user-menu__panel .admin-user-menu__utility .theme-switch--icon svg {
  inline-size: 1.15rem !important;
  block-size: 1.15rem !important;
  stroke: currentColor !important;
}

.admin-shell .admin-user-menu__panel .admin-user-menu__utility > .admin-locale-switch.locale-switch,
.admin-shell .admin-user-menu__panel .admin-user-menu__utility.admin-user-menu__utility--icon-theme > .admin-locale-switch.locale-switch {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  margin: 0 !important;
  padding: 0.16rem !important;
  gap: 0.12rem !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

.admin-shell .admin-user-menu__panel .admin-user-menu__utility > .admin-locale-switch.locale-switch a {
  min-width: 2.3rem !important;
  min-height: 2.3rem !important;
  padding: 0 !important;
  border-radius: 999px !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  color: #1e3a8a !important;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__panel .admin-user-menu__utility .theme-switch--icon {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #bfdbfe !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .admin-shell .admin-user-menu__panel .admin-user-menu__utility > .admin-locale-switch.locale-switch {
  background: #0f172a !important;
  border-color: #334155 !important;
}
/* Subscription mobile renewal cards guard: recurring billing must be reviewed without reading a wide table. */
@media (max-width: 760px) {
  .admin-shell .table-wrap:has(.subscription-target-row) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-shell .table-wrap:has(.subscription-target-row) table,
  .admin-shell .table-wrap:has(.subscription-target-row) tbody {
    display: block !important;
    width: 100% !important;
  }

  .admin-shell .table-wrap:has(.subscription-target-row) thead,
  .admin-shell .table-wrap:has(.subscription-target-row) caption.sr-only {
    display: none !important;
  }

  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row {
    display: grid !important;
    gap: 0.68rem !important;
    width: 100% !important;
    margin: 0 0 0.95rem !important;
    padding: 1rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 1.15rem !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
  }

  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td {
    display: grid !important;
    grid-template-columns: minmax(6.7rem, 39%) 1fr !important;
    align-items: start !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0f172a !important;
    white-space: normal !important;
  }

  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td::before {
    content: "" !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td:nth-child(1)::before { content: "Cliente" !important; }
  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td:nth-child(2)::before { content: "Plan" !important; }
  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td:nth-child(3)::before { content: "Gremio" !important; }
  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td:nth-child(4)::before { content: "Precio" !important; }
  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td:nth-child(5)::before { content: "Estado" !important; }
  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td:nth-child(6)::before { content: "Factura" !important; }
  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td:nth-child(7)::before { content: "Acciones" !important; }

  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td:nth-child(1),
  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td:nth-child(4) {
    font-size: 1.02rem !important;
    font-weight: 850 !important;
    line-height: 1.28 !important;
  }

  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td:nth-child(7) {
    grid-template-columns: 1fr !important;
    gap: 0.78rem !important;
    padding-top: 0.85rem !important;
    border-top: 1px solid #dbeafe !important;
  }

  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td:nth-child(7) form,
  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td:nth-child(7) .inline-actions {
    display: grid !important;
    width: 100% !important;
    gap: 0.55rem !important;
  }

  .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td:nth-child(7) :where(.btn, button, a) {
    width: 100% !important;
    min-height: 2.9rem !important;
    justify-content: center !important;
  }

  .admin-shell .table-wrap:has(.subscription-target-row) form[aria-label="Facturar suscripción"] button {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2) !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td {
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td::before {
    color: #93c5fd !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.subscription-target-row) tr.subscription-target-row td:nth-child(7) {
    border-top-color: rgba(147, 197, 253, 0.28) !important;
  }
}

/* Trace mobile audit cards guard: action logs must be auditable without a wide table. */
@media (max-width: 760px) {
  .admin-shell .table-wrap:has(.trace-target-row) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-shell .table-wrap:has(.trace-target-row) table,
  .admin-shell .table-wrap:has(.trace-target-row) tbody {
    display: block !important;
    width: 100% !important;
  }

  .admin-shell .table-wrap:has(.trace-target-row) thead,
  .admin-shell .table-wrap:has(.trace-target-row) caption.sr-only {
    display: none !important;
  }

  .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row {
    display: grid !important;
    gap: 0.68rem !important;
    width: 100% !important;
    margin: 0 0 0.95rem !important;
    padding: 1rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 1.15rem !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
  }

  .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td {
    display: grid !important;
    grid-template-columns: minmax(6.7rem, 39%) 1fr !important;
    align-items: start !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0f172a !important;
    white-space: normal !important;
  }

  .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td::before {
    content: "" !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td:nth-child(1)::before { content: "Fecha" !important; }
  .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td:nth-child(2)::before { content: "Quien" !important; }
  .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td:nth-child(3)::before { content: "Accion" !important; }
  .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td:nth-child(4)::before { content: "Cambio" !important; }
  .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td:nth-child(5)::before { content: "Cliente" !important; }
  .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td:nth-child(6)::before { content: "Vista" !important; }
  .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td:nth-child(7)::before { content: "Detalle" !important; }

  .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td:nth-child(2) strong,
  .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td:nth-child(3) {
    font-size: 1.01rem !important;
    font-weight: 850 !important;
    line-height: 1.28 !important;
  }

  .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td:nth-child(7) {
    grid-template-columns: 1fr !important;
    gap: 0.68rem !important;
    padding-top: 0.85rem !important;
    border-top: 1px solid #dbeafe !important;
  }

  .admin-shell .table-wrap:has(.trace-target-row) .trace-detail-disclosure {
    width: 100% !important;
    border-radius: 0.9rem !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    padding: 0.65rem !important;
  }

  .admin-shell .table-wrap:has(.trace-target-row) .trace-detail-disclosure summary {
    min-height: 2.65rem !important;
    display: flex !important;
    align-items: center !important;
    color: #1d4ed8 !important;
    font-weight: 900 !important;
  }

  .admin-shell .table-wrap:has(.trace-target-row) .trace-detail-disclosure code {
    display: block !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td {
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td::before {
    color: #93c5fd !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.trace-target-row) tr.trace-target-row td:nth-child(7) {
    border-top-color: rgba(147, 197, 253, 0.28) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.trace-target-row) .trace-detail-disclosure {
    background: rgba(37, 99, 235, 0.16) !important;
    border-color: rgba(147, 197, 253, 0.3) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.trace-target-row) .trace-detail-disclosure summary {
    color: #bfdbfe !important;
  }
}

/* Security mobile event cards guard: security signals must be reviewable without a wide table. */
@media (max-width: 760px) {
  .admin-shell .table-wrap:has(.security-event-target-row) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-shell .table-wrap:has(.security-event-target-row) table,
  .admin-shell .table-wrap:has(.security-event-target-row) tbody {
    display: block !important;
    width: 100% !important;
  }

  .admin-shell .table-wrap:has(.security-event-target-row) thead,
  .admin-shell .table-wrap:has(.security-event-target-row) caption.sr-only {
    display: none !important;
  }

  .admin-shell .table-wrap:has(.security-event-target-row) tr.security-event-target-row {
    display: grid !important;
    gap: 0.68rem !important;
    width: 100% !important;
    margin: 0 0 0.95rem !important;
    padding: 1rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 1.15rem !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
  }

  .admin-shell .table-wrap:has(.security-event-target-row) tr.security-event-target-row td {
    display: grid !important;
    grid-template-columns: minmax(6.9rem, 39%) 1fr !important;
    align-items: start !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0f172a !important;
    white-space: normal !important;
  }

  .admin-shell .table-wrap:has(.security-event-target-row) tr.security-event-target-row td::before {
    content: "" !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .admin-shell .table-wrap:has(.security-event-target-row) tr.security-event-target-row td:nth-child(1)::before { content: "Fecha" !important; }
  .admin-shell .table-wrap:has(.security-event-target-row) tr.security-event-target-row td:nth-child(2)::before { content: "Senal" !important; }
  .admin-shell .table-wrap:has(.security-event-target-row) tr.security-event-target-row td:nth-child(3)::before { content: "Origen" !important; }
  .admin-shell .table-wrap:has(.security-event-target-row) tr.security-event-target-row td:nth-child(4)::before { content: "Detalle" !important; }

  .admin-shell .table-wrap:has(.security-event-target-row) tr.security-event-target-row td:nth-child(2),
  .admin-shell .table-wrap:has(.security-event-target-row) tr.security-event-target-row td:nth-child(3) {
    font-size: 1.01rem !important;
    font-weight: 850 !important;
    line-height: 1.28 !important;
  }

  .admin-shell .table-wrap:has(.security-event-target-row) tr.security-event-target-row td:nth-child(4) {
    grid-template-columns: 1fr !important;
    gap: 0.68rem !important;
    padding-top: 0.85rem !important;
    border-top: 1px solid #dbeafe !important;
  }

  .admin-shell .table-wrap:has(.security-event-target-row) .security-detail-disclosure {
    width: 100% !important;
    border-radius: 0.9rem !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    padding: 0.65rem !important;
  }

  .admin-shell .table-wrap:has(.security-event-target-row) .security-detail-disclosure summary {
    min-height: 2.65rem !important;
    display: flex !important;
    align-items: center !important;
    color: #1d4ed8 !important;
    font-weight: 900 !important;
  }

  .admin-shell .table-wrap:has(.security-event-target-row) .security-detail-disclosure code {
    display: block !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell .table-wrap:has(.security-event-target-row) tr.security-event-target-row {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.security-event-target-row) tr.security-event-target-row td {
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.security-event-target-row) tr.security-event-target-row td::before {
    color: #93c5fd !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.security-event-target-row) tr.security-event-target-row td:nth-child(4) {
    border-top-color: rgba(147, 197, 253, 0.28) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.security-event-target-row) .security-detail-disclosure {
    background: rgba(37, 99, 235, 0.16) !important;
    border-color: rgba(147, 197, 253, 0.3) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.security-event-target-row) .security-detail-disclosure summary {
    color: #bfdbfe !important;
  }
}

/* User access mobile cards guard: access lists must be usable without a wide table. */
@media (max-width: 760px) {
  .admin-shell .table-wrap:has(.client-user-target-row),
  .admin-shell .table-wrap:has(.user-access-target-row) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-shell .table-wrap:has(.client-user-target-row) table,
  .admin-shell .table-wrap:has(.client-user-target-row) tbody,
  .admin-shell .table-wrap:has(.user-access-target-row) table,
  .admin-shell .table-wrap:has(.user-access-target-row) tbody {
    display: block !important;
    width: 100% !important;
  }

  .admin-shell .table-wrap:has(.client-user-target-row) thead,
  .admin-shell .table-wrap:has(.client-user-target-row) caption.sr-only,
  .admin-shell .table-wrap:has(.user-access-target-row) thead,
  .admin-shell .table-wrap:has(.user-access-target-row) caption.sr-only {
    display: none !important;
  }

  .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row,
  .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row {
    display: grid !important;
    gap: 0.68rem !important;
    width: 100% !important;
    margin: 0 0 0.95rem !important;
    padding: 1rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 1.15rem !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
  }

  .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row td,
  .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td {
    display: grid !important;
    grid-template-columns: minmax(6.7rem, 39%) 1fr !important;
    align-items: start !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0f172a !important;
    white-space: normal !important;
  }

  .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row td::before,
  .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td::before {
    content: "" !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row td:nth-child(1)::before { content: "Cuenta" !important; }
  .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row td:nth-child(2)::before { content: "Cliente" !important; }
  .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row td:nth-child(3)::before { content: "Plan" !important; }
  .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row td:nth-child(4)::before { content: "Gremio" !important; }
  .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row td:nth-child(5)::before { content: "Estado" !important; }
  .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row td:nth-child(6)::before { content: "Accion" !important; }

  .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td:nth-child(1)::before { content: "Nombre" !important; }
  .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td:nth-child(2)::before { content: "Usuario" !important; }
  .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td:nth-child(3)::before { content: "Rol" !important; }
  .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td:nth-child(4)::before { content: "Vinculo" !important; }
  .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td:nth-child(5)::before { content: "Email" !important; }
  .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td:nth-child(6)::before { content: "Activo" !important; }
  .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td:nth-child(7)::before { content: "Acciones" !important; }

  .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row td:nth-child(1) strong,
  .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td:nth-child(1),
  .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td:nth-child(2) {
    font-size: 1.01rem !important;
    font-weight: 850 !important;
    line-height: 1.28 !important;
  }

  .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row td:nth-child(6),
  .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td:nth-child(7) {
    grid-template-columns: 1fr !important;
    gap: 0.78rem !important;
    padding-top: 0.85rem !important;
    border-top: 1px solid #dbeafe !important;
  }

  .admin-shell .table-wrap:has(.client-user-target-row) .client-link-form,
  .admin-shell .table-wrap:has(.user-access-target-row) .inline-actions {
    display: grid !important;
    width: 100% !important;
    gap: 0.55rem !important;
  }

  .admin-shell .table-wrap:has(.client-user-target-row) :where(.btn, button, select),
  .admin-shell .table-wrap:has(.user-access-target-row) :where(.btn, button, select) {
    width: 100% !important;
    min-height: 2.9rem !important;
    justify-content: center !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row,
  html[data-theme="dark"] .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row td,
  html[data-theme="dark"] .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td {
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row td::before,
  html[data-theme="dark"] .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td::before {
    color: #93c5fd !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.client-user-target-row) tr.client-user-target-row td:nth-child(6),
html[data-theme="dark"] .admin-shell .table-wrap:has(.user-access-target-row) tr.user-access-target-row td:nth-child(7) {
    border-top-color: rgba(147, 197, 253, 0.28) !important;
  }
}

/* Trade request mobile cards guard: sector requests must be decidable without a wide table. */
@media (max-width: 760px) {
  .admin-shell .table-wrap:has(.trade-request-target-row) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-shell .table-wrap:has(.trade-request-target-row) table,
  .admin-shell .table-wrap:has(.trade-request-target-row) tbody {
    display: block !important;
    width: 100% !important;
  }

  .admin-shell .table-wrap:has(.trade-request-target-row) thead,
  .admin-shell .table-wrap:has(.trade-request-target-row) caption.sr-only {
    display: none !important;
  }

  .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row {
    display: grid !important;
    gap: 0.68rem !important;
    width: 100% !important;
    margin: 0 0 0.95rem !important;
    padding: 1rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 1.15rem !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
  }

  .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td {
    display: grid !important;
    grid-template-columns: minmax(6.8rem, 38%) 1fr !important;
    align-items: start !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0f172a !important;
    white-space: normal !important;
  }

  .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td::before {
    content: "" !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td:nth-child(1)::before { content: "Prioridad" !important; }
  .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td:nth-child(2)::before { content: "Respuesta" !important; }
  .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td:nth-child(3)::before { content: "Gremio" !important; }
  .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td:nth-child(4)::before { content: "Solicitante" !important; }
  .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td:nth-child(5)::before { content: "Necesidad" !important; }
  .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td:nth-child(6)::before { content: "Estado" !important; }
  .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td:nth-child(7)::before { content: "Acciones" !important; }

  .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td:nth-child(3),
  .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td:nth-child(4),
  .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td:nth-child(5) {
    font-size: 1.01rem !important;
    font-weight: 850 !important;
    line-height: 1.28 !important;
  }

  .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td:nth-child(7) {
    grid-template-columns: 1fr !important;
    gap: 0.78rem !important;
    padding-top: 0.85rem !important;
    border-top: 1px solid #dbeafe !important;
  }

  .admin-shell .table-wrap:has(.trade-request-target-row) .module-request-actions {
    display: grid !important;
    width: 100% !important;
    gap: 0.55rem !important;
  }

  .admin-shell .table-wrap:has(.trade-request-target-row) .module-request-actions form,
  .admin-shell .table-wrap:has(.trade-request-target-row) .module-request-actions button {
    width: 100% !important;
  }

  .admin-shell .table-wrap:has(.trade-request-target-row) .module-request-actions button {
    min-height: 2.9rem !important;
    justify-content: center !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td {
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td::before {
    color: #93c5fd !important;
  }

html[data-theme="dark"] .admin-shell .table-wrap:has(.trade-request-target-row) tr.trade-request-target-row td:nth-child(7) {
    border-top-color: rgba(147, 197, 253, 0.28) !important;
  }
}

/* Support mobile ticket cards guard: support cases must be handled from phone without dense metadata. */
@media (max-width: 760px) {
  .admin-shell .support-ticket-list {
    gap: 0.95rem !important;
  }

  .admin-shell .support-ticket-card {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    width: 100% !important;
    padding: 1rem !important;
    border-radius: 1.15rem !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
  }

  .admin-shell .support-ticket-main {
    gap: 0.6rem !important;
  }

  .admin-shell .support-ticket-card h4 {
    font-size: 1.06rem !important;
    line-height: 1.22 !important;
  }

  .admin-shell .support-ticket-card p {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
  }

  .admin-shell .support-ticket-meta {
    grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr) !important;
    gap: 0.45rem 0.65rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid #dbeafe !important;
  }

  .admin-shell .support-ticket-meta dt {
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .admin-shell .support-ticket-meta dd {
    color: #0f172a !important;
    font-size: 0.94rem !important;
    line-height: 1.35 !important;
  }

  .admin-shell .support-ticket-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
    padding-top: 0.85rem !important;
    border-top: 1px solid #dbeafe !important;
  }

  .admin-shell .support-ticket-actions form,
  .admin-shell .support-ticket-actions button {
    width: 100% !important;
  }

  .admin-shell .support-ticket-actions button {
    min-height: 2.9rem !important;
    justify-content: center !important;
  }
}

@media (max-width: 420px) {
  .admin-shell .support-ticket-meta {
    grid-template-columns: 1fr !important;
    gap: 0.18rem !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell .support-ticket-card {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .admin-shell .support-ticket-meta,
  html[data-theme="dark"] .admin-shell .support-ticket-actions {
    border-top-color: rgba(147, 197, 253, 0.28) !important;
  }

  html[data-theme="dark"] .admin-shell .support-ticket-meta dt {
    color: #93c5fd !important;
  }

  html[data-theme="dark"] .admin-shell .support-ticket-meta dd,
  html[data-theme="dark"] .admin-shell .support-ticket-card p {
    color: #e5edf9 !important;
  }
}

/* Import mobile safe flow guard: CSV imports must be simulated and confirmed comfortably from phone. */
@media (max-width: 760px) {
  .admin-shell .import-guided-next-step,
  .admin-shell .import-result-guide,
  .admin-shell .import-final-guard-panel,
  .admin-shell .import-preview-issues,
  .admin-shell form[aria-label="Importar datos históricos"] {
    width: 100% !important;
    min-width: 0 !important;
    padding: 1rem !important;
    border-radius: 1.15rem !important;
  }

  .admin-shell .import-guided-next-step {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .admin-shell .import-guided-next-step .btn,
  .admin-shell .import-final-guard-panel .btn {
    width: 100% !important;
    min-height: 2.95rem !important;
    justify-content: center !important;
  }

  .admin-shell .import-result-guide ol,
  .admin-shell .import-final-guard-grid {
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
  }

  .admin-shell .import-final-guard-card {
    padding: 0.85rem !important;
  }

  .admin-shell form[aria-label="Importar datos históricos"] {
    border: 1px solid #bfdbfe !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
  }

  .admin-shell form[aria-label="Importar datos históricos"] label {
    color: #1d4ed8 !important;
    font-size: 0.82rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
  }

  .admin-shell form[aria-label="Importar datos históricos"] input[type="file"] {
    width: 100% !important;
    min-height: 3rem !important;
    padding: 0.7rem !important;
    border: 1px dashed #93c5fd !important;
    border-radius: 0.95rem !important;
    background: #eff6ff !important;
    color: #0f172a !important;
  }

  .admin-shell .import-mode-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }

  .admin-shell .import-mode-actions button {
    width: 100% !important;
    min-height: 3rem !important;
    justify-content: center !important;
    white-space: normal !important;
  }

  .admin-shell .import-preview-issues ul {
    display: grid !important;
    gap: 0.55rem !important;
    padding-left: 0 !important;
    list-style: none !important;
  }

  .admin-shell .import-preview-issues li {
    display: grid !important;
    gap: 0.24rem !important;
    padding: 0.7rem !important;
    border: 1px solid #fde68a !important;
    border-radius: 0.85rem !important;
    background: #fffbeb !important;
  }

  .admin-shell .import-preview-issues li span {
    color: #92400e !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
  }

  .admin-shell .import-preview-issues li strong {
    color: #0f172a !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell form[aria-label="Importar datos históricos"],
  html[data-theme="dark"] .admin-shell .import-final-guard-panel,
  html[data-theme="dark"] .admin-shell .import-guided-next-step,
  html[data-theme="dark"] .admin-shell .import-result-guide {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .admin-shell form[aria-label="Importar datos históricos"] label {
    color: #93c5fd !important;
  }

  html[data-theme="dark"] .admin-shell form[aria-label="Importar datos históricos"] input[type="file"] {
    border-color: rgba(147, 197, 253, 0.48) !important;
    background: rgba(30, 64, 175, 0.22) !important;
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .admin-shell .import-preview-issues li {
    border-color: rgba(251, 191, 36, 0.38) !important;
    background: rgba(146, 64, 14, 0.22) !important;
  }

  html[data-theme="dark"] .admin-shell .import-preview-issues li span {
    color: #fde68a !important;
  }

  html[data-theme="dark"] .admin-shell .import-preview-issues li strong {
    color: #f8fafc !important;
  }
}

/* Referral mobile admin cards guard: codes and rewards must be usable without wide tables. */
@media (max-width: 760px) {
  .admin-shell .table-wrap:has(.referral-code-target-row),
  .admin-shell .table-wrap:has(.referral-reward-target-row) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-shell .table-wrap:has(.referral-code-target-row) table,
  .admin-shell .table-wrap:has(.referral-code-target-row) tbody,
  .admin-shell .table-wrap:has(.referral-reward-target-row) table,
  .admin-shell .table-wrap:has(.referral-reward-target-row) tbody {
    display: block !important;
    width: 100% !important;
  }

  .admin-shell .table-wrap:has(.referral-code-target-row) thead,
  .admin-shell .table-wrap:has(.referral-reward-target-row) thead {
    display: none !important;
  }

  .admin-shell .table-wrap:has(.referral-code-target-row) tr.referral-code-target-row,
  .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row {
    display: grid !important;
    gap: 0.68rem !important;
    width: 100% !important;
    margin: 0 0 0.95rem !important;
    padding: 1rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 1.15rem !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
  }

  .admin-shell .table-wrap:has(.referral-code-target-row) tr.referral-code-target-row td,
  .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td {
    display: grid !important;
    grid-template-columns: minmax(6.8rem, 38%) 1fr !important;
    align-items: start !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0f172a !important;
    white-space: normal !important;
  }

  .admin-shell .table-wrap:has(.referral-code-target-row) tr.referral-code-target-row td::before,
  .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td::before {
    content: "" !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .admin-shell .table-wrap:has(.referral-code-target-row) tr.referral-code-target-row td:nth-child(1)::before { content: "Cliente" !important; }
  .admin-shell .table-wrap:has(.referral-code-target-row) tr.referral-code-target-row td:nth-child(2)::before { content: "Codigo" !important; }
  .admin-shell .table-wrap:has(.referral-code-target-row) tr.referral-code-target-row td:nth-child(3)::before { content: "Enlace" !important; }
  .admin-shell .table-wrap:has(.referral-code-target-row) tr.referral-code-target-row td:nth-child(4)::before { content: "Plan" !important; }

  .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td:nth-child(1)::before { content: "Fecha" !important; }
  .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td:nth-child(2)::before { content: "Codigo" !important; }
  .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td:nth-child(3)::before { content: "Recomendador" !important; }
  .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td:nth-child(4)::before { content: "Invitado" !important; }
  .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td:nth-child(5)::before { content: "Credito" !important; }
  .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td:nth-child(6)::before { content: "Estado" !important; }
  .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td:nth-child(7)::before { content: "Acciones" !important; }

  .admin-shell .table-wrap:has(.referral-code-target-row) tr.referral-code-target-row td:nth-child(1),
  .admin-shell .table-wrap:has(.referral-code-target-row) tr.referral-code-target-row td:nth-child(2),
  .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td:nth-child(2),
  .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td:nth-child(5) {
    font-size: 1.01rem !important;
    font-weight: 850 !important;
    line-height: 1.28 !important;
  }

  .admin-shell .table-wrap:has(.referral-code-target-row) tr.referral-code-target-row td:nth-child(3) a {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td:nth-child(7) {
    grid-template-columns: 1fr !important;
    gap: 0.78rem !important;
    padding-top: 0.85rem !important;
    border-top: 1px solid #dbeafe !important;
  }

  .admin-shell .table-wrap:has(.referral-reward-target-row) .inline-actions {
    display: grid !important;
    width: 100% !important;
    gap: 0.55rem !important;
  }

  .admin-shell .table-wrap:has(.referral-reward-target-row) .inline-actions button {
    width: 100% !important;
    min-height: 2.9rem !important;
    justify-content: center !important;
    white-space: normal !important;
  }
}

@media (max-width: 420px) {
  .admin-shell .table-wrap:has(.referral-code-target-row) tr.referral-code-target-row td,
  .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td {
    grid-template-columns: 1fr !important;
    gap: 0.18rem !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell .table-wrap:has(.referral-code-target-row) tr.referral-code-target-row,
  html[data-theme="dark"] .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.referral-code-target-row) tr.referral-code-target-row td,
  html[data-theme="dark"] .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td {
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.referral-code-target-row) tr.referral-code-target-row td::before,
  html[data-theme="dark"] .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td::before {
    color: #93c5fd !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.referral-reward-target-row) tr.referral-reward-target-row td:nth-child(7) {
    border-top-color: rgba(147, 197, 253, 0.28) !important;
  }
}

/* Project cost mobile ledger cards guard: investment decisions must be readable from phone. */
@media (max-width: 760px) {
  .admin-shell .table-wrap:has(.project-cost-target-row) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-shell .table-wrap:has(.project-cost-target-row) table,
  .admin-shell .table-wrap:has(.project-cost-target-row) tbody {
    display: block !important;
    width: 100% !important;
  }

  .admin-shell .table-wrap:has(.project-cost-target-row) thead,
  .admin-shell .table-wrap:has(.project-cost-target-row) caption.sr-only {
    display: none !important;
  }

  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row {
    display: grid !important;
    gap: 0.68rem !important;
    width: 100% !important;
    margin: 0 0 0.95rem !important;
    padding: 1rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 1.15rem !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.12) !important;
  }

  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td {
    display: grid !important;
    grid-template-columns: minmax(6.8rem, 38%) 1fr !important;
    align-items: start !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0f172a !important;
  }

  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td::before {
    content: "" !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td:nth-child(1)::before { content: "Fecha" !important; }
  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td:nth-child(2)::before { content: "Gasto" !important; }
  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td:nth-child(3)::before { content: "Gremio" !important; }
  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td:nth-child(4)::before { content: "Importe" !important; }
  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td:nth-child(5)::before { content: "Reparto" !important; }
  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td:nth-child(6)::before { content: "Estado" !important; }
  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td:nth-child(7)::before { content: "Decision" !important; }

  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td:nth-child(2),
  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td:nth-child(4),
  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td:nth-child(5) {
    font-size: 1.01rem !important;
    font-weight: 850 !important;
    line-height: 1.28 !important;
  }

  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td:nth-child(7) {
    grid-template-columns: 1fr !important;
    gap: 0.78rem !important;
    padding-top: 0.85rem !important;
    border-top: 1px solid #dbeafe !important;
  }

  .admin-shell .table-wrap:has(.project-cost-target-row) .inline-actions {
    display: grid !important;
    width: 100% !important;
    gap: 0.55rem !important;
  }

  .admin-shell .table-wrap:has(.project-cost-target-row) .inline-actions select,
  .admin-shell .table-wrap:has(.project-cost-target-row) .inline-actions button {
    width: 100% !important;
    min-height: 2.9rem !important;
    justify-content: center !important;
  }
}

@media (max-width: 420px) {
  .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td {
    grid-template-columns: 1fr !important;
    gap: 0.18rem !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td {
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td::before {
    color: #93c5fd !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.project-cost-target-row) tr.project-cost-target-row td:nth-child(7) {
    border-top-color: rgba(147, 197, 253, 0.28) !important;
  }
}

/* VeriFactu mobile records cards guard: fiscal records must be reviewable without a wide table. */
@media (max-width: 760px) {
  .admin-shell .table-wrap:has(.verifactu-record-target-row) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-shell .table-wrap:has(.verifactu-record-target-row) table,
  .admin-shell .table-wrap:has(.verifactu-record-target-row) tbody {
    display: block !important;
    width: 100% !important;
  }

  .admin-shell .table-wrap:has(.verifactu-record-target-row) thead,
  .admin-shell .table-wrap:has(.verifactu-record-target-row) caption.sr-only {
    display: none !important;
  }

  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row {
    display: grid !important;
    gap: 0.68rem !important;
    width: 100% !important;
    margin: 0 0 0.95rem !important;
    padding: 1rem !important;
    border: 1px solid #bae6fd !important;
    border-radius: 1.15rem !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(14, 165, 233, 0.12) !important;
  }

  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td {
    display: grid !important;
    grid-template-columns: minmax(7.2rem, 40%) 1fr !important;
    align-items: start !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0f172a !important;
  }

  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td::before {
    content: "" !important;
    color: #0369a1 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td:nth-child(1)::before { content: "Fecha" !important; }
  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td:nth-child(2)::before { content: "Tipo" !important; }
  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td:nth-child(3)::before { content: "Factura" !important; }
  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td:nth-child(4)::before { content: "Cliente" !important; }
  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td:nth-child(5)::before { content: "Importe" !important; }
  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td:nth-child(6)::before { content: "Estado" !important; }
  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td:nth-child(7)::before { content: "Codigo" !important; }
  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td:nth-child(8)::before { content: "Anterior" !important; }
  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td:nth-child(9)::before { content: "Acciones" !important; }

  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td:nth-child(3),
  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td:nth-child(4),
  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td:nth-child(5) {
    font-size: 1.01rem !important;
    font-weight: 850 !important;
    line-height: 1.28 !important;
  }

  .admin-shell .table-wrap:has(.verifactu-record-target-row) .verifactu-code-disclosure {
    min-width: 0 !important;
  }

  .admin-shell .table-wrap:has(.verifactu-record-target-row) .verifactu-code-disclosure code {
    max-width: 100% !important;
  }

  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td:nth-child(9) {
    grid-template-columns: 1fr !important;
    gap: 0.78rem !important;
    padding-top: 0.85rem !important;
    border-top: 1px solid #dbeafe !important;
  }

  .admin-shell .table-wrap:has(.verifactu-record-target-row) .inline-actions {
    display: grid !important;
    width: 100% !important;
    gap: 0.55rem !important;
  }

  .admin-shell .table-wrap:has(.verifactu-record-target-row) .inline-actions .btn {
    width: 100% !important;
    min-height: 2.9rem !important;
    justify-content: center !important;
  }
}

@media (max-width: 420px) {
  .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td {
    grid-template-columns: 1fr !important;
    gap: 0.18rem !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row {
    border-color: rgba(56, 189, 248, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td {
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td::before {
    color: #7dd3fc !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.verifactu-record-target-row) tr.verifactu-record-target-row td:nth-child(9) {
    border-top-color: rgba(125, 211, 252, 0.28) !important;
  }
}

/* Dashboard mobile summary tables guard: first screen summaries must be readable without horizontal tables. */
@media (max-width: 760px) {
  .admin-shell .table-wrap:has(.dashboard-sector-target-row),
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-shell .table-wrap:has(.dashboard-sector-target-row) table,
  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tbody,
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) table,
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tbody {
    display: block !important;
    width: 100% !important;
  }

  .admin-shell .table-wrap:has(.dashboard-sector-target-row) thead,
  .admin-shell .table-wrap:has(.dashboard-sector-target-row) caption.sr-only,
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) thead,
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) caption.sr-only {
    display: none !important;
  }

  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row,
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row {
    display: grid !important;
    gap: 0.68rem !important;
    width: 100% !important;
    margin: 0 0 0.95rem !important;
    padding: 1rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 1.15rem !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.12) !important;
  }

  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td,
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row td {
    display: grid !important;
    grid-template-columns: minmax(7rem, 40%) 1fr !important;
    align-items: start !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0f172a !important;
  }

  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td::before,
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row td::before {
    content: "" !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(1)::before { content: "Gremio" !important; }
  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(2)::before { content: "Solicitudes" !important; }
  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(3)::before { content: "Clientes" !important; }
  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(4)::before { content: "Presupuestos" !important; }
  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(5)::before { content: "Partes" !important; }
  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(6)::before { content: "Albaranes" !important; }
  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(7)::before { content: "Suscripciones" !important; }
  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(8)::before { content: "Mensual" !important; }
  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(9)::before { content: "Cobrado" !important; }
  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(10)::before { content: "Acciones" !important; }

  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row td:nth-child(1)::before { content: "Cliente" !important; }
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row td:nth-child(2)::before { content: "Plan" !important; }
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row td:nth-child(3)::before { content: "Estado" !important; }
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row td:nth-child(4)::before { content: "Acciones" !important; }

  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(1),
  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(8),
  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(9),
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row td:nth-child(1),
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row td:nth-child(2) {
    font-size: 1.01rem !important;
    font-weight: 850 !important;
    line-height: 1.28 !important;
  }

  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(10),
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row td:nth-child(4) {
    grid-template-columns: 1fr !important;
    gap: 0.78rem !important;
    padding-top: 0.85rem !important;
    border-top: 1px solid #dbeafe !important;
  }

  .admin-shell .table-wrap:has(.dashboard-sector-target-row) .inline-actions,
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) .inline-actions {
    display: grid !important;
    width: 100% !important;
    gap: 0.55rem !important;
  }

  .admin-shell .table-wrap:has(.dashboard-sector-target-row) .inline-actions .btn,
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) .btn {
    width: 100% !important;
    min-height: 2.9rem !important;
    justify-content: center !important;
  }
}

@media (max-width: 420px) {
  .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td,
  .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row td {
    grid-template-columns: 1fr !important;
    gap: 0.18rem !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row,
  html[data-theme="dark"] .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td,
  html[data-theme="dark"] .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row td {
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td::before,
  html[data-theme="dark"] .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row td::before {
    color: #93c5fd !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.dashboard-sector-target-row) tr.dashboard-sector-target-row td:nth-child(10),
  html[data-theme="dark"] .admin-shell .table-wrap:has(.dashboard-plan-customer-target-row) tr.dashboard-plan-customer-target-row td:nth-child(4) {
    border-top-color: rgba(147, 197, 253, 0.28) !important;
  }
}

/* Billing events mobile cards guard: recent payment confirmations must be readable from phone. */
@media (max-width: 760px) {
  .admin-shell .table-wrap:has(.billing-event-target-row) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-shell .table-wrap:has(.billing-event-target-row) table,
  .admin-shell .table-wrap:has(.billing-event-target-row) tbody {
    display: block !important;
    width: 100% !important;
  }

  .admin-shell .table-wrap:has(.billing-event-target-row) thead,
  .admin-shell .table-wrap:has(.billing-event-target-row) caption.sr-only {
    display: none !important;
  }

  .admin-shell .table-wrap:has(.billing-event-target-row) tr.billing-event-target-row {
    display: grid !important;
    gap: 0.68rem !important;
    width: 100% !important;
    margin: 0 0 0.95rem !important;
    padding: 1rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 1.15rem !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.12) !important;
  }

  .admin-shell .table-wrap:has(.billing-event-target-row) tr.billing-event-target-row td {
    display: grid !important;
    grid-template-columns: minmax(7rem, 40%) 1fr !important;
    align-items: start !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0f172a !important;
  }

  .admin-shell .table-wrap:has(.billing-event-target-row) tr.billing-event-target-row td::before {
    content: "" !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .admin-shell .table-wrap:has(.billing-event-target-row) tr.billing-event-target-row td:nth-child(1)::before { content: "Fecha" !important; }
  .admin-shell .table-wrap:has(.billing-event-target-row) tr.billing-event-target-row td:nth-child(2)::before { content: "Tipo" !important; }
  .admin-shell .table-wrap:has(.billing-event-target-row) tr.billing-event-target-row td:nth-child(3)::before { content: "Estado" !important; }
  .admin-shell .table-wrap:has(.billing-event-target-row) tr.billing-event-target-row td:nth-child(4)::before { content: "Plan" !important; }

  .admin-shell .table-wrap:has(.billing-event-target-row) tr.billing-event-target-row td:nth-child(1),
  .admin-shell .table-wrap:has(.billing-event-target-row) tr.billing-event-target-row td:nth-child(3),
  .admin-shell .table-wrap:has(.billing-event-target-row) tr.billing-event-target-row td:nth-child(4) {
    font-size: 1.01rem !important;
    font-weight: 850 !important;
    line-height: 1.28 !important;
  }
}

@media (max-width: 420px) {
  .admin-shell .table-wrap:has(.billing-event-target-row) tr.billing-event-target-row td {
    grid-template-columns: 1fr !important;
    gap: 0.18rem !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell .table-wrap:has(.billing-event-target-row) tr.billing-event-target-row {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.billing-event-target-row) tr.billing-event-target-row td {
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .admin-shell .table-wrap:has(.billing-event-target-row) tr.billing-event-target-row td::before {
    color: #93c5fd !important;
  }
}

/* Document mobile amount summary guard: customer-facing totals must be readable without a wide table. */
@media (max-width: 760px) {
  .admin-shell .document-table:has(.document-line-target-row),
  .document-table:has(.document-line-target-row) {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  .admin-shell .document-table:has(.document-line-target-row) thead,
  .document-table:has(.document-line-target-row) thead,
  .admin-shell .document-table:has(.document-line-target-row) caption.sr-only,
  .document-table:has(.document-line-target-row) caption.sr-only {
    display: none !important;
  }

  .admin-shell .document-table:has(.document-line-target-row) tbody,
  .document-table:has(.document-line-target-row) tbody {
    display: block !important;
    width: 100% !important;
  }

  .admin-shell .document-table:has(.document-line-target-row) tr.document-line-target-row,
  .document-table:has(.document-line-target-row) tr.document-line-target-row {
    display: grid !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding: 1rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 1rem !important;
    background: #f8fbff !important;
  }

  .admin-shell .document-table:has(.document-line-target-row) tr.document-line-target-row td,
  .document-table:has(.document-line-target-row) tr.document-line-target-row td {
    display: grid !important;
    grid-template-columns: minmax(6rem, 36%) 1fr !important;
    align-items: start !important;
    gap: 0.55rem !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0f172a !important;
  }

  .admin-shell .document-table:has(.document-line-target-row) tr.document-line-target-row td::before,
  .document-table:has(.document-line-target-row) tr.document-line-target-row td::before {
    content: "" !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .admin-shell .document-table:has(.document-line-target-row) tr.document-line-target-row td:nth-child(1)::before,
  .document-table:has(.document-line-target-row) tr.document-line-target-row td:nth-child(1)::before { content: "Concepto" !important; }
  .admin-shell .document-table:has(.document-line-target-row) tr.document-line-target-row td:nth-child(2)::before,
  .document-table:has(.document-line-target-row) tr.document-line-target-row td:nth-child(2)::before { content: "Base" !important; }
  .admin-shell .document-table:has(.document-line-target-row) tr.document-line-target-row td:nth-child(3)::before,
  .document-table:has(.document-line-target-row) tr.document-line-target-row td:nth-child(3)::before { content: "IVA" !important; }
  .admin-shell .document-table:has(.document-line-target-row) tr.document-line-target-row td:nth-child(4)::before,
  .document-table:has(.document-line-target-row) tr.document-line-target-row td:nth-child(4)::before { content: "Total" !important; }

  .admin-shell .document-table:has(.document-line-target-row) tr.document-line-target-row td:nth-child(4),
  .document-table:has(.document-line-target-row) tr.document-line-target-row td:nth-child(4) {
    padding-top: 0.75rem !important;
    border-top: 1px solid #dbeafe !important;
    font-size: 1.12rem !important;
  }
}

@media (max-width: 420px) {
  .admin-shell .document-table:has(.document-line-target-row) tr.document-line-target-row td,
  .document-table:has(.document-line-target-row) tr.document-line-target-row td {
    grid-template-columns: 1fr !important;
    gap: 0.18rem !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell .document-table:has(.document-line-target-row) tr.document-line-target-row {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
  }

  html[data-theme="dark"] .admin-shell .document-table:has(.document-line-target-row) tr.document-line-target-row td {
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .admin-shell .document-table:has(.document-line-target-row) tr.document-line-target-row td::before {
    color: #93c5fd !important;
  }

  html[data-theme="dark"] .admin-shell .document-table:has(.document-line-target-row) tr.document-line-target-row td:nth-child(4) {
    border-top-color: rgba(147, 197, 253, 0.28) !important;
  }
}

/* Commercial admin mobile cards guard: daily sales tables must be readable from phone. */
/* Customer mobile action cards guard, Quote mobile decision cards guard, Invoice mobile collection cards guard and Delivery note mobile cards guard are consolidated here to avoid duplicated mobile table CSS. */

@media (max-width: 760px) {
  .admin-shell .table-wrap:has(.customer-target-row),
  .admin-shell .table-wrap:has(.quote-target-row),
  .admin-shell .table-wrap:has(.invoice-target-row),
  .admin-shell .table-wrap:has(.delivery-note-target-row) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-shell .table-wrap:has(.customer-target-row) table,
  .admin-shell .table-wrap:has(.customer-target-row) tbody,
  .admin-shell .table-wrap:has(.quote-target-row) table,
  .admin-shell .table-wrap:has(.quote-target-row) tbody,
  .admin-shell .table-wrap:has(.invoice-target-row) table,
  .admin-shell .table-wrap:has(.invoice-target-row) tbody,
  .admin-shell .table-wrap:has(.delivery-note-target-row) table,
  .admin-shell .table-wrap:has(.delivery-note-target-row) tbody {
    display: block !important;
    width: 100% !important;
  }

  .admin-shell .table-wrap:has(.customer-target-row) thead,
  .admin-shell .table-wrap:has(.customer-target-row) caption.sr-only,
  .admin-shell .table-wrap:has(.quote-target-row) thead,
  .admin-shell .table-wrap:has(.quote-target-row) caption.sr-only,
  .admin-shell .table-wrap:has(.invoice-target-row) thead,
  .admin-shell .table-wrap:has(.invoice-target-row) caption.sr-only,
  .admin-shell .table-wrap:has(.delivery-note-target-row) thead,
  .admin-shell .table-wrap:has(.delivery-note-target-row) caption.sr-only {
    display: none !important;
  }

  .admin-shell tr.customer-target-row,
  .admin-shell tr.quote-target-row,
  .admin-shell tr.invoice-target-row,
  .admin-shell tr.delivery-note-target-row {
    display: grid !important;
    gap: 0.7rem !important;
    width: 100% !important;
    margin: 0 0 1rem !important;
    padding: 1rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 1.15rem !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.12) !important;
  }

  .admin-shell tr.customer-target-row td,
  .admin-shell tr.quote-target-row td,
  .admin-shell tr.invoice-target-row td,
  .admin-shell tr.delivery-note-target-row td {
    display: grid !important;
    grid-template-columns: minmax(7.4rem, 38%) 1fr !important;
    align-items: start !important;
    gap: 0.6rem !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0f172a !important;
    white-space: normal !important;
  }

  .admin-shell tr.customer-target-row td::before,
  .admin-shell tr.quote-target-row td::before,
  .admin-shell tr.invoice-target-row td::before,
  .admin-shell tr.delivery-note-target-row td::before {
    content: "" !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .admin-shell tr.customer-target-row td:nth-child(1)::before { content: "Cliente" !important; }
  .admin-shell tr.customer-target-row td:nth-child(2)::before { content: "Email" !important; }
  .admin-shell tr.customer-target-row td:nth-child(3)::before { content: "Teléfono" !important; }
  .admin-shell tr.customer-target-row td:nth-child(4)::before { content: "NIF/CIF" !important; }
  .admin-shell tr.customer-target-row td:nth-child(5)::before { content: "Plan" !important; }
  .admin-shell tr.customer-target-row td:nth-child(6)::before { content: "Gremio" !important; }
  .admin-shell tr.customer-target-row td:nth-child(7)::before { content: "Ficha" !important; }
  .admin-shell tr.customer-target-row td:nth-child(8)::before { content: "Estado" !important; }
  .admin-shell tr.customer-target-row td:nth-child(9)::before { content: "Acciones" !important; }

  .admin-shell tr.quote-target-row td:nth-child(1)::before { content: "Número" !important; }
  .admin-shell tr.quote-target-row td:nth-child(2)::before { content: "Cliente" !important; }
  .admin-shell tr.quote-target-row td:nth-child(3)::before { content: "Gremio" !important; }
  .admin-shell tr.quote-target-row td:nth-child(4)::before { content: "Concepto" !important; }
  .admin-shell tr.quote-target-row td:nth-child(5)::before { content: "Base" !important; }
  .admin-shell tr.quote-target-row td:nth-child(6)::before { content: "Total" !important; }
  .admin-shell tr.quote-target-row td:nth-child(7)::before { content: "Estado" !important; }
  .admin-shell tr.quote-target-row td:nth-child(8)::before { content: "Acciones" !important; }

  .admin-shell tr.invoice-target-row td:nth-child(1)::before { content: "Número" !important; }
  .admin-shell tr.invoice-target-row td:nth-child(2)::before { content: "Cliente" !important; }
  .admin-shell tr.invoice-target-row td:nth-child(3)::before { content: "Gremio" !important; }
  .admin-shell tr.invoice-target-row td:nth-child(4)::before { content: "Concepto" !important; }
  .admin-shell tr.invoice-target-row td:nth-child(5)::before { content: "Emisión" !important; }
  .admin-shell tr.invoice-target-row td:nth-child(6)::before { content: "Vencimiento" !important; }
  .admin-shell tr.invoice-target-row td:nth-child(7)::before { content: "Total" !important; }
  .admin-shell tr.invoice-target-row td:nth-child(8)::before { content: "VeriFactu" !important; }
  .admin-shell tr.invoice-target-row td:nth-child(9)::before { content: "Estado" !important; }
  .admin-shell tr.invoice-target-row td:nth-child(10)::before { content: "Acciones" !important; }

  .admin-shell tr.delivery-note-target-row td:nth-child(1)::before { content: "Número" !important; }
  .admin-shell tr.delivery-note-target-row td:nth-child(2)::before { content: "Cliente" !important; }
  .admin-shell tr.delivery-note-target-row td:nth-child(3)::before { content: "Entrega" !important; }
  .admin-shell tr.delivery-note-target-row td:nth-child(4)::before { content: "Fecha" !important; }
  .admin-shell tr.delivery-note-target-row td:nth-child(5)::before { content: "Recibe" !important; }
  .admin-shell tr.delivery-note-target-row td:nth-child(6)::before { content: "Estado" !important; }
  .admin-shell tr.delivery-note-target-row td:nth-child(7)::before { content: "Acciones" !important; }

  .admin-shell tr.customer-target-row td:first-child,
  .admin-shell tr.quote-target-row td:nth-child(6),
  .admin-shell tr.invoice-target-row td:nth-child(7),
  .admin-shell tr.delivery-note-target-row td:nth-child(3) {
    font-size: 1.03rem !important;
    font-weight: 850 !important;
    line-height: 1.28 !important;
  }

  .admin-shell tr.customer-target-row td:last-child,
  .admin-shell tr.quote-target-row td:last-child,
  .admin-shell tr.invoice-target-row td:last-child,
  .admin-shell tr.delivery-note-target-row td:last-child {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid #dbeafe !important;
  }

  .admin-shell tr.customer-target-row td:last-child::before,
  .admin-shell tr.quote-target-row td:last-child::before,
  .admin-shell tr.invoice-target-row td:last-child::before,
  .admin-shell tr.delivery-note-target-row td:last-child::before {
    margin-bottom: -0.2rem !important;
  }

  .admin-shell tr.customer-target-row a[href*="/presupuestos.php?customer_id="],
  .admin-shell tr.quote-target-row .quote-cycle-form button,
  .admin-shell tr.quote-target-row form[aria-label="Facturar presupuesto"] button,
  .admin-shell tr.quote-target-row form[aria-label="Crear parte de trabajo desde presupuesto"] button,
  .admin-shell tr.invoice-target-row .invoice-paid-form button,
  .admin-shell tr.delivery-note-target-row form[aria-label="Crear factura desde albarán"] button {
    border-color: #047857 !important;
    background: #bbf7d0 !important;
    color: #064e3b !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
  }

  .admin-shell tr.customer-target-row td:last-child :where(.btn, button, select),
  .admin-shell tr.quote-target-row td:last-child :where(.btn, button, select),
  .admin-shell tr.invoice-target-row td:last-child :where(.btn, button, select),
  .admin-shell tr.delivery-note-target-row td:last-child :where(.btn, button, select) {
    width: 100% !important;
    min-height: 2.9rem !important;
    justify-content: center !important;
  }}

@media (max-width: 420px) {
  .admin-shell tr.customer-target-row td,
  .admin-shell tr.quote-target-row td,
  .admin-shell tr.invoice-target-row td,
  .admin-shell tr.delivery-note-target-row td {
    grid-template-columns: 1fr !important;
    gap: 0.18rem !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .admin-shell tr.customer-target-row,
  html[data-theme="dark"] .admin-shell tr.quote-target-row,
  html[data-theme="dark"] .admin-shell tr.invoice-target-row,
  html[data-theme="dark"] .admin-shell tr.delivery-note-target-row {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .admin-shell tr.customer-target-row td,
  html[data-theme="dark"] .admin-shell tr.quote-target-row td,
  html[data-theme="dark"] .admin-shell tr.invoice-target-row td,
  html[data-theme="dark"] .admin-shell tr.delivery-note-target-row td {
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .admin-shell tr.customer-target-row td::before,
  html[data-theme="dark"] .admin-shell tr.quote-target-row td::before,
  html[data-theme="dark"] .admin-shell tr.invoice-target-row td::before,
  html[data-theme="dark"] .admin-shell tr.delivery-note-target-row td::before {
    color: #93c5fd !important;
  }

  html[data-theme="dark"] .admin-shell tr.customer-target-row td:last-child,
  html[data-theme="dark"] .admin-shell tr.quote-target-row td:last-child,
  html[data-theme="dark"] .admin-shell tr.invoice-target-row td:last-child,
  html[data-theme="dark"] .admin-shell tr.delivery-note-target-row td:last-child {
    border-top-color: rgba(147, 197, 253, 0.28) !important;
  }
}

/* Public legal tables mobile cards guard: privacy and cookies inventory must be readable without horizontal scroll. */
@media (max-width: 760px) {
  .public-shell .table-wrap:has(.privacy-processing-target-row),
  .public-shell .table-wrap:has(.cookie-inventory-target-row) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .public-shell .table-wrap:has(.privacy-processing-target-row) table,
  .public-shell .table-wrap:has(.privacy-processing-target-row) tbody,
  .public-shell .table-wrap:has(.cookie-inventory-target-row) table,
  .public-shell .table-wrap:has(.cookie-inventory-target-row) tbody {
    display: block !important;
    width: 100% !important;
  }

  .public-shell .table-wrap:has(.privacy-processing-target-row) thead,
  .public-shell .table-wrap:has(.privacy-processing-target-row) caption.sr-only,
  .public-shell .table-wrap:has(.cookie-inventory-target-row) thead,
  .public-shell .table-wrap:has(.cookie-inventory-target-row) caption.sr-only {
    display: none !important;
  }

  .public-shell .table-wrap:has(.privacy-processing-target-row) tr.privacy-processing-target-row,
  .public-shell .table-wrap:has(.cookie-inventory-target-row) tr.cookie-inventory-target-row {
    display: grid !important;
    gap: 0.68rem !important;
    width: 100% !important;
    margin: 0 0 0.95rem !important;
    padding: 1rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 1.15rem !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.1) !important;
  }

  .public-shell .table-wrap:has(.privacy-processing-target-row) tr.privacy-processing-target-row td,
  .public-shell .table-wrap:has(.cookie-inventory-target-row) tr.cookie-inventory-target-row td {
    display: grid !important;
    grid-template-columns: minmax(7.2rem, 40%) 1fr !important;
    align-items: start !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0f172a !important;
  }

  .public-shell .table-wrap:has(.privacy-processing-target-row) tr.privacy-processing-target-row td::before,
  .public-shell .table-wrap:has(.cookie-inventory-target-row) tr.cookie-inventory-target-row td::before {
    content: "" !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .public-shell .table-wrap:has(.privacy-processing-target-row) tr.privacy-processing-target-row td:nth-child(1)::before { content: "Tratamiento" !important; }
  .public-shell .table-wrap:has(.privacy-processing-target-row) tr.privacy-processing-target-row td:nth-child(2)::before { content: "Datos" !important; }
  .public-shell .table-wrap:has(.privacy-processing-target-row) tr.privacy-processing-target-row td:nth-child(3)::before { content: "Finalidad" !important; }
  .public-shell .table-wrap:has(.privacy-processing-target-row) tr.privacy-processing-target-row td:nth-child(4)::before { content: "Base legal" !important; }

  .public-shell .table-wrap:has(.cookie-inventory-target-row) tr.cookie-inventory-target-row td:nth-child(1)::before { content: "Cookie" !important; }
  .public-shell .table-wrap:has(.cookie-inventory-target-row) tr.cookie-inventory-target-row td:nth-child(2)::before { content: "Tipo" !important; }
  .public-shell .table-wrap:has(.cookie-inventory-target-row) tr.cookie-inventory-target-row td:nth-child(3)::before { content: "Uso" !important; }
  .public-shell .table-wrap:has(.cookie-inventory-target-row) tr.cookie-inventory-target-row td:nth-child(4)::before { content: "Duración" !important; }
  .public-shell .table-wrap:has(.cookie-inventory-target-row) tr.cookie-inventory-target-row td:nth-child(5)::before { content: "Base" !important; }

  .public-shell .table-wrap:has(.privacy-processing-target-row) tr.privacy-processing-target-row td:nth-child(1),
  .public-shell .table-wrap:has(.cookie-inventory-target-row) tr.cookie-inventory-target-row td:nth-child(1) {
    font-size: 1.01rem !important;
    font-weight: 850 !important;
    line-height: 1.28 !important;
  }
}

@media (max-width: 420px) {
  .public-shell .table-wrap:has(.privacy-processing-target-row) tr.privacy-processing-target-row td,
  .public-shell .table-wrap:has(.cookie-inventory-target-row) tr.cookie-inventory-target-row td {
    grid-template-columns: 1fr !important;
    gap: 0.18rem !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .public-shell .table-wrap:has(.privacy-processing-target-row) tr.privacy-processing-target-row,
  html[data-theme="dark"] .public-shell .table-wrap:has(.cookie-inventory-target-row) tr.cookie-inventory-target-row {
    border-color: rgba(96, 165, 250, 0.42) !important;
    background: #0f172a !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .public-shell .table-wrap:has(.privacy-processing-target-row) tr.privacy-processing-target-row td,
  html[data-theme="dark"] .public-shell .table-wrap:has(.cookie-inventory-target-row) tr.cookie-inventory-target-row td {
    color: #e5edf9 !important;
  }

  html[data-theme="dark"] .public-shell .table-wrap:has(.privacy-processing-target-row) tr.privacy-processing-target-row td::before,
  html[data-theme="dark"] .public-shell .table-wrap:has(.cookie-inventory-target-row) tr.cookie-inventory-target-row td::before {
    color: #93c5fd !important;
  }
}

/* Public accessibility practical strip guard: accessibility must be actionable, short and readable. */
.public-shell .accessibility-action-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.2rem);
}

.public-shell .accessibility-action-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: flex-start;
  min-height: 100%;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.public-shell .accessibility-action-card > span {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.public-shell .accessibility-action-card h2 {
  margin: 0 0 0.28rem;
  color: var(--mantivo-text-strong, #0f172a);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.18;
}

.public-shell .accessibility-action-card p {
  margin: 0;
  color: var(--mantivo-muted, #475569);
  font-size: 0.98rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .public-shell .accessibility-action-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .public-shell .accessibility-action-card {
    grid-template-columns: 1fr;
  }

  .public-shell .accessibility-action-card > span {
    width: 2.55rem;
    height: 2.55rem;
  }
}

html[data-theme="dark"] .public-shell .accessibility-action-card {
  border-color: rgba(96, 165, 250, 0.32);
  background: linear-gradient(145deg, #0f172a 0%, #111c33 100%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .public-shell .accessibility-action-card > span {
  background: rgba(96, 165, 250, 0.18);
  color: #bfdbfe;
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.28);
}

html[data-theme="dark"] .public-shell .accessibility-action-card h2 {
  color: #f8fafc;
}

html[data-theme="dark"] .public-shell .accessibility-action-card p {
  color: #dbeafe;
}


/* Account request examples guard: client review requests must show short examples before the form. */
.admin-shell .account-request-examples {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
  padding: clamp(1rem, 2vw, 1.2rem);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.admin-shell .account-request-examples h4 {
  margin: 0;
  color: var(--mantivo-text-strong, #0f172a);
}

.admin-shell .account-request-examples ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-shell .account-request-examples li {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--mantivo-text, #1e293b);
  font-weight: 720;
  line-height: 1.35;
}

@media (max-width: 780px) {
  .admin-shell .account-request-examples ul {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .admin-shell .account-request-examples {
  border-color: rgba(96, 165, 250, 0.32);
  background: linear-gradient(145deg, #0f172a 0%, #111c33 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .admin-shell .account-request-examples h4 {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .account-request-examples li {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
}

/* Support request examples guard: support must start from common user needs, not ticket jargon. */
.admin-shell .support-internal-detail {
  padding: 0.95rem 1.05rem;
}

.admin-shell .support-internal-detail summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-shell .support-request-examples {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.admin-shell .support-request-examples p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  color: var(--muted);
}

.admin-shell .support-request-examples p strong {
  color: var(--ink);
}

.admin-shell .support-request-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-shell .support-request-example {
  appearance: none;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  padding: 0.8rem;
  min-height: 4.9rem;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 0.2rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.admin-shell .support-request-example:hover,
.admin-shell .support-request-example:focus-visible {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.16);
  outline: none;
}

.admin-shell .support-request-example strong {
  font-size: 0.94rem;
}

.admin-shell .support-request-example span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .admin-shell .support-request-example-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-shell .support-request-example {
    min-height: 0;
    padding: 0.95rem;
  }
}

html[data-theme="dark"] .admin-shell .support-internal-detail summary {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .support-request-examples {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
}

html[data-theme="dark"] .admin-shell .support-request-example {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .support-request-example span,
html[data-theme="dark"] .admin-shell .support-request-examples p {
  color: #cbd5e1;
}

/* Trace review shortcuts guard: the action log must start from common review needs. */
.admin-shell .trace-shortcuts {
  display: grid;
  gap: 0.9rem;
}

.admin-shell .trace-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .trace-shortcut-card {
  display: grid;
  align-content: start;
  gap: 0.32rem;
  min-height: 8.2rem;
  padding: 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.admin-shell .trace-shortcut-card:hover,
.admin-shell .trace-shortcut-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.15);
  outline: none;
}

.admin-shell .trace-shortcut-card span {
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-shell .trace-shortcut-card strong {
  font-size: 1rem;
  line-height: 1.2;
}

.admin-shell .trace-shortcut-card small {
  color: var(--muted);
  line-height: 1.38;
}

@media (max-width: 980px) {
  .admin-shell .trace-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .admin-shell .trace-shortcut-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-shell .trace-shortcut-card {
    min-height: 0;
    padding: 0.95rem;
  }
}

html[data-theme="dark"] .admin-shell .trace-shortcut-card {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9));
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .trace-shortcut-card span {
  color: #93c5fd;
}

html[data-theme="dark"] .admin-shell .trace-shortcut-card small {
  color: #cbd5e1;
}

/* User access review shortcuts guard: access management must start from common jobs, not a full table. */
.admin-shell .access-review-shortcuts {
  display: grid;
  gap: 0.9rem;
}

.admin-shell .access-review-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .access-review-shortcut-card {
  display: grid;
  align-content: start;
  gap: 0.32rem;
  min-height: 8.1rem;
  padding: 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.admin-shell .access-review-shortcut-card:hover,
.admin-shell .access-review-shortcut-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.15);
  outline: none;
}

.admin-shell .access-review-shortcut-card span {
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-shell .access-review-shortcut-card strong {
  font-size: 1rem;
  line-height: 1.2;
}

.admin-shell .access-review-shortcut-card small {
  color: var(--muted);
  line-height: 1.38;
}

@media (max-width: 980px) {
  .admin-shell .access-review-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .admin-shell .access-review-shortcut-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-shell .access-review-shortcut-card {
    min-height: 0;
    padding: 0.95rem;
  }
}

html[data-theme="dark"] .admin-shell .access-review-shortcut-card {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9));
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .access-review-shortcut-card span {
  color: #93c5fd;
}

html[data-theme="dark"] .admin-shell .access-review-shortcut-card small {
  color: #cbd5e1;
}

/* Security review shortcuts guard: security review must start from common risks, not raw logs. */
.admin-shell .security-review-shortcuts {
  display: grid;
  gap: 0.9rem;
}

.admin-shell .security-review-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-shell .security-review-shortcut-card {
  display: grid;
  align-content: start;
  gap: 0.32rem;
  min-height: 8.15rem;
  padding: 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.admin-shell .security-review-shortcut-card:hover,
.admin-shell .security-review-shortcut-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.15);
  outline: none;
}

.admin-shell .security-review-shortcut-card span {
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-shell .security-review-shortcut-card strong {
  font-size: 1rem;
  line-height: 1.2;
}

.admin-shell .security-review-shortcut-card small {
  color: var(--muted);
  line-height: 1.38;
}

@media (max-width: 980px) {
  .admin-shell .security-review-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .admin-shell .security-review-shortcut-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-shell .security-review-shortcut-card {
    min-height: 0;
    padding: 0.95rem;
  }
}

html[data-theme="dark"] .admin-shell .security-review-shortcut-card {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9));
  color: #f8fafc;
}

html[data-theme="dark"] .admin-shell .security-review-shortcut-card span {
  color: #93c5fd;
}

html[data-theme="dark"] .admin-shell .security-review-shortcut-card small {
  color: #cbd5e1;
}
/* Project cost shortcuts guard: keep 70/30 project costs understandable before the ledger table. */
.admin-shell .project-cost-shortcuts {
  display: grid;
  gap: 16px;
}

.admin-shell .project-cost-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-shell .project-cost-shortcut-card {
  align-items: flex-start;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  color: var(--color-text);
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
  text-decoration: none;
}

.admin-shell .project-cost-shortcut-card:hover,
.admin-shell .project-cost-shortcut-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.52);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.admin-shell .project-cost-shortcut-card span {
  align-items: center;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.admin-shell .project-cost-shortcut-card strong {
  color: #0f172a;
  font-size: 1.02rem;
}

.admin-shell .project-cost-shortcut-card small {
  color: #475569;
  line-height: 1.35;
}

[data-theme="dark"] .admin-shell .project-cost-shortcut-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
  border-color: rgba(147, 197, 253, 0.24);
  color: #e5e7eb;
}

[data-theme="dark"] .admin-shell .project-cost-shortcut-card strong {
  color: #f8fafc;
}

[data-theme="dark"] .admin-shell .project-cost-shortcut-card small {
  color: #cbd5e1;
}

[data-theme="dark"] .admin-shell .project-cost-shortcut-card span {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(147, 197, 253, 0.28);
  color: #bfdbfe;
}

@media (max-width: 980px) {
  .admin-shell .project-cost-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-shell .project-cost-shortcut-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .project-cost-shortcut-card {
    min-height: auto;
  }
}
/* Module decision shortcuts guard: keep trade decisions visible before the full catalog. */
.admin-shell .module-decision-shortcuts {
  display: grid;
  gap: 16px;
}

.admin-shell .module-decision-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-shell .module-decision-shortcut-card {
  align-items: flex-start;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  color: var(--color-text);
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
  text-decoration: none;
}

.admin-shell .module-decision-shortcut-card:hover,
.admin-shell .module-decision-shortcut-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.52);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.admin-shell .module-decision-shortcut-card span {
  align-items: center;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.admin-shell .module-decision-shortcut-card strong {
  color: #0f172a;
  font-size: 1.02rem;
}

.admin-shell .module-decision-shortcut-card small {
  color: #475569;
  line-height: 1.35;
}

[data-theme="dark"] .admin-shell .module-decision-shortcut-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
  border-color: rgba(147, 197, 253, 0.24);
  color: #e5e7eb;
}

[data-theme="dark"] .admin-shell .module-decision-shortcut-card strong {
  color: #f8fafc;
}

[data-theme="dark"] .admin-shell .module-decision-shortcut-card small {
  color: #cbd5e1;
}

[data-theme="dark"] .admin-shell .module-decision-shortcut-card span {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(147, 197, 253, 0.28);
  color: #bfdbfe;
}

@media (max-width: 980px) {
  .admin-shell .module-decision-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-shell .module-decision-shortcut-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .module-decision-shortcut-card {
    min-height: auto;
  }
}
/* Subscription review shortcuts guard: keep payment, delivery and invoicing decisions reachable. */
.admin-shell .subscription-review-shortcuts {
  display: grid;
  gap: 16px;
}

.admin-shell .subscription-review-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-shell .subscription-review-shortcut-card {
  align-items: flex-start;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  color: var(--color-text);
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
  text-decoration: none;
}

.admin-shell .subscription-review-shortcut-card:hover,
.admin-shell .subscription-review-shortcut-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.52);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.admin-shell .subscription-review-shortcut-card span {
  align-items: center;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.admin-shell .subscription-review-shortcut-card strong {
  color: #0f172a;
  font-size: 1.02rem;
}

.admin-shell .subscription-review-shortcut-card small {
  color: #475569;
  line-height: 1.35;
}

[data-theme="dark"] .admin-shell .subscription-review-shortcut-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
  border-color: rgba(147, 197, 253, 0.24);
  color: #e5e7eb;
}

[data-theme="dark"] .admin-shell .subscription-review-shortcut-card strong {
  color: #f8fafc;
}

[data-theme="dark"] .admin-shell .subscription-review-shortcut-card small {
  color: #cbd5e1;
}

[data-theme="dark"] .admin-shell .subscription-review-shortcut-card span {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(147, 197, 253, 0.28);
  color: #bfdbfe;
}

@media (max-width: 980px) {
  .admin-shell .subscription-review-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-shell .subscription-review-shortcut-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .subscription-review-shortcut-card {
    min-height: auto;
  }
}
/* VeriFactu review shortcuts guard: keep fiscal review paths visible before dense records. */
.admin-shell .verifactu-review-shortcuts {
  display: grid;
  gap: 16px;
}

.admin-shell .verifactu-review-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-shell .verifactu-review-shortcut-card {
  align-items: flex-start;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  color: var(--color-text);
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
  text-decoration: none;
}

.admin-shell .verifactu-review-shortcut-card:hover,
.admin-shell .verifactu-review-shortcut-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.52);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.admin-shell .verifactu-review-shortcut-card span {
  align-items: center;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.admin-shell .verifactu-review-shortcut-card strong {
  color: #0f172a;
  font-size: 1.02rem;
}

.admin-shell .verifactu-review-shortcut-card small {
  color: #475569;
  line-height: 1.35;
}

[data-theme="dark"] .admin-shell .verifactu-review-shortcut-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
  border-color: rgba(147, 197, 253, 0.24);
  color: #e5e7eb;
}

[data-theme="dark"] .admin-shell .verifactu-review-shortcut-card strong {
  color: #f8fafc;
}

[data-theme="dark"] .admin-shell .verifactu-review-shortcut-card small {
  color: #cbd5e1;
}

[data-theme="dark"] .admin-shell .verifactu-review-shortcut-card span {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(147, 197, 253, 0.28);
  color: #bfdbfe;
}

@media (max-width: 980px) {
  .admin-shell .verifactu-review-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-shell .verifactu-review-shortcut-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .verifactu-review-shortcut-card {
    min-height: auto;
  }
}
/* AI work assisted shortcuts guard: keep assisted work completion clear on mobile. */
/* AI quote assisted shortcuts guard: keep assisted quote drafting clear on mobile. */
/* AI material assisted shortcuts guard: keep material preparation clear on mobile. */
/* AI text assisted shortcuts guard: keep communication drafting clear on mobile. */
/* AI evidence assisted shortcuts guard: keep evidence classification clear on mobile. */
/* AI PDF assisted shortcuts guard: keep document copy drafting clear on mobile. */
/* AI customer history shortcuts guard: keep customer memory review clear on mobile. */
/* AI recurrence shortcuts guard: keep recurring work review clear on mobile. */
/* AI assisted shortcuts consolidation guard: one shared visual system for all assisted flows. */
.admin-shell :is(
  .ai-work-shortcuts,
  .ai-quote-shortcuts,
  .ai-material-shortcuts,
  .ai-text-shortcuts,
  .ai-evidence-shortcuts,
  .ai-pdf-shortcuts,
  .ai-history-shortcuts,
  .ai-recurrence-shortcuts
) {
  display: grid;
  gap: 16px;
}

.admin-shell :is(
  .ai-work-shortcut-grid,
  .ai-quote-shortcut-grid,
  .ai-material-shortcut-grid,
  .ai-text-shortcut-grid,
  .ai-evidence-shortcut-grid,
  .ai-pdf-shortcut-grid,
  .ai-history-shortcut-grid,
  .ai-recurrence-shortcut-grid
) {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-shell :is(
  .ai-work-shortcut-card,
  .ai-quote-shortcut-card,
  .ai-material-shortcut-card,
  .ai-text-shortcut-card,
  .ai-evidence-shortcut-card,
  .ai-pdf-shortcut-card,
  .ai-history-shortcut-card,
  .ai-recurrence-shortcut-card
) {
  align-items: flex-start;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  color: var(--color-text);
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
  text-decoration: none;
}

.admin-shell :is(
  .ai-work-shortcut-card,
  .ai-quote-shortcut-card,
  .ai-material-shortcut-card,
  .ai-text-shortcut-card,
  .ai-evidence-shortcut-card,
  .ai-pdf-shortcut-card,
  .ai-history-shortcut-card,
  .ai-recurrence-shortcut-card
):is(:hover, :focus-visible) {
  border-color: rgba(37, 99, 235, 0.52);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.admin-shell :is(
  .ai-work-shortcut-card,
  .ai-quote-shortcut-card,
  .ai-material-shortcut-card,
  .ai-text-shortcut-card,
  .ai-evidence-shortcut-card,
  .ai-pdf-shortcut-card,
  .ai-history-shortcut-card,
  .ai-recurrence-shortcut-card
) span {
  align-items: center;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.admin-shell :is(
  .ai-work-shortcut-card,
  .ai-quote-shortcut-card,
  .ai-material-shortcut-card,
  .ai-text-shortcut-card,
  .ai-evidence-shortcut-card,
  .ai-pdf-shortcut-card,
  .ai-history-shortcut-card,
  .ai-recurrence-shortcut-card
) strong {
  color: #0f172a;
  font-size: 1.02rem;
}

.admin-shell :is(
  .ai-work-shortcut-card,
  .ai-quote-shortcut-card,
  .ai-material-shortcut-card,
  .ai-text-shortcut-card,
  .ai-evidence-shortcut-card,
  .ai-pdf-shortcut-card,
  .ai-history-shortcut-card,
  .ai-recurrence-shortcut-card
) small {
  color: #475569;
  line-height: 1.35;
}

[data-theme="dark"] .admin-shell :is(
  .ai-work-shortcut-card,
  .ai-quote-shortcut-card,
  .ai-material-shortcut-card,
  .ai-text-shortcut-card,
  .ai-evidence-shortcut-card,
  .ai-pdf-shortcut-card,
  .ai-history-shortcut-card,
  .ai-recurrence-shortcut-card
) {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
  border-color: rgba(147, 197, 253, 0.24);
  color: #e5e7eb;
}

[data-theme="dark"] .admin-shell :is(
  .ai-work-shortcut-card,
  .ai-quote-shortcut-card,
  .ai-material-shortcut-card,
  .ai-text-shortcut-card,
  .ai-evidence-shortcut-card,
  .ai-pdf-shortcut-card,
  .ai-history-shortcut-card,
  .ai-recurrence-shortcut-card
) strong {
  color: #f8fafc;
}

[data-theme="dark"] .admin-shell :is(
  .ai-work-shortcut-card,
  .ai-quote-shortcut-card,
  .ai-material-shortcut-card,
  .ai-text-shortcut-card,
  .ai-evidence-shortcut-card,
  .ai-pdf-shortcut-card,
  .ai-history-shortcut-card,
  .ai-recurrence-shortcut-card
) small {
  color: #cbd5e1;
}

[data-theme="dark"] .admin-shell :is(
  .ai-work-shortcut-card,
  .ai-quote-shortcut-card,
  .ai-material-shortcut-card,
  .ai-text-shortcut-card,
  .ai-evidence-shortcut-card,
  .ai-pdf-shortcut-card,
  .ai-history-shortcut-card,
  .ai-recurrence-shortcut-card
) span {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(147, 197, 253, 0.28);
  color: #bfdbfe;
}

@media (max-width: 980px) {
  .admin-shell :is(
    .ai-work-shortcut-grid,
    .ai-quote-shortcut-grid,
    .ai-material-shortcut-grid,
    .ai-text-shortcut-grid,
    .ai-evidence-shortcut-grid,
    .ai-pdf-shortcut-grid,
    .ai-history-shortcut-grid,
    .ai-recurrence-shortcut-grid
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-shell :is(
    .ai-work-shortcut-grid,
    .ai-quote-shortcut-grid,
    .ai-material-shortcut-grid,
    .ai-text-shortcut-grid,
    .ai-evidence-shortcut-grid,
    .ai-pdf-shortcut-grid,
    .ai-history-shortcut-grid,
    .ai-recurrence-shortcut-grid
  ) {
    grid-template-columns: 1fr;
  }

  .admin-shell :is(
    .ai-work-shortcut-card,
    .ai-quote-shortcut-card,
    .ai-material-shortcut-card,
    .ai-text-shortcut-card,
    .ai-evidence-shortcut-card,
    .ai-pdf-shortcut-card,
    .ai-history-shortcut-card,
    .ai-recurrence-shortcut-card
  ) {
    min-height: auto;
  }
}

/* Trade request example chips 2026-06-28: reduce typing for missing trades. */
.public-shell .trade-request-examples {
  display: grid;
  gap: 0.68rem;
  margin: 0.1rem 0 0.45rem;
  padding: 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.public-shell .trade-request-examples > strong {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 900;
}

.public-shell .trade-request-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.public-shell .trade-request-example-grid button {
  min-height: 2.75rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #173a8a;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
  box-shadow: none;
}

.public-shell .trade-request-example-grid button:hover,
.public-shell .trade-request-example-grid button:focus-visible {
  border-color: rgba(37, 99, 235, 0.48);
  background: #eff6ff;
  color: #1d4ed8;
}

.public-shell .trade-request-examples small {
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .public-shell .trade-request-example-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .public-shell .trade-request-examples {
  border-color: rgba(147, 197, 253, 0.24);
  background: linear-gradient(135deg, rgba(15, 39, 68, 0.72), rgba(17, 24, 39, 0.92));
}

html[data-theme="dark"] .public-shell .trade-request-examples > strong {
  color: #f8fafc;
}

html[data-theme="dark"] .public-shell .trade-request-example-grid button {
  border-color: rgba(147, 197, 253, 0.28);
  background: #0f172a;
  color: #dbeafe;
}

html[data-theme="dark"] .public-shell .trade-request-example-grid button:hover,
html[data-theme="dark"] .public-shell .trade-request-example-grid button:focus-visible {
  background: #172554;
  color: #ffffff;
}

html[data-theme="dark"] .public-shell .trade-request-examples small {
  color: #cbd5e1;
}

/* Context inline help guard 2026-06-28: visible explanations move to the contextual manual. */
.admin-shell .context-inline-help {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin-left: 0.45rem;
  border: 1px solid #bfd7ff;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  touch-action: manipulation;
  vertical-align: middle;
}

.admin-shell .context-inline-help:hover,
.admin-shell .context-inline-help:focus-visible {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1e40af;
  text-decoration: none;
}

html[data-theme="dark"] .admin-shell .context-inline-help {
  border-color: rgba(147, 197, 253, 0.36);
  background: #172554;
  color: #dbeafe;
}

/* Public sector landing visual diversity: every stage uses a real local visual, not repeated placeholders. */
.sector-flow-visual-grid article,
.sector-mini-photo,
.sector-use-case-visual,
.sector-scene-picture,
.sector-example-picture {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #dbeafe;
}

.sector-flow-card-img,
.sector-visual-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
}

.sector-flow-visual-grid article::before,
.sector-mini-photo::before,
.sector-use-case-visual::before,
.sector-scene-picture::before,
.sector-example-picture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.04), rgba(15, 23, 42, 0.62));
  pointer-events: none;
}

.sector-flow-visual-grid article > :not(.sector-flow-card-img),
.sector-mini-photo > :not(.sector-visual-img),
.sector-use-case-visual > :not(.sector-visual-img),
.sector-scene-picture > :not(.sector-visual-img),
.sector-example-picture > :not(.sector-visual-img) {
  position: relative;
  z-index: 2;
}

.sector-flow-visual-grid article {
  min-height: 9.8rem;
  align-content: end;
  border-color: rgba(147, 197, 253, 0.78);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.sector-flow-visual-grid article small,
.sector-flow-visual-grid article strong {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(15, 23, 42, 0.46);
}

.sector-flow-visual-grid .sector-step-badge {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

.sector-mini-photo,
.sector-scene-picture {
  min-height: 12.5rem;
}

.sector-use-case-visual,
.sector-example-picture {
  min-height: 8.7rem;
}

.sector-use-case-visual span,
.sector-mini-photo span,
.sector-scene-picture span,
.sector-mini-photo em,
.sector-use-case-visual strong {
  background: rgba(255, 255, 255, 0.86);
  color: #1d4ed8;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.sector-mini-photo strong {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(15, 23, 42, 0.55);
}

@media (max-width: 760px) {
  .sector-flow-visual-grid article,
  .sector-mini-photo,
  .sector-scene-picture {
    min-height: 11rem;
  }
}

/* Sector landing stage scenes 2026-06-28: avoid repeated or empty graphics across trade pages. */
.sector-visual-stage {
  --stage-accent: #2563eb;
  --stage-glow: rgba(37, 99, 235, 0.28);
}

.sector-visual-stage .sector-flow-card-img,
.sector-visual-stage .sector-visual-img {
  transform: scale(1.045);
}

.sector-visual-stage-notice .sector-flow-card-img,
.sector-visual-stage-notice .sector-visual-img {
  object-position: 30% 50%;
}

.sector-visual-stage-quote .sector-flow-card-img,
.sector-visual-stage-quote .sector-visual-img {
  object-position: 62% 45%;
  filter: saturate(0.98) contrast(1.08) hue-rotate(8deg);
}

.sector-visual-stage-work .sector-flow-card-img,
.sector-visual-stage-work .sector-visual-img {
  object-position: 48% 68%;
  filter: saturate(1.1) contrast(1.04) hue-rotate(-8deg);
}

.sector-visual-stage-close .sector-flow-card-img,
.sector-visual-stage-close .sector-visual-img {
  object-position: 78% 54%;
  filter: saturate(0.96) contrast(1.1) brightness(0.95);
}

.sector-visual-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.sector-flow-visual-grid .sector-visual-stage::after,
.sector-mini-photo.sector-visual-stage::after,
.sector-use-case-visual.sector-visual-stage::after,
.sector-scene-picture.sector-visual-stage::after,
.sector-example-picture.sector-visual-stage::after {
  right: clamp(0.8rem, 2vw, 1.15rem);
  top: clamp(0.75rem, 2vw, 1rem);
  width: clamp(4.8rem, 9vw, 6.7rem);
  height: clamp(4.8rem, 9vw, 6.7rem);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(219, 234, 254, 0.72)),
    radial-gradient(circle at 82% 18%, var(--stage-glow), transparent 42%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
  opacity: 0.94;
}

.sector-visual-stage-notice {
  --stage-accent: #0f766e;
  --stage-glow: rgba(20, 184, 166, 0.28);
}

.sector-visual-stage-quote {
  --stage-accent: #1d4ed8;
  --stage-glow: rgba(59, 130, 246, 0.3);
}

.sector-visual-stage-work {
  --stage-accent: #0369a1;
  --stage-glow: rgba(14, 165, 233, 0.3);
}

.sector-visual-stage-close {
  --stage-accent: #166534;
  --stage-glow: rgba(34, 197, 94, 0.25);
}

.sector-flow-visual-grid .sector-visual-stage-notice::after,
.sector-mini-photo.sector-visual-stage-notice::after,
.sector-use-case-visual.sector-visual-stage-notice::after,
.sector-scene-picture.sector-visual-stage-notice::after,
.sector-example-picture.sector-visual-stage-notice::after {
  background:
    linear-gradient(180deg, transparent 0 16%, var(--stage-accent) 16% 22%, transparent 22% 34%, var(--stage-accent) 34% 40%, transparent 40%),
    radial-gradient(circle at 26% 76%, var(--stage-accent) 0 13%, transparent 14%),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(219,234,254,0.76));
}

.sector-flow-visual-grid .sector-visual-stage-quote::after,
.sector-mini-photo.sector-visual-stage-quote::after,
.sector-use-case-visual.sector-visual-stage-quote::after,
.sector-scene-picture.sector-visual-stage-quote::after,
.sector-example-picture.sector-visual-stage-quote::after {
  background:
    linear-gradient(90deg, transparent 0 18%, var(--stage-accent) 18% 25%, transparent 25% 38%, var(--stage-accent) 38% 45%, transparent 45%),
    linear-gradient(180deg, transparent 0 62%, rgba(15,23,42,0.16) 62% 69%, transparent 69%),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(219,234,254,0.76));
}

.sector-flow-visual-grid .sector-visual-stage-work::after,
.sector-mini-photo.sector-visual-stage-work::after,
.sector-use-case-visual.sector-visual-stage-work::after,
.sector-scene-picture.sector-visual-stage-work::after,
.sector-example-picture.sector-visual-stage-work::after {
  background:
    linear-gradient(45deg, transparent 0 42%, var(--stage-accent) 43% 49%, transparent 50%),
    radial-gradient(circle at 70% 70%, var(--stage-accent) 0 14%, transparent 15%),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(219,234,254,0.76));
}

.sector-flow-visual-grid .sector-visual-stage-close::after,
.sector-mini-photo.sector-visual-stage-close::after,
.sector-use-case-visual.sector-visual-stage-close::after,
.sector-scene-picture.sector-visual-stage-close::after,
.sector-example-picture.sector-visual-stage-close::after {
  background:
    linear-gradient(135deg, transparent 0 37%, var(--stage-accent) 38% 45%, transparent 46%),
    linear-gradient(45deg, transparent 0 48%, var(--stage-accent) 49% 57%, transparent 58%),
    radial-gradient(circle at 24% 76%, rgba(22, 101, 52, 0.22) 0 16%, transparent 17%),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(220,252,231,0.76));
}

.sector-mini-gallery .sector-visual-stage-quote::after,
.sector-scene-grid .sector-visual-stage-work::after,
.sector-example-grid .sector-visual-stage-close::after {
  left: clamp(0.8rem, 2vw, 1.15rem);
  right: auto;
  top: auto;
  bottom: clamp(0.8rem, 2vw, 1.15rem);
}

@media (max-width: 760px) {
  .sector-flow-visual-grid .sector-visual-stage::after,
  .sector-mini-photo.sector-visual-stage::after,
  .sector-use-case-visual.sector-visual-stage::after,
  .sector-scene-picture.sector-visual-stage::after,
  .sector-example-picture.sector-visual-stage::after {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 1rem;
    opacity: 0.82;
  }
}

/* Checkout selection first: alta page must let users choose plan and trade before paying. */
.checkout-choice-band {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.2rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid #bfdbfe;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.checkout-choice-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  gap: 1rem;
  align-items: end;
}

.checkout-choice-head h3 {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.checkout-choice-head p:not(.eyebrow) {
  margin-top: 0.45rem;
  color: #475569;
  font-weight: 750;
}

.checkout-choice-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

.checkout-choice-form label {
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-choice-form select,
.checkout-choice-form input:not([type="checkbox"]),
.checkout-choice-form button {
  min-height: 2.75rem;
  border-radius: 0.8rem;
}

.checkout-choice-form select,
.checkout-choice-form input:not([type="checkbox"]) {
  width: 100%;
  border: 1px solid #bfdbfe;
  background: #f8fbff;
  color: #0f172a;
  font-weight: 850;
  padding: 0.65rem 0.8rem;
}

.checkout-signup-inline-fields {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-signup-inline-fields label {
  display: grid;
  gap: 0.35rem;
}

.checkout-consent-row {
  align-items: flex-start;
  display: flex;
  gap: 0.55rem;
  line-height: 1.35;
  text-transform: none;
}

.checkout-consent-row input {
  margin-top: 0.15rem;
}

.checkout-consent-row a {
  color: #1d4ed8;
  font-weight: 950;
}

.checkout-choice-form button,
.checkout-inline-action-form .btn {
  border: 0;
  cursor: pointer;
}

.checkout-plan-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.checkout-plan-choice-card {
  display: grid;
  gap: 0.35rem;
  min-height: 10.5rem;
  padding: 1rem;
  border: 1px solid #dbeafe;
  border-radius: 1.05rem;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.checkout-plan-choice-card:hover,
.checkout-plan-choice-card:focus-visible,
.checkout-plan-choice-card.is-active {
  border-color: #2563eb;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.checkout-plan-choice-card.is-recommended {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.checkout-plan-choice-card span {
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.checkout-plan-choice-card strong {
  font-size: 1.2rem;
  line-height: 1.1;
}

.checkout-plan-choice-card em {
  color: #1d4ed8;
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 950;
}

.checkout-plan-choice-card small {
  color: #475569;
  font-weight: 750;
  line-height: 1.38;
}

.checkout-inline-action-form {
  display: contents;
}

@media (max-width: 920px) {
  .checkout-choice-head,
  .checkout-plan-choice-grid,
  .checkout-signup-inline-fields {
    grid-template-columns: 1fr;
  }
}

/* Checkout alta accionable 2026-06-28: plan, gremio y datos deben estar arriba y ser seleccionables. */
.public-shell .checkout-start-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.58fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.public-shell .checkout-start-copy {
  max-width: 48rem;
}

.public-shell .checkout-start-copy h1 {
  max-width: 13ch;
  margin-bottom: 0.75rem;
}

.public-shell .checkout-start-summary {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid rgba(147, 197, 253, 0.72);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(30, 64, 175, 0.1);
}

.public-shell .checkout-start-summary span {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #1f3655;
  background: #ffffff;
  font-weight: 900;
}

.public-shell .checkout-start-summary strong {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  color: #ffffff;
  background: #1d4ed8;
}

.public-shell .checkout-primary-signup {
  margin-top: 0;
  padding: clamp(1rem, 2.6vw, 1.8rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(147, 197, 253, 0.26), transparent 16rem),
    linear-gradient(135deg, #ffffff, #eff6ff);
}

.public-shell .checkout-primary-signup .checkout-choice-head {
  grid-template-columns: minmax(0, 0.78fr) minmax(21rem, 1fr);
  align-items: start;
}

.public-shell .checkout-primary-signup .checkout-choice-form {
  gap: 0.75rem;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.public-shell .checkout-plan-radio-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.public-shell .checkout-plan-radio-group legend {
  grid-column: 1 / -1;
  margin-bottom: 0.1rem;
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-shell .checkout-plan-radio-card {
  position: relative;
  display: grid;
  gap: 0.22rem;
  min-height: 7.4rem;
  padding: 0.92rem;
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  text-transform: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.public-shell .checkout-plan-radio-card input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.public-shell .checkout-plan-radio-card span {
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.public-shell .checkout-plan-radio-card strong {
  color: #07142f;
  font-size: 1.06rem;
  line-height: 1.08;
}

.public-shell .checkout-plan-radio-card em {
  color: #1d4ed8;
  font-style: normal;
  font-weight: 950;
}

.public-shell .checkout-plan-radio-card small,
.public-shell .checkout-plan-choice-card .checkout-plan-annual-note {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.25;
}

.public-shell .checkout-plan-radio-card .checkout-plan-annual-note,
.public-shell .checkout-plan-choice-card .checkout-plan-annual-note {
  color: #1e3a8a;
}

.public-shell .checkout-plan-radio-card:hover,
.public-shell .checkout-plan-radio-card:focus-within,
.public-shell .checkout-plan-radio-card:has(input:checked),
.public-shell .checkout-plan-radio-card.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.public-shell .checkout-plan-radio-card:has(input:checked)::after,
.public-shell .checkout-plan-radio-card.is-active::after {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 0.74rem;
  height: 0.74rem;
  border-radius: 999px;
  background: #1d4ed8;
  box-shadow: 0 0 0 0.28rem #dbeafe;
}

.public-shell .checkout-plan-radio-card.is-recommended::before {
  content: "Recomendado";
  justify-self: start;
  margin-bottom: 0.1rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  color: #ffffff;
  background: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 950;
}

.public-shell .checkout-primary-signup .checkout-choice-form button {
  min-height: 3rem;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-radius: 999px;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.public-shell .checkout-primary-signup .checkout-choice-form button:hover,
.public-shell .checkout-primary-signup .checkout-choice-form button:focus-visible {
  background: linear-gradient(135deg, #1e40af, #2563eb);
}

.public-shell .checkout-plan-reference-grid {
  opacity: 0.9;
}

@media (max-width: 1080px) {
  .public-shell .checkout-start-hero,
  .public-shell .checkout-primary-signup .checkout-choice-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .public-shell .checkout-plan-radio-group {
    grid-template-columns: 1fr;
  }

  .public-shell .checkout-start-summary {
    gap: 0.55rem;
  }

  .public-shell .checkout-start-summary span {
    min-height: 2.65rem;
  }
}


/* Public expanded trade catalog guard: keep menu compact and home folded when many trades exist. */
.public-shell .home-sector-search {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(12rem, 0.55fr) auto auto;
  gap: 0.65rem;
  align-items: end;
  margin: 1rem 0 1.2rem;
  border: 1px solid #bfdbfe;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.08);
  padding: 0.85rem;
}

.public-shell .home-sector-search label {
  display: grid;
  gap: 0.32rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
}

.public-shell .home-sector-search input,
.public-shell .home-sector-search select {
  min-width: 0;
  min-height: 2.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.85rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  padding: 0.58rem 0.78rem;
}

.public-shell .home-sector-search .btn {
  min-height: 2.8rem;
  white-space: nowrap;
}

.public-shell .home-sector-more {
  grid-column: 1 / -1;
  border: 1px solid #bfdbfe;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.08);
}

.public-shell .home-sector-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  color: #0f172a;
  font-weight: 950;
  list-style: none;
}

.public-shell .home-sector-more > summary::-webkit-details-marker { display: none; }

.public-shell .home-sector-more > summary strong {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 0.85rem;
}

.public-shell .home-sector-more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 1rem 1rem;
}

.public-shell .home-sector-more-all {
  margin: 0 1rem 1rem;
}

.public-header nav.public-menu .public-menu-group-trades .public-menu-copy small {
  display: none !important;
}

.public-header nav.public-menu .public-menu-group-trades .public-menu-submenu:not([hidden]) {
  grid-template-columns: repeat(3, minmax(10rem, 1fr)) !important;
  max-height: min(70vh, 34rem) !important;
  overflow-y: auto !important;
}

.public-header nav.public-menu .public-menu-trades-tools {
  grid-column: 1 / -1;
}

.public-header nav.public-menu .public-menu-trades-search {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(9rem, 0.5fr) minmax(9rem, 0.5fr) auto auto;
  gap: 0.5rem;
  align-items: end;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.65rem;
}

.public-header nav.public-menu .public-menu-trades-search label {
  display: grid;
  gap: 0.22rem;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 900;
}

.public-header nav.public-menu .public-menu-trades-search input,
.public-header nav.public-menu .public-menu-trades-search select {
  min-width: 0;
  min-height: 2.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.78rem;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.44rem 0.62rem;
}

.public-header nav.public-menu .public-menu-trades-search button,
.public-header nav.public-menu .public-menu-trades-search a {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #1d4ed8;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
  padding: 0.42rem 0.78rem;
  white-space: nowrap;
}

.public-header nav.public-menu .public-menu-trades-search a {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.public-header nav.public-menu .public-menu-group-trades .public-menu-link {
  min-height: 2.85rem !important;
  padding-block: 0.55rem !important;
}

@media (max-width: 760px) {
  .public-shell .home-sector-search,
  .public-header nav.public-menu .public-menu-trades-search {
    grid-template-columns: 1fr;
  }

  .public-shell .home-sector-more-grid {
    grid-template-columns: 1fr;
  }

  .public-shell .home-sector-more > summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

.public-header nav.public-menu .public-menu-submenu-trades .public-menu-link {
  min-height: 2.7rem !important;
}

.public-header nav.public-menu .public-menu-submenu-trades .public-menu-copy strong {
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 980px) {
  .public-shell .home-sector-search {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 981px) {
  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu-trades:not([hidden]) {
    grid-template-columns: repeat(4, minmax(10.5rem, 1fr)) !important;
    width: min(76rem, calc(100vw - 1.5rem)) !important;
  }

  .public-header nav.public-menu .public-menu-trades-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .public-shell .home-sector-search {
    grid-template-columns: 1fr;
    padding: 0.65rem;
  }

  .public-shell .home-sector-filter-chips {
    gap: 0.42rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
  }

  .public-shell .home-sector-filter-chips a {
    flex: 0 0 auto;
  }

  .public-shell .sector-group-shortcuts {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.18rem;
    scrollbar-width: thin;
  }

  .public-shell .sector-group-shortcuts a {
    flex: 0 0 auto;
  }
}

/* Public trade compact names final guard: search plus names plus Ver todos, no long descriptions. */
.public-header nav.public-menu .public-menu-group-trades .public-menu-submenu-trades .public-menu-link {
  min-height: 3.05rem !important;
}

.public-header nav.public-menu .public-menu-group-trades .public-menu-submenu-trades .public-menu-copy small {
  display: none !important;
}

.public-header nav.public-menu .public-menu-group-trades .public-menu-submenu-trades .public-menu-copy strong {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.public-header nav.public-menu .public-menu-group-trades .public-menu-submenu-trades .public-menu-link-all {
  border-style: dashed !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.public-header nav.public-menu .public-menu-trades-summary {
  grid-column: 1 / -1;
  min-height: auto !important;
  padding: 0.38rem 0.45rem !important;
}

.public-header nav.public-menu .public-menu-trades-summary strong,
.public-header nav.public-menu .public-menu-trades-summary span {
  line-height: 1.15 !important;
}

@media (min-width: 821px) {
  .public-header nav.public-menu .public-menu-group-trades .public-menu-submenu-trades:not([hidden]) {
    grid-template-columns: repeat(3, minmax(13rem, 1fr)) !important;
    width: min(68rem, calc(100vw - 1.5rem)) !important;
    max-height: min(72vh, 34rem) !important;
    overflow-y: auto !important;
  }
}



/* Public sector expansion 50 trades guard: new sectors use their own local no-person visuals. */
.sector-photo-gas-calderas,
.sector-photo-proteccion-incendios,
.sector-photo-puertas-automaticas,
.sector-photo-metalisteria-soldadura,
.sector-photo-excavaciones-tierras,
.sector-photo-reparacion-informatica-tpv,
.sector-photo-limpieza-conductos-campanas,
.sector-photo-aislamiento-eficiencia-energetica,
.sector-photo-domotica-smart-home,
.sector-photo-residuos-contenedores,
.sector-photo-eventos-montajes,
.sector-photo-lavanderia-industrial,
.sector-photo-psicologos,
.sector-photo-puntos-recarga-vehiculo-electrico,
.sector-photo-trabajos-verticales-fachadas,
.sector-photo-pladur-yeso-laminado,
.sector-photo-alicatados-ceramica,
.sector-photo-marmol-piedra-natural,
.sector-photo-tapiceria-restauracion,
.sector-photo-maquinaria-alquiler,
.sector-photo-catering-colectividades,
.sector-photo-peluqueria-estetica,
.sector-photo-reparacion-bicicletas-patinetes {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)),
    #dbeafe;
}

.sector-photo-gas-calderas { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-gas-calderas.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-proteccion-incendios { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-proteccion-incendios.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-puertas-automaticas { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-puertas-automaticas.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-metalisteria-soldadura { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-metalisteria-soldadura.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-excavaciones-tierras { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-excavaciones-tierras.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-reparacion-informatica-tpv { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-reparacion-informatica-tpv.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-limpieza-conductos-campanas { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-limpieza-conductos-campanas.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-aislamiento-eficiencia-energetica { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-aislamiento-eficiencia-energetica.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-domotica-smart-home { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-domotica-smart-home.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-residuos-contenedores { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-residuos-contenedores.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-eventos-montajes { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-eventos-montajes.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-lavanderia-industrial { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-lavanderia-industrial.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-psicologos { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-psicologos.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-puntos-recarga-vehiculo-electrico { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-puntos-recarga-vehiculo-electrico.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-trabajos-verticales-fachadas { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-trabajos-verticales-fachadas.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-pladur-yeso-laminado { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-pladur-yeso-laminado.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-alicatados-ceramica { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-alicatados-ceramica.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-marmol-piedra-natural { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-marmol-piedra-natural.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-tapiceria-restauracion { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-tapiceria-restauracion.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-maquinaria-alquiler { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-maquinaria-alquiler.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-catering-colectividades { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-catering-colectividades.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-peluqueria-estetica { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-peluqueria-estetica.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }
.sector-photo-reparacion-bicicletas-patinetes { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.12)), url("/assets/media/home/sector-reparacion-bicicletas-patinetes.jpg?v=noperson-20260626") !important; background-position: center !important; background-size: cover !important; }

/* Demo suspended read-only guard */
.suspended-account-banner {
  position: sticky;
  top: 0;
  z-index: 80;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: #eff6ff;
  color: #102a56;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
}
.suspended-account-banner strong { color: #0b1f44; }
.suspended-account-banner span { flex: 1 1 auto; }
.suspended-account-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
@media (max-width: 720px) {
  .suspended-account-banner {
    align-items: flex-start;
    flex-direction: column;
  }
.suspended-account-banner a { width: 100%; }
}

.admin-impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto 1rem;
  width: min(1180px, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  border: 1px solid #92400e;
  border-radius: 0.75rem;
  background: #fffbeb;
  color: #431407;
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.12);
}

.admin-impersonation-banner strong {
  color: #111827;
}

.admin-impersonation-banner form {
  margin: 0;
}

.admin-impersonation-banner button {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid #92400e;
  border-radius: 0.6rem;
  background: #ffffff;
  color: #431407;
  font-weight: 800;
}

.admin-impersonation-banner button:hover,
.admin-impersonation-banner button:focus-visible {
  background: #92400e;
  color: #ffffff;
}

html[data-theme="dark"] .admin-impersonation-banner {
  border-color: #d97706;
  background: #2f1d05;
  color: #fde68a;
}

html[data-theme="dark"] .admin-impersonation-banner strong {
  color: #ffffff;
}

html[data-theme="dark"] .admin-impersonation-banner button {
  border-color: #fbbf24;
  background: #111827;
  color: #fde68a;
}

html[data-theme="dark"] .admin-impersonation-banner button:hover,
html[data-theme="dark"] .admin-impersonation-banner button:focus-visible {
  background: #fbbf24;
  color: #111827;
}

@media (max-width: 720px) {
  .admin-impersonation-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-impersonation-banner button {
    width: 100%;
  }
}

/* Demo suspended write response */
.suspended-write-response {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
}
.suspended-write-response .auth-state-panel {
  width: min(100%, 620px);
  border-color: #bfdbfe;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}
.suspended-write-response h1 {
  margin: 6px 0 10px;
  color: #061a3d;
}
.suspended-write-response p {
  color: #334155;
}
@media (max-width: 640px) {
  .suspended-write-response {
    align-items: start;
    padding: 18px;
  }
  .suspended-write-response .hero-actions,
  .suspended-write-response .hero-actions .btn {
    width: 100%;
  }
}

/* Professional visual refinement 2026-06-30
   Conservative UI layer: shared scale, cleaner surfaces, stronger contrast and AA-oriented focus. */
:root {
  --ui-font-sans: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui-text: #071833;
  --ui-muted: #475569;
  --ui-soft: #64748b;
  --ui-line: #d8e4f5;
  --ui-line-strong: #b9cff2;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f7fbff;
  --ui-surface-blue: #edf6ff;
  --ui-primary: #1d4ed8;
  --ui-primary-strong: #163fae;
  --ui-primary-soft: #dbeafe;
  --ui-focus: #0f766e;
  --ui-radius-sm: 12px;
  --ui-radius-md: 18px;
  --ui-radius-lg: 24px;
  --ui-radius-xl: 32px;
  --ui-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --ui-shadow-md: 0 18px 48px rgba(15, 23, 42, 0.10);
  --ui-section-gap: clamp(28px, 5vw, 72px);
  --ui-card-gap: clamp(14px, 2vw, 24px);
}

html {
  font-family: var(--ui-font-sans);
  color: var(--ui-text);
  text-rendering: optimizeLegibility;
}

body {
  color: var(--ui-text);
  background:
    radial-gradient(circle at 8% 0%, rgba(147, 197, 253, 0.24), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 38%, #f7fbff 100%);
}

:where(.public-shell, .admin-shell, .auth-bg) {
  font-family: var(--ui-font-sans);
  color: var(--ui-text);
}

:where(.public-shell, .admin-shell, .auth-bg) :where(p, li, small, .muted, .help-text, .field-hint, .form-hint) {
  color: var(--ui-muted);
  line-height: 1.6;
}

:where(.public-shell, .admin-shell, .auth-bg) :where(h1, h2, h3, h4) {
  color: var(--ui-text);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.public-shell :where(h1, .hero h1, .hero-home h1) {
  max-width: 12.5ch;
  font-size: clamp(2.45rem, 6vw, 4.85rem) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.075em;
}

.public-shell :where(h2, .section-heading :is(h2)) {
  max-width: 18ch;
  font-size: clamp(2rem, 4.2vw, 3.6rem) !important;
  line-height: 1.02 !important;
}

.public-shell :where(h3) {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.15;
}

.admin-shell :where(h1) {
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  line-height: 1.08;
}

.admin-shell :where(h2) {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.14;
}

.public-shell :where(.public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section),
.admin-shell :where(.admin-panel, .business-section, .card, .metric-card) {
  border-color: var(--ui-line) !important;
  box-shadow: var(--ui-shadow-sm);
}

.public-shell :where(.public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step) {
  padding: clamp(24px, 4.5vw, 56px) !important;
  border-radius: var(--ui-radius-xl) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.72)),
    var(--ui-surface);
}

.public-shell :where(.section-heading) {
  width: 100% !important;
  max-width: none !important;
  gap: clamp(10px, 1.6vw, 18px);
}

.public-shell :where(.section-heading > p, .hero-copy > p:not(.eyebrow)) {
  max-width: 58rem;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  color: #24415f;
}

.public-shell :where(.hero, .hero-home) {
  gap: clamp(26px, 5vw, 76px) !important;
  align-items: center;
}

.public-shell :where(.hero-actions, .plan-primary-actions, .form-actions, .auth-actions),
.admin-shell :where(.hero-actions, .panel-actions, .form-actions, .inline-actions, .table-actions) {
  gap: 10px;
}

:where(.btn, .btn-small, button, input[type="submit"], .public-menu-link, .admin-menu-link) {
  touch-action: manipulation;
}

:where(.btn, .hero-actions .btn, .public-shell .btn, .admin-shell .btn, input[type="submit"], button[type="submit"]) {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

:where(.btn, .hero-actions .btn, .public-shell .btn, .admin-shell .btn):not(.btn-outline) {
  background: linear-gradient(135deg, var(--ui-primary), #2f6fed) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.22);
}

:where(.btn-outline, .public-shell .btn-outline, .admin-shell .btn-outline) {
  background: #ffffff !important;
  color: var(--ui-primary-strong) !important;
  border: 1px solid var(--ui-line-strong) !important;
  box-shadow: none !important;
}

:where(.btn, .btn-small, button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.42) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.12) !important;
}

:where(input, select, textarea) {
  min-height: 46px;
  border: 1px solid var(--ui-line-strong) !important;
  border-radius: 14px !important;
  color: var(--ui-text) !important;
  background: #ffffff !important;
}

:where(input::placeholder, textarea::placeholder) {
  color: #6b7f99;
  opacity: 1;
}

:where(label, .form-label) {
  color: #13233a;
  font-weight: 800;
}

:where(.card, .business-card, .metric-card, .plan-card, .sector-card, .module-card, .admin-panel, .auth-panel, .auth-card) {
  border-radius: var(--ui-radius-lg) !important;
  border-color: var(--ui-line) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--ui-shadow-sm) !important;
}

:where(.card:hover, .business-card:hover, .plan-card:hover, .sector-card:hover, .module-card:hover) {
  border-color: var(--ui-line-strong) !important;
  box-shadow: var(--ui-shadow-md) !important;
}

:where(.badge, .tag, .pill, .status-badge, .admin-mode-badge) {
  border-radius: 999px !important;
  border-color: var(--ui-line-strong) !important;
  color: #153a74 !important;
  background: #eff6ff !important;
  font-weight: 800;
}

.public-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--ui-line) !important;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: blur(16px);
}

.public-header :where(.public-menu-button, .public-menu-link, .btn-small) {
  min-height: 42px;
}

.public-header nav.public-menu :where(.public-menu-submenu, .public-menu-submenu-trades) {
  border-color: var(--ui-line-strong) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16) !important;
}

.admin-topbar,
.admin-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--ui-line) !important;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06) !important;
}

.admin-shell :where(table) {
  font-size: 0.94rem;
}

.admin-shell :where(th) {
  color: #13233a;
  letter-spacing: 0.045em;
}

.admin-shell :where(td) {
  color: #1f2f46;
}

@media (max-width: 980px) {
  .public-shell :where(.hero, .hero-home) {
    grid-template-columns: 1fr !important;
  }

  .public-shell :where(.hero-art, .hero-visual) {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .public-shell :where(.public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step) {
    padding: clamp(20px, 5vw, 36px) !important;
  }
}

@media (max-width: 720px) {
  body {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 48%, #f7fbff 100%);
  }

  .public-shell :where(h1, .hero h1, .hero-home h1) {
    max-width: 11.5ch;
    font-size: clamp(2.18rem, 13vw, 3.25rem) !important;
    line-height: 0.98 !important;
  }

  .public-shell :where(h2, .section-heading :is(h2)) {
    max-width: 12.5ch;
    font-size: clamp(1.75rem, 9vw, 2.65rem) !important;
  }

  .public-shell :where(.hero-actions, .plan-primary-actions, .form-actions, .auth-actions),
  .admin-shell :where(.panel-actions, .form-actions, .inline-actions) {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .public-shell :where(.hero-actions .btn, .hero-actions .btn-outline, .plan-primary-actions .btn, .plan-primary-actions .btn-outline),
  .admin-shell :where(.panel-actions .btn, .form-actions .btn, .inline-actions .btn) {
    width: 100%;
  }

  :where(.btn, .hero-actions .btn, .public-shell .btn, .admin-shell .btn, input[type="submit"], button[type="submit"]) {
    min-height: 48px;
  }

  :where(input, select, textarea) {
    min-height: 48px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Professional visual refinement v2 2026-06-30
   More visible product-grade restyle: clearer hierarchy, cleaner chrome, calmer cards. */
:root {
  --ui-page-gutter: clamp(16px, 3.6vw, 48px);
  --ui-max-width: 1240px;
  --ui-blue-ink: #071a3f;
  --ui-blue-soft: #eaf4ff;
  --ui-blue-panel: #f4f9ff;
  --ui-cyan-safe: #0e7490;
}

.public-shell {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(14, 116, 144, 0.10), transparent 28rem),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 42%, #f8fbff 100%) !important;
}

.public-shell :where(main, .public-main) {
  overflow-x: clip;
}

.public-shell :where(.container, .public-container, .public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
  max-width: var(--ui-max-width) !important;
  margin-inline: auto !important;
}

.public-shell :where(.public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
  position: relative;
  overflow: hidden;
  margin-block: clamp(18px, 3.6vw, 42px) !important;
}

.public-shell :where(.public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section)::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #2563eb, #7dd3fc);
  opacity: 0.9;
}

.public-shell :where(.hero, .hero-home) {
  min-height: min(720px, calc(100svh - 96px));
  padding: clamp(34px, 6vw, 82px) var(--ui-page-gutter) !important;
}

.public-shell :where(.hero-copy, .hero-home .hero-copy) {
  display: grid;
  align-content: center;
  gap: clamp(14px, 2vw, 24px);
}

.public-shell :where(.eyebrow) {
  width: fit-content;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.92);
  color: #1e40af !important;
  font-size: 0.78rem !important;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.public-shell :where(.hero h1, .hero-home h1) {
  max-width: 13ch !important;
  color: var(--ui-blue-ink) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.public-shell :where(.hero-copy > p:not(.eyebrow), .hero-home .hero-copy > p:not(.eyebrow)) {
  max-width: 45rem !important;
  color: #28415f !important;
  font-size: clamp(1.05rem, 1.65vw, 1.28rem) !important;
  line-height: 1.55 !important;
}

.public-shell :where(.hero-art, .hero-visual, .hero-card, .home-hero-visual) {
  border: 1px solid rgba(147, 197, 253, 0.72) !important;
  border-radius: clamp(24px, 4vw, 40px) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(219, 234, 254, 0.56)),
    #ffffff !important;
  box-shadow: 0 28px 90px rgba(30, 64, 175, 0.16) !important;
}

.public-shell :where(.hero-actions) {
  display: flex;
  flex-wrap: wrap;
  max-width: 44rem;
}

.public-shell :where(.hero-actions .btn, .hero-actions .btn-outline) {
  flex: 1 1 15rem;
  min-height: 52px;
  font-size: 1rem;
}

.public-header {
  min-height: 78px;
}

.public-header :where(.public-menu) {
  gap: 8px !important;
}

.public-header :where(.public-menu-button, .public-menu-link, .btn-small) {
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid #c8daf7 !important;
  color: #17345f !important;
  font-weight: 850 !important;
}

.public-header :where(.public-menu-button:hover, .public-menu-button:focus-visible, .public-menu-link:hover, .public-menu-link:focus-visible, .btn-small:hover, .btn-small:focus-visible) {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #0f3f91 !important;
}

.public-header nav.public-menu :where(.public-menu-submenu, .public-menu-submenu-trades) {
  padding: clamp(14px, 2vw, 24px) !important;
  border-radius: 28px !important;
}

.public-header nav.public-menu .public-menu-submenu-trades .public-menu-link {
  border-radius: 16px !important;
  background: #f8fbff !important;
}

.public-shell :where(.sector-card, .module-card, .business-card, .plan-card, .card) {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px) !important;
}

.public-shell :where(.sector-card, .module-card, .business-card, .plan-card, .card)::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.85), rgba(125, 211, 252, 0.95));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.public-shell :where(.sector-card:hover, .module-card:hover, .business-card:hover, .plan-card:hover, .card:hover)::after {
  opacity: 1;
}

.public-shell :where(.sector-card h3, .module-card h3, .business-card h3, .plan-card h3, .card h3) {
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
  color: #061a3d !important;
}

.public-shell :where(.sector-card p, .module-card p, .business-card p, .plan-card p, .card p) {
  color: #334b68 !important;
}

.public-shell :where(.pricing-grid, .plan-entry-price-grid, .plan-simple-names-grid) {
  align-items: stretch !important;
  gap: clamp(16px, 2.4vw, 26px) !important;
}

.public-shell :where(.plan-card.is-recommended, .plan-simple-names-grid article.is-recommended, .plan-entry-price-grid article.is-featured) {
  transform: translateY(-12px);
  border-width: 2px !important;
  border-color: #2563eb !important;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98)) !important;
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.20) !important;
}

.public-shell :where(form, .form-card, .auth-form, .checkout-form) {
  border-radius: 24px;
}

.public-shell :where(.form-row, .field-row, .grid-two-form) {
  gap: clamp(12px, 1.8vw, 18px) !important;
}

.auth-bg {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30rem),
    linear-gradient(135deg, #f8fbff, #ffffff 44%, #edf6ff) !important;
}

.auth-bg :where(.auth-card, .card) {
  border-radius: 28px !important;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.14) !important;
}

.admin-shell {
  background:
    linear-gradient(180deg, #f6faff 0%, #ffffff 36%, #f8fbff 100%) !important;
}

.admin-shell :where(.admin-panel, .business-section, .metric-card, .card) {
  border-radius: 22px !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07) !important;
}

.admin-shell :where(.admin-panel > h2, .business-section > h2, .card > h2) {
  margin-bottom: clamp(12px, 1.6vw, 20px);
}

.admin-shell :where(.filter-form, .business-form, .grid-two-form) {
  padding: clamp(14px, 2vw, 22px) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 20px !important;
  background: #fbfdff !important;
}

@media (min-width: 981px) {
  .public-shell :where(.hero, .hero-home) {
    grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.88fr) !important;
  }

  .public-shell :where(.pricing-grid, .plan-entry-price-grid, .plan-simple-names-grid) {
    padding-top: 12px;
  }
}

@media (max-width: 720px) {
  .public-shell :where(.public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section)::before {
    width: 100%;
    height: 4px;
    inset: 0 0 auto 0;
  }

  .public-shell :where(.hero, .hero-home) {
    min-height: auto;
    padding-top: 28px !important;
    padding-bottom: 34px !important;
  }

  .public-shell :where(.hero-copy, .hero-home .hero-copy) {
    gap: 12px;
  }

  .public-shell :where(.hero-actions) {
    max-width: none;
  }

  .public-shell :where(.plan-card.is-recommended, .plan-simple-names-grid article.is-recommended, .plan-entry-price-grid article.is-featured) {
    transform: none;
  }

  .public-header {
    min-height: 64px;
  }
}

/* Wide workspace refinement 2026-06-30
   Desktop content should use the screen instead of looking boxed into narrow lanes. */
@media (min-width: 1100px) {
  :root {
    --ui-max-width: min(1800px, 94vw);
    --ui-readable-width: 72rem;
  }

  .public-shell :where(.container, .public-container, .public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
    width: min(94vw, 1800px) !important;
    max-width: none !important;
  }

  .public-shell :where(.public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
    padding-inline: clamp(36px, 4vw, 72px) !important;
  }

  .public-shell :where(.section-heading > p, .hero-copy > p:not(.eyebrow)) {
    max-width: var(--ui-readable-width) !important;
  }

  .public-shell :where(.hero, .hero-home) {
    width: min(94vw, 1800px) !important;
    max-width: none !important;
    margin-inline: auto !important;
    grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr) !important;
  }

  .public-shell :where(.pricing-grid, .plan-entry-price-grid, .plan-simple-names-grid, .sector-grid, .module-grid, .cards-grid) {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  }

  .admin-shell :where(.admin-main, main, .admin-content, .admin-layout) {
    width: min(95vw, 1840px) !important;
    max-width: none !important;
    margin-inline: auto !important;
  }

  .admin-shell :where(.table-wrapper, .admin-table-wrapper, .business-table-wrapper) {
    width: 100% !important;
  }
}

@media (min-width: 1500px) {
  .public-shell :where(.container, .public-container, .public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section),
  .public-shell :where(.hero, .hero-home) {
    width: min(96vw, 1880px) !important;
  }

  .admin-shell :where(.admin-main, main, .admin-content, .admin-layout) {
    width: min(96vw, 1880px) !important;
  }
}

/* Wide layout clipping fix 2026-06-30
   Keep the wider layout, but prevent rigid columns and decorative overflow from cutting content. */
.public-shell,
.public-shell *,
.admin-shell,
.admin-shell * {
  box-sizing: border-box;
}

.public-shell :where(.public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
  overflow: visible !important;
}

.public-shell :where(.hero, .hero-home, .section-heading, .hero-copy, .hero-art, .hero-visual, .hero-card, .home-hero-visual),
.admin-shell :where(.admin-main, main, .admin-content, .admin-layout, .admin-panel) {
  min-width: 0 !important;
}

.public-shell :where(.hero-art, .hero-visual, .hero-card, .home-hero-visual, .sector-card, .module-card, .business-card, .plan-card, .card) {
  max-width: 100% !important;
}

.public-shell :where(img, svg, video, canvas) {
  max-width: 100%;
  height: auto;
}

@media (min-width: 1100px) {
  .public-shell :where(.container, .public-container, .public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
    width: min(92vw, 1760px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  .public-shell :where(.hero, .hero-home) {
    width: min(92vw, 1760px) !important;
    max-width: calc(100vw - 32px) !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr) !important;
  }

  .public-shell :where(.hero h1, .hero-home h1) {
    max-width: 12.2ch !important;
  }
}

@media (min-width: 1500px) {
  .public-shell :where(.container, .public-container, .public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section),
  .public-shell :where(.hero, .hero-home) {
    width: min(94vw, 1820px) !important;
    max-width: calc(100vw - 40px) !important;
  }
}


/* Public hero clipping guard 2026-07-02
   Nested public heroes must use their parent width, not another viewport width. */
.public-shell .public-section > .hero-home {
  width: 100% !important;
  max-width: 100% !important;
  min-height: auto !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

.public-shell .public-section > .hero-home .hero-copy,
.public-shell .public-section > .hero-home .hero-art,
.public-shell .public-section > .hero-home .hero-visual,
.public-shell .public-section > .hero-home .hero-card,
.public-shell .public-section > .hero-home .home-hero-visual {
  min-width: 0 !important;
}

.public-shell .public-section > .hero-home .sector-hero-card {
  width: 100% !important;
  max-width: 100% !important;
  justify-self: stretch !important;
  overflow: hidden !important;
  transform: none !important;
}

.public-shell .sector-hero-card strong,
.public-shell .sector-hero-card span {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-align: center;
}

.public-shell .sector-hero-card span {
  justify-self: center;
}

@media (min-width: 981px) {
  .public-shell .public-section > .hero-home {
    grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 0.75fr) !important;
    align-items: center !important;
    gap: clamp(28px, 4vw, 64px) !important;
  }

  .public-shell .public-section > .hero-home .hero-copy {
    max-width: min(100%, 52rem) !important;
  }

  .public-shell .public-section > .hero-home h1 {
    max-width: 14ch !important;
    font-size: clamp(3.6rem, 5.8vw, 6.4rem) !important;
    line-height: 0.94 !important;
  }
}

@media (max-width: 980px) {
  .public-shell .public-section > .hero-home {
    grid-template-columns: 1fr !important;
  }

  .public-shell .public-section > .hero-home h1 {
    max-width: none !important;
  }
}
/* Public visual overflow guard 2026-07-02: public hero, mockups and trade cards must not be clipped horizontally. */
.public-shell {
  overflow-x: clip;
}

.public-shell main,
.public-shell .container,
.public-shell .public-section,
.public-shell .hero-home,
.public-shell .home-hero,
.public-shell .grid-two,
.public-shell .sector-hero-grid,
.public-shell .sector-hero-card,
.public-shell .sector-visual-showcase,
.public-shell .home-hero-media {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.public-shell .public-section {
  overflow: hidden;
}

.public-shell .hero-home,
.public-shell .home-hero,
.public-shell .sector-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  width: 100%;
}

.public-shell .hero-home > *,
.public-shell .home-hero > *,
.public-shell .sector-hero-grid > *,
.public-shell .sector-hero-card > *,
.public-shell .sector-visual-showcase > *,
.public-shell .home-hero-media > * {
  max-width: 100%;
  min-width: 0;
}

.public-shell .sector-hero-card,
.public-shell .sector-visual-showcase,
.public-shell .home-hero-media {
  justify-self: stretch;
  overflow: hidden;
}

.public-shell .sector-hero-card span,
.public-shell .sector-hero-card strong,
.public-shell .sector-visual-showcase span,
.public-shell .sector-visual-showcase strong,
.public-shell .home-hero-media span,
.public-shell .home-hero-media strong {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .public-shell .hero-home,
  .public-shell .home-hero,
  .public-shell .sector-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .public-shell {
    overflow-x: hidden;
  }

  .public-shell .public-section {
    border-radius: 1rem;
  }
}

/* Public section clipping guard 2026-07-02:
   public cards, hero mockups and internal hero sections must never be cut by rigid columns. */
.public-shell {
  overflow-x: hidden !important;
}

.public-shell :where(.container, .public-container, .public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
  max-width: min(96vw, 1880px) !important;
  margin-inline: auto !important;
}

.public-shell :where(.public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
  overflow: visible !important;
}

.public-shell .public-section > .hero-home {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr) !important;
  gap: clamp(1.5rem, 4vw, 4rem) !important;
  overflow: visible !important;
}

.public-shell .public-section > .hero-home > *,
.public-shell .public-section > .hero-home .hero-copy,
.public-shell .public-section > .hero-home .hero-art,
.public-shell .public-section > .hero-home .sector-hero-card {
  min-width: 0 !important;
  max-width: 100% !important;
}

.public-shell .public-section > .hero-home .sector-hero-card {
  justify-self: stretch !important;
  overflow: hidden !important;
}

.public-shell .sector-hero-card span {
  width: auto !important;
  max-width: 100% !important;
  white-space: normal !important;
}

@media (max-width: 1180px) {
  .public-shell .public-section > .hero-home {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.58fr) !important;
  }
}

@media (max-width: 980px) {
  .public-shell .public-section > .hero-home {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Public wide card fit guard 2026-07-02:
   marketing pages must use the available screen width, avoid clipped product cards
   and keep sector CTAs readable on blue backgrounds. */
.public-shell .container,
.public-nav,
.public-footer {
  width: min(95vw, 1880px) !important;
  max-width: calc(100vw - 1.5rem) !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}

.public-shell .public-product-modules-band {
  overflow: visible !important;
}

.public-shell .public-product-modules-grid {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(13.5rem, 1fr)) !important;
  gap: clamp(1rem, 1.35vw, 1.45rem) !important;
}

.public-shell .public-product-module-card {
  min-width: 0 !important;
  min-height: clamp(12.5rem, 14vw, 14.75rem) !important;
  padding: clamp(1rem, 1.25vw, 1.35rem) !important;
  overflow: hidden !important;
}

.public-shell .public-product-module-card h3,
.public-shell .public-product-module-card p,
.public-shell .public-product-module-card li {
  overflow-wrap: anywhere !important;
}

.public-shell .public-sector-picker {
  width: 100% !important;
  max-width: 100% !important;
}

.public-shell .public-sector-picker-grid,
.public-shell .home-sector-more-grid {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 1.45vw, 1.55rem) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card,
.public-shell .home-sector-more-grid .home-sector-card {
  display: grid !important;
  grid-template-columns: clamp(10.5rem, 30%, 14.25rem) minmax(0, 1fr) !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-visual,
.public-shell .home-sector-more-grid .home-sector-card-visual {
  min-height: clamp(10.5rem, 13vw, 13.25rem) !important;
  height: 100% !important;
  border-radius: 1.35rem 0 0 1.35rem !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-copy,
.public-shell .home-sector-more-grid .home-sector-card-copy {
  align-content: center !important;
  gap: 0.5rem !important;
  padding: clamp(1.05rem, 1.45vw, 1.45rem) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-copy > strong,
.public-shell .home-sector-more-grid .home-sector-card-copy > strong {
  font-size: clamp(1.25rem, 1.65vw, 1.65rem) !important;
  line-height: 1.02 !important;
}

.public-shell .public-sector-picker-grid .home-sector-card small,
.public-shell .home-sector-more-grid .home-sector-card small {
  max-width: 32rem !important;
}

.public-shell .home-sector-card-cta,
.public-shell .public-sector-picker-grid .home-sector-card-cta,
.public-shell .home-sector-more-grid .home-sector-card-cta {
  border: 1px solid #1d4ed8 !important;
  background: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.2) !important;
}

.public-shell .home-sector-card:hover .home-sector-card-cta,
.public-shell .home-sector-card:focus-visible .home-sector-card-cta {
  background: #123f96 !important;
  border-color: #123f96 !important;
  color: #ffffff !important;
}

@media (max-width: 1180px) {
  .public-shell .public-product-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  .public-shell .public-sector-picker-grid,
  .public-shell .home-sector-more-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .public-shell .container,
  .public-nav,
  .public-footer {
    width: min(94vw, 1880px) !important;
    max-width: calc(100vw - 1rem) !important;
  }

  .public-shell .public-product-modules-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .public-shell .public-sector-picker-grid .home-sector-card,
  .public-shell .home-sector-more-grid .home-sector-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .public-shell .public-sector-picker-grid .home-sector-card-visual,
  .public-shell .home-sector-more-grid .home-sector-card-visual {
    min-height: 11rem !important;
    border-radius: 1.35rem 1.35rem 0 0 !important;
  }
}

/* Public full width section heading guard 2026-07-02:
   section headers and commercial grids must not keep narrow legacy max-widths
   after the public layout moved to a 95vw shell. */
.public-shell :where(.section-heading, .section-heading-tight, .sector-secondary-detail-body > .section-heading) {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  align-items: flex-start !important;
}

.public-shell :where(.section-heading > *, .section-heading h2, .section-heading p) {
  max-width: 100% !important;
}

.public-shell :where(.section-heading > p, .hero-copy > p:not(.eyebrow)) {
  max-width: min(100%, 62rem) !important;
}

.public-shell :where(.public-product-modules-band, .public-sector-picker, .home-band, .public-section) > .section-heading {
  max-width: 100% !important;
}

.public-shell :where(.public-product-modules-grid, .public-sector-picker-grid, .home-sector-more-grid, .pricing-grid, .grid-two, .grid-three) {
  width: 100% !important;
  max-width: 100% !important;
}

@media (min-width: 1100px) {
  .public-shell :where(.container, .public-container, .public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section),
  .public-shell :where(.hero, .hero-home) {
    width: min(95vw, 1880px) !important;
    max-width: calc(100vw - 1.5rem) !important;
  }
}

/* Public section hard anti-clipping guard 2026-07-02:
   wide sections may use the screen, but internal columns must never cut cards or text. */
.public-shell,
.public-shell main {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

.public-shell :where(.container, .public-container, .public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
  width: min(96vw, 1880px) !important;
  max-width: calc(100vw - 24px) !important;
}

.public-shell :where(.public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
  padding-inline: clamp(1.25rem, 3.4vw, 3.5rem) !important;
  overflow: hidden !important;
}

.public-shell :where(.hero-home, .home-hero, .hero, .grid-two, .sector-hero-grid, .sector-catalog-primary-next-step) {
  display: grid;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.58fr) !important;
  gap: clamp(1.25rem, 3vw, 3rem) !important;
}

.public-shell :where(.hero-home, .home-hero, .hero, .grid-two, .sector-hero-grid, .sector-catalog-primary-next-step) > * {
  max-width: 100% !important;
  min-width: 0 !important;
}

.public-shell .public-section > .hero-home {
  width: 100% !important;
  padding-inline: 0 !important;
}

.public-shell .public-section > .hero-home .sector-hero-card {
  width: min(100%, 34rem) !important;
  max-width: 100% !important;
  justify-self: end !important;
  padding: clamp(1.2rem, 2.4vw, 2rem) !important;
  overflow: hidden !important;
  transform: none !important;
}

.public-shell :where(.sector-hero-card strong, .sector-hero-card span, .section-heading :is(h2), .section-heading :is(p), .hero-copy h1, .hero-copy p) {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

@media (min-width: 981px) {
  .public-shell .public-section > .hero-home h1 {
    max-width: 12.4ch !important;
    font-size: clamp(3.3rem, 5vw, 5.65rem) !important;
    line-height: 0.98 !important;
  }
}

@media (max-width: 1320px) {
  .public-shell :where(.hero-home, .home-hero, .hero, .grid-two, .sector-hero-grid, .sector-catalog-primary-next-step) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .public-shell .public-section > .hero-home .sector-hero-card {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

/* Public sectors hero fit guard 2026-07-02:
   the gremios hero cannot cut the right visual card on laptop widths. */
.public-shell .sectors-hero-section,
.public-shell .sectors-hero-section > .hero-home,
.public-shell .sectors-hero-section .hero-copy,
.public-shell .sectors-hero-section .sector-hero-card {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.public-shell .sectors-hero-section > .hero-home {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.54fr) !important;
  align-items: center !important;
  overflow: visible !important;
}

.public-shell .sectors-hero-section .sector-hero-card {
  justify-self: stretch !important;
  width: 100% !important;
  transform: none !important;
}

.public-shell .sectors-hero-section .sector-hero-card strong,
.public-shell .sectors-hero-section .sector-hero-card span {
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

@media (max-width: 1500px) {
  .public-shell .sectors-hero-section > .hero-home {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .public-shell .sectors-hero-section .sector-hero-card {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

/* Public wide layout refinement guard 2026-07-02:
   final cascade layer for wide public pages, compact trade cards and readable CTAs. */
.public-shell .container,
.public-nav,
.public-footer {
  width: 95% !important;
  max-width: 1880px !important;
}

.public-shell :where(.public-container, .public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
  width: 95% !important;
  max-width: 1880px !important;
  overflow: visible !important;
  padding-inline: clamp(1rem, 2vw, 2rem) !important;
}

.public-shell .public-product-modules-band {
  overflow: visible !important;
}

.public-shell .public-product-modules-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.85rem, 1vw, 1.2rem) !important;
  overflow: visible !important;
}

.public-shell .public-product-module-card {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: clamp(0.95rem, 1.1vw, 1.2rem) !important;
  display: grid !important;
  align-content: start !important;
  gap: 0.7rem !important;
}

.public-shell .public-product-module-card ul {
  margin: 0.15rem 0 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.45rem !important;
}

.public-shell .public-sector-picker-grid,
.public-shell .home-sector-more-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(0.95rem, 1.25vw, 1.35rem) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card,
.public-shell .home-sector-more-grid .home-sector-card {
  grid-template-columns: minmax(8.75rem, 18%) minmax(0, 1fr) !important;
  min-height: clamp(9.5rem, 10vw, 11rem) !important;
  border-radius: 1.25rem !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-visual,
.public-shell .home-sector-more-grid .home-sector-card-visual {
  min-height: 100% !important;
  border-radius: 1.25rem 0 0 1.25rem !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-copy,
.public-shell .home-sector-more-grid .home-sector-card-copy {
  padding: clamp(0.85rem, 1.05vw, 1.1rem) !important;
  gap: 0.38rem !important;
  align-content: center !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-copy > strong,
.public-shell .home-sector-more-grid .home-sector-card-copy > strong {
  font-size: clamp(1.28rem, 1.5vw, 1.58rem) !important;
  line-height: 1.04 !important;
  max-width: 100% !important;
}

.public-shell .public-sector-picker-grid .home-sector-card small,
.public-shell .home-sector-more-grid .home-sector-card small,
.public-shell .public-sector-picker-grid .home-sector-card em,
.public-shell .home-sector-more-grid .home-sector-card em {
  max-width: 100% !important;
  line-height: 1.25 !important;
}

.public-shell .home-sector-card-cta,
.public-shell .public-sector-picker-grid .home-sector-card-cta,
.public-shell .home-sector-more-grid .home-sector-card-cta {
  width: fit-content !important;
  min-height: 2.05rem !important;
  padding: 0.48rem 0.82rem !important;
  border: 1px solid #1746a2 !important;
  background: #1746a2 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
}

.public-shell .home-sector-card:hover .home-sector-card-cta,
.public-shell .home-sector-card:focus-visible .home-sector-card-cta {
  background: #0f3479 !important;
  border-color: #0f3479 !important;
  color: #ffffff !important;
}

@media (max-width: 1180px) {
  .public-shell .public-product-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .public-shell .public-sector-picker-grid .home-sector-card,
  .public-shell .home-sector-more-grid .home-sector-card {
    grid-template-columns: minmax(8rem, 22%) minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .public-shell .container,
  .public-nav,
  .public-footer,
  .public-shell :where(.public-container, .public-section, .home-band, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
    width: min(94vw, 100%) !important;
    max-width: calc(100vw - 1rem) !important;
  }

  .public-shell .public-sector-picker-grid,
  .public-shell .home-sector-more-grid,
  .public-shell .public-product-modules-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .public-shell .public-sector-picker-grid .home-sector-card,
  .public-shell .home-sector-more-grid .home-sector-card {
    grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) !important;
  }

  .public-shell .public-sector-picker-grid .home-sector-card-visual,
  .public-shell .home-sector-more-grid .home-sector-card-visual {
    border-radius: 1.25rem 0 0 1.25rem !important;
  }
}

/* Public 95 width no clipping final guard 2026-07-02:
   keep public sections inside the viewport, use real desktop width and make
   product/trade cards compact enough to avoid cropped columns. */
.public-shell,
.public-shell *,
.public-header,
.public-header *,
.public-footer,
.public-footer * {
  box-sizing: border-box !important;
}

.public-shell .container,
.public-nav,
.public-footer {
  width: 95% !important;
  max-width: min(1880px, calc(100vw - 1rem)) !important;
  margin-inline: auto !important;
}

.public-shell :where(.container, .public-container, .public-section, .home-band, .public-product-modules-band, .public-sector-picker, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-inline: auto !important;
  overflow: hidden !important;
}

.public-shell :where(.public-product-modules-band, .public-sector-picker) {
  padding-inline: clamp(1.1rem, 2.4vw, 2.6rem) !important;
}

.public-shell .public-product-modules-grid {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: clamp(0.85rem, 1vw, 1.15rem) !important;
  overflow: visible !important;
}

.public-shell .public-product-module-card {
  min-width: 0 !important;
  min-height: clamp(10.5rem, 11.5vw, 12.25rem) !important;
  padding: clamp(0.9rem, 1vw, 1.1rem) !important;
}

.public-shell .public-product-module-card :where(h3, p, li, span) {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

.public-shell .public-sector-picker-grid,
.public-shell .home-sector-more-grid {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(0.85rem, 1.1vw, 1.15rem) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card,
.public-shell .home-sector-more-grid .home-sector-card {
  min-width: 0 !important;
  min-height: clamp(8.75rem, 9vw, 9.8rem) !important;
  display: grid !important;
  grid-template-columns: clamp(9.5rem, 23%, 13.25rem) minmax(0, 1fr) !important;
  align-items: stretch !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-visual,
.public-shell .home-sector-more-grid .home-sector-card-visual {
  min-height: clamp(8.75rem, 9vw, 9.8rem) !important;
  height: 100% !important;
  border-radius: 1.25rem 0 0 1.25rem !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-copy,
.public-shell .home-sector-more-grid .home-sector-card-copy {
  min-width: 0 !important;
  padding: clamp(0.78rem, 0.95vw, 1rem) clamp(0.95rem, 1.2vw, 1.2rem) !important;
  gap: 0.32rem !important;
  align-content: center !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-copy > strong,
.public-shell .home-sector-more-grid .home-sector-card-copy > strong {
  font-size: clamp(1.18rem, 1.35vw, 1.42rem) !important;
  line-height: 1.04 !important;
}

.public-shell .public-sector-picker-grid .home-sector-card small,
.public-shell .home-sector-more-grid .home-sector-card small {
  font-size: clamp(0.92rem, 0.98vw, 1rem) !important;
  line-height: 1.22 !important;
}

.public-shell .home-sector-card-cta,
.public-shell .public-sector-picker-grid .home-sector-card-cta,
.public-shell .home-sector-more-grid .home-sector-card-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-height: 2.15rem !important;
  padding: 0.5rem 0.9rem !important;
  border: 1px solid #0f3f99 !important;
  background: #0f3f99 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
  box-shadow: 0 10px 20px rgba(15, 63, 153, 0.2) !important;
}

.public-shell .home-sector-card-cta:visited,
.public-shell .home-sector-card:hover .home-sector-card-cta,
.public-shell .home-sector-card:focus-visible .home-sector-card-cta {
  background: #092f73 !important;
  border-color: #092f73 !important;
  color: #ffffff !important;
}

@media (max-width: 1180px) {
  .public-shell .public-product-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .public-shell .public-sector-picker-grid,
  .public-shell .home-sector-more-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .public-shell .container,
  .public-nav,
  .public-footer {
    width: min(95%, calc(100vw - 1rem)) !important;
  }

  .public-shell .public-product-modules-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .public-shell .public-sector-picker-grid .home-sector-card,
  .public-shell .home-sector-more-grid .home-sector-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .public-shell .public-sector-picker-grid .home-sector-card-visual,
  .public-shell .home-sector-more-grid .home-sector-card-visual {
    min-height: 9.5rem !important;
    border-radius: 1.25rem 1.25rem 0 0 !important;
  }
}
/* Suppliers per client: provider directory must stay usable on phones. */
.pending-material-supplier-link {
  margin-top: 0.45rem;
  width: 100%;
  justify-content: center;
}

@media (max-width: 760px) {
  .admin-shell .table-wrap:has(.supplier-target-row) tr.supplier-target-row td:nth-child(1)::before { content: "Proveedor" !important; }
  .admin-shell .table-wrap:has(.supplier-target-row) tr.supplier-target-row td:nth-child(2)::before { content: "Cuenta" !important; }
  .admin-shell .table-wrap:has(.supplier-target-row) tr.supplier-target-row td:nth-child(3)::before { content: "Categoría" !important; }
  .admin-shell .table-wrap:has(.supplier-target-row) tr.supplier-target-row td:nth-child(4)::before { content: "Contacto" !important; }
  .admin-shell .table-wrap:has(.supplier-target-row) tr.supplier-target-row td:nth-child(5)::before { content: "Condiciones" !important; }
  .admin-shell .table-wrap:has(.supplier-target-row) tr.supplier-target-row td:nth-child(6)::before { content: "Estado" !important; }
  .admin-shell .table-wrap:has(.supplier-target-row) tr.supplier-target-row td:nth-child(7)::before { content: "Acciones" !important; }
}
/* Interactive tutorial guide 2026-07-03 */
.admin-shell .tutorial-guide-page {
    gap: 1.25rem;
}

.admin-shell .tutorial-guide-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, .8fr);
    gap: 1rem;
    align-items: center;
}

.admin-shell .tutorial-guide-kpis {
    margin: 0;
}

.admin-shell .tutorial-guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.admin-shell .tutorial-guide-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .85rem;
    align-items: flex-start;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--border, #dbe7ff);
    border-radius: 1.15rem;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.9));
    box-shadow: 0 16px 36px rgba(15, 23, 42, .07);
}

.admin-shell .tutorial-guide-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .9rem;
    color: #0b3b91;
    background: #e0f2fe;
    font-weight: 900;
}

.admin-shell .tutorial-guide-step h4,
.admin-shell .tutorial-guide-step p {
    overflow-wrap: anywhere;
}

.admin-shell .tutorial-guide-step .btn {
    margin-top: .65rem;
}

.admin-shell .tutorial-guide-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 760px) {
    .admin-shell .tutorial-guide-summary,
    .admin-shell .tutorial-guide-next {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-shell .tutorial-guide-step {
        grid-template-columns: 1fr;
    }
}

.admin-shell .tutorial-editor {
    display: grid;
    gap: 1rem;
}

.admin-shell .tutorial-editor-form {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border, #dbe7ff);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .86);
}

.admin-shell .tutorial-editor textarea {
    width: 100%;
    min-height: 8rem;
    resize: vertical;
}

.admin-shell .tutorial-guide-step .inline-form {
    display: inline-flex;
    margin: 0;
}

@media (max-width: 760px) {
    .admin-shell .tutorial-editor-form {
        padding: .85rem;
    }

    .admin-shell .tutorial-guide-step .admin-actions {
        align-items: stretch;
    }
}

/* Client account action log: simple tenant-scoped traceability without internal audit noise. */
.admin-shell .account-action-log-panel {
  border-left: 0.34rem solid #1d4ed8;
}

.admin-shell .account-action-log-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.admin-shell .account-action-log-list li {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(14rem, 1.6fr) minmax(8rem, 0.7fr);
  padding: 0.9rem 1rem;
}

.admin-shell .account-action-log-list span,
.admin-shell .account-action-log-list small {
  color: #475569;
  font-weight: 700;
}

.admin-shell .account-action-log-list strong {
  color: #0f172a;
}

html[data-theme="dark"] .admin-shell .account-action-log-list li {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(96, 165, 250, 0.35);
}

html[data-theme="dark"] .admin-shell .account-action-log-list strong {
  color: #eff6ff;
}

html[data-theme="dark"] .admin-shell .account-action-log-list span,
html[data-theme="dark"] .admin-shell .account-action-log-list small {
  color: #bfdbfe;
}

@media (max-width: 780px) {
  .admin-shell .account-action-log-list li {
    grid-template-columns: 1fr;
  }
}


/* Mantivo global blue action guard 2026-07-03: primary actions stay blue; orange is only for functional warnings. */
:root {
  --mantivo-action-primary: #1d4ed8;
  --mantivo-action-primary-hover: #173f9f;
  --mantivo-action-focus: rgba(37, 99, 235, 0.32);
}

.public-shell .btn:not(.btn-outline):not(.btn-secondary):not(.btn-ghost):not(.btn-warning):not(.btn-danger),
.admin-shell .btn:not(.btn-outline):not(.btn-secondary):not(.btn-ghost):not(.btn-warning):not(.btn-danger),
.auth-bg .stacked-form button[type="submit"],
.public-shell .home-sector-card-cta,
.public-shell .public-mobile-cta a.active,
.public-shell .public-menu-action .btn-small.public-menu-link,
.public-shell .plan-card .btn,
.public-shell .sector-card .btn,
.public-shell .checkout-summary .btn {
  background: linear-gradient(135deg, var(--mantivo-action-primary), #2f6bea) !important;
  border-color: var(--mantivo-action-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.20) !important;
}

.public-shell .btn:not(.btn-outline):not(.btn-secondary):not(.btn-ghost):not(.btn-warning):not(.btn-danger):hover,
.admin-shell .btn:not(.btn-outline):not(.btn-secondary):not(.btn-ghost):not(.btn-warning):not(.btn-danger):hover,
.auth-bg .stacked-form button[type="submit"]:hover,
.public-shell .home-sector-card-cta:hover,
.public-shell .plan-card .btn:hover,
.public-shell .sector-card .btn:hover,
.public-shell .checkout-summary .btn:hover {
  background: linear-gradient(135deg, var(--mantivo-action-primary-hover), #255bd8) !important;
  border-color: var(--mantivo-action-primary-hover) !important;
  color: #ffffff !important;
}

.public-shell .btn:focus-visible,
.admin-shell .btn:focus-visible,
.auth-bg .stacked-form button[type="submit"]:focus-visible,
.public-shell .home-sector-card-cta:focus-visible {
  outline: 3px solid var(--mantivo-action-focus) !important;
  outline-offset: 3px !important;
}

.public-shell .btn-warning,
.admin-shell .btn-warning,
.public-shell .alert-warning,
.admin-shell .alert-warning,
.public-shell [role="alert"].warning,
.admin-shell [role="alert"].warning {
  color: #7c2d12 !important;
}

/* Quote line items guard 2026-07-03 */
.quote-lines-editor {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #dbeafe;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.quote-lines-editor h4,
.quote-lines-editor p {
  margin: 0;
}

.quote-lines-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(7rem, 0.35fr) minmax(8rem, 0.45fr);
  gap: 0.65rem;
}

.quote-lines-grid label {
  min-width: 0;
}

.quote-lines-grid span {
  display: block;
  margin-bottom: 0.25rem;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 850;
}

@media (max-width: 760px) {
  .quote-lines-grid {
    grid-template-columns: 1fr;
  }
}
/* Autonomous support answer steps */
.support-auto-answer-next-steps {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.06);
}

.support-auto-answer-next-steps strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #163b7a;
}

/* Mantivo reduced motion terminal guard: keep OS reduced-motion preference above late visual refinements. */
@media (prefers-reduced-motion: reduce) {
  html:focus-within,
  html,
  body,
  .public-shell,
  .auth-bg,
  .admin-shell {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-name: none !important;
    scroll-behavior: auto !important;
    transition-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-property: none !important;
  }
}

/* Public no clipping terminal guard 2026-07-11:
   keep commercial sections wide, readable and never horizontally cropped. */
.public-shell .container,
.public-nav,
.public-footer {
  width: 95% !important;
  max-width: min(1880px, calc(100vw - 1rem)) !important;
}

.public-shell :where(.public-container, .public-section, .home-band, .public-product-modules-band, .public-sector-picker, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
  max-width: min(1880px, 95vw) !important;
  overflow: visible !important;
}

.public-shell :where(.public-product-modules-grid, .public-sector-picker-grid, .home-sector-more-grid, .pricing-grid, .grid-two, .grid-three) {
  min-width: 0 !important;
  max-width: 100% !important;
}

.public-shell .public-product-modules-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)) !important;
}

.public-shell .public-product-module-card {
  min-height: auto !important;
}

.public-shell .public-product-module-card :where(h3, p, li, span),
.public-shell .home-sector-card-copy :where(strong, small, em, span),
.public-shell .sector-card :where(h3, p, li, span) {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

.public-shell .public-sector-picker-grid,
.public-shell .home-sector-more-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 34rem), 1fr)) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card,
.public-shell .home-sector-more-grid .home-sector-card {
  grid-template-columns: minmax(11rem, 28%) minmax(0, 1fr) !important;
  min-height: 9.25rem !important;
}

.public-shell .home-sector-card-cta,
.public-shell .public-sector-picker-grid .home-sector-card-cta,
.public-shell .home-sector-more-grid .home-sector-card-cta,
.public-shell .sector-card .btn {
  min-width: max-content !important;
  color: #ffffff !important;
}

@media (max-width: 760px) {
  .public-shell .container,
  .public-nav,
  .public-footer,
  .public-shell :where(.container, .public-container, .public-section, .home-band, .public-product-modules-band, .public-sector-picker, .sector-instant-band, .sector-catalog-primary-next-step, .pricing-section) {
    width: min(95%, calc(100vw - 1rem)) !important;
    max-width: calc(100vw - 1rem) !important;
    overflow: visible !important;
  }

  .public-shell .public-sector-picker-grid .home-sector-card,
  .public-shell .home-sector-more-grid .home-sector-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Public layout guard 2026-07-18: prevent narrow hero titles and clipped cards */
.public-shell .container,
.public-nav,
.public-footer {
  width: min(95vw, 1680px);
  max-width: none;
}

.public-shell .hero-home .hero-copy,
.public-shell .hero-home .hero-copy > p:not(.eyebrow) {
  max-width: min(100%, 56rem);
}

.public-shell .hero-home h1,
.home-hero h1,
.public-shell .section-heading :is(h2) {
  max-width: min(100%, 18ch);
  overflow-wrap: normal;
  word-break: normal;
}

.public-shell .public-section,
.public-shell .hero-home,
.public-shell .sector-card,
.public-shell .plan-entry-price-grid article,
.public-shell .plan-simple-names-grid article {
  min-width: 0;
}

.public-shell .sector-card h3,
.public-shell .sector-card p,
.public-shell .sector-card .badge,
.public-shell .plan-entry-price-grid article,
.public-shell .plan-simple-names-grid article {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .public-shell .hero-home h1,
  .home-hero h1,
  .public-shell .section-heading :is(h2) {
    max-width: 100%;
  }
}

/* Public 95 width no clipping final guard 2026-07-02:
   terminal override after legacy heading limits so public cards and headings use the available width. */
.public-shell,
.public-shell *,
.public-header,
.public-header *,
.public-footer,
.public-footer * {
  box-sizing: border-box !important;
}

.public-shell .container,
.public-nav,
.public-footer {
  width: 95% !important;
  max-width: min(1880px, calc(100vw - 1rem)) !important;
  margin-inline: auto !important;
}

.public-shell :where(.section-heading, .section-heading-tight, .sector-secondary-detail-body > .section-heading),
.public-shell :where(.section-heading > *),
.public-shell .section-heading :where(h2, p) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

.public-shell :where(.public-product-modules-grid, .public-sector-picker-grid, .home-sector-more-grid, .pricing-grid, .grid-two, .grid-three) {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.public-shell .public-product-modules-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.public-shell .public-sector-picker-grid,
.public-shell .home-sector-more-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card,
.public-shell .home-sector-more-grid .home-sector-card {
  grid-template-columns: clamp(9.5rem, 23%, 13.25rem) minmax(0, 1fr) !important;
}

.public-shell .home-sector-card-cta,
.public-shell .public-sector-picker-grid .home-sector-card-cta,
.public-shell .home-sector-more-grid .home-sector-card-cta {
  background: #0f3f99 !important;
  color: #ffffff !important;
}

@media (max-width: 1180px) {
  .public-shell .public-product-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .public-shell .public-sector-picker-grid,
  .public-shell .home-sector-more-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .public-shell .container,
  .public-nav,
  .public-footer {
    width: min(95%, calc(100vw - 1rem)) !important;
  }

  .public-shell .public-product-modules-grid,
  .public-shell .public-sector-picker-grid,
  .public-shell .home-sector-more-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Public final width and clipping polish 2026-07-20:
   public pages must use real desktop width, avoid narrow headline clamps and keep cards readable. */
.public-shell {
  --container: min(1760px, 95vw);
}

.public-shell .container,
.public-nav,
.public-footer {
  width: min(1760px, 95vw) !important;
  max-width: 95vw;
}

.public-shell .section-heading,
.public-shell .home-band .section-heading,
.public-shell .public-section .section-heading,
.public-shell .sector-instant-band .section-heading {
  width: 100%;
  max-width: none !important;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 0.55fr);
  align-items: end;
  gap: clamp(1rem, 3vw, 3rem);
}

.public-shell .section-heading h1,
.public-shell .section-heading :is(h2),
.public-shell .hero-home h1,
.public-shell .home-hero-product h1,
.public-shell .sector-hero h1,
.public-shell .page-hero h1 {
  max-width: min(100%, 18ch) !important;
  overflow-wrap: normal;
  text-wrap: balance;
}

.public-shell .section-heading :is(p),
.public-shell .hero-copy > p:not(.eyebrow),
.public-shell .page-hero p {
  max-width: min(100%, 62rem) !important;
  text-wrap: pretty;
}

.public-shell .home-sector-grid,
.public-shell .sector-catalog-grid,
.public-shell .module-grid,
.public-shell .plan-simple-names-grid,
.public-shell .plan-entry-price-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  align-items: stretch;
}

.public-shell .home-sector-card,
.public-shell .sector-card,
.public-shell .plan-card,
.public-shell .module-card,
.public-shell .feature-card,
.public-shell .public-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.public-shell .home-sector-card *,
.public-shell .sector-card *,
.public-shell .plan-card *,
.public-shell .module-card *,
.public-shell .feature-card *,
.public-shell .public-card * {
  min-width: 0;
}

.public-shell .home-sector-card h3,
.public-shell .sector-card h3,
.public-shell .plan-card h3,
.public-shell .module-card h3,
.public-shell .feature-card h3,
.public-shell .public-card h3,
.public-shell .home-sector-card p,
.public-shell .sector-card p,
.public-shell .plan-card p,
.public-shell .module-card p,
.public-shell .feature-card p,
.public-shell .public-card p {
  overflow-wrap: anywhere;
}

.public-shell .btn,
.public-shell .btn-outline,
.public-shell button,
.public-shell .button-like {
  min-width: 0;
  white-space: normal;
  text-align: center;
}

@media (max-width: 980px) {
  .public-shell .section-heading,
  .public-shell .home-band .section-heading,
  .public-shell .public-section .section-heading,
  .public-shell .sector-instant-band .section-heading {
    grid-template-columns: 1fr;
  }

  .public-shell .section-heading h1,
  .public-shell .section-heading :is(h2),
  .public-shell .hero-home h1,
  .public-shell .home-hero-product h1,
  .public-shell .sector-hero h1,
  .public-shell .page-hero h1 {
    max-width: 100% !important;
  }
}

@media (max-width: 640px) {
  .public-shell .container,
  .public-nav,
  .public-footer {
    width: min(100% - 1rem, 95vw) !important;
    max-width: calc(100vw - 1rem);
  }

  .public-shell .home-sector-grid,
  .public-shell .sector-catalog-grid,
  .public-shell .module-grid,
  .public-shell .plan-simple-names-grid,
  .public-shell .plan-entry-price-grid {
    grid-template-columns: 1fr;
  }
}
/* Admin daily form touch guard 2026-07-26:
   private screens must be easier for non-technical users and phone work. */
.admin-shell :where(input, select, textarea) {
  min-height: 2.75rem !important;
  border-radius: 0.85rem !important;
  border-color: #b8cbea !important;
  color: #07142f !important;
  background: #ffffff !important;
  font-size: 0.98rem !important;
}

.admin-shell :where(input::placeholder, textarea::placeholder) {
  color: #64748b !important;
  opacity: 1 !important;
}

.admin-shell :where(input:focus-visible, select:focus-visible, textarea:focus-visible) {
  border-color: #123f91 !important;
  outline: 3px solid rgba(37, 99, 235, 0.22) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 1px rgba(18, 63, 145, 0.18) !important;
}

.admin-shell :where(.form-actions, .admin-actions, .panel-actions, .inline-actions, .table-actions) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.65rem !important;
  align-items: center !important;
}

.admin-shell :where(.form-actions .btn, .form-actions button, .admin-actions .btn, .admin-actions button, .panel-actions .btn, .panel-actions button, .inline-actions .btn, .inline-actions button, .table-actions .btn, .table-actions button) {
  min-height: 2.75rem !important;
  border-radius: 0.85rem !important;
  white-space: normal !important;
  line-height: 1.15 !important;
}

.admin-shell :where(.form-grid, .grid-two-form, .business-form, .filter-form) {
  gap: clamp(0.85rem, 1.5vw, 1.2rem) !important;
}

.admin-shell :where(.admin-panel, .business-section, .card, .metric-card) {
  overflow: visible !important;
}

.admin-shell :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper) {
  border-radius: 1rem !important;
  -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 760px) {
  .admin-shell :where(input, select, textarea, .btn, button, input[type="submit"]) {
    min-height: 3.1rem !important;
    font-size: 1rem !important;
  }

  .admin-shell :where(.form-actions, .admin-actions, .panel-actions, .inline-actions) {
    align-items: stretch !important;
  }

  .admin-shell :where(.form-actions .btn, .form-actions button, .admin-actions .btn, .admin-actions button, .panel-actions .btn, .panel-actions button, .inline-actions .btn, .inline-actions button) {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  .admin-shell :where(.table-actions .btn, .table-actions button) {
    flex: 1 1 min(100%, 9rem) !important;
  }
}

/* Admin contextual help touch guard 2026-07-26:
   the question mark must stay compact, reachable and keyboard-visible. */
.admin-shell .context-inline-help {
  width: 2.85rem !important;
  height: 2.85rem !important;
  min-width: 2.85rem !important;
  min-height: 2.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  margin-left: 0.55rem !important;
  border: 1px solid #a7c7ff !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #123f91 !important;
  box-shadow: 0 10px 22px rgba(18, 63, 145, 0.08) !important;
}

.admin-shell .context-inline-help:hover,
.admin-shell .context-inline-help:focus-visible {
  background: #dbeafe !important;
  border-color: #123f91 !important;
  color: #0b2f6f !important;
  outline: 3px solid rgba(37, 99, 235, 0.24) !important;
  outline-offset: 3px !important;
}

.admin-shell :where(.admin-heading, .panel-title, .section-heading, .form-section-heading) .context-inline-help {
  margin-top: 0.15rem !important;
  vertical-align: top !important;
}

html[data-theme="dark"] .admin-shell .context-inline-help {
  border-color: rgba(147, 197, 253, 0.48) !important;
  background: #172554 !important;
  color: #dbeafe !important;
}

html[data-theme="dark"] .admin-shell .context-inline-help:hover,
html[data-theme="dark"] .admin-shell .context-inline-help:focus-visible {
  background: #1e3a8a !important;
  border-color: #93c5fd !important;
  color: #ffffff !important;
}

@media (max-width: 760px) {
  .admin-shell .context-inline-help {
    width: 3.1rem !important;
    height: 3.1rem !important;
    min-width: 3.1rem !important;
    min-height: 3.1rem !important;
    margin-left: 0.35rem !important;
  }
}

/* Destructive action clarity guard 2026-07-26:
   cancellation, delete and void actions must not look like normal primary CTAs. */
.admin-shell :where(button.danger, .btn.danger, .btn-danger, input[type="submit"].danger) {
  background: #b42318 !important;
  border-color: #b42318 !important;
  color: #ffffff !important;
  min-height: 2.85rem !important;
  border-radius: 0.85rem !important;
  box-shadow: 0 12px 26px rgba(180, 35, 24, 0.18) !important;
}

.admin-shell :where(button.danger, .btn.danger, .btn-danger, input[type="submit"].danger):hover,
.admin-shell :where(button.danger, .btn.danger, .btn-danger, input[type="submit"].danger):focus-visible {
  background: #8f1f17 !important;
  border-color: #8f1f17 !important;
  color: #ffffff !important;
  outline: 3px solid rgba(180, 35, 24, 0.26) !important;
  outline-offset: 3px !important;
}

.admin-shell :where(.alert.danger, .notice.danger) {
  border-color: #f4b4ad !important;
  background: #fff1f0 !important;
  color: #7a271a !important;
}

html[data-theme="dark"] .admin-shell :where(button.danger, .btn.danger, .btn-danger, input[type="submit"].danger) {
  background: #f04438 !important;
  border-color: #f97066 !important;
  color: #111827 !important;
}

html[data-theme="dark"] .admin-shell :where(.alert.danger, .notice.danger) {
  border-color: rgba(248, 113, 113, 0.55) !important;
  background: rgba(127, 29, 29, 0.46) !important;
  color: #fecaca !important;
}

@media (max-width: 760px) {
  .admin-shell :where(button.danger, .btn.danger, .btn-danger, input[type="submit"].danger) {
    min-height: 3.1rem !important;
  }
}

/* Disabled and readonly clarity guard 2026-07-26:
   unavailable controls and locked fields must not look editable or primary. */
:where(.admin-shell, .auth-bg) :where(button, .btn, .btn-small, input[type="submit"]):disabled,
:where(.admin-shell, .auth-bg) :where(button, .btn, .btn-small)[aria-disabled="true"],
:where(.admin-shell, .auth-bg) :where(.is-disabled, .btn-disabled) {
  cursor: not-allowed !important;
  opacity: 1 !important;
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
  box-shadow: none !important;
  transform: none !important;
}

:where(.admin-shell, .auth-bg) :where(input:not([type="submit"]), select, textarea):disabled,
:where(.admin-shell, .auth-bg) :where(input:not([type="submit"]), textarea)[readonly] {
  cursor: default !important;
  opacity: 1 !important;
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2) !important;
}

:where(.admin-shell, .auth-bg) :where(input:not([type="submit"]), textarea)[readonly]:focus-visible {
  border-color: #64748b !important;
  outline: 3px solid rgba(100, 116, 139, 0.22) !important;
  outline-offset: 2px !important;
}

html[data-theme="dark"] :where(.admin-shell, .auth-bg) :where(button, .btn, .btn-small, input[type="submit"]):disabled,
html[data-theme="dark"] :where(.admin-shell, .auth-bg) :where(button, .btn, .btn-small)[aria-disabled="true"],
html[data-theme="dark"] :where(.admin-shell, .auth-bg) :where(.is-disabled, .btn-disabled) {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] :where(.admin-shell, .auth-bg) :where(input:not([type="submit"]), select, textarea):disabled,
html[data-theme="dark"] :where(.admin-shell, .auth-bg) :where(input:not([type="submit"]), textarea)[readonly] {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #cbd5e1 !important;
}

/* Status badge contrast guard 2026-07-26:
   operational statuses must stay readable and distinct in light/dark mode. */
:where(.admin-shell, .public-shell) :where(.badge, .status-badge, .status-pill, .tag) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 1.75rem !important;
  max-width: 100% !important;
  padding: 0.28rem 0.65rem !important;
  border: 1px solid #bfd7ff !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #123f91 !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}

:where(.admin-shell, .public-shell) :where(.status-active, .status-paid, .status-accepted, .status-completed, .status-success) {
  border-color: #86efac !important;
  background: #dcfce7 !important;
  color: #166534 !important;
}

:where(.admin-shell, .public-shell) :where(.status-draft, .status-pending, .status-sent, .status-issued, .status-progress) {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  color: #1e3a8a !important;
}

:where(.admin-shell, .public-shell) :where(.status-overdue, .status-rejected, .status-cancelled, .status-void, .status-error) {
  border-color: #fecaca !important;
  background: #fee2e2 !important;
  color: #991b1b !important;
}

:where(.admin-shell, .public-shell) :where(.status-warning, .status-blocked) {
  border-color: #fde68a !important;
  background: #fef3c7 !important;
  color: #92400e !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell) :where(.badge, .status-badge, .status-pill, .tag) {
  border-color: rgba(147, 197, 253, 0.5) !important;
  background: rgba(30, 58, 138, 0.45) !important;
  color: #dbeafe !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell) :where(.status-active, .status-paid, .status-accepted, .status-completed, .status-success) {
  border-color: rgba(134, 239, 172, 0.55) !important;
  background: rgba(20, 83, 45, 0.55) !important;
  color: #bbf7d0 !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell) :where(.status-overdue, .status-rejected, .status-cancelled, .status-void, .status-error) {
  border-color: rgba(252, 165, 165, 0.55) !important;
  background: rgba(127, 29, 29, 0.55) !important;
  color: #fecaca !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell) :where(.status-warning, .status-blocked) {
  border-color: rgba(253, 230, 138, 0.58) !important;
  background: rgba(120, 53, 15, 0.52) !important;
  color: #fde68a !important;
}

/* Feedback message clarity guard 2026-07-26:
   success, error, warning and info messages must be readable beyond mobile-only fixes. */
:where(.admin-shell, .public-shell, .auth-bg) :where(.alert, .notice, .flash, .flash-message, .form-error, .error, .success, [role="alert"], [role="status"]) {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid #bfd7ff !important;
  border-radius: 1rem !important;
  padding: 0.9rem 1rem !important;
  background: #eff6ff !important;
  color: #123f91 !important;
  line-height: 1.45 !important;
  font-weight: 750 !important;
  overflow-wrap: anywhere !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(.success, .alert.success, .notice.success, [role="status"]) {
  border-color: #86efac !important;
  background: #dcfce7 !important;
  color: #166534 !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(.error, .alert.danger, .notice.danger, .flash-error, .form-error, [role="alert"]) {
  border-color: #fecaca !important;
  background: #fee2e2 !important;
  color: #991b1b !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(.warning, .alert-warning, .notice-warning) {
  border-color: #fde68a !important;
  background: #fef3c7 !important;
  color: #92400e !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(.error-list) {
  width: 100% !important;
  margin: 0.75rem 0 !important;
  padding: 0.85rem 1rem 0.85rem 1.25rem !important;
  border: 1px solid #fecaca !important;
  border-radius: 1rem !important;
  background: #fee2e2 !important;
  color: #991b1b !important;
  font-weight: 750 !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where(.alert, .notice, .flash, .flash-message, .form-error, .error, .success, [role="alert"], [role="status"]) {
  border-color: rgba(147, 197, 253, 0.46) !important;
  background: rgba(30, 58, 138, 0.42) !important;
  color: #dbeafe !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where(.success, .alert.success, .notice.success, [role="status"]) {
  border-color: rgba(134, 239, 172, 0.55) !important;
  background: rgba(20, 83, 45, 0.55) !important;
  color: #bbf7d0 !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where(.error, .alert.danger, .notice.danger, .flash-error, .form-error, [role="alert"], .error-list) {
  border-color: rgba(252, 165, 165, 0.55) !important;
  background: rgba(127, 29, 29, 0.55) !important;
  color: #fecaca !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where(.warning, .alert-warning, .notice-warning) {
  border-color: rgba(253, 230, 138, 0.58) !important;
  background: rgba(120, 53, 15, 0.52) !important;
  color: #fde68a !important;
}

/* Numeric data readability guard 2026-07-26:
   amounts, dates and document codes must scan quickly in tables, cards and mobile summaries. */
:where(.admin-shell, .public-shell, .auth-bg) :where(.amount, .money, .price, .total, .currency, .numeric, .number, .document-total, .invoice-total, .quote-total, .delivery-total, .invoice-total-preview, .quick-quote-total-box, .price-tag, .price-monthly-note, .sector-price-pill, .document-number, .document-code, .quote-number, .invoice-number, .delivery-note-number, .document-date, .date, time, code) {
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.01em !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(td, th) :where(.amount, .money, .price, .total, .currency, .numeric, .document-total, .invoice-total, .quote-total, .delivery-total, .invoice-total-preview, .quick-quote-total-box, .price-tag, .sector-price-pill) {
  white-space: nowrap !important;
  text-align: right !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(.document-number, .document-code, .quote-number, .invoice-number, .delivery-note-number, code) {
  font-family: "Space Grotesk", "Aptos Mono", Consolas, monospace !important;
  overflow-wrap: anywhere !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(.document-date, .date, time) {
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(td, th) :where(.amount, .money, .price, .total, .currency, .numeric, .document-total, .invoice-total, .quote-total, .delivery-total, .invoice-total-preview, .quick-quote-total-box, .price-tag, .sector-price-pill) {
    text-align: inherit !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) :where(.document-number, .document-code, .quote-number, .invoice-number, .delivery-note-number, code) {
    font-size: 0.95em !important;
    line-height: 1.25 !important;
  }
}

/* Admin table action usability guard 2026-07-26:
   row actions must stay readable and usable on desktop tables and phone cards. */
.admin-shell :where(.table-actions, .inline-actions) {
  align-items: stretch !important;
}

.admin-shell :where(.table-actions, .inline-actions, td:last-child:has(.btn), td:last-child:has(button), td:last-child:has(select), td:last-child:has(details)) :where(form, details) {
  max-width: 100% !important;
  margin: 0 !important;
}

.admin-shell :where(.table-actions, .inline-actions, td:last-child:has(.btn), td:last-child:has(button), td:last-child:has(select), td:last-child:has(details)) :where(.btn, button, select, summary) {
  min-height: 2.75rem !important;
  max-width: 100% !important;
  border-radius: 0.85rem !important;
  white-space: nowrap !important;
  line-height: 1.15 !important;
}

.admin-shell :where(.table-actions, .inline-actions, td:last-child:has(.btn), td:last-child:has(button), td:last-child:has(select), td:last-child:has(details)) :where(.btn, button, summary) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
}

@media (max-width: 760px) {
  .admin-shell :where(td:last-child:has(.btn), td:last-child:has(button), td:last-child:has(select), td:last-child:has(details), .table-actions, .inline-actions) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.55rem !important;
    align-items: stretch !important;
  }

  .admin-shell :where(td:last-child:has(.btn), td:last-child:has(button), td:last-child:has(select), td:last-child:has(details), .table-actions, .inline-actions) > :where(form, details, .btn, button, select, a) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .admin-shell :where(td:last-child:has(.btn), td:last-child:has(button), td:last-child:has(select), td:last-child:has(details), .table-actions, .inline-actions) > form > :where(button, .btn, select),
  .admin-shell :where(td:last-child:has(.btn), td:last-child:has(button), td:last-child:has(select), td:last-child:has(details), .table-actions, .inline-actions) > details > summary {
    width: 100% !important;
    min-height: 3rem !important;
  }
}

/* Forced colors accessibility guard 2026-07-26:
   Windows high-contrast users must not depend on soft blues, shadows or gradients. */
@media (forced-colors: active) {
  :where(.admin-shell, .public-shell, .auth-bg) {
    forced-color-adjust: auto !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) :where(.card, .panel, .admin-panel, .table-card, .auth-card, .public-section, .notice, .alert, .flash, .badge, .status-badge, .status-pill, .tag) {
    border: 1px solid CanvasText !important;
    background: Canvas !important;
    color: CanvasText !important;
    box-shadow: none !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) :where(a:not(.btn):not(.btn-small)) {
    color: LinkText !important;
    text-decoration: underline !important;
    text-underline-offset: 0.18em !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) :where(.btn, .btn-small, button, input[type="submit"], summary) {
    border: 1px solid ButtonText !important;
    background: ButtonFace !important;
    color: ButtonText !important;
    box-shadow: none !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) :where(input, select, textarea) {
    border: 1px solid CanvasText !important;
    background: Field !important;
    color: FieldText !important;
    box-shadow: none !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) :where(a, button, .btn, .btn-small, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
  }
}

/* Clean print output guard 2026-07-26:
   quotes, invoices, delivery notes and client-facing views must print without app chrome. */
@media print {
  @page {
    margin: 14mm;
  }

  html,
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  :where(.public-header, .public-footer, .public-mobile-cta, .admin-topbar, .admin-rail, .admin-mega-nav, .admin-help-trigger, .context-inline-help, .table-actions, .inline-actions, .form-actions, .admin-actions, .panel-actions, .auth-access-links, .auth-form-actions, .btn, .btn-small, button, input[type="submit"], summary) {
    display: none !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) :where(.container, .public-shell, main, .admin-main, .admin-content, .card, .panel, .admin-panel, .table-card, .document-card, .invoice-card, .quote-card, .delivery-note-card) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) :where(.card, .panel, .admin-panel, .table-card, .document-card, .invoice-card, .quote-card, .delivery-note-card, table, th, td) {
    border-color: #000000 !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) :where(a) {
    color: #000000 !important;
    text-decoration: none !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) :where(.card, .panel, .admin-panel, .table-card, .document-card, .invoice-card, .quote-card, .delivery-note-card, tr, img, figure) {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}

/* Admin anchor clearance guard 2026-07-26:
   contextual help and shortcut links must land below the private header, not behind it. */
.admin-shell {
  scroll-padding-top: clamp(5.75rem, 10vh, 8rem) !important;
}

.admin-shell :where(main, section, article, form, .admin-panel, .card, .table-card, .panel, .business-section, .document-next-action-panel)[id] {
  scroll-margin-top: clamp(5.75rem, 10vh, 8rem) !important;
  scroll-margin-bottom: 2.5rem !important;
}

.admin-shell :where(main, section, article, form, .admin-panel, .card, .table-card, .panel, .business-section, .document-next-action-panel)[id]:target {
  outline: 3px solid rgba(37, 99, 235, 0.38) !important;
  outline-offset: 0.35rem !important;
}

@media (max-width: 760px) {
  .admin-shell {
    scroll-padding-top: 6.75rem !important;
  }

  .admin-shell :where(main, section, article, form, .admin-panel, .card, .table-card, .panel, .business-section, .document-next-action-panel)[id] {
    scroll-margin-top: 6.75rem !important;
    scroll-margin-bottom: 5rem !important;
  }
}

/* Field validation visibility guard 2026-07-26:
   invalid fields must be visible next to the action, not only in a global message. */
:where(.admin-shell, .public-shell, .auth-bg) :where(input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"], input.is-invalid, select.is-invalid, textarea.is-invalid, .field-invalid, input:user-invalid, select:user-invalid, textarea:user-invalid) {
  border-color: #b91c1c !important;
  background: #fff1f2 !important;
  color: #111827 !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.14) !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"], input.is-invalid, select.is-invalid, textarea.is-invalid, .field-invalid, input:user-invalid, select:user-invalid, textarea:user-invalid):focus-visible {
  border-color: #991b1b !important;
  outline: 3px solid rgba(185, 28, 28, 0.28) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where([id$="-error"], [id$="_error"], .field-error, .input-error, .validation-error) {
  display: block !important;
  margin-top: 0.4rem !important;
  color: #991b1b !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where(input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"], input.is-invalid, select.is-invalid, textarea.is-invalid, .field-invalid, input:user-invalid, select:user-invalid, textarea:user-invalid) {
  border-color: #fca5a5 !important;
  background: rgba(127, 29, 29, 0.38) !important;
  color: #fee2e2 !important;
  box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.18) !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where([id$="-error"], [id$="_error"], .field-error, .input-error, .validation-error) {
  color: #fecaca !important;
}

@media (forced-colors: active) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"], input.is-invalid, select.is-invalid, textarea.is-invalid, .field-invalid, input:user-invalid, select:user-invalid, textarea:user-invalid) {
    border: 2px solid Mark !important;
    background: Field !important;
    color: FieldText !important;
    box-shadow: none !important;
  }
}

/* Required field clarity guard 2026-07-26:
   mandatory fields must be identifiable before submission without looking like errors. */
:where(.admin-shell, .public-shell, .auth-bg) :where(label:has(+ input[required]:not([type="hidden"])), label:has(+ select[required]), label:has(+ textarea[required]), label:has(input[required]:not([type="hidden"])), label:has(select[required]), label:has(textarea[required]), label:has(+ [aria-required="true"]), label:has([aria-required="true"])) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(label:has(+ input[required]:not([type="hidden"])), label:has(+ select[required]), label:has(+ textarea[required]), label:has(input[required]:not([type="hidden"])), label:has(select[required]), label:has(textarea[required]), label:has(+ [aria-required="true"]), label:has([aria-required="true"]))::after {
  content: "*" !important;
  color: #1d4ed8 !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(input[required]:not([type="hidden"]):not([aria-invalid="true"]):not(.is-invalid):not(:user-invalid):focus-visible, select[required]:not([aria-invalid="true"]):not(.is-invalid):not(:user-invalid):focus-visible, textarea[required]:not([aria-invalid="true"]):not(.is-invalid):not(:user-invalid):focus-visible, [aria-required="true"]:not([aria-invalid="true"]):not(.is-invalid):not(:user-invalid):focus-visible) {
  border-color: #1d4ed8 !important;
  outline: 3px solid rgba(37, 99, 235, 0.18) !important;
  outline-offset: 2px !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where(label:has(+ input[required]:not([type="hidden"])), label:has(+ select[required]), label:has(+ textarea[required]), label:has(input[required]:not([type="hidden"])), label:has(select[required]), label:has(textarea[required]), label:has(+ [aria-required="true"]), label:has([aria-required="true"]))::after {
  color: #93c5fd !important;
}

@media (forced-colors: active) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(label:has(+ input[required]:not([type="hidden"])), label:has(+ select[required]), label:has(+ textarea[required]), label:has(input[required]:not([type="hidden"])), label:has(select[required]), label:has(textarea[required]), label:has(+ [aria-required="true"]), label:has([aria-required="true"]))::after {
    color: Mark !important;
  }
}

/* Form helper text clarity guard 2026-07-26:
   hints below fields must be readable enough to guide non-technical users. */
:where(.admin-shell, .public-shell, .auth-bg) :where(.form-help, .field-help, .input-help, .help-text, .form-hint, .field-hint, .input-hint, .hint, .form-description, .field-description, input + small, select + small, textarea + small, label + small) {
  display: block !important;
  max-width: 72ch !important;
  margin-top: 0.38rem !important;
  color: #475569 !important;
  font-size: clamp(0.88rem, 0.84rem + 0.16vw, 0.98rem) !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(input + small, select + small, textarea + small) {
  margin-bottom: 0.15rem !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where(.form-help, .field-help, .input-help, .help-text, .form-hint, .field-hint, .input-hint, .hint, .form-description, .field-description, input + small, select + small, textarea + small, label + small) {
  color: #cbd5e1 !important;
}

@media (max-width: 760px) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(.form-help, .field-help, .input-help, .help-text, .form-hint, .field-hint, .input-hint, .hint, .form-description, .field-description, input + small, select + small, textarea + small, label + small) {
    max-width: 100% !important;
    font-size: 0.95rem !important;
  }
}

@media (forced-colors: active) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(.form-help, .field-help, .input-help, .help-text, .form-hint, .field-hint, .input-hint, .hint, .form-description, .field-description, input + small, select + small, textarea + small, label + small) {
    color: CanvasText !important;
  }
}

/* Choice control touch guard 2026-07-26:
   checkbox and radio controls must be easy to tap and aligned with their label text. */
:where(.admin-shell, .public-shell, .auth-bg) :where(input[type="checkbox"], input[type="radio"]) {
  inline-size: 1.25rem !important;
  block-size: 1.25rem !important;
  min-width: 1.25rem !important;
  min-height: 1.25rem !important;
  accent-color: #1d4ed8 !important;
  margin: 0 !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(label:has(input[type="checkbox"]), label:has(input[type="radio"])) {
  display: inline-flex !important;
  align-items: flex-start !important;
  gap: 0.55rem !important;
  min-height: 2.75rem !important;
  padding-block: 0.35rem !important;
  cursor: pointer !important;
  line-height: 1.35 !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible) {
  outline: 3px solid rgba(37, 99, 235, 0.24) !important;
  outline-offset: 3px !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where(input[type="checkbox"], input[type="radio"]) {
  accent-color: #93c5fd !important;
}

@media (max-width: 760px) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(input[type="checkbox"], input[type="radio"]) {
    inline-size: 1.35rem !important;
    block-size: 1.35rem !important;
    min-width: 1.35rem !important;
    min-height: 1.35rem !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) :where(label:has(input[type="checkbox"]), label:has(input[type="radio"])) {
    min-height: 3rem !important;
    width: 100% !important;
  }
}

@media (forced-colors: active) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(input[type="checkbox"], input[type="radio"]) {
    accent-color: Highlight !important;
  }
}

/* Busy state clarity guard 2026-07-26:
   loading or busy actions must be visible without becoming unreadable. */
:where(.admin-shell, .public-shell, .auth-bg) :where([aria-busy="true"], .is-loading, .loading, .is-submitting, form[data-loading="true"]) {
  cursor: progress !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(button[aria-busy="true"], .btn[aria-busy="true"], button.is-loading, .btn.is-loading, button.loading, .btn.loading, button.is-submitting, .btn.is-submitting) {
  position: relative !important;
  opacity: 0.82 !important;
  pointer-events: none !important;
  cursor: progress !important;
  filter: saturate(0.85) !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(button[aria-busy="true"], .btn[aria-busy="true"], button.is-loading, .btn.is-loading, button.loading, .btn.loading, button.is-submitting, .btn.is-submitting)::after {
  content: "" !important;
  inline-size: 0.8rem !important;
  block-size: 0.8rem !important;
  margin-left: 0.45rem !important;
  border: 2px solid currentColor !important;
  border-right-color: transparent !important;
  border-radius: 999px !important;
  display: inline-block !important;
  vertical-align: -0.1em !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where([aria-busy="true"] input, [aria-busy="true"] select, [aria-busy="true"] textarea, form[data-loading="true"] input, form[data-loading="true"] select, form[data-loading="true"] textarea) {
  opacity: 0.88 !important;
  cursor: progress !important;
}

@media (prefers-reduced-motion: no-preference) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(button[aria-busy="true"], .btn[aria-busy="true"], button.is-loading, .btn.is-loading, button.loading, .btn.loading, button.is-submitting, .btn.is-submitting)::after {
    animation: mantivo-busy-spin 0.8s linear infinite !important;
  }
}

@keyframes mantivo-busy-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (forced-colors: active) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(button[aria-busy="true"], .btn[aria-busy="true"], button.is-loading, .btn.is-loading, button.loading, .btn.loading, button.is-submitting, .btn.is-submitting) {
    opacity: 1 !important;
    border: 2px solid Highlight !important;
  }
}

/* Horizontal table scroll affordance guard 2026-07-26:
   wide tables must make horizontal overflow discoverable without looking broken. */
:where(.admin-shell, .public-shell) :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive, .work-orders-card-wrap) {
  position: relative !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-gutter: stable both-edges !important;
  border-inline: 1px solid rgba(148, 163, 184, 0.45) !important;
}

:where(.admin-shell, .public-shell) :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive, .work-orders-card-wrap)::after {
  content: "" !important;
  position: sticky !important;
  right: 0 !important;
  display: block !important;
  width: 2.25rem !important;
  height: 100% !important;
  min-height: 2.75rem !important;
  margin-left: auto !important;
  margin-top: -2.75rem !important;
  pointer-events: none !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(37, 99, 235, 0.12)) !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell) :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive, .work-orders-card-wrap) {
  border-inline-color: rgba(147, 197, 253, 0.38) !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell) :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive, .work-orders-card-wrap)::after {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0), rgba(147, 197, 253, 0.18)) !important;
}

@media (max-width: 760px) {
  :where(.admin-shell, .public-shell) :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive, .work-orders-card-wrap) {
    margin-inline: -0.25rem !important;
    padding-inline: 0.25rem !important;
  }
}

@media print, (forced-colors: active) {
  :where(.admin-shell, .public-shell) :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive, .work-orders-card-wrap)::after {
    content: none !important;
    display: none !important;
  }
}

/* File upload clarity guard 2026-07-26:
   upload controls for evidence, imports and attachments must look like deliberate actions. */
:where(.admin-shell, .public-shell, .auth-bg) input[type="file"] {
  width: 100% !important;
  min-height: 3rem !important;
  padding: 0.55rem !important;
  border: 1px dashed #94a3b8 !important;
  border-radius: 0.95rem !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  cursor: pointer !important;
  font-weight: 650 !important;
}

:where(.admin-shell, .public-shell, .auth-bg) input[type="file"]::file-selector-button {
  min-height: 2.45rem !important;
  margin-right: 0.75rem !important;
  padding: 0.55rem 0.9rem !important;
  border: 1px solid #1d4ed8 !important;
  border-radius: 0.8rem !important;
  background: #1d4ed8 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  font-weight: 850 !important;
}

:where(.admin-shell, .public-shell, .auth-bg) input[type="file"]:focus-visible {
  border-color: #1d4ed8 !important;
  outline: 3px solid rgba(37, 99, 235, 0.2) !important;
  outline-offset: 2px !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) input[type="file"] {
  border-color: rgba(147, 197, 253, 0.52) !important;
  background: rgba(15, 23, 42, 0.82) !important;
  color: #dbeafe !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) input[type="file"]::file-selector-button {
  border-color: #93c5fd !important;
  background: #bfdbfe !important;
  color: #0f172a !important;
}

@media (max-width: 760px) {
  :where(.admin-shell, .public-shell, .auth-bg) input[type="file"] {
    min-height: 3.25rem !important;
    font-size: 1rem !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) input[type="file"]::file-selector-button {
    min-height: 2.75rem !important;
  }
}

@media (forced-colors: active) {
  :where(.admin-shell, .public-shell, .auth-bg) input[type="file"] {
    border: 1px solid CanvasText !important;
    background: Field !important;
    color: FieldText !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) input[type="file"]::file-selector-button {
    border: 1px solid ButtonText !important;
    background: ButtonFace !important;
    color: ButtonText !important;
  }
}

/* Numeric form field clarity guard 2026-07-26:
   amounts, quantities, hours and prices must be easy to enter and scan. */
:where(.admin-shell, .public-shell, .auth-bg) :where(input[type="number"], input[inputmode="decimal"], input[inputmode="numeric"], input[name*="amount"], input[name*="total"], input[name*="price"], input[name*="quantity"], input[name*="hours"], input[name*="importe"], input[name*="precio"], input[name*="cantidad"], input[name*="horas"], .numeric-input, .amount-input, .price-input, .quantity-input) {
  font-variant-numeric: tabular-nums !important;
  text-align: right !important;
  letter-spacing: -0.01em !important;
  min-width: min(100%, 9rem) !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(input[type="number"]:focus-visible, input[inputmode="decimal"]:focus-visible, input[inputmode="numeric"]:focus-visible, input[name*="amount"]:focus-visible, input[name*="total"]:focus-visible, input[name*="price"]:focus-visible, input[name*="quantity"]:focus-visible, input[name*="hours"]:focus-visible, input[name*="importe"]:focus-visible, input[name*="precio"]:focus-visible, input[name*="cantidad"]:focus-visible, input[name*="horas"]:focus-visible, .numeric-input:focus-visible, .amount-input:focus-visible, .price-input:focus-visible, .quantity-input:focus-visible) {
  border-color: #1d4ed8 !important;
  outline: 3px solid rgba(37, 99, 235, 0.18) !important;
  outline-offset: 2px !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(input[type="tel"], input[inputmode="tel"], input[name*="phone"], input[name*="telefono"], input[name*="tel"]) {
  text-align: left !important;
  font-variant-numeric: tabular-nums !important;
}

@media (max-width: 760px) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(input[type="number"], input[inputmode="decimal"], input[inputmode="numeric"], input[name*="amount"], input[name*="total"], input[name*="price"], input[name*="quantity"], input[name*="hours"], input[name*="importe"], input[name*="precio"], input[name*="cantidad"], input[name*="horas"], .numeric-input, .amount-input, .price-input, .quantity-input) {
    width: 100% !important;
    min-width: 100% !important;
    font-size: 1rem !important;
  }
}

@media (forced-colors: active) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(input[type="number"], input[inputmode="decimal"], input[inputmode="numeric"], input[name*="amount"], input[name*="total"], input[name*="price"], input[name*="quantity"], input[name*="hours"], input[name*="importe"], input[name*="precio"], input[name*="cantidad"], input[name*="horas"], .numeric-input, .amount-input, .price-input, .quantity-input):focus-visible {
    outline: 3px solid Highlight !important;
  }
}

/* Long text field readability guard 2026-07-26:
   notes, observations and descriptions need enough space for real work. */
:where(.admin-shell, .public-shell, .auth-bg) :where(textarea, .textarea, .notes-field, .description-field, .observations-field, .message-field) {
  min-height: 8.5rem !important;
  line-height: 1.5 !important;
  resize: vertical !important;
  overflow: auto !important;
  white-space: pre-wrap !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(textarea[rows="1"], textarea[rows="2"], textarea.short-textarea, .textarea-short) {
  min-height: 5rem !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(textarea:focus-visible, .textarea:focus-visible, .notes-field:focus-visible, .description-field:focus-visible, .observations-field:focus-visible, .message-field:focus-visible) {
  border-color: #1d4ed8 !important;
  outline: 3px solid rgba(37, 99, 235, 0.18) !important;
  outline-offset: 2px !important;
}

@media (max-width: 760px) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(textarea, .textarea, .notes-field, .description-field, .observations-field, .message-field) {
    min-height: 10rem !important;
    width: 100% !important;
    font-size: 1rem !important;
  }
}

@media (forced-colors: active) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(textarea:focus-visible, .textarea:focus-visible, .notes-field:focus-visible, .description-field:focus-visible, .observations-field:focus-visible, .message-field:focus-visible) {
    outline: 3px solid Highlight !important;
  }
}

/* Date and time field clarity guard 2026-07-26:
   planning, due dates and schedule fields must be tactile and easy to scan. */
:where(.admin-shell, .public-shell, .auth-bg) :where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[name*="date"], input[name*="fecha"], input[name*="time"], input[name*="hora"], input[name*="scheduled"], input[name*="deadline"], input[name*="due"], .date-input, .time-input, .datetime-input) {
  min-width: min(100%, 11rem) !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.01em !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"])::-webkit-calendar-picker-indicator {
  cursor: pointer !important;
  min-width: 1.75rem !important;
  min-height: 1.75rem !important;
  opacity: 0.78 !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(input[type="date"]:focus-visible, input[type="time"]:focus-visible, input[type="datetime-local"]:focus-visible, input[type="month"]:focus-visible, input[type="week"]:focus-visible, input[name*="date"]:focus-visible, input[name*="fecha"]:focus-visible, input[name*="time"]:focus-visible, input[name*="hora"]:focus-visible, input[name*="scheduled"]:focus-visible, input[name*="deadline"]:focus-visible, input[name*="due"]:focus-visible, .date-input:focus-visible, .time-input:focus-visible, .datetime-input:focus-visible) {
  border-color: #1d4ed8 !important;
  outline: 3px solid rgba(37, 99, 235, 0.18) !important;
  outline-offset: 2px !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"])::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.25) !important;
  opacity: 0.9 !important;
}

@media (max-width: 760px) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[name*="date"], input[name*="fecha"], input[name*="time"], input[name*="hora"], input[name*="scheduled"], input[name*="deadline"], input[name*="due"], .date-input, .time-input, .datetime-input) {
    width: 100% !important;
    min-width: 100% !important;
    font-size: 1rem !important;
  }
}

@media (forced-colors: active) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(input[type="date"]:focus-visible, input[type="time"]:focus-visible, input[type="datetime-local"]:focus-visible, input[type="month"]:focus-visible, input[type="week"]:focus-visible, input[name*="date"]:focus-visible, input[name*="fecha"]:focus-visible, input[name*="time"]:focus-visible, input[name*="hora"]:focus-visible, input[name*="scheduled"]:focus-visible, input[name*="deadline"]:focus-visible, input[name*="due"]:focus-visible, .date-input:focus-visible, .time-input:focus-visible, .datetime-input:focus-visible) {
    outline: 3px solid Highlight !important;
  }
}

/* Mobile form action clarity guard 2026-07-26:
   save, create and cancel actions must stay grouped, tactile and readable on phones. */
:where(.admin-shell, .public-shell, .auth-bg) form :where(.form-actions, .form-action-row, .form-footer, .button-row, .action-row, .actions, .wizard-actions) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-top: 1rem !important;
}

:where(.admin-shell, .public-shell, .auth-bg) form :where(.form-actions, .form-action-row, .form-footer, .button-row, .action-row, .actions, .wizard-actions) :where(button, .btn, .button, a.button, a.btn, input[type="submit"], input[type="button"], input[type="reset"]) {
  min-height: 2.75rem !important;
  justify-content: center !important;
  white-space: normal !important;
  text-align: center !important;
}

:where(.admin-shell, .public-shell, .auth-bg) form :where(button[type="submit"], input[type="submit"], .btn-primary, .button-primary, .primary-action) {
  min-height: 2.75rem !important;
}

@media (max-width: 760px) {
  :where(.admin-shell, .public-shell, .auth-bg) form :where(.form-actions, .form-action-row, .form-footer, .button-row, .action-row, .actions, .wizard-actions) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) form :where(.form-actions, .form-action-row, .form-footer, .button-row, .action-row, .actions, .wizard-actions) :where(button, .btn, .button, a.button, a.btn, input[type="submit"], input[type="button"], input[type="reset"]) {
    width: 100% !important;
    min-height: 3rem !important;
    padding-inline: 1rem !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) form :where(button[type="submit"], input[type="submit"], .btn-primary, .button-primary, .primary-action) {
    width: 100% !important;
    min-height: 3rem !important;
  }
}

@media (forced-colors: active) {
  :where(.admin-shell, .public-shell, .auth-bg) form :where(.form-actions, .form-action-row, .form-footer, .button-row, .action-row, .actions, .wizard-actions) :where(button, .btn, .button, a.button, a.btn, input[type="submit"], input[type="button"], input[type="reset"]):focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 2px !important;
  }
}

/* Public 95 width no clipping final guard 2026-07-02: final override after legacy section heading limits. */
.public-shell .container,
.public-nav,
.public-footer {
  width: 95% !important;
  max-width: min(1880px, calc(100vw - 1rem)) !important;
  box-sizing: border-box !important;
}
.public-shell :where(.section-heading, .section-heading-tight, .sector-secondary-detail-body > .section-heading),
.public-shell :where(.section-heading > *, .section-heading h1, .section-heading :is(h2), .section-heading :is(p)) {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: anywhere !important;
}
.public-shell .public-sector-picker-grid .home-sector-card {
  grid-template-columns: clamp(9.5rem, 23%, 13.25rem) minmax(0, 1fr) !important;
}
.public-shell .home-sector-card-cta,
.public-shell .home-sector-card .btn,
.public-shell .public-sector-picker-grid .btn {
  background: #0f3f99 !important;
  color: #ffffff !important;
}

/* Public 95 width no clipping final guard 2026-07-02: final marker after all legacy section heading selectors. */

/* Visual surface polish guard 2026-08-02:
   cards, panels and table surfaces should read as one modern product layer in light and dark themes. */
:is(.admin-shell, .public-shell, .auth-bg) :is(.card, .admin-panel, .business-section, .document-card, .table-card, .metric-card, .stat-card, .form-card, .contact-form, .checkout-card, .auth-card, .pricing-card, .sector-card, .home-sector-card, .module-card, .feature-card, .public-card) {
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07) !important;
}

:is(.admin-shell, .public-shell, .auth-bg) :is(.card, .admin-panel, .business-section, .document-card, .table-card, .metric-card, .stat-card, .form-card, .contact-form, .checkout-card, .auth-card, .pricing-card, .sector-card, .home-sector-card, .module-card, .feature-card, .public-card):is(:hover, :focus-within) {
  border-color: rgba(29, 78, 216, 0.24) !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1) !important;
}

:is(.admin-shell, .public-shell) :is(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive, .work-orders-card-wrap) {
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
}

:is(.admin-shell, .public-shell) :is(th, thead td) {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}

:is(.admin-shell, .public-shell) :is(tbody tr:hover, tbody tr:focus-within) {
  background: #eff6ff !important;
}

html[data-theme="dark"] :is(.admin-shell, .public-shell, .auth-bg) :is(.card, .admin-panel, .business-section, .document-card, .table-card, .metric-card, .stat-card, .form-card, .contact-form, .checkout-card, .auth-card, .pricing-card, .sector-card, .home-sector-card, .module-card, .feature-card, .public-card) {
  border-color: rgba(147, 197, 253, 0.24) !important;
  background-color: #111827 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] :is(.admin-shell, .public-shell, .auth-bg) :is(.card, .admin-panel, .business-section, .document-card, .table-card, .metric-card, .stat-card, .form-card, .contact-form, .checkout-card, .auth-card, .pricing-card, .sector-card, .home-sector-card, .module-card, .feature-card, .public-card):is(:hover, :focus-within) {
  border-color: rgba(191, 219, 254, 0.5) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38) !important;
}

html[data-theme="dark"] :is(.admin-shell, .public-shell) :is(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive, .work-orders-card-wrap) {
  border-color: rgba(147, 197, 253, 0.24) !important;
  background: #111827 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] :is(.admin-shell, .public-shell) :is(th, thead td) {
  background: #1e293b !important;
  color: #e0f2fe !important;
}

html[data-theme="dark"] :is(.admin-shell, .public-shell) :is(tbody tr:hover, tbody tr:focus-within) {
  background: rgba(37, 99, 235, 0.18) !important;
}

@media (prefers-reduced-motion: no-preference) {
  :is(.admin-shell, .public-shell, .auth-bg) :is(.card, .admin-panel, .business-section, .document-card, .table-card, .metric-card, .stat-card, .form-card, .contact-form, .checkout-card, .auth-card, .pricing-card, .sector-card, .home-sector-card, .module-card, .feature-card, .public-card) {
    transition: border-color 160ms ease, box-shadow 160ms ease !important;
  }
}

@media (forced-colors: active) {
  :is(.admin-shell, .public-shell, .auth-bg) :is(.card, .admin-panel, .business-section, .document-card, .table-card, .metric-card, .stat-card, .form-card, .contact-form, .checkout-card, .auth-card, .pricing-card, .sector-card, .home-sector-card, .module-card, .feature-card, .public-card),
  :is(.admin-shell, .public-shell) :is(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive, .work-orders-card-wrap) {
    border: 1px solid CanvasText !important;
    background: Canvas !important;
    box-shadow: none !important;
  }

  :is(.admin-shell, .public-shell) :is(th, thead td, tbody tr:hover, tbody tr:focus-within) {
    background: Canvas !important;
    color: CanvasText !important;
  }
}

.admin-shell.admin-shell :is(.card, .admin-panel, .business-section, .document-card, .table-card, .metric-card, .stat-card, .form-card),
.public-shell.public-shell :is(.card, .pricing-card, .sector-card, .home-sector-card, .module-card, .feature-card, .public-card, .form-card, .contact-form, .checkout-card),
.auth-bg.auth-bg :is(.card, .auth-card) {
  border-radius: 8px !important;
}

/* Radical public design progress guard 2026-08-03:
   visible public restyle layer for a more professional, modern and usable sales surface. */
.public-shell {
  background:
    radial-gradient(circle at 8% 8%, rgba(96, 165, 250, 0.28), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(14, 116, 144, 0.16), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 42%, #ffffff 100%) !important;
  color: #071833 !important;
}

.public-nav {
  background: #ffffff !important;
  border: 1px solid rgba(37, 99, 235, 0.14) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08) !important;
}

.public-nav :is(a, button, .btn-small, .public-menu-link) {
  border-radius: 999px !important;
}

.public-shell :is(.home-hero, .home-hero-product, .hero-home, .public-section) {
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  border-radius: clamp(1.25rem, 2vw, 2rem) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.9) 54%, rgba(219, 234, 254, 0.72)) !important;
  box-shadow: 0 26px 70px rgba(30, 64, 175, 0.12) !important;
  overflow: hidden !important;
}

.public-shell :is(.home-hero-product, .hero-home) {
  position: relative !important;
  isolation: isolate !important;
}

.public-shell :is(.home-hero-product, .hero-home)::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: clamp(0.28rem, 0.8vw, 0.5rem) !important;
  background: linear-gradient(180deg, #1d4ed8, #38bdf8) !important;
  z-index: 0 !important;
}

.public-shell :is(.home-hero-copy, .hero-copy, .home-hero-media, .hero-art) {
  position: relative !important;
  z-index: 1 !important;
}

.public-shell :is(.home-hero-copy h1, .hero-copy h1, .public-section h1, .public-section h2) {
  letter-spacing: -0.075em !important;
  color: #071833 !important;
  text-wrap: balance !important;
}

.public-shell :is(.home-hero-copy > p:not(.eyebrow), .hero-copy > p:not(.eyebrow), .section-heading > p) {
  color: #334155 !important;
  max-width: 68ch !important;
}

.public-shell .eyebrow {
  color: #0f4fb8 !important;
  letter-spacing: 0.12em !important;
}

.public-shell :is(.btn, .home-sector-card-cta) {
  background: linear-gradient(135deg, #123f91, #2563eb) !important;
  color: #ffffff !important;
  border: 1px solid rgba(18, 63, 145, 0.72) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24) !important;
}

.public-shell :is(.btn-outline, .public-nav .btn-small) {
  background: #ffffff !important;
  color: #123f91 !important;
  border-color: rgba(18, 63, 145, 0.28) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
}

.public-shell :is(.btn:hover, .btn:focus-visible, .home-sector-card:focus-visible .home-sector-card-cta, .home-sector-card:hover .home-sector-card-cta) {
  transform: translateY(-1px) !important;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.3) !important;
}

.public-shell.public-shell :is(.pricing-card, .sector-card, .home-sector-card, .module-card, .feature-card, .public-card) {
  border-radius: clamp(1rem, 1.4vw, 1.5rem) !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.09) !important;
}

.public-shell.public-shell :is(.pricing-card, .sector-card, .home-sector-card, .module-card, .feature-card, .public-card):is(:hover, :focus-within) {
  border-color: rgba(37, 99, 235, 0.32) !important;
  box-shadow: 0 24px 60px rgba(30, 64, 175, 0.16) !important;
}

.public-shell .pricing-card.plan-highlight {
  transform: translateY(-0.55rem) !important;
  border-color: rgba(18, 63, 145, 0.42) !important;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%) !important;
}

.public-shell :is(.home-sector-card-img, .sector-card-img) {
  filter: saturate(1.08) contrast(1.04) !important;
}

@media (max-width: 760px) {
  .public-shell :is(.home-hero, .home-hero-product, .hero-home, .public-section) {
    border-radius: 1.1rem !important;
  }

  .public-shell .pricing-card.plan-highlight {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-shell :is(.btn:hover, .btn:focus-visible, .home-sector-card:focus-visible .home-sector-card-cta, .home-sector-card:hover .home-sector-card-cta),
  .public-shell .pricing-card.plan-highlight {
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .public-shell,
  .public-nav,
  .public-shell :is(.home-hero, .home-hero-product, .hero-home, .public-section, .pricing-card, .sector-card, .home-sector-card, .module-card, .feature-card, .public-card) {
    background: Canvas !important;
    border-color: CanvasText !important;
    color: CanvasText !important;
    box-shadow: none !important;
  }
}

/* Public radical design continuity 2026-08-03:
   final wide, readable and non-clipping public layer for continuous visual improvement. */
.public-shell {
  --container: min(1840px, 96vw) !important;
}

.public-shell .container,
.public-nav,
.public-footer {
  width: min(1840px, 96vw) !important;
  max-width: calc(100vw - 0.75rem) !important;
}

.public-shell :where(.home-hero, .home-hero-product, .hero-home, .public-section) {
  overflow: visible !important;
  padding-inline: clamp(1.25rem, 3.2vw, 4rem) !important;
}

.public-shell :where(.section-heading, .section-heading-tight) {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: flex-start !important;
}

.public-shell :where(.section-heading h1, .section-heading :is(h2), .home-hero h1, .hero-home h1) {
  max-width: min(100%, 15ch) !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.public-shell :where(.section-heading :is(p), .home-hero p, .hero-home p) {
  max-width: 72ch !important;
}

.public-shell :where(.feature-grid, .module-grid, .home-product-grid, .public-cards-grid, .sector-catalog-grid, .public-sector-picker-grid, .plans-grid, .pricing-grid) {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)) !important;
}

.public-shell .public-sector-picker-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 34rem), 1fr)) !important;
}

.public-shell .home-sector-card {
  min-width: 0 !important;
  grid-template-columns: minmax(12rem, 0.36fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
}

.public-shell .home-sector-card > *,
.public-shell .home-sector-card-content,
.public-shell .home-sector-card-content > * {
  min-width: 0 !important;
}

.public-shell :where(.home-sector-card-img, .sector-card-img) {
  width: 100% !important;
  min-height: clamp(10rem, 15vw, 13rem) !important;
  object-fit: cover !important;
}

.public-shell :where(.btn, .btn-outline, .home-sector-card-cta, .public-menu-link) {
  min-height: clamp(2.8rem, 4vw, 3.25rem) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
}

.public-shell .home-sector-card-cta,
.public-shell .home-sector-card .btn {
  color: #ffffff !important;
  background: #1647a3 !important;
  border-color: #123f91 !important;
}

@media (max-width: 820px) {
  .public-shell .home-sector-card {
    grid-template-columns: 1fr !important;
  }

  .public-shell :where(.section-heading, .section-heading-tight) {
    display: grid !important;
    gap: 0.75rem !important;
  }

  .public-shell :where(.section-heading h1, .section-heading :is(h2), .home-hero h1, .hero-home h1) {
    max-width: 100% !important;
  }
}

/* Public 95 width no clipping final guard 2026-07-02: terminal marker after continuous design overrides. */

/* Supplier mobile contact actions 2026-08-03:
   provider rows expose direct call/email/edit actions without forcing users to read the table. */
.admin-shell .supplier-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  align-items: center !important;
}

.admin-shell .supplier-row-actions .btn,
.admin-shell .supplier-row-actions .btn-outline {
  min-height: 2.65rem !important;
  padding-inline: 0.85rem !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  .admin-shell .supplier-row-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)) !important;
    width: 100% !important;
  }

  .admin-shell .supplier-row-actions .btn,
  .admin-shell .supplier-row-actions .btn-outline {
    width: 100% !important;
  }
}

/* Customer mobile contact actions 2026-08-03:
   customer rows expose direct call/email actions before administrative actions. */
.admin-shell .customer-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  align-items: center !important;
}

.admin-shell .customer-row-actions .btn,
.admin-shell .customer-row-actions .btn-outline,
.admin-shell .customer-row-actions button,
.admin-shell .customer-row-actions select {
  min-height: 2.65rem !important;
}

@media (max-width: 760px) {
  .admin-shell .customer-row-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)) !important;
    width: 100% !important;
  }

  .admin-shell .customer-row-actions :where(.btn, .btn-outline, button, select) {
    width: 100% !important;
  }
}

/* Invoice mobile collection actions 2026-08-03:
   invoice rows expose customer contact before document and status actions. */
.admin-shell .invoice-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  align-items: center !important;
}

.admin-shell .invoice-row-actions .btn,
.admin-shell .invoice-row-actions .btn-outline,
.admin-shell .invoice-row-actions button,
.admin-shell .invoice-row-actions select {
  min-height: 2.65rem !important;
}

@media (max-width: 760px) {
  .admin-shell .invoice-row-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)) !important;
    width: 100% !important;
  }

  .admin-shell .invoice-row-actions :where(.btn, .btn-outline, button, select, form) {
    width: 100% !important;
  }
}

/* Delivery note mobile contact actions 2026-08-03:
   delivery rows expose customer contact before delivery, invoice and status actions. */
.admin-shell .delivery-note-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  align-items: center !important;
}

.admin-shell .delivery-note-row-actions .btn,
.admin-shell .delivery-note-row-actions .btn-outline,
.admin-shell .delivery-note-row-actions button,
.admin-shell .delivery-note-row-actions select {
  min-height: 2.65rem !important;
}

@media (max-width: 760px) {
  .admin-shell .delivery-note-row-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)) !important;
    width: 100% !important;
  }

  .admin-shell .delivery-note-row-actions :where(.btn, .btn-outline, button, select, form) {
    width: 100% !important;
  }
}

/* Quote mobile contact actions 2026-08-03:
   quote rows expose customer contact before PDF, invoice and work actions. */
.admin-shell .quote-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  align-items: center !important;
}

.admin-shell .quote-row-actions .btn,
.admin-shell .quote-row-actions .btn-outline,
.admin-shell .quote-row-actions button,
.admin-shell .quote-row-actions select {
  min-height: 2.65rem !important;
}

@media (max-width: 760px) {
  .admin-shell .quote-row-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)) !important;
    width: 100% !important;
  }

  .admin-shell .quote-row-actions :where(.btn, .btn-outline, button, select, form) {
    width: 100% !important;
  }
}

/* Work order mobile contact actions 2026-08-03:
   work rows expose call/email before notes, customer messages and closing evidence. */
.admin-shell .work-order-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  align-items: center !important;
  margin-bottom: 0.55rem !important;
}

.admin-shell .work-order-row-actions .btn,
.admin-shell .work-order-row-actions .btn-outline {
  min-height: 2.65rem !important;
}

@media (max-width: 760px) {
  .admin-shell .work-order-row-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)) !important;
    width: 100% !important;
  }

  .admin-shell .work-order-row-actions :where(.btn, .btn-outline) {
    width: 100% !important;
  }
}

/* Message mobile contact actions 2026-08-03:
   lead rows expose email/call before conversion and status actions. */
.admin-shell .message-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  align-items: center !important;
}

.admin-shell .message-row-actions .btn,
.admin-shell .message-row-actions .btn-outline,
.admin-shell .message-row-actions button {
  min-height: 2.65rem !important;
}

@media (max-width: 760px) {
  .admin-shell .message-row-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)) !important;
    width: 100% !important;
  }

  .admin-shell .message-row-actions :where(.btn, .btn-outline, button, small) {
    width: 100% !important;
  }
}

/* Radical continuous design pass 2026-08-03
   Wider, calmer and more tactile surfaces without changing product logic. */
.public-shell .container,
.public-nav,
.public-footer {
  width: min(95vw, 1560px) !important;
  max-width: min(95vw, 1560px) !important;
}

.public-shell .public-section,
.public-shell .public-hero,
.public-shell .hero-panel,
.public-shell .section-card,
.public-shell .pricing-card,
.public-shell .trade-card,
.public-shell .sector-card,
.public-shell .module-card {
  border-color: rgba(42, 113, 224, 0.22);
  box-shadow: 0 22px 55px rgba(19, 44, 85, 0.09);
}

.public-shell .public-section,
.public-shell .public-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(82, 155, 255, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(240,247,255,0.88));
  overflow: visible;
}

.public-shell h1,
.public-shell .hero-title {
  letter-spacing: -0.065em;
  line-height: 0.92;
  max-width: 13ch;
}

.public-shell h2,
.public-shell .section-title {
  letter-spacing: -0.045em;
  line-height: 1;
}

.public-shell .section-heading,
.public-shell .hero-copy,
.public-shell .public-section > .section-heading {
  width: 100%;
  max-width: none !important;
}

.public-shell .btn,
.public-shell .button,
.public-shell .cta,
.public-shell a[class*="btn"] {
  font-weight: 850;
  min-height: 46px;
  border-radius: 999px;
}

.public-shell .btn-primary,
.public-shell .button-primary,
.public-shell .cta-primary,
.public-shell a[class*="primary"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, #123f9f, #2f6fea) !important;
  border-color: rgba(18, 63, 159, 0.7) !important;
  box-shadow: 0 14px 32px rgba(29, 89, 210, 0.26);
}

.public-shell .btn-secondary,
.public-shell .btn-outline,
.public-shell .button-secondary,
.public-shell a[class*="outline"] {
  color: #0f3d91 !important;
  background: #ffffff !important;
  border-color: rgba(47, 111, 234, 0.42) !important;
}

.public-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(42, 113, 224, 0.18);
  border-radius: 0 0 26px 26px;
  box-shadow: 0 18px 45px rgba(20, 52, 102, 0.10);
}

.public-nav a,
.public-nav button {
  color: #17233c;
}

.public-shell .trade-grid,
.public-shell .sector-grid,
.public-shell .module-grid,
.public-shell .pricing-grid,
.public-shell .cards-grid {
  gap: clamp(18px, 2vw, 34px);
}

.public-shell .trade-card,
.public-shell .sector-card,
.public-shell .module-card {
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
}

.public-shell .trade-card img,
.public-shell .sector-card img,
.public-shell .module-card img,
.public-shell .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-shell .page-header,
.admin-shell .content-card,
.admin-shell .panel,
.admin-shell .table-card,
.admin-shell form.card {
  border-color: rgba(42, 113, 224, 0.18);
  box-shadow: 0 18px 42px rgba(21, 44, 83, 0.07);
}

.admin-shell .btn,
.admin-shell button,
.admin-shell input,
.admin-shell select,
.admin-shell textarea {
  border-radius: 14px;
}

@media (max-width: 760px) {
  .public-shell .container,
  .public-nav,
  .public-footer {
    width: min(94vw, 100%) !important;
    max-width: min(94vw, 100%) !important;
  }

  .public-shell h1,
  .public-shell .hero-title {
    max-width: 100%;
    font-size: clamp(3rem, 15vw, 5.8rem);
    line-height: 0.9;
  }

  .public-shell .public-section,
  .public-shell .public-hero {
    border-radius: 24px;
    padding-inline: clamp(18px, 5vw, 30px);
  }
}

/* Admin radical design continuity 2026-08-03
   Wider, calmer and more tactile private screens for non-technical users. */
.admin-shell {
  background:
    radial-gradient(circle at 8% 0%, rgba(70, 145, 245, 0.16), transparent 30%),
    linear-gradient(180deg, #f5f9ff 0%, #ffffff 48%, #f7fbff 100%) !important;
}

.admin-shell :where(.container, .admin-container, .page-container, .content-wrap, .page-content, .main-content) {
  width: min(96vw, 1680px) !important;
  max-width: min(96vw, 1680px) !important;
}

.admin-shell :where(.page-header, .toolbar, .filter-bar, .filters, .content-card, .panel, .table-card, form.card, .card:not(.menu-card)) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94)) !important;
  border: 1px solid rgba(42, 113, 224, 0.18) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 48px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell :where(.page-header, .content-card, .panel, .table-card, form.card) {
  padding: clamp(1.1rem, 1.8vw, 2rem) !important;
}

.admin-shell :where(.page-header h1, .page-title, h1) {
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.admin-shell :where(.page-header p, .lead, .muted, .help-text, .field-help) {
  color: #53617a !important;
  line-height: 1.55;
}

.admin-shell :where(.btn, button[type="submit"], .button, .action-button) {
  min-height: 44px;
  border-radius: 14px !important;
  font-weight: 850 !important;
}

.admin-shell :where(.btn-primary, button[type="submit"], .primary-action) {
  color: #ffffff !important;
  background: linear-gradient(135deg, #123f9f, #2f6fea) !important;
  border-color: rgba(18, 63, 159, 0.72) !important;
  box-shadow: 0 12px 26px rgba(29, 89, 210, 0.22) !important;
}

.admin-shell :where(.btn-outline, .btn-secondary, .secondary-action) {
  color: #113f91 !important;
  background: #ffffff !important;
  border-color: rgba(47, 111, 234, 0.38) !important;
}

.admin-shell :where(input, select, textarea) {
  min-height: 44px;
  border-radius: 14px !important;
  border-color: rgba(86, 113, 152, 0.28) !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.admin-shell :where(input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible) {
  outline: 3px solid rgba(47, 111, 234, 0.34) !important;
  outline-offset: 2px !important;
}

.admin-shell :where(.form-grid, .filters-grid, .quick-form-grid) {
  gap: clamp(0.9rem, 1.4vw, 1.4rem) !important;
}

.admin-shell :where(table) {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

.admin-shell :where(thead th) {
  background: #f1f6ff !important;
  color: #18243d !important;
  border-bottom: 1px solid rgba(42, 113, 224, 0.18) !important;
}

.admin-shell :where(tbody tr) {
  background: rgba(255, 255, 255, 0.82) !important;
}

.admin-shell :where(tbody tr:nth-child(even)) {
  background: rgba(246, 250, 255, 0.9) !important;
}

.admin-shell :where(tbody tr:hover) {
  background: #eef5ff !important;
}

.admin-shell :where(td, th) {
  vertical-align: top;
  padding: 0.9rem 0.95rem !important;
}

.admin-shell :where(.inline-actions, .form-actions, .row-actions, .action-row) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.admin-shell :where(.status-badge, .badge, .pill) {
  border-radius: 999px !important;
  font-weight: 850 !important;
}

@media (max-width: 900px) {
  .admin-shell :where(.container, .admin-container, .page-container, .content-wrap, .page-content, .main-content) {
    width: min(95vw, 100%) !important;
    max-width: min(95vw, 100%) !important;
  }

  .admin-shell :where(.page-header, .content-card, .panel, .table-card, form.card) {
    border-radius: 20px !important;
    padding: clamp(1rem, 4vw, 1.35rem) !important;
  }

  .admin-shell :where(.inline-actions, .form-actions, .row-actions, .action-row) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)) !important;
    width: 100% !important;
  }

  .admin-shell :where(.inline-actions, .form-actions, .row-actions, .action-row) > * {
    width: 100% !important;
  }

  .admin-shell :where(table) {
    min-width: 760px;
  }
}

/* Admin navigation executive polish 2026-08-03:
   The private header behaves like a modern SaaS control bar, not a legacy backoffice menu. */
.admin-shell .admin-topbar {
  position: sticky !important;
  top: 0.75rem !important;
  z-index: 90 !important;
  width: min(96vw, 1680px) !important;
  max-width: min(96vw, 1680px) !important;
  margin: 0.75rem auto 0 !important;
  padding: 0.65rem 0.8rem !important;
  border: 1px solid rgba(42, 113, 224, 0.18) !important;
  border-radius: 26px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 22px 60px rgba(19, 44, 85, 0.12) !important;
  backdrop-filter: blur(18px) saturate(1.25) !important;
}

.admin-shell .brand-mini {
  min-width: max-content !important;
  padding: 0.35rem 0.55rem !important;
  border-radius: 18px !important;
  color: #17233c !important;
  text-decoration: none !important;
}

.admin-shell .brand-mini h1,
.admin-shell .brand-mini p {
  color: #17233c !important;
}

.admin-shell .brand-mini p {
  color: #53617a !important;
}

.admin-shell .admin-mega-nav {
  display: flex !important;
  flex: 1 1 auto !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  min-width: 0 !important;
}

.admin-shell .admin-mega-nav__button {
  min-height: 46px !important;
  padding: 0.55rem 0.95rem !important;
  border: 1px solid rgba(42, 113, 224, 0.18) !important;
  border-radius: 999px !important;
  background: #f7fbff !important;
  color: #17233c !important;
  box-shadow: 0 10px 24px rgba(19, 44, 85, 0.06) !important;
}

.admin-shell .admin-mega-nav__button-icon,
.admin-shell .admin-mega-nav__section-icon,
.admin-shell .admin-mega-nav__item-icon,
.admin-shell .admin-user-menu__avatar {
  color: #1d5fd6 !important;
}

.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__button,
.admin-shell .admin-mega-nav__item.is-active .admin-mega-nav__button,
.admin-shell .admin-mega-nav__button:hover,
.admin-shell .admin-mega-nav__button:focus-visible {
  background: #eaf3ff !important;
  border-color: rgba(47, 111, 234, 0.36) !important;
  color: #0f3d91 !important;
}

.admin-shell .admin-mega-nav__panel {
  position: fixed !important;
  top: 5.75rem !important;
  left: 50% !important;
  width: min(96vw, 1320px) !important;
  max-height: min(72vh, 720px) !important;
  overflow: auto !important;
  transform: translateX(-50%) !important;
  padding: clamp(1rem, 1.8vw, 1.6rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.20) !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 34px 90px rgba(19, 44, 85, 0.18) !important;
}

.admin-shell .admin-mega-nav__panel section {
  min-width: 0 !important;
  padding: 0.8rem !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, #ffffff, #f5f9ff) !important;
  border: 1px solid rgba(42, 113, 224, 0.12) !important;
}

.admin-shell .admin-mega-nav__panel h2 {
  color: #53617a !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.admin-shell .admin-mega-nav__panel a {
  min-height: 42px !important;
  border-radius: 14px !important;
  color: #17233c !important;
}

.admin-shell .admin-mega-nav__panel a:hover,
.admin-shell .admin-mega-nav__panel a:focus-visible,
.admin-shell .admin-mega-nav__panel a[aria-current="page"] {
  background: #eaf3ff !important;
  color: #0f3d91 !important;
}

.admin-shell .user-meta {
  min-width: max-content !important;
}

.admin-shell .admin-user-menu__summary {
  min-height: 46px !important;
  padding: 0.45rem 0.7rem !important;
  border: 1px solid rgba(42, 113, 224, 0.18) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #17233c !important;
  box-shadow: 0 10px 24px rgba(19, 44, 85, 0.06) !important;
}

.admin-shell .admin-user-menu__panel {
  margin-top: 0.65rem !important;
  border: 1px solid rgba(42, 113, 224, 0.18) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 28px 75px rgba(19, 44, 85, 0.16) !important;
}

@media (max-width: 900px) {
  .admin-shell .admin-topbar {
    top: 0.45rem !important;
    width: min(95vw, 100%) !important;
    max-width: min(95vw, 100%) !important;
    margin-top: 0.45rem !important;
    border-radius: 22px !important;
  }

  .admin-shell .admin-mega-nav {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 0.15rem !important;
    scrollbar-width: thin !important;
  }

  .admin-shell .admin-mega-nav__button {
    white-space: nowrap !important;
  }

  .admin-shell .admin-mega-nav__panel {
    top: 5.25rem !important;
    width: min(95vw, 100%) !important;
    max-height: calc(100vh - 6.5rem) !important;
    border-radius: 22px !important;
  }
}

/* Admin form command polish 2026-08-03:
   Forms become task surfaces with clear sections, strong actions and mobile-first controls. */
.admin-shell :where(form:not(.inline-actions):not(.quote-cycle-form):not(.stacked-mini-form)) {
  position: relative;
}

.admin-shell :where(.grid-two-form, .business-form, .filter-form, .quick-form, .form-grid) {
  align-items: end !important;
  gap: clamp(1rem, 1.8vw, 1.6rem) !important;
}

.admin-shell :where(label) {
  color: #243149 !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
}

.admin-shell :where(label > input, label > select, label > textarea) {
  margin-top: 0.35rem !important;
}

.admin-shell :where(input, select, textarea) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 20px rgba(19, 44, 85, 0.04) !important;
}

.admin-shell :where(textarea) {
  min-height: 7rem !important;
  line-height: 1.55 !important;
}

.admin-shell :where(.form-actions.full, .form-actions, .admin-actions, .panel-actions) {
  padding-top: 0.75rem !important;
  border-top: 1px solid rgba(42, 113, 224, 0.12) !important;
}

.admin-shell :where(.form-actions.full) {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
}

.admin-shell :where(.form-actions.full button[type="submit"], .form-actions.full .btn-primary) {
  min-width: min(100%, 18rem) !important;
}

.admin-shell :where(.field-card, .sector-fields-editor, .quote-lines-editor, .work-voice-panel, .customer-special-advice) {
  border: 1px solid rgba(42, 113, 224, 0.16) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f6faff) !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.06) !important;
}

.admin-shell :where(.hint, .small, .field-help, form small) {
  color: #5f6f89 !important;
  font-size: 0.88rem !important;
}

.admin-shell :where(.alert, .notice, .flash, .form-error, .error-message) {
  border-radius: 18px !important;
  border-width: 1px !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.07) !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.grid-two-form, .business-form, .filter-form, .quick-form, .form-grid) {
    grid-template-columns: 1fr !important;
  }

  .admin-shell :where(.form-actions.full, .form-actions, .admin-actions, .panel-actions) {
    position: sticky !important;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 25 !important;
    padding: 0.75rem !important;
    border: 1px solid rgba(42, 113, 224, 0.18) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 18px 46px rgba(19, 44, 85, 0.16) !important;
    backdrop-filter: blur(16px) !important;
  }

  .admin-shell :where(.form-actions.full button, .form-actions.full .btn, .form-actions button, .form-actions .btn) {
    width: 100% !important;
  }
}

/* Public conversion design continuity 2026-08-03:
   Public pages should feel like a polished sales product, with strong rhythm and readable cards. */
.public-shell :where(.home-hero, .hero-home, .public-hero) {
  min-height: clamp(560px, 72vh, 860px) !important;
  align-items: center !important;
  border-radius: clamp(28px, 3vw, 46px) !important;
}

.public-shell :where(.hero-copy, .home-hero-copy, .public-hero-copy) {
  max-width: 760px !important;
}

.public-shell :where(.hero-actions, .public-actions, .section-actions, .pricing-actions, .lead-empty-actions, .admin-empty-state-actions) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  align-items: center !important;
}

.public-shell :where(.hero-actions .btn, .public-actions .btn, .section-actions .btn, .pricing-actions .btn) {
  min-width: min(100%, 14rem) !important;
  justify-content: center !important;
}

.public-shell :where(.home-sector-card, .sector-card, .trade-card, .module-card, .pricing-card, .feature-card, .public-card) {
  position: relative !important;
  min-width: 0 !important;
  min-height: clamp(15rem, 23vw, 24rem) !important;
  border-radius: 30px !important;
  overflow: hidden !important;
}

.public-shell :where(.home-sector-card, .sector-card, .trade-card, .module-card, .feature-card, .public-card)::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 1.15rem 1.15rem auto !important;
  width: 3.2rem !important;
  height: 3.2rem !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgba(47, 111, 234, 0.22), rgba(47, 111, 234, 0.02) 68%) !important;
  pointer-events: none !important;
}

.public-shell :where(.card-media, .sector-card-media, .trade-card-media, .module-card-media, .home-sector-card-media) {
  min-height: clamp(10rem, 18vw, 18rem) !important;
  aspect-ratio: 16 / 10 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 20% 15%, rgba(47, 111, 234, 0.22), transparent 34%) !important;
}

.public-shell :where(.pricing-card.is-recommended, .pricing-card.recommended, .pricing-card.featured, .pricing-card[data-featured="true"]) {
  transform: translateY(-0.85rem) !important;
  border-color: rgba(18, 63, 159, 0.42) !important;
  box-shadow: 0 30px 75px rgba(29, 89, 210, 0.18) !important;
}

.public-shell :where(.eyebrow, .section-eyebrow, .hero-eyebrow) {
  color: #0f4bb8 !important;
  letter-spacing: 0.09em !important;
  font-weight: 900 !important;
}

.public-shell :where(.pill, .badge, .tag) {
  border-color: rgba(47, 111, 234, 0.28) !important;
  color: #0f3d91 !important;
  background: #eef6ff !important;
}

@media (max-width: 760px) {
  .public-shell :where(.home-hero, .hero-home, .public-hero) {
    min-height: auto !important;
  }

  .public-shell :where(.hero-actions, .public-actions, .section-actions, .pricing-actions) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .public-shell :where(.hero-actions .btn, .public-actions .btn, .section-actions .btn, .pricing-actions .btn) {
    width: 100% !important;
  }

  .public-shell :where(.home-sector-card, .sector-card, .trade-card, .module-card, .pricing-card, .feature-card, .public-card) {
    min-height: 0 !important;
    border-radius: 24px !important;
  }
}

/* Public compact conversion surfaces 2026-08-03:
   Keep the radical visual direction, but remove wasted white space, clipping and low-contrast actions. */
.public-shell .container,
.public-nav,
.public-footer {
  width: min(95vw, 1680px) !important;
  max-width: min(95vw, 1680px) !important;
}

.public-shell :where(.home-hero, .home-hero-product, .hero-home, .public-hero) {
  min-height: auto !important;
  padding-block: clamp(2.5rem, 6vw, 5.75rem) !important;
  overflow: visible !important;
}

.public-shell :where(.section-heading :is(h1, h2), .home-hero h1, .hero-home h1, .hero-title) {
  max-width: min(100%, 24ch) !important;
  text-wrap: balance !important;
}

.public-shell :where(.section-heading > p, .home-hero p, .hero-home p, .hero-copy p) {
  max-width: min(100%, 72ch) !important;
}

.public-shell :where(.feature-grid, .module-grid, .home-product-grid, .public-cards-grid, .sector-catalog-grid, .public-sector-picker-grid, .plans-grid, .pricing-grid) {
  gap: clamp(1rem, 1.8vw, 1.6rem) !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)) !important;
}

.public-shell :where(.home-sector-card, .sector-card, .trade-card, .module-card, .feature-card, .public-card) {
  min-height: clamp(11rem, 16vw, 17.5rem) !important;
  border-radius: 24px !important;
  align-content: start !important;
}

.public-shell .pricing-card {
  min-height: auto !important;
  align-content: start !important;
}

.public-shell .home-sector-card {
  grid-template-columns: minmax(10.5rem, 0.32fr) minmax(0, 1fr) !important;
}

.public-shell :where(.home-sector-card-img, .sector-card-img, .home-sector-card-media, .sector-card-media, .trade-card-media, .module-card-media, .card-media) {
  min-height: clamp(8.5rem, 13vw, 12.5rem) !important;
  aspect-ratio: 16 / 9 !important;
}

.public-shell :where(.home-sector-card-content, .sector-card-content, .trade-card-content, .module-card-content, .feature-card-content, .public-card-content) {
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
}

.public-shell :where(.btn-outline, .button-outline, .secondary-btn) {
  color: #123f91 !important;
  background: #ffffff !important;
  border-color: #8bb8ff !important;
  box-shadow: 0 8px 20px rgba(18, 63, 145, 0.08) !important;
}

.public-shell :where(.btn-outline:hover, .btn-outline:focus-visible, .button-outline:hover, .button-outline:focus-visible, .secondary-btn:hover, .secondary-btn:focus-visible) {
  color: #0b2d6d !important;
  background: #eff6ff !important;
  border-color: #2f6fea !important;
}

@media (max-width: 820px) {
  .public-shell .container,
  .public-nav,
  .public-footer {
    width: min(94vw, 100%) !important;
    max-width: min(94vw, 100%) !important;
  }

  .public-shell .home-sector-card {
    grid-template-columns: 1fr !important;
  }

  .public-shell :where(.home-sector-card-img, .sector-card-img, .home-sector-card-media, .sector-card-media, .trade-card-media, .module-card-media, .card-media) {
    min-height: clamp(9rem, 42vw, 13rem) !important;
  }
}


/* Dashboard command strip 2026-08-03:
   Put the most common daily actions above the long dashboard, especially for phone use. */
.admin-shell .dashboard-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
}

.admin-shell .dashboard-command-card {
  display: grid !important;
  gap: 0.38rem !important;
  min-height: 5.7rem !important;
  padding: clamp(0.85rem, 1.6vw, 1.1rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .dashboard-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .dashboard-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.3vw, 1.15rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .dashboard-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .dashboard-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .dashboard-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .dashboard-command-card:hover,
.admin-shell .dashboard-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .dashboard-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .dashboard-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .dashboard-command-card {
    min-height: 4.8rem !important;
  }
}

html[data-theme="dark"] .admin-shell .dashboard-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .dashboard-command-card strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .dashboard-command-card small {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell .dashboard-command-card span {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #dbeafe !important;
}


/* Auth professional action layout 2026-08-03:
   The access screen must read as a polished product entry point with clear primary and secondary actions. */
.auth-bg .auth-shell {
  width: min(95vw, 1180px) !important;
  max-width: min(95vw, 1180px) !important;
}

.auth-bg .auth-card-minimal {
  width: min(95vw, 1120px) !important;
  max-width: min(95vw, 1120px) !important;
  padding: clamp(1rem, 2.2vw, 1.4rem) !important;
}

.auth-bg .auth-minimal-grid {
  grid-template-columns: minmax(18rem, 0.86fr) minmax(22rem, 1fr) !important;
  gap: clamp(1rem, 2.4vw, 1.8rem) !important;
  align-items: stretch !important;
}

.auth-bg .auth-entry {
  border-radius: 24px !important;
  padding: clamp(1rem, 2.2vw, 1.35rem) !important;
  box-shadow: 0 18px 44px rgba(19, 44, 85, 0.08) !important;
}

.auth-bg .auth-form-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.72rem !important;
  align-items: stretch !important;
}

.auth-bg .auth-form-actions button[type="submit"] {
  width: 100% !important;
  min-height: 3.2rem !important;
  border-radius: 16px !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
}

.auth-bg .auth-form-actions a {
  display: inline-flex !important;
  min-height: 2.85rem !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #bfd7ff !important;
  border-radius: 16px !important;
  background: #f8fbff !important;
  color: #123f91 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.auth-bg .auth-form-actions a:hover,
.auth-bg .auth-form-actions a:focus-visible {
  border-color: #2f6fea !important;
  background: #eef6ff !important;
  color: #0b2d6d !important;
  outline: 3px solid rgba(47, 111, 234, 0.25) !important;
  outline-offset: 3px !important;
}

.auth-bg .auth-access-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  padding-top: 0 !important;
}

.auth-bg .auth-access-links a {
  display: inline-flex !important;
  min-height: 3rem !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(47, 111, 234, 0.24) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #123f91 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(19, 44, 85, 0.07) !important;
}

.auth-bg .auth-access-links a:hover,
.auth-bg .auth-access-links a:focus-visible {
  border-color: #2f6fea !important;
  background: #eef6ff !important;
  color: #0b2d6d !important;
  outline: 3px solid rgba(47, 111, 234, 0.24) !important;
  outline-offset: 3px !important;
}

.auth-bg .auth-password-toggle {
  min-width: 5rem !important;
  min-height: 2.65rem !important;
  border-radius: 999px !important;
}

@media (max-width: 820px) {
  .auth-bg .auth-shell,
  .auth-bg .auth-card-minimal {
    width: min(94vw, 100%) !important;
    max-width: min(94vw, 100%) !important;
  }

  .auth-bg .auth-minimal-grid,
  .auth-bg .auth-access-links {
    grid-template-columns: 1fr !important;
  }
}

html[data-theme="dark"] .auth-bg .auth-form-actions a,
html[data-theme="dark"] .auth-bg .auth-access-links a {
  border-color: rgba(147, 197, 253, 0.32) !important;
  background: rgba(15, 23, 42, 0.88) !important;
  color: #dbeafe !important;
}


/* Quote command strip 2026-08-03:
   Budget work starts with direct actions before the long table and form details. */
.admin-shell .quote-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
  margin: 0 0 1rem !important;
}

.admin-shell .quote-command-card {
  display: grid !important;
  gap: 0.36rem !important;
  min-height: 5.45rem !important;
  padding: clamp(0.85rem, 1.5vw, 1.08rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .quote-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .quote-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .quote-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .quote-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .quote-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .quote-command-card:hover,
.admin-shell .quote-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .quote-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .quote-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .quote-command-card {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .quote-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .quote-command-card strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .quote-command-card small {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell .quote-command-card span {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #dbeafe !important;
}


/* Invoice start command polish 2026-08-03:
   Billing must start with four clear mobile-ready decisions: accepted quotes, invoice, overdue and collection focus. */
.admin-shell .invoice-start-shortcuts {
  grid-template-columns: minmax(14rem, 0.55fr) minmax(0, 1.8fr) !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 48px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .invoice-start-shortcut-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.6rem, 1.2vw, 0.9rem) !important;
}

.admin-shell .invoice-start-shortcut-grid a {
  min-height: 5.55rem !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 28px rgba(19, 44, 85, 0.07) !important;
}

.admin-shell .invoice-start-shortcut-grid a strong {
  font-size: clamp(0.98rem, 1.25vw, 1.12rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .invoice-start-shortcut-grid a small {
  line-height: 1.25 !important;
}

.admin-shell .invoice-start-shortcut-grid a:hover,
.admin-shell .invoice-start-shortcut-grid a:focus-visible {
  outline: 3px solid rgba(42, 113, 224, 0.24) !important;
  outline-offset: 3px !important;
}

@media (max-width: 1120px) {
  .admin-shell .invoice-start-shortcuts,
  .admin-shell .invoice-start-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .admin-shell .invoice-start-shortcuts,
  .admin-shell .invoice-start-shortcut-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .invoice-start-shortcut-grid a {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .invoice-start-shortcuts {
  border-color: rgba(147, 197, 253, 0.24) !important;
  background: linear-gradient(145deg, #101827, #0f172a) !important;
}


/* Delivery note command strip 2026-08-03:
   Delivery work starts with direct mobile-ready actions before counters, filters and tables. */
.admin-shell .delivery-note-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
  margin: 0 0 1rem !important;
}

.admin-shell .delivery-note-command-card {
  display: grid !important;
  gap: 0.36rem !important;
  min-height: 5.45rem !important;
  padding: clamp(0.85rem, 1.5vw, 1.08rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .delivery-note-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .delivery-note-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .delivery-note-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .delivery-note-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .delivery-note-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .delivery-note-command-card:hover,
.admin-shell .delivery-note-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .delivery-note-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .delivery-note-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .delivery-note-command-card {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .delivery-note-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .delivery-note-command-card strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .delivery-note-command-card small {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell .delivery-note-command-card span {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #dbeafe !important;
}


/* Work order command strip 2026-08-03:
   Field work starts with direct mobile-ready actions before forms, filters and tables. */
.admin-shell .work-order-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
  margin: 0 0 1rem !important;
}

.admin-shell .work-order-command-card {
  display: grid !important;
  gap: 0.36rem !important;
  min-height: 5.45rem !important;
  padding: clamp(0.85rem, 1.5vw, 1.08rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .work-order-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .work-order-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .work-order-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .work-order-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .work-order-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .work-order-command-card:hover,
.admin-shell .work-order-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .work-order-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .work-order-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .work-order-command-card {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .work-order-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .work-order-command-card strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .work-order-command-card small {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell .work-order-command-card span {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #dbeafe !important;
}


/* Customer command strip 2026-08-03:
   Customer work starts with direct mobile-ready actions before long forms, filters and tables. */
.admin-shell .customer-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
  margin: 0 0 1rem !important;
}

.admin-shell .customer-command-card {
  display: grid !important;
  gap: 0.36rem !important;
  min-height: 5.45rem !important;
  padding: clamp(0.85rem, 1.5vw, 1.08rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .customer-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .customer-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .customer-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .customer-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .customer-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .customer-command-card:hover,
.admin-shell .customer-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .customer-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .customer-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .customer-command-card {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .customer-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .customer-command-card strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .customer-command-card small {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell .customer-command-card span {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #dbeafe !important;
}


/* Supplier command strip 2026-08-03:
   Supplier work starts with direct mobile-ready actions before metrics, forms and tables. */
.admin-shell .supplier-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
  margin: 0 0 1rem !important;
}

.admin-shell .supplier-command-card {
  display: grid !important;
  gap: 0.36rem !important;
  min-height: 5.45rem !important;
  padding: clamp(0.85rem, 1.5vw, 1.08rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .supplier-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .supplier-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .supplier-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .supplier-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .supplier-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .supplier-command-card:hover,
.admin-shell .supplier-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .supplier-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .supplier-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .supplier-command-card {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .supplier-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .supplier-command-card strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .supplier-command-card small {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell .supplier-command-card span {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #dbeafe !important;
}


/* Invoice command strip 2026-08-03:
   Invoice work starts with direct mobile-ready actions before metrics, panels and tables. */
.admin-shell .invoice-command-shell {
  grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 1.9fr) !important;
  align-items: stretch !important;
  border-color: rgba(42, 113, 224, 0.18) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.92)) !important;
}

.admin-shell .invoice-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
}

.admin-shell .invoice-command-card {
  display: grid !important;
  gap: 0.36rem !important;
  min-height: 5.45rem !important;
  padding: clamp(0.85rem, 1.5vw, 1.08rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .invoice-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .invoice-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .invoice-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .invoice-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .invoice-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .invoice-command-card:hover,
.admin-shell .invoice-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .invoice-command-shell,
  .admin-shell .invoice-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .invoice-command-shell,
  .admin-shell .invoice-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .invoice-command-card {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .invoice-command-shell {
  border-color: rgba(147, 197, 253, 0.24) !important;
  background: linear-gradient(145deg, #101827, #0f172a) !important;
}

html[data-theme="dark"] .admin-shell .invoice-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .invoice-command-card strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .invoice-command-card small {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell .invoice-command-card span {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #dbeafe !important;
}


/* Support command strip 2026-08-03:
   Support starts with direct mobile-ready actions before automation, filters and ticket forms. */
.admin-shell .support-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
  margin: 0 0 1rem !important;
}

.admin-shell .support-command-card {
  display: grid !important;
  gap: 0.36rem !important;
  min-height: 5.45rem !important;
  padding: clamp(0.85rem, 1.5vw, 1.08rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .support-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .support-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .support-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .support-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .support-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .support-command-card:hover,
.admin-shell .support-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .support-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .support-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .support-command-card {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .support-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .support-command-card strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .support-command-card small {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell .support-command-card span {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #dbeafe !important;
}


/* Message command strip 2026-08-03:
   Commercial requests start with direct mobile-ready actions before inbox, filters and tables. */
.admin-shell .message-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
  margin: 0 0 1rem !important;
}

.admin-shell .message-command-card {
  display: grid !important;
  gap: 0.36rem !important;
  min-height: 5.45rem !important;
  padding: clamp(0.85rem, 1.5vw, 1.08rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .message-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .message-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .message-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .message-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .message-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .message-command-card:hover,
.admin-shell .message-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .message-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .message-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .message-command-card {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .message-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .message-command-card strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .message-command-card small {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell .message-command-card span {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #dbeafe !important;
}


/* Subscription command strip 2026-08-03:
   Subscription work starts with direct mobile-ready actions before period filters and long panels. */
.admin-shell .subscription-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
  margin: 0 0 1rem !important;
}

.admin-shell .subscription-command-card {
  display: grid !important;
  gap: 0.36rem !important;
  min-height: 5.45rem !important;
  padding: clamp(0.85rem, 1.5vw, 1.08rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .subscription-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .subscription-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .subscription-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .subscription-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .subscription-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .subscription-command-card:hover,
.admin-shell .subscription-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .subscription-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .subscription-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .subscription-command-card {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .subscription-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .subscription-command-card strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .subscription-command-card small {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell .subscription-command-card span {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #dbeafe !important;
}


/* Account command strip 2026-08-03:
   Account work starts with direct mobile-ready actions before summaries, metrics and forms. */
.admin-shell .account-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
  margin: 0 0 1rem !important;
}

.admin-shell .account-command-card {
  display: grid !important;
  gap: 0.36rem !important;
  min-height: 5.45rem !important;
  padding: clamp(0.85rem, 1.5vw, 1.08rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .account-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .account-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .account-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .account-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .account-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .account-command-card:hover,
.admin-shell .account-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .account-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .account-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .account-command-card {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .account-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .account-command-card strong {
  color: #f8fafc !important;
}

/* User command strip 2026-08-03:
   User management starts with direct mobile-ready actions before metrics, forms and tables. */
.admin-shell .user-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
  margin: 0 0 1rem !important;
}

.admin-shell .user-command-card {
  display: grid !important;
  gap: 0.36rem !important;
  min-height: 5.45rem !important;
  padding: clamp(0.85rem, 1.5vw, 1.08rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .user-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .user-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .user-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .user-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .user-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .user-command-card:hover,
.admin-shell .user-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .user-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .user-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .user-command-card {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .user-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .user-command-card strong {
  color: #f8fafc !important;
}

/* Help command strip 2026-08-03:
   Help starts with direct search, manual, tutorial and trace actions before long reading. */
.admin-shell .help-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
  margin: 0 0 1rem !important;
}

.admin-shell .help-command-card {
  display: grid !important;
  gap: 0.36rem !important;
  min-height: 5.45rem !important;
  padding: clamp(0.85rem, 1.5vw, 1.08rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .help-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .help-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .help-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .help-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .help-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .help-command-card:hover,
.admin-shell .help-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .help-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .help-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .help-command-card {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .help-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .help-command-card strong {
  color: #f8fafc !important;
}

/* Security command strip 2026-08-03:
   Security starts with direct mobile-ready actions before metrics, shortcuts and tables. */
.admin-shell .security-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
  margin: 0 0 1rem !important;
}

.admin-shell .security-command-card {
  display: grid !important;
  gap: 0.36rem !important;
  min-height: 5.45rem !important;
  padding: clamp(0.85rem, 1.5vw, 1.08rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .security-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .security-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .security-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .security-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .security-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .security-command-card:hover,
.admin-shell .security-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .security-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .security-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .security-command-card {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .security-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .security-command-card strong {
  color: #f8fafc !important;
}

/* Trace command strip 2026-08-03:
   Traceability starts with direct mobile-ready actions before metrics, filters and tables. */
.admin-shell .trace-command-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.4vw, 1rem) !important;
  margin: 0 0 1rem !important;
}

.admin-shell .trace-command-card {
  display: grid !important;
  gap: 0.36rem !important;
  min-height: 5.45rem !important;
  padding: clamp(0.85rem, 1.5vw, 1.08rem) !important;
  border: 1px solid rgba(42, 113, 224, 0.2) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
  color: #132c55 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(19, 44, 85, 0.08) !important;
}

.admin-shell .trace-command-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #1746a2 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

.admin-shell .trace-command-card strong {
  color: #061531 !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.admin-shell .trace-command-card small {
  color: #52627a !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.admin-shell .trace-command-card.is-primary {
  border-color: rgba(23, 70, 162, 0.42) !important;
  background: linear-gradient(135deg, #1746a2, #2a71e0) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell .trace-command-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.admin-shell .trace-command-card:hover,
.admin-shell .trace-command-card:focus-visible {
  border-color: rgba(23, 70, 162, 0.52) !important;
  outline: 3px solid rgba(42, 113, 224, 0.26) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .admin-shell .trace-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-shell .trace-command-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-shell .trace-command-card {
    min-height: 4.75rem !important;
  }
}

html[data-theme="dark"] .admin-shell .trace-command-card {
  border-color: rgba(147, 197, 253, 0.26) !important;
  background: linear-gradient(145deg, #111827, #0f172a) !important;
  color: #e5f0ff !important;
}

html[data-theme="dark"] .admin-shell .trace-command-card strong {
  color: #f8fafc !important;
}

/* Public home decision strip 2026-08-03:
   The hero gives three clear conversion paths before any secondary reading. */
.public-shell .home-hero-decision {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(0.65rem, 1.2vw, 0.9rem) !important;
  margin: clamp(1rem, 2vw, 1.35rem) 0 0 !important;
}

.public-shell .home-hero-decision-card {
  display: grid !important;
  gap: 0.34rem !important;
  min-height: 6rem !important;
  padding: clamp(0.9rem, 1.5vw, 1.1rem) !important;
  border: 1px solid rgba(31, 95, 191, 0.18) !important;
  border-radius: 1.2rem !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: #12325f !important;
  text-decoration: none !important;
  box-shadow: 0 16px 38px rgba(8, 32, 74, 0.08) !important;
}

.public-shell .home-hero-decision-card span {
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.52rem !important;
  background: #eaf2ff !important;
  color: #174ea6 !important;
  font-size: 0.76rem !important;
  font-weight: 950 !important;
}

.public-shell .home-hero-decision-card strong {
  color: #071a36 !important;
  font-size: clamp(1rem, 1.22vw, 1.14rem) !important;
  line-height: 1.08 !important;
}

.public-shell .home-hero-decision-card small {
  color: #425a78 !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
}

.public-shell .home-hero-decision-card.is-primary {
  border-color: rgba(29, 78, 216, 0.42) !important;
  background: linear-gradient(135deg, #1d4ed8, #2f73e6) !important;
  color: #ffffff !important;
  box-shadow: 0 20px 44px rgba(29, 78, 216, 0.2) !important;
}

.public-shell .home-hero-decision-card.is-primary :where(span, strong, small) {
  color: #ffffff !important;
}

.public-shell .home-hero-decision-card:hover,
.public-shell .home-hero-decision-card:focus-visible {
  border-color: rgba(29, 78, 216, 0.48) !important;
  outline: 3px solid rgba(37, 99, 235, 0.22) !important;
  outline-offset: 3px !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 780px) {
  .public-shell .home-hero-decision {
    grid-template-columns: 1fr !important;
  }

  .public-shell .home-hero-decision-card {
    min-height: 4.9rem !important;
  }
}

html[data-theme="dark"] .admin-shell .account-command-card small {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell .account-command-card span {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #dbeafe !important;
}

/* Public radical layout continuity 2026-08-03: wider, cleaner and no clipped public cards. */
.public-shell {
  --container: min(1680px, 95vw);
}

.public-shell .container,
.public-shell .public-nav,
.public-shell .public-footer {
  width: min(1680px, 95vw) !important;
  max-width: 1680px;
}

.public-shell .home-hero,
.public-shell .home-hero-product,
.public-shell .home-band,
.public-shell .public-sector-picker,
.public-shell .home-cta {
  max-width: none;
  overflow: clip;
}

.public-shell .home-hero-product {
  grid-template-columns: minmax(0, 0.98fr) minmax(28rem, 0.88fr);
  gap: clamp(1.4rem, 3vw, 3.4rem);
}

.public-shell .home-hero-copy {
  max-width: min(100%, 52rem);
}

.public-shell .home-hero h1 {
  max-width: 14.5ch;
  font-size: clamp(3.4rem, 6.6vw, 7.3rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.public-shell .home-hero-media {
  min-width: 0;
  width: 100%;
}

.public-shell .home-flow-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.55rem, 1vw, 0.9rem);
}

.public-shell .home-flow-step,
.public-shell .home-flow-step:nth-child(4),
.public-shell .home-flow-step:nth-child(5) {
  grid-column: auto;
  min-width: 0;
  min-height: clamp(8.4rem, 11vw, 11.4rem);
}

.public-shell .home-flow-step strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.public-shell .public-product-modules-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  align-items: stretch;
}

.public-shell .public-product-module-card,
.public-shell .home-sector-card {
  min-width: 0;
  overflow: hidden;
}

.public-shell .home-sector-card {
  display: grid;
  grid-template-columns: clamp(12rem, 18vw, 17rem) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.4rem);
}

.public-shell .home-sector-card-visual {
  min-width: 0;
  height: 100%;
  min-height: clamp(10rem, 14vw, 13rem);
}

.public-shell .home-sector-card-copy,
.public-shell .home-sector-card-copy > * {
  min-width: 0;
}

.public-shell .home-sector-card strong,
.public-shell .home-sector-card small,
.public-shell .home-sector-card em {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.public-shell .home-sector-card-cta {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  border-color: #1d4ed8 !important;
  opacity: 1 !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.public-shell .home-sector-card:hover .home-sector-card-cta,
.public-shell .home-sector-card:focus-visible .home-sector-card-cta {
  background: linear-gradient(135deg, #1e40af, #2563eb) !important;
}

@media (max-width: 1180px) {
  .public-shell .home-hero-product {
    grid-template-columns: 1fr;
  }

  .public-shell .home-flow-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .public-shell .container,
  .public-shell .public-nav,
  .public-shell .public-footer {
    width: min(100% - 1.25rem, 95vw) !important;
  }

  .public-shell .home-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.65rem, 13vw, 4.45rem);
  }

  .public-shell .home-sector-card {
    grid-template-columns: 1fr;
  }

  .public-shell .home-sector-card-visual {
    min-height: 12rem;
  }
}

@media (max-width: 560px) {
  .public-shell .home-flow-gallery {
    grid-template-columns: 1fr;
  }
}

/* Admin radical touch density 2026-08-03: compact, touch-first action areas. */
.admin-shell {
  --admin-touch-target: 2.9rem;
  --admin-action-card-radius: 1rem;
}

.admin-shell .admin-command-strip,
.admin-shell .dashboard-quick-start,
.admin-shell .dashboard-day-semaphore,
.admin-shell .dashboard-demo-flow-panel,
.admin-shell .dashboard-next-action-panel {
  max-width: none;
  border-radius: 1.15rem;
}

.admin-shell .admin-command-grid,
.admin-shell .dashboard-command-strip,
.admin-shell .dashboard-quick-start-grid,
.admin-shell .dashboard-day-shortcuts,
.admin-shell .dashboard-day-semaphore-grid,
.admin-shell .dashboard-demo-sequence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: clamp(0.65rem, 1.4vw, 0.95rem);
  align-items: stretch;
}

.admin-shell .admin-command-card,
.admin-shell .dashboard-command-card,
.admin-shell .dashboard-quick-start-grid a,
.admin-shell .dashboard-day-shortcuts a,
.admin-shell .dashboard-day-semaphore-card,
.admin-shell .dashboard-demo-sequence-grid a {
  min-width: 0;
  min-height: clamp(4.6rem, 7vw, 6rem);
  padding: clamp(0.78rem, 1.4vw, 1rem);
  border-radius: var(--admin-action-card-radius);
  overflow: hidden;
  text-decoration: none;
}

.admin-shell .admin-command-card strong,
.admin-shell .dashboard-command-card strong,
.admin-shell .dashboard-quick-start-grid strong,
.admin-shell .dashboard-day-shortcuts strong,
.admin-shell .dashboard-day-semaphore-card strong,
.admin-shell .dashboard-demo-sequence-grid strong {
  color: var(--ink, #0f172a);
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.admin-shell .admin-command-card small,
.admin-shell .dashboard-command-card small,
.admin-shell .dashboard-quick-start-grid small,
.admin-shell .dashboard-day-shortcuts small,
.admin-shell .dashboard-day-semaphore-card small,
.admin-shell .dashboard-demo-sequence-grid small,
.admin-shell .admin-command-card em,
.admin-shell .dashboard-quick-start-grid em,
.admin-shell .dashboard-demo-sequence-grid em {
  max-width: 100%;
  color: var(--muted, #64748b);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.admin-shell .admin-actions .btn,
.admin-shell .admin-actions button,
.admin-shell .panel-actions .btn,
.admin-shell .panel-actions button,
.admin-shell .table-actions .btn,
.admin-shell .table-actions button,
.admin-shell .dashboard-command-card,
.admin-shell .dashboard-quick-start-actions .btn {
  min-height: var(--admin-touch-target);
  align-items: center;
  justify-content: center;
  white-space: normal;
  text-align: center;
}

.admin-shell .admin-panel > p:first-child,
.admin-shell .dashboard-quick-start-head p,
.admin-shell .dashboard-demo-flow-head p:not(.eyebrow),
.admin-shell .dashboard-day-semaphore-head p,
.admin-shell .dashboard-next-action-panel p {
  max-width: 64rem;
  color: var(--muted, #64748b);
  line-height: 1.45;
}

@media (min-width: 1180px) {
  .admin-shell .admin-command-grid,
  .admin-shell .dashboard-command-strip,
  .admin-shell .dashboard-quick-start-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-shell .admin-command-grid,
  .admin-shell .dashboard-command-strip,
  .admin-shell .dashboard-quick-start-grid,
  .admin-shell .dashboard-day-shortcuts,
  .admin-shell .dashboard-day-semaphore-grid,
  .admin-shell .dashboard-demo-sequence-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .admin-command-card,
  .admin-shell .dashboard-command-card,
  .admin-shell .dashboard-quick-start-grid a,
  .admin-shell .dashboard-day-shortcuts a,
  .admin-shell .dashboard-day-semaphore-card,
  .admin-shell .dashboard-demo-sequence-grid a {
    min-height: 0;
  }
}

html[data-theme="dark"] .admin-shell .admin-command-card strong,
html[data-theme="dark"] .admin-shell .dashboard-command-card strong,
html[data-theme="dark"] .admin-shell .dashboard-quick-start-grid strong,
html[data-theme="dark"] .admin-shell .dashboard-day-shortcuts strong,
html[data-theme="dark"] .admin-shell .dashboard-day-semaphore-card strong,
html[data-theme="dark"] .admin-shell .dashboard-demo-sequence-grid strong {
  color: #f8fafc;
}

/* Signup decision layout 2026-08-04: trade and plan choice without long reading. */
.public-shell .signup-sector-hero .hero-home {
  grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 0.62fr);
  gap: clamp(1.2rem, 2.6vw, 2.4rem);
  min-height: auto;
}

.public-shell .signup-sector-hero .hero-copy {
  max-width: min(100%, 58rem);
}

.public-shell .signup-sector-hero h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 5.7vw, 6.4rem);
  line-height: 0.92;
}

.public-shell .signup-sector-hero .hero-actions {
  display: grid;
  grid-template-columns: minmax(13rem, 1.35fr) repeat(2, minmax(10rem, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.public-shell .signup-sector-hero .hero-actions .btn {
  min-height: 3rem;
  justify-content: center;
  text-align: center;
}

.public-shell .signup-config-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-content: center;
  gap: 0.72rem;
  min-height: clamp(17rem, 26vw, 23rem);
  border-color: rgba(147, 197, 253, 0.7);
  background:
    radial-gradient(circle at 78% 12%, rgba(96, 165, 250, 0.2), transparent 12rem),
    linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
}

.public-shell .signup-config-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  filter: none;
}

.public-shell .signup-config-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.72)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.02));
}

.public-shell .signup-config-overlay {
  display: grid;
  gap: 0.78rem;
  align-content: end;
  min-height: inherit;
  padding: clamp(0.85rem, 1.8vw, 1.25rem);
  margin: calc(clamp(1rem, 2vw, 1.8rem) * -1);
}

.public-shell .signup-config-card strong {
  width: fit-content;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: #ffffff;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.public-shell .signup-config-steps {
  display: grid;
  gap: 0.58rem;
}

.public-shell .signup-config-card span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.65rem;
  padding: 0.56rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #07142f;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.public-shell .signup-config-card span::before {
  content: "";
  flex: 0 0 auto;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 0.28rem rgba(37, 99, 235, 0.12);
}

.public-shell .signup-primary-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.5fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: stretch;
}

.public-shell .signup-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
  margin: 1rem 0;
}

.public-shell .signup-step-strip span,
.public-shell .signup-primary-proof dl {
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid rgba(147, 197, 253, 0.62);
  border-radius: 0.95rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.public-shell .signup-step-strip strong {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
}

.public-shell .signup-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.public-shell .signup-primary-actions .btn {
  min-height: 3rem;
  justify-content: center;
}

.public-shell .signup-primary-proof {
  display: grid;
  gap: 0.62rem;
  align-content: start;
  min-width: 0;
  padding: clamp(0.85rem, 1.6vw, 1.05rem);
  border: 1px solid rgba(147, 197, 253, 0.68);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
}

.public-shell .signup-primary-proof > span {
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-shell .signup-primary-proof dt {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.public-shell .signup-primary-proof dd {
  margin: 0.16rem 0 0;
  color: #07142f;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.public-shell .signup-secondary-detail {
  padding: 0;
  overflow: hidden;
}

.public-shell .signup-secondary-detail > summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 3.2rem;
  padding: 1rem clamp(1rem, 2vw, 1.25rem);
  cursor: pointer;
  list-style: none;
}

.public-shell .signup-secondary-detail > summary::-webkit-details-marker {
  display: none;
}

.public-shell .signup-secondary-detail > summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 950;
}

.public-shell .signup-secondary-detail[open] > summary::after {
  content: "-";
}

.public-shell .signup-secondary-detail[open] > .section-heading,
.public-shell .signup-secondary-detail[open] > .signup-brief-grid,
.public-shell .signup-secondary-detail[open] > .signup-next-actions,
.public-shell .signup-secondary-detail[open] > .signup-plan-grid {
  padding-inline: clamp(1rem, 2vw, 1.25rem);
}

.public-shell .signup-secondary-detail[open] > :last-child {
  padding-bottom: clamp(1rem, 2vw, 1.25rem);
}

@media (max-width: 980px) {
  .public-shell .signup-sector-hero .hero-home,
  .public-shell .signup-primary-next-step {
    grid-template-columns: 1fr;
  }

  .public-shell .signup-sector-hero .hero-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .public-shell .signup-step-strip {
    grid-template-columns: 1fr;
  }

  .public-shell .signup-primary-actions .btn {
    width: 100%;
  }
}

html[data-theme="dark"] .public-shell .signup-config-card,
html[data-theme="dark"] .public-shell .signup-primary-proof,
html[data-theme="dark"] .public-shell .signup-step-strip span,
html[data-theme="dark"] .public-shell .signup-primary-proof dl {
  border-color: rgba(96, 165, 250, 0.34);
  background: linear-gradient(145deg, #0f172a 0%, #111c33 100%);
}

html[data-theme="dark"] .public-shell .signup-config-card strong,
html[data-theme="dark"] .public-shell .signup-primary-proof dd {
  color: #f8fafc;
}

html[data-theme="dark"] .public-shell .signup-config-card span,
html[data-theme="dark"] .public-shell .signup-primary-proof dt {
  color: #dbeafe;
}

/* Checkout optional plan comparison 2026-08-04: keep comparison available without pushing it above conversion. */
.public-shell .checkout-plan-reference-detail.checkout-secondary-detail {
  margin-top: 0.2rem;
  border: 1px solid rgba(147, 197, 253, 0.54);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.public-shell .checkout-plan-reference-detail > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
}

.public-shell .checkout-plan-reference-detail > summary::-webkit-details-marker {
  display: none;
}

.public-shell .checkout-plan-reference-detail > summary span {
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-shell .checkout-plan-reference-detail > summary strong {
  color: #07142f;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.15;
}

.public-shell .checkout-plan-reference-detail > summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #ffffff;
  background: #1d4ed8;
  font-weight: 950;
}

.public-shell .checkout-plan-reference-detail[open] > summary::after {
  content: "-";
}

.public-shell .checkout-plan-reference-detail[open] .checkout-plan-reference-grid {
  padding: 0 1rem 1rem;
}

@media (max-width: 680px) {
  .public-shell .checkout-plan-reference-detail > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-shell .checkout-plan-reference-detail > summary::after {
    position: absolute;
    right: 1rem;
  }
}

html[data-theme="dark"] .public-shell .checkout-plan-reference-detail.checkout-secondary-detail {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(15, 23, 42, 0.82);
}

html[data-theme="dark"] .public-shell .checkout-plan-reference-detail > summary strong {
  color: #f8fafc;
}

/* Admin mobile action usability 2026-08-04: every daily action must be reachable without reading dense pages. */
.admin-shell [class*="-command-strip"],
.admin-shell .admin-command-strip,
.admin-shell .dashboard-command-strip,
.admin-shell .dashboard-quick-start-grid,
.admin-shell .compact-actions {
  max-width: 100% !important;
  min-width: 0 !important;
}

.admin-shell [class*="-command-strip"] a,
.admin-shell [class*="-command-strip"] button,
.admin-shell .admin-command-strip a,
.admin-shell .admin-command-strip button,
.admin-shell .dashboard-command-strip a,
.admin-shell .dashboard-command-strip button,
.admin-shell .compact-actions a,
.admin-shell .compact-actions button,
.admin-shell .compact-actions .btn {
  min-height: 2.75rem !important;
  touch-action: manipulation !important;
  line-height: 1.15 !important;
}

.admin-shell [class*="-command-strip"] {
  border: 1px solid rgba(147, 197, 253, 0.5) !important;
  border-radius: 1.05rem !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(239,246,255,0.88)) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06) !important;
}

.admin-shell .form-grid input,
.admin-shell .form-grid select,
.admin-shell .form-grid textarea,
.admin-shell .admin-panel input,
.admin-shell .admin-panel select,
.admin-shell .admin-panel textarea {
  min-height: 2.75rem !important;
  max-width: 100% !important;
}

.admin-shell .form-grid textarea,
.admin-shell .admin-panel textarea {
  min-height: 6.5rem !important;
}

@media (max-width: 760px) {
  .admin-shell .admin-content {
    padding-inline: max(0.85rem, env(safe-area-inset-left)) max(0.85rem, env(safe-area-inset-right)) !important;
  }

  .admin-shell .admin-heading {
    gap: 0.85rem !important;
    padding: 1rem !important;
    border-radius: 1rem !important;
  }

  .admin-shell .admin-heading h1,
  .admin-shell .admin-heading h2 {
    font-size: clamp(1.45rem, 8vw, 2.2rem) !important;
    line-height: 1.02 !important;
    text-wrap: balance !important;
  }

  .admin-shell .admin-heading p:not(.eyebrow),
  .admin-shell .admin-heading-note {
    max-width: 62ch !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .admin-shell .compact-actions,
  .admin-shell .admin-heading .actions,
  .admin-shell .admin-heading .admin-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.55rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 0.1rem !important;
  }

  .admin-shell .compact-actions::-webkit-scrollbar,
  .admin-shell .admin-heading .actions::-webkit-scrollbar,
  .admin-shell .admin-heading .admin-actions::-webkit-scrollbar,
  .admin-shell [class*="-command-strip"]::-webkit-scrollbar {
    display: none !important;
  }

  .admin-shell .compact-actions > *,
  .admin-shell .admin-heading .actions > *,
  .admin-shell .admin-heading .admin-actions > * {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .admin-shell [class*="-command-strip"] {
    display: flex !important;
    gap: 0.65rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 0.72rem !important;
    margin-inline: -0.15rem !important;
    scroll-padding-inline: 0.72rem !important;
  }

  .admin-shell [class*="-command-strip"] > *,
  .admin-shell .dashboard-quick-start-grid > a {
    flex: 0 0 min(78vw, 19rem) !important;
    scroll-snap-align: start !important;
  }

  .admin-shell [class*="-command-strip"] a,
  .admin-shell [class*="-command-strip"] button,
  .admin-shell .dashboard-quick-start-grid a {
    min-height: 4rem !important;
    align-items: center !important;
    white-space: normal !important;
    text-align: left !important;
  }

  .admin-shell .form-grid,
  .admin-shell .admin-panel > .form-grid {
    grid-template-columns: 1fr !important;
    gap: 0.78rem !important;
  }

  .admin-shell .form-actions,
  .admin-shell .admin-panel .form-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.58rem !important;
  }

  .admin-shell .form-actions .btn,
  .admin-shell .form-actions button,
  .admin-shell .admin-panel .btn,
  .admin-shell .admin-panel button[type="submit"] {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 420px) {
  .admin-shell [class*="-command-strip"] > *,
  .admin-shell .dashboard-quick-start-grid > a {
    flex-basis: min(86vw, 18rem) !important;
  }

  .admin-shell [class*="-command-strip"] a,
  .admin-shell [class*="-command-strip"] button,
  .admin-shell .dashboard-quick-start-grid a {
    min-height: 4.35rem !important;
  }
}

/* Access professional blue experience 2026-08-04: login must feel like the same product, not a separate form. */
.auth-bg {
  background:
    radial-gradient(circle at 8% 12%, rgba(96, 165, 250, 0.22), transparent 28rem),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 48%, #f8fbff 100%) !important;
  color: #0f172a !important;
}

.auth-bg .auth-shell {
  width: min(95vw, 76rem) !important;
  min-height: 100svh !important;
  display: grid !important;
  place-items: center !important;
  padding-block: clamp(1rem, 3vw, 2.5rem) !important;
}

.auth-bg .auth-locale-bar {
  position: absolute !important;
  top: max(0.85rem, env(safe-area-inset-top)) !important;
  right: max(0.85rem, env(safe-area-inset-right)) !important;
  z-index: 4 !important;
}

.auth-bg .auth-card-minimal {
  width: 100% !important;
  padding: clamp(0.85rem, 1.8vw, 1.25rem) !important;
  border: 1px solid rgba(147, 197, 253, 0.64) !important;
  border-radius: clamp(1.1rem, 2vw, 1.55rem) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.12) !important;
  overflow: hidden !important;
}

.auth-bg .auth-minimal-grid {
  display: grid !important;
  grid-template-columns: minmax(18rem, 0.86fr) minmax(22rem, 1fr) !important;
  gap: clamp(1rem, 2.4vw, 1.6rem) !important;
  align-items: stretch !important;
}

.auth-bg .auth-product-hero {
  min-height: 30rem !important;
  padding: clamp(1.35rem, 3vw, 2.15rem) !important;
  border-radius: 1.1rem !important;
  background:
    radial-gradient(circle at 88% 88%, rgba(147, 197, 253, 0.26), transparent 13rem),
    linear-gradient(145deg, #1e3a8a 0%, #1d4ed8 56%, #2563eb 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18) !important;
}

.auth-bg .auth-product-hero,
.auth-bg .auth-product-hero * {
  color: #ffffff !important;
}

.auth-bg .auth-product-copy h2 {
  max-width: 11ch !important;
  font-size: clamp(2.25rem, 5.2vw, 4.35rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.075em !important;
  text-wrap: balance !important;
}

.auth-bg .auth-product-copy p:not(.eyebrow),
.auth-bg .auth-protection-note {
  max-width: 33rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(1rem, 1.2vw, 1.12rem) !important;
  line-height: 1.48 !important;
}

.auth-bg .auth-login-column {
  align-self: center !important;
  max-width: 34rem !important;
  margin-inline: auto !important;
}

.auth-bg .auth-login-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em !important;
  color: #071327 !important;
}

.auth-bg .auth-login-heading p:not(.eyebrow) {
  color: #475569 !important;
  max-width: 38rem !important;
}

.auth-bg .auth-entry {
  padding: clamp(1rem, 2vw, 1.25rem) !important;
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06) !important;
}

.auth-bg .stacked-form {
  gap: 0.72rem !important;
}

.auth-bg .stacked-form label {
  color: #14213d !important;
  font-weight: 800 !important;
}

.auth-bg .stacked-form input {
  min-height: 3.15rem !important;
  border: 1px solid rgba(100, 116, 139, 0.36) !important;
  border-radius: 0.82rem !important;
  color: #0f172a !important;
  background: #ffffff !important;
}

.auth-bg .auth-password-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 0.55rem !important;
  align-items: center !important;
}

.auth-bg .auth-password-row .auth-password-toggle {
  min-width: 6.4rem !important;
  min-height: 2.45rem !important;
  padding-inline: 0.9rem !important;
  border: 1px solid rgba(37, 99, 235, 0.36) !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}

.auth-bg .auth-form-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.65rem !important;
  margin-top: 0.45rem !important;
}

.auth-bg .auth-form-actions button[type="submit"] {
  width: 100% !important;
  min-height: 3.05rem !important;
  border-radius: 0.85rem !important;
  background: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22) !important;
}

.auth-bg .auth-form-actions a {
  width: 100% !important;
  min-height: 2.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(37, 99, 235, 0.32) !important;
  border-radius: 0.85rem !important;
  background: #ffffff !important;
  color: #1d4ed8 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.auth-bg .auth-access-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  margin-top: 1rem !important;
}

.auth-bg .auth-access-links a {
  min-height: 2.85rem !important;
  padding-inline: 1rem !important;
  border: 1px solid rgba(37, 99, 235, 0.28) !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}

@media (max-width: 840px) {
  .auth-bg .auth-shell {
    width: min(95vw, 44rem) !important;
    place-items: start center !important;
    padding-top: 4rem !important;
  }

  .auth-bg .auth-minimal-grid {
    grid-template-columns: 1fr !important;
  }

  .auth-bg .auth-product-hero {
    min-height: 16rem !important;
  }

  .auth-bg .auth-product-copy h2 {
    max-width: 14ch !important;
    font-size: clamp(2.05rem, 10vw, 3.3rem) !important;
  }

  .auth-bg .auth-login-column {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 460px) {
  .auth-bg .auth-card-minimal,
  .auth-bg .auth-entry {
    border-radius: 0.95rem !important;
  }

  .auth-bg .auth-password-row {
    grid-template-columns: 1fr !important;
  }

  .auth-bg .auth-password-row .auth-password-toggle {
    width: 100% !important;
  }

  .auth-bg .auth-access-links a {
    width: 100% !important;
  }
}

/* Admin table mobile anchor column 2026-08-04: keep row identity visible while scrolling wide private lists. */
.admin-shell .table-wrap table {
  min-width: max(100%, 48rem) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.admin-shell .table-wrap :where(th, td):first-child {
  background-clip: padding-box !important;
}

@media (max-width: 760px) {
  .admin-shell .table-wrap {
    position: relative !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-padding-inline: 0.85rem !important;
  }

  .admin-shell .table-wrap table {
    min-width: max(46rem, 100%) !important;
  }

  .admin-shell .table-wrap thead th:first-child,
  .admin-shell .table-wrap tbody td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 3 !important;
    max-width: 11rem !important;
    min-width: 7.5rem !important;
    box-shadow: 10px 0 18px rgba(15, 23, 42, 0.08) !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 850 !important;
  }

  .admin-shell .table-wrap thead th:first-child {
    z-index: 5 !important;
    background: #eff6ff !important;
    color: #1e3a8a !important;
  }

  .admin-shell .table-wrap tbody tr:nth-child(even) td:first-child {
    background: #f8fbff !important;
  }

  .admin-shell .table-wrap tbody tr:hover td:first-child,
  .admin-shell .table-wrap tbody tr:focus-within td:first-child {
    background: #eef6ff !important;
  }

  .admin-shell .table-wrap :where(th, td) {
    vertical-align: top !important;
  }

  .admin-shell .table-wrap :where(td, th) :where(a, button, .btn, .btn-small) {
    min-height: 2.35rem !important;
  }
}

html[data-theme="dark"] .admin-shell .table-wrap thead th:first-child,
html[data-theme="dark"] .admin-shell .table-wrap tbody td:first-child {
  background: #111827 !important;
  color: #f8fafc !important;
  box-shadow: 10px 0 18px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .admin-shell .table-wrap tbody tr:nth-child(even) td:first-child {
  background: #0f172a !important;
}

html[data-theme="dark"] .admin-shell .table-wrap tbody tr:hover td:first-child,
html[data-theme="dark"] .admin-shell .table-wrap tbody tr:focus-within td:first-child {
  background: #1e293b !important;
}

/* Admin empty state decision cards 2026-08-04: empty private screens must lead to the next useful action. */
.admin-shell .admin-empty-state {
  position: relative !important;
  display: grid !important;
  gap: 0.85rem !important;
  padding: clamp(1rem, 2.2vw, 1.35rem) !important;
  border: 1px solid rgba(147, 197, 253, 0.56) !important;
  border-radius: 1.15rem !important;
  background:
    radial-gradient(circle at 92% 12%, rgba(96, 165, 250, 0.16), transparent 10rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07) !important;
  overflow: hidden !important;
}

.admin-shell .admin-empty-state::before {
  content: "" !important;
  width: 2.55rem !important;
  height: 2.55rem !important;
  border-radius: 0.85rem !important;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(147, 197, 253, 0.34)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10'/%3E%3Cpath d='M7 12h6'/%3E%3Cpath d='M7 17h8'/%3E%3Cpath d='M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E") center / 1.2rem 1.2rem no-repeat !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72) !important;
}

.admin-shell .admin-empty-state > .eyebrow,
.admin-shell .admin-empty-state > h3,
.admin-shell .admin-empty-state > h4,
.admin-shell .admin-empty-state > p,
.admin-shell .admin-empty-state > strong,
.admin-shell .admin-empty-state > .admin-empty-state-actions {
  min-width: 0 !important;
  margin: 0 !important;
}

.admin-shell .admin-empty-state > h3,
.admin-shell .admin-empty-state > h4,
.admin-shell .admin-empty-state > strong {
  color: #071327 !important;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  text-wrap: balance !important;
}

.admin-shell .admin-empty-state > p {
  max-width: 62ch !important;
  color: #475569 !important;
  line-height: 1.45 !important;
}

.admin-shell .admin-empty-state .admin-empty-state-actions,
.admin-shell .dashboard-empty-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.6rem !important;
  align-items: center !important;
  margin-top: 0.15rem !important;
}

.admin-shell .admin-empty-state .admin-empty-state-actions .btn,
.admin-shell .admin-empty-state .admin-empty-state-actions a,
.admin-shell .dashboard-empty-actions .btn,
.admin-shell .dashboard-empty-actions a {
  min-height: 2.8rem !important;
  padding-inline: 1rem !important;
  border-radius: 999px !important;
  font-weight: 850 !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 760px) {
  .admin-shell .admin-empty-state {
    padding: 1rem !important;
    gap: 0.7rem !important;
  }

  .admin-shell .admin-empty-state > p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .admin-shell .admin-empty-state .admin-empty-state-actions,
  .admin-shell .dashboard-empty-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .admin-shell .admin-empty-state .admin-empty-state-actions .btn,
  .admin-shell .admin-empty-state .admin-empty-state-actions a,
  .admin-shell .dashboard-empty-actions .btn,
  .admin-shell .dashboard-empty-actions a {
    width: 100% !important;
    min-height: 3rem !important;
  }
}

html[data-theme="dark"] .admin-shell .admin-empty-state {
  background:
    radial-gradient(circle at 92% 12%, rgba(96, 165, 250, 0.16), transparent 10rem),
    linear-gradient(135deg, #111827 0%, #0f172a 100%) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .admin-shell .admin-empty-state > h3,
html[data-theme="dark"] .admin-shell .admin-empty-state > h4,
html[data-theme="dark"] .admin-shell .admin-empty-state > strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .admin-empty-state > p {
  color: #cbd5e1 !important;
}

/* Supplier filter visible result 2026-08-04: suppliers must show filter outcome like the rest of daily lists. */
.admin-shell .supplier-result-filter-text {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  min-height: 2.65rem !important;
  padding: 0.55rem 0.78rem !important;
  border: 1px solid rgba(147, 197, 253, 0.52) !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #1e3a8a !important;
  font-size: 0.9rem !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}

.admin-shell .supplier-result-filter-text strong {
  color: #0f172a !important;
  font-weight: 900 !important;
}

@media (max-width: 760px) {
  .admin-shell .supplier-result-filter-text {
    width: 100% !important;
    justify-content: center !important;
    border-radius: 0.9rem !important;
    text-align: center !important;
  }
}

html[data-theme="dark"] .admin-shell .supplier-result-filter-text {
  background: rgba(30, 58, 138, 0.28) !important;
  border-color: rgba(96, 165, 250, 0.38) !important;
  color: #bfdbfe !important;
}

html[data-theme="dark"] .admin-shell .supplier-result-filter-text strong {
  color: #f8fafc !important;
}

/* Subscription filter visible result 2026-08-04: billing filters must explain what list is being reviewed. */
.admin-shell .subscription-result-filter-text {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  min-height: 2.65rem !important;
  padding: 0.55rem 0.78rem !important;
  border: 1px solid rgba(147, 197, 253, 0.52) !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #1e3a8a !important;
  font-size: 0.9rem !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}

.admin-shell .subscription-result-filter-text strong {
  color: #0f172a !important;
  font-weight: 900 !important;
}

@media (max-width: 760px) {
  .admin-shell .subscription-result-filter-text {
    width: 100% !important;
    justify-content: center !important;
    border-radius: 0.9rem !important;
    text-align: center !important;
  }
}

html[data-theme="dark"] .admin-shell .subscription-result-filter-text {
  background: rgba(30, 58, 138, 0.28) !important;
  border-color: rgba(96, 165, 250, 0.38) !important;
  color: #bfdbfe !important;
}

html[data-theme="dark"] .admin-shell .subscription-result-filter-text strong {
  color: #f8fafc !important;
}

/* Admin decision dock polish 2026-08-04: command strips must feel like primary work decisions, not loose links. */
.admin-shell [class*="-command-strip"],
.admin-shell .admin-command-strip,
.admin-shell .dashboard-command-strip {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)) !important;
  gap: 0.72rem !important;
  align-items: stretch !important;
  padding: 0.82rem !important;
  border: 1px solid rgba(147, 197, 253, 0.58) !important;
  border-radius: 1.25rem !important;
  background:
    radial-gradient(circle at 8% 12%, rgba(37, 99, 235, 0.08), transparent 14rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.92)) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07) !important;
}

.admin-shell [class*="-command-strip"] > :where(a, button),
.admin-shell .admin-command-strip > :where(a, button),
.admin-shell .dashboard-command-strip > :where(a, button) {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 2.25rem minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 0.72rem !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 4.25rem !important;
  padding: 0.78rem 2.35rem 0.78rem 0.82rem !important;
  border: 1px solid rgba(191, 219, 254, 0.82) !important;
  border-radius: 1rem !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #0f172a !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055) !important;
  overflow: hidden !important;
}

.admin-shell [class*="-command-strip"] > :where(a, button)::before,
.admin-shell .admin-command-strip > :where(a, button)::before,
.admin-shell .dashboard-command-strip > :where(a, button)::before {
  content: "" !important;
  grid-row: 1 / span 2 !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  border-radius: 0.78rem !important;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(96, 165, 250, 0.28)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / 1.1rem 1.1rem no-repeat !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

.admin-shell [class*="-command-strip"] > :where(a, button)::after,
.admin-shell .admin-command-strip > :where(a, button)::after,
.admin-shell .dashboard-command-strip > :where(a, button)::after {
  content: ">" !important;
  position: absolute !important;
  right: 0.88rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #2563eb !important;
  font-weight: 900 !important;
}

.admin-shell [class*="-command-strip"] > :where(a, button):hover,
.admin-shell [class*="-command-strip"] > :where(a, button):focus-visible,
.admin-shell .admin-command-strip > :where(a, button):hover,
.admin-shell .admin-command-strip > :where(a, button):focus-visible,
.admin-shell .dashboard-command-strip > :where(a, button):hover,
.admin-shell .dashboard-command-strip > :where(a, button):focus-visible {
  border-color: rgba(37, 99, 235, 0.72) !important;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.16) !important;
  transform: translateY(-1px) !important;
}

.admin-shell [class*="-command-strip"] > :where(a, button) :where(strong, span, small, em),
.admin-shell .admin-command-strip > :where(a, button) :where(strong, span, small, em),
.admin-shell .dashboard-command-strip > :where(a, button) :where(strong, span, small, em) {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

.admin-shell [class*="-command-strip"] > :where(a, button) :where(strong, span):first-child,
.admin-shell .admin-command-strip > :where(a, button) :where(strong, span):first-child,
.admin-shell .dashboard-command-strip > :where(a, button) :where(strong, span):first-child {
  color: #071327 !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em !important;
}

@media (max-width: 760px) {
  .admin-shell [class*="-command-strip"],
  .admin-shell .admin-command-strip,
  .admin-shell .dashboard-command-strip {
    display: flex !important;
    gap: 0.65rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0.68rem !important;
  }

  .admin-shell [class*="-command-strip"] > :where(a, button),
  .admin-shell .admin-command-strip > :where(a, button),
  .admin-shell .dashboard-command-strip > :where(a, button) {
    flex: 0 0 min(84vw, 22rem) !important;
    scroll-snap-align: start !important;
    min-height: 4.7rem !important;
  }
}

html[data-theme="dark"] .admin-shell [class*="-command-strip"] > :where(a, button),
html[data-theme="dark"] .admin-shell .admin-command-strip > :where(a, button),
html[data-theme="dark"] .admin-shell .dashboard-command-strip > :where(a, button) {
  background: rgba(15, 23, 42, 0.94) !important;
  border-color: rgba(96, 165, 250, 0.42) !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .admin-shell [class*="-command-strip"] > :where(a, button) :where(strong, span):first-child,
html[data-theme="dark"] .admin-shell .admin-command-strip > :where(a, button) :where(strong, span):first-child,
html[data-theme="dark"] .admin-shell .dashboard-command-strip > :where(a, button) :where(strong, span):first-child {
  color: #f8fafc !important;
}

/* Admin form completion dock 2026-08-04: only real form endings should become sticky on phones. */
@media (max-width: 760px) {
  .admin-shell :where(.admin-actions, .panel-actions):not(.form-actions):not(.compact-actions) {
    position: static !important;
    bottom: auto !important;
    z-index: auto !important;
    backdrop-filter: none !important;
  }

  .admin-shell form :where(.form-actions, .form-actions.full) {
    position: sticky !important;
    bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 34 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
    width: 100% !important;
    margin-top: 1rem !important;
    padding: 0.72rem !important;
    border: 1px solid rgba(37, 99, 235, 0.24) !important;
    border-radius: 1.05rem !important;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96)) !important;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16) !important;
    backdrop-filter: blur(18px) !important;
  }

  .admin-shell form :where(.form-actions, .form-actions.full) :where(button, .btn, input[type="submit"]) {
    width: 100% !important;
    min-height: 3.1rem !important;
    justify-content: center !important;
  }

  .admin-shell form :where(.form-actions, .form-actions.full) :where(button[type="submit"], input[type="submit"], .btn-primary):first-child {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22) !important;
  }
}

html[data-theme="dark"] .admin-shell form :where(.form-actions, .form-actions.full) {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96)) !important;
  border-color: rgba(96, 165, 250, 0.42) !important;
}

/* Admin table scanability polish 2026-08-04: dense private lists must read like work queues. */
.admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) {
  border-collapse: separate !important;
  border-spacing: 0 0.42rem !important;
}

.admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  padding-block: 0.72rem !important;
  background: #eff6ff !important;
  color: #1e3a8a !important;
  border-bottom: 1px solid rgba(147, 197, 253, 0.7) !important;
  font-size: 0.78rem !important;
  line-height: 1.15 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) tbody tr {
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045) !important;
}

.admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) tbody tr:hover {
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12) !important;
}

.admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) td {
  padding-block: 0.82rem !important;
  vertical-align: middle !important;
  border-block: 1px solid rgba(226, 232, 240, 0.9) !important;
}

.admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) td:first-child {
  border-left: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 0.95rem 0 0 0.95rem !important;
  font-weight: 850 !important;
  color: #071327 !important;
}

.admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) td:last-child {
  border-right: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 0 0.95rem 0.95rem 0 !important;
}

.admin-shell :where(.badge, .status-badge, .pill, .tag, .state-pill) {
  min-height: 1.8rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.28rem 0.58rem !important;
  border-radius: 999px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper) {
    border-radius: 1rem !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(239,246,255,0.86)) !important;
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.38) !important;
  }

  .admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) {
    border-spacing: 0 0.5rem !important;
  }

  .admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) th,
  .admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) td {
    white-space: normal !important;
    min-width: 8.5rem !important;
  }

  .admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) td:first-child,
  .admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) th:first-child {
    min-width: 10rem !important;
    max-width: 13rem !important;
  }
}

html[data-theme="dark"] .admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) thead th {
  background: #172554 !important;
  color: #dbeafe !important;
  border-bottom-color: rgba(96, 165, 250, 0.34) !important;
}

html[data-theme="dark"] .admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) tbody tr {
  background: #0f172a !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24) !important;
}

html[data-theme="dark"] .admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) td {
  border-color: rgba(51, 65, 85, 0.9) !important;
}

html[data-theme="dark"] .admin-shell :where(table.admin-table, .admin-table table, table.data-table, .business-table-wrapper table) td:first-child {
  color: #f8fafc !important;
}

/* Public home final CTA panel 2026-08-04: the last home decision must be visible, simple and high contrast. */
.public-shell .home-cta {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: clamp(1rem, 2vw, 1.6rem) !important;
  align-items: center !important;
  padding: clamp(1.25rem, 3vw, 2.2rem) !important;
  border: 1px solid rgba(147, 197, 253, 0.62) !important;
  border-radius: clamp(1.4rem, 3vw, 2.35rem) !important;
  background:
    radial-gradient(circle at 88% 18%, rgba(147, 197, 253, 0.34), transparent 18rem),
    linear-gradient(135deg, #0f2d6b 0%, #1d4ed8 58%, #2563eb 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 26px 70px rgba(30, 64, 175, 0.22) !important;
  overflow: hidden !important;
}

.public-shell .home-cta .eyebrow {
  color: #dbeafe !important;
  letter-spacing: 0.12em !important;
}

.public-shell .home-cta h2 {
  max-width: 14ch !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(2rem, 5vw, 4.6rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.07em !important;
  text-wrap: balance !important;
}

.public-shell .home-cta .hero-actions {
  justify-content: flex-end !important;
  min-width: min(100%, 28rem) !important;
}

.public-shell .home-cta .hero-actions .btn,
.public-shell .home-cta .hero-actions .btn-outline {
  min-height: 3.25rem !important;
  min-width: min(100%, 13.5rem) !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
}

.public-shell .home-cta .hero-actions .btn {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #1d4ed8 !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18) !important;
}

.public-shell .home-cta .hero-actions .btn-outline {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  color: #ffffff !important;
}

.public-shell .home-cta .hero-actions .btn:hover,
.public-shell .home-cta .hero-actions .btn:focus-visible {
  background: #eff6ff !important;
  color: #1e40af !important;
}

.public-shell .home-cta .hero-actions .btn-outline:hover,
.public-shell .home-cta .hero-actions .btn-outline:focus-visible {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #1d4ed8 !important;
}

@media (max-width: 820px) {
  .public-shell .home-cta {
    grid-template-columns: 1fr !important;
  }

  .public-shell .home-cta h2 {
    max-width: 100% !important;
  }

  .public-shell .home-cta .hero-actions {
    width: 100% !important;
    justify-content: stretch !important;
  }

  .public-shell .home-cta .hero-actions .btn,
  .public-shell .home-cta .hero-actions .btn-outline {
    width: 100% !important;
  }
}

/* Admin secondary copy compression 2026-08-04: actions first, explanations available but visually quieter. */
.admin-shell :where(.admin-heading p:not(.eyebrow), .admin-panel > p:not(.eyebrow):not(.result-count), .document-card > p:not(.eyebrow), .hint, .small) {
  max-width: 70ch !important;
  color: #475569 !important;
  line-height: 1.38 !important;
}

.admin-shell .admin-heading p:not(.eyebrow) {
  margin-top: 0.35rem !important;
  margin-bottom: 0 !important;
}

.admin-shell .admin-panel > p:not(.eyebrow):not(.result-count),
.admin-shell .document-card > p:not(.eyebrow) {
  margin-block: 0.35rem 0.75rem !important;
}

.admin-shell :where(.admin-heading, .admin-panel, .document-card) :where(.btn, button, .compact-actions, .admin-actions, .panel-actions, .form-actions) {
  margin-top: 0.65rem !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-heading p:not(.eyebrow), .admin-panel > p:not(.eyebrow):not(.result-count), .document-card > p:not(.eyebrow), .hint, .small) {
  color: #cbd5e1 !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.admin-heading p:not(.eyebrow), .admin-panel > p:not(.eyebrow):not(.result-count), .document-card > p:not(.eyebrow)) {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .admin-shell :where(.admin-heading, .admin-panel, .document-card) :where(.btn, button, .compact-actions, .admin-actions, .panel-actions, .form-actions) {
    margin-top: 0.5rem !important;
  }
}

/* Visual continuous radical refresh 2026-08-04: broader, calmer and more premium surfaces. */
.public-shell .container,
.public-nav,
.public-footer,
.public-shell :where(.home-hero, .hero, .hero-home, .public-section, .public-card, .pricing-band, .service-table-band, .sector-catalog-band, .public-sector-picker, .home-sector-picker, .sector-secondary-detail-body, .public-menu-panel) {
  width: min(95vw, 1760px) !important;
  max-width: min(95vw, 1760px) !important;
}

.public-shell :where(.public-section, .public-card, .home-hero, .hero, .hero-home, .pricing-band, .service-table-band, .sector-catalog-band, .sector-secondary-detail-body),
.admin-shell :where(.admin-panel, .metric-card, .business-card, .document-card, .command-card, .invoice-command-card, .dashboard-command-card, .delivery-note-command-card, .quote-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card) {
  border: 1px solid rgba(147, 197, 253, 0.44) !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.075) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92)) !important;
}

.public-shell :where(.public-section, .pricing-band, .service-table-band, .sector-catalog-band, .sector-secondary-detail-body),
.admin-shell :where(.admin-panel, .document-card) {
  border-radius: clamp(1.1rem, 1.7vw, 1.75rem) !important;
}

.public-shell :where(.section-heading, .admin-heading),
.admin-shell :where(.admin-heading, .section-heading) {
  max-width: 100% !important;
}

.admin-shell .admin-heading h1,
.admin-shell .admin-heading h2 {
  letter-spacing: -0.055em !important;
  text-wrap: balance !important;
}

.admin-shell .admin-heading p:not(.eyebrow) {
  max-width: 64rem !important;
  color: #334155 !important;
}

.public-shell :where(.btn, button, .public-mobile-cta-primary),
.admin-shell :where(.btn, button) {
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18) !important;
}

.public-shell :where(.btn-outline, .button-outline),
.admin-shell :where(.btn-outline, .button-outline) {
  background: rgba(255,255,255,0.92) !important;
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.32) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055) !important;
}

.admin-shell :where(.table-wrapper, .admin-table-wrapper, .data-table-wrap) {
  border: 1px solid rgba(147, 197, 253, 0.42) !important;
  border-radius: 1.15rem !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65), 0 14px 34px rgba(15,23,42,0.055) !important;
}

.admin-shell table thead th {
  background: #eff6ff !important;
  color: #0f172a !important;
  letter-spacing: 0.045em !important;
  border-bottom: 1px solid rgba(147, 197, 253, 0.5) !important;
}

.admin-shell table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.72) !important;
}

.admin-shell table tbody tr:hover td {
  background: #eff6ff !important;
}

.admin-shell :where(input, select, textarea),
.public-shell :where(input, select, textarea) {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82) !important;
}

.admin-shell :where(input, select, textarea):focus-visible,
.public-shell :where(input, select, textarea):focus-visible {
  border-color: #2563eb !important;
  outline: 3px solid rgba(37, 99, 235, 0.22) !important;
}

html[data-theme="dark"] .public-shell :where(.public-section, .public-card, .home-hero, .hero, .hero-home, .pricing-band, .service-table-band, .sector-catalog-band, .sector-secondary-detail-body),
html[data-theme="dark"] .admin-shell :where(.admin-panel, .metric-card, .business-card, .document-card, .command-card, .invoice-command-card, .dashboard-command-card, .delivery-note-command-card, .quote-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card) {
  background: linear-gradient(180deg, rgba(15,23,42,0.95), rgba(30,41,59,0.9)) !important;
  border-color: rgba(96, 165, 250, 0.36) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.26) !important;
}

html[data-theme="dark"] .admin-shell :where(.table-wrapper, .admin-table-wrapper, .data-table-wrap) {
  background: #0f172a !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
}

html[data-theme="dark"] .admin-shell table thead th {
  background: rgba(30, 64, 175, 0.34) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell table tbody tr:nth-child(even) td,
html[data-theme="dark"] .admin-shell table tbody tr:hover td {
  background: rgba(30, 41, 59, 0.72) !important;
}

@media (max-width: 760px) {
  .public-shell .container,
  .public-nav,
  .public-footer,
  .public-shell :where(.home-hero, .hero, .hero-home, .public-section, .public-card, .pricing-band, .service-table-band, .sector-catalog-band, .public-sector-picker, .home-sector-picker, .sector-secondary-detail-body) {
    width: min(94vw, 100%) !important;
    max-width: min(94vw, 100%) !important;
  }

  .admin-shell :where(.admin-panel, .document-card, .metric-card, .business-card) {
    border-radius: 1rem !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07) !important;
  }
}

/* Admin filter workbench polish 2026-08-04: filters must feel like a compact workbench, not a long form. */
.admin-shell :where(.filter-form, .support-filter-form) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)) !important;
  align-items: end !important;
  gap: 0.72rem !important;
  padding: clamp(0.8rem, 1.4vw, 1.05rem) !important;
  margin-block: 0.75rem 0.85rem !important;
  border: 1px solid rgba(147, 197, 253, 0.48) !important;
  border-radius: 1.2rem !important;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.94)) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.065) !important;
}

.admin-shell :where(.filter-form, .support-filter-form) label {
  min-width: 0 !important;
  display: grid !important;
  gap: 0.32rem !important;
  color: #334155 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.035em !important;
  text-transform: uppercase !important;
}

.admin-shell :where(.filter-form, .support-filter-form) :where(input, select) {
  min-height: 44px !important;
  width: 100% !important;
  border-radius: 0.85rem !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(37, 99, 235, 0.22) !important;
}

.admin-shell :where(.filter-form, .support-filter-form) :where(button, .btn, a.btn, .btn-outline) {
  min-height: 44px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  font-weight: 900 !important;
}

.admin-shell :where(.filter-form, .support-filter-form) button[type="submit"] {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
}

.admin-shell :where(.result-count, .delivery-note-result-count, .work-order-result-count, .support-result-count) {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.35rem 0.55rem !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 0.55rem 0.72rem !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  border-radius: 999px !important;
  background: rgba(239, 246, 255, 0.9) !important;
  color: #334155 !important;
}

.admin-shell :where(.result-count, .delivery-note-result-count, .work-order-result-count, .support-result-count) strong {
  color: #0f172a !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.filter-form, .support-filter-form) {
    grid-template-columns: 1fr !important;
    border-radius: 1rem !important;
    padding: 0.85rem !important;
  }

  .admin-shell :where(.filter-form, .support-filter-form) :where(button, .btn, a.btn, .btn-outline) {
    width: 100% !important;
  }

  .admin-shell :where(.result-count, .delivery-note-result-count, .work-order-result-count, .support-result-count) {
    width: 100% !important;
    border-radius: 1rem !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.filter-form, .support-filter-form) {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9)) !important;
  border-color: rgba(96, 165, 250, 0.36) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24) !important;
}

html[data-theme="dark"] .admin-shell :where(.filter-form, .support-filter-form) label,
html[data-theme="dark"] .admin-shell :where(.result-count, .delivery-note-result-count, .work-order-result-count, .support-result-count) {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell :where(.filter-form, .support-filter-form) :where(input, select) {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #f8fafc !important;
  border-color: rgba(96, 165, 250, 0.36) !important;
}

html[data-theme="dark"] .admin-shell :where(.result-count, .delivery-note-result-count, .work-order-result-count, .support-result-count) {
  background: rgba(15, 23, 42, 0.86) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
}

html[data-theme="dark"] .admin-shell :where(.result-count, .delivery-note-result-count, .work-order-result-count, .support-result-count) strong {
  color: #f8fafc !important;
}

/* Admin row action chips polish 2026-08-04: table actions must scan like compact work chips. */
.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.42rem !important;
}

.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) :where(.btn, button, select) {
  min-height: 38px !important;
  border-radius: 999px !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) :where(.btn, button) {
  padding-inline: 0.72rem !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.11) !important;
}

.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) select {
  width: auto !important;
  max-width: 11rem !important;
  padding-inline: 0.75rem 2rem !important;
  background-color: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.24) !important;
}

.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href^="tel:"],
.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href^="mailto:"] {
  background: #eff6ff !important;
  color: #1746a2 !important;
  border-color: rgba(37, 99, 235, 0.26) !important;
}

.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href*="/presupuestos.php"],
.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href*="/albaranes.php"],
.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href*="/facturas.php"],
.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href*="/partes-trabajo.php"] {
  border-color: rgba(29, 78, 216, 0.34) !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)) !important;
    width: 100% !important;
  }

  .admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) :where(.btn, button, select) {
    width: 100% !important;
    justify-content: center !important;
    min-height: 42px !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) select {
  background-color: rgba(15, 23, 42, 0.94) !important;
  border-color: rgba(96, 165, 250, 0.36) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href^="tel:"],
html[data-theme="dark"] .admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href^="mailto:"] {
  background: rgba(30, 64, 175, 0.34) !important;
  color: #dbeafe !important;
  border-color: rgba(96, 165, 250, 0.38) !important;
}

/* Admin command card visual lift 2026-08-04: decision cards need a stronger SaaS surface. */
.admin-shell :where(.dashboard-command-card, .quote-command-card, .invoice-command-card, .delivery-note-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card) {
  position: relative !important;
  isolation: isolate !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-content: start !important;
  gap: 0.34rem 0.75rem !important;
  min-height: 7.25rem !important;
  padding: clamp(0.92rem, 1.5vw, 1.18rem) !important;
  border: 1px solid rgba(96, 165, 250, 0.44) !important;
  border-radius: 1.15rem !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.88)) !important;
  color: #0f172a !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.075) !important;
}

.admin-shell :where(.dashboard-command-card, .quote-command-card, .invoice-command-card, .delivery-note-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card)::before {
  content: "" !important;
  grid-row: 1 / span 3 !important;
  inline-size: 2.35rem !important;
  block-size: 2.35rem !important;
  border-radius: 0.95rem !important;
  background:
    radial-gradient(circle at 68% 28%, rgba(255, 255, 255, 0.94) 0 0.22rem, transparent 0.24rem),
    linear-gradient(135deg, #1746a2, #2563eb) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 12px 22px rgba(37, 99, 235, 0.22) !important;
}

.admin-shell :where(.dashboard-command-card, .quote-command-card, .invoice-command-card, .delivery-note-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card) > :where(span, strong, small, p) {
  grid-column: 2 !important;
  min-width: 0 !important;
}

.admin-shell :where(.dashboard-command-card, .quote-command-card, .invoice-command-card, .delivery-note-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card) > span:first-child {
  width: fit-content !important;
  max-width: 100% !important;
  padding: 0.24rem 0.52rem !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  border-radius: 999px !important;
  background: rgba(239, 246, 255, 0.92) !important;
  color: #1746a2 !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.045em !important;
  text-transform: uppercase !important;
}

.admin-shell :where(.dashboard-command-card, .quote-command-card, .invoice-command-card, .delivery-note-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card) > strong {
  color: #07142f !important;
  font-size: clamp(1rem, 1.25vw, 1.2rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
}

.admin-shell :where(.dashboard-command-card, .quote-command-card, .invoice-command-card, .delivery-note-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card) > small {
  color: #475569 !important;
  line-height: 1.35 !important;
}

.admin-shell :where(.dashboard-command-card, .quote-command-card, .invoice-command-card, .delivery-note-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card):hover,
.admin-shell :where(.dashboard-command-card, .quote-command-card, .invoice-command-card, .delivery-note-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card):focus-visible {
  border-color: rgba(37, 99, 235, 0.62) !important;
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.14) !important;
  transform: translateY(-1px) !important;
}

.admin-shell :where(.dashboard-command-card.is-primary, .quote-command-card.is-primary, .invoice-command-card.is-primary, .delivery-note-command-card.is-primary, .work-order-command-card.is-primary, .customer-command-card.is-primary, .supplier-command-card.is-primary, .support-command-card.is-primary, .message-command-card.is-primary, .subscription-command-card.is-primary, .account-command-card.is-primary, .security-command-card.is-primary, .trace-command-card.is-primary, .user-command-card.is-primary) {
  border-color: rgba(29, 78, 216, 0.72) !important;
  background:
    linear-gradient(145deg, rgba(219, 234, 254, 0.98), rgba(255, 255, 255, 0.96)) !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.dashboard-command-card, .quote-command-card, .invoice-command-card, .delivery-note-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card) {
    min-height: 0 !important;
    padding: 0.9rem !important;
    border-radius: 1rem !important;
  }

  .admin-shell :where(.dashboard-command-card, .quote-command-card, .invoice-command-card, .delivery-note-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card)::before {
    inline-size: 2rem !important;
    block-size: 2rem !important;
    border-radius: 0.78rem !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.dashboard-command-card, .quote-command-card, .invoice-command-card, .delivery-note-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card) {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9)) !important;
  color: #f8fafc !important;
  border-color: rgba(96, 165, 250, 0.38) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26) !important;
}

html[data-theme="dark"] .admin-shell :where(.dashboard-command-card, .quote-command-card, .invoice-command-card, .delivery-note-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card) > span:first-child {
  background: rgba(30, 64, 175, 0.36) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
  color: #dbeafe !important;
}

html[data-theme="dark"] .admin-shell :where(.dashboard-command-card, .quote-command-card, .invoice-command-card, .delivery-note-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card) > strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell :where(.dashboard-command-card, .quote-command-card, .invoice-command-card, .delivery-note-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card) > small {
  color: #cbd5e1 !important;
}

/* Visual decision surface refinement 2026-08-04: wider, clearer and harder to clip. */
.public-shell .container,
.public-nav,
.public-footer {
  width: min(95vw, 1760px) !important;
  max-width: min(95vw, 1760px) !important;
}

.public-shell :where(.public-section, .home-band, .home-cta, .hero, .hero-home, .home-hero, .pricing-band, .service-table-band, .sector-catalog-band, .sector-secondary-detail-body),
.admin-shell :where(.admin-panel, .customer-action-panel, .client-next-panel, .client-work-route-panel, .work-route-today-panel) {
  overflow: visible !important;
  min-width: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(191, 219, 254, 0.34), transparent 24rem) !important;
  border-color: rgba(147, 197, 253, 0.54) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 20px 52px rgba(15, 23, 42, 0.08) !important;
}

.public-shell :where(.public-card, .card, .sector-card, .module-card, .profession-card, .pricing-card, .plan-card, .home-sector-card, .trade-card, .feature-card),
.admin-shell :where(.document-card, .metric-card, .business-card, .command-card, .invoice-command-card, .dashboard-command-card, .delivery-note-command-card, .quote-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card) {
  min-width: 0 !important;
  border-color: rgba(147, 197, 253, 0.5) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.72)) !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07) !important;
}

.public-shell :where(.section-heading, .section-heading-row, .admin-heading),
.admin-shell :where(.section-heading, .section-heading-row, .admin-heading) {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.public-shell :where(h1, h2, h3),
.admin-shell :where(h1, h2, h3) {
  text-wrap: balance !important;
}

.public-shell :where(p, li, small, span, a, button, .btn, .btn-outline),
.admin-shell :where(p, li, small, span, a, button, .btn, .btn-outline) {
  overflow-wrap: anywhere !important;
}

.public-shell :where(.btn, .btn-outline, button),
.admin-shell :where(.btn, .btn-outline, button) {
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.42rem !important;
  text-wrap: balance !important;
}

.public-shell :where(.btn:not(.btn-outline), button:not(.btn-outline)),
.admin-shell :where(.btn-primary, button[type="submit"]) {
  background: linear-gradient(135deg, #1746a2, #2563eb) !important;
  color: #ffffff !important;
  border-color: #1746a2 !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22) !important;
}

.public-shell :where(.btn-outline, .button-outline),
.admin-shell :where(.btn-outline, .button-outline) {
  background: #ffffff !important;
  color: #123a86 !important;
  border-color: rgba(37, 99, 235, 0.38) !important;
}

.public-shell :where(.sector-grid, .module-grid, .pricing-grid, .plans-grid, .professional-grid, .home-sector-grid) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)) !important;
}

html[data-theme="dark"] .public-shell :where(.public-section, .home-band, .home-cta, .hero, .hero-home, .home-hero, .pricing-band, .service-table-band, .sector-catalog-band, .sector-secondary-detail-body),
html[data-theme="dark"] .admin-shell :where(.admin-panel, .customer-action-panel, .client-next-panel, .client-work-route-panel, .work-route-today-panel) {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.24), transparent 24rem) !important;
  border-color: rgba(96, 165, 250, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 52px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .public-shell :where(.public-card, .card, .sector-card, .module-card, .profession-card, .pricing-card, .plan-card, .home-sector-card, .trade-card, .feature-card),
html[data-theme="dark"] .admin-shell :where(.document-card, .metric-card, .business-card, .command-card, .invoice-command-card, .dashboard-command-card, .delivery-note-command-card, .quote-command-card, .work-order-command-card, .customer-command-card, .supplier-command-card, .support-command-card, .message-command-card, .subscription-command-card, .account-command-card, .security-command-card, .trace-command-card, .user-command-card) {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.86)) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24) !important;
}

/* Admin elastic command strips 2026-08-04: action strips must accept 3, 4 or 5 decisions without clipping. */
.admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.9rem), 1fr)) !important;
  gap: clamp(0.58rem, 1.1vw, 0.82rem) !important;
  align-items: stretch !important;
}

.admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip) > :where(a, button) {
  min-width: 0 !important;
  min-height: 6.35rem !important;
  padding-inline-end: 2.05rem !important;
}

.admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip) > :where(a, button) small {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

@media (min-width: 1280px) {
  .admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip) {
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip) {
    padding: 0.62rem !important;
    scroll-padding-inline: 0.62rem !important;
  }

  .admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip) > :where(a, button) {
    flex-basis: min(78vw, 18.75rem) !important;
    min-height: 5.85rem !important;
    padding: 0.82rem 1.75rem 0.82rem 0.82rem !important;
  }
}

/* Global professional rhythm 2026-08-05: typography, spacing, button contrast and density baseline. */
:where(.public-shell, .admin-shell, .auth-bg) {
  font-size: 16px !important;
  line-height: 1.52 !important;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:where(.public-shell, .admin-shell, .auth-bg) :where(h1, h2, h3, h4) {
  margin-block: 0 0.55em !important;
  color: #07142f !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
}

:where(.public-shell, .admin-shell, .auth-bg) h1 {
  font-size: clamp(2.45rem, 6.6vw, 5.85rem) !important;
}

:where(.public-shell, .admin-shell, .auth-bg) h2 {
  font-size: clamp(1.85rem, 3.8vw, 3.6rem) !important;
}

:where(.public-shell, .admin-shell, .auth-bg) h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
  line-height: 1.08 !important;
}

:where(.public-shell, .admin-shell, .auth-bg) :where(p, li, small, label, input, select, textarea, button, .btn) {
  line-height: 1.48 !important;
}

:where(.public-shell, .admin-shell, .auth-bg) :where(p, .small, .hint, small) {
  color: #475569 !important;
}

:where(.public-shell, .admin-shell) :where(.admin-panel, .public-section, .public-card, .card, .home-band, .pricing-band, .service-table-band, .sector-catalog-band) {
  margin-block: clamp(0.85rem, 1.7vw, 1.45rem) !important;
  padding: clamp(1rem, 2.15vw, 1.8rem) !important;
}

:where(.public-shell, .admin-shell, .auth-bg) :where(.btn, .btn-outline, button, input[type="submit"]) {
  min-height: 46px !important;
  padding: 0.74rem 1.08rem !important;
  border-radius: 0.92rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
  text-decoration: none !important;
}

:where(.public-shell, .admin-shell, .auth-bg) :where(.btn:not(.btn-outline), button[type="submit"], input[type="submit"]) {
  background: linear-gradient(135deg, #1746a2, #255fe8) !important;
  color: #ffffff !important;
  border-color: #1746a2 !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22) !important;
}

:where(.public-shell, .admin-shell, .auth-bg) :where(.btn-outline, .button-outline, a.btn-outline) {
  background: #ffffff !important;
  color: #123a86 !important;
  border-color: rgba(37, 99, 235, 0.42) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055) !important;
}

:where(.public-shell, .admin-shell, .auth-bg) :where(.btn:hover, .btn:focus-visible, button:hover, button:focus-visible, input[type="submit"]:hover, input[type="submit"]:focus-visible) {
  outline: 3px solid rgba(37, 99, 235, 0.24) !important;
  outline-offset: 0.18rem !important;
}

:where(.public-shell, .admin-shell, .auth-bg) :where(input, select, textarea) {
  min-height: 46px !important;
  padding: 0.72rem 0.86rem !important;
  border-radius: 0.82rem !important;
  border-color: rgba(100, 116, 139, 0.34) !important;
  color: #0f172a !important;
  background: #ffffff !important;
}

:where(.public-shell, .admin-shell, .auth-bg) :where(label) {
  gap: 0.34rem !important;
  color: #334155 !important;
  font-weight: 850 !important;
}

.admin-shell :where(table) {
  border-collapse: separate !important;
  border-spacing: 0 0.34rem !important;
}

.admin-shell :where(table th, table td) {
  padding: 0.86rem 0.92rem !important;
  vertical-align: middle !important;
}

.admin-shell :where(table th) {
  font-size: 0.76rem !important;
  line-height: 1.15 !important;
  color: #1f3655 !important;
}

@media (max-width: 760px) {
  :where(.public-shell, .admin-shell, .auth-bg) {
    font-size: 15.5px !important;
  }

  :where(.public-shell, .admin-shell, .auth-bg) h1 {
    font-size: clamp(2.05rem, 11.5vw, 3.65rem) !important;
    line-height: 1.02 !important;
  }

  :where(.public-shell, .admin-shell, .auth-bg) h2 {
    font-size: clamp(1.55rem, 8vw, 2.45rem) !important;
    line-height: 1.06 !important;
  }

  :where(.public-shell, .admin-shell) :where(.admin-panel, .public-section, .public-card, .card, .home-band, .pricing-band, .service-table-band, .sector-catalog-band) {
    padding: 0.94rem !important;
    margin-block: 0.72rem !important;
    border-radius: 1.05rem !important;
  }

  :where(.public-shell, .admin-shell, .auth-bg) :where(.btn, .btn-outline, button, input[type="submit"], input, select, textarea) {
    min-height: 48px !important;
  }
}

html[data-theme="dark"] :where(.public-shell, .admin-shell, .auth-bg) {
  color: #e5edf8 !important;
}

html[data-theme="dark"] :where(.public-shell, .admin-shell, .auth-bg) :where(h1, h2, h3, h4) {
  color: #f8fafc !important;
}

html[data-theme="dark"] :where(.public-shell, .admin-shell, .auth-bg) :where(p, .small, .hint, small, label) {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] :where(.public-shell, .admin-shell, .auth-bg) :where(input, select, textarea) {
  background: rgba(15, 23, 42, 0.94) !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.44) !important;
}

/* Visual system width density polish 2026-08-06: wider canvas, cleaner hierarchy and safer cards. */
.public-shell .container,
.public-nav,
.public-footer {
  width: min(95vw, 1840px) !important;
  max-width: 1840px !important;
  margin-inline: auto !important;
}

.public-shell :where(.home-hero, .home-hero-product, .hero-home, .public-section, .public-card, .pricing-band, .service-table-band, .sector-catalog-band, .home-band, .home-cta) {
  width: min(95vw, 1840px) !important;
  max-width: 1840px !important;
  margin-inline: auto !important;
  overflow: visible !important;
}

.admin-shell :where(.admin-panel, .business-section, .content-card, .table-card, .form-card, .dashboard-panel, .client-next-panel, .client-work-route-panel, .work-route-today-panel) {
  width: min(96vw, 1900px) !important;
  max-width: 1900px !important;
  margin-inline: auto !important;
}

.public-shell :where(.home-hero-product h1, .hero-home h1, .section-heading h1, .section-heading :is(h2), .public-hero h1),
.admin-shell :where(.admin-heading h1, .section-heading h1, .section-heading :is(h2)) {
  max-width: 15ch !important;
  font-size: clamp(2.35rem, 5.2vw, 5.15rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.058em !important;
}

.public-shell :where(.section-heading :is(p), .home-hero p, .hero-home p, .hero-copy p),
.admin-shell :where(.admin-heading p, .section-heading :is(p), .panel-intro, .form-intro) {
  max-width: 70ch !important;
  font-size: clamp(1rem, 1.08vw, 1.12rem) !important;
  line-height: 1.58 !important;
}

.public-shell :where(.hero-actions, .public-actions, .form-actions, .pricing-actions, .sector-card-actions),
.admin-shell :where(.form-actions, .inline-actions, .table-actions, .customer-row-actions, .work-order-row-actions) {
  gap: clamp(0.55rem, 1vw, 0.9rem) !important;
}

.public-shell .sector-card-visual-sale > h3,
.public-shell .pricing-card h3 {
  max-width: 100% !important;
  font-size: clamp(1.35rem, 1.8vw, 2rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.034em !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.public-shell .sector-card-visual-sale > p:not(.eyebrow):not(.sector-card-price) {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  max-width: 48ch !important;
}

.public-shell .sector-card-demo-link,
.public-shell .sector-card .btn {
  width: fit-content !important;
  min-width: 8.2rem !important;
  min-height: 42px !important;
  padding: 0.62rem 1rem !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #1746a2, #2563eb) !important;
  color: #ffffff !important;
  border: 1px solid #1746a2 !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22) !important;
}

.public-shell .service-table-band .pricing-card {
  min-height: 100% !important;
  display: grid !important;
  align-content: start !important;
  gap: clamp(0.65rem, 1vw, 0.9rem) !important;
}

.public-shell .service-table-band .pricing-card.plan-highlight,
.public-shell .service-table-band .pricing-card.is-highlight {
  transform: translateY(-0.9rem) !important;
  border-color: rgba(23, 70, 162, 0.72) !important;
  box-shadow: 0 30px 70px rgba(23, 70, 162, 0.18) !important;
}

.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions, .work-order-row-actions) :where(.btn, .btn-outline, button) {
  min-height: 40px !important;
  padding: 0.58rem 0.82rem !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

@media (min-width: 1180px) {
  .public-shell :where(.home-hero-product, .hero-home, .home-hero) {
    grid-template-columns: minmax(0, 1.02fr) minmax(28rem, 0.82fr) !important;
    gap: clamp(2rem, 4vw, 5.25rem) !important;
  }
}

@media (max-width: 820px) {
  .public-shell :where(.home-hero-product h1, .hero-home h1, .section-heading h1, .section-heading :is(h2), .public-hero h1),
  .admin-shell :where(.admin-heading h1, .section-heading h1, .section-heading :is(h2)) {
    max-width: 100% !important;
    font-size: clamp(2.05rem, 10vw, 3.45rem) !important;
    letter-spacing: -0.052em !important;
  }

  .public-shell .service-table-band .pricing-card.plan-highlight,
  .public-shell .service-table-band .pricing-card.is-highlight {
    transform: none !important;
  }
}

/* Visual system width density final seal 2026-08-06: final public width layer stays after legacy heading limits. */

/* Admin list workbench polish 2026-08-06: private tables read as daily work queues. */
.admin-shell :where(.table-wrap) {
  border: 1px solid rgba(147, 197, 253, 0.46) !important;
  border-radius: 1.15rem !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(191, 219, 254, 0.22), transparent 18rem) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.065) !important;
  padding: clamp(0.42rem, 0.8vw, 0.68rem) !important;
}

.admin-shell :where(.table-wrap table) {
  min-width: 100% !important;
}

.admin-shell :where(.table-wrap thead th) {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
  color: #123a86 !important;
  border-bottom: 1px solid rgba(37, 99, 235, 0.18) !important;
}

.admin-shell :where(.table-wrap tbody tr) {
  transition: transform 140ms ease, box-shadow 140ms ease !important;
}

.admin-shell :where(.table-wrap tbody td) {
  background: rgba(255, 255, 255, 0.96) !important;
  border-block: 1px solid rgba(226, 232, 240, 0.92) !important;
}

.admin-shell :where(.table-wrap tbody tr:hover td, .table-wrap tbody tr:focus-within td) {
  background: #f8fbff !important;
  box-shadow: inset 0 0 0 999px rgba(37, 99, 235, 0.035) !important;
}

.admin-shell :where(.table-wrap tbody td:first-child) {
  border-left: 3px solid rgba(37, 99, 235, 0.58) !important;
  font-weight: 900 !important;
  color: #0f2f6f !important;
}

.admin-shell :where(.status-badge, .badge, .pill) {
  white-space: nowrap !important;
  line-height: 1.15 !important;
}

.admin-shell :where(.document-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .customer-row-actions, .delivery-note-row-actions) {
  align-items: center !important;
  gap: 0.42rem !important;
  padding: 0.42rem !important;
  border-radius: 1rem !important;
  background: rgba(239, 246, 255, 0.7) !important;
}

.admin-shell :where(.document-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .customer-row-actions, .delivery-note-row-actions) :where(form) {
  margin: 0 !important;
}

.admin-shell :where(.document-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .customer-row-actions, .delivery-note-row-actions) :where(.btn, .btn-outline, button, select) {
  min-height: 38px !important;
  font-size: 0.84rem !important;
}

html[data-theme="dark"] .admin-shell :where(.table-wrap) {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.88)) !important;
  border-color: rgba(96, 165, 250, 0.36) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .admin-shell :where(.table-wrap thead th) {
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.78), rgba(30, 41, 59, 0.98)) !important;
  color: #dbeafe !important;
}

html[data-theme="dark"] .admin-shell :where(.table-wrap tbody td) {
  background: rgba(15, 23, 42, 0.88) !important;
  border-block-color: rgba(51, 65, 85, 0.82) !important;
}

html[data-theme="dark"] .admin-shell :where(.table-wrap tbody td:first-child) {
  color: #bfdbfe !important;
}

html[data-theme="dark"] .admin-shell :where(.document-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .customer-row-actions, .delivery-note-row-actions) {
  background: rgba(30, 64, 175, 0.18) !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.table-wrap) {
    padding: 0.35rem !important;
    border-radius: 0.98rem !important;
  }

  .admin-shell :where(.document-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .customer-row-actions, .delivery-note-row-actions) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(7.25rem, 1fr)) !important;
  }

  .admin-shell :where(.document-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .customer-row-actions, .delivery-note-row-actions) :where(.btn, .btn-outline, button, select) {
    width: 100% !important;
  }
}

/* Admin form workbench density 2026-08-06: cleaner forms and filters without changing fields. */
.admin-shell :where(.grid-two-form, .business-form, .filter-form, .support-filter-form) {
  gap: clamp(0.72rem, 1.15vw, 1rem) !important;
  align-items: end !important;
}

.admin-shell :where(.grid-two-form.business-form, .business-form:not(.quote-cycle-form)) > label,
.admin-shell :where(.grid-two-form.business-form, .business-form:not(.quote-cycle-form)) > .form-field,
.admin-shell :where(.grid-two-form.business-form, .business-form:not(.quote-cycle-form)) > fieldset {
  min-width: 0 !important;
  padding: clamp(0.72rem, 1vw, 0.95rem) !important;
  border: 1px solid rgba(147, 197, 253, 0.42) !important;
  border-radius: 1rem !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92)) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055) !important;
}

.admin-shell :where(.filter-form, .support-filter-form) {
  padding: clamp(0.78rem, 1.2vw, 1.05rem) !important;
  border: 1px solid rgba(147, 197, 253, 0.46) !important;
  border-radius: 1.1rem !important;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.88), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.1), transparent 18rem) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 14px 34px rgba(15, 23, 42, 0.06) !important;
}

.admin-shell :where(.filter-form, .support-filter-form) > label {
  min-width: 0 !important;
}

.admin-shell :where(.grid-two-form, .business-form, .filter-form, .support-filter-form) :where(input, select, textarea) {
  width: 100% !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
}

.admin-shell :where(.grid-two-form, .business-form, .filter-form, .support-filter-form) :where(label, legend) {
  font-size: 0.92rem !important;
  letter-spacing: -0.012em !important;
}

.admin-shell :where(.grid-two-form, .business-form, .filter-form, .support-filter-form) :where(.hint, .small, small) {
  margin-top: 0.24rem !important;
  font-size: 0.86rem !important;
  line-height: 1.35 !important;
}

.admin-shell :where(.form-actions.full, .form-actions) {
  gap: 0.62rem !important;
  align-items: center !important;
}

.admin-shell :where(.form-actions.full) {
  grid-column: 1 / -1 !important;
  padding-top: 0.45rem !important;
  border-top: 1px solid rgba(147, 197, 253, 0.34) !important;
}

.admin-shell :where(.form-actions.full) :where(button, .btn, .btn-outline) {
  min-width: min(100%, 12rem) !important;
}

html[data-theme="dark"] .admin-shell :where(.grid-two-form.business-form, .business-form:not(.quote-cycle-form)) > label,
html[data-theme="dark"] .admin-shell :where(.grid-two-form.business-form, .business-form:not(.quote-cycle-form)) > .form-field,
html[data-theme="dark"] .admin-shell :where(.grid-two-form.business-form, .business-form:not(.quote-cycle-form)) > fieldset,
html[data-theme="dark"] .admin-shell :where(.filter-form, .support-filter-form) {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.86)) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.grid-two-form.business-form, .business-form:not(.quote-cycle-form)) > label,
  .admin-shell :where(.grid-two-form.business-form, .business-form:not(.quote-cycle-form)) > .form-field,
  .admin-shell :where(.grid-two-form.business-form, .business-form:not(.quote-cycle-form)) > fieldset,
  .admin-shell :where(.filter-form, .support-filter-form) {
    padding: 0.72rem !important;
    border-radius: 0.92rem !important;
  }

  .admin-shell :where(.form-actions.full, .form-actions) {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .admin-shell :where(.form-actions.full) :where(button, .btn, .btn-outline) {
    width: 100% !important;
  }
}

/* Public navigation product polish 2026-08-06: clean white header, readable chips and safer menus. */
.public-nav {
  min-height: 4.25rem !important;
  padding: clamp(0.52rem, 1vw, 0.82rem) clamp(0.72rem, 1.4vw, 1.15rem) !important;
  border: 1px solid rgba(147, 197, 253, 0.5) !important;
  border-radius: 0 0 1.35rem 1.35rem !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.075) !important;
  backdrop-filter: blur(18px) !important;
}

.public-nav :where(.brand, .public-brand, .nav-brand) {
  min-width: 0 !important;
  color: #07142f !important;
}

.public-nav :where(.brand img, .public-brand img, .nav-brand img, .logo, .brand-mark) {
  flex: 0 0 auto !important;
  filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.14)) !important;
}

.public-nav :where(.public-menu, .nav-menu, .menu, .public-nav-links) {
  gap: clamp(0.35rem, 0.7vw, 0.68rem) !important;
  align-items: center !important;
}

.public-nav :where(.public-menu-link, .nav-link, .menu-link, .public-menu-trigger, summary, button) {
  min-height: 42px !important;
  padding: 0.58rem 0.78rem !important;
  border: 1px solid rgba(147, 197, 253, 0.58) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffffff, #f3f8ff) !important;
  color: #102f6f !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055) !important;
  font-weight: 850 !important;
  letter-spacing: -0.012em !important;
  white-space: nowrap !important;
}

.public-nav :where(.public-menu-link:hover, .public-menu-link:focus-visible, .nav-link:hover, .nav-link:focus-visible, .menu-link:hover, .menu-link:focus-visible, .public-menu-trigger:hover, .public-menu-trigger:focus-visible, summary:hover, summary:focus-visible, button:hover, button:focus-visible) {
  background: linear-gradient(135deg, #1746a2, #2563eb) !important;
  color: #ffffff !important;
  border-color: #1746a2 !important;
  outline: 3px solid rgba(37, 99, 235, 0.22) !important;
  outline-offset: 0.16rem !important;
}

.public-shell :where(.public-menu-panel, .mega-menu, .nav-dropdown, .dropdown-menu) {
  width: min(95vw, 68rem) !important;
  max-width: calc(100vw - 1.25rem) !important;
  border: 1px solid rgba(147, 197, 253, 0.58) !important;
  border-radius: 1.28rem !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(239, 246, 255, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.1), transparent 20rem) !important;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16) !important;
  padding: clamp(0.82rem, 1.4vw, 1.2rem) !important;
  overflow: visible !important;
}

.public-shell :where(.public-menu-panel a, .mega-menu a, .nav-dropdown a, .dropdown-menu a) {
  border-radius: 0.9rem !important;
  color: #102f6f !important;
  text-decoration: none !important;
}

.public-shell :where(.public-menu-panel a:hover, .public-menu-panel a:focus-visible, .mega-menu a:hover, .mega-menu a:focus-visible, .nav-dropdown a:hover, .nav-dropdown a:focus-visible, .dropdown-menu a:hover, .dropdown-menu a:focus-visible) {
  background: rgba(219, 234, 254, 0.78) !important;
  color: #07142f !important;
}

.public-nav :where(.language-switcher, .public-language-switcher, .lang-switcher) :where(a, button) {
  min-width: 2.65rem !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
}

html[data-theme="dark"] .public-nav {
  background: rgba(15, 23, 42, 0.98) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .public-nav :where(.public-menu-link, .nav-link, .menu-link, .public-menu-trigger, summary, button) {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98)) !important;
  color: #dbeafe !important;
  border-color: rgba(96, 165, 250, 0.38) !important;
}

html[data-theme="dark"] .public-shell :where(.public-menu-panel, .mega-menu, .nav-dropdown, .dropdown-menu) {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94)) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
}

html[data-theme="dark"] .public-shell :where(.public-menu-panel a, .mega-menu a, .nav-dropdown a, .dropdown-menu a) {
  color: #dbeafe !important;
}

@media (max-width: 760px) {
  .public-nav {
    width: min(96vw, 100%) !important;
    min-height: 3.8rem !important;
    border-radius: 0 0 1rem 1rem !important;
  }

  .public-shell :where(.public-menu-panel, .mega-menu, .nav-dropdown, .dropdown-menu) {
    width: min(96vw, 100%) !important;
    max-height: calc(100dvh - 5.25rem) !important;
    overflow: auto !important;
    padding: 0.72rem !important;
  }

  .public-nav :where(.public-menu-link, .nav-link, .menu-link, .public-menu-trigger, summary, button) {
    min-height: 44px !important;
    padding-inline: 0.7rem !important;
  }
}
/* Visual typography and spacing polish 2026-08-06 */
.public-shell,
.admin-shell {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.public-shell :where(h1, h2, h3),
.admin-shell :where(h1, h2, h3) {
  color: #07142f;
  line-height: 0.98 !important;
  letter-spacing: -0.052em;
  text-wrap: balance !important;
}

.public-shell :where(p, li, small),
.admin-shell :where(p, li, small, td, th) {
  line-height: 1.58 !important;
}

.public-shell :where(.public-section, .hero, .hero-home, .home-band, .home-cta),
.admin-shell :where(.admin-panel, .metric-card, .business-card, .card, .table-wrap) {
  border-color: rgba(147, 197, 253, 0.56) !important;
  border-radius: clamp(1rem, 1.25vw, 1.45rem) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.065) !important;
}

.public-shell :where(.public-section, .hero, .hero-home) {
  padding: clamp(1.5rem, 3.3vw, 3.6rem) !important;
}

.admin-shell :where(.admin-panel, .metric-card, .business-card, .card) {
  padding: clamp(1rem, 1.35vw, 1.55rem) !important;
}

.public-shell .hero-home h1,
.public-shell .home-hero h1 {
  max-width: min(13ch, 100%) !important;
  font-size: clamp(2.35rem, 4.9vw, 4.85rem) !important;
}

.public-shell :where(.section-heading, .page-heading, .panel-heading),
.admin-shell :where(.page-heading, .panel-heading, .admin-heading) {
  gap: clamp(0.55rem, 1vw, 1rem) !important;
  margin-bottom: clamp(1rem, 1.8vw, 1.75rem) !important;
}

.public-shell :where(.btn, button),
.admin-shell :where(.btn, button) {
  min-height: 46px !important;
  border-radius: 999px !important;
  font-weight: 850 !important;
  letter-spacing: -0.012em;
}

.public-shell :where(.btn-outline, .secondary, a.btn-outline),
.admin-shell :where(.btn-outline, .secondary, a.btn-outline) {
  color: #174ea6 !important;
  background: #ffffff !important;
  border: 1px solid #93c5fd !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 24px rgba(37, 99, 235, 0.075) !important;
}

.public-shell :where(.btn-outline:hover, .btn-outline:focus-visible, .secondary:hover, .secondary:focus-visible),
.admin-shell :where(.btn-outline:hover, .btn-outline:focus-visible, .secondary:hover, .secondary:focus-visible) {
  color: #0f3d8f !important;
  background: #eff6ff !important;
  border-color: #60a5fa !important;
}

.public-shell :where(.badge, .status-badge, .pill, .tag),
.admin-shell :where(.badge, .status-badge, .pill, .tag) {
  font-weight: 850 !important;
  letter-spacing: 0.012em !important;
}

.admin-shell :where(table th) {
  color: #233b5d !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.055em !important;
}

.admin-shell :where(table td) {
  color: #13233a !important;
  vertical-align: middle !important;
}

html[data-theme="dark"] .public-shell :where(h1, h2, h3),
html[data-theme="dark"] .admin-shell :where(h1, h2, h3),
html[data-theme="dark"] .admin-shell :where(table td) {
  color: #f8fafc !important;
}

@media (max-width: 760px) {
  .public-shell :where(.public-section, .hero, .hero-home),
  .admin-shell :where(.admin-panel, .metric-card, .business-card, .card) {
    padding: clamp(1rem, 5vw, 1.35rem) !important;
  }

  .public-shell .hero-home h1,
  .public-shell .home-hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.8rem) !important;
    line-height: 0.96 !important;
  }

  .public-shell :where(.btn, .btn-outline, button),
  .admin-shell :where(.btn, .btn-outline, button) {
    min-height: 48px !important;
  }
}
/* Admin workspace rhythm polish 2026-08-06: private pages need a coherent work surface. */
.admin-shell :where(.admin-main, main) {
  width: min(96vw, 1900px) !important;
  margin-inline: auto !important;
}

.admin-shell :where(.admin-heading, .page-heading, .section-heading, .panel-heading) {
  align-items: end !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: clamp(0.85rem, 1.5vw, 1.35rem) !important;
  padding: clamp(0.9rem, 1.55vw, 1.45rem) 0 clamp(0.7rem, 1.2vw, 1rem) !important;
  border-bottom: 1px solid rgba(147, 197, 253, 0.34) !important;
}

.admin-shell :where(.admin-heading h1, .page-heading h1, .section-heading :is(h2), .panel-heading h2) {
  max-width: min(100%, 22ch) !important;
  font-size: clamp(1.65rem, 2.35vw, 2.65rem) !important;
  line-height: 1.02 !important;
}

.admin-shell :where(.admin-heading p, .page-heading p, .section-heading :is(p), .panel-heading p) {
  max-width: 58rem !important;
  color: #51657f !important;
  font-size: clamp(0.92rem, 0.95vw, 1rem) !important;
}

.admin-shell :where(.admin-tabs, .page-tabs, .section-tabs, .admin-subnav, .tab-list, .account-tabs) {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.55rem !important;
  padding: 0.55rem !important;
  border: 1px solid rgba(147, 197, 253, 0.48) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06) !important;
}

.admin-shell :where(.admin-tabs a, .page-tabs a, .section-tabs a, .admin-subnav a, .tab-list a, .account-tabs a, .tab-link) {
  align-items: center !important;
  display: inline-flex !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0.62rem 0.95rem !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: #174ea6 !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.admin-shell :where(.admin-tabs a[aria-current="page"], .page-tabs a[aria-current="page"], .section-tabs a[aria-current="page"], .admin-subnav a[aria-current="page"], .tab-list a[aria-current="page"], .account-tabs a[aria-current="page"], .tab-link.is-active, .tab-link.active) {
  color: #ffffff !important;
  background: linear-gradient(135deg, #15803d, #166534) !important;
  border-color: #15803d !important;
  box-shadow: 0 10px 24px rgba(22, 101, 52, 0.2) !important;
}

.admin-shell :where(.result-count, .delivery-note-result-count, .work-order-result-count, .support-result-count) {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 2.35rem !important;
  padding: 0.5rem 0.75rem !important;
  border: 1px solid rgba(147, 197, 253, 0.42) !important;
  border-radius: 999px !important;
  background: #f8fbff !important;
  color: #334155 !important;
  font-weight: 750 !important;
}

.admin-shell :where(.admin-actions, .panel-actions, .document-toolbar, .table-actions, .inline-actions) {
  gap: 0.58rem !important;
}

.admin-shell :where(.admin-actions .btn, .panel-actions .btn, .document-toolbar .btn, .table-actions .btn, .inline-actions .btn, .admin-actions button, .panel-actions button, .table-actions button, .inline-actions button) {
  min-width: 0 !important;
  min-height: 42px !important;
  padding-inline: 0.88rem !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-heading, .page-heading, .section-heading, .panel-heading) {
  border-bottom-color: rgba(96, 165, 250, 0.32) !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-heading p, .page-heading p, .section-heading :is(p), .panel-heading p) {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-tabs, .page-tabs, .section-tabs, .admin-subnav, .tab-list, .account-tabs),
html[data-theme="dark"] .admin-shell :where(.result-count, .delivery-note-result-count, .work-order-result-count, .support-result-count) {
  border-color: rgba(96, 165, 250, 0.34) !important;
  background: rgba(15, 23, 42, 0.88) !important;
  color: #dbeafe !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.admin-heading, .page-heading, .section-heading, .panel-heading) {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    padding-top: 0.75rem !important;
  }

  .admin-shell :where(.admin-tabs, .page-tabs, .section-tabs, .admin-subnav, .tab-list, .account-tabs) {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    border-radius: 1rem !important;
    scroll-snap-type: x proximity !important;
  }

  .admin-shell :where(.admin-tabs a, .page-tabs a, .section-tabs a, .admin-subnav a, .tab-list a, .account-tabs a, .tab-link) {
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
  }

  .admin-shell :where(.result-count, .delivery-note-result-count, .work-order-result-count, .support-result-count) {
    width: 100% !important;
    border-radius: 0.95rem !important;
  }
}

/* Visual system width density final seal 2026-08-06: remains after admin workspace rhythm polish for no clipping guards. */

/* Admin action hierarchy polish 2026-08-07: row actions should read as grouped decisions, not button noise. */
.admin-shell :where(.quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) {
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.45rem !important;
  border: 1px solid rgba(147, 197, 253, 0.42) !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9)) !important;
}

.admin-shell :where(.quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) :where(.btn, button, select, summary) {
  min-height: 2.55rem !important;
  border-radius: 0.82rem !important;
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  line-height: 1.12 !important;
  box-shadow: none !important;
}

.admin-shell :where(.quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) :where(a[href^="tel:"], a[href^="mailto:"], a[href^="https://wa.me/"]) {
  color: #174ea6 !important;
  background: #eff6ff !important;
  border-color: #93c5fd !important;
}

.admin-shell :where(.quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) :where(a[href^="tel:"], a[href^="mailto:"], a[href^="https://wa.me/"]):hover,
.admin-shell :where(.quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) :where(a[href^="tel:"], a[href^="mailto:"], a[href^="https://wa.me/"]):focus-visible {
  color: #0f3d8f !important;
  background: #dbeafe !important;
  border-color: #60a5fa !important;
}

.admin-shell :where(.quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) :where(form, details) {
  margin: 0 !important;
  min-width: 0 !important;
}

.admin-shell :where(.quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) :where(button.danger, .danger) {
  color: #991b1b !important;
  background: #fee2e2 !important;
  border-color: #fecaca !important;
}

html[data-theme="dark"] .admin-shell :where(.quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) {
  border-color: rgba(96, 165, 250, 0.34) !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.84)) !important;
}

html[data-theme="dark"] .admin-shell :where(.quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) :where(a[href^="tel:"], a[href^="mailto:"], a[href^="https://wa.me/"]) {
  color: #dbeafe !important;
  background: rgba(37, 99, 235, 0.18) !important;
  border-color: rgba(147, 197, 253, 0.36) !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(7.35rem, 1fr)) !important;
    width: 100% !important;
    padding: 0.55rem !important;
  }

  .admin-shell :where(.quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) :where(.btn, button, select, summary, form, details) {
    width: 100% !important;
  }
}

/* Visual system width density final seal 2026-08-06: remains after admin action hierarchy polish for no clipping guards. */

/* Visual fine finish rhythm 2026-08-07: typography, spacing, buttons and cards must feel deliberate. */
.public-shell :where(.container, .public-nav, .public-footer),
.admin-shell :where(.admin-main, main) {
  width: min(95vw, 1840px) !important;
}

.public-shell :where(.public-section, .hero-home, .hero, .public-panel),
.admin-shell :where(.admin-panel, .metric-card, .business-card, .card, .table-wrap) {
  border-color: rgba(147, 197, 253, 0.5) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07) !important;
}

.public-shell :where(.section-heading, .admin-heading, .page-heading),
.admin-shell :where(.section-heading, .admin-heading, .page-heading, .panel-heading) {
  row-gap: 0.42rem !important;
}

.public-shell :where(h1, h2),
.admin-shell :where(h1, h2) {
  letter-spacing: -0.055em !important;
  overflow-wrap: anywhere !important;
  text-wrap: balance !important;
}

.public-shell :where(h3, h4, .card-title, .business-card h3),
.admin-shell :where(h3, h4, .card-title, .business-card h3) {
  letter-spacing: -0.026em !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere !important;
}

.public-shell :where(p, li, td, th, label, input, select, textarea),
.admin-shell :where(p, li, td, th, label, input, select, textarea) {
  line-height: 1.5 !important;
}

.public-shell :where(.btn, .btn-outline, button, input[type="submit"]),
.admin-shell :where(.btn, .btn-outline, button, input[type="submit"]) {
  align-items: center !important;
  display: inline-flex !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 0.72rem 1.12rem !important;
  text-align: center !important;
  text-decoration: none !important;
}

.public-shell :where(.btn:not(.btn-outline), button:not(.secondary):not(.btn-outline), input[type="submit"]),
.admin-shell :where(.btn:not(.btn-outline), button:not(.secondary):not(.btn-outline), input[type="submit"]) {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  border-color: #1d4ed8 !important;
}

.public-shell :where(.btn-outline, .secondary, a.btn-outline),
.admin-shell :where(.btn-outline, .secondary, a.btn-outline) {
  color: #123b7a !important;
  background: #ffffff !important;
  border-color: #93c5fd !important;
}

.public-shell :where(.card, .business-card, .metric-card, .sector-card, .pricing-card, .plan-card),
.admin-shell :where(.card, .business-card, .metric-card, .admin-panel, .summary-card) {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

.public-shell :where(.sector-card, .module-card, .pricing-card, .plan-card) :where(.btn, .btn-outline),
.admin-shell :where(.dashboard-command-card, .business-card, .metric-card) :where(.btn, .btn-outline) {
  width: fit-content !important;
  max-width: 100% !important;
}

.public-shell :where(.hero-actions, .cta-actions, .plan-primary-actions, .form-actions),
.admin-shell :where(.admin-actions, .panel-actions, .form-actions, .document-toolbar) {
  align-items: stretch !important;
  gap: clamp(0.55rem, 1vw, 0.9rem) !important;
}

.admin-shell :where(.filter-form, .support-filter-form, .business-form) {
  row-gap: clamp(0.72rem, 1.1vw, 1rem) !important;
}

.admin-shell :where(table) {
  border-collapse: separate !important;
}

.admin-shell :where(table td, table th) {
  padding-block: 0.88rem !important;
}

html[data-theme="dark"] .public-shell :where(.public-section, .hero-home, .hero, .public-panel),
html[data-theme="dark"] .admin-shell :where(.admin-panel, .metric-card, .business-card, .card, .table-wrap) {
  border-color: rgba(96, 165, 250, 0.32) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24) !important;
}

@media (max-width: 760px) {
  .public-shell :where(.container, .public-nav, .public-footer),
  .admin-shell :where(.admin-main, main) {
    width: min(94vw, 100%) !important;
  }

  .public-shell :where(.btn, .btn-outline, button, input[type="submit"]),
  .admin-shell :where(.btn, .btn-outline, button, input[type="submit"]) {
    min-height: 48px !important;
    width: 100% !important;
  }

  .public-shell :where(.hero-actions, .cta-actions, .plan-primary-actions, .form-actions),
  .admin-shell :where(.admin-actions, .panel-actions, .form-actions, .document-toolbar) {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .admin-shell :where(table td, table th) {
    padding-inline: 0.82rem !important;
  }
}

/* Visual fine finish final seal 2026-08-07: keep width, rhythm, contrast and anti-clipping together. */

/* Mobile action comfort polish 2026-08-07: action groups need room, focus and scanability on phones. */
@media (max-width: 760px) {
  .admin-shell :where(.inline-actions, .table-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) {
    gap: 0.62rem !important;
    border-radius: 1.05rem !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 28px rgba(15, 23, 42, 0.07) !important;
  }

  .admin-shell :where(.inline-actions, .table-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) :where(.btn, button, select, summary) {
    min-height: 46px !important;
    padding-inline: 0.72rem !important;
    white-space: normal !important;
    text-wrap: balance !important;
  }

  .admin-shell :where(.dashboard-command-card, .supplier-command-card, .invoice-command-card, .quote-command-card, .work-order-command-card, .delivery-note-command-card) {
    min-height: 7.25rem !important;
    padding: 0.95rem !important;
  }

  .admin-shell :where(.dashboard-command-card, .supplier-command-card, .invoice-command-card, .quote-command-card, .work-order-command-card, .delivery-note-command-card) strong {
    line-height: 1.08 !important;
  }

  .admin-shell :where(.dashboard-command-card, .supplier-command-card, .invoice-command-card, .quote-command-card, .work-order-command-card, .delivery-note-command-card) small {
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
  }
}

.admin-shell :where(.inline-actions, .table-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) :where(.btn, button, select, summary):focus-visible,
.admin-shell :where(.dashboard-command-card, .supplier-command-card, .invoice-command-card, .quote-command-card, .work-order-command-card, .delivery-note-command-card):focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28) !important;
  outline-offset: 0.18rem !important;
}

html[data-theme="dark"] .admin-shell :where(.inline-actions, .table-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions, .customer-row-actions, .supplier-row-actions, .message-row-actions) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 28px rgba(0, 0, 0, 0.24) !important;
}

/* Mobile action comfort final seal 2026-08-07: row actions and command cards stay readable on phone. */

/* Professional spacing, rhythm and contrast guard 2026-08-07 */
:root {
  --ui-readable-text: #10233d;
  --ui-strong-text: #06152f;
  --ui-muted-text: #405a78;
  --ui-action: #1d4ed8;
  --ui-action-hover: #173fba;
  --ui-action-text: #ffffff;
  --ui-action-soft: #eaf2ff;
  --ui-action-border: #9ec5fe;
  --ui-focus-ring: #2563eb;
  --ui-panel-padding: clamp(1rem, 1.55vw, 1.45rem);
  --ui-section-padding: clamp(1.35rem, 2.3vw, 2.15rem);
  --ui-card-gap: clamp(0.85rem, 1.35vw, 1.2rem);
  --ui-title-line: 1.04;
  --ui-copy-line: 1.52;
}

html {
  font-size: clamp(15px, 0.92vw, 16px) !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  color: var(--ui-readable-text) !important;
  line-height: var(--ui-copy-line) !important;
}

.public-shell .container,
.public-nav,
.public-footer {
  width: min(95vw, 1720px) !important;
  max-width: none !important;
}

.admin-shell :is(.admin-main, main, .admin-layout) {
  width: min(96vw, 1780px) !important;
  max-width: none !important;
}

:is(.admin-shell, .public-shell, .auth-bg) :is(h1, h2, h3, h4, .page-title, .section-title) {
  color: var(--ui-strong-text) !important;
  line-height: var(--ui-title-line) !important;
  letter-spacing: -0.042em !important;
  text-wrap: balance;
}

:is(.admin-shell, .public-shell, .auth-bg) h1 {
  font-size: clamp(2.4rem, 5.8vw, 5.85rem) !important;
}

.public-shell :is(.hero-home h1, .home-hero h1, .home-hero-product h1) {
  max-width: 13.5ch !important;
}

:is(.admin-shell, .public-shell, .auth-bg) h2 {
  font-size: clamp(1.75rem, 3.4vw, 3.7rem) !important;
}

:is(.admin-shell, .public-shell, .auth-bg) h3 {
  font-size: clamp(1.08rem, 1.45vw, 1.55rem) !important;
}

:is(.admin-shell, .public-shell, .auth-bg) :is(p, li, dd, td, label, input, select, textarea, button, .btn, .btn-outline, .btn-small) {
  line-height: var(--ui-copy-line) !important;
}

:is(.admin-shell, .public-shell, .auth-bg) :is(p, li, dd, td) {
  color: var(--ui-muted-text) !important;
}

:is(.admin-shell, .public-shell, .auth-bg) :is(strong, b, th, h1, h2, h3, h4) {
  color: var(--ui-strong-text) !important;
}

:is(.admin-shell, .public-shell, .auth-bg) :is(.eyebrow, .kicker, .metric-label, .card-label, .form-hint strong) {
  color: #1746b3 !important;
  letter-spacing: 0.075em !important;
}

:is(.admin-shell, .public-shell) :is(.public-section, .home-band, .admin-panel, .business-card, .metric-card, .form-card, .card, .pricing-card, .sector-card, .home-sector-card, .module-card, .feature-card, .public-card, .checkout-card, .contact-form, .table-wrap, .table-wrapper, .admin-table-wrapper) {
  padding: var(--ui-panel-padding) !important;
  border-color: #c7dcff !important;
  border-radius: 1rem !important;
  box-shadow: 0 14px 34px rgba(30, 64, 175, 0.08) !important;
}

.public-shell :is(.public-section, .home-band) {
  padding: var(--ui-section-padding) !important;
  overflow: clip !important;
}

.public-shell .section-heading {
  gap: 0.65rem !important;
  margin-bottom: clamp(1rem, 1.8vw, 1.55rem) !important;
}

.public-shell .section-heading :is(h2, p) {
  max-width: none !important;
}

:is(.admin-shell, .public-shell) :is(.feature-grid, .cards-grid, .metrics-grid, .sector-grid, .home-sector-grid, .pricing-grid, .command-strip, .quick-action-grid, .admin-actions, .panel-actions) {
  gap: var(--ui-card-gap) !important;
}

.public-shell :is(.sector-card, .home-sector-card, .feature-card, .public-card, .pricing-card) {
  min-height: auto !important;
}

.public-shell :is(.sector-card, .home-sector-card) :is(p, .sector-card-copy, .home-sector-card-copy) {
  max-width: 44rem !important;
}

:is(.admin-shell, .public-shell, .auth-bg) :is(.btn, button[type="submit"], .btn-small, .primary-action, .button-primary) {
  min-height: 2.75rem !important;
  padding: 0.72rem 1.08rem !important;
  color: var(--ui-action-text) !important;
  background: linear-gradient(135deg, var(--ui-action), #2f6fed) !important;
  border: 1px solid var(--ui-action) !important;
  border-radius: 0.85rem !important;
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.2) !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}

:is(.admin-shell, .public-shell, .auth-bg) :is(.btn, button[type="submit"], .btn-small, .primary-action, .button-primary):hover,
:is(.admin-shell, .public-shell, .auth-bg) :is(.btn, button[type="submit"], .btn-small, .primary-action, .button-primary):focus-visible {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--ui-action-hover), #245fe0) !important;
  border-color: var(--ui-action-hover) !important;
  box-shadow: 0 16px 34px rgba(23, 63, 186, 0.28) !important;
}

:is(.admin-shell, .public-shell, .auth-bg) :is(.btn-outline, .secondary-action) {
  min-height: 2.75rem !important;
  padding: 0.7rem 1.05rem !important;
  color: #123178 !important;
  background: #ffffff !important;
  border: 1px solid var(--ui-action-border) !important;
  border-radius: 0.85rem !important;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.08) !important;
  font-weight: 820 !important;
}

:is(.admin-shell, .public-shell, .auth-bg) :is(.btn-outline, .secondary-action):hover,
:is(.admin-shell, .public-shell, .auth-bg) :is(.btn-outline, .secondary-action):focus-visible {
  color: #0f2f78 !important;
  background: var(--ui-action-soft) !important;
  border-color: #6ea8fe !important;
}

:is(.admin-shell, .public-shell, .auth-bg) :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--ui-focus-ring) !important;
  outline-offset: 3px !important;
}

:is(.admin-shell, .public-shell, .auth-bg) :is(input, select, textarea) {
  min-height: 2.75rem !important;
  color: var(--ui-readable-text) !important;
  background: #ffffff !important;
  border: 1px solid #b9cbed !important;
  border-radius: 0.75rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

:is(.admin-shell, .public-shell, .auth-bg) :is(input, select, textarea)::placeholder {
  color: #627894 !important;
  opacity: 1 !important;
}

:is(.admin-shell, .public-shell) table {
  font-size: 0.94rem !important;
  line-height: 1.42 !important;
}

:is(.admin-shell, .public-shell) th {
  color: #0f2f68 !important;
  background: #eef5ff !important;
  letter-spacing: 0.06em !important;
}

:is(.admin-shell, .public-shell) td {
  color: #263f5d !important;
}

@media (max-width: 760px) {
  html {
    font-size: 15px !important;
  }

  :is(.admin-shell, .public-shell, .auth-bg) h1 {
    font-size: clamp(2.15rem, 11.5vw, 3.75rem) !important;
    letter-spacing: -0.052em !important;
  }

  .public-shell .container,
  .public-nav,
  .public-footer,
  .admin-shell :is(.admin-main, main, .admin-layout) {
    width: min(94vw, 100%) !important;
  }

  .public-shell :is(.public-section, .home-band),
  .admin-shell :is(.admin-panel, .business-card, .metric-card, .form-card, .card) {
    padding: 1rem !important;
    border-radius: 0.95rem !important;
  }

  :is(.admin-shell, .public-shell, .auth-bg) :is(.btn, .btn-outline, button[type="submit"], .btn-small, .primary-action, .secondary-action) {
    width: 100%;
    justify-content: center !important;
    min-height: 2.9rem !important;
  }
}

html[data-theme="dark"] :is(.admin-shell, .public-shell, .auth-bg) {
  --ui-readable-text: #e5edf9;
  --ui-strong-text: #f8fbff;
  --ui-muted-text: #c7d2e5;
  --ui-action-soft: #10234a;
  color: var(--ui-readable-text) !important;
}

html[data-theme="dark"] :is(.admin-shell, .public-shell, .auth-bg) :is(.card, .admin-panel, .business-card, .metric-card, .form-card, .public-card, .pricing-card, .sector-card, .home-sector-card, .module-card, .feature-card, .checkout-card, .contact-form, .table-wrap, .table-wrapper) {
  background: #0f172a !important;
  border-color: rgba(147, 197, 253, 0.32) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36) !important;
}

html[data-theme="dark"] :is(.admin-shell, .public-shell, .auth-bg) :is(input, select, textarea, .btn-outline, .secondary-action) {
  color: #e5edf9 !important;
  background: #101a2e !important;
  border-color: rgba(147, 197, 253, 0.42) !important;
}

@media (forced-colors: active) {
  :is(.admin-shell, .public-shell, .auth-bg) :is(.btn, .btn-outline, button[type="submit"], .btn-small, .card, .admin-panel, .public-card, .sector-card) {
    color: ButtonText !important;
    background: ButtonFace !important;
    border: 2px solid ButtonText !important;
    box-shadow: none !important;
  }
}

/* Admin row action chips professional rhythm 2026-08-07 */
.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) {
  align-items: center !important;
  gap: 0.42rem !important;
  max-width: 100% !important;
}

.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) :is(.btn, .btn-outline, button, a) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 100% !important;
  min-height: 2.42rem !important;
  padding: 0.54rem 0.82rem !important;
  border-radius: 999px !important;
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.18 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-wrap: nowrap !important;
  white-space: nowrap !important;
}

.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) :is(a[href^="tel:"], a[href^="mailto:"], a[href*="maps/search"], a[href*="wa.me"]) {
  color: #0f2f68 !important;
  background: #eef6ff !important;
  border: 1px solid #b8d4ff !important;
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.08) !important;
}

.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) :is(a[href^="tel:"], a[href^="mailto:"], a[href*="maps/search"], a[href*="wa.me"]):hover,
.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) :is(a[href^="tel:"], a[href^="mailto:"], a[href*="maps/search"], a[href*="wa.me"]):focus-visible {
  color: #ffffff !important;
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) :is(select, input[type="date"], input[type="search"]) {
  min-height: 2.42rem !important;
  border-radius: 999px !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)) !important;
    width: 100% !important;
  }

  .admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) :is(.btn, .btn-outline, button, a, select) {
    width: 100% !important;
    min-height: 2.85rem !important;
    text-wrap: balance !important;
    white-space: normal !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) :is(a[href^="tel:"], a[href^="mailto:"], a[href*="maps/search"], a[href*="wa.me"]) {
  color: #dbeafe !important;
  background: #10234a !important;
  border-color: rgba(147, 197, 253, 0.42) !important;
}

/* Admin form field rhythm clarity guard 2026-08-07 */
.admin-shell :where(form, .business-form, .filter-form, .grid-two-form, .admin-form, .form-grid) {
  gap: clamp(0.72rem, 1.1vw, 1rem) !important;
}

.admin-shell :where(.form-row, .form-field, .field-group, .input-group, .control-group) {
  min-width: 0 !important;
}

.admin-shell :where(.form-row, .form-field, .field-group, .input-group, .control-group):focus-within {
  border-color: #93c5fd !important;
}

.admin-shell :where(label, .field-label, .form-label) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.32rem !important;
  margin-bottom: 0.32rem !important;
  color: #0f2f68 !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.01em !important;
}

.admin-shell :where(.form-help, .field-help, .input-help, .help-text, .form-hint, .field-hint, .input-hint, .hint, label + small, input + small, select + small, textarea + small) {
  display: block !important;
  margin-top: 0.32rem !important;
  max-width: 62ch !important;
  color: #4b6381 !important;
  font-size: 0.88rem !important;
  font-weight: 620 !important;
  line-height: 1.36 !important;
}

.admin-shell :where(input, select, textarea):focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16) !important;
}

.admin-shell :where(input[required], select[required], textarea[required]) {
  border-left: 4px solid #2563eb !important;
}

.admin-shell :where(.required-note, .required-fields, .form-required-note) {
  color: #1746b3 !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 0.85rem !important;
  padding: 0.62rem 0.78rem !important;
  font-size: 0.9rem !important;
  font-weight: 750 !important;
}

@media (max-width: 760px) {
  .admin-shell :where(form, .business-form, .filter-form, .grid-two-form, .admin-form, .form-grid) {
    gap: 0.82rem !important;
  }

  .admin-shell :where(label, .field-label, .form-label) {
    font-size: 0.94rem !important;
  }

  .admin-shell :where(.form-help, .field-help, .input-help, .help-text, .form-hint, .field-hint, .input-hint, .hint, label + small, input + small, select + small, textarea + small) {
    max-width: none !important;
    font-size: 0.9rem !important;
  }
}

html[data-theme="dark"] .admin-shell :where(label, .field-label, .form-label) {
  color: #bfdbfe !important;
}

html[data-theme="dark"] .admin-shell :where(.form-help, .field-help, .input-help, .help-text, .form-hint, .field-hint, .input-hint, .hint, label + small, input + small, select + small, textarea + small) {
  color: #c7d2e5 !important;
}

html[data-theme="dark"] .admin-shell :where(.required-note, .required-fields, .form-required-note) {
  color: #dbeafe !important;
  background: #10234a !important;
  border-color: rgba(147, 197, 253, 0.42) !important;
}

/* Public sectors ultra compact decision path 2026-08-26: keep the gremios page scannable above the catalog. */
.public-shell .sector-catalog-primary-next-step {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-block: 0.45rem !important;
  padding: clamp(0.62rem, 1.15vw, 0.88rem) !important;
  border-radius: 0.7rem !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

.public-shell .sector-catalog-primary-next-step h2 {
  max-width: 760px !important;
  margin: 0.04rem 0 0.14rem !important;
  font-size: clamp(1.25rem, 1.85vw, 1.9rem) !important;
  line-height: 1.05 !important;
}

.public-shell .sector-catalog-primary-next-step p {
  max-width: 820px !important;
  font-size: 0.92rem !important;
  line-height: 1.38 !important;
}

.public-shell .sector-catalog-primary-next-step .sector-catalog-proof {
  gap: 0.32rem !important;
  margin-top: 0.38rem !important;
}

.public-shell .sector-catalog-primary-next-step .sector-catalog-proof span {
  min-height: 1.55rem !important;
  padding: 0.16rem 0.46rem !important;
  font-size: 0.76rem !important;
}

.public-shell .sector-catalog-primary-actions {
  gap: 0.42rem !important;
  flex-wrap: nowrap !important;
}

.public-shell .sector-catalog-primary-actions .btn,
.public-shell .sector-catalog-primary-actions .btn-outline {
  min-height: 2.35rem !important;
  padding: 0.48rem 0.72rem !important;
  white-space: nowrap !important;
}

.public-shell .sector-secondary-detail:not([open]) {
  margin-block: 0.34rem !important;
  padding: 0 !important;
  border-radius: 0.66rem !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045) !important;
}

.public-shell .sector-secondary-detail:not([open]) .sector-secondary-summary {
  grid-template-columns: minmax(7.5rem, 0.3fr) minmax(0, 1fr) auto !important;
  min-height: 0 !important;
  gap: 0.36rem 0.65rem !important;
  padding: 0.58rem 0.72rem !important;
}

.public-shell .sector-secondary-summary::after {
  width: 1.8rem !important;
  height: 1.8rem !important;
  font-size: 1.05rem !important;
}

.public-shell .sector-secondary-detail:not([open]) .sector-secondary-summary h2 {
  font-size: clamp(1.05rem, 1.35vw, 1.42rem) !important;
  line-height: 1.05 !important;
}

.public-shell .sector-secondary-detail:not([open]) .sector-secondary-summary .eyebrow {
  font-size: 0.68rem !important;
}

.public-shell .sector-secondary-detail:not([open]) .sector-secondary-summary > p:last-child:not(.eyebrow) {
  margin: 0 !important;
  font-size: 0.84rem !important;
  line-height: 1.28 !important;
}

.public-shell .sector-secondary-detail[open] .sector-secondary-summary,
.public-shell .sector-secondary-detail[open] .sector-secondary-detail-body {
  padding: 0.75rem !important;
}

.public-shell .sector-secondary-detail[open] .sector-secondary-detail-body {
  gap: 0.7rem !important;
}

.public-shell .sector-secondary-detail[open] :where(.sector-instant-grid, .instant-module-list, .sector-proof-grid) {
  gap: 0.55rem !important;
}

.public-shell .sector-secondary-detail[open] :where(.sector-instant-grid article, .instant-module-list a, .sector-proof-grid article) {
  padding: 0.68rem !important;
}

.public-shell .sector-catalog-results-band {
  margin-top: 0.48rem !important;
  padding: clamp(0.72rem, 1.25vw, 1rem) !important;
}

.public-shell .sector-catalog-results-band > .section-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr) !important;
  align-items: end !important;
  gap: 0.45rem 0.8rem !important;
  margin-bottom: 0.48rem !important;
}

.public-shell .sector-catalog-results-band > .section-heading .eyebrow {
  grid-column: 1 / -1 !important;
}

.public-shell .sector-catalog-results-band > .section-heading > h2,
.public-shell .sector-catalog-results-band #sector-search-title {
  font-size: clamp(1.35rem, 1.95vw, 2.1rem) !important;
  line-height: 1.03 !important;
}

.public-shell .sector-catalog-results-band > .section-heading > p {
  margin: 0 !important;
  font-size: 0.92rem !important;
  line-height: 1.36 !important;
}

.public-shell .sector-catalog-results-band .sector-search-band {
  gap: 0.45rem !important;
  padding: clamp(0.6rem, 1.05vw, 0.85rem) !important;
  border-radius: 0.7rem !important;
}

.public-shell .sector-catalog-results-band .sector-search-band > .section-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.55rem !important;
}

.public-shell .sector-catalog-results-band .sector-search-band > .section-heading .eyebrow {
  margin: 0 !important;
  font-size: 0.68rem !important;
}

.public-shell .sector-catalog-results-band .sector-search-form {
  grid-template-columns: minmax(13rem, 1.25fr) minmax(11rem, 0.72fr) auto auto !important;
  gap: 0.44rem !important;
  align-items: end !important;
}

.public-shell .sector-catalog-results-band .sector-search-form :where(input, select, button, .btn) {
  min-height: 2.38rem !important;
  padding-block: 0.42rem !important;
  border-radius: 0.62rem !important;
}

.public-shell .sector-catalog-results-band :where(.sector-group-shortcuts, .sector-filter-chips) {
  gap: 0.28rem !important;
  padding-bottom: 0.08rem !important;
}

.public-shell .sector-catalog-results-band :where(.sector-group-shortcuts, .sector-filter-chips) a {
  min-height: 1.85rem !important;
  padding: 0.28rem 0.48rem !important;
  font-size: 0.78rem !important;
}

.public-shell .sector-catalog-results-band .sector-result-summary {
  font-size: 0.84rem !important;
  line-height: 1.3 !important;
}

@media (max-width: 900px) {
  .public-shell .sector-catalog-primary-next-step,
  .public-shell .sector-catalog-results-band > .section-heading,
  .public-shell .sector-catalog-results-band .sector-search-form {
    grid-template-columns: 1fr !important;
  }

  .public-shell .sector-catalog-primary-actions {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 760px) {
  .public-shell .sector-secondary-detail:not([open]) .sector-secondary-summary {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .public-shell .sector-secondary-detail:not([open]) .sector-secondary-summary .eyebrow,
  .public-shell .sector-secondary-detail:not([open]) .sector-secondary-summary > p:last-child:not(.eyebrow) {
    grid-column: 1 / -1 !important;
  }
}

/* Public CTA hierarchy and card density guard 2026-08-07 */
.public-shell :where(.hero-actions, .plan-primary-actions, .signup-primary-actions, .checkout-actions, .public-cta-row, .public-card-actions, .sector-card-actions) {
  align-items: stretch !important;
  gap: 0.72rem !important;
}

.public-shell :where(.hero-actions, .plan-primary-actions, .signup-primary-actions, .checkout-actions, .public-cta-row) :is(.btn, .btn-outline, .btn-small) {
  min-height: 3rem !important;
  padding: 0.78rem 1.15rem !important;
  border-radius: 0.95rem !important;
  font-size: 0.98rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.015em !important;
}

.public-shell :where(.hero-actions, .plan-primary-actions, .signup-primary-actions, .checkout-actions, .public-cta-row) .btn:first-child {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 18px 38px rgba(29, 78, 216, 0.24) !important;
}

.public-shell :where(.hero-actions, .plan-primary-actions, .signup-primary-actions, .checkout-actions, .public-cta-row) .btn-outline,
.public-shell :where(.hero-actions, .plan-primary-actions, .signup-primary-actions, .checkout-actions, .public-cta-row) .btn:nth-child(n+2) {
  color: #123178 !important;
  background: #ffffff !important;
  border: 1px solid #8bb8ff !important;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.1) !important;
}

.public-shell :where(.hero-actions, .plan-primary-actions, .signup-primary-actions, .checkout-actions, .public-cta-row) .btn-outline:hover,
.public-shell :where(.hero-actions, .plan-primary-actions, .signup-primary-actions, .checkout-actions, .public-cta-row) .btn-outline:focus-visible,
.public-shell :where(.hero-actions, .plan-primary-actions, .signup-primary-actions, .checkout-actions, .public-cta-row) .btn:nth-child(n+2):hover,
.public-shell :where(.hero-actions, .plan-primary-actions, .signup-primary-actions, .checkout-actions, .public-cta-row) .btn:nth-child(n+2):focus-visible {
  color: #0f2f78 !important;
  background: #eef6ff !important;
  border-color: #5f9dff !important;
}

.public-shell :where(.feature-card, .public-card, .pricing-card, .sector-card, .home-sector-card, .plan-card, .signup-card, .checkout-card) {
  display: grid !important;
  align-content: start !important;
  gap: 0.78rem !important;
  min-width: 0 !important;
}

.public-shell :where(.feature-card, .public-card, .pricing-card, .sector-card, .home-sector-card, .plan-card, .signup-card, .checkout-card) :is(h3, p) {
  margin-block: 0 !important;
}

.public-shell :where(.feature-card, .public-card, .pricing-card, .sector-card, .home-sector-card, .plan-card, .signup-card, .checkout-card) :is(.btn, .btn-outline, .btn-small) {
  align-self: end !important;
  width: fit-content !important;
  max-width: 100% !important;
}

@media (max-width: 760px) {
  .public-shell :where(.hero-actions, .plan-primary-actions, .signup-primary-actions, .checkout-actions, .public-cta-row, .public-card-actions, .sector-card-actions) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .public-shell :where(.feature-card, .public-card, .pricing-card, .sector-card, .home-sector-card, .plan-card, .signup-card, .checkout-card) :is(.btn, .btn-outline, .btn-small) {
    width: 100% !important;
  }
}

/* Admin empty state professional decision polish 2026-08-07 */
.admin-shell .admin-empty-state {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: clamp(0.9rem, 1.6vw, 1.35rem) !important;
  padding: clamp(1rem, 1.6vw, 1.35rem) !important;
  color: #10233d !important;
  background: linear-gradient(135deg, #ffffff, #eef6ff) !important;
  border: 1px solid #bfdbfe !important;
  border-left: 5px solid #2563eb !important;
  border-radius: 1rem !important;
  box-shadow: 0 14px 34px rgba(30, 64, 175, 0.1) !important;
}

.admin-shell .admin-empty-state::before {
  width: 2.45rem !important;
  height: 2.45rem !important;
  color: #1d4ed8 !important;
  background: #dbeafe !important;
  border: 1px solid #93c5fd !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

.admin-shell .admin-empty-state :is(h2, h3, strong) {
  color: #06152f !important;
  letter-spacing: -0.028em !important;
}

.admin-shell .admin-empty-state :is(p, small) {
  max-width: 68ch !important;
  color: #405a78 !important;
  line-height: 1.42 !important;
}

.admin-shell .admin-empty-state .admin-empty-state-actions,
.admin-shell .dashboard-empty-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 0.55rem !important;
  min-width: min(100%, 18rem) !important;
}

.admin-shell .admin-empty-state .admin-empty-state-actions :is(.btn, .btn-outline, button, a),
.admin-shell .dashboard-empty-actions :is(.btn, .btn-outline, button, a) {
  min-height: 2.75rem !important;
  border-radius: 999px !important;
  font-weight: 850 !important;
}

@media (max-width: 760px) {
  .admin-shell .admin-empty-state {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  .admin-shell .admin-empty-state .admin-empty-state-actions,
  .admin-shell .dashboard-empty-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

html[data-theme="dark"] .admin-shell .admin-empty-state {
  color: #e5edf9 !important;
  background: linear-gradient(135deg, #0f172a, #10234a) !important;
  border-color: rgba(147, 197, 253, 0.42) !important;
  border-left-color: #60a5fa !important;
}

html[data-theme="dark"] .admin-shell .admin-empty-state :is(h2, h3, strong) {
  color: #f8fbff !important;
}

html[data-theme="dark"] .admin-shell .admin-empty-state :is(p, small) {
  color: #c7d2e5 !important;
}

/* Feedback message professional clarity guard 2026-08-07 */
:where(.admin-shell, .public-shell, .auth-bg) :where(.alert, .notice, .flash, .flash-message, .form-error, .error, .success, .warning, .alert-warning, .notice-warning, [role="alert"], [role="status"]) {
  position: relative !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 0.68rem !important;
  max-width: 100% !important;
  margin-block: 0.85rem !important;
  padding: 0.86rem 1rem !important;
  border-radius: 0.95rem !important;
  border-width: 1px !important;
  border-style: solid !important;
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.08) !important;
  font-size: 0.95rem !important;
  font-weight: 720 !important;
  line-height: 1.42 !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(.alert, .notice, .flash, .flash-message, .form-error, .error, .success, .warning, .alert-warning, .notice-warning, [role="alert"], [role="status"])::before {
  content: "" !important;
  width: 0.72rem !important;
  height: 0.72rem !important;
  margin-top: 0.34rem !important;
  border-radius: 999px !important;
  background: currentColor !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent) !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(.success, .alert.success, .notice.success, [role="status"]) {
  color: #065f46 !important;
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(.error, .alert.danger, .notice.danger, .flash-error, .form-error, [role="alert"]) {
  color: #991b1b !important;
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(.warning, .alert-warning, .notice-warning) {
  color: #713f12 !important;
  background: #fffbeb !important;
  border-color: #fde68a !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(.error-list) {
  display: grid !important;
  gap: 0.38rem !important;
  margin-block: 0.55rem 0 !important;
  padding-left: 1.15rem !important;
}

@media (max-width: 760px) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(.alert, .notice, .flash, .flash-message, .form-error, .error, .success, .warning, .alert-warning, .notice-warning, [role="alert"], [role="status"]) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.5rem !important;
    padding: 0.82rem 0.9rem !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) :where(.alert, .notice, .flash, .flash-message, .form-error, .error, .success, .warning, .alert-warning, .notice-warning, [role="alert"], [role="status"])::before {
    width: 2.2rem !important;
    height: 0.22rem !important;
    margin-top: 0 !important;
    border-radius: 999px !important;
  }
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where(.success, .alert.success, .notice.success, [role="status"]) {
  color: #bbf7d0 !important;
  background: #052e2b !important;
  border-color: rgba(94, 234, 212, 0.42) !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where(.error, .alert.danger, .notice.danger, .flash-error, .form-error, [role="alert"]) {
  color: #fecdd3 !important;
  background: #3f1116 !important;
  border-color: rgba(251, 113, 133, 0.46) !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where(.warning, .alert-warning, .notice-warning) {
  color: #fde68a !important;
  background: #39270a !important;
  border-color: rgba(253, 230, 138, 0.42) !important;
}

/* Choice control professional option panels 2026-08-07 */
:where(.admin-shell, .public-shell, .auth-bg) :where(label:has(input[type="checkbox"]), label:has(input[type="radio"])) {
  gap: 0.62rem !important;
  padding: 0.62rem 0.78rem !important;
  color: #10233d !important;
  background: #ffffff !important;
  border: 1px solid #c7dcff !important;
  border-radius: 0.85rem !important;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.06) !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(label:has(input[type="checkbox"]), label:has(input[type="radio"])):hover,
:where(.admin-shell, .public-shell, .auth-bg) :where(label:has(input[type="checkbox"]), label:has(input[type="radio"])):focus-within {
  color: #0f2f68 !important;
  background: #eef6ff !important;
  border-color: #93c5fd !important;
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.12) !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(input[type="checkbox"], input[type="radio"]) {
  flex: 0 0 auto !important;
  margin: 0 !important;
  border-color: #93c5fd !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(input[type="checkbox"]:checked, input[type="radio"]:checked) {
  accent-color: #1d4ed8 !important;
}

:where(.admin-shell, .public-shell, .auth-bg) select {
  appearance: auto !important;
  padding-right: 2.4rem !important;
  font-weight: 760 !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(.choice-list, .options-list, .checkbox-list, .radio-list) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)) !important;
  gap: 0.55rem !important;
}

@media (max-width: 760px) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(label:has(input[type="checkbox"]), label:has(input[type="radio"])) {
    width: 100% !important;
    min-height: 3.08rem !important;
    padding: 0.72rem 0.85rem !important;
  }

  :where(.admin-shell, .public-shell, .auth-bg) :where(.choice-list, .options-list, .checkbox-list, .radio-list) {
    grid-template-columns: 1fr !important;
  }
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where(label:has(input[type="checkbox"]), label:has(input[type="radio"])) {
  color: #e5edf9 !important;
  background: #101a2e !important;
  border-color: rgba(147, 197, 253, 0.42) !important;
}

html[data-theme="dark"] :where(.admin-shell, .public-shell, .auth-bg) :where(label:has(input[type="checkbox"]), label:has(input[type="radio"]):hover, label:has(input[type="checkbox"]):focus-within, label:has(input[type="radio"]):focus-within) {
  color: #f8fbff !important;
  background: #10234a !important;
  border-color: rgba(147, 197, 253, 0.72) !important;
}

/* Busy state professional progress guard 2026-08-07 */
:where(.admin-shell, .public-shell, .auth-bg) :where([aria-busy="true"], .is-loading, .loading, .is-submitting, form[data-loading="true"]) {
  isolation: isolate !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small)[aria-busy="true"],
:where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).is-loading,
:where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).loading,
:where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).is-submitting {
  position: relative !important;
  gap: 0.58rem !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #1e40af, #2563eb) !important;
  border-color: #1e40af !important;
  opacity: 0.94 !important;
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.22) !important;
}

:where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small)[aria-busy="true"]::before,
:where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).is-loading::before,
:where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).loading::before,
:where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).is-submitting::before {
  content: "" !important;
  display: inline-block !important;
  inline-size: 1rem !important;
  block-size: 1rem !important;
  flex: 0 0 auto !important;
  border: 2px solid rgba(255, 255, 255, 0.72) !important;
  border-right-color: transparent !important;
  border-radius: 999px !important;
}

:where(.admin-shell, .public-shell, .auth-bg) form[data-loading="true"] {
  border-color: #93c5fd !important;
  background-image: linear-gradient(90deg, rgba(219, 234, 254, 0.46), transparent) !important;
}

@media (prefers-reduced-motion: no-preference) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small)[aria-busy="true"]::before,
  :where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).is-loading::before,
  :where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).loading::before,
  :where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).is-submitting::before {
    animation: mantivo-busy-spin 0.8s linear infinite !important;
  }
}

@media (max-width: 760px) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small)[aria-busy="true"],
  :where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).is-loading,
  :where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).loading,
  :where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).is-submitting {
    min-height: 3rem !important;
    justify-content: center !important;
  }
}

@media (forced-colors: active) {
  :where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small)[aria-busy="true"]::before,
  :where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).is-loading::before,
  :where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).loading::before,
  :where(.admin-shell, .public-shell, .auth-bg) :where(button, .btn, .btn-outline, .btn-small).is-submitting::before {
    border: 2px solid Highlight !important;
    border-right-color: Canvas !important;
  }
}

/* Disabled and readonly professional clarity guard 2026-08-07 */
:where(.admin-shell, .auth-bg) :where(button, .btn, .btn-small, input[type="submit"]):disabled,
:where(.admin-shell, .auth-bg) :where(button, .btn, .btn-small)[aria-disabled="true"],
:where(.admin-shell, .auth-bg) :where(.is-disabled, .btn-disabled) {
  position: relative !important;
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  background:
    repeating-linear-gradient(135deg, rgba(148, 163, 184, 0.16) 0 1px, transparent 1px 8px),
    #e8edf5 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
  filter: saturate(0.86) !important;
}

:where(.admin-shell, .auth-bg) :where(button, .btn, .btn-small)[aria-disabled="true"]::after,
:where(.admin-shell, .auth-bg) :where(.is-disabled, .btn-disabled)::after {
  content: "No disponible" !important;
  margin-left: 0.42rem !important;
  padding: 0.12rem 0.36rem !important;
  color: #334155 !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
}

:where(.admin-shell, .auth-bg) :where(input:not([type="submit"]), textarea, select)[readonly],
:where(.admin-shell, .auth-bg) :where(input:not([type="submit"]), textarea, select):disabled {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  cursor: not-allowed !important;
}

:where(.admin-shell, .auth-bg) :where(input:not([type="submit"]), textarea, select)[readonly]:focus,
:where(.admin-shell, .auth-bg) :where(input:not([type="submit"]), textarea, select):disabled:focus {
  outline: 3px solid rgba(100, 116, 139, 0.28) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  :where(.admin-shell, .auth-bg) :where(button, .btn, .btn-small, input[type="submit"]):disabled,
  :where(.admin-shell, .auth-bg) :where(button, .btn, .btn-small)[aria-disabled="true"],
  :where(.admin-shell, .auth-bg) :where(.is-disabled, .btn-disabled) {
    min-height: 2.9rem !important;
    justify-content: center !important;
  }
}

html[data-theme="dark"] :where(.admin-shell, .auth-bg) :where(button, .btn, .btn-small, input[type="submit"]):disabled,
html[data-theme="dark"] :where(.admin-shell, .auth-bg) :where(button, .btn, .btn-small)[aria-disabled="true"],
html[data-theme="dark"] :where(.admin-shell, .auth-bg) :where(.is-disabled, .btn-disabled) {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
  background:
    repeating-linear-gradient(135deg, rgba(148, 163, 184, 0.14) 0 1px, transparent 1px 8px),
    #1e293b !important;
  border-color: rgba(148, 163, 184, 0.44) !important;
}

html[data-theme="dark"] :where(.admin-shell, .auth-bg) :where(input:not([type="submit"]), textarea, select)[readonly],
html[data-theme="dark"] :where(.admin-shell, .auth-bg) :where(input:not([type="submit"]), textarea, select):disabled {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
  background: #111827 !important;
  border-color: rgba(148, 163, 184, 0.42) !important;
}

/* Horizontal table scroll mobile cue 2026-08-07: wide tables must not look broken on phones. */
:is(.admin-shell, .public-shell) :is(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive) {
  position: relative !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-gutter: stable both-edges !important;
  overscroll-behavior-x: contain !important;
}

@media (max-width: 760px) {
  :is(.admin-shell, .public-shell) :is(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive)::after {
    content: "Desliza para ver mas" !important;
    position: sticky !important;
    right: 0.65rem !important;
    bottom: 0.65rem !important;
    display: inline-flex !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-top: 0.45rem !important;
    padding: 0.32rem 0.62rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 999px !important;
    background: rgba(239, 246, 255, 0.96) !important;
    color: #0f2f68 !important;
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.14) !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    pointer-events: none !important;
    z-index: 6 !important;
  }

  :is(.admin-shell, .public-shell) :is(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive) {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom)) !important;
  }
}

@media print, (forced-colors: active) {
  :is(.admin-shell, .public-shell) :is(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive)::after {
    content: none !important;
  }
}

html[data-theme="dark"] :is(.admin-shell, .public-shell) :is(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive)::after {
  border-color: rgba(147, 197, 253, 0.42) !important;
  background: rgba(15, 23, 42, 0.94) !important;
  color: #dbeafe !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34) !important;
}

/* Visual micro rhythm polish 2026-08-07: tighten spacing, contrast and touch rhythm without changing flows. */
:is(.public-shell, .admin-shell, .auth-bg) :is(h1, h2, h3, .page-title, .section-title, .admin-heading h1, .admin-heading h2) {
  letter-spacing: -0.035em !important;
  line-height: 1.02 !important;
  text-wrap: balance !important;
}

:is(.public-shell, .admin-shell, .auth-bg) :is(p, li, td, th, label, small, .muted, .help-text, .form-hint, .eyebrow) {
  line-height: 1.5 !important;
}

:is(.public-shell, .admin-shell, .auth-bg) :is(.public-section, .home-band, .admin-panel, .business-card, .metric-card, .form-card, .card, .pricing-card, .sector-card, .home-sector-card, .module-card, .feature-card, .public-card, .checkout-card, .contact-form) {
  padding: clamp(1rem, 1.45vw, 1.45rem) !important;
}

:is(.public-shell, .admin-shell, .auth-bg) :is(.actions, .form-actions, .admin-actions, .inline-actions, .table-actions, .dashboard-empty-actions, .public-cta-row, .hero-actions, .button-row) {
  gap: clamp(0.52rem, 0.75vw, 0.78rem) !important;
}

:is(.public-shell, .admin-shell, .auth-bg) :is(a, button, .btn, .btn-small, summary, input, select, textarea):focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3) !important;
  outline-offset: 0.16rem !important;
}

:is(.public-shell, .admin-shell, .auth-bg) :is(button, .btn, .btn-outline, .btn-small, input[type="submit"], input[type="button"]) {
  min-height: 2.75rem !important;
  align-items: center !important;
  justify-content: center !important;
}

:is(.public-shell, .admin-shell, .auth-bg) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea) {
  min-height: 2.75rem !important;
}

@media (max-width: 760px) {
  :is(.public-shell, .admin-shell, .auth-bg) :is(button, .btn, .btn-outline, .btn-small, input[type="submit"], input[type="button"], input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height: 3rem !important;
  }

  :is(.public-shell, .admin-shell, .auth-bg) :is(.public-section, .home-band, .admin-panel, .business-card, .metric-card, .form-card, .card, .pricing-card, .sector-card, .home-sector-card, .module-card, .feature-card, .public-card, .checkout-card, .contact-form) {
    padding: clamp(0.88rem, 4vw, 1.12rem) !important;
  }
}

html[data-theme="dark"] :is(.public-shell, .admin-shell, .auth-bg) :is(a, button, .btn, .btn-small, summary, input, select, textarea):focus-visible {
  outline-color: rgba(147, 197, 253, 0.46) !important;
}

/* Visual micro rhythm final seal 2026-08-07 */

/* Admin secondary copy compression final 2026-08-07: actions stay visible before long explanations. */
.admin-shell :where(.admin-heading p:not(.eyebrow), .admin-panel > p:not(.eyebrow):not(.result-count), .document-card > p:not(.eyebrow), .hint, .small) {
  max-width: 62ch !important;
  color: #475569 !important;
  font-size: clamp(0.88rem, 0.84rem + 0.12vw, 0.96rem) !important;
  line-height: 1.38 !important;
  margin-block: 0.18rem 0.55rem !important;
}

.admin-shell :where(.admin-empty-state p, .dashboard-empty-actions p, .business-card > p, .metric-card > p) {
  max-width: 62ch !important;
  color: #475569 !important;
  font-size: clamp(0.88rem, 0.84rem + 0.12vw, 0.96rem) !important;
  line-height: 1.38 !important;
}

.admin-shell :where(.admin-heading, .admin-panel, .admin-empty-state, .business-card, .metric-card) :where(.btn, button, .admin-actions, .form-actions, .inline-actions) {
  margin-top: clamp(0.42rem, 0.7vw, 0.72rem) !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.admin-heading p:not(.eyebrow), .admin-panel > p:not(.eyebrow):not(.result-count), .document-card > p:not(.eyebrow), .admin-empty-state p, .dashboard-empty-actions p, .business-card > p, .metric-card > p, .hint, .small) {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.admin-heading p:not(.eyebrow), .admin-panel > p:not(.eyebrow):not(.result-count), .document-card > p:not(.eyebrow), .hint, .small),
html[data-theme="dark"] .admin-shell :where(.admin-empty-state p, .dashboard-empty-actions p, .business-card > p, .metric-card > p) {
  color: #cbd5e1 !important;
}

/* Admin filter workbench final 2026-08-07: filters must read as quick work controls, not long forms. */
.admin-shell :where(.filter-form, .support-filter-form) {
  gap: clamp(0.6rem, 1vw, 0.9rem) !important;
  padding: clamp(0.8rem, 1.2vw, 1rem) !important;
  border: 1px solid rgba(147, 197, 253, 0.5) !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.8)) !important;
}

.admin-shell :where(.filter-form, .support-filter-form) :where(label, .field-group, .form-field) {
  display: grid !important;
  gap: 0.28rem !important;
  min-width: min(100%, 12rem) !important;
}

.admin-shell :where(.filter-form, .support-filter-form) :where(label > span:first-child, .field-label, legend) {
  color: #31527e !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.055em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

.admin-shell :where(.filter-form, .support-filter-form) :where(input:not([type="checkbox"]):not([type="radio"]), select, button, .btn, .btn-small) {
  width: 100% !important;
  min-height: 2.75rem !important;
}

.admin-shell :where(.filter-form, .support-filter-form) :where(a.btn, .btn-outline, .secondary-action) {
  color: #174ea6 !important;
  background: #ffffff !important;
  border-color: #aac7ff !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.filter-form, .support-filter-form) {
    grid-template-columns: 1fr !important;
    border-radius: 0.92rem !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.filter-form, .support-filter-form) {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9)) !important;
  border-color: rgba(96, 165, 250, 0.36) !important;
}

html[data-theme="dark"] .admin-shell :where(.filter-form, .support-filter-form) :where(label > span:first-child, .field-label, legend) {
  color: #bfdbfe !important;
}

html[data-theme="dark"] .admin-shell :where(.filter-form, .support-filter-form) :where(a.btn, .btn-outline, .secondary-action) {
  color: #dbeafe !important;
  background: #111827 !important;
  border-color: rgba(147, 197, 253, 0.42) !important;
}

/* Public compact card scan final 2026-08-07: public sales cards must scan fast and keep the CTA visible. */
.public-shell :where(.feature-card, .public-card, .home-sector-card, .sector-card, .module-card, .pricing-card, .checkout-card, .contact-card) {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  align-content: start !important;
  gap: clamp(0.55rem, 0.9vw, 0.85rem) !important;
}

.public-shell :where(.feature-card, .public-card, .home-sector-card, .sector-card, .module-card, .pricing-card, .checkout-card, .contact-card) :where(p, li, small, .muted) {
  max-width: 62ch !important;
  margin-block: 0.12rem 0.35rem !important;
}

.public-shell :where(.feature-card, .public-card, .home-sector-card, .sector-card, .module-card, .pricing-card, .checkout-card, .contact-card) :where(.btn, .btn-outline, .btn-small, a.button, button) {
  width: fit-content !important;
  max-width: 100% !important;
  margin-top: auto !important;
  white-space: normal !important;
}

.public-shell :where(.home-sector-card, .sector-card, .module-card, .feature-card) :where(img, picture, .sector-card__media, .sector-media, .card-media, .module-card__media, .feature-card__media) {
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  overflow: hidden !important;
}

@media (max-width: 760px) {
  .public-shell :where(.feature-card, .public-card, .home-sector-card, .sector-card, .module-card, .pricing-card, .checkout-card, .contact-card) {
    grid-template-rows: auto !important;
  }

  .public-shell :where(.feature-card, .public-card, .home-sector-card, .sector-card, .module-card, .pricing-card, .checkout-card, .contact-card) :where(.btn, .btn-outline, .btn-small, a.button, button) {
    width: 100% !important;
  }
}

/* Public pricing comparison polish 2026-08-07: plans must compare by price, fit and action without long reading. */
.public-shell .pricing-card {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  gap: clamp(0.62rem, 0.9vw, 0.9rem) !important;
}

.public-shell .pricing-card.is-featured {
  transform: translateY(-0.75rem) !important;
  border-color: #7fb2ff !important;
  box-shadow: 0 24px 58px rgba(37, 99, 235, 0.16) !important;
}

.public-shell .pricing-card .price {
  color: #071327 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.04em !important;
  line-height: 0.98 !important;
}

.public-shell .pricing-card .pricing-feature-list {
  display: grid !important;
  gap: 0.42rem !important;
  margin-block: 0.15rem 0.35rem !important;
}

.public-shell .pricing-card .pricing-feature-list li {
  display: grid !important;
  grid-template-columns: 1.05rem minmax(0, 1fr) !important;
  gap: 0.38rem !important;
  align-items: start !important;
  line-height: 1.32 !important;
}

.public-shell .pricing-card .pricing-feature-more {
  width: fit-content !important;
  padding: 0.18rem 0.48rem !important;
  color: #174ea6 !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 999px !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
}

.public-shell .pricing-card :where(.btn, .btn-outline, button, a.button) {
  margin-top: auto !important;
}

@media (max-width: 760px) {
  .public-shell .pricing-card.is-featured {
    transform: none !important;
  }
}

html[data-theme="dark"] .public-shell .pricing-card .price {
  color: #f8fafc !important;
}

html[data-theme="dark"] .public-shell .pricing-card .pricing-feature-more {
  color: #dbeafe !important;
  background: rgba(30, 64, 175, 0.32) !important;
  border-color: rgba(147, 197, 253, 0.4) !important;
}

/* Access action hierarchy final 2026-08-07: login actions must look intentional and not like loose links. */
.auth-bg .auth-entry .auth-form-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.68rem !important;
  margin-top: 0.88rem !important;
}

.auth-bg .auth-entry .auth-form-actions :where(button, .btn, input[type="submit"]) {
  width: 100% !important;
  min-height: 2.95rem !important;
  border-radius: 0.85rem !important;
  font-weight: 900 !important;
}

.auth-bg .auth-entry a[href*="restablecer"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: fit-content !important;
  min-height: 2.6rem !important;
  margin-top: 0.45rem !important;
  padding: 0.25rem 0.1rem !important;
  color: #174ea6 !important;
  font-weight: 850 !important;
  text-decoration-thickness: 0.12em !important;
  text-underline-offset: 0.22em !important;
}

.auth-bg .auth-entry .auth-access-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.62rem !important;
  margin-top: 1rem !important;
}

.auth-bg .auth-entry .auth-access-links :where(a, .btn, .btn-outline) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.9rem !important;
  padding-inline: 0.9rem !important;
  border: 1px solid #aac7ff !important;
  border-radius: 0.9rem !important;
  background: #ffffff !important;
  color: #174ea6 !important;
  font-weight: 900 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.auth-bg .auth-password-row .auth-password-toggle {
  min-width: 2.75rem !important;
  min-height: 2.55rem !important;
  border-color: #c7d7ef !important;
  background: #f8fbff !important;
  color: #174ea6 !important;
}

@media (max-width: 760px) {
  .auth-bg .auth-entry .auth-access-links {
    grid-template-columns: 1fr !important;
  }

  .auth-bg .auth-entry a[href*="restablecer"] {
    width: 100% !important;
    justify-content: center !important;
  }
}

html[data-theme="dark"] .auth-bg .auth-entry .auth-access-links :where(a, .btn, .btn-outline),
html[data-theme="dark"] .auth-bg .auth-password-row .auth-password-toggle {
  border-color: rgba(147, 197, 253, 0.42) !important;
  background: #111827 !important;
  color: #dbeafe !important;
}

/* Access contrast and password icon final 2026-08-07: keep the blue panel readable and the auxiliary control compact. */
.auth-bg .auth-product-hero,
.auth-bg .auth-product-hero :where(h1, h2, h3, p, strong, span, small, .brand, .eyebrow) {
  color: #ffffff !important;
}

.auth-bg .auth-product-hero :where(.eyebrow, .auth-protection-note) {
  color: #dbeafe !important;
}

.auth-bg .auth-product-hero .auth-product-copy p:not(.eyebrow) {
  color: #eff6ff !important;
}

.auth-bg .auth-password-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.auth-bg .auth-password-row .auth-password-toggle {
  width: 3rem !important;
  min-width: 3rem !important;
  max-width: 3rem !important;
  min-height: 2.75rem !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid #9db9e8 !important;
  border-radius: 0.78rem !important;
  background: #f8fbff !important;
  color: #174ea6 !important;
  box-shadow: none !important;
}

.auth-bg .auth-password-row .auth-password-toggle:hover {
  border-color: #2563eb !important;
  background: #eaf2ff !important;
  color: #123b82 !important;
}

.auth-bg .auth-password-row .auth-password-toggle:focus-visible {
  outline: 3px solid #2563eb !important;
  outline-offset: 3px !important;
}

.auth-bg .auth-password-icon {
  width: 1.3rem !important;
  height: 1.3rem !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.auth-bg .auth-password-toggle[aria-pressed="true"] .auth-password-icon {
  color: #0f3f91 !important;
  transform: scale(0.94) !important;
}

html[data-theme="dark"] .auth-bg .auth-password-row .auth-password-toggle {
  border-color: #7aa2df !important;
  background: #172554 !important;
  color: #dbeafe !important;
}

/* Admin row action chips touch final 2026-08-07: repeated row actions need consistent touch and focus. */
.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions, .document-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions) {
  gap: clamp(0.42rem, 0.7vw, 0.62rem) !important;
  align-items: center !important;
}

.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions, .document-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions) :where(a, button, .btn, .btn-small, select) {
  min-height: 2.65rem !important;
  max-width: 100% !important;
  border-radius: 999px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions, .document-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions) :where(a, button, .btn, .btn-small):focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24) !important;
  outline-offset: 0.16rem !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08) !important;
}

.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href^="tel:"],
.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href^="mailto:"],
.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href*="wa.me"],
.admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href*="maps/search"] {
  border-color: #aac7ff !important;
  background: #eff6ff !important;
  color: #174ea6 !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.inline-actions, .table-actions, .customer-row-actions, .document-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)) !important;
  }

  .admin-shell :where(.inline-actions, .table-actions, .customer-row-actions, .document-actions, .quote-row-actions, .invoice-row-actions, .work-order-row-actions, .delivery-note-row-actions) :where(a, button, .btn, .btn-small, select) {
    width: 100% !important;
    white-space: normal !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href^="tel:"],
html[data-theme="dark"] .admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href^="mailto:"],
html[data-theme="dark"] .admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href*="wa.me"],
html[data-theme="dark"] .admin-shell :where(.inline-actions, .table-actions, .customer-row-actions) a[href*="maps/search"] {
  border-color: rgba(147, 197, 253, 0.42) !important;
  background: rgba(30, 64, 175, 0.26) !important;
  color: #dbeafe !important;
}

/* Visual professional rhythm continuity 2026-08-07: wider, calmer and more legible UI without changing behavior. */
.public-shell .container,
.public-nav,
.public-footer {
  width: min(95vw, 1840px) !important;
  max-width: 1840px !important;
}

.admin-shell :where(.container, .page-shell, .page-container, .dashboard-grid, .dashboard-main, .content-shell, main > .section-card) {
  max-width: min(96vw, 1900px) !important;
}

.public-shell :where(.section-heading, .hero-copy, .hero-content, .public-section > header) {
  max-width: none !important;
}

.public-shell :where(h1, h2),
.admin-shell :where(h1, h2) {
  letter-spacing: -0.042em !important;
  line-height: 1.03 !important;
  text-wrap: balance !important;
}

.public-shell :where(p, li),
.admin-shell :where(p, li, td, th, label, .muted, .eyebrow) {
  line-height: 1.5 !important;
}

.public-shell :where(.public-section, .hero-panel, .section-card, .public-card, .pricing-card, .sector-card, .trade-card),
.admin-shell :where(.section-card, .metric-card, .dashboard-card, .table-wrap, .form-card, .command-strip, .filters-card) {
  border-color: rgba(147, 197, 253, 0.5) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.075) !important;
}

.public-shell :where(.btn, button, input[type="submit"], .public-menu-link, .nav-link),
.admin-shell :where(.btn, button, input[type="submit"], .tab-link, summary) {
  min-height: 2.75rem !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.42rem !important;
  line-height: 1.15 !important;
  text-decoration-thickness: 0.08em !important;
}

.public-shell :where(.btn-primary, .primary, button[type="submit"], input[type="submit"]),
.admin-shell :where(.btn-primary, .primary, button[type="submit"], input[type="submit"]) {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22) !important;
}

.public-shell :where(.btn-outline, .secondary, .ghost, .public-menu-link, .nav-link),
.admin-shell :where(.btn-outline, .secondary, .ghost, .tab-link, summary) {
  border-color: #aac7ff !important;
  color: #174ea6 !important;
  background: #ffffff !important;
}

.public-shell :where(.btn, button, a, summary, input, select, textarea):focus-visible,
.admin-shell :where(.btn, button, a, summary, input, select, textarea):focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28) !important;
  outline-offset: 0.16rem !important;
}

.public-shell :where(.sector-card, .trade-card, .public-card, .pricing-card),
.admin-shell :where(.dashboard-command-card, .supplier-command-card, .invoice-command-card, .quote-command-card, .work-order-command-card, .delivery-note-command-card) {
  overflow: hidden !important;
}

.public-shell :where(.sector-card, .trade-card, .public-card, .pricing-card) :where(h3, p, a, span),
.admin-shell :where(.dashboard-command-card, .supplier-command-card, .invoice-command-card, .quote-command-card, .work-order-command-card, .delivery-note-command-card) :where(h3, p, a, span) {
  overflow-wrap: anywhere !important;
}

@media (min-width: 980px) {
  .public-shell :where(.public-grid, .sector-grid, .trades-grid, .pricing-grid, .feature-grid) {
    gap: clamp(1rem, 1.45vw, 1.7rem) !important;
  }
}

@media (max-width: 760px) {
  .public-shell .container,
  .public-nav,
  .public-footer {
    width: min(94vw, 100%) !important;
  }

  .public-shell :where(h1) {
    font-size: clamp(2.35rem, 13vw, 4rem) !important;
    line-height: 0.98 !important;
  }

  .public-shell :where(.btn, button, input[type="submit"]),
  .admin-shell :where(.btn, button, input[type="submit"]) {
    min-height: 3rem !important;
  }
}

html[data-theme="dark"] .public-shell :where(.public-section, .hero-panel, .section-card, .public-card, .pricing-card, .sector-card, .trade-card),
html[data-theme="dark"] .admin-shell :where(.section-card, .metric-card, .dashboard-card, .table-wrap, .form-card, .command-strip, .filters-card) {
  border-color: rgba(96, 165, 250, 0.34) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .public-shell :where(.btn-outline, .secondary, .ghost, .public-menu-link, .nav-link),
html[data-theme="dark"] .admin-shell :where(.btn-outline, .secondary, .ghost, .tab-link, summary) {
  border-color: rgba(147, 197, 253, 0.42) !important;
  background: #111827 !important;
  color: #dbeafe !important;
}

/* Admin command action rhythm 2026-08-08: private actions must feel dense, sober and touch-safe. */
.admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip, .admin-command-grid) {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.75rem), 1fr)) !important;
  gap: 0.62rem !important;
  align-items: stretch !important;
  padding: 0.62rem !important;
  border: 1px solid #d7e5fb !important;
  border-radius: 8px !important;
  background: #f8fbff !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055) !important;
}

.admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip, .admin-command-grid) > :where(a, button) {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 2.05rem minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 0.68rem !important;
  row-gap: 0.08rem !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 4.35rem !important;
  padding: 0.68rem 0.78rem !important;
  border: 1px solid #cfe0fb !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: none !important;
  overflow: hidden !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
}

.admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip, .admin-command-grid) > :where(a, button)::before {
  content: "" !important;
  grid-row: 1 / span 2 !important;
  width: 2.05rem !important;
  height: 2.05rem !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(96, 165, 250, 0.18)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / 1rem 1rem no-repeat !important;
}

.admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip, .admin-command-grid) > :where(a, button)::after {
  content: none !important;
}

.admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip, .admin-command-grid) > :where(a, button) :where(strong, span):first-child {
  color: #071327 !important;
  font-size: 0.98rem !important;
  font-weight: 850 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere !important;
}

.admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip, .admin-command-grid) > :where(a, button) small {
  color: #506078 !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
  line-height: 1.22 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.admin-shell .dashboard-quick-start {
  padding: 0.82rem !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

.admin-shell .dashboard-quick-start-head {
  gap: 0.72rem !important;
}

.admin-shell .dashboard-quick-start-head h3 {
  font-size: 1.18rem !important;
  line-height: 1.16 !important;
  letter-spacing: 0 !important;
}

.admin-shell .dashboard-quick-start-actions .btn {
  min-height: 2.8rem !important;
  border-radius: 8px !important;
}

.admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip, .admin-command-grid) > :where(a, button):hover,
.admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip, .admin-command-grid) > :where(a, button):focus-visible {
  border-color: #2563eb !important;
  outline: 3px solid rgba(37, 99, 235, 0.22) !important;
  outline-offset: 2px !important;
  transform: none !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip, .admin-command-grid) {
    display: flex !important;
    gap: 0.58rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    padding: 0.58rem !important;
    scroll-padding-inline: 0.58rem !important;
  }

  .admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip, .admin-command-grid) > :where(a, button) {
    flex: 0 0 min(76vw, 19rem) !important;
    min-height: 4.45rem !important;
    scroll-snap-align: start !important;
  }

  .admin-shell .dashboard-quick-start-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip, .admin-command-grid) {
  border-color: rgba(96, 165, 250, 0.36) !important;
  background: #0b1220 !important;
}

html[data-theme="dark"] .admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip, .admin-command-grid) > :where(a, button) {
  border-color: rgba(96, 165, 250, 0.42) !important;
  background: #111827 !important;
  color: #e5efff !important;
}

html[data-theme="dark"] .admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip, .admin-command-grid) > :where(a, button) :where(strong, span):first-child {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell :where(.dashboard-command-strip, .quote-command-strip, .invoice-command-strip, .invoice-start-shortcut-grid, .delivery-note-command-strip, .work-order-command-strip, .customer-command-strip, .supplier-command-strip, .support-command-strip, .message-command-strip, .subscription-command-strip, .account-command-strip, .user-command-strip, .security-command-strip, .trace-command-strip, .admin-command-grid) > :where(a, button) small {
  color: #cbd5e1 !important;
}

/* Admin surface discipline 2026-08-08: private pages must look like a compact work tool. */
.admin-shell :where(.admin-content > .admin-heading, .admin-panel, .table-wrap, .table-wrapper, .admin-table-wrapper, .business-card, .metric-card, .document-card, .form-card, .admin-empty-state) {
  border: 1px solid #d8e3f4 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055) !important;
}

.admin-shell :where(.admin-content > .admin-heading, .admin-panel, .form-card, .admin-empty-state) {
  padding: clamp(0.9rem, 1.45vw, 1.25rem) !important;
}

.admin-shell :where(.admin-heading h1, .admin-heading h2, .section-heading :is(h1, h2), .admin-panel > h2, .admin-panel > h3, .panel-heading h2) {
  max-width: 100% !important;
  margin-block: 0 0.28rem !important;
  color: #071327 !important;
  font-size: clamp(1.22rem, 1.55vw, 1.72rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  text-wrap: balance !important;
}

.admin-shell :where(.admin-heading p:not(.eyebrow), .section-heading :is(p), .panel-heading p, .admin-panel > p:not(.eyebrow):not(.result-count), .admin-empty-state p, .hint, .small) {
  max-width: 72rem !important;
  margin-block: 0.16rem 0 !important;
  color: #536176 !important;
  font-size: 0.93rem !important;
  line-height: 1.42 !important;
  letter-spacing: 0 !important;
}

.admin-shell :where(.admin-panel + .admin-panel, .table-wrap + .admin-panel, .admin-panel + .table-wrap, .metric-row + .admin-panel) {
  margin-top: clamp(0.78rem, 1.4vw, 1.15rem) !important;
}

.admin-shell :where(.filter-form, .support-filter-form, .business-form, .grid-two-form, .quick-form, .form-grid) {
  gap: 0.72rem !important;
  padding: 0.78rem !important;
  border: 1px solid #d8e3f4 !important;
  border-radius: 8px !important;
  background: #f8fbff !important;
  box-shadow: none !important;
}

.admin-shell :where(.filter-form, .support-filter-form, .business-form, .grid-two-form, .quick-form, .form-grid) :where(label, .field-group, .form-field) {
  gap: 0.32rem !important;
}

.admin-shell :where(.filter-form, .support-filter-form, .business-form, .grid-two-form, .quick-form, .form-grid) :where(label > span:first-child, .field-label, legend) {
  color: #263449 !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.02em !important;
}

.admin-shell :where(.filter-form, .support-filter-form, .business-form, .grid-two-form, .quick-form, .form-grid) :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 2.8rem !important;
  border-radius: 8px !important;
  border-color: #c9d8ee !important;
  background: #ffffff !important;
}

.admin-shell .admin-empty-state {
  display: grid !important;
  gap: 0.62rem !important;
  min-height: 0 !important;
}

.admin-shell .admin-empty-state::before {
  display: none !important;
}

.admin-shell .admin-empty-state :where(h2, h3, h4, strong) {
  color: #071327 !important;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem) !important;
  line-height: 1.16 !important;
  letter-spacing: 0 !important;
}

.admin-shell .admin-empty-state .admin-empty-state-actions,
.admin-shell :where(.admin-actions, .panel-actions, .form-actions, .inline-actions) {
  gap: 0.55rem !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.admin-content > .admin-heading, .admin-panel, .table-wrap, .table-wrapper, .admin-table-wrapper, .business-card, .metric-card, .document-card, .form-card, .admin-empty-state) {
    border-radius: 8px !important;
    padding: 0.82rem !important;
  }

  .admin-shell :where(.admin-heading h1, .admin-heading h2, .section-heading :is(h1, h2), .admin-panel > h2, .admin-panel > h3, .panel-heading h2) {
    font-size: clamp(1.12rem, 5.3vw, 1.42rem) !important;
    line-height: 1.14 !important;
  }

  .admin-shell :where(.admin-heading p:not(.eyebrow), .section-heading :is(p), .panel-heading p, .admin-panel > p:not(.eyebrow):not(.result-count), .admin-empty-state p, .hint, .small) {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.admin-content > .admin-heading, .admin-panel, .table-wrap, .table-wrapper, .admin-table-wrapper, .business-card, .metric-card, .document-card, .form-card, .admin-empty-state) {
  border-color: rgba(96, 165, 250, 0.34) !important;
  background: #101827 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24) !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-heading h1, .admin-heading h2, .section-heading :is(h1, h2), .admin-panel > h2, .admin-panel > h3, .panel-heading h2, .admin-empty-state :where(h2, h3, h4, strong)) {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-heading p:not(.eyebrow), .section-heading :is(p), .panel-heading p, .admin-panel > p:not(.eyebrow):not(.result-count), .admin-empty-state p, .hint, .small) {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell :where(.filter-form, .support-filter-form, .business-form, .grid-two-form, .quick-form, .form-grid) {
  border-color: rgba(96, 165, 250, 0.34) !important;
  background: #0b1220 !important;
}

html[data-theme="dark"] .admin-shell :where(.filter-form, .support-filter-form, .business-form, .grid-two-form, .quick-form, .form-grid) :where(label > span:first-child, .field-label, legend) {
  color: #dbeafe !important;
}

/* Admin form action discipline 2026-08-08: forms must be quick to scan and safe to submit on phones. */
.admin-shell :where(form, .business-form, .filter-form, .support-filter-form, .grid-two-form, .quick-form, .form-grid, .admin-form) {
  align-items: start !important;
}

.admin-shell :where(form, .business-form, .filter-form, .support-filter-form, .grid-two-form, .quick-form, .form-grid, .admin-form) :where(label, .field-group, .form-field) {
  min-width: 0 !important;
}

.admin-shell :where(form, .business-form, .filter-form, .support-filter-form, .grid-two-form, .quick-form, .form-grid, .admin-form) :where(label > span:first-child, .field-label, legend) {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 1.15rem !important;
  color: #1f2d42 !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.15 !important;
}

.admin-shell :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100% !important;
  min-height: 2.9rem !important;
  border-radius: 8px !important;
  border-color: #bfd0e8 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 0.95rem !important;
  line-height: 1.25 !important;
}

.admin-shell :where(textarea) {
  min-height: 7rem !important;
  resize: vertical !important;
}

.admin-shell :where(input:focus-visible, select:focus-visible, textarea:focus-visible) {
  border-color: #2563eb !important;
  outline: 3px solid rgba(37, 99, 235, 0.22) !important;
  outline-offset: 2px !important;
}

.admin-shell :where(.form-actions, .admin-actions, .panel-actions, .inline-actions):not(.table-actions) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.55rem !important;
}

.admin-shell :where(.form-actions, .admin-actions, .panel-actions, .inline-actions):not(.table-actions) :where(.btn, button, input[type="submit"], a) {
  min-height: 2.9rem !important;
  border-radius: 8px !important;
  padding-inline: 1rem !important;
  white-space: normal !important;
}

.admin-shell :where(.form-actions, .admin-actions, .panel-actions, .inline-actions):not(.table-actions) :where(button[type="submit"], input[type="submit"], .btn-primary, .btn:not(.btn-outline):first-child) {
  border-color: #1d4ed8 !important;
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18) !important;
}

.admin-shell :where(.form-actions, .admin-actions, .panel-actions, .inline-actions):not(.table-actions) :where(.btn-outline, a.btn-outline, .secondary, .ghost) {
  border-color: #b8cff5 !important;
  background: #ffffff !important;
  color: #174ea6 !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  .admin-shell :where(form, .business-form, .filter-form, .support-filter-form, .grid-two-form, .quick-form, .form-grid, .admin-form) {
    gap: 0.7rem !important;
  }

  .admin-shell :where(.form-actions, .admin-actions, .panel-actions, .inline-actions):not(.table-actions) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .admin-shell :where(.form-actions, .admin-actions, .panel-actions, .inline-actions):not(.table-actions) :where(.btn, button, input[type="submit"], a) {
    width: 100% !important;
    justify-content: center !important;
  }
}

html[data-theme="dark"] .admin-shell :where(form, .business-form, .filter-form, .support-filter-form, .grid-two-form, .quick-form, .form-grid, .admin-form) :where(label > span:first-child, .field-label, legend) {
  color: #dbeafe !important;
}

html[data-theme="dark"] .admin-shell :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: rgba(147, 197, 253, 0.38) !important;
  background: #0f172a !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell :where(.form-actions, .admin-actions, .panel-actions, .inline-actions):not(.table-actions) :where(.btn-outline, a.btn-outline, .secondary, .ghost) {
  border-color: rgba(147, 197, 253, 0.42) !important;
  background: #111827 !important;
  color: #dbeafe !important;
}

/* Admin table workbench discipline 2026-08-08: private tables must scan like operational lists. */
.admin-shell :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive) {
  border: 1px solid #d8e3f4 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055) !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.admin-shell :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive) table {
  min-width: 860px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.admin-shell :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive) :where(thead th) {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  padding: 0.72rem 0.78rem !important;
  border-bottom: 1px solid #d8e3f4 !important;
  background: #f3f7fc !important;
  color: #1f2d42 !important;
  font-size: 0.74rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.035em !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
}

.admin-shell :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive) :where(tbody td) {
  padding: 0.76rem 0.78rem !important;
  border-bottom: 1px solid #e5edf7 !important;
  color: #152238 !important;
  font-size: 0.92rem !important;
  line-height: 1.32 !important;
  vertical-align: top !important;
}

.admin-shell :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive) :where(tbody tr:hover td, tbody tr:focus-within td) {
  background: #f8fbff !important;
}

.admin-shell :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive) :where(tbody td:first-child, thead th:first-child) {
  color: #071327 !important;
  font-weight: 800 !important;
}

.admin-shell :where(.table-actions, .inline-actions, .customer-row-actions) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.42rem !important;
  align-items: center !important;
  max-width: 100% !important;
}

.admin-shell :where(.table-actions, .inline-actions, .customer-row-actions) :where(a, button, .btn, .btn-small, select, summary) {
  min-height: 2.55rem !important;
  border-radius: 8px !important;
  padding: 0.54rem 0.72rem !important;
  border-color: #bfd0e8 !important;
  background: #ffffff !important;
  color: #174ea6 !important;
  box-shadow: none !important;
  font-size: 0.84rem !important;
  font-weight: 750 !important;
  line-height: 1.12 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
}

.admin-shell :where(.table-actions, .inline-actions, .customer-row-actions) :where(a:hover, button:hover, .btn:hover, summary:hover, a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible) {
  border-color: #2563eb !important;
  outline: 3px solid rgba(37, 99, 235, 0.22) !important;
  outline-offset: 2px !important;
}

.admin-shell :where(.table-actions, .inline-actions, .customer-row-actions) :where(a[href^="tel:"], a[href^="mailto:"], a[href*="wa.me"], a[href*="maps/search"]) {
  border-color: #c5d7f2 !important;
  background: #f8fbff !important;
  color: #1d4ed8 !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive) {
    border-radius: 8px !important;
    margin-inline: -0.25rem !important;
    padding-bottom: 0.24rem !important;
  }

  .admin-shell :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive) table {
    min-width: 720px !important;
  }

  .admin-shell :where(.table-actions, .inline-actions, .customer-row-actions) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)) !important;
    width: 100% !important;
  }

  .admin-shell :where(.table-actions, .inline-actions, .customer-row-actions) :where(a, button, .btn, .btn-small, select, summary) {
    width: 100% !important;
    min-height: 2.8rem !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive) {
  border-color: rgba(96, 165, 250, 0.34) !important;
  background: #101827 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24) !important;
}

html[data-theme="dark"] .admin-shell :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive) :where(thead th) {
  border-bottom-color: rgba(96, 165, 250, 0.28) !important;
  background: #0b1220 !important;
  color: #dbeafe !important;
}

html[data-theme="dark"] .admin-shell :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive) :where(tbody td) {
  border-bottom-color: rgba(96, 165, 250, 0.18) !important;
  color: #e5eaf3 !important;
}

html[data-theme="dark"] .admin-shell :where(.table-wrap, .table-wrapper, .admin-table-wrapper, .business-table-wrapper, .table-responsive) :where(tbody tr:hover td, tbody tr:focus-within td) {
  background: rgba(30, 41, 59, 0.76) !important;
}

html[data-theme="dark"] .admin-shell :where(.table-actions, .inline-actions, .customer-row-actions) :where(a, button, .btn, .btn-small, select, summary) {
  border-color: rgba(147, 197, 253, 0.38) !important;
  background: #111827 !important;
  color: #dbeafe !important;
}

/* Admin card grid discipline 2026-08-08: private cards must use space like a working dashboard. */
.admin-shell :where(.metric-row, .dashboard-grid, .business-grid, .admin-card-grid, .document-grid, .work-grid, .support-grid, .shortcut-grid, .command-strip, .admin-command-strip) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)) !important;
  gap: clamp(0.68rem, 0.9vw, 0.95rem) !important;
  align-items: stretch !important;
}

.admin-shell :where(.metric-card, .business-card, .document-card, .form-card, .admin-card, .shortcut-card, .command-card, .quick-action-card, .admin-empty-state) {
  min-width: 0 !important;
  min-height: auto !important;
  padding: clamp(0.9rem, 1.05vw, 1.08rem) !important;
  border-radius: 8px !important;
  border-color: #d8e3f4 !important;
  background: #ffffff !important;
  color: #142238 !important;
}

.admin-shell :where(.metric-card, .business-card, .document-card, .form-card, .admin-card, .shortcut-card, .command-card, .quick-action-card, .admin-empty-state) :where(h2, h3, h4, strong) {
  margin: 0 !important;
  color: #071327 !important;
  font-size: clamp(1rem, 1.05vw, 1.16rem) !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.16 !important;
}

.admin-shell :where(.metric-card, .business-card, .document-card, .form-card, .admin-card, .shortcut-card, .command-card, .quick-action-card, .admin-empty-state) :where(p, .small, .hint) {
  margin-block: 0.36rem 0 !important;
  color: #52627a !important;
  font-size: 0.9rem !important;
  line-height: 1.34 !important;
}

.admin-shell :where(.metric-card, .business-card, .document-card, .form-card, .admin-card, .shortcut-card, .command-card, .quick-action-card) :where(.eyebrow, small:first-child) {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-bottom: 0.38rem !important;
  color: #36506f !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.055em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

.admin-shell :where(.metric-card, .business-card, .document-card, .form-card, .admin-card, .shortcut-card, .command-card, .quick-action-card) :where(.btn, a.btn, button) {
  margin-top: 0.68rem !important;
  min-height: 2.55rem !important;
  border-radius: 8px !important;
}

.admin-shell :where(.metric-card, .business-card, .document-card, .form-card, .admin-card, .shortcut-card, .command-card, .quick-action-card) :where(.btn-outline, a.btn-outline) {
  border-color: #b8cff5 !important;
  background: #ffffff !important;
  color: #174ea6 !important;
}

.admin-shell :where(.metric-card, .business-card, .document-card, .form-card, .admin-card, .shortcut-card, .command-card, .quick-action-card) :where(.badge, .status-badge, .pill, .tag) {
  min-height: 1.85rem !important;
  border-radius: 999px !important;
  padding: 0.28rem 0.62rem !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.metric-row, .dashboard-grid, .business-grid, .admin-card-grid, .document-grid, .work-grid, .support-grid, .shortcut-grid, .command-strip, .admin-command-strip) {
    grid-template-columns: 1fr !important;
    gap: 0.66rem !important;
  }

  .admin-shell :where(.metric-card, .business-card, .document-card, .form-card, .admin-card, .shortcut-card, .command-card, .quick-action-card, .admin-empty-state) {
    padding: 0.86rem !important;
  }

  .admin-shell :where(.metric-card, .business-card, .document-card, .form-card, .admin-card, .shortcut-card, .command-card, .quick-action-card) :where(.btn, a.btn, button) {
    width: 100% !important;
    justify-content: center !important;
    min-height: 2.8rem !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.metric-card, .business-card, .document-card, .form-card, .admin-card, .shortcut-card, .command-card, .quick-action-card, .admin-empty-state) {
  border-color: rgba(96, 165, 250, 0.34) !important;
  background: #101827 !important;
  color: #e5eaf3 !important;
}

html[data-theme="dark"] .admin-shell :where(.metric-card, .business-card, .document-card, .form-card, .admin-card, .shortcut-card, .command-card, .quick-action-card, .admin-empty-state) :where(h2, h3, h4, strong) {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell :where(.metric-card, .business-card, .document-card, .form-card, .admin-card, .shortcut-card, .command-card, .quick-action-card, .admin-empty-state) :where(p, .small, .hint) {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell :where(.metric-card, .business-card, .document-card, .form-card, .admin-card, .shortcut-card, .command-card, .quick-action-card) :where(.eyebrow, small:first-child) {
  color: #bfdbfe !important;
}

/* Admin navigation density discipline 2026-08-08: private navigation must feel compact, legible and dependable. */
.admin-shell :where(.admin-header, .admin-topbar, .topbar, header[role="banner"]) {
  min-height: 4.25rem !important;
  border-bottom: 1px solid #dbe6f5 !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045) !important;
}

.admin-shell :where(.admin-header, .admin-topbar, .topbar, header[role="banner"]) :where(.container, .admin-nav, .topbar-inner, .header-inner) {
  width: min(96vw, 112rem) !important;
  max-width: none !important;
  min-width: 0 !important;
  gap: clamp(0.55rem, 0.8vw, 0.9rem) !important;
}

.admin-shell :where(.admin-brand, .brand, .topbar-brand) {
  min-width: 0 !important;
  gap: 0.55rem !important;
}

.admin-shell :where(.admin-brand, .brand, .topbar-brand) :where(strong, b, span) {
  line-height: 1.05 !important;
}

.admin-shell :where(.admin-nav, .main-nav, .topbar-nav) :where(button, a, summary, .nav-trigger, .admin-nav-trigger) {
  min-height: 2.65rem !important;
  border-radius: 8px !important;
  padding: 0.56rem 0.78rem !important;
  color: #142238 !important;
  font-size: 0.93rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
}

.admin-shell :where(.admin-nav, .main-nav, .topbar-nav) :where(button[aria-expanded="true"], .active, [aria-current="page"]) {
  border-color: #bbf7d0 !important;
  background: #f0fdf4 !important;
  color: #166534 !important;
}

.admin-shell :where(.admin-nav, .main-nav, .topbar-nav) :where(svg) {
  width: 1.12rem !important;
  height: 1.12rem !important;
  flex: 0 0 1.12rem !important;
  stroke-width: 2.15 !important;
}

.admin-shell :where(.admin-mega-menu, .mega-menu, .admin-dropdown, .user-menu, .account-menu, [role="menu"]) {
  border-radius: 12px !important;
  border: 1px solid #d8e3f4 !important;
  background: #ffffff !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14) !important;
}

.admin-shell :where(.admin-mega-menu, .mega-menu, .admin-dropdown, .user-menu, .account-menu, [role="menu"]) :where(a, button) {
  min-height: 2.7rem !important;
  border-radius: 8px !important;
  color: #17243a !important;
  font-size: 0.93rem !important;
  line-height: 1.18 !important;
}

.admin-shell :where(.admin-mega-menu, .mega-menu, .admin-dropdown, .user-menu, .account-menu, [role="menu"]) :where(a:hover, button:hover, a:focus-visible, button:focus-visible) {
  background: #f0fdf4 !important;
  color: #166534 !important;
  outline: 3px solid rgba(22, 101, 52, 0.18) !important;
  outline-offset: 2px !important;
}

.admin-shell :where(.admin-help-button, .help-button, .context-help-button, .user-trigger, .account-trigger, .theme-toggle, .language-switcher a, .language-switcher button) {
  min-width: 2.75rem !important;
  min-height: 2.75rem !important;
  border-radius: 8px !important;
  border-color: #c4d7f8 !important;
  background: #ffffff !important;
  color: #174ea6 !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.admin-header, .admin-topbar, .topbar, header[role="banner"]) {
    min-height: 3.8rem !important;
  }

  .admin-shell :where(.admin-header, .admin-topbar, .topbar, header[role="banner"]) :where(.container, .admin-nav, .topbar-inner, .header-inner) {
    width: min(96vw, 100%) !important;
    gap: 0.42rem !important;
  }

  .admin-shell :where(.admin-nav, .main-nav, .topbar-nav) :where(button, a, summary, .nav-trigger, .admin-nav-trigger) {
    min-height: 2.85rem !important;
    padding-inline: 0.66rem !important;
  }

  .admin-shell :where(.admin-mega-menu, .mega-menu, .admin-dropdown, .user-menu, .account-menu, [role="menu"]) {
    max-width: calc(100vw - 1rem) !important;
    max-height: calc(100dvh - 5rem) !important;
    overflow: auto !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.admin-header, .admin-topbar, .topbar, header[role="banner"]) {
  border-bottom-color: rgba(96, 165, 250, 0.26) !important;
  background: rgba(15, 23, 42, 0.97) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-nav, .main-nav, .topbar-nav) :where(button, a, summary, .nav-trigger, .admin-nav-trigger) {
  color: #e5eaf3 !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-nav, .main-nav, .topbar-nav) :where(button[aria-expanded="true"], .active, [aria-current="page"]) {
  border-color: rgba(147, 197, 253, 0.42) !important;
  background: #111827 !important;
  color: #dbeafe !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-mega-menu, .mega-menu, .admin-dropdown, .user-menu, .account-menu, [role="menu"]) {
  border-color: rgba(96, 165, 250, 0.34) !important;
  background: #101827 !important;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.34) !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-mega-menu, .mega-menu, .admin-dropdown, .user-menu, .account-menu, [role="menu"]) :where(a, button) {
  color: #e5eaf3 !important;
}

/* Admin typography rhythm discipline 2026-08-08: private screens must read fast without looking unfinished. */
.admin-shell :where(.admin-content) {
  color: #142238 !important;
  font-size: 0.96rem !important;
  line-height: 1.42 !important;
}

.admin-shell :where(.admin-content > .admin-heading, .section-heading, .panel-heading, .page-heading) {
  width: 100% !important;
  max-width: none !important;
  margin-block: clamp(0.85rem, 1.2vw, 1.25rem) clamp(0.75rem, 1vw, 1rem) !important;
  gap: 0.42rem !important;
}

.admin-shell :where(.admin-content > .admin-heading, .section-heading, .panel-heading, .page-heading) :where(.eyebrow, small:first-child) {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 !important;
  color: #465b78 !important;
  font-size: 0.76rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.055em !important;
  line-height: 1.12 !important;
  text-transform: uppercase !important;
}

.admin-shell :where(.admin-content > .admin-heading, .section-heading, .panel-heading, .page-heading) :where(h1) {
  max-width: min(100%, 52rem) !important;
  margin: 0 !important;
  color: #071327 !important;
  font-size: clamp(1.42rem, 2vw, 2.1rem) !important;
  font-weight: 880 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.04 !important;
}

.admin-shell :where(.admin-content > .admin-heading, .section-heading, .panel-heading, .page-heading) :where(h2) {
  max-width: min(100%, 48rem) !important;
  margin: 0 !important;
  color: #071327 !important;
  font-size: clamp(1.16rem, 1.45vw, 1.55rem) !important;
  font-weight: 850 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.08 !important;
}

.admin-shell :where(.admin-content > .admin-heading, .section-heading, .panel-heading, .page-heading) :where(p) {
  max-width: min(100%, 62rem) !important;
  margin: 0 !important;
  color: #52627a !important;
  font-size: clamp(0.92rem, 1vw, 1rem) !important;
  line-height: 1.36 !important;
}

.admin-shell :where(.admin-panel, .form-card, .business-card, .document-card, .admin-card, .admin-empty-state) > :where(h2, h3, h4):first-child {
  margin-top: 0 !important;
}

.admin-shell :where(.admin-panel, .form-card, .business-card, .document-card, .admin-card, .admin-empty-state) > :where(p, .hint, .small):last-child {
  margin-bottom: 0 !important;
}

.admin-shell :where(.admin-content) :where(.muted, .hint, .small, .help-text, .form-help) {
  color: #5b6c84 !important;
  font-size: 0.88rem !important;
  line-height: 1.34 !important;
}

.admin-shell :where(.admin-content) :where(hr, .section-divider) {
  margin-block: clamp(0.85rem, 1.2vw, 1.2rem) !important;
  border: 0 !important;
  border-top: 1px solid #dbe6f5 !important;
}

@media (max-width: 760px) {
  .admin-shell :where(.admin-content) {
    font-size: 0.94rem !important;
    line-height: 1.38 !important;
  }

  .admin-shell :where(.admin-content > .admin-heading, .section-heading, .panel-heading, .page-heading) {
    margin-block: 0.7rem !important;
  }

  .admin-shell :where(.admin-content > .admin-heading, .section-heading, .panel-heading, .page-heading) :where(h1) {
    font-size: clamp(1.28rem, 8vw, 1.72rem) !important;
    letter-spacing: -0.03em !important;
  }

  .admin-shell :where(.admin-content > .admin-heading, .section-heading, .panel-heading, .page-heading) :where(h2) {
    font-size: clamp(1.08rem, 6vw, 1.34rem) !important;
  }

  .admin-shell :where(.admin-content > .admin-heading, .section-heading, .panel-heading, .page-heading) :where(p) {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}

html[data-theme="dark"] .admin-shell :where(.admin-content) {
  color: #e5eaf3 !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-content > .admin-heading, .section-heading, .panel-heading, .page-heading) :where(.eyebrow, small:first-child) {
  color: #bfdbfe !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-content > .admin-heading, .section-heading, .panel-heading, .page-heading) :where(h1, h2),
html[data-theme="dark"] .admin-shell :where(.admin-panel, .form-card, .business-card, .document-card, .admin-card, .admin-empty-state) > :where(h2, h3, h4):first-child {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-content > .admin-heading, .section-heading, .panel-heading, .page-heading) :where(p),
html[data-theme="dark"] .admin-shell :where(.admin-content) :where(.muted, .hint, .small, .help-text, .form-help) {
  color: #cbd5e1 !important;
}

/* Public conversion action discipline 2026-08-08: public CTAs must look consistent, readable and tappable. */
.public-shell :where(.btn, .button, .public-cta, .hero-actions a, .hero-actions button, .pricing-card a, .pricing-card button, .sector-card a, .sector-card button, .public-card a.btn, .public-card button) {
  min-height: 3rem !important;
  border-radius: 999px !important;
  padding: 0.72rem 1.08rem !important;
  font-size: 0.96rem !important;
  font-weight: 850 !important;
  line-height: 1.12 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.public-shell :where(.btn-primary, .button-primary, .public-cta-primary, .hero-actions a:first-child, .hero-actions button:first-child, .pricing-card.recommended a.btn, .pricing-card.is-recommended a.btn) {
  border-color: #1d4ed8 !important;
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22) !important;
}

.public-shell :where(.btn-outline, .button-outline, .public-cta-secondary, .hero-actions a:not(:first-child), .hero-actions button:not(:first-child), .sector-card a.btn, .public-card a.btn-outline) {
  border: 1px solid #b8cff5 !important;
  background: #ffffff !important;
  color: #123f91 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045) !important;
}

.public-shell :where(.hero-actions, .public-actions, .pricing-actions, .sector-actions, .card-actions, .form-actions) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: clamp(0.55rem, 1vw, 0.85rem) !important;
}

.public-shell :where(.hero-actions, .public-actions, .pricing-actions, .sector-actions, .card-actions, .form-actions) > :where(a, button, .btn) {
  flex: 1 1 12rem !important;
  max-width: 100% !important;
}

.public-shell :where(.public-card, .pricing-card, .sector-card, .feature-card, .use-card, .demo-card, .checkout-card) {
  border-color: #d8e3f4 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.065) !important;
}

.public-shell :where(.public-card, .pricing-card, .sector-card, .feature-card, .use-card, .demo-card, .checkout-card) :where(h2, h3, h4) {
  color: #071327 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.08 !important;
}

.public-shell :where(.public-card, .pricing-card, .sector-card, .feature-card, .use-card, .demo-card, .checkout-card) :where(p, li) {
  color: #415371 !important;
  line-height: 1.42 !important;
}

.public-shell :where(a, button, .btn):focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24) !important;
  outline-offset: 3px !important;
}

@media (max-width: 760px) {
  .public-shell :where(.hero-actions, .public-actions, .pricing-actions, .sector-actions, .card-actions, .form-actions) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .public-shell :where(.hero-actions, .public-actions, .pricing-actions, .sector-actions, .card-actions, .form-actions) > :where(a, button, .btn) {
    width: 100% !important;
    min-height: 3.15rem !important;
  }

  .public-shell :where(.public-card, .pricing-card, .sector-card, .feature-card, .use-card, .demo-card, .checkout-card) {
    border-radius: 16px !important;
  }
}

html[data-theme="dark"] .public-shell :where(.btn-outline, .button-outline, .public-cta-secondary, .hero-actions a:not(:first-child), .hero-actions button:not(:first-child), .sector-card a.btn, .public-card a.btn-outline) {
  border-color: rgba(147, 197, 253, 0.42) !important;
  background: #111827 !important;
  color: #dbeafe !important;
}

html[data-theme="dark"] .public-shell :where(.public-card, .pricing-card, .sector-card, .feature-card, .use-card, .demo-card, .checkout-card) {
  border-color: rgba(96, 165, 250, 0.34) !important;
  background: #101827 !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .public-shell :where(.public-card, .pricing-card, .sector-card, .feature-card, .use-card, .demo-card, .checkout-card) :where(h2, h3, h4) {
  color: #f8fafc !important;
}

html[data-theme="dark"] .public-shell :where(.public-card, .pricing-card, .sector-card, .feature-card, .use-card, .demo-card, .checkout-card) :where(p, li) {
  color: #cbd5e1 !important;
}

/* Mantivo global readability and interaction polish (2026-08-12). */
:root {
  --mantivo-base-font-size: 15.5px;
  --mantivo-line-height-tight: 1.38;
  --mantivo-line-height-base: 1.58;
  --mantivo-line-height-readable: 1.5;
}

html,
body {
  font-size: var(--mantivo-base-font-size);
  line-height: var(--mantivo-line-height-base);
}

.public-shell,
.admin-shell {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.public-shell :where(p, li, td, th, label, .help-text, .form-help, .hint, .muted, .small),
.admin-shell :where(p, li, td, th, label, .help-text, .form-help, .hint, .muted, .small) {
  line-height: 1.5;
  font-size: 0.94rem;
}

.public-shell :where(h1, h2, h3, h4, h5),
.admin-shell :where(h1, h2, h3, h4, h5) {
  line-height: 1.16;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

.public-shell :where(h1) {
  font-size: 2.05rem !important;
}

.public-shell :where(h2) {
  font-size: 1.5rem !important;
}

.public-shell :where(h3) {
  font-size: 1.18rem !important;
}

.admin-shell :where(h1) {
  font-size: 1.78rem !important;
}

.admin-shell :where(h2) {
  font-size: 1.34rem !important;
}

.admin-shell :where(h3) {
  font-size: 1.12rem !important;
}

.public-shell :where(p),
.admin-shell :where(p) {
  text-wrap: pretty;
}

.public-shell :where(.container, .public-nav, .public-footer),
.admin-shell :where(.container, .admin-main, .admin-layout) {
  max-width: min(95vw, 1480px) !important;
  width: 95% !important;
}

.public-shell :where(.btn, .button, button, input[type="submit"], .public-shell .inline-actions button, .admin-shell .inline-actions button, .admin-shell .table-actions button, .admin-shell .panel-actions button),
.admin-shell :where(.btn, .button, button, input[type="submit"], .inline-actions button, .table-actions button, .panel-actions button) {
  min-height: 2.58rem;
  border-radius: 8px !important;
  padding: 0.58rem 0.95rem !important;
  line-height: 1.15 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0 !important;
}

.public-shell :where(.btn:hover, .button:hover, button:hover, input[type="submit"]:hover),
.admin-shell :where(.btn:hover, .button:hover, button:hover, input[type="submit"]:hover) {
  filter: none !important;
}

.public-shell :where(.btn:focus-visible, .button:focus-visible, button:focus-visible, a:focus-visible, .card:focus-visible),
.admin-shell :where(.btn:focus-visible, .button:focus-visible, button:focus-visible, a:focus-visible, .card:focus-visible) {
  outline: 3px solid #1d4ed8 !important;
  outline-offset: 2px !important;
}

.public-shell :where(.btn, .button, .cta-button, .hero-actions a, .pricing-card a.btn),
.admin-shell :where(.btn, .button, .cta-button, .panel-actions .btn) {
  border: 1px solid #1f47b8 !important;
  color: #ffffff !important;
  background: linear-gradient(120deg, #2563eb 0%, #1d4ed8 100%) !important;
}

.public-shell :where(.btn:hover, .button:hover, .cta-button:hover, .hero-actions a:hover, .pricing-card a.btn:hover),
.admin-shell :where(.btn:hover, .button:hover, .cta-button:hover, .panel-actions .btn:hover) {
  border-color: #163b95 !important;
  color: #ffffff !important;
  background: #163b95 !important;
}

.public-shell :where(.btn-outline, .button-outline, .public-cta-secondary) {
  border-color: #1d4ed8 !important;
  color: #1e3a8a !important;
  background: #ffffff !important;
}

.public-shell :where(.btn-outline:hover, .button-outline:hover, .public-cta-secondary:hover),
.public-shell :where(.btn:active, .button:active) {
  color: #ffffff !important;
  background: linear-gradient(120deg, #1d4ed8 0%, #1e3a8a 100%) !important;
}

.admin-shell :where(.btn-outline, .button-outline, .admin-rail a.btn-outline) {
  border-color: #1f4fbd !important;
  color: #132f6f !important;
  background: #ffffff !important;
}

.admin-shell :where(.btn-outline:hover, .button-outline:hover) {
  color: #ffffff !important;
  background: linear-gradient(120deg, #1d4ed8 0%, #1e3a8a 100%) !important;
}

.admin-shell :where(.btn-group, .action-group, .card-actions, .form-actions, .panel-actions, .table-actions) {
  gap: 0.58rem !important;
}

.public-shell :where(.btn + .btn, button + button),
.admin-shell :where(.btn + .btn, button + button) {
  margin-left: 0.06rem !important;
}

.admin-shell .muted,
.admin-shell .help-text,
.admin-shell .form-help,
.admin-shell .hint {
  color: #5a6d87 !important;
}

.public-shell :where(.public-card, .pricing-card, .sector-card, .feature-card, .use-card, .demo-card, .checkout-card),
.admin-shell :where(.admin-panel, .form-card, .business-card, .document-card, .admin-card, .admin-empty-state, .metric-card) {
  border-radius: 8px !important;
}

.public-shell :where(.eyebrow, .badge, .tag, .chip, .pill),
.admin-shell :where(.eyebrow, .badge, .tag, .chip, .pill, .status-badge) {
  letter-spacing: 0 !important;
}

@media (max-width: 900px) {
  .public-shell .topbar,
  .admin-shell .admin-rail,
  .admin-shell .admin-nav,
  .public-shell .pricing-grid,
  .admin-shell .admin-grid {
    row-gap: 0.65rem !important;
  }
}

@media (max-width: 760px) {
  html,
  body {
    font-size: 15px;
  }

  .public-shell :where(h1),
  .admin-shell :where(h1) {
    font-size: 1.48rem !important;
    line-height: 1.18 !important;
  }

  .public-shell :where(h2),
  .admin-shell :where(h2) {
    font-size: 1.22rem !important;
    line-height: 1.2 !important;
  }

  .public-shell :where(h3),
  .admin-shell :where(h3) {
    font-size: 1.05rem !important;
    line-height: 1.24 !important;
  }

  .public-shell :where(.btn, .button, button, input[type="submit"]),
  .admin-shell :where(.btn, .button, button, input[type="submit"]) {
    width: 100%;
    min-height: 2.85rem;
    justify-content: center;
  }
}

/* Radical public redesign (2026-08-22): coherent visual system for Mantivo. */
.public-shell {
  --public-bg: #f6f8fc;
  --public-surface: #ffffff;
  --public-surface-muted: #f2f6ff;
  --public-text: #0f172a;
  --public-text-muted: #334155;
  --public-border: #d9e3f4;
  --public-brand: #1d4ed8;
  --public-brand-strong: #1e40af;
  --public-shadow-subtle: 0 12px 36px rgba(15, 23, 42, 0.08);
  --public-shadow-focus: 0 0 0 4px rgba(37, 99, 235, 0.22);
  --radius: 12px;
  --radius-lg: 18px;
  --space-4: 0.25rem;
  --space-8: 0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-48: 3rem;
  --space-64: 4rem;
  --public-max-content: min(1280px, calc(100vw - 4rem));
}

html[data-theme="dark"] .public-shell {
  --public-bg: #111827;
  --public-surface: #0f172a;
  --public-surface-muted: #1f2937;
  --public-text: #e5edf7;
  --public-text-muted: #94a3b8;
  --public-border: #374151;
  --public-brand: #60a5fa;
  --public-brand-strong: #93c5fd;
}

.public-shell,
.public-shell .public-main,
.public-shell .public-header {
  color: var(--public-text);
  background: var(--public-bg);
}

.public-shell .container,
.public-shell .public-nav,
.public-shell .public-footer {
  width: min(100%, var(--public-max-content));
  margin-inline: auto;
  max-width: none;
}

.public-shell .public-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--public-surface) 95%, transparent);
  border-bottom: 1px solid var(--public-border);
  backdrop-filter: blur(10px);
}

.public-shell .home-band,
.public-shell .public-section,
.public-shell .home-cta {
  overflow: hidden;
  border: 1px solid var(--public-border);
  border-radius: var(--radius-lg);
  background: var(--public-surface);
  box-shadow: var(--public-shadow-subtle);
  padding: clamp(1rem, 2.2vw, 2rem);
  margin-bottom: var(--space-48);
}

.public-shell .section-heading {
  margin-bottom: var(--space-24);
}

.public-shell h1 {
  font-size: clamp(2rem, 4.2vw, 3.35rem) !important;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 820;
}

.public-shell h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.3rem) !important;
  line-height: 1.12;
}

.public-shell h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem) !important;
  line-height: 1.2;
}

.public-shell :where(p, li, .small, .hint, label, small, .eyebrow) {
  color: var(--public-text-muted);
  line-height: 1.55;
  text-wrap: pretty;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.public-shell :where(a, a:visited) {
  color: var(--public-brand);
}

.public-shell .hero-home,
.public-shell .plans-hero-section .hero-home,
.public-shell .signup-sector-hero .hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(16rem, 0.62fr);
  gap: clamp(1rem, 2.6vw, 2.2rem);
  align-items: stretch;
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, var(--public-surface), var(--public-surface-muted));
}

.public-shell .hero-actions,
.public-shell .signup-primary-actions,
.public-shell .plan-primary-actions,
.public-shell .plan-complete-channel-actions,
.public-shell .plan-trade-shortcut-actions,
.public-shell .public-card-actions,
.public-shell .sector-card-actions,
.public-shell .home-cta .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: var(--space-16);
}

.public-shell .hero-art,
.public-shell .hero-visual,
.public-shell .signup-config-card,
.public-shell .home-sector-card-visual,
.public-shell .sector-card-demo-link,
.public-shell .home-sector-picker .home-sector-card-cta {
  border: 1px solid var(--public-border);
  border-radius: var(--radius);
  background: var(--public-surface-muted);
}

.public-shell :where(.btn, .button, button, input[type="submit"]) {
  min-height: 44px;
  padding-inline: 1.05rem;
  border-radius: 10px;
  border: 1px solid transparent;
  line-height: 1.05;
  font-weight: 730;
  text-wrap: nowrap;
}

.public-shell :where(.btn, .button, .cta-button, button, input[type="submit"]):focus-visible,
.public-shell a:focus-visible {
  outline: 0;
  box-shadow: var(--public-shadow-focus);
}

.public-shell .btn,
.public-shell .button {
  background: var(--public-brand);
  color: #f8fafc;
  border-color: var(--public-brand);
}

.public-shell .btn:hover,
.public-shell .btn:focus-visible,
.public-shell .button:hover,
.public-shell .button:focus-visible,
.public-shell .btn:active {
  background: var(--public-brand-strong);
  border-color: var(--public-brand-strong);
}

.public-shell .btn-outline {
  background: transparent;
  color: var(--public-brand);
  border-color: var(--public-brand);
}

.public-shell .btn-outline:hover,
.public-shell .btn-outline:focus-visible {
  color: #fff;
  background: var(--public-brand);
}

.public-shell .signup-sector-hero .hero-actions,
.public-shell .sector-catalog-primary-next-step .plan-trade-shortcut-actions,
.public-shell .plan-complete-channel-actions,
.public-shell .home-cta .hero-actions,
.public-shell .hero-actions {
  margin-top: var(--space-16);
}

.public-shell .home-sector-more,
.public-shell .home-sector-more-all,
.public-shell .public-sector-picker,
.public-shell .public-sector-picker-grid {
  margin-top: 0;
}

.public-shell :where(.pricing-grid, .plan-entry-price-grid, .plan-simple-names-grid, .signup-equation, .signup-brief-grid, .signup-plan-grid, .sector-grid, .home-sector-more-grid, .sector-proof-grid, .home-sector-filter-chips, .service-ledger, .plan-trade-shortcut-grid, .plan-sector-grid, .sector-instant-grid, .signup-instant-grid, .plan-complete-channel-grid, .plan-trust-brief-grid, .home-sector-filter-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: var(--space-24);
}

.public-shell :where(.pricing-grid, .plan-entry-price-grid, .plan-simple-names-grid, .signup-equation, .signup-brief-grid, .signup-plan-grid, .sector-grid, .home-sector-more-grid, .sector-proof-grid, .service-ledger, .plan-trade-shortcut-grid, .plan-sector-grid, .sector-instant-grid, .signup-instant-grid, .plan-complete-channel-grid, .plan-trust-brief-grid, .home-sector-filter-grid) :where(article, a) {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  width: 100%;
  padding: clamp(0.96rem, 2vw, 1.35rem);
  border: 1px solid var(--public-border);
  border-radius: var(--radius);
  background: var(--public-surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.public-shell .sector-card-actions,
.public-shell .plan-trade-shortcut-actions,
.public-shell .signup-primary-actions,
.public-shell .plan-primary-actions,
.public-shell .plan-complete-channel-actions {
  margin-top: auto;
}

.public-shell .sector-card-price,
.public-shell .signup-config-card span,
.public-shell .plan-entry-price-grid article strong,
.public-shell .plan-simple-names-grid article span {
  color: #1e293b;
  font-weight: 780;
}

.public-shell .pricing-card .compact-list,
.public-shell .plan-entry-price-grid .pricing-feature-list,
.public-shell .signup-next-actions,
.public-shell .signup-primary-proof,
.public-shell .plan-trade-shortcut-card dl,
.public-shell .signup-module-links {
  margin-top: auto;
}

.public-shell :where(.pricing-grid, .plan-entry-price-grid, .plan-simple-names-grid, .plan-trade-shortcut-card, .signup-plan-grid, .signup-brief-grid, .home-sector-card, .sector-card) :where(> .btn, > .btn-outline) {
  margin-top: auto;
}

.public-shell .signup-step-strip,
.public-shell .signup-plan-grid,
.public-shell .signup-brief-grid,
.public-shell .plan-complete-channel-grid,
.public-shell .plan-trust-brief-grid,
.public-shell .plan-trade-shortcut-grid,
.public-shell .home-sector-filter-chips,
.public-shell .sector-filter-chips,
.public-shell .plan-complete-channel-actions {
  gap: var(--space-16);
}

/* Home card media normalization: keeps sector cards aligned without cropping text. */
.public-shell .public-sector-picker-grid,
.public-shell .home-sector-more-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)) !important;
  gap: clamp(1rem, 1.6vw, 1.5rem) !important;
  align-items: stretch !important;
}

.public-shell .public-sector-picker-grid .home-sector-card,
.public-shell .home-sector-more-grid .home-sector-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  padding: 0 !important;
  gap: 0 !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  background: var(--public-surface) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-visual,
.public-shell .home-sector-more-grid .home-sector-card-visual {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: var(--public-surface-muted) !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-img,
.public-shell .home-sector-more-grid .home-sector-card-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: none !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-copy,
.public-shell .home-sector-more-grid .home-sector-card-copy {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  justify-content: flex-start !important;
  align-self: stretch !important;
  padding: clamp(1rem, 1.8vw, 1.35rem) !important;
  min-width: 0 !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-copy > strong,
.public-shell .home-sector-more-grid .home-sector-card-copy > strong {
  font-size: clamp(1.2rem, 1.35vw, 1.45rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.02em !important;
}

.public-shell .public-sector-picker-grid .home-sector-card small,
.public-shell .public-sector-picker-grid .home-sector-card em,
.public-shell .home-sector-more-grid .home-sector-card small,
.public-shell .home-sector-more-grid .home-sector-card em {
  display: block !important;
  max-width: 100% !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  line-height: 1.45 !important;
}

.public-shell .public-sector-picker-grid .home-sector-card-cta,
.public-shell .home-sector-more-grid .home-sector-card-cta {
  margin-top: auto !important;
}

@media (min-width: 1180px) {
  .public-shell .public-sector-picker-grid,
  .public-shell .home-sector-more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .public-shell .public-sector-picker-grid,
  .public-shell .home-sector-more-grid {
    grid-template-columns: 1fr !important;
  }
}

.public-shell .signup-step-strip {
  margin-top: var(--space-16);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.public-shell .signup-step-strip span,
.public-shell .plan-complete-channel-grid span,
.public-shell .plan-trust-brief-grid span,
.public-shell .plan-trade-shortcut-card span,
.public-shell .home-sector-card-kicker,
.public-shell .sector-card-demo-link,
.public-shell .home-sector-card-cta {
  border-radius: 999px;
  border: 1px solid var(--public-border);
  padding: 0.32rem 0.62rem;
  background: var(--public-surface-muted);
  font-size: 0.75rem;
  font-weight: 760;
}

.public-shell .compact-list {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.public-shell .compact-list li {
  color: var(--public-text);
}

.public-shell .signup-primary-next-step,
.public-shell .plan-primary-next-step,
.public-shell .signup-complete-channel-strip,
.public-shell .plan-complete-channel-strip,
.public-shell .sector-catalog-primary-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.58fr);
  align-items: stretch;
  gap: var(--space-16);
}

.public-shell .home-cta {
  padding-top: clamp(1.15rem, 3vw, 2rem);
  padding-bottom: clamp(1.15rem, 3vw, 2rem);
}

.public-shell .home-cta .hero-actions .btn {
  min-width: 11rem;
}

.public-shell :where(input, select, textarea) {
  min-height: 2.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--public-border);
  background: var(--public-surface);
  color: var(--public-text);
}

.public-shell :where(label) {
  display: grid;
  gap: 0.45rem;
  color: var(--public-text);
  font-weight: 640;
}

@media (max-width: 1280px) {
  .public-shell .hero-home,
  .public-shell .plans-hero-section .hero-home,
  .public-shell .signup-sector-hero .hero-home {
    gap: 1.1rem;
  }

  .public-shell :where(.pricing-grid, .plan-entry-price-grid, .plan-simple-names-grid, .signup-equation, .signup-brief-grid, .signup-plan-grid, .sector-grid, .home-sector-more-grid, .sector-proof-grid, .service-ledger, .plan-trade-shortcut-grid, .plan-sector-grid, .sector-instant-grid, .signup-instant-grid, .plan-complete-channel-grid, .plan-trust-brief-grid, .home-sector-filter-grid) {
    grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  }
}

@media (max-width: 1024px) {
  .public-shell .hero-home,
  .public-shell .plans-hero-section .hero-home,
  .public-shell .signup-sector-hero .hero-home {
    grid-template-columns: 1fr;
  }

  .public-shell .signup-primary-next-step,
  .public-shell .plan-primary-next-step,
  .public-shell .sector-catalog-primary-next-step {
    grid-template-columns: 1fr;
  }

  .public-shell .signup-sector-hero .hero-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .public-shell .container,
  .public-shell .public-nav,
  .public-shell .public-footer {
    width: min(100%, calc(100vw - 2rem));
  }

  .public-shell .hero-home,
  .public-shell .home-band,
  .public-shell .public-section,
  .public-shell .home-cta,
  .public-shell .signup-sector-hero .hero-home {
    padding: 1rem;
  }

  .public-shell .hero-actions,
  .public-shell .plan-primary-actions,
  .public-shell .signup-primary-actions,
  .public-shell .plan-complete-channel-actions,
  .public-shell .plan-trade-shortcut-actions,
  .public-shell .sector-card-actions,
  .public-shell .home-cta .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .public-shell .home-band,
  .public-shell .public-section {
    margin-bottom: 1.15rem;
  }
}

@media (max-width: 620px) {
  .public-shell :where(.btn, .button, button, input[type="submit"]) {
    width: 100%;
  }
}

@media (max-width: 375px) {
  .public-shell h1 {
    font-size: 2rem !important;
  }

  .public-shell :where(.pricing-grid, .plan-entry-price-grid, .plan-simple-names-grid, .sector-grid) {
    gap: 0.85rem;
  }
}

@media (max-width: 320px) {
  .public-shell :where(h1, h2, h3) {
    max-width: 18ch;
  }

  .public-shell :where(.btn, .button, button) {
    min-height: 44px;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-shell *,
  .public-shell *::before,
  .public-shell *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* Admin navigation and dark contrast repair 2026-08-23: target the real mega-nav classes. */
.admin-shell .admin-topbar {
  width: min(1760px, calc(100vw - 1.5rem)) !important;
  min-height: 4.5rem !important;
  grid-template-columns: minmax(12rem, auto) minmax(0, 1fr) auto !important;
  gap: clamp(0.75rem, 1vw, 1.15rem) !important;
  overflow: visible !important;
}

.admin-shell .admin-mega-nav {
  min-width: 0 !important;
  overflow: visible !important;
  justify-self: stretch !important;
  gap: 0.42rem !important;
}

.admin-shell .admin-mega-nav__button {
  min-height: 2.75rem !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  padding: 0 0.78rem !important;
  background: transparent !important;
  color: #142238 !important;
  font-size: 0.91rem !important;
  font-weight: 820 !important;
  line-height: 1.1 !important;
}

.admin-shell .admin-mega-nav__item:hover .admin-mega-nav__button,
.admin-shell .admin-mega-nav__item:focus-within .admin-mega-nav__button,
.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__button,
.admin-shell .admin-mega-nav__item.is-active .admin-mega-nav__button {
  border-color: #b7c9e6 !important;
  background: #eef5ff !important;
  color: #123b7a !important;
}

.admin-shell .admin-mega-nav__panel {
  position: fixed !important;
  top: 4.85rem !important;
  left: 50% !important;
  z-index: 120 !important;
  width: min(72rem, calc(100vw - 2rem)) !important;
  max-height: calc(100dvh - 6rem) !important;
  grid-template-columns: repeat(3, minmax(13rem, 1fr)) !important;
  gap: 0.75rem !important;
  padding: 0.9rem !important;
  overflow: auto !important;
  transform: translateX(-50%) !important;
  border: 1px solid #c9d8ed !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.18) !important;
}

.admin-shell .admin-mega-nav__item:nth-child(2) .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel {
  width: min(36rem, calc(100vw - 2rem)) !important;
  grid-template-columns: 1fr !important;
}

.admin-shell .admin-mega-nav__item:hover .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item:focus-within .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item[open] .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item.is-open .admin-mega-nav__panel {
  display: grid !important;
}

.admin-shell .admin-mega-nav__panel > section {
  min-width: 0 !important;
  gap: 0.28rem !important;
  border: 1px solid #dbe6f5 !important;
  border-radius: 10px !important;
  padding: 0.62rem !important;
  background: #f8fafc !important;
}

.admin-shell .admin-mega-nav__panel h2 {
  margin: 0 0 0.25rem !important;
  padding: 0.2rem 0.28rem !important;
  color: #445b78 !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

.admin-shell .admin-mega-nav__panel a,
.admin-shell .admin-mega-nav__panel a:visited {
  min-height: 2.6rem !important;
  margin-left: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  padding: 0.5rem 0.58rem !important;
  color: #132338 !important;
  font-size: 0.92rem !important;
  font-weight: 760 !important;
  line-height: 1.16 !important;
}

.admin-shell .admin-mega-nav__panel a:hover,
.admin-shell .admin-mega-nav__panel a:focus-visible,
.admin-shell .admin-mega-nav__panel a.active {
  border-color: #b7c9e6 !important;
  background: #eaf2ff !important;
  color: #123b7a !important;
  outline: 3px solid rgba(18, 59, 122, 0.22) !important;
  outline-offset: 2px !important;
}

.admin-shell .admin-user-menu__summary {
  min-height: 2.75rem !important;
  border-radius: 8px !important;
}

.admin-shell .admin-user-menu__panel {
  z-index: 130 !important;
  border-radius: 12px !important;
}

html[data-theme="dark"] .admin-shell {
  --admin-panel-bg: #111827 !important;
  --admin-surface-bg: #172033 !important;
  --admin-border: #3a4c68 !important;
  --admin-line: #31435e !important;
  --admin-title: #f8fafc !important;
  --admin-text: #e5edf7 !important;
  --admin-muted: #cbd5e1 !important;
  color: #f8fafc !important;
  background: #0b1220 !important;
}

html[data-theme="dark"] .admin-shell .admin-topbar {
  border-bottom-color: #3a4c68 !important;
  background: rgba(11, 18, 32, 0.98) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .brand-mini h1,
html[data-theme="dark"] .admin-shell .brand-mini p,
html[data-theme="dark"] .admin-shell .user-meta {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__button {
  color: #e5edf7 !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__button::after,
html[data-theme="dark"] .admin-shell .admin-mega-nav__button-icon,
html[data-theme="dark"] .admin-shell .admin-mega-nav__section-icon,
html[data-theme="dark"] .admin-shell .admin-mega-nav__item-icon {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__item:hover .admin-mega-nav__button,
html[data-theme="dark"] .admin-shell .admin-mega-nav__item:focus-within .admin-mega-nav__button,
html[data-theme="dark"] .admin-shell .admin-mega-nav__item[open] .admin-mega-nav__button,
html[data-theme="dark"] .admin-shell .admin-mega-nav__item.is-active .admin-mega-nav__button {
  border-color: #6b86ad !important;
  background: #172033 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__panel {
  border-color: #4a6387 !important;
  background: #111827 !important;
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.46) !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__panel > section {
  border-color: #31435e !important;
  background: #172033 !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__panel h2 {
  color: #bfdbfe !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__panel a,
html[data-theme="dark"] .admin-shell .admin-mega-nav__panel a:visited {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__panel a:hover,
html[data-theme="dark"] .admin-shell .admin-mega-nav__panel a:focus-visible,
html[data-theme="dark"] .admin-shell .admin-mega-nav__panel a.active {
  border-color: #93c5fd !important;
  background: #1e3a8a !important;
  color: #ffffff !important;
  outline: 3px solid rgba(147, 197, 253, 0.5) !important;
  outline-offset: 2px !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-content, .admin-heading, .section-heading, .panel-heading, .page-heading, .admin-panel, .table-wrap, .table-wrapper, .admin-table-wrapper, .metric-card, .business-card, .document-card, .form-card, .admin-card, .shortcut-card, .command-card, .quick-action-card, .admin-empty-state) {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell :where(.admin-content p, .admin-content li, .admin-heading p, .section-heading p, .panel-heading p, .hint, .small, .form-help, .help-text, .field-hint) {
  color: #d6e0ee !important;
}

html[data-theme="dark"] .admin-shell :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: #6b86ad !important;
  background: #0b1220 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell :where(input::placeholder, textarea::placeholder) {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-shell :where(.btn-outline, a.btn-outline, .secondary, .ghost) {
  border-color: #93c5fd !important;
  color: #dbeafe !important;
  background: transparent !important;
}

html[data-theme="dark"] .admin-shell :where(.btn-outline, a.btn-outline, .secondary, .ghost):hover,
html[data-theme="dark"] .admin-shell :where(.btn-outline, a.btn-outline, .secondary, .ghost):focus-visible {
  background: #dbeafe !important;
  color: #0b1220 !important;
}

@media (max-width: 1180px) {
  .admin-shell .admin-topbar {
    grid-template-columns: 1fr auto !important;
  }

  .admin-shell .admin-topbar .brand-mini {
    grid-column: 1 / 2 !important;
  }

  .admin-shell .admin-topbar .user-meta {
    grid-column: 2 / 3 !important;
  }

  .admin-shell .admin-mega-nav {
    grid-column: 1 / -1 !important;
    order: 3 !important;
    overflow-x: auto !important;
    padding-bottom: 0.25rem !important;
  }

  .admin-shell .admin-mega-nav__panel {
    top: 7.4rem !important;
    grid-template-columns: repeat(2, minmax(13rem, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .admin-shell .admin-topbar {
    width: calc(100vw - 1rem) !important;
    grid-template-columns: 1fr !important;
  }

  .admin-shell .admin-topbar .brand-mini,
  .admin-shell .admin-topbar .user-meta,
  .admin-shell .admin-mega-nav {
    grid-column: 1 / -1 !important;
  }

  .admin-shell .admin-mega-nav {
    overflow-x: auto !important;
  }

  .admin-shell .admin-mega-nav__panel,
  .admin-shell .admin-mega-nav__item:nth-child(2) .admin-mega-nav__panel,
  .admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel {
    top: 9.25rem !important;
    width: calc(100vw - 1rem) !important;
    max-height: calc(100dvh - 10rem) !important;
    grid-template-columns: 1fr !important;
  }
}

/* Visual system width density final seal 2026-08-06: terminal marker after legacy heading limits. */

/* Access professional readability final 2026-08-23: stable contrast, margins and form ergonomics. */
body.auth-bg,
html[data-theme="dark"] body.auth-bg,
html[data-theme="light"] body.auth-bg {
  min-height: 100dvh !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(1rem, 3vw, 2rem) !important;
  background: #f5f7fb !important;
  color: #0f172a !important;
}

.auth-bg .skip-link:not(:focus):not(:focus-visible),
html[data-theme="dark"] .auth-bg .skip-link:not(:focus):not(:focus-visible) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  top: 0 !important;
  left: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.auth-bg .skip-link:focus-visible,
html[data-theme="dark"] .auth-bg .skip-link:focus-visible {
  position: fixed !important;
  z-index: 1000 !important;
  top: 0.75rem !important;
  left: 0.75rem !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  clip-path: none !important;
  padding: 0.65rem 0.9rem !important;
  border: 2px solid #ffffff !important;
  border-radius: 8px !important;
  background: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22) !important;
}

.auth-bg .auth-shell,
html[data-theme="dark"] .auth-bg .auth-shell {
  width: min(100%, 1120px) !important;
  min-height: auto !important;
  display: block !important;
  place-items: initial !important;
  margin: 0 auto !important;
  padding: 0 !important;
  color: #0f172a !important;
}

.auth-bg .auth-locale-bar,
html[data-theme="dark"] .auth-bg .auth-locale-bar {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  margin: 0 0 0.85rem !important;
}

.auth-bg .auth-locale-switch,
html[data-theme="dark"] .auth-bg .auth-locale-switch {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
  padding: 0.25rem !important;
}

.auth-bg .auth-locale-switch a,
html[data-theme="dark"] .auth-bg .auth-locale-switch a {
  color: #1e293b !important;
  border-radius: 6px !important;
  min-height: 2.35rem !important;
}

.auth-bg .auth-locale-switch a.is-active,
html[data-theme="dark"] .auth-bg .auth-locale-switch a.is-active {
  background: #1d4ed8 !important;
  color: #ffffff !important;
}

.auth-bg .card.auth-card-minimal,
html[data-theme="dark"] .auth-bg .card.auth-card-minimal {
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: clamp(1rem, 2.4vw, 1.5rem) !important;
  border: 1px solid #d7e0ea !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14) !important;
  overflow: hidden !important;
}

.auth-bg .auth-minimal-grid,
html[data-theme="dark"] .auth-bg .auth-minimal-grid {
  display: grid !important;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(20rem, 1fr) !important;
  gap: clamp(1rem, 2.4vw, 1.5rem) !important;
  align-items: stretch !important;
  min-width: 0 !important;
}

.auth-bg .auth-product-hero,
.auth-bg .auth-product-hero-compact,
html[data-theme="dark"] .auth-bg .auth-product-hero,
html[data-theme="dark"] .auth-bg .auth-product-hero-compact {
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: clamp(1.25rem, 3vw, 2rem) !important;
  padding: clamp(1.25rem, 3vw, 2rem) !important;
  border: 1px solid #1e3a8a !important;
  border-radius: 8px !important;
  background: #102a5c !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.auth-bg .auth-product-hero :where(h1, h2, h3, p, strong, span, small, .brand, .eyebrow),
html[data-theme="dark"] .auth-bg .auth-product-hero :where(h1, h2, h3, p, strong, span, small, .brand, .eyebrow) {
  color: #ffffff !important;
  text-shadow: none !important;
}

.auth-bg .auth-product-hero .brand-row,
html[data-theme="dark"] .auth-bg .auth-product-hero .brand-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.auth-bg .auth-product-hero .logo-inline,
html[data-theme="dark"] .auth-bg .auth-product-hero .logo-inline {
  width: 2.75rem !important;
  height: 2.75rem !important;
  flex: 0 0 2.75rem !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  padding: 0.35rem !important;
  filter: none !important;
}

.auth-bg .auth-product-hero h1,
html[data-theme="dark"] .auth-bg .auth-product-hero h1 {
  margin: 0 !important;
  font-size: clamp(1.45rem, 2.4vw, 2rem) !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

.auth-bg .auth-product-hero .brand-row p,
.auth-bg .auth-protection-note,
html[data-theme="dark"] .auth-bg .auth-product-hero .brand-row p,
html[data-theme="dark"] .auth-bg .auth-protection-note {
  margin: 0 !important;
  color: #dbeafe !important;
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
}

.auth-bg .auth-product-copy,
html[data-theme="dark"] .auth-bg .auth-product-copy {
  display: grid !important;
  gap: 0.75rem !important;
}

.auth-bg .auth-product-copy .eyebrow,
html[data-theme="dark"] .auth-bg .auth-product-copy .eyebrow {
  margin: 0 !important;
  color: #bfdbfe !important;
  letter-spacing: 0 !important;
}

.auth-bg .auth-product-copy h2,
.auth-bg .auth-product-hero-compact .auth-product-copy h2,
html[data-theme="dark"] .auth-bg .auth-product-copy h2,
html[data-theme="dark"] .auth-bg .auth-product-hero-compact .auth-product-copy h2 {
  max-width: 15ch !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(2rem, 4vw, 3.1rem) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.auth-bg .auth-product-copy p:not(.eyebrow),
html[data-theme="dark"] .auth-bg .auth-product-copy p:not(.eyebrow) {
  max-width: 36ch !important;
  margin: 0 !important;
  color: #eaf2ff !important;
  font-size: clamp(1rem, 1.5vw, 1.08rem) !important;
  line-height: 1.6 !important;
}

.auth-bg .auth-login-column,
html[data-theme="dark"] .auth-bg .auth-login-column {
  min-width: 0 !important;
  display: grid !important;
  align-content: center !important;
  gap: 1rem !important;
  padding: clamp(0.25rem, 1vw, 0.5rem) !important;
  color: #0f172a !important;
}

.auth-bg .auth-login-heading,
html[data-theme="dark"] .auth-bg .auth-login-heading {
  display: grid !important;
  gap: 0.35rem !important;
  margin: 0 !important;
}

.auth-bg .auth-login-heading .eyebrow,
html[data-theme="dark"] .auth-bg .auth-login-heading .eyebrow {
  margin: 0 !important;
  color: #1d4ed8 !important;
  letter-spacing: 0 !important;
}

.auth-bg .auth-login-heading h2,
html[data-theme="dark"] .auth-bg .auth-login-heading h2 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

.auth-bg .auth-login-heading p:not(.eyebrow),
.auth-bg .auth-field-hint,
html[data-theme="dark"] .auth-bg .auth-login-heading p:not(.eyebrow),
html[data-theme="dark"] .auth-bg .auth-field-hint {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 0.97rem !important;
  line-height: 1.5 !important;
}

.auth-bg .auth-entry,
.auth-bg article.card.auth-entry,
html[data-theme="dark"] .auth-bg .auth-entry,
html[data-theme="dark"] .auth-bg article.card.auth-entry {
  width: 100% !important;
  margin: 0 !important;
  padding: clamp(1rem, 2vw, 1.25rem) !important;
  border: 1px solid #d7e0ea !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

.auth-bg .auth-entry .stacked-form,
html[data-theme="dark"] .auth-bg .auth-entry .stacked-form {
  display: grid !important;
  gap: 0.7rem !important;
  color: #0f172a !important;
}

.auth-bg label,
.auth-bg .auth-password-row label,
html[data-theme="dark"] .auth-bg label,
html[data-theme="dark"] .auth-bg .auth-password-row label {
  margin: 0 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.auth-bg input:not([type="hidden"]),
html[data-theme="dark"] .auth-bg input:not([type="hidden"]) {
  width: 100% !important;
  min-height: 3rem !important;
  padding: 0.78rem 0.9rem !important;
  border: 1px solid #94a3b8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
  box-shadow: none !important;
}

.auth-bg input::placeholder,
html[data-theme="dark"] .auth-bg input::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

.auth-bg input:not([type="hidden"]):focus-visible,
html[data-theme="dark"] .auth-bg input:not([type="hidden"]):focus-visible {
  border-color: #1d4ed8 !important;
  outline: 3px solid rgba(29, 78, 216, 0.22) !important;
  outline-offset: 2px !important;
}

.auth-bg .auth-password-row,
html[data-theme="dark"] .auth-bg .auth-password-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 0.6rem !important;
  align-items: center !important;
  margin-top: 0.15rem !important;
}

.auth-bg .auth-password-row .auth-password-toggle,
html[data-theme="dark"] .auth-bg .auth-password-row .auth-password-toggle {
  width: 3rem !important;
  min-width: 3rem !important;
  max-width: 3rem !important;
  min-height: 2.75rem !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid #94a3b8 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  color: #1d4ed8 !important;
  box-shadow: none !important;
}

.auth-bg .auth-password-row .auth-password-toggle:hover,
.auth-bg .auth-password-row .auth-password-toggle:focus-visible,
html[data-theme="dark"] .auth-bg .auth-password-row .auth-password-toggle:hover,
html[data-theme="dark"] .auth-bg .auth-password-row .auth-password-toggle:focus-visible {
  border-color: #1d4ed8 !important;
  background: #eff6ff !important;
  color: #1e3a8a !important;
  outline: 3px solid rgba(29, 78, 216, 0.22) !important;
  outline-offset: 2px !important;
}

.auth-bg .auth-form-actions,
.auth-bg .auth-entry .auth-form-actions,
html[data-theme="dark"] .auth-bg .auth-form-actions,
html[data-theme="dark"] .auth-bg .auth-entry .auth-form-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.7rem !important;
  margin-top: 0.85rem !important;
}

.auth-bg .auth-form-actions button[type="submit"],
.auth-bg .auth-entry .auth-form-actions button[type="submit"],
html[data-theme="dark"] .auth-bg .auth-form-actions button[type="submit"],
html[data-theme="dark"] .auth-bg .auth-entry .auth-form-actions button[type="submit"] {
  width: 100% !important;
  min-height: 3rem !important;
  border: 1px solid #1d4ed8 !important;
  border-radius: 8px !important;
  background: #1d4ed8 !important;
  color: #ffffff !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}

.auth-bg .auth-form-actions button[type="submit"]:hover,
.auth-bg .auth-form-actions button[type="submit"]:focus-visible,
html[data-theme="dark"] .auth-bg .auth-form-actions button[type="submit"]:hover,
html[data-theme="dark"] .auth-bg .auth-form-actions button[type="submit"]:focus-visible {
  background: #1e40af !important;
  border-color: #1e40af !important;
  outline: 3px solid rgba(29, 78, 216, 0.24) !important;
  outline-offset: 2px !important;
}

.auth-bg .auth-form-actions a,
.auth-bg .auth-access-links a,
html[data-theme="dark"] .auth-bg .auth-form-actions a,
html[data-theme="dark"] .auth-bg .auth-access-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.85rem !important;
  padding: 0.65rem 0.9rem !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #1d4ed8 !important;
  font-weight: 800 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.auth-bg .auth-form-actions a:hover,
.auth-bg .auth-form-actions a:focus-visible,
.auth-bg .auth-access-links a:hover,
.auth-bg .auth-access-links a:focus-visible,
html[data-theme="dark"] .auth-bg .auth-form-actions a:hover,
html[data-theme="dark"] .auth-bg .auth-form-actions a:focus-visible,
html[data-theme="dark"] .auth-bg .auth-access-links a:hover,
html[data-theme="dark"] .auth-bg .auth-access-links a:focus-visible {
  background: #eff6ff !important;
  border-color: #1d4ed8 !important;
  color: #1e40af !important;
  outline: 3px solid rgba(29, 78, 216, 0.18) !important;
  outline-offset: 2px !important;
  transform: none !important;
}

.auth-bg .auth-access-links,
html[data-theme="dark"] .auth-bg .auth-access-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.7rem !important;
  margin-top: 1rem !important;
}

.auth-bg .auth-state-panel,
html[data-theme="dark"] .auth-bg .auth-state-panel {
  border-radius: 8px !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

.auth-bg .auth-state-panel :where(h2, p, span),
html[data-theme="dark"] .auth-bg .auth-state-panel :where(h2, p, span) {
  color: inherit !important;
}

@media (max-width: 860px) {
  body.auth-bg,
  html[data-theme="dark"] body.auth-bg,
  html[data-theme="light"] body.auth-bg {
    align-items: flex-start !important;
    padding: 0.75rem !important;
  }

  .auth-bg .auth-locale-bar,
  html[data-theme="dark"] .auth-bg .auth-locale-bar {
    justify-content: flex-end !important;
    width: auto !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  .auth-bg .auth-locale-switch,
  html[data-theme="dark"] .auth-bg .auth-locale-switch {
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .auth-bg .auth-minimal-grid,
  html[data-theme="dark"] .auth-bg .auth-minimal-grid {
    grid-template-columns: 1fr !important;
  }

  .auth-bg .auth-product-hero,
  .auth-bg .auth-product-hero-compact,
  html[data-theme="dark"] .auth-bg .auth-product-hero,
  html[data-theme="dark"] .auth-bg .auth-product-hero-compact {
    min-height: auto !important;
  }

  .auth-bg .auth-product-copy h2,
  .auth-bg .auth-product-hero-compact .auth-product-copy h2,
  html[data-theme="dark"] .auth-bg .auth-product-copy h2,
  html[data-theme="dark"] .auth-bg .auth-product-hero-compact .auth-product-copy h2 {
    max-width: 18ch !important;
    font-size: clamp(1.85rem, 8vw, 2.45rem) !important;
    line-height: 1.05 !important;
  }

  .auth-bg .auth-login-column,
  html[data-theme="dark"] .auth-bg .auth-login-column {
    padding: 0 !important;
  }
}

@media (max-width: 520px) {
  .auth-bg .card.auth-card-minimal,
  html[data-theme="dark"] .auth-bg .card.auth-card-minimal {
    padding: 0.75rem !important;
  }

  .auth-bg .auth-product-hero,
  .auth-bg .auth-product-hero-compact,
  .auth-bg article.card.auth-entry,
  html[data-theme="dark"] .auth-bg .auth-product-hero,
  html[data-theme="dark"] .auth-bg .auth-product-hero-compact,
  html[data-theme="dark"] .auth-bg article.card.auth-entry {
    padding: 1rem !important;
  }

  .auth-bg .auth-access-links,
  html[data-theme="dark"] .auth-bg .auth-access-links {
    grid-template-columns: 1fr !important;
  }
}

/* Access touch target hardening 2026-09-06: keep auth secondary links usable when root rem changes. */
.auth-bg .auth-locale-switch a,
.auth-bg .auth-form-actions a,
.auth-bg .auth-entry .auth-form-actions a,
.auth-bg .auth-access-links a,
html[data-theme="dark"] .auth-bg .auth-locale-switch a,
html[data-theme="dark"] .auth-bg .auth-form-actions a,
html[data-theme="dark"] .auth-bg .auth-entry .auth-form-actions a,
html[data-theme="dark"] .auth-bg .auth-access-links a {
  box-sizing: border-box !important;
  min-height: 44px !important;
}

.auth-bg .auth-locale-switch a,
html[data-theme="dark"] .auth-bg .auth-locale-switch a {
  min-width: 44px !important;
}

/* Admin mega menu final viewport fit 2026-09-10: real topbar classes, no clipped panels. */
.admin-shell .skip-link:not(:focus):not(:focus-visible) {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  transform: none !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.admin-shell .skip-link:focus-visible {
  position: fixed !important;
  z-index: 10000 !important;
  top: 0.75rem !important;
  left: 0.75rem !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  padding: 0.68rem 0.95rem !important;
  border: 2px solid #ffffff !important;
  border-radius: 8px !important;
  background: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.24) !important;
}

.admin-shell .admin-topbar {
  align-items: center !important;
  overflow: visible !important;
}

.admin-shell .admin-mega-nav {
  align-items: center !important;
  overflow: visible !important;
}

.admin-shell .admin-mega-nav__button {
  min-width: 0 !important;
  min-height: 44px !important;
  white-space: nowrap !important;
}

.admin-shell .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item:nth-child(2) .admin-mega-nav__panel,
.admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel {
  position: fixed !important;
  top: clamp(5.15rem, 9vh, 6.7rem) !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 500 !important;
  width: min(1180px, calc(100vw - 2rem)) !important;
  max-width: calc(100vw - 2rem) !important;
  max-height: calc(100dvh - clamp(6.4rem, 12vh, 8rem) - env(safe-area-inset-bottom, 0px)) !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)) !important;
  gap: 0.85rem !important;
  padding: 0.95rem !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  transform: translateX(-50%) !important;
  border: 1px solid #c8d7ee !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 30px 74px rgba(15, 23, 42, 0.2) !important;
}

.admin-shell .admin-mega-nav__panel > section {
  min-width: 0 !important;
  border-color: #d8e4f4 !important;
  background: #f8fafc !important;
}

.admin-shell .admin-mega-nav__panel h2 {
  color: #314767 !important;
  font-size: 0.78rem !important;
}

.admin-shell .admin-mega-nav__panel a,
.admin-shell .admin-mega-nav__panel a:visited {
  min-height: 44px !important;
  color: #102033 !important;
  overflow-wrap: anywhere !important;
}

.admin-shell .admin-mega-nav__panel a:hover,
.admin-shell .admin-mega-nav__panel a:focus-visible,
.admin-shell .admin-mega-nav__panel a.active {
  border-color: #9bb7df !important;
  background: #e8f1ff !important;
  color: #0f3675 !important;
}

.admin-shell .admin-user-menu__panel {
  position: fixed !important;
  top: clamp(4.95rem, 8vh, 6.5rem) !important;
  right: max(1rem, env(safe-area-inset-right, 0px)) !important;
  left: auto !important;
  z-index: 520 !important;
  width: min(24rem, calc(100vw - 2rem)) !important;
  max-height: calc(100dvh - 7rem - env(safe-area-inset-bottom, 0px)) !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  border: 1px solid #c8d7ee !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2) !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__button {
  color: #e5edf7 !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__panel,
html[data-theme="dark"] .admin-shell .admin-user-menu__panel {
  border-color: #5d779f !important;
  background: #111827 !important;
  color: #f8fafc !important;
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.54) !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__panel > section {
  border-color: #3d5170 !important;
  background: #172033 !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__panel h2 {
  color: #bfdbfe !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__panel a,
html[data-theme="dark"] .admin-shell .admin-mega-nav__panel a:visited {
  color: #f8fafc !important;
}

html[data-theme="dark"] .admin-shell .admin-mega-nav__panel a:hover,
html[data-theme="dark"] .admin-shell .admin-mega-nav__panel a:focus-visible,
html[data-theme="dark"] .admin-shell .admin-mega-nav__panel a.active {
  border-color: #93c5fd !important;
  background: #1e3a8a !important;
  color: #ffffff !important;
  outline-color: rgba(147, 197, 253, 0.58) !important;
}

@media (max-width: 1180px) {
  .admin-shell .admin-mega-nav {
    overflow-x: auto !important;
    overflow-y: visible !important;
  }

  .admin-shell .admin-mega-nav__panel,
  .admin-shell .admin-mega-nav__item:nth-child(2) .admin-mega-nav__panel,
  .admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel {
    top: clamp(7.1rem, 14vh, 8.65rem) !important;
    width: min(980px, calc(100vw - 1.25rem)) !important;
    max-height: calc(100dvh - 8.85rem - env(safe-area-inset-bottom, 0px)) !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .admin-shell .admin-mega-nav__panel,
  .admin-shell .admin-mega-nav__item:nth-child(2) .admin-mega-nav__panel,
  .admin-shell .admin-mega-nav__item:nth-child(3) .admin-mega-nav__panel {
    top: clamp(9rem, 24vh, 12rem) !important;
    width: calc(100vw - 1rem) !important;
    max-height: calc(100dvh - clamp(10rem, 26vh, 13rem) - env(safe-area-inset-bottom, 0px)) !important;
    grid-template-columns: 1fr !important;
    padding: 0.75rem !important;
  }

  .admin-shell .admin-user-menu__panel {
    top: clamp(4.75rem, 12vh, 6.25rem) !important;
    right: max(0.5rem, env(safe-area-inset-right, 0px)) !important;
    width: calc(100vw - 1rem) !important;
  }
}
