/* Operations console: neutral surfaces, semantic state colors, no external assets. */
:root {
  --bg: #f5f6f8;
  --surface: #fff;
  --ink: #17191d;
  --muted: #747a84;
  --line: #e5e7eb;
  --soft: #f8f9fb;
  --accent: #24272d;
  --green: #19734c;
  --red: #ad3339;
  --amber: #956315;
  --radius: 10px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
a.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  transition: background 0.15s;
}
button:hover,
a.button:hover {
  background: #f0f1f3;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.act,
a.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.act:hover,
a.button.primary:hover {
  background: #40444c;
}
.danger {
  color: var(--red);
  border-color: #e9c9cb;
}
.danger:hover {
  background: #fff5f5;
}
:focus-visible {
  outline: 2px solid #626873;
  outline-offset: 3px;
}
input,
select,
textarea {
  min-width: 0;
  width: 100%;
  min-height: 38px;
  border: 1px solid #dce0e5;
  background: white;
  color: var(--ink);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
}
input::placeholder {
  color: #979da5;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 550;
  color: #4e5560;
}
input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: #252932;
}
.arm {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.row-2,
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fields {
  display: grid;
  gap: 16px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.actions label {
  min-width: 130px;
}
.actions input {
  flex: 1;
  min-width: 100px;
}
.actions select {
  width: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -0.6px;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.1px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
small,
.hint,
.lede {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.lede {
  margin-top: 7px;
}
.hint {
  min-height: 18px;
  margin-top: 9px;
  overflow-wrap: anywhere;
}
.kicker {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.mono,
code,
pre {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
code {
  font-size: 12px;
  background: #f1f3f5;
  padding: 2px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
pre {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 7px;
  line-height: 1.8;
  max-height: 350px;
  overflow: auto;
  margin: 12px 0 0;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 10px 30px;
}
.account-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  margin: 18px 0 24px;
}
.account-summary > div { padding: 16px 12px; }
.account-summary strong { display: block; font-size: 24px; font-weight: 600; }
.account-summary span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.account-card { border: 1px solid var(--line); border-radius: 10px; padding: 20px; min-width: 0; background: #fff; }
.account-card.selected-account { border-color: #858b94; }
.account-card .section-head { align-items: flex-start; margin-bottom: 16px; }
.account-card h3 { margin: 0 0 6px; overflow-wrap: anywhere; }
.account-card small { color: var(--muted); font-size: 11px; }
.account-login-state { font-size: 14px; font-weight: 500; margin-bottom: 15px; }
.account-facts { display: grid; grid-template-columns: 70px 1fr; gap: 9px; font-size: 12px; margin-bottom: 20px; }
.account-facts dt { color: var(--muted); }
.account-facts dd { margin: 0; overflow-wrap: anywhere; }
.account-controls { flex-wrap: wrap; gap: 8px; }
.account-controls button { min-height: 40px; font-size: 12px; padding: 7px 10px; }
@media(max-width:760px) {
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .account-card { padding: 17px; }
  .account-summary > div { padding: 14px 5px; }
  .account-summary strong { font-size: 22px; }
  .account-summary span { font-size: 11px; }
  .account-controls button { min-height: 44px; }
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: block;
  object-fit: contain;
}
.mobile-brand-mark {
  display: none;
  flex: 0 0 auto;
  border-radius: 7px;
}
.download-symbol.app-mark {
  display: block;
  object-fit: contain;
  border: 0;
  border-radius: 12px;
}
.brand strong {
  font-size: 15px;
  display: block;
  letter-spacing: 0.3px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.3px;
}
.nav-section {
  padding: 16px 12px 7px;
  color: #959aa2;
  font-size: 10px;
  letter-spacing: 1px;
}
#nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: 218px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 24px 12px 16px;
  z-index: 12;
}
#nav button {
  justify-content: flex-start;
  text-align: left;
  gap: 12px;
  border: 0;
  width: 100%;
  min-height: 42px;
  background: none;
  color: #666d77;
  font-weight: 500;
  padding-left: 12px;
  margin: 2px 0;
}
#nav button[aria-pressed="true"] {
  background: #f0f1f4;
  color: #15181c;
  font-weight: 650;
}
#nav button:hover {
  background: #f6f7f8;
}
.nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #787f89;
  font-weight: 400;
}
.nav-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 16px 12px 0;
}
.nav-bottom a {
  display: block;
  text-decoration: none;
  color: #646b75;
  font-size: 12px;
  margin: 8px 0;
}
.nav-bottom p {
  font-size: 10px;
  color: #818791;
  line-height: 1.6;
  margin-top: 12px;
}
#app {
  margin-left: 218px;
  min-height: 100vh;
}
.topbar {
  height: 65px;
  border-bottom: 1px solid var(--line);
  background: #ffffffed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.breadcrumb {
  font-size: 12px;
  color: #989da5;
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb b {
  color: #555c66;
  font-weight: 500;
}
.topbar select {
  max-width: 200px;
  min-height: 33px;
  padding: 5px 30px 5px 10px;
}
.topbar .actions {
  flex-wrap: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
}
.avatar {
  width: 28px;
  height: 28px;
  background: #edf0f3;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 10px;
  display: grid;
  place-items: center;
  color: #606671;
}
.canvas {
  max-width: 1700px;
  margin: auto;
  padding: 27px 30px 40px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 23px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.status {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.status > div {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.status > div:last-child {
  border-right: 0;
}
.status span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}
.status strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.card,
.stage {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}
.section-head p {
  margin-top: 4px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.workspace > .stack {
  gap: 18px;
}
.stage {
  padding: 0;
  overflow: hidden;
}
.stage > .section-head {
  padding: 18px 20px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.screen {
  position: relative;
  background: #e9ecf0;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.screen img {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
  outline-offset: -3px;
}
.view-empty {
  padding: 50px 24px;
  text-align: center;
  color: #868c95;
  font-size: 13px;
}
.stage-footer {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
}
.stage-footer .actions {
  gap: 7px;
}
.stage-footer button {
  font-size: 12px;
  min-height: 32px;
  padding: 5px 9px;
}
.code-dock {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.code-dock .hint {
  margin: 0;
}
.rule-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.banner {
  border: 1px solid #ecd9b2;
  background: #fffbf3;
  color: var(--amber);
  padding: 11px 13px;
  border-radius: 6px;
  font-size: 12px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.banner.bad {
  border-color: #efd0d2;
  background: #fff8f8;
  color: var(--red);
}
.pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  padding: 2px 8px;
  line-height: 1.7;
  border: 1px solid #e2e5ea;
  border-radius: 5px;
  color: #727984;
  background: #fafbfc;
  white-space: nowrap;
}
.pill.good {
  background: #f2faf6;
  border-color: #cfe7da;
  color: var(--green);
}
.pill.warn {
  background: #fffbf2;
  border-color: #eedfbd;
  color: var(--amber);
}
.pill.bad {
  background: #fff5f5;
  border-color: #efd0d2;
  color: var(--red);
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
thead {
  background: #fafbfc;
}
th {
  color: #7c828c;
  font-size: 11px;
  font-weight: 500;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 13px 14px;
  border-bottom: 1px solid #eef0f2;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr[data-detail] {
  cursor: pointer;
}
tbody tr[data-detail]:hover {
  background: #f8f9fb;
}
td small {
  display: block;
  font-size: 10px;
  color: #969ca5;
}
.empty {
  color: #8b919a;
  text-align: center;
  padding: 45px 16px;
  font-size: 13px;
}
.empty strong {
  display: block;
  color: #646b75;
  font-weight: 500;
  margin-bottom: 5px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.toolbar label {
  flex: 1;
  min-width: 120px;
}
.toolbar label.search {
  flex: 2;
  min-width: 220px;
}
.toolbar label.narrow {
  flex: 0 1 120px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 13px;
  color: var(--muted);
  font-size: 11px;
  gap: 12px;
}
.order-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.notice {
  border-left: 2px solid #a5aab2;
  background: var(--soft);
  padding: 11px 13px;
  color: #707782;
  font-size: 12px;
  margin: 14px 0;
  line-height: 1.8;
}
.page-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  color: #878d96;
  font-size: 11px;
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
  padding: 0 0 13px;
  color: #8a9098;
}
.tabs button[aria-selected="true"] {
  border-bottom: 2px solid #30343c;
  color: #20242a;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.metric small {
  display: block;
  font-size: 11px;
}
.metric strong {
  display: block;
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 8px 0 2px;
}
.metric span {
  font-size: 11px;
  color: #979da6;
}
.key-values {
  margin: 0;
  display: grid;
  gap: 12px;
}
.key-values > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #eff0f2;
  padding-bottom: 10px;
  font-size: 12px;
}
.key-values dt {
  color: #838993;
}
.key-values dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.mini-step {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 15px 0;
}
.step-n {
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  border: 1px solid #dedfe3;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #747b84;
}
.mini-step strong {
  font-size: 12px;
  font-weight: 600;
}
.mini-step p {
  font-size: 11px;
  color: #959aa2;
  margin-top: 2px;
}
.lock {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  max-width: 1100px;
  gap: 100px;
  align-items: center;
  margin: auto;
  padding: 60px 40px;
}
.lock .brand {
  padding: 0;
  margin-bottom: 60px;
}
.lock-intro h1 {
  font-size: 39px;
  line-height: 1.35;
  letter-spacing: -1.2px;
  margin: 20px 0;
}
.lock-intro p {
  color: #828892;
  max-width: 365px;
  font-size: 14px;
  line-height: 1.9;
}
.lock-card {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 12px 40px #252a3210;
}
.lock-card h2 {
  font-size: 23px;
  margin-bottom: 8px;
}
.lock-card label {
  margin-top: 28px;
}
.lock-card > .act {
  width: 100%;
  margin-top: 20px;
  min-height: 42px;
}
.lock-links {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  font-size: 12px;
  color: #7b828d;
}
.lock-links a {
  text-decoration: none;
}
.drawer-shade {
  position: fixed;
  inset: 0;
  background: #14192345;
  z-index: 30;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 31;
  width: min(590px, 100%);
  background: white;
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 45px #17213315;
  padding: 28px;
  overflow: auto;
}
.drawer pre {
  max-height: none;
}
.drawer h2 {
  font-size: 20px;
}
.drawer .section-head {
  align-items: center;
}
.drawer .key-values {
  margin: 24px 0;
}
.public-header {
  height: 75px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1120px) / 2));
  gap: 20px;
}
.public-header .brand {
  padding: 0;
  text-decoration: none;
  min-width: 180px;
}
.public-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}
.public-header nav > a {
  text-decoration: none;
  color: #727984;
}
.public-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 50px 24px 65px;
}
.public-shell .hero {
  max-width: 690px;
  margin: 0 0 36px;
}
.public-shell .hero h1 {
  font-size: 35px;
  line-height: 1.45;
  margin: 12px 0;
}
.public-shell .hero > p {
  font-size: 14px;
  color: #7b828d;
  line-height: 1.9;
}
.public-shell .hero .actions {
  margin-top: 22px;
}
.docs-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 40px;
}
.docs-nav {
  position: sticky;
  top: 25px;
  align-self: start;
  display: grid;
  gap: 14px;
}
.docs-nav a {
  color: #7e858f;
  text-decoration: none;
  font-size: 12px;
}
.docs-content {
  display: grid;
  gap: 25px;
}
.docs-content section {
  scroll-margin-top: 20px;
}
.docs-content h2 {
  font-size: 19px;
  margin-bottom: 14px;
}
.docs-content p {
  color: #757d87;
  font-size: 13px;
  line-height: 1.9;
  margin: 10px 0;
}
.docs-content ol {
  padding-left: 20px;
  color: #5f6772;
  font-size: 13px;
  line-height: 2.1;
}
.guide-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 23px 0;
}
.guide-flow > div {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 17px;
}
.guide-flow b {
  font-size: 11px;
  color: #969ca4;
  display: block;
  margin-bottom: 14px;
}
.guide-flow strong {
  font-size: 13px;
}
.guide-flow p {
  font-size: 11px;
  color: #9298a0;
  margin-top: 7px;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.download-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.download-symbol {
  width: 43px;
  height: 43px;
  background: #f4f5f7;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: -0.4px;
  font-weight: 600;
}
.download-card h2 {
  font-size: 20px;
}
.download-card > p {
  font-size: 12px;
  color: #838994;
  line-height: 1.85;
  min-height: 68px;
}
.download-card .actions {
  margin-top: auto;
}
.download-card ul {
  font-size: 12px;
  line-height: 2;
  color: #808793;
  padding-left: 17px;
  margin: 0;
}
.download-meta {
  font-size: 11px;
  color: #858c96;
}
.hash {
  font-family: Consolas, monospace;
  font-size: 11px;
  word-break: break-all;
  color: #8b929c;
}
.public-footer {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 35px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  color: #9298a0;
  font-size: 11px;
}
.update-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 17px;
  margin-bottom: 17px;
  border: 1px solid #d5dae2;
  background: #eef1f6;
  border-radius: 7px;
  font-size: 12px;
  color: #5c6777;
}
.status-list {
  display: grid;
  gap: 14px;
}
.status-list > div {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.status-list h3 {
  font-size: 13px;
}
.status-list p {
  font-size: 11px;
  color: #969ca5;
  margin-top: 5px;
}
.trace-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #6f7782;
  font-size: 12px;
}
.trace-line strong {
  font-weight: 500;
  color: #424a55;
}
.check-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
.check-line small {
  display: block;
  margin-top: 4px;
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .canvas {
    padding: 32px 40px;
  }
  .topbar {
    padding: 0 40px;
  }
}
@media (max-width: 1200px) {
  #nav {
    width: 190px;
  }
  #app {
    margin-left: 190px;
  }
  .canvas {
    padding: 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
  }
  .card {
    padding: 17px;
  }
  .status > div {
    padding: 13px;
  }
  .status strong {
    font-size: 12px;
  }
  .order-layout {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 16px;
  }
}
@media (max-width: 1000px) {
  .workspace,
  .order-layout {
    grid-template-columns: 1fr;
  }
  .workspace > .stack {
    grid-template-columns: 1fr 1fr;
  }
  .order-layout > .ticket {
    order: 1;
  }
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
  .download-grid > .card:last-child {
    grid-column: span 2;
  }
  .lock {
    gap: 40px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 15px;
  }
  .status {
    grid-template-columns: repeat(3, 1fr);
  }
  .status > div:nth-child(3) {
    border-right: 0;
  }
  .status > div:nth-child(4),
  .status > div:nth-child(5) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 760px) {
  #nav {
    position: sticky;
    top: 0;
    width: 100%;
    height: 51px;
    padding: 0 9px;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 0;
  }
  #nav .brand,
  #nav .nav-section,
  #nav .nav-bottom,
  #nav .nav-icon {
    display: none;
  }
  #nav button {
    width: auto;
    min-width: max-content;
    border-radius: 0;
    font-size: 12px;
    margin: 0;
    padding: 0 13px;
    background: none !important;
    min-height: 50px;
  }
  #nav button[aria-pressed="true"] {
    border-bottom: 2px solid #21252c;
  }
  #app {
    margin: 0;
  }
  .topbar {
    position: static;
    height: 57px;
    padding: 0 16px;
  }
  .topbar .breadcrumb {
    font-size: 11px;
  }
  .topbar .avatar,
  .topbar .policy-top {
    display: none;
  }
  .topbar select {
    max-width: 150px;
    font-size: 12px;
  }
  .canvas {
    padding: 22px 15px 32px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 18px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading > .actions {
    gap: 6px;
  }
  .page-heading button {
    font-size: 11px;
    min-height: 32px;
    padding: 5px 8px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .status {
    margin-bottom: 17px;
    grid-template-columns: repeat(3, 1fr);
  }
  .status > div {
    padding: 11px;
  }
  .status span {
    font-size: 10px;
  }
  .status strong {
    font-size: 11px;
  }
  .workspace > .stack,
  .split,
  .row-2 {
    grid-template-columns: 1fr;
  }
  .workspace > .stack {
    gap: 15px;
  }
  .card,
  .stage {
    border-radius: 8px;
  }
  .card {
    padding: 17px;
  }
  .screen {
    min-height: 210px;
  }
  .stage > .section-head {
    padding: 14px;
  }
  .stage-footer {
    padding: 13px;
  }
  .order-layout > .ticket {
    order: 0;
  }
  .table-wrap table {
    min-width: 560px;
  }
  .table-wrap.compact table {
    min-width: 380px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar label.search {
    min-width: 100%;
    flex: 1;
  }
  .toolbar label {
    min-width: 100px;
  }
  .toolbar label.narrow {
    flex: 1;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metrics .metric:last-child {
    grid-column: span 2;
  }
  .metric strong {
    font-size: 23px;
  }
  .page-note {
    align-items: flex-start;
    font-size: 10px;
  }
  .lock {
    display: block;
    padding: 42px 23px;
  }
  .lock .brand {
    margin-bottom: 35px;
  }
  .lock-intro h1 {
    font-size: 30px;
  }
  .lock-intro > p {
    font-size: 13px;
    margin-bottom: 30px;
  }
  .lock-intro .guide-flow {
    display: none;
  }
  .lock-card {
    padding: 25px;
  }
  .lock-card h2 {
    font-size: 20px;
  }
  .public-header {
    height: 65px;
    padding: 0 17px;
    gap: 10px;
  }
  .public-header .brand {
    min-width: 0;
    gap: 8px;
    flex-shrink: 0;
  }
  .public-header .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .public-header .brand strong {
    font-size: 13px;
  }
  .public-header .brand small {
    display: none;
  }
  .public-header nav {
    gap: 13px;
    font-size: 11px;
  }
  .public-header nav .button {
    font-size: 11px;
    padding: 4px 9px;
    min-height: 32px;
  }
  .public-shell {
    padding: 31px 17px 35px;
  }
  .public-shell .hero h1 {
    font-size: 27px;
  }
  .public-shell .hero > p {
    font-size: 13px;
  }
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .docs-nav {
    display: flex;
    overflow-x: auto;
    position: static;
    gap: 20px;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--line);
  }
  .docs-nav a {
    white-space: nowrap;
  }
  .guide-flow {
    grid-template-columns: 1fr 1fr;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .download-grid > .card:last-child {
    grid-column: auto;
  }
  .download-card > p {
    min-height: 0;
  }
  .public-footer {
    flex-direction: column;
    gap: 8px;
  }
  .drawer {
    padding: 22px;
  }
  .update-banner {
    align-items: flex-start;
  }
  .tabs {
    gap: 16px;
  }
  .tabs button {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
[data-panel="history"] .table-wrap {
  max-height: 62vh;
  overflow: auto;
}
[data-panel="history"] thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
.download-card > .pill {
  align-self: flex-start;
}

/* Quiet account summaries; full wallet detail lives in the management dialog. */
.account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.account-card { padding: 26px; border-radius: 14px; }
.account-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.account-card h3 { font-size:18px; line-height:1.4; margin:0 0 6px; }
.account-card .account-manage { min-height:36px; border:0; color:var(--muted); background:transparent; padding:4px 8px; flex-shrink:0; }
.account-state-line { display:flex; align-items:center; gap:12px; margin:20px 0 24px; font-size:12px; color:var(--muted); }
.account-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:0; }
.account-metrics dt { color:var(--muted); font-size:11px; }
.account-metrics dd { margin:10px 0 6px; font-size:23px; font-weight:600; line-height:1.25; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.account-trade-summary { font-size:12px; color:var(--muted); margin:24px 0 0; line-height:1.6; }
.account-issue { font-size:12px; margin:10px 0 0; line-height:1.5; }
.account-card-foot { display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-top:24px; padding-top:18px; border-top:1px solid var(--line); }
.account-card-foot button { min-height:40px; font-size:12px; }
.account-card-foot .account-text-action { border:0; background:transparent; padding:6px 0; }
.account-empty { grid-column:1/-1; text-align:center; padding:48px 20px; border:1px dashed var(--line); border-radius:14px; }
.account-empty p { color:var(--muted); margin:12px 0 24px; }
.account-dialog { width:min(560px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); overflow:auto; box-sizing:border-box; border:1px solid var(--line); border-radius:14px; padding:28px; }
.account-dialog::backdrop { background:#0006; }
.account-dialog p { line-height:1.7; }
.account-dialog button { min-height:44px; }
.account-dialog h3 { font-size:14px; margin:24px 0 14px; }
.account-amount { display:flex; justify-content:space-between; gap:16px; padding:10px 0; font-size:14px; }
.account-amount strong { overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.manage-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.account-delete-area { display:flex; justify-content:space-between; align-items:center; gap:16px; border-top:1px solid var(--line); padding-top:20px; margin-top:28px; font-size:12px; color:var(--muted); }
button.danger { color:#a32a24; border-color:#d5aaa7; background:#fff; }
.deleted-account { display:flex; flex-wrap:wrap; justify-content:space-between; gap:14px; padding:20px 0; border-bottom:1px solid var(--line); }
.deleted-account small { display:block; margin-top:6px; color:var(--muted); }
@media(max-width:1000px) { .account-grid {grid-template-columns:minmax(0,1fr);} }
@media(max-width:600px) {
  .account-card {padding:22px 18px;} .account-grid {gap:18px;}
  .account-metrics {gap:10px;} .account-metrics dd {font-size:21px;}
  .account-card-foot {gap:18px;} .account-card-foot button {min-height:44px;}
  .account-dialog {padding:22px;} .account-delete-area {flex-wrap:wrap;}
}
#rename-dialog { width: min(480px, calc(100vw - 32px)); box-sizing: border-box; border: 1px solid #ccc; padding: 24px; border-radius: 12px; }
#rename-dialog::backdrop { background: #0007; }
#rename-dialog p { line-height: 1.65; }
#rename-dialog input { box-sizing: border-box; width: 100%; min-height: 44px; margin: 8px 0; }
#rename-dialog button { min-height: 44px; }

/* Compact proxy registry; credentials only live in the import dialog. */
.proxy-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border:1px solid #d5d8df;border-radius:16px;color:inherit;background:var(--paper,#fff)}
.proxy-dialog::backdrop{background:rgba(0,0,0,.35)}
.proxy-list{margin-top:16px;min-width:0}
.proxy-row{padding:16px 0;border-top:1px solid #e3e5e9;display:flex;align-items:center;justify-content:space-between;gap:16px}
.proxy-row>div:first-child{min-width:0;flex:1}
.proxy-row p{margin:5px 0;overflow-wrap:anywhere}
.proxy-row .actions{flex-shrink:0;flex-wrap:wrap}
#proxy-import-content{width:100%;min-height:130px;resize:vertical;font-family:monospace;-webkit-text-security:disc}
#proxy-import-content.revealed{-webkit-text-security:none}
@media(max-width:760px){.proxy-dialog{padding:20px}.proxy-row{align-items:flex-start;flex-direction:column}.proxy-row .actions{width:100%}.proxy-row .actions button{flex:1}}
