:root {
  --ink: #07111f;
  --ink-2: #102033;
  --ink-3: #1b3048;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #eef4f8;
  --line: #dbe5ee;
  --line-dark: rgba(255, 255, 255, 0.14);
  --muted: #657386;
  --muted-dark: #aab8c9;
  --cyan: #13b7c8;
  --cyan-2: #087995;
  --mint: #1ec99b;
  --amber: #f2b84b;
  --coral: #f26d5b;
  --violet: #7467f0;
  --success: #11966e;
  --warning: #b7791f;
  --danger: #cc4b37;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(7, 17, 31, 0.12);
  --shadow-soft: 0 10px 30px rgba(7, 17, 31, 0.08);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

.page {
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(219, 229, 238, 0.78);
  background: rgba(247, 249, 252, 0.86);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

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

.brand img {
  width: 150px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: color 160ms ease, background 160ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  background: var(--surface-2);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

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

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-2), var(--cyan) 52%, var(--mint));
  box-shadow: 0 16px 34px rgba(19, 183, 200, 0.28);
}

.button.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.button.dark {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-dark);
}

.button.ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  padding: 96px 0 76px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.98) 0%, rgba(7, 17, 31, 0.92) 42%, rgba(7, 17, 31, 0.66) 100%),
    url("assets/huj-hero.png") center / cover;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 92px;
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: #c8f7ff;
  background: rgba(8, 121, 149, 0.16);
  font-size: 13px;
  font-weight: 750;
}

.eyebrow.light {
  color: var(--cyan-2);
  background: rgba(19, 183, 200, 0.1);
  border-color: rgba(19, 183, 200, 0.18);
}

.signal {
  width: 8px;
  height: 8px;
  border-radius: 75%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(30, 201, 155, 0.16);
}

.hero h1,
.section-head h2,
.cta h2 {
  margin: 0;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.03;
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(44px, 6vw, 78px);
}

.accent-text {
  color: #7df1ff;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
  line-height: 1.68;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 610px;
  gap: 1px;
  margin-top: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.hero-metrics div {
  min-height: 88px;
  padding: 18px;
  background: rgba(7, 17, 31, 0.62);
}

.hero-metrics strong {
  display: block;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.product-frame {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
  transform-origin: center;
}

.product-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(125, 241, 255, 0.32), transparent 45%, rgba(30, 201, 155, 0.28));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted-dark);
  font-size: 12px;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
}

.browser-url {
  min-width: 220px;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.cockpit {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #f7faff;
}

.mini-sidebar {
  padding: 18px 12px;
  background: #0b1727;
  color: rgba(255, 255, 255, 0.62);
}

.mini-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.mini-mark {
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.mini-nav {
  display: grid;
  gap: 6px;
}

.mini-nav span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}

.mini-nav span.active,
.mini-nav span:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.mini-main {
  padding: 18px;
  color: var(--ink);
}

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

.mini-title {
  font-size: 19px;
  font-weight: 840;
}

.mini-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(30, 201, 155, 0.22);
  border-radius: var(--radius);
  color: var(--success);
  background: rgba(30, 201, 155, 0.1);
  font-size: 12px;
  font-weight: 780;
}

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

.mini-card,
.feature-card,
.logo-card,
.step,
.table-wrap,
.dashboard-card,
.task-card,
.pipeline-column,
.app-panel,
.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.mini-card {
  min-height: 96px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(7, 17, 31, 0.07);
}

.mini-card span,
.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.mini-card strong,
.metric-card strong {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.mini-card small,
.metric-card small {
  display: block;
  margin-top: 7px;
  color: var(--success);
  font-size: 12px;
  font-weight: 750;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  margin-top: 12px;
}

.chart-card {
  min-height: 220px;
  padding: 16px;
}

.chart-head,
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.chart-head b,
.card-head b {
  font-size: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: var(--radius);
  color: var(--cyan-2);
  background: rgba(19, 183, 200, 0.1);
  font-size: 12px;
  font-weight: 760;
}

.bars {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 144px;
  padding-top: 10px;
}

.bars span {
  min-height: 22px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-2));
}

.bars span:nth-child(2n) {
  background: linear-gradient(180deg, var(--mint), #11966e);
}

.bars span:nth-child(3n) {
  background: linear-gradient(180deg, var(--amber), #d39121);
}

.tasks {
  display: grid;
  gap: 10px;
}

.task-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.task-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--ink-2);
  font-size: 12px;
  font-weight: 900;
}

