:root {
  color-scheme: light;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #182a23;
  background: #f5f7f4;
  font-synthesis: none;
  --ink: #182a23;
  --subtle: #52645a;
  --line: #e1e9e2;
  --white: #fff;
  --green: #17664b;
  --side: #132821;
  --shadow: 0 2px 4px #14272108, 0 8px 24px #14272104;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #409c78; outline-offset: 3px; }
h1, h2, p { margin: 0; }
.boot { padding: 2rem; color: var(--subtle); }
.workspace { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 28px 16px 18px; background: var(--side); color: #edf7f1; }
.brand, .login-brand { display: flex; gap: 12px; align-items: center; }
.brand { padding: 0 8px 33px; border-bottom: 1px solid #ffffff1e; }
.brand-mark { display: inline-flex; flex: 0 0 41px; width: 41px; height: 41px; justify-content: center; align-items: center; gap: 3px; background: #a7e5b6; border-radius: 12px; }
.brand-mark i { width: 4px; height: 10px; background: #18382b; border-radius: 4px; }
.brand-mark i:nth-child(2) { height: 19px; }
.brand-mark i:nth-child(3) { height: 14px; }
.brand strong, .login-brand strong { display: block; font-size: 1.25rem; letter-spacing: .035em; line-height: 1.15; }
.brand small, .login-brand small { display: block; margin-top: 3px; color: #b4c9bd; font-size: .8125rem; }
.sidebar-middle { flex: 1; min-height: 0; overflow: auto; }
.side-label { padding: 26px 11px 9px; font-size: .75rem; font-weight: 700; color: #a8c0b3; text-transform: uppercase; letter-spacing: .09em; }
.side-label.env-label { padding-top: 32px; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 9px; color: #cfddd5; font-size: .9375rem; font-weight: 600; }
.sidebar nav a:hover, .sidebar nav a[aria-current='page'] { background: #244237; color: #e4f9ea; }
.sidebar nav a[aria-current='page'] .nav-icon { color: #a7e5b6; }
.nav-icon { flex: 0 0 17px; width: 17px; height: 17px; color: #c3dbce; position: relative; }
.nav-grid { border: 1.5px solid currentColor; border-radius: 3px; background: linear-gradient(90deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%), linear-gradient(transparent 46%, currentColor 46%, currentColor 54%, transparent 54%); }
.nav-list { border: 1.5px solid currentColor; border-radius: 3px; }
.nav-list::after { position: absolute; content: ''; top: 4px; left: 3px; width: 8px; height: 1px; background: currentColor; box-shadow: 0 3px currentColor, 0 6px currentColor; }
.side-env { display: flex; gap: 10px; align-items: baseline; padding: 8px 11px; font-size: .875rem; color: #e4eee7; }
.environment-dot, .pill i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.side-env .environment-dot { color: #99d5a9; }
.side-env.inactive, .side-env.inactive .environment-dot { color: #aabcb1; }
.side-env small { display: block; margin-top: 3px; font-size: .75rem; color: #aabcb1; }
.account { display: flex; align-items: center; gap: 9px; border-top: 1px solid #ffffff1e; padding: 17px 2px 0; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #345345; color: #eaf8ec; font-weight: 700; font-size: .8125rem; }
.account div { min-width: 0; flex: 1; }
.account strong, .account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account strong { font-size: .875rem; }
.account small { margin-top: 2px; font-size: .75rem; color: #b4c9bd; }
.side-button { color: #e3eee6; border: 1px solid #5b7468; background: transparent; border-radius: 8px; padding: 5px 8px; font-size: .8125rem; }
.side-button:hover { background: #345345; }
.main-shell { min-width: 0; }
.topbar { min-height: 67px; display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 12px clamp(20px, 3.4vw, 49px); background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: var(--subtle); font-size: .875rem; }
.breadcrumb strong { color: var(--ink); }
.breadcrumb span { color: #708277; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.content { max-width: 1490px; padding: 30px clamp(20px, 3.4vw, 49px) 48px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
h1 { letter-spacing: -.045em; font-size: clamp(1.85rem, 3vw, 2.5rem); line-height: 1.15; }
.page-heading p { margin-top: 7px; color: var(--subtle); line-height: 1.5; }
.pill { display: inline-flex; gap: 7px; align-items: center; justify-content: center; padding: 5px 10px; font-size: .8125rem; font-weight: 650; border-radius: 999px; width: max-content; line-height: 1.45; }
.pill.neutral { background: #edf2ee; color: #42564a; }
.pill.environment, .pill.ok { background: #e6f5e9; color: #1d6241; }
.pill.error { background: #fcebea; color: #972e2a; }
.pill.warning { background: #fff3dd; color: #805000; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9px; padding: 10px 13px; font-size: .9375rem; font-weight: 650; white-space: nowrap; border: 1px solid transparent; }
.primary { background: #17664b; color: #fff; }
.primary:hover { background: #11513a; }
.secondary { background: white; border-color: #dbe5dd; color: #274034; }
.secondary:hover { background: #edf4ee; border-color: #bbcfc0; }
.compact { font-size: .875rem; padding: 7px 10px; }
.refresh-icon { font-size: 1.05rem; line-height: 1; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.metric, .panel { background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); min-width: 0; }
.metric { display: flex; flex-direction: column; gap: 8px; padding: 15px 16px 14px; }
.metric > div { display: flex; align-items: center; gap: 8px; }
.metric-icon { display: grid; place-items: center; border-radius: 8px; width: 30px; height: 30px; background: #e9f4eb; color: #1c6347; font-size: 1.125rem; }
.metric h2 { font-size: .875rem; color: #42554a; font-weight: 650; }
.metric strong { display: block; font-size: 1.9rem; letter-spacing: -.045em; font-weight: 725; font-variant-numeric: tabular-nums; line-height: 1.15; }
.metric small { margin-top: auto; }
small, .panel-header p, .placeholder, .sample-origin { color: var(--subtle); }
.metric small { font-size: .8125rem; }
progress { width: 100%; height: 5px; appearance: none; border: 0; background: #eaf0eb; border-radius: 8px; overflow: hidden; }
progress::-webkit-progress-bar { background: #eaf0eb; }
progress::-webkit-progress-value { background: #4a9974; }
progress::-moz-progress-bar { background: #4a9974; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(245px, 1fr); gap: 16px; margin-bottom: 17px; }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 18px 13px; }
.panel-header h2, .drawer-head h2 { font-size: 1.125rem; letter-spacing: -.02em; }
.panel-header p { font-size: .875rem; margin-top: 4px; line-height: 1.4; }
.chart { height: 173px; margin: 0 15px 14px; position: relative; }
.chart canvas { width: 100%; height: 100%; display: block; }
.services { display: flex; flex-direction: column; }
.service-list { padding: 0 18px; flex: 1; }
.service-list .placeholder { margin-top: 12px; }
.service-line { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 10px; border-bottom: 1px solid #edf1ed; }
.service-line strong, .event-name strong { display: block; overflow-wrap: anywhere; }
.service-line small, .event-name small { display: block; margin-top: 4px; font-size: .8125rem; }
.sample-origin { padding: 12px 18px 16px; font-size: .8125rem; line-height: 1.45; }
.events-list { min-height: 78px; }
.events-list .placeholder { display: flex; align-items: center; min-height: 72px; margin: 0 18px 10px; padding: 15px; border-radius: 9px; background: #f5f8f5; line-height: 1.5; }
.event-row { display: grid; width: 100%; grid-template-columns: minmax(155px, 2.3fr) minmax(80px, .9fr) minmax(135px, 1.15fr) max-content; gap: 10px; align-items: center; border: 0; border-top: 1px solid #edf1ed; background: transparent; color: var(--ink); text-align: left; padding: 12px 18px; }
.event-row:last-child { border-radius: 0 0 15px 15px; }
.event-row:hover { background: #f4f8f4; }
.event-date, .event-total { color: var(--subtle); font-size: .8125rem; }
.event-total { font-variant-numeric: tabular-nums; white-space: nowrap; }
.filters { display: grid; grid-template-columns: minmax(170px, 2.1fr) repeat(3, minmax(110px, 1fr)) auto; gap: 11px; padding: 18px; align-items: end; }
label { display: grid; gap: 6px; font-size: .875rem; font-weight: 650; }
input, select { width: 100%; min-width: 0; color: var(--ink); border: 1px solid #cbd9cf; background: white; border-radius: 8px; padding: 10px; font-size: .9375rem; }
select { appearance: none; padding-right: 24px; background: linear-gradient(45deg, transparent 50%, #52645a 50%) right 12px top 52% / 5px 5px no-repeat, linear-gradient(135deg, #52645a 50%, transparent 50%) right 7px top 52% / 5px 5px no-repeat, white; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 13px 18px; font-size: .875rem; color: var(--subtle); }
.connection-error { background: #fff3dd; color: #704700; border: 1px solid #f0dfb8; padding: 11px 14px; margin-bottom: 16px; border-radius: 10px; }
.login { min-height: 100dvh; display: grid; justify-items: center; align-content: center; gap: 25px; padding: 24px; background: radial-gradient(ellipse at 20% 15%, #2c5142, transparent 65%), #132821; }
.login-brand { color: #fff; }
.login-card { width: min(100%, 430px); padding: clamp(22px, 5vw, 35px); border-radius: 20px; background: white; box-shadow: 0 14px 44px #06161066; }
.login-card h1 { font-size: 1.95rem; }
.login-card p { margin-top: 8px; color: var(--subtle); line-height: 1.45; }
.login-card form { display: grid; gap: 14px; margin-top: 23px; }
.login-card .form-error, .investigation .form-error { margin: 0; color: #972e2a; }
dialog { width: min(100%, 510px); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; border: 0; padding: 0; color: var(--ink); box-shadow: -12px 0 40px #14272135; }
dialog::backdrop { background: #13282165; }
.drawer-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fff; z-index: 1; }
.drawer-content { padding: 22px; }
.drawer-content h3 { margin: 7px 0 7px; font-size: 1.5rem; letter-spacing: -.035em; }
.drawer-content p { line-height: 1.55; }
.drawer-content dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 14px; border-radius: 10px; background: #f1f6f2; }
.drawer-content dt { font-size: .8125rem; color: var(--subtle); }
.drawer-content dd { margin: 4px 0 0; font-size: .875rem; font-weight: 650; overflow-wrap: anywhere; }
.drawer-content .reference { grid-column: 1 / -1; }
.drawer-content details, .investigation { margin-top: 17px; }
.drawer-content summary { cursor: pointer; font-weight: 650; }
.evidence-list { list-style: none; margin: 12px 0 0; padding: 0; }
.evidence-list li { border-top: 1px solid var(--line); padding: 10px 0; }
.evidence-list small { display: block; margin-top: 3px; font-size: .8125rem; }
.evidence-list p { margin-top: 4px; }
.investigation { padding: 13px; background: #f1f6f2; border-radius: 10px; }
.investigation .method { color: var(--subtle); font-size: .8125rem; margin-bottom: 8px; }
@media (max-width: 1050px) { .workspace { grid-template-columns: 204px minmax(0, 1fr); } .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 810px) { .workspace { display: block; } .sidebar { position: static; min-height: 0; height: auto; padding: 12px 15px; flex-direction: row; align-items: center; gap: 14px; } .brand { border: 0; padding: 0; } .brand small, .side-label, .side-env, .account div, .avatar { display: none; } .sidebar nav { display: flex; flex-wrap: wrap; } .sidebar nav a { padding: 8px; font-size: .875rem; } .account { border: 0; padding: 0; } }
@media (max-width: 650px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .overview-grid { grid-template-columns: 1fr; } .page-heading { align-items: flex-start; } .event-row { grid-template-columns: minmax(0, 1fr) max-content; } .event-date { grid-column: 1; } .topbar { padding: 10px 14px; min-height: 52px; } .content { padding: 22px 14px 35px; } }
@media (max-width: 440px) { .page-heading { display: grid; gap: 8px; } .nav-icon { display: none; } .sidebar { gap: 7px; padding-inline: 10px; } .brand { gap: 6px; } .brand-mark { flex-basis: 32px; width: 32px; height: 32px; border-radius: 9px; } .brand strong { font-size: 1rem; } .topbar .breadcrumb { display: none; } .top-actions { justify-content: space-between; width: 100%; } .panel-header { flex-wrap: wrap; } .metric { padding: 12px; } .filters { grid-template-columns: minmax(0, 1fr); } }
