* {
  box-sizing:border-box;
}
:root {
  color-scheme:light;
  --bg:#f4f6f3;
  --surface:#fff;
  --ink:#202923;
  --muted:#607067;
  --line:#dce4dd;
  --soft:#eef3ed;
  --green:#23583f;
  --pale:#e4efdf;
  --shadow:0 2px 6px #16362406;
  font-family:Inter,"Helvetica Neue",Arial,sans-serif;
}
:root[data-theme=dark] {
  color-scheme:dark;
  --bg:#151c19;
  --surface:#202a24;
  --ink:#eff5ee;
  --muted:#a8b6ac;
  --line:#36443b;
  --soft:#2a352e;
  --green:#a7d693;
  --pale:#304435;
  --shadow:none;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-size:14px;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea {
  font:inherit;
}
button,a {
  touch-action:manipulation;
}
button {
  cursor:pointer;
}
a {
  color:inherit;
  text-decoration:none;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid #68a981;
  outline-offset:2px;
}
button:disabled {
  opacity:.5;
  cursor:not-allowed;
}
button {
  color:inherit;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-size:clamp(30px,3.3vw,45px);
  line-height:1.06;
  letter-spacing:-.05em;
}
h2 {
  font-size:20px;
  line-height:1.25;
  letter-spacing:-.035em;
}
h3 {
  font-size:15px;
}
small {
  font-size:12px;
  color:var(--muted);
}
svg {
  flex-shrink:0;
}
.app {
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  min-height:100vh;
}
.sidebar {
  position:sticky;
  top:0;
  height:100dvh;
  display:flex;
  flex-direction:column;
  background:#152d25;
  color:#e1ece4;
  padding:23px 12px 14px;
  z-index:4;
}
.brand,.profile,.nav-item,.nav-group,.topbar,.crumb,.top-tools,.global-search,.btn,.actions,.section-title,.card-heading,.kpi-top,.quick-row,.badge,.dialog-head,.dialog-foot,.event,.result,footer,.page-head {
  display:flex;
  align-items:center;
}
.brand {
  gap:11px;
  padding:0 12px 22px;
  border-bottom:1px solid #ffffff19;
}
.brand strong {
  font-size:23px;
  letter-spacing:.06em;
  line-height:1;
}
.brand small,.profile small {
  display:block;
  color:#afc2b6;
}
.brand small {
  font-size:11px;
  letter-spacing:.045em;
  margin-top:2px;
}
.sidebar nav {
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#456151 transparent;
  flex:1;
  padding-bottom:16px;
}
.sidebar section {
  margin-top:15px;
}
.nav-group {
  justify-content:space-between;
  width:100%;
  background:transparent;
  color:#a3b9ab;
  padding:4px 11px 7px;
  border:none;
  text-transform:uppercase;
  font-size:10px;
  font-weight:700;
  letter-spacing:.105em;
}
.nav-item {
  padding:8px 10px;
  gap:11px;
  margin:1px 0;
  font-size:12.5px;
  border-radius:6px;
  color:#d1dfd5;
}
.nav-item:hover {
  background:#213d31;
}
.nav-item.selected {
  background:#315340;
  color:#ddf4c6;
  box-shadow:inset 3px 0 #acd985;
}
.profile {
  border-top:1px solid #ffffff19;
  padding:16px 7px 0;
  gap:10px;
  font-size:12px;
}
.profile b {
  background:#335342;
  color:#d9eccd;
  border:1px solid #53705a;
  border-radius:9px;
  padding:7px;
}
.profile strong {
  font-size:13px;
}
.profile small {
  font-size:11px;
}
main {
  min-width:0;
}
.topbar {
  min-height:66px;
  gap:12px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  padding:0 clamp(16px,3vw,52px);
}
.crumb {
  gap:9px;
  font-size:12px;
  color:var(--muted);
}
.crumb b {
  font-weight:600;
  color:var(--ink);
}
.top-tools {
  gap:9px;
  margin-left:auto;
}
.iconbtn,.lang,.global-search {
  color:var(--muted);
  background:transparent;
  border:none;
  border-radius:7px;
}
.iconbtn,.lang {
  display:inline-grid;
  place-items:center;
  width:34px;
  height:34px;
}
.lang {
  font-weight:700;
  font-size:12px;
  border:1px solid var(--line);
}
.global-search {
  gap:8px;
  padding:7px 9px;
  border:1px solid var(--line);
  font-size:12px;
  background:var(--bg);
}
kbd {
  font:10px ui-monospace,monospace;
  border:1px solid var(--line);
  border-radius:3px;
  padding:0 4px;
  margin-left:14px;
}
.iconbtn:hover,.lang:hover {
  background:var(--soft);
}
.page {
  margin:0 auto;
  max-width:1530px;
  padding:28px clamp(16px,3vw,52px) 16px;
}
.hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-radius:16px;
  background:radial-gradient(ellipse at 83% 65%,#356349 0,transparent 45%),linear-gradient(110deg,#183d2e,#214633 65%,#234b37);
  color:#f6fbf2;
  min-height:216px;
  display:flex;
  align-items:center;
  border:1px solid #274e38;
}
.hero-text {
  z-index:1;
  padding:30px 34px;
  max-width:68%;
}
.hero-label {
  display:flex;
  gap:8px;
  align-items:center;
  letter-spacing:.16em;
  font-size:10px;
  color:#d5e7cf;
  font-weight:700;
}
.dot {
  display:inline-block;
  border-radius:100%;
  width:7px;
  height:7px;
  background:#9bd479;
}
.hero h1 {
  margin:9px 0 7px;
  font-size:clamp(36px,3.9vw,58px);
  font-weight:620;
}
.hero p {
  color:#d1e0d3;
  font-size:14px;
}
.hero .actions {
  margin-top:21px;
}
.globe-art {
  position:absolute;
  right:-2%;
  top:-20%;
  width:40%;
  height:145%;
  pointer-events:none;
}
.actions {
  gap:9px;
  flex-wrap:wrap;
}
.btn {
  gap:7px;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:7px;
  font-weight:600;
  font-size:13px;
  padding:9px 13px;
  justify-content:center;
  line-height:1.35;
}
.btn:hover {
  filter:brightness(.96);
}
.btn.primary {
  background:#21553d;
  color:white;
  border-color:#21553d;
}
.btn.light {
  background:#e4f1d9;
  color:#163626;
  border-color:#e4f1d9;
}
.btn.glass {
  background:#ffffff0d;
  color:#f0f6eb;
  border-color:#ffffff44;
}
.btn.small {
  font-size:12px;
  padding:6px 10px;
}
.card {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.section-title,.card-heading,.page-head,.kpi-top {
  justify-content:space-between;
  gap:12px;
}
.section-title {
  margin:24px 0 13px;
}
.section-title h2 {
  font-size:19px;
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.kpi {
  padding:17px 18px;
  transition:border-color .15s;
}
.kpi:hover {
  border-color:#8eb498;
}
.kpi-top {
  color:var(--muted);
}
.tile-icon {
  display:inline-grid;
  place-items:center;
  width:33px;
  height:33px;
  background:var(--pale);
  color:var(--green);
  border-radius:8px;
}
.kpi-value {
  display:block;
  font-size:33px;
  letter-spacing:-.055em;
  line-height:1.12;
  margin:12px 0 5px;
}
.kpi h3 {
  font-size:13px;
}
.kpi small {
  font-size:11px;
}
.dashboard-grid,.search-layout {
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:16px;
  margin-top:19px;
}
.card-heading {
  padding:20px 20px 10px;
}
.card-heading h2,.padded>h2 {
  font-size:17px;
}
.badge {
  display:inline-flex;
  width:max-content;
  white-space:nowrap;
  padding:3px 8px;
  gap:4px;
  border-radius:5px;
  background:var(--soft);
  color:var(--muted);
  font-size:11px;
  font-weight:630;
}
.badge.green {
  color:var(--green);
  background:var(--pale);
}
.plot {
  margin:12px 20px 18px;
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:10px;
  background:repeating-linear-gradient(to top,transparent 0 24px,var(--line) 24px 25px);
  background-clip:content-box;
  padding-bottom:18px;
  height:126px;
}
.day {
  display:flex;
  flex-direction:column;
  align-items:center;
  position:relative;
}
.day>b {
  font-size:10px;
  color:var(--muted);
  font-weight:500;
}
.day>div {
  height:100%;
  width:min(28px,85%);
  display:flex;
  align-items:flex-end;
}
.day i {
  display:block;
  width:100%;
  background:#70a579;
  min-height:2px;
  border-radius:3px 3px 0 0;
}
.day small {
  position:absolute;
  bottom:-19px;
  font-size:10px;
}
.quick {
  padding-bottom:7px;
}
.quick-row {
  background:transparent;
  border:0;
  border-top:1px solid var(--line);
  width:calc(100% - 40px);
  margin:0 20px;
  gap:11px;
  text-align:left;
  padding:9px 0;
}
.quick-row:first-of-type {
  border:0;
}
.quick-row strong,.quick-row small,.event small {
  display:block;
}
.quick-row strong {
  font-size:13px;
}
.quick-row small {
  font-size:11px;
}
.quick-row>svg {
  margin-left:auto;
  color:var(--muted);
}
.quick-row:hover,.textlink:hover,.record-link:hover {
  color:var(--green);
  text-decoration:underline;
}
.textlink,.record-link {
  font:inherit;
  color:var(--green);
  font-weight:600;
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
  text-align:left;
}
.textlink {
  font-size:12px;
}
.empty {
  text-align:center;
  padding:24px 16px;
  color:var(--muted);
}
.empty .tile-icon {
  margin-bottom:8px;
}
.empty h3 {
  color:var(--ink);
}
.empty p {
  font-size:13px;
  margin-top:4px;
}
footer {
  gap:14px;
  justify-content:space-between;
  color:var(--muted);
  font-size:11px;
  margin:10px auto;
  max-width:1530px;
  padding:12px clamp(16px,3vw,52px);
}
footer .dot {
  background:#63956b;
  margin-right:5px;
}
.page-head {
  margin:12px 0 24px;
  align-items:flex-end;
}
.page-head h1 {
  font-size:clamp(28px,3vw,40px);
}
.page-head p,.padded p,.dialog-body>p {
  margin-top:8px;
  color:var(--muted);
}
.padded {
  padding:21px;
}
.filters {
  display:flex;
  flex-wrap:wrap;
  align-items:end;
  gap:12px;
  padding:16px;
}
.filters>label {
  flex:1;
  min-width:100px;
}
.filters>label:first-child {
  flex:1.5;
  min-width:142px;
}
label {
  font-size:12px;
  font-weight:600;
  display:block;
}
input:not([type=checkbox]),select,textarea {
  display:block;
  margin-top:4px;
  width:100%;
  min-width:0;
  color:var(--ink);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:6px;
  padding:9px 10px;
}
textarea {
  resize:vertical;
}
.table-wrap {
  overflow:auto;
}
table {
  width:100%;
  border-collapse:collapse;
  white-space:nowrap;
  text-align:left;
  font-size:13px;
}
td,th {
  padding:12px 16px;
  border-bottom:1px solid var(--line);
}
tr:last-child td {
  border-bottom:none;
}
th {
  background:var(--soft);
  color:var(--muted);
  font-weight:600;
  font-size:12px;
}
.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;
  margin:14px 0;
}
.wide {
  grid-column:1/-1;
}
fieldset {
  border:0;
  margin:16px 0;
  padding:0;
}
legend {
  font-size:12px;
  font-weight:600;
  margin-bottom:6px;
}
.chip {
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:5px 8px;
  border:1px solid var(--line);
  border-radius:6px;
  margin:0 5px 5px 0;
}
.chip input {
  accent-color:#34784c;
}
.result,.event {
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  overflow-wrap:anywhere;
}
.result strong {
  flex:1;
  font-size:13px;
}
.search-layout {
  align-items:start;
}
.result+.btn {
  margin-top:16px;
}
.event time {
  margin-left:auto;
  font-size:12px;
  color:var(--muted);
}
.locked {
  max-width:650px;
  margin:10vh auto;
  padding:24px;
}
.locked p {
  margin-top:16px;
}
dialog {
  padding:0;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  color:var(--ink);
  max-height:84dvh;
  width:min(640px,94vw);
  box-shadow:0 20px 80px #07150f44;
}
dialog::backdrop {
  background:#10291ecc;
  opacity:.65;
}
.dialog-head,.dialog-foot {
  background:var(--surface);
  position:sticky;
  z-index:1;
  gap:10px;
}
.dialog-head {
  top:0;
  padding:14px 20px;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}
.dialog-head h2 {
  font-size:20px;
  overflow-wrap:anywhere;
}
.dialog-body {
  padding:4px 20px 16px;
}
.dialog-body>input {
  margin:12px 0;
}
.dialog-foot {
  bottom:0;
  justify-content:flex-end;
  padding:12px 0 2px;
}
.filebox {
  display:grid;
  gap:6px;
  text-align:center;
  justify-items:center;
  padding:20px;
  border:1px dashed var(--muted);
  border-radius:9px;
  margin:15px 0;
}
.dialog-body>.btn {
  margin-top:12px;
}
.search-match {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  text-align:left;
  border:none;
  border-bottom:1px solid var(--line);
  width:100%;
  padding:10px 3px;
  background:transparent;
}
.search-match:hover {
  background:var(--soft);
}
#form-error {
  color:#b9493a;
}
#notice {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  background:#183c2b;
  color:white;
  border-radius:8px;
  padding:12px 18px;
  box-shadow:0 4px 15px #0002;
  z-index:15;
  max-width:90vw;
}
.compact {
  grid-template-columns:65px minmax(0,1fr);
}
.compact .sidebar {
  padding-inline:7px;
}
.compact .brand,.compact .profile,.compact .nav-item,.compact .nav-group {
  justify-content:center;
}
.compact .brand {
  padding:0 0 22px;
}
.compact .brand>div,.compact .profile>div,.compact .nav-item span,.compact .nav-group span {
  display:none;
}
@media(max-width:1100px) {
  .app:not(.compact) {
    grid-template-columns:204px minmax(0,1fr);
  }
  .kpi {
    padding:14px;
  }
  .metrics {
    gap:10px;
  }
  .hero-text {
    padding:24px;
  }
  .crumb {
    display:none;
  }
}
@media(max-width:900px) {
  .app,.app:not(.compact) {
    display:block;
  }
  .sidebar {
    display:none;
  }
  .menu-open .sidebar {
    display:flex;
    position:fixed;
    left:0;
    top:60px;
    height:calc(100dvh - 60px);
    width:246px;
    box-shadow:12px 0 30px #0003;
  }
  .menu-open.compact .brand>div,.menu-open.compact .profile>div,.menu-open.compact .nav-item span,.menu-open.compact .nav-group span {
    display:block;
  }
  .topbar {
    height:60px;
    min-height:60px;
    position:sticky;
    top:0;
    z-index:5;
  }
  .crumb {
    display:flex;
  }
}
@media(max-width:660px) {
  .page {
    padding-top:14px;
  }
  .metrics {
    grid-template-columns:1fr 1fr;
  }
  .dashboard-grid,.search-layout {
    grid-template-columns:1fr;
  }
  .hero-text {
    max-width:100%;
    padding:22px 18px;
  }
  .hero p {
    max-width:82%;
  }
  .globe-art {
    right:-18%;
    top:-13%;
    width:66%;
    opacity:.32;
  }
  .hero .actions {
    gap:6px;
  }
  .hero .btn {
    font-size:11px;
    padding:9px;
  }
  .topbar {
    gap:4px;
  }
  .top-tools {
    gap:2px;
  }
  .global-search {
    border:none;
    background:none;
  }
  .global-search span,kbd,.crumb b,.crumb svg {
    display:none;
  }
  .page-head {
    align-items:start;
    flex-direction:column;
  }
  .form-grid {
    grid-template-columns:1fr;
  }
  .section-title h2 {
    font-size:17px;
  }
  .nav-item {
    font-size:14px;
  }
  footer {
    flex-wrap:wrap;
  }
  .card-heading {
    padding:16px;
  }
  .kpi-value {
    font-size:29px;
  }
}
#revision-list details {
  background:var(--soft);
  padding:8px 12px;
  margin:6px 0;
  border-radius:6px;
}
#revision-list dt {
  font-weight:650;
}
#revision-list dd {
  margin:1px 0 7px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.intel-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:12px;margin:16px 0}.intel-stats>div{border-left:2px solid var(--line);padding-left:10px}.intel-stats b,.intel-stats small{display:block}.intel-stats b{font-size:21px}.source-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:450px;overflow:auto;background:var(--soft);padding:12px;border-radius:8px}.padded+.padded,.page>.search-layout+.card,.page>.card+.card,.page>form+.card{margin-top:16px}.card .form-grid fieldset{min-width:0}.card dl{overflow-wrap:anywhere}.card .table-wrap{margin-block:10px}.padded .btn.small{display:inline-flex;margin:3px}
