:root {
  --etpa-bg-primary: #081D2E;
  --etpa-bg-secondary: #10375C;
  --etpa-cyan: #00C2D7;
  --etpa-turquoise: #2ED6D0;
  --etpa-white: #FFFFFF;
  --etpa-success: #2E7D32;
  --etpa-navy: var(--etpa-bg-primary);
  --etpa-blue: var(--etpa-bg-secondary);
  --etpa-teal: var(--etpa-cyan);
  --etpa-teal-soft: var(--etpa-turquoise);
  --etpa-line: rgba(255, 255, 255, 0.14);
  --ink: #f4fbff;
  --muted: #c2d2dd;
  --line: var(--etpa-line);
  --surface: var(--etpa-bg-primary);
  --surface-strong: rgba(16, 55, 92, 0.86);
  --panel: rgba(255, 255, 255, 0.085);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --white: var(--etpa-white);
  --water: var(--etpa-teal);
  --water-dark: var(--etpa-teal-soft);
  --green: var(--etpa-success);
  --amber: var(--etpa-teal-soft);
  --sand: rgba(16, 55, 92, 0.72);
  --focus-ring: rgba(0, 194, 215, 0.34);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.24);
  --glass-border: rgba(255, 255, 255, 0.14);
  --etpa-card-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04)),
    rgba(8, 29, 46, 0.72);
  --etpa-card-bg-strong:
    linear-gradient(145deg, rgba(16, 55, 92, 0.78), rgba(8, 29, 46, 0.9));
  --etpa-card-bg-subtle:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(0, 194, 215, 0.035)),
    rgba(8, 29, 46, 0.58);
  --etpa-card-border: rgba(255, 255, 255, 0.15);
  --etpa-card-border-strong: rgba(0, 194, 215, 0.28);
  --etpa-card-shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
  --etpa-card-shadow-hover: 0 22px 58px rgba(0, 194, 215, 0.14);
  --etpa-empty-bg:
    linear-gradient(135deg, rgba(0, 194, 215, 0.12), rgba(46, 214, 208, 0.045)),
    rgba(8, 29, 46, 0.64);
  --etpa-input-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.065)),
    rgba(16, 55, 92, 0.34);
  --etpa-input-border: rgba(255, 255, 255, 0.16);
  --etpa-input-border-focus: rgba(0, 194, 215, 0.58);
  --etpa-input-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  --etpa-input-placeholder: rgba(184, 200, 214, 0.72);
  --etpa-table-header-bg:
    linear-gradient(180deg, rgba(16, 55, 92, 0.72), rgba(8, 29, 46, 0.86));
  --etpa-table-row-hover: rgba(0, 194, 215, 0.07);
  --etpa-table-divider: rgba(255, 255, 255, 0.11);
  --etpa-error-ink: #ffd4c7;
  --etpa-error-bg: rgba(88, 38, 32, 0.28);
  --etpa-error-border: rgba(255, 171, 145, 0.34);
  --etpa-success-ink: #d8f3d2;
  --etpa-success-bg: rgba(46, 125, 50, 0.16);
  --etpa-success-border: rgba(46, 125, 50, 0.38);
  --page-bg-start: var(--etpa-bg-primary);
  --page-bg-end: var(--etpa-bg-secondary);
  --page-glow-cyan: rgba(0, 194, 215, 0.14);
  --page-glow-teal: rgba(46, 214, 208, 0.1);
  --header-bg: rgba(8, 29, 46, 0.9);
  --header-border: rgba(255, 255, 255, 0.14);
  --header-ink: #f4fbff;
  --header-muted: #b8c8d6;
  --header-hover-bg: rgba(255, 255, 255, 0.08);
  --theme-toggle-bg: rgba(16, 55, 92, 0.78);
  --theme-toggle-border: rgba(255, 255, 255, 0.16);
  --theme-toggle-icon: var(--etpa-turquoise);
  --theme-toggle-knob: var(--etpa-turquoise);
  --footer-border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, var(--page-glow-cyan), transparent 34%),
    radial-gradient(circle at bottom right, var(--page-glow-teal), transparent 32%),
    linear-gradient(135deg, var(--page-bg-start) 0%, var(--page-bg-end) 100%);
  color: var(--ink);
  font-family:
    Montserrat,
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--header-ink);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--water-dark);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.75rem;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}

.hero-brand-logo {
  display: block;
  width: clamp(112px, 14vw, 156px);
  height: auto;
  max-width: 100%;
  margin-bottom: 22px;
  object-fit: contain;
}

.sidebar-brand-logo {
  flex: 0 0 auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.nav a {
  padding: 9px 12px;
  color: var(--header-muted);
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: 8px;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--header-hover-bg);
  color: var(--header-ink);
  outline: none;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: 66px;
  height: 32px;
  padding: 4px;
  background: var(--theme-toggle-bg);
  border: 1px solid var(--theme-toggle-border);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.theme-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  margin-left: 1px;
  border: 2px solid var(--theme-toggle-icon);
  border-radius: 999px;
  color: var(--theme-toggle-icon);
}

.theme-icon::before,
.theme-icon::after {
  position: absolute;
  content: "";
}

.theme-icon::before {
  inset: 4px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0.42;
}

.theme-icon::after {
  display: none;
}

.theme-knob {
  display: block;
  width: 22px;
  height: 22px;
  background: var(--theme-toggle-knob);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(24, 34, 31, 0.2);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.theme-toggle[aria-pressed="true"] .theme-icon {
  background: transparent;
  border-color: var(--theme-toggle-icon);
  box-shadow: inset 6px -3px 0 var(--theme-toggle-icon);
}

.theme-toggle[aria-pressed="true"] .theme-icon::before,
.theme-toggle[aria-pressed="true"] .theme-icon::after {
  display: none;
}

.theme-toggle[aria-pressed="true"] .theme-knob {
  transform: translateX(2px);
  background: var(--theme-toggle-knob);
}

.nav-button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-button:hover,
.nav-button:focus-visible {
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--surface);
  transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed,
.sidebar-collapsed .app-shell {
  grid-template-columns: 86px minmax(0, 1fr);
}

.app-main {
  position: relative;
  z-index: 0;
  min-width: 0;
}

.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  overflow: visible;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 194, 215, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(8, 29, 46, 0.98) 0%, rgba(6, 23, 38, 0.99) 56%, rgba(4, 15, 26, 1) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 18px 0 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.sidebar-header {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-header::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(0, 194, 215, 0.44), rgba(46, 214, 208, 0.08), transparent);
}

.sidebar-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sidebar-dots form {
  margin: 0;
}

.sidebar-action,
.sidebar-collapse {
  display: inline-grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  color: rgba(244, 251, 255, 0.76);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  cursor: pointer;
}

.sidebar-action:hover,
.sidebar-action:focus-visible,
.sidebar-collapse:hover,
.sidebar-collapse:focus-visible {
  color: #ffffff;
  background: rgba(0, 194, 215, 0.13);
  border-color: rgba(0, 194, 215, 0.36);
  outline: 3px solid rgba(0, 194, 215, 0.2);
  outline-offset: 2px;
}

.compact-theme {
  width: 68px;
  height: 38px;
}

.compact-theme .theme-icon {
  transform: scale(0.74);
  transform-origin: center;
  margin-left: 1px;
}

.compact-theme .theme-knob {
  width: 20px;
  height: 20px;
}

.sidebar-brand {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 4px;
  margin: -4px;
  border-radius: 10px;
  font-weight: 900;
}

.sidebar-brand:hover,
.sidebar-brand:focus-visible {
  outline: 3px solid rgba(0, 194, 215, 0.18);
  outline-offset: 2px;
}

.sidebar-brand-note {
  grid-column: 1 / -1;
  margin: -2px 0 0 54px;
  color: rgba(184, 200, 214, 0.9);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.25;
}

.sidebar-brand-text {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.sidebar-brand-text strong {
  color: #ffffff;
  line-height: 1.15;
}

.sidebar-brand-text small {
  color: #2ED6D0;
  font-size: 0.74rem;
  font-weight: 780;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  color: #f4fbff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
    rgba(8, 29, 46, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#account-menu-button {
  min-width: 0;
}

.sidebar-user:hover,
.sidebar-user:focus-visible {
  background:
    linear-gradient(145deg, rgba(0, 194, 215, 0.14), rgba(46, 214, 208, 0.06)),
    rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 194, 215, 0.36);
  outline: 3px solid rgba(0, 194, 215, 0.18);
  outline-offset: 2px;
}

.sidebar-avatar {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #081D2E;
  background: linear-gradient(135deg, #2ED6D0, #00C2D7);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 194, 215, 0.18);
}

.sidebar-user small,
.sidebar-section {
  display: block;
  color: rgba(184, 200, 214, 0.86);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sidebar-user-meta {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
}

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

.sidebar-user strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  padding: 14px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-section {
  margin: 13px 0 5px;
  padding-left: 12px;
  letter-spacing: 0.075em;
}

.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  color: rgba(218, 232, 239, 0.78);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.sidebar-link:hover,
.sidebar-link:focus-visible,
.sidebar-link[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(0, 194, 215, 0.24);
}

.sidebar-link:focus-visible {
  outline: 3px solid rgba(0, 194, 215, 0.2);
  outline-offset: 2px;
}

.sidebar-link[aria-current="page"] {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0, 194, 215, 0.2), rgba(46, 214, 208, 0.08)),
    rgba(255, 255, 255, 0.085);
  border-color: rgba(0, 194, 215, 0.36);
  box-shadow:
    inset 3px 0 0 #2ED6D0,
    0 10px 22px rgba(0, 0, 0, 0.12);
}

.sidebar-link[aria-current="page"] .sidebar-icon {
  color: #2ED6D0;
  border-color: rgba(46, 214, 208, 0.72);
}

.sidebar-link.disabled {
  opacity: 0.56;
  cursor: default;
}

.sidebar-link.disabled:hover {
  color: rgba(184, 200, 214, 0.86);
  background: transparent;
  border-color: transparent;
}

.sidebar-link.compact {
  min-height: 38px;
}

.logout-link {
  cursor: pointer;
}

.sidebar-account {
  flex: 0 0 auto;
  padding: 14px 16px 18px;
  background: linear-gradient(
    0deg,
    rgba(4, 15, 26, 1) 0%,
    rgba(8, 29, 46, 0.88) 78%,
    rgba(8, 29, 46, 0) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.account-menu {
  position: relative;
}

.account-more {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-left: auto;
}

.account-more::before,
.account-more::after {
  position: absolute;
  left: 7px;
  width: 4px;
  height: 4px;
  content: "";
  background: var(--muted);
  border-radius: 999px;
}

.account-more::before {
  top: 3px;
  box-shadow: 0 5px 0 var(--muted);
}

.account-more::after {
  bottom: 1px;
}

.account-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 80;
  display: grid;
  gap: 3px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(16, 55, 92, 0.92), rgba(8, 29, 46, 0.97)),
    #081D2E;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.account-dropdown[hidden] {
  display: none;
}

.account-menu form {
  margin: 0;
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 780;
  text-align: left;
  cursor: pointer;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  color: #2ED6D0;
  background: rgba(0, 194, 215, 0.12);
}

.account-menu-item:focus-visible {
  outline: 3px solid rgba(0, 194, 215, 0.2);
  outline-offset: 2px;
}

.account-menu-item.danger {
  color: #fca5a5;
}

.account-menu-item.danger:hover,
.account-menu-item.danger:focus-visible {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.36);
}

.account-menu-separator {
  height: 1px;
  margin: 4px 2px;
  background: rgba(255, 255, 255, 0.12);
}

