:root {
  --bg: #f5f7f7;
  --surface: #fff;
  --ink: #1b2926;
  --muted: #64736e;
  --line: #e2e8e5;
  --green: #17684e;
  --green-light: #e6f3eb;
  --amber: #926218;
  --amber-light: #fff5de;
  --red: #ad3d3d;
  --red-light: #fceeee;
  --nav: #17241f;
  --radius: 6px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.7;
}
button {
  letter-spacing: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #83bca6;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.freshness-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 15px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.freshness-band span,
.freshness-band strong {
  display: block;
}
.freshness-band span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.freshness-band strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.diagnostic-check,
.flow-node {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  min-width: 0;
}
.diagnostic-check summary,
.flow-node summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.diagnostic-check summary strong,
.flow-node summary strong {
  min-width: 0;
  flex: 1;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.diagnostic-check p,
.flow-node p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.learning-guide {
  line-height: 1.85;
  font-family: system-ui, "Nirmala UI", "Mangal", sans-serif;
}
#fyers-renewal-setup pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.learning-guide p { max-width: 100ch; color: var(--muted); }
.learning-guide .guide-lead { color: var(--ink); font-size: 17px; }
.guide-spine { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.guide-spine strong { min-width: 0; }
.guide-spine svg { flex-shrink: 0; color: var(--green); width: 20px; }
.guide-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.guide-route li { min-width: 0; border-bottom: 1px solid var(--line); }
.guide-step {
  width: 100%; min-height: 190px; height: 100%; padding: 18px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  background: transparent; color: var(--ink); text-align: left;
  border: 0; border-right: 1px solid var(--line); cursor: pointer;
  font: inherit; overflow-wrap: anywhere;
}
.guide-step:hover { background: var(--surface); }
.guide-step strong { font-size: 16px; }
.guide-step small { color: var(--muted); }
.guide-step .badge { white-space: normal; text-align: left; }
.guide-detail { border-bottom: 1px solid var(--line); padding: 18px 0; scroll-margin-top: 90px; }
.guide-detail summary { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.guide-detail summary strong { flex: 1; min-width: 0; }
.guide-detail summary .badge { white-space: normal; max-width: 45%; }
.guide-detail .data-list > div { grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr); }
.guide-detail .data-list dd { text-align: left; line-height: 1.85; }
.guide-observed { border-left: 3px solid var(--green); padding-left: 18px; margin-top: 18px; }
.guide-health { margin: 0; max-width: 760px; }
.guide-health figcaption { font-weight: 600; margin-bottom: 14px; }
.guide-bar { display: grid; grid-template-columns: 160px minmax(0, 1fr) 40px; align-items: center; gap: 12px; padding: 8px 0; }
.guide-bar meter { width: 100%; height: 22px; accent-color: var(--green); }
.guide-bar[data-state="BLOCKED"] meter { accent-color: var(--red); }
.guide-bar[data-state="WAITING"] meter { accent-color: var(--amber); }
.guide-bar[data-state="OTHER"] meter { accent-color: var(--muted); }
.guide-bar meter::-webkit-meter-optimum-value { background: var(--green); }
.guide-bar[data-state="BLOCKED"] meter::-webkit-meter-optimum-value { background: var(--red); }
.guide-bar[data-state="WAITING"] meter::-webkit-meter-optimum-value { background: var(--amber); }
.guide-bar[data-state="OTHER"] meter::-webkit-meter-optimum-value { background: var(--muted); }
.guide-bar strong { text-align: right; }
.guide-tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guide-tracks > div { min-width: 0; border-top: 2px solid var(--green); }
.learning-guide .table-wrap td { white-space: normal; min-width: 150px; line-height: 1.85; }
@media (max-width: 1150px) {
  .guide-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .guide-spine { flex-direction: column; align-items: flex-start; }
  .guide-spine svg { transform: rotate(90deg); }
  .guide-route, .guide-tracks { grid-template-columns: minmax(0, 1fr); }
  .guide-step { min-height: 155px; border-right: 0; }
  .guide-detail summary { flex-wrap: wrap; }
  .guide-detail summary strong { flex-basis: 100%; }
  .guide-detail summary .badge { max-width: 90%; }
  .guide-detail .data-list > div { grid-template-columns: minmax(0, 1fr); }
  .guide-bar { grid-template-columns: 110px minmax(0, 1fr) 28px; gap: 8px; }
}
.flow-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.flow-lane {
  min-width: 0;
}
.flow-lane h3 {
  font-size: 14px;
  border-top: 2px solid var(--green);
  padding-top: 12px;
}
.flow-arrow {
  display: flex;
  justify-content: center;
  color: var(--muted);
  margin-top: 8px;
}
.flow-node .data-list div {
  display: block;
}
.flow-node dd {
  text-align: left;
  overflow-wrap: anywhere;
  margin-top: 5px;
}
.brain-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
  padding-left: 24px;
}
.brain-chain li {
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.brain-chain strong {
  font-size: 13px;
}
.brain-chain small {
  display: block;
  font-size: 11px;
  overflow-wrap: anywhere;
  color: var(--muted);
  margin-top: 6px;
}
.cell-detail {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 900px) {
  .freshness-band,
  .flow-lanes,
  .brain-chain {
    grid-template-columns: minmax(0, 1fr);
  }
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  padding: 12px;
  background: white;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  width: 228px;
  background: var(--nav);
  color: #c5d3cb;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 29px 17px 14px;
  z-index: 30;
}
.sidebar nav {
  min-height: 0;
  overflow-y: auto;
  flex: 1;
}
.sidebar-bottom {
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  background: #b4e7c4;
  color: #173c2b;
  width: 38px;
  height: 40px;
  border-radius: 5px;
  font-size: 29px;
}
.brand-mark span {
  position: absolute;
  right: 1px;
  top: 0;
  font-size: 17px;
  background: #b4e7c4;
  line-height: 16px;
}
.brand-caption {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: #94aa9d;
  margin-top: 7px;
  letter-spacing: 0;
}
.workspace {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #36483d;
  border-radius: 5px;
  padding: 10px;
  font-size: 11px;
  margin: 30px 0 25px;
  color: #d7e5dc;
}
.workspace svg {
  width: 13px;
  margin-left: auto;
  color: #8faa9b;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #79c393;
  flex-shrink: 0;
}
.nav-label {
  display: block;
  color: #789082;
  font-size: 10px;
  font-weight: 650;
  margin: 12px 10px 10px;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #c0cec5;
  padding: 12px 13px;
  text-align: left;
  border-radius: 5px;
  margin: 3px 0;
  font-size: 12px;
}
.sidebar nav button:hover {
  background: #26392e;
  color: #fff;
}
.sidebar nav button.active {
  background: #d7eedf;
  color: #194c33;
  font-weight: 650;
}
.sidebar nav button svg {
  width: 17px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.glossary-button {
  background: none;
  border: 0;
  display: flex;
  gap: 10px;
  color: #a5bbad;
  align-items: center;
  font-size: 12px;
  padding: 12px 10px;
}
.account-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #36483d;
  padding: 19px 4px 3px;
  margin-top: 13px;
}
.avatar {
  background: #43534a;
  color: #e9f2ec;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.account-summary strong {
  display: block;
  font-size: 12px;
  color: #e4ece7;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-summary small {
  display: block;
  font-size: 10px;
  color: #98ac9f;
  margin-top: 4px;
}
.account-summary .icon-button {
  color: #adc2b3;
  margin-left: auto;
}
.app-frame {
  margin-left: 228px;
}
.topbar {
  height: 69px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  gap: 15px;
}
.breadcrumb,
.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
}
.breadcrumb > span {
  color: var(--muted);
}
.breadcrumb svg {
  width: 13px;
  color: #84938d;
}
.breadcrumb strong {
  font-weight: 500;
}
.top-actions {
  gap: 18px;
}
.mode-label {
  font-size: 10px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #416b55;
}
.mode-label svg {
  width: 15px;
}
.mode-label .dot {
  background: #288252;
}
.top-divider {
  height: 22px;
  border-left: 1px solid var(--line);
}
.timezone {
  font-size: 11px;
  color: var(--muted);
}
main {
  max-width: 1550px;
  margin: auto;
  padding: 33px 34px 15px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  color: #74857b;
  margin: 0 0 9px;
}
.page-heading h1 {
  font-size: 27px;
  line-height: 1.25;
  margin: 0;
  font-weight: 650;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 8px 0 0;
}
.page-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.refresh-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-right: 8px;
  cursor: pointer;
}
.refresh-toggle input {
  accent-color: var(--green);
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 5px;
  width: 34px;
  height: 34px;
  color: var(--muted);
  position: relative;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #eaf0ec;
  color: var(--green);
}
.icon-button.outlined {
  border: 1px solid var(--line);
  background: white;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  border: 1px solid transparent;
  padding: 8px 13px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 550;
}
.button svg {
  width: 15px;
  height: 15px;
}
.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.button.primary {
  background: var(--green);
  color: white;
}
.button.primary:hover {
  background: #0d533d;
}
.button.danger-button {
  background: var(--red-light);
  color: var(--red);
}
.button.link-button {
  background: none;
  color: var(--green);
  padding: 6px 0;
}
.notification-count {
  position: absolute;
  top: 0;
  right: 0;
  background: #ae7921;
  color: #fff;
  font-size: 8px;
  border: 2px solid white;
  min-width: 16px;
  border-radius: 10px;
  line-height: 12px;
}
.notice {
  border: 1px solid #efdcb0;
  border-left: 3px solid #c09337;
  border-radius: 5px;
  background: #fff9e9;
  color: #765720;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  font-size: 12px;
  line-height: 1.55;
}
.notice .notice-title {
  display: block;
  font-weight: 650;
  margin-bottom: 3px;
}
.notice .notice-body {
  color: #8c744b;
  font-size: 11px;
}
.notice .button {
  margin-left: auto;
  white-space: nowrap;
  color: #7b5e26;
  background: transparent;
}
.notice.danger {
  border-color: #edc8c8;
  border-left-color: #ba5151;
  background: var(--red-light);
  color: var(--red);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  margin-bottom: 27px;
  overflow: hidden;
}
.metric {
  padding: 19px 21px;
  border-right: 1px solid var(--line);
  min-height: 124px;
  min-width: 0;
}
.metric:last-child {
  border: 0;
}
.metric-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  gap: 4px;
}
.help-button {
  width: 20px;
  height: 20px;
}
.help-button svg {
  width: 13px;
  height: 13px;
}
.metric-value {
  font-size: 25px;
  font-weight: 650;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.metric-foot {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.positive {
  color: var(--green);
}
.muted {
  color: var(--muted);
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}
.section {
  min-width: 0;
  margin-bottom: 27px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.section-head h2 {
  font-size: 14px;
  font-weight: 650;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head small {
  font-size: 10px;
  color: var(--muted);
}
.section-head .button {
  font-size: 11px;
}
.chart-wrap {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 17px 16px 10px;
  position: relative;
}
.chart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  margin-bottom: 15px;
}
.chart-number {
  font-size: 21px;
  font-weight: 650;
  margin-right: 9px;
}
.chart-meta {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.chart-canvas {
  width: 100%;
  height: 210px;
  display: block;
}
.chart-caption {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 8px;
}
.chart-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 600;
  background: #eef1ef;
  color: #5c6a62;
  white-space: nowrap;
}
.badge.good {
  color: #286446;
  background: #e6f2e8;
}
.badge.warning {
  color: #986b27;
  background: #fff2d6;
}
.badge.bad {
  color: #a44343;
  background: #fce9e9;
}
.badge.neutral {
  background: #edf1f2;
  color: #576b72;
}
.readiness-list {
  border-top: 1px solid var(--line);
}
.readiness-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
  text-align: left;
  color: inherit;
}
.readiness-row > .status-symbol {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-light);
  color: var(--green);
  flex-shrink: 0;
}
.status-symbol.warning {
  background: var(--amber-light);
  color: var(--amber);
}
.status-symbol.bad {
  background: var(--red-light);
  color: var(--red);
}
.status-symbol svg {
  width: 14px;
}
.readiness-row strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.readiness-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 5px;
}
.readiness-row > .lucide {
  margin-left: auto;
  width: 14px;
  color: #8b9a90;
  margin-top: 5px;
}
.readiness-row:hover {
  background: #edf2ee;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  color: #7d8b82;
  font-size: 9px;
  font-weight: 600;
  background: #fafbfa;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 13px 16px;
  border-bottom: 1px solid #edf1ee;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr[data-decision],
tbody tr[data-coverage] {
  cursor: pointer;
}
tbody tr[data-decision]:hover,
tbody tr[data-coverage]:hover {
  background: #f1f7f3;
}
.cell-symbol {
  font-weight: 650;
  font-size: 11px;
  color: #2d4738;
}
.symbol-token {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #eaf0ed;
  color: #3d654f;
  font-size: 9px;
  margin-right: 9px;
  vertical-align: middle;
}
.number {
  font-variant-numeric: tabular-nums;
}
.reason-cell {
  white-space: normal;
  min-width: 160px;
  max-width: 320px;
  line-height: 1.6;
  color: var(--muted);
}
.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 34px !important;
  white-space: normal;
}
.section-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
  margin: 12px 0 0;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}
