:root {
  color-scheme: light;
  --bg: #edf2ee;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --ink: #19221f;
  --muted: #66746f;
  --muted-strong: #44524d;
  --line: #dce5df;
  --line-strong: #c8d7d0;
  --brand: #136f63;
  --brand-ink: #ffffff;
  --accent: #d96c3b;
  --accent-soft: #fff1e8;
  --green: #20805e;
  --yellow: #b3831d;
  --red: #bd3f37;
  --blue: #2d6fa3;
  --violet: #6f5aa8;
  --shadow: 0 18px 50px rgba(25, 34, 31, .11);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(19, 111, 99, .08) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(19, 111, 99, .05) 0 1px, transparent 1px 100%),
    var(--bg);
  background-size: 34px 34px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  font-size: 16px;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

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

.icon-sprite {
  display: none;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, .12);
  background: #102b25;
  color: #eef8f3;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  background: #f5b24d;
  color: #14231f;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand-copy span,
.footer-label,
.group-box label {
  color: rgba(238, 248, 243, .7);
  font-size: 12px;
}

.group-box {
  display: grid;
  gap: 8px;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  min-height: 42px;
  padding: 0 38px 0 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  appearance: none;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  outline: none;
}

.select-wrap option {
  color: #14231f;
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 12px;
  pointer-events: none;
  transform: translateY(-50%);
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  overflow-y: auto;
  padding-right: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(238, 248, 243, .78);
  text-align: left;
  gap: 10px;
}

