/* ── Landing Header Actions ─────────────────────── */

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-actions[hidden],
.header-user[hidden] {
  display: none !important;
}

.header-login,
.header-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-high);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.header-login {
  padding: 0;
  background: transparent;
  border: none;
}

.header-login:hover {
  color: var(--text-primary);
}

.header-signup {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 9999px;
}

.header-signup:hover {
  background: rgba(229, 229, 229, 0.22);
  border-color: rgba(229, 229, 229, 0.45);
  color: var(--text-primary);
}

.header-signup:active {
  background: rgba(229, 229, 229, 0.3);
  border-color: rgba(229, 229, 229, 0.55);
  color: var(--text-primary);
}

.header-login:focus-visible,
.header-signup:focus-visible {
  outline: 2px solid rgba(229, 229, 229, 0.45);
  outline-offset: 2px;
}

.btn-submit,
.home-share-copy-btn,
.profile-save-btn,
.preview-close-btn,
.pv-btn,
.pv-btn-present,
.pv-dropdown-item,
.header-login,
.pv-mobile-present {
  font-family: inherit;
  font-size: 1.0rem;
  line-height: 1.2;
}

/* ── Home Page (Authenticated) ──────────────────── */

.home-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 24px auto 0;
  padding: 16px 16px 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Authenticated header user section */
.header-user {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.header-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  padding: 0;
  transition: border-color 0.2s;
}

.header-avatar-btn:hover {
  border-color: var(--text-low);
}

.header-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease-in;
}

.header-avatar-btn img.loaded {
  opacity: 1;
}

.header-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #111A22;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 8px;
  z-index: 100;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.header-user-menu.open {
  display: block;
}

.header-menu-user {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.header-menu-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.header-menu-email {
  font-size: 0.75rem;
  color: var(--text-medium);
  margin-top: 2px;
}

.header-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.header-menu-item:hover {
  background: rgba(229, 229, 229, 0.1);
  color: var(--text-primary);
}

.header-menu-divider {
  height: 1px;
  background: rgba(229, 229, 229, 0.1);
  margin: 4px 0;
}

/* Profile header card */
.home-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.home-profile-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 32px;
}

.home-profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  position: relative;
}

.home-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease-in;
}

.home-profile-avatar img.loaded {
  opacity: 1;
}

@keyframes avatar-spin {
  to { transform: rotate(360deg); }
}

.home-profile-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-profile-name {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.1;
}

.home-profile-bio {
  font-size: 1rem;
  color: var(--text-high);
  max-width: 28rem;
  line-height: 1.6;
}

.home-profile-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 32px;
  background: rgba(11, 18, 21, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  flex-shrink: 0;
}

.home-profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
}

.home-profile-stat-value {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
}

.home-profile-stat-label {
  font-weight: 500;
  color: var(--text-high);
  text-align: center;
}

.home-profile-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Presentations section */
.home-pres-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
}

.home-section-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.home-pres-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 16px;
}

.home-pres-grid:not([hidden]) {
  display: grid;
}

.home-pres-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-pres-open-wrap {
  position: relative;
}

.home-pres-open-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.home-pres-open-link:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 4px;
  border-radius: 20px;
}

.home-pres-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s, border-color 0.2s;
}

.home-pres-thumb .thumb-no-image-placeholder {
  position: absolute;
  inset: 0;
}

.home-pres-thumb.thumb-no-image::before,
.home-pres-thumb .thumb-no-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.15)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40%;
}

.home-pres-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.home-pres-open-link:hover .home-pres-thumb img {
  transform: scale(1.02);
}

.home-pres-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.5s;
  pointer-events: none;
}

.home-pres-open-link:hover .home-pres-thumb-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.home-pres-lock-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-pres-lock-btn:hover,
.home-pres-lock-btn:active,
.home-pres-lock-btn:focus-visible {
  background: rgba(17, 24, 39, 0.82);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.home-pres-lock-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.home-pres-lock-btn svg {
  display: block;
}

.home-pres-create-card {
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  gap: 0;
  align-self: start;
}

.home-pres-create-card:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 4px;
}

.home-pres-create-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.15), rgba(255, 255, 255, 0.04));
  border: 1px dashed rgba(255, 255, 255, 0.16);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.home-pres-create-card:hover .home-pres-create-thumb {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.22), rgba(255, 255, 255, 0.06));
  border-color: rgba(59, 130, 246, 0.55);
}

.home-pres-create-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.home-pres-create-card:hover .home-pres-create-icon {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-low);
}

.home-pres-create-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.home-pres-create-label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-high);
  text-align: center;
  transition: color 0.2s, transform 0.2s;
}

.home-pres-create-card:hover .home-pres-create-label {
  color: var(--text-primary);
  transform: translateY(-1px);
}


.home-pres-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 4px;
  min-width: 0;
}