.task-line b {
  display: block;
  font-size: 12px;
}

.task-line small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.status-pill {
  padding: 5px 7px;
  border-radius: var(--radius);
  color: var(--success);
  background: rgba(30, 201, 155, 0.12);
  font-size: 11px;
  font-weight: 800;
}

.logo-strip {
  position: relative;
  z-index: 2;
  margin-top: -26px;
}

.logo-panel {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.logo-panel p {
  max-width: 210px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.logo-card {
  display: grid;
  place-items: center;
  min-height: 70px;
  padding: 10px;
  background: #ffffff;
}

.logo-card img {
  max-height: 40px;
  object-fit: contain;
}

.partner-card {
  position: relative;
  align-content: center;
  gap: 5px;
  overflow: hidden;
  text-align: center;
}

.partner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(19, 183, 200, 0.1), transparent 46%),
    linear-gradient(315deg, rgba(30, 201, 155, 0.12), transparent 52%);
  pointer-events: none;
}

.partner-card strong,
.partner-card span {
  position: relative;
  z-index: 1;
}

.partner-card strong {
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0;
}

.partner-card span {
  color: var(--cyan-2);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.section {
  padding: 92px 0;
}

.section.tight {
  padding: 68px 0;
}

.section.alt {
  background: #ffffff;
}

.section.dark {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 1), rgba(10, 38, 55, 0.98)),
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.section-head.center {
  display: block;
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 {
  max-width: 740px;
  font-size: clamp(32px, 4vw, 52px);
}

.section-head p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.section.dark .section-head p,
.section.dark .muted-on-dark {
  color: rgba(255, 255, 255, 0.64);
}

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

.feature-card {
  min-height: 260px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(19, 183, 200, 0.45);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  color: #ffffff;
}

.feature-icon.cyan { background: var(--cyan-2); }
.feature-icon.mint { background: var(--success); }
.feature-icon.amber { background: var(--warning); }
.feature-icon.coral { background: var(--danger); }
.feature-icon.violet { background: var(--violet); }
.feature-icon.ink { background: var(--ink-2); }

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3,
.step h3,
.dashboard-card h3,
.pipeline-column h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.feature-card p,
.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 54px;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--ink);
  font-weight: 900;
}

.journey-visual {
  position: relative;
  min-height: 470px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    linear-gradient(135deg, rgba(19, 183, 200, 0.14), rgba(30, 201, 155, 0.08));
  overflow: hidden;
}

.journey-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
}

.flow {
  position: relative;
  display: grid;
  gap: 14px;
}

.flow-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 17, 31, 0.72);
  color: #ffffff;
}

.flow-card strong {
  display: block;
  font-size: 14px;
}

.flow-card span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.flow-tag {
  padding: 6px 8px;
  border-radius: var(--radius);
  background: rgba(30, 201, 155, 0.16);
  color: #9cf5d9;
  font-size: 12px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  box-shadow: var(--shadow-soft);
}

.comparison {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: #ffffff;
}

.comparison th,
.comparison td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.comparison th {
  color: var(--muted);
  background: #f3f7fb;
  font-weight: 780;
}

.comparison th:nth-child(2),
.comparison td:nth-child(2) {
  color: var(--cyan-2);
  background: rgba(19, 183, 200, 0.06);
  font-weight: 840;
}

.comparison tr:last-child td {
  border-bottom: 0;
}

.yes,
.no {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.yes { background: var(--success); }
.no { background: #a7b1bd; }

.dashboard-preview {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  min-height: 650px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-rail {
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: #0a1728;
  color: #ffffff;
}

.preview-rail .brand img {
  width: 145px;
  filter: brightness(0) invert(1);
}

.rail-nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  font-weight: 740;
}

.rail-nav a.active,
.rail-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.preview-main {
  padding: 24px;
  background: #f7f9fc;
}

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

.preview-header h3 {
  margin: 0;
  font-size: 26px;
}

.preview-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.dashboard-card {
  min-height: 132px;
  padding: 18px;
}

.dashboard-card strong {
  display: block;
  margin-top: 16px;
  font-size: 29px;
  line-height: 1;
}

.dashboard-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 12px;
  margin-top: 12px;
}

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

.pipeline-column {
  padding: 14px;
  background: #ffffff;
}

.pipeline-column h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.deal {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.deal b {
  display: block;
  font-size: 13px;
}

.deal span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.deal strong {
  display: block;
  margin-top: 10px;
  color: var(--cyan-2);
  font-size: 13px;
}

.pipeline-items {
  display: grid;
  gap: 10px;
}

.pipeline-empty {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.side-stack {
  display: grid;
  gap: 12px;
}

.cta {
  padding: 74px 0;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.98), rgba(8, 121, 149, 0.92)),
    linear-gradient(90deg, rgba(30, 201, 155, 0.1), rgba(242, 184, 75, 0.1));
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta h2 {
  max-width: 760px;
  font-size: clamp(32px, 4vw, 52px);
}

.cta p {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.6;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

.footer img {
  width: 130px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.app-page {
  min-height: 100vh;
  background: #eef4f8;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.app-topbar-inner {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 66px;
  gap: 18px;
  padding: 0 22px;
}

.app-search {
  position: relative;
}

.app-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
}

.app-search input {
  width: min(620px, 100%);
  height: 42px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfd;
  color: var(--ink);
  outline: none;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  font-size: 13px;
  font-weight: 760;
}

.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-2), var(--mint));
  font-size: 12px;
  font-weight: 900;
}

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

