/* Website entry point and responsive dialog frame. */
.display-try-button { display:flex; align-items:center; justify-content:center; gap:34px; min-height:48px; padding:10px 23px; margin-top:18px; border:1px solid #00767e; border-radius:3px; background:#00767e; color:#fff; font-size:14px; font-weight:500; }
.display-try-button:is(:hover,:focus-visible) { background:#075d64; border-color:var(--coral); }
.display-try-button svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.6; }
.display-demo { width:min(1030px,calc(100vw - 32px)); height:min(980px,calc(100dvh - 32px)); max-width:none; max-height:none; overflow:hidden; }
.display-demo[open] { display:flex; flex-direction:column; }
.display-demo-heading { flex:none; min-height:65px; display:flex; align-items:center; padding:14px 74px 14px 28px; border-bottom:1px solid #cbd7d4; }
.display-demo-heading h2 { font-size:18px; letter-spacing:-.3px; }
.display-demo-heading h2 span { font-weight:400; color:#526b70; margin-left:9px; }
.display-demo .dialog-close { width:44px; height:44px; top:10px; right:14px; }
.display-demo-body { flex:1; min-height:0; display:grid; grid-template-columns:minmax(240px,.86fr) minmax(0,1.14fr); gap:30px; padding:25px 35px 30px; }
.display-demo-controls { align-self:center; min-width:0; }
.display-demo-intro .small-label { color:#00767e; }
.display-demo-intro h3 { font-size:clamp(27px,3vw,40px); line-height:1.17; letter-spacing:-1px; margin:16px 0 19px; }
.display-demo-intro > p:last-child { font-size:14px; line-height:1.8; color:#526b70; max-width:340px; }
.display-scenario-control { display:grid; grid-template-columns:1fr auto; gap:7px 10px; margin-top:27px; }
.display-scenario-control label { grid-column:1/-1; font-size:12px; color:#526b70; }
.display-scenario-control select { min-width:0; width:100%; border:1px solid #a8beba; border-radius:3px; color:#1c414b; background:#fff; padding:11px 7px; font:500 14px Roboto,'Segoe UI',sans-serif; min-height:44px; }
#display-reset { min-height:44px; min-width:44px; background:transparent; border:1px solid #a8beba; border-radius:3px; color:#31545c; display:flex; align-items:center; justify-content:center; }
#display-reset span { display:none; }
#display-reset svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.5; }
.display-scenario-note { font-size:12px; color:#526b70; line-height:1.65; margin-top:12px; min-height:60px; max-width:340px; }
.display-screen-stage { min-width:0; min-height:0; display:flex; align-items:center; justify-content:center; }
@media(max-width:700px) {
  .display-demo { width:calc(100vw - 12px); height:calc(100dvh - 12px); }
  .display-demo-heading { min-height:57px; padding:10px 68px 10px 16px; }
  .display-demo-heading h2 { font-size:16px; }
  .display-demo .dialog-close { top:6px; right:8px; }
  .display-demo-body { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); padding:10px 14px 14px; gap:8px; }
  .display-demo-intro { display:none; }
  .display-scenario-control { margin:0; grid-template-columns:auto minmax(0,1fr) 44px; align-items:center; gap:8px; }
  .display-scenario-control label { grid-column:auto; }
  .display-scenario-control select { font-size:13px; }
  .display-scenario-note { font-size:11px; line-height:1.5; margin-top:7px; min-height:33px; max-width:none; }
}
@media(max-height:560px) and (min-width:701px) {
  .display-demo-heading { min-height:55px; }
  .display-demo-body { padding:15px 25px; gap:18px; }
  .display-demo-intro h3 { font-size:25px; margin:8px 0; }
  .display-demo-intro h3 br { display:none; }
  .display-demo-intro > p:last-child { font-size:12px; line-height:1.6; }
  .display-scenario-control { margin-top:14px; }
  .display-scenario-note { min-height:0; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { #display-demo .signal-bar span { transition:none; } }

/* Front orthographic render. The viewport bounds are the CAD active LCD projected into the 680 × 1080 image. */
.display-screen-stage { container-type:size; }
#display-demo .device-shell {
  width:min(100cqw,62.963cqh); aspect-ratio:680 / 1080; position:relative;
  background:url("img/vision/tof300-front-stand13.webp") center / contain no-repeat;
}
#display-demo .instrument {
  position:absolute; left:22.43787%; top:10.21634%; width:55.12426%; height:61.69663%;
  container-type:size; overflow:hidden; --display-surface:#e5edeb; background:var(--display-surface);
  font:normal 400 14px/1.2 "Segoe UI",Roboto,Arial,sans-serif; color:#102d3c; font-variant-numeric:tabular-nums;
}
#display-demo .device-shell.is-enlarged { width:100%; height:100%; background:none; }
#display-demo .is-enlarged .instrument { inset:0; width:100%; height:100%; }
#display-demo .instrument :is(h2,p) { margin:0; }
#display-demo .instrument :is(button,select,input) { font:inherit; color:inherit; }
#display-demo .instrument :focus-visible { outline:2px solid #047887; outline-offset:1px; }
#display-demo .instrument-content { display:flex; flex-direction:column; height:100%; --ui:min(1cqw,1.22cqh); }
#display-demo [hidden] { display:none; }
.display-demo .display-zoom { min-height:40px; padding:6px 12px; border:1px solid #a8beba; background:transparent; border-radius:3px; color:#175e63; cursor:pointer; }
@media(max-width:700px) {
  .display-demo-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; column-gap:6px; }
  .display-demo .display-zoom { grid-column:2; grid-row:1; font-size:12px; min-height:44px; }
  .display-scenario-control { grid-template-columns:minmax(0,1fr) 44px; }
  .display-scenario-control label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .display-scenario-note { grid-column:1/-1; }
}
@media(max-height:480px) and (orientation:landscape) {
  .display-demo-body { grid-template-columns:minmax(145px,.6fr) minmax(0,1.4fr); grid-template-rows:minmax(0,1fr); }
  .display-demo-controls { display:block; } .display-demo-intro { display:none; }
}

#display-demo .instrument-header,
#display-demo .instrument-footer {
  flex: none;
  display: flex;
  align-items: center;
  gap: calc(2.4 * var(--ui));
  padding: 0 4.5cqw;
  height: 8.2cqh;
  background: var(--display-surface);
}
#display-demo .instrument-header {
  border-bottom: 1px solid #c9d7d9;
}
#display-demo .menu-toggle,
#display-demo .details-toggle {
  background: var(--display-surface);
  border: 1px solid #b8cccc;
  border-radius: calc(1.2 * var(--ui));
  color: #163c46;
}
#display-demo .menu-toggle {
  width: calc(8 * var(--ui));
  height: calc(8 * var(--ui));
  display: grid;
  place-items: center;
  padding: 0;
}
#display-demo .menu-toggle svg {
  width: 56%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
#display-demo .chamber-name {
  font-size: calc(4.4 * var(--ui));
  font-weight: 650;
}
#display-demo .acquisition-state {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  font-size: calc(3.3 * var(--ui));
  color: #175d42;
}
#display-demo .acquisition-state i {
  background: #119953;
  width: calc(1.45 * var(--ui));
  height: calc(1.45 * var(--ui));
  border-radius: 50%;
}
#display-demo .acquisition-state.has-fresh-sample i {
  box-shadow: 0 0 0 0.45cqw #0c995627;
}
#display-demo .acquisition-state.is-held {
  color: #895100;
}
#display-demo .acquisition-state.is-held i {
  background: #a46712;
}
#display-demo .readings {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-rows: minmax(22cqh, 1.5fr) repeat(
      var(--count),
      minmax(11.6cqh, 1fr)
    );
  scrollbar-width: thin;
}
#display-demo .reading {
  --value-size: calc(8.3 * var(--ui));
  min-width: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1.2cqh;
  padding: 1.1cqh 5cqw;
  border-bottom: 1px solid #dae4e6;
  background: var(--display-surface);
  color: var(--signal);
}
#display-demo .reading-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.4cqw;
}
#display-demo .reading-title h2 {
  font-size: calc(7.9 * var(--ui));
  line-height: 1.03;
  font-weight: 690;
  letter-spacing: -0.045em;
}
#display-demo .reading-title > span {
  display: block;
  color: #445e69;
  font-size: calc(3.1 * var(--ui));
  line-height: 1.22;
}
#display-demo .reading-value {
  font-weight: 670;
  font-size: var(--value-size);
  line-height: 1.06;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
