:root {
  --bg: #070b12;
  --surface: #121a27;
  --border: #243044;
  --text: #e8edf5;
  --muted: #94a3b8;
  --accent: #14b8a6;
  --accent-strong: #14b8a6;
  --danger: #f87171;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --radius: 0.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(20, 184, 166, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(20, 184, 166, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-strong);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(36, 48, 68, 0.8);
  overflow: visible;
  position: relative;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 700;
}

.brand img {
  width: 28px;
  height: 28px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: visible;
  position: relative;
  z-index: 31;
}

.top-actions [data-vs-app-switcher],
.top-actions .vs-app-switcher {
  flex-shrink: 0;
  position: relative;
  z-index: 32;
}

.ghost {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.ghost:hover,
.ghost:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.hero,
.card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
}

.card {
  width: min(28rem, 100%);
  background: rgba(18, 26, 39, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(2, 8, 23, 0.28);
}

.kicker {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.notice {
  margin: 0 0 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice--err {
  border-color: var(--danger);
  color: #fecaca;
}

.notice[hidden] {
  display: none;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: #fff;
  color: #1f2937;
  font-weight: 600;
}

.btn-google:hover {
  color: #111827;
  background: #f8fafc;
}

.btn-google svg {
  width: 1.1rem;
  height: 1.1rem;
}

.meta {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.foot {
  padding: 1.25rem 1.5rem 1.75rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* —— Expense report —— */
.report-wrap {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.report-hero h1 {
  margin-bottom: 0.4rem;
}

.panel {
  background: rgba(18, 26, 39, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.25rem;
}

.conn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.85rem;
}

.conn-card {
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.85rem;
  background: rgba(7, 11, 18, 0.35);
}

.conn-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.conn-card p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.conn-card .muted,
.dim,
.hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.conn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.sync-progress {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 1.25em;
}

.sync-progress[hidden] {
  display: none;
}

.ghost-btn:disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn,
.ghost-btn {
  appearance: none;
  border: 1px solid var(--accent);
  background: rgba(20, 184, 166, 0.12);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.95rem;
  border-radius: 0.55rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn:hover,
.ghost-btn:hover {
  background: rgba(20, 184, 166, 0.22);
  color: var(--text);
}

.ghost-btn {
  border-color: var(--border);
  background: transparent;
}

.btn--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.pill--ok {
  border-color: #4ade80;
  color: #bbf7d0;
  background: rgba(74, 222, 128, 0.12);
}

.pill--off {
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-end;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.filters input {
  font: inherit;
  color: var(--text);
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  padding: 0.45rem 0.55rem;
  min-width: 9rem;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat strong {
  font-family: var(--display);
  font-size: 1.45rem;
}

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.cat-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(36, 48, 68, 0.7);
  font-size: 0.95rem;
}

.cat-list em {
  color: var(--muted);
  font-style: normal;
}

.table-scroll {
  overflow-x: auto;
}

.txn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.txn-table th,
.txn-table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid rgba(36, 48, 68, 0.75);
  vertical-align: top;
}

.txn-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.amt-out {
  color: #fde68a;
  white-space: nowrap;
}

.amt-in {
  color: #86efac;
  white-space: nowrap;
}

.tax {
  display: inline-block;
  max-width: 9rem;
  font-size: 0.8rem;
  color: #99f6e4;
}

@media (max-width: 720px) {
  .report-wrap {
    padding: 1.25rem 0.9rem 2.5rem;
  }

  /* Readable mobile type (~14–16px) — labels/meta/headers only; hero unchanged */
  .conn-card p {
    font-size: 0.95rem;
  }

  .conn-card .muted,
  .dim,
  .hint {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .filters label {
    font-size: 0.9rem;
  }

  .filters input {
    font-size: 1rem;
    padding: 0.5rem 0.6rem;
  }

  .stat-label {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
  }

  .stat strong {
    font-size: 1.5rem;
  }

  .cat-list li {
    font-size: 1rem;
  }

  .cat-list em {
    font-size: 0.9rem;
  }

  .txn-table {
    font-size: 0.95rem;
  }

  .txn-table th {
    font-size: 0.875rem;
    letter-spacing: 0.04em;
  }

  .pill {
    font-size: 0.8125rem;
  }

  .tax {
    font-size: 0.875rem;
  }

  .txn-table th:nth-child(3),
  .txn-table td:nth-child(3) {
    display: none;
  }
}
