/* Demo-only styling: the "not connected to a device" bar and hiding the
   actions that need real hardware. Loaded by the generated demo build only;
   the firmware never serves this file (see tools/demo/build.mjs).

   Design notes: the bar is deliberately quiet (page background, one bottom
   border) so the orange "Get a keypad" pill is the only element competing for
   attention. The inner div matches the app's 1000px column, which is what makes
   it line up with the logo and the cards instead of hugging the window edge. */

/* Subtle tint of the CTA's orange so the bar reads as one unit: the pill looks
   like it belongs to the strip rather than floating on it. Kept low enough that
   the message stays legible in both themes. */
.demo-banner {
  background: color-mix(in srgb, var(--nord12) 10%, var(--page-bg));
  border-bottom: 1px solid color-mix(in srgb, var(--nord12) 30%, var(--card-border));
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
}

.demo-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  /* 1000px of content plus the 16px gutters, so the text box lines up with the
     centred cards on wide screens and keeps a margin on narrow ones. */
  max-width: 1032px;
  margin: 0 auto;
  padding: 8px 16px;
}

/* Neutral chip: the purple in this UI means "dev tools" (mock favicon,
   Development section), so the demo label stays in the app's normal chip
   colours and lets the CTA carry the accent. */
.demo-banner-tag {
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-banner-text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
}

/* Filled primary button, same shape as the app's other primary actions
   (border-radius 999px, dark text on a saturated fill). Orange is unused for
   anything transactional in the UI: green is the accent/success colour. */
.demo-banner-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--nord12);
  color: var(--nord0);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s;
}

.demo-banner-cta:hover,
.demo-banner-cta:focus-visible {
  background: color-mix(in srgb, var(--nord12) 85%, var(--nord0));
}

/* The Etsy glyph is a mask sized by height; its 576/512 ratio sets the width. */
.demo-banner-cta .icon {
  height: 14px;
  flex: none;
}

@media (max-width: 640px) {
  .demo-banner-inner {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 8px 12px;
  }

  /* Compact two rows: tag + call to action, then the message. The CTA keeps its
     own size (a stretched pill reads like a second bar). */
  .demo-banner-tag {
    order: 1;
  }

  .demo-banner-cta {
    order: 2;
    margin-left: auto;
  }

  .demo-banner-text {
    order: 3;
    flex-basis: 100%;
  }
}

/* Reboot only exists on a device, and the post-reboot overlay would wait for a
   board that never comes back. */
.nav-reboot {
  display: none !important;
}
