:root {
  --background: #0d1516;
  --surface-lowest: #080f11;
  --surface-low: #151d1e;
  --surface: #192122;
  --surface-high: #242b2d;
  --surface-highest: #2e3638;
  --surface-bright: #333a3c;
  --on-surface: #dce4e5;
  --on-surface-variant: #bac9cc;
  --outline: #849396;
  --outline-variant: #3b494c;
  --primary: #c3f5ff;
  --primary-bright: #00daf3;
  --primary-container: #00e5ff;
  --on-primary-container: #00363d;
  --secondary: #b6c4ff;
  --secondary-container: #0050ee;
  --on-secondary-container: #d4dbff;
  --green: #4ade80;
  --orange: #ffab00;
  --red: #ffb4ab;
  --error-container: #93000a;
  --page-width: 430px;
  --page-pad: 24px;
  --nav-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface-lowest);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--surface-lowest);
  background-image:
    linear-gradient(rgba(0, 218, 243, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 218, 243, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--on-surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-container);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.material-symbols-outlined {
  display: inline-block;
  overflow: hidden;
  width: 1em;
  font-size: 24px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  text-rendering: optimizeLegibility;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 420, "GRAD" 0, "opsz" 24;
}

.icon-filled {
  font-variation-settings: "FILL" 1, "wght" 520, "GRAD" 0, "opsz" 24;
}

.product-shell {
  position: relative;
  width: min(100%, var(--page-width));
  min-height: 100dvh;
  margin: 0 auto;
  overflow: clip;
  background: var(--background);
  box-shadow: 0 0 0 1px rgba(132, 147, 150, 0.08);
}

.app-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 78px;
  padding: max(12px, env(safe-area-inset-top)) var(--page-pad) 12px;
  background: rgba(13, 21, 22, 0.94);
  border-bottom: 1px solid rgba(59, 73, 76, 0.18);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  color: var(--primary-bright);
}

.brand-mark .material-symbols-outlined {
  font-size: 34px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 40;
}

.brand-name {
  overflow: hidden;
  color: var(--primary-bright);
  font-family: Inter, Geist, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 100ms ease;
}

.icon-button:hover {
  background: var(--surface-high);
  color: var(--primary);
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-button.primary-icon {
  color: var(--primary);
}

.screen-content {
  min-height: calc(100dvh - 78px);
  padding: 24px var(--page-pad) calc(var(--nav-height) + 44px);
}

.screen-content.flush-top {
  padding-top: 12px;
}

.screen-content.standalone-content {
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

.privacy-screen .page-bar {
  border-bottom: 1px solid rgba(132, 147, 150, 0.12);
}

.privacy-policy-frame {
  display: block;
  width: 100%;
  min-height: min(72vh, 720px);
  height: calc(100dvh - 120px);
  border: 0;
  border-radius: 16px;
  background: #0d1516;
}

.stack {
  display: grid;
  gap: 12px;
}

.stack-lg {
  display: grid;
  gap: 24px;
}

.section-block {
  margin-top: 32px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin-bottom: 12px;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  color: var(--on-surface);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.section-action {
  padding: 8px 0 8px 12px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-family: Geist, ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-family: Geist, ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
}

.body-copy {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 24px;
}

.caption {
  margin: 0;
  color: var(--outline);
  font-size: 12px;
  line-height: 18px;
}

.ready-card {
  position: relative;
  display: flex;
  min-height: 90px;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  padding: 18px 20px 18px 24px;
  border: 1px solid rgba(132, 147, 150, 0.12);
  border-left: 4px solid var(--primary-container);
  border-radius: 16px;
  background: rgba(25, 33, 34, 0.74);
}

.ready-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: var(--green);
  animation: ready-pulse 2s infinite;
}

@keyframes ready-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.ready-copy {
  min-width: 0;
}

.ready-copy strong {
  display: block;
  color: var(--on-surface);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.ready-copy span {
  display: block;
  margin-top: 2px;
  color: var(--on-surface-variant);
  font-family: Geist, ui-monospace, monospace;
  font-size: 10px;
  line-height: 16px;
  text-transform: uppercase;
}

.action-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(132, 147, 150, 0.12);
  border-radius: 16px;
  background: rgba(25, 33, 34, 0.66);
}

.action-card + .action-card {
  margin-top: 12px;
}

.action-card-icon {
  margin-bottom: 24px;
  color: var(--primary);
}

.action-card-icon .material-symbols-outlined {
  font-size: 38px;
}

.action-card h2 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.action-card p {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 24px;
}

.action-card .primary-button {
  margin-top: auto;
}

.controller-only-card {
  min-height: 260px;
}

.controller-only-card .secondary-button {
  margin-top: auto;
}

.primary-button,
.secondary-button,
.outline-button,
.danger-button {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  transition: filter 150ms ease, transform 100ms ease, box-shadow 150ms ease;
}

.primary-button {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.secondary-button {
  background: var(--primary-container);
  color: var(--on-primary-container);
  box-shadow: 0 8px 28px rgba(0, 229, 255, 0.15);
}

.outline-button {
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--on-surface);
}

.danger-button {
  background: var(--error-container);
  color: #ffdad6;
}

.primary-button:hover,
.secondary-button:hover,
.outline-button:hover,
.danger-button:hover {
  filter: brightness(1.08);
}

.primary-button:active,
.secondary-button:active,
.outline-button:active,
.danger-button:active {
  transform: scale(0.98);
}

.device-row,
.session-row {
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(59, 73, 76, 0.2);
  border-radius: 14px;
  background: rgba(25, 33, 34, 0.8);
}

.device-row + .device-row,
.session-row + .session-row {
  margin-top: 10px;
}

.row-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-highest);
  color: var(--on-surface-variant);
}