.menu-theme-toggle {
  justify-content: flex-start;
  width: 100%;
  height: auto;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.menu-theme-toggle .theme-icon {
  width: 18px;
  height: 18px;
  margin-left: 0;
  transform: scale(0.74);
}

.menu-theme-toggle .theme-knob {
  display: none;
}

.sidebar-collapsed .app-sidebar {
  align-items: center;
  padding: 0;
}

.sidebar-collapsed .sidebar-header,
.sidebar-collapsed .sidebar-nav,
.sidebar-collapsed .sidebar-account {
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
}

.sidebar-collapsed .sidebar-dots {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  width: 100%;
}

.sidebar-collapsed .sidebar-brand,
.sidebar-collapsed .sidebar-user,
.sidebar-collapsed .sidebar-nav {
  width: 100%;
}

.sidebar-collapsed .sidebar-nav {
  overflow-x: visible;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-collapsed .sidebar-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sidebar-collapsed .sidebar-brand,
.sidebar-collapsed .sidebar-user,
.sidebar-collapsed .sidebar-link {
  justify-content: center;
}

.sidebar-collapsed .sidebar-brand-text,
.sidebar-collapsed .sidebar-brand-note,
.sidebar-collapsed .sidebar-user-meta,
.sidebar-collapsed .sidebar-section,
.sidebar-collapsed .sidebar-label,
.sidebar-collapsed .account-more {
  display: none;
}

.sidebar-collapsed .sidebar-user {
  padding: 10px;
}

.sidebar-collapsed .sidebar-avatar {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
}

.sidebar-collapsed .account-dropdown {
  left: calc(100% + 12px);
  right: auto;
  bottom: 0;
  width: 248px;
}

.sidebar-collapsed .sidebar-link {
  position: relative;
  z-index: 1;
  min-height: 42px;
  padding: 10px;
}

.sidebar-collapsed .sidebar-link:hover,
.sidebar-collapsed .sidebar-link:focus-visible {
  z-index: 90;
}

.sidebar-tooltip {
  position: fixed;
  z-index: 150;
  max-width: 220px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid rgba(0, 194, 215, 0.35);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(24, 34, 31, 0.2);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 120ms ease;
  pointer-events: none;
}

.sidebar-tooltip[data-open="true"] {
  opacity: 1;
}

.collapse-icon {
  border: 0;
}

.collapse-icon::before {
  position: absolute;
  inset: 4px 3px 4px 7px;
  content: "";
  border-bottom: 2px solid var(--muted);
  border-left: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.sidebar-icon {
  position: relative;
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.dashboard-icon {
  background:
    linear-gradient(var(--muted), var(--muted)) 0 0 / 7px 7px no-repeat,
    linear-gradient(var(--muted), var(--muted)) 11px 0 / 7px 7px no-repeat,
    linear-gradient(var(--muted), var(--muted)) 0 11px / 7px 7px no-repeat,
    linear-gradient(var(--muted), var(--muted)) 11px 11px / 7px 7px no-repeat;
}

.calculator-icon,
.clients-icon,
.projects-icon,
.users-icon,
.suppliers-icon,
.costs-icon,
.monitoring-icon,
.site-icon,
.logout-icon {
  border: 2px solid var(--muted);
  border-radius: 5px;
}

.calculator-icon::before {
  position: absolute;
  inset: 5px 3px auto;
  height: 2px;
  content: "";
  background: var(--muted);
}

.projects-icon::before,
.clients-icon::before,
.users-icon::before,
.suppliers-icon::before,
.costs-icon::before,
.monitoring-icon::before,
.site-icon::before,
.logout-icon::before {
  position: absolute;
  content: "";
  background: var(--muted);
}

.projects-icon::before {
  left: 3px;
  right: 3px;
  top: 4px;
  height: 2px;
  box-shadow:
    0 5px 0 var(--muted),
    0 10px 0 var(--muted);
}

.clients-icon::before {
  left: 5px;
  top: 3px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  box-shadow: 0 8px 0 2px var(--muted);
}

.users-icon::before {
  left: 2px;
  top: 3px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  box-shadow:
    8px 0 0 var(--muted),
    0 8px 0 1px var(--muted),
    8px 8px 0 1px var(--muted);
}

.suppliers-icon::before {
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 8px;
  border-radius: 2px 2px 0 0;
}

.costs-icon::before {
  left: 6px;
  top: 2px;
  width: 2px;
  height: 12px;
}

.monitoring-icon::before {
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 2px;
  box-shadow:
    3px -4px 0 var(--muted),
    7px -8px 0 var(--muted);
}

.site-icon {
  border-radius: 999px;
}

.site-icon::before {
  left: 2px;
  right: 2px;
  top: 7px;
  height: 2px;
}

.logout-icon::before {
  right: -4px;
  top: 6px;
  width: 8px;
  height: 2px;
}

.sidebar-collapsed .collapse-icon::before {
  inset: 4px 7px 4px 3px;
  transform: rotate(225deg);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 78px);
  min-height: calc(100vh - 72px);
  padding: clamp(46px, 7vw, 92px) clamp(20px, 5vw, 72px) clamp(42px, 6vw, 86px);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(8, 29, 46, 0.2) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 13% 16%, rgba(0, 194, 215, 0.16), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(46, 214, 208, 0.14), transparent 28%),
    linear-gradient(90deg, rgba(8, 29, 46, 0.98) 0%, rgba(8, 29, 46, 0.9) 46%, rgba(16, 55, 92, 0.86) 100%),
    linear-gradient(
      135deg,
      rgba(8, 29, 46, 0.98) 0%,
      rgba(16, 55, 92, 0.96) 100%
    );
  color: var(--etpa-white);
}

.hero::before {
  position: absolute;
  inset: 9% 5% auto auto;
  z-index: -1;
  width: min(46vw, 680px);
  height: min(46vw, 680px);
  content: "";
  background:
    radial-gradient(circle, rgba(0, 194, 215, 0.16), rgba(46, 214, 208, 0.06) 38%, transparent 68%);
  filter: blur(4px);
  opacity: 0.78;
}

.hero::after {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 0;
  left: clamp(20px, 5vw, 72px);
  z-index: -1;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(46, 214, 208, 0.4), transparent);
}

.hero-content {
  max-width: 720px;
}

.hero-brand-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  margin: 0 0 18px;
  color: #dffdf9;
  background:
    linear-gradient(135deg, rgba(0, 194, 215, 0.18), rgba(46, 214, 208, 0.07)),
    rgba(8, 29, 46, 0.62);
  border: 1px solid rgba(46, 214, 208, 0.32);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(0, 194, 215, 0.1);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-slogan {
  margin: 0 0 14px;
  color: var(--etpa-turquoise);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 850;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--water-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 4.6vw, 4.85rem);
  line-height: 1.01;
  letter-spacing: 0;
}

h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 3.05rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
}

.subtitle {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--water-dark);
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  font-weight: 780;
}

.summary {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--water-dark);
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--water-dark), var(--water));
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(16, 55, 92, 0.18);
}

.button.secondary {
  color: var(--water-dark);
  background: var(--panel);
  border-color: rgba(46, 214, 208, 0.28);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: var(--etpa-bg-primary);
  background: linear-gradient(135deg, var(--etpa-turquoise), var(--etpa-cyan));
  border-color: transparent;
}

.hero .eyebrow,
.hero .subtitle {
  color: #2ED6D0;
}

.hero .summary {
  color: #d7eef2;
}

.hero-proof-card {
  position: relative;
  margin: 0;
  padding: clamp(8px, 1.1vw, 12px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(8, 29, 46, 0.42);
  border: 1px solid rgba(46, 214, 208, 0.26);
  border-radius: 8px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.055) inset;
  backdrop-filter: blur(18px);
}

.hero-proof-card::before {
  position: absolute;
  inset: 16px;
  content: "";
  border: 1px solid rgba(46, 214, 208, 0.22);
  border-radius: 8px;
  pointer-events: none;
}

.hero-proof-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(58vh, 560px);
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.hero-proof-card figcaption {
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  left: clamp(18px, 3vw, 34px);
  display: grid;
  gap: 6px;
  max-width: 440px;
  padding: 14px 16px;
  color: var(--etpa-white);
  background:
    linear-gradient(135deg, rgba(8, 29, 46, 0.88), rgba(16, 55, 92, 0.78)),
    rgba(8, 29, 46, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.hero-proof-card figcaption span {
  color: var(--etpa-turquoise);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-proof-card figcaption strong {
  font-size: clamp(0.98rem, 1.3vw, 1.14rem);
  line-height: 1.28;
}

.button.danger {
  color: #a33a28;
  border-color: #cc8f82;
  background: #fff8f6;
}

.button.danger:hover,
.button.danger:focus-visible {
  color: #7a2e1f;
  background: #f9ece8;
  border-color: #a33a28;
}

.button.danger-subtle {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 760;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 194, 215, 0.18);
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 420px;
  padding: clamp(18px, 3vw, 34px);
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.water-panel {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 280px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.water-panel::before {
  position: absolute;
  inset: auto 0 0;
  height: 68%;
  content: "";
}

.water-panel::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 72px;
  content: "";
  border: 8px solid rgba(255, 255, 255, 0.72);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.water-panel span {
  position: relative;
  z-index: 1;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 8px;
}

.water-panel.before {
  background: rgba(16, 55, 92, 0.58);
  color: var(--muted);
}

.water-panel.before::before {
  background:
    linear-gradient(180deg, rgba(16, 55, 92, 0.18), rgba(8, 29, 46, 0.68)),
    var(--sand);
}

.water-panel.after {
  background: rgba(0, 194, 215, 0.12);
  color: var(--water-dark);
}

.water-panel.after::before {
  background:
    linear-gradient(
      180deg,
      rgba(46, 214, 208, 0.34),
      rgba(0, 194, 215, 0.58)
    ),
    rgba(16, 55, 92, 0.38);
}

.module-line {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.module-line span {
  display: block;
  width: 58px;
  height: 58px;
  background: var(--white);
  border: 8px solid var(--water);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(16, 55, 92, 0.16);
}

.visual-proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.2fr);
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  background:
    radial-gradient(circle at 78% 18%, rgba(0, 194, 215, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(16, 55, 92, 0.72), rgba(8, 29, 46, 0.96)),
    var(--etpa-bg-primary);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--etpa-white);
}

.visual-proof-section .section-heading {
  margin-bottom: 0;
}

.visual-proof-section .section-heading p:not(.eyebrow) {
  color: #d7eef2;
}

.treatment-comparison-card {
  margin: 0;
  padding: 10px;
  background: var(--etpa-card-bg);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  box-shadow: var(--etpa-card-shadow);
  backdrop-filter: blur(16px);
}

.treatment-comparison-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--etpa-card-bg-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.metrics div {
  min-width: 0;
  padding: 24px clamp(20px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 32px;
}

.section-heading p:not(.eyebrow),
.contact-copy p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.problem-section,
.applications-section {
  background: var(--surface);
}

.diagnosis-section {
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 194, 215, 0.1), transparent 28%),
    var(--surface);
}

.diagnosis-grid,
.alert-grid {
  display: grid;
  gap: 14px;
}

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

.diagnosis-card {
  display: grid;
  gap: 16px;
  min-height: 142px;
  padding: 20px;
  background: var(--etpa-card-bg);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  box-shadow: var(--etpa-card-shadow);
  backdrop-filter: blur(16px);
}

.diagnosis-card span {
  display: inline-grid;
  width: 42px;
  height: 34px;
  place-items: center;
  color: var(--etpa-bg-primary);
  background: linear-gradient(135deg, var(--etpa-turquoise), var(--etpa-cyan));
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 900;
}

.diagnosis-card h3 {
  align-self: end;
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
  line-height: 1.2;
}

.diagnosis-image-grid {
  align-items: stretch;
}

.diagnosis-image-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  justify-items: center;
  gap: 18px;
  min-width: 0;
  min-height: clamp(244px, 22vw, 292px);
  padding: 22px 20px 20px;
  background:
    radial-gradient(circle at 14% 12%, rgba(46, 214, 208, 0.14), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 29, 46, 0.56);
  border: 1px solid rgba(46, 214, 208, 0.22);
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.diagnosis-image-card__header {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  text-align: center;
}

.diagnosis-image-card__header span {
  display: inline-grid;
  min-width: 48px;
  height: 34px;
  padding: 0 12px;
  place-items: center;
  color: var(--etpa-bg-primary);
  background: linear-gradient(135deg, var(--etpa-turquoise), var(--etpa-cyan));
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.diagnosis-image-card__header h3 {
  margin: 0;
  max-width: 16ch;
  color: var(--white);
  font-size: clamp(1rem, 1.22vw, 1.18rem);
  line-height: 1.22;
  text-wrap: balance;
}

.diagnosis-image-card__media {
  display: grid;
  width: 100%;
  min-height: 0;
  place-items: center;
  align-self: stretch;
  padding: 8px 0 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(0, 194, 215, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(7, 22, 37, 0.36);
  border-radius: 8px;
}

.diagnosis-image-card__image {
  display: block;
  width: clamp(120px, 38%, 220px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 22px rgba(8, 29, 46, 0.18));
}

.diagnosis-image-card__image--light {
  display: none;
}

.theme-light .diagnosis-image-card__image--dark {
  display: none;
}

.theme-light .diagnosis-image-card__image--light {
  display: block;
}

.alert-section {
  background:
    linear-gradient(125deg, rgba(0, 194, 215, 0.16), rgba(8, 29, 46, 0.96)),
    var(--etpa-bg-secondary);
  color: var(--white);
}

.alert-section .section-heading {
  margin-bottom: 24px;
}

.alert-section .section-heading p:not(.eyebrow) {
  color: rgba(220, 235, 237, 0.84);
}

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

.alert-card {
  position: relative;
  min-height: 116px;
  padding: 18px 16px 18px;
  color: #f4fbff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04)),
    rgba(8, 29, 46, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  font-weight: 850;
  line-height: 1.3;
}

.alert-card::before {
  display: block;
  width: 34px;
  height: 5px;
  margin-bottom: 22px;
  content: "";
  background: linear-gradient(90deg, var(--etpa-turquoise), var(--etpa-cyan));
  border-radius: 999px;
}

.warning-carousel-section {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: clamp(22px, 4vw, 40px);
  max-width: min(100%, 980px);
  margin: 0 auto;
}

.warning-carousel-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

.warning-carousel-copy > p {
  margin: 0;
  color: rgba(220, 235, 237, 0.84);
  font-size: 1rem;
  line-height: 1.72;
}

.warning-carousel-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.warning-carousel-summary li {
  min-width: 0;
  padding: 13px 14px;
  color: #f4fbff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(8, 29, 46, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.4;
}

.warning-carousel {
  display: grid;
  gap: 14px;
  min-width: 0;
  width: 100%;
}

.warning-carousel:focus-visible {
  outline: 3px solid rgba(0, 194, 215, 0.28);
  outline-offset: 4px;
}

.warning-carousel-viewport {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 34vw, 496px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(0, 194, 215, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 29, 46, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.warning-carousel-track {
  position: relative;
  width: 100%;
  min-height: inherit;
  height: 100%;
}

.warning-carousel-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(24px) scale(0.985);
  transition:
    opacity 420ms ease,
    transform 420ms ease,
    visibility 0s linear 420ms;
}

.warning-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 420ms ease,
    transform 420ms ease,
    visibility 0s linear 0s;
}

.warning-carousel-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background:
    radial-gradient(circle at 14% 10%, rgba(0, 194, 215, 0.1), transparent 24%),
    #071625;
}

.warning-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: #f4fbff;
  background:
    linear-gradient(145deg, rgba(8, 29, 46, 0.88), rgba(8, 29, 46, 0.72)),
    rgba(8, 29, 46, 0.82);
  border: 1px solid rgba(46, 214, 208, 0.28);
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  cursor: pointer;
}

.warning-carousel-control:hover,
.warning-carousel-control:focus-visible {
  border-color: rgba(0, 194, 215, 0.52);
  background:
    linear-gradient(145deg, rgba(16, 55, 92, 0.94), rgba(8, 29, 46, 0.8)),
    rgba(8, 29, 46, 0.9);
  box-shadow: 0 20px 38px rgba(0, 194, 215, 0.16);
  transform: translateY(-50%) scale(1.03);
  outline: none;
}

.warning-carousel-control span {
  font-size: 1.65rem;
  line-height: 1;
}

.warning-carousel-control--prev {
  left: 16px;
}

.warning-carousel-control--next {
  right: 16px;
}

.warning-carousel-indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.warning-carousel-indicator {
  position: relative;
  width: 44px;
  height: 5px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.warning-carousel-indicator::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--etpa-turquoise), var(--etpa-cyan));
  opacity: 0;
  transition: opacity 180ms ease;
}

.warning-carousel-indicator:hover,
.warning-carousel-indicator:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 3px rgba(0, 194, 215, 0.14);
  outline: none;
}