.home-modal-thumb-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.home-modal-thumb-preview[hidden] {
  display: none;
}

.home-modal-thumb-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.thumb-change-link {
  background: none;
  border: none;
  color: var(--text-high);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.thumb-change-link:hover {
  color: var(--text-primary);
}

.thumb-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: var(--text-medium);
  gap: 8px;
}

.thumb-spinner[hidden] {
  display: none;
}

.thumb-spinner-ring {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: avatar-spin 0.7s linear infinite;
}

.home-pres-title {
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
  min-width: 0;
}

.home-pres-open-link:hover .home-pres-title,
.home-pres-open-link:focus-visible .home-pres-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-pres-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-pres-meta-text {
  font-size: 0.75rem;
  color: var(--text-medium);
}

.home-pres-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-pres-results-link {
  flex: none;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-high);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, transform 0.15s, text-decoration-color 0.15s;
}

.home-pres-results-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-pres-results-link svg {
  flex-shrink: 0;
}

/* Three-dot menu */
.home-pres-menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.home-btn-menu {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-high);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s, background 0.2s, border-color 0.2s;
}

.home-btn-menu:hover,
.home-btn-menu.is-open {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.home-btn-menu:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.home-btn-menu svg {
  display: block;
}

.home-pres-menu-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 192px;
  background: #111A22;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 30;
  padding: 8px;
  overflow: hidden;
}

.home-pres-menu-dropdown[hidden] {
  display: none;
}

.home-pres-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--text-high);
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
  font: inherit;
}

.home-pres-menu-item:hover {
  background: rgba(229, 229, 229, 0.1);
  color: var(--text-primary);
}

.home-pres-menu-item.home-menu-share,
.home-pres-menu-item.home-menu-rename {
  color: var(--text-primary);
}

.home-pres-menu-item.home-menu-delete {
  color: #f87171;
}

/* Create presentation modal */
.home-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.home-modal-overlay.open {
  display: flex;
}

.home-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-modal {
  position: relative;
  width: 100%;
  max-width: 512px;
  background: #111A22;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  padding: 28px 24px 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.home-modal-form {
  flex-direction: column;
  gap: 24px;
}

.home-modal-form:not([hidden]) {
  display: flex;
}

.home-modal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-modal-label {
  text-align: left;
  margin-left: 4px;
  font-weight: 500;
}

.home-modal-input,
.home-modal-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

.home-modal-input::placeholder,
.home-modal-textarea::placeholder {
  color: var(--text-low);
}

.home-modal-input:focus,
.home-modal-textarea:focus {
  border-color: #3b82f6;
  box-shadow: none;
}

/* Drop zone */
.home-modal-dropzone {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.home-modal-dropzone:not([hidden]) {
  display: flex;
}

.home-modal-dropzone:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
}

.home-modal-dropzone:hover {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
}

.home-modal-dropzone.drag-over {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
}

.home-modal-dropzone svg {
  color: var(--text-medium);
}

.dropzone-text {
  color: var(--text-medium);
}

.dropzone-hint {
  font-size: 0.75rem;
  color: var(--text-low);
}

.dropzone-file {
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.dropzone-file:not([hidden]) {
  display: flex;
}

.dropzone-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone-file-size {
  font-size: 0.75rem;
  color: var(--text-medium);
  white-space: nowrap;
}

.dropzone-file-remove {
  background: none;
  border: none;
  color: var(--text-medium);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}

.dropzone-file-remove:hover {
  color: #ef4444;
}

/* Modal error */
.home-modal-error {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: #ef4444;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 5px;
}

/* Modal progress bar */
.home-modal-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.home-modal-progress-bar {
  height: 100%;
  width: 0%;
  background: #3b82f6;
  border-radius: 999px;
  transition: width 0.2s;
}

/* Success state */
.home-modal-success {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 8px 0 0;
}

.home-modal-success:not([hidden]) {
  display: flex;
}

.success-icon {
  margin-bottom: 4px;
}

.success-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.success-code-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-medium);
}

.success-code {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #6366f1;
  font-family: "SF Mono", "Fira Code", monospace;
}

.success-link-row {
  display: flex;
  width: 100%;
  gap: 8px;
}

.success-link {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-medium);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
  box-sizing: border-box;
}

.success-link:focus {
  border-color: #3b82f6;
  box-shadow: none;
}

.success-copy-btn {
  padding: 12px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-high);
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.success-copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #3b82f6;
}

.success-done-btn {
  margin-top: 8px;
  width: 100%;
}

.home-share-header {
  justify-content: space-between;
}

/* Privacy toggle row */
.home-share-privacy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.home-share-privacy-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-share-privacy-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  flex-shrink: 0;
}