.nav-item:hover,
.nav-item:focus-visible {
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

.nav-item.is-active {
  background: #eef8f3;
  color: #102b25;
}

.nav-divider {
  display: block;
  height: 1px;
  margin: 7px 0;
  background: rgba(255, 255, 255, .14);
}

.nav-item svg {
  flex: 0 0 auto;
}

.sidebar-footer {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
}

.sidebar-footer strong {
  font-size: 15px;
}

.sidebar-footer span:last-child {
  color: rgba(238, 248, 243, .7);
  font-size: 12px;
}

.page {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(237, 242, 238, .92);
  backdrop-filter: blur(16px);
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.title-stack {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  overflow-wrap: anywhere;
  font-size: clamp(23px, 2.6vw, 34px);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
}

.content {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px;
}

[data-screen="inicio"],
[data-screen="clientes"],
[data-screen="login"],
[data-screen="recuperar"] {
  grid-template-columns: 1fr;
}

[data-screen="inicio"] .sidebar,
[data-screen="clientes"] .sidebar,
[data-screen="login"] .sidebar,
[data-screen="recuperar"] .sidebar,
[data-screen="inicio"] .topbar,
[data-screen="clientes"] .topbar,
[data-screen="login"] .topbar,
[data-screen="recuperar"] .topbar {
  display: none;
}

[data-screen="inicio"] .content,
[data-screen="clientes"] .content,
[data-screen="login"] .content,
[data-screen="recuperar"] .content {
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.public-shell {
  display: grid;
  align-content: start;
  gap: 32px;
  min-height: 100vh;
  padding: 24px;
}

.public-nav,
.public-hero,
.client-hero,
.client-choice-stage,
.client-sector-hero,
.client-section-line,
.client-layout,
.social-strip,
.domain-section,
.login-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.public-brand,
.public-link,
.choice-card,
.login-button,
.forgot-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.public-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px;
  gap: 10px;
  text-align: left;
}

.public-brand span:last-child {
  display: grid;
  gap: 2px;
}

.public-brand small,
.choice-card small,
.login-panel p,
.client-card span,
.site-preview small,
.login-copy p {
  color: var(--muted);
}

.public-actions,
.public-choice-row,
.client-contact-actions,
.social-actions,
.login-mini-map {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  font-weight: 800;
  gap: 8px;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.public-link.is-current {
  background: var(--brand);
  color: var(--brand-ink);
}

.public-link:hover,
.public-link:focus-visible {
  border-color: var(--brand);
}

.public-link-center {
  justify-content: center;
}

.contact-primary {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  align-items: center;
  gap: 28px;
  padding: 34px 0 56px;
}

.public-copy,
.login-copy {
  display: grid;
  gap: 18px;
}

.public-copy h2,
.client-hero h2,
.login-copy h2 {
  max-width: 780px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.public-copy p,
.client-hero p,
.login-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.choice-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  width: min(360px, 100%);
  min-height: 94px;
  padding: 16px;
  gap: 14px;
  text-align: left;
  box-shadow: 0 12px 32px rgba(25, 34, 31, .08);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.choice-card span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.choice-card strong {
  font-size: 18px;
}

.choice-client:hover,
.choice-client:focus-visible,
.choice-tech:hover,
.choice-tech:focus-visible,
.preview-grid button:hover,
.preview-grid button:focus-visible {
  border-color: var(--brand);
}

.choice-client:hover,
.choice-client:focus-visible,
.choice-tech:hover,
.choice-tech:focus-visible {
  box-shadow: 0 16px 38px rgba(25, 34, 31, .12);
  transform: translateY(-1px);
}

.public-preview {
  display: grid;
}

.domain-section {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 20px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.domain-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.domain-copy p {
  color: var(--muted);
  line-height: 1.5;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.domain-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  gap: 12px;
  text-align: left;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.domain-card:hover,
.domain-card:focus-visible {
  border-color: var(--brand);
  background: var(--surface);
  transform: translateY(-1px);
}

.domain-card span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.domain-card strong {
  overflow-wrap: anywhere;
}

.domain-card small {
  color: var(--muted);
}

.preview-window,
.site-preview,
.login-panel,
.client-card,
.client-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-window {
  display: grid;
  gap: 18px;
  min-height: 430px;
  padding: 20px;
}

.preview-topline,
.site-row,
.site-banner,
.client-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-topline span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-grid button,
.preview-tile {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  text-align: left;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.preview-grid button:hover,
.preview-grid button:focus-visible {
  background: var(--surface);
  transform: translateY(-1px);
}

.preview-grid svg {
  color: var(--brand);
}

.client-hero {
  padding: 24px;
}

.client-choice-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.client-sector-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 111, 99, .12), transparent 54%),
    var(--surface);
  box-shadow: var(--shadow);
}

.client-sector-title {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 14px;
}

.client-sector-title div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.client-sector-title h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.client-sector-title p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.client-sector-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.client-big-choice {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 111, 99, .12), transparent 58%),
    var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.client-big-choice-segmav {
  background:
    linear-gradient(135deg, rgba(89, 69, 143, .14), transparent 58%),
    var(--surface);
}

.client-big-choice:hover,
.client-big-choice:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 18px 44px rgba(25, 34, 31, .14);
  transform: translateY(-2px);
}

.client-big-choice.is-active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 2px var(--brand), var(--shadow);
}

.client-big-choice .module-icon {
  width: 52px;
  height: 52px;
}

.choice-kicker {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7f3517;
  font-size: 12px;
  font-weight: 900;
}

.client-big-choice-segmav .choice-kicker {
  color: #235b60;
}

.client-big-choice strong {
  font-size: clamp(30px, 4vw, 48px);
  line-height: .98;
}

.client-big-choice small {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.choice-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  margin-top: auto;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 900;
}

.client-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 20px;
}

.client-layout-actions {
  grid-template-columns: 1fr;
}

.site-preview {
  display: grid;
  overflow: hidden;
}

.site-option {
  width: 100%;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background-color .16s ease, box-shadow .16s ease;
}

.site-option:hover,
.site-option:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(19, 111, 99, .35);
}

.site-option.is-active {
  box-shadow: inset 5px 0 0 var(--brand);
}

.site-banner,
.site-row {
  align-items: flex-start;
  flex-direction: column;
  min-height: 210px;
  padding: 24px;
}

.site-banner {
  background:
    linear-gradient(135deg, rgba(19, 111, 99, .18), transparent 54%),
    var(--surface);
}

.site-row {
  min-height: 150px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(89, 69, 143, .15), transparent 55%),
    var(--surface);
}

