@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #f5f0e6;
  --surface: #ffffff;
  --surface-alt: #faf6ee;
  --border: #e7e0cf;
  --border-soft: #efe9dc;
  --text: #1a2820;
  --muted: #6b6157;
  --brand: #2d6a4a;
  --brand-soft: #dbeae0;
  --brand-text: #1d4a32;
  --warn: #c47a1c;
  --warn-soft: #f6e5c5;
  --warn-text: #7a4d10;
  --danger: #b54338;
  --danger-soft: #f4d6d1;
  --danger-text: #7a261d;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  font-family: var(--font);
  font-feature-settings: "cv11", "ss01";
  color: var(--text);
  margin: 0;
  padding: 0;
}

.h-shell {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.h-sidebar {
  width: 224px;
  flex-shrink: 0;
  background: var(--surface-alt);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.h-sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
}

.h-sidebar__logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.h-sidebar__group-label {
  font-size: 11px;
  color: var(--muted);
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.h-sidebar__group-label:not(:first-of-type) {
  padding-top: 14px;
}

.h-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.h-nav-item:hover {
  background: var(--surface);
}

.h-nav-item.active {
  font-weight: 600;
  color: var(--brand-text);
  background: var(--brand-soft);
}

.h-nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.h-sidebar__user {
  margin-top: auto;
  padding: 10px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

.h-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.h-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
}

.h-topbar__titles {
  flex: 1;
}

.h-topbar__sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.h-topbar__title {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.h-topbar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 240px;
  font-size: 12.5px;
  color: var(--muted);
}

.h-topbar__search svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  flex-shrink: 0;
}

.h-btn-bell {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.h-btn-bell:hover {
  background: var(--surface-alt);
}

.h-btn-bell svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.7;
}

.h-btn-bell__dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
}

.h-btn-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  border: 0;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  transition: all 0.15s ease;
}

.h-btn-primary:hover {
  background: #245a3e;
}

.h-btn-primary svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.h-page {
  flex: 1;
  padding: 22px 28px;
  overflow: auto;
}

.h-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px;
}

.h-card--p16 {
  padding: 16px;
}

.h-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 96px;
}

.h-kpi__label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.h-kpi__value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.h-kpi__hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.h-kpi__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.h-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.h-chip--neutral {
  background: #efe9dc;
  color: var(--text);
}

.h-chip--ok {
  background: var(--brand-soft);
  color: var(--brand-text);
}

.h-chip--warn {
  background: var(--warn-soft);
  color: var(--warn-text);
}

.h-chip--danger {
  background: var(--danger-soft);
  color: var(--danger-text);
}

.h-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.h-avatar {
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.h-spark {
  width: 90px;
  height: 26px;
  display: block;
}

.h-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 12px 4px 0;
  border-top: 1px dashed var(--border-soft);
  margin-top: 12px;
}

.h-bar-chart__col {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 0;
  min-height: 120px;
}

.h-bar-chart__bar {
  background: var(--brand);
  border-radius: 4px 4px 0 0;
  transition: all 0.2s ease;
}

.h-bar-chart__bar-remaining {
  background: transparent;
  border-top: 1px dashed var(--border-soft);
  flex: 1;
}

.h-bar-chart__label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  font-family: var(--font-mono);
  margin-top: 6px;
}

.h-attention-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-alt);
  border-radius: 10px;
}

.h-attention-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h-attention-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.h-attention-content {
  flex: 1;
  min-width: 0;
}

.h-attention-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.h-attention-detail {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}

.h-attention-cta {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.h-attention-cta:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-text);
}

/* Responsive */
@media (max-width: 900px) {
  .h-sidebar {
    display: none;
  }

  .h-shell {
    flex-direction: column;
  }

  .h-page {
    padding: 16px;
  }

  .h-topbar {
    padding: 14px 16px;
  }

  .h-topbar__search {
    width: 100%;
  }
}
