:root {
  --ink: #22362e;
  --muted: #7a857f;
  --green: #245b46;
  --lime: #cef39b;
  --line: #e6ebe7;
  --bg: #f6f8f6;
  --red: #d75c53;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    sans-serif;
  letter-spacing: -0.025em;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.58;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #87b88c;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 14px;
}
[hidden] {
  display: none !important;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  padding: 12px;
  background: white;
  z-index: 100;
}
.sidebar {
  width: 218px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 31px 19px 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 7px 48px;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.8px;
}
.brand-light {
  display: block;
  font-weight: 450;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-top: 8px;
}
.brand-mark {
  width: 36px;
  height: 42px;
  border-radius: 11px;
  background: #1c4535;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  padding: 11px 8px;
}
.brand-mark i {
  width: 4px;
  background: var(--lime);
  border-radius: 2px;
  height: 9px;
}
.brand-mark i:nth-child(2) {
  height: 15px;
}
.brand-mark i:nth-child(3) {
  height: 21px;
}
.nav-label,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
  color: var(--muted);
}
.nav-label {
  margin: 0 13px 14px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 13px;
  border: 0;
  background: none;
  text-align: left;
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 13px;
  color: #66746b;
}
.nav-link:hover {
  background: #f5f8f4;
}
.nav-link.active {
  color: var(--green);
  background: #eaf2e7;
  font-weight: 650;
}
.nav-icon {
  width: 17px;
  font-size: 21px;
  line-height: 1;
  text-align: center;
}
.nav-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 22px 11px 0;
}
.market-label {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.3px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: #79a882;
  flex-shrink: 0;
}
.sidebar-bottom p {
  font-size: 12px;
  margin: 9px 0 3px;
}
.sidebar-bottom small {
  font-size: 10px;
  color: var(--muted);
}
.sidebar-bottom a {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  font-size: 11px;
  color: #68786c;
}
.workspace {
  margin-left: 218px;
}
.topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.breadcrumb {
  color: #8a938e;
  display: flex;
  gap: 16px;
}
.breadcrumb strong {
  color: #4f6156;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #63796b;
}
.connection.offline {
  color: #a57031;
}
.connection.offline .dot {
  background: #bb914f;
}
.timezone {
  letter-spacing: 1.4px;
  color: #8c9890;
  font-size: 9px;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
main {
  max-width: 1580px;
  margin: auto;
  padding: 34px 38px 22px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.page-heading .eyebrow {
  color: #5d836a;
  font-size: 9px;
  letter-spacing: 2px;
}
.page-heading h1 {
  font-size: 27px;
  letter-spacing: -1.1px;
  font-weight: 650;
  margin: 6px 0;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
}
.button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button.secondary {
  border-color: #dde5df;
  background: #fff;
  color: #52675a;
}
.button.secondary:hover {
  background: #eef4ec;
}
.button.secondary span {
  font-size: 17px;
}
.button.primary {
  background: var(--lime);
  color: #254335;
}
.button.primary:hover {
  background: #dcf8b8;
}
.button.dark {
  background: var(--green);
  color: #fff;
}
.button.dark:hover {
  background: #18432f;
}
.notice {
  border: 1px solid #ecdfbd;
  border-radius: 9px;
  background: #fffbef;
  color: #8a6b35;
  padding: 13px 17px;
  font-size: 12px;
  margin-bottom: 18px;
  white-space: pre-line;
}
.notice.danger {
  border-color: #ecccc7;
  background: #fff6f3;
  color: #aa5c4f;
}
.overview-banner {
  position: relative;
  background: #204936;
  border: 1px solid #234631;
  border-radius: var(--radius);
  color: white;
  overflow: hidden;
  min-height: 232px;
  margin-bottom: 23px;
  display: flex;
  justify-content: space-between;
}
.banner-copy {
  padding: 26px 30px;
  position: relative;
  z-index: 1;
}
.banner-tag {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #d0e5b9;
  display: flex;
  gap: 7px;
  align-items: center;
}
.banner-tag .dot {
  background: #c8ed94;
}
.banner-copy h2 {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.8px;
  margin: 12px 0 8px;
}
.banner-copy > p {
  font-size: 11px;
  color: #bed0bf;
}
.banner-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 19px;
}
.banner-hint {
  display: block;
  font-size: 10px;
  color: #adc2b0;
  margin-top: 10px;
}
.notify-control {
  font-size: 11px;
  color: #d4e0d1;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.notify-control input {
  accent-color: #c4e79b;
  width: 14px;
  height: 14px;
  margin: 0;
}
.banner-art {
  width: 40%;
  min-width: 230px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(#ffffff06 1px, transparent 1px),
    linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, black 25%);
}
.orbit {
  position: absolute;
  border: 1px solid #b7d79719;
  border-radius: 50%;
  width: 325px;
  height: 325px;
  right: -55px;
  top: -35px;
}
.orbit-two {
  width: 245px;
  height: 245px;
  top: 5px;
  right: -15px;
}
.art-chart {
  height: 125px;
  position: absolute;
  left: 14%;
  right: 13%;
  bottom: 58px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  transform: skewY(-10deg);
}
.art-chart span {
  flex: 1;
  background: #99bb7940;
  min-width: 9px;
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 1px #e0efbe38;
}
.art-chart span:nth-child(1) {
  height: 20%;
}
.art-chart span:nth-child(2) {
  height: 35%;
}
.art-chart span:nth-child(3) {
  height: 28%;
}
.art-chart span:nth-child(4) {
  height: 44%;
}
.art-chart span:nth-child(5) {
  height: 40%;
}
.art-chart span:nth-child(6) {
  height: 58%;
}
.art-chart span:nth-child(7) {
  height: 51%;
}
.art-chart span:nth-child(8) {
  height: 70%;
  background: #adce8870;
}
.art-chart span:nth-child(9) {
  height: 83%;
  background: #b6d890b0;
}
.art-chart span:nth-child(10) {
  height: 100%;
  background: #cdef9f;
}
.art-caption {
  position: absolute;
  bottom: 25px;
  right: 30px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #a1b493;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  padding: 20px 22px;
  border-radius: 11px;
  min-width: 0;
}
.metric-label {
  display: flex;
  justify-content: space-between;
  color: #728075;
  font-size: 11px;
}
.metric-label span {
  font-size: 15px;
  color: #799982;
}
.metric strong {
  display: block;
  font-size: 29px;
  font-weight: 550;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  margin: 7px 0 3px;
}
.metric:first-child strong {
  font-size: 25px;
  padding: 3px 0;
}
.metric small {
  font-size: 10px;
  color: #8a948d;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 21px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 23px 20px;
}
.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
}
.panel .eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
}
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf2e9;
  border-radius: 5px;
  min-width: 25px;
  height: 22px;
  padding: 0 6px;
  font-size: 11px;
  color: #5e8053;
  font-weight: 650;
}
.subtle {
  font-size: 10px;
  color: #8b978e;
}
.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 23px 20px;
}
.segmented {
  display: flex;
  background: #f4f6f3;
  padding: 3px;
  border: 1px solid #edf0ea;
  border-radius: 6px;
  width: max-content;
}
.segmented button {
  background: none;
  border: 0;
  font-size: 10px;
  padding: 5px 11px;
  border-radius: 4px;
  color: #8b978b;
  white-space: nowrap;
}
.segmented button.selected {
  background: #fff;
  box-shadow: 0 1px 4px #1632200c;
  color: #315b39;
  font-weight: 650;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  gap: 6px;
  max-width: 180px;
}
.search > span {
  color: #8c9c8d;
  font-size: 20px;
  line-height: 1;
}
.search input {
  border: 0;
  min-width: 0;
  width: 100%;
  font-size: 10px;
  padding: 3px 0;
  outline: none;
  color: var(--ink);
  background: transparent;
}
.search:focus-within {
  outline: 2px solid #87b88c;
}
.search input::placeholder {
  color: #a0aaa2;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 11px;
}
th {
  padding: 12px 15px;
  background: #fafbf9;
  border-top: 1px solid #edf1eb;
  border-bottom: 1px solid #edf1eb;
  color: #89958b;
  font-size: 10px;
  font-weight: 450;
}
th:first-child,
td:first-child {
  padding-left: 24px;
}
th:last-child,
td:last-child {
  padding-right: 24px;
}
td {
  padding: 17px 15px;
  border-bottom: 1px solid #f0f3ed;
  font-variant-numeric: tabular-nums;
}
tbody tr:last-child td {
  border-bottom: 0;
}
th button {
  border: 0;
  padding: 0;
  background: none;
  font-size: inherit;
  color: inherit;
}
th button span {
  margin-left: 3px;
  color: #5e8660;
}
.numeric {
  text-align: right;
}
.trend-cell {
  width: 88px;
}
.candidates-table td {
  height: 70px;
}
.candidates-table tbody tr:hover {
  background: #fcfdf9;
}
.stock-button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
}
.stock-rank {
  width: 23px;
  height: 26px;
  background: #f3f5ef;
  color: #8da082;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  font-size: 10px;
}
.stock-button strong {
  font-size: 12px;
  font-weight: 650;
  display: block;
}
.stock-button small {
  font-size: 9px;
  color: #9aa599;
  display: block;
  margin-top: 3px;
  letter-spacing: 0.1px;
}
.gain {
  color: var(--red);
  font-weight: 550;
}
.loss {
  color: #5483b1;
}
.ratio {
  font-weight: 650;
  color: #528044;
  background: #eff5e6;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 11px;
}
.sparkline {
  display: block;
  width: 76px;
  height: 30px;
  color: #73a063;
}
.sparkline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 23px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #99a397;
}
.table-footer > span:last-child {
  white-space: nowrap;
}
.empty-state {
  text-align: center;
  padding: 44px 16px 50px;
}
.empty-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #edf3e8;
  color: #789366;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 17px;
  font-size: 23px;
}
.empty-state h3 {
  font-size: 13px;
  font-weight: 600;
  color: #66805f;
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 11px;
  color: #929e90;
  max-width: 350px;
  margin: auto;
  line-height: 1.9;
}
.right-column {
  display: grid;
  gap: 18px;
}
.rules-panel,
.status-panel {
  padding: 23px 21px;
}
.rules-panel h2 {
  margin: 6px 0;
  font-size: 16px;
}
.section-description {
  font-size: 10px;
  color: #8c998c;
}
.rules {
  margin-top: 24px;
  display: grid;
  gap: 19px;
}
.rule {
  display: flex;
  gap: 11px;
  align-items: center;
}
.rule-number {
  background: #f0f4ec;
  width: 28px;
  height: 29px;
  flex-shrink: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #87a176;
  font-size: 10px;
}
.rule strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.rule small {
  color: #9aa492;
  font-size: 9px;
}
.rules-note {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 16px;
  color: #9aaa92;
  font-size: 10px;
}
.rules-note p {
  font-size: 9px;
  line-height: 1.8;
  color: #99a291;
}
.status-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 7px;
}
.status-title h2 {
  font-size: 15px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  font-size: 9px;
  padding: 3px 8px;
  background: #edf5e8;
  color: #658956;
  white-space: nowrap;
}
.badge.running {
  background: #eef2fb;
  color: #6380b6;
}
.badge.failed,
.badge.interrupted {
  background: #fbefeb;
  color: #bf7b62;
}
.badge.neutral {
  background: #f1f3ef;
  color: #8b9984;
}
.status-panel > p {
  font-size: 10px;
  color: #8a9885;
  line-height: 1.8;
  margin: 12px 0 18px;
  overflow-wrap: anywhere;
}
.status-line {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #9ba495;
  margin: 7px 0;
}
.status-line strong {
  color: #708069;
  font-weight: 500;
}
.history-panel {
  margin-top: 23px;
}
.history-panel .panel-heading {
  padding-top: 20px;
  padding-bottom: 18px;
}
.history-panel td {
  padding-top: 14px;
  padding-bottom: 14px;
  color: #66795f;
  font-size: 10px;
}
.history-panel td:last-child {
  white-space: normal;
  min-width: 150px;
  color: #8a9783;
  max-width: 420px;
}
.history-panel td:first-child {
  color: #7d8e73;
}
.empty-history {
  text-align: center;
  font-size: 11px;
  padding: 30px;
  color: #91a087;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 25px;
  color: #9aa493;
  font-size: 9px;
}
.page-footer > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-mark {
  font-size: 17px;
  color: #7d9470;
}
.muted {
  color: #cbd1c5;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 25px 100px #172a292e;
  width: min(440px, calc(100vw - 32px));
  max-height: 88vh;
}
dialog::backdrop {
  background: #203c2c55;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  margin-top: 4px;
}
.icon-button {
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 22px;
  width: 31px;
  height: 31px;
  display: grid;
  place-content: center;
  color: #899580;
  line-height: 1;
}
.dialog-heading + p,
dialog form > p {
  font-size: 12px;
  color: #7e8d73;
  line-height: 1.9;
}
.field-label {
  font-size: 11px;
  display: block;
  margin: 20px 0 6px;
}
.text-input {
  width: 100%;
  border: 1px solid #dce4d5;
  padding: 12px;
  border-radius: 7px;
  color: var(--ink);
}
dialog small {
  display: block;
  font-size: 10px;
  color: #91a082;
  line-height: 1.8;
  margin-top: 8px;
}
dialog .button.dark {
  width: 100%;
  margin-top: 23px;
}
.form-error {
  color: var(--red) !important;
  margin-top: 10px;
}
.detail-dialog {
  width: min(720px, calc(100vw - 32px));
}
.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
}
.detail-metrics small {
  margin: 0 0 4px;
}
.detail-metrics strong {
  font-size: 21px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chart-heading h3 {
  font-size: 12px;
  font-weight: 500;
}
.detail-chart svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
}
.detail-chart .chart-line {
  fill: none;
  stroke: #5c8b49;
  stroke-width: 2.5;
}
.detail-chart .chart-area {
  fill: #eff4e9;
}
.detail-chart .chart-grid {
  stroke: #e8ede4;
  stroke-width: 1;
}
.detail-chart text {
  fill: #929f86;
  font-size: 10px;
  font-family: inherit;
}
.detail-chart .chart-bar {
  fill: #9ab985;
}
.detail-chart .chart-bar:last-of-type {
  fill: #315b39;
}
.detail-explanation {
  font-size: 11px;
  color: #7f9171;
  background: #f4f7ef;
  border-radius: 8px;
  padding: 12px 15px;
  margin: 15px 0;
}
summary {
  font-size: 11px;
  cursor: pointer;
  color: #6e875e;
}
.detail-table {
  max-height: 240px;
  margin-top: 13px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #284c38;
  color: #fff;
  box-shadow: 0 8px 30px #203c2c20;
  border-radius: 9px;
  padding: 13px 22px;
  font-size: 12px;
  z-index: 20;
  max-width: 90vw;
}
.mobile-table-hint {
  display: none;
}
@media (min-width: 1500px) {
  .banner-art {
    width: 43%;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  .metric {
    padding: 23px 25px;
  }
  td,
  th {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 1220px) {
  .sidebar {
    width: 185px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 185px;
  }
  main {
    padding: 28px 24px 20px;
  }
  .topbar {
    padding: 0 24px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .right-column {
    grid-template-columns: 1.2fr 1fr;
  }
  .rules {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }
  .rules-note {
    margin-top: 18px;
  }
  .metric {
    padding: 17px 16px;
  }
  .metric strong {
    font-size: 26px;
  }
  .metric:first-child strong {
    font-size: 22px;
  }
  .brand {
    font-size: 15px;
  }
  .nav-link {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .mobile-table-hint {
    display: block;
    padding: 0 18px 10px;
    font-size: 10px;
    color: #7a8b72;
  }
  .art-caption {
    display: none;
  }
  .page-heading p {
    word-break: keep-all;
  }
  .sidebar {
    position: static;
    width: auto;
    flex-direction: row;
    padding: 15px 20px;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    margin: 0;
    font-size: 14px;
    gap: 8px;
  }
  .brand-light {
    display: inline;
    margin-left: 2px;
  }
  .brand small,
  .nav-label,
  .sidebar-bottom,
  .sidebar .nav-link:not(button) {
    display: none;
  }
  .brand-mark {
    width: 29px;
    height: 33px;
    padding: 8px 6px;
    gap: 3px;
  }
  .brand-mark i {
    width: 3px;
  }
  .brand-mark i:nth-child(3) {
    height: 18px;
  }
  .sidebar nav {
    display: flex;
  }
  .nav-link {
    margin: 0;
    padding: 6px;
    gap: 7px;
    width: auto;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 48px;
    padding: 0 20px;
  }
  .timezone {
    display: none;
  }
  .topbar-right {
    gap: 0;
  }
  .breadcrumb {
    gap: 10px;
    font-size: 10px;
  }
  .connection {
    font-size: 10px;
  }
  main {
    padding: 24px 18px 20px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 235px;
  }
  .page-heading .button {
    padding: 8px 10px;
    font-size: 10px;
  }
  .overview-banner {
    min-height: 242px;
  }
  .banner-copy {
    padding: 23px;
  }
  .banner-copy h2 {
    font-size: 23px;
  }
  .banner-art {
    position: absolute;
    right: -75px;
    top: 0;
    bottom: 0;
    width: 230px;
    opacity: 0.27;
  }
  .banner-copy > p {
    max-width: 270px;
  }
  .banner-actions {
    gap: 15px;
  }
  .banner-hint {
    font-size: 9px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 26px;
  }
  .metric:first-child strong {
    font-size: 23px;
  }
  .metric small {
    font-size: 9px;
  }
  .metric-label {
    font-size: 10px;
  }
  .content-grid {
    gap: 16px;
  }
  .right-column {
    grid-template-columns: 1fr;
  }
  .rules-panel,
  .status-panel {
    padding: 21px;
  }
  .rules {
    gap: 20px;
  }
  .panel-heading {
    padding: 20px 18px 17px;
  }
  .panel-heading h2 {
    font-size: 16px;
  }
  .table-controls {
    padding: 0 18px 16px;
    gap: 10px;
  }
  .segmented button {
    padding: 5px 9px;
    font-size: 9px;
  }
  .search {
    max-width: 150px;
  }
  .table-footer {
    padding: 12px 18px;
    flex-direction: column;
    gap: 3px;
  }
  .candidates-table {
    min-width: 660px;
  }
  .history-panel table {
    min-width: 570px;
  }
  .page-footer {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
  .detail-metrics strong {
    font-size: 18px;
  }
  .detail-dialog {
    padding: 22px;
  }
  .notice {
    font-size: 11px;
  }
  .overview-banner .button {
    padding: 10px 14px;
  }
  .notify-control {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.stock-explorer {
  margin-bottom: 24px;
  scroll-margin-top: 20px;
}
.explorer-body {
  padding: 0 24px 24px;
}
.explorer-source {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.explorer-source label {
  font-weight: 600;
  font-size: 12px;
}
.explorer-source select {
  width: auto;
  min-width: 180px;
  margin: 0;
}
.explorer-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 14px 0;
}
.explorer-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.stock-search-panel {
  padding: 22px 20px 0 0;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.stock-search-input {
  display: flex;
  gap: 6px;
}
.stock-search-input .text-input {
  min-width: 0;
  margin: 0;
}
.stock-search-input .button {
  padding: 8px 12px;
  flex-shrink: 0;
}
#stock-result-count {
  margin: 14px 0 8px;
}
.stock-results {
  max-height: 560px;
  overflow-y: auto;
}
.stock-result {
  display: block;
  text-align: left;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  padding: 12px;
  border-radius: 8px;
}
.stock-result:hover,
.stock-result[aria-pressed="true"] {
  background: #f1f5ec;
  border-color: #d4dfc8;
}
.stock-result strong,
.stock-result small {
  display: block;
}
.stock-result strong {
  font-size: 13px;
}
.stock-result small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.stock-prices-panel {
  min-width: 0;
  padding: 22px 0 0 24px;
}
.stock-placeholder {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 350px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}
.stock-price-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stock-price-heading h3 {
  font-size: 22px;
  margin: 0 0 6px;
}
.stock-period {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 10px;
}
.stock-period label {
  font-size: 11px;
  flex: 1;
  min-width: 135px;
}
.stock-period .text-input {
  margin: 6px 0 0;
}
.stock-ranges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.stock-ranges .button {
  padding: 6px 12px;
  font-size: 11px;
}
#stock-bar-summary {
  margin: 18px 0 0;
}
.stock-chart svg {
  width: 100%;
  display: block;
  max-height: 190px;
}
.stock-chart .chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.stock-chart text {
  fill: var(--muted);
  font-size: 11px;
}
.stock-bars-scroll {
  max-height: 420px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stock-bars-scroll table {
  min-width: 580px;
}
.stock-bars-scroll th {
  position: sticky;
  top: 0;
  background: #f7f8f4;
  z-index: 1;
}
.stock-bars-scroll td {
  font-size: 12px;
  white-space: nowrap;
}
.stock-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.stock-pagination .button {
  padding: 7px 12px;
  font-size: 11px;
}
@media (max-width: 1000px) {
  .explorer-grid {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .stock-prices-panel {
    padding-left: 16px;
  }
}
@media (max-width: 700px) {
  .explorer-body {
    padding: 0 18px 18px;
  }
  .explorer-grid {
    grid-template-columns: 1fr;
  }
  .stock-search-panel {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stock-results {
    max-height: 210px;
  }
  .stock-prices-panel {
    padding: 20px 0 0;
  }
  .stock-placeholder {
    min-height: 140px;
  }
  .stock-explorer .panel-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