.warning-carousel-indicator.is-active {
  background: rgba(255, 255, 255, 0.22);
}

.warning-carousel-indicator.is-active::after {
  opacity: 1;
}

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

.pain-card {
  min-height: 168px;
  padding: 20px;
  background: var(--etpa-card-bg);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  box-shadow: var(--etpa-card-shadow);
  backdrop-filter: blur(16px);
}

.pain-card span {
  display: block;
  width: 42px;
  height: 6px;
  margin-bottom: 34px;
  background: var(--amber);
  border-radius: 999px;
}

.pain-card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
}

.feature-band {
  background:
    linear-gradient(125deg, rgba(0, 194, 215, 0.18), rgba(8, 29, 46, 0.96)),
    var(--etpa-bg-secondary);
  color: var(--white);
}

.feature-band .eyebrow,
.feature-band .section-heading p {
  color: #bfe4ec;
}

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

.feature-card {
  min-height: 196px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(8, 29, 46, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.feature-card p {
  margin-top: 12px;
  color: #dcebed;
}

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

.application-image-card {
  position: relative;
  min-height: clamp(220px, 24vw, 280px);
  overflow: hidden;
  background: #081D2E;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  transform: translateY(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
}

.application-image-card:hover,
.application-image-card:focus-within {
  border-color: rgba(0, 194, 215, 0.34);
  box-shadow: 0 22px 48px rgba(0, 194, 215, 0.14);
  transform: translateY(-2px);
}

.application-image-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.application-image-card__footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px 16px 18px;
  background:
    linear-gradient(180deg, rgba(8, 29, 46, 0), rgba(8, 29, 46, 0.88) 40%, rgba(8, 29, 46, 0.98)),
    linear-gradient(90deg, rgba(0, 194, 215, 0.08), rgba(46, 214, 208, 0.04));
}

.application-image-card__footer span {
  display: inline-block;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 70px);
  background: var(--etpa-card-bg-subtle);
  backdrop-filter: blur(16px);
}

.contact-copy {
  max-width: 640px;
}

.contact-channel-grid {
  display: grid;
  gap: 12px;
}

.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  color: var(--ink);
  background: var(--etpa-card-bg);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  box-shadow: var(--etpa-card-shadow);
  backdrop-filter: blur(16px);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.contact-channel-card:hover,
.contact-channel-card:focus-visible {
  border-color: rgba(0, 194, 215, 0.42);
  box-shadow: var(--etpa-card-shadow-hover);
  transform: translateY(-1px);
  outline: none;
}

.channel-marker {
  display: inline-grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--etpa-bg-primary);
  background: linear-gradient(135deg, var(--etpa-turquoise), var(--etpa-cyan));
  border-radius: 8px;
  font-weight: 900;
}

.contact-channel-card span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.contact-channel-card strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.contact-channel-card small {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.contact-channel-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  background: var(--etpa-card-bg);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  box-shadow: var(--etpa-card-shadow);
  font-weight: 760;
}

.journey-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.journey-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 14px;
  background: var(--etpa-card-bg-subtle);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
}

.journey-list span {
  display: inline-grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--water-dark);
  color: var(--white);
  border-radius: 8px;
  font-weight: 900;
}

.lead-form {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: var(--etpa-card-bg);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  box-shadow: var(--etpa-card-shadow);
  backdrop-filter: blur(16px);
}

.lead-form label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--etpa-input-bg);
  border: 1px solid var(--etpa-input-border);
  border-radius: 8px;
  box-shadow: var(--etpa-input-shadow);
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.lead-form textarea {
  min-height: 120px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--etpa-input-border-focus);
  box-shadow:
    var(--etpa-input-shadow),
    0 0 0 3px rgba(0, 194, 215, 0.18);
  outline: none;
}

.lead-form button {
  margin-top: 8px;
  cursor: pointer;
}

.form-success {
  margin: 0 0 8px;
  padding: 12px 14px;
  color: var(--etpa-success-ink);
  background: var(--etpa-success-bg);
  border: 1px solid var(--etpa-success-border);
  border-radius: 8px;
  font-weight: 800;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder,
.auth-form input::placeholder,
.field-grid input::placeholder,
.field-grid textarea::placeholder,
.compact-fields textarea::placeholder,
.resource-search input::placeholder {
  color: var(--etpa-input-placeholder);
}

.flash-stack {
  display: grid;
  gap: 10px;
  padding: 0 clamp(20px, 5vw, 72px);
  margin-top: 12px;
}

.flash-message {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(8, 29, 46, 0.08);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.flash-message p {
  margin: 0;
  font-weight: 760;
}

.flash-message.success {
  color: var(--etpa-success-ink);
  background: var(--etpa-success-bg);
  border-color: var(--etpa-success-border);
}

.flash-message.error {
  color: var(--etpa-error-ink);
  background: var(--etpa-error-bg);
  border-color: var(--etpa-error-border);
}

.flash-message.info {
  color: var(--water-dark);
  background: rgba(46, 214, 208, 0.18);
  border-color: rgba(0, 194, 215, 0.28);
}

.flash-close {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.flash-close:hover,
.flash-close:focus-visible {
  background: rgba(8, 29, 46, 0.08);
  border-color: rgba(8, 29, 46, 0.12);
  outline: none;
}

.flash-message.is-dismissing {
  opacity: 0;
  transform: translateY(-6px);
}

.site-footer {
  position: relative;
  display: block;
  padding: clamp(34px, 5vw, 62px) clamp(20px, 5vw, 72px) 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(0, 194, 215, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(8, 29, 46, 1), rgba(16, 55, 92, 0.78)),
    var(--etpa-bg-primary);
  border-top: 1px solid var(--footer-border);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.94rem;
}

.site-footer::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(46, 214, 208, 0.5), transparent);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(240px, 1fr) minmax(180px, 0.75fr);
  gap: clamp(24px, 4.5vw, 58px);
  align-items: start;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.footer-brand {
  display: grid;
  gap: 12px;
  max-width: 360px;
}

.footer-logo {
  display: block;
  width: clamp(88px, 9vw, 126px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer-brand strong {
  color: var(--etpa-white);
  font-size: 1.02rem;
  line-height: 1.35;
}

.footer-brand p,
.footer-column p {
  margin: 0;
  color: rgba(215, 238, 242, 0.78);
  line-height: 1.65;
}

.footer-brand .footer-cnpj {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 780;
}

.footer-column {
  display: grid;
  gap: 14px;
}

.footer-column h2 {
  margin: 0;
  color: var(--etpa-turquoise);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-list li {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
}

.footer-links a,
.footer-site-link {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-site-link:hover,
.footer-site-link:focus-visible {
  color: var(--etpa-turquoise);
  outline: none;
}

.footer-contact {
  align-content: start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 10px 14px;
  color: var(--etpa-bg-primary);
  background: linear-gradient(135deg, var(--etpa-turquoise), var(--etpa-cyan));
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.footer-cta:hover,
.footer-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 194, 215, 0.22);
  outline: none;
}

.footer-site-link {
  width: fit-content;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  width: min(100%, 1280px);
  padding-top: 18px;
  margin: clamp(24px, 4vw, 42px) auto 0;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
}

.auth-page,
.app-page {
  min-height: calc(100vh - 72px);
  background:
    radial-gradient(circle at 16% 12%, rgba(0, 194, 215, 0.14), transparent 30%),
    radial-gradient(circle at 84% 6%, rgba(46, 214, 208, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(8, 29, 46, 0.98), rgba(8, 29, 46, 1) 52%),
    var(--etpa-bg-primary);
}

.auth-page {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: clamp(30px, 6vw, 72px) clamp(20px, 5vw, 72px);
}

.auth-page .flash-stack {
  width: min(100%, 1120px);
  padding: 0;
  margin: 0;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  align-items: stretch;
  gap: clamp(18px, 3vw, 32px);
  width: min(100%, 1080px);
}

.auth-brand-panel {
  position: relative;
  display: grid;
  align-content: center;
  gap: clamp(20px, 3vw, 34px);
  min-height: 500px;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(8, 29, 46, 0.22) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 86% 16%, rgba(0, 194, 215, 0.2), transparent 28%),
    radial-gradient(circle at 8% 90%, rgba(46, 214, 208, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(8, 29, 46, 0.98), rgba(16, 55, 92, 0.92));
  border: 1px solid rgba(46, 214, 208, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-brand-panel::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  pointer-events: none;
}

.auth-brand-lockup {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-items: start;
  max-width: 580px;
}

.auth-brand-logo {
  width: clamp(58px, 7vw, 78px);
  height: clamp(58px, 7vw, 78px);
  flex: 0 0 auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
}

.auth-brand-logo-full {
  width: clamp(112px, 13vw, 156px);
  height: auto;
  max-height: 118px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.auth-brand-panel .eyebrow {
  color: var(--etpa-teal-soft);
}

.auth-brand-panel h1 {
  max-width: 560px;
  font-size: clamp(2.05rem, 3.6vw, 3.65rem);
  line-height: 1.02;
}

.auth-brand-statement {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.06rem, 1.55vw, 1.32rem);
  font-weight: 850;
}

.auth-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.auth-trust-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-trust-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  color: #dffdf9;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(46, 214, 208, 0.24);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.2;
}

.auth-panel {
  width: 100%;
  padding: clamp(24px, 3vw, 32px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055)),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.auth-panel h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.3rem);
}

.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.auth-form label {
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--etpa-input-bg);
  border: 1px solid var(--etpa-input-border);
  border-radius: 8px;
  box-shadow: var(--etpa-input-shadow);
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.auth-form input:focus {
  border-color: var(--etpa-input-border-focus);
  box-shadow:
    var(--etpa-input-shadow),
    0 0 0 3px rgba(0, 194, 215, 0.18);
  outline: none;
}

.auth-form button {
  min-height: 48px;
  cursor: pointer;
}

.password-input-wrap {
  position: relative;
  width: 100%;
}

.password-input-wrap input {
  padding-right: 46px !important;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--ink);
  background: rgba(0, 194, 215, 0.12);
  border-color: rgba(0, 194, 215, 0.28);
  outline: 3px solid rgba(0, 194, 215, 0.16);
  outline-offset: 2px;
}

.password-toggle-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 14px / 10px;
}

.password-toggle-icon::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.password-toggle[aria-pressed="true"] .password-toggle-icon::before {
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 2px;
  content: "";
  background: currentColor;
  transform: rotate(-23deg);
}

.auth-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-hero {
  padding: clamp(42px, 6vw, 76px) clamp(20px, 5vw, 72px) clamp(24px, 4vw, 44px);
  background:
    linear-gradient(120deg, rgba(16, 55, 92, 0.96), rgba(0, 194, 215, 0.9)),
    var(--water-dark);
  color: var(--white);
}

.app-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
}

.app-hero .eyebrow,
.app-hero .summary {
  color: #d7eef2;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(24px, 4vw, 46px) clamp(20px, 5vw, 72px) clamp(48px, 7vw, 84px);
}

.app-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 22px;
  background: var(--etpa-card-bg);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  box-shadow: var(--etpa-card-shadow);
  backdrop-filter: blur(16px);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.app-card.active {
  border-color: var(--etpa-card-border-strong);
  box-shadow: var(--etpa-card-shadow-hover);
}

.app-card:hover,
.app-card:focus-visible {
  border-color: rgba(0, 194, 215, 0.55);
  box-shadow: var(--etpa-card-shadow-hover);
  transform: translateY(-2px);
  outline: none;
}

.app-card span {
  width: fit-content;
  padding: 6px 8px;
  color: var(--water-dark);
  background: rgba(0, 194, 215, 0.1);
  border: 1px solid rgba(0, 194, 215, 0.18);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.app-card p {
  margin: 0;
  color: var(--muted);
}

.dashboard-layout {
  gap: 16px;
}

.dashboard-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(8, 29, 46, 0.2) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 86% 18%, rgba(46, 214, 208, 0.16), transparent 28%),
    linear-gradient(125deg, rgba(16, 55, 92, 0.98), rgba(8, 29, 46, 0.96)),
    #081D2E;
  border-bottom: 1px solid rgba(0, 194, 215, 0.16);
}

.dashboard-hero > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.dashboard-hero-technical::after {
  position: absolute;
  right: clamp(24px, 6vw, 92px);
  bottom: -74px;
  width: clamp(180px, 24vw, 330px);
  aspect-ratio: 1;
  content: "";
  background:
    radial-gradient(circle, rgba(0, 194, 215, 0.16), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  opacity: 0.62;
  pointer-events: none;
}

.dashboard-hero-indicators {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dashboard-hero-indicators span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  color: #d7eef2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(46, 214, 208, 0.22);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dashboard-quick-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dashboard-quick-actions .button {
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.32);
}