.toolbar input,
.toolbar select {
  width: auto;
  min-width: 120px;
  margin: 0;
}
.toolbar .search-field {
  flex: 1;
  max-width: 320px;
}
.search-field {
  position: relative;
}
.search-field input {
  width: 100%;
  padding-left: 34px;
}
.search-field svg {
  position: absolute;
  left: 11px;
  top: 11px;
  width: 14px;
  color: var(--muted);
}
input:not([type="checkbox"]),
select {
  display: block;
  min-height: 38px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #dce3de;
  border-radius: 5px;
  color: var(--ink);
  background: white;
  font-size: 12px;
  max-width: 100%;
}
select {
  cursor: pointer;
}
label {
  font-size: 12px;
  color: #42594b;
}
label > input,
label > select {
  margin-top: 7px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 11px;
}
.pagination > span {
  margin-right: auto;
}
.empty-state {
  padding: 30px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}
.empty-state svg {
  width: 28px;
  height: 28px;
  color: #819e8b;
  margin-bottom: 8px;
}
.empty-state h3 {
  font-size: 14px;
  margin: 6px 0;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 510px;
  margin: 8px auto;
}
.definition {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.definition summary {
  cursor: pointer;
  line-height: 1.5;
  font-size: 12px;
  font-weight: 550;
}
.definition p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 10px 0;
}
.data-list {
  margin: 0;
}
.data-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(100px, 1.5fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}
.data-list dt {
  color: var(--muted);
}
.data-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}
.data-list dd small {
  display: block;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}
