:root {
  color-scheme: light;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  --ink: #14213d;
  --muted: #64748b;
  --line: #e3e8ef;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --brand: #f15a24;
  --brand-dark: #c33f0f;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 85% 0%, rgb(255 183 3 / 7%), transparent 26rem), var(--canvas);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgb(37 99 235 / 38%);
  outline-offset: 3px;
}

select:focus-visible {
  outline: 3px solid rgb(37 99 235 / 38%);
  outline-offset: 3px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -.035em;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.page-heading {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.page-heading-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-heading p {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--muted);
}

.kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 20px rgb(241 90 36 / 20%);
}

.button-primary:hover {
  background: var(--brand-dark);
}

.button:disabled {
  color: #94a3b8;
  background: #e8edf3;
  box-shadow: none;
  cursor: not-allowed;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 35px rgb(20 33 61 / 5%);
}

.metric-card {
  padding: 22px;
  border-radius: 18px;
}

.metric-card strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 2rem;
  line-height: 1;
}

.metric-card em {
  color: #94a3b8;
  font-size: .95rem;
  font-style: normal;
  font-weight: 700;
}

.metric-label,
.metric-card small {
  color: var(--muted);
  font-size: .8rem;
}

.metric-label {
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr);
  gap: 20px;
}

.panel {
  border-radius: 20px;
}

.getting-started {
  padding: 26px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.progress-badge,
.filter-chip {
  padding: 6px 10px;
  border-radius: 999px;
  color: #475569;
  background: #eef2f7;
  font-size: .72rem;
  font-weight: 750;
}

.catalog-tabs {
  display: flex;
  gap: 8px;
}

.catalog-tabs a {
  text-decoration: none;
}

.filter-chip-active {
  color: #fff;
  background: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  padding: 22px;
}

.product-card-inactive {
  opacity: .72;
}

.product-card header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.product-card h2 {
  margin: 4px 0 0;
}

.product-card > p {
  min-height: 48px;
  margin: 16px 0;
  color: var(--muted);
  font-size: .88rem;
}

.product-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.product-code {
  color: var(--muted);
  font: 700 .7rem ui-monospace, "Cascadia Code", monospace;
}

.product-price {
  white-space: nowrap;
  color: var(--brand-dark);
  font-size: 1.12rem;
}

.product-status {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 16px;
  color: #475569;
  font-size: .8rem;
  font-weight: 750;
}

.status-dot-muted {
  background: #94a3b8;
  box-shadow: none;
}

.product-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-meta {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  color: var(--muted);
  font-size: .75rem;
}

.product-form-panel {
  max-width: 720px;
  padding: 26px;
}

.form-stack textarea,
.form-stack select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-form input {
  flex: 1;
  min-width: 160px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.sector-list {
  display: grid;
  gap: 12px;
}

.sector-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(280px, 1.4fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

.sector-row .kicker {
  margin-bottom: 2px;
}

.import-panel,
.import-rules {
  max-width: 760px;
  padding: 26px;
}

.usage-summary-panel {
  padding: 22px 24px;
  margin-bottom: 20px;
}

.usage-summary-header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.usage-summary-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.usage-bar {
  width: 100%;
  height: 10px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf3;
}

.usage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b 0%, #f15a24 100%);
}

.import-rules {
  margin-top: 18px;
}

.import-rules ul,
.form-alert ul {
  margin-bottom: 0;
}

.warning-check {
  border-color: #fed7aa;
  background: #fff7ed;
}

.step-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.step-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #8a3c13;
  background: #fff1d6;
  font-size: .8rem;
  font-weight: 850;
}

.step-list strong {
  font-size: .92rem;
}

.step-list p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.step-list a,
.system-card a {
  color: var(--brand-dark);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.system-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, rgb(20 33 61 / 98%), rgb(30 49 86 / 98%));
}

.system-card .kicker {
  color: #ffd166;
}

.system-card p {
  color: #cbd5e1;
  font-size: .88rem;
}

.system-card a {
  margin-top: auto;
  color: #ffd166;
}

.system-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 16px;
  color: #14213d;
  background: #55d187;
  font-size: 1.25rem;
  font-weight: 900;
}

.toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px;
}

.search-field {
  width: min(420px, 100%);
}

.search-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #f8fafc;
}

.empty-state {
  display: grid;
  justify-items: center;
  min-height: 390px;
  padding: 56px 24px;
  text-align: center;
}

.empty-state p {
  max-width: 520px;
  margin-bottom: 10px;
  color: var(--muted);
}

.empty-state small {
  color: #94a3b8;
}