.app-sidebar {
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  overflow: auto;
}

.sidebar-group {
  margin-top: 24px;
}

.sidebar-label {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.app-nav {
  display: grid;
  gap: 5px;
}

.app-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.app-nav a.active,
.app-nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.app-nav a.active .nav-dot {
  background: var(--cyan);
}

.nav-count {
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #e2392d;
  box-shadow: 0 0 0 3px rgba(226, 57, 45, 0.13);
  font-size: 11px;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
}

.nav-count[hidden] {
  display: none;
}

.app-main {
  padding: 28px;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.workspace-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.workspace-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

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

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.segmented button,
.filter-button,
.icon-button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.segmented button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 760;
}

.segmented button.active {
  color: var(--ink);
  background: var(--surface-2);
}

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

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border-color: var(--line);
  background: #ffffff;
  font-size: 13px;
  font-weight: 760;
}

.filter-button svg,
.icon-button svg {
  width: 17px;
  height: 17px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-color: var(--line);
  background: #ffffff;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.metric-card {
  min-height: 130px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(7, 17, 31, 0.06);
}

.metric-card-highlight {
  border-color: rgba(19, 183, 200, 0.38);
  background: linear-gradient(145deg, rgba(19, 183, 200, 0.09), #ffffff 62%);
}

.metric-card-highlight strong {
  color: var(--cyan-2);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
}

.app-panel {
  padding: 18px;
  box-shadow: 0 10px 26px rgba(7, 17, 31, 0.06);
}

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

.panel-title h2 {
  margin: 0;
  font-size: 18px;
}

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

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

.board .pipeline-column {
  background: #f8fbfd;
}

.table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.table-price {
  white-space: nowrap;
  color: var(--ink);
  font-weight: 850;
}

.table-price small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.table-contract-empty {
  color: var(--muted);
  font-size: 12px;
}

/* Cockpit views: customers, documents and commissions */
.cockpit-view[hidden] {
  display: none !important;
}

.cockpit-view.active {
  animation: cockpit-view-in 180ms ease;
}

@keyframes cockpit-view-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.text-action {
  padding: 0;
  border: 0;
  color: var(--cyan-2);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.full-button {
  justify-content: center;
  width: 100%;
  margin-top: 14px;
}

.section-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-toolbar h2 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.section-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.view-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.view-summary strong {
  color: var(--ink);
  font-size: 20px;
}

.view-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 0.65fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.8);
  box-shadow: 0 10px 30px rgba(6, 31, 49, .035);
}

.filter-bar label {
  display: grid;
  gap: 6px;
}

.filter-bar label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 12px;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(19, 183, 200, .65);
  box-shadow: 0 0 0 3px rgba(19, 183, 200, .1);
}

.mini-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.mini-metric-grid article {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.mini-metric-grid span,
.mini-metric-grid strong {
  display: block;
}

.mini-metric-grid span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-metric-grid strong {
  color: var(--ink);
  font-size: 22px;
}

.wide-table {
  min-width: 1120px;
}

.compact-table {
  min-width: 720px;
}

.table td > b,
.table td > small,
.table td > span:not(.status-pill):not(.document-badge) {
  display: block;
}

.table td > small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.commission-value {
  color: #087457;
}

.document-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}

.document-badge.available {
  color: #087457;
  background: rgba(31, 199, 150, .12);
}

.document-badge.missing {
  color: #8a5a10;
  background: rgba(245, 175, 56, .14);
}

