/* vidium — minimal styles */

:root {
  --page-bg: rgb(23, 23, 23);
  --card-bg: #2a2a2a;
  --sidebar-width: 320px;
  --content-max-width: 1200px;
  --wide-layout-gap: 1.5rem;
  --nav-height: calc(3.375rem + 1px);
  --feed-topbar-height: 3.5rem;
  --feed-control-height: 2.5rem;
  --sidebar-active-bg: #355579;
  --sidebar-active-color: #eef5ff;
}

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

html {
  scrollbar-gutter: stable;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--page-bg);
  color: #eee;
  line-height: 1.5;
}

a { color: #7cb8ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logout {
  background: none;
  border: none;
  color: #7cb8ff;
  cursor: pointer;
  font: inherit;
}

/* ── Main ────────────────────────────────────────────────────────────────── */

.main {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

.feed-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  row-gap: 1.25rem;
  padding-top: 0;
}

.feed-main::before {
  content: '';
  grid-column: 1 / -1;
  grid-row: 1;
  position: sticky;
  top: var(--nav-height);
  z-index: 89;
  min-height: var(--feed-topbar-height);
  background: var(--page-bg);
  border-bottom: 1px solid #333;
}

/* ── Topbar ───────────────────────────────────────────────────────────────── */

.feed-part {
  display: contents;
}

.topbar {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem 0.5rem 0;
  min-height: var(--feed-topbar-height);
}

.topbar-label {
  min-width: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #eee;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #bfbfbf;
  font-size: 0.95rem;
  user-select: none;
}

.nav-edit input {
  margin: 0;
  accent-color: #7cb8ff;
}

/* ── Channel sidebar ─────────────────────────────────────────────────────── */

.sidebar-toggle {
  width: var(--feed-control-height);
  height: var(--feed-control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  color: #7cb8ff;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  border-color: #444;
  background: #222;
  color: #eee;
}

.sidebar-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: #1a1a1a;
  border-right: 1px solid #333;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 0.75rem;
  padding-top: calc(var(--nav-height) + 0.6rem);
  overflow-y: auto;
  scrollbar-width: none;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}

.sidebar-panel.open { transform: translateX(0); }
.sidebar-panel::-webkit-scrollbar { display: none; }

.sidebar-system {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-divider {
  height: 1px;
  background: #333;
  margin: 0.25rem 0;
}

.sidebar-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}

.sidebar-mode-tabs button {
  padding: 0.4rem 0.55rem;
  border: 1px solid #333;
  border-radius: 0.45rem;
  background: #202020;
  color: #ccc;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.sidebar-mode-tabs button.active {
  background: var(--sidebar-active-bg);
  border-color: var(--sidebar-active-bg);
  color: var(--sidebar-active-color);
}

.sidebar-channels {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-channel-row {
  position: relative;
  width: 100%;
}

.sidebar-system-link,
.sidebar-channel-link,
.sidebar-tag-link {
  display: block;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  background: #222;
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-system-link:hover,
.sidebar-channel-link:hover,
.sidebar-tag-link:hover {
  background: #2a2a2a;
  color: #eee;
}

.sidebar-system-link.active,
.sidebar-channel-link.active,
.sidebar-tag-link.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-color);
}

.sidebar-channel-link {
  display: block;
  width: 100%;
  min-width: 0;
}

.sidebar-channel-edit {
  display: none;
  align-items: stretch;
  gap: 0.25rem;
  width: 100%;
}

.sidebar-tag-edit {
  display: none;
  align-items: stretch;
  gap: 0.25rem;
  width: 100%;
}

.sidebar-tag-label {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid #3b3b3b;
  border-radius: 0.5rem;
  background: #222;
  color: #eee;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-channel-name-input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid #3b3b3b;
  border-radius: 0.5rem;
  background: #222;
  color: #eee;
  font: inherit;
  font-size: 0.95rem;
}