.row-icon.cyan {
  background: rgba(0, 218, 243, 0.1);
  color: var(--primary);
}

.row-icon.error {
  background: rgba(255, 180, 171, 0.1);
  color: var(--red);
}

.row-copy {
  min-width: 0;
  flex: 1;
}

.row-copy strong {
  display: block;
  overflow: hidden;
  color: var(--on-surface);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-copy span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--on-surface-variant);
  font-size: 12px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  flex: 0 0 auto;
  color: var(--on-surface-variant);
  font-family: Geist, ui-monospace, monospace;
  font-size: 10px;
  line-height: 16px;
  text-align: right;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: grid;
  width: min(100%, var(--page-width));
  min-height: var(--nav-height);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  margin: 0 auto;
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(59, 73, 76, 0.18);
  border-radius: 14px 14px 0 0;
  background: rgba(21, 29, 30, 0.94);
  box-shadow: 0 -5px 22px rgba(0, 218, 243, 0.07);
  backdrop-filter: blur(18px);
}

.nav-button {
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 24px;
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  transition: background-color 150ms ease, color 150ms ease, transform 100ms ease;
}

.nav-button .material-symbols-outlined {
  font-size: 23px;
}

.nav-button.active {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.nav-button:active {
  transform: scale(0.96);
}

.page-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  min-height: 72px;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  padding: max(10px, env(safe-area-inset-top)) var(--page-pad) 10px;
  background: rgba(13, 21, 22, 0.96);
  border-bottom: 1px solid rgba(132, 147, 150, 0.16);
  backdrop-filter: blur(18px);
}

.page-bar.no-back {
  grid-template-columns: minmax(0, 1fr) auto;
}

.page-title {
  margin: 0;
  color: var(--on-surface);
  font-family: Inter, Geist, sans-serif;
  font-size: 23px;
  font-weight: 650;
  line-height: 30px;
  text-align: center;
  white-space: normal;
}

.page-bar.no-back .page-title {
  color: var(--primary);
  text-align: left;
}

.connect-hero {
  text-align: center;
}

.connect-hero h2 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 23px;
  line-height: 31px;
}

.scanner-card {
  position: relative;
  display: grid;
  min-height: 286px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 218, 243, 0.16);
  border-radius: 24px;
  background: var(--surface-low);
}

.scanner-viewport {
  position: relative;
  width: calc(100% - 42px);
  aspect-ratio: 1.2 / 1;
  overflow: hidden;
  border: 14px solid #f6f8f8;
  border-radius: 14px;
  background: #f6f8f8;
}

