* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #2563eb;      /* PrintMeHey blue */
  --brand-dark: #1d4ed8;
  --brand-pink: #ec4899;
  --ok: #16a34a;
  --bad: #dc2626;
  --warn: #d97706;
  --info: #2563eb;
  --radius: 14px;
}

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'Kanit', -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;   /* 🔴 กันหน้าเว็บล้นขวาบนมือถือ — ให้ table-wrap scroll เอง */
}

.topbar {
  background: var(--bg);
  color: var(--ink);
  padding: 18px 16px 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.topbar-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1; padding-right: 0; }
.topbar .logo { max-width: 320px; width: 100%; height: auto; }
.topbar h1 { font-size: 1.35rem; font-weight: 700; letter-spacing: .3px; }
.tagline { font-size: .85rem; color: var(--muted); }

/* 🔴 (09/08/2026) ปุ่ม ⚙️ ตั้งค่า มุมขวาบน — เปิด/ปิด settings panel */
.gear-btn {
  background: #eef2f7;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.gear-btn:active { background: #dbe3ec; }
.gear-btn svg { display: block; }

/* หน้าแยก (settings) — ซ่อน/แสดงทั้งหน้า */
.page.hidden { display: none !important; }
.page { max-width: 720px; margin: 0 auto; margin-top: 16px; }

/* 🔴 option offline ใน select ปริ้นเตอร์ปลายทาง — ⚠️ + สีจาง + เลือกไม่ได้ */
select option.offline-opt { color: #cbd5e1; }
.btn-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  float: right;
  padding: 2px 6px;
  border-radius: 6px;
}
.btn-close:active { background: var(--line); }
.hidden { display: none !important; }

/* 🔴 (09/08/2026) pagination — ประวัติการพิมพ์ 10/หน้า */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.page-info { font-size: 13px; color: var(--muted); flex: 1; text-align: center; }
.pager .btn[disabled] { opacity: .4; pointer-events: none; }

.container { max-width: 720px; margin: 0 auto; padding: 16px 14px 40px; display: grid; gap: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  max-width: 100%;
  overflow: hidden;   /* 🔴 กันเนื้อใน card ผลักจอกว้าง */
}
.card h2 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: .3px;
}