.status-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}
.status-item h3 {
  font-size: 13px;
  margin: 0 0 12px;
}
.status-item p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.status-item .data-list > div {
  font-size: 11px;
}
.status-item .data-list > div:last-child {
  border: 0;
}
.progress-track {
  display: flex;
  gap: 0;
  margin: 18px 0 25px;
}
.stage {
  flex: 1;
  padding: 15px 12px;
  border-top: 3px solid #d5ded7;
  font-size: 11px;
  min-width: 0;
}
.stage strong {
  display: block;
  margin-bottom: 7px;
}
.stage small {
  color: var(--muted);
  line-height: 1.6;
}
.stage.passed {
  border-top-color: #38875d;
}
.stage.current {
  border-top-color: #c6963e;
}
.stage .badge {
  margin-top: 10px;
}
.security-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
}
.security-form .button {
  justify-self: start;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.panel-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.security-state {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 0 20px;
}
.security-state > svg {
  width: 25px;
  height: 25px;
  color: var(--green);
}
.security-state strong {
  display: block;
  font-size: 13px;
}
.security-state small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.mfa-qr {
  display: block;
  width: 210px;
  height: 210px;
  max-width: 100%;
  margin: 12px auto;
}
.secret-value {
  display: block;
  white-space: normal;
  word-break: break-all;
  background: #edf4ee;
  padding: 14px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.7;
}
.recovery-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-family: monospace;
  font-size: 12px;
}
.recovery-codes span {
  background: #f1f5f2;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 20px 0 8px;
  font-size: 10px;
  color: #819087;
  margin-top: 14px;
}
.page-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.page-footer svg {
  width: 12px;
  height: 12px;
}
.loading-state {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d7e4db;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
dialog {
  width: 620px;
  max-width: calc(100vw - 28px);
  max-height: 88vh;
  padding: 24px 27px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 12px 70px #13281e26;
}
dialog::backdrop {
  background: #12201a80;
  backdrop-filter: blur(2px);
}
.dialog-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  margin-bottom: 18px;
}
.dialog-heading h2 {
  font-size: 19px;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}
