:root {
  --navy: #0b1524;
  --navy-2: #132237;
  --ink: #122033;
  --muted: #6f7c89;
  --line: #e3e8e6;
  --paper: #f4f6f4;
  --white: #fff;
  --teal: #16aa96;
  --green: #209c76;
  --purple: #7469e9;
  --amber: #d69a3d;
  --blue: #4f8ddd;
  font-family: Inter, "SF Pro Text", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 1080px; min-height: 100vh; background: var(--paper); }
button, select, input { font: inherit; }
button { cursor: pointer; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.login-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 48px;
  background:
    radial-gradient(circle at 18% 15%, rgba(45,194,174,.16), transparent 29%),
    radial-gradient(circle at 82% 78%, rgba(91,105,220,.14), transparent 26%),
    linear-gradient(145deg, #07111e, #10233a 58%, #0b1828);
}
.login-atmosphere { position: absolute; inset: 0; pointer-events: none; }
.login-atmosphere i { position: absolute; border: 1px solid rgba(98,221,202,.1); border-radius: 50%; }
.login-atmosphere i:nth-child(1) { width: 540px; height: 540px; left: -180px; top: -210px; }
.login-atmosphere i:nth-child(2) { width: 380px; height: 380px; right: -90px; bottom: -130px; }
.login-atmosphere i:nth-child(3) { width: 710px; height: 710px; left: calc(50% - 355px); top: calc(50% - 355px); border-color: rgba(255,255,255,.025); }
.login-panel {
  position: relative;
  z-index: 2;
  width: 430px;
  padding: 38px;
  color: #dce6ef;
  background: rgba(11,25,42,.88);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0,0,0,.32);
  backdrop-filter: blur(20px);
}
.login-brand { display: flex; align-items: center; gap: 11px; }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { color: #fff; font-family: Georgia, serif; font-size: 16px; letter-spacing: 2px; }
.login-brand span { margin-top: 3px; color: #667a90; font-size: 7px; font-weight: 700; letter-spacing: 2.2px; }
.login-copy { margin-top: 46px; }
.login-copy p { margin: 0; color: #4fd1c0; font-size: 8px; font-weight: 800; letter-spacing: 1.8px; }
.login-copy h1 { margin: 9px 0 10px; color: #fff; font-family: Georgia, "Songti SC", serif; font-size: 29px; font-weight: 500; }
.login-copy > span { color: #8192a3; font-size: 10px; line-height: 1.7; }
.login-form { display: grid; gap: 15px; margin-top: 30px; }
.login-form label { display: grid; gap: 7px; color: #9aabb9; font-size: 8px; font-weight: 700; }
.login-form input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  outline: 0;
  color: #edf4f7;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
}
.login-form input:focus { border-color: #3bc7b5; box-shadow: 0 0 0 3px rgba(59,199,181,.1); }
.login-error { min-height: 16px; margin: -3px 0 -4px; color: #ef9b94; font-size: 8px; }
.login-button {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  color: #062f2b;
  font-size: 9px;
  font-weight: 800;
  background: linear-gradient(135deg, #63daca, #35bba9);
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(42,192,171,.18);
}
.login-button:hover { transform: translateY(-1px); }
.login-button:disabled { cursor: wait; opacity: .7; transform: none; }
.login-button svg { width: 15px; }
.login-security { display: flex; justify-content: space-between; margin-top: 23px; color: #627589; font-size: 7px; }
.login-security span:first-child { display: flex; align-items: center; gap: 6px; }
.login-security i { width: 5px; height: 5px; background: #3ccca5; border-radius: 50%; box-shadow: 0 0 0 4px rgba(60,204,165,.08); }
.admin-shell { display: grid; grid-template-columns: 236px minmax(0,1fr); min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 236px;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  color: #bdc7d4;
  background:
    radial-gradient(circle at 25% 70%, rgba(28,143,140,.14), transparent 25%),
    linear-gradient(160deg,#091321,#0f1d31);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 9px 30px; }
.brand-mark { position: relative; width: 27px; height: 29px; }
.brand-mark i { position: absolute; bottom: 2px; width: 7px; background: #35c8b4; border-radius: 1px; transform: skewY(-32deg); }
.brand-mark i:nth-child(1) { left: 1px; height: 16px; opacity: .45; }
.brand-mark i:nth-child(2) { left: 9px; height: 24px; opacity: .7; }
.brand-mark i:nth-child(3) { left: 17px; height: 19px; }
.brand strong, .brand span { display: block; }
.brand strong { color: #fff; font-family: Georgia, serif; font-size: 14px; letter-spacing: 1.8px; }
.brand span { margin-top: 2px; color: #64758a; font-size: 6px; font-weight: 700; letter-spacing: 2.1px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav > p { margin: 0 11px 8px; color: #53637a; font-size: 8px; font-weight: 700; letter-spacing: 1.5px; }
.sidebar nav > p.nav-space { margin-top: 22px; }
.nav-item { width: 100%; height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; color: #8f9eb1; background: transparent; border-radius: 8px; transition: .2s ease; }
.nav-item svg { width: 17px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.045); }
.nav-item.active { color: #fff; background: linear-gradient(90deg,rgba(40,194,174,.19),rgba(40,194,174,.04)); box-shadow: inset 2px 0 0 #3bd0bd; }
.nav-item.active svg { color: #52d4c4; }
.nav-item b { margin-left: auto; padding: 2px 6px; color: #71d8cb; font-size: 7px; background: rgba(59,208,189,.1); border-radius: 10px; }
.nav-item > i { width: 6px; height: 6px; margin-left: auto; background: #34cea6; border-radius: 50%; box-shadow: 0 0 0 4px rgba(52,206,166,.08); }
.runtime-card { margin-top: auto; padding: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; }
.runtime-card div { display: flex; align-items: center; gap: 7px; color: #57d5c6; font-size: 7px; font-weight: 700; letter-spacing: 1px; }
.runtime-card div i { width: 5px; height: 5px; background: #3bd8aa; border-radius: 50%; box-shadow: 0 0 0 4px rgba(59,216,170,.08); }
.runtime-card strong, .runtime-card small { display: block; }
.runtime-card strong { margin-top: 9px; color: #e0e7ef; font-size: 10px; }
.runtime-card small { margin-top: 3px; color: #66768b; font-size: 7px; }
.admin-profile { width: 100%; display: grid; grid-template-columns: 33px 1fr auto; align-items: center; gap: 9px; margin-top: 12px; padding: 13px 5px 0; color: inherit; text-align: left; background: transparent; border: 0; border-top: 1px solid rgba(255,255,255,.06); }
.admin-profile:hover strong { color: #fff; }
.admin-profile > span { width: 33px; height: 33px; display: grid; place-items: center; color: #073c37; font-size: 9px; font-weight: 800; background: #6bd6c8; border-radius: 8px; }
.admin-profile strong, .admin-profile small { display: block; }
.admin-profile strong { color: #d8e0e9; font-size: 9px; }
.admin-profile small { margin-top: 2px; color: #64748a; font-size: 7px; }
.admin-profile svg { width: 16px; color: #65758a; }
main { grid-column: 2; min-width: 0; padding: 0 28px 34px; }
.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dfe5e2; }
.topbar p { margin: 0 0 4px; color: #899491; font-size: 7px; font-weight: 700; letter-spacing: 1.6px; }
.topbar h1 { margin: 0; font-size: 21px; letter-spacing: -.5px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.last-sync { display: flex; align-items: center; gap: 6px; margin-right: 6px; color: #7c8985; font-size: 8px; }
.last-sync i { width: 5px; height: 5px; background: #2ab78f; border-radius: 50%; }
.icon-button, .primary-button, .ghost-button, .table-action { display: inline-flex; align-items: center; justify-content: center; border: 0; transition: .2s ease; }
.icon-button { width: 39px; height: 39px; color: #596662; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.icon-button:hover { background: #edf2ef; }
.icon-button svg { width: 16px; }
.icon-button.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.primary-button { gap: 7px; min-height: 39px; padding: 0 14px; color: #fff; font-size: 9px; font-weight: 700; background: #142538; border-radius: 8px; box-shadow: 0 8px 20px rgba(15,32,48,.12); }
.primary-button:hover { transform: translateY(-1px); background: #1c354d; }
.primary-button svg { width: 14px; }
.loading { height: 60vh; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.loading span { width: 27px; height: 27px; border: 2px solid #dbe4e0; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
.loading p { font-size: 9px; }
.dashboard-header { display: flex; align-items: flex-end; justify-content: space-between; margin: 25px 0 14px; }
.dashboard-header p { margin: 0; color: var(--muted); font-size: 10px; }
.range-controls { display: flex; align-items: center; gap: 8px; }
.range-tabs { display: flex; padding: 3px; background: #e9eeeb; border-radius: 7px; }
.range-tabs button { min-width: 42px; height: 27px; border: 0; color: #7e8986; font-size: 8px; background: transparent; border-radius: 5px; }
.range-tabs button.active { color: #1a302c; font-weight: 700; background: #fff; box-shadow: 0 2px 7px rgba(18,35,32,.08); }
.custom-range { height: 33px; display: flex; align-items: center; gap: 6px; padding: 3px 3px 3px 9px; color: #7e8986; background: #e9eeeb; border: 1px solid transparent; border-radius: 7px; }
.custom-range.active { border-color: #65c9ba; background: #e5f5f1; }
.custom-range input { width: 116px; border: 0; outline: 0; color: #4f5d59; font-size: 8px; background: transparent; }
.custom-range span { font-size: 7px; }
.custom-range button { height: 25px; padding: 0 10px; border: 0; color: #fff; font-size: 8px; font-weight: 700; background: #183247; border-radius: 5px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.ab-panel { margin-top: 13px; }
.ab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ab-grid > div { padding: 16px; background: #f7f9fb; border: 1px solid #e7ebef; border-radius: 6px; }
.ab-grid span, .ab-grid small { display: block; color: #72808c; font-size: 10px; }
.ab-grid strong { display: block; margin: 7px 0 4px; color: #172532; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.x402-detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.x402-detail-grid > div { padding: 12px; background: #fbfcfd; border: 1px solid #edf0f2; border-radius: 6px; }
.x402-detail-grid span, .x402-detail-grid small { display: block; color: #7b878f; font-size: 8px; line-height: 1.5; }
.x402-detail-grid strong { display: block; margin: 5px 0 2px; color: #1c303c; font-size: 17px; }
.x402-events { margin-top: 16px; border-top: 1px solid #e8ecef; }
.x402-events-header { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 8px; }
.x402-events-header strong { color: #263944; font-size: 10px; }
.x402-events-header span { color: #87939a; font-size: 8px; }
.x402-event { display: grid; grid-template-columns: 120px minmax(180px,1fr) 100px 150px; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid #edf0f2; }
.x402-event-state { width: fit-content; padding: 4px 7px; color: #6d7880; font-size: 7px; font-weight: 700; background: #eef2f4; border-radius: 10px; }
.x402-event.settled .x402-event-state { color: #087b67; background: #ddf5ef; }
.x402-event.verification_failed .x402-event-state,.x402-event.settlement_failed .x402-event-state,.x402-event.service_error .x402-event-state { color: #a54444; background: #f9e8e8; }
.x402-event strong,.x402-event small { display: block; }
.x402-event strong { overflow: hidden; color: #35474f; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.x402-event small { margin-top: 3px; color: #8b969b; font-size: 7px; }
.x402-event-payment { text-align: right; }
.x402-event-payment b { color: #213944; font-size: 9px; }
.x402-event a,.x402-event-detail { overflow: hidden; color: #308a7d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.metric-card, .panel { background: rgba(255,255,255,.93); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 9px 25px rgba(16,34,42,.035); }
.metric-card { position: relative; min-height: 145px; overflow: hidden; padding: 17px; }
.metric-card-header { display: flex; align-items: center; gap: 9px; }
.metric-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; }
.metric-icon svg { width: 15px; }
.metric-icon.teal { color: #088a7c; background: #def5ef; }
.metric-icon.purple { color: #6257cc; background: #eceafd; }
.metric-icon.blue { color: #3979c2; background: #e3effc; }
.metric-icon.amber { color: #ad711e; background: #faeed8; }
.metric-card-header span { color: #596662; font-size: 9px; font-weight: 600; }
.metric-card > strong { display: block; margin-top: 16px; font-size: 25px; letter-spacing: -1px; }
.metric-footer { display: flex; gap: 6px; margin-top: 6px; font-size: 7px; }
.metric-footer b { color: #15927d; }
.metric-footer span { color: #929c99; }
.metric-art { position: absolute; right: 14px; bottom: 18px; width: 61px; height: 32px; display: flex; align-items: flex-end; gap: 3px; }
.metric-art i { flex: 1; height: 35%; background: #69d2c4; border-radius: 2px 2px 0 0; opacity: .65; }
.metric-art i:nth-child(2){height:58%}.metric-art i:nth-child(3){height:45%}.metric-art i:nth-child(4){height:78%}.metric-art i:nth-child(5){height:66%}.metric-art i:nth-child(6){height:100%}
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(310px,.75fr); gap: 13px; margin-top: 13px; }
.panel { padding: 20px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; }
.panel-header p { margin: 0 0 4px; color: #96a09d; font-size: 7px; font-weight: 700; letter-spacing: 1.3px; }
.panel-header h2 { margin: 0; font-size: 14px; }
.panel-header > span { color: #83908c; font-size: 8px; }
.chart-summary { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.chart-summary > div:first-child { padding-right: 20px; border-right: 1px solid #e5e9e7; }
.chart-summary span, .chart-summary strong { display: block; }
.chart-summary span { color: #8b9692; font-size: 7px; }
.chart-summary strong { margin-top: 2px; font-size: 18px; }
.chart-legend { display: flex; align-items: center; gap: 6px; color: #7f8b87; font-size: 7px; }
.chart-legend i { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.chart-legend.human i { background: var(--purple); }
.chart-legend b { color: #34423e; }
.traffic-chart { position: relative; height: 245px; margin-top: 12px; }
.traffic-chart svg { width: 100%; height: 215px; overflow: visible; }
.chart-grid line { stroke: #e6ebe8; stroke-width: 1; stroke-dasharray: 3 5; }
.agent-area { fill: url(#agentFill); }
.human-area { fill: url(#humanFill); }
.agent-line { fill: none; stroke: var(--teal); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.human-line { fill: none; stroke: var(--purple); stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.chart-labels { display: flex; justify-content: space-between; color: #9ba4a1; font-size: 7px; }
.sources-list { margin-top: 18px; }

.research-output-list { display: grid; gap: 22px; }
.research-output-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.research-output-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.research-output-header p { color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.research-output-header h2 { margin: 7px 0 8px; max-width: 850px; font-size: 24px; }
.research-output-header span { color: var(--muted); font-size: 12px; }
.research-summary { max-width: 980px; margin: 22px 0; color: var(--text-soft); font-size: 15px; line-height: 1.85; }
.research-process, .research-sections, .research-evidence { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.research-process h3, .research-sections h3, .research-evidence h3 { margin-bottom: 14px; font-size: 14px; }
.research-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.research-process h3 { grid-column: 1 / -1; }
.research-process > div { padding: 16px; border-radius: 12px; background: var(--soft); }
.research-process b, .research-process span, .research-process small { display: block; }
.research-process span { margin-top: 7px; color: var(--muted); font-size: 12px; }
.research-process p { margin: 10px 0; line-height: 1.55; }
.research-process small { color: var(--teal); }
.research-sections > div { margin-bottom: 18px; }
.research-sections p, .research-sections li { color: var(--text-soft); line-height: 1.75; }
.research-evidence { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.research-evidence h3 { grid-column: 1 / -1; }
.research-evidence a { display: block; padding: 15px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; }
.research-evidence a:hover { border-color: var(--teal); }
.research-evidence span, .research-evidence small { display: block; color: var(--muted); font-size: 11px; }
.research-evidence b { display: block; margin: 6px 0; }
.research-evidence p { color: var(--text-soft); font-size: 12px; line-height: 1.55; }
.research-output-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .research-process, .research-evidence { grid-template-columns: 1fr; }
  .research-process h3, .research-evidence h3 { grid-column: auto; }
}
.source-row { display: grid; grid-template-columns: 1fr 1.5fr 38px; align-items: center; gap: 10px; margin-top: 13px; }
.source-name { display: flex; align-items: center; gap: 8px; font-size: 8px; }
.source-avatar { width: 22px; height: 22px; display: grid; place-items: center; color: #fff; font-size: 7px; font-weight: 700; background: #1a2b3d; border-radius: 6px; }
.source-avatar.a { background: #b77455; }.source-avatar.p { background:#209b95}.source-avatar.g {background:#516dd0}.source-avatar.o {background:#798783}
.source-bar { height: 5px; overflow: hidden; background: #edf1ef; border-radius: 5px; }
.source-bar span { display: block; height: 100%; background: #51c8b7; border-radius: 5px; }
.source-row > b { font-size: 8px; text-align: right; }
.secondary-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 13px; margin-top: 13px; }
.content-health { display: grid; grid-template-columns: 130px 1fr; gap: 25px; align-items: center; margin-top: 20px; }
.health-ring { width: 118px; height: 118px; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at center,#fff 54%,transparent 55%),conic-gradient(#20b59f 0 78%,#e8eeeb 78%); border-radius: 50%; }
.health-ring strong { font-size: 21px; }.health-ring span { color:#8a9591;font-size:7px; }
.health-stats { display: grid; gap: 12px; }
.health-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid #e9edeb; }
.health-row span { color: #7f8b87; font-size: 8px; }.health-row strong { font-size: 9px; }
.event-list { margin-top: 12px; }
.event-row { display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 9px; min-height: 49px; border-top: 1px solid #e8ecea; }
.event-row:first-child { border-top: 0; }
.event-icon { width: 26px; height: 26px; display: grid; place-items: center; color: #178b7b; background: #e2f4ef; border-radius: 7px; }
.event-icon svg { width: 13px; }
.event-row strong,.event-row span { display:block; }
.event-row strong { font-size: 8px; }.event-row span { margin-top:3px;color:#929c99;font-size:7px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.event-row small { color: #9ba4a1; font-size: 7px; }
.view-page { padding-top: 25px; }
.view-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 17px; }
.view-header p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.view-actions { display: flex; gap: 8px; }
.ghost-button { min-height: 35px; gap: 6px; padding: 0 12px; border: 1px solid var(--line); color: #53615d; font-size: 8px; font-weight: 700; background: #fff; border-radius: 7px; }
.ghost-button:hover { background: #edf2ef; }
.table-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.content-filters, .bulk-actions { display: flex; align-items: center; gap: 8px; }
.table-toolbar input { width: 250px; height: 33px; padding: 0 11px; border: 1px solid #dfe5e2; outline: 0; color: var(--ink); font-size: 8px; background: #f8faf9; border-radius: 6px; }
.table-toolbar select { height: 33px; padding: 0 10px; border: 1px solid #dfe5e2; color: #596662; font-size: 8px; background: #fff; border-radius: 6px; }
.bulk-actions span { margin-right: 3px; color: #687570; font-size: 8px; }
.bulk-actions button { height: 29px; padding: 0 9px; border: 1px solid #dce3df; color: #42514d; font-size: 8px; font-weight: 700; background: #f8faf9; border-radius: 6px; }
.bulk-actions button:hover:not(:disabled) { color: #0c776b; border-color: #80cfc3; background: #eaf7f4; }
.bulk-actions button.danger { color: #ad514b; }
.bulk-actions button.danger:hover:not(:disabled) { color: #983f39; border-color: #e1aaa5; background: #fceeed; }
.bulk-actions button:disabled { cursor: not-allowed; opacity: .42; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 13px; color: #8b9692; font-size: 7px; font-weight: 700; letter-spacing: .5px; text-align: left; background: #f6f8f7; }
.data-table td { padding: 13px; color: #3f4c48; font-size: 8px; border-top: 1px solid #e8ecea; }
.data-table tr:hover td { background: #fbfcfb; }
.select-column { width: 38px; text-align: center !important; }
.select-column input { width: 14px; height: 14px; accent-color: var(--teal); cursor: pointer; }
.content-title { max-width: 330px; }
.content-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.content-title span { display: block; margin-top: 3px; color: #9aa3a0; font-size: 7px; }
.content-link { width: 100%; padding: 0; border: 0; color: inherit; text-align: left; background: transparent; }
.content-link:hover strong { color: #0a8879; text-decoration: underline; text-underline-offset: 3px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; font-size: 7px; font-weight: 700; border-radius: 10px; }
.status-pill.published, .status-pill.running, .status-pill.completed { color: #1d876d; background: #e6f5f0; }
.status-pill.review, .status-pill.queued { color:#9a7128;background:#fbf1df}
.status-pill.draft, .status-pill.paused, .status-pill.idle {color:#6f7b77;background:#edf0ef}
.status-pill.error, .status-pill.failed {color:#b5534c;background:#fbe9e7}
.status-pill::before { content:""; width:4px;height:4px;background:currentColor;border-radius:50%; }
.access-pill { padding: 3px 6px; color: #566b80; font-size: 7px; background: #edf3f7; border-radius: 4px; }
.table-action { width: 27px; height: 27px; color: #65736f; background: #f0f4f2; border-radius: 6px; }
.table-action:hover { color:#107d70;background:#e0f2ed; }
.table-action svg { width: 13px; }
.action-group { display: flex; gap: 5px; }
.crawler-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.crawler-card { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.crawler-card-top { display: flex; align-items: center; gap: 10px; }
.crawler-logo { width: 35px; height: 35px; display: grid; place-items: center; color: #0a7166; font-size: 8px; font-weight: 800; background: #dff5ef; border-radius: 9px; }
.crawler-card-top > div { flex:1; }
.crawler-card-top strong,.crawler-card-top small{display:block}.crawler-card-top strong{font-size:10px}.crawler-card-top small{margin-top:3px;color:#929c99;font-size:7px}
.crawler-tags { display:flex;flex-wrap:wrap;gap:5px;margin:14px 0; }
.crawler-tags span { padding:4px 6px;color:#63716d;font-size:7px;background:#f1f4f2;border-radius:4px; }
.crawler-metrics { display:grid;grid-template-columns:repeat(3,1fr);padding:12px 0;border-top:1px solid #e8ecea;border-bottom:1px solid #e8ecea; }
.crawler-metrics div{text-align:center;border-left:1px solid #e8ecea}.crawler-metrics div:first-child{border-left:0}
.crawler-metrics strong,.crawler-metrics span{display:block}.crawler-metrics strong{font-size:11px}.crawler-metrics span{margin-top:3px;color:#929c99;font-size:6px}
.crawler-card-actions{display:flex;gap:7px;margin-top:13px}.crawler-card-actions button{flex:1;padding:0 7px;white-space:nowrap}
.source-registry-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; margin-bottom: 14px; }
.source-registry-summary > div { padding: 15px 17px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.source-registry-summary span, .source-registry-summary strong { display: block; }
.source-registry-summary span { color: #83908c; font-size: 8px; }
.source-registry-summary strong { margin-top: 5px; font-size: 20px; }
.source-result-count { color: #84908c; font-size: 8px; }
.source-table-wrap { overflow-x: auto; }
.source-table { min-width: 1080px; }
.source-table td { vertical-align: top; }
.source-identity { min-width: 270px; }
.source-identity strong, .source-identity span, .source-identity a { display: block; }
.source-identity strong { font-size: 9px; }
.source-identity span { margin-top: 3px; color: #7e8b87; }
.source-identity a { max-width: 320px; margin-top: 5px; overflow: hidden; color: #178b7b; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.source-method { display: block; margin-top: 6px; color: #84908c; font-size: 7px; }
.trust-tier { display: inline-grid; min-width: 26px; height: 24px; place-items: center; color: #176f64; background: #e3f4f0; border-radius: 6px; }
.trust-tier.t3, .trust-tier.t4 { color: #8a682c; background: #f8eedc; }
.assigned-agent-list { display: flex; max-width: 235px; flex-wrap: wrap; gap: 4px; }
.assigned-agent-list span { padding: 3px 5px; color: #536662; font-size: 7px; background: #edf3f1; border-radius: 4px; }
.assigned-agent-list em, .test-pending { color: #9aa4a0; font-size: 7px; font-style: normal; }
.source-test-state { max-width: 170px; }
.source-test-state small { display: block; max-width: 170px; margin-top: 5px; overflow: hidden; color: #8b9692; font-size: 7px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.table-action.danger { color: #ad514b; font-size: 15px; }
.table-action.danger:hover { color: #983f39; background: #fceeed; }
.source-modal { width: min(760px, 94vw); max-height: 92vh; overflow-y: auto; }
.source-form-three { grid-template-columns: repeat(3, 1fr); }
.source-agent-fieldset { margin: 0; padding: 12px; border: 1px solid #dce3df; border-radius: 8px; }
.source-agent-fieldset legend { padding: 0 5px; color: #53605c; font-size: 8px; font-weight: 700; }
.source-agent-fieldset > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.source-agent-fieldset label { display: flex; grid-template-columns: none; align-items: center; gap: 8px; padding: 8px; background: #f5f8f7; border-radius: 6px; }
.source-agent-fieldset input, .source-checkbox input { width: 14px; height: 14px; flex: 0 0 auto; padding: 0; accent-color: var(--teal); }
.source-agent-fieldset span strong, .source-agent-fieldset span small { display: block; }
.source-agent-fieldset span strong { color: #364641; font-size: 8px; }
.source-agent-fieldset span small { margin-top: 2px; color: #8b9692; font-size: 7px; }
.source-auth-fieldset > .source-auth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.source-auth-fieldset > .source-auth-grid[hidden] { display: none; }
.source-auth-fieldset .source-auth-grid label { display: grid; grid-template-columns: 1fr; align-items: initial; gap: 6px; padding: 0; background: transparent; }
.source-auth-fieldset .source-auth-grid input, .source-auth-fieldset .source-auth-grid select { width: 100%; }
.source-auth-fieldset > label.source-checkbox { margin-top: 10px; padding: 0; background: transparent; }
.source-auth-note { margin: 9px 0 0; color: #7c8a86; font-size: 7px; line-height: 1.6; }
.modal label.source-checkbox { display: flex; grid-template-columns: none; align-items: center; justify-content: flex-start; gap: 8px; }
.job-timeline { margin-top: 15px; }
.job-row { display:grid;grid-template-columns:14px 170px 1fr 90px 80px;align-items:center;gap:12px;min-height:56px;border-top:1px solid #e8ecea; }
.job-row:first-child{border-top:0}.job-dot{width:7px;height:7px;background:#26b696;border-radius:50%;box-shadow:0 0 0 4px rgba(38,182,150,.1)}
.job-row > div strong,.job-row > div span{display:block}.job-row > div strong{font-size:9px}.job-row > div span{margin-top:3px;color:#929c99;font-size:7px}
.job-row > span,.job-row > small{color:#788581;font-size:8px}.job-row > b{font-size:8px}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.setting-card{padding:20px;background:#fff;border:1px solid var(--line);border-radius:12px}
.setting-card h2{margin:0 0 15px;font-size:13px}.setting-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid #e8ecea}
.setting-row div strong,.setting-row div span{display:block}.setting-row div strong{font-size:9px}.setting-row div span{margin-top:3px;color:#929c99;font-size:7px}
.toggle{width:34px;height:19px;padding:2px;border:0;background:#cad2cf;border-radius:12px}.toggle::before{content:"";display:block;width:15px;height:15px;background:#fff;border-radius:50%;transition:.2s}.toggle.on{background:#27b19a}.toggle.on::before{transform:translateX(15px)}
.toast { position:fixed;z-index:100;right:24px;top:22px;min-width:270px;display:flex;align-items:center;gap:10px;padding:12px 14px;color:#fff;background:#132638;border:1px solid rgba(255,255,255,.08);border-radius:9px;box-shadow:0 20px 50px rgba(9,24,35,.22);opacity:0;pointer-events:none;transform:translateY(-12px);transition:.25s ease}
.toast.show{opacity:1;transform:translateY(0)}.toast>span{width:28px;height:28px;display:grid;place-items:center;color:#0c4c42;background:#5bd3c3;border-radius:50%}.toast>span svg{width:14px}
.toast strong,.toast small{display:block}.toast strong{font-size:9px}.toast small{margin-top:2px;color:#91a3af;font-size:7px}
.modal-backdrop{position:fixed;z-index:90;inset:0;display:grid;place-items:center;padding:24px;background:rgba(7,18,29,.66);backdrop-filter:blur(7px);opacity:0;visibility:hidden;transition:.22s ease}
.modal-backdrop.open{opacity:1;visibility:visible}.modal{width:min(620px,90vw);padding:25px;background:#fff;border-radius:15px;box-shadow:0 30px 80px rgba(7,20,31,.28);transform:translateY(12px);transition:.22s ease}.open .modal{transform:translateY(0)}
.modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding-bottom:17px;border-bottom:1px solid var(--line)}.modal-header span{color:#159783;font-size:7px;font-weight:700;letter-spacing:1.3px}.modal-header h2{margin:5px 0 0;font-size:18px}.modal-header button{width:30px;height:30px;border:0;color:#64716d;font-size:19px;background:#edf1ef;border-radius:50%}
.modal form{display:grid;gap:14px;margin-top:19px}.modal label{display:grid;gap:6px;color:#53605c;font-size:8px;font-weight:700}.modal input,.modal select,.modal textarea{width:100%;padding:10px 11px;border:1px solid #dce3df;outline:0;color:var(--ink);font-size:9px;background:#f9fbfa;border-radius:6px}.modal textarea{resize:vertical;line-height:1.6}.modal input:focus,.modal select:focus,.modal textarea:focus{border-color:#69c9bb;box-shadow:0 0 0 3px rgba(37,178,156,.09)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:5px}
.schedule-modal { width: min(520px, 90vw); }
.schedule-modal .modal-header h2 b { font-weight: inherit; }
.schedule-note { margin: 0; padding: 11px 13px; color: #687570; font-size: 8px; line-height: 1.7; background: #f1f6f4; border-radius: 7px; }
.modal.detail-modal { width: min(960px, 94vw); max-height: 90vh; overflow: hidden; }
.content-detail-body { max-height: calc(90vh - 105px); overflow: auto; padding: 20px 5px 5px; }
.detail-loading { padding: 70px; color: var(--muted); text-align: center; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-meta span { padding: 5px 8px; color: #62716c; font-size: 8px; background: #eef3f1; border-radius: 5px; }
.detail-dek { margin: 18px 0 0; color: #263a45; font-family: Georgia, "Songti SC", serif; font-size: 18px; line-height: 1.65; }
.detail-summary { padding: 16px; color: #53635e; font-size: 11px; line-height: 1.85; background: #f4f8f6; border-left: 3px solid var(--teal); }
.detail-sections section { padding: 20px 0; border-top: 1px solid var(--line); }
.detail-sections h3, .detail-sources h3 { margin: 0 0 12px; font-size: 15px; }
.detail-sections p, .detail-sections li { color: #45554f; font-family: Georgia, "Songti SC", serif; font-size: 12px; line-height: 1.9; }
.detail-sections blockquote { margin: 14px 0; padding: 13px 17px; color: #1b675e; font-family: Georgia, "Songti SC", serif; font-size: 13px; line-height: 1.8; background: #edf8f5; border-radius: 8px; }
.detail-table-wrap { overflow: auto; margin-top: 12px; }
.detail-table-wrap table { width: 100%; border-collapse: collapse; }
.detail-table-wrap th, .detail-table-wrap td { padding: 9px; color: #52615c; font-size: 9px; line-height: 1.6; text-align: left; border: 1px solid #dfe6e2; }
.detail-table-wrap th { color: #33443e; background: #f1f5f3; }
.detail-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding-top: 20px; border-top: 1px solid var(--line); }
.detail-sources h3 { grid-column: 1 / -1; }
.detail-sources a, .detail-source-unlinked { display: block; padding: 12px; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; }
.detail-sources a:hover { border-color: #62c8b9; }
.detail-source-unlinked { opacity: .72; }
.detail-sources span, .detail-sources strong, .detail-sources small { display: block; }
.detail-sources span, .detail-sources small { color: #84908c; font-size: 8px; }
.detail-sources strong { margin: 5px 0; font-size: 10px; }
@media(max-width:1260px){.metric-grid,.ab-grid,.x402-detail-grid{grid-template-columns:repeat(2,1fr)}.x402-event{grid-template-columns:110px minmax(160px,1fr) 90px 130px}.crawler-card-grid{grid-template-columns:repeat(2,1fr)}.source-agent-fieldset>div{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.ab-grid,.x402-detail-grid{grid-template-columns:1fr}.x402-events-header{display:grid}.x402-event{grid-template-columns:1fr;gap:5px;padding:10px 0}.x402-event-payment{text-align:left}}
.growth-note { color: #65758a; font-size: 12px; line-height: 1.7; margin: 18px 24px; }
.growth-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.growth-table th, .growth-table td { padding: 12px 24px; text-align: left; border-top: 1px solid #edf0f4; }
.table-scroll { overflow-x: auto; }

.language-picker {position:fixed;right:22px;top:18px;z-index:1000;padding:7px 10px;border:1px solid #b9c4d3;border-radius:6px;background:#fff;color:#172b45;font:13px system-ui;max-width:110px;}

.top-actions .language-picker {position:static;flex-shrink:0;}
html[lang="en"] .nav-item {height:auto;min-height:46px;text-align:left;font-size:13px;line-height:1.3;}
html[lang="en"] .nav-item svg {flex-shrink:0;}

.original-record {margin:12px 0;font-size:13px;line-height:1.6;}
.original-record > summary {cursor:pointer;color:#45657d;}
.original-record [data-original-language] {overflow-wrap:anywhere;}

.detail-sections pre,.research-sections pre {max-width:100%;overflow:auto;white-space:pre;background:#101d2d;color:#e4edf7;padding:16px;border-radius:6px;}
