/* Match the v2/nonce landing page while keeping the imported app layout intact. */
:root {
  --background: 60 2% 17%;
  --foreground: 0 0% 100%;
  --card: 60 2% 20%;
  --card-foreground: 0 0% 100%;
  --popover: 60 2% 20%;
  --popover-foreground: 0 0% 100%;
  --primary: 0 0% 94%;
  --primary-foreground: 60 2% 17%;
  --secondary: 60 2% 23%;
  --secondary-foreground: 0 0% 100%;
  --muted: 60 2% 23%;
  --muted-foreground: 60 3% 64%;
  --accent: 60 2% 23%;
  --accent-foreground: 0 0% 100%;
  --border: 60 2% 29%;
  --input: 60 2% 29%;
  --ring: 44 42% 71%;
  --navbar-background: 60 2% 17%;
  --navbar-border: 60 2% 29%;
  --wallet-surface: 60 2% 20%;
  --wallet-ink: 0 0% 100%;
  --wallet-divider: 60 2% 29%;
  --wallet-badge: 60 2% 25%;
  --wallet-muted: 60 3% 64%;
  --bg: #2c2c2a;
  --bg-panel: #363633;
  --bg-row-alt: #323230;
  --ink: #ffffff;
  --ink-2: #deded8;
  --ink-3: #aaa9a3;
  --ink-4: #85857f;
  --rule: #41413e;
  --rule-2: #555550;
  --accent-soft: #c4b79a;
  --up: #a8cbb0;
  --down: #e2a6a0;
  --button-bg: #deded8;
  --button-fg: #242423;
}

html,
body,
#root { min-height: 100%; background: var(--bg); color: var(--ink); }

/* The imported UI uses --accent for navigation and links. */
:root { --accent: #d8c590; }

input,
textarea,
select { background-color: var(--bg); color: var(--ink); color-scheme: dark; }
input::placeholder,
textarea::placeholder { color: var(--ink-4); }
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.lockform input,
.lockform textarea,
.devpanel input { background: var(--bg) !important; color: var(--ink) !important; }
.lockform button[type=submit]:disabled,
.vbtn:disabled { color: var(--ink-2) !important; background: #555550 !important; }
.sb-wallet [role=menu],
.wallet-panel { background: var(--bg-panel); color: var(--ink); }
.sb-wallet [role=menu] .wallet-control { background: var(--bg-panel); color: var(--ink); }

@media (max-width: 759px) {
  .section:has(> .tbl) { max-width: 100%; overflow-x: auto; }
  .sidebar .nav { height: auto; min-height: 32px; flex-wrap: wrap; row-gap: 4px; padding-bottom: 6px; }
  .sidebar .nav a + a::before { display: inline !important; }
  .sidebar .xbtn { display: flex; grid-column: 1 / -1; width: 42px; height: 24px; margin: 2px 0 8px; }
  .topline { height: auto; white-space: normal; flex-wrap: wrap; }
  .board-top > pre { width: 100% !important; max-width: 100%; overflow-x: auto !important; }
  .board-top > div { width: 100% !important; max-width: 100%; min-width: 0; overflow-x: auto; }
}
