:root {
  color-scheme: dark;
  --bg: #161a1b;
  --panel: #1c2021;
  --line: #333839;
  --muted: #a2acab;
  --ink: #edf0ed;
  --accent: #c6e881;
  --up: #8ad9be;
  --down: #ec9b9c;
  --mono: 'SFMono-Regular', Consolas, monospace;
  font:
    14px Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Helvetica Neue',
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  border-radius: 5px;
  padding: 5px 9px;
}
button:hover {
  background: #343b3c;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
i[data-icon],
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
i svg,
.icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.iconbtn {
  min-width: 32px;
  color: var(--muted);
  padding: 5px;
}
header {
  height: 59px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 35px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.brand img {
  width: 29px;
  height: 29px;
}
.brand b {
  font-size: 23px;
  letter-spacing: -1.4px;
}
.brand > span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
nav {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 100%;
}
nav button {
  color: var(--muted);
  align-self: stretch;
  border-radius: 0;
  font-size: 13px;
  padding: 0 10px;
}
.nav-on {
  color: var(--ink);
  box-shadow: inset 0 -2px var(--accent);
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 9px;
  align-items: center;
}
.ai-button {
  border: 1px solid #4a5540;
  color: #d9ecbc;
  background: #272e23;
  font-size: 13px;
  padding: 5px 13px;
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(235px, 21vw, 340px);
  min-height: calc(100dvh - 88px);
}
.terminal {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.controlbar {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 47px;
  padding: 4px 9px;
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.controlbar button {
  font-size: 12px;
  color: #c5ccca;
  flex: none;
}
.controlbar .symbolbutton {
  color: var(--ink);
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding-right: 12px;
  margin-right: 3px;
}
.symbolbutton b {
  letter-spacing: 0.03em;
}
.symbolbutton span {
  color: var(--muted);
}
#intervals {
  display: flex;
  align-items: center;
  padding-right: 7px;
  border-right: 1px solid var(--line);
}
#intervals button {
  padding: 5px 7px;
}
button.selected,
.tabset .selected {
  background: #353e34;
  color: #d6edac;
}
.chart-row {
  display: flex;
  flex: 1;
  min-height: 400px;
}
.tools {
  width: 43px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  border-right: 1px solid var(--line);
  background: #191d1e;
}
.tools button {
  height: 34px;
  width: 34px;
  color: #c3ccc8;
}
.tools button.selected {
  color: var(--accent);
}
.toolsep {
  width: 21px;
  height: 1px;
  background: var(--line);
  margin: 3px 0;
}
.pane-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  background: var(--line);
  gap: 2px;
  grid-template-columns: minmax(0, 1fr);
}
.layout2,
.layout3,
.layout4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.layout3 .pane:first-child {
  grid-row: span 2;
}
.pane {
  position: relative;
  min-width: 0;
  min-height: 220px;
  background: var(--chart-bg, #f3f2ed);
  color: var(--chart-text, #454c48);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.layout1 .pane {
  min-height: clamp(335px, 53vh, 840px);
}
.pane-grid:not(.layout1) .pane.active {
  box-shadow: inset 0 0 0 2px #80a94b;
}
.panehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px 2px;
  gap: 6px;
}
.panehead button {
  color: inherit;
  text-align: left;
  justify-content: start;
  min-height: 28px;
  padding: 0;
}
.panehead button:hover {
  background: #8882;
}
.instrument {
  display: flex;
  align-items: center;
  gap: 9px;
}
.ticker-icon {
  font-size: 17px;
  font-weight: 700;
  background: #e9ba70;
  color: #62441c;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.instrument b {
  font-size: 16px;
  letter-spacing: -0.4px;
}
.instrument small,
.quote small {
  display: block;
  color: inherit;
  opacity: 0.78;
  font-size: 10px;
  margin-top: 2px;
}
.quote {
  text-align: right;
  font: 600 18px var(--mono);
  letter-spacing: -0.8px;
}
.pane .quote small[hidden] { display: none; }
.quote small {
  font: 11px var(--mono);
  letter-spacing: 0;
}
.chart-area {
  position: relative;
  min-height: 160px;
  flex: 1;
}
.canvasChart,
.flowCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.flowCanvas {
  pointer-events: none;
}
.chartnote {
  pointer-events: none;
  position: absolute;
  left: 12px;
  top: 7px;
  font-size: 11px;
  background: var(--chart-bg);
  max-width: 82%;
  border-radius: 3px;
}
.chartnote:not(:empty) {
  padding: 3px 5px;
  border: 1px solid #8884;
}
.chartnote.error {
  top: 42%;
  right: 12%;
  margin: auto;
  max-width: 390px;
  padding: 12px;
  text-align: center;
  color: var(--chart-text);
  font-size: 13px;
}
.side {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  min-width: 0;
}
.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 15px;
  height: 45px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.paneltitle {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.paneltitle i {
  color: var(--muted);
}
h2 {
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -0.25px;
  margin: 0;
}
.watchhead {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 14px 15px 7px;
}
.watchrow {
  display: flex;
  align-items: center;
  border-left: 2px solid transparent;
}
.watchrow.current {
  border-color: var(--accent);
  background: #29312c;
}
.watchrow > button:first-child {
  display: flex;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  border-radius: 0;
  padding: 9px 13px;
  text-align: left;
}
.watchrow b {
  font-size: 13px;
}
.watchrow small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.watchrow .watchprice {
  text-align: right;
  font: 12px var(--mono);
}
.watchrow .remove {
  font-size: 13px;
  color: var(--muted);
  padding: 0;
  min-width: 21px;
  margin-left: -11px;
}
.pos {
  color: var(--up) !important;
}
.neg {
  color: var(--down) !important;
}
.market-detail {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding: 15px;
}
dl {
  margin: 13px 0 0;
}
dl > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
}
dt {
  color: var(--muted);
  font-size: 12px;
}
dd {
  margin: 0;
  font: 12px var(--mono);
}
.sidefoot {
  margin-top: auto;
  padding: 15px;
  display: grid;
  gap: 7px;
}
.trade-button,
.primary {
  background: var(--accent);
  color: #1c2718;
  font-weight: 650;
}
.trade-button:hover,
.primary:hover {
  background: #d3f39a;
}
.trade-button {
  height: 37px;
}
.trade-button i {
  margin-left: auto;
}
.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}
.wide {
  width: 100%;
}
.flow {
  min-width: 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.tabset {
  display: flex;
  align-items: center;
  overflow: auto;
  scrollbar-width: none;
  gap: 3px;
}
.tabset button {
  font-size: 12px;
  min-height: 27px;
  white-space: nowrap;
  color: var(--muted);
}
#flowBody {
  height: 178px;
  overflow: auto;
  padding: 8px 15px 10px;
}
.bookgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.levelrow,
.levelhead {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  position: relative;
  text-align: right;
  align-items: center;
  gap: 4px;
  font: 11px var(--mono);
  padding: 2px 5px;
  min-height: 19px;
}
.levelrow span,
.levelhead span {
  z-index: 1;
}
.levelrow span:first-child,
.levelhead span:first-child {
  text-align: left;
}
.levelhead {
  color: var(--muted);
  text-transform: uppercase;
  font:
    10px Inter,
    sans-serif;
  letter-spacing: 0.055em;
}
.depthbar {
  position: absolute;
  right: 0;
  height: 85%;
  background: #51685a40;
}
.ask .depthbar {
  background: #855b5a3d;
}
.panel-note {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 7px;
}
.empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  padding: 12px 0;
}
.flowtable {
  width: 100%;
  border-collapse: collapse;
  font: 11px var(--mono);
}
.flowtable th,
.flowtable td {
  padding: 4px 8px;
  text-align: right;
  border-bottom: 1px solid #ffffff09;
}
.flowtable :is(th, td):first-child {
  text-align: left;
}
.flowtable th {
  color: var(--muted);
  font:
    10px Inter,
    sans-serif;
}
footer {
  height: 29px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
footer time {
  margin-left: auto;
  font: 10px var(--mono);
}
#feedState:before {
  display: inline-block;
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #8c9690;
  margin-right: 7px;
}
#feedState.fresh:before {
  background: var(--up);
}
dialog {
  background: #202526;
  color: var(--ink);
  border: 1px solid #484f4d;
  border-radius: 12px;
  padding: 0;
  width: min(540px, 94vw);
  max-height: 88dvh;
  overflow: auto;
  box-shadow: 0 24px 80px #0008;
}
dialog::backdrop {
  background: #080d0fbf;
}
.dialoghead {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #202526;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.dialoghead h2 {
  font-size: 18px;
}
#dialogBody {
  padding: 16px;
  line-height: 1.45;
}
.chart-copy-instruction {
  margin: 0 0 8px;
}
.chart-copy-image {
  display: block;
  width: 100%;
  max-height: 65dvh;
  object-fit: contain;
}
input,
select,
textarea {
  max-width: 100%;
  min-width: 0;
  background: #191d1e;
  color: var(--ink);
  border: 1px solid #454c4b;
  border-radius: 5px;
  padding: 8px 9px;
}
input[type='checkbox'] {
  accent-color: var(--accent);
}
input[type='color'] {
  padding: 1px;
  width: 55px;
  height: 32px;
}
label.field {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
}
.dialog-list {
  display: grid;
  gap: 3px;
}
.dialog-row,
.settingrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
}
.dialog-row {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}
.chart-appearance-template > :is(input, select) {
  flex: 1;
  min-width: 0;
}
.dialog-row small,
.settingrow small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.dialog-row > span:last-child {
  margin-left: auto;
}
.wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 39px;
  left: 50%;
  transform: translateX(-50%);
  background: #30382a;
  color: #e6efdc;
  border: 1px solid #5b6a4b;
  border-radius: 7px;
  padding: 9px 15px;
  max-width: 92vw;
  z-index: 8;
  pointer-events: none;
}
#toast:empty {
  display: none;
}
#toast:has(.toast-action) {
  width: max-content;
  pointer-events: auto;
  padding-block: 2px;
}
.toast-action {
  min-height: 44px;
  margin-inline-start: 8px;
  color: inherit;
  text-decoration: underline;
}
dialog #toast {
  position: static;
}
.layout2 .instrument b,
.layout3 .instrument b,
.layout4 .instrument b {
  font-size: 13px;
}
.layout3 .quote,
.layout4 .quote {
  font-size: 14px;
}
@media (min-width: 1600px) {
  #flowBody {
    height: 210px;
  }
  .panelhead {
    height: 48px;
  }
  .watchrow > button:first-child {
    padding-block: 12px;
  }
}
@media (max-width: 1000px) {
  main {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .controlbar {
    gap: 2px;
  }
  .controlbar button {
    padding-inline: 5px;
  }
  .panelhead {
    padding-inline: 10px;
  }
  .flow .paneltitle i {
    display: none;
  }
  .layout4 .ticker-icon,
  .layout3 .ticker-icon {
    display: none;
  }
}
@media (max-width: 760px) {
  header {
    height: 47px;
    padding: 0 10px;
    gap: 6px;
  }
  .brand b {
    font-size: 18px;
  }
  .brand img {
    width: 23px;
    height: 23px;
  }
  .brand > span {
    display: none;
  }
  nav {
    gap: 0;
  }
  nav button {
    font-size: 11px;
    padding: 0 6px;
  }
  .header-actions {
    gap: 2px;
  }
  .ai-button {
    padding: 4px 7px;
  }
  .header-actions .iconbtn {
    min-width: 26px;
  }
  .brand {
    gap: 5px;
  }
  main {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .controlbar {
    min-height: 42px;
  }
  .chart-row {
    min-height: 0;
    flex-direction: column;
  }
  .tools {
    width: auto;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 2px 5px;
    gap: 2px;
  }
  .tools button {
    height: 30px;
    min-width: 34px;
  }
  .toolsep {
    min-width: 1px;
    width: 1px;
    height: 17px;
    margin: 0 3px;
  }
  .pane-grid .pane {
    min-height: 300px;
  }
  .pane-grid.layout1 .pane {
    min-height: clamp(350px, 55dvh, 620px);
  }
  .layout2,
  .layout3,
  .layout4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .layout3 .pane:first-child {
    grid-row: auto;
  }
  .side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .flow .panelhead {
    gap: 5px;
    padding: 5px 7px;
  }
  .tabset button {
    font-size: 11px;
    padding: 4px 6px;
  }
  .paneltitle {
    gap: 4px;
  }
  .paneltitle h2 {
    font-size: 13px;
  }
  #flowBody {
    height: 157px;
    padding: 6px 8px;
  }
  .bookgrid {
    gap: 7px;
  }
  .levelrow,
  .levelhead {
    padding: 2px 3px;
    font-size: 10px;
  }
  .sidefoot {
    grid-template-columns: 1fr 1fr;
  }
  .watchrow > button:first-child {
    padding-block: 7px;
  }
  footer {
    gap: 6px;
    flex-wrap: wrap;
    height: auto;
    min-height: 28px;
    padding: 5px 8px;
  }
  #persistState {
    display: none;
  }
  .panehead {
    padding: 8px 9px 0;
  }
  .dialoghead {
    padding: 9px 12px;
  }
  #dialogBody {
    padding: 12px;
  }
}
@media (max-width: 380px) {
  .header-actions .ai-button span {
    display: none;
  }
  .flow .paneltitle {
    display: none;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
}
#watchRows {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}
.watchgroup {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #242a29;
  color: #acb8b1;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
}
.pane {
  --chart-bg: #111416;
  --chart-text: #a0aaa9;
}
.instrument b,
.quote {
  color: var(--chart-text);
}
.ticker-icon {
  background: #51412b;
  color: #ffd297;
}
.pane .quote small {
  color: var(--chart-text);
}
.panehead {
  border-bottom: 1px solid #8882;
  padding-bottom: 6px;
}
.layout3 .panehead,
.layout4 .panehead {
  padding: 6px 8px;
}
.watchrow.current small {
  color: #b8c5bb;
}
.layout4 .chart-row {
  min-height: 590px;
}
.dialog-row.active {
  color: var(--accent);
}
.check {
  color: var(--accent);
}
.brushes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.brushes button {
  border: 1px solid var(--line);
}
.legendlet {
  position: absolute;
  left: 10px;
  bottom: 28px;
  pointer-events: none;
  color: var(--chart-text);
  opacity: 0.12;
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -2px;
}
.levelrow > span:nth-child(2) {
  text-align: left;
}
.levelhead span:first-child {
  text-align: left;
}
#chartWidget {
  min-width: 0;
  min-height: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}
