:root {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:#22332e;
  background:#f5f6f2;
  font-synthesis:none;
  font-size:14px;
  --green:#174e3a;
  --lime:#dbedab;
  --muted:#7c8781;
  --border:#e0e5dd;
  --paper:#fff
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select {
  font:inherit
}
button {
  cursor:pointer;
  border:1px solid transparent;
  border-radius:7px;
  background:var(--green);
  color:#fff;
  padding:11px 17px;
  transition:background .15s
}
button:hover {
  background:#28664f
}
button:disabled {
  cursor:default;
  opacity:.45
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid #92bd75;
  outline-offset:3px
}
a {
  color:var(--green)
}
[hidden] {
  display:none!important
}
h1,h2,p {
  margin-top:0
}
h1 {
  font-size:32px;
  letter-spacing:-1px;
  font-weight:600;
  line-height:1.25;
  margin-bottom:13px
}
h2 {
  font-size:16px;
  font-weight:600;
  margin-bottom:7px
}
.muted {
  color:var(--muted);
  font-size:12px;
  line-height:1.7
}
.eyebrow {
  color:#778779;
  font-size:10px;
  font-weight:650;
  letter-spacing:1.8px;
  margin-bottom:14px
}
.secondary {
  background:#fff;
  border-color:var(--border);
  color:#40544a
}
.secondary:hover {
  background:#edf2e9
}
input,select {
  display:block;
  width:100%;
  margin-top:7px;
  padding:11px;
  border:1px solid #dce3d9;
  background:#fff;
  border-radius:6px;
  color:#263c30;
  min-width:0
}
label {
  font-size:11px;
  font-weight:550;
  color:#67766b
}
.login {
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#fbfcf8
}
.login-card {
  align-self:center;
  justify-self:center;
  width:min(390px,80%);
  padding:55px 0
}
.brand-mark {
  font-size:42px;
  font-weight:750;
  letter-spacing:-4px;
  margin:45px 0 48px;
  color:var(--green)
}
.brand-mark span {
  color:#90b865;
  margin-left:8px
}
.login h1 {
  font-size:37px;
  margin-bottom:18px
}
.login form {
  margin-top:42px
}
.login form button {
  display:flex;
  justify-content:space-between;
  width:100%;
  margin-top:18px;
  padding:14px 18px
}
.login form input {
  padding:14px
}
.login-foot {
  margin-top:46px;
  font-size:11px;
  color:#94a18f
}
#login-error {
  min-height:20px;
  color:#a0473a;
  margin-top:15px;
  font-size:12px
}
.login-art {
  background:#153f30;
  min-height:100vh;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:13% 12%;
  color:#e2edc7
}
.login-art>span {
  font-size:clamp(40px,5.5vw,82px);
  line-height:1.12;
  letter-spacing:-4px;
  font-weight:650;
  z-index:1
}
.login-art>small {
  margin-top:38px;
  letter-spacing:3px;
  color:#a8c1a5;
  z-index:1
}
.orbit {
  position:absolute;
  border:1px solid #6a8c5c55;
  border-radius:50%;
  width:550px;
  height:550px;
  transform:rotate(-30deg);
  right:-200px;
  top:-200px
}
.o2 {
  width:700px;
  height:700px;
  right:-280px;
  top:-275px
}
.o3 {
  width:850px;
  height:850px;
  right:-360px;
  top:-350px
}
.sidebar {
  width:228px;
  position:fixed;
  inset:0 auto 0 0;
  background:#fdfef9;
  border-right:1px solid var(--border);
  padding:35px 22px;
  display:flex;
  flex-direction:column
}
.brand {
  display:flex;
  align-items:center;
  text-decoration:none;
  font-size:25px;
  font-weight:800;
  letter-spacing:-2px;
  gap:12px;
  margin-bottom:57px
}
.brand span {
  font-size:10px;
  font-weight:650;
  letter-spacing:1.1px
}
.sidebar>.eyebrow {
  padding-left:13px;
  font-size:10px;
  color:#9ba794
}
.sidebar nav {
  display:flex;
  flex-direction:column;
  gap:8px
}
.sidebar nav button {
  display:flex;
  gap:16px;
  align-items:center;
  background:transparent;
  color:#7f8d80;
  text-align:left;
  font-size:18px;
  padding:13px
}
.sidebar nav button span {
  font-size:13px
}
.sidebar nav button.active {
  background:#eaf0df;
  color:#24523e;
  font-weight:600
}
.sidebar nav button:hover {
  background:#f0f4e9
}
.sidebar-foot {
  margin-top:auto;
  font-size:11px;
  color:#6f826e;
  padding:15px 10px 0
}
.sidebar-foot p {
  font-size:10px;
  color:#a0aa9c;
  margin:9px 0 26px
}
.sidebar-foot button {
  border:1px solid var(--border);
  background:transparent;
  color:#6e7c70;
  width:100%;
  padding:9px
}
.dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:#88a86c;
  border-radius:50%;
  margin-right:8px
}
.workspace {
  margin-left:228px;
  padding:0 38px;
  max-width:1900px
}
.topbar {
  height:77px;
  border-bottom:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:11px;
  color:#8a9588
}
.private-badge {
  font-size:9px;
  border:1px solid #d8e1cf;
  padding:5px 9px;
  border-radius:4px;
  letter-spacing:1px;
  color:#7d9070
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:39px 0 25px;
  gap:20px
}
.page-heading .eyebrow {
  font-size:9px;
  letter-spacing:2px;
  margin-bottom:9px
}
.page-heading .muted {
  margin-bottom:0
}
.page-heading button {
  white-space:nowrap;
  font-size:12px
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:17px;
  margin-bottom:23px
}
.metric {
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  padding:24px
}
.metric .muted {
  margin-bottom:16px;
  font-size:11px
}
.metric strong {
  display:block;
  font-size:34px;
  font-weight:550;
  letter-spacing:-1.3px;
  font-variant-numeric:tabular-nums;
  margin-bottom:11px
}
.metric>span {
  font-size:10px
}
.metric:first-child {
  background:#e8efdc;
  border-color:#dfe7d0
}
.panel {
  background:#fff;
  border:1px solid var(--border);
  border-radius:9px;
  overflow:hidden;
  margin-bottom:23px
}
.panel-head {
  padding:22px 23px;
  border-bottom:1px solid #edf0e9;
  display:flex;
  justify-content:space-between
}
.panel-head p {
  margin-bottom:0;
  font-size:11px
}
.overview-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px
}
.overview-grid .panel {
  min-width:0
}
.overview-grid .panel>p {
  padding:0 24px;
  word-break:break-word
}
.run-summary {
  display:flex;
  gap:18px;
  align-items:center;
  padding:32px 24px;
  flex-wrap:wrap
}
.run-summary strong {
  font-size:18px;
  font-weight:550
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:12px
}
th {
  font-size:10px;
  font-weight:550;
  color:#8a9689;
  background:#fcfdf9;
  padding:13px 18px;
  border-bottom:1px solid #e9ede4;
  white-space:nowrap
}
td {
  padding:16px 18px;
  border-bottom:1px solid #edf0e8;
  color:#586959;
  line-height:1.6;
  vertical-align:top;
  font-variant-numeric:tabular-nums;
  max-width:360px;
  overflow-wrap:anywhere
}
tr:last-child td {
  border-bottom:0
}
tbody tr:hover {
  background:#fbfdf8
}
td strong {
  color:#304a38;
  font-size:12px
}
td small {
  display:block;
  font-size:10px;
  margin-top:4px;
  max-width:200px
}
.table-scroll {
  overflow:auto
}
.pill {
  display:inline-block;
  font-size:10px;
  padding:4px 8px;
  border-radius:4px;
  white-space:nowrap
}
.good {
  background:#edf4e7;
  color:#62844d
}
.bad {
  background:#f9ece6;
  color:#a4664b
}
.warn {
  background:#f5f2e4;
  color:#9b8d50
}
.form-tag {
  font-size:10px;
  padding:5px 8px;
  border:1px solid #e2e8dd;
  background:#f9fbf5;
  border-radius:4px;
  white-space:nowrap
}
.notice {
  padding:13px 16px;
  border:1px solid #dce7d0;
  background:#f0f5e8;
  color:#78876d;
  font-size:11px;
  border-radius:6px;
  line-height:1.7;
  margin:0 0 23px
}
.notice.error {
  background:#fbf3e9;
  border-color:#eadfc7;
  color:#9e7b48
}
.filters {
  display:flex;
  gap:13px;
  align-items:end;
  flex-wrap:wrap;
  background:#eef1e9;
  border:1px solid #e1e6da;
  padding:18px;
  border-radius:8px;
  margin-bottom:20px
}
.filters label {
  flex:1;
  min-width:120px
}
.filters label input,.filters select {
  font-size:11px;
  padding:10px
}
.filters button {
  font-size:11px;
  padding:11px 22px
}
.pagination {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:20px 0 30px;
  gap:10px
}
.pagination>div {
  display:flex;
  gap:10px
}
.pagination button {
  font-size:11px
}
.empty-state {
  padding:55px 25px;
  text-align:center;
  color:#8b9a86;
  font-size:12px
}
.empty-icon {
  font-size:27px;
  margin-bottom:15px;
  color:#bbcab1
}
.page-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:9px;
  color:#a5afa0;
  padding:27px 0 29px;
  border-top:1px solid var(--border);
  margin-top:30px
}
.page-footer>span:first-child {
  letter-spacing:2px
}
.document-links {
  display:flex;
  flex-direction:column;
  align-items:start;
  gap:6px
}
.text-button {
  padding:0;
  color:#3e7453;
  background:none;
  text-align:left;
  font-size:11px;
  overflow-wrap:anywhere
}
.text-button:hover {
  background:none;
  color:#7f9f49;
  text-decoration:underline
}
dialog {
  border:1px solid #dce4d4;
  border-radius:12px;
  padding:0;
  width:min(1100px,94vw);
  max-height:92vh;
  color:#374d3a;
  background:#fbfcf8;
  box-shadow:0 20px 80px #153b352a
}
dialog::backdrop {
  background:#172d2a88
}
.reader-head {
  padding:26px 28px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid #e3e8dd
}
.reader-head h2 {
  font-size:20px;
  overflow-wrap:anywhere
}
.reader-head .eyebrow {
  font-size:9px
}
.reader-head button {
  align-self:start;
  white-space:nowrap
}
.document-meta {
  padding:18px 28px;
  display:flex;
  gap:13px;
  align-items:center;
  flex-wrap:wrap;
  color:#8b9787;
  font-size:11px
}
.hash {
  flex-basis:100%;
  font-size:9px;
  overflow-wrap:anywhere
}
.reader-tabs {
  display:flex;
  gap:8px;
  padding:0 28px 15px;
  flex-wrap:wrap;
  border-bottom:1px solid #e5eadd
}
.reader-tabs button {
  font-size:12px;
  background:transparent;
  color:#7f9077
}
.reader-tabs button.active {
  color:#31563b;
  background:#e8f0dc
}
.reader-tabs .secondary {
  margin-left:auto;
  border:1px solid #dde6d7
}
.document-content {
  background:#fff;
  padding:28px;
  min-height:250px;
  overflow:auto;
  max-height:58vh
}
.markdown {
  max-width:900px;
  font-size:13px;
  line-height:1.9
}
.markdown h2,.markdown h3 {
  margin:25px 0 15px
}
.markdown p {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin:0 0 14px
}
.markdown li {
  margin-bottom:13px;
  padding-left:5px;
  overflow-wrap:anywhere
}
.markdown ul {
  padding-left:22px;
  margin:0
}
.markdown pre,.original,details pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:11px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;
  max-width:100%;
  color:#62705e
}
details {
  margin-top:10px
}
summary {
  cursor:pointer;
  font-size:10px;
  color:#85967c
}
svg {
  display:block;
  width:100%;
  height:auto;
  padding:18px 20px;
  font:10px sans-serif;
  fill:#8a9b80
}
.chart-grid {
  stroke:#e8eee1;
  stroke-width:1
}
.chart-line {
  fill:none;
  stroke:#5b8150;
  stroke-width:2
}
.chart-dot {
  fill:#5b8150
}
@media(min-width:1600px) {
  .workspace {
    padding:0 55px
  }
  .metrics {
    gap:24px
  }
  .metric {
    padding:30px
  }
}
@media(max-width:1100px) {
  .sidebar {
    width:190px;
    padding:30px 14px
  }
  .workspace {
    margin-left:190px;
    padding:0 23px
  }
  .brand {
    font-size:22px
  }
  .brand span {
    font-size:8px
  }
  .metrics {
    gap:10px
  }
  .metric {
    padding:18px
  }
  .metric strong {
    font-size:29px
  }
  .overview-grid {
    grid-template-columns:1fr
  }
  .run-summary {
    padding:25px
  }
  .filters {
    gap:10px
  }
  .filters label {
    min-width:150px
  }
}
@media(max-width:760px) {
  .login {
    grid-template-columns:1fr
  }
  .login-art {
    display:none
  }
  .login-card {
    width:min(390px,85%)
  }
  .sidebar {
    position:static;
    width:100%;
    padding:16px;
    display:block;
    border-right:0;
    border-bottom:1px solid var(--border)
  }
  .brand {
    margin-bottom:16px;
    font-size:21px;
    gap:12px
  }
  .brand span {
    font-size:10px
  }
  .sidebar>.eyebrow {
    display:none
  }
  .sidebar nav {
    flex-direction:row;
    gap:4px;
    justify-content:space-between
  }
  .sidebar nav button {
    font-size:13px;
    padding:10px 7px;
    gap:5px
  }
  .sidebar nav button span {
    font-size:11px
  }
  .sidebar-foot {
    position:absolute;
    right:15px;
    top:12px;
    padding:0;
    font-size:0
  }
  .sidebar-foot p,.sidebar-foot>.dot {
    display:none
  }
  .sidebar-foot button {
    font-size:10px;
    padding:6px 10px
  }
  .workspace {
    margin-left:0;
    padding:0 16px
  }
  .topbar {
    height:48px
  }
  .page-heading {
    margin:27px 0 23px;
    align-items:center
  }
  .page-heading h1 {
    font-size:27px
  }
  .page-heading .eyebrow {
    font-size:8px
  }
  .page-heading .muted {
    font-size:10px;
    max-width:230px
  }
  .page-heading button {
    font-size:10px;
    padding:9px
  }
  .metrics {
    grid-template-columns:repeat(2,1fr);
    gap:11px
  }
  .metric {
    padding:18px
  }
  .metric strong {
    font-size:32px
  }
  .overview-grid {
    gap:0
  }
  .filters {
    padding:12px
  }
  .filters label {
    min-width:120px
  }
  .filters input {
    max-width:100%
  }
  .panel-head {
    padding:18px
  }
  .page-footer {
    font-size:8px;
    flex-direction:column;
    gap:7px
  }
  .document-content {
    padding:18px
  }
  .reader-head {
    padding:20px
  }
  .reader-head h2 {
    font-size:16px
  }
  .document-meta {
    padding:15px 20px
  }
  .reader-tabs {
    padding:0 13px 13px;
    gap:2px
  }
  .reader-tabs button {
    font-size:10px;
    padding:8px
  }
  .reader-tabs .secondary {
    margin-left:0
  }
  .pagination {
    align-items:start
  }
  .pagination .muted {
    font-size:10px
  }
  .pagination button {
    font-size:10px;
    padding:8px
  }
}
/* Keep large source and market lists inside their panels. */
.panel .table-scroll {
  max-height:560px;
  overflow:auto
}
.panel th {
  position:sticky;
  top:0;
  z-index:1
}
.sidebar nav svg {
  width:18px;
  height:18px;
  min-width:18px;
  padding:0;
  fill:none;
  stroke:currentColor;
  stroke-width:1.2
}
/* Reusable stock entry points and focused stock page. */
.ticker-link { display:inline-flex; align-items:center; min-height:32px; padding:3px 0; color:var(--green); font-weight:650; text-decoration:underline; text-underline-offset:4px; }
.ticker-link:hover { color:#658b46; }
.stock-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
.stock-context { color:#6b7e6c; line-height:1.7; margin:0 0 20px; }
.stock-health { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.stock-state { padding:18px 22px; }
.stock-state p { margin:12px 0 0; overflow-wrap:anywhere; }
.stock-error { color:#a4664b; font-size:13px; line-height:1.7; }
.stock-browse { margin:0 20px 20px; }
.stock-coverage { display:flex; gap:12px; align-items:center; margin:6px 0 18px; }
.stock-actions { display:flex; gap:12px; flex-wrap:wrap; margin:0 0 24px; }
.chart-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 20px 0; }
.chart-modes { display:flex; gap:6px; }
.chart-modes button { min-height:40px; padding:8px 13px; font-size:12px; }
.chart-modes button.active { background:#e7efdc; border-color:#bfd1af; color:#24543d; }
.chart-readout { display:flex; flex-wrap:wrap; gap:7px 18px; padding:10px 20px; font-size:12px; color:#667b64; line-height:1.7; }
.chart-readout strong { color:#34523b; }
.chart-note { font-size:11px; color:#8a9684; padding:0 20px 16px; line-height:1.7; margin:0; }
.session-boundary { stroke:#cad4c1; stroke-dasharray:3 4; }
.chart-cursor { stroke:#90a287; stroke-dasharray:2 3; pointer-events:none; }
.candle-up { fill:#5b8150; stroke:#5b8150; }
.candle-down { fill:#b5755f; stroke:#b5755f; }
.candle-wick { stroke-width:1; }
.volume-bar { opacity:.55; stroke:none; }
.raw-data { border:1px solid var(--border); border-radius:8px; background:#fff; margin-bottom:24px; }
.raw-data>summary { padding:16px 20px; font-size:14px; color:#52704b; }
.raw-data>.panel { border:0; margin:0; }

.candle-invalid {fill:#c19a4f;stroke:#a27d34;}
.candle-unknown {fill:#98a591;stroke:#98a591;}
.sec-document { max-width:960px; margin:auto; font-size:15px; line-height:1.85; color:#354b3b; }
.sec-document h1,.sec-document h2,.sec-document h3,.sec-document h4 { line-height:1.5; margin:24px 0 16px; }
.sec-document p { white-space:normal; margin:0 0 16px; }
.sec-document a { color:#2d6d49; text-decoration:underline; overflow-wrap:anywhere; }
.sec-document strong { font-weight:700; }
.sec-document blockquote { margin:18px 0; padding:10px 18px; border-left:3px solid #c3d4b3; background:#f6f9f0; }
.document-table { width:100%; overflow:auto; margin:20px 0; border:1px solid var(--border); border-radius:5px; }
.document-table table { min-width:100%; width:auto; font-size:13px; }
.document-table th,.document-table td { max-width:none; min-width:85px; padding:10px 14px; border:1px solid #e3e9de; vertical-align:top; }
.document-table th { background:#edf3e6; color:#3b573d; }
.sec-document code { font:13px/1.7 ui-monospace,Consolas,monospace; background:#f0f4ea; padding:1px 4px; border-radius:3px; }
.sec-document pre { padding:14px; overflow:auto; white-space:pre-wrap; background:#f5f7f0; }
.chart-timezone { font-size:12px; color:#71866c; }
.time-grid { stroke:#e4eadd; stroke-width:.7; stroke-dasharray:2 4; pointer-events:none; }
.time-tick { stroke:#aab9a0; }
.axis-date { fill:#607757; }
.axis-time { fill:#607757; }
.time-badge-bg { fill:#e4eddb; }
.market-chart svg .time-badge-text { fill:#2f5739; font-size:11px; font-weight:600; }
.chart-readout strong { font-size:14px; }
