:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-soft: #0f1115;
  --surface: #12151a;
  --surface-2: #171a20;
  --surface-3: #1c2027;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f1eb;
  --muted: #9aa1ac;
  --muted-2: #6f7782;
  --accent: #ffb224;
  --accent-strong: #ffc14f;
  --accent-ink: #221703;
  --ok: #57d68a;
  --warn: #ffb224;
  --danger: #ff7b7b;
  --radius: 20px;
  --font: "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(255, 178, 36, 0.28);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

svg {
  display: block;
}

.bg-grid,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.55;
}

.bg-glow {
  background:
    radial-gradient(ellipse 52% 44% at 12% -4%, rgba(255, 178, 36, 0.13), transparent 65%),
    radial-gradient(ellipse 40% 38% at 96% 22%, rgba(87, 214, 138, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 110%, rgba(255, 178, 36, 0.06), transparent 70%);
}

.page {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.lead {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.68;
}

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

h1,
h2 {
  font-weight: 640;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 6px;
  font-size: 1.28rem;
}

/* ---------- brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 178, 36, 0.36);
  border-radius: 11px;
  background: linear-gradient(160deg, rgba(255, 178, 36, 0.18), rgba(255, 178, 36, 0.03));
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand__name span {
  color: var(--muted);
  font-weight: 500;
}

.brand--small {
  margin-bottom: 22px;
}

/* ---------- layout ---------- */

.topbar {
  display: flex;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 36px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 21, 26, 0.72);
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.status[data-state="online"] {
  color: #c9f5d9;
  border-color: rgba(87, 214, 138, 0.24);
  background: rgba(87, 214, 138, 0.07);
}

.status[data-state="online"] .status__dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(87, 214, 138, 0.15), 0 0 12px rgba(87, 214, 138, 0.5);
}

.status[data-state="offline"] {
  color: #ffd2d2;
  border-color: rgba(255, 123, 123, 0.22);
  background: rgba(255, 123, 123, 0.06);
}

.status[data-state="offline"] .status__dot {
  background: var(--danger);
}

.status[data-state="checking"] .status__dot {
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  50% { opacity: 0.25; }
}

/* ---------- login ---------- */

.login {
  display: grid;
  width: 100%;
  max-width: 1240px;
  min-height: calc(100dvh - 110px);
  margin: 0 auto;
  padding: 24px 36px 72px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.login__intro h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.login__intro h1 span {
  color: var(--muted-2);
}

.login__intro .lead {
  margin-bottom: 0;
}

.feature-list {
  display: grid;
  margin: 30px 0 0;
  padding: 0;
  gap: 12px;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 11px;
}

.feature-check {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 178, 36, 0.12);
  color: var(--accent);
}

.terminal {
  max-width: 470px;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(23, 26, 32, 0.82), rgba(13, 15, 19, 0.9));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.terminal__bar {
  display: flex;
  padding: 11px 14px;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.terminal__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30353d;
}

.terminal__bar span:nth-child(1) { background: #4a3a2a; }
.terminal__bar span:nth-child(2) { background: #3a4230; }
.terminal__bar span:nth-child(3) { background: #2c3a3a; }

.terminal__bar em {
  margin-left: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
  font-style: normal;
}

.terminal pre {
  margin: 0;
  padding: 18px 20px;
  color: #c9cdd4;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  overflow-x: auto;
}

.t-muted { color: var(--muted-2); }
.t-ok { color: var(--ok); }
.t-accent { color: var(--accent); }

.login__panel {
  width: 100%;
  max-width: 440px;
  justify-self: end;
}

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23, 26, 32, 0.9), rgba(15, 17, 21, 0.96));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.card--login {
  padding: 32px;
  border-radius: 24px;
  backdrop-filter: blur(22px);
}

.card__head {
  margin-bottom: 22px;
}

.card__head h2 {
  margin-bottom: 8px;
}

.card__head .muted {
  margin-bottom: 0;
  font-size: 13.5px;
  line-height: 1.55;
}

.login__foot {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  text-align: center;
}

/* ---------- forms ---------- */

.form {
  display: grid;
  gap: 16px;
}

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

.field label {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
}

input[type="text"],
input[type="password"],
select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: #0c0e12;
  color: var(--text);
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: var(--muted-2);
}

input:focus,
select:focus {
  border-color: rgba(255, 178, 36, 0.65);
  background: #0e1014;
  box-shadow: 0 0 0 3px rgba(255, 178, 36, 0.13);
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 50px;
}

.input-action {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
}

.input-action:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
}

