body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1rem;
  background-color: #fdfdfd;
  color: #111;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}
p {
  margin: 1rem 0;
}
.app-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 220px;
  background: #fafafa;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}
.sidebar-header {
  padding: 1.5rem 1rem 1rem;
}
.sidebar-header h1 {
  margin: 0;
  font-size: 1.25rem;
}
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem;
  color: #333;
  text-decoration: none;
  transition: background 0.15s ease;
}
.sidebar-nav a:hover {
  background: #eee;
}
.sidebar-boards {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
  border-top: 1px solid #e0e0e0;
}
.navhr {
    border-top: 1px solid #e0e0e0;

}
.sidebar-section-title {
  padding: 0.5rem 1rem;
  padding-top: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.05em;
}
.sidebar-boards a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  font-size: 0.9em;
  transition: background 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-boards a:hover {
  background: #eee;
}
.sidebar-utils {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e0e0e0;
}
.sidebar-utils a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-utils a:hover {
  background: #eee;
  color: #333;
}
.sidebar-footer {
  padding: 1rem;
  font-size: 0.75rem;
  color: #888;
  border-top: 1px solid #e0e0e0;
}
.main-content {
  flex: 1;
  margin-left: 220px;
  padding: 1.5rem 2rem;
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
  }
  .sidebar-nav a {
    padding: 0.5rem 0.75rem;
  }
  .sidebar-footer {
    display: none;
  }
  .app-layout {
    flex-direction: column;
  }
  .main-content {
    margin-left: 0;
    padding: 1rem;
  }
}
.gallery {
  column-width: 360px;
  column-gap: 0;
  width: 100%;
}




.gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.gallery figure:hover img {
  transform: scale(1.05);
}
.gallery figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery figure:hover figcaption {
  opacity: 1;
}
.gallery figcaption button {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
}
.gallery figcaption button:hover {
  background: #fff;
}
.gallery figure.liked {
  opacity: 0.5;
  pointer-events: none;
}
.gallery figure.liked::after {
  content: "♥";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #e74c3c;
}
.gallery figure.skipped {
  opacity: 0.3;
  pointer-events: none;
}
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccc;
}

tbody td {
  padding: 8px 0;
  font-size: 0.9em;
}

tbody tr:not(:last-child) {
  border-bottom: 1px solid #eee;
}

tbody tr:hover {
  background-color: #f9f9f9;
}

td:last-child {
  text-align: right;
}

