:root {
  color-scheme: light;
  --bg: #f5f2eb;
  --surface: #ffffff;
  --surface-soft: #eef4f0;
  --surface-warm: #fbf6ee;
  --text: #17201c;
  --muted: #5c6862;
  --line: #d9dfdb;
  --primary: #165c49;
  --primary-hover: #104a3a;
  --primary-light: #d7ede4;
  --success: #18734b;
  --success-bg: #e7f5ed;
  --danger: #a7372d;
  --danger-bg: #fdefec;
  --demo: #775b14;
  --demo-bg: #fff8df;
  --terracotta: #c96945;
  --radius-card: 20px;
  --radius-control: 14px;
  --shadow: 0 10px 34px rgb(23 32 28 / 9%);
  --shadow-soft: 0 4px 18px rgb(23 32 28 / 6%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

.boot-state {
  margin: 0;
  padding: 48px 24px;
  color: var(--muted);
  text-align: center;
}

.boot-state-terminal {
  color: rgba(255, 255, 255, 0.72);
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button {
  border: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #d47a4f;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.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;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: var(--radius-control);
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.button-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 20px rgb(22 92 73 / 22%);
}

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

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

.button-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.button-danger {
  color: var(--danger);
  background: var(--danger-bg);
}

.button-block {
  width: 100%;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.demo-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.demo-badge {
  color: var(--demo);
  background: var(--demo-bg);
  border: 1px solid #eadb9f;
}

.status-pill {
  color: var(--success);
  background: var(--success-bg);
}

.status-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

/* Launcher */

.launch-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgb(201 105 69 / 13%), transparent 34%),
    radial-gradient(circle at 88% 78%, rgb(22 92 73 / 13%), transparent 38%), var(--bg);
}

.launcher {
  width: min(840px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 48px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
  font-weight: 850;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 12px 12px 12px 4px;
}

.launcher h1 {
  max-width: 700px;
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.launcher-lead {
  max-width: 650px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 18px;
}

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

.launch-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 14px;
  padding: 22px;
  background: rgb(255 255 255 / 80%);
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 160ms ease;
}

.launch-card:hover {
  transform: translateY(-3px);
}

.launch-card-icon {
  grid-row: span 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 15px;
  font-size: 22px;
}

.launch-card strong {
  align-self: end;
  font-size: 18px;
}

.launch-card span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.launcher-button {
  margin-top: 18px;
}

.launcher-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

/* Employee app */

.app-body {
  min-height: 100dvh;
  background:
    linear-gradient(90deg, rgb(22 92 73 / 3%) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
}

.mobile-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 50px rgb(23 32 28 / 8%);
}

.app-content {
  min-height: 100dvh;
  padding: 18px 16px calc(96px + env(safe-area-inset-bottom));
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 850;
}

.app-brand .brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 10px 10px 10px 4px;
  font-size: 13px;
}

.page-header {
  margin-bottom: 20px;
}

.page-header h1,
.flow-screen h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.page-header p {
  margin: 5px 0 0;
  color: var(--muted);
}

.section {
  margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.section-heading h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.text-button {
  min-height: 44px;
  padding: 8px 0;
  color: var(--primary);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid rgb(23 32 28 / 6%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgb(255 255 255 / 16%), transparent 35%),
    linear-gradient(145deg, #1a6753, #104639);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgb(22 92 73 / 22%);
}

.hero-card::after {
  position: absolute;
  right: -32px;
  bottom: -52px;
  width: 145px;
  height: 145px;
  border: 26px solid rgb(255 255 255 / 7%);
  border-radius: 50%;
  content: "";
}

.hero-card .eyebrow {
  color: rgb(255 255 255 / 67%);
}

.hero-card h2 {
  max-width: 270px;
  margin: 4px 0 8px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 18px;
  color: rgb(255 255 255 / 80%);
  font-size: 14px;
}

.hero-card .button {
  position: relative;
  z-index: 1;
  width: 100%;
  color: var(--primary);
  background: #fff;
  box-shadow: none;
}

.active-card {
  background:
    radial-gradient(circle at 86% 12%, rgb(255 255 255 / 15%), transparent 34%),
    linear-gradient(145deg, #15664d, #0d3f33);
}

.active-card .status-pill {
  color: #effff6;
  background: rgb(255 255 255 / 14%);
}

.active-timer {
  margin: 16px 0 0;
  font-size: 42px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.active-earnings {
  margin: 8px 0 18px;
  color: rgb(255 255 255 / 76%);
  font-size: 14px;
}

.active-earnings strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.money-card {
  padding: 20px;
}

.money-total {
  margin: 2px 0 17px;
  font-size: 36px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.money-lines {
  display: grid;
  gap: 11px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.money-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.money-line strong {
  color: var(--text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fine-print {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.shift-list,
.event-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shift-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid rgb(23 32 28 / 7%);
  border-radius: 17px;
}

.shift-date {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 5px;
  color: var(--primary);
  background: var(--surface-soft);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.shift-date strong {
  display: block;
  font-size: 21px;
}

.shift-main strong,
.shift-main span {
  display: block;
}

.shift-main span,
.shift-side span {
  color: var(--muted);
  font-size: 13px;
}

.shift-side {
  text-align: right;
}

.shift-side strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
}

.shift-item-completed {
  background: var(--success-bg);
  border-color: #c5e4d2;
}

.completed-card {
  background: linear-gradient(145deg, #eef8f2, #fff);
  border-color: #cce8d8;
}

.completed-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.completed-card h2 {
  margin: 7px 0 3px;
  font-size: 21px;
}

.completed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 17px;
}

.completed-stat {
  padding: 12px;
  background: rgb(255 255 255 / 72%);
  border-radius: 14px;
}

.completed-stat span,
.completed-stat strong {
  display: block;
}

.completed-stat span {
  color: var(--muted);
  font-size: 12px;
}

.completed-stat strong {
  margin-top: 2px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.event-item {
  display: grid;
  grid-template-columns: 48px 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 4px 0;
}

.event-time {
  padding-top: 1px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.event-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  background: var(--primary);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--primary-light);
}

.event-copy strong,
.event-copy span {
  display: block;
}

.event-copy span {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  background: rgb(255 255 255 / 58%);
  border: 1px dashed #cbd4cf;
  border-radius: 17px;
  font-size: 14px;
  text-align: center;
}

.profile-card {
  padding: 22px 18px;
}

.active-strip {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.active-strip strong,
.active-strip > span:last-child {
  display: block;
}

.active-strip > span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.profile-avatar {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 15px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--terracotta), #a44d31);
  border-radius: 22px;
  font-size: 25px;
  font-weight: 850;
}

.profile-card h2 {
  margin: 0;
  font-size: 24px;
}

.profile-card > p {
  margin: 3px 0 20px;
  color: var(--muted);
}

.profile-list {
  margin: 0;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.profile-row dt {
  color: var(--muted);
}

.profile-row dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 92%);
  border-top: 1px solid rgb(23 32 28 / 8%);
  box-shadow: 0 -8px 26px rgb(23 32 28 / 6%);
  backdrop-filter: blur(16px);
}

.nav-button {
  display: grid;
  min-height: 56px;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 5px;
  color: var(--muted);
  background: transparent;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.nav-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-button[aria-current="page"] {
  color: var(--primary);
  background: var(--surface-soft);
}

/* Login and flow screens */

.login-screen,
.flow-screen {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
}

.login-screen {
  justify-content: space-between;
  background:
    radial-gradient(circle at 85% 8%, rgb(201 105 69 / 14%), transparent 30%), var(--bg);
}

.login-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-copy {
  margin: auto 0 24px;
}

.login-copy h1 {
  max-width: 330px;
  margin: 13px 0 10px;
  font-size: 39px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.login-copy p {
  margin: 0;
  color: var(--muted);
}

.login-form {
  padding: 20px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 7px;
}

.field + .field {
  margin-top: 14px;
}

.field label {
  font-size: 14px;
  font-weight: 750;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  color: var(--text);
  background: #fbfcfb;
  border: 1px solid #cbd4cf;
  border-radius: var(--radius-control);
  outline: none;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(22 92 73 / 12%);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 650;
}

.login-form .button {
  margin-top: 18px;
}

.flow-screen {
  background: var(--bg);
}

.flow-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 20px;
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.flow-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.flow-subtitle {
  margin: 8px 0 22px;
  color: var(--muted);
}

.scanner {
  position: relative;
  display: grid;
  width: min(100%, 330px);
  aspect-ratio: 1;
  margin: 6px auto 22px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgb(22 92 73 / 5%), rgb(201 105 69 / 8%)), var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.scanner-corners,
.scanner-corners::before,
.scanner-corners::after {
  position: absolute;
  width: 54px;
  height: 54px;
  border-color: var(--primary);
  content: "";
}

.scanner-corners {
  top: 24px;
  left: 24px;
  border-top: 4px solid;
  border-left: 4px solid;
  border-radius: 10px 0 0;
}

.scanner-corners::before {
  top: -4px;
  left: 224px;
  border-top: 4px solid;
  border-right: 4px solid;
  border-radius: 0 10px 0 0;
}

.scanner-corners::after {
  top: 224px;
  left: -4px;
  border-bottom: 4px solid;
  border-left: 4px solid;
  border-radius: 0 0 0 10px;
  box-shadow: 228px 0 0 -4px var(--surface), 228px 0 0 0 var(--primary);
}

.scanner-line {
  position: absolute;
  top: 64px;
  right: 36px;
  left: 36px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--terracotta), transparent);
  box-shadow: 0 3px 12px rgb(201 105 69 / 50%);
  animation: scan 1.7s ease-in-out infinite alternate;
}

.scanner-message {
  max-width: 190px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@keyframes scan {
  to {
    transform: translateY(180px);
  }
}

.found-terminal {
  display: grid;
  gap: 15px;
  margin: auto 0;
  text-align: center;
}

.found-icon,
.result-icon,
.checking-spinner {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 28px;
  font-size: 34px;
  font-weight: 850;
}

.found-terminal h1,
.result-card h1,
.checking-state h1 {
  margin: 0;
}

.found-terminal p,
.result-card p,
.checking-state p {
  margin: 0;
  color: var(--muted);
}

.terminal-found-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  text-align: left;
}

.terminal-found-card strong,
.terminal-found-card span {
  display: block;
}

.terminal-found-card span {
  color: var(--muted);
  font-size: 14px;
}

.flow-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.checking-state,
.result-card {
  display: grid;
  flex: 1;
  place-content: center;
  gap: 14px;
  text-align: center;
}

.checking-spinner {
  position: relative;
}

.checking-spinner::after {
  position: absolute;
  inset: -8px;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%;
  content: "";
  animation: spin 900ms linear infinite;
}

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

.result-card {
  align-content: center;
}

.result-card.error .result-icon {
  color: var(--danger);
  background: var(--danger-bg);
}

.result-card.success .result-icon {
  color: var(--success);
  background: var(--success-bg);
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
  text-align: left;
}

.result-summary div {
  padding: 13px;
  background: var(--surface);
  border-radius: 15px;
}

.result-summary span,
.result-summary strong {
  display: block;
}

.result-summary span {
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: 92px;
  left: 16px;
  width: min(calc(100% - 32px), 398px);
  margin: 0 auto;
  padding: 13px 15px;
  color: #fff;
  background: #26332e;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 650;
}

/* Terminal */

.terminal-body {
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  background: #123c32;
}

.terminal-layout {
  min-height: 100vh;
  padding: 24px clamp(28px, 4vw, 58px);
  color: #f7fbf8;
  background:
    radial-gradient(circle at 88% 12%, rgb(235 196 151 / 11%), transparent 28%),
    radial-gradient(circle at 12% 86%, rgb(255 255 255 / 7%), transparent 32%), #123c32;
}

.terminal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}

.terminal-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.terminal-brand .brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--primary);
  background: #f3faf6;
  border-radius: 15px 15px 15px 5px;
  font-size: 16px;
}

.terminal-brand strong,
.terminal-brand div span {
  display: block;
}

.terminal-brand strong {
  font-size: 18px;
}

.terminal-brand div span {
  color: rgb(255 255 255 / 62%);
  font-size: 13px;
}

.terminal-clock {
  text-align: right;
}

.terminal-clock time {
  display: block;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.terminal-clock span {
  display: block;
  margin-top: 8px;
  color: rgb(255 255 255 / 66%);
  font-size: 14px;
}

.terminal-main {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(410px, 1.12fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 180px);
  padding: 24px 0 58px;
}

.terminal-copy h1 {
  max-width: 610px;
  margin: 14px 0 16px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.terminal-copy > p {
  max-width: 580px;
  margin: 0;
  color: rgb(255 255 255 / 69%);
  font-size: clamp(16px, 1.8vw, 21px);
}

.terminal-status-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  max-width: 600px;
  margin-top: 30px;
  padding: 17px;
  color: var(--text);
  background: #f7fbf8;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgb(0 0 0 / 15%);
}

.terminal-status-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 16px;
  font-size: 24px;
}

.terminal-status-card strong,
.terminal-status-card span {
  display: block;
}

.terminal-status-card strong {
  font-size: 18px;
}

.terminal-status-card span {
  color: var(--muted);
  font-size: 14px;
}

.qr-panel {
  justify-self: center;
  width: min(100%, 520px);
  padding: clamp(20px, 3vw, 34px);
  color: var(--text);
  background: #fff;
  border-radius: 34px;
  box-shadow: 0 28px 60px rgb(0 0 0 / 20%);
  text-align: center;
}

.qr-panel canvas {
  display: block;
  width: min(100%, 390px);
  aspect-ratio: 1;
  margin: 0 auto;
  image-rendering: pixelated;
  border-radius: 17px;
}

.qr-panel h2 {
  margin: 18px 0 3px;
  font-size: 21px;
}

.qr-panel p {
  margin: 0;
  color: var(--muted);
}

.qr-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.qr-progress {
  flex: 1;
  height: 7px;
  overflow: hidden;
  background: #e5ebe7;
  border-radius: 999px;
}

.qr-progress span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
  transition: width 300ms linear;
}

.qr-countdown strong {
  min-width: 56px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.demo-panel {
  position: fixed;
  z-index: 50;
  right: auto;
  bottom: 18px;
  left: 22px;
  width: min(430px, calc(100% - 44px));
  color: var(--text);
  background: var(--demo-bg);
  border: 1px dashed #c7a648;
  border-radius: 17px;
  box-shadow: 0 15px 40px rgb(0 0 0 / 20%);
}

.demo-panel summary {
  min-height: 48px;
  padding: 12px 16px;
  color: var(--demo);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.demo-panel-body {
  display: grid;
  gap: 9px;
  padding: 0 13px 13px;
}

.demo-panel-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.demo-panel .button {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 13px;
}

.demo-state {
  margin: 0;
  color: var(--demo);
  font-size: 12px;
}

.terminal-too-small {
  display: none;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
  color: #fff;
  background: #123c32;
  text-align: center;
}

.terminal-too-small h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.terminal-too-small p {
  max-width: 500px;
  margin: 0;
  color: rgb(255 255 255 / 70%);
}

@media (min-width: 431px) {
  .app-content {
    padding-right: 20px;
    padding-left: 20px;
  }
}

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

  .launcher {
    padding-top: 34px;
  }

  .brand-lockup {
    margin-bottom: 38px;
  }
}

@media (max-width: 350px) {
  .scanner-corners,
  .scanner-corners::before,
  .scanner-corners::after {
    display: none;
  }
}

@media (max-width: 1023px) {
  .terminal-layout {
    display: none;
  }

  .terminal-too-small {
    display: grid;
  }
}

@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;
  }
}