.dashboard-quick-actions .button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-quick-actions .button.secondary:hover,
.dashboard-quick-actions .button.secondary:focus-visible {
  color: var(--etpa-navy);
  background: var(--white);
}

.dashboard-kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.dashboard-kpi-card {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-height: 128px;
  padding: 18px 18px 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 0%, rgba(0, 194, 215, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    var(--etpa-card-bg);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  box-shadow: var(--etpa-card-shadow);
  backdrop-filter: blur(16px);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.dashboard-kpi-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--water), var(--etpa-teal-soft));
}

.dashboard-kpi-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1.28;
  text-transform: uppercase;
}

.dashboard-kpi-card:hover {
  border-color: rgba(0, 194, 215, 0.34);
  box-shadow: var(--etpa-card-shadow-hover);
  transform: translateY(-1px);
}

.dashboard-kpi-marker {
  width: 38px;
  height: 4px;
  background: linear-gradient(90deg, var(--water), var(--etpa-teal-soft));
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(0, 194, 215, 0.18);
}

.dashboard-kpi-value {
  color: #ffffff;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 0 0 18px rgba(0, 194, 215, 0.18);
}

.dashboard-two-column {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-status-section {
  display: grid;
  gap: 12px;
}

.dashboard-status-panels {
  align-items: stretch;
}

.dashboard-status-panel {
  display: grid;
  gap: 10px;
  min-height: 100%;
}

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

.dashboard-status-grid,
.dashboard-activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.dashboard-status-item {
  display: grid;
  gap: 6px;
  align-content: center;
  justify-items: start;
  min-height: 84px;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(0, 194, 215, 0.07), rgba(255, 255, 255, 0.035)),
    var(--etpa-card-bg-subtle);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.dashboard-status-item:hover {
  border-color: rgba(0, 194, 215, 0.34);
  box-shadow: 0 16px 34px rgba(0, 194, 215, 0.1);
  transform: translateY(-1px);
}

.dashboard-status-label,
.dashboard-status-value {
  color: var(--ink);
}

.dashboard-status-label {
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.28;
}

.dashboard-status-value {
  color: var(--water-dark);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.dashboard-table .actions-cell {
  font-weight: 850;
}

.dashboard-layout .empty-results.compact {
  color: var(--muted);
  background: var(--etpa-empty-bg);
  border-color: var(--etpa-card-border-strong);
}

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

.dashboard-activity-list li {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  background: var(--etpa-card-bg-subtle);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.dashboard-activity-list li strong {
  color: var(--ink);
  font-size: 0.93rem;
}

.dashboard-activity-list li span {
  color: var(--muted);
  font-size: 0.82rem;
}

.dashboard-activity-list li small {
  color: var(--muted);
  font-size: 0.78rem;
}

.resource-page {
  min-height: calc(100vh - 72px);
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 194, 215, 0.14),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(8, 29, 46, 0.98),
      rgba(8, 29, 46, 1) 48%
    ),
    var(--etpa-bg-primary);
}

.resource-page > .app-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 58px) clamp(20px, 5vw, 72px) clamp(22px, 3vw, 34px);
  background:
    linear-gradient(115deg, rgba(8, 29, 46, 0.18) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 88% 16%, rgba(0, 194, 215, 0.14), transparent 28%),
    linear-gradient(125deg, rgba(16, 55, 92, 0.98), rgba(8, 29, 46, 0.96)),
    #081D2E;
  border-bottom: 1px solid rgba(0, 194, 215, 0.16);
}

.resource-page > .app-hero::after {
  position: absolute;
  right: clamp(20px, 7vw, 110px);
  bottom: -88px;
  width: clamp(170px, 24vw, 320px);
  aspect-ratio: 1;
  content: "";
  background:
    radial-gradient(circle, rgba(0, 194, 215, 0.12), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  opacity: 0.5;
  pointer-events: none;
}

.resource-page > .app-hero > div {
  position: relative;
  z-index: 1;
}

.resource-page > .app-hero h1 {
  max-width: 940px;
  font-size: clamp(2rem, 3.3vw, 3.7rem);
  line-height: 1.05;
}

.resource-page > .app-hero .summary {
  max-width: 680px;
}

.resource-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: 22px;
  padding: clamp(24px, 4vw, 46px) clamp(20px, 5vw, 72px) clamp(48px, 7vw, 84px);
}

.resource-form {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: var(--etpa-card-bg);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  box-shadow: var(--etpa-card-shadow);
  backdrop-filter: blur(16px);
}

.resource-form > .field-grid,
.resource-form .compact-fields {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.resource-form > .field-grid > label,
.resource-form .compact-fields > label,
.resource-form .compact-fields > .inline-fields {
  min-width: 0;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(0, 194, 215, 0.055), rgba(255, 255, 255, 0.032)),
    var(--etpa-card-bg-subtle);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
}

.resource-form .compact-fields > label:has(textarea),
.resource-form .compact-fields > label:has(select[multiple]) {
  grid-column: 1 / -1;
}

.resource-form .inline-fields {
  align-items: stretch;
}

.resource-form .inline-fields label {
  min-width: 0;
}

.resource-form .required-hint {
  padding: 10px 12px;
  background: rgba(0, 194, 215, 0.06);
  border: 1px solid rgba(0, 194, 215, 0.16);
  border-radius: 8px;
}

.required-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.required-marker {
  color: var(--etpa-error-ink);
  font-weight: 900;
}

.field-help {
  position: static !important;
  display: block;
  margin-top: -3px;
  color: var(--muted) !important;
  font-size: 0.78rem;
  font-weight: 650 !important;
  line-height: 1.35;
}

.password-strength {
  position: static !important;
  display: block;
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}

.compact-fields textarea {
  min-height: 110px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--etpa-input-bg);
  border: 1px solid var(--etpa-input-border);
  border-radius: 8px;
  box-shadow: var(--etpa-input-shadow);
  font: inherit;
  resize: vertical;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.compact-fields textarea:focus {
  border-color: var(--etpa-input-border-focus);
  box-shadow:
    var(--etpa-input-shadow),
    0 0 0 3px rgba(0, 194, 215, 0.18);
  outline: none;
}

.inline-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
}

.resource-list {
  min-width: 0;
}

.resource-listing,
.resource-form-page {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 46px) clamp(20px, 5vw, 72px) clamp(48px, 7vw, 84px);
}

.resource-form-page {
  width: 100%;
  max-width: 1520px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 64px);
}

.entity-listing,
.entity-detail {
  --entity-panel-padding: clamp(18px, 2vw, 22px);
  --entity-panel-gap: clamp(14px, 1.8vw, 18px);
}

.resource-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.entity-toolbar {
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(0, 194, 215, 0.035)),
    rgba(8, 29, 46, 0.36);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.resource-search {
  display: flex;
  flex: 1 1 380px;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.resource-search > label {
  flex-basis: 100%;
}

.resource-search label {
  display: block;
  width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.resource-search input {
  min-width: min(320px, 100%);
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--etpa-input-bg);
  border: 1px solid var(--etpa-input-border);
  border-radius: 8px;
  box-shadow: var(--etpa-input-shadow);
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.resource-search select {
  min-width: 180px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--etpa-input-bg);
  border: 1px solid var(--etpa-input-border);
  border-radius: 8px;
  box-shadow: var(--etpa-input-shadow);
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.resource-search input:focus {
  border-color: var(--etpa-input-border-focus);
  box-shadow:
    var(--etpa-input-shadow),
    0 0 0 3px rgba(0, 194, 215, 0.18);
  outline: none;
}

.resource-search select:focus {
  border-color: var(--etpa-input-border-focus);
  box-shadow:
    var(--etpa-input-shadow),
    0 0 0 3px rgba(0, 194, 215, 0.18);
  outline: none;
}

.entity-card {
  padding: var(--entity-panel-padding);
}

.list-card {
  padding: var(--entity-panel-padding);
}

.entity-card,
.list-card,
.entity-detail-panel {
  position: relative;
}

.entity-card::before,
.list-card::before,
.entity-detail-panel::before {
  position: absolute;
  top: 0;
  left: var(--entity-panel-padding, 20px);
  width: 44px;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--water), var(--etpa-teal-soft));
  border-radius: 0 0 999px 999px;
  opacity: 0.82;
  pointer-events: none;
}

.list-card > .section-title {
  margin: 0;
  padding: 0;
}

.table-shell {
  padding: 0;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--etpa-table-divider);
  border-radius: 8px;
  background: rgba(8, 29, 46, 0.18);
}

.table-shell .table-scroll {
  margin-top: 0;
}

.actions-heading {
  text-align: right;
}

.actions-cell {
  text-align: right;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.resource-table .primary-cell {
  color: var(--ink);
  font-weight: 850;
}

.resource-table .muted-cell {
  color: var(--muted);
}

.table-actions form {
  margin: 0;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  color: var(--water-dark);
  border: 1px solid rgba(0, 194, 215, 0.24);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.1;
  background: rgba(0, 194, 215, 0.07);
  font: inherit;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.table-action:hover,
.table-action:focus-visible {
  color: #081D2E;
  background: var(--water-dark);
  border-color: var(--water-dark);
  box-shadow: 0 0 0 3px rgba(0, 194, 215, 0.18);
  outline: none;
}

.table-action-danger {
  color: var(--etpa-error-ink);
  border-color: var(--etpa-error-border);
  background: var(--etpa-error-bg);
}

.table-action-danger:hover,
.table-action-danger:focus-visible {
  color: var(--etpa-error-ink);
  background: var(--etpa-error-bg);
  border-color: var(--etpa-error-border);
  box-shadow: 0 0 0 3px rgba(255, 171, 145, 0.16);
}

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

.resource-form > .resource-actions,
.resource-form-page > .resource-actions,
.entity-detail > .resource-actions {
  padding-top: 4px;
}

.detail-panel {
  display: grid;
  gap: var(--entity-panel-gap);
  padding: var(--entity-panel-padding);
}

.detail-panel > .section-title {
  margin: 0;
  padding: 0;
}

.detail-panel .summary {
  margin-top: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 0;
}

.detail-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: var(--etpa-card-bg-subtle);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
}

.detail-grid div,
.metadata-item,
.detail-notes,
.dashboard-status-item,
.dashboard-activity-list li {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.detail-grid div:hover,
.metadata-item:hover,
.detail-notes:hover {
  border-color: var(--etpa-card-border-strong);
  box-shadow: 0 12px 28px rgba(0, 194, 215, 0.09);
}

.detail-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-grid strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.detail-notes {
  margin-top: 0;
  padding: 14px;
  background: var(--etpa-card-bg-subtle);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
}

.detail-notes h3 {
  margin-bottom: 8px;
}

.detail-notes p {
  margin: 0;
  color: var(--muted);
}

.summary-inline {
  font-size: clamp(1.2rem, 1.8vw, 1.7rem) !important;
}

.empty-results.compact {
  min-height: auto;
  padding: 16px;
}

.empty-results p {
  max-width: 56rem;
  margin: 0;
  color: var(--muted);
  font-weight: 730;
}

.empty-results p + .button,
.empty-results .button {
  margin-top: 14px;
}

.detail-summary-grid {
  margin-top: 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.resource-form .cost-item-form-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.resource-form .cost-item-form-grid > label:nth-child(1) {
  grid-column: span 3;
}

.resource-form .cost-item-form-grid > label:nth-child(2) {
  grid-column: span 9;
}

.resource-form .cost-item-form-grid > label:nth-child(3) {
  grid-column: span 6;
}

.resource-form .cost-item-form-grid > label:nth-child(4),
.resource-form .cost-item-form-grid > label:nth-child(5),
.resource-form .cost-item-form-grid > label:nth-child(6) {
  grid-column: span 2;
}

.resource-form .cost-item-form-grid > label:has(textarea) {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .resource-form .cost-item-form-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .resource-form .cost-item-form-grid > label:nth-child(1) {
    grid-column: span 2;
  }

  .resource-form .cost-item-form-grid > label:nth-child(2) {
    grid-column: span 4;
  }

  .resource-form .cost-item-form-grid > label:nth-child(3),
  .resource-form .cost-item-form-grid > label:has(textarea) {
    grid-column: 1 / -1;
  }

  .resource-form .cost-item-form-grid > label:nth-child(4),
  .resource-form .cost-item-form-grid > label:nth-child(5),
  .resource-form .cost-item-form-grid > label:nth-child(6) {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .resource-form .cost-item-form-grid {
    grid-template-columns: 1fr;
  }

  .resource-form .cost-item-form-grid > label {
    grid-column: auto;
  }
}

.project-dossier-summary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.project-dossier-summary div {
  min-height: 108px;
  padding: 16px;
}

.project-dossier-summary .summary-inline {
  font-family: inherit;
  font-size: clamp(1.02rem, 1.45vw, 1.28rem) !important;
  line-height: 1.24;
}

.detail-subsection {
  box-shadow: none;
}

.detail-subsection > .tool-heading {
  background: linear-gradient(90deg, rgba(0, 194, 215, 0.06), transparent);
}

.resource-page .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background:
    linear-gradient(90deg, rgba(0, 194, 215, 0.1), rgba(46, 214, 208, 0.025), transparent);
  border-bottom: 1px solid var(--line);
}

.resource-page .section-title > div {
  padding: 20px;
}

.resource-page .section-title h2 {
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
  line-height: 1.16;
}

.section-title span {
  align-self: start;
  padding: 6px 8px;
  color: var(--water-dark);
  background: rgba(0, 194, 215, 0.09);
  border: 1px solid rgba(0, 194, 215, 0.18);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title-with-action {
  border-bottom: 1px solid var(--line);
}

.section-title-with-action > div {
  min-width: 0;
}

.section-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
}

.section-actions .button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.metadata-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--etpa-card-bg-subtle);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
}

.metadata-item::before {
  width: 28px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--water), transparent);
  border-radius: 999px;
}