.sidebar-upload-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem;
  color: #333;
  background: none;
  border: none;
  text-decoration: none;
  transition: background 0.15s ease;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  text-align: left;
}
.sidebar-upload-btn:hover {
  background: #eee;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e0e0e0;
}
.modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
}
.modal-close:hover {
  color: #333;
}
.modal-body {
  padding: 1.25rem;
}
.modal-body label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #555;
}
.modal-body select {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.modal-body select:focus {
  outline: none;
  border-color: #0066cc;
}

.board-visibility {
  align-items: center;
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  gap: 3px;
}

.create-board-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.create-board-form div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.create-board-form label {
  font-size: 0.85rem;
  color: #555;
}
.create-board-form input,
.create-board-form select {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.inline-form {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.actions-cell {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.gallery figure {
  break-inside: avoid;
  margin: 0 1.2% 16px;
  border-radius: 12px;
  overflow: hidden;
}

.download-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0066cc;
  color: #fff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
}
.download-btn:hover {
  background: #0055aa;
}
.photo-detail-image {
  position: relative;
}


.photo-tags-preview {
  position: absolute;
  bottom: 6px;
  left: 6px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.photo-tags-preview span {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.photo-modal-content {
  max-width: 600px;
}
.photo-modal-content img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: #f0f0f0;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.photo-modal-content textarea,
.photo-modal-content input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}
.photo-modal-content textarea:focus,
.photo-modal-content input[type="text"]:focus {
  outline: none;
  border-color: #0066cc;
}
.photo-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.photo-modal-actions button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.photo-modal-actions button[type="submit"] {
  background: #1e66f5;
  color: #fff;
}
.photo-modal-actions button[type="submit"]:hover {
  background: #0055aa;
}
.btn-danger {
  background: #d20f39;
  color: #fff;
}
.btn-danger:hover {
  background: #c82333;
}

.discover-photo-info {
  margin-bottom: 1rem;
}
.discover-photo-info p {
  margin: 0 0 0.5rem;
  color: #333;
}
.discover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.discover-tag {
  background: #e0e0e0;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #555;
}
.no-tags {
  color: #999;
  font-size: 0.85rem;
}
.discover-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.discover-actions button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-like {
  background: #fee2e2;
  color: #dc2626;
}
.btn-like:hover {
  background: #fecaca;
}
.btn-skip {
  background: #e5e5e5;
  color: #666;
}
.btn-skip:hover {
  background: #d4d4d4;
}
.discover-save {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}
.discover-save label {
  font-size: 0.85rem;
  color: #555;
  white-space: nowrap;
}
.discover-save select {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.discover-save button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}
.discover-save button:hover {
  background: #0055aa;
}

.discover-search {
  margin-bottom: 1.5rem;
}
.search-form {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}
.search-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
}
.search-input-wrapper .material-symbols-outlined {
  color: #888;
}
.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.color-picker-wrapper label {
  font-size: 0.85rem;
  color: #555;
}
.color-picker-wrapper input[type="color"] {
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  padding: 2px;
}
.clear-color {
  font-size: 0.8rem;
  color: #666;
}
.search-form button {
  padding: 0.5rem 1.25rem;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
.search-form button:hover {
  background: #0055aa;
}
.search-results-info {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #666;
}
.color-indicator {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  vertical-align: middle;
  border: 1px solid #ccc;
}

.photo-detail-page {
  max-width: 1200px;
  margin: 0 auto;
}
.photo-detail-nav {
  margin-bottom: 1rem;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0066cc;
  text-decoration: none;
  font-size: 0.95rem;
}
.back-btn:hover {
  text-decoration: underline;
}
.photo-detail-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}
@media (max-width: 800px) {
  .photo-detail-content {
    grid-template-columns: 1fr;
  }
}
.photo-detail-image {
  /*background: #f0f0f0;*/
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-detail-image img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
.photo-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.photo-detail-section h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}
.photo-detail-section p {
  margin: 0;
  color: #333;
}
.photo-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.photo-detail-tag {
  background: #e0e0e0;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.85rem;
  color: #333;
  text-decoration: none;
}
.photo-detail-tag:hover {
  background: #d0d0d0;
}
.photo-detail-colors {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.color-swatch:hover {
  transform: scale(1.1);
}
.photo-meta {
  font-size: 0.9rem;
  color: #666;
}
.photo-detail-actions {
  display: flex;
  gap: 0.75rem;
}
.btn-like-large,
.btn-skip-large {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-like-large {
  background: #fee2e2;
  color: #dc2626;
}
.btn-like-large:hover,
.btn-like-large.active {
  background: #fecaca;
}
.btn-skip-large {
  background: #e5e5e5;
  color: #666;
}
.btn-skip-large:hover {
  background: #d4d4d4;
}
.photo-detail-save {
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
}
.photo-detail-save label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.5rem;
}
.save-controls {
  display: flex;
  gap: 0.5rem;
}
.save-controls select {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.save-controls button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}
.save-controls button:hover {
  background: #0055aa;
}
.photo-detail-login {
  padding: 1rem;
  background: #f0f0f0;
  border-radius: 8px;
  text-align: center;
}
.photo-detail-login p {
  margin: 0;
  color: #666;
}

.hidden {
  display: none !important;
}

.bulk-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.bulk-toolbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.selected-count {
  font-size: 0.9rem;
  color: #666;
}
.bulk-toolbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.btn-bulk {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #333;
  transition: background 0.15s ease;
}
.btn-bulk:hover {
  background: #e5e5e5;
}
.btn-bulk-danger {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}
.btn-bulk-danger:hover {
  background: #fecaca;
}
.btn-bulk-cancel {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: #666;
}
.btn-bulk-cancel:hover {
  color: #333;
}
.btn-select-all {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
.btn-select-all:hover {
  background: #0055aa;
}
.btn-select-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #666;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.btn-select-mode:hover {
  background: #f5f5f5;
  color: #333;
}
.photo-checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
}
.photo-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #0066cc;
}
.gallery figure {
  position: relative;
}
.gallery figure.selected {
  outline: 3px solid #0066cc;
  outline-offset: -3px;
}
.gallery figure.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 102, 204, 0.15);
  pointer-events: none;
}