.site-preview span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.site-preview strong {
  max-width: 520px;
  font-size: 28px;
  line-height: 1.1;
}

.client-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.client-card-grid-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 170px;
  padding: 16px;
  box-shadow: none;
}

.client-card svg {
  color: var(--brand);
}

.client-card-link {
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.client-card-link:hover,
.client-card-link:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 12px 30px rgba(25, 34, 31, .1);
  transform: translateY(-1px);
}

.social-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.social-strip div:first-child {
  display: grid;
  gap: 8px;
}

.social-actions {
  justify-content: flex-end;
}

.login-shell {
  align-content: start;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: center;
  gap: 34px;
  min-height: calc(100vh - 120px);
}

.login-mini-map span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  gap: 8px;
  font-weight: 800;
}

.login-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.login-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.login-panel input,
.login-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  outline: none;
}

.login-panel input:focus,
.login-panel select:focus {
  border-color: var(--brand);
}

.prototype-warning {
  padding: 10px 12px;
  border: 1px solid rgba(146, 64, 14, .22);
  border-radius: 8px;
  background: #fff7ed;
  color: #7c2d12 !important;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.45;
}

.login-error {
  padding: 10px 12px;
  border: 1px solid rgba(181, 55, 55, .25);
  border-radius: 8px;
  background: rgba(181, 55, 55, .09);
  color: #8f2525 !important;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.45;
}

.login-button:disabled {
  cursor: wait;
  opacity: .72;
}

.forgot-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: var(--brand);
  font-weight: 900;
  gap: 8px;
}

.forgot-link:hover,
.forgot-link:focus-visible {
  border-color: var(--brand);
  background: var(--surface-soft);
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 900;
  gap: 8px;
  transition: filter .16s ease, transform .16s ease;
}

.login-button:hover,
.login-button:focus-visible {
  filter: brightness(.97);
  transform: translateY(-1px);
}

.recovery-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
}

.recovery-panel {
  align-content: start;
}

.security-note {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.security-note strong {
  font-size: 13px;
}

.security-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.success-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: rgba(32, 128, 94, .12);
  color: var(--green);
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.close-sidebar {
  display: none;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

.menu-button {
  display: none;
}

.notification-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--accent);
}

.environment-tabs {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.environment-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 700;
}

.environment-tabs button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--brand-ink);
}

.session-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.session-user,
.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
}

.session-user {
  max-width: min(260px, 36vw);
  min-height: 42px;
  gap: 9px;
  padding: 5px 11px 5px 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.session-user b {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 8px;
  background: #e8f2ee;
  color: var(--brand);
  font-size: 12px;
}

.session-user span {
  display: grid;
  min-width: 0;
  line-height: 1.05;
}

.session-user strong,
.session-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-user strong {
  font-size: 13px;
}

.session-user small {
  color: var(--muted);
  font-size: 11px;
}

.logout-button {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(19, 111, 99, .22);
  background: #e8f2ee;
  color: var(--brand);
  font-size: 12px;
  white-space: nowrap;
}

.logout-button:hover,
.logout-button:focus-visible {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
}

.environment-home,
.hero-band {
  display: grid;
  gap: 22px;
}

.hero-band {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  align-items: stretch;
}

.operation-summary {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compact-summary {
  padding: 22px;
}

.summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.summary-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.summary-copy p {
  max-width: 660px;
  color: var(--muted);
  line-height: 1.55;
}

.env-badge,
.status-pill,
.module-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  white-space: nowrap;
}

.env-badge {
  background: var(--accent-soft);
  color: #7f3517;
}

.status-pill {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted-strong);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
}

