/* Shared by the sign-in page and the console. Same tokens as the desktop client,
   so the two surfaces read as one product. */

:root {
  --bg: #0c0e11;
  --surface: #171b20;
  --surface-hover: #1d2228;
  --bg-input: #1a1e24;
  --border: #252b33;
  --border-strong: #333b45;
  --text: #e8ebef;
  --text-dim: #9aa3af;
  --text-faint: #6b7480;
  --accent: #3ee02f;
  --accent-hover: #55ed46;
  --accent-ink: #06210a;
  --accent-text: #5ce84e;
  --accent-soft: rgba(62, 224, 47, 0.14);
  --err: #ff6b6b;
  --err-bg: rgba(255, 107, 107, 0.1);
  --radius: 10px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-hover: #f2f4f7;
    --bg-input: #ffffff;
    --border: #e3e7ec;
    --border-strong: #c9d0d9;
    --text: #161a1f;
    --text-dim: #57606c;
    --text-faint: #858e9a;
    --accent: #38d128;
    --accent-hover: #2fbb21;
    --accent-ink: #05230a;
    --accent-text: #14801a;
    --accent-soft: rgba(20, 128, 26, 0.1);
    --err: #d33b3b;
    --err-bg: rgba(211, 59, 59, 0.09);
    --shadow: 0 16px 40px rgba(19, 26, 38, 0.16);
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--accent-text);
}

.mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #000;
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.btn:hover:not(:disabled) {
  background: var(--surface-hover);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn.primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn.sm {
  padding: 5px 10px;
  font-size: 12.5px;
}

.btn.danger {
  color: var(--err);
  border-color: color-mix(in srgb, var(--err) 35%, transparent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card + .card {
  margin-top: 16px;
}

.card h2 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.muted {
  color: var(--text-faint);
  font-size: 12.5px;
}

.mono {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spacer {
  flex: 1;
}

.banner {
  padding: 11px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  border: 1px solid;
  background: var(--err-bg);
  border-color: color-mix(in srgb, var(--err) 25%, transparent);
  color: var(--err);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  font-weight: 600;
  padding: 0 10px 8px 0;
}

td {
  padding: 9px 10px 9px 0;
  border-top: 1px solid var(--border);
}

.amount-positive {
  color: var(--accent-text);
  font-weight: 600;
}

.amount-negative {
  color: var(--text-dim);
  font-weight: 600;
}
