/* The "Your branding" screen (switch phone_brand_screen), phone and website. Every rule is under .bs, which exists only while the screen is shown.
   Phone: the Nest look (pills 999, every other corner 2 px, Mist page, teal main action). Website: the Pro style (sharp cards, pill buttons). */
.bs { --bs-ink: var(--nest-ink, var(--text, #1F2A33)); --bs-soft: var(--nest-soft, var(--text-body, #3B4A47)); --bs-muted: var(--nest-muted, #5D6A70);
  --bs-line: var(--nest-line, var(--line, #C9CFC9)); --bs-card: var(--nest-card, var(--pro-card, #F8F9F6)); --bs-field: var(--nest-field, #FFFFFF);
  --bs-teal: var(--nest-teal, var(--accent, #1F5C5B)); --bs-deep: var(--nest-deep, #0F2E2D); --bs-danger: var(--nest-danger, #A83232); --bs-danger-bg: var(--nest-danger-bg, #FBF1EF);
  --bs-notice: var(--nest-notice, #E3EDEA); --bs-text: var(--nest-text, "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif);
  --bs-disp: var(--nest-disp, var(--font-display, "Archivo", "IBM Plex Sans", system-ui, sans-serif)); --bs-mono: var(--nest-mono, "IBM Plex Mono", ui-monospace, Menlo, monospace);
  font: 400 16px/1.45 var(--bs-text); color: var(--bs-ink); display: grid; gap: 14px; align-content: start; max-width: 760px; margin: 0 auto; padding: 4px 0 28px; }
.bs-lead { margin: 0; color: var(--bs-soft); }
.bs-small { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--bs-muted); }
.bs-notice { min-height: 1.3em; color: var(--bs-teal); }
.bs-notice:empty { display: none; }
.bs-truth { margin: 0; padding: 12px 14px; background: var(--bs-notice); border-radius: 2px; color: var(--bs-ink); font-size: 14.5px; }
.bs-card { background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: 2px; padding: 16px; display: grid; gap: 12px; }
.bs-h { margin: 0; font: 700 17px/1.2 var(--bs-disp); letter-spacing: -.01em; color: var(--bs-ink); }
.bs-mono { font-family: var(--bs-mono); }
/* the sample: two pages side by side, each at its own proportions */
.bs-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.bs-fig { margin: 0; display: grid; gap: 6px; }
.bs-page { display: block; width: 100%; height: auto; aspect-ratio: 210 / 297; background: var(--bs-field); border: 1px solid var(--bs-line); border-radius: 2px; box-shadow: 0 1px 4px rgba(15, 46, 45, .12); }
.bs-drawing .bs-page { background: linear-gradient(100deg, #e4e9e6 30%, #f2f5f3 50%, #e4e9e6 70%) 0 0 / 200% 100%; animation: bs-shimmer 1.4s linear infinite; }
@keyframes bs-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .bs-drawing .bs-page { animation: none; } }
/* the logo, on the white tile it prints on */
.bs-logo { display: flex; align-items: center; justify-content: center; min-height: 112px; padding: 16px; background: var(--bs-field); border: 1px solid var(--bs-line); border-radius: 2px; }
.bs-logo img { display: block; max-width: 100%; max-height: 120px; object-fit: contain; }
.bs-warn { margin: 0; padding: 10px 12px; background: var(--bs-danger-bg); border-left: 3px solid var(--bs-danger); border-radius: 2px; font-size: 14px; color: var(--bs-ink); }
.bs-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
/* details */
.bs-rows { display: grid; }
.bs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--bs-line); min-height: 56px; }
.bs-row:first-child { border-top: 0; }
.bs-rowtext { display: grid; gap: 2px; min-width: 0; }
.bs-label { font: 600 12px/1.2 var(--bs-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--bs-muted); }
.bs-value { overflow-wrap: anywhere; color: var(--bs-ink); }
.bs-empty { color: var(--bs-muted); font-style: italic; }
.bs-edit { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--bs-line); }
.bs-input { font: 400 16px/1.3 var(--bs-text); color: var(--bs-ink); background: var(--bs-field); border: 1px solid var(--bs-line); border-radius: 2px; padding: 11px 12px; width: 100%; box-sizing: border-box; min-height: 44px; }
.bs-input:focus { outline: 2px solid var(--bs-teal); outline-offset: 1px; }
.bs-error { margin: 0; color: var(--bs-danger); font-size: 14px; }
/* buttons: pills */
.bs-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bs-stack { flex-direction: column; align-items: stretch; }
.bs-btn { font: 600 16px/1 var(--bs-text); min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--bs-teal); background: transparent; color: var(--bs-teal); cursor: pointer; }
.bs-btn:disabled { opacity: .5; cursor: default; }
.bs-btn:focus-visible { outline: 2px solid var(--bs-deep); outline-offset: 2px; }
.bs-primary { background: var(--bs-teal); color: #fff; }
.bs-secondary { background: transparent; }
.bs-link { min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; background: none; font-weight: 600; text-decoration: underline; }
.bs-last { background: transparent; border: 0; padding: 0; }
/* phone: one column of full-width actions, the pages a little smaller */
.bs-phone .bs-actions:not(.bs-stack) .bs-btn.bs-primary { flex: 1 1 auto; }
.bs-phone .bs-card { padding: 14px; }
.bs-phone .bs-pages { gap: 10px; }
/* #1230: every Change link keeps its own width at the row's end, so a long value (an address) wraps instead of pushing its link out */
.bs-phone .bs-row > .bs-rowtext { flex: 1 1 auto; }
.bs-phone .bs-row > .bs-link { flex: none; }
/* website: Pro style: square cards, more air */
.bs-desk { max-width: 980px; gap: 20px; }
.bs-desk .bs-card { border-radius: 0; padding: 22px 24px; }
.bs-desk .bs-pages { grid-template-columns: repeat(2, minmax(0, 300px)); gap: 20px; }
.bs-desk .bs-logo, .bs-desk .bs-page, .bs-desk .bs-input, .bs-desk .bs-truth, .bs-desk .bs-warn { border-radius: 0; }
@media (max-width: 560px) { .bs-desk .bs-pages { grid-template-columns: 1fr 1fr; } }

/* the phone's top bar already says Your branding: the page heading stays for screen readers only */
#branding > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
