@font-face {
  font-family: "Geist";
  src: url("/static/Geist-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/static/Geist-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/static/Geist-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/static/Geist-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070708;
  --surface: #0f0f11;
  --surface-2: #16161a;
  --line: #242428;
  --line-strong: #3a3a40;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #fafafa;
  --danger: #fca5a5;
  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) var(--bg);
}

a {
  color: var(--text);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 140ms var(--ease), text-decoration-color 140ms var(--ease);
}

a:hover {
  text-decoration-color: var(--text);
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: top 160ms var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* Shell: header, cookie strip, main and footer. */

.site-head,
.site-foot {
  width: min(1040px, 100% - 40px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-head {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--text);
  vertical-align: 2px;
  transition: transform 180ms var(--ease);
}

.brand:hover::before {
  transform: rotate(45deg);
}

.brand-dot {
  color: var(--dim);
  transition: color 140ms var(--ease);
}

.brand:hover .brand-dot {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav .nav-account {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.nav .nav-account:hover {
  background: var(--surface-2);
}

.nav a[aria-current="page"] {
  position: relative;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--text);
}

.nav .link {
  color: var(--muted);
  font-size: 14px;
}

.nav .link:hover {
  color: var(--text);
}

.inline {
  display: inline;
  margin: 0;
}

.link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 140ms var(--ease), text-decoration-color 140ms var(--ease);
}

.link:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.cookies {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  line-height: 1.5;
}

.cookies p {
  margin: 0;
  max-width: 800px;
  color: var(--muted);
}

.cookies a {
  color: var(--text);
}

.cookies form {
  flex: none;
}

.site-main {
  flex: 1;
  width: min(1040px, 100% - 40px);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) 0 clamp(64px, 8vw, 96px);
}

.site-foot {
  min-height: 80px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12.5px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.foot-mark {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 1px;
  background: var(--line-strong);
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-foot a {
  color: var(--dim);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--text);
}

/* Shared typography and small helpers. */

.eyebrow {
  margin: 0 0 10px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 15px;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.back-link::before {
  content: "←";
  font-size: 14px;
  transition: transform 140ms var(--ease);
}

.back-link:hover {
  color: var(--text);
}

.back-link:hover::before {
  transform: translateX(-3px);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}

/* Buttons and link-like buttons. */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #09090b;
  font: inherit;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease),
    color 140ms var(--ease), transform 80ms var(--ease);
}

.btn:hover {
  background: #e4e4e7;
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--muted);
}

.btn-small {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
}

/* Forms. */

.field {
  display: block;
  margin-top: 18px;
}

.field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}

input[type="email"]:hover,
input[type="password"]:hover,
input[type="text"]:hover {
  border-color: var(--muted);
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  border-color: var(--text);
  outline: none;
}

input[type="email"]:focus-visible,
input[type="password"]:focus-visible,
input[type="text"]:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

input::placeholder {
  color: var(--dim);
}

input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.file-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 140ms var(--ease);
}

.file-input::file-selector-button {
  margin-right: 12px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease);
}

.file-input:hover {
  border-color: var(--muted);
}

.file-input::file-selector-button:hover {
  background: var(--surface-2);
  border-color: var(--muted);
}

.form-actions {
  margin-top: 28px;
}

.form-actions .btn {
  width: 100%;
}

.form-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.form-links a {
  color: var(--muted);
  text-decoration: none;
}

.form-links a:hover {
  color: var(--text);
}

