:root {
  --ink: #10231e;
  --ink-soft: #314b43;
  --muted: #70847d;
  --canvas: #f3f7f5;
  --card: #ffffff;
  --card-soft: #f8fbfa;
  --line: #dfe8e4;
  --line-strong: #ccd9d4;
  --deep: #071d19;
  --deep-2: #0d3028;
  --green: #17875f;
  --green-2: #25a676;
  --mint: #50d8a2;
  --gold: #eaae3d;
  --danger: #c64f43;
  --danger-soft: #fff0ee;
  --warning: #9a6b10;
  --warning-soft: #fff7df;
  --success-soft: #e8f8f1;
  --shadow-sm: 0 1px 2px rgba(7, 29, 25, .04), 0 5px 16px rgba(7, 29, 25, .035);
  --shadow-md: 0 18px 44px rgba(7, 29, 25, .09);
  --rail: 272px;
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 96% 2%, rgba(80, 216, 162, .09), transparent 24rem),
    var(--canvas);
  font: 14px/1.55 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 1.25em; height: 1.25em; fill: currentColor; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
code {
  padding: 3px 6px;
  color: var(--ink-soft);
  background: #eef4f1;
  border-radius: 6px;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
h1 { margin: 0; font-size: clamp(25px, 2.3vw, 34px); line-height: 1.14; letter-spacing: -.035em; }
h2 { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -.012em; color: var(--ink); }

*:focus-visible { outline: 3px solid rgba(37, 166, 118, .28); outline-offset: 2px; }
::selection { color: #fff; background: var(--green); }

.button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .015em;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { opacity: .56; cursor: not-allowed; }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--green), var(--green-2)); box-shadow: 0 8px 18px rgba(23, 135, 95, .18); }
.button.primary:hover:not(:disabled) { box-shadow: 0 11px 24px rgba(23, 135, 95, .25); }
.button.ghost { color: var(--ink-soft); border-color: var(--line); background: var(--card); box-shadow: var(--shadow-sm); }
.button.ghost:hover:not(:disabled) { color: var(--green); border-color: rgba(23, 135, 95, .36); }
.button.full { width: 100%; }
.button.mini { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 12px; }
.button.danger { color: var(--danger); border: 1px solid #f0c7c2; background: var(--danger-soft); }
.button svg { width: 17px; height: 17px; }

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.icon-button:hover { background: rgba(255,255,255,.09); }

body.panel { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 20px 20px;
  color: rgba(255,255,255,.75);
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(80,216,162,.16), transparent 18rem),
    linear-gradient(165deg, var(--deep-2), var(--deep) 58%);
}
.rail::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255,255,255,.018), 0 0 0 74px rgba(255,255,255,.012);
  pointer-events: none;
}
.rail-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; color: #fff; }
.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px;
  color: #071d19;
  background: linear-gradient(145deg, #8cf2c8, var(--mint));
  box-shadow: 0 10px 24px rgba(80,216,162,.22);
  font: italic 700 22px/1 Georgia, serif;
}
.wordmark { display: grid; gap: 4px; line-height: 1; }
.wordmark b { font-size: 14px; letter-spacing: .16em; }
.wordmark small { font-size: 8px; font-weight: 700; letter-spacing: .27em; opacity: .58; }

