:root {
  color-scheme: dark;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 16px;
  color: #edf0ed;
  background: #111312;
  --line: #363d39;
  --mint: #9de5be;
  --muted: #b4beb7;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--mint); text-underline-offset: .2em; }
a:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.masthead {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #171a18;
  font-size: .875rem;
}
.brand { color: var(--mint); text-decoration: none; font-weight: 800; letter-spacing: .09em; }
.brand span { color: #edf0ed; }
.section-label { color: var(--muted); border-left: 1px solid #545f58; padding-left: 16px; }
main { padding: 10px 12px 0; }
.monitor { border: 1px solid #476d59; background: #101211; }
.monitor-header, .monitor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: #202622;
}
.monitor-header { border-bottom: 1px solid #476d59; box-shadow: inset 3px 0 #74c79b; }
h1 { margin: 0; font-size: 1rem; font-weight: 750; letter-spacing: .05em; }
label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .875rem; }
select {
  appearance: none;
  padding: 6px 30px 6px 9px;
  border: 1px solid #596e61;
  border-radius: 3px;
  color: #ecfbf1;
  background: #111713 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%239de5be' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center;
  font: inherit;
}
#screener { height: clamp(460px, calc(100dvh - 145px), 1200px); background: #131722; }
.tradingview-widget-container { height: 100%; }
.tradingview-widget-container__widget { height: calc(100% - 27px); }
.tradingview-widget-copyright { padding: 4px 8px; font-size: .8125rem; text-align: center; }
.monitor-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.monitor-footer p { margin: 0; color: #e2ece5; }
.notice { padding: 12px; }
details { padding: 12px 3px; color: var(--muted); font-size: .875rem; }
summary { cursor: pointer; width: fit-content; }
details p { max-width: 78ch; line-height: 1.55; }
@media (max-width: 560px) {
  main { padding-inline: 6px; }
  .masthead { padding-inline: 10px; }
  .monitor-header, .monitor-footer { padding-inline: 9px; }
  .delay { order: 1; width: 100%; }
}

.masthead nav { display: flex; gap: 14px; }
.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a[aria-current] { color: var(--mint); }
.screener-guide { margin: 0; padding: 7px 12px; color: var(--muted); font-size: .8125rem; }
.monitor #screener { margin-inline: clamp(12px, 2vw, 28px); }