.scanner-viewport video,
.scanner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-image {
  display: block;
}

.scanner-image:not([src]) {
  display: none;
}

.scanner-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--surface-high);
  color: var(--primary);
  text-align: center;
}

.scanner-placeholder .material-symbols-outlined {
  font-size: 52px;
}

.scanner-placeholder span {
  display: block;
  margin-top: 10px;
  color: var(--on-surface-variant);
  font-size: 13px;
  line-height: 18px;
}

.scanner-corner {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-color: var(--primary-container);
  border-style: solid;
}

.scanner-corner.tl {
  top: 8px;
  left: 8px;
  border-width: 3px 0 0 3px;
}

.scanner-corner.tr {
  top: 8px;
  right: 8px;
  border-width: 3px 3px 0 0;
}

.scanner-corner.bl {
  bottom: 8px;
  left: 8px;
  border-width: 0 0 3px 3px;
}

.scanner-corner.br {
  right: 8px;
  bottom: 8px;
  border-width: 0 3px 3px 0;
}

.scanner-line {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  top: 50%;
  height: 2px;
  background: var(--primary-container);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.75);
  animation: scan-camera 2.4s ease-in-out infinite;
}

@keyframes scan-camera {
  0%,
  100% {
    transform: translateY(-82px);
    opacity: 0.25;
  }
  50% {
    transform: translateY(82px);
    opacity: 1;
  }
}

.connection-form {
  display: grid;
  gap: 12px;
}

.connection-label {
  color: var(--on-surface-variant);
  font-family: Geist, ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  text-transform: uppercase;
}

.code-input {
  width: 100%;
  height: 64px;
  padding: 0 18px;
  border: 1px solid rgba(132, 147, 150, 0.32);
  border-radius: 16px;
  outline: 0;
  background: var(--surface-high);
  color: var(--primary);
  font-family: Geist, ui-monospace, monospace;
  font-size: 28px;
  font-weight: 700;
  line-height: 64px;
  text-align: center;
}

.code-input::placeholder {
  color: var(--outline);
  opacity: 0.58;
}

.code-input:focus {
  border-color: var(--primary-container);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.inline-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
}

.waiting-layout {
  display: flex;
  min-height: calc(100dvh - 72px);
  flex-direction: column;
  align-items: center;
  padding: 46px var(--page-pad) 40px;
  text-align: center;
}

.waiting-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(59, 73, 76, 0.6);
  border-radius: 999px;
  background: rgba(25, 33, 34, 0.72);
  color: var(--on-surface-variant);
  font-family: Geist, ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-transform: uppercase;
}

.waiting-status i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(195, 245, 255, 0.65);
}

.waiting-device {
  position: relative;
  display: grid;
  width: 230px;
  height: 230px;
  place-items: center;
  margin: 48px 0 36px;
  border: 1px solid rgba(0, 218, 243, 0.2);
  border-radius: 50%;
}

.waiting-device::before {
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(0, 218, 243, 0.35);
  border-radius: 50%;
  content: "";
  animation: rotate-ring 8s linear infinite;
}

@keyframes rotate-ring {
  to {
    transform: rotate(360deg);
  }
}

.waiting-device .material-symbols-outlined {
  color: var(--primary-container);
  font-size: 68px;
}

.waiting-layout h1 {
  margin: 0;
  color: var(--primary);
  font-size: 26px;
  line-height: 34px;
}

.waiting-layout > p {
  max-width: 330px;
  margin: 12px 0 0;
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 24px;
}

.waiting-code {
  width: 100%;
  margin-top: 30px;
  padding: 18px;
  border: 1px solid rgba(132, 147, 150, 0.22);
  border-radius: 16px;
  background: var(--surface-high);
  color: var(--primary);
  font-family: Geist, ui-monospace, monospace;
  font-size: 30px;
  font-weight: 700;
}

.waiting-layout .outline-button {
  margin-top: auto;
}

.search-wrap {
  position: relative;
}

.search-wrap .material-symbols-outlined {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--outline);
  transform: translateY(-50%);
}