#dialog-content {
  font-size: 12px;
  line-height: 1.7;
}
#dialog-content h3 {
  font-size: 13px;
  margin: 22px 0 10px;
}
#dialog-content p {
  color: var(--muted);
  line-height: 1.8;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  padding: 13px 18px;
  border-radius: 6px;
  background: #183b29;
  color: #fff;
  max-width: calc(100vw - 40px);
  box-shadow: 0 5px 20px #112d2520;
  font-size: 12px;
}
.mobile-menu {
  display: none;
}
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f6f8f6;
}
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 42px;
  gap: 20px;
}
.auth-brand {
  color: var(--ink);
}
.auth-brand .brand-caption {
  color: #708676;
}
.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: none;
  width: 100%;
  padding: 32px 20px;
}
.auth-form-wrap {
  width: 360px;
  max-width: 100%;
}
.auth-icon {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: #e2eee5;
  margin-bottom: 25px;
}
.auth-icon svg {
  width: 22px;
  height: 22px;
}
.auth-form-wrap h1 {
  font-size: 30px;
  line-height: 1.3;
  margin: 10px 0 8px;
}
.auth-form-wrap form {
  margin-top: 27px;
}
.auth-form-wrap label {
  display: block;
  font-size: 12px;
  margin-bottom: 19px;
}
.auth-form-wrap input:not([type="checkbox"]) {
  height: 44px;
}
.auth-form-wrap label > small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
}
.password-field {
  display: flex;
  position: relative;
  margin-top: 7px;
}
.password-field input {
  padding-right: 45px;
}
.password-field button {
  position: absolute;
  right: 5px;
  top: 5px;
}
.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 10px;
  margin-left: 4px;
}
.auth-submit {
  width: 100%;
  height: 44px;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 3px;
}
.auth-switch {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}
.auth-switch a {
  font-weight: 600;
}
.auth-help {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 23px;
  font-size: 11px;
  color: var(--muted);
}
.auth-help summary {
  cursor: pointer;
}
.auth-help p {
  line-height: 1.7;
}
.auth-assurance {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #839186;
  margin-top: 33px;
}
.auth-assurance svg {
  width: 13px;
}
.auth-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 22px 42px;
  color: #819087;
  font-size: 10px;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  background: var(--red-light);
  padding: 10px 12px;
  border-radius: 4px;
  line-height: 1.6;
}
.nowrap {
  white-space: nowrap;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
}
.view-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 18px;
}
.inline-code {
  font-family: monospace;
  word-break: break-all;
  font-size: 11px;
}
progress {
  width: 65px;
  max-width: 100%;
  height: 6px;
  accent-color: var(--green);
  vertical-align: middle;
  margin-right: 6px;
}
.field-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.text-wrap {
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (min-width: 1500px) {
  main {
    padding: 38px 45px 20px;
  }
  .topbar {
    padding: 0 45px;
  }
  .chart-canvas {
    height: 240px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .app-frame {
    margin-left: 205px;
  }
  main {
    padding: 26px 22px 15px;
  }
  .topbar {
    padding: 0 22px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .refresh-toggle {
    display: none;
  }
  .metric {
    padding: 16px 13px;
  }
  .metric-value {
    font-size: 22px;
  }
  .grid-two {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
    gap: 20px;
  }
  .status-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chart-canvas {
    height: 215px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 228px;
    box-shadow: 8px 0 40px #17241f25;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .app-frame {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 61px;
    padding: 0 18px;
  }
  .top-actions {
    gap: 11px;
  }
  main {
    padding: 24px 18px 12px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .grid-two .section {
    margin-bottom: 0;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .panel-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .progress-track {
    flex-wrap: wrap;
  }
  .stage {
    min-width: 33%;
    max-width: 50%;
  }
  .notice {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px;
  }
  .notice > .button {
    margin-left: 25px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .section-head {
    gap: 10px;
  }
  .page-footer {
    flex-wrap: wrap;
    font-size: 9px;
  }
}
@media (max-width: 480px) {
  .page-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .page-tools {
    width: 100%;
    justify-content: flex-start;
  }
  .refresh-toggle {
    display: flex;
    margin-right: auto;
  }
  .page-heading .subtitle {
    font-size: 11px;
  }
  .topbar .breadcrumb > span,
  .topbar .breadcrumb > svg,
  .timezone,
  .top-divider {
    display: none;
  }
  .top-actions {
    gap: 5px;
  }
  .mode-label {
    font-size: 9px;
  }
  .status-grid {
    grid-template-columns: 1fr;
  }
  .metric-value {
    font-size: 22px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-foot {
    font-size: 9px;
  }
  .chart-top {
    flex-wrap: wrap;
  }
  .chart-canvas {
    height: 200px;
  }
  .auth-header {
    padding: 24px 20px;
  }
  .auth-header .mode-label {
    max-width: 100px;
    line-height: 1.5;
  }
  .auth-footer {
    padding: 18px 20px;
    flex-direction: column;
    gap: 8px;
  }
  .auth-main {
    padding-top: 15px;
    padding-bottom: 30px;
  }
  .auth-form-wrap h1 {
    font-size: 27px;
  }
  .data-list > div {
    grid-template-columns: 1fr 1.2fr;
    font-size: 11px;
  }
  .recovery-codes {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 20px;
  }
  .toolbar input,
  .toolbar select {
    max-width: 100%;
    min-width: 0;
  }
  .toolbar .search-field {
    width: 100%;
    flex-basis: 100%;
    max-width: none;
  }
  th,
  td {
    padding: 12px;
  }
  .notice {
    padding: 12px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .progress-track .stage {
    padding: 12px 8px;
  }
}
:root {
  color-scheme: light;
  --chart-line: #2b8060;
}
.theme-control {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.theme-control select {
  width: 76px;
  min-height: 32px;
  margin: 0;
  padding: 5px;
  font-size: 11px;
}
.theme-control svg {
  width: 15px;
}
.auth-header .theme-control {
  order: 2;
}
.auth-header {
  flex-wrap: wrap;
}
.profile-details {
  margin-bottom: 24px;
}
.profile-details form {
  margin-top: 18px;
}
.notice.danger .notice-body {
  color: var(--red);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151719;
  --surface: #1e2225;
  --ink: #eef1f0;
  --muted: #acb8b2;
  --line: #38403c;
  --green: #83d9b3;
  --green-light: #233d32;
  --amber: #efd096;
  --amber-light: #3e321f;
  --red: #f1aaaa;
  --red-light: #402728;
  --chart-line: #83d9b3;
}
[data-theme="dark"] .metrics,
[data-theme="dark"] .chart-wrap,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .status-item,
[data-theme="dark"] .button.secondary,
[data-theme="dark"] .icon-button.outlined,
[data-theme="dark"] input:not([type="checkbox"]),
[data-theme="dark"] select,
[data-theme="dark"] dialog {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
[data-theme="dark"] .auth-page {
  background: var(--bg);
}
[data-theme="dark"] th {
  background: #252b2e;
  color: var(--muted);
}
[data-theme="dark"] td {
  border-color: var(--line);
}
[data-theme="dark"] label,
[data-theme="dark"] .cell-symbol {
  color: var(--ink);
}
[data-theme="dark"] .symbol-token,
[data-theme="dark"] .secret-value,
[data-theme="dark"] .auth-icon,
[data-theme="dark"] .recovery-codes span {
  background: var(--green-light);
  color: var(--green);
}
[data-theme="dark"] .button.primary {
  background: #26684e;
  color: #ffffff;
}
[data-theme="dark"] .button.primary:hover {
  background: #2e7c5d;
}
[data-theme="dark"] .badge {
  background: #333c40;
  color: #d3dee0;
}
[data-theme="dark"] .badge.good {
  background: var(--green-light);
  color: var(--green);
}
[data-theme="dark"] .badge.warning {
  background: var(--amber-light);
  color: var(--amber);
}
[data-theme="dark"] .badge.bad {
  background: var(--red-light);
  color: var(--red);
}
[data-theme="dark"] .notice {
  background: var(--amber-light);
  border-color: #806a3f;
  color: var(--amber);
}
[data-theme="dark"] .notice .notice-body,
[data-theme="dark"] .notice .button {
  color: inherit;
}
[data-theme="dark"] .notice.danger {
  background: var(--red-light);
  color: var(--red);
  border-color: #935555;
}
[data-theme="dark"] .readiness-row:hover,
[data-theme="dark"] .icon-button:hover {
  background: #2a3430;
}
[data-theme="dark"] .mode-label {
  color: #a6d4bb;
}
[data-theme="dark"] .notification-count {
  border-color: var(--surface);
}
[data-theme="dark"] .skip-link {
  background: var(--surface);
}
@media (max-width: 480px) {
  .top-actions {
    gap: 4px;
  }
  .theme-control {
    gap: 2px;
  }
  .theme-control svg {
    display: none;
  }
  .theme-control select {
    width: 63px;
  }
  .topbar {
    padding: 0 10px;
  }
  .breadcrumb {
    gap: 5px;
  }
  .breadcrumb strong {
    max-width: 88px;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
