body.vibe-shares-page,
body.vibe-share-detail-page,
body.vibe-snapshot-page {
  background: #f6f8fb;
  color: #172033;
}

.vibe-share-detail-page [hidden] {
  display: none !important;
}

.vibe-share-board,
.vibe-share-detail,
.vibe-snapshot-viewer {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.vibe-share-board-header,
.vibe-share-detail-header,
.vibe-snapshot-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.vibe-share-eyebrow,
.vibe-share-meta,
.vibe-snapshot-meta {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vibe-share-board h1,
.vibe-share-detail h1,
.vibe-snapshot-viewer h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.vibe-share-sort {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
}

.vibe-share-sort-btn,
.vibe-share-like,
.vibe-share-title-form button,
.vibe-share-comment-form button,
.vibe-share-card-like,
.vibe-share-card-open,
.vibe-share-card-menu summary,
.vibe-share-card-menu-panel button,
.vibe-share-edit-actions button,
.vibe-snapshot-restore,
.vibe-snapshot-share,
.vibe-snapshot-open-project {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #d0dae8;
  border-radius: 8px;
  background: #fff;
  color: #26364f;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.vibe-share-sort-btn.is-active,
.vibe-share-like.is-liked,
.vibe-share-card-like.is-liked,
.vibe-snapshot-share {
  border-color: #7dd3fc;
  background: #e0f2fe;
  color: #075985;
}

.vibe-snapshot-restore {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}

.vibe-snapshot-restore:hover:not(:disabled) {
  border-color: #86efac;
  background: #bbf7d0;
}

.vibe-share-status {
  margin: 12px 0 18px;
  color: #64748b;
}

.vibe-share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.vibe-share-card {
  overflow: visible;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.vibe-share-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 7px 7px 0 0;
}

.vibe-share-card-body {
  padding: 13px 14px 15px;
}

.vibe-share-card-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  margin-bottom: 7px;
}

.vibe-share-card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.32;
}

.vibe-share-card-menu {
  position: relative;
  z-index: 2;
}

.vibe-share-card-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  padding: 0;
  list-style: none;
}

.vibe-share-card-menu summary::-webkit-details-marker {
  display: none;
}

.vibe-share-card-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 128px;
  padding: 6px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.vibe-share-card-menu-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 32px;
  border: 0;
  background: transparent;
  text-align: left;
}

.vibe-share-card-menu-panel button:hover {
  background: #f1f5f9;
}

.vibe-share-card-menu-panel button.is-danger {
  color: #b91c1c;
}

.vibe-share-card-menu-panel button:disabled {
  color: #94a3b8;
  cursor: default;
}

.vibe-share-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 0.82rem;
}

.vibe-share-card-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 800;
}

.vibe-share-card-actions {
  display: flex;
  gap: 8px;
}

.vibe-share-card-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.vibe-share-empty {
  grid-column: 1 / -1;
  padding: 42px 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  text-align: center;
  background: #fff;
}