.metadata-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.metadata-value {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

.metadata-code {
  font-family: "Segoe UI", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--water-dark);
  background: rgba(0, 194, 215, 0.09);
  border: 1px solid rgba(0, 194, 215, 0.24);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 820;
  line-height: 1.15;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  opacity: 0.86;
}

.filter-metadata-grid {
  margin-top: 2px;
}

.resource-table td strong,
.resource-table td small {
  display: block;
}

.resource-table td small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.entity-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 0.93rem;
}

.entity-table th,
.entity-table td {
  padding: 12px 16px;
  letter-spacing: 0;
  line-height: 1.42;
  border-bottom: 1px solid var(--etpa-table-divider);
}

.entity-table th {
  color: var(--water-dark);
  background: var(--etpa-table-header-bg);
  letter-spacing: 0.04em;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.entity-table tbody tr:hover {
  background: var(--etpa-table-row-hover);
}

.entity-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.entity-table th.actions-heading,
.entity-table td.actions-cell {
  width: 1%;
  white-space: nowrap;
}

.entity-table td.actions-cell {
  vertical-align: middle;
}

.primary-cell,
.muted-cell {
  letter-spacing: 0;
}

.primary-cell {
  color: var(--ink);
  font-weight: 700;
}

.muted-cell {
  color: var(--muted);
}

.entity-table td small {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-detail .resource-actions {
  padding-inline: 2px;
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-top: 4px;
  border-color: #e0bcb2;
  box-shadow: none;
  background:
    linear-gradient(
      180deg,
      rgba(248, 230, 223, 0.2),
      rgba(255, 255, 255, 0.94)
    ),
    var(--white);
}

.danger-zone-content {
  min-width: 0;
}

.danger-zone-title {
  margin: 0;
  color: #854232;
  font-size: 0.96rem;
  font-weight: 760;
  line-height: 1.25;
}

.danger-zone-description {
  margin: 0;
  color: #8f5b4e;
  font-size: 0.84rem;
  font-weight: 620;
  line-height: 1.35;
}

.danger-action {
  flex: 0 0 auto;
}

.danger-action form {
  margin: 0;
}

@media (max-width: 760px) {
  .danger-zone {
    align-items: flex-start;
    flex-direction: column;
  }

  .danger-action {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .entity-table {
    min-width: 760px;
  }

  .entity-table td small {
    max-width: 220px;
  }
}

.calculator-page {
  min-height: calc(100vh - 72px);
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 194, 215, 0.14),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(8, 29, 46, 0.98),
      rgba(8, 29, 46, 1) 48%
    ),
    var(--etpa-bg-primary);
}

.calculator-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(42px, 6vw, 76px) clamp(20px, 5vw, 72px) clamp(24px, 4vw, 44px);
  background:
    linear-gradient(115deg, rgba(8, 29, 46, 0.2) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 86% 18%, rgba(0, 194, 215, 0.16), transparent 28%),
    linear-gradient(125deg, rgba(16, 55, 92, 0.98), rgba(8, 29, 46, 0.96)),
    #081D2E;
  border-bottom: 1px solid rgba(0, 194, 215, 0.16);
  color: var(--white);
  overflow: hidden;
}

.calculator-hero h1 {
  max-width: 980px;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.calculator-hero > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.calculator-hero .eyebrow,
.calculator-hero .summary {
  color: #d7eef2;
}

.calculator-hero-technical::after {
  position: absolute;
  right: clamp(22px, 5vw, 80px);
  bottom: -96px;
  width: clamp(220px, 28vw, 390px);
  aspect-ratio: 1;
  content: "";
  background:
    radial-gradient(circle, rgba(0, 194, 215, 0.14), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  opacity: 0.58;
  pointer-events: none;
}

.calculator-hero-badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.calculator-hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  color: #d7eef2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(46, 214, 208, 0.22);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.calculator-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 22px;
  padding: clamp(24px, 4vw, 46px) clamp(20px, 5vw, 72px) clamp(48px, 7vw, 84px);
}

.calculator-form,
.result-section,
.result-summary-grid div {
  background: var(--etpa-card-bg);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  box-shadow: var(--etpa-card-shadow);
  backdrop-filter: blur(16px);
}

.calculator-form {
  position: static;
  display: grid;
  gap: 20px;
  padding: 24px;
}

.calculator-form-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--etpa-card-border);
}

.calculator-form-heading p:last-child {
  max-width: 34rem;
}

.tool-heading h2 {
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field-grid label {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.calculator-field-grid label {
  padding: 12px;
  background: var(--etpa-card-bg-subtle);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
}

.field-grid label span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.field-grid input,
.field-grid select {
  width: 100%;
  min-height: 50px;
  padding: 12px 32px 12px 12px;
  color: var(--ink);
  background: var(--etpa-input-bg);
  border: 1px solid var(--etpa-input-border);
  border-radius: 8px;
  box-shadow: var(--etpa-input-shadow);
  font: inherit;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.field-grid textarea {
  width: 100%;
  min-height: 116px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--etpa-input-bg);
  border: 1px solid var(--etpa-input-border);
  border-radius: 8px;
  box-shadow: var(--etpa-input-shadow);
  font: inherit;
  font-weight: 700;
  resize: vertical;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.field-grid input:focus,
.field-grid select:focus,
.field-grid textarea:focus {
  border-color: var(--etpa-input-border-focus);
  box-shadow:
    var(--etpa-input-shadow),
    0 0 0 3px rgba(0, 194, 215, 0.18);
  outline: none;
}

.field-grid small {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--muted);
  font-weight: 850;
}

.field-readonly {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--etpa-input-bg);
  border: 1px solid var(--etpa-input-border);
  border-radius: 8px;
  box-shadow: var(--etpa-input-shadow);
}

.field-readonly-label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.field-readonly-value {
  font-size: 0.98rem;
  font-weight: 800;
}

.calculator-errors {
  display: grid;
  gap: 8px;
}

.calculator-errors p {
  margin: 0;
  padding: 10px 12px;
  color: var(--etpa-error-ink);
  background: var(--etpa-error-bg);
  border: 1px solid var(--etpa-error-border);
  border-radius: 8px;
  font-weight: 780;
}

.calculator-errors:empty {
  display: none;
}

.calculator-status {
  margin: -6px 0 0;
  padding: 9px 11px;
  color: var(--muted);
  background: var(--etpa-card-bg-subtle);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 780;
}

.calculator-status::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  content: "";
  background: var(--water);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(0, 194, 215, 0.38);
}

.calculator-form[data-state="loading"] .calculator-status {
  color: var(--water-dark);
  border-color: rgba(0, 194, 215, 0.28);
}

.calculator-form[data-state="invalid"] .calculator-status {
  color: var(--etpa-error-ink);
  background: var(--etpa-error-bg);
  border-color: var(--etpa-error-border);
}

.calculator-results {
  display: grid;
  gap: 14px;
  min-width: 0;
  transition: opacity 160ms ease;
}

.calculator-results.is-stale {
  opacity: 0.58;
}

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

.result-summary-grid div {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 134px;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 8%, rgba(0, 194, 215, 0.14), transparent 34%),
    var(--etpa-card-bg);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.result-summary-grid div::before {
  width: 46px;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--water), var(--water-dark));
  border-radius: 999px;
}

.result-summary-grid div:hover {
  border-color: rgba(0, 194, 215, 0.38);
  box-shadow: var(--etpa-card-shadow-hover);
  transform: translateY(-1px);
}

.result-summary-grid span,
.result-summary-grid small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}

.result-summary-grid strong {
  color: #ffffff;
  font-family: "Segoe UI", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(1.75rem, 2.7vw, 2.6rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(0, 194, 215, 0.18);
}

.result-summary-grid-technical div {
  align-content: space-between;
}

.result-section {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.collapsible-subsection {
  border-top: 1px solid var(--line);
}

.collapsible-subsection + .collapsible-subsection {
  margin-top: 10px;
}

.collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 780;
  list-style: none;
}

.collapsible-summary::-webkit-details-marker {
  display: none;
}

.collapsible-summary::after {
  width: 8px;
  height: 8px;
  margin-left: auto;
  content: "";
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 140ms ease;
}

.collapsible-subsection[open] .collapsible-summary::after {
  transform: rotate(225deg);
}

.collapsible-summary:hover,
.collapsible-summary:focus-visible {
  background: rgba(0, 194, 215, 0.08);
  outline: none;
}

.collapsible-content {
  padding: 0 20px 16px;
}

.collapsible-content .table-scroll,
.collapsible-content .interpretation-list {
  margin-top: 0;
}

.result-section > .tool-heading {
  padding: 20px 22px;
  background: linear-gradient(90deg, rgba(0, 194, 215, 0.1), rgba(46, 214, 208, 0.025), transparent);
  border-bottom: 1px solid var(--line);
}

.technical-result-section > .tool-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.result-section > .interpretation-list,
.result-section > .table-scroll {
  padding: 0 20px 20px;
}

.table-scroll {
  width: 100%;
  margin-top: 0;
  overflow-x: auto;
  overflow-y: visible;
}

.result-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.result-table th,
.result-table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--etpa-table-divider);
}

.result-table th {
  color: var(--water-dark);
  background: var(--etpa-table-header-bg);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-table tbody tr:hover {
  background: var(--etpa-table-row-hover);
}

.result-table td:first-child {
  color: var(--ink);
  font-weight: 850;
}

.result-table .result-value-cell {
  color: var(--ink);
  font-family: "Segoe UI", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 900;
}

.result-table .result-unit-cell {
  color: var(--muted);
  font-weight: 850;
}

.result-table td:nth-child(2),
.result-table td:nth-child(3) {
  white-space: nowrap;
}

.result-table td:last-child {
  color: var(--muted);
}

.info-heading,
.info-cell {
  width: 74px;
  text-align: center;
}

.info-heading span,
.info-button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
}

.info-heading span {
  color: var(--water-dark);
  background: rgba(0, 194, 215, 0.1);
  border: 1px solid rgba(0, 194, 215, 0.18);
}

.info-tooltip {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.info-button {
  color: var(--water-dark);
  background: rgba(0, 194, 215, 0.1);
  border: 1px solid rgba(0, 194, 215, 0.22);
  cursor: help;
}

.info-button:hover,
.info-button:focus-visible {
  color: var(--white);
  background: var(--water-dark);
  border-color: var(--water-dark);
  outline: none;
}

.info-bubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(320px, 70vw);
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(8, 29, 46, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
  pointer-events: none;
}

.info-bubble::after {
  position: absolute;
  right: 10px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  content: "";
  background: inherit;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

.info-tooltip:hover .info-bubble,
.info-tooltip:focus-within .info-bubble {
  opacity: 1;
  transform: translateY(0);
}

.interpretation-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.interpretation-list li {
  padding: 12px 14px;
  background: var(--etpa-card-bg-subtle);
  border: 1px solid var(--etpa-card-border);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  color: var(--muted);
}

.empty-results {
  min-height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--etpa-empty-bg);
  border: 1px solid var(--etpa-card-border-strong);
  border-radius: 8px;
  box-shadow: var(--etpa-card-shadow);
}

.empty-results:not(.result-section):not(.compact) {
  padding: 22px;
}

.empty-results::before {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 194, 215, 0.55), rgba(46, 214, 208, 0.18)),
    transparent;
  border: 1px solid rgba(46, 214, 208, 0.22);
  border-radius: 999px;
  opacity: 0.26;
  pointer-events: none;
}

.empty-results > * {
  position: relative;
  z-index: 1;
}

.empty-results.compact::before {
  display: none;
}

.theme-light {
  --ink: #10283a;
  --muted: #455f70;
  --line: rgba(16, 55, 92, 0.18);
  --surface: #dcebf1;
  --surface-strong: #c9e0e8;
  --panel: rgba(239, 248, 251, 0.86);
  --panel-strong: rgba(231, 243, 248, 0.96);
  --white: var(--etpa-white);
  --water: #008fa3;
  --water-dark: #00778a;
  --green: var(--etpa-success);
  --amber: #008fa3;
  --sand: #ccdde5;
  --focus-ring: rgba(0, 143, 163, 0.32);
  --shadow: 0 18px 46px rgba(8, 29, 46, 0.16);
  --shadow-soft: 0 12px 32px rgba(8, 29, 46, 0.12);
  --glass-border: rgba(16, 55, 92, 0.18);
  --etpa-card-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(231, 243, 248, 0.86)),
    rgba(239, 248, 251, 0.92);
  --etpa-card-bg-strong:
    linear-gradient(145deg, rgba(239, 248, 251, 0.98), rgba(207, 227, 235, 0.9));
  --etpa-card-bg-subtle:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(231, 243, 248, 0.7)),
    rgba(239, 248, 251, 0.82);
  --etpa-card-border: rgba(16, 55, 92, 0.16);
  --etpa-card-border-strong: rgba(0, 143, 163, 0.3);
  --etpa-card-shadow: 0 16px 38px rgba(8, 29, 46, 0.13);
  --etpa-card-shadow-hover: 0 18px 42px rgba(0, 143, 163, 0.16);
  --etpa-empty-bg:
    linear-gradient(135deg, rgba(0, 194, 215, 0.12), rgba(255, 255, 255, 0.56)),
    rgba(239, 248, 251, 0.88);
  --etpa-input-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(231, 243, 248, 0.92));
  --etpa-input-border: rgba(16, 55, 92, 0.2);
  --etpa-input-border-focus: rgba(0, 143, 163, 0.58);
  --etpa-input-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  --etpa-input-placeholder: rgba(82, 107, 124, 0.74);
  --etpa-table-header-bg:
    linear-gradient(180deg, rgba(201, 224, 232, 0.98), rgba(187, 215, 225, 0.92));
  --etpa-table-row-hover: rgba(0, 143, 163, 0.08);
  --etpa-table-divider: rgba(16, 55, 92, 0.14);
  --etpa-error-ink: #7a2e1f;
  --etpa-error-bg: #f8e6df;
  --etpa-error-border: #edc7ba;
  --etpa-success-ink: #1f5f25;
  --etpa-success-bg: rgba(46, 125, 50, 0.12);
  --etpa-success-border: rgba(46, 125, 50, 0.32);
  --page-bg-start: #e8f3f7;
  --page-bg-end: #cfe3eb;
  --page-glow-cyan: rgba(0, 194, 215, 0.18);
  --page-glow-teal: rgba(46, 214, 208, 0.14);
  --header-bg: rgba(8, 29, 46, 0.94);
  --header-border: rgba(255, 255, 255, 0.16);
  --header-ink: #f4fbff;
  --header-muted: #c6d5df;
  --header-hover-bg: rgba(255, 255, 255, 0.1);
  --theme-toggle-bg: rgba(16, 55, 92, 0.86);
  --theme-toggle-border: rgba(255, 255, 255, 0.18);
  --theme-toggle-icon: #2ED6D0;
  --theme-toggle-knob: #2ED6D0;
  --footer-border: rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at top left, var(--page-glow-cyan), transparent 34%),
    radial-gradient(circle at bottom right, var(--page-glow-teal), transparent 32%),
    linear-gradient(135deg, var(--page-bg-start) 0%, var(--page-bg-end) 100%);
  color: var(--ink);
}