.sidebar-save-btn,
.sidebar-order-btn,
.sidebar-delete-btn {
  box-sizing: border-box;
  width: 2.65rem;
  flex: 0 0 2.65rem;
  border: 1px solid #3b3b3b;
  border-radius: 0.5rem;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.sidebar-save-btn {
  background: #1f3a24;
  color: #a8ffbd;
}

.sidebar-order-btn {
  background: #222;
  color: #9ec7ff;
}

.sidebar-delete-btn {
  background: #3b1313;
  color: #fecaca;
}

.sidebar-panel.edit-mode .sidebar-channel-link {
  display: none;
}

.sidebar-panel.edit-mode .sidebar-tag-link {
  display: none;
}

.sidebar-panel.edit-mode .sidebar-channel-edit,
.sidebar-panel.edit-mode .sidebar-tag-edit {
  display: flex;
}

.sidebar-panel.edit-mode .sidebar-order-btn {
  pointer-events: auto;
}

.sidebar-save-btn:hover:not(:disabled) {
  background: #285230;
  color: #fff;
}

.sidebar-order-btn:hover:not(:disabled) {
  background: #2a2a2a;
  color: #fff;
}

.sidebar-save-btn:disabled,
.sidebar-order-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 700px) {
  .sidebar-panel {
    width: min(330px, calc(92vw - 30px));
  }
}

/* 1520px = 320px sidebar + 1200px content */
@media (min-width: 1520px) {
  .feed-layout .nav-inner {
    margin-left: calc(var(--sidebar-width) + var(--wide-layout-gap));
    margin-right: auto;
  }

  .feed-main .sidebar-toggle {
    display: none;
  }

  .sidebar-panel {
    transform: none;
  }

  .feed-main {
    margin-left: calc(var(--sidebar-width) + var(--wide-layout-gap));
    margin-right: auto;
  }

}

@media (pointer: coarse) {
  .sidebar-save-btn,
  .sidebar-order-btn {
    width: 2.6rem;
    flex-basis: 2.6rem;
  }
}

/* ── Cards ───────────────────────────────────────────────────────────────── */

.feed-card-pager {
  display: contents;
}

.cards {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card-bg);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card-channel {
  font-weight: 600;
}

.card-title-text { font-weight: 400; }