.search-input {
  width: 100%;
  height: 56px;
  padding: 0 16px 0 48px;
  border: 1px solid rgba(132, 147, 150, 0.12);
  border-radius: 16px;
  outline: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-size: 14px;
}

.search-input:focus {
  border-color: var(--primary-container);
}

.history-group {
  margin-top: 32px;
}

.history-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  color: var(--outline);
  font-family: Geist, ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
}

.history-group-title::after {
  height: 1px;
  flex: 1;
  background: rgba(59, 73, 76, 0.24);
  content: "";
}

.history-card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(59, 73, 76, 0.16);
  border-radius: 16px;
  background: rgba(25, 33, 34, 0.72);
}

.history-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-card-head .row-icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.history-title {
  min-width: 0;
  flex: 1;
}

.history-title strong {
  display: block;
  overflow: hidden;
  color: var(--primary);
  font-size: 17px;
  line-height: 23px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-title span {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: var(--outline);
  font-size: 11px;
  line-height: 16px;
}

.status-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: 999px;
  background: rgba(0, 200, 83, 0.1);
  color: var(--green);
  font-family: Geist, ui-monospace, monospace;
  font-size: 9px;
  font-weight: 700;
  line-height: 12px;
  text-transform: uppercase;
}

.status-chip.failed {
  border-color: rgba(255, 180, 171, 0.25);
  background: rgba(147, 0, 10, 0.18);
  color: var(--red);
}

.status-chip.ended {
  border-color: rgba(132, 147, 150, 0.16);
  background: var(--surface-high);
  color: var(--outline);
}

.history-details {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(59, 73, 76, 0.16);
}

.history-details span {
  display: block;
  color: var(--outline);
  font-family: Geist, ui-monospace, monospace;
  font-size: 9px;
  line-height: 13px;
  text-transform: uppercase;
}

.history-details strong {
  display: block;
  margin-top: 3px;
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
}

.history-summary,
.security-summary {
  padding: 24px;
  border: 1px solid rgba(132, 147, 150, 0.3);
  border-radius: 16px;
  background: rgba(25, 33, 34, 0.5);
}

.history-summary h3,
.security-summary h3 {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 19px;
  line-height: 26px;
}

.history-summary p,
.security-summary p {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 13px;
  line-height: 19px;
}

.security-summary {
  border-color: rgba(132, 147, 150, 0.1);
  text-align: center;
}

.security-summary .material-symbols-outlined {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 38px;
}

.settings-section {
  margin-bottom: 30px;
}

.settings-label {
  margin: 0 0 14px 8px;
  color: var(--primary);
  font-family: Geist, ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
}

.settings-card {
  overflow: hidden;
  border: 1px solid rgba(132, 147, 150, 0.12);
  border-radius: 14px;
  background: rgba(25, 33, 34, 0.58);
}

.settings-footnote {
  margin: 0;
  padding: 0 16px 14px;
  color: #849396;
  font-size: 11px;
  line-height: 1.45;
}

.setting-row {
  display: flex;
  width: 100%;
  min-height: 74px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(59, 73, 76, 0.18);
  background: transparent;
  color: var(--on-surface);
  text-align: left;
}

button.setting-row {
  cursor: pointer;
}

.setting-row:last-child {
  border-bottom: 0;
}

button.setting-row:hover {
  background: rgba(46, 54, 56, 0.34);
}

.setting-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(36, 43, 45, 0.76);
  color: var(--on-surface-variant);
}

.setting-copy {
  min-width: 0;
  flex: 1;
}

.setting-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
}

.setting-copy span {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: var(--on-surface-variant);
  font-size: 12px;
  line-height: 17px;
  text-overflow: ellipsis;
}

.setting-trailing {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: var(--outline);
}

.switch-control {
  position: relative;
  width: 46px;
  height: 28px;
  flex: 0 0 46px;
  border: 1px solid rgba(132, 147, 150, 0.18);
  border-radius: 999px;
  background: var(--surface-highest);
  cursor: pointer;
  transition: background-color 160ms ease;
}

