.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.user-chip strong {
  max-width: 180px;
  overflow: hidden;
  color: var(--text);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-view {
  display: grid;
  min-height: calc(100vh - 62px);
  padding: 42px 20px 72px;
  place-items: center;
}

.auth-card {
  width: min(430px, 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-card-header {
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--border);
}

.auth-card-header h1 {
  font-size: 24px;
}

.auth-card-header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  margin: 22px 28px 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-soft);
}

.auth-tab {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 650;
}

.auth-tab.active {
  color: var(--accent-strong);
  background: var(--surface);
  box-shadow: 0 2px 7px rgba(22, 35, 43, 0.08);
}

.auth-form {
  display: grid;
  gap: 16px;
  padding: 22px 28px 28px;
}

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

.auth-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.auth-field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  color: var(--text);
  background: var(--surface);
  outline: none;
}

.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-error {
  display: none;
  padding: 9px 11px;
  border-radius: 5px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 12px;
}

.auth-error.visible {
  display: block;
}

.auth-submit {
  width: 100%;
  min-height: 42px;
}

.thumbnail-share {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.thumbnail-share img {
  width: 100%;
  max-height: 210px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-soft);
  object-fit: contain;
}

.thumbnail-share-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.thumbnail-share-content strong {
  font-size: 13px;
}

@media (max-width: 760px) {
  .topbar-actions {
    gap: 8px;
  }

  .user-chip strong {
    max-width: 100px;
  }

  .auth-view {
    padding-right: 12px;
    padding-left: 12px;
  }

  .thumbnail-share {
    grid-template-columns: 1fr;
  }
}
