/* App-specific layout and page styling for alloy-panel-v2.
   Shared primitives belong in ../alloy-ui-lib. */

.app-shell {
  min-height: 100vh;
  background: var(--bg);
}

.app-main {
  max-width: 616px;
  margin: 0 auto;
  padding: 42px 20px 72px;
}

.page-shell,
.dashboard-shell,
.admin-shell,
.auth-shell,
.simple-page {
  width: min(100%, 576px);
  margin: 0 auto;
}

.page-shell,
.dashboard-shell,
.admin-shell,
.auth-shell {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.page-intro,
.dashboard-intro,
.admin-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-kicker,
.dashboard-kicker,
.admin-kicker,
.section-kicker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-title,
.dashboard-title,
.admin-title,
.simple-page h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.page-copy,
.dashboard-copy,
.admin-copy,
.simple-page p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.divider-line {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.home-hero {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.home-benefit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-benefit-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-benefit-copy,
.muted-copy,
.inline-note,
.download-unavailable,
.table-muted,
.device-copy small,
.settings-note,
.faq-answer,
.chat-placeholder,
.thread-meta,
.monitoring-meta,
.empty-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.home-actions,
.inline-actions,
.settings-actions,
.modal-actions-row,
.admin-toolbar-actions,
.subscription-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.home-helper,
.dashboard-helper,
.auth-helper,
.support-helper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
  color: var(--muted);
  font-size: 13px;
}

.home-helper .text-link,
.dashboard-helper .text-link,
.support-helper .text-link,
.auth-helper .text-link {
  color: var(--fg);
}

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

.download-column,
.support-section,
.profile-section,
.devices-section,
.chat-section,
.settings-section,
.admin-block,
.monitoring-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-heading,
.section-title,
.section-subtitle,
.settings-title,
.admin-block-title,
.monitoring-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
}

.section-label,
.table-label,
.metric-heading,
.modal-label,
.admin-filter-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-list,
.support-contact-list,
.faq-list,
.device-list,
.settings-stack,
.admin-stack,
.monitoring-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-row,
.contact-row,
.faq-row,
.device-row,
.thread-row,
.thread-message,
.settings-row,
.token-row,
.server-stat-row,
.modal-panel,
.admin-toolbar,
.admin-filter-row,
.admin-empty-state,
.config-inline-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-row,
.contact-row,
.faq-row,
.device-row,
.thread-row,
.thread-message,
.settings-row,
.token-row,
.server-stat-row,
.admin-toolbar,
.admin-empty-state,
.config-inline-toolbar {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.download-row:last-child,
.contact-row:last-child,
.faq-row:last-child,
.device-row:last-child,
.thread-message:last-child,
.server-stat-row:last-child {
  border-bottom: 1px solid var(--border);
}

.download-row,
.contact-row,
.device-row,
.settings-row,
.token-row,
.server-stat-row,
.admin-toolbar,
.config-inline-toolbar {
  justify-content: space-between;
}

.download-target,
.contact-target,
.device-copy,
.token-copy,
.server-stat-copy,
.admin-empty-state,
.chat-message-copy,
.thread-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.download-platform,
.contact-value,
.device-title,
.token-value,
.server-stat-value,
.thread-title,
.admin-table a,
.admin-td-strong,
.chat-message-author {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
}

.purchase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 440px;
  gap: 30px;
}

.purchase-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.purchase-price-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.purchase-price {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.purchase-price-note,
.purchase-subnote {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-list li {
  color: var(--muted);
  font-size: 13px;
}

.purchase-mode {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-disabled-note {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.payment-disabled-note strong {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.purchase-toggle {
  display: flex;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.purchase-toggle .text-link {
  color: var(--muted);
}

.purchase-toggle .text-link.is-active {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gift-suggestions {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.gift-suggestion {
  padding: 9px 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.gift-suggestion:last-child {
  border-bottom: 0;
}

.gift-suggestion:hover,
.gift-suggestion:focus-visible {
  color: var(--fg);
  background: var(--surface-raised);
}

.gift-form,
.auth-form,
.settings-form,
.chat-composer,
.admin-modal-form,
.config-inline-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.dashboard-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-metric-value {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.dashboard-chat {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 18px;
}

.thread-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thread-item {
  width: 100%;
  padding: 10px 0;
  text-align: left;
  border-top: 1px solid var(--border);
}

.thread-item.is-active {
  color: var(--fg);
}

.thread-item:last-child {
  border-bottom: 1px solid var(--border);
}

.message-list {
  display: flex;
  flex-direction: column;
}

.thread-message {
  align-items: flex-start;
}

.chat-message-author {
  font-size: 11px;
}

.chat-message-time {
  color: var(--muted);
  font-size: 11px;
}

.settings-divider,
.admin-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.status-banner {
  width: min(100%, 576px);
  margin: 12px auto 0;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.status-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--fg);
  border-radius: 999px;
  animation: spin 1s linear infinite;
}

.toast-stack {
  position: fixed;
  top: 68px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-panel {
  max-width: 320px;
}

.auth-card {
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.auth-switch {
  display: flex;
  gap: 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.auth-switch .tab-btn {
  padding: 0.6rem 0;
}

.admin-toolbar {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.admin-search-input,
.admin-select,
.admin-native-select {
  width: 100%;
}

/* Unified Input & Select / Combobox styling for Admin Panel */
.admin-search-input,
.filter-input,
.text-input,
select,
.admin-select,
.admin-native-select,
.filter-select,
.cs-trigger {
  box-sizing: border-box !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 0.65rem !important;
  background-color: var(--input-bg, #111111) !important;
  background-image: none !important;
  color: var(--input-text, #e5e5e5) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 4px !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  transition: border-color 0.15s ease !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

select::-ms-expand {
  display: none !important;
}

.admin-search-input:focus,
.filter-input:focus,
.text-input:focus,
select:focus,
select:active,
.admin-select:focus,
.admin-select:active,
.admin-native-select:focus,
.filter-select:focus,
.cs-trigger:focus {
  outline: none !important;
  border-color: var(--fg, #ffffff) !important;
  box-shadow: none !important;
}

select option {
  background-color: var(--input-bg, #111111) !important;
  color: var(--muted, #888888) !important;
  padding: 0.4rem 0.65rem !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.8rem !important;
}

select option:checked,
select option:hover,
select option[selected] {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

.cs-drop {
  background-color: var(--input-bg, #111111) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 4px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  padding: 0.25rem !important;
}

.cs-opt {
  color: var(--muted, #888888) !important;
  background-color: transparent !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.8rem !important;
  padding: 0.4rem 0.65rem !important;
  border-radius: 3px !important;
  border: none !important;
  text-align: left !important;
}

.cs-opt:hover,
.cs-opt-active {
  color: var(--fg, #ffffff) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.cs-opt-selected {
  color: var(--fg, #ffffff) !important;
  font-weight: 500 !important;
}

.admin-search-input {
  padding-left: 0.85rem !important;
}

.admin-filter-row {
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0;
  border-top: none;
}

.admin-counter {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.admin-table-shell {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.admin-table td {
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.admin-table-row {
  cursor: pointer;
}

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

.admin-inline-button,
.table-link {
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-empty-row {
  color: var(--muted);
  font-size: 13px;
  padding: 16px 0;
}

.modal-stack,
.modal-details,
.modal-danger-actions,
.server-detail-grid,
.subscription-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-details-row,
.server-detail-row,
.subscription-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.modal-danger-actions {
  margin-top: 6px;
}

.modal-danger-actions .btn-danger,
.modal-danger-actions .outline-btn,
.modal-danger-actions .btn-secondary {
  width: 100%;
  justify-content: center;
}

.server-log-console {
  min-height: 260px;
  max-height: 56vh;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

.server-log-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.monitoring-toolbar {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

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

.monitoring-card .metric-chart {
  padding: 14px;
}

.monitoring-card .metric-chart__title {
  font-family: var(--font-family-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.config-inline-editor textarea {
  min-height: 300px;
}

.simple-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-chat {
  display: grid;
  gap: 16px;
}

.support-thread-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-thread-tabs .is-active {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

.support-message-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
}

.support-message {
  padding: 12px;
  border: 1px solid var(--color-border-default);
  background: var(--color-background-surface);
}

.support-message p {
  margin: 6px 0;
  white-space: pre-wrap;
}

.support-message time {
  color: var(--color-text-muted);
  font-size: 12px;
}

.support-compose {
  display: grid;
  gap: 10px;
}

.support-compose textarea {
  min-height: 110px;
  resize: vertical;
}

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

@media (max-width: 767px) {
  .app-main {
    padding-top: 30px;
  }

  .home-benefits,
  .downloads-grid,
  .purchase-grid,
  .dashboard-metrics,
  .dashboard-chat,
  .monitoring-grid {
    grid-template-columns: 1fr;
  }

  .download-row,
  .contact-row,
  .device-row,
  .settings-row,
  .token-row,
  .server-stat-row,
  .modal-details-row,
  .server-detail-row,
  .subscription-detail-row,
  .monitoring-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .toast-stack {
    right: 12px;
    left: 12px;
  }

  .toast-panel {
    max-width: none;
  }
}

/* ── Admin Tickets Tab ────────────────────────────────────────────────────── */

.admin-tickets-layout {
  display: flex;
  gap: 0;
  min-height: 560px;
  max-height: 700px;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.admin-tickets-sidebar {
  width: 210px;
  min-width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border-default);
  background: var(--color-background-surface);
}

.admin-tickets-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--color-border-default);
}

.admin-tickets-count {
  font-size: 12px;
}

.admin-tickets-thread-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.admin-tickets-thread-item {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: none;
  border-bottom: 1px solid var(--color-border-default);
  background: transparent;
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  transition: background 120ms;
}

.admin-tickets-thread-item:hover {
  background: var(--color-background-hover);
}

.admin-tickets-thread-item.is-active {
  background: var(--color-background-hover);
  border-left: 3px solid var(--color-accent);
}

.admin-tickets-thread-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-tickets-thread-user {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.admin-tickets-thread-title {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.admin-tickets-thread-time {
  font-size: 11px;
}

.admin-tickets-pill {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.admin-tickets-pill.is-open {
  background: color-mix(in srgb, var(--color-success) 15%, transparent);
  color: var(--color-success);
  border-color: color-mix(in srgb, var(--color-success) 30%, transparent);
}

.admin-tickets-pill.is-closed {
  background: color-mix(in srgb, var(--color-text-muted) 12%, transparent);
  color: var(--color-text-muted);
  border-color: var(--color-border-default);
}

.admin-tickets-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--color-background-primary);
}

.admin-tickets-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border-default);
  background: var(--color-background-surface);
  flex-shrink: 0;
}

.admin-tickets-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-tickets-header-info strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.admin-tickets-header-info span {
  font-size: 12px;
}

.admin-tickets-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-tickets-empty {
  margin: auto;
  text-align: center;
}

/* Staff reply — right-aligned variant */
.support-message--staff {
  border-left: none;
  border-right: 3px solid var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 6%, var(--color-background-surface));
}

.support-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.support-message-header strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.support-message-header time {
  font-size: 11px;
  color: var(--color-text-muted);
}

.admin-tickets-compose {
  border-top: 1px solid var(--color-border-default);
  padding: 14px 16px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .admin-tickets-layout {
    flex-direction: column;
    max-height: none;
  }

  .admin-tickets-sidebar {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--color-border-default);
    max-height: 240px;
  }
}

/* ── Admin Tickets: filter tabs ──────────────────────────────────────────── */

.admin-tickets-filters {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border-default);
  padding: 0 8px;
  background: var(--color-background-surface);
  flex-shrink: 0;
}

.admin-tickets-filter-btn {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 120ms, border-color 120ms;
  white-space: nowrap;
}

.admin-tickets-filter-btn:hover {
  color: var(--color-text-primary);
}

.admin-tickets-filter-btn.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  font-weight: 600;
}

/* ── Admin Tickets: assignee badge in sidebar ────────────────────────────── */

.admin-tickets-thread-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.admin-tickets-assignee-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
  border-radius: 20px;
  padding: 1px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.admin-tickets-empty-list {
  padding: 16px;
  text-align: center;
}

/* ── Admin Tickets: header sub-row and actions ────────────────────────────── */

.admin-tickets-header-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.admin-tickets-assignee-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  padding: 1px 8px;
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--color-accent) 25%, transparent);
}

.admin-tickets-assignee-label.is-free {
  color: var(--color-text-muted);
  background: transparent;
  border-color: var(--color-border-default);
}

.admin-tickets-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Admin Tickets: blocked compose bar ──────────────────────────────────── */

.admin-tickets-compose-blocked {
  border-top: 1px solid var(--color-border-default);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  min-height: 60px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  background: color-mix(in srgb, var(--color-text-muted) 4%, var(--color-background-primary));
}

/* ── Footer & Terms ───────────────────────────────────────────────────────── */

.app-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 20px 28px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.footer-terms-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 150ms ease;
}

.footer-terms-btn:hover {
  color: var(--fg);
  text-decoration: underline;
}

.terms-page {
  width: min(100%, 680px);
}

