:root {
  /* Theme pulled from the screenshot */
  --red: #ff3636;
  --red-2: #ff4b4b;

  --navy-1: #143153;
  --navy-2: #1d3d61;
  --navy-3: #234a73;

  --bg: #eef2f6;
  --card: #ffffff;
  --border: #dfe6ee;
  --text: #1a2433;
  --muted: #667489;

  --radius: 14px;
  --shadow: 0 8px 28px rgba(10, 24, 45, 0.10);
  --shadow-soft: 0 6px 18px rgba(10, 24, 45, 0.08);

  --sidebar-w: 280px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

html { scroll-behavior: smooth; }

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

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, var(--red), var(--red-2));
  color: white;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.06em;
}

.nav { display: grid; gap: 10px; padding: 6px 6px 18px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  transition: transform 120ms ease, background 120ms ease;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-item.is-active {
  background: white;
  color: var(--red);
  border-color: white;
}

.nav-icon {
  width: 22px;
  display: inline-grid;
  place-items: center;
}

.sidebar-footer {
  padding: 12px 6px 6px;
}

.ghost {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.10);
  color: white;
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
}

.ghost:hover { background: rgba(255,255,255,0.16); }

/* Main / topbar */
.main { min-width: 0; }

.topbar {
  height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(90deg, var(--navy-1), var(--navy-2), var(--navy-3));
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 5;
}

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

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
}

.crumbs-title { font-weight: 500; opacity: 0.92; }
.crumbs-sep { opacity: 0.45; }
.crumbs-user { opacity: 0.85; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-link {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
}

.topbar-link:hover { text-decoration: none; background: rgba(255,255,255,0.12); }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
}

/* Content */
.content {
  padding: 22px;
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card--wide { grid-column: 1 / -1; }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-kicker {
  color: #8a97aa;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.card-title {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.card-body {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f6f8fb;
  color: #516175;
  font-size: 13px;
}

.cta-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.btn-primary:hover { background: #ff2a2a; text-decoration: none; }

.btn-secondary:hover { background: #f6f8fb; text-decoration: none; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fbfcfe;
}

.stat-num { font-weight: 600; }
.stat-label { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.35; }

.doc-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.doc-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.doc-list a {
  color: #ff4a4a;
  text-decoration: none;
}

.doc-list a:hover { text-decoration: underline; }

.doc-ico { opacity: 0.75; }

.card-foot { margin-top: 12px; }
.link { color: #2d4f74; }

.meeting { margin-top: 12px; }
.meeting-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.meeting-row:last-child { border-bottom: 0; }
.meeting-label { color: #7a889a; font-size: 13px; }
.meeting-value { color: #334155; }

.section-head {
  margin: 4px 0 14px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 500;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.muted { color: var(--muted); line-height: 1.55; margin: 0; }

.bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #3c4c60;
  line-height: 1.6;
}

.form { display: grid; gap: 12px; }
label span { display: block; font-size: 13px; color: #7a889a; margin-bottom: 6px; }

input, textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 12px;
  font: inherit;
  outline: none;
  background: white;
}

input:focus, textarea:focus {
  border-color: rgba(255, 54, 54, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 54, 54, 0.12);
}

.fineprint {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #7a889a;
}

.callout {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fbfcfe;
  padding: 14px;
}
.callout-title { font-weight: 600; margin-bottom: 6px; }
.callout-body { color: var(--muted); line-height: 1.5; }

.footer {
  margin-top: 18px;
  padding: 12px 4px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #708197;
}

.footer-links { display: flex; gap: 10px; align-items: center; }
.footer a { color: #2d4f74; }
.dot { opacity: 0.6; }

/* Mobile + collapsible sidebar */
.mobile-only { display: none; }

.icon-btn {
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  color: white;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 45, 0.45);
  z-index: 20;
}

body.sidebar-collapsed {
  --sidebar-w: 96px;
}

body.sidebar-collapsed .nav-item span:last-child,
body.sidebar-collapsed .brand-name,
body.sidebar-collapsed .ghost {
  display: none;
}

body.sidebar-collapsed .nav-item {
  justify-content: center;
  border-radius: 16px;
}

@media (max-width: 1080px) {
  .grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .card-title { font-size: 26px; }
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(88vw, 320px);
    transform: translateX(-110%);
    transition: transform 160ms ease;
    z-index: 30;
  }

  body.sidebar-open .sidebar { transform: translateX(0); }
  .mobile-only { display: inline-flex; }
}

/* App-like UI preview block */
.ui-preview {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcfe, #ffffff);
  padding: 14px;
}

.ui-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ui-title {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ui-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f6f8fb;
  color: #516175;
  font-size: 12.5px;
}

.ui-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ui-mini-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  padding: 12px;
}

.ui-mini-card--wide {
  grid-column: 1 / -1;
}

.ui-mini-kicker {
  font-size: 12px;
  color: #8a97aa;
  margin-bottom: 6px;
}

.ui-mini-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ui-mini-lines {
  display: grid;
  gap: 6px;
  color: #3c4c60;
  font-size: 13.5px;
}

@media (max-width: 1080px) {
  .ui-preview-grid { grid-template-columns: 1fr; }
  .ui-mini-card--wide { grid-column: auto; }
}