.home-share-privacy-icon.is-private {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.home-share-privacy-icon .share-icon-globe { display: block; }
.home-share-privacy-icon .share-icon-lock  { display: none;  }
.home-share-privacy-icon.is-private .share-icon-globe { display: none;  }
.home-share-privacy-icon.is-private .share-icon-lock  { display: block; }

.home-share-privacy-label {
  font-size: 1.25rem;
  font-weight: 500;
}

/* Toggle button */
.home-share-toggle {
  position: relative;
  width: 60px;
  height: 34px;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.4s;
}

.home-share-toggle.is-on {
  background: #10b981;
}

.home-share-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-share-toggle.is-on .home-share-toggle-thumb {
  transform: translateX(26px);
}

/* Description */
.home-share-desc {
  line-height: 1.6;
  padding: 0 8px;
  margin-bottom: 20px;
  color: var(--text-high);
}

.home-share-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: var(--text-high);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-share-close svg {
  display: block;
  flex-shrink: 0;
}

.home-share-close:hover,
.home-share-close:active,
.home-share-close:focus-visible {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  color: var(--text-primary);
}

.home-share-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s;
}

.home-share-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.home-share-modal .home-share-card {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.home-share-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-share-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-high);
}

.home-share-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-share-code {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.home-share-link {
  font-size: 1.0rem;
}

.home-share-copy-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-medium);
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.home-share-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.home-share-copy-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

.home-share-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

/* Delete confirmation modal */
.home-delete-modal {
  max-width: 450px;
}

.home-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.home-delete-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ef4444;
}

.home-delete-message {
  line-height: 1.6;
  margin-bottom: 32px;
}

.home-delete-message span {
  font-weight: 600;
}

.home-delete-submit {
  background: #ef4444 !important;
  color: #fff !important;
}

.home-delete-submit:hover {
  background: #dc2626 !important;
}

.home-delete-submit:active {
  background: #b91c1c !important;
}

@media (min-width: 641px) {
  .home-delete-buttons {
    flex-direction: row;
    gap: 16px;
  }
}

/* Toast notification */
.home-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e1e2a;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
}

.home-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Home page responsive */
@media (min-width: 641px) {
  .home-container {
    padding: 16px 24px 96px;
  }
}

@media (min-width: 1025px) {
  .home-container {
    padding: 16px 32px 96px;
  }
}

@media (max-width: 1024px) {
  .home-pres-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-profile {
    flex-direction: column;
  }

  .home-profile-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-profile-bio {
    max-width: none;
  }

  .home-profile-name {
    font-size: 2rem;
  }

  .home-profile {
    gap: 16px;
  }

  .home-profile-stats {
    width: 100%;
  }

  .home-profile-stat-divider {
    display: none;
  }

  .home-pres-header-row {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .home-pres-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Preview Page ─────────────────────────────────── */

.preview-content-state[hidden],
.preview-viewer[hidden] {
  display: none;
}

.preview-viewer {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

@keyframes preview-spin {
  to { transform: rotate(360deg); }
}

.preview-content-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}

.preview-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #fff;
  border-radius: 50%;
  animation: preview-spin 0.8s linear infinite;
}

.preview-error-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.preview-error-body {
  font-size: 1rem;
  color: var(--text-medium);
  max-width: 28rem;
  line-height: 1.5;
}

.preview-container {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  z-index: 1;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 56px;
  padding: 0 24px;
  flex-shrink: 0;
}

.preview-logo {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.preview-topbar-center {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 2px 12px 2px 2px;
  box-sizing: border-box;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-high);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.preview-topbar-center:hover,
.preview-topbar-center:active,
.preview-topbar-center:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.preview-topbar-center:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.6);
  outline-offset: 2px;
}

.preview-topbar-center[hidden] {
  display: none;
}

.live-topbar-actions {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-mobile-menu-wrap {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  z-index: 20;
}

.live-mobile-menu-wrap[hidden],
.live-mobile-menu-dropdown[hidden] {
  display: none;
}

.live-mobile-menu-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--text-high);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.live-mobile-menu-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.live-mobile-menu-btn:hover,
.live-mobile-menu-btn:active,
.live-mobile-menu-btn[aria-expanded="true"] {
  background: transparent;
  border: none;
  color: var(--text-primary);
}

.live-mobile-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #111A22;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  padding: 8px 0;
}

.live-mobile-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: none;
  background: none;
  color: var(--text-high);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.2;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease-in-out, color 0.15s ease-in-out;
}

.live-mobile-menu-item:hover,
.live-mobile-menu-item:active {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.live-mobile-menu-item-danger {
  color: #f87171;
}

.live-mobile-menu-item-danger:hover,
.live-mobile-menu-item-danger:active {
  color: #fff;
  background: rgba(239, 68, 68, 0.22);
}

.live-leave-btn {
  padding: 6px 12px;
  border-radius: 9999px;
  color: #ef4444;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: inherit;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
}

.live-info-btn {
  padding: 6px 12px;
  border-radius: 9999px;
  color: var(--text-high);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: inherit;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
}

.live-info-btn:hover,
.live-info-btn:active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.2);
}

