:root {
  color-scheme: light;
  --navy: #082d52;
  --blue: #075fd8;
  --blue-2: #1789f7;
  --sky: #eaf5ff;
  --ice: #f4f9fd;
  --line: #dce8f1;
  --ink: #17334c;
  --muted: #71869a;
  --white: #ffffff;
  --mint: #e5f8f2;
  --green: #187d61;
  --gold: #f9f0d7;
  --gold-ink: #93621d;
  --shadow: 0 18px 45px rgba(20, 66, 105, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #eef5fa;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(23, 137, 247, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  width: min(1600px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--ice);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 20px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border: 1px solid #d6e8f7;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(6, 91, 177, 0.12);
  object-fit: cover;
}

.brand span,
.profile-card > span:nth-child(2) {
  display: grid;
}

.brand strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 7px;
  margin-top: 46px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 0 15px;
  border-radius: 13px;
  color: #5c7287;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: 180ms ease;
}

.nav-item span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: #edf4fa;
  color: #4f6b84;
  font-size: 17px;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(135deg, #e8f3ff, #f2f8ff);
  color: var(--blue);
}

.nav-item.active span {
  background: var(--blue);
  color: white;
}

.sidebar-note {
  display: flex;
  gap: 11px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid #cde5f8;
  border-radius: 15px;
  background: #edf8ff;
}

.sidebar-note strong,
.sidebar-note p {
  font-size: 12px;
}

.sidebar-note p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.demo-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #15a37d;
  box-shadow: 0 0 0 4px rgba(21, 163, 125, 0.12);
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.profile-card small {
  color: var(--muted);
  font-size: 11px;
}

.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #70b7ff);
  color: white;
  font-weight: 800;
}

.avatar-small {
  width: 37px;
  height: 37px;
  font-size: 11px;
}

.main-content {
  min-width: 0;
  padding: 32px 34px 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.today-label,
.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.topbar h1 span {
  font-size: 25px;
}

.topbar > div > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button,
.icon-button,
.text-button,
.close-button {
  border: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
}

.button-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: white;
  box-shadow: 0 10px 25px rgba(7, 95, 216, 0.2);
}

.button-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.icon-button {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--blue);
}

.icon-button::before {
  content: "";
  width: 13px;
  height: 15px;
  border: 2px solid #7890a4;
  border-radius: 7px 7px 4px 4px;
}

.icon-button span {
  position: absolute;
  top: 8px;
  right: 9px;
  color: #ee6e5d;
  font-size: 7px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 28px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 122px;
  padding: 20px;
  border: 1px solid #e1ebf3;
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 26px rgba(37, 79, 112, 0.04);
}

.stat-card p,
.stat-card small {
  margin: 0;
}

.stat-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.stat-card strong {
  display: block;
  margin: 2px 0;
  color: var(--navy);
  font-size: 27px;
  line-height: 1.1;
}

.stat-card small {
  color: #8ba0b2;
  font-size: 10px;
}

.stat-card small b {
  color: var(--blue);
}

.stat-icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--blue);
  color: white;
  font-size: 20px;
}

.stat-icon.sky {
  background: #e9f4ff;
  color: #2b89e8;
}

.stat-icon.mint {
  background: var(--mint);
  color: var(--green);
}

.stat-icon.gold {
  background: var(--gold);
  color: var(--gold-ink);
}