/* Upload form */
.drop {
  display: block;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 26px 12px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  font-size: .95rem;
  transition: border-color .15s, background .15s;
  margin-bottom: 14px;
}
.drop:hover { border-color: var(--brand); background: #eff6ff; }
.drop input { display: none; }
.drop.has-file { border-color: var(--brand); background: #eff6ff; color: var(--brand-dark); font-weight: 500; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.field select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

.field input.input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field input.input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.hint { margin-top: 10px; font-size: .78rem; color: var(--muted); }

.btn {
  width: 100%;
  padding: 14px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { background: #94a3b8; cursor: not-allowed; }

.msg { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: .92rem; }
.msg.ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.msg.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Devices */
.devices { display: grid; gap: 10px; }
.device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
}
.device .name { font-weight: 600; font-size: .98rem; }
.device .sub { font-size: .78rem; color: var(--muted); margin-top: 2px; word-break: break-all; white-space: pre-line; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.online  { background: #f0fdf4; color: var(--ok); }
.badge.offline { background: #fef2f2; color: var(--bad); }
.badge.unknown { background: #f3f4f6; color: var(--muted); }

/* Jobs table — 🔴 v3 (08/08): ตารางยาวกว่าจอมือถือ → auto layout (คอลัมน์อ่านง่าย)
   + เลื่อนด้านข้างในกรอบ (.table-wrap overflow-x:auto) ตามที่พี่กำหนด */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: .74rem; letter-spacing: .3px; }
td.empty { text-align: center; color: var(--muted); padding: 22px; white-space: normal; }
.file-cell { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.user-cell { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.dev-cell { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.pm-cell { max-width: 60px; white-space: nowrap; text-align: center; color: #334155; font-size: 13px; }
.status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
}
.status.pending  { background: #fffbeb; color: var(--warn); }
.status.printing { background: #eff6ff; color: var(--info); }
.status.done     { background: #f0fdf4; color: var(--ok); }
.status.error    { background: #fef2f2; color: var(--bad); }
/* 🔴 พิมพ์ซ้ำ (Sutee 08/08) */
.act-cell { text-align: center; }
.reprint-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 30px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.reprint-btn:hover { background: var(--brand-dark); }
.expired { font-size: .72rem; color: #9ca3af; white-space: nowrap; }
.noact { color: #d1d5db; }
.reprint-form { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.reprint-select {
  padding: 8px 10px;
  font-family: inherit;
  font-size: .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  max-width: 180px;
}
.btn-small {
  width: 100%;
  padding: 9px 10px;
  font-size: .85rem;
  border-radius: 8px;
}
.btn-ghost {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #f3f4f6; }
.swipe-hint { margin-top: 8px; font-size: .72rem; color: var(--muted); text-align: right; }

.foot { text-align: center; color: var(--muted); font-size: .78rem; padding: 20px 0 32px; }
.foot-logo { height: 100px; width: auto; margin-bottom: 8px; }

/* บัญชี + จัดการผู้ใช้ (10/08/2026) */
.acct { background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.acct-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .95rem; }
.acct-row span { color: var(--muted); flex: 0 0 auto; }
.acct-row b { font-weight: 600; text-align: right; }
.user-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: none; }
.user-main { flex: 1; min-width: 140px; }
.user-sub { font-size: .75rem; color: var(--muted); }
.badge-admin { background: #eff6ff; color: var(--brand); font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.plan-sel { padding: 6px 8px; font-family: inherit; font-size: .82rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.acked-badge { display: inline-block; margin-top: 4px; background: #dcfce7; color: #15803d; font-size: .68rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.ack-btn { background: #16a34a; color: #fff; border: none; border-radius: 8px; font-family: inherit; font-size: .72rem; font-weight: 600; padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.ack-btn:disabled { opacity: .6; }

/* ===== v18 (15/08/2026) — login page + credit/topup + auth ===== */
.auth-body { background: linear-gradient(160deg, #eff6ff 0%, #fdf2f8 100%); display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 16px; }
.auth-wrap { width: 100%; max-width: 400px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px 26px; box-shadow: 0 10px 30px rgba(37,99,235,.08); }
.auth-logo { display: block; max-width: 220px; width: 100%; margin: 0 auto 18px; }
.auth-title { text-align: center; font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.auth-sub { text-align: center; color: var(--muted); font-size: .88rem; margin: 4px 0 22px; }
.auth-foot { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 16px; }
.auth-foot a { color: var(--brand); font-weight: 600; text-decoration: none; }

.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; padding-right: 0; }
.user-chip { background: #eef2f7; color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: .82rem; font-weight: 500; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-chip { background: #eff6ff; color: var(--brand); border-radius: 999px; padding: 7px 12px; font-size: .78rem; font-weight: 600; text-decoration: none; }

/* credit card */
#credit-card { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #7c3aed 100%); border: none; color: #fff; }
#credit-card h2 { color: rgba(255,255,255,.85); }
.credit-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.credit-bal { flex: 1; min-width: 140px; }
.credit-num { font-size: 2.3rem; font-weight: 700; line-height: 1.1; }
.credit-unit { font-size: .9rem; color: rgba(255,255,255,.85); margin-left: 6px; }
.credit-sub { font-size: .78rem; color: rgba(255,255,255,.75); margin-top: 4px; }
.credit-packs { display: flex; gap: 8px; }
.pack-btn { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 12px; padding: 10px 12px; min-width: 72px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: background .15s; font-family: inherit; }
.pack-btn:hover { background: rgba(255,255,255,.28); }
.pack-btn:disabled { opacity: .6; cursor: not-allowed; }
.pack-btn b { font-size: 1.02rem; font-weight: 700; }
.pack-btn span { font-size: .78rem; opacity: .9; }
#credit-card .msg.ok { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.4); }
#credit-card .msg.err { background: rgba(220,38,38,.25); color: #fff; border-color: rgba(255,255,255,.4); }

/* ===== Firmware OTA (19/08/2026) ===== */
.fw-hint { font-size: .8rem; color: var(--muted, #64748b); margin: 4px 0 12px; }
#fw-card .table-wrap { margin-top: 6px; }
#fw-card td, #fw-card th { padding: 10px 10px; }
#fw-card .act-cell { text-align: right; white-space: nowrap; }

dialog#fw-modal {
  border: none;
  box-sizing: border-box;
  max-height: min(92dvh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog#fw-modal::backdrop {
  background: rgba(15, 23, 42, .55);
}
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 400px;
  padding: 20px; box-shadow: 0 20px 50px rgba(15,23,42,.35);
}
.modal h3 { margin: 0 0 14px; font-size: 1.05rem; color: var(--ink, #0f172a); }
.modal .field { margin-bottom: 12px; }
.modal .field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; color: var(--ink, #0f172a); }
.modal .field input[type="text"], .modal .field input[type="file"] {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px;
  font-size: .92rem; font-family: inherit; background: #f8fafc;
}
.modal .field small { color: #64748b; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* ===== Scan printer UX (19/08/2026 — Sutee: ปุ่มเล็กข้างช่อง IP + spinner) ===== */
.input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.input-group .input {
  flex: 1;
  min-width: 0;
}
.input-group .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.scan-icon {
  display: inline-block;
  line-height: 1;
}
.scan-icon.spinning {
  animation: scan-spin 1s linear infinite;
}
@keyframes scan-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== v20 (20/08/2026) — PWA + my devices + promo + buy ===== */
.promo-chip {
  display: inline-block; background: var(--pink, #EC4899); color: #fff;
  font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  margin-left: 8px; vertical-align: middle;
}
.promo-bar {
  margin-top: 10px; background: #FFF1F5; border: 1px solid #F9A8D4; color: #DB2777;
  padding: 10px 14px; border-radius: 10px; font-size: 14px;
}
.promo-row {
  display: flex; gap: 8px; margin-top: 12px; max-width: 480px;
}
.promo-row input {
  flex: 1; padding: 10px 13px; border: 1.5px solid #F9A8D4; border-radius: 10px;
  font-family: 'Kanit', sans-serif; font-size: 14px; text-transform: uppercase;
}
.promo-row input:focus { outline: none; border-color: var(--pink, #EC4899); }
.promo-row input:disabled { background: #F1F5F9; color: #DB2777; font-weight: 600; }
.pack-price { display: block; font-size: 13px; color: #64748B; margin-top: 2px; }
.add-device-box {
  margin-top: 14px; background: #F8FAFC; border: 1.5px dashed #BFDBFE;
  border-radius: 12px; padding: 14px;
}
.add-device-row { display: flex; gap: 8px; }
.add-device-row input {
  flex: 1; padding: 11px 13px; border: 1.5px solid #BFDBFE; border-radius: 10px;
  font-family: 'Kanit', sans-serif; font-size: 15px;
}
.add-device-row input:focus { outline: none; border-color: var(--blue, #2563EB); }
.uppercase-input { text-transform: uppercase; }
.add-device-box .hint, .shop-hint { display: block; font-size: 12.5px; color: #64748B; margin-top: 8px; }
.shop-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
.shop-item {
  background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.shop-name { font-weight: 600; font-size: 15px; }
.shop-price { font-size: 20px; font-weight: 700; color: var(--blue, #2563EB); }
.shop-price small { font-size: 13px; color: #64748B; font-weight: 400; }
.btn-lg { font-size: 17px; padding: 14px 28px; }
.btn-pink { background: var(--pink, #EC4899); }
.btn-pink:hover { background: var(--pink-dark, #DB2777); }
.btn-small { padding: 8px 14px; font-size: 13px; }

/* ===== v20b (20/08) — firmware per-device + modal close ===== */
.device { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dev-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.dev-actions .badge { align-self: flex-end; }
.fw-update-btn { background: #2563EB; color: #fff; }
.fw-update-btn:hover { background: #1D4ED8; }
.fw-dl-btn { background: #F1F5F9; color: #0F172A; border: 1px solid #CBD5E1; }
.fw-dl-btn:hover { background: #E2E8F0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal-head h3 { margin: 0; }
.close-x {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: #F1F5F9;
  font-size: 16px; cursor: pointer; color: #0F172A; flex-shrink: 0;
}
.close-x:hover { background: #E2E8F0; }

/* ===== Production UI/UX refresh (26/08/2026) ===== */
:root {
  --bg: #f7fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #526071;
  --line: #d8e0ea;
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --brand-pink: #d81b72;
  --radius: 12px;
}

body {
  background:
    linear-gradient(180deg, #eef6ff 0%, #f7fafc 210px, #f7fafc 100%);
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
label.drop:focus-within {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.topbar {
  background: rgba(247, 250, 252, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 224, 234, .9);
}

.topbar-inner,
.container {
  max-width: 860px;
}

.container {
  padding: 18px 14px 44px;
  gap: 14px;
}

.card {
  border-color: var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.card h2 {
  color: var(--ink);
  font-size: 1.18rem;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.card-kicker {
  color: var(--brand);
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-lead {
  color: var(--muted);
  font-size: .92rem;
  margin: -2px 0 14px;
}

.print-focus-card {
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 18px 45px rgba(29, 78, 216, .12);
}

.drop {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #9fb4cf;
  color: #334155;
  background: #fbfdff;
}

.drop.has-file,
.drop:hover {
  border-color: var(--brand);
  background: #eff6ff;
}

.field label {
  color: #334155;
  font-weight: 600;
}

.field select,
.field input.input,
.add-device-row input,
.promo-row input,
.reprint-select {
  min-height: 46px;
  border-color: #cbd5e1;
  color: var(--ink);
}

.field select:focus,
.field input.input:focus,
.add-device-row input:focus,
.promo-row input:focus,
.reprint-select:focus {
  outline: 3px solid rgba(245, 158, 11, .34);
  outline-offset: 1px;
  border-color: var(--brand);
}

.print-context {
  display: grid;
  gap: 8px;
  margin: 2px 0 14px;
}

.print-context span {
  display: block;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #334155;
  font-size: .84rem;
  padding: 9px 10px;
}

.btn,
.btn-small,
.pack-btn,
.ack-btn,
.reprint-btn,
.gear-btn {
  min-height: 44px;
}

.btn {
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(29, 78, 216, .15);
}

.btn-ghost {
  box-shadow: none;
}

#credit-card {
  background: linear-gradient(135deg, #1d4ed8 0%, #155e75 62%, #0f766e 100%);
}

.credit-num {
  font-size: 2.55rem;
}

.credit-packs {
  width: 100%;
}

.pack-btn {
  flex: 1;
}

.device {
  background: #ffffff;
  border-color: var(--line);
  border-radius: 12px;
}

.device .name {
  color: var(--ink);
  font-size: 1rem;
}

.device .sub {
  color: var(--muted);
  line-height: 1.45;
}

.badge {
  min-height: 30px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  min-width: 720px;
}

th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

td {
  background: #ffffff;
}

.swipe-hint {
  color: #475569;
}

@media (min-width: 760px) {
  .print-context {
    grid-template-columns: repeat(3, 1fr);
  }

  .credit-packs {
    width: auto;
  }

  .btn {
    width: auto;
    min-width: 180px;
  }

  #submit-btn,
  .drop,
  .promo-row .btn,
  .add-device-row .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    padding-right: 0;
  }

  .topbar-actions {
    width: 100%;
    padding-right: 0;
    justify-content: flex-start;
  }

  .gear-btn {
    position: static;
    transform: none;
  }

  .user-chip {
    max-width: calc(100vw - 132px);
  }

  .credit-packs,
  .promo-row,
  .add-device-row {
    flex-direction: column;
  }

  .device {
    flex-direction: column;
  }

  .dev-actions {
    width: 100%;
    align-items: stretch;
  }

  .dev-actions .badge {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