.live-info-btn[hidden],
.live-leave-btn[hidden] {
  display: none;
}

.live-leave-btn:hover,
.live-leave-btn:active {
  color: white;
  background: #ef4444;
}

.preview-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s ease-in;
}

.preview-avatar.loaded {
  opacity: 1;
}

.preview-owner-name {
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.live-info-modal {
  max-width: 560px;
}

.live-info-title {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}

.preview-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-medium);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.preview-topbar .preview-close-btn {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.preview-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.preview-close-btn svg {
  width: 14px;
  height: 14px;
}

.preview-slide-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px 10px;
  overflow: hidden;
  min-height: 0;
}

.preview-slide-frame {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-slide-frame canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.preview-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.preview-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: #3b82f6;
}

.preview-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.preview-nav-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.live-nav-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
}

.preview-page-indicator {
  color: var(--text-high);
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  text-align: center;
}

.preview-footer {
  padding: 4px 24px 8px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-low);
  flex-shrink: 0;
  line-height: 1.6;
}

.preview-footer a {
  color: var(--text-medium);
  transition: color 0.15s;
}

.preview-footer a:hover {
  color: var(--text-high);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .preview-topbar {
    padding: 0 12px;
    height: 48px;
  }

  .preview-logo {
    left: 12px;
  }

  .preview-topbar .preview-close-btn {
    right: 12px;
  }

  .preview-slide-area {
    flex: 0 0 auto;
    padding: 100px 0 0;
    align-items: flex-start;
    justify-content: center;
  }

  .preview-topbar-center,
  .live-topbar-actions {
    display: none;
  }

  .preview-nav-btn {
    padding: 10px 16px;
  }

  .live-panel-nav .preview-nav-btn span {
    display: none;
  }

  .preview-footer {
    padding: 4px 16px 44px;
  }

  .live-mobile-menu-wrap {
    right: 12px;
    display: block;
  }

  .live-interaction-bar {
    margin-top: 30px;
    padding: 0 16px 0;
  }

  .live-action-layout {
    gap: 4px;
  }

  .live-action-pager .preview-page-indicator {
    padding-top: 0;
    padding-bottom: 0;
  }

  .live-ended-card {
    padding: 24px;
  }
}

@media (min-width: 641px) {
  .live-ended-card {
    padding: 32px;
  }
}

/* --- Live Mode (Presenter) --- */

/* Ensure hidden attribute works on elements with explicit display */
.home-share-card[hidden],
.live-panel[hidden],
.live-audience-count[hidden],
.live-counts-bar[hidden],
.live-feed-panel[hidden],
.live-feed-toggle[hidden],
.live-feed-badge[hidden] {
    display: none;
}

.live-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 32px 16px 32px;
    background: #0a0a0a;
    position: relative;
    z-index: 100;
}

.live-panel-actions,
.live-panel-status,
.live-panel-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.live-panel-actions,
.live-panel-nav {
    flex: 1 1 0;
}

.live-panel-actions {
    justify-content: flex-start;
}

.live-panel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.live-panel-status {
    flex: 0 1 auto;
    justify-content: center;
}

.live-panel-nav {
    justify-content: flex-end;
}