.theme-light .diagnosis-section,
.theme-light .problem-section,
.theme-light .applications-section,
.theme-light .contact-section {
  color: var(--ink);
}

.theme-light .diagnosis-section .section-heading p:not(.eyebrow),
.theme-light .problem-section .section-heading p:not(.eyebrow),
.theme-light .applications-section .section-heading p:not(.eyebrow),
.theme-light .contact-copy p:not(.eyebrow),
.theme-light .diagnosis-card h3,
.theme-light .diagnosis-image-card__header h3,
.theme-light .contact-channel-card small,
.theme-light .pain-card p {
  color: var(--muted);
}

.theme-light .diagnosis-card,
.theme-light .diagnosis-image-card,
.theme-light .contact-channel-card,
.theme-light .contact-channel-empty {
  background: var(--etpa-card-bg);
  border-color: var(--etpa-card-border);
  box-shadow: var(--etpa-card-shadow);
}

.theme-light .diagnosis-image-card__header h3 {
  color: var(--ink);
}

.theme-light .diagnosis-image-card__media {
  background:
    radial-gradient(circle at 14% 10%, rgba(0, 143, 163, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    rgba(16, 55, 92, 0.04);
}

.theme-light .alert-section {
  background:
    linear-gradient(125deg, rgba(16, 55, 92, 0.98), rgba(0, 143, 163, 0.88)),
    #10375C;
  color: #ffffff;
}

.theme-light .warning-carousel-control {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 34px rgba(8, 29, 46, 0.16);
}

.theme-light .warning-carousel-control:hover,
.theme-light .warning-carousel-control:focus-visible {
  border-color: rgba(46, 214, 208, 0.46);
}

.theme-light .warning-carousel-indicator {
  background: rgba(255, 255, 255, 0.2);
}

.theme-light .feature-band .feature-card p {
  color: rgba(220, 235, 237, 0.88);
}

.theme-light .application-image-card {
  border-color: rgba(16, 55, 92, 0.2);
  box-shadow: 0 18px 40px rgba(8, 29, 46, 0.14);
}

.theme-light .application-image-card:hover,
.theme-light .application-image-card:focus-within {
  border-color: rgba(0, 143, 163, 0.36);
  box-shadow: 0 20px 44px rgba(0, 143, 163, 0.16);
}

.theme-light .app-sidebar {
  --ink: #f4fbff;
  --muted: #b8c8d6;
  --line: rgba(255, 255, 255, 0.14);
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.13);
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --water: #00C2D7;
  --water-dark: #2ED6D0;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 194, 215, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(8, 29, 46, 0.98) 0%, rgba(6, 23, 38, 0.99) 56%, rgba(4, 15, 26, 1) 100%);
  border-right-color: rgba(255, 255, 255, 0.14);
  color: var(--ink);
}

.theme-light .app-sidebar .sidebar-link[aria-current="page"] {
  color: #f4fbff;
  background:
    linear-gradient(90deg, rgba(0, 194, 215, 0.2), rgba(46, 214, 208, 0.08)),
    rgba(255, 255, 255, 0.085);
  border-color: rgba(0, 194, 215, 0.36);
  box-shadow:
    inset 3px 0 0 #2ED6D0,
    0 10px 22px rgba(0, 0, 0, 0.12);
}

.theme-light .hero-visual {
  background: rgba(17, 24, 39, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 60px rgba(8, 29, 46, 0.26);
}

.theme-light .hero-proof-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)),
    rgba(8, 29, 46, 0.48);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 68px rgba(8, 29, 46, 0.3);
}

.theme-light .account-dropdown {
  background:
    linear-gradient(180deg, rgba(16, 55, 92, 0.92), rgba(8, 29, 46, 0.97)),
    #081D2E;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 54px rgba(8, 29, 46, 0.34);
}

.theme-light .account-menu-item {
  color: #f4fbff;
}

.theme-light .account-menu-item:hover,
.theme-light .account-menu-item:focus-visible {
  color: #2ED6D0;
  background: rgba(0, 194, 215, 0.12);
}

.theme-light .auth-page,
.theme-light .app-page,
.theme-light .calculator-page,
.theme-light .resource-page {
  background:
    radial-gradient(circle at 14% 8%, rgba(0, 194, 215, 0.16), transparent 30%),
    radial-gradient(circle at 86% 2%, rgba(46, 214, 208, 0.12), transparent 28%),
    linear-gradient(180deg, #e8f3f7, #d7e8ef 52%, #cfe3eb);
  color: var(--ink);
}

.theme-light .app-hero,
.theme-light .calculator-hero {
  background:
    linear-gradient(125deg, rgba(16, 55, 92, 0.98), rgba(0, 143, 163, 0.88)),
    #10375C;
  border-bottom: 1px solid rgba(16, 55, 92, 0.18);
  color: #ffffff;
}

.theme-light .dashboard-hero-technical,
.theme-light .calculator-hero-technical {
  background:
    linear-gradient(115deg, rgba(8, 29, 46, 0.18) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 86% 18%, rgba(46, 214, 208, 0.16), transparent 28%),
    linear-gradient(125deg, rgba(16, 55, 92, 0.98), rgba(8, 29, 46, 0.94)),
    #10375C;
  border-bottom-color: rgba(16, 55, 92, 0.18);
}

.theme-light .resource-page > .app-hero {
  background:
    linear-gradient(115deg, rgba(8, 29, 46, 0.18) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 88% 16%, rgba(46, 214, 208, 0.15), transparent 28%),
    linear-gradient(125deg, rgba(16, 55, 92, 0.98), rgba(8, 29, 46, 0.94)),
    #10375C;
  border-bottom-color: rgba(16, 55, 92, 0.18);
}

.theme-light .auth-panel,
.theme-light .app-card,
.theme-light .resource-form,
.theme-light .calculator-form,
.theme-light .result-section,
.theme-light .result-summary-grid div,
.theme-light .dashboard-kpi-card {
  background: var(--etpa-card-bg);
  border-color: var(--etpa-card-border);
  box-shadow: var(--etpa-card-shadow);
  backdrop-filter: blur(12px);
}

.theme-light .result-summary-grid-technical div {
  background:
    radial-gradient(circle at 90% 8%, rgba(0, 143, 163, 0.13), transparent 34%),
    var(--etpa-card-bg);
}

.theme-light .entity-toolbar,
.theme-light .resource-form > .field-grid > label,
.theme-light .resource-form .compact-fields > label,
.theme-light .resource-form .compact-fields > .inline-fields,
.theme-light .table-shell {
  background: var(--etpa-card-bg-subtle);
  border-color: var(--etpa-card-border);
}

.theme-light .lead-form input,
.theme-light .lead-form select,
.theme-light .lead-form textarea,
.theme-light .auth-form input,
.theme-light .field-grid input,
.theme-light .field-grid select,
.theme-light .field-grid textarea,
.theme-light .compact-fields textarea,
.theme-light .field-readonly,
.theme-light .resource-search input,
.theme-light .resource-search select {
  color: #10283a;
  background: var(--etpa-input-bg);
  border-color: var(--etpa-input-border);
}

.theme-light .result-table th {
  color: #006f82;
  background: var(--etpa-table-header-bg);
}

.theme-light .dashboard-layout .empty-results.compact,
.theme-light .dashboard-status-item,
.theme-light .dashboard-activity-list li,
.theme-light .detail-grid div,
.theme-light .detail-notes,
.theme-light .metadata-item,
.theme-light .resource-form .required-hint,
.theme-light .interpretation-list li {
  background: var(--etpa-card-bg-subtle);
  border-color: var(--etpa-card-border);
}

.theme-light .dashboard-kpi-value,
.theme-light .dashboard-status-value,
.theme-light .result-summary-grid strong {
  color: #00778a;
  text-shadow: none;
}

.theme-light .dashboard-kpi-label,
.theme-light .dashboard-status-label,
.theme-light .result-summary-grid span,
.theme-light .result-summary-grid small {
  color: #526b7c;
}

.theme-light .info-bubble {
  color: #f4fbff;
  background: rgba(8, 29, 46, 0.98);
  border-color: rgba(255, 255, 255, 0.16);
}

.theme-light .site-footer {
  background:
    radial-gradient(circle at 15% 8%, rgba(0, 194, 215, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(8, 29, 46, 1), rgba(16, 55, 92, 0.78)),
    #081D2E;
  border-top-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}

.theme-dark {
  --ink: #f4fbff;
  --muted: #c2d2dd;
  --line: rgba(255, 255, 255, 0.14);
  --surface: var(--etpa-bg-primary);
  --surface-strong: rgba(16, 55, 92, 0.86);
  --panel: rgba(255, 255, 255, 0.085);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --white: var(--etpa-white);
  --water: var(--etpa-cyan);
  --water-dark: var(--etpa-turquoise);
  --green: var(--etpa-success);
  --amber: var(--etpa-turquoise);
  --sand: rgba(16, 55, 92, 0.72);
  --focus-ring: rgba(0, 194, 215, 0.34);
  --etpa-card-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04)),
    rgba(8, 29, 46, 0.72);
  --etpa-card-bg-strong:
    linear-gradient(145deg, rgba(16, 55, 92, 0.78), rgba(8, 29, 46, 0.9));
  --etpa-card-bg-subtle:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(0, 194, 215, 0.035)),
    rgba(8, 29, 46, 0.58);
  --etpa-card-border: rgba(255, 255, 255, 0.15);
  --etpa-card-border-strong: rgba(0, 194, 215, 0.28);
  --etpa-card-shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
  --etpa-card-shadow-hover: 0 22px 58px rgba(0, 194, 215, 0.14);
  --etpa-empty-bg:
    linear-gradient(135deg, rgba(0, 194, 215, 0.12), rgba(46, 214, 208, 0.045)),
    rgba(8, 29, 46, 0.64);
  --etpa-input-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.065)),
    rgba(16, 55, 92, 0.34);
  --etpa-input-border: rgba(255, 255, 255, 0.16);
  --etpa-input-border-focus: rgba(0, 194, 215, 0.58);
  --etpa-input-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  --etpa-input-placeholder: rgba(184, 200, 214, 0.72);
  --etpa-table-header-bg:
    linear-gradient(180deg, rgba(16, 55, 92, 0.72), rgba(8, 29, 46, 0.86));
  --etpa-table-row-hover: rgba(0, 194, 215, 0.07);
  --etpa-table-divider: rgba(255, 255, 255, 0.11);
  --etpa-error-ink: #ffd4c7;
  --etpa-error-bg: rgba(88, 38, 32, 0.28);
  --etpa-error-border: rgba(255, 171, 145, 0.34);
  --etpa-success-ink: #d8f3d2;
  --etpa-success-bg: rgba(46, 125, 50, 0.16);
  --etpa-success-border: rgba(46, 125, 50, 0.38);
  background:
    radial-gradient(circle at top left, rgba(0, 194, 215, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(46, 214, 208, 0.1), transparent 32%),
    linear-gradient(135deg, var(--etpa-bg-primary) 0%, var(--etpa-bg-secondary) 100%);
  color: var(--ink);
}

.theme-dark .site-header {
  background: rgba(8, 29, 46, 0.94);
  border-bottom-color: #24384a;
}

.theme-dark .brand-mark {
  background: #00C2D7;
  color: #081D2E;
}

.theme-dark .nav a {
  color: #a9b8c4;
}

.theme-dark .nav a:hover,
.theme-dark .nav a:focus-visible,
.theme-dark .nav a[aria-current="page"] {
  background: #24384a;
  color: #eaf4f6;
}

.theme-dark .nav-button {
  color: #a9b8c4;
}

.theme-dark .nav-button:hover,
.theme-dark .nav-button:focus-visible {
  background: #24384a;
  color: #eaf4f6;
}

.theme-dark .theme-toggle {
  background: #0a1d2c;
  border-color: #24384a;
}

.theme-dark .app-sidebar {
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 194, 215, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(8, 29, 46, 0.98) 0%, rgba(6, 23, 38, 0.99) 56%, rgba(4, 15, 26, 1) 100%);
  border-right-color: rgba(255, 255, 255, 0.12);
}

.theme-dark .sidebar-header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.theme-dark .sidebar-user {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
    rgba(8, 29, 46, 0.46);
  border-color: rgba(255, 255, 255, 0.13);
}

