.tsd-demo {
  --terminal-bg: #091821;
  --terminal-high: #39dfaa;
  --terminal-muted: #9fb6bf;
  --terminal-border: #2a4551;
  --bench-text: #13252a;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 62rem;
  margin-inline: auto;
  gap: clamp(.85rem, 3vw, 2rem);
  align-items: start;
  text-align: left;
}
.tsd-demo *, .tsd-demo *::before, .tsd-demo *::after { box-sizing: border-box; }
.tsd-demo button, .tsd-demo input { font: inherit; }
.tsd-demo button { cursor: pointer; }
.tsd-demo button:focus-visible, .tsd-demo input:focus-visible, .tsd-demo summary:focus-visible { outline: 3px solid #14836a; outline-offset: 3px; }
.tsd-terminal button:focus-visible, .tsd-terminal input:focus-visible { outline-color: var(--terminal-high); }
.tsd-terminal { border: 1px solid #496572; border-radius: 2rem; background: linear-gradient(145deg,#24404b 0%, #112632 46%, #0c202a 100%); color: #eef7f7; padding: 1rem; box-shadow: 0 1.2rem 3rem #142b3129, inset 0 0 0 .25rem #17313e; min-width: 0; }
.tsd-device-label, .tsd-device-foot { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; color: #bbd0d5; padding: .3rem .35rem .85rem; font-size: .75rem; font-weight: 650; letter-spacing: .05em; }
.tsd-device-label span { color: var(--terminal-high); }
.tsd-device-label b { margin-inline-start: auto; font-size: .65rem; letter-spacing: .04em; font-weight: 650; color: #b7fae6; background: #18433e; padding: .3rem .45rem; border-radius: .35rem; white-space: nowrap; }
.tsd-screen { background: var(--terminal-bg); border: 1px solid #041119; border-radius: 1.2rem; padding: clamp(.875rem, 2vw, 1.4rem); line-height: 1.4; }
.tsd-task { border-bottom: 1px solid var(--terminal-border); padding-bottom: .85rem; margin-bottom: .8rem; }
.tsd-kicker { font: 700 .8rem/1.35 ui-monospace, Consolas, monospace; letter-spacing: .08em; color: #076f58; }
.tsd-screen .tsd-kicker { color: var(--terminal-high); }
.tsd-title { font-size: clamp(1.25rem, 2.5vw, 1.65rem); margin-block: .35rem .12rem; font-weight: 750; letter-spacing: -.025em; }
.tsd-task-caption, .tsd-fact { color: var(--terminal-muted); font-size: .875rem; }
.tsd-readings { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .5rem; min-width: 0; }
.tsd-readings div { min-width: 0; }
.tsd-readings div > span { display: block; color: #c1d5db; font-size: .875rem; }
.tsd-readings strong { display: block; margin-top: .2rem; font-size: clamp(1.3rem, 3vw, 2rem); letter-spacing: -.03em; font-weight: 720; font-variant-numeric: tabular-nums; color: #f0fbfb; }
.tsd-readings small { color: var(--terminal-muted); font-weight: 500; font-size: .85rem; letter-spacing: 0; }
.tsd-screen progress { appearance: none; display: block; width: 100%; height: .55rem; margin: .55rem 0 1rem; border: 0; border-radius: 99px; overflow: hidden; background: var(--terminal-border); color: var(--terminal-high); }
.tsd-screen progress::-webkit-progress-bar { background: var(--terminal-border); border-radius: 99px; }
.tsd-screen progress::-webkit-progress-value { background: var(--terminal-high); border-radius: 99px; transition: width 180ms ease; }
.tsd-screen progress::-moz-progress-bar { background: var(--terminal-high); border-radius: 99px; }
.tsd-message { margin: 0 0 .65rem; min-height: 3rem; padding: .55rem .65rem; font-size: .9rem; font-weight: 650; border: 1px solid #41616c; border-radius: .6rem; color: #ddebee; background: #132a35; }
.tsd-message[data-level="success"] { color: #a5f8dc; border-color: #3a806c; background: #12362f; }
.tsd-message[data-level="error"] { color: #ffccc0; border-color: #9c5e57; background: #3e2226; }
.tsd-message[data-level="warning"] { color: #ffe2aa; border-color: #8e6e45; background: #372b20; }
.tsd-fact { margin-bottom: .7rem; }
.tsd-short { margin: .7rem 0; }
.tsd-short[hidden] { display: none; }
.tsd-short label { display: block; color: #c6d6dc; font-size: .875rem; margin-bottom: .25rem; }
.tsd-short input, .tsd-entry input { width: 100%; min-width: 0; padding: .65rem; border-radius: .45rem; border: 1px solid #557580; }
.tsd-short input { color: #ecf8f8; background: #122831; }
.tsd-short input::placeholder { color: #9fb6bf; }
.tsd-action { width: 100%; min-height: 2.75rem; padding: .55rem .7rem; color: #08251d; background: var(--terminal-high); border: 0; border-radius: .55rem; font-weight: 750 !important; }
.tsd-action:hover:not(:disabled) { background: #6decbd; }
.tsd-action:disabled { cursor: default; background: #253f49; color: #c1d6dd; }
.tsd-device-foot { padding: .75rem .4rem .1rem; }
.tsd-device-foot i { display: inline-block; width: 1rem; height: .2rem; border-radius: .4rem; background: #879fa9; }
.tsd-bench { background: #f9faf7; border: 1px solid #d5dfd9; border-radius: 1.5rem; padding: clamp(1rem, 3vw, 1.55rem); color: var(--bench-text); }
.tsd-bench h3 { margin: .3rem 0 .45rem; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.15; letter-spacing: -.035em; color: var(--bench-text); }
.tsd-bench p { margin: 0 0 .85rem; font-size: 1rem; line-height: 1.5; color: #42585c; }
.tsd-labels { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.tsd-label { text-align: left; min-width: 0; min-height: 7rem; display: grid; gap: .4rem; padding: .65rem; border: 1px solid #aebfb7; border-radius: .6rem; background: #fff; color: #17352b; transition: transform 160ms ease, border-color 160ms ease; }
.tsd-label:hover { transform: translateY(-2px); border-color: #248b67; }
.tsd-label-alt { background: #f8f6f1; }
.tsd-label strong, .tsd-label small { display: block; white-space: nowrap; }
.tsd-label strong { font-size: 1rem; }
.tsd-label small { font-size: .78rem; color: #4b5c53; }
.tsd-barcode { display: block; height: 1.55rem; background-image: repeating-linear-gradient(90deg, #173329 0px, #173329 2px, transparent 2px, transparent 4px, #173329 4px, #173329 5px, transparent 5px, transparent 7px, #173329 7px, #173329 11px, transparent 11px, transparent 13px, #173329 13px, #173329 15px, transparent 15px, transparent 21px); }
.tsd-label-alt .tsd-barcode { transform: scaleX(-1); }
.tsd-code { font: 650 clamp(.65rem, 1.2vw, .8rem)/1 ui-monospace, Consolas, monospace; letter-spacing: .01em; }
.tsd-manual { margin: 1rem 0 .6rem; font-size: .875rem; }
.tsd-manual summary { cursor: pointer; color: #255f50; font-weight: 650; width: fit-content; }
.tsd-entry { display: flex; gap: .4rem; margin: .65rem 0 0; }
.tsd-entry button { border: 1px solid #6f9286; border-radius: .45rem; background: #e7f2eb; color: #17352b; padding: .55rem .6rem; }
.tsd-reset { margin-block: .35rem .65rem; border: 0; background: none; color: #225c4b; border-radius: .35rem; padding: .35rem .15rem; min-height: 2.6rem; font-weight: 700 !important; }
.tsd-reset:hover { text-decoration: underline; }
.tsd-bench .tsd-privacy { margin: 0; color: #506765; font-size: .8rem; }
.tsd-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 47rem) {
  .tsd-demo { grid-template-columns: minmax(0, 1fr); max-width: 31rem; }
}
@media (max-width: 24rem) {
  .tsd-terminal { padding: .65rem; border-radius: 1.4rem; }
  .tsd-label { padding: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tsd-demo *, .tsd-demo *::before, .tsd-demo *::after { transition: none !important; }
}