.live-status-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.live-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #6366f1;
    border: 1px solid #6366f1;
    border-radius: 9999px;
    font-size: 1.0rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.live-toggle-btn:hover { background: #4f46e5; border: 1px solid #4f46e5; }
.live-toggle-btn.active { background: #dc2626; border: 1px solid #dc2626; }
.live-toggle-btn.active:hover { background: #b91c1c; border: 1px solid #b91c1c;}

.live-close-btn {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    flex-shrink: 0;
}

.live-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    font: inherit;
    font-weight: 600;
    font-size: 1.0rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

  .live-secondary-btn .fs-enter,
  .live-secondary-btn .fs-exit {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .live-secondary-btn .fs-enter[hidden],
  .live-secondary-btn .fs-exit[hidden] {
    display: none !important;
  }

  :fullscreen #fullscreenBtn .fs-enter,
  :-webkit-full-screen #fullscreenBtn .fs-enter {
    display: none !important;
  }

.live-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.live-audience-count {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-left: 8px;
    font-weight: 500;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.live-audience-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.live-audience-count em {
    font-style: normal;
    min-width: 1ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.live-counts-bar {
  position: static;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1.0rem;
  font-weight: 600;
  box-sizing: border-box;
  overflow: visible;
}

.live-counts-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: visible;
  position: relative;
}

.live-counts-bar .live-audience-count {
  margin-left: 0;
  padding: 6px 10px;
  gap: 8px;
}

.live-counts-bar .live-status-clock {
  margin-left: 0;
  padding: 6px 10px;
}

.live-count {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.live-count:first-child {
    padding-left: 0;
}

.live-count:last-child {
    padding-right: 0;
}

.live-count + .live-count::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 18px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
}

.live-count-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Quick pop animation for live-count icons when values change */
@keyframes live-count-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.live-count-icon.pop {
  transform-origin: center;
  animation: live-count-pop 320ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.live-count[data-kind="helpful"] .live-count-icon,
.live-count[data-kind="insightful"] .live-count-icon {
    color: #60a5fa;
}

.live-count[data-kind="unclear"] .live-count-icon,
.live-count[data-kind="too_fast"] .live-count-icon {
    color: #fbbf24;
}

.live-count em {
    font-style: normal;
  font-weight: 600;
    min-width: 1.4ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.pv-reaction-button .live-count-icon {
  width: 20px;
  height: 20px;
}

.pv-reaction-button em {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Hover tooltips for live counts and audience */
.live-count,
.live-audience-count {
    cursor: default;
}

.live-count-tooltip,
.live-audience-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 2px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 9999;
}

/* Arrow for tooltip */
.live-count-tooltip::after,
.live-audience-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--text-primary);
}

/* Border arrow */
.live-count-tooltip::before,
.live-audience-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(1px);
    border: 10px solid transparent;
    border-top-color: #e5e7eb;
    z-index: -1;
}

/* Show tooltip on hover */
.live-count:hover .live-count-tooltip,
.live-audience-count:hover .live-audience-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-2px);
}

.live-status-clock {
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
    margin-left: 30px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.live-page-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 8px;
}

@media (max-width: 980px) {
  .live-panel {
    gap: 12px;
    padding: 10px 12px;
  }

  .live-panel-actions,
  .live-panel-status,
  .live-panel-nav {
    width: 100%;
  }

  .live-panel-actions,
  .live-status-cluster {
    flex-wrap: wrap;
  }

  .live-panel-actions {
    justify-content: space-between;
  }

  .live-panel-status {
    justify-content: center;
  }

  .live-panel-nav {
    justify-content: flex-end;
  }

  .live-counts-bar {
    width: 100%;
    gap: 12px;
    padding: 6px 12px;
  }
}

/* Activity Feed */
.live-feed-toggle {
    position: fixed;
    right: 16px;
    bottom: 80px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #334155;
    color: #e2e8f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.live-feed-toggle svg {
    width: 22px;
    height: 22px;
}

.live-feed-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 9999px;
    min-width: 18px;
    text-align: center;
}

.live-feed-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    background: #1e293b;
    border-left: 1px solid #334155;
    display: flex;
    flex-direction: column;
    z-index: 30;
}

.live-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    color: #e2e8f0;
    font-weight: 600;
    border-bottom: 1px solid #334155;
}

.live-feed-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
}

.live-feed-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.live-feed-item {
    padding: 8px 12px;
    color: #cbd5e1;
    font-size: 0.8rem;
    border-bottom: 1px solid #1e293b;
    line-height: 1.4;
}

.live-feed-item:first-child {
    animation: feed-in 0.3s ease;
}

@keyframes feed-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Live Interaction (Audience) --- */
.live-interaction-bar {
    width: 100%;
    max-width: min(100%, calc((100vh - 240px) * 16 / 9));
    margin: 0 auto;
    padding: 4px 8px 6px;
}

.live-action-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.live-action-pager {
    order: 1;
    min-width: 80px;
}

.live-action-pager .preview-page-indicator {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    min-width: 80px;
    padding: 6px 16px;
    font-weight: 500;
}

.live-reactions {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 8px;
}

.live-reactions-positive {
    order: 2;
}

.live-reactions-negative {
    order: 3;
}

.live-reaction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 138px;
    padding: 6px 12px 6px 4px;
    background: transparent;
    color: var(--text-medium);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.live-reaction-btn:focus {
    outline: none;
}

.live-reaction-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    transform-origin: center;
    will-change: transform;
}

.live-reaction-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

@keyframes live-reaction-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.42);
  }
  100% {
    transform: scale(1);
  }
}

.live-reaction-btn.is-pulsing .live-reaction-icon {
  animation: live-reaction-pop 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.live-reaction-label {
    white-space: nowrap;
    font-size: 0.95rem;
}

.live-reaction-btn[data-tone="positive"] .live-reaction-icon {
    color: #60a5fa;
}

.live-reaction-btn[data-tone="negative"] .live-reaction-icon {
    color: #fbbf24;
}

@media (hover: hover) {
    .live-reaction-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
    }

    .live-reaction-btn[data-tone="positive"]:hover {
        border-color: #3b82f6;
    }

    .live-reaction-btn[data-tone="negative"]:hover {
        border-color: #f59e0b;
    }
}