.dashboard-stats {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.stat-card,
.module-card,
.activity-card,
.mini-card,
.lane-card,
.access-note,
.access-summary-card,
.identity-section,
.identity-card,
.access-review,
.access-card,
.integration-bridge {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stat-card {
  display: grid;
  gap: 6px;
  min-height: 100px;
  padding: 14px;
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.stat-card strong {
  font-size: 30px;
  line-height: 1;
}

.stat-card small {
  color: var(--muted);
}

.operation-map {
  display: grid;
  min-height: 420px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  box-shadow: var(--shadow);
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.map-header span {
  color: var(--muted);
  font-size: 13px;
}

.flow-art {
  width: 100%;
  height: auto;
  min-height: 290px;
}

.flow-node {
  fill: #ffffff;
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.flow-node-accent {
  fill: rgba(19, 111, 99, .12);
  stroke: var(--brand);
}

.flow-line {
  stroke: #b7cac0;
  stroke-width: 2.5;
}

.flow-pulse {
  fill: var(--accent);
}

.flow-label {
  fill: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.flow-meta {
  fill: var(--muted);
  font-size: 12px;
}

.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-line p {
  color: var(--muted);
  line-height: 1.5;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.module-grid-main {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.module-card {
  display: grid;
  min-height: 174px;
  padding: 16px;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.module-card:hover,
.module-card:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 12px 32px rgba(25, 34, 31, .12);
  transform: translateY(-2px);
}

.module-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.module-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--brand);
}

.module-icon.netmav {
  background: rgba(19, 111, 99, .12);
}

.module-icon.segmav {
  background: rgba(111, 90, 168, .14);
  color: var(--violet);
}

.module-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.module-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.module-number {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.module-label {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.activity-card,
.mini-card,
.lane-card {
  padding: 16px;
}

.activity-card {
  display: grid;
  gap: 14px;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.activity-item:first-child {
  border-top: 0;
}

.activity-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.activity-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.activity-copy strong {
  overflow-wrap: anywhere;
}

.activity-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.module-view {
  display: grid;
  gap: 22px;
}

.module-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.module-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.back-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  gap: 8px;
}

.module-view-header p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.integration-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(19, 111, 99, .1), transparent 58%),
    var(--surface);
  box-shadow: var(--shadow);
}

.integration-bridge div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.integration-bridge p {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.45;
}

.integration-bridge small {
  color: var(--muted);
  font-weight: 700;
}

.integration-button {
  flex: 0 0 auto;
  min-width: 210px;
}

.journey2-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  align-items: stretch;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 111, 99, .13), transparent 58%),
    var(--surface);
  box-shadow: var(--shadow);
}

.journey2-hero > div:first-child {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.journey2-hero h3 {
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  line-height: 1.05;
}

.journey2-hero p,
.journey2-card p,
.journey2-panel .section-line p,
.legacy-journey-strip p {
  color: var(--muted);
  line-height: 1.45;
}

.journey2-status {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
}

.journey2-status span,
.journey2-status small {
  color: var(--muted);
  font-weight: 800;
}

.journey2-status strong {
  font-size: 1.65rem;
  line-height: 1;
}

.journey-live-panel {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(280px, 1.2fr);
  align-items: center;
  gap: 24px;
  min-height: 320px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.journey-live-ring {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
}

.journey-live-ring svg {
  width: min(260px, 100%);
  transform: rotate(-90deg);
}

.journey-live-ring circle {
  fill: none;
  stroke-width: 14;
}

.journey-live-track {
  stroke: #e4ece8;
}

.journey-live-value {
  stroke: var(--brand);
  stroke-dasharray: 634.6;
  stroke-dashoffset: 634.6;
  stroke-linecap: round;
  transition: stroke-dashoffset .45s ease;
}

.journey-live-center {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.journey-live-center strong,
.journey-live-copy h3 {
  font-variant-numeric: tabular-nums;
}

.journey-live-center strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.journey-live-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

.journey-live-state i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.journey-live-state.working {
  color: var(--green);
}

.journey-live-state.paused {
  color: var(--yellow);
}

.journey-live-state.finished {
  color: var(--blue);
}

.journey-live-center small,
.journey-live-copy small {
  color: var(--muted);
}

.journey-live-copy {
  display: grid;
  gap: 11px;
  min-width: 0;
}

.journey-live-copy h3 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: .95;
}

.journey-live-copy p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.5;
}

.journey-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.journey-live-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 58px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  gap: 10px;
  text-align: left;
}

.journey-live-action svg {
  flex: 0 0 auto;
}

.journey-live-action span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.journey-live-action strong,
.journey-live-action small {
  overflow-wrap: anywhere;
}

.journey-live-action.is-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
}

.journey-live-action.is-primary small {
  color: rgba(255, 255, 255, .78);
}

.journey-live-action.is-secondary:hover,
.journey-live-action.is-secondary:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.journey-live-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e4ece8;
}

.journey-live-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width .45s ease;
}