.theme-dark .sidebar-user:hover,
.theme-dark .sidebar-user:focus-visible {
  background:
    linear-gradient(145deg, rgba(0, 194, 215, 0.14), rgba(46, 214, 208, 0.06)),
    rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 194, 215, 0.36);
}

.theme-dark .sidebar-account {
  background: linear-gradient(
    0deg,
    rgba(4, 15, 26, 1) 0%,
    rgba(8, 29, 46, 0.88) 78%,
    rgba(8, 29, 46, 0) 100%
  );
  border-top-color: rgba(255, 255, 255, 0.12);
}

.theme-dark .account-dropdown {
  background:
    linear-gradient(180deg, rgba(16, 55, 92, 0.92), rgba(8, 29, 46, 0.97)),
    #081D2E;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

.theme-dark .account-menu-item {
  color: #eaf4f6;
}

.theme-dark .account-menu-item:hover,
.theme-dark .account-menu-item:focus-visible {
  color: #2ED6D0;
  background: rgba(0, 194, 215, 0.1);
}

.theme-dark .account-menu-item.danger {
  color: #fca5a5;
}

.theme-dark .account-menu-item.danger:hover,
.theme-dark .account-menu-item.danger:focus-visible {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.36);
}

.theme-dark .account-menu-separator {
  background: #24384a;
}

.theme-dark .sidebar-link {
  color: rgba(218, 232, 239, 0.78);
}

.theme-dark .sidebar-brand-note,
.theme-dark .sidebar-brand-text small {
  color: #2ED6D0;
}

.theme-dark .sidebar-link:hover,
.theme-dark .sidebar-link:focus-visible,
.theme-dark .sidebar-link[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(0, 194, 215, 0.24);
}

.theme-dark .sidebar-link[aria-current="page"] {
  background:
    linear-gradient(90deg, rgba(0, 194, 215, 0.2), rgba(46, 214, 208, 0.08)),
    rgba(255, 255, 255, 0.085);
  border-color: rgba(0, 194, 215, 0.36);
  box-shadow: inset 3px 0 0 #2ED6D0;
}

.theme-dark .sidebar-link.disabled:hover {
  color: rgba(184, 200, 214, 0.86);
  background: transparent;
  border-color: transparent;
}

.theme-dark .sidebar-tooltip {
  color: #eaf4f6;
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

.theme-dark .sidebar-footer {
  border-top-color: #24384a;
}

.theme-dark .hero {
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 194, 215, 0.14),
      transparent 34%
    ),
    linear-gradient(
      130deg,
      rgba(13, 21, 32, 0.98),
      rgba(10, 17, 25, 1) 58%,
      rgba(15, 22, 35, 0.98) 100%
    ),
    #081D2E;
}

.theme-dark .hero-visual,
.theme-dark .visual-proof-section,
.theme-dark .treatment-comparison-card,
.theme-dark .metrics,
.theme-dark .diagnosis-card,
.theme-dark .alert-card,
.theme-dark .pain-card,
.theme-dark .application-image-card,
.theme-dark .contact-channel-card,
.theme-dark .contact-channel-empty,
.theme-dark .contact-section,
.theme-dark .lead-form {
  background: var(--etpa-card-bg);
  border-color: var(--etpa-card-border);
  box-shadow: var(--etpa-card-shadow);
}

.theme-dark .diagnosis-section,
.theme-dark .problem-section,
.theme-dark .applications-section {
  background: #081D2E;
}

.theme-dark .alert-section {
  background:
    linear-gradient(125deg, rgba(14, 116, 144, 0.46), rgba(10, 17, 25, 0.98)),
    #081D2E;
}

.theme-dark .feature-band {
  background:
    linear-gradient(125deg, rgba(14, 116, 144, 0.5), rgba(10, 17, 25, 0.98)),
    #081D2E;
}

.theme-dark .journey-list li {
  background: var(--etpa-card-bg-subtle);
  border-color: var(--etpa-card-border);
}

.theme-dark .lead-form input,
.theme-dark .lead-form select,
.theme-dark .lead-form textarea {
  color: #eaf4f6;
  background: var(--etpa-input-bg);
  border-color: var(--etpa-input-border);
}

.theme-dark .lead-form input:focus,
.theme-dark .lead-form select:focus,
.theme-dark .lead-form textarea:focus {
  border-color: var(--etpa-input-border-focus);
  box-shadow:
    var(--etpa-input-shadow),
    0 0 0 3px rgba(0, 194, 215, 0.22);
  outline: none;
}

.theme-dark .form-success {
  color: var(--etpa-success-ink);
  background: var(--etpa-success-bg);
  border-color: var(--etpa-success-border);
}

.theme-dark .flash-message {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.theme-dark .flash-message.success {
  color: var(--etpa-success-ink);
  background: var(--etpa-success-bg);
  border-color: var(--etpa-success-border);
}

.theme-dark .flash-message.error {
  color: var(--etpa-error-ink);
  background: var(--etpa-error-bg);
  border-color: var(--etpa-error-border);
}

.theme-dark .flash-message.info {
  color: #2ED6D0;
  background: rgba(0, 194, 215, 0.12);
  border-color: rgba(0, 194, 215, 0.32);
}

.theme-dark .flash-close:hover,
.theme-dark .flash-close:focus-visible {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.22);
}

.theme-dark .calculator-page,
.theme-dark .resource-page {
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 194, 215, 0.14),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(13, 21, 32, 0.96), rgba(10, 17, 25, 1) 48%),
    #081D2E;
}

