/* Trusted devices (web/devices.js): "Set up this device", the owner's approval window, Settings → Devices.
   Uses the app's own colors (styles.css), so light and dark follow the device like everything else. */
.center { text-align: center; }
.devsetup { max-width: 440px; margin-top: 9vh; padding-bottom: 24px; }
.devsetup.still { animation: none; }
.devsetup .brand.big { margin-bottom: 4px; }
.dev-sub { margin: 0 0 16px; }
.devsetup .card { padding: 22px 20px; }
.dev-h { font-size: 23px; line-height: 1.2; margin: 2px 0 8px; }
.devsetup p { margin: 0 0 12px; line-height: 1.45; }
.dev-langs { display: flex; width: 100%; margin-bottom: 12px; }
.dev-langs button { flex: 1; min-height: 44px; font-size: 15px; }
.devsetup .btn.big { min-height: 60px; }
.devsetup .btn.ghost { min-height: 50px; }
.devsetup input { min-height: 52px; font-size: 18px; }
.dev-tip { margin: 0 0 12px; }
/* "Just looking? Open the demo shop" (only on app.<domain>): a quiet link-button under the real setup */
.dev-demo { display: flex; width: 100%; margin-top: 10px; text-decoration: none; color: var(--muted); font-size: 15px; }
.dev-note { margin: 0 0 12px; padding: 11px 13px; border-radius: 11px; font-size: 15px;
  background: color-mix(in srgb, var(--warn) 16%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }

/* the code, big: "4 7 2 9 1 3" */
/* sized to fit a 320 px phone: 6 × 34 px + gaps */
.dev-code { display: flex; justify-content: center; gap: clamp(4px, 1.6vw, 12px); margin: 18px 0 14px; user-select: all; -webkit-user-select: all; }
.dev-code span { display: grid; place-items: center; width: clamp(34px, 10.5vw, 54px); height: clamp(52px, 15vw, 74px); border-radius: 12px;
  background: var(--panel2); border: 1px solid var(--line); font: 800 clamp(28px, 8.5vw, 42px)/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums; }
.dev-code span:nth-child(3) { margin-right: clamp(4px, 1.5vw, 10px); }
.dev-code.old span { opacity: .35; }
.dev-wait { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 2px; color: var(--muted); font-weight: 600; }
.dev-left { font-variant-numeric: tabular-nums; color: var(--ink); }
.dev-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: dev-spin .9s linear infinite; }
@keyframes dev-spin { to { transform: rotate(360deg); } }
.dev-ok { width: 84px; height: 84px; margin: 6px auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 44px; font-weight: 800;
  color: #fff; background: var(--ok); animation: dev-pop .35s cubic-bezier(.2, .8, .2, 1.2); }
@keyframes dev-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* an owner letting a device in */
.dev-req { padding: 14px; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); }
.dev-req-name { font-size: 17px; }
.dev-req label { margin-top: 12px; }
.dev-codein { width: 100%; min-height: 56px; text-align: center; font: 800 28px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .28em; padding-left: .28em; font-variant-numeric: tabular-nums; }
.dev-req .row { margin-top: 12px; }
.dev-req .btn.big { min-height: 52px; }
.dev-prompt .modal { width: min(480px, 100%); }

/* Settings → Devices */
.dev-sec { margin: 16px 0 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
[data-devices] .lrow { align-items: center; }
[data-devices] .lrow .btn + .btn { margin-left: -4px; }
.dev-old { margin-top: 14px; }
.dev-old summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 0; }
.dev-alert { margin-top: 8px; padding: 10px 12px; border-radius: 10px; font-size: 14px;
  background: color-mix(in srgb, var(--red) 12%, transparent); border: 1px solid color-mix(in srgb, var(--red) 35%, transparent); }
.dev-alert .muted { margin-left: 6px; }

@media (prefers-reduced-motion: reduce) { .dev-spin, .dev-ok { animation: none; } }