.empty-illustration {
  display: grid;
  width: 86px;
  height: 86px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid #ffdba7;
  border-radius: 25px;
  color: #8a3c13;
  background: #fff7e8;
  box-shadow: 14px 14px 0 #f0f3f7;
  font-size: 1.35rem;
  font-weight: 900;
  transform: rotate(-3deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#blazor-error-ui {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: none;
  padding: 14px 46px 14px 16px;
  border-radius: 12px;
  color: #fff;
  background: #b42318;
  box-shadow: 0 12px 30px rgb(0 0 0 / 20%);
}

#blazor-error-ui a {
  color: #fff;
  font-weight: 800;
}

#blazor-error-ui .dismiss {
  position: absolute;
  top: 12px;
  right: 14px;
  cursor: pointer;
}

.validation-message {
  color: #b42318;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  min-height: 100vh;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 46px;
  color: #f8fafc;
  background: #14213d;
}

.auth-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.auth-brand .brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #14213d;
  background: #ffb703;
  font-size: 1.25rem;
  font-weight: 900;
}

.auth-brand-text strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.auth-brand-text small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: .75rem;
}

.auth-aside-copy h2 {
  margin: 0 0 12px;
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.auth-aside-copy p {
  margin: 0;
  max-width: 32ch;
  color: #cbd5e1;
}

.auth-aside-foot {
  color: #64748b;
  font-size: .78rem;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

@media (max-width: 760px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    gap: 18px;
    padding: 22px 22px 24px;
  }

  .auth-aside-copy,
  .auth-aside-foot {
    display: none;
  }

  .auth-main {
    padding: 26px 18px 48px;
  }
}

.auth-card,
.legal-card {
  width: min(100%, 480px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgb(20 33 61 / 9%);
}

.auth-card-wide,
.legal-card {
  width: min(100%, 760px);
}

.auth-card > p,
.legal-card > p {
  color: var(--muted);
}

.form-stack {
  display: grid;
  gap: 17px;
  margin: 24px 0 18px;
}

.auth-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.auth-links a {
  color: var(--brand-dark);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}

.form-stack label:not(.check-row) {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: .86rem;
  font-weight: 750;
}

.form-stack input:not([type="checkbox"]) {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
}

.form-alert {
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #991b1b;
  background: #fef2f2;
  font-size: .88rem;
}

.form-alert-success {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.form-alert-warning {
  margin: 18px 0;
  border-color: #fed7aa;
  color: #9a3412;
  background: #fff7ed;
}

.secret-box,
.credential-box {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
}

.secret-box span,
.credential-box span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}

.secret-box code,
.credential-box code,
.recovery-code-grid code {
  overflow-wrap: anywhere;
  font: 700 .95rem ui-monospace, "Cascadia Code", monospace;
}

.credential-box span:not(:first-child) {
  margin-top: 10px;
}

.instruction-list {
  display: grid;
  gap: 8px;
  color: #334155;
}

.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.recovery-code-grid code {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  text-align: center;
}

.recovery-panel {
  margin-top: 18px;
  color: var(--muted);
}

.recovery-panel summary,
.admin-create summary {
  cursor: pointer;
  font-weight: 750;
}

.admin-create {
  margin-bottom: 20px;
  padding: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.form-grid label,
.plan-form label {
  display: grid;
  gap: 6px;
  font-size: .84rem;
  font-weight: 750;
}

.form-grid input,
.plan-form select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
}

.form-span {
  grid-column: 1 / -1;
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.customer-card {
  padding: 22px;
}

.customer-card header,
.admin-actions,
.plan-form {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.customer-card header small {
  color: var(--muted);
}

.status-badge {
  padding: 5px 9px;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: .72rem;
  font-weight: 800;
}

.customer-card dl {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.customer-card dl div {
  display: grid;
  grid-template-columns: 100px 1fr;
}

.customer-card dt {
  color: var(--muted);
  font-size: .78rem;
}

.customer-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: .86rem;
  font-weight: 700;
}

.admin-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.button-danger {
  color: #991b1b;
  background: #fef2f2;
}

.plan-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.document-list {
  display: grid;
  gap: 12px;
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .9rem;
}

.check-row input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
}

.check-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.check-row a {
  color: var(--brand-dark);
  font-weight: 750;
}

.legal-content {
  max-height: 55vh;
  padding: 22px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #334155;
  background: #f8fafc;
  font: inherit;
  font-size: .92rem;
  white-space: pre-wrap;
}

.hash-line {
  overflow-wrap: anywhere;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: .76rem;
}

.button-secondary,
.button-link {
  color: var(--ink);
  background: #eef2f7;
}

.tv-connect-panel,
.tv-device-panel {
  padding: 26px;
  margin-top: 20px;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.device-card {
  padding: 20px;
}

.device-card-revoked {
  opacity: .7;
}

.compact-empty-state {
  min-height: 220px;
}

.tv-shell-page {
  display: grid;
  min-height: 100vh;
  padding: 32px 20px;
  place-items: center;
  background:
    radial-gradient(circle at top right, rgb(255 209 102 / 14%), transparent 24rem),
    linear-gradient(180deg, #081122 0%, #0f172a 100%);
}

.pwa-shell-page {
  display: grid;
  min-height: 100vh;
  padding: 24px 18px;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgb(241 90 36 / 14%), transparent 22rem),
    linear-gradient(180deg, #fff7ed 0%, #f8fafc 100%);
}

.pwa-shell-card {
  width: min(100%, 920px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(20 33 61 / 10%);
}

.pwa-scanner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 22px;
  margin-top: 22px;
}

.pwa-camera-panel {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
}

.pwa-camera-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-camera-overlay {
  position: absolute;
  inset: auto 14px 14px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  background: rgb(15 23 42 / 78%);
  font-size: .9rem;
  font-weight: 700;
}

.pwa-actions-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.tv-shell-card {
  width: min(100%, 920px);
  padding: 40px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 28px;
  color: #fff;
  background: rgb(15 23 42 / 88%);
  box-shadow: 0 26px 80px rgb(0 0 0 / 30%);
}

.tv-shell-card p {
  max-width: 720px;
  color: #cbd5e1;
}

.tv-shell-card .kicker {
  color: #ffd166;
}

.tv-install-actions {
  display: flex;
  gap: 14px;
  margin: 24px 0 16px;
}

.tv-install-hint {
  color: #94a3b8;
  font-size: .9rem;
}

.tv-code-panel {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 24px;
  background: rgb(255 255 255 / 4%);
}

.tv-qr-box {
  display: grid;
  margin: 18px 0 10px;
  justify-content: start;
}

.tv-qr-box img {
  width: 220px;
  height: 220px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
}

.pairing-code {
  margin: 18px 0 12px;
  font: 800 clamp(2.4rem, 6vw, 4.8rem) ui-monospace, "Cascadia Code", monospace;
  letter-spacing: .16em;
}

.tv-supporting-copy {
  margin-bottom: 0;
  font-size: 1rem;
}

.tv-status-chip {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #14213d;
  background: #ffd166;
  font-size: .82rem;
  font-weight: 800;
}

.tv-player-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 24px;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 24px;
  background: rgb(255 255 255 / 4%);
}

.tv-player-media {
  display: grid;
  min-height: 360px;
  place-items: center;
  border-radius: 22px;
  overflow: hidden;
  background: rgb(2 6 23 / 92%);
}

.tv-player-media img,
.tv-player-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tv-player-placeholder {
  color: #94a3b8;
  font-size: 1.1rem;
  font-weight: 700;
}

.tv-player-copy {
  display: grid;
  align-content: center;
}

.tv-player-copy h2 {
  margin-top: 12px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.tv-player-copy p {
  font-size: 1rem;
}

.tv-player-price {
  margin-top: 12px;
  color: #ffd166;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.media-panel {
  margin-top: 22px;
}

.upload-row {
  display: flex;
  gap: 18px;
  align-items: end;
  margin: 18px 0 22px;
}

.upload-row label {
  flex: 1;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.media-card {
  display: grid;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 9px;
  background: #f1f5f9;
}

.media-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 0.75rem;
    background: #0b1020;
}

.media-error {
    color: var(--danger, #b42318);
}

.media-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.button-small {
  width: 100%;
  padding: 8px 12px;
  font-size: .8rem;
}

.button-link {
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: .8rem;
  font-weight: 750;
  cursor: pointer;
}

@media (max-width: 980px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .system-card {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .step-list li {
    grid-template-columns: 38px 1fr;
  }

  .step-list a {
    grid-column: 2;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .customer-grid,
  .device-grid,
  .product-grid,
  .recovery-code-grid {
    grid-template-columns: 1fr;
  }

  .sector-row {
    grid-template-columns: 1fr;
  }

  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-row {
    align-items: stretch;
    flex-direction: column;
  }

  .tv-install-actions {
    flex-direction: column;
  }

  .tv-player-panel {
    grid-template-columns: 1fr;
  }

  .pwa-scanner-grid {
    grid-template-columns: 1fr;
  }
}

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