#watchWidget {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
#detailsWidget {
  display: flex;
  flex-direction: column;
  flex: none;
}
.extraWidget {
  background: var(--panel);
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.extraBody {
  padding: 5px 10px;
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.extraWidget[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  #chartWidget {
    flex: 1 1 auto;
  }
}
.chart-menu {
  position: fixed;
  z-index: 20;
  max-height: 94dvh;
  overflow-y: auto;
  min-width: 225px;
  max-width: calc(100vw - 12px);
  padding: 5px;
  background: #26272df5;
  color: #e3e4e9;
  border: 1px solid #4a4b53;
  border-radius: 9px;
  box-shadow: 0 12px 40px #0009;
  backdrop-filter: blur(14px);
}
.chart-menu-item {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12px;
  gap: 10px;
}
.chart-menu-item .icon {
  color: var(--muted);
}
.chart-menu hr {
  border: 0;
  border-top: 1px solid #ffffff13;
  margin: 3px 4px;
}
.menu-caption {
  padding: 5px 8px 7px;
  color: #bdbece;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.indicator-entry {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.indicator-entry .settingrow {
  flex: 1;
  border: 0;
}
.indicator-entry .iconbtn {
  margin-left: 8px;
}
.study-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.study-field-label small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.study-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 53%;
}
.study-controls input[type='number'] {
  width: 100px;
}
.study-hex {
  width: 82px;
}
.study-controls input[type='range'] {
  width: 110px;
}
.study-controls output {
  min-width: 36px;
}
.feedform {
  margin-bottom: 18px;
}
.feedform h3 {
  font-size: 14px;
}
.feedform .secondary {
  margin-right: 8px;
}
.chartnote.at-cursor:not(:empty) {
  font: 10px var(--mono);
  letter-spacing: -0.2px;
  border: 0;
  box-shadow: none;
  white-space: nowrap;
  max-width: 97%;
  text-overflow: ellipsis;
  overflow: hidden;
  opacity: 0.92;
  padding: 2px 4px;
}

