:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #697386;
  --line: #dde3ec;
  --accent: #1467e8;
  --accent-soft: #eaf2ff;
  --green: #188956;
  --shadow: 0 12px 32px rgba(24, 37, 58, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 2;
  display: flex;
  width: 238px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 22px 15px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 5px 8px 24px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.brand-mark,
.avatar,
.project-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand strong,
.brand small,
.profile strong,
.profile small {
  display: block;
}

.brand strong { font-size: 14px; }
.brand small, .profile small { margin-top: 2px; color: var(--muted); font-size: 11px; }

nav {
  display: grid;
  gap: 7px;
  padding-top: 22px;
}

nav a {
  min-height: 44px;
  border-radius: 7px;
  padding: 12px 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

nav a:hover,
nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 13px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25a66a;
  box-shadow: 0 0 0 4px #e8f7ef;
}

main {
  width: min(1300px, calc(100% - 286px));
  margin-left: 262px;
  padding: 26px 24px 42px;
}

.topbar,
.section-head,
.card-top,
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-size: 30px; letter-spacing: 0; }
h2 { margin-bottom: 5px; font-size: 21px; }
h3 { margin-bottom: 8px; font-size: 18px; }
.subtitle, .section-head p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 162px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 8px 11px;
}

.avatar { width: 30px; height: 30px; border-radius: 7px; font-size: 11px; }
.profile strong { font-size: 12px; }

.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.metric {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 6px 20px rgba(24, 37, 58, 0.04);
}

.metric span { display: block; color: var(--muted); font-size: 12px; font-weight: 750; }
.metric strong { display: block; margin-top: 12px; font-size: 31px; }
.metric:last-child strong { font-size: 21px; }
.primary-metric { border-color: #cbdcf8; background: #f4f8ff; }

.projects-section,
.about {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: var(--shadow);
}

.search-box input {
  width: 260px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  padding: 9px 12px;
  color: var(--ink);
  font: inherit;
}

.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 103, 232, 0.11); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.project-card {
  display: flex;
  min-height: 248px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 17px;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: #b9cef1;
  box-shadow: 0 12px 26px rgba(24, 37, 58, 0.09);
}

.project-mark { width: 42px; height: 42px; border-radius: 8px; font-size: 13px; }
.project-mark.green { background: #21885c; }
.project-mark.cyan { background: #167f98; }
.project-mark.violet { background: #6657c8; }
.project-mark.orange { background: #c46b2b; }

.online-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfe9dc;
  border-radius: 999px;
  background: #f2fbf6;
  color: var(--green);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
}

.online-badge i { width: 6px; height: 6px; border-radius: 50%; background: #25a66a; }
.card-copy { padding: 20px 0 16px; }
.category { color: var(--accent); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.card-copy p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 13px; }
.card-foot span { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.card-foot strong { color: var(--accent); font-size: 20px; }

.empty-state { margin: 30px 0 10px; color: var(--muted); text-align: center; }

.about {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 35px;
  margin-top: 20px;
}

.about p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
footer { padding: 24px 4px 0; color: var(--muted); font-size: 11px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 1000px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .sidebar { position: static; width: auto; height: auto; padding: 12px 15px; }
  .brand { border-bottom: 0; padding-bottom: 5px; }
  .sidebar nav, .sidebar-foot { display: none; }
  main { width: 100%; margin-left: 0; padding: 20px 14px 32px; }
  .profile { display: none; }
  .overview, .project-grid, .about { grid-template-columns: 1fr; }
  .section-head { align-items: stretch; flex-direction: column; }
  .search-box input { width: 100%; }
}
