:root {
  color-scheme: light;
  --ink: #172c32;
  --muted: #7a8a8c;
  --line: #e7edeb;
  --paper: #ffffff;
  --canvas: #f5f8f6;
  --teal: #158276;
  --teal-dark: #116d65;
  --teal-soft: #e8f5f2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 100vh; padding: 27px 17px 19px; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 10px; color: #223a3e; font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 9px; font-size: 16px; font-weight: 800; letter-spacing: 0; }
.brand-light { color: #93a3a1; font-size: 9px; }
.nav-label, .eyebrow { color: #91a09e; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.nav-label { margin: 52px 10px 13px; }
.nav-list { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; height: 43px; padding: 0 11px; border-radius: 9px; color: #657674; font-size: 13px; font-weight: 600; }
.nav-item.active { color: var(--teal-dark); background: #eaf5f2; }
.nav-icon { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #dce7e3; border-radius: 6px; font-size: 10px; font-weight: 700; }
.nav-item.active .nav-icon { border-color: #cae6df; background: #f9fdfb; }
.sidebar-bottom { margin-top: auto; padding: 14px 10px 2px; border-top: 1px solid var(--line); color: #7c8e8a; font-size: 11px; }
.status-dot, .pill i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #42a98d; }
.main-panel { min-width: 0; }
.topbar { height: 68px; display: flex; justify-content: space-between; align-items: center; padding: 0 45px; background: rgba(255,255,255,.76); border-bottom: 1px solid var(--line); }
.breadcrumb { color: #82918e; font-size: 12px; }.breadcrumb span { padding: 0 9px; color: #c0cbc7; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #deeee9; color: #287c6e; font-size: 12px; font-weight: 700; }
.content { width: min(1050px, 100%); margin: 0 auto; padding: 47px 45px 34px; }
.heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 9px 0 25px; }
h1, h2 { margin: 0; font-family: inherit; letter-spacing: -.045em; }
h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; font-weight: 700; }
h2 { margin-top: 6px; font-size: 18px; font-weight: 700; }
.subtitle { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.pill { white-space: nowrap; padding: 8px 11px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.pill.neutral { color: #748783; background: #edf2ef; }.pill.neutral i { background: #9aa9a4; }
.notice { display: flex; gap: 13px; padding: 16px 18px; border: 1px solid #d9ebe5; border-radius: 10px; background: #eff8f4; }
.notice-icon { flex: 0 0 21px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #287c6e; background: #d8eee7; font-size: 12px; font-weight: 700; }
.notice strong { color: #28665d; font-size: 12px; }.notice p { margin: 4px 0 0; color: #64827c; font-size: 11px; line-height: 1.6; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 20px 0; }
.stat-card, .panel { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.stat-card { min-height: 119px; padding: 16px 17px; }.stat-label { color: #91a09e; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.stat-value { margin-top: 12px; color: #294044; font-size: 27px; font-weight: 700; letter-spacing: -.04em; }.stat-value-small { font-size: 21px; }
.stat-foot { margin-top: 4px; color: #8b9996; font-size: 10px; }
.preview-panel { margin-top: 20px; padding: 22px 23px 9px; }.panel-heading { display: flex; justify-content: space-between; align-items: center; }
.small-count { padding: 5px 9px; border-radius: 5px; background: #f0f5f3; color: #748580; font-size: 10px; font-weight: 700; }
.preview-list { margin-top: 17px; }.preview-row { display: flex; align-items: center; gap: 13px; min-height: 69px; border-top: 1px solid #edf1ef; }
.row-icon { width: 30px; height: 30px; display: grid; flex: 0 0 30px; place-items: center; border-radius: 8px; font-size: 9px; font-weight: 700; }.row-icon.teal { color: #278478; background: #e6f4f0; }.row-icon.violet { color: #8172ae; background: #f0edf8; }.row-icon.amber { color: #a78344; background: #f8f1e4; }
.preview-row strong { color: #344b4c; font-size: 11px; }.preview-row p { margin: 4px 0 0; color: #84928f; font-size: 10px; }.row-arrow { margin-left: auto; color: #a5b4b0; font-size: 14px; }
.page-footer { margin-top: 25px; color: #9aa7a4; font-size: 10px; }.page-footer span { padding: 0 4px; }
.filter-panel, .results-panel, .detail-panel { margin-top: 16px; padding: 18px; }
.filter-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.filter-form label { display: grid; gap: 6px; min-width: 145px; color: #71817e; font-size: 11px; font-weight: 650; }
.filter-form input, .filter-form select { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid #dce6e2; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
.button-link { display: inline-flex; justify-content: center; align-items: center; min-height: 35px; padding: 7px 12px; border: 0; border-radius: 7px; background: var(--teal); color: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.table-scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; } th { padding: 10px; color: #84928f; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; } td { padding: 12px 10px; border-top: 1px solid #edf1ef; color: #536663; vertical-align: top; } td a { color: var(--teal-dark); font-weight: 650; } .status { display: inline-block; padding: 5px 8px; border-radius: 14px; background: #edf5f2; color: #38786e; font-size: 10px; white-space: nowrap; }
.muted { color: #9aa7a4; }.empty-state { padding: 26px 10px; color: #84928f; text-align: center; font-size: 12px; }.pagination { display: flex; justify-content: center; align-items: center; gap: 15px; padding-top: 17px; color: #71817e; font-size: 11px; }.page-disabled { color: #b7c1be; }
.detail-heading { margin: 8px 0 20px; }.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; }.detail-field { min-width: 0; padding: 12px 0; border-top: 1px solid #edf1ef; }.detail-field dt { color: #899793; font-size: 10px; }.detail-field dd { margin: 5px 0 0; color: #344b4c; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }

@media (max-width: 850px) {
  .app-shell { grid-template-columns: 204px minmax(0, 1fr); }.topbar { padding: 0 28px; }.content { padding: 37px 28px 30px; }.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .app-shell { display: block; }.sidebar { min-height: auto; padding: 13px 14px 11px; border-right: 0; border-bottom: 1px solid var(--line); }.brand { padding: 0 3px; }.nav-label, .sidebar-bottom { display: none; }.nav-list { display: flex; gap: 4px; margin-top: 13px; }.nav-item { height: 36px; padding: 0 9px; gap: 7px; font-size: 11px; }.nav-icon { display: none; }.topbar { height: 49px; padding: 0 18px; }.content { padding: 30px 18px 24px; }.heading-row { align-items: flex-start; flex-direction: column; }.pill { align-self: flex-start; }.stats-grid { gap: 9px; }.stat-card { min-height: 105px; padding: 13px; }.stat-foot { line-height: 1.4; }.preview-panel { padding: 19px 15px 7px; }.preview-row { gap: 10px; }.preview-row p { line-height: 1.4; }
  .filter-panel, .results-panel, .detail-panel { padding: 13px; }.filter-form { align-items: stretch; flex-direction: column; }.filter-form label { min-width: 0; }.detail-grid { grid-template-columns: minmax(0, 1fr); }
}
