* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17201b;
  background: #eef2ef;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #111815;
  color: #f4f7f2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #c8f169;
  color: #111815;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a,
.ghost-button {
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  background: transparent;
  color: #d9e0dc;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.sidebar nav a:hover,
.ghost-button:hover {
  background: rgba(255, 255, 255, .08);
}

.content {
  padding: 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #66736b;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

.profile-pill {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #17201b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.hero-balance {
  background: #17201b;
  color: white;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
}

.hero-balance p {
  color: #b9c7be;
  margin: 0 0 8px;
}

.hero-balance strong {
  font-size: 42px;
  letter-spacing: 0;
}

.grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  background: #ffffff;
  border: 1px solid #dce4df;
  border-radius: 8px;
  padding: 20px;
}

.panel h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #edf1ee;
}

.row:first-of-type {
  border-top: 0;
}

.row span {
  display: grid;
  gap: 4px;
}

small,
.muted {
  color: #66736b;
}

.card-preview {
  border-radius: 8px;
  padding: 18px;
  color: white;
  display: grid;
  gap: 18px;
  margin-bottom: 12px;
  min-height: 132px;
}

.card-preview.graphite {
  background: linear-gradient(135deg, #222b28, #59645d);
}

.card-preview.emerald {
  background: linear-gradient(135deg, #063f32, #1c8f71);
}

.card-preview.midnight {
  background: linear-gradient(135deg, #141b2d, #405a8a);
}

.notice {
  border-left: 4px solid #9eb0a6;
  padding: 12px 14px;
  background: #f5f7f5;
  margin-bottom: 10px;
  border-radius: 6px;
}

.notice.success {
  border-color: #2f9f6b;
}

.notice.warning {
  border-color: #c99a2e;
}

.notice p {
  margin: 4px 0 0;
  color: #526058;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #111815;
  transition: background .2s ease, color .2s ease;
}

.login-screen[data-login-theme="light"] {
  background: #eef2ef;
}

.login-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.segmented-control {
  display: inline-flex;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}

.login-screen[data-login-theme="light"] .segmented-control {
  background: rgba(255, 255, 255, .78);
  border-color: #dce4df;
}

.segmented-control button {
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  background: transparent;
  color: #d9e0dc;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.login-screen[data-login-theme="light"] .segmented-control button {
  color: #526058;
}

.segmented-control button[aria-pressed="true"] {
  background: #c8f169;
  color: #111815;
  font-weight: 700;
}

.login-panel {
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border-radius: 8px;
  padding: 32px;
}

.login-screen[data-login-theme="light"] .login-panel {
  border: 1px solid #dce4df;
  box-shadow: 0 24px 80px rgba(17, 24, 21, .12);
}

.login-panel h1 {
  margin-top: 18px;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: #526058;
}

.login-form input {
  width: 100%;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}

.login-form button {
  border: 0;
  border-radius: 8px;
  padding: 13px 16px;
  background: #17201b;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero-balance strong {
    font-size: 32px;
  }

  .login-controls {
    position: static;
    align-self: start;
    justify-self: stretch;
    padding: 16px 16px 0;
  }
}