.live-reaction-btn[data-tone="positive"].active {
    border-color: #3b82f6;
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.25);
}

.live-reaction-btn[data-tone="negative"].active {
    border-color: #f59e0b;
    color: var(--text-primary);
    background: rgba(245, 158, 11, 0.25);
}

.live-reaction-btn.active:active {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
  color: var(--text-high);
}

.live-reaction-btn.suppress-hover,
.live-reaction-btn.suppress-hover:hover,
.live-reaction-btn.suppress-hover:active {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
  color: var(--text-high);
}

@media (min-width: 640px) {
    .live-interaction-bar {
        padding: 8px 0 10px;
    }

    .live-action-layout {
        flex-direction: row;
        gap: 16px;
    }

    .live-reactions {
        width: auto;
        gap: 12px;
    }

    .live-reactions-positive {
        order: 1;
        justify-content: flex-end;
    }

    .live-action-pager {
        order: 2;
    }

    .live-reactions-negative {
        order: 3;
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .live-interaction-bar {
        padding-bottom: 8px;
    }

    .live-action-layout {
        gap: 32px;
    }
}

/* Status Banners */
.live-status-banner {
    padding: 10px;
    text-align: center;
    background: #f59e0b;
    color: #1e293b;
    font-weight: 600;
}

/* --- Live Waiting State --- */
.live-waiting-heading {
    font-size: 1.75rem;
    font-weight: 500;
}

.live-waiting-body {
    font-size: 1rem;
    color: var(--text-high);
    max-width: 32rem;
    line-height: 1.5;
}

/* --- Live Ended State --- */
.live-ended-card {
    background: #111A22;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 32px;
    padding: 28px 24px 32px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    text-align: center;
    color: var(--text-primary);
    max-width: 28rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.live-ended-header {
  width: 100%;
  margin-bottom: 0;
}

.live-ended-divider {
  width: 100%;
  height: 1px;
  margin: 20px 0 20px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.live-ended-heading {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.live-ended-body {
  margin-top: 8px;
  font-size: 1.0rem;
}

.live-ended-feedback-section {
  width: 100%;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.live-ended-feedback-section.is-success {
  justify-content: center;
  min-height: 220px;
}

.live-ended-feedback-section.is-success .live-ended-subheading,
.live-ended-feedback-section.is-success .live-ended-feedback-label,
.live-ended-feedback-section.is-success .live-ended-feedback-form {
  display: none;
}

.live-ended-feedback-section.is-success .live-ended-success {
  display: flex;
  flex: 1;
  padding: 0;
}


.live-ended-subheading {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.live-ended-feedback-label {
  margin: 0 0 10px 0;
  font-size: 1.0rem;
}

.live-ended-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.live-ended-feedback-form[hidden] {
    display: none;
}

.live-ended-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    resize: none;
    height: 112px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.live-ended-textarea:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

.live-ended-textarea::placeholder {
    color: var(--text-low);
}

.live-ended-textarea:focus {
    border-color: #3b82f6;
    box-shadow: none;
}

.live-ended-submit {
  width: fit-content;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 9999px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.2;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.live-ended-submit:hover {
  background: #3b82f6;
  color: #fff;
}

.live-ended-submit:active {
  background: #3b82f6;
  color: #fff;
}

.live-ended-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 8px 0 0;
}

.live-ended-success[hidden] {
    display: none;
}

.live-ended-success-icon {
  width: 64px;
  height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
}

.live-ended-success-icon svg {
  width: 32px;
  height: 32px;
}

.live-ended-success-text {
  font-size: 1.25rem;
  font-weight: 600;

}

.live-ended-success-sub {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 0;
}

.live-ended-home-link {
    color: var(--text-high);
    margin-top: 24px;
    text-decoration: none;
    transition: all 0.15s;
}

.live-ended-home-link:hover {
    text-decoration: underline;
}

/* Toast */
.live-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #334155;
    color: #e2e8f0;
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 0.8rem;
    z-index: 40;
    animation: toast-in 0.3s ease;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   Preview Page (PresentationView)
   ============================================================ */

.pv-page {
    margin: 0;
    padding: 0;
    background: #181818;
    overflow: hidden;
    height: 100dvh;
}

/* Loading / Error */
.pv-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    gap: 16px;
}
.pv-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    gap: 12px;
    color: var(--text-medium);
    background: #181818;
}
.pv-loading[hidden],
.pv-error[hidden] { display: none; }
.pv-error-msg {
    font-size: 1.1rem;
    color: var(--text-high);
}

/* Container */
.pv-container {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
}
.pv-container[hidden] { display: none; }

/* Header */
.pv-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: #0a0a0a;
    flex-shrink: 0;
    position: relative;
    z-index: 50;
}
@media (min-width: 640px) {
    .pv-header { padding: 0 24px; }
}

.pv-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    margin-right: 16px;
}
@media (min-width: 640px) {
    .pv-header-left { gap: 24px; }
}

.pv-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 8px;
    color: var(--text-high);
    text-decoration: none;
    transition: color 0.15s;
    flex-shrink: 0;
}
.pv-back-label {
    font-weight: 500;
}
@media (max-width: 639px) {
    .pv-back-label { display: none; }
}

.pv-header-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}
@media (max-width: 639px) {
    .pv-header-divider { display: none; }
}

