/* Demo frame chrome — the only styling this build adds around the real panel.
 * The panel styles itself (it injects its own stylesheet from client.js); the
 * product token layer supplies --dsw-alias-* values (tokens.css).
 * Demo-only layout adaptation, named in the banner: under 760px the panel's
 * own sidebar stacks above its main column so the desktop panel fits a phone. */

html,
body {
  margin: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background: var(--dsw-alias-bg-base, #ffffff);
  color: var(--dsw-alias-label-primary, #161616);
  font-family: var(--dsw-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  -webkit-font-smoothing: antialiased;
}

.demo-bar {
  flex: 0 0 auto;
  padding: 6px 14px 7px;
  border-bottom: 1px solid var(--dsw-alias-border-l1, #e9e9e9);
  background: var(--dsw-alias-bg-layer-1, #ffffff);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.demo-line--lead {
  font-size: 12px;
}

.demo-line--note {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--dsw-alias-label-secondary, #70686a);
}

.demo-line--note code {
  font-family: ui-monospace, "Geist Mono", "SF Mono", Menlo, monospace;
  font-size: 10px;
}

.demo-badge {
  font-family: ui-monospace, "Geist Mono", "SF Mono", Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffffff;
  background: var(--dsw-alias-brand-primary, #d97757);
  white-space: nowrap;
}

.demo-title {
  font-weight: 600;
  color: var(--dsw-alias-label-primary, #161616);
}

.demo-meta {
  font-family: ui-monospace, "Geist Mono", "SF Mono", Menlo, monospace;
  font-size: 10px;
  color: var(--dsw-alias-label-tertiary, #91888a);
  margin-left: auto;
  white-space: nowrap;
}

.demo-mount {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.demo-mount > .dshf {
  flex: 1 1 auto;
  min-height: 0;
}

/* Demo-only layout adaptation for narrow screens: the landed panel is a
 * desktop surface (1600x1000 / 1280x800); stack its sidebar above the main
 * column so the same panel fits a phone without a horizontal scroll. */
@media (max-width: 760px) {
  .demo-bar {
    padding: 6px 10px 7px;
  }
  .demo-meta {
    margin-left: 0;
  }
  .demo-mount > .dshf .dshf-body {
    flex-direction: column;
  }
  .demo-mount > .dshf .dshf-side {
    flex: 0 0 auto;
    max-height: 34vh;
    border-right: 0;
    border-bottom: 1px solid var(--dsw-alias-border-l1, #e9e9e9);
  }
  /* The landed tree is a fixed desktop canvas (SVG proportions). Squeezing it
   * into 390px overlaps the ticket cards, so the demo keeps the tree at its
   * native width and lets the panel main column pan sideways instead. */
  .demo-mount > .dshf .dshf-main {
    overflow-x: auto;
    overflow-y: hidden;
  }
  .demo-mount > .dshf .dshf-tree {
    min-width: 900px;
  }
}
