:root {
  --bg: #eef2f9;
  --surface: #fff;
  --surface2: #f6f8fc;
  --line: #dde2ec;
  --text: #1b1f27;
  --muted: #5d6678;
  --accent: #0b57d0;
  --accent2: #2b8bff;
  --accent-bg: #dbe8ff;
  --navsel: #d6e4ff;
  --up: #b3261e;
  --upbg: #fde9e7;
  --down: #146c2e;
  --downbg: #e3f5e8;
  --grid: #e6e9f0;
  --shadow: 0 1px 2px rgba(20, 30, 60, 0.08), 0 6px 20px rgba(20, 30, 60, 0.06);
  --fc: #e4e7ee;
  --glow: #dbe8ff;
}
[data-theme="dark"] {
  --bg: #0d0f14;
  --surface: #171a21;
  --surface2: #1e222b;
  --line: #2d3340;
  --text: #e6e9f0;
  --muted: #9aa3b5;
  --accent: #8ab4ff;
  --accent2: #4d9bff;
  --accent-bg: #14306b;
  --navsel: #173a7a;
  --up: #ff9b92;
  --upbg: #40201e;
  --down: #7fd69a;
  --downbg: #14301f;
  --grid: #2a2f3b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
  --fc: #2c3140;
  --glow: #102a5c;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  font:
    14px/1.45 "Google Sans Text",
    "Google Sans",
    Roboto,
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.app {
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  grid-template-columns: auto minmax(0, 1fr) auto;
  height: 100vh;
}
.top {
  grid-column: 1/4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px rgba(43, 139, 255, 0.45));
}
.brand small {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}
.brand .t {
  line-height: 1.15;
}
.spacer {
  flex: 1;
}
.pill {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-bg);
  color: var(--accent);
  letter-spacing: 0.04em;
}
.pill.demo {
  background: #fef7e0;
  color: #b06000;
}
.icon-btn {
  border: 0;
  background: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--surface);
}
.btn {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 20px;
  padding: 7px 16px;
  font-weight: 500;
  color: var(--accent);
  transition: 0.15s;
}
.btn:hover {
  background: var(--accent-bg);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 87, 208, 0.35);
}
[data-theme="dark"] .btn.primary {
  color: #04204f;
}
.btn.primary:hover {
  filter: brightness(1.08);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: default;
}
.btn.sm {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 13px;
}

