/* BROK production surface — matches brok.neobanx.com (globals.css + tailwind + Daylight).
   Do not introduce display serifs or third-party webfonts. */

.iiv-root {
  --bg: #ffffff;
  --ink: #1b2028;
  --mute: #5c6775;
  --paper: #1b2028;
  --card: #f6f7f9;
  --line: #e1e6ee;
  --line-strong: #c5ced8;
  --cyan: #0d5c64;
  --cyan-soft: #e8f4f5;
  --amber: #7a4e00;
  --amber-soft: #fff6e8;
  --amber-line: #e6d3ad;
  --open: #0d7a4f;
  --zero: #b42318;
  --house: #7a4e00;
  --cta-fg: #ffffff;
  --shadow: 0 1px 2px rgba(22, 28, 38, 0.04), 0 10px 28px rgba(22, 28, 38, 0.05);
  --font: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

html[data-theme="night"] .iiv-root {
  --bg: #0a0a0f;
  --ink: #f0f0f5;
  --mute: rgba(240, 240, 245, 0.55);
  --paper: #f0f0f5;
  --card: #111114;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --cyan: #00f9ff;
  --cyan-soft: rgba(0, 249, 255, 0.12);
  --amber: #fde68a;
  --amber-soft: rgba(251, 191, 36, 0.1);
  --amber-line: rgba(251, 191, 36, 0.3);
  --open: #34d399;
  --zero: #f87171;
  --house: #fbbf24;
  --cta-fg: #0a0a0f;
  --shadow: none;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.iiv-root, .iiv-root * { box-sizing: border-box; }
.iiv-root {
  display: block;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.iiv-root a { color: var(--cyan); text-decoration: none; }
.iiv-root a:hover { text-decoration: underline; }
.iiv-root a.tick {
  color: inherit;
  font-weight: 650;
}
.iiv-root a.tick:hover { color: var(--cyan); }
.iiv-root a.tick .house { color: var(--house); }
.iiv-root .roster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.iiv-root .roster a.tick {
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.iiv-root .roster a.tick:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  text-decoration: none;
}

.wrap { max-width: 64rem; margin: 0 auto; padding: 28px 20px 80px; }

.top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px; margin-bottom: 28px;
}
.brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand span { color: var(--mute); font-weight: 500; }
.nav { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.nav a {
  color: var(--mute);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.nav a:hover { color: var(--ink); background: var(--card); text-decoration: none; }
.nav a.active {
  color: var(--cyan);
  background: var(--cyan-soft);
  border-color: color-mix(in srgb, var(--cyan) 25%, transparent);
}

.kicker {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 10px; font-weight: 600;
}
.iiv-root h1 {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.iiv-root h2 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin: 42px 0 12px;
}
.iiv-root h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cyan);
  margin: 28px 0 8px;
}
.lede { font-size: 17px; color: var(--ink); max-width: 42rem; }
.mute { color: var(--mute); }

.hero-card {
  margin: 28px 0 8px;
  padding: 22px 22px 18px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.hero-card p { margin: 0; }
.hero-card strong { color: var(--amber); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; overflow: visible; }
.pill {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--mute);
  padding: 6px 10px; border-radius: 8px; font-weight: 600;
}
.pill.tip {
  text-decoration: none;
  cursor: help;
}
.pill.tip:hover,
.pill.tip:focus-visible {
  z-index: 9;
  color: var(--ink);
  border-color: var(--cyan);
  text-decoration: none;
}
.pill.tip:hover::after,
.pill.tip:focus-visible::after {
  text-transform: none;
  letter-spacing: 0;
  width: min(280px, 78vw);
}
.pill.tip:nth-child(4):hover::after,
.pill.tip:nth-child(4):focus-visible::after,
.pill.tip:nth-child(5):hover::after,
.pill.tip:nth-child(5):focus-visible::after {
  left: auto;
  right: 0;
}

.cta {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--cta-fg);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--cyan);
}
.iiv-root a.cta,
.iiv-root button.cta {
  color: var(--cta-fg);
}
.cta:hover { text-decoration: none; filter: brightness(1.05); }
.iiv-root a.cta:hover,
.iiv-root button.cta:hover {
  color: var(--cta-fg);
  text-decoration: none;
}
.cta.ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  margin-left: 8px;
}
.iiv-root a.cta.ghost,
.iiv-root a.cta.ghost:hover {
  color: var(--cyan);
  background: transparent;
}