.pv-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    margin: 0;
}

/* Desktop Actions */
.pv-actions {
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .pv-actions { display: flex; }
    .pv-mobile-actions { display: none !important; }
}
@media (min-width: 640px) {
    .pv-actions { gap: 12px; }
}

.pv-lock-icon {
  margin-left: 4px;
}

.pv-lock-icon[hidden] {
  display: none;
}

/* Mobile Actions */
.pv-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pv-mobile-menu-wrap {
    position: relative;
}

.pv-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 192px;
    background: #181818;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 50;
    overflow: hidden;
    padding: 8px 0;
}
.pv-dropdown[hidden] { display: none; }

.pv-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-high);
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.2;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.pv-dropdown-item:hover {
    background: rgba(255,255,255,0.05);
}

.pv-mobile-present {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b82f6;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    box-shadow: 0 4px 14px rgba(37,99,235,0.2);
}
.pv-mobile-present:hover {
    background: #2563eb;
}
.pv-mobile-present:disabled {
    opacity: 0.55;
    cursor: default;
    background: #2563eb;
}

/* Main Content Area */
.pv-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #181818;
}
@media (min-width: 1024px) {
    .pv-main { flex-direction: row; }
}

/* Thumbnail Sidebar */
.pv-sidebar {
    order: 2;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #181818;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px;
    flex-shrink: 0;
}
@media (min-width: 1024px) {
    .pv-sidebar {
        order: 1;
        width: 256px;
        border-top: none;
        border-right: 1px solid rgba(255,255,255,0.05);
        overflow-x: hidden;
        overflow-y: auto;
        padding: 16px;
    }
}

.pv-sidebar::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.pv-sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}
.pv-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    border: 2px solid #181818;
}
.pv-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

.pv-thumb-list {
    display: flex;
    flex-direction: row;
    gap: 12px;
}
@media (min-width: 1024px) {
    .pv-thumb-list {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Individual Thumbnail */
.pv-thumb {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s;
}
@media (min-width: 1024px) {
    .pv-thumb {
        gap: 12px;
        width: 100%;
        min-width: 0;
    }
}

.pv-thumb:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.9);
    outline-offset: 4px;
    border-radius: 10px;
}

.pv-thumb-num {
    width: 20px;
    font-size: 0.7rem;
    text-align: center;
    flex-shrink: 0;
  color: var(--text-medium);
    transition: color 0.15s;
}
@media (min-width: 1024px) {
    .pv-thumb-num { font-size: 0.75rem; }
}
.pv-thumb.selected .pv-thumb-num {
    color: var(--text-high);
}

.pv-thumb-media {
    position: relative;
    flex-shrink: 0;
    width: 120px;
}
@media (min-width: 1024px) {
    .pv-thumb-media {
        width: 0;
        flex: 1 1 0;
        min-width: 0;
    }
}

.pv-thumb-canvas {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.05);
    transition: border-color 0.15s;
    display: block;
}
@media (min-width: 1024px) {
    .pv-thumb-canvas {
        width: 100%;
    }
}
.pv-thumb:hover .pv-thumb-canvas {
    border-color: var(--text-low);
}
.pv-thumb.selected .pv-thumb-canvas {
    border-color: #3b82f6;
    border-width: 3px;
}

.pv-thumb-indicators {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: flex;
    gap: 4px;
    z-index: 2;
    pointer-events: none;
}
@media (min-width: 1024px) {
    .pv-thumb-indicators {
        right: 8px;
        bottom: 8px;
    }
}

.pv-thumb-indicator {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,0.92);
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
@media (min-width: 1024px) {
    .pv-thumb-indicator {
        width: 16px;
        height: 16px;
    }
}

.pv-thumb-indicator-positive {
    background: #3b82f6;
}

.pv-thumb-indicator-negative {
    background: #f59e0b;
}

/* Selection indicator — vertical bar on desktop */
.pv-thumb::before {
    content: '';
    position: absolute;
    border-radius: 4px;
    background: #3b82f6;
    opacity: 0;
    transition: opacity 0.15s;
}
@media (min-width: 1024px) {
    .pv-thumb::before {
        left: -16px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 32px;
    }
}
/* Horizontal bar on mobile */
@media (max-width: 1023px) {
    .pv-thumb::before {
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        height: 4px;
        width: 32px;
    }
}
.pv-thumb:hover::before { opacity: 0.5; }
.pv-thumb.selected::before { opacity: 1; }