nav {
  width: 264px;
  overflow: auto;
  padding: 4px 8px 12px;
  transition: width 0.15s;
  display: flex;
  flex-direction: column;
}
nav.min {
  width: 0;
  padding: 0;
  overflow: hidden;
}
.navhead {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  padding: 6px 14px 14px;
}
.navhead svg {
  width: 26px;
  height: 26px;
  fill: var(--muted);
}
.acct {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 8px 12px;
  position: relative;
  background: var(--surface);
}
.acct label {
  position: absolute;
  top: -8px;
  left: 8px;
  background: var(--bg);
  padding: 0 4px;
  font-size: 11px;
  color: var(--muted);
}
.acct b {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec {
  font-size: 13px;
  font-weight: 600;
  padding: 14px 16px 6px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nv {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 16px;
  border-radius: 22px;
  cursor: pointer;
  position: relative;
  transition: background 0.12s;
}
.nv:hover {
  background: color-mix(in srgb, var(--navsel) 45%, transparent);
}
.nv.on {
  background: var(--navsel);
  font-weight: 500;
  color: var(--accent);
}
.nv svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}
.nv .nb {
  margin-left: auto;
  background: var(--up);
  color: #fff;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
}
.src {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  font-size: 13px;
}
.src .t {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.src .bad {
  color: var(--up);
  font-weight: 700;
  font-size: 10px;
  border: 1px solid var(--up);
  border-radius: 5px;
  padding: 0 5px;
}

.main,
.rpanel {
  background: var(--surface);
  border-radius: 20px;
  overflow: auto;
  min-width: 0;
  box-shadow: var(--shadow);
  margin: 0 16px 16px 0;
}
.main {
  position: relative;
  background: radial-gradient(900px 260px at 15% -60px, var(--glow), transparent 70%), var(--surface);
}
.app.nonav .main {
  margin-left: 16px;
}
.rpanel {
  width: 330px;
  margin-left: 0;
  display: none;
  padding: 0 0 20px;
}
.rpanel.show {
  display: block;
}
.pad {
  padding: 0 24px 28px;
}
.titlebar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px 6px;
  flex-wrap: wrap;
}
.titlebar h1 {
  font-size: 24px;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.015em;
}
.titlebar .meta {
  color: var(--muted);
  font-size: 13px;
}
.desc {
  padding: 4px 24px 12px;
  color: var(--muted);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  flex-wrap: wrap;
}
.scope {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 6px 24px 14px;
  border-bottom: 1px solid var(--line);
}
.scope > label {
  color: var(--muted);
  font-size: 13px;
  width: 44px;
  padding-top: 9px;
}
.scope .chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chipwrap {
  position: relative;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px 8px 12px;
  transition: 0.15s;
}
.chip:hover {
  background: var(--surface2);
  border-color: var(--accent);
}
.chip.on {
  background: var(--accent-bg);
  border-color: transparent;
  color: var(--accent);
  font-weight: 500;
}
.chip.solid {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: transparent;
  font-weight: 500;
}
.chip svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}
.chip .caret {
  opacity: 0.7;
}
.menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 280px;
  max-width: 440px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(10, 20, 50, 0.32);
  border: 1px solid var(--line);
  padding: 6px 0;
  display: none;
}
.menu.open {
  display: block;
}
.menu.right {
  left: auto;
  right: 0;
}
.menu .search {
  margin: 8px 12px;
  width: calc(100% - 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface2);
  color: var(--text);
}
.menu .opts {
  max-height: 300px;
  overflow: auto;
}
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  cursor: pointer;
}
.opt:hover {
  background: var(--surface2);
}
.opt input {
  accent-color: var(--accent);
}
.opt.sel {
  color: var(--accent);
  font-weight: 500;
}
.opt .nm {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.opt .amt {
  color: var(--muted);
  font-size: 12px;
}
.menu .hd {
  padding: 8px 16px 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.menu .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px 2px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.linkbtn {
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 500;
  padding: 4px 8px;
  cursor: pointer;
}
.dates {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
}
.dates input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: var(--surface2);
  color: var(--text);
  min-width: 0;
}
.menu#m_group {
  max-width: none;
  width: min(700px, 92vw);
}
.gdlg {
  width: 100%;
  padding: 20px 26px;
}
.gdlg h2 {
  font-weight: 400;
  font-size: 24px;
  margin: 2px 0 14px;
}
.gdlg h4 {
  font-weight: 400;
  font-size: 19px;
  margin: 16px 0 10px;
}
.grow {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.grow > span {
  width: 54px;
  color: var(--muted);
  font-size: 13px;
  padding-top: 9px;
  flex: none;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ch {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 18px;
  color: var(--text);
}
.ch:hover {
  background: var(--surface2);
}
.ch.on {
  background: var(--accent-bg);
  border-color: transparent;
  color: var(--accent);
  font-weight: 500;
}
.ch.on::before {
  content: "✓ ";
}
.ch[disabled] {
  opacity: 0.4;
  cursor: default;
}
.gdlg .acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.gdlg .acts .linkbtn[disabled] {
  opacity: 0.4;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.seg button {
  border: 0;
  background: var(--surface);
  padding: 7px 14px;
  color: var(--text);
}
.seg button.on {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 500;
}

.ctabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface2);
}
.ctabs button {
  border: 0;
  background: none;
  padding: 7px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
  transition: 0.15s;
}
.ctabs button:hover {
  background: var(--surface);
  color: var(--text);
}
.ctabs button.on {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  box-shadow: 0 3px 10px rgba(11, 87, 208, 0.35);
}
[data-theme="dark"] .ctabs button.on {
  color: #04204f;
}
[data-act] {
  cursor: pointer;
}
[data-act]:hover {
  border-color: var(--accent);
}
.split .r[data-act] {
  padding: 3px 6px;
  margin: -3px -6px;
  border-radius: 8px;
}
.split .r[data-act]:hover {
  background: var(--accent-bg);
}
.banner {
  margin: 10px 24px 0;
  border-radius: 12px;
  padding: 11px 16px;
  background: var(--upbg);
  color: var(--up);
  font-size: 13.5px;
  line-height: 1.5;
}
.banner b {
  font-weight: 600;
}
.banner code {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 12.5px;
  word-break: break-all;
}
.hintline {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 14px;
  margin: 16px 0 14px;
}
.sc {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--surface2));
  transition: 0.2s;
}
.sc:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.sc::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent2), var(--accent), transparent);
}
.sc .h {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.sc .big {
  font-size: 28px;
  margin: 6px 0 2px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.sc .d {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}
.sm {
  color: var(--muted);
  font-size: 12.5px;
}
.arrow {
  font-weight: 500;
}
.delta {
  font-weight: 600;
}
.delta.up {
  color: var(--up);
}
.delta.down {
  color: var(--down);
}
.delta.flat {
  color: var(--muted);
}
.split {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}
.split .r {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.split .bar {
  height: 8px;
  border-radius: 5px;
  background: var(--grid);
  overflow: hidden;
}
.split .bar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s;
}
.ins {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}
.ic {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  min-width: 0;
  transition: 0.2s;
}
.ic:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.ic .g {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: none;
}
.ic .l {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ic .n {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ic .v {
  font-size: 12.5px;
  color: var(--muted);
}
.ctools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin: 6px 0;
}
.sw {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.sw i {
  width: 38px;
  height: 20px;
  border: 2px solid var(--muted);
  border-radius: 12px;
  position: relative;
}
.sw i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  transition: 0.15s;
}
.sw.on i {
  background: var(--accent);
  border-color: var(--accent);
}
.sw.on i::after {
  left: 20px;
  background: #fff;
}
.chartbox {
  position: relative;
  height: 340px;
}

table {
  width: 100%;
  border-collapse: collapse;
}
th {
  background: var(--surface2);
  text-align: left;
  font-weight: 500;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  font-size: 13px;
}
td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr.row:hover td,
tr.trow:hover td {
  background: var(--surface2);
}
tr.row.click,
tr.trow {
  cursor: pointer;
}
tr.total td {
  font-weight: 500;
  background: var(--surface2);
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mk {
  display: inline-block;
  width: 20px;
  text-align: center;
  font-size: 12px;
}
.logo {
  display: inline-flex;
  vertical-align: middle;
}
.mini {
  height: 5px;
  border-radius: 3px;
  background: var(--grid);
  min-width: 70px;
  margin-top: 4px;
}
.mini i {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  color: var(--muted);
  text-align: center;
  padding: 30px;
}
.skel {
  border-radius: 14px;
  background: linear-gradient(90deg, var(--surface2), var(--line), var(--surface2));
  background-size: 200% 100%;
  animation: sh 1.2s infinite;
}
@keyframes sh {
  to {
    background-position: -200% 0;
  }
}

.info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 6px 24px 14px;
}
.info > div {
  padding: 6px 24px;
  font-size: 15px;
}
.info > div + div {
  border-left: 1px solid var(--line);
}
.info > div:first-child {
  padding-left: 0;
}
.info p {
  margin: 5px 0;
}
.info p span {
  color: var(--muted);
}
.tree .l1 td:first-child {
  padding-left: 42px;
}
.tree .l2 td:first-child {
  padding-left: 70px;
}
.tree .l0 {
  font-weight: 500;
}
.tree .l2 td {
  color: var(--muted);
}
.caret {
  display: inline-block;
  width: 18px;
  color: var(--muted);
  transition: transform 0.12s;
}
.caret.open {
  transform: rotate(90deg);
}
.foot-box {
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 40px;
  justify-content: end;
  text-align: right;
}
.foot-box b {
  font-weight: 600;
}

.rpanel h3 {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  padding: 18px 20px 12px;
  display: flex;
  align-items: center;
}
.ff {
  margin: 10px 20px;
  position: relative;
}
.ff .fb {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 12px 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
}
.ff .fb:hover {
  border-color: var(--accent);
}
.ff .fb .v {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff .fl {
  position: absolute;
  top: -8px;
  left: 10px;
  background: var(--surface);
  padding: 0 4px;
  font-size: 11.5px;
  color: var(--muted);
  z-index: 1;
}
.ff .menu {
  width: 100%;
  min-width: 0;
}

.verdict {
  border-radius: 14px;
  padding: 14px 16px;
  margin: 14px 0;
  font-weight: 500;
}
.verdict.bad {
  background: var(--upbg);
  color: var(--up);
}
.verdict.ok {
  background: var(--downbg);
  color: var(--down);
}
.checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.check {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  background: var(--surface);
}
.check.on {
  border: 2px solid var(--accent);
  padding: 11px 15px;
  background: var(--accent-bg);
}
.check .n {
  font-size: 26px;
}
.check.fail .n {
  color: var(--up);
}
.check .l {
  color: var(--muted);
  font-size: 13px;
}
.an {
  cursor: pointer;
  transition: 0.15s;
}
.an:hover {
  background: var(--surface2);
  border-color: var(--accent);
  transform: translateX(2px);
}
.pillx {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 10px;
  background: var(--surface2);
  color: var(--muted);
  margin-left: 8px;
}
.astats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 8px;
}
.astats div {
  background: var(--surface2);
  border-radius: 10px;
  padding: 8px 12px;
}
.astats span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}
.astats b {
  font-weight: 500;
  font-size: 17px;
}
.why {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}
.why b {
  font-weight: 600;
}
.an .go {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  margin-left: 10px;
}
.an {
  border: 1px solid var(--line);
  border-left: 4px solid var(--up);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.an .h {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}
.an .m {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.dd {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(640px, 100vw);
  background: var(--surface);
  z-index: 41;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(105%);
  transition: transform 0.22s;
  display: flex;
  flex-direction: column;
  border-radius: 20px 0 0 20px;
}
.dd.open {
  transform: none;
}
.dd header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px 10px;
}
.dd .scroll {
  overflow: auto;
  padding: 0 22px 26px;
  flex: 1;
}
.dd h2 {
  font-size: 21px;
  font-weight: 500;
  margin: 0;
  word-break: break-word;
  letter-spacing: -0.01em;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 10px;
}
.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fullid {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  word-break: break-all;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.dk {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 8px 0 14px;
}
.dk div {
  background: var(--surface2);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
}
.dk span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}
.dk b {
  font-weight: 500;
  font-size: 17px;
}
.dsec {
  margin: 18px 0 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dsec small {
  color: var(--muted);
  font-weight: 400;
}
.srow {
  cursor: pointer;
}
.srow:hover td {
  background: var(--surface2);
}
.dd details {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 12px;
}
.dd summary {
  cursor: pointer;
  padding: 6px 0;
  font-weight: 500;
}
.dacts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 4px;
}
@media (max-width: 700px) {
  .dk {
    grid-template-columns: repeat(2, 1fr);
  }
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 40;
}
.scrim.open {
  display: block;
}
.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 94vw);
  max-height: 90vh;
  background: var(--surface);
  border-radius: 18px;
  z-index: 41;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
}
.modal.open {
  display: flex;
}
.modal header {
  display: flex;
  align-items: center;
  padding: 16px 22px;
  font-size: 20px;
}
.modal .scroll {
  overflow: auto;
  padding: 0 22px 22px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.tabs button {
  border: 0;
  background: none;
  padding: 9px 16px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 3px solid transparent;
}
.tabs button.on {
  color: var(--accent);
  border-color: var(--accent);
}
label.f {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin: 10px 0 4px;
}
input.t {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--surface2);
  color: var(--text);
}
input.t:focus {
  outline: 2px solid var(--accent-bg);
  border-color: var(--accent);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.rec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 14px;
  margin: 6px 0;
}
.rep {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 8px 0;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #323232;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  z-index: 60;
  display: none;
  max-width: 90vw;
}
.err {
  color: var(--up);
  font-size: 13px;
  margin-top: 8px;
}
.login {
  height: 100vh;
  display: grid;
  place-items: center;
}
.login .box {
  width: min(380px, 92vw);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.login .brand {
  justify-content: center;
  margin-bottom: 18px;
}
.hide {
  display: none !important;
}
@media (max-width: 1100px) {
  .rpanel {
    position: fixed;
    top: 72px;
    right: 8px;
    bottom: 8px;
    z-index: 36;
    margin: 0;
  }
  .summary {
    grid-template-columns: 1fr;
  }
  .ins {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  nav {
    position: fixed;
    z-index: 35;
    top: 64px;
    bottom: 0;
    left: 0;
    background: var(--bg);
    width: 264px;
  }
  nav.min {
    width: 0;
  }
  .main {
    margin: 0 8px 8px;
  }
  .checks {
    grid-template-columns: 1fr;
  }
  .info {
    grid-template-columns: 1fr;
  }
  .info > div + div {
    border-left: 0;
  }
}

.aact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.anote {
  color: var(--muted);
  font-size: 12px;
}
.bud {
  border: 1px solid var(--line, rgba(128, 128, 128, 0.25));
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.bud .h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.bud .bar {
  position: relative;
  height: 10px;
  border-radius: 6px;
  background: var(--downbg);
  margin-bottom: 12px;
}
.bud .bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--down);
}
.bud .bar u {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 16px;
  background: var(--muted);
  text-decoration: none;
}
.bud.warn .bar i,
.bud.forecast_over .bar i {
  background: #f9ab00;
}
.bud.over .bar i {
  background: var(--up);
}
.bform {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(128, 128, 128, 0.08);
}
.bform .f {
  display: block;
  margin-top: 10px;
}
.bform input,
.bform select {
  display: block;
  width: 100%;
  margin-top: 4px;
}

.alog {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.chatmsg {
  margin-bottom: 14px;
}
.chatmsg .who {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}
.chatmsg .txt {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(128, 128, 128, 0.1);
  line-height: 1.5;
}
.chatmsg.user .txt {
  background: rgba(66, 133, 244, 0.12);
}
.askbar {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.askbar input {
  flex: 1;
}
.split .r[data-llmcloud] {
  padding: 3px 6px;
  margin: -3px -6px;
  border-radius: 8px;
}
.split .r[data-llmcloud]:hover {
  background: var(--accent-bg);
}

.actmenu {
  position: relative;
  display: inline-block;
}
.actmenu .alist {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}
.actmenu .alist.open {
  display: block;
}
.actmenu .alist button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.actmenu .alist button:hover {
  background: var(--surface2);
}
.stepper {
  display: flex;
  gap: 8px;
  margin: 14px 0 4px;
}
.stepper .step {
  flex: 1;
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: 0.6;
}
.stepper .step.on,
.stepper .step.done {
  opacity: 1;
}
.stepper .step.on {
  border-color: var(--accent);
}
.stepper .step i {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  background: var(--surface2);
}
.stepper .step.done i {
  background: var(--down);
  color: #fff;
}
.stepper .step small {
  color: var(--muted);
  font-size: 11.5px;
  min-height: 14px;
}

.aisum {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 16px 0 4px;
  background: var(--surface);
}
.aisum .aih {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
}
.aisum .aib {
  padding: 0 16px 14px 44px;
  line-height: 1.55;
}
.mdh {
  font-weight: 600;
  margin: 10px 0 2px;
}
.mdh:first-child {
  margin-top: 0;
}

select,
select.t {
  background: var(--surface2);
  color: var(--text, inherit);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  color-scheme: light dark;
}
select option {
  background: var(--surface);
  color: var(--text, inherit);
}
.rsrc {
  display: grid;
  grid-template-columns: 130px 130px 1fr 140px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.rsrc:first-of-type {
  border-top: 0;
}
.rsrc .rwhy {
  color: var(--muted);
  font-size: 13px;
  word-break: break-word;
}
.rsrc .rts {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.rsrc.error .pillx {
  background: var(--upbg);
  color: var(--up);
}
.rsrc.partial .pillx {
  background: rgba(249, 171, 0, 0.18);
  color: #f9ab00;
}
.rsrc.ok .pillx {
  background: var(--downbg);
  color: var(--down);
}

.rsrc[data-reco="cloud"] {
  cursor: pointer;
  padding-left: 8px;
  padding-right: 8px;
  margin: 0 -8px;
  border-radius: 10px;
}
.rsrc[data-reco="cloud"]:hover {
  background: var(--surface2);
}
.rsrc.sel {
  background: var(--accent-bg, var(--surface2));
  outline: 1px solid var(--accent);
}

.rfilters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