.rail-network {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
}
.rail-network div { min-width: 0; display: grid; gap: 2px; }
.rail-network small { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.rail-network b { overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.status-orb { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(80,216,162,.12); }
.status-orb span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(80,216,162,.1); }
.chain-tag { padding: 3px 7px; border-radius: 6px; color: rgba(255,255,255,.62); background: rgba(0,0,0,.18); font: 10px/1.3 ui-monospace, monospace; }

.rail-nav { position: relative; z-index: 1; display: grid; gap: 5px; }
.rail-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 47px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.rail-item svg { width: 19px; height: 19px; opacity: .7; }
.rail-item:hover { color: #fff; background: rgba(255,255,255,.065); transform: translateX(2px); }
.rail-item.current { color: #fff; background: linear-gradient(90deg, rgba(80,216,162,.19), rgba(80,216,162,.07)); }
.rail-item.current::before { content: ""; position: absolute; left: 0; width: 3px; height: 22px; border-radius: 3px; background: var(--mint); box-shadow: 0 0 13px rgba(80,216,162,.65); }
.rail-item.current svg { color: var(--mint); opacity: 1; }

.rail-foot { position: relative; z-index: 1; margin-top: auto; display: grid; gap: 13px; }
.language-switch { display: inline-flex; width: max-content; gap: 3px; padding: 3px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(0,0,0,.1); }
.language-option { padding: 5px 9px; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.language-option:hover { color: #fff; }
.language-option.active { color: var(--deep); background: var(--mint); box-shadow: 0 3px 10px rgba(80,216,162,.18); }
.operator-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 9px 11px 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.04); }
.operator-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--deep); background: linear-gradient(145deg, #f8d893, var(--gold)); font-size: 12px; font-weight: 850; }
.operator-copy { min-width: 0; display: grid; gap: 1px; }
.operator-copy small { font-size: 9px; opacity: .52; }
.operator-copy b { overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-account, .mobile-bottom-nav { display: none; }

.content { min-width: 0; padding: 38px clamp(22px, 4vw, 58px) 70px; }
.content-shell { width: min(1500px, 100%); margin: 0 auto; }
.content-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.page-title { min-width: 0; }
.page-title > p { max-width: 760px; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.page-context { display: none; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 4px rgba(37,166,118,.1); }
.refresh-button { color: var(--ink-soft); border-color: var(--line); background: rgba(255,255,255,.78); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.refresh-button.loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.back { display: inline-flex; align-items: center; color: var(--green); font-size: 12px; font-weight: 700; }
.back:hover { color: var(--green-2); }

.token-line {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 11px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.68);
  font-size: 11px;
}
.token-line b { overflow: hidden; color: var(--ink-soft); text-overflow: ellipsis; white-space: nowrap; }
.token-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--green); background: var(--success-soft); font-size: 14px; }

.metric-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.metric-grid.compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.metric {
  position: relative;
  min-width: 0;
  min-height: 112px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, #fbfdfc);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.metric:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.metric::after { content: ""; position: absolute; right: -19px; bottom: -25px; width: 76px; height: 76px; border: 15px solid rgba(23,135,95,.035); border-radius: 50%; }
.metric-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.metric small { display: block; max-width: 85%; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.metric-orb { width: 8px; height: 8px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--line-strong); box-shadow: 0 0 0 5px rgba(204,217,212,.22); }
.metric strong { position: relative; z-index: 1; display: block; margin-top: 14px; font-size: clamp(18px, 2vw, 23px); line-height: 1.15; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric.featured { min-height: 130px; color: #fff; border-color: transparent; background: linear-gradient(145deg, var(--deep-2), var(--deep)); box-shadow: 0 15px 34px rgba(7,29,25,.16); }
.metric.featured small { color: rgba(255,255,255,.56); }
.metric.featured strong { margin-top: 20px; font-size: clamp(21px, 2.3vw, 28px); }
.metric.featured .metric-orb { background: var(--mint); box-shadow: 0 0 0 5px rgba(80,216,162,.13); }
.metric.alert .metric-orb { background: var(--gold); box-shadow: 0 0 0 5px rgba(234,174,61,.14); }
.metric.positive .metric-orb { background: var(--green-2); box-shadow: 0 0 0 5px rgba(37,166,118,.12); }
.metric.negative .metric-orb { background: var(--danger); box-shadow: 0 0 0 5px rgba(198,79,67,.1); }
.metric.skeleton { min-height: 112px; }
.metric.skeleton::before { content: ""; position: absolute; inset: 16px; border-radius: 9px; background: linear-gradient(90deg, #eef3f1 25%, #f8faf9 50%, #eef3f1 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

section.panel, .table-section {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-sm);
}
section.panel > h2, .panel-heading-row h2 { font-size: 16px; }
.muted { margin: 6px 0 16px; color: var(--muted); font-size: 12px; }
.notice { margin-top: 22px; padding: 15px 17px; border: 1px solid #f0dfad; border-left: 4px solid var(--gold); border-radius: 11px; color: #76540d; background: var(--warning-soft); font-size: 13px; }

.readiness { display: grid; gap: 18px; overflow: hidden; }
.readiness-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 4px; }
.readiness-head h2 { font-size: 18px; }
.readiness-head .muted { max-width: 760px; margin-bottom: 0; }
.readiness-facts { padding: 17px; border-radius: 13px; background: var(--card-soft); }
.readiness-blockers { display: grid; gap: 7px; margin: 0; padding: 14px 16px 14px 34px; border: 1px solid #f1d3cf; border-radius: 11px; color: var(--danger); background: var(--danger-soft); font-size: 12px; }
.readiness-blockers:empty { display: none; }
.readiness-action { display: flex; justify-content: flex-end; padding-top: 2px; }
.readiness-action .button { min-width: 260px; }

.pairs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; }
.pairs > div { min-width: 0; }
.pairs dt { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
.pairs dd { min-width: 0; margin: 0; color: var(--ink-soft); }

.table-section { padding: 0; overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px; border-bottom: 1px solid var(--line); background: var(--card-soft); }
.search-field { width: min(520px, 100%); min-height: 43px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #fff; transition: border-color .16s, box-shadow .16s; }
.search-field:focus-within { border-color: rgba(23,135,95,.48); box-shadow: 0 0 0 4px rgba(23,135,95,.08); }
.search-field svg { width: 17px; height: 17px; }
.filter { width: 100%; min-width: 0; min-height: 41px; padding: 0; border: 0; outline: 0; background: transparent; }
.filter::placeholder { color: #93a29d; }
.count-badge { min-width: 38px; padding: 5px 9px; border-radius: 999px; color: var(--green); background: var(--success-soft); font-size: 11px; font-weight: 800; text-align: center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--card); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.table-wrap.flush { border: 0; border-radius: 0; }
.table-wrap.inset { border: 1px solid var(--line); box-shadow: none; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th { padding: 12px 14px; text-align: left; color: var(--muted); border-bottom: 1px solid var(--line); background: #f8fbfa; font-size: 9px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid #edf2f0; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .14s ease; }
tbody tr:hover { background: rgba(23,135,95,.035); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td:last-child .button + .button { margin-left: 6px; }
.empty { padding: 36px 16px; color: var(--muted); text-align: center; }
.cell-meta { display: block; margin-top: 3px; color: var(--muted); font: 10px/1.35 ui-monospace, Menlo, monospace; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; color: var(--ink-soft); background: #eef3f1; font-size: 9px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.pill.active, .pill.approved, .pill.paid, .pill.ok, .pill.preflight_ready, .pill.mainnet_active { color: #137251; background: var(--success-soft); }
.pill.pending_admin, .pill.awaiting_inputs { color: var(--warning); background: var(--warning-soft); }
.pill.rejected, .pill.failed_finalized, .pill.blocked, .pill.unavailable { color: var(--danger); background: var(--danger-soft); }
.amount.positive { color: var(--green); font-weight: 750; }
.amount.negative { color: var(--danger); font-weight: 750; }

.form-grid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.form-grid label, .decision-dialog label, .login-card label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.form-grid input, .form-grid select, .decision-dialog input, .login-card input {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--card-soft);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.form-grid input:hover, .form-grid select:hover, .decision-dialog input:hover, .login-card input:hover { border-color: var(--line-strong); }
.form-grid input:focus, .form-grid select:focus, .decision-dialog input:focus, .login-card input:focus { border-color: rgba(23,135,95,.52); background: #fff; box-shadow: 0 0 0 4px rgba(23,135,95,.08); }
.form-grid label.check { min-height: 45px; display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-soft); }
.form-grid label.check input { width: 17px; min-height: 0; height: 17px; padding: 0; accent-color: var(--green); }
.source-banner { position: relative; display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 16px 18px; overflow: hidden; color: #fff; border-radius: var(--radius); background: linear-gradient(120deg, var(--deep-2), var(--deep)); box-shadow: var(--shadow-md); }
.source-banner::after { content: ""; position: absolute; right: -35px; width: 130px; height: 130px; border: 24px solid rgba(80,216,162,.05); border-radius: 50%; }
.source-banner .dot { z-index: 1; margin: 0; background: var(--mint); box-shadow: 0 0 0 5px rgba(80,216,162,.13); }
.source-banner div { z-index: 1; display: grid; flex: 1; gap: 2px; }
.source-banner b { font-size: 13px; }
.source-banner small, .source-banner time { z-index: 1; color: rgba(255,255,255,.58); font-size: 10px; }
.commerce-metrics, .queue-metrics { margin-bottom: 22px; }
.panel-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.split-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.split-panel > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.single-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.single-form .button { grid-column: 1 / -1; }

body.login { display: grid; place-items: center; padding: clamp(18px, 4vw, 48px); color: #fff; background: radial-gradient(circle at 10% 15%, rgba(80,216,162,.2), transparent 28rem), linear-gradient(145deg, #0e352c, #061713 68%); }
body.login::before, body.login::after { content: ""; position: fixed; border: 1px solid rgba(255,255,255,.045); border-radius: 50%; pointer-events: none; }
body.login::before { width: 32rem; height: 32rem; right: -13rem; top: -14rem; box-shadow: 0 0 0 62px rgba(255,255,255,.012), 0 0 0 126px rgba(255,255,255,.008); }
body.login::after { width: 20rem; height: 20rem; left: -11rem; bottom: -11rem; }
.login-layout { position: relative; z-index: 1; width: min(920px, 100%); min-height: 530px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: rgba(255,255,255,.035); box-shadow: 0 35px 90px rgba(0,0,0,.28); backdrop-filter: blur(18px); }
.login-intro { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(30px, 5vw, 54px); }
.login-brand { display: flex; align-items: center; gap: 13px; }
.login-message { max-width: 430px; }
.security-seal { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border: 1px solid rgba(80,216,162,.24); border-radius: 14px; color: var(--mint); background: rgba(80,216,162,.09); }
.security-seal svg { width: 23px; height: 23px; }
.login-message h1 { font-size: clamp(32px, 4.3vw, 47px); }
.login-message p { max-width: 390px; margin: 14px 0 0; color: rgba(255,255,255,.58); font-size: 14px; }
.login-network { display: flex; align-items: center; gap: 9px; margin: 0; color: rgba(255,255,255,.55); font-size: 11px; font-weight: 650; }
.login-card { display: flex; flex-direction: column; justify-content: center; gap: 25px; margin: 13px; padding: clamp(26px, 4vw, 44px); color: var(--ink); border-radius: 18px; background: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.16); }
.login-card-head { display: grid; gap: 5px; }
.login-card-head h2 { font-size: 24px; letter-spacing: -.03em; }
.login-card form { display: grid; gap: 16px; width: 100%; }
.login-card .language-switch { border-color: var(--line); background: var(--card-soft); }
.login-card .language-option { color: var(--muted); }
.login-card .language-option.active { color: #fff; background: var(--green); }
.eyebrow { margin: 0; color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.error-card { width: min(430px, 100%); min-height: 0; margin: 0; }
.error-card h1 { margin-top: 8px; font-size: 26px; }
.error-card > p { margin: 0; color: var(--muted); }
.error-card .security-seal { margin: 0; }

.decision-modal { width: min(440px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: transparent; box-shadow: 0 30px 80px rgba(7,29,25,.28); }
.decision-modal::backdrop { background: rgba(4,17,14,.58); backdrop-filter: blur(5px); }
.decision-dialog { display: grid; gap: 15px; padding: 27px; border-radius: 18px; background: #fff; }
.decision-dialog h2 { font-size: 21px; }
.decision-dialog > p { margin: -5px 0 2px; color: var(--muted); font-size: 13px; }
.decision-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--green); background: var(--success-soft); }
.decision-icon.reject { color: var(--danger); background: var(--danger-soft); }
.decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 5px; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 26px; min-width: 240px; max-width: min(460px, calc(100% - 32px)); display: flex; align-items: center; gap: 10px; padding: 13px 17px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; color: #fff; background: var(--deep); box-shadow: 0 18px 50px rgba(7,29,25,.25); font-size: 12px; font-weight: 650; opacity: 0; pointer-events: none; transform: translate(-50%, 18px) scale(.98); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast.error { background: #7f2e27; }
.toast-indicator { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(80,216,162,.13); }
.toast.error .toast-indicator { background: #ffc1b9; box-shadow: 0 0 0 4px rgba(255,193,185,.13); }

@media (max-width: 1100px) {
  :root { --rail: 238px; }
  .content { padding-inline: 26px; }
  .split-panel { grid-template-columns: 1fr; }
  .split-panel > div + div { padding: 27px 0 0; border: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  body.panel { display: block; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .rail { position: sticky; top: 0; height: 68px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 0 17px; overflow: visible; background: rgba(7,29,25,.96); backdrop-filter: blur(18px); }
  .rail::after, .rail-network, .rail-nav, .rail-foot { display: none; }
  .rail-head .mark { width: 36px; height: 36px; border-radius: 11px; font-size: 19px; }
  .rail-head .wordmark b { font-size: 12px; }
  .rail-head .wordmark small { font-size: 7px; }
  .mobile-account { position: relative; display: block; z-index: 5; }
  .mobile-account summary { display: flex; align-items: center; gap: 3px; cursor: pointer; list-style: none; }
  .mobile-account summary::-webkit-details-marker { display: none; }
  .mobile-account summary > svg { width: 16px; color: rgba(255,255,255,.55); transition: transform .16s; }
  .mobile-account[open] summary > svg { transform: rotate(180deg); }
  .mobile-account .operator-avatar { width: 35px; height: 35px; }
  .mobile-account-menu { position: absolute; right: 0; top: calc(100% + 12px); width: min(280px, calc(100vw - 28px)); display: grid; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; box-shadow: var(--shadow-md); }
  .mobile-account-menu::before { content: ""; position: absolute; right: 13px; top: -6px; width: 11px; height: 11px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); background: #fff; transform: rotate(45deg); }
  .mobile-account-menu p { display: grid; gap: 2px; margin: 0; }
  .mobile-account-menu small { color: var(--muted); font-size: 9px; }
  .mobile-account-menu b { font-size: 12px; }
  .mobile-account-menu .language-switch { border-color: var(--line); background: var(--card-soft); }
  .mobile-account-menu .language-option { color: var(--muted); }
  .mobile-account-menu .language-option.active { color: #fff; background: var(--green); }
  .mobile-bottom-nav { position: fixed; z-index: 40; right: 10px; bottom: max(9px, env(safe-area-inset-bottom)); left: 10px; height: 64px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; color: rgba(255,255,255,.54); background: rgba(7,29,25,.96); box-shadow: 0 16px 45px rgba(7,29,25,.28); backdrop-filter: blur(18px); }
  .mobile-bottom-nav a { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; font-size: 8px; font-weight: 750; }
  .mobile-bottom-nav a svg { width: 19px; height: 19px; }
  .mobile-bottom-nav a span { width: 100%; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-bottom-nav a.current { color: #fff; background: rgba(80,216,162,.12); }
  .mobile-bottom-nav a.current svg { color: var(--mint); }
  .mobile-bottom-nav a.current::after { content: ""; position: absolute; bottom: 2px; width: 13px; height: 2px; border-radius: 2px; background: var(--mint); }
  .content { padding: 25px 16px 34px; }
  .page-context { display: flex; }
}

@media (max-width: 720px) {
  .content-head { align-items: flex-start; margin-bottom: 22px; }
  .page-title > p { font-size: 12px; }
  .refresh-button { width: 43px; min-width: 43px; padding: 0; }
  .refresh-button span { display: none; }
  .metric-grid, .metric-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { min-height: 104px; padding: 14px; border-radius: 13px; }
  .metric.featured { min-height: 118px; }
  .metric small { max-width: 90%; font-size: 8px; }
  .metric strong, .metric.featured strong { margin-top: 14px; font-size: clamp(16px, 4.6vw, 21px); }
  section.panel { padding: 17px; border-radius: 14px; }
  .readiness-head { display: grid; }
  .readiness-head .pill { width: max-content; }
  .readiness-facts { grid-template-columns: 1fr; }
  .readiness-action .button { width: 100%; min-width: 0; }
  .single-form { grid-template-columns: 1fr; }
  .source-banner { align-items: flex-start; padding: 14px; }
  .source-banner time { text-align: right; }
  .table-section { border-radius: 14px; }
  .table-toolbar { padding: 11px; }
  .table-wrap, .table-wrap.inset, .table-wrap.flush { overflow: visible; border: 0; background: transparent; }
  table.responsive-table, table.responsive-table tbody { display: block; width: 100%; }
  table.responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.responsive-table tbody { display: grid; gap: 10px; }
  table.responsive-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); }
  table.responsive-table tbody tr:hover { background: #fff; }
  table.responsive-table tbody td { min-width: 0; display: grid; align-content: start; gap: 4px; padding: 0; border: 0; text-align: left; overflow-wrap: anywhere; }
  table.responsive-table tbody td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
  table.responsive-table tbody td.empty { grid-column: 1 / -1; padding: 28px 10px; }
  table.responsive-table tbody td.empty::before { display: none; }
  table.responsive-table tbody td[data-action-cell] { grid-column: 1 / -1; display: flex; gap: 8px; padding-top: 11px; border-top: 1px solid var(--line); }
  table.responsive-table tbody td[data-action-cell]::before { display: none; }
  table.responsive-table tbody td[data-action-cell] .button { flex: 1; margin: 0; }
  table.responsive-table tbody td.num { text-align: left; }
  .split-panel { gap: 22px; }
  body.login { padding: 16px; }
  .login-layout { min-height: 0; grid-template-columns: 1fr; border-radius: 20px; }
  .login-intro { min-height: 215px; gap: 24px; padding: 25px 25px 20px; }
  .login-message .security-seal { width: 38px; height: 38px; margin-bottom: 13px; border-radius: 11px; }
  .login-message h1 { font-size: 29px; }
  .login-message p { margin-top: 8px; font-size: 12px; }
  .login-network { display: none; }
  .login-card { margin: 0 8px 8px; padding: 25px; border-radius: 16px; }
}

@media (max-width: 430px) {
  .rail { height: 62px; padding-inline: 13px; }
  .rail-head .wordmark small { display: none; }
  .content { padding-inline: 12px; }
  h1 { font-size: 24px; }
  .page-title > p { display: none; }
  .token-line { width: 100%; }
  .token-line b { min-width: 0; }
  .metric { padding: 13px; }
  .metric strong, .metric.featured strong { font-size: 16px; }
  .source-banner time { display: none; }
  .mobile-bottom-nav { right: 7px; bottom: max(6px, env(safe-area-inset-bottom)); left: 7px; }
  .mobile-bottom-nav a { font-size: 7px; }
  .decision-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