.discover-image-search-btn, .image-search-btn {
  margin-top: 1%;
}

.settings-page {
  max-width: 600px;
}
.settings-page h1 {
  margin: 0 0 1.5rem;
}
.settings-section {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.settings-section h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}
.settings-avatar-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.settings-avatar-preview {
  flex-shrink: 0;
}
.avatar-current {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}
.avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}
.avatar-placeholder .material-symbols-outlined {
  font-size: 2.5rem !important;
}
.avatar-large .material-symbols-outlined {
  font-size: 4rem !important;
}
.settings-avatar-upload {
  flex: 1;
}
.settings-avatar-upload label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.settings-avatar-upload input[type="file"] {
  margin-top: 0.5rem;
}
.settings-field {
  margin-bottom: 1.25rem;
}
.settings-field:last-child {
  margin-bottom: 0;
}
.settings-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}
.settings-field input[type="text"],
.settings-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  box-sizing: border-box;
}
.settings-field input[type="text"]:focus,
.settings-field textarea:focus {
  outline: none;
  border-color: #0066cc;
}
.settings-field textarea {
  resize: vertical;
  min-height: 80px;
}
.settings-input-prefix {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.settings-input-prefix span {
  padding: 0.6rem 0.75rem;
  background: #f0f0f0;
  color: #666;
  border-right: 1px solid #ccc;
}
.settings-input-prefix input {
  flex: 1;
  border: none;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
}
.settings-input-prefix input:focus {
  outline: none;
}
.settings-hint {
  font-size: 0.8rem;
  color: #888;
  margin: 0.35rem 0 0;
}
.settings-toggle label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.settings-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0066cc;
}
.toggle-label {
  font-weight: 500;
}
.settings-actions {
  margin-top: 0.5rem;
}
.settings-actions button {
  padding: 0.75rem 1.5rem;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
.settings-actions button:hover {
  background: #0055aa;
}
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.alert-error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}
.alert-success {
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #86efac;
}

.profile-page {
  max-width: 900px;
}
.profile-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}
.profile-avatar img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e0e0e0;
}
.profile-avatar .avatar-large {
  width: 128px;
  height: 128px;
}
.profile-info {
  flex: 1;
}
.profile-name {
  font-size: 1.75rem;
  margin: 0 0 0.25rem;
}
.profile-username {
  font-size: 1rem;
  color: #666;
  margin: 0 0 0.5rem;
}
.profile-pronouns {
  font-size: 0.9rem;
  color: #888;
  margin: 0 0 0.75rem;
}
.profile-bio {
  font-size: 1rem;
  color: #333;
  margin: 0;
  white-space: pre-wrap;
}
.profile-boards h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.board-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.board-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.board-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1;
  background: #e0e0e0;
}
.board-preview-thumb {
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
}
.board-preview-empty {
  background: #e8e8e8;
}
.board-preview-empty-full {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  color: #aaa;
}
.board-preview-empty-full .material-symbols-outlined {
  font-size: 3rem !important;
}
.board-card-info {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.board-card-name {
  font-weight: 500;
  font-size: 0.95rem;
}
.board-card-count {
  font-size: 0.8rem;
  color: #888;
}
.no-content {
  color: #888;
  font-size: 0.95rem;
}
@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .settings-avatar-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .board-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