.switch-control::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--on-surface);
  content: "";
  transition: transform 160ms ease;
}

.switch-control.on {
  background: var(--secondary-container);
}

.switch-control.on::after {
  transform: translateX(18px);
}

.latest-chip {
  padding: 6px 9px;
  border: 1px solid rgba(0, 218, 243, 0.2);
  border-radius: 999px;
  background: rgba(0, 218, 243, 0.08);
  color: var(--primary-bright);
  font-family: Geist, ui-monospace, monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.settings-footer {
  padding: 32px 0 18px;
  color: var(--outline);
  text-align: center;
}

.settings-footer .secure-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Geist, ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.settings-footer .secure-line i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 218, 243, 0.35);
}

.settings-footer p {
  margin: 12px 0 0;
  font-size: 10px;
}

.privacy-hero {
  display: grid;
  min-height: 146px;
  place-items: center;
  border: 1px solid rgba(0, 218, 243, 0.1);
  border-radius: 16px;
  background: rgba(25, 33, 34, 0.34);
  text-align: center;
}

.privacy-shield {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.26);
  border-radius: 50%;
  background: rgba(0, 218, 243, 0.16);
  color: var(--primary-container);
}

.privacy-hero strong {
  display: block;
  color: var(--primary);
  font-family: Geist, ui-monospace, monospace;
  font-size: 11px;
  line-height: 16px;
  text-transform: uppercase;
}

.privacy-heading {
  margin: 30px 6px 12px;
  color: var(--primary);
  font-size: 18px;
  line-height: 25px;
}

.privacy-card {
  overflow: hidden;
  border: 1px solid rgba(0, 218, 243, 0.1);
  border-radius: 14px;
}

.security-center {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(182, 196, 255, 0.2);
  border-radius: 16px;
  background: rgba(0, 39, 128, 0.24);
}

.security-center .material-symbols-outlined {
  flex: 0 0 auto;
  color: var(--secondary);
  font-size: 36px;
}

.security-center h3 {
  margin: 0 0 4px;
  color: var(--secondary);
  font-size: 17px;
  line-height: 23px;
}

.security-center p {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 12px;
  line-height: 18px;
}

.guide-hero {
  padding: 22px 0 8px;
  text-align: center;
}

.guide-icon {
  position: relative;
  display: grid;
  width: 210px;
  height: 210px;
  margin: 0 auto 34px;
  place-items: center;
  border: 2px solid rgba(0, 218, 243, 0.46);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 12px rgba(0, 218, 243, 0.08);
}

.guide-icon .material-symbols-outlined {
  color: var(--primary-container);
  font-size: 72px;
}

.guide-hero h1 {
  margin: 0;
  color: var(--on-surface);
  font-size: 27px;
  line-height: 36px;
}

.guide-hero p {
  margin: 14px 0 0;
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 25px;
}

.security-note {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(132, 147, 150, 0.18);
  border-left: 4px solid var(--primary-container);
  border-radius: 16px;
  background: rgba(25, 33, 34, 0.7);
}

.security-note .material-symbols-outlined {
  flex: 0 0 auto;
  color: var(--primary-container);
}

.security-note h3 {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 15px;
  line-height: 21px;
}

.security-note p {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 13px;
  line-height: 20px;
}

.guide-actions {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.remote-shell {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: #020607;
}

.remote-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 70;
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: max(10px, env(safe-area-inset-top)) 22px 10px;
  background: #ad0014;
  color: #fff;
  box-shadow: 0 10px 26px rgba(147, 0, 10, 0.3);
}

.remote-device {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.remote-device > .material-symbols-outlined {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 26px;
  animation: remote-pulse 1.6s infinite;
}

@keyframes remote-pulse {
  50% {
    opacity: 0.45;
  }
}

.remote-device-copy {
  min-width: 0;
}

.remote-device-copy span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 15px;
  text-transform: uppercase;
}

.remote-device-copy strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  white-space: normal;
}

.remote-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.session-clock {
  display: inline-flex;
  height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  font-family: Geist, ui-monospace, monospace;
  font-size: 15px;
  line-height: 20px;
}

