/* Entity.ID app replica — light theme */
:root {
  --bg: #ffffff;
  --content-bg: #fafbfd;
  --panel: #ffffff;
  --border: #e7e9f0;
  --border-soft: #eef0f5;
  --text: #10142b;
  --text-2: #3a4059;
  --muted: #6b7280;
  --faint: #9aa1b2;
  --primary: #2f45f4;
  --primary-strong: #2036e8;
  --primary-soft: #eef1ff;
  --primary-tint: #6577f3;
  --green: #16a34a;
  --green-soft: #e7f6ec;
  --green-text: #15803d;
  --amber: #b45309;
  --amber-soft: #fdf3df;
  --red: #dc2626;
  --gray-badge: #f1f2f6;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow-card: 0 1px 2px rgba(16, 20, 43, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.app { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 248px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 20px 20px 18px;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2.5px solid #0b0d1a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #0b0d1a;
}
.logo-word { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: #0b0d1a; }

.nav { padding: 4px 12px 20px; }
.nav-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.04em;
  padding: 14px 10px 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 13.5px;
  position: relative;
  margin-bottom: 1px;
}
.nav-item svg { width: 17px; height: 17px; stroke: currentColor; flex-shrink: 0; opacity: .85; }
.nav-item:hover { background: #f5f6fa; }
.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
}

/* ---------- Main / topbar ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }

.topbar {
  height: 60px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.tb-toggle {
  background: none; border: none; color: var(--muted);
  display: flex; padding: 6px; border-radius: 7px;
}
.tb-toggle:hover { background: #f3f4f8; }
.tb-toggle svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }
.pill > svg:last-child { width: 12px; height: 12px; }
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.crumb-entity { display: flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text); }
.crumb-entity svg { width: 13px; height: 13px; stroke: var(--faint); }
.crumb-sep { color: #c6cad6; }
.crumb-page { font-weight: 600; color: var(--text); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
}
.pill svg { width: 15px; height: 15px; stroke: var(--muted); }
.kbd {
  font-size: 11px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 1px 5px; background: #f7f8fa;
}
.tb-bell { position: relative; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: var(--bg); display: flex; }
.tb-bell svg { width: 16px; height: 16px; stroke: var(--text-2); }
.tb-bell .dot {
  position: absolute; top: -6px; right: -6px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.tb-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #dfe4ff;
}

/* ---------- Content ---------- */
.content { padding: 28px 36px 56px; max-width: 1200px; width: 100%; }

.page-head { margin-bottom: 22px; }
.page-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.page-sub { color: var(--muted); font-size: 14.5px; margin-top: 5px; }

