:root {
  color-scheme: dark;
  --canvas: #131312;
  --canvas-raised: #191918;
  --panel: #1f1f1d;
  --panel-raised: #262624;
  --panel-header: #2a2a28;
  --rule: #3c3c39;
  --rule-strong: #57574f;
  --text: #d6d6d0;
  --text-soft: #c0c0ba;
  --text-muted: #a5a59e;
  --text-faint: #83837b;
  --link: #c9c28c;
  --link-hover: #e6e0a6;
  --accent: #d3aa5d;
  --accent-strong: #aa8f35;
  --accent-ink: #151608;
  --positive: #a9c17a;
  --negative: #dc8f76;
  --warning: #e0c06f;
  --info: #bab98c;
  --focus: #d8d6a0;
  --mono: "IBM Plex Mono", "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: Verdana, Tahoma, "Trebuchet MS", "Segoe UI", sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 1px solid var(--focus);
  outline-offset: 2px;
}
.mono, code { font-family: var(--mono); overflow-wrap: anywhere; }
code {
  color: var(--text);
  font-size: 0.88em;
}
.muted { color: var(--text-muted); }
.empty { margin: 0; color: var(--text-faint); font-size: 0.8rem; }
.panel {
  border: 1px solid var(--rule);
  background: var(--panel);
}
.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 2.55rem;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--rule);
  background: var(--panel-header);
}
.panel-bar h2 {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}
.panel-meta {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}
.panel-body { padding: var(--space-4); }
.panel-body.compact { padding: var(--space-3); }

/* Non-revealing credential copy controls */
.credential-copy { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.credential-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--canvas-raised);
  color: var(--link);
  font-family: var(--mono);
  font-size: 0.72rem;
  white-space: nowrap;
  cursor: pointer;
}
.credential-btn code { white-space: nowrap; overflow-wrap: normal; }
.credential-btn:hover { border-color: var(--accent); color: var(--text); }
.credential-status { min-width: 4rem; color: var(--text-muted); font-size: 0.68rem; }
.storage-warning { color: var(--warning); font-size: 0.72rem; }
/* Exact monetary values share a stable scale; currency units stay secondary. */
.amount { color: var(--accent); font-family: var(--mono); font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.5; white-space: nowrap; }
.amount-unit { color: var(--text-soft); font-size: 0.75em; font-weight: 400; }