.session-clock .material-symbols-outlined {
  font-size: 19px;
}

.stop-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--red);
  cursor: pointer;
}

.stop-button .material-symbols-outlined {
  font-size: 29px;
}

.remote-stage {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 104px 20px 114px;
  background: #020607;
}

.remote-phone {
  --remote-aspect: 9 / 19;
  position: relative;
  width: min(100%, 430px);
  max-width: 100%;
  max-height: min(72dvh, 790px);
  aspect-ratio: var(--remote-aspect);
  height: auto;
  overflow: hidden;
  border: 1px solid rgba(59, 73, 76, 0.55);
  border-radius: 16px;
  background: #242b2d;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.remote-phone.is-landscape {
  width: min(100%, 960px);
  max-height: min(70dvh, 640px);
}

.remote-phone.is-tablet-stage {
  width: min(100%, 720px);
}

.remote-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: contain;
  background: #000;
}
.control-svg { width: 24px; height: 24px; display: block; fill: currentColor; }

.scanner-status {
  min-height: 20px;
  margin: 12px 4px 0;
  color: var(--on-surface-variant);
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.scanner-status.warning,
.scanner-status.working {
  color: #f4c76a;
}

.scanner-status.error {
  color: var(--red);
}

.scanner-status.success {
  color: var(--green);
}

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

.scanner-actions.section-block {
  margin-top: 16px;
}

.remote-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 32px;
  border-radius: 16px;
  color: #849396;
  text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(0, 218, 243, 0.08), transparent 42%), #05090a;
}

.remote-empty .material-symbols-outlined { color: #3b5c61; font-size: 46px; }
.remote-empty strong { color: #bac9cc; }
.remote-empty span:last-child { max-width: 240px; font-size: 12px; line-height: 1.5; }
.remote-empty.hidden { display: none; }

.remote-video {
  z-index: 2;
  display: none;
  background: #000;
}

.remote-video.has-stream {
  display: block;
}

.camera-pip {
  position: absolute;
  right: 14px;
  bottom: 18px;
  z-index: 6;
  width: 104px;
  height: 138px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: #0a1214;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  display: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.camera-pip:active {
  cursor: grabbing;
}

.camera-pip.visible {
  display: block;
}

.control-banner {
  margin: 0 16px 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 171, 64, 0.12);
  border: 1px solid rgba(255, 171, 64, 0.35);
  color: #f4c76a;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.control-banner[hidden] {
  display: none !important;
}

.remote-tool.is-disabled,
.more-action.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.remote-phone.view-only {
  cursor: default;
}

.remote-phone.view-only .touch-point {
  display: none;
}

.camera-pip #remote-camera-pip {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.camera-pip #local-camera-pip {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 40px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #111;
}

.remote-scanlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 16px;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 4px
  );
}

.stream-status {
  position: absolute;
  top: -20px;
  left: 50%;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  padding: 13px 18px;
  border: 1px solid rgba(132, 147, 150, 0.36);
  border-radius: 16px;
  background: rgba(36, 43, 45, 0.96);
  color: var(--primary);
  font-family: Geist, ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  text-align: center;
  transform: translateX(-50%);
}

.stream-status i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--primary);
}

.touch-point {
  position: absolute;
  z-index: 12;
  width: 44px;
  height: 44px;
  border: 2px solid var(--primary-container);
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.18);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 160ms ease;
}

.remote-toolbar {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid rgba(132, 147, 150, 0.12);
  border-radius: 22px;
  background: rgba(21, 29, 30, 0.96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.remote-tool {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 13px;
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
}

.remote-tool:hover {
  background: rgba(0, 218, 243, 0.1);
  color: var(--primary);
}

.remote-tool.active {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--on-primary-container);
}

.remote-tool.alert {
  color: var(--red);
}

.remote-more {
  position: fixed;
  bottom: 96px;
  left: 50%;
  z-index: 90;
  display: none;
  width: min(330px, calc(100% - 32px));
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(132, 147, 150, 0.18);
  border-radius: 16px;
  background: rgba(21, 29, 30, 0.98);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.54);
  transform: translateX(-50%);
}

