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

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  background: var(--surface-soft);
  padding: 4px 10px 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

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

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

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

.auth-card-header {
  padding: 28px 28px 16px;
  text-align: center;
}

.auth-card-header h1 {
  font-size: 20px;
  font-weight: 700;
}

.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: 12px 28px 0;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.auth-tab {
  min-height: 34px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.15s ease;
}

.auth-tab.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

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

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

.auth-field input {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: all 0.15s ease;
}

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

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

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

.auth-submit {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
}

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

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

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