#usagePage[hidden], .usage-legend[hidden], #usageNav[hidden] { display: none; }
#usagePage {
  --usage-returning: var(--accent);
  --usage-new: var(--up);
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 28px 44px;
}
:root[data-theme='light'] #usagePage {
  --usage-returning: #6856b6;
  --usage-new: #087e74;
}
.usage-heading, .usage-controls, .usage-trend-head, .usage-series, .usage-legend {
  display: flex;
  gap: 8px;
  align-items: center;
}
.usage-heading, .usage-trend-head { justify-content: space-between; }
.usage-heading h1 { margin: 0; font-size: 26px; line-height: 1.2; }
.usage-heading h1:focus { outline: none; }
.usage-controls select { min-height: 34px; }
.usage-controls .iconbtn { width: 34px; height: 34px; }
.usage-status, .usage-updated { margin: 8px 0 14px; font-size: 12px; color: var(--muted); }
.usage-status:empty { display: none; }
.usage-results { display: grid; gap: 12px; margin-top: 12px; }
.usage-panel, .usage-metric {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.usage-panel { padding: 16px; }
.usage-panel h2 { margin: 0; font-size: 15px; }
.usage-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.usage-metric { display: block; padding: 12px 14px; }
.usage-metric dt { color: var(--muted); font-size: 12px; }
.usage-metric dd {
  margin: 5px 0 0;
  font-family: inherit;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.usage-metric small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.usage-overview .usage-metric:first-child dd { color: var(--usage-new); }
.usage-range-metrics .usage-metric dd { font-size: 19px; }
.usage-series { gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; }
.usage-series button { min-height: 28px; padding: 4px 9px; color: var(--muted); font-size: 12px; }
.usage-series [aria-pressed='true'] { background: var(--bg); color: var(--ink); }
.usage-chart-caption { min-height: 2.5em; margin: 9px 0 3px; font-size: 12px; color: var(--muted); }
.usage-chart { display: grid; grid-template-columns: 66px minmax(0, 1fr); height: clamp(108px, 21vh, 220px); }
.usage-chart-scale { display: flex; flex-direction: column; justify-content: space-between; font: 10px var(--mono); color: var(--muted); }
.usage-bars {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  border-block: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%);
}
.usage-bars .usage-bar {
  flex: 1 0 3px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  align-items: end;
  border-radius: 0;
}
.usage-bars .usage-bar:is(:hover, [aria-pressed='true']) { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.usage-bars .usage-bar:focus-visible { outline-offset: -2px; }
.usage-column {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: min(80%, 25px);
  overflow: hidden;
  border-radius: 2px 2px 0 0;
}
.usage-column-filled { min-height: 2px; }
.usage-column i { flex: 0 0 0; }
.usage-column-filled i { flex-grow: 1; }
.usage-fill-returning, .usage-key-returning i { background: var(--usage-returning); }
.usage-fill-new, .usage-key-new i { background: var(--usage-new); }
.usage-chart-dates { display: flex; justify-content: space-between; padding: 6px 0 0 66px; font: 10px var(--mono); color: var(--muted); }
.usage-legend { color: var(--muted); gap: 14px; margin-top: 10px; font-size: 12px; }
.usage-key { display: inline-flex; gap: 6px; align-items: center; }
.usage-key i { width: 8px; height: 8px; border-radius: 2px; }
.usage-retention .usage-metrics { grid-template-columns: 1fr 1fr; margin-top: 10px; }
.usage-retention .usage-metric { padding: 0; border: 0; }
.usage-retention .muted { margin: 9px 0 0; font-size: 12px; }
.usage-daily summary { cursor: pointer; font-weight: 600; }
.usage-table-scroll { margin-top: 8px; overflow: auto; max-height: 45vh; }
.usage-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 12px; }
.usage-table thead { position: sticky; top: 0; background: var(--panel); }
.usage-table :is(th, td) { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.usage-table :is(th, td):first-child { text-align: left; }
.usage-table th { font-weight: 500; color: var(--muted); }
@media (max-width: 680px) {
  #usagePage { padding: 16px 12px 32px; }
  .usage-heading h1 { font-size: 21px; }
  .usage-controls select { font-size: 12px; }
  .usage-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-panel, .usage-metric { padding: 11px; }
  .usage-chart { grid-template-columns: 48px minmax(0, 1fr); }
  .usage-chart-dates { padding-left: 48px; }
  .usage-bar { touch-action: manipulation; }
}
