* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --ink: #172725;
  --sub: #526360;
  --muted: #63736e;
  --brand: #096a54;
  --brand-dark: #034834;
  --accent: #75e9a8;
  --line: #dce4df;
  --canvas: #f3f5f3;
  --paper: #fff;
  --sidebar: #152c29;
  --soft: #edf5ef;
  --radius: 12px;
  --sidebar-w: 217px;
  font:
    14px/1.55 Inter,
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
body {
  margin: 0;
}
button,
input,
select,
a {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #147da3;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.3;
}
h1 {
  font-size: clamp(25px, 2.6vw, 35px);
  letter-spacing: -0.055em;
  font-weight: 720;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 14px;
}
button,
input,
select,
.secondary,
.primary,
.quiet {
  border-radius: 7px;
}
.secondary,
.primary,
.quiet,
.chip,
.view-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  min-height: 35px;
  padding: 5px 13px;
  text-decoration: none;
  white-space: nowrap;
}
.secondary {
  border: 1px solid #c8d4cd;
  background: #fff;
  color: #2e4a3e;
}
.secondary:hover,
.quiet:hover {
  background: #edf5ef;
}
.primary {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: white;
  font-weight: 620;
}
.primary:hover {
  background: var(--brand-dark);
}
.quiet {
  border: 1px solid transparent;
  background: transparent;
  color: var(--sub);
}
.view-link {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 0 3px;
  font-weight: 600;
}
.view-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
input,
select {
  min-width: 0;
  max-width: 100%;
  height: 35px;
  border: 1px solid #c9d3cd;
  background: #fff;
  color: var(--ink);
  padding: 5px 8px;
}
select {
  padding-right: 6px;
}
input[type="date"] {
  font-variant-numeric: tabular-nums;
}
#notice {
  position: fixed;
  z-index: 20;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 30px);
  padding: 9px 18px;
  border: 1px solid #bad7c5;
  border-radius: 9px;
  background: #edf9f0;
  color: #1c5236;
  box-shadow: 0 4px 20px #1838251a;
}
#notice.error {
  border-color: #e7c1b4;
  background: #fff1e9;
  color: #8a351f;
}
.brand,
.account,
.crumb,
.titlebar,
.panel-head,
.panel-tools,
.date-line,
.presets,
.mini-actions,
.status-row,
.pager,
.section-actions,
.legend,
.metric-line,
.fieldbar,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  font-size: 17px;
  letter-spacing: 0.02em;
  color: #f3faf5;
}
.mark {
  position: relative;
  display: inline-block;
  width: 29px;
  height: 29px;
  flex: none;
  border: 2px solid #85edab;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, transparent 0 5px, #85edab 5.5px 7px, transparent 7.5px 11px);
  box-shadow: inset 0 0 0 3px var(--sidebar);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  z-index: 10;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: #e1ebe4;
  padding: 31px 15px 17px;
}
.sidebar .brand {
  padding: 0 11px 30px;
  border-bottom: 1px solid #31453e;
}
.sidebar nav {
  display: grid;
  gap: 4px;
  padding-top: 20px;
}
.nav-group {
  padding: 13px 13px 4px;
  font-size: 11px;
  color: #a2b9aa;
  font-weight: 650;
  letter-spacing: 0.12em;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 43px;
  padding: 9px 13px;
  text-align: left;
  color: #ccdbd2;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 580;
}
.nav-item:hover {
  background: #203d35;
  color: white;
}
.nav-item[aria-current="page"] {
  background: #2e4b3d;
  color: white;
  border-color: #375945;
}
.nav-item[aria-current="page"] .nav-symbol {
  color: #97efae;
}
.nav-symbol {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
  color: #a8beb1;
  flex: none;
}
.nav-symbol svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account {
  margin-top: auto;
  border-top: 1px solid #31453e;
  padding: 17px 5px 0;
}
.account strong {
  font-size: 13px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account button {
  min-height: 32px;
  padding: 3px 5px;
  border: 0;
  background: transparent;
  color: #c3d5c6;
}
.avatar {
  width: 30px;
  height: 30px;
  border: 1px solid #547161;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 37%, #b2d4be 0 4px, transparent 4.7px),
    radial-gradient(ellipse at 50% 92%, #83a98f 0 8px, transparent 8.7px), #385443;
  flex: none;
}
.workspace {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}
.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(18px, 2.8vw, 42px);
  background: #fafcf9;
}
.crumb {
  color: var(--muted);
  font-size: 13px;
}
.crumb b {
  color: var(--ink);
  font-weight: 600;
}
.crumb i {
  font-style: normal;
  color: #9eada3;
}
.topbar .quiet {
  min-height: 32px;
  font-size: 13px;
}
#menu {
  display: none;
}
.scrim {
  display: none;
}
#page {
  max-width: 1640px;
  margin: auto;
  padding: 26px clamp(17px, 2.8vw, 42px) 42px;
}
.titlebar {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.titlebar .secondary {
  font-size: 13px;
}
.panel,
.metric,
.filterbox {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
}
.panel {
  min-width: 0;
}
.panel-head {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 18px 19px 0;
}
.panel-tools {
  flex-wrap: wrap;
}
.section-actions {
  flex-wrap: wrap;
  gap: 8px;
}
.filterbox {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.presets {
  gap: 3px;
  background: #f1f4ef;
  border-radius: 7px;
  padding: 3px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid transparent;
  color: var(--sub);
  background: transparent;
  min-height: 29px;
  padding: 2px 11px;
  font-size: 13px;
}
.chip[aria-pressed="true"] {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 1px 4px #18382518;
  border-color: #d7e1d8;
  font-weight: 650;
}
.date-line {
  gap: 7px;
  flex-wrap: wrap;
}
.date-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--sub);
}
.date-line input,
.date-line button {
  height: 32px;
  min-height: 32px;
  font-size: 12px;
}
.dash {
  color: var(--muted);
}
.date-error {
  width: 100%;
  color: #923d2c;
  font-size: 13px;
}
#summary {
  display: grid;
  gap: 15px;
  margin-bottom: 18px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 16px 16px 15px;
  position: relative;
  min-width: 0;
  min-height: 92px;
}
.metric:first-child {
  border-top-color: #2f8561;
  border-top-width: 2px;
  padding-top: 15px;
}
.metric:is(button):hover {
  border-color: #77a78c;
}
.metric-line {
  justify-content: space-between;
  font-weight: 550;
  color: #50645a;
  font-size: 13px;
}
.metric-arrow {
  font-size: 14px;
  color: #698b75;
}
.metric-num {
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.05em;
  font-weight: 670;
  margin: 7px 0 0;
}
.metric-note {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 14px;
}
.chart-body {
  padding: 8px 17px 4px;
}
.legend {
  font-size: 12px;
  color: var(--sub);
  gap: 12px;
  flex-wrap: wrap;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.tone-0 {
  background: #157257;
}
.tone-1 {
  background: #456db6;
}
.tone-2 {
  background: #bc773b;
}
.tone-3 {
  background: #9464a7;
}
.chart-frame {
  position: relative;
  width: 100%;
  height: 178px;
  margin: 9px 0 4px;
}
.chart-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}
.chart-hint {
  font-size: 12px;
  color: var(--muted);
  min-height: 20px;
}
.daily {
  margin: 0 18px 14px;
  font-size: 12px;
}
.daily summary {
  display: inline-block;
  cursor: pointer;
  color: var(--brand);
  font-weight: 600;
}
.daily summary::before {
  content: "▸";
  margin-right: 5px;
}
.daily[open] summary::before {
  content: "▾";
}
.daily .scroll {
  max-height: 225px;
  margin-top: 6px;
}
.rank-list {
  list-style: none;
  padding: 7px 17px 12px;
  margin: 0;
  max-height: 292px;
  overflow: auto;
}
.rank-item {
  width: 100%;
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 1px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf1ec;
  border-radius: 0;
  text-align: left;
}
.rank-item:hover {
  color: var(--brand);
  background: #f6faf6;
}
.rank-item .idx,
.rank-item .count {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.idx {
  color: #7b8b7f;
}
.rank-item strong {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 13px;
  font-weight: 560;
}
.rank-item progress {
  width: 100%;
  height: 3px;
  appearance: none;
  border: none;
  display: block;
  margin-top: 3px;
  background: #e9efea;
  accent-color: #4c9774;
}
.rank-item progress::-webkit-progress-bar {
  background: #edf2ed;
}
.rank-item progress::-webkit-progress-value {
  background: #5caa82;
}
.rank-item progress::-moz-progress-bar {
  background: #5caa82;
}
.quality {
  font-size: 12px;
  color: var(--muted);
}
.quality summary {
  cursor: pointer;
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: #c0cec3;
  text-underline-offset: 3px;
}
.quality p {
  margin-top: 4px;
}
.records {
  scroll-margin-top: 14px;
}
.records:focus {
  outline: 0;
}
.records .panel-head {
  align-items: center;
}
.subtle {
  font-size: 12px;
  color: var(--muted);
  font-weight: 450;
}
.fieldbar {
  align-items: end;
  flex-wrap: wrap;
  padding: 13px 19px 16px;
  gap: 8px;
}
.fieldbar label,
.login label,
.detail-actions label {
  display: grid;
  gap: 3px;
  color: #53665b;
  font-size: 12px;
  font-weight: 570;
}
.fieldbar input[type="search"] {
  min-width: 145px;
}
.fieldbar select {
  max-width: 200px;
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bbd5c5;
  color: #176849;
  background: #edf7ef;
  padding: 4px 9px;
  min-height: 32px;
}
.scroll {
  overflow: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
th,
td {
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e6ece6;
  overflow-wrap: anywhere;
}
th:first-child,
td:first-child {
  padding-left: 19px;
}
th:last-child,
td:last-child {
  padding-right: 19px;
}
th {
  color: #58685e;
  background: #f6f8f4;
  font-size: 12px;
  font-weight: 630;
  white-space: nowrap;
}
td {
  max-width: 33rem;
}
.time {
  display: block;
  white-space: nowrap;
  font-size: 12px;
  color: #48594e;
}
.numeric {
  font-variant-numeric: tabular-nums;
}
.rank-select {
  max-width: 150px;
  height: 29px;
  font-size: 12px;
}
.detail-link {
  font-size: 12px;
}
.pager {
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 12px 18px;
}
.pager .secondary {
  min-height: 30px;
  padding: 2px 9px;
  font-size: 12px;
}
.empty,
.loading,
.section-error {
  padding: 25px;
  color: var(--muted);
  text-align: center;
}
.section-error .secondary {
  margin-left: 10px;
}
.record-address,
.mini-actions {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 7px;
  row-gap: 1px;
}
.record-address code,
#detail dd code {
  font:
    12px/1.55 "IBM Plex Mono",
    ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}
.payload {
  min-width: min(13rem, 48vw);
  max-width: 26rem;
}
.text-action {
  border: 0;
  background: transparent;
  padding: 1px 0;
  color: var(--brand);
  font-size: 12px;
  white-space: nowrap;
}
.text-action:hover {
  text-decoration: underline;
}
.tag {
  display: inline-block;
  border-radius: 5px;
  padding: 1px 6px;
  color: #4e6556;
  background: #eef3ee;
  font-size: 12px;
  white-space: nowrap;
}
.tag.new {
  background: #e5f1ff;
  color: #365b8b;
}
.tag.in_progress {
  background: #fff0d8;
  color: #805717;
}
.tag.resolved {
  background: #e4f2e6;
  color: #3b6f48;
}
.access {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(145deg, #f2f5ef, #e2ece3);
}
.login {
  width: min(396px, 100%);
  display: grid;
  gap: 16px;
  padding: 29px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #d4dfd6;
  box-shadow: 0 15px 55px #1838250b;
}
.login .brand {
  color: #173a2b;
  font-size: 14px;
}
.login .mark {
  background-color: var(--sidebar);
}
.login h1 {
  font-size: 26px;
}
.login input {
  height: 41px;
}
.login button {
  min-height: 40px;
}
.login button.quiet {
  margin-top: -8px;
}
dialog {
  width: min(650px, calc(100vw - 24px));
  max-height: min(84vh, 830px);
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 25px 88px #0b261f37;
  overflow: auto;
}
dialog::backdrop {
  background: #152e2661;
}
.dialog-head {
  position: sticky;
  top: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 19px;
  border-bottom: 1px solid var(--line);
  z-index: 1;
}
.dialog-head .quiet {
  font-size: 13px;
  min-height: 30px;
}
.detail-actions {
  flex-wrap: wrap;
  align-items: end;
  padding: 14px 19px;
  border-bottom: 1px solid var(--line);
}
.detail-fields {
  padding: 4px 19px 19px;
}
.detail-fields > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #edf1eb;
}
.detail-fields dt {
  color: var(--sub);
  font-size: 12px;
}
.detail-fields dd {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.detail-fields .text-action {
  margin-left: 5px;
}
@media (max-width: 1100px) {
  :root {
    --sidebar-w: 190px;
  }
  .metrics {
    gap: 8px;
  }
  .analysis-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(230px, 1fr);
  }
  .sidebar {
    padding-left: 11px;
    padding-right: 11px;
  }
  .panel-head {
    padding-left: 15px;
    padding-right: 15px;
  }
  .fieldbar {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (max-width: 830px) {
  #menu {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    font-size: 20px;
    border: 1px solid var(--line);
    background: white;
  }
  .workspace {
    margin-left: 0;
  }
  .sidebar {
    width: 220px;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.16s ease;
  }
  .console.open .sidebar {
    transform: none;
    visibility: visible;
  }
  .scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 8;
    background: #0b1e1666;
    border: 0;
    border-radius: 0;
  }
  .topbar {
    height: 51px;
  }
  .analysis-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 1fr);
  }
}
@media (max-width: 650px) {
  #page {
    padding: 19px 12px 30px;
  }
  .topbar {
    padding: 0 12px;
  }
  .titlebar {
    margin-bottom: 13px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    padding: 11px 12px;
    min-height: 79px;
  }
  .metric:first-child {
    padding-top: 10px;
  }
  .metric-num {
    font-size: 25px;
  }
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .filterbox {
    padding: 10px;
    gap: 8px;
  }
  .date-line {
    gap: 4px;
  }
  .date-caption {
    display: none;
  }
  .date-line input {
    max-width: 122px;
  }
  .presets {
    width: 100%;
  }
  .chip {
    flex: 1;
  }
  .chart-frame {
    height: 153px;
  }
  .panel-head {
    padding: 14px 13px 0;
  }
  .fieldbar {
    padding: 10px 13px 13px;
  }
  .fieldbar input[type="search"] {
    min-width: 105px;
  }
  .rank-list {
    max-height: 220px;
  }
  .titlebar .secondary {
    min-height: 31px;
    padding: 3px 8px;
  }
  .detail-fields > div {
    grid-template-columns: 75px minmax(0, 1fr);
  }
  .detail-fields,
  .dialog-head,
  .detail-actions {
    padding-left: 13px;
    padding-right: 13px;
  }
  .scroll td,
  .scroll th {
    padding: 7px 8px;
  }
  .scroll td:first-child,
  .scroll th:first-child {
    padding-left: 13px;
  }
  .scroll td:last-child,
  .scroll th:last-child {
    padding-right: 13px;
  }
  .payload {
    min-width: 140px;
  }
  .rank-select {
    max-width: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