.form-inline {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.form-inline .field {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.form-inline .btn {
  flex: none;
}

.error {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #4b2226;
  border-radius: var(--radius-sm);
  background: #1d1113;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.dev-hint {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.55;
}

.dev-hint a {
  color: var(--text);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

/* Studio home and work list. */

.hero {
  padding: clamp(28px, 6vw, 80px) 0 clamp(32px, 5vw, 64px);
}

.hero-copy {
  width: fit-content;
}

.hero-studio {
  margin: 0;
  font-size: clamp(64px, 11.5vw, 144px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.075em;
}

.hero-subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 3.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

@supports (background-clip: text) {
  .hero-copy {
    background: linear-gradient(180deg, #fff 16%, #d0d0d0 70%, #a3a3a3 100%);
    background-clip: text;
  }

  .hero-studio,
  .hero-subtitle {
    color: transparent;
  }
}

@media (forced-colors: active) {
  .hero-studio,
  .hero-subtitle {
    color: CanvasText;
  }
}

.ribbons {
  margin-top: clamp(24px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.ribbon {
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.ribbon-head {
  padding: 16px 0;
}

.ribbon-head h2 {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ribbon-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.ribbon-row {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  min-height: clamp(160px, 20vw, 216px);
  padding: 32px 0;
}

.ribbon-brand {
  min-width: 0;
}

.ribbon-mark {
  margin: 0;
  color: var(--text);
}

.tyst-mark {
  font-family: "Geist", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(64px, 10vw, 116px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.075em;
}

.aviateka-mark {
  display: inline-block;
  margin: 0;
  font-family: "Noto Serif Display", "PT Astra Serif", Georgia, serif;
  font-size: clamp(34px, 7.8vw, 88px);
  font-weight: 500;
  font-stretch: 62.5%;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: scale(0.78, 1.34);
  transform-origin: left center;
}

.ribbon-copy {
  min-width: 0;
  padding-left: clamp(24px, 4vw, 40px);
  border-left: 1px solid var(--line);
}

.ribbon-desc {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* Auth cards and message pages. */

.card {
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 38px 36px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.card::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin-bottom: 26px;
  background: var(--line-strong);
}

.card h1 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 32px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.card .sub {
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.card .sub strong {
  color: var(--text);
  font-weight: 500;
}

.card > .muted {
  margin-top: -14px;
}

.card .error {
  margin-bottom: 20px;
}

/* Profile dashboard and account panels. */

.profile {
  display: grid;
  gap: 28px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.profile-id {
  min-width: 0;
}

.profile-head .eyebrow {
  margin-bottom: 6px;
}

.profile-head h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.username {
  margin-top: 4px;
  color: var(--dim);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  object-fit: cover;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.panel h2 {
  margin: 0;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-body {
  padding: 20px;
}

.panel > .session-row {
  border-top: 1px solid var(--line);
}

.panel > .session-row:first-of-type {
  border-top: 0;
}

.session-list {
  margin: 0;
}

.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

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

.session-title {
  font-size: 14.5px;
  font-weight: 500;
}

.session-meta {
  margin-top: 4px;
  color: var(--dim);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.session-empty {
  margin: 0;
  padding: 18px 20px;
  color: var(--muted);
  font-size: 14px;
}

.meta {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 6px 20px 8px;
  font-size: 14px;
}

.meta dt {
  padding: 10px 0;
  color: var(--dim);
  font-size: 13px;
}

.meta dd {
  margin: 0;
  padding: 10px 0;
  color: var(--text);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.device-meta {
  grid-template-columns: 120px minmax(0, 1fr);
}

.panel .error {
  margin: 16px 20px;
}

.avatar-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.avatar-form {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  min-width: 240px;
}

.avatar-form .field {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

/* Wide pages, page heads, admin table and documents. */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.page-head .lede {
  max-width: 56ch;
}

.page-head .back-link {
  margin-bottom: 6px;
}

.admin {
  max-width: 980px;
}

.search-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.search-form .field {
  flex: 1;
  margin: 0;
}

.search-form .btn {
  flex: none;
}

.table-wrap {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}

.table th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}

.table tbody tr:first-child td {
  border-top: 0;
}

.table tbody tr:hover {
  background: var(--surface-2);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.table .tag {
  margin-left: 6px;
}

.table-note {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.doc {
  max-width: 720px;
}

.doc > .back-link {
  display: flex;
  width: max-content;
  margin-bottom: 26px;
}

.doc > .eyebrow {
  margin-top: 26px;
}

.doc h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.doc h2 {
  margin: 36px 0 10px;
  font-size: 16px;
  font-weight: 500;
  scroll-margin-top: 24px;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc p {
  margin: 0 0 14px;
}

.doc ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.doc li + li {
  margin-top: 6px;
}

.doc-meta {
  margin: -4px 0 28px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* One-time recovery codes. */

.recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.recovery-codes li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  text-align: center;
}

.recovery-codes code {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* Responsive adjustments. */

@media (max-width: 760px) {
  .site-head,
  .site-foot,
  .site-main {
    width: min(1040px, 100% - 32px);
  }

  .site-head {
    min-height: 64px;
  }

  .nav {
    gap: 16px;
    font-size: 13px;
  }

  .nav .link {
    font-size: 13px;
  }

  .site-main {
    padding-top: 40px;
  }

  .hero {
    padding: 20px 0 30px;
  }

  .ribbon-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    min-height: 0;
    padding: 28px 0 34px;
  }

  .ribbon-copy {
    padding-left: 0;
    border-left: 0;
  }

  .ribbon-desc {
    max-width: 40ch;
    font-size: 15px;
  }

  .tyst-mark {
    font-size: clamp(56px, 16vw, 72px);
  }

  .aviateka-mark {
    font-size: clamp(38px, 9.5vw, 56px);
  }

  .card {
    padding: 30px 24px 26px;
  }

  .card::before {
    margin-bottom: 22px;
  }

  .page-head,
  .profile-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .profile-head {
    gap: 18px;
  }

  .avatar {
    width: 64px;
    height: 64px;
    font-size: 19px;
  }

  .page-head .back-link {
    order: -1;
    margin-bottom: 4px;
  }

  .site-foot {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 0;
  }

  .site-foot nav {
    gap: 14px;
  }

  .cookies {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .meta,
  .device-meta {
    grid-template-columns: 1fr;
  }

  .meta dt {
    padding-top: 14px;
    padding-bottom: 0;
    border-top: 1px solid var(--line);
  }

  .meta dt:first-of-type {
    padding-top: 6px;
    border-top: 0;
  }

  .meta dd {
    padding-top: 2px;
    padding-bottom: 14px;
  }

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

  .form-inline .btn {
    width: 100%;
  }

  .recovery-codes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-head-home {
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 8px 16px;
  }

  .site-head-home .nav {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .session-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .session-row form,
  .session-row .btn {
    width: 100%;
  }

  .session-row .link {
    width: auto;
  }

  .toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar .btn {
    width: 100%;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .actions form {
    flex: 1 1 100%;
  }

  .actions form .btn {
    width: 100%;
  }

  .avatar-form .btn {
    width: 100%;
  }

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

  .table {
    min-width: 620px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