.journey2-panel,
.journey2-card,
.legacy-journey-strip {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.punch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.punch-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
}

.punch-card span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.punch-card strong {
  font-size: 1.18rem;
}

.punch-card small {
  color: var(--muted);
  line-height: 1.35;
}

.punch-card-action {
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(19, 111, 99, .12), transparent 60%),
    var(--surface);
  box-shadow: inset 0 0 0 2px rgba(19, 111, 99, .16);
}

.punch-card-action:hover,
.punch-card-action:focus-visible {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(19, 111, 99, .22), var(--shadow-soft);
}

.punch-card.is-done .module-icon {
  background: #e5f1ec;
}

.journey2-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.journey2-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.journey2-card-head div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.journey2-field {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.journey2-field select,
.journey2-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  outline: none;
}

.journey2-field select {
  min-height: 42px;
  padding: 0 10px;
}

.journey2-field textarea {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}

.journey2-field select:focus,
.journey2-field textarea:focus {
  border-color: var(--brand);
}

.journey2-full-button {
  width: fit-content;
}

.journey2-success {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #e5f1ec;
  color: var(--brand) !important;
  font-weight: 900;
}

.journey2-mini-list {
  display: grid;
  gap: 8px;
}

.journey2-mini-list span {
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  line-height: 1.35;
}

.journey2-mini-list strong {
  color: var(--ink);
}

.journey2-report-grid,
.migration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.journey2-report,
.migration-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
}

.journey2-report svg {
  flex: 0 0 auto;
  color: var(--brand);
}

.journey2-report span,
.migration-step div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.journey2-report small,
.migration-step small {
  color: var(--muted);
  line-height: 1.35;
}

.migration-step > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #e5f1ec;
  color: var(--brand);
  font-weight: 900;
}

.legacy-journey-strip {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(245, 172, 66, .12), transparent 62%),
    var(--surface);
}

.legacy-journey-strip > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.journey-profile-strip {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px) minmax(220px, 300px);
}

.journey-profile-panel {
  display: grid;
  gap: 16px;
}

.journey-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 14px;
  align-items: start;
}

.journey-profile-form {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.journey-profile-box {
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.journey-profile-box-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 2px;
}

.journey-profile-box-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.journey-profile-box-head h4 {
  font-size: 1.05rem;
}

.journey-profile-box-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.journey-profile-field {
  display: grid;
  gap: 6px;
}

.journey-profile-field span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
}

.form-inline-message {
  padding: 9px 10px;
  border: 1px solid rgba(181, 55, 55, .25);
  border-radius: 8px;
  background: rgba(181, 55, 55, .09);
  color: #8f2525;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.form-inline-message[hidden] {
  display: none;
}

.journey-profile-form input,
.journey-profile-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 700;
  outline: none;
}

.journey-profile-form input:focus,
.journey-profile-form select:focus {
  border-color: var(--brand);
}

.journey-form-action {
  width: fit-content;
  margin-top: 2px;
}

.journey-password-box .journey-form-action {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
}

.journey-admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.journey-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.journey-admin-table th,
.journey-admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.journey-admin-table th {
  color: var(--muted);
  font-size: 12px;
}

.journey-admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.journey-admin-table tr.is-selected {
  background: rgba(19, 111, 99, .07);
}

.journey-person-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 250px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.journey-person-button img,
.journey-person-button .identity-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  object-fit: cover;
}

.journey-person-button span:last-child {
  display: grid;
  gap: 3px;
}

.journey-person-button small {
  color: var(--muted);
  font-weight: 700;
}

.journey-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.journey-status-dot.working {
  background: var(--green);
}

.journey-status-dot.paused {
  background: var(--yellow);
}