.formula-box {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(19, 183, 200, .2);
  border-radius: 12px;
  background: rgba(19, 183, 200, .06);
}

.formula-box b {
  flex: none;
  color: var(--cyan-2);
  font-size: 18px;
}

.formula-box span {
  color: var(--muted);
  font-size: 11px;
}

.commission-explainer {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) auto minmax(240px, 1fr) minmax(280px, 1.25fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(19, 183, 200, .22);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(19,183,200,.08), rgba(31,199,150,.05));
}

.commission-explainer div span,
.commission-explainer div strong {
  display: block;
}

.commission-explainer div span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.commission-explainer div strong {
  color: var(--ink);
  font-size: 23px;
}

.commission-explainer i {
  color: var(--cyan-2);
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
}

.commission-explainer p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.55;
}

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

@media (max-width: 1180px) {
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commission-explainer {
    grid-template-columns: 1fr auto 1fr;
  }

  .commission-explainer p {
    grid-column: 1 / -1;
  }
}

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

  .filter-bar,
  .mini-metric-grid,
  .commission-metrics {
    grid-template-columns: 1fr;
  }

  .commission-explainer {
    grid-template-columns: 1fr;
  }

  .commission-explainer i {
    transform: rotate(90deg);
  }
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

.table th {
  color: var(--muted);
  font-weight: 800;
}

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

.table td:first-child b,
.table td:first-child small {
  display: block;
}

.table td:first-child small {
  max-width: 210px;
  margin-top: 4px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-state {
  height: 90px;
  color: var(--muted);
  text-align: center !important;
}

.table-state.error {
  color: var(--danger);
}

.table-action {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--cyan-2);
  background: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.table-action:hover {
  border-color: rgba(19, 183, 200, 0.45);
  background: rgba(19, 183, 200, 0.07);
}

.status-error,
.status-rejected {
  color: #9f3326;
  background: rgba(242, 109, 91, 0.13);
}

.status-accepted,
.status-confirmed,
.status-policiert {
  color: #087a58;
  background: rgba(30, 201, 155, 0.14);
}

.status-needs_review,
.status-verification,
.status-validating {
  color: #8a5a12;
  background: rgba(242, 184, 75, 0.18);
}

.health {
  display: grid;
  gap: 10px;
}

.health-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

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

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan-2), var(--mint));
}

.stack {
  display: grid;
  gap: 14px;
}

.focus-card {
  padding: 16px;
  border: 1px solid rgba(19, 183, 200, 0.22);
  border-radius: var(--radius);
  background: rgba(19, 183, 200, 0.08);
}

.focus-card b {
  display: block;
  margin-bottom: 6px;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

body:has(.auth-dialog[open]) {
  overflow: hidden;
}

.auth-dialog {
  width: min(460px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 28px 90px rgba(7, 17, 31, 0.34);
  overflow: auto;
}

.auth-dialog::backdrop {
  background: rgba(7, 17, 31, 0.76);
  backdrop-filter: blur(8px);
}

.auth-dialog-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(219, 229, 238, 0.86);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(19, 183, 200, 0.055), transparent 34%),
    #ffffff;
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
}

.auth-close:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.auth-close svg {
  width: 18px;
  height: 18px;
}

.auth-brand {
  margin: -7px 0 24px -10px;
}

.auth-brand img {
  width: 150px;
}

.auth-dialog .eyebrow {
  margin-bottom: 17px;
}

.auth-dialog h2 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.1;
}

.auth-intro {
  margin: 10px 0 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-field {
  display: block;
  margin-bottom: 17px;
}

.auth-field > span:first-child {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 760;
}

.auth-field input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #cbd8e2;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fbfdff;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.auth-field input:focus {
  border-color: var(--cyan-2);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(19, 183, 200, 0.12);
}

.password-input {
  position: relative;
  display: block;
}

.password-input input {
  padding-right: 90px;
}