.check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check__box {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #0c0e12;
  transition: background 160ms ease, border-color 160ms ease;
}

.check input:checked + .check__box {
  border-color: var(--accent);
  background: var(--accent);
}

.check input:checked + .check__box::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 5.5px;
  width: 4px;
  height: 8px;
  border: solid var(--accent-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check input:focus-visible + .check__box {
  box-shadow: 0 0 0 3px rgba(255, 178, 36, 0.2);
}

.button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 100ms ease, opacity 160ms ease;
}

.button:hover {
  text-decoration: none;
}

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

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button--primary {
  border-color: rgba(255, 204, 108, 0.5);
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 8px 24px rgba(255, 178, 36, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button--primary:hover {
  background: linear-gradient(180deg, #ffd06a, #ffbd3d);
}

.button--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.button--danger-ghost {
  border-color: rgba(255, 123, 123, 0.22);
  background: rgba(255, 123, 123, 0.04);
  color: #ffadad;
}

.button--danger-ghost:hover {
  background: rgba(255, 123, 123, 0.09);
}

.button--full {
  width: 100%;
  min-height: 50px;
  font-size: 14.5px;
}

.button--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12.5px;
}

.button--icon {
  width: 40px;
  min-height: 40px;
  padding: 0;
}

.button .spinner {
  width: 15px;
  height: 15px;
  border-width: 2px;
}

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

.row--between {
  justify-content: space-between;
}

.row--wrap {
  flex-wrap: wrap;
}

.alert {
  padding: 11px 13px;
  border: 1px solid rgba(255, 123, 123, 0.25);
  border-radius: 10px;
  background: rgba(255, 123, 123, 0.07);
  color: #ffc4c4;
  font-size: 12.5px;
  line-height: 1.5;
}

.alert--ok {
  border-color: rgba(87, 214, 138, 0.25);
  background: rgba(87, 214, 138, 0.07);
  color: #c9f5d9;
}

.hint {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.55;
}

.hint code,
code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.92em;
}

/* ---------- app ---------- */

.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.78);
  backdrop-filter: blur(18px);
}

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

.app {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 44px;
}

