/* ── 系统设置 ── */
.settings-main { max-width: 1680px; }
.settings-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.settings-title-row h1 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -.025em;
}
.settings-title-row .lede { margin-bottom: 0; }
.settings-scope,
.count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}
.settings-layout {
  display: grid;
  gap: 14px;
}
.settings-layout[hidden],
.admin-card[hidden],
.settings-state[hidden] { display: none; }
.settings-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.settings-card-head {
  min-height: 72px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line-2);
}
.section-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--teal);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .12em;
}
.settings-card h2,
.settings-card h3,
.settings-card p { margin: 0; }
.settings-card h2 {
  color: var(--accent);
  font-size: 16px;
  line-height: 1.35;
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
}
.account-avatar,
.pending-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid #cbd7e1;
  background: #edf2f6;
  color: #345471;
  font-weight: 750;
}
.account-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 16px;
}
.account-profile strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}
.account-meta {
  display: flex;
  gap: 6px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.settings-divider { height: 1px; margin: 0 18px; background: var(--line-2); }
.setting-row {
  min-height: 78px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.setting-row b { color: var(--ink-2); font-size: 13px; }
.setting-row p,
.subsection-head p,
.settings-empty p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.settings-btn {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.settings-btn.primary {
  background: var(--accent);
  color: #fff;
}
.settings-btn.primary:hover { background: var(--accent-2); }
.settings-btn.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink-2);
}
.settings-btn.secondary:hover { border-color: #b8c6d2; background: var(--surface); }
.settings-btn:focus-visible {
  outline: 2px solid #6d879f;
  outline-offset: 2px;
}
.settings-btn:disabled { cursor: wait; opacity: .58; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}
.status-pill.ok { background: #e8f5ef; color: #207b68; }
.status-pill.warn,
.count-pill.warn { border-color: #ead9bd; background: var(--warn-bg); color: var(--warn); }
.status-pill.neutral { background: #eef1f4; color: #697789; }
.count-pill.is-zero { border-color: var(--line); background: var(--surface); color: var(--faint); }
.settings-subsection { padding: 18px; }
.settings-subsection + .settings-subsection { border-top: 1px solid var(--line-2); }
.subsection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}
.subsection-head h3 { color: var(--ink-2); font-size: 13.5px; }
.pending-list {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 7px;
}
.pending-row {
  min-height: 64px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.pending-row + .pending-row { border-top: 1px solid var(--line-2); }
.pending-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 13px;
}
.pending-info { min-width: 0; flex: 1; }
.pending-info b { display: block; color: var(--ink-2); font-size: 13px; }
.pending-info span { color: var(--muted); font-size: 11.5px; }
.pending-actions { display: flex; gap: 7px; }
.settings-empty {
  min-height: 72px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
}
.settings-empty > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8f5ef;
  color: var(--teal);
  font-weight: 750;
}
.settings-empty b { color: var(--ink-2); font-size: 12.5px; }
.settings-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-2);
  border-radius: 7px;
}
.settings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.settings-table th,
.settings-table td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  white-space: nowrap;
}
.settings-table tr:last-child td { border-bottom: 0; }
.settings-table th {
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.settings-table td { color: var(--ink-2); }
.time-cell { color: var(--muted) !important; }
.user-cell { display: flex; align-items: center; gap: 7px; }
.self-mark {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--teal-bg);
  color: var(--teal);
  font-size: 10px;
  font-weight: 650;
}
.settings-state {
  min-height: 74px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
}
.settings-state.error { align-items: flex-start; color: var(--ink-2); }
.settings-state.error > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 50%;
  background: #faecec;
  color: #b54848;
  font-weight: 750;
}
.settings-state.error p { margin: 3px 0 0; color: var(--muted); }
.settings-state.error .settings-btn { margin-left: auto; }
.loading-dot {
  width: 15px;
  height: 15px;
  flex: none;
  border: 2px solid #cbd6df;
  border-top-color: #526f88;
  border-radius: 50%;
  animation: settings-spin .75s linear infinite;
}
@keyframes settings-spin { to { transform: rotate(360deg); } }
.settings-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  max-width: min(360px, calc(100vw - 24px));
  padding: 10px 14px;
  border: 1px solid #bed7cd;
  border-radius: 7px;
  background: #eef8f4;
  color: #206654;
  font-size: 12.5px;
  box-shadow: 0 8px 28px rgba(25, 43, 62, .12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px);
  transition: opacity .16s ease, transform .16s ease;
}
.settings-toast.show { opacity: 1; transform: translateY(0); }
.settings-toast.error { border-color: #efcaca; background: #fff2f2; color: #9f3f3f; }

/* ── 设置 / 功能台账 ── */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.settings-tabs {
  width: max-content;
  max-width: 100%;
  display: flex;
  gap: 3px;
  margin: -4px 0 16px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eaf0f4;
}
.settings-tab {
  min-height: 36px;
  padding: 7px 15px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.settings-tab.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(26, 42, 59, .08);
}
.settings-tab:focus-visible,
.feature-toggle:focus-visible,
.dialog-close:focus-visible,
.ledger-toolbar input:focus-visible,
.ledger-toolbar select:focus-visible,
.feature-dialog input:focus-visible,
.feature-dialog textarea:focus-visible,
.feature-dialog select:focus-visible {
  outline: 2px solid #6d879f;
  outline-offset: 2px;
}
.feature-ledger[hidden],
[data-settings-panel][hidden],
.feature-table-wrap[hidden],
.deployment-table-wrap[hidden],
.ledger-state[hidden],
#feature-custom-fields[hidden] { display: none !important; }
#feature-change-review[hidden] { display: none !important; }
.feature-ledger,
.deployment-ledger { min-width: 0; }
.ledger-head { min-height: 82px; }
.ledger-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.ledger-head-actions { display: flex; align-items: center; gap: 8px; }
.ledger-verify-count {
  border-color: #e8c889;
  background: #fff8e8;
  color: #99651d;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.ledger-verify-count:hover { border-color: #d7ab5b; background: #fff3d8; }
.ledger-verify-count:focus-visible { outline: 2px solid #b57b26; outline-offset: 2px; }
.ledger-toolbar {
  min-height: 60px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-2);
  background: #fbfcfd;
}
.ledger-toolbar label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
}
.ledger-toolbar input,
.ledger-toolbar select,
.feature-dialog input,
.feature-dialog textarea,
.feature-dialog select {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
}
.ledger-toolbar input,
.ledger-toolbar select { min-height: 36px; padding: 7px 10px; }
.ledger-search { width: min(360px, 38vw); }
.ledger-search input { width: 100%; }
.ledger-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}
.ledger-state {
  min-height: 150px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
}
.ledger-state b { color: var(--ink-2); }
.feature-table-wrap { overflow-x: auto; }
.feature-table {
  width: 100%;
  min-width: 1260px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}