.card-meta {
  display: flex;
  gap: 0.75rem;
  color: #eee;
  margin-top: auto;
  margin-bottom: 0.6rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.card-actions .btn {
  flex: 1;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-video {
  background: #2563eb;
  color: #fff;
}

.btn-audio {
  background: #16a34a;
  color: #fff;
}

.btn-pending {
  opacity: 0.6;
  cursor: default;
}

button.btn-video,
button.btn-audio {
  border: 1px dashed #555;
  background: transparent;
  color: #aaa;
}

button.btn-video:hover,
button.btn-audio:hover {
  border-color: #888;
  color: #eee;
}

.feed-pager-controls {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  margin: 0;
  padding: 0.5rem 0 0.5rem 1rem;
  min-height: var(--feed-topbar-height);
  background: transparent;
}

.feed-pager-status,
.feed-pager-message {
  color: #aaa;
  font-size: 0.95rem;
  line-height: var(--feed-control-height);
  white-space: nowrap;
}

.feed-pager-buttons {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.35rem;
}

.feed-pager-nav,
.feed-pager-page {
  height: var(--feed-control-height);
  min-width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border: 1px solid #444;
  border-radius: 0.25rem;
  background: #222;
  color: #ddd;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.feed-pager-nav {
  min-width: var(--feed-control-height);
  padding: 0 0.65rem;
}

.feed-pager-page.active {
  background: var(--sidebar-active-bg);
  border-color: var(--sidebar-active-bg);
  color: var(--sidebar-active-color);
}

.feed-pager-nav:hover:not(:disabled),
.feed-pager-page:hover:not(:disabled) {
  background: #333;
  color: #fff;
}

.feed-pager-nav:disabled,
.feed-pager-page:disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 760px) {
  .feed-main {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .feed-pager-status {
    display: block;
    max-width: 5.75rem;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .feed-pager-controls {
    gap: 0.35rem;
    padding-left: 0.5rem;
  }

  .feed-pager-message {
    display: none;
  }

  .feed-pager-nav,
  .feed-pager-page {
    min-width: 2.25rem;
    padding: 0 0.55rem;
  }

  .feed-pager-nav {
    min-width: 2.25rem;
  }
}

@media (max-width: 520px) {
  .feed-pager-controls {
    gap: 0.25rem;
  }

  .feed-pager-status {
    font-size: 0.72rem;
  }

  .feed-pager-page:not(.active) {
    display: none;
  }

  .feed-pager-nav {
    min-width: 0;
  }
}

.btn-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #2a2a2a;
  color: #ddd;
  border: 2px solid #666;
  border-radius: 0.4rem;
  padding: 0.65rem 1rem;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}
.btn-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.btn-top:hover { color: #fff; border-color: #aaa; background: #333; }

/* ── Nav dropdown / actions ─────────────────────────────────────────────── */

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  color: #7cb8ff;
}

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

.nav-dropdown[open] .nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 340px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 0.4rem;
  padding: 0.75rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-dropdown-link {
  color: #7cb8ff;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-dropdown-link:hover { text-decoration: underline; }

.add-channel {
  margin-bottom: 0;
  position: relative;
}

.add-channel summary {
  cursor: pointer;
  color: #7cb8ff;
  font-size: 0.9rem;
  list-style: none;
}

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

.add-channel[open] .add-channel-panel {
  margin-top: 0.5rem;
  background: #151515;
  border: 1px solid #333;
  border-radius: 0.4rem;
  padding: 0.75rem;
}

@media (max-width: 600px) {
  .nav-dropdown[open] .nav-dropdown-panel {
    position: fixed;
    top: 3.5rem;
    left: 1rem;
    right: 1rem;
    min-width: 0;
  }
}

.add-channel-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.add-channel-form input,
.add-channel-form button {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid #444;
  border-radius: 0.25rem;
  background: #222;
  color: #eee;
  font: inherit;
  font-size: 0.875rem;
  box-sizing: border-box;
}

.add-channel-form button {
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
}

.add-channel-msg {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.add-channel-msg.ok { color: #4ade80; }
.add-channel-msg.warn { color: #fbbf24; }
.add-channel-msg.error { color: #f87171; }

/* ── Admin ───────────────────────────────────────────────────────────────── */

.admin-page {
  --admin-anchor-offset: calc(var(--nav-height) + 3.25rem + 1rem);
}

.admin-page .topbar {
  background: var(--page-bg);
}

.admin-contents {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
  scroll-margin-top: var(--admin-anchor-offset);
}

.admin-contents h2 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.admin-contents ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style-position: inside;
}

.admin-contents li {
  font-size: 0.9rem;
}

.admin-system-status {
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  scroll-margin-top: var(--admin-anchor-offset);
}

.admin-system-status h2 {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  scroll-margin-top: var(--admin-anchor-offset);
}

.admin-system-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  align-items: baseline;
  font-size: 0.9rem;
}

.admin-proxy-status-ok strong {
  color: #86efac;
}

.admin-disk-status-free strong {
  color: #86efac;
}

.admin-disk-status-busy strong,
.admin-disk-status-invalid strong,
.admin-proxy-status-failed strong,
.admin-proxy-status-invalid strong,
.admin-status-error {
  color: #fca5a5;
}

.admin-section {
  margin-bottom: 1.5rem;
  scroll-margin-top: var(--admin-anchor-offset);
}

.admin-section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  scroll-margin-top: var(--admin-anchor-offset);
}

.admin-back-link {
  font-size: 0.82rem;
  font-weight: 400;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #333;
  border-radius: 0.5rem;
}

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

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #2a2a2a;
  vertical-align: top;
  font-size: 0.86rem;
}

.admin-table th {
  background: #181818;
  color: #ddd;
  position: sticky;
  top: 0;
}

.admin-actions-cell {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.admin-inline-form {
  min-width: 18rem;
}

.admin-inline-form input {
  width: 100%;
  min-width: 0;
  padding: 0.3rem 0.45rem;
  border: 1px solid #444;
  border-radius: 0.25rem;
  background: #222;
  color: #eee;
  font: inherit;
  font-size: 0.86rem;
}

.admin-btn {
  padding: 0.25rem 0.6rem;
  background: #2a2a2a;
  color: #d7d7d7;
  border: 1px solid #444;
}

.admin-btn:hover {
  background: #353535;
}

.admin-btn-danger {
  border-color: #7f1d1d;
  color: #fecaca;
  background: #3b1313;
}

.admin-btn-danger:hover {
  background: #4b1818;
}

/* ── Player ──────────────────────────────────────────────────────────────── */

.player {
  max-width: 900px;
  margin: 0 auto;
}

.player video {
  min-height: 65vh;
  max-height: 80vh;
  width: 100%;
  border-radius: 0.5rem;
  background: #000;
}

.player audio {
  width: 100%;
  margin-top: 1rem;
}

.player-thumb {
  display: block;
  margin: 0 auto;
  border-radius: 0.5rem;
}


.player-seek {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "back controls rate";
  align-items: center;
  gap: 1rem;
  margin: 1.25rem auto 0;
  width: 100%;
  max-width: 100%;
}

.player-seek-main {
  display: flex;
  grid-area: controls;
  justify-content: center;
  gap: 1rem;
}

.player-seek button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.4rem clamp(0.3rem, 2.5vw, 1rem);
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 0.4rem;
  cursor: pointer;
  font: inherit;
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  font-weight: 700;
  white-space: nowrap;
}

.player-seek .player-playpause {
  flex-shrink: 0;
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  padding: 0.4rem 0;
  width: clamp(3.5rem, 10vw, 5rem);
  text-align: center;
}

.player-play-icon {
  display: none;
  width: 1.45rem;
  height: 1.45rem;
  color: #d8e3f8;
}

.player-playpause.is-paused .player-play-icon-play,
.player-playpause:not(.is-paused) .player-play-icon-pause {
  display: block;
}

.player-seek button:hover {
  background: #333;
  border-color: #888;
}

.player-back {
  grid-area: back;
  justify-self: start;
  min-width: clamp(4.5rem, 12vw, 6rem);
}

.player-rate {
  grid-area: rate;
  justify-self: end;
  width: 3.6rem;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

@media (max-width: 760px) {
  .player-seek {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "controls controls"
      "back rate";
  }

  .player-seek-main {
    justify-self: center;
    gap: 0.75rem;
  }

  .player-back {
    justify-self: start;
  }

  .player-rate {
    justify-self: end;
    width: 3.4rem;
  }
}

.player-title { margin: 1rem 0 0.75rem; }
.player-channel {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.player-title-text {
  font-size: 1.25rem;
  font-weight: 400;
  color: #eee;
}

.player-chapters {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.player-chapter {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #383838;
  border-radius: 0.4rem;
  background: #191919;
  color: #eee;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.player-chapter.is-active {
  border-color: #7fa7ea;
  background: #202a3a;
}

.player-chapter-time {
  color: #9fb3d9;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player-chapter-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .player-chapter {
    grid-template-columns: 3.75rem minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.5rem 0.6rem;
  }
}

/* ── Auth forms ──────────────────────────────────────────────────────────── */

.auth-form {
  max-width: 360px;
  margin: 3rem auto;
}

.auth-form h1 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.auth-form label {
  display: block;
  margin-bottom: 1rem;
}

.auth-form input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem;
  border: 1px solid #444;
  border-radius: 0.25rem;
  background: #222;
  color: #eee;
  font: inherit;
}

.auth-form button {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.5rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font: inherit;
}

.auth-form .error {
  color: #f87171;
  margin-bottom: 1rem;
}

.auth-form .link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