.hero {
  display: grid;
  margin-bottom: 18px;
  padding: 38px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr);
  gap: 34px;
  align-items: end;
  background:
    radial-gradient(ellipse 60% 110% at 4% 0%, rgba(255, 178, 36, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(25, 28, 34, 0.94), rgba(15, 17, 21, 0.97));
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero h1 span {
  color: var(--muted-2);
}

.hero .lead {
  margin-bottom: 24px;
  font-size: 14.5px;
}

.hero__meta {
  display: grid;
  gap: 0;
  align-self: stretch;
  align-content: end;
}

.meta {
  display: grid;
  padding: 13px 0;
  gap: 4px;
  border-top: 1px solid var(--line);
}

.meta span {
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meta strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 18px;
  align-items: start;
}

.card + .card {
  margin-top: 0;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  padding: 0 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--accent {
  border-color: rgba(255, 178, 36, 0.28);
  background: rgba(255, 178, 36, 0.09);
  color: var(--accent);
}

.badge--ok {
  border-color: rgba(87, 214, 138, 0.25);
  background: rgba(87, 214, 138, 0.08);
  color: #9ae9b8;
}

.badge--danger {
  border-color: rgba(255, 123, 123, 0.25);
  background: rgba(255, 123, 123, 0.08);
  color: #ffb3b3;
}

.pair {
  display: grid;
  margin-top: 18px;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.qr-frame {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  padding: 10px;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-placeholder {
  padding: 18px;
  color: #5d6470;
  font-size: 12px;
  text-align: center;
}

.qr-frame--small {
  width: 190px;
  margin-top: 16px;
}

.pair__side {
  display: grid;
  gap: 13px;
  min-width: 0;
}

.pair__side .muted {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
}

.copy-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.copy-row code {
  overflow: hidden;
  min-width: 0;
  flex: 1;
  padding: 9px 10px;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-list {
  display: grid;
  margin-top: 6px;
}

.session {
  display: grid;
  padding: 12px 2px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  border-top: 1px solid var(--line);
  transition: background 150ms ease;
}

.session:first-child {
  border-top: 0;
}

.session:hover {
  background: rgba(255, 255, 255, 0.018);
}

.session__title {
  display: flex;
  overflow: hidden;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session:hover .session__title {
  color: var(--accent);
}

.session__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(87, 214, 138, 0.55);
}

.session__time {
  color: var(--muted-2);
  font-size: 11px;
  white-space: nowrap;
}

.session__meta {
  overflow: hidden;
  grid-column: 1 / -1;
  color: var(--muted-2);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty {
  padding: 26px 0;
  color: var(--muted-2);
  font-size: 12.5px;
  text-align: center;
}

.tunnel-status {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.tunnel-status strong {
  color: var(--text);
  font-weight: 550;
}

.tunnel-status a {
  color: var(--accent);
}

.tunnel-status .error {
  color: #ffb3b3;
}

.card--tunnel .hint {
  margin-top: 14px;
}

.security-list {
  display: grid;
  margin: 2px 0 18px;
}

.security-row {
  display: flex;
  padding: 9px 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.security-row span {
  color: var(--muted);
}

.security-row strong {
  font-weight: 550;
  text-align: right;
}

.details {
  border-top: 1px solid var(--line);
}

.details summary {
  padding: 14px 0;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  list-style: none;
}

.details summary::-webkit-details-marker {
  display: none;
}

.details summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--accent);
  font-weight: 650;
}

.details[open] summary::before {
  content: "−";
}

.details .form {
  padding: 2px 0 16px;
}

.security-actions {
  margin-top: 18px;
}

.footer {
  padding: 28px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  text-align: center;
}

/* ---------- states ---------- */

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.skeleton {
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  to { background-position: -220% 0; }
}

.error-shell {
  display: grid;
  width: 100%;
  max-width: 560px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 48px 24px;
  align-content: center;
}

.error-card h1 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.error-detail,
.command {
  margin: 16px 0;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0d11;
  color: #c9cdd4;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.command {
  color: var(--accent);
  font-size: 13px;
}

.toast {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 100;
  max-width: min(92vw, 440px);
  padding: 12px 16px;
  border: 1px solid rgba(255, 178, 36, 0.3);
  border-radius: 12px;
  background: rgba(24, 27, 33, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 12.5px;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.toast--ok {
  border-color: rgba(87, 214, 138, 0.3);
}

.toast--error {
  border-color: rgba(255, 123, 123, 0.3);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .login {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 8px;
    align-items: start;
  }

  .login__intro h1 {
    font-size: clamp(2.8rem, 9vw, 4.6rem);
  }

  .login__panel {
    max-width: 520px;
    justify-self: start;
  }

  .terminal {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

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

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

@media (max-width: 680px) {
  .topbar {
    padding: 18px 18px;
  }

  .login {
    padding: 10px 18px 46px;
  }

  .login__intro h1 {
    font-size: clamp(2.65rem, 12vw, 3.6rem);
  }

  .feature-list {
    margin-top: 24px;
  }

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

  .appbar {
    padding: 12px 16px;
  }

  .appbar .brand__name {
    display: none;
  }

  .appbar__right .status {
    display: none;
  }

  .app {
    padding: 18px 14px 32px;
  }

  .hero {
    padding: 26px 22px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.1rem);
  }

  .hero__meta {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .qr-frame {
    width: min(100%, 240px);
    justify-self: center;
  }

  .qr-frame--small {
    width: min(100%, 210px);
  }

  .pair__side .button {
    width: 100%;
  }

  .hero .row .button {
    width: 100%;
  }

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

  .session {
    grid-template-columns: minmax(0, 1fr);
  }

  .session__time {
    justify-self: start;
  }

  .security-actions .button {
    width: 100%;
  }

  .footer {
    padding-top: 22px;
  }
}

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