:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --border: #e6e9f2;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2457f5;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.sidebar {
  width: 290px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  min-height: 100vh;
  padding: 24px 18px;
  position: fixed;
}

.sidebar h2 {
  margin: 0;
  font-size: 1.15rem;
}

.sidebar h3 {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sidebar .muted {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 8px 0 14px;
}

.sidebar a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  color: #344054;
  transition: 0.2s;
}

.sidebar a:hover {
  background: #eff3ff;
  color: #1939a7;
}

.sidebar a.sub-link {
  margin-top: -4px;
  margin-left: 18px;
  padding: 6px 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.content {
  margin-left: 290px;
  width: calc(100% - 290px);
  padding: 28px;
}

.page-shell {
  width: 100%;
  max-width: 980px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.home-logo {
  width: auto;
  height: 56px;
  max-width: 140px;
  max-height: 56px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

h1 {
  margin-top: 0;
  font-size: 2rem;
}

h2 {
  margin-top: 2rem;
}

p,
li {
  line-height: 1.65;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.card {
  background: #fbfcff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  border-bottom: 1px solid var(--border);
  padding: 10px;
  text-align: left;
}

.button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.button:hover {
  filter: brightness(0.95);
}

/* Mobile + tablet */
@media (max-width: 980px) {
  body {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 12px;
  }

  .sidebar h2 {
    font-size: 1.05rem;
  }

  .sidebar .muted {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .sidebar h3 {
    margin: 14px 0 6px;
    font-size: 0.78rem;
  }

  .sidebar a {
    padding: 10px 12px;
    margin-bottom: 4px;
  }

  .content {
    margin-left: 0;
    width: 100%;
    padding: 12px;
  }

  .page-shell {
    max-width: 100%;
    border-radius: 12px;
    padding: 16px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card {
    min-width: 0;
    padding: 14px;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

.home-brand img {
  width: auto !important;
  height: 56px !important;
  max-width: 140px !important;
  max-height: 56px !important;
  object-fit: contain !important;
}