.password-input button {
  position: absolute;
  top: 50%;
  right: 7px;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  color: var(--cyan-2);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-input button:hover {
  background: rgba(19, 183, 200, 0.08);
}

.auth-error {
  display: none;
  margin: 4px 0 16px;
  padding: 11px 12px;
  border: 1px solid rgba(204, 75, 55, 0.18);
  border-radius: var(--radius);
  color: #922f22;
  background: #fff1ee;
  font-size: 12px;
  line-height: 1.45;
}

.auth-error.visible {
  display: block;
}

.auth-submit {
  width: 100%;
  margin-top: 3px;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.auth-note {
  margin: 21px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.auth-guard-loader {
  display: none;
}

.auth-pending .app-page {
  visibility: hidden;
}

.auth-pending .auth-guard-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

.auth-guard-loader span {
  width: 22px;
  height: 22px;
  border: 3px solid var(--line);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: auth-spin 0.75s linear infinite;
}

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

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .hero-grid,
  .split,
  .dashboard-preview,
  .main-grid {
    grid-template-columns: 1fr;
  }

  .product-frame {
    transform: none;
  }

  .feature-grid,
  .dashboard-cards,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .logo-panel p {
    grid-column: 1 / -1;
    max-width: none;
  }

  .app-topbar-inner {
    grid-template-columns: 190px 1fr auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .topbar-inner {
    min-height: 64px;
  }

  .brand {
    min-width: auto;
  }

  .brand img {
    width: 128px;
  }

  .actions .button.secondary,
  .actions .button.primary {
    display: none;
  }

  .hero {
    padding: 66px 0 56px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .hero-metrics,
  .kpi-row,
  .mini-grid,
  .feature-grid,
  .dashboard-cards,
  .metric-grid,
  .board,
  .pipeline {
    grid-template-columns: 1fr;
  }

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

  .mini-sidebar {
    display: none;
  }

  .logo-panel {
    grid-template-columns: 1fr;
  }

  .section,
  .section.tight {
    padding: 56px 0;
  }

  .section-head,
  .cta-inner,
  .footer-inner,
  .workspace-head,
  .preview-header {
    display: grid;
    align-items: start;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .app-topbar-inner {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
  }

  .app-search {
    display: none;
  }

  .app-main {
    padding: 18px 14px;
  }

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

  .filters {
    width: 100%;
  }

  .filter-button {
    flex: 1 1 150px;
  }

  .auth-dialog-card {
    padding: 28px 22px;
  }

  .auth-dialog h2 {
    font-size: 28px;
  }
}
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.notification-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.notification-card {
  border: 1px solid #a9ddd7;
  border-left: 4px solid #14a594;
  border-radius: 12px;
  padding: 14px 16px;
  background: #f1fbf9;
}

.notification-card b,
.notification-card span {
  display: block;
}

.notification-card span {
  margin-top: 4px;
  color: #52697c;
}

.table-action.approve {
  color: #087a68;
  border-color: #9dded3;
  background: #eefbf8;
}

.table-action.danger {
  color: #a33b31;
  border-color: #efc1bc;
  background: #fff5f3;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 24px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
#brokersTableBody select {
  width: 100%;
  border: 1px solid #cbd9e4;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: #0b2239;
  font: inherit;
}

.application-status-select {
  min-width: 128px;
  border: 1px solid #bed5de;
  border-radius: 999px;
  padding: 7px 30px 7px 11px;
  background: #eef9f7;
  color: #075d58;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.application-status-select:disabled {
  cursor: wait;
  opacity: 0.65;
}

#brokersTableBody td {
  vertical-align: top;
  min-width: 105px;
}

#brokersTableBody td:first-child {
  min-width: 230px;
}

#brokersTableBody b,
#brokersTableBody small {
  display: block;
}

#brokersTableBody small {
  margin-top: 4px;
  color: #60778a;
  white-space: nowrap;
}

#brokersTableBody .muted-id {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 10px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
}

#brokersTableBody .broker-stages {
  min-width: 185px;
  white-space: nowrap;
}

#brokersTableBody .broker-stages .status-pill {
  margin: 2px 1px;
}

.submission-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: grid;
  gap: 6px;
  width: min(430px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid #8bded3;
  border-radius: 14px;
  background: #ecfffb;
  color: #073b3c;
  box-shadow: 0 18px 48px rgba(5, 35, 55, 0.2);
}

.submission-toast b {
  font-size: 15px;
}

.submission-toast span {
  color: #315e66;
  line-height: 1.45;
}

.admin-form-wide {
  grid-column: 1 / -1;
}

.assignment-form,
.assignment-list {
  margin-top: 18px;
}

.assignment-submit {
  display: flex;
  align-items: end;
  gap: 12px;
  padding-bottom: 2px;
}

.log-details {
  max-width: 420px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.review-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border: 0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(6, 28, 48, 0.28);
}

.review-dialog::backdrop {
  background: rgba(3, 21, 37, 0.62);
}

.review-dialog pre {
  max-height: 65vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  border-radius: 10px;
  background: #f3f7fa;
  color: #183247;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}

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

  .admin-form-wide {
    grid-column: auto;
  }
}