.theme-dark .auth-page,
.theme-dark .app-page {
  background:
    radial-gradient(circle at 16% 12%, rgba(0, 194, 215, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(13, 21, 32, 0.96), rgba(10, 17, 25, 1) 48%),
    #081D2E;
}

.theme-dark .auth-brand-panel {
  background:
    linear-gradient(115deg, rgba(8, 29, 46, 0.22) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 86% 16%, rgba(0, 194, 215, 0.18), transparent 28%),
    radial-gradient(circle at 8% 90%, rgba(46, 214, 208, 0.12), transparent 30%),
    linear-gradient(135deg, #081D2E, #10375C);
  border-color: rgba(46, 214, 208, 0.2);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.theme-dark .auth-brand-logo {
  background: rgba(234, 244, 246, 0.92);
  border-color: rgba(46, 214, 208, 0.22);
}

.theme-dark .auth-brand-logo-full {
  background: transparent;
  border-color: transparent;
}

.theme-dark .auth-panel,
.theme-dark .app-card,
.theme-dark .resource-form,
.theme-dark .dashboard-kpi-card {
  background: var(--etpa-card-bg);
  border-color: var(--etpa-card-border);
  box-shadow: var(--etpa-card-shadow);
  backdrop-filter: blur(12px);
}

.theme-dark .auth-form input {
  color: #eaf4f6;
  background: var(--etpa-input-bg);
  border-color: var(--etpa-input-border);
}

.theme-dark .password-toggle {
  color: #a9b8c4;
}

.theme-dark .password-toggle:hover,
.theme-dark .password-toggle:focus-visible {
  color: #eaf4f6;
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(0, 194, 215, 0.32);
}

.theme-dark .compact-fields textarea {
  color: #eaf4f6;
  background: var(--etpa-input-bg);
  border-color: var(--etpa-input-border);
}

.theme-dark .auth-form input:focus {
  border-color: var(--etpa-input-border-focus);
  box-shadow:
    var(--etpa-input-shadow),
    0 0 0 3px rgba(0, 194, 215, 0.22);
  outline: none;
}

.theme-dark .app-hero {
  background:
    linear-gradient(125deg, rgba(14, 116, 144, 0.92), rgba(10, 17, 25, 0.98)),
    #081D2E;
  border-bottom: 1px solid #24384a;
}

.theme-dark .dashboard-hero-technical {
  background:
    linear-gradient(115deg, rgba(8, 29, 46, 0.2) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 86% 18%, rgba(46, 214, 208, 0.14), transparent 28%),
    linear-gradient(125deg, rgba(16, 55, 92, 0.98), rgba(8, 29, 46, 0.96)),
    #081D2E;
  border-bottom-color: rgba(0, 194, 215, 0.16);
}

.theme-dark .resource-page > .app-hero {
  background:
    linear-gradient(115deg, rgba(8, 29, 46, 0.2) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 88% 16%, rgba(0, 194, 215, 0.14), transparent 28%),
    linear-gradient(125deg, rgba(16, 55, 92, 0.98), rgba(8, 29, 46, 0.96)),
    #081D2E;
  border-bottom-color: rgba(0, 194, 215, 0.16);
}

.theme-dark .app-card span {
  color: #2ED6D0;
  background: rgba(30, 41, 59, 0.72);
}

.theme-dark .section-title span {
  color: #2ED6D0;
  background: rgba(30, 41, 59, 0.72);
}

.theme-dark .app-card:hover,
.theme-dark .app-card:focus-visible {
  border-color: rgba(0, 194, 215, 0.55);
  box-shadow: 0 18px 44px rgba(0, 194, 215, 0.14);
}

.theme-dark .calculator-hero {
  background:
    linear-gradient(125deg, rgba(14, 116, 144, 0.92), rgba(10, 17, 25, 0.98)),
    #081D2E;
  border-bottom: 1px solid #24384a;
}

.theme-dark .calculator-hero-technical {
  background:
    linear-gradient(115deg, rgba(8, 29, 46, 0.2) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 86% 18%, rgba(0, 194, 215, 0.16), transparent 28%),
    linear-gradient(125deg, rgba(16, 55, 92, 0.98), rgba(8, 29, 46, 0.96)),
    #081D2E;
  border-bottom-color: rgba(0, 194, 215, 0.16);
}

.theme-dark .calculator-form,
.theme-dark .result-section,
.theme-dark .result-summary-grid div {
  background: var(--etpa-card-bg);
  border-color: var(--etpa-card-border);
  box-shadow: var(--etpa-card-shadow);
  backdrop-filter: blur(12px);
}

.theme-dark .result-summary-grid-technical div {
  background:
    radial-gradient(circle at 90% 8%, rgba(0, 194, 215, 0.14), transparent 34%),
    var(--etpa-card-bg);
}

.theme-dark .field-grid input,
.theme-dark .field-grid select,
.theme-dark .field-grid textarea {
  color: #eaf4f6;
  background: var(--etpa-input-bg);
  border-color: var(--etpa-input-border);
}

.theme-dark .field-readonly {
  color: #eaf4f6;
  background: var(--etpa-input-bg);
  border-color: var(--etpa-input-border);
}

.theme-dark .field-grid input:focus,
.theme-dark .field-grid select:focus,
.theme-dark .field-grid textarea:focus {
  border-color: var(--etpa-input-border-focus);
  box-shadow:
    var(--etpa-input-shadow),
    0 0 0 3px rgba(0, 194, 215, 0.22);
  outline: none;
}

.theme-dark .compact-fields textarea:focus {
  border-color: var(--etpa-input-border-focus);
  box-shadow:
    var(--etpa-input-shadow),
    0 0 0 3px rgba(0, 194, 215, 0.22);
  outline: none;
}

.theme-dark .resource-search input {
  color: #eaf4f6;
  background: var(--etpa-input-bg);
  border-color: var(--etpa-input-border);
}

.theme-dark .resource-search select {
  color: #eaf4f6;
  background: var(--etpa-input-bg);
  border-color: var(--etpa-input-border);
}

.theme-dark .resource-search input:focus {
  border-color: var(--etpa-input-border-focus);
  box-shadow:
    var(--etpa-input-shadow),
    0 0 0 3px rgba(0, 194, 215, 0.22);
  outline: none;
}

.theme-dark .resource-search select:focus {
  border-color: var(--etpa-input-border-focus);
  box-shadow:
    var(--etpa-input-shadow),
    0 0 0 3px rgba(0, 194, 215, 0.22);
  outline: none;
}

.theme-dark .table-action {
  color: #2ED6D0;
  border-color: rgba(0, 194, 215, 0.28);
  background: rgba(0, 194, 215, 0.07);
}

.theme-dark .table-action:hover,
.theme-dark .table-action:focus-visible {
  color: #081D2E;
  background: #2ED6D0;
  border-color: #2ED6D0;
}

.theme-dark .table-action-danger {
  color: #fdc7c7;
  border-color: rgba(250, 161, 161, 0.34);
  background: rgba(99, 32, 32, 0.26);
}

.theme-dark .table-action-danger:hover,
.theme-dark .table-action-danger:focus-visible {
  color: #fecaca;
  background: rgba(116, 39, 39, 0.34);
  border-color: #fca5a5;
}

.theme-dark .required-marker {
  color: #fda4af;
}

.theme-dark .button.danger {
  color: #fdc7c7;
  background: rgba(99, 32, 32, 0.26);
  border-color: rgba(250, 161, 161, 0.34);
}

.theme-dark .button.danger:hover,
.theme-dark .button.danger:focus-visible {
  color: #fecaca;
  background: rgba(116, 39, 39, 0.34);
  border-color: #fca5a5;
}

.theme-dark .danger-zone {
  border-color: #6a4741;
  background:
    linear-gradient(180deg, rgba(59, 32, 27, 0.32), rgba(17, 24, 39, 0.8)),
    rgba(17, 24, 39, 0.76);
}

.theme-dark .danger-zone-title {
  color: #f7c3b7;
}

.theme-dark .danger-zone-description {
  color: #ddb0a5;
}

.theme-dark .detail-grid div,
.theme-dark .detail-notes,
.theme-dark .metadata-item {
  background: var(--etpa-card-bg-subtle);
  border-color: var(--etpa-card-border);
}

.theme-dark .dashboard-kpi-label,
.theme-dark .dashboard-activity-list li span,
.theme-dark .dashboard-activity-list li small {
  color: #a9b8c4;
}

.theme-dark .dashboard-kpi-value,
.theme-dark .dashboard-status-label,
.theme-dark .dashboard-status-value,
.theme-dark .dashboard-activity-list li strong {
  color: #eaf4f6;
}

.theme-dark .dashboard-kpi-card::before {
  background: linear-gradient(90deg, #00C2D7, #2ED6D0);
}

.theme-dark .dashboard-quick-actions .button.secondary {
  color: #eaf4f6;
  background: rgba(30, 41, 59, 0.52);
  border-color: rgba(46, 214, 208, 0.32);
}

.theme-dark .dashboard-quick-actions .button.secondary:hover,
.theme-dark .dashboard-quick-actions .button.secondary:focus-visible {
  color: #081D2E;
  background: #2ED6D0;
}

.theme-dark .dashboard-status-item,
.theme-dark .dashboard-activity-list li {
  background: var(--etpa-card-bg-subtle);
  border-color: var(--etpa-card-border);
}

.theme-dark .entity-toolbar,
.theme-dark .resource-form > .field-grid > label,
.theme-dark .resource-form .compact-fields > label,
.theme-dark .resource-form .compact-fields > .inline-fields,
.theme-dark .resource-form .required-hint,
.theme-dark .table-shell {
  background: var(--etpa-card-bg-subtle);
  border-color: var(--etpa-card-border);
}

.theme-dark .dashboard-layout .empty-results.compact {
  color: #a9b8c4;
  background: var(--etpa-empty-bg);
  border-color: var(--etpa-card-border-strong);
}

.theme-dark .status-pill {
  color: #2ED6D0;
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(0, 194, 215, 0.28);
}

.theme-dark .calculator-errors p {
  color: var(--etpa-error-ink);
  background: var(--etpa-error-bg);
  border-color: var(--etpa-error-border);
}

.theme-dark .calculator-status {
  color: #a9b8c4;
  background: var(--etpa-card-bg-subtle);
  border-color: var(--etpa-card-border);
}

.theme-dark .calculator-form[data-state="loading"] .calculator-status {
  color: #2ED6D0;
  border-color: rgba(0, 194, 215, 0.28);
}

.theme-dark .calculator-form[data-state="invalid"] .calculator-status {
  color: var(--etpa-error-ink);
  background: var(--etpa-error-bg);
  border-color: var(--etpa-error-border);
}

.theme-dark .result-summary-grid strong,
.theme-dark .tool-heading h2,
.theme-dark .result-table td:first-child {
  color: #eaf4f6;
}

.theme-dark .result-table th {
  color: #2ED6D0;
  background: var(--etpa-table-header-bg);
}

.theme-dark .result-table th,
.theme-dark .result-table td {
  border-bottom-color: var(--etpa-table-divider);
}

.theme-dark .entity-table tbody tr:hover {
  background: var(--etpa-table-row-hover);
}

.theme-dark .result-section > .tool-heading {
  background: linear-gradient(90deg, rgba(0, 194, 215, 0.1), transparent);
  border-bottom-color: #24384a;
}

.theme-dark .collapsible-subsection {
  border-top-color: #24384a;
}

.theme-dark .collapsible-summary:hover,
.theme-dark .collapsible-summary:focus-visible {
  background: rgba(0, 194, 215, 0.12);
}

.theme-dark .interpretation-list li {
  background: var(--etpa-card-bg-subtle);
  border-color: var(--etpa-card-border);
  color: #c8d5dc;
}

.theme-dark .site-footer {
  background:
    radial-gradient(circle at 15% 8%, rgba(0, 194, 215, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(8, 29, 46, 1), rgba(16, 55, 92, 0.78)),
    #081D2E;
  border-top: 1px solid #24384a;
}

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

  .app-sidebar,
  .sidebar-collapsed .app-sidebar {
    align-items: stretch;
    position: static;
    height: auto;
    min-height: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-header,
  .sidebar-collapsed .sidebar-header,
  .sidebar-account,
  .sidebar-collapsed .sidebar-account {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .sidebar-collapsed .sidebar-dots {
    display: flex;
    justify-items: initial;
    width: auto;
  }

  .sidebar-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .sidebar-collapsed .sidebar-brand,
  .sidebar-collapsed .sidebar-user,
  .sidebar-collapsed .sidebar-nav {
    width: auto;
  }

  .sidebar-collapsed .sidebar-brand,
  .sidebar-collapsed .sidebar-user,
  .sidebar-collapsed .sidebar-link {
    justify-content: flex-start;
  }

  .sidebar-collapsed .sidebar-label {
    display: inline;
  }

  .sidebar-collapsed .sidebar-brand-text {
    display: grid;
  }

  .sidebar-collapsed .sidebar-brand-note {
    display: block;
  }

  .sidebar-collapsed .sidebar-user-meta,
  .sidebar-collapsed .sidebar-section {
    display: block;
  }

  .sidebar-nav {
    display: grid;
    max-height: 42vh;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-account {
    margin-top: 4px;
  }

  .sidebar-collapsed .account-more {
    display: block;
  }

  .sidebar-collapsed .account-dropdown,
  .account-dropdown {
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    width: auto;
  }

  .sidebar-section {
    grid-column: 1 / -1;
  }

  .pain-grid,
  .applications-grid,
  .auth-layout,
  .calculator-workspace,
  .resource-workspace,
  .app-grid,
  .dashboard-two-column,
  .dashboard-three-column {
    grid-template-columns: 1fr;
  }

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

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

  .dashboard-hero-indicators,
  .calculator-hero-badges {
    justify-content: flex-start;
  }

  .dashboard-quick-actions {
    justify-content: flex-start;
  }

  .auth-brand-panel {
    min-height: auto;
  }

  .calculator-form {
    position: static;
  }
}

@media (max-width: 1120px) and (min-width: 761px) {
  .diagnosis-grid,
  .alert-grid,
  .pain-grid,
  .applications-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnosis-image-grid .diagnosis-image-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, 30rem);
    justify-self: center;
  }

  .alert-grid .alert-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1020px) {
  .hero,
  .visual-proof-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .warning-carousel-section {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
    max-width: min(100%, 620px);
  }

  .hero {
    min-height: auto;
  }

  .hero-proof-card {
    width: min(100%, 720px);
    justify-self: center;
  }

  .hero-visual {
    min-height: 360px;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .header-actions {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
  }

  .theme-toggle {
    width: 76px;
  }

  .compact-theme {
    width: 68px;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .sidebar-brand-note {
    margin-left: 0;
  }

  .dashboard-quick-actions,
  .dashboard-hero-indicators,
  .calculator-hero-badges,
  .dashboard-quick-actions .button {
    width: 100%;
  }

  .dashboard-hero-indicators span,
  .calculator-hero-badges span {
    flex: 1 1 130px;
    justify-content: center;
  }

  .dashboard-quick-actions .button {
    justify-content: center;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-brand-badge {
    min-height: auto;
    padding: 9px 11px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  .hero-proof-card {
    padding: 8px;
  }

  .hero-proof-card img {
    max-height: none;
  }

  .hero-proof-card figcaption {
    position: static;
    max-width: none;
    margin-top: 8px;
    background: rgba(8, 29, 46, 0.9);
  }

  .hero-visual {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .water-panel {
    min-height: 220px;
  }

  .module-line {
    grid-template-columns: repeat(3, 1fr);
  }

  .module-line span {
    width: 52px;
    height: 52px;
  }

  .metrics,
  .diagnosis-grid,
  .alert-grid,
  .pain-grid,
  .applications-grid,
  .result-summary-grid {
    grid-template-columns: 1fr;
  }

  .warning-carousel-summary {
    grid-template-columns: 1fr;
  }

  .warning-carousel-viewport {
    min-height: clamp(320px, 92vw, 430px);
  }

  .diagnosis-image-card {
    min-height: 228px;
  }

  .warning-carousel-control {
    width: 42px;
    height: 42px;
  }

  .warning-carousel-control--prev {
    left: 12px;
  }

  .warning-carousel-control--next {
    right: 12px;
  }

  .application-image-card {
    min-height: 236px;
  }

  .alert-grid .alert-card:last-child {
    grid-column: auto;
  }

  .result-summary-grid div {
    min-height: 112px;
    padding: 16px;
  }

  .technical-result-section > .tool-heading {
    display: grid;
    align-items: start;
    justify-content: stretch;
  }

  .resource-page .section-title.section-title-with-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-page .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-actions {
    width: 100%;
    justify-content: flex-start;
    padding: 0 20px 16px;
  }

  .resource-toolbar,
  .resource-actions,
  .entity-detail > .resource-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .resource-search {
    display: grid;
    width: 100%;
    flex: 1 1 auto;
    grid-template-columns: 1fr;
  }

  .resource-search input,
  .resource-search select,
  .resource-search button,
  .resource-toolbar > .button,
  .resource-actions .button,
  .resource-actions form,
  .resource-actions button {
    min-width: 0;
    width: 100%;
  }

  .table-actions {
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
  }

  .table-action {
    flex: 1 1 96px;
    min-height: 34px;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .contact-channel-card {
    min-height: 84px;
    padding: 14px;
  }

  .site-footer {
    padding-bottom: 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
    max-width: none;
  }

  .footer-contact,
  .footer-cta {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .warning-carousel-slide {
    position: relative;
    display: none;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .warning-carousel-slide.is-active {
    display: block;
  }

  .warning-carousel-indicator::after {
    transition: none;
  }
}

.section-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.collection-fieldset {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  background: var(--etpa-card-bg-subtle);
}

.collection-fieldset legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 850;
}

.collection-list {
  display: grid;
  gap: 12px;
}

.collection-row {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
  background: var(--etpa-card-bg);
}

.bank-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.collection-primary {
  display: grid;
  gap: 8px;
  grid-template-columns: auto 18px;
  min-width: 0;
  align-items: center;
  justify-content: start;
}

.collection-primary input {
  width: 18px;
  height: 18px;
}

.collection-remove {
  justify-self: start;
  white-space: nowrap;
}

.collection-row > label {
  min-width: 0;
}

.collection-row:not(.bank-row) {
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto auto;
  align-items: end;
}

.detail-phone-list {
  display: grid;
  gap: 4px;
}

.primary-badge {
  display: inline-block;
  color: var(--etpa-success-ink);
  background: var(--etpa-success-bg);
  border: 1px solid var(--etpa-success-border);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.72rem;
}

.bank-display-row {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
}

.parameter-trigger {
  padding: 7px 10px;
  color: var(--water);
  background: transparent;
  border: 1px solid var(--etpa-card-border-strong);
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.parameter-trigger:hover,
.parameter-trigger:focus-visible {
  background: var(--etpa-table-row-hover);
}

.parameter-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 22px;
}

.catalog-modal[hidden] {
  display: none;
}

.catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.62);
}

.catalog-modal-dialog {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: hidden;
  padding: 24px;
  color: var(--ink);
  background: var(--etpa-card-bg-strong);
  border: 1px solid var(--etpa-card-border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.catalog-modal-content {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

body.catalog-modal-open {
  overflow: hidden;
}

.resource-form .compact-fields > .analysis-commercial-fields {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns:
    minmax(180px, 2fr)
    minmax(110px, 0.8fr)
    minmax(150px, 1fr)
    minmax(150px, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(0, 194, 215, 0.055), rgba(255, 255, 255, 0.032)),
    var(--etpa-card-bg-subtle);
  border: 1px solid var(--etpa-card-border);
  border-radius: 8px;
}

.analysis-commercial-fields label {
  min-width: 0;
}

@media (max-width: 980px) {
  .resource-form .compact-fields > .analysis-commercial-fields {
    grid-template-columns: minmax(180px, 2fr) minmax(110px, 1fr);
  }
}

.catalog-modal-dialog:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .collection-row,
  .bank-row {
    grid-template-columns: 1fr;
  }

  .collection-primary {
    justify-self: start;
  }

  .section-title-actions {
    justify-content: flex-start;
  }

  .resource-form .compact-fields > .analysis-commercial-fields {
    grid-template-columns: 1fr;
  }
}

.resource-form > .material-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.resource-form > .material-form-grid > label {
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.theme-light .resource-form > .material-form-grid > label,
.theme-dark .resource-form > .material-form-grid > label {
  background: transparent;
  border-color: transparent;
}

.material-form-commercial-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns:
    minmax(180px, 1.4fr)
    minmax(180px, 1fr)
    minmax(130px, 0.7fr);
  gap: 14px;
  min-width: 0;
}

.material-form-commercial-grid label {
  min-width: 0;
}

.material-form-supplier,
.material-form-notes {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .material-form-commercial-grid {
    grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 1fr);
  }

  .material-form-commercial-grid > label:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .resource-form > .material-form-grid,
  .material-form-commercial-grid {
    grid-template-columns: 1fr;
  }

  .material-form-commercial-grid > label:last-child {
    grid-column: auto;
  }
}

.billing-page {
  gap: 22px;
}

.billing-file-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.billing-file-meta div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.billing-file-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.billing-file-meta strong {
  color: var(--ink);
}

.billing-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.billing-upload-form {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 12px 20px 12px 0;
}

.billing-upload-form label {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.billing-upload-form input[type="file"] {
  max-width: min(100%, 320px);
  color: var(--ink);
  font: inherit;
}

.billing-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--etpa-card-border);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.billing-status-active {
  color: var(--etpa-success-ink);
  background: var(--etpa-success-bg);
  border-color: var(--etpa-success-border);
}

.billing-status-historical {
  color: var(--muted);
  background: var(--etpa-card-bg-subtle);
}

@media (max-width: 760px) {
  .billing-file-meta {
    grid-template-columns: 1fr;
  }

  .billing-upload-form {
    width: 100%;
    padding: 12px 20px 16px;
  }

  .billing-upload-form input[type="file"],
  .billing-upload-form .button {
    width: 100%;
    max-width: none;
  }
}