.journey-admin-detail {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.journey-admin-detail .section-line {
  padding: 18px;
}

.journey-detail-tabs {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.journey-detail-tabs button {
  flex: 1 1 0;
  min-height: 50px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.journey-detail-tabs button.is-active {
  border-bottom-color: var(--brand);
  color: var(--brand);
}

.journey-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.journey-detail-tab-title {
  display: grid;
  gap: 4px;
  padding: 18px 18px 0;
}

.journey-detail-tab-title h4 {
  margin: 0;
  font-size: 1.15rem;
}

.journey-detail-tab-title p {
  margin: 0;
  color: var(--muted);
}

.journey-detail-box {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.journey-detail-box h4 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.journey-detail-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.journey-detail-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.journey-detail-list.compact {
  padding: 0;
}

.journey-detail-list.compact span,
.journey-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.journey-detail-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.journey-detail-row small {
  color: var(--muted);
  line-height: 1.35;
}

.app-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(19, 111, 99, .22);
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.access-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(19, 111, 99, .1), transparent 58%),
    var(--surface);
  box-shadow: var(--shadow);
}

.access-note div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.access-note p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.45;
}

.access-note .back-button {
  flex: 0 0 auto;
}

.access-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.access-summary-card {
  display: grid;
  gap: 6px;
  min-height: 124px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.access-summary-card span,
.access-summary-card small {
  color: var(--muted);
}

.access-summary-card strong {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.identity-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}

.identity-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.identity-avatar {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--brand);
  font-weight: 900;
}

.identity-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.identity-main h4 {
  font-size: 1rem;
}

.identity-main span,
.identity-main p,
.identity-main small {
  color: var(--muted);
  line-height: 1.4;
}

.identity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.identity-meta span,
.identity-meta small {
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: .82rem;
  font-weight: 800;
}

.access-review {
  display: grid;
  gap: 14px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.access-review ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.access-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 230px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.access-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.access-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.access-card p {
  color: var(--text);
  line-height: 1.45;
}

.access-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.module-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.mini-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
}

.mini-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.mini-card strong {
  font-size: 27px;
  line-height: 1;
}

.mini-card small {
  color: var(--muted);
}

.work-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lane-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 330px;
}

.lane-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lane-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.queue-list {
  display: grid;
  gap: 10px;
}

.queue-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.queue-item strong {
  overflow-wrap: anywhere;
}

.queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.queue-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eaf1ed;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.journey-board {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.journey-timeline,
.team-grid {
  display: grid;
  gap: 12px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline-row time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.timeline-row strong {
  display: block;
  margin-bottom: 3px;
}

.timeline-row span {
  color: var(--muted);
  font-size: 13px;
}

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

.tech-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tech-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #e5f1ec;
  color: var(--brand);
  font-weight: 800;
}

.tech-top div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tech-top strong,
.tech-top span {
  overflow-wrap: anywhere;
}

.tech-top span {
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efeb;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

[data-env="segmav"] {
  --brand: #59458f;
  --accent: #2d7f86;
  --accent-soft: #e9f6f3;
}

[data-env="segmav"] .sidebar {
  background: #251d3f;
}

[data-env="segmav"] .brand-mark {
  background: #75c7bb;
}

[data-env="segmav"] .flow-node-accent {
  fill: rgba(89, 69, 143, .13);
  stroke: var(--brand);
}

[data-env="segmav"] .env-badge {
  color: #235b60;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(12, 18, 16, .45);
}

@media (max-width: 1180px) {
  .hero-band,
  .dashboard-bottom,
  .journey-board,
  .journey-live-panel,
  .journey2-hero,
  .journey2-grid,
  .public-hero,
  .client-layout,
  .client-choice-stage,
  .domain-section,
  .login-layout {
    grid-template-columns: 1fr;
  }

  .operation-map {
    min-height: auto;
  }

  .login-layout {
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    width: min(88vw, 320px);
    transition: transform .2s ease;
    box-shadow: var(--shadow);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .close-sidebar,
  .menu-button {
    display: inline-grid;
  }

  .topbar {
    padding: 14px 18px;
  }

  .content {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .public-shell {
    gap: 20px;
    padding: 14px;
  }

  .public-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .public-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .public-link {
    justify-content: center;
  }

  .public-hero {
    gap: 20px;
    padding: 10px 0 26px;
  }

  .public-copy h2,
  .client-hero h2,
  .login-copy h2 {
    font-size: 36px;
  }

  .public-copy p,
  .client-hero p,
  .login-copy p {
    font-size: 16px;
  }

  .choice-card {
    width: 100%;
  }

  .preview-window {
    min-height: auto;
  }

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

  .preview-grid button {
    min-height: 118px;
    padding: 14px;
  }

  .client-card-grid {
    grid-template-columns: 1fr;
  }

  .client-card-grid-actions {
    grid-template-columns: 1fr;
  }

  .domain-grid {
    grid-template-columns: 1fr;
  }

  .client-hero,
  .client-sector-hero,
  .social-strip,
  .preview-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .client-contact-actions,
  .client-sector-actions,
  .social-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-preview strong {
    font-size: 24px;
  }

  .site-banner {
    min-height: 178px;
  }

  .site-row {
    min-height: 136px;
  }

  .client-card {
    min-height: 132px;
  }

  .client-big-choice {
    min-height: 220px;
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-left,
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .environment-tabs {
    flex: 1 1 auto;
  }

  .environment-tabs button {
    flex: 1 1 0;
    padding-inline: 8px;
  }

  .legacy-journey-strip {
    grid-template-columns: 1fr;
  }

  .journey-live-panel {
    gap: 14px;
    min-height: auto;
    padding: 18px;
  }

  .journey-live-ring {
    min-height: 230px;
  }

  .journey-live-actions,
  .journey-live-action {
    width: 100%;
  }

  .session-actions {
    order: 3;
    width: 100%;
    justify-content: flex-end;
  }

  .session-user {
    max-width: min(100%, 240px);
  }

  .summary-header,
  .section-line,
  .access-note,
  .integration-bridge,
  .legacy-journey-strip,
  .module-view-header {
    align-items: stretch;
    flex-direction: column;
  }

  .operation-summary,
  .module-view-header {
    padding: 18px;
  }

  .stat-grid,
  .module-grid,
  .access-summary-grid,
  .access-grid,
  .identity-grid,
  .module-metrics,
  .work-lanes,
  .punch-grid,
  .journey2-report-grid,
  .migration-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .module-heading {
    flex-direction: column;
  }

  .identity-card {
    flex-direction: column;
  }

  .journey-profile-grid,
  .journey2-grid,
  .journey-detail-grid {
    grid-template-columns: 1fr;
  }

  .journey-form-action {
    width: 100%;
  }

  .journey-admin-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .journey-admin-table,
  .journey-admin-table tbody,
  .journey-admin-table tr,
  .journey-admin-table td {
    display: block;
    width: 100%;
  }

  .journey-admin-table thead {
    display: none;
  }

  .journey-admin-table tr {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
  }

  .journey-admin-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .journey-admin-table td {
    display: grid;
    gap: 5px;
    padding: 0;
    border-bottom: 0;
    white-space: normal;
  }

  .journey-admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .journey-admin-table td:first-child::before {
    display: none;
  }

  .journey-person-button {
    min-width: 0;
  }

  .journey-admin-table .back-button {
    width: 100%;
    justify-content: center;
  }

  .journey-detail-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .journey-detail-tabs button {
    min-width: 0;
  }

  .journey-detail-row {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-item,
  .timeline-row {
    grid-template-columns: 1fr;
  }

  .flow-art {
    min-height: 240px;
  }
}

@media (max-width: 460px) {
  .content {
    padding: 14px;
  }

  h1 {
    font-size: 24px;
  }

  .hero-band,
  .dashboard-bottom,
  .module-view,
  .journey-board {
    gap: 14px;
  }

  .operation-summary,
  .operation-map,
  .activity-card,
  .mini-card,
  .lane-card,
  .module-view-header {
    padding: 14px;
  }
}