.venture-head { margin-bottom: 20px; }
.venture-title-row { display: flex; align-items: center; gap: 12px; }
.venture-title { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; }
.venture-addr {
  margin-top: 7px; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12.5px; color: var(--text-2);
  background: #f5f6fa; border: 1px solid var(--border-soft);
  padding: 4px 9px; border-radius: 7px;
}
.venture-addr svg { width: 13px; height: 13px; stroke: var(--faint); cursor: pointer; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  letter-spacing: 0.02em; white-space: nowrap;
}
.badge.green { background: var(--green-soft); color: var(--green-text); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.gray { background: var(--gray-badge); color: var(--muted); }
.badge.blue { background: var(--primary-soft); color: var(--primary); }
.badge.solid-blue { background: var(--primary); color: #fff; }
.badge.red { background: #fdecec; color: var(--red); }

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 20px 22px; }
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 18px 22px 0;
}
.card-title { font-size: 15.5px; font-weight: 700; }
.card-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 17px 19px; box-shadow: var(--shadow-card);
  transition: border-color .15s, box-shadow .15s;
}
.kpi:hover { border-color: #d5daf5; box-shadow: 0 3px 10px rgba(16,20,43,.06); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi-top svg { width: 16px; height: 16px; stroke: var(--faint); }
.kpi-value { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; margin-top: 9px; font-variant-numeric: tabular-nums; }
.kpi-value .unit { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }
.kpi-sub.up { color: var(--green-text); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Activity feed */
.feed { list-style: none; }
.feed li {
  display: flex; gap: 13px; padding: 13px 0;
  border-bottom: 1px solid var(--border-soft);
}
.feed li:last-child { border-bottom: none; padding-bottom: 4px; }
.feed-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.feed-icon svg { width: 15px; height: 15px; }
.feed-icon.in { background: var(--green-soft); } .feed-icon.in svg { stroke: var(--green-text); }
.feed-icon.out { background: #fdecec; } .feed-icon.out svg { stroke: var(--red); }
.feed-icon.gov { background: var(--primary-soft); } .feed-icon.gov svg { stroke: var(--primary); }
.feed-icon.member { background: #fdf3df; } .feed-icon.member svg { stroke: var(--amber); }
.feed-title { font-size: 13.5px; font-weight: 600; }
.feed-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.feed-amt { margin-left: auto; font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed-amt.pos { color: var(--green-text); }

/* Definition rows */
.def-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.def-row:last-child { border-bottom: none; }
.def-row dt { color: var(--muted); font-weight: 500; }
.def-row dd { font-weight: 600; text-align: right; }
.def-row dd.mono { font-family: var(--mono); font-size: 12px; font-weight: 500; }

/* Tabs */
.tabs { display: inline-flex; background: #f1f2f7; border-radius: 10px; padding: 3px; gap: 2px; }
.tab {
  border: none; background: transparent; color: var(--muted);
  font-size: 13.5px; font-weight: 600; padding: 7px 16px; border-radius: 8px;
  display: flex; align-items: center; gap: 7px;
}
.tab svg { width: 14px; height: 14px; stroke: currentColor; }
.tab.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,20,43,.09); }
.tab:not(.active):hover { color: var(--text-2); }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.toolbar-right { display: flex; gap: 9px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; font-size: 13.5px; font-weight: 600;
  padding: 9px 16px; border: 1px solid transparent;
  transition: background .12s, border-color .12s;
}
.btn svg { width: 15px; height: 15px; stroke: currentColor; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: #cfd4e4; background: #fafbfe; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-ghost { background: none; border: none; color: var(--primary); font-weight: 600; padding: 4px 6px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 12px 22px; border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.table td {
  padding: 13px 22px; border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px; vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: #fafbfe; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.td-main { font-weight: 600; }
.td-sub { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 3px; font-weight: 400; }
.amt-pos { color: var(--green-text); font-weight: 600; }
.amt-neg { color: var(--text); font-weight: 600; }

/* Avatars */
.avi {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.avi.sm { width: 26px; height: 26px; font-size: 10px; }
.person { display: flex; align-items: center; gap: 11px; }
.person-name { font-weight: 600; font-size: 13.5px; }
.person-mail { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* Progress bars */
.progress { height: 8px; border-radius: 5px; background: #edeff5; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 5px; background: var(--primary); transition: width .8s cubic-bezier(.2,.7,.3,1); }
.progress.thin { height: 6px; }
.progress > span.green { background: var(--green); }
.progress > span.amber { background: #f59e0b; }

/* Treasury cards */
.treasury-card .t-head { display: flex; align-items: center; justify-content: space-between; }
.t-name { font-size: 14.5px; font-weight: 700; }
.t-total { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.t-sub { font-size: 12px; color: var(--muted); }
.asset-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.asset-row:last-child { border-bottom: none; }
.asset-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.asset-name { font-weight: 600; }
.asset-qty { color: var(--muted); font-size: 12px; }
.asset-usd { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Donut */
.donut-wrap { display: flex; gap: 26px; align-items: center; }
.donut { width: 148px; height: 148px; border-radius: 50%; position: relative; flex-shrink: 0; }
.donut::after {
  content: ""; position: absolute; inset: 21px; border-radius: 50%; background: #fff;
}
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.donut-center b { font-size: 16px; }
.donut-center span { font-size: 10.5px; color: var(--muted); }
.legend { flex: 1; }
.legend-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--border-soft); }
.legend-row:last-child { border-bottom: none; }
.legend-row b { margin-left: auto; font-variant-numeric: tabular-nums; }
.legend-pct { color: var(--muted); font-size: 12px; width: 46px; text-align: right; }

/* Proposals */
.proposal { padding: 20px 22px; }
.prop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.prop-title { font-size: 15px; font-weight: 700; }
.prop-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.vote-row { display: flex; align-items: center; gap: 12px; margin-top: 13px; font-size: 12.5px; }
.vote-label { width: 58px; color: var(--muted); font-weight: 600; }
.vote-row .progress { flex: 1; }
.vote-count { width: 96px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.quorum-line { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--border-soft); font-size: 12px; color: var(--muted); }
.prop-actions { display: flex; gap: 8px; margin-top: 15px; }

/* Compliance */
.status-tile { text-align: left; }
.status-tile .icon-chip {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.icon-chip svg { width: 17px; height: 17px; }
.icon-chip.green { background: var(--green-soft); } .icon-chip.green svg { stroke: var(--green-text); }
.icon-chip.blue { background: var(--primary-soft); } .icon-chip.blue svg { stroke: var(--primary); }
.icon-chip.amber { background: var(--amber-soft); } .icon-chip.amber svg { stroke: var(--amber); }
.status-tile h4 { font-size: 13px; color: var(--muted); font-weight: 500; }
.status-tile .val { font-size: 16.5px; font-weight: 700; margin-top: 4px; }
.status-tile .note { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Apps */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.app-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 168px; }
.app-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
}
.app-icon svg { width: 19px; height: 19px; stroke: var(--primary); }
.app-card h3 { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.app-card p { font-size: 12.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.app-card .btn { align-self: flex-start; }

/* Sparkline */
.spark-wrap { padding: 6px 22px 18px; }
.spark-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 6px; padding: 0 2px; }

/* section titles */
.section-title { font-size: 15px; font-weight: 700; margin: 26px 0 12px; }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mb-16 { margin-bottom: 16px; }

/* footer note */
.foot-note { margin-top: 26px; font-size: 12px; color: var(--faint); text-align: center; }

/* ============ Wizard ============ */
.wiz-rail {
  width: 256px; flex-shrink: 0; border-right: 1px solid var(--border);
  padding: 0 12px; height: 100vh; position: sticky; top: 0; background: #fff;
}
.wiz-steps { list-style: none; padding-top: 8px; }
.wiz-step {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 12px; border-radius: 10px; margin-bottom: 6px;
  font-size: 14px; font-weight: 600; color: var(--faint);
}
.wiz-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: #eef0f4; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700;
}
.wiz-step.done .wiz-num { background: var(--primary); color: #fff; }
.wiz-step.done { color: var(--text-2); }
.wiz-step.current { background: #f1f2f7; color: var(--text); }
.wiz-step.current .wiz-num { background: #10142b; color: #fff; }
.wiz-step.current::after {
  content: ""; margin-left: auto; width: 7px; height: 7px;
  border-top: 2px solid var(--faint); border-right: 2px solid var(--faint);
  transform: rotate(45deg);
}
.wiz-step.done .wiz-num svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 3; }

.wiz-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wiz-body { flex: 1; padding: 44px 60px 40px; }
.wiz-col { max-width: 880px; margin: 0 auto; }
.wiz-h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.wiz-sub { color: var(--muted); font-size: 14.5px; margin-top: 7px; margin-bottom: 30px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid #d9dce6; border-radius: 9px;
  padding: 10px 13px; font: inherit; font-size: 14px; color: var(--text);
  background: #fff; outline: none;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,69,244,.12); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%;
  width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select { appearance: none; padding-right: 36px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.avail { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 13px; color: var(--green-text); }
.avail code { font-family: var(--mono); font-size: 12.5px; }
.avail svg { width: 14px; height: 14px; stroke: var(--green-text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.partner-card { border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; margin-bottom: 16px; }
.partner-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.partner-head h3 { font-size: 15px; font-weight: 700; }
.partner-remove { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; background: none; border: none; }
.partner-remove svg { width: 14px; height: 14px; stroke: currentColor; }
.resolved { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--green-text); margin-top: 8px; }
.resolved svg { width: 13px; height: 13px; stroke: var(--green-text); }

.own-card { border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.own-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.own-name { display: flex; align-items: center; gap: 9px; font-weight: 600; flex: 1; }
.own-dot { width: 9px; height: 9px; border-radius: 50%; }
.own-input { width: 110px; position: relative; }
.own-input input {
  width: 100%; border: 1px solid #d9dce6; border-radius: 9px;
  padding: 9px 26px 9px 13px; font: inherit; text-align: right; font-variant-numeric: tabular-nums;
}
.own-input .pct { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 13px; }
.checkbox { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.checkbox .box {
  width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #c9cdda;
  display: flex; align-items: center; justify-content: center; background: #fff;
}
.checkbox.on .box { background: var(--primary); border-color: var(--primary); }
.checkbox.on .box svg { width: 11px; height: 11px; stroke: #fff; stroke-width: 3.4; }
.total-ok {
  display: flex; align-items: center; gap: 9px;
  background: #ecfbf1; border: 1px solid #c9eeD5; border-radius: 9px;
  padding: 12px 15px; color: var(--green-text); font-weight: 600; font-size: 13.5px; margin-top: 10px;
}
.total-ok svg { width: 16px; height: 16px; stroke: var(--green-text); }

.equity-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.equity-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.equity-table th.num, .equity-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.equity-table td { padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.equity-table tr.total td { font-weight: 700; border-bottom: none; }

.cert { border: 1px solid var(--border); border-radius: 12px; padding: 30px 36px; }
.cert h2 { text-align: center; font-size: 19px; font-weight: 700; margin-bottom: 22px; }
.cert h3 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.cert p { font-size: 14px; line-height: 1.6; color: var(--text-2); }

.sum-card { border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-bottom: 18px; }
.sum-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sum-head h3 { font-size: 16px; font-weight: 700; }
.sum-edit { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; background: none; border: none; }
.sum-edit svg { width: 13px; height: 13px; stroke: currentColor; }
.sum-label { font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.sum-domain { font-family: var(--mono); font-size: 14.5px; margin-top: 7px; }
.sum-grid { display: grid; grid-template-columns: 168px 1fr; row-gap: 12px; font-size: 14px; }
.sum-grid .k { color: var(--muted); }
.sum-grid .v { font-weight: 600; }
.sum-partner { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border-soft); border-radius: 10px; padding: 13px 16px; margin-bottom: 9px; }
.sum-partner .role { color: var(--muted); font-weight: 400; font-size: 13px; }
.sum-partner .alloc { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }

.wiz-footer { border-top: 1px solid var(--border); padding: 14px 60px 20px; position: sticky; bottom: 0; background: #fff; z-index: 10; }
.wiz-progress-label { text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.resolved.pending { color: var(--muted); }
.resolved.pending .spinner-sm {
  width: 12px; height: 12px; border: 2px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; display: inline-block; animation: spin .8s linear infinite;
}
.wiz-btns { display: flex; justify-content: space-between; align-items: center; }

/* Register / success */
.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.success-wrap { text-align: center; padding: 90px 20px 40px; max-width: 620px; margin: 0 auto; }
.success-check {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 26px;
  background: var(--green-soft); display: flex; align-items: center; justify-content: center;
  animation: pop .45s cubic-bezier(.3,1.6,.5,1);
}
.success-check svg { width: 38px; height: 38px; stroke: var(--green-text); stroke-width: 2.6; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success-wrap h1 { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; }
.success-domain {
  font-family: var(--mono); font-size: 15px; color: var(--primary);
  background: var(--primary-soft); border-radius: 8px; padding: 7px 14px;
  display: inline-block; margin: 16px 0 10px;
}
.success-wrap p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; }