.remote-more.open {
  display: grid;
}

.more-action {
  display: flex;
  min-width: 0;
  min-height: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--on-surface-variant);
  cursor: pointer;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
}

.more-action:hover {
  background: var(--surface-high);
  color: var(--primary);
}

.more-action .material-symbols-outlined {
  font-size: 24px;
}

.empty-state {
  padding: 46px 20px;
  color: var(--on-surface-variant);
  text-align: center;
}

.empty-state .material-symbols-outlined {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 44px;
}

.empty-state h3 {
  margin: 0;
  color: var(--on-surface);
  font-size: 17px;
}

.empty-state p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 19px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
}

.modal-sheet {
  width: min(100%, 430px);
  max-height: min(82dvh, 720px);
  overflow: auto;
  padding: 12px 22px calc(22px + env(safe-area-inset-bottom));
  border: 1px solid rgba(132, 147, 150, 0.2);
  border-radius: 24px 24px 16px 16px;
  background: var(--surface-low);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.42);
}

.sheet-handle {
  width: 50px;
  height: 5px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: var(--surface-highest);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sheet-head h2 {
  margin: 0;
  color: var(--primary);
  font-size: 23px;
  line-height: 31px;
}

.sheet-body {
  margin-top: 14px;
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 21px;
}

.sheet-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.language-picker {
  margin-top: 4px;
}

.language-option .setting-copy {
  padding-left: 2px;
}

.language-option.selected .setting-trailing {
  color: var(--primary-container);
}

.language-option .setting-trailing {
  min-width: 24px;
  display: grid;
  place-items: center;
}

.keyboard-input {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  padding: 14px;
  border: 1px solid rgba(132, 147, 150, 0.28);
  border-radius: 14px;
  outline: 0;
  background: var(--surface-high);
  color: var(--on-surface);
  font-size: 16px;
  line-height: 24px;
}

#toast-root {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  z-index: 300;
  width: min(calc(100% - 32px), 390px);
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid rgba(0, 218, 243, 0.26);
  border-radius: 14px;
  background: rgba(25, 33, 34, 0.98);
  color: var(--on-surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
  font-size: 13px;
  line-height: 18px;
  animation: toast-in 180ms ease-out;
}

.toast .material-symbols-outlined {
  flex: 0 0 auto;
  color: var(--primary-container);
  font-size: 20px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 380px) {
  :root {
    --page-pad: 18px;
  }

  .brand-name {
    font-size: 21px;
  }

  .app-bar-actions {
    gap: 2px;
  }

  .action-card {
    min-height: 282px;
    padding: 22px;
  }

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

  .row-meta {
    display: none;
  }

  .remote-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .session-clock {
    padding: 0 10px;
  }

  .remote-phone {
    width: min(100%, 360px);
    max-height: min(68dvh, 680px);
  }

  .remote-toolbar {
    gap: 1px;
    padding: 7px;
  }

  .remote-tool {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .remote-tool.active {
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 720px) {
  .remote-header {
    min-height: 94px;
    padding-right: 44px;
    padding-left: 44px;
  }

  .remote-device-copy strong {
    font-size: 22px;
    line-height: 28px;
  }

  .remote-stage {
    padding: 118px 28px 124px;
  }

  .remote-phone {
    width: min(100%, 520px);
    max-height: min(76dvh, 900px);
  }

  .remote-phone.is-landscape {
    width: min(100%, 1100px);
    max-height: min(72dvh, 720px);
  }

  .stream-status {
    top: -18px;
    min-width: 250px;
    font-size: 15px;
  }

  .remote-toolbar {
    gap: 10px;
    padding: 10px 14px;
  }

  .remote-tool {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .remote-tool.active {
    width: 64px;
    height: 64px;
  }
}

@media (orientation: landscape) {
  .remote-stage {
    padding: 88px 16px 96px;
  }

  .remote-phone:not(.is-landscape) {
    max-height: min(64dvh, 560px);
  }

  .remote-phone.is-landscape {
    width: min(100%, 92vw);
    max-height: min(68dvh, 640px);
  }
}

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

/* Session ended (Stitch disconnect) */
.ended-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background:
    radial-gradient(circle at center, rgba(0, 218, 243, 0.05) 0%, transparent 70%),
    linear-gradient(rgba(0, 218, 243, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 218, 243, 0.02) 1px, transparent 1px),
    #101415;
  background-size: auto, 24px 24px, 24px 24px, auto;
}

.ended-card {
  width: min(100%, 640px);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(59, 73, 76, 0.35);
  background: rgba(25, 28, 30, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.ended-logo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 32px;
}

.ended-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(0, 218, 243, 0.16);
  filter: blur(22px);
}

.ended-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 218, 243, 0.45);
  background: rgba(25, 28, 30, 0.9);
  box-shadow: 0 0 15px rgba(0, 218, 243, 0.15);
  color: var(--primary-bright);
}

.ended-logo .material-symbols-outlined {
  font-size: 64px;
  font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 48;
  filter: drop-shadow(0 0 8px rgba(0, 218, 243, 0.5));
}

.ended-title {
  margin: 0 0 8px;
  color: var(--primary-bright);
  font-family: Inter, Geist, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  letter-spacing: -0.01em;
  text-shadow: 0 0 8px rgba(0, 218, 243, 0.3);
}

.ended-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 218, 243, 0.3);
  background: rgba(39, 76, 87, 0.35);
  color: var(--primary-bright);
  font-family: Geist, ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ended-badge .material-symbols-outlined {
  font-size: 16px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

.ended-copy {
  margin: 0 0 32px;
  max-width: 28rem;
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 24px;
}

.ended-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ended-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  font-family: Geist, ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 100ms ease;
}