/* Non-selected dimming */
.pv-thumb:not(.selected) .pv-thumb-canvas {
    filter: brightness(0.5);
}
.pv-thumb:hover:not(.selected) .pv-thumb-canvas {
    filter: brightness(0.7);
}

/* Slide Stage */
.pv-stage {
    flex: 1;
    display: flex;
  flex-direction: column;
    align-items: center;
    justify-content: center;
  gap: 16px;
    padding: 0;
    overflow: hidden;
    order: 1;
    min-height: 0;
    position: relative;
    z-index: auto;
}
@media (min-width: 1024px) {
    .pv-stage {
        order: 2;
        padding: 0;
    }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .pv-stage { padding: 0; }
}
@media (max-width: 1023px) {
    .pv-stage {
        flex: none;
        padding: 0;
    }
    .pv-sidebar {
        flex: none;
    }
}

.pv-canvas-wrap {
  width: 85%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.pv-canvas-wrap canvas {
    display: block;
}

.pv-container.is-presenting .pv-header,
.pv-container.is-presenting .pv-sidebar,
.pv-container.is-presenting .pv-reaction-bar {
    display: none !important;
}

.pv-container.is-presenting .pv-main {
    flex: 1;
    min-height: 0;
    flex-direction: column;
    order: 1;
}

.pv-container.is-presenting .live-panel {
    order: 2;
    margin-top: auto;
}

.pv-container.is-presenting .pv-stage {
    flex: 1;
    order: 1;
    min-height: 0;
    padding: 0;
}

.pv-container.is-presenting .pv-canvas-wrap {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
  background: #0a0a0a;
}

@media (min-width: 1024px) {
    .pv-container.is-presenting .pv-stage {
        padding: 0;
    }
}

.pv-reaction-bar {
    border: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.pv-reaction-bar[hidden] {
    display: none;
}

.pv-reaction-bar-desktop {
    display: none;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
    margin-top: 0;
    z-index: 2;
}

  .pv-reaction-bar-desktop .pv-reaction-button {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    font: inherit;
  }

  .pv-reaction-bar-desktop .pv-reaction-button:focus {
    outline: none;
  }

.pv-reaction-bar-desktop:hover {
    background: rgba(0, 0, 0, 0.9);
}

.pv-reaction-bar-inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.pv-reaction-bar-mobile {
    width: 100%;
    margin-top: 16px;
    display: block;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
}

.pv-reaction-bar-mobile:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.12);
}

.pv-reaction-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
}

.pv-reaction-mobile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.pv-reaction-mobile-value {
    font-weight: 700;
    line-height: 1.1;
}

.pv-reaction-mobile-label {
    font-size: 0.625rem;
    color: var(--text-medium);
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .pv-reaction-bar-desktop {
        display: flex;
    }

    .pv-reaction-bar-mobile {
        display: none;
    }
}

.presenter-modal {
    max-width: 420px;
}

.presenter-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 8px 8px 4px;
    text-align: center;
}

.presenter-modal-avatar {
    width: 96px;
    height: 96px;
    border-radius: 9999px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

.presenter-modal-avatar.loaded {
    opacity: 1;
}

.presenter-modal-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.presenter-modal-bio {
    line-height: 1.6;
    color: var(--text-high);
    white-space: pre-wrap;
    margin: 0;
}

.presenter-modal-bio[hidden] {
    display: none;
}

/* global buttons */

.pv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  -webkit-font-smoothing: antialiased;
}
.pv-btn:hover {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
}

.pv-btn:active,
.pv-btn:focus {
  transform: none;
}

.pv-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.pv-btn-icon {
  padding: 0;
  width: 40px;
  height: 40px;
  justify-content: center;
  border-radius: 9999px;
  background: transparent;
}

.pv-btn-present {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 24px;
  background: #3b82f6;
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.pv-btn-present:hover {
  background: #2563eb;
}
.pv-btn-present:active {
  background: #2563eb;
}
.pv-btn-present:disabled {
  opacity: 0.55;
  cursor: default;
  background: #fff;
  color: #000;
  box-shadow: none;
}

.home-modal-buttons {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.home-modal-cancel {
  flex: 1;
  padding: 12px 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-high);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.home-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}

.home-modal-submit {
  flex: 1;
  padding: 12px 24px;
  border-radius: 9999px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.home-modal-submit:hover {
  background: #3b82f6;
  color: #fff;
}

.home-modal-cancel:focus-visible,
.home-modal-submit:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.home-modal-submit:active {
  background: #3b82f6;
  color: #fff;
}

.home-modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #fff;
}
