:root {
  --ink: #182c28;
  --muted: #78817f;
  --accent: #195b47;
  --border: #e5e9e6;
  --bg: #f6f7f5;
}
* {
  box-sizing: border-box;
}
body {
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: #278669;
}
button,
input,
select,
textarea {
  font: inherit;
}
h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 9px 0 12px;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
p {
  line-height: 1.65;
}
.sidebar {
  width: 250px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 29px 18px 18px;
  overflow: auto;
}
.brand {
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #173b2f;
  display: flex;
  align-items: center;
  padding: 0 13px;
  gap: 9px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 39px;
  border-radius: 12px 12px 12px 2px;
  background: #175440;
  color: #fff;
  font-size: 32px;
  font-family: Georgia, serif;
  font-style: italic;
}
.brand-word {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  align-self: flex-end;
  margin-bottom: 8px;
  margin-left: -5px;
}
.workspace {
  margin: 30px 0 26px;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  font-size: 12px;
  font-weight: 600;
}
.workspace small,
.user-name small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.workspace-icon {
  border-radius: 6px;
  background: #edf0e9;
  color: #5f6d51;
  padding: 8px 11px;
  font-weight: 600;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: #919893;
  padding: 0 14px;
  margin-bottom: 10px;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #65716b;
  padding: 11px 13px;
  border-radius: 6px;
  margin-bottom: 3px;
  white-space: nowrap;
}
nav a i {
  font-size: 16px;
  width: 18px;
}
nav a.active {
  background: #eaf2ec;
  color: #215b43;
  font-weight: 600;
}
nav a:hover {
  background: #f1f5f1;
}
.tiny-tag {
  font-size: 7px;
  background: #eff0d8;
  color: #7a7e3a;
  padding: 3px 5px;
  border-radius: 3px;
  margin-left: auto;
}
.sidebar-bottom {
  padding: 28px 12px 0;
  margin-top: auto;
  font-size: 11px;
  color: #577062;
}
.sidebar-bottom small {
  display: block;
  margin: 5px 0 0 13px;
  font-size: 10px;
  color: #929994;
}
.local-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #6a9e78;
  border-radius: 50%;
  margin-right: 6px;
}
.main-shell {
  margin-left: 250px;
}
.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 0 37px;
  background: #fff;
}
.breadcrumbs {
  font-size: 11px;
  color: #88918c;
}
.breadcrumbs span {
  margin: 0 12px;
  color: #c3c9c4;
}
.breadcrumbs strong {
  font-weight: 500;
  color: #44594d;
}
.topbar-right {
  display: flex;
  gap: 12px;
  align-items: center;
}
.demo-label {
  font-size: 8px;
  letter-spacing: 1px;
  color: #868b78;
  background: #f1f2e8;
  padding: 5px 8px;
  border-radius: 4px;
}
.top-divider {
  height: 24px;
  width: 1px;
  background: var(--border);
  margin: 0 8px;
}
.avatar {
  width: 32px;
  height: 32px;
  background: #e5ebe0;
  color: #4f6855;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
}
.user-name {
  font-size: 11px;
  font-weight: 600;
}
main {
  padding: 35px 37px 40px;
  max-width: 1800px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  color: #78896e;
  letter-spacing: 1.8px;
  font-size: 9px;
  font-weight: 600;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.btn {
  font-size: 11px;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: 500;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover,
.btn-primary:disabled {
  background: #27735a;
  border-color: #27735a;
}
.btn-outline-secondary {
  border-color: #dce2db;
  color: #526156;
  background: #fff;
}
.btn-white {
  background: #fff;
  color: #234e3b;
}
.overview-tabs {
  display: flex;
  gap: 29px;
  align-items: center;
  border-bottom: 1px solid #dde3db;
  margin-bottom: 25px;
  font-size: 11px;
  color: #7d8880;
}
.overview-tabs > a,
.overview-tabs > span {
  padding: 0 0 15px;
  color: inherit;
}
.overview-tabs .selected {
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.overview-tabs .period {
  font-size: 10px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: 0 2px 2px #142c1c02;
  overflow: hidden;
  background: #fff;
}
.metric {
  padding: 21px 22px;
}
.metric > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #6a786e;
}
.metric > div i {
  font-size: 15px;
  border-radius: 6px;
  background: #f5f5ef;
  padding: 7px;
}
.metric strong {
  font-size: 34px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -1px;
}
.metric small {
  font-size: 9px;
  color: #8b938d;
  display: flex;
  align-items: center;
  gap: 6px;
}
.indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.orange {
  color: #b58c55;
}
.purple {
  color: #8981a5;
}
.green {
  color: #4e9775;
}
.blue {
  color: #5d90ad;
}
.section-heading {
  padding: 22px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.section-heading p {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 0;
}
.section-heading a {
  font-size: 10px;
  white-space: nowrap;
}
.section-heading a i {
  margin-left: 8px;
}
.landscape {
  display: flex;
  gap: 40px;
  padding: 0 28px 20px;
  align-items: center;
  min-height: 235px;
}
.heatmap-area {
  position: relative;
  flex: 1;
  padding-left: 28px;
  max-width: 385px;
}
.axis-label {
  position: absolute;
  left: -16px;
  top: 90px;
  transform: rotate(-90deg);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #91988f;
}
.heatmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
.heat-cell {
  height: 30px;
  border-radius: 3px;
  display: grid;
  place-items: center;
}
.heat-cell.level-1 {
  background: #d5e6dc;
}
.heat-cell.level-2 {
  background: #e7e9c8;
}
.heat-cell.level-3 {
  background: #f2dfb8;
}
.heat-cell.level-4 {
  background: #edb5a7;
}
.heat-cell span {
  font-size: 9px;
  color: #435148;
  background: #ffffffca;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.heat-cell:hover {
  outline: 2px solid #586d50;
}
.impact-label {
  font-size: 8px;
  color: #91988f;
  letter-spacing: 1.5px;
  text-align: center;
  padding-top: 13px;
}
.impact-label i {
  margin-left: 10px;
}
.risk-summary {
  width: 150px;
}
.risk-total {
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.risk-total strong {
  font-size: 28px;
  font-weight: 500;
}
.risk-total span {
  font-size: 10px;
  color: #8c948b;
  max-width: 50px;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #748273;
  margin-bottom: 10px;
}
.legend-row > span {
  height: 6px;
  width: 6px;
  border-radius: 50%;
}
.legend-row b {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: #334b39;
}
.risk-summary > small {
  font-size: 8px;
  color: #9c9f96;
}
.insight-card {
  border-radius: 9px;
  padding: 28px;
  background: #183f31;
  color: #fff;
  height: 100%;
  position: relative;
  overflow: hidden;
  min-height: 315px;
}
.insight-card:after {
  content: '';
  position: absolute;
  right: -52px;
  top: -60px;
  width: 190px;
  height: 190px;
  border: 1px solid #72907633;
  border-radius: 50%;
  box-shadow:
    0 0 0 20px #72907610,
    0 0 0 45px #7290760a;
  pointer-events: none;
}
.insight-label {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #b0c8ac;
  display: flex;
  gap: 9px;
  align-items: center;
}
.insight-label i {
  font-size: 15px;
}
.insight-card h2 {
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 19px 0 13px;
}
.insight-card p {
  color: #b7c9bb;
  font-size: 11px;
  max-width: 270px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.insight-card .btn {
  font-size: 10px;
}
.insight-foot {
  font-size: 8px;
  color: #9cb49d;
  margin-top: 24px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.count {
  font-size: 9px;
  background: #f3eee5;
  color: #ab8b62;
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: 6px;
}
.table {
  font-size: 11px;
  --bs-table-bg: transparent;
  --bs-table-border-color: #eef0ed;
  vertical-align: middle;
}
.table th {
  font-size: 8px;
  font-weight: 500;
  color: #8a938a;
  letter-spacing: 0.8px;
  background: #fafbf8;
  padding: 12px 20px;
  white-space: nowrap;
}
.table td {
  padding: 16px 20px;
  color: #66746a;
}
.table td small {
  font-size: 9px;
  color: #9ba297;
  margin-top: 5px;
}
.record-title {
  color: #3d5544;
  font-weight: 500;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font-size: 11px;
}
.record-title:hover {
  color: #159568;
}
.mini-avatar {
  display: inline-grid;
  place-items: center;
  margin-right: 7px;
  height: 24px;
  width: 24px;
  background: #eef0e5;
  border-radius: 50%;
  font-size: 8px;
  color: #7c886d;
}
.status {
  display: inline-block;
  font-size: 9px;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.status-open {
  background: #f6eee2;
  color: #a18854;
}
.status-in-progress {
  background: #eaf0f8;
  color: #6483a4;
}
.status-in-review {
  background: #f0eafa;
  color: #8a6ca2;
}
.status-completed {
  background: #e9f2e9;
  color: #628869;
}
.activity-card {
  height: 100%;
}
.activity-item {
  display: flex;
  gap: 13px;
  margin: 0 24px;
  padding: 0 0 20px;
  position: relative;
}
.activity-item p {
  font-size: 10px;
  margin: 0 0 6px;
  line-height: 1.5;
}
.activity-item small {
  font-size: 8px;
  color: #a1a79d;
}
.activity-dot {
  flex-shrink: 0;
  height: 7px;
  width: 7px;
  border: 2px solid #a9bca0;
  border-radius: 50%;
  margin-top: 4px;
}
.activity-link {
  font-size: 10px;
  margin: 0 24px 20px;
  display: block;
}
.activity-link i {
  float: right;
}
.page-footer {
  display: flex;
  gap: 16px;
  margin: 0 37px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 9px;
  color: #9ba397;
}
.page-footer > span {
  font-size: 8px;
}
.compact-metric {
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  color: #84917f;
  font-size: 11px;
}
.compact-metric strong {
  color: #34533c;
  font-weight: 500;
  font-size: 25px;
}
.record-toolbar {
  padding: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-box {
  position: relative;
  min-width: 240px;
}
.search-box i {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #94a18e;
  font-size: 12px;
}
.search-box input {
  padding-left: 35px;
}
.form-control,
.form-select {
  font-size: 12px;
  padding: 10px 12px;
  border-color: #e1e6dd;
  color: #53684f;
  border-radius: 5px;
}
.form-control:focus,
.form-select:focus {
  border-color: #8bac88;
  box-shadow: 0 0 0 3px #3f7a4320;
}
.record-toolbar > .form-select {
  width: 150px;
}
.priority {
  font-size: 10px;
  white-space: nowrap;
}
.priority i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 6px;
}
.priority-high {
  color: #bb7864;
}
.priority-medium {
  color: #b59b5f;
}
.priority-low {
  color: #739376;
}
.score {
  background: #f1f3eb;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
}
.table-bottom {
  padding: 15px 20px;
  display: flex;
  gap: 5px;
  font-size: 10px;
  color: #9aa393;
  border-top: 1px solid var(--border);
}
.empty-state {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
.modal-content {
  border: 0;
  border-radius: 10px;
}
.modal-header,
.modal-footer {
  padding: 20px 25px;
  border-color: var(--border);
}
.modal-body {
  padding: 25px;
}
.form-label {
  font-size: 11px;
  color: #64765b;
}
.progress {
  height: 6px;
  background: #eaf0e4;
  min-width: 100px;
}
.progress-bar {
  background: #759866;
}
.report-activity {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 23px;
  border-top: 1px solid var(--border);
  font-size: 11px;
}
.report-activity i {
  color: #90a580;
}
.report-activity small {
  margin-left: auto;
  color: #9da594;
  font-size: 10px;
}
.assistant-symbol {
  width: 48px;
  height: 48px;
  background: #e8f0df;
  color: #61824d;
  font-size: 25px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.ai-output-card {
  min-height: 570px;
}
.ai-output {
  padding: 25px;
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 13px;
  color: #617058;
}
.ai-empty {
  text-align: center;
  padding: 100px 20px;
  white-space: normal;
  color: #9aa78d;
}
.ai-empty i {
  font-size: 40px;
  color: #9eae8e;
}
.ai-empty h3 {
  font-family: Georgia, serif;
  font-size: 25px;
  color: #637a52;
  margin: 25px 0 15px;
}
.ai-empty p {
  font-size: 12px;
}
.data-step {
  display: inline-grid;
  place-items: center;
  background: #eaf0e5;
  color: #628151;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin-right: 9px;
  font-size: 11px;
}
.query-editor {
  font-family: Consolas, monospace;
  font-size: 12px;
  background: #fafcf8;
  min-height: 140px;
}
.data-results {
  max-height: 480px;
  overflow: auto;
}
.data-results th {
  position: sticky;
  top: 0;
}
.data-results td {
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-notice {
  font-size: 11px;
  color: #87957b;
}
.upload-zone {
  border: 1px dashed #c7d5bb;
  padding: 25px;
  border-radius: 8px;
  background: #f9fbf6;
}
.result-stats {
  display: flex;
  gap: 25px;
  padding: 16px 20px;
  background: #f8faf4;
  color: #70815f;
  font-size: 11px;
}
.data-error {
  color: #b05b50;
  font-size: 12px;
}
.file-text {
  max-height: 450px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.7;
}
.badge-soft {
  background: #ecf1e5;
  color: #7c8f67;
  font-size: 9px;
  padding: 5px 8px;
  border-radius: 4px;
}
code {
  color: #66824e;
  font-size: 12px;
  word-break: break-all;
}
@media (min-width: 1600px) {
  main {
    padding: 42px 50px;
  }
  .topbar {
    padding: 0 50px;
  }
  .metric {
    padding: 25px;
  }
  .heat-cell {
    height: 38px;
  }
  .landscape {
    min-height: 260px;
  }
  .insight-card {
    min-height: 350px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 225px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-shell {
    margin-left: 225px;
  }
  main {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  h1 {
    font-size: 26px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .landscape {
    justify-content: space-around;
  }
  .heatmap-area {
    width: 60%;
  }
}
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.show {
    transform: translateX(0);
    box-shadow: 20px 0 40px #0002;
  }
  .main-shell {
    margin-left: 0;
  }
  .topbar {
    height: 68px;
  }
  .breadcrumbs {
    margin-right: auto;
    margin-left: 15px;
  }
  .user-name {
    display: none;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .insight-card {
    min-height: 290px;
  }
  .overview-tabs {
    gap: 20px;
  }
  .overview-tabs .period {
    display: none;
  }
}
@media (max-width: 575px) {
  main {
    padding: 25px 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .demo-label,
  .top-divider {
    display: none;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .overview-tabs {
    font-size: 10px;
    gap: 18px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 28px;
  }
  .metric small {
    font-size: 8px;
  }
  .landscape {
    gap: 20px;
    padding: 0 16px 20px;
  }
  .risk-summary {
    width: 110px;
  }
  .heatmap-area {
    padding-left: 20px;
  }
  .heat-cell {
    height: 28px;
  }
  .record-toolbar {
    flex-wrap: wrap;
  }
  .search-box {
    width: 100%;
    min-width: 0;
  }
  .record-toolbar > .form-select {
    width: 50%;
  }
  .page-footer {
    margin: 0 16px;
  }
  .page-footer > span:first-child {
    display: none;
  }
  .section-heading {
    padding: 20px 16px;
  }
  .report-activity {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .report-activity small {
    margin-left: 30px;
  }
  .result-stats {
    gap: 10px;
    flex-wrap: wrap;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-footer,
  .btn {
    display: none !important;
  }
  .main-shell {
    margin: 0;
  }
  main {
    padding: 0;
  }
  .card {
    break-inside: avoid;
  }
  body {
    background: white;
  }
  .table {
    font-size: 9px;
  }
}