.ended-btn.primary {
  background: var(--primary-container);
  color: #00626e;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.ended-btn.primary:hover {
  background: var(--primary);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

.ended-btn.ghost {
  background: transparent;
  border: 1px solid var(--primary-bright);
  color: var(--primary-bright);
}

.ended-btn.ghost:hover {
  background: rgba(0, 218, 243, 0.1);
}

.ended-btn .material-symbols-outlined {
  font-size: 18px;
}

@media (min-width: 640px) {
  .ended-actions {
    flex-direction: row;
    justify-content: center;
  }

  .ended-btn {
    min-width: 220px;
  }

  .ended-title {
    font-size: 32px;
    line-height: 40px;
  }

  .ended-logo-wrap {
    width: 160px;
    height: 160px;
  }
}

.login-shell {
  min-height: 100dvh;
}

.login-layout {
  display: grid;
  gap: 22px;
  align-content: center;
  padding-top: 28px;
  padding-bottom: 40px;
}

.login-brand {
  text-align: center;
}

.login-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
}

.login-brand h1 {
  margin: 0 0 8px;
  font-family: Geist, Inter, sans-serif;
  font-size: 28px;
  line-height: 34px;
}

.login-brand p {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--on-surface-variant, #bac9cc);
  font-size: 14px;
  line-height: 21px;
}

.login-qr-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  padding: 20px 16px 22px;
  border: 1px solid rgba(132, 147, 150, 0.16);
  border-radius: 20px;
  background: rgba(25, 33, 34, 0.82);
}

.login-qr-frame {
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.login-qr,
.login-qr-placeholder {
  width: 100%;
  height: 100%;
  max-width: 100%;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  image-rendering: pixelated;
}

.login-qr-placeholder {
  display: grid;
  place-items: center;
  color: #1a2223;
  min-height: 280px;
}

.login-qr-placeholder .material-symbols-outlined {
  font-size: 72px;
}

.login-code {
  font-family: Geist, Inter, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.login-actions {
  display: grid;
  gap: 10px;
}

@media (max-width: 380px) {
  .login-qr-frame {
    width: min(100%, 320px);
    padding: 14px;
  }

  .login-brand h1 {
    font-size: 24px;
    line-height: 30px;
  }

  .login-brand p {
    font-size: 13px;
  }
}

.quota-card.quota-locked {
  border-left-color: var(--red, #ff1744);
}

.quota-card.quota-locked .ready-dot {
  background: var(--red, #ff1744);
  animation: none;
}