#display-demo .unit {
  font-size: 0.48em;
  margin-left: 0.15em;
  letter-spacing: 0;
}
#display-demo .direction-indicator {
  display: grid;
  place-items: center;
  width: var(--value-size);
  height: var(--value-size);
}
#display-demo .direction-indicator svg {
  width: 92%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#display-demo .direction-indicator[data-direction="up"] svg {
  transform: rotate(-45deg) scale(1.12);
}
#display-demo .direction-indicator[data-direction="down"] svg {
  transform: rotate(45deg) scale(1.12);
}
#display-demo .signal-bar {
  width: 100%;
  height: 1.35cqh;
  border-radius: 20px;
  background: #d3dfdf;
  overflow: hidden;
}
#display-demo .signal-bar span {
  display: block;
  height: 100%;
  background: var(--signal);
  border-radius: inherit;
}
#display-demo .reading[data-key="total"] {
  --value-size: calc(14.3 * var(--ui));
  background: #193d4d;
  color: #fff;
  border-bottom: 0;
}
#display-demo .reading[data-key="total"] .reading-summary {
  grid-template: auto auto / minmax(0, 1fr) auto;
  gap: 1.5cqh 1.4cqw;
}
#display-demo .reading[data-key="total"] .reading-title h2 {
  font-size: calc(4.7 * var(--ui));
  letter-spacing: 0;
}
#display-demo .reading[data-key="total"] .reading-title > span,
#display-demo .reading[data-key="total"] .signal-bar {
  display: none;
}
#display-demo .reading[data-key="total"] .reading-value {
  grid-area: 2/1;
  font-weight: 700;
}
#display-demo .reading[data-key="total"] sup {
  font-size: 0.48em;
  vertical-align: super;
  line-height: 0;
}
#display-demo .multiply {
  font-weight: 450;
  font-size: 0.63em;
  margin: 0 0.12em;
}
#display-demo .reading[data-key="total"] .unit {
  font-size: 0.43em;
  font-weight: 550;
  margin-left: 0.28em;
}
#display-demo .reading[data-key="total"] .direction-indicator {
  grid-area: 2/2;
}
#display-demo .reading[data-key="total"] .trend-heading {
  color: #e2efef;
}
#display-demo .reading[data-key="total"] .axis-label {
  fill: #c0d9dc;
}
#display-demo .reading[data-key="total"] .trend-grid {
  stroke: #466775;
}
#display-demo .instrument-footer {
  height: 6.9cqh;
  justify-content: space-between;
  font-size: calc(3.1 * var(--ui));
  color: #425b65;
  border-top: 1px solid #cfdbdc;
}
#display-demo .instrument-footer b {
  font-weight: 500;
}
#display-demo .details-toggle {
  padding: 0.5cqh 2.8cqw;
  font-weight: 600;
}
#display-demo .details-icon {
  margin-right: 0.6em;
}
#display-demo #sample-time {
  font-family: Consolas, monospace;
}
#display-demo [data-details="true"] .readings {
  grid-auto-flow: row;
  grid-template-rows: none;
  grid-auto-rows: minmax(34cqh, auto);
}
#display-demo .trend-block {
  display: grid;
  grid-template-rows: auto minmax(50px, 1fr);
  gap: 0.6cqh;
  min-height: 0;
  flex: 1;
}
#display-demo .trend-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.6em;
  font-size: calc(2.75 * var(--ui));
  color: #465e65;
}
#display-demo .trend {
  min-height: 0;
}
#display-demo .trend svg {
  display: block;
  width: 100%;
  height: 100%;
}
#display-demo .trend-grid {
  stroke: #d7e3e3;
}
#display-demo .trend-area {
  fill: var(--signal);
  opacity: 0.09;
}
#display-demo .trend-line {
  stroke: var(--signal);
  fill: none;
  stroke-width: 2;
}
#display-demo .trend-end {
  fill: var(--signal);
}
#display-demo .axis-label {
  fill: #526b72;
  font-size: 11px;
}
#display-demo .menu-layer,
#display-demo .menu-shade {
  position: absolute;
  inset: 0;
}
#display-demo .menu-shade {
  background: #102d4380;
}
#display-demo .device-menu {
  position: absolute;
  inset: 2%;
  overflow: auto;
  background: var(--display-surface);
  padding: 4%;
  border: 1px solid #afc5c6;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: clamp(12px, 3.6cqw, 24px);
}
#display-demo .device-menu header,
#display-demo .unit-setting,
#display-demo .return-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#display-demo .device-menu h2 {
  font-size: 1.35em;
}
#display-demo .device-menu header p {
  font-size: 0.75em;
  color: #507077;
}
#display-demo .device-menu button,
#display-demo .device-menu select,
#display-demo .device-menu input[type="number"] {
  border: 1px solid #becccc;
  background: #f5f9f9;
  border-radius: 4px;
  padding: 0.44em 0.65em;
}
#display-demo .device-menu #menu-close {
  font-size: 1.5em;
  line-height: 1;
}
#display-demo .mass-settings {
  margin: 0;
  padding: 0.65em;
  border: 1px solid #c5d5d5;
}
#display-demo .mass-settings legend {
  font-weight: 650;
}
#display-demo #mass-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25em;
}
#display-demo #mass-options label {
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.25em;
  cursor: pointer;
}
#display-demo #mass-options input {
  accent-color: #007e76;
}
#display-demo #mass-options small {
  font-size: 0.69em;
  color: #52656b;
}
#display-demo #mass-form {
  margin-top: 0.65em;
}
#display-demo #mass-form > div {
  display: flex;
  gap: 0.4em;
  margin-top: 0.3em;
}
#display-demo #custom-mass {
  width: 42%;
}
#display-demo #mass-feedback,
#display-demo .menu-note,
#display-demo .menu-information {
  font-size: 0.82em;
  color: #536972;
}
#display-demo .menu-information {
  display: grid;
  gap: 0.3em;
}
#display-demo .menu-information strong {
  margin-bottom: 0.3em;
}
#display-demo .return-button {
  font-weight: 600;
}
#display-demo .hold-button {
  text-align: left;
}
#display-demo .hold-button span + span {
  margin-left: 0.5em;
}
#display-demo [data-format="landscape"] .instrument-content {
  --ui: 1.38cqh;
}
#display-demo [data-format="landscape"] .instrument-header {
  height: 12cqh;
}
#display-demo [data-format="landscape"] .instrument-footer {
  height: 10cqh;
}
#display-demo [data-format="landscape"] .readings {
  grid-template-columns: 42% 58%;
  grid-template-rows: repeat(var(--count), minmax(13cqh, 1fr));
}
#display-demo [data-format="landscape"] .reading {
  --value-size: 7.2cqh;
  grid-column: 2;
  padding: 1.2cqh 2.4cqw;
  gap: 1cqh;
}
#display-demo [data-format="landscape"] .reading[data-key="total"] {
  --value-size: min(13cqh, 7.5cqw);
  grid-column: 1;
  grid-row: 1 / span var(--count);
  border-right: 1px solid #cbd9db;
}
#display-demo [data-format="landscape"] .reading[data-key="total"] .reading-value {
  grid-column: 1 / -1;
}
#display-demo [data-format="landscape"] .reading[data-key="total"] .direction-indicator {
  grid-row: 1;
}
#display-demo [data-format="landscape"] .reading[data-key="total"] .unit {
  display: block;
  margin: 0.4em 0 0;
}
#display-demo [data-format="landscape"] .reading-title > span {
  font-size: 3.3cqh;
}
#display-demo [data-format="landscape"] .reading-title h2 {
  font-size: 7.2cqh;
}
#display-demo [data-format="landscape"][data-details="true"] .readings {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: none;
  grid-auto-rows: minmax(55cqh, auto);
}
#display-demo [data-format="landscape"][data-details="true"] .reading {
  grid-area: auto;
}
#display-demo [data-format="portrait"][data-sparse="true"][data-details="false"] .reading:not([data-key="total"]) {
  --value-size: calc(10 * var(--ui));
}

#display-demo .device-menu :is(button,select,input[type=number]) { min-height:28px; }
#display-demo .menu-toggle { min-width:24px; min-height:24px; }
#display-demo .details-toggle { min-height:24px; }
#display-demo #menu-close svg { width:16px; height:16px; stroke:currentColor; stroke-width:2; fill:none; }