.iiv-root table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0 8px;
}
.iiv-root th, .iiv-root td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.iiv-root th {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
}
.iiv-root th.tip:hover,
.iiv-root th.tip:focus-visible {
  z-index: 9;
  color: var(--ink);
}
.iiv-root th.tip:hover::after,
.iiv-root th.tip:focus-visible::after {
  width: min(260px, 72vw);
}
.iiv-root th.tip:nth-child(n+8):hover::after,
.iiv-root th.tip:nth-child(n+8):focus-visible::after {
  left: auto;
  right: 0;
}
@media (max-width: 720px) {
  .iiv-root th.tip:hover::after,
  .iiv-root th.tip:focus-visible::after,
  .iiv-root th.tip:nth-child(n+8):hover::after,
  .iiv-root th.tip:nth-child(n+8):focus-visible::after {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    z-index: 30;
  }
}
.tip {
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  position: relative;
}
.tip:hover::after,
.tip:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 8;
  width: min(280px, 70vw);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  box-shadow: var(--shadow);
  white-space: normal;
  pointer-events: none;
}
label.field.tip { display: inline-block; }
.connect-rows { display: grid; gap: 10px; margin: 0 0 8px; }
.connect-row {
  display: grid;
  grid-template-columns: 11rem 1fr auto;
  gap: 8px;
  align-items: center;
}
.connect-row .sig-btn { padding: 8px 10px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.zero { color: var(--zero); font-weight: 600; }
.open { color: var(--open); font-weight: 600; }
.house { color: var(--house); font-weight: 600; }
.pending { color: var(--mute); font-style: italic; }

.scroll { overflow-x: auto; overflow-y: visible; margin: 0 -4px; min-height: 8rem; }
.note {
  font-size: 13px; color: var(--mute); margin-top: 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.card h3 { margin-top: 0; }

.iiv-root ol.steps { padding-left: 18px; color: var(--paper); }
.iiv-root ol.steps li { margin: 8px 0; }

.iiv-root footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--mute);
  text-align: center;
}
.iiv-root footer strong { color: var(--ink); font-weight: 600; }

.iiv-root label.field {
  display: block; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--mute); margin: 12px 0 6px; font-weight: 600;
}
.iiv-root input[type="text"], .iiv-root input[type="url"], .iiv-root input[type="email"], .iiv-root select, .iiv-root textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: 8px; padding: 10px 12px; font: inherit;
}
.iiv-root textarea { min-height: 72px; resize: vertical; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--mute); margin: 10px 0; }
.check input { margin-top: 4px; }

.theme-toggle {
  font: inherit;
  font-size: 12px;
  color: var(--mute);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); }

.iiv-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 16px;
  color: var(--cyan);
}
.dim {
  display: grid;
  grid-template-columns: 7.5rem 1fr 2.4rem;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  margin: 8px 0;
}
.dim span:first-child { color: var(--mute); }
.dim b { text-align: right; font-variant-numeric: tabular-nums; }
.bar {
  height: 8px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--cyan);
  border-radius: 99px;
}

.sig { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sig-btn {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.sig-btn.primary { background: var(--cyan); color: var(--cta-fg); border-color: var(--cyan); }
.iiv-root a.sig-btn { text-decoration: none; display: inline-block; }
.sig-btn:disabled { opacity: 0.45; cursor: default; }
#youCard .pill { display: inline-block; margin-left: 8px; vertical-align: middle; }

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .connect-row { grid-template-columns: 1fr; }
  .cta.ghost { margin-left: 0; margin-top: 8px; display: block; }
  .iiv-root th, .iiv-root td { font-size: 13px; padding: 8px 6px; }
}

.iiv-embedded .theme-toggle,
.iiv-embedded .brand { display: none; }
.iiv-embedded { min-height: 0; }
.iiv-embedded .wrap { padding-top: 12px; }
.iiv-root[hidden],
.iiv-root .desk-hidden { display: none !important; }