.vibe-share-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.vibe-share-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vibe-share-back {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.vibe-share-title-form {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: min(420px, 100%);
}

.vibe-share-title-form input,
.vibe-share-comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.vibe-share-title-form input {
  min-height: 38px;
  padding: 0 12px;
}

.vibe-share-title-form button {
  flex: 0 0 auto;
  min-width: 58px;
}

.vibe-share-edit-dialog {
  width: min(420px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.vibe-share-edit-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.vibe-share-edit-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  color: #172033;
}

.vibe-share-edit-panel h2 {
  margin: 0;
  font-size: 1.08rem;
}

.vibe-share-edit-panel input {
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.vibe-share-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.vibe-share-edit-save {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.vibe-share-player,
.vibe-snapshot-player {
  overflow: hidden;
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.vibe-share-preview {
  position: relative;
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #e2e8f0;
}

.vibe-share-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0);
  transition: background 0.18s ease;
  pointer-events: none;
}

.vibe-share-preview[aria-disabled="true"] {
  pointer-events: none;
}

.vibe-share-preview:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}

.vibe-share-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: contain;
  background: #e2e8f0;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.vibe-share-preview-open {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.34);
  transform: translate(-50%, -50%);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(3px);
}

.vibe-share-preview-open::before {
  content: "";
  display: block;
  margin-left: 6px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #fff;
}

.vibe-share-preview:hover::after,
.vibe-share-preview:focus-visible::after {
  background: rgba(15, 23, 42, 0.18);
}

.vibe-share-preview:hover img,
.vibe-share-preview:focus-visible img {
  filter: brightness(0.9);
  transform: scale(1.012);
}

.vibe-share-preview:hover .vibe-share-preview-open,
.vibe-share-preview:focus-visible .vibe-share-preview-open {
  background: #f97316;
  box-shadow: 0 20px 46px rgba(249, 115, 22, 0.34);
  transform: translate(-50%, -50%) scale(1.06);
}

.vibe-snapshot-player iframe {
  display: block;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 460px;
  border: 0;
  background: #fff;
}

.vibe-share-comments {
  margin-top: 20px;
}

.vibe-share-comments-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.vibe-share-comments-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.vibe-share-comment-form {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.vibe-share-comment-form textarea {
  min-height: 82px;
  padding: 10px 12px;
  resize: vertical;
}

.vibe-share-comment-form button {
  justify-self: end;
  background: #0f172a;
  color: #fff;
}

.vibe-share-comment-login-notice {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.94rem;
}

.vibe-share-comments-list {
  display: grid;
  gap: 10px;
}

.vibe-share-comment {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.vibe-share-comment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 0.82rem;
}

.vibe-share-comment-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

.vibe-snapshot-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.vibe-snapshot-open-project {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

html[data-theme="dark"] body.vibe-shares-page,
html[data-theme="dark"] body.vibe-share-detail-page,
html[data-theme="dark"] body.vibe-snapshot-page {
  background: #0f172a;
  color: #e5e7eb;
}

html[data-theme="dark"] .vibe-share-card,
html[data-theme="dark"] .vibe-share-empty,
html[data-theme="dark"] .vibe-share-sort,
html[data-theme="dark"] .vibe-share-player,
html[data-theme="dark"] .vibe-snapshot-player,
html[data-theme="dark"] .vibe-share-comment-login-notice,
html[data-theme="dark"] .vibe-share-comment {
  border-color: #273449;
  background: #111827;
  box-shadow: none;
}

html[data-theme="dark"] .vibe-share-eyebrow,
html[data-theme="dark"] .vibe-share-meta,
html[data-theme="dark"] .vibe-snapshot-meta,
html[data-theme="dark"] .vibe-share-status,
html[data-theme="dark"] .vibe-share-card-meta,
html[data-theme="dark"] .vibe-share-comment-head {
  color: #94a3b8;
}

html[data-theme="dark"] .vibe-share-sort-btn,
html[data-theme="dark"] .vibe-share-like,
html[data-theme="dark"] .vibe-share-title-form button,
html[data-theme="dark"] .vibe-share-card-like,
html[data-theme="dark"] .vibe-share-card-open,
html[data-theme="dark"] .vibe-share-card-menu summary,
html[data-theme="dark"] .vibe-share-card-menu-panel button,
html[data-theme="dark"] .vibe-share-edit-actions button,
html[data-theme="dark"] .vibe-snapshot-restore,
html[data-theme="dark"] .vibe-snapshot-share,
html[data-theme="dark"] .vibe-snapshot-open-project {
  border-color: #334155;
  background: #1f2937;
  color: #e5e7eb;
}

html[data-theme="dark"] .vibe-snapshot-restore {
  border-color: #166534;
  background: #052e16;
  color: #bbf7d0;
}

html[data-theme="dark"] .vibe-share-preview,
html[data-theme="dark"] .vibe-share-preview img {
  background: #0f172a;
}

@media (max-width: 520px) {
  .vibe-share-preview-open {
    width: 62px;
    height: 62px;
  }

  .vibe-share-preview-open::before {
    margin-left: 5px;
    border-top-width: 14px;
    border-bottom-width: 14px;
    border-left-width: 22px;
  }
}

html[data-theme="dark"] .vibe-snapshot-restore:hover:not(:disabled) {
  border-color: #22c55e;
  background: #064e3b;
}

html[data-theme="dark"] .vibe-share-card-menu-panel,
html[data-theme="dark"] .vibe-share-edit-panel {
  border-color: #273449;
  background: #111827;
  color: #e5e7eb;
}

html[data-theme="dark"] .vibe-share-card-menu-panel button:hover {
  background: #1f2937;
}

html[data-theme="dark"] .vibe-share-card-menu-panel button.is-danger {
  color: #fca5a5;
}

html[data-theme="dark"] .vibe-share-card-badge {
  background: #431407;
  color: #fdba74;
}

html[data-theme="dark"] .vibe-share-edit-save {
  border-color: #e5e7eb;
  background: #e5e7eb;
  color: #0f172a;
}

html[data-theme="dark"] .vibe-share-title-form input,
html[data-theme="dark"] .vibe-share-comment-form textarea,
html[data-theme="dark"] .vibe-share-edit-panel input {
  border-color: #334155;
  background: #0b1220;
  color: #e5e7eb;
}

@media (max-width: 720px) {
  .vibe-share-board,
  .vibe-share-detail,
  .vibe-snapshot-viewer {
    width: min(100vw - 20px, 1180px);
    padding-top: 18px;
  }

  .vibe-share-board-header,
  .vibe-share-detail-header,
  .vibe-snapshot-header {
    display: grid;
    align-items: start;
  }

  .vibe-share-title-form {
    min-width: 0;
  }

  .vibe-snapshot-player iframe {
    height: 68vh;
    min-height: 360px;
  }
}