.feature-table th,
.feature-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  vertical-align: top;
}
.feature-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f5f7;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .02em;
}
.feature-table th:nth-child(1) { width: 12%; }
.feature-table th:nth-child(2) { width: 13%; }
.feature-table th:nth-child(3) { width: 20%; }
.feature-table th:nth-child(4) { width: 20%; }
.feature-table th:nth-child(5) { width: 18%; }
.feature-table th:nth-child(6) { width: 10%; }
.feature-table th:nth-child(7) { width: 48px; }
.feature-row:hover td { background: #fbfcfd; }
.feature-row td { color: #526579; line-height: 1.55; }
.feature-row td:first-child b {
  display: inline;
  color: var(--ink);
  font-size: 13px;
}
.feature-area-tag {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--teal-bg);
  color: var(--teal);
  font-size: 9.5px;
  font-weight: 750;
}
.feature-location,
.feature-update { color: #697b8e !important; }
.feature-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #53677a;
  font-weight: 700;
}
.feature-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7b8794;
}
.feature-status.normal i { background: #23836d; }
.feature-status.degraded i,
.feature-status.verify i { background: #c0822b; }
.feature-status.abnormal i { background: #cf4444; }
.feature-status.offline i { background: #85909c; }
.feature-status + .feature-status { margin-top: 6px; }
.feature-toggle {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #60758a;
  font: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.feature-toggle:hover { border-color: #b6c6d3; background: var(--surface); }
.feature-detail-row td { padding: 0 !important; background: #f8fafb; }
.feature-change-panel,
.feature-change-review {
  padding: 12px 14px;
  border-bottom: 1px solid #efd7a8;
  background: #fff9ed;
  color: #74511f;
}
.feature-change-panel > div,
.feature-change-review { display: grid; gap: 3px; }
.feature-change-panel b,
.feature-change-review b { color: #704914; font-size: 12px; }
.feature-change-panel span,
.feature-change-review span { font-size: 11px; line-height: 1.55; }
.feature-change-panel ul,
.feature-change-review ul {
  margin: 7px 0 0;
  padding-left: 18px;
  color: #8a672e;
  font: 10.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.feature-change-review {
  margin: 14px 18px 0;
  border: 1px solid #efd7a8;
  border-radius: 7px;
}
.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line-2);
  background: var(--line-2);
}
.feature-detail-block { min-height: 92px; padding: 13px 14px; background: #f8fafb; }
.feature-detail-block span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
}
.feature-detail-block p {
  margin: 0;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.feature-detail-meta {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 10.5px;
}
.feature-detail-actions { margin: 0 14px 12px; display: flex; gap: 8px; }
.ledger-empty { padding: 38px; text-align: center; color: var(--muted); }
.deployment-readonly {
  border-color: #c7ddd9;
  background: #f0f8f6;
  color: #33796e;
}
.deployment-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: #fbfcfd;
}
.deployment-overview > div {
  min-height: 74px;
  padding: 14px 18px;
  display: grid;
  align-content: center;
  gap: 5px;
}
.deployment-overview > div + div { border-left: 1px solid var(--line-2); }
.deployment-overview span { color: var(--muted); font-size: 10.5px; font-weight: 700; }
.deployment-overview strong { color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.deployment-toolbar { border-top: 0; }
.deployment-table-wrap { overflow-x: auto; }
.deployment-table {
  width: 100%;
  min-width: 1240px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}
.deployment-table th,
.deployment-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  vertical-align: top;
}
.deployment-table th {
  background: #f2f5f7;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
}
.deployment-table th:nth-child(1) { width: 145px; }
.deployment-table th:nth-child(2) { width: 120px; }
.deployment-table th:nth-child(3) { width: 31%; }
.deployment-table th:nth-child(4) { width: 115px; }
.deployment-table th:nth-child(5) { width: 115px; }
.deployment-table th:nth-child(6) { width: 115px; }
.deployment-table th:nth-child(7) { width: 85px; }
.deployment-table th:nth-child(8) { width: 48px; }
.deployment-row:hover td { background: #fbfcfd; }
.deployment-time { color: #63778a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.deployment-row td:nth-child(2) b { display: block; color: var(--ink); font-size: 13px; }
.deployment-row code {
  display: block;
  margin-top: 4px;
  color: #8292a2;
  font: 10.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.deployment-copy b { display: block; color: var(--ink-2); font-size: 12.5px; }
.deployment-copy span {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #6c7e90;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.developer-list { display: flex; flex-wrap: wrap; gap: 5px; }
.developer-chip,
.tool-chip,
.deployment-channel {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid #d9e2e8;
  border-radius: 999px;
  background: #f7f9fa;
  color: #5d7083;
  font-size: 10.5px;
  font-weight: 750;
  white-space: nowrap;
}
.developer-chip.codex { border-color: #bcded7; background: #eef8f5; color: #246f63; }
.developer-chip.claude { border-color: #ddd3c2; background: #faf6ef; color: #7b6240; }
.developer-chip.human { border-color: #cbd9e3; background: #f4f7f9; color: #40576d; }
.tool-chip.codex { border-color: #bcded7; background: #eef8f5; color: #246f63; }
.tool-chip.claude { border-color: #ddd3c2; background: #faf6ef; color: #7b6240; }
.deployment-none { color: #9aa8b6; }
.deployment-success { display: inline-flex; align-items: center; gap: 6px; color: #2a7567; font-weight: 750; white-space: nowrap; }
.deployment-success i { width: 7px; height: 7px; border-radius: 50%; background: #27836f; }
.deployment-detail-row td { padding: 0; background: #f8fafb; }
.deployment-detail {
  padding: 14px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}
.deployment-detail > div {
  padding: 12px 13px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: #fff;
}
.deployment-detail span { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.deployment-detail p { margin: 6px 0 0; color: var(--ink-2); font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; }
.deployment-files { grid-column: 1 / -1; }
.deployment-files ul {
  margin: 7px 0 0;
  padding-left: 18px;
  columns: 3;
  color: #66798c;
  font: 10.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.feature-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  box-shadow: 0 22px 70px rgba(20, 35, 49, .2);
}
.feature-dialog::backdrop { background: rgba(25, 38, 51, .34); backdrop-filter: blur(2px); }
.feature-dialog form { max-height: calc(100vh - 42px); overflow-y: auto; }
.feature-dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
  background: rgba(255,255,255,.97);
}
.feature-dialog-head h2 { margin: 0; color: var(--ink); font-size: 17px; }
.dialog-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}
.dialog-close:hover { background: var(--surface); color: var(--ink); }
.feature-form-grid {
  padding: 16px 18px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.feature-form-grid + .feature-form-grid { padding-top: 13px; }
.feature-form-grid label { display: grid; gap: 6px; }
.feature-form-grid label > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.feature-form-grid .wide { grid-column: 1 / -1; }
.feature-dialog input,
.feature-dialog select { min-height: 38px; padding: 8px 10px; }
.feature-dialog textarea { width: 100%; min-height: 64px; padding: 9px 10px; resize: vertical; line-height: 1.55; }
.feature-dialog-actions {
  position: sticky;
  bottom: 0;
  padding: 14px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line-2);
  background: rgba(255,255,255,.97);
}
.feature-review-dialog { width: min(820px, calc(100vw - 28px)); }
.feature-review-shell { max-height: calc(100vh - 42px); display: flex; flex-direction: column; }
.feature-review-head { position: static; flex: none; }
.feature-review-progress {
  flex: none;
  padding: 13px 18px 0;
  background: #fff;
}
.feature-review-progress-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.feature-review-progress-copy b { color: var(--ink); font-size: 12.5px; }
.feature-review-progress-copy span { color: var(--muted); font-size: 11px; }
.feature-review-progress-track {
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef2;
}
.feature-review-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #2a796f;
  transition: width .2s ease;
}
.feature-review-body { padding: 16px 18px 18px; overflow-y: auto; }
.feature-review-identity { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.feature-review-identity .feature-area-tag { margin: 0 0 7px; }
.feature-review-identity h3 { margin: 0; color: var(--ink); font-size: 20px; }
.feature-review-identity p { margin: 5px 0 0; color: var(--muted); font-size: 11.5px; }
.feature-review-version {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #63778a;
  background: #f8fafb;
  font-size: 10.5px;
  white-space: nowrap;
}
.feature-review-changes {
  margin-top: 15px;
  padding: 11px 13px;
  border-left: 3px solid #d29a42;
  background: #fff9ed;
}
.feature-review-changes b { color: #704914; font-size: 11px; }
.feature-review-changes ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #80602e;
  font: 10.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.feature-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  border: 1px solid var(--line-2);
  background: var(--line-2);
}
.feature-review-section { min-height: 92px; padding: 13px 14px; background: #fbfcfd; }
.feature-review-section.wide { grid-column: 1 / -1; }
.feature-review-section span { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .05em; }
.feature-review-section p { margin: 6px 0 0; color: var(--ink-2); font-size: 11.5px; line-height: 1.65; white-space: pre-wrap; }
.feature-review-manual {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #dfcba7;
  border-radius: 8px;
  background: #fffbf3;
}
.feature-review-manual label { display: block; color: #704914; font-size: 11px; font-weight: 800; }
.feature-review-manual textarea {
  min-height: 76px;
  margin-top: 8px;
  border-color: #d8c5a6;
  background: #fff;
}
.feature-review-manual textarea:focus { border-color: #a87424; box-shadow: 0 0 0 3px rgba(168,116,36,.12); }
.feature-review-manual-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.feature-review-manual-meta p { margin: 7px 0 0; color: #80602e; font-size: 10px; line-height: 1.5; }
.feature-review-note-error { color: #b4363c !important; font-weight: 750; text-align: right; }
.settings-btn.manual { border-color: #d6b778; color: #805719; background: #fff9ed; }
.settings-btn.manual:hover:not(:disabled) { border-color: #b78534; background: #fff3da; }
.feature-review-actions {
  flex: none;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line-2);
  background: #fff;
}
.feature-review-actions p { max-width: 360px; margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.feature-review-actions > div { display: flex; gap: 8px; }
.feature-review-complete { padding: 46px 20px; text-align: center; }
.feature-review-complete i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e6f4ef;
  color: #247a66;
  font-style: normal;
  font-weight: 800;
}
.feature-review-complete h3 { margin: 12px 0 4px; color: var(--ink); font-size: 18px; }
.feature-review-complete p { margin: 0; color: var(--muted); font-size: 12px; }

@media (max-width: 620px) {
  .settings-title-row { gap: 12px; }
  .settings-scope { display: none; }
  .settings-card-head,
  .account-profile,
  .setting-row,
  .settings-subsection { padding-inline: 14px; }
  .setting-row { align-items: flex-start; flex-direction: column; gap: 11px; }
  .setting-row .settings-btn { width: 100%; min-height: 44px; }
  .subsection-head { align-items: flex-start; }
  .pending-row { align-items: flex-start; flex-wrap: wrap; }
  .pending-info { padding-top: 1px; }
  .pending-actions { width: 100%; padding-left: 45px; }
  .pending-actions .settings-btn { min-height: 40px; flex: 1; }
  .settings-state.error { flex-wrap: wrap; }
  .settings-state.error .settings-btn { width: 100%; min-height: 44px; margin-left: 35px; }
  .settings-tabs { width: 100%; }
  .settings-tab { flex: 1; min-height: 44px; }
  .ledger-head { align-items: flex-start; flex-direction: column; }
  .ledger-head-actions { width: 100%; justify-content: space-between; }
  .ledger-head-actions .settings-btn { min-height: 42px; }
  .ledger-toolbar { align-items: stretch; flex-direction: column; }
  .ledger-toolbar label { justify-content: space-between; }
  .ledger-toolbar input,
  .ledger-toolbar select { min-height: 44px; }
  .ledger-search { width: 100%; }
  .ledger-count { margin-left: 0; }
  .deployment-overview { grid-template-columns: 1fr; }
  .deployment-overview > div { min-height: 60px; }
  .deployment-overview > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
  .deployment-files ul { columns: 1; }
  .feature-detail-grid { grid-template-columns: 1fr; }
  .feature-detail-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .feature-form-grid { grid-template-columns: 1fr; }
  .feature-form-grid .wide { grid-column: auto; }
  .feature-dialog-actions .settings-btn { min-height: 44px; flex: 1; }
  .feature-review-progress-copy,
  .feature-review-identity,
  .feature-review-actions { align-items: flex-start; flex-direction: column; }
  .feature-review-progress-copy { gap: 3px; }
  .feature-review-version { white-space: normal; }
  .feature-review-grid { grid-template-columns: 1fr; }
  .feature-review-section.wide { grid-column: auto; }
  .feature-review-manual-meta { flex-direction: column; gap: 0; }
  .feature-review-note-error { text-align: left; }
  .feature-review-actions > div { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .feature-review-actions > div .settings-btn { min-height: 44px; }
  #feature-review-record,
  #feature-review-confirm { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-review-progress-track i { transition: none; }
}

