/* ==========================================================================
   Padles (Shelf & Section Board) Stylesheet
   Theme: Aurora Cosmic Space with Powder Cyan Cards
   ========================================================================== */

@layer reset, tokens, layout, components, modals;

:root {
  /* Cosmic Aurora Background Tokens */
  --bg-deep-space: #03181e;
  --aurora-teal: #08404a;
  --aurora-glow: #0d6e73;
  --aurora-emerald: #0b5e58;
  
  /* Section Tokens */
  --section-header-bg: rgba(8, 58, 68, 0.85);
  --section-header-border: rgba(18, 102, 117, 0.5);
  --section-btn-bg: rgba(6, 44, 52, 0.65);
  --section-btn-hover: rgba(13, 85, 98, 0.8);
  
  /* Card Tokens */
  --card-bg: #dff2f8;
  --card-border: #bce3ee;
  --card-text-title: #0a252c;
  --card-text-body: #193f48;
  --card-text-muted: #48727d;
  --card-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

  /* Accents */
  --padlet-yellow: #fde047;
  --padlet-yellow-hover: #facc15;
  --play-blue: #1d9bf0;
  --border-glass: rgba(255, 255, 255, 0.15);
  --text-white: #ffffff;
  --text-light-cyan: #9dd8e0;

  /* Centralized Z-Index Scale */
  --z-base: 1;
  --z-sticky: 100;
  --z-topbar: 500;
  --z-popover: 1800;
  --z-modal: 2000;
  --z-overlay: 9000;
  --z-toast: 10000;
  --z-tools-hub: 100000;
}

@layer reset {
  /* Reset & Base */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  [hidden] {
    display: none !important;
  }
}

/* ==========================================================================
   Padlet 100% Authentic Sleek Scrollbar System (Zero Default Scrollbars)
   ========================================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 17, 17, 0.3) transparent;
}

body.dark-mode *,
.dark * {
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 17, 0.25) padding-box content-box;
  border: 2px solid transparent;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 17, 17, 0.45) padding-box content-box;
  border: 2px solid transparent;
  border-radius: 9999px;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Dark mode and dark containers */
body.dark-mode ::-webkit-scrollbar-thumb,
.dark ::-webkit-scrollbar-thumb,
body.aurora-theme ::-webkit-scrollbar-thumb,
.board-container::-webkit-scrollbar-thumb,
.section-cards-stack::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25) padding-box content-box;
  border: 2px solid transparent;
  border-radius: 9999px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover,
.dark ::-webkit-scrollbar-thumb:hover,
body.aurora-theme ::-webkit-scrollbar-thumb:hover,
.board-container::-webkit-scrollbar-thumb:hover,
.section-cards-stack::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45) padding-box content-box;
  border: 2px solid transparent;
  border-radius: 9999px;
}

/* Thin sleek scrollbars for drawers, menus, popovers, and composer */
.composer-scroll-area::-webkit-scrollbar,
.settings-drawer-content::-webkit-scrollbar,
.share-drawer-content::-webkit-scrollbar,
.padlet-more-drawer-content::-webkit-scrollbar,
.all-tools-grid-scroll::-webkit-scrollbar,
.scrollbar-thin::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

.composer-scroll-area::-webkit-scrollbar-thumb,
.settings-drawer-content::-webkit-scrollbar-thumb,
.share-drawer-content::-webkit-scrollbar-thumb,
.padlet-more-drawer-content::-webkit-scrollbar-thumb,
.all-tools-grid-scroll::-webkit-scrollbar-thumb,
.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.22) padding-box content-box !important;
  border-radius: 9999px !important;
  border: 1px solid transparent !important;
}

.composer-scroll-area::-webkit-scrollbar-thumb:hover,
.settings-drawer-content::-webkit-scrollbar-thumb:hover,
.share-drawer-content::-webkit-scrollbar-thumb:hover,
.padlet-more-drawer-content::-webkit-scrollbar-thumb:hover,
.all-tools-grid-scroll::-webkit-scrollbar-thumb:hover,
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.42) padding-box content-box !important;
}

body.dark-mode .composer-scroll-area::-webkit-scrollbar-thumb,
body.dark-mode .settings-drawer-content::-webkit-scrollbar-thumb,
body.dark-mode .share-drawer-content::-webkit-scrollbar-thumb,
body.dark-mode .padlet-more-drawer-content::-webkit-scrollbar-thumb,
body.dark-mode .all-tools-grid-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25) padding-box content-box !important;
}

body.dark-mode .composer-scroll-area::-webkit-scrollbar-thumb:hover,
body.dark-mode .settings-drawer-content::-webkit-scrollbar-thumb:hover,
body.dark-mode .share-drawer-content::-webkit-scrollbar-thumb:hover,
body.dark-mode .padlet-more-drawer-content::-webkit-scrollbar-thumb:hover,
body.dark-mode .all-tools-grid-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45) padding-box content-box !important;
}


html {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

body.aurora-theme {
  font-family: 'Inter var', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  height: 100vh;
  max-height: 100vh;
  width: 100vw;
  background-color: rgb(1, 40, 50);
  background-image: url("https://v1.padlet.pics/1/image?t=c_lfill,dpr_1,f_auto,g_auto,h_1080,q_auto:best,w_1920&url=https%3A%2F%2Felvis.padletcdn.com%2F1%2Fatat%2Fe_in-u_1773398369%2FappbR1Qbe0DGnDKkS%2FtblhZFRy95OZHncLj%2FrecBYNtSlC6p5vYPB%2FfldJu5JvkUBo8MUFA");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Padles Authentic Surface Topbar Navigation
   ========================================================================== */

.surface-topbar {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 56px;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px;
  box-sizing: border-box;
  pointer-events: none;
}

.topbar-left {
  display: flex;
  align-items: center;
  margin-top: 6px;
  margin-inline-start: 8px;
  pointer-events: auto;
}

.padlet-logo-link,
.padles-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.padles-logo-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1;
  color: hsla(192, 70%, 95%, 0.7);
  transition: color 0.15s ease, opacity 0.15s ease;
  user-select: none;
}

.padlet-logo-link:hover .padles-logo-text,
.padles-logo-link:hover .padles-logo-text {
  color: hsl(192, 70%, 98%);
}

.padlet-logo-svg {
  width: 43.2px;
  height: 18px;
  fill: hsla(192, 70%, 95%, 0.7);
  transition: fill 0.15s ease;
}

.padlet-logo-link:hover .padlet-logo-svg {
  fill: hsl(192, 70%, 98%);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.topbar-glass-pill {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 10px;
  height: 32px;
  border-radius: 12px;
  background-color: rgba(168, 225, 240, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgb(233, 248, 251);
  border: none;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.topbar-glass-pill:hover {
  background-color: hsla(192, 70%, 80%, 0.3);
  color: hsl(192, 70%, 98%);
}

.topbar-glass-pill .icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(233, 248, 251);
}

.search-pill {
  width: 72px;
  padding: 0 10px;
  box-sizing: border-box;
}

.search-pill input,
#surfaceSearchBarInput {
  display: none !important;
}

.topbar-glass-pill-group {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  background-color: rgba(168, 225, 240, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 32px;
}

.group-pill-btn {
  background: transparent;
  border: none;
  color: rgb(233, 248, 251);
  width: 40px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.group-pill-btn:hover {
  background-color: hsla(192, 70%, 80%, 0.2);
  color: hsl(192, 70%, 98%);
}

.group-divider {
  width: 1px;
  height: 18px;
  background-color: rgba(168, 225, 240, 0.3);
}

.topbar-signup-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 12px;
  background-color: rgb(1, 40, 50);
  backdrop-filter: blur(12px);
  color: rgb(233, 248, 251);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.topbar-signup-btn:hover {
  background-color: hsla(192, 70%, 80%, 0.3);
  color: hsl(192, 70%, 98%);
}

.topbar-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background-color: rgb(1, 40, 50);
  backdrop-filter: blur(12px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.topbar-avatar-btn:hover {
  background-color: hsla(192, 70%, 80%, 0.3);
}

.topbar-avatar-btn img {
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: block;
}

/* ==========================================================================
   Padles Authentic Surface Board Header
   ========================================================================== */

.surface-header-block {
  margin-top: 56px;
  padding: 18px 16px 20px 16px;
  max-width: 85%;
  user-select: none;
  box-sizing: border-box;
}

.surface-builder-line {
  display: flex;
  align-items: center;
  height: 14px;
  font-size: 12px;
  color: rgba(233, 248, 251, 0.7);
}

.builder-link {
  color: rgba(233, 248, 251, 0.7);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.15s ease;
}

.builder-link:hover {
  color: hsl(192, 70%, 98%);
  text-decoration: underline;
}

.contributor-count-btn {
  background: transparent;
  border: none;
  color: rgba(233, 248, 251, 0.7);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-inline-start: 3px;
  font-family: inherit;
}

.contributor-count-btn:hover {
  color: hsl(192, 70%, 98%);
  text-decoration: underline;
}

.byline-dot, .byline-time {
  color: rgba(233, 248, 251, 0.7);
  margin-inline-start: 3px;
}

.surface-board-title {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: rgb(246, 252, 253);
  word-break: break-word;
}

/* Search Overlay */
.search-overlay {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(4, 30, 36, 0.9);
  border: 1px solid var(--aurora-glow);
  border-radius: 12px;
  padding: 8px 16px;
  max-width: 500px;
  animation: fadeIn 0.2s ease;
}

.search-overlay.is-open {
  display: flex !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-overlay input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.search-overlay button {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ==========================================================================
   Horizontal Sections Track
   ========================================================================== */

.board-container {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  padding: 0 16px 24px 16px;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  height: calc(100vh - 120px);
  max-height: calc(100vh - 120px);
}

.sections-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 100%;
  min-height: 0;
  min-width: fit-content;
  margin: 0;
}

/* Column / Section Container */
.section-column {
  width: 272px;
  max-width: 272px;
  flex: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

/* Section Header Bar (Padles Signature Folder Tab) */
.section-header-box {
  width: 256px;
  height: 90px;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.section-title-capsule {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  max-width: calc(100% - 2px);
  user-select: none;
}

.section-title-body {
  flex-grow: 1;
  display: flex;
  align-items: center;
  background-color: rgb(1, 78, 98);
  border-radius: 8px 0 0 8px;
  padding: 3px 0 3px 6px;
  min-height: 34px;
  color: rgb(246, 252, 253);
}

.section-title-text {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 6px;
  margin: 0;
}

.section-title-skew {
  width: 12px;
  background-color: rgb(1, 78, 98);
  border-radius: 0 5px 0 0;
  transform: skewX(10deg);
  transform-origin: bottom left;
  flex-shrink: 0;
}

.section-menu-btn {
  position: absolute;
  right: 7px;
  top: 3.25px;
  width: 24px;
  height: 26px;
  transform: rotate(-10deg);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s ease;
}

.section-menu-btn:hover {
  color: #ffffff;
}

/* Full-width flat + button under folder tab */
.section-add-btn {
  width: 256px;
  height: 36px;
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 8px;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.section-add-btn:hover {
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

/* Cards Stack (Scroll inside section) */
.section-cards-stack {
  width: 272px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  overscroll-behavior: contain;
  padding-right: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.section-cards-stack::-webkit-scrollbar {
  width: 6px;
}

.section-cards-stack::-webkit-scrollbar-track {
  background: transparent;
}

.section-cards-stack::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
}

.section-cards-stack::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Horizontal Board Scrollbar */
.board-container::-webkit-scrollbar {
  height: 8px;
}

.board-container::-webkit-scrollbar-track {
  background: transparent;
}

.board-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
}

/* Add Section Button at the end */
.add-section-wrapper {
  flex-shrink: 0;
  width: 272px;
  padding-top: 8px;
}

.add-section-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  width: 256px;
  height: 38px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.add-section-btn:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

/* ==========================================================================
   Padlet Post Cards
   ========================================================================== */

.padlet-card-wrapper {
  width: 256px;
  margin: 0;
  flex-shrink: 0;
}

.padlet-card {
  width: 256px;
  border-radius: 12px;
  cursor: grab;
  user-select: text;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-inner-surface {
  padding: 8px;
  box-sizing: border-box;
  position: relative;
}

.padlet-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.padlet-card.is-dragging {
  opacity: 0.85;
  transform: scale(1.03) rotate(1deg);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  cursor: grabbing !important;
}

.padlet-card.is-dimmed {
  opacity: 0.2;
  filter: grayscale(70%);
}

/* Oceanic Light Blue Card (Picture & Live Padlet #9addfb / #bfe9fd) */
.padlet-card.color-blue,
.padlet-card[data-color="blue"] {
  background-color: rgb(154, 221, 251);
  color: rgb(17, 17, 17);
}

.padlet-card.color-blue .card-inner-surface,
.padlet-card[data-color="blue"] .card-inner-surface {
  background-color: rgb(191, 233, 253);
  border-radius: 12px;
  overflow: hidden;
}

/* Default Light Card (#f5f6f7 / #ffffff) */
.padlet-card.color-default,
.padlet-card.color-white,
.padlet-card[data-color="default"],
.padlet-card[data-color="white"] {
  background-color: rgb(245, 246, 247);
  color: rgb(17, 17, 17);
}

.padlet-card.color-default .card-inner-surface,
.padlet-card.color-white .card-inner-surface,
.padlet-card[data-color="default"] .card-inner-surface,
.padlet-card[data-color="white"] .card-inner-surface {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

/* Pinned Banner */
.card-pinned-banner {
  height: 36px;
  padding-left: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
}

/* Top-right card actions cluster (Edit slide-out & ⋮ dots) */
.card-corner-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 15;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 8px;
  background: inherit;
  pointer-events: auto;
}

.card-edit-btn-wrapper {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transform: translateX(8px);
  transition: max-width 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.15s ease, 
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
}

.padlet-card:hover .card-edit-btn-wrapper,
.padlet-card.is-hovered .card-edit-btn-wrapper,
.card-corner-actions:hover .card-edit-btn-wrapper,
.card-corner-actions.is-hovered .card-edit-btn-wrapper {
  max-width: 60px;
  opacity: 1;
  transform: translateX(0);
}

.card-edit-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.54);
  padding: 0 6px;
  height: 20px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
  display: flex;
  align-items: center;
}

.card-edit-btn:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.1);
}

.card-edit-btn:active {
  color: #7c3aed;
}

.card-actions-divider {
  width: 1px;
  height: 14px;
  background: rgba(0, 0, 0, 0.18);
  margin: 0 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.padlet-card:hover .card-actions-divider,
.padlet-card.is-hovered .card-actions-divider,
.card-corner-actions:hover .card-actions-divider,
.card-corner-actions.is-hovered .card-actions-divider {
  opacity: 1;
}

.card-dots-btn {
  width: 22px;
  height: 26px;
  background: transparent;
  border: none;
  color: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.card-dots-btn:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.08);
}

/* Video / Image Attachment preview */
.media-attachment-video {
  width: 240px;
  height: 158px;
  margin: 8px auto 0 auto;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: rgb(24, 20, 15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-attachment-video .video-thumb {
  width: 240px;
  height: 158px;
  object-fit: cover;
}

.media-attachment-video .play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.media-attachment-video .youtube-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 24px;
  padding: 0 8px;
  background-color: rgb(154, 221, 251);
  color: rgb(17, 17, 17);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-radius: 0 8px 0 0;
}

.media-attachment-link {
  width: 240px;
  height: 158px;
  margin: 8px auto 0 auto;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
}

.media-attachment-link .link-thumb {
  width: 240px;
  height: 158px;
  object-fit: cover;
}

.media-attachment-link .youtube-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 24px;
  padding: 0 8px;
  background-color: rgb(154, 221, 251);
  color: rgb(17, 17, 17);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-radius: 0 8px 0 0;
}

/* Card Caption */
.card-caption {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.75);
  padding: 6px 8px 0 8px;
  margin: 0;
  word-break: break-word;
}

/* Card Title (Subject) */
.card-title {
  font-size: 17px;
  font-weight: 600;
  color: #111111;
  padding: 8px 8px 4px 8px;
  margin: 0;
  line-height: 1.3;
}

/* Card Body text (content) */
.card-text-content {
  font-size: 14px;
  line-height: 1.5;
  color: #222222;
  padding: 4px 8px 8px 8px;
  margin: 0;
  word-break: break-word;
}

.card-text-content p {
  margin-bottom: 6px;
}

.card-text-content ul {
  padding-left: 20px;
  margin-top: 4px;
}

.card-text-content li {
  margin-bottom: 4px;
}

/* Reactions bar at bottom of card */
.card-bottom-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0 8px;
  padding: 6px 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card-reactions-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.reaction-pill {
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Inter var", Inter, -apple-system, sans-serif;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.04);
  color: #374151;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.reaction-pill:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.14);
}

.reaction-pill.is-reacted {
  background: #cceafb !important;
  border-color: #7dd3fc !important;
  color: #0284c7 !important;
}

.reaction-pill.is-reacted:hover {
  background: #bae6fd !important;
  border-color: #38bdf8 !important;
}

body.dark-mode .reaction-pill,
.dark .reaction-pill {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

body.dark-mode .reaction-pill:hover,
.dark .reaction-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .reaction-pill.is-reacted,
.dark .reaction-pill.is-reacted {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
}

.reaction-pill-emoji {
  font-size: 14px;
  line-height: 1;
}

.reaction-pill-count {
  font-size: 12px;
  font-weight: 600;
}

.reaction-btn,
.reaction-add-btn {
  height: 24px;
  min-width: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
  outline: none;
}

.reaction-btn:hover,
.reaction-add-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
}

.reaction-btn.has-reacted {
  color: #0284c7;
}

body.dark-mode .reaction-btn,
body.dark-mode .reaction-add-btn,
.dark .reaction-btn,
.dark .reaction-add-btn {
  color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .reaction-btn:hover,
body.dark-mode .reaction-add-btn:hover,
.dark .reaction-btn:hover,
.dark .reaction-add-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Authentic Padlet Emoji Picker Popover */
.emoji-picker-popover {
  position: fixed;
  z-index: 99999;
  width: 336px;
  height: 377px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Inter var", Inter, -apple-system, sans-serif;
  animation: emojiPickerFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.emoji-picker-popover[hidden] {
  display: none !important;
}

body.dark-mode .emoji-picker-popover,
.dark .emoji-picker-popover {
  background: rgba(30, 31, 34, 0.94);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

@keyframes emojiPickerFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.emoji-picker-header {
  padding: 12px 14px 8px 14px;
}

.emoji-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 0 10px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.emoji-search-bar:focus-within {
  background: #ffffff;
  box-shadow: 0 0 0 2px #fec006;
}

body.dark-mode .emoji-search-bar,
.dark .emoji-search-bar {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .emoji-search-bar:focus-within,
.dark .emoji-search-bar:focus-within {
  background: #25262b;
  box-shadow: 0 0 0 2px #fec006;
}

.emoji-search-icon {
  color: #9ca3af;
  flex-shrink: 0;
}

.emoji-search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: #111111;
  font-family: inherit;
}

body.dark-mode .emoji-search-input,
.dark .emoji-search-input {
  color: #f3f4f6;
}

.emoji-search-clear-btn {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.emoji-search-clear-btn:hover {
  color: #111111;
}

body.dark-mode .emoji-search-clear-btn:hover,
.dark .emoji-search-clear-btn:hover {
  color: #ffffff;
}

.emoji-picker-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 12px 12px 12px;
}

.emoji-picker-content::-webkit-scrollbar {
  width: 6px;
}

.emoji-picker-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

body.dark-mode .emoji-picker-content::-webkit-scrollbar-thumb,
.dark .emoji-picker-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
}

.emoji-category-section {
  margin-bottom: 12px;
}

.emoji-category-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  padding: 6px 4px 4px 4px;
}

body.dark-mode .emoji-category-title,
.dark .emoji-category-title {
  color: #9ca3af;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

.emoji-item-btn {
  width: 36px;
  height: 36px;
  font-size: 20px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s ease, transform 0.1s ease;
  padding: 0;
}

.emoji-item-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: scale(1.15);
}

body.dark-mode .emoji-item-btn:hover,
.dark .emoji-item-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.emoji-category-tabs {
  height: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  background: rgba(0, 0, 0, 0.02);
}

body.dark-mode .emoji-category-tabs,
.dark .emoji-category-tabs {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.emoji-cat-tab {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.55;
  padding: 4px 6px;
  border-radius: 8px;
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.15s ease;
  line-height: 1;
}

.emoji-cat-tab:hover {
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.06);
}

.emoji-cat-tab.is-active {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
  transform: scale(1.08);
}

body.dark-mode .emoji-cat-tab:hover,
.dark .emoji-cat-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .emoji-cat-tab.is-active,
.dark .emoji-cat-tab.is-active {
  background: rgba(255, 255, 255, 0.15);
}

/* Custom Field Chips on Card */
.card-custom-fields-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.card-cf-chip {
  font-size: 0.78rem;
  color: var(--card-text-muted);
  background: rgba(0, 0, 0, 0.03);
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.card-cf-chip strong {
  color: var(--card-text-title);
}

/* Quick Edit Button on Card */
.card-action-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.card-edit-btn {
  background: transparent;
  border: none;
  color: var(--card-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.card-edit-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--card-text-title);
}

.card-action-divider {
  width: 1px;
  height: 12px;
  background: rgba(0, 0, 0, 0.15);
  margin: 0 2px;
}

/* ==========================================================================
   Padles Signature Floating "+ Post" Button
   ========================================================================== */

.floating-post-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  pointer-events: auto;
}

.padlet-floating-post-btn {
  background: rgb(244, 230, 78);
  color: #000000;
  height: 56px;
  border-radius: 20px;
  padding: 10px 20px 10px 16px;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.padlet-floating-post-btn:hover {
  transform: scale(1.02);
  filter: brightness(1.03);
}

.padlet-floating-post-btn:active,
.padlet-floating-post-btn.is-pressed {
  background: #ff7a00 !important;
  color: #ffffff !important;
  transform: scale(0.96) !important;
}

/* ==========================================================================
   Padles-Authentic Dockable Multiple Drafts System
/* ==========================================================================
   Padles-Authentic Dockable Multiple Drafts System
   ========================================================================== */

.dockable-modals-dock {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1500;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: 148px;
  gap: 16px;
  overflow: visible;
}

.docked-tabs-track {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 16px;
  pointer-events: auto;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Individual Draft Slot (Maintains persistent position in chronological order) */
.dock-slot-item {
  display: flex;
  align-items: flex-end;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: width, transform;
  flex-shrink: 0;
}

.dock-slot-item:not(.is-active-slot) {
  width: 164px;
  height: 40px;
}

.dock-slot-item.is-active-slot {
  width: 404px;
  min-width: 404px;
  height: auto;
  max-height: calc(100vh - 64px);
  display: flex;
  align-self: flex-end;
}

.dock-slot-item.is-active-slot.is-expanded {
  width: 540px;
  min-width: 540px;
  height: auto;
  max-height: calc(100vh - 64px);
}

.composer-card-wrapper {
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.composer-card-wrapper[hidden] {
  display: none !important;
}

.dock-tab-btn {
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  height: 40px;
  width: 164px;
  max-width: 164px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.dock-tab-btn:hover {
  background: #f1f3f4;
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.14);
}

.dock-tab-btn.is-active {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.16);
}

body.dark-mode .dock-tab-btn,
.dark .dock-tab-btn {
  background: #111111;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode .dock-tab-btn:hover,
.dark .dock-tab-btn:hover {
  background: #202024;
  border-color: rgba(255, 255, 255, 0.28);
}

.dock-tab-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
}

.dock-tab-close-btn {
  background: transparent;
  border: none;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
}

body.dark-mode .dock-tab-close-btn,
.dark .dock-tab-close-btn {
  color: rgba(255, 255, 255, 0.4);
}

.dock-tab-close-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #111111;
}

body.dark-mode .dock-tab-close-btn:hover,
.dark .dock-tab-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.dock-bulk-action-wrapper {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
}

.dock-bulk-action-wrapper[hidden] {
  display: none !important;
}

.dock-bulk-btn {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  color: rgba(0, 0, 0, 0.54) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-bottom: none !important;
  border-radius: 16px 16px 0 0 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16) !important;
  transition: all 0.15s ease !important;
}

.dock-bulk-btn:hover {
  background: #f1f3f4 !important;
  color: #111111 !important;
}

body.dark-mode .dock-bulk-btn,
.dark .dock-bulk-btn {
  background: #1e1f22 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-mode .dock-bulk-btn:hover,
.dark .dock-bulk-btn:hover {
  background: #2a2b2f !important;
  color: #ffffff !important;
}

.drafts-bulk-menu {
  position: absolute !important;
  bottom: 52px !important;
  right: 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22) !important;
  padding: 6px !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 190px !important;
  z-index: 2000 !important;
  animation: composerPopIn 0.15s ease !important;
}

.drafts-bulk-menu[hidden] {
  display: none !important;
}

body.dark-mode .drafts-bulk-menu,
.dark .drafts-bulk-menu {
  background: #1e1f22 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.bulk-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bulk-menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 12px !important;
  color: #111111 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background 0.12s ease !important;
  text-align: left !important;
  width: 100% !important;
  white-space: nowrap !important;
}

.bulk-menu-item:hover {
  background: rgba(0, 0, 0, 0.06) !important;
}

body.dark-mode .bulk-menu-item,
.dark .bulk-menu-item {
  color: #ffffff !important;
}

body.dark-mode .bulk-menu-item:hover,
.dark .bulk-menu-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.bulk-item-danger {
  color: rgb(255, 32, 16) !important;
}

.bulk-item-danger:hover {
  background: rgba(255, 32, 16, 0.08) !important;
}

.bulk-menu-tail {
  position: absolute;
  bottom: -8px;
  right: 12px;
  color: #ffffff;
  pointer-events: none;
}

body.dark-mode .bulk-menu-tail,
.dark .bulk-menu-tail {
  color: #1e1f22;
}

/* ==========================================================================
   Padles-Authentic Create / Edit Post Composer (Clean Light Surface)
   ========================================================================== */

.composer-card {
  background: #ffffff !important;
  color: #111111 !important;
  width: 404px !important;
  max-width: calc(100vw - 32px);
  min-height: 220px !important;
  height: auto !important;
  max-height: calc(100vh - 64px) !important;
  border-radius: 24px 24px 0 0 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-bottom: none !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18) !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), height 0.15s ease-out;
  overflow: hidden !important;
  font-family: "Inter var", Inter, -apple-system, sans-serif !important;
  transform-origin: bottom center;
}

.composer-card.is-expanded {
  width: 540px !important;
  min-height: 220px !important;
  height: auto !important;
  max-height: calc(100vh - 64px) !important;
}

body.dark-theme .composer-card:not(.is-editing-mode),
body.aurora-theme .composer-card:not(.is-editing-mode) {
  background: rgb(17, 17, 17) !important;
  color: rgb(255, 255, 255) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .composer-card:not(.is-editing-mode) .composer-header-btn,
body.aurora-theme .composer-card:not(.is-editing-mode) .composer-header-btn {
  background: rgb(26, 26, 26) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-theme .composer-card:not(.is-editing-mode) .composer-submit-btn:disabled,
body.aurora-theme .composer-card:not(.is-editing-mode) .composer-submit-btn:disabled {
  background: rgba(239, 244, 250, 0.14) !important;
  color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .composer-card:not(.is-editing-mode) .composer-title-input,
body.aurora-theme .composer-card:not(.is-editing-mode) .composer-title-input {
  color: rgb(255, 255, 255) !important;
  background: transparent !important;
}

body.dark-theme .composer-card:not(.is-editing-mode) .composer-title-input::placeholder,
body.aurora-theme .composer-card:not(.is-editing-mode) .composer-title-input::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

body.dark-theme .composer-card:not(.is-editing-mode) .composer-body-input,
body.aurora-theme .composer-card:not(.is-editing-mode) .composer-body-input {
  color: rgb(255, 255, 255) !important;
  background: transparent !important;
}

body.dark-theme .composer-card:not(.is-editing-mode) .composer-body-input::placeholder,
body.aurora-theme .composer-card:not(.is-editing-mode) .composer-body-input::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

body.dark-theme .composer-card:not(.is-editing-mode) .composer-tools-bar,
body.aurora-theme .composer-card:not(.is-editing-mode) .composer-tools-bar {
  border-color: rgb(84, 85, 89) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

body.dark-theme .composer-card:not(.is-editing-mode) .composer-tools-caption,
body.aurora-theme .composer-card:not(.is-editing-mode) .composer-tools-caption {
  color: rgba(255, 255, 255, 0.45) !important;
}

body.dark-theme .composer-card:not(.is-editing-mode) .composer-tool-btn,
body.aurora-theme .composer-card:not(.is-editing-mode) .composer-tool-btn {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-theme .composer-card:not(.is-editing-mode) .composer-tool-btn:hover,
body.aurora-theme .composer-card:not(.is-editing-mode) .composer-tool-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

body.dark-theme .composer-card:not(.is-editing-mode) .composer-footer-chip,
body.aurora-theme .composer-card:not(.is-editing-mode) .composer-footer-chip {
  background: rgb(26, 26, 26) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border: none !important;
}

.composer-pop-in {
  animation: composerPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes composerPopIn {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Centered Edit Post Modal Overlay (Padles-Authentic Viewport Centered 540px) */
.edit-post-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 16px;
  animation: editBackdropFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.edit-post-modal-overlay[hidden] {
  display: none !important;
}

@keyframes editBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes editModalPopIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Edit Mode Styling for Composer Card when Centered (Authentic Padles 540px Light Dialog) */
.composer-card.is-editing-mode {
  width: 540px !important;
  max-width: min(540px, calc(100vw - 32px)) !important;
  min-height: 540px !important;
  height: 612px !important;
  max-height: calc(100vh - 80px) !important;
  border-radius: 24px !important;
  border: none !important;
  background: #ffffff !important;
  color: #111111 !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transform-origin: center center;
  animation: editModalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Top Action Bar in Composer */
.composer-top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px 12px 20px !important;
  background: #ffffff !important;
  border-bottom: none !important;
  flex-shrink: 0 !important;
}

.composer-window-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.composer-icon-btn {
  background: #f1f3f4 !important;
  border: none !important;
  color: #374151 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.composer-icon-btn:hover {
  background: #e5e7eb !important;
  color: #111111 !important;
}

.composer-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.composer-publish-btn {
  font-family: "Inter var", Inter, -apple-system, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 0 20px !important;
  height: 40px !important;
  border-radius: 16px !important;
  border: none !important;
  background: #de3163 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.composer-publish-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.composer-publish-btn:hover:not(:disabled) {
  background: #c22150 !important;
  transform: translateY(-1px) !important;
}

.composer-scroll-area {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  max-height: calc(100vh - 64px - 52px - 50px) !important;
  padding: 8px 20px 16px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  background: #ffffff !important;
}

.composer-title-section {
  width: 100% !important;
}

.composer-title-input {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  font-family: "Inter var", Inter, -apple-system, sans-serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #111111 !important;
  outline: none !important;
  padding: 4px 0 !important;
}

.composer-title-input::placeholder {
  color: #9ca3af !important;
}

/* Padles Signature Striped Attachment Multi-Tool Panel */
.attachment-picker-box {
  background: #fbfbfb !important;
  border: 1px dashed #e2e2e2 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 165px !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  transition: border-color 0.2s ease !important;
}

.attachment-tools-strip {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) 1.25fr !important;
  height: 125px !important;
  border-bottom: 1px dashed #e2e2e2 !important;
  position: relative !important;
}

.tool-strip-col {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fafafa !important;
  border: none !important;
  border-right: 1px solid #f0f0f0 !important;
  cursor: pointer !important;
  padding: 0 !important;
  color: #4b5563 !important;
  transition: background 0.16s ease, color 0.16s ease !important;
  overflow: hidden !important;
  outline: none !important;
}

.tool-strip-col:last-child {
  border-right: none !important;
}

.tool-strip-col:nth-child(even) {
  background: #f5f5f5 !important;
}

.tool-strip-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  color: rgba(0, 0, 0, 0.04) !important;
  transition: color 0.16s ease !important;
}

.tool-icon-wrapper {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), color 0.16s ease !important;
}

.tool-strip-col:hover .tool-icon-wrapper {
  transform: scale(1.12) !important;
}

.tool-all-label {
  position: relative !important;
  z-index: 2 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  color: #4b5563 !important;
}

/* Unique authentic colors for each composer tool on hover */
.tool-strip-col[data-tool="upload"]:hover {
  background: #ffe4e6 !important;
  color: #e11d48 !important;
}
.tool-strip-col[data-tool="upload"]:hover .tool-strip-bg {
  color: rgba(225, 29, 72, 0.1) !important;
}

.tool-strip-col[data-tool="camera"]:hover {
  background: #e0f2fe !important;
  color: #0284c7 !important;
}
.tool-strip-col[data-tool="camera"]:hover .tool-strip-bg {
  color: rgba(2, 132, 199, 0.1) !important;
}

.tool-strip-col[data-tool="ai"]:hover {
  background: #ede9fe !important;
  color: #7c3aed !important;
}
.tool-strip-col[data-tool="ai"]:hover .tool-strip-bg {
  color: rgba(124, 58, 237, 0.1) !important;
}

.tool-strip-col[data-tool="link"]:hover {
  background: #d1fae5 !important;
  color: #059669 !important;
}
.tool-strip-col[data-tool="link"]:hover .tool-strip-bg {
  color: rgba(5, 150, 105, 0.1) !important;
}

.tool-strip-col[data-tool="search"]:hover {
  background: #fef3c7 !important;
  color: #d97706 !important;
}
.tool-strip-col[data-tool="search"]:hover .tool-strip-bg {
  color: rgba(217, 119, 6, 0.1) !important;
}

.tool-strip-col[data-tool="all"]:hover {
  background: #e0e7ff !important;
  color: #4f46e5 !important;
}
.tool-strip-col[data-tool="all"]:hover .tool-strip-bg {
  color: rgba(79, 70, 229, 0.1) !important;
}
.tool-strip-col[data-tool="all"]:hover .tool-all-label {
  color: #4f46e5 !important;
}

.attachment-prompt-bar {
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 14px !important;
  background: transparent !important;
  font-size: 13px !important;
  color: #6b7280 !important;
}

.prompt-bar-text {
  color: #6b7280 !important;
  font-weight: 400 !important;
  font-size: 12px !important;
}

.prompt-bar-shortcut {
  color: #8b5cf6 !important;
  font-weight: 500 !important;
  font-size: 12px !important;
}

/* Body / Textarea */
.composer-body-section {
  width: 100% !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.composer-body-textarea {
  width: 100% !important;
  flex: 0 0 auto !important;
  background: transparent !important;
  border: none !important;
  font-family: "Inter var", Inter, -apple-system, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #111111 !important;
  outline: none !important;
  resize: none !important;
  min-height: 38px !important;
  overflow-y: hidden !important;
  padding: 4px 0 !important;
}

.composer-body-textarea::placeholder {
  color: #9ca3af !important;
}

/* Bottom Controls */
.composer-bottom-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 20px 16px 20px !important;
  background: #ffffff !important;
}

.composer-bottom-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.composer-selector-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  outline: none !important;
  height: 28px !important;
}

.composer-selector-pill:hover {
  background: #f9fafb !important;
  border-color: #d1d5db !important;
}

.color-dot-indicator {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.composer-fields-btn {
  background: transparent !important;
  border: none !important;
  color: #6b7280 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  outline: none !important;
}

.composer-fields-btn:hover {
  background: #f3f4f6 !important;
  color: #111111 !important;
}

/* ==========================================================================
   Padlet Popovers (Picture 2 & 3)
   ========================================================================== */

.padlet-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  padding: 16px;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  animation: popoverFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  color: #111111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  padding: 16px 16px 12px 16px;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  animation: popoverFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.padlet-popover[hidden] {
  display: none !important;
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Color Popover (Picture 2) */
.color-popover {
  width: 240px;
}

.popover-title-row {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  text-align: center;
  margin-bottom: 12px;
}

.color-options-list {
  display: flex;
  flex-direction: column;
}

.color-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.12s ease;
  border-radius: 8px;
}

.color-option-row:last-child {
  border-bottom: none;
}

.color-option-row:hover {
  background: #f9fafb;
}

.color-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-swatch-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.color-option-name {
  font-size: 14px;
  font-weight: 500;
  color: #111111;
}

/* Radio Button in Color Popover */
.color-radio-ring {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.color-option-row.is-selected .color-radio-ring {
  border: 2.5px solid #eab308;
  background: #eab308;
  box-shadow: inset 0 0 0 3px #18191c;
}

/* Section Popover (Picture 3) */
.section-popover {
  width: 260px;
}

.popover-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
}

.popover-header-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  flex: 1;
  padding-left: 36px;
}

.popover-new-btn {
  font-size: 14.5px;
  font-weight: 700;
  color: #ff2a70;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: opacity 0.15s ease;
}

.popover-new-btn:hover {
  opacity: 0.8;
}

.section-options-list {
  display: flex;
  flex-direction: column;
  max-height: 260px;
  overflow-y: auto;
}

.section-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 6px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  transition: background 0.12s ease;
  border-radius: 8px;
}

.section-option-row:last-child {
  border-bottom: none;
}

.section-option-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.section-option-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.section-check-icon {
  color: #eab308;
  display: none;
  flex-shrink: 0;
  margin-left: 10px;
}

.section-option-row.is-selected .section-check-icon {
  display: block;
}

/* ==========================================================================
   Post Fields Modal (Picture 4)
   ========================================================================== */

.post-fields-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.18s ease;
}

.post-fields-backdrop[hidden] {
  display: none !important;
}

.post-fields-dialog {
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  width: 400px;
  max-width: 92vw;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: composerPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-fields-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.post-fields-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.post-fields-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.post-fields-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.post-fields-body {
  padding: 18px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fields-group-box {
  background: #24252a;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.field-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.field-item-row:last-child {
  border-bottom: none;
}

.field-label {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
}

.field-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
}

.field-status-chip:hover {
  color: rgba(255, 255, 255, 0.85);
}

.custom-fields-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-fields-headline {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  padding-left: 2px;
}

.add-custom-field-btn {
  background: #24252a;
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
  text-align: left;
}

.add-custom-field-btn:hover {
  background: #2c2d33;
}

.custom-field-meta-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.custom-field-plus-icon {
  font-size: 24px;
  font-weight: 700;
  color: #eab308;
  line-height: 1;
}

.custom-field-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.custom-field-main-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #eab308;
}

.custom-field-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.custom-field-arrow-icon {
  color: rgba(255, 255, 255, 0.4);
}

.custom-fields-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-field-row {
  background: #24252a;
  border-radius: 12px;
  padding: 10px 14px;
}

.custom-field-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-field-type-badge {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: capitalize;
}

.custom-field-del-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.12s ease;
}

.custom-field-del-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.composer-custom-fields-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.composer-custom-fields-area:empty {
  display: none;
}

.composer-cf-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.composer-cf-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #eab308;
  display: flex;
  align-items: center;
  gap: 6px;
}

.composer-cf-input {
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
}

.composer-cf-input:focus {
  border-color: #eab308;
}

.card-custom-fields-box {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-cf-chip {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Color Palette Dropdown in Header */
.color-picker-dropdown-wrapper {
  position: relative;
}

.composer-color-palette {
  position: absolute;
  top: 36px;
  right: 0;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.color-palette-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.color-palette-circle:hover {
  transform: scale(1.2);
}

/* Sub-modal for Search/Attach */
.submodal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 16px;
}

.submodal-backdrop[hidden] {
  display: none !important;
}

.submodal-dialog {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  width: 520px;
  max-width: 94vw;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.submodal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.submodal-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.submodal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.submodal-search-row {
  display: flex;
  gap: 10px;
}

.submodal-search-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.submodal-search-row input:focus {
  border-color: var(--aurora-glow);
}

.btn-submodal-search {
  background: var(--aurora-glow);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-submodal-search:hover {
  background: #0f8288;
}

.media-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.media-result-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s ease;
}

.media-result-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.media-result-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.media-result-title {
  padding: 6px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 28px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 3000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Section Column Context Menu (Blueprint Section 2.2)
   ========================================================================== */

.section-context-menu {
  position: fixed;
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 8px;
  min-width: 270px;
  z-index: 3500;
  display: flex;
  flex-direction: column;
  animation: popoverFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.section-context-menu[hidden] {
  display: none !important;
}

.menu-action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease, color 0.12s ease;
  width: 100%;
}

.menu-action-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.menu-action-item svg {
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

.menu-action-item:hover svg {
  color: #ffffff;
}

.menu-item-danger {
  color: #ef4444 !important;
}

.menu-item-danger svg {
  color: #ef4444 !important;
}

.menu-item-danger:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
}

.menu-item-danger:hover svg {
  color: #f87171 !important;
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 4px;
}

/* ==========================================================================
   Schedule Post Modal (Blueprint Section 5.2)
   ========================================================================== */

.schedule-dialog {
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  width: 380px;
  max-width: 90vw;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: composerPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.schedule-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.schedule-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.schedule-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.schedule-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-input-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.schedule-datetime-input {
  width: 100%;
  background: #24252a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
}

.schedule-datetime-input:focus {
  border-color: #ff3366;
  box-shadow: 0 0 0 2px rgba(255, 51, 102, 0.25);
}

.schedule-timezone-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.schedule-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.schedule-btn-cancel {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.schedule-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.schedule-btn-set {
  background: #ff3366;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.schedule-btn-set:hover {
  background: #ff1a53;
  transform: translateY(-1px);
}

/* ==========================================================================
   All Tools Modal (Blueprint Section 5.1: 21 Built-In Tools)
   ========================================================================== */

.all-tools-dialog {
  background-color: rgb(17, 17, 17);
  border-radius: 24px;
  width: 720px;
  max-width: min(720px, calc(100vw - 32px));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  border: none;
}

.all-tools-header {
  display: flex;
  align-items: center;
  padding: 16px 16px 12px 16px;
  background-color: rgb(17, 17, 17);
  position: relative;
  box-sizing: border-box;
}

.all-tools-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: rgb(212, 214, 218);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
  padding: 0;
}

.all-tools-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.all-tools-close-btn svg {
  fill: currentColor;
}

.all-tools-search-wrap {
  flex: 1;
  margin-left: 16px;
  margin-right: 16px;
  height: 40px;
  border-radius: 16px;
  background-color: rgb(36, 37, 39);
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-sizing: border-box;
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.all-tools-search-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
}

.all-tools-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-stack, "Inter var", Inter, sans-serif);
  font-size: 14px;
  color: rgb(255, 255, 255);
  box-sizing: border-box;
}

.all-tools-search-input::placeholder {
  color: rgb(156, 163, 175);
}

.all-tools-paste-btn {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: rgb(212, 214, 218);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
  padding: 0;
}

.all-tools-paste-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.all-tools-paste-btn svg {
  fill: currentColor;
}

.all-tools-url-submit {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: none;
  background-color: #de3163;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
  padding: 0;
}

.all-tools-url-submit:hover {
  opacity: 0.9;
}

.all-tools-body {
  padding: 0 16px 16px 16px;
  overflow-y: auto;
  max-height: calc(88vh - 80px);
  background-color: rgb(17, 17, 17);
  box-sizing: border-box;
}

.all-tools-groups-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.all-tools-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.all-tools-btn {
  height: 40px;
  border-radius: 12px;
  background-color: rgb(36, 37, 39);
  border: none;
  color: rgb(255, 255, 255);
  padding: 0 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-stack, "Inter var", Inter, sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.all-tools-btn:hover {
  background-color: rgb(48, 50, 54);
}

.all-tools-btn:active {
  background-color: rgb(58, 60, 65);
}

.all-tools-btn-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.all-tools-btn-icon svg {
  fill: currentColor;
  width: 24px;
  height: 24px;
}

/* Authentic Padlet Category Icon Colors */
.text-grape {
  color: rgb(148, 102, 232) !important;
}

.text-oceanic {
  color: rgb(57, 146, 222) !important;
}

.text-park {
  color: rgb(61, 199, 49) !important;
}

.text-tangerine {
  color: rgb(255, 131, 62) !important;
}

.all-tools-btn-label {
  margin: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  font-size: 14px;
  color: rgb(255, 255, 255);
  text-align: left;
}

.all-tools-badge-new {
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background-color: rgb(0, 78, 0);
  color: rgb(255, 255, 255);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}


/* ==========================================================================
   Unified AV Studio Modal (Photo, Video, Audio, Screen)
   ========================================================================== */

.av-recorder-dialog {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  width: 720px;
  max-width: min(720px, calc(100vw - 32px));
  height: 540px;
  max-height: 88vh;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: composerPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.av-recorder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f3f4;
  background: #ffffff;
  z-index: 10;
}

.av-header-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f3f4;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.av-header-btn:hover {
  background: #e5e7eb;
  color: #111111;
}

.av-header-spacer {
  width: 36px;
  height: 36px;
}

.av-mode-segmented-pill {
  display: flex;
  align-items: center;
  background: #f1f3f4;
  padding: 3px;
  border-radius: 9999px;
  gap: 2px;
}

.av-mode-tab {
  padding: 6px 16px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}

.av-mode-tab:hover {
  color: #111111;
}

.av-mode-tab.is-active {
  background: #ffffff;
  color: #111111;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.av-viewport-stage {
  flex: 1;
  position: relative;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.av-capture-view {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.av-video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.av-video-preview.is-mirrored {
  transform: scaleX(-1);
}

.av-audio-waveform {
  width: 88%;
  height: 160px;
  max-width: 520px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
}

.av-screen-preflight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 32px 24px;
  max-width: 440px;
}

.av-screen-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #38bdf8;
}

.av-screen-preflight h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.av-screen-preflight p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.av-screen-mic-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  margin-bottom: 22px;
  user-select: none;
}

.av-screen-mic-toggle input[type="checkbox"] {
  accent-color: #de3163;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.av-btn-primary {
  background: #de3163;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 11px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(222, 49, 99, 0.4);
}

.av-btn-primary:hover {
  background: #c2185b;
  transform: translateY(-1px);
}

.av-permission-error {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 24px;
  z-index: 30;
}

.av-permission-error svg {
  color: #f87171;
  margin-bottom: 14px;
}

.av-permission-error h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.av-permission-error p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 380px;
  margin: 0 0 18px 0;
  line-height: 1.45;
}

.av-btn-retry {
  background: #f1f3f4;
  color: #111111;
  border: none;
  border-radius: 9999px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.av-btn-retry:hover {
  background: #ffffff;
}

.av-countdown-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 110px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 20;
  animation: avCountPulse 1s infinite;
}

@keyframes avCountPulse {
  0% { transform: scale(1.2); opacity: 0.8; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.av-recording-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  z-index: 15;
}

.av-recording-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  animation: avPulseDot 1.2s infinite;
}

@keyframes avPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.av-review-view {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.av-review-media-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.av-review-media-wrap img,
.av-review-media-wrap video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.av-review-media-wrap audio {
  width: 80%;
  max-width: 480px;
}

.av-audio-review-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 32px 24px;
  max-width: 480px;
  width: 90%;
}

.av-audio-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(222, 49, 99, 0.18);
  color: #ff4081;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.av-audio-review-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 18px 0;
}

.av-audio-review-card audio {
  width: 100%;
}

.av-action-dock {
  height: 80px;
  background: #ffffff;
  border-top: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  position: relative;
}

.av-dock-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.av-timer-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.av-dock-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.av-timer-pill {
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}

.av-timer-pill:hover {
  background: #f3f4f6;
  color: #111111;
}

.av-timer-pill.is-active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.av-shutter-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #de3163;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.av-shutter-btn:hover {
  transform: scale(1.06);
}

.av-shutter-btn:active .av-shutter-inner {
  transform: scale(0.88);
}

.av-shutter-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #de3163;
  transition: all 0.1s ease;
}

.av-record-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #ef4444;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
}

.av-record-btn:hover {
  transform: scale(1.06);
}

.av-record-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ef4444;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.av-record-btn.is-recording .av-record-inner {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.av-record-btn.is-audio {
  border-color: #ec4899;
  color: #ffffff;
  background: #ec4899;
}

.av-record-btn.is-audio:hover {
  background: #db2777;
}

.av-record-btn.is-audio.is-recording {
  background: #ef4444;
  border-color: #ef4444;
}

.av-action-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.av-action-icon-btn:hover {
  background: #f3f4f6;
  color: #111111;
}

.av-action-icon-btn.is-active {
  background: #f3e8ff;
  border-color: #d8b4fe;
  color: #9333ea;
}

.av-dock-spacer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.av-dock-hint {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
}

.av-stop-screen-btn {
  background: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 10px 24px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.av-stop-screen-btn:hover {
  background: #dc2626;
}

.av-stop-square {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 2px;
}

.av-btn-secondary {
  background: #f1f3f4;
  color: #374151;
  border: none;
  border-radius: 9999px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.av-btn-secondary:hover {
  background: #e5e7eb;
  color: #111111;
}

.av-btn-save {
  background: #de3163;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 10px 26px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(222, 49, 99, 0.35);
}

.av-btn-save:hover {
  background: #c2185b;
  transform: translateY(-1px);
}

/* ==========================================================================
   Drawing Whiteboard Canvas Modal (Padlet Parity)
   ========================================================================== */

.draw-modal-dialog {
  background: #ffffff;
  border-radius: 24px;
  width: 920px;
  max-width: 95vw;
  height: 680px;
  max-height: 90vh;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: composerPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.draw-modal-header {
  height: 64px;
  border-bottom: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #ffffff;
  flex-shrink: 0;
  z-index: 10;
}

.draw-dialog-title {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.draw-stage-container {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  transition: background-color 0.2s ease;
  cursor: crosshair;
}

.draw-stage-container.is-dark-bg {
  background: #1e2022;
}

.draw-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.draw-floating-toolbar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  z-index: 20;
}

.draw-toolbar-sep {
  width: 1px;
  height: 24px;
  background: #e5e7eb;
  margin: 0 4px;
}

.draw-tool-group,
.draw-stroke-group,
.draw-color-palette,
.draw-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.draw-tool-btn,
.draw-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.draw-tool-btn:hover,
.draw-icon-btn:hover:not(:disabled) {
  background: #f3f4f6;
  color: #111111;
}

.draw-tool-btn.is-active {
  background: #fdf2f8;
  color: #de3163;
  border-color: #fbcfe8;
}

.draw-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.draw-icon-btn.is-danger:hover:not(:disabled) {
  background: #fef2f2;
  color: #ef4444;
}

.draw-size-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.draw-size-btn:hover {
  background: #f3f4f6;
}

.draw-size-btn.is-active {
  background: #f1f3f4;
  border-color: #d1d5db;
}

.draw-size-dot {
  background: #111111;
  border-radius: 50%;
  display: block;
}

.draw-size-dot.is-s { width: 4px; height: 4px; }
.draw-size-dot.is-m { width: 7px; height: 7px; }
.draw-size-dot.is-l { width: 12px; height: 12px; }
.draw-size-dot.is-xl { width: 18px; height: 18px; }

.draw-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease;
}

.draw-color-swatch:hover {
  transform: scale(1.15);
}

.draw-color-swatch.is-active {
  transform: scale(1.25);
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #111111;
}

/* ==========================================================================
   Interactive Poll Creator Modal (Padlet Parity)
   ========================================================================== */

.poll-modal-dialog {
  background: #ffffff;
  border-radius: 24px;
  width: 500px;
  max-width: 92vw;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: composerPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.poll-modal-header {
  height: 64px;
  border-bottom: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #ffffff;
}

.poll-dialog-title {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.poll-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.poll-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.poll-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-family: inherit;
  font-size: 14px;
  color: #111111;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.poll-input:focus {
  background: #ffffff;
  border-color: #de3163;
  box-shadow: 0 0 0 3px rgba(222, 49, 99, 0.12);
}

.poll-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poll-option-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.poll-option-row .poll-input {
  flex: 1;
}

.poll-option-remove-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.poll-option-remove-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.poll-add-option-btn {
  background: transparent;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  padding: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.poll-add-option-btn:hover {
  border-color: #de3163;
  color: #de3163;
  background: #fdf2f8;
}

.poll-settings-group {
  border-top: 1px solid #f1f3f4;
  padding-top: 16px;
}

.poll-switch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.poll-switch-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #de3163;
  cursor: pointer;
}

/* ==========================================================================
   Location Map Picker Modal (Padlet Parity)
   ========================================================================== */

.location-modal-dialog {
  background: #ffffff;
  border-radius: 24px;
  width: 760px;
  max-width: 94vw;
  height: 600px;
  max-height: 88vh;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: composerPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-modal-header {
  height: 64px;
  border-bottom: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: #ffffff;
  flex-shrink: 0;
}

.location-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f3f4;
  border-radius: 9999px;
  padding: 8px 16px;
}

.location-search-icon {
  color: #6b7280;
  flex-shrink: 0;
}

.location-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: #111111;
  outline: none;
}

.location-modal-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}

.location-results-dropdown {
  position: absolute;
  top: 8px;
  left: 20px;
  right: 20px;
  max-height: 220px;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  z-index: 30;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.location-result-item {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 13.5px;
  color: #111111;
  cursor: pointer;
  transition: background-color 0.1s ease;
  line-height: 1.4;
}

.location-result-item:hover {
  background: #f3f4f6;
}

.location-map-stage {
  width: 100%;
  height: 100%;
  position: relative;
}

.location-map-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.location-pin-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 15;
}

.location-pin-marker {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: pinBounce 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pinBounce {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.location-pin-label {
  margin-top: 6px;
  background: rgba(17, 24, 39, 0.88);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Link Attachment Modal (Padlet Parity)
   ========================================================================== */

.link-modal-dialog {
  background: #ffffff;
  border-radius: 24px;
  width: 520px;
  max-width: 92vw;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: composerPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-modal-header {
  height: 64px;
  border-bottom: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #ffffff;
}

.link-dialog-title {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.link-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.link-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.link-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-family: inherit;
  font-size: 14px;
  color: #111111;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.link-input:focus {
  background: #ffffff;
  border-color: #de3163;
  box-shadow: 0 0 0 3px rgba(222, 49, 99, 0.12);
}

.link-paste-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #374151;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.link-paste-btn:hover {
  background: #e5e7eb;
  color: #111111;
}

.link-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  animation: fadeIn 0.15s ease;
}

.link-preview-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-preview-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.link-preview-host {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-preview-title {
  font-size: 12.5px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   AI Art Generator Modal (Padlet "I can't draw" Parity)
   ========================================================================== */

.ai-art-modal-dialog {
  background: #ffffff;
  border-radius: 24px;
  width: 580px;
  max-width: 94vw;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: composerPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
}

.ai-art-modal-header {
  height: 64px;
  border-bottom: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #ffffff;
  flex-shrink: 0;
}

.ai-art-dialog-title {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.ai-art-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.ai-art-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-art-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.ai-art-prompt-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-family: inherit;
  font-size: 14px;
  color: #111111;
  outline: none;
  resize: vertical;
  min-height: 72px;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.ai-art-prompt-input:focus {
  background: #ffffff;
  border-color: #de3163;
  box-shadow: 0 0 0 3px rgba(222, 49, 99, 0.12);
}

.ai-art-styles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-art-style-chip {
  height: 32px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-art-style-chip:hover {
  background: #f3f4f6;
  color: #111111;
}

.ai-art-style-chip.is-selected {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  font-weight: 600;
}

.ai-art-examples-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-art-example-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #f3f4f6;
  color: #4b5563;
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-art-example-btn:hover {
  background: #e5e7eb;
  color: #111111;
}

.ai-art-result-wrap {
  margin-top: 4px;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  display: flex;
  flex-direction: column;
}

.ai-art-loading-shimmer {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.ai-art-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #de3163;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ai-art-preview-stage {
  display: flex;
  flex-direction: column;
}

.ai-art-result-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.ai-art-actions-bar {
  padding: 12px 16px;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-art-btn-secondary {
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-art-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Interactive Poll Card Body on Shelf */
.card-poll-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #f1f3f4;
  margin-top: 8px;
}

.card-poll-question {
  font-size: 14.5px;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.card-poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-poll-option-btn {
  width: 100%;
  position: relative;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.15s ease;
}

.card-poll-option-btn:hover {
  border-color: #de3163;
}

.card-poll-option-btn.has-voted {
  border-color: #de3163;
  font-weight: 600;
}

.card-poll-bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: rgba(222, 49, 99, 0.12);
  border-radius: 7px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.card-poll-option-text {
  position: relative;
  z-index: 2;
}

.card-poll-option-pct {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.card-poll-footer {
  font-size: 11.5px;
  color: #9ca3af;
  text-align: right;
  margin-top: 2px;
}

/* Audio Player Card on Shelf */
.card-audio-container {
  padding: 10px 12px;
  background: #fdf2f8;
  border-radius: 12px;
  border: 1px solid #fce7f3;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-audio-container audio {
  width: 100%;
  height: 38px;
}

/* Location Card on Shelf */
.card-location-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  margin-top: 8px;
  background: #ffffff;
}

.card-location-map-wrap {
  width: 100%;
  height: 140px;
  position: relative;
  background: #e2e8f0;
}

.card-location-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.card-location-info {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-location-title {
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-location-link {
  font-size: 12px;
  color: #de3163;
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
}

.card-location-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Custom Field Schema Builder (Blueprint Section 6.2)
   ========================================================================== */

.custom-field-dialog {
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  width: 440px;
  max-width: 92vw;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: composerPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.custom-field-back-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.custom-field-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.custom-field-dialog-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.custom-field-builder-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.builder-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.builder-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.builder-input,
.builder-select {
  width: 100%;
  background: #24252a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.builder-input:focus,
.builder-select:focus {
  border-color: #eab308;
}

.builder-select option {
  background: #24252a;
  color: #ffffff;
}

.builder-type-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.builder-toggle-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.builder-toggle-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.builder-toggle-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #3f3f46;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: #eab308;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.custom-field-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.custom-field-save-btn {
  background: #eab308;
  border: none;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.custom-field-save-btn:hover {
  background: #facc15;
  transform: translateY(-1px);
}

/* ==========================================================================
   Draft Discard Undo Toast (Blueprint Section 7.1)
   ========================================================================== */

.draft-undo-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #fef08a;
  color: #713f12;
  border-radius: 9999px;
  padding: 10px 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 4000;
  animation: toastSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 14px;
  font-weight: 700;
}

.draft-undo-toast[hidden] {
  display: none !important;
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.draft-undo-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.draft-undo-check {
  font-weight: 900;
}

.draft-undo-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.draft-undo-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  color: #713f12;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.draft-undo-btn:hover {
  color: #452407;
}

.draft-undo-shortcut {
  background: rgba(113, 63, 18, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

/* ==========================================================================
   Padlet Post Workflow: Bulk Menu Speech-Bubble Tail & Card Action Buttons
   ========================================================================== */

.bulk-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bulk-menu-tail {
  position: absolute;
  bottom: -10px;
  right: 14px;
  color: #18191c;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

/* Card Header Action Controls */
.card-action-group {
  display: flex;
  align-items: center;
  gap: 3px;
  border-radius: 8px;
  padding: 1px 3px;
  transition: background-color 0.15s ease;
}

.padlet-card:hover .card-action-group {
  background: rgba(0, 0, 0, 0.06);
}

.card-edit-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--card-text-body);
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.padlet-card:hover .card-edit-btn {
  opacity: 1;
  pointer-events: auto;
}

.card-edit-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--card-text-title);
}

.card-action-divider {
  width: 1px;
  height: 12px;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.padlet-card:hover .card-action-divider {
  opacity: 1;
}

/* ==========================================================================
   Padlet Post Context Menu (14 Actions & 6 Color Swatches)
   ========================================================================== */

.card-context-menu {
  position: fixed;
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
  padding: 8px !important;
  width: 256px !important;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  z-index: 1800;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: composerPopIn 0.15s ease;
  user-select: none;
}

.card-context-menu .menu-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.card-context-menu .menu-action-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  background: transparent !important;
  border: none !important;
  color: #111111 !important;
  font-family: 'Inter var', Inter, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: left !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: background 0.12s ease !important;
}

.card-context-menu .menu-action-item:hover {
  background: #f3f4f6 !important;
  color: #111111 !important;
}

.card-context-menu .menu-action-item svg {
  color: #4b5563 !important;
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
}

.card-context-menu .menu-action-item:hover svg {
  color: #111111 !important;
}

.card-context-menu .menu-action-item[data-action='delete-post'] {
  color: #ef4444 !important;
}

.card-context-menu .menu-action-item[data-action='delete-post'] svg {
  color: #ef4444 !important;
}

.card-context-menu .menu-action-item[data-action='delete-post']:hover {
  background: #fef2f2 !important;
}

.card-context-menu .menu-divider {
  height: 1px !important;
  background: rgba(0, 0, 0, 0.08) !important;
  margin: 4px 0 !important;
  border: none !important;
}

.card-context-menu .menu-item-divider {
  height: 0.5px !important;
  background: rgba(0, 0, 0, 0.08) !important;
  margin: 0 16px 0 42px !important;
  border: none !important;
}

.card-context-menu .menu-colors-group {
  padding: 4px 6px;
}

.menu-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  margin-bottom: 4px;
}

.menu-color-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  color: #111111;
  outline: none;
}

.menu-color-circle:hover {
  transform: scale(1.18);
}

.menu-color-circle.is-active {
  box-shadow: 0 0 0 2px #ff1f6d;
}

.menu-color-circle svg {
  width: 12px;
  height: 12px;
}

/* Dark Theme Support for Context Menus on Dark / Aurora boards */
body.aurora-theme .card-context-menu,
body.dark-mode .card-context-menu,
.card-context-menu.dark-theme,
body.aurora-theme .section-context-menu,
body.dark-mode .section-context-menu,
.section-context-menu.dark-theme {
  background: #181818 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

body.aurora-theme .card-context-menu .menu-action-item,
body.dark-mode .card-context-menu .menu-action-item,
body.aurora-theme .section-context-menu .menu-action-item,
body.dark-mode .section-context-menu .menu-action-item {
  color: #ffffff !important;
}

body.aurora-theme .card-context-menu .menu-action-item svg,
body.dark-mode .card-context-menu .menu-action-item svg,
body.aurora-theme .section-context-menu .menu-action-item svg,
body.dark-mode .section-context-menu .menu-action-item svg {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.aurora-theme .card-context-menu .menu-action-item:hover,
body.dark-mode .card-context-menu .menu-action-item:hover,
body.aurora-theme .section-context-menu .menu-action-item:hover,
body.dark-mode .section-context-menu .menu-action-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

body.aurora-theme .card-context-menu .menu-action-item:hover svg,
body.dark-mode .card-context-menu .menu-action-item:hover svg,
body.aurora-theme .section-context-menu .menu-action-item:hover svg,
body.dark-mode .section-context-menu .menu-action-item:hover svg {
  color: #ffffff !important;
}

body.aurora-theme .card-context-menu .menu-divider,
body.dark-mode .card-context-menu .menu-divider,
body.aurora-theme .card-context-menu .menu-item-divider,
body.dark-mode .card-context-menu .menu-item-divider,
body.aurora-theme .section-context-menu .menu-divider,
body.dark-mode .section-context-menu .menu-divider {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* ==========================================================================
   Post Detail / Expanded Theater View Modal
   ========================================================================== */

.card-detail-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalBackdropFadeIn 0.18s ease;
}

.card-detail-theater {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  background: #111113;
  overflow: hidden;
  position: relative;
}

/* Attachment Area (Left/Center) */
.detail-attachment-area {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0d0e11;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
  padding: 32px;
}

.detail-close-btn {
  position: absolute;
  top: 20px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  transition: all 0.15s ease;
}

.detail-close-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.05);
}

.detail-media-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-media-canvas img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.detail-media-canvas iframe,
.detail-media-canvas video {
  width: 80%;
  height: 70%;
  border-radius: 16px;
  border: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.detail-text-presentation {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 36px;
  max-width: 680px;
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.6;
  max-height: 75vh;
  overflow-y: auto;
}

/* Detail Right Sidebar */
.detail-sidebar {
  width: 360px;
  flex-shrink: 0;
  background: #18191d;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  color: #ffffff;
}

.detail-sidebar-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: #38bdf8;
  clip-path: polygon(100% 0%, 0% 0%, 100% 100%);
  z-index: 5;
}

.detail-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-header-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-board-title {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.detail-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.detail-post-subject {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
}

.detail-post-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.detail-post-body ul {
  padding-left: 20px;
  margin-top: 8px;
}

.detail-post-body li {
  margin-bottom: 6px;
}

.detail-post-body strong {
  color: #ffffff;
}

.detail-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.detail-reactions-row {
  display: flex;
  align-items: center;
}

.detail-reaction-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.detail-reaction-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.detail-reaction-btn.has-reacted {
  background: rgba(255, 31, 109, 0.2);
  color: #ff1f6d;
}

/* Comments Area */
.detail-comments-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.detail-comments-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
}

.detail-comment-bubble {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.detail-comment-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 2px;
}

.detail-comment-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 2px 6px 2px 12px;
}

.detail-comment-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  padding: 6px 0;
}

.detail-comment-submit {
  background: transparent;
  border: none;
  color: #ff1f6d;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: transform 0.15s ease;
}

.detail-comment-submit:hover {
  transform: scale(1.15);
}

/* Far Right Nav Strip */
.detail-nav-strip {
  width: 48px;
  background: #111113;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 16px;
  user-select: none;
}

.detail-post-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.detail-counter-line {
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.detail-total-num {
  color: rgba(255, 255, 255, 0.45);
}

.detail-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.detail-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.08);
}

/* ============================================================================
   Supabase Cloud Backend Integration Styles
   ============================================================================ */

.cloud-status-pill {
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  padding: 5px 12px;
}

.cloud-status-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.25s ease;
}

.status-indicator-dot.connected {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-indicator-dot.connecting {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: pulse-dot 1.2s infinite ease-in-out;
}

.status-indicator-dot.disconnected {
  background: rgba(255, 255, 255, 0.4);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.collaborators-strip {
  display: flex;
  align-items: center;
  margin-left: 2px;
  margin-right: 4px;
}

.collaborator-avatar-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #121212;
  margin-left: -8px;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.collaborator-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cloud Settings Modal */
.cloud-settings-dialog {
  max-width: 580px;
  width: 100%;
  border-radius: 20px;
  background: #141417;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.cloud-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cloud-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 31, 109, 0.15);
  color: #ff1f6d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cloud-modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.cloud-modal-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.cloud-modal-body {
  gap: 16px;
  padding: 20px 24px 24px;
}

.cloud-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.status-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.cloud-test-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cloud-test-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cloud-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cloud-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cloud-form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.cloud-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cloud-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #ffffff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cloud-input:focus {
  border-color: #ff1f6d;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 2px rgba(255, 31, 109, 0.25);
}

.cloud-key-toggle-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
}

.cloud-input-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.cloud-input-hint code {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
}

.cloud-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.cloud-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ff1f6d;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 31, 109, 0.35);
  transition: all 0.15s ease;
}

.cloud-btn-primary:hover {
  background: #ff337b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 31, 109, 0.45);
}

.cloud-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cloud-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.cloud-btn-outline {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.15s ease;
}

.cloud-btn-outline:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.cloud-guide-accordion {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  margin-top: 4px;
}

.cloud-guide-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.cloud-guide-toggle:hover {
  color: #ffffff;
}

.cloud-guide-content {
  padding: 12px 16px 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.5;
}

.cloud-guide-content ol {
  padding-left: 20px;
  margin: 8px 0;
}

.cloud-guide-content a {
  color: #ff1f6d;
  text-decoration: underline;
}

.guide-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 10px;
  font-family: monospace;
  font-size: 0.78rem;
}

.guide-copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  cursor: pointer;
}

/* ==========================================================================
   1. Fullscreen Slideshow Mode (Padles-Authentic Presentation Deck)
   ========================================================================== */

.slideshow-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: #031b26;
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% 20%, rgba(20, 184, 166, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(56, 189, 248, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 40%, rgba(16, 185, 129, 0.2) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  color: #ffffff;
  user-select: none;
  animation: slideshowFadeIn 0.25s ease forwards;
}

.slideshow-overlay[hidden] {
  display: none !important;
}

@keyframes slideshowFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slideshow-deck-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
}

.slideshow-top-controls {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 20;
}

.slideshow-icon-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  backdrop-filter: blur(8px);
}

.slideshow-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.05);
}

/* Slide Viewport */
.slideshow-slide-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px 100px 60px;
  overflow: hidden;
  position: relative;
}

/* Title Slide Style (Slide 1) */
.slideshow-title-slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  padding-bottom: 40px;
  position: relative;
  animation: slideContentPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slideshow-qr-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffffff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.slideshow-title-author {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.slideshow-title-heading {
  font-size: 3.2rem;
  font-weight: 800;
  color: #facc15;
  line-height: 1.18;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Card Slide Style (Slide 2+) */
.slideshow-card-slide {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 40px 48px;
  width: 100%;
  max-width: 860px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideContentPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideContentPop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.slideshow-slide-section-pill {
  align-self: flex-start;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.slideshow-slide-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.slideshow-slide-media {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  max-height: 380px;
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}

.slideshow-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-slide-media iframe {
  width: 100%;
  height: 340px;
  border: none;
}

.slideshow-slide-body {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  white-space: pre-wrap;
}

.slideshow-slide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Floating Bottom Navigation Bar */
.slideshow-bottom-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  max-width: 95vw;
}

.slideshow-nav-group,
.slideshow-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slideshow-pill-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.slideshow-pill-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.slideshow-pill-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slideshow-counter-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  min-width: 50px;
  text-align: center;
}

.slideshow-timeline-track {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
}

.slideshow-timeline-notch {
  width: 22px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.slideshow-timeline-notch:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slideshow-timeline-notch.is-active {
  background: #38bdf8;
  width: 32px;
}

.slideshow-pill-action {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.slideshow-pill-action:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   2. Slide-In Drawers (Share, Settings, Additional Options)
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  animation: drawerBackdropFade 0.2s ease forwards;
}

.drawer-backdrop[hidden] {
  display: none !important;
}

@keyframes drawerBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.drawer-panel {
  width: 440px;
  max-width: 92vw;
  height: 100%;
  background: #111111;
  color: #ffffff;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  animation: drawerSlideIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.light-theme .drawer-panel {
  background: #ffffff;
  color: #0f172a;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.35);
}

@keyframes drawerSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

body.light-theme .drawer-header {
  border-bottom-color: #f1f5f9;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.light-theme .drawer-close-btn {
  color: #64748b;
}

body.light-theme .drawer-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.drawer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

body.light-theme .drawer-title {
  color: #0f172a;
}

.drawer-header-spacer {
  width: 32px;
}

.settings-save-pill {
  background: #ff1f6d;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.settings-save-pill:hover {
  background: #e6195e;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Quick Colored Tiles Row */
.share-quick-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.share-quick-tiles:has(.quick-tile:nth-child(5)) {
  grid-template-columns: repeat(5, 1fr);
}

.quick-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 6px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.quick-tile:hover {
  transform: translateY(-2px);
  filter: brightness(0.96);
}

.tile-icon-box {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-pink { background: #ffe4e6; color: #e11d48; }
.tile-orange { background: #ffedd5; color: #ea580c; }
.tile-teal { background: #ccfbf1; color: #0d9488; }
.tile-blue { background: #e0f2fe; color: #0284c7; }
.tile-green { background: #dcfce7; color: #16a34a; }
.tile-gray { background: #f1f5f9; color: #475569; }

/* Drawer Sections & List Items */
.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-section-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  padding-left: 6px;
  margin-bottom: 4px;
}

.drawer-menu-list {
  background: #242527;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
}

body.light-theme .drawer-menu-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.drawer-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  transition: background 0.15s ease;
}

body.light-theme .drawer-menu-item {
  border-bottom-color: #f1f5f9;
  color: #1e293b;
}

.drawer-menu-item:last-child {
  border-bottom: none;
}

.drawer-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.light-theme .drawer-menu-item:hover {
  background: #f1f5f9;
}

.drawer-item-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

body.light-theme .drawer-item-icon {
  color: #64748b;
}

.drawer-item-text {
  flex: 1;
}

.drawer-chevron {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
  font-weight: 400;
}

body.light-theme .drawer-chevron {
  color: #cbd5e1;
}

.drawer-menu-item.item-danger {
  color: #e11d48;
}

.drawer-menu-item.item-danger .drawer-item-icon {
  color: #e11d48;
}

/* ==========================================================================
   Padles Authentic Settings Panel (surfaceSettingsMainPanel)
   ========================================================================== */

/* Header Board Icon & Description */
.surface-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.board-icon-badge {
  font-size: 2.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.surface-board-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
  max-width: 800px;
  line-height: 1.4;
  white-space: pre-wrap;
}

/* Settings Overlay */
.padlet-settings-overlay,
.padlet-settings-container,
.padlet-settings-container * {
  font-family: "Inter var", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  box-sizing: border-box;
}

/* Settings Overlay */
.padlet-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 30002;
  background: rgba(36, 37, 39, 0.8);
  font-size: 14px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.87);
  display: flex;
  justify-content: flex-end;
  pointer-events: auto;
  animation: settingsBackdropFade 0.2s ease forwards;
}

body.light-theme .padlet-settings-overlay {
  background: rgba(0, 0, 0, 0.45);
}

@keyframes settingsBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Settings Container (480px Floating Modal Box) */
.padlet-settings-container {
  position: absolute;
  top: 16px;
  bottom: 16px;
  right: 20px;
  width: 480px;
  max-width: calc(100vw - 32px);
  height: calc(100vh - 32px);
  background: rgb(17, 17, 17);
  color: rgba(0, 0, 0, 0.87);
  color-scheme: dark;
  font-size: 14px;
  line-height: 20px;
  border-radius: 24px;
  box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.25), 0px 8px 16px 0px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: settingsSlideIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.light-theme .padlet-settings-container {
  background: #ffffff;
  color: rgba(0, 0, 0, 0.87);
  color-scheme: light;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@keyframes settingsSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Subviews (Multi-panel sliding stack) */
.settings-subview {
  display: none;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-size: 14px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.87);
}

.settings-subview.active {
  display: flex;
}

/* Settings Header (Padlet 3-Column: Left 25%, Center 50%, Right 25%) */
.padlet-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 6px 16px;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.87);
}

.settings-header-col-left {
  width: 25%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.settings-header-col-center {
  width: 50%;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.settings-header-col-right {
  width: 25%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.padlet-settings-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.01px;
  text-align: center;
  color: rgb(255, 255, 255);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

body.light-theme .padlet-settings-title {
  color: rgb(17, 17, 17);
}

/* Close & Back Button (32x32 rounded-xl) */
.padlet-settings-close-btn,
.settings-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.084px;
  padding: 0 6px;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.padlet-settings-close-btn:hover,
.settings-back-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.padlet-settings-close-btn:active,
.settings-back-btn:active {
  background-color: #fec006;
  color: #111111;
}

body.light-theme .padlet-settings-close-btn,
body.light-theme .settings-back-btn {
  color: rgba(0, 0, 0, 0.7);
}

body.light-theme .padlet-settings-close-btn:hover,
body.light-theme .settings-back-btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: #111111;
}

/* Tab Navigation Bar */
.padlet-settings-nav-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px;
  position: relative;
  flex-shrink: 0;
}

.padlet-settings-nav-wrap::-webkit-scrollbar {
  display: none;
}

.padlet-settings-nav {
  position: relative;
  background: inherit;
  width: 100%;
}

.settings-tabs-list {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0;
}

.settings-tab-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-tab-btn {
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
  padding: 8px 8px 9px 8px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s ease;
  white-space: nowrap;
  width: 100%;
}

.settings-tab-btn:hover {
  color: #ffffff;
}

.settings-tab-item.active .settings-tab-btn {
  color: #fec006;
}

body.light-theme .settings-tab-btn {
  color: rgba(0, 0, 0, 0.65);
}

body.light-theme .settings-tab-btn:hover {
  color: #111111;
}

body.light-theme .settings-tab-item.active .settings-tab-btn {
  color: #7c3aed;
}

.settings-tab-indicator {
  position: absolute;
  bottom: 0;
  height: 1.5px;
  background: #fec006;
  border-radius: 2px;
  transition: left 0.22s cubic-bezier(0.16, 1, 0.3, 1), width 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .settings-tab-indicator {
  background: #7c3aed;
}

.settings-nav-divider {
  height: 0.5px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 16px;
  flex-shrink: 0;
}

body.light-theme .settings-nav-divider {
  background-color: rgba(0, 0, 0, 0.08);
}

/* Scrollable Settings Body */
.padlet-settings-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px 32px 16px;
  display: flex;
  flex-direction: column;
  scrollbar-width: auto;
  font-size: 14px;
  line-height: 20px;
}

/* Sections */
.settings-section {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
}

.settings-section-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.084px;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 0 8px 8px;
  margin: 0;
  box-sizing: content-box !important;
  width: 100%;
}

body.light-theme .settings-section-title {
  color: rgba(0, 0, 0, 0.65);
}

/* Card Groups (rounded-2.5xl) */
.settings-card-group {
  background: rgb(36, 37, 39);
  color: rgb(255, 255, 255);
  font-size: 14px;
  line-height: 20px;
  border-radius: 20px;
  padding: 4px 0;
  overflow: hidden;
}

body.light-theme .settings-card-group {
  background: rgb(243, 244, 246);
  color: rgb(17, 17, 17);
}

.settings-card-divider {
  height: 0.5px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 16px;
}

body.light-theme .settings-card-divider {
  background-color: rgba(0, 0, 0, 0.08);
}

/* Form Rows & Inputs */
.settings-field-row {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
}

.settings-field-label {
  font-size: 17px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.221px;
  color: #ffffff;
  padding: 0 4px;
  margin: 0;
}

body.light-theme .settings-field-label {
  color: #111111;
}

.settings-input-wrapper {
  position: relative;
  background: rgb(27, 27, 27);
  color: rgb(255, 255, 255);
  font-size: 14px;
  line-height: 20px;
  border: 1.6px solid transparent;
  border-radius: 16px;
  transition: border-color 0.15s ease;
}

body.light-theme .settings-input-wrapper {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: rgb(17, 17, 17);
}

.settings-input-wrapper:focus-within {
  border-color: #fec006;
}

body.light-theme .settings-input-wrapper:focus-within {
  border-color: #7c3aed;
}

.settings-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  overflow: hidden;
  scrollbar-width: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: -0.221px;
  padding: 7px 12px 7px 16px;
}

.settings-textarea::-webkit-scrollbar {
  display: none;
}

body.light-theme .settings-textarea {
  color: #111111;
}

.settings-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

body.light-theme .settings-textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

#wall-title-input {
  min-height: 66px;
}

#wall-desc-input {
  min-height: 40px;
}

/* Clickable Navigation Rows */
.settings-clickable-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px;
  margin: 4px 8px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  color: rgb(255, 255, 255);
  transition: background-color 0.15s ease;
  user-select: none;
  min-height: 44px;
}

.settings-clickable-row:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.settings-clickable-row:active {
  background-color: rgba(255, 255, 255, 0.12);
}

body.light-theme .settings-clickable-row {
  color: rgb(17, 17, 17);
}

body.light-theme .settings-clickable-row:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .settings-clickable-row:active {
  background-color: rgba(0, 0, 0, 0.08);
}

.row-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 8px;
  gap: 2px;
}

.row-primary-label {
  font-size: 17px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.221px;
  color: #ffffff;
}

body.light-theme .row-primary-label {
  color: #111111;
}

.row-secondary-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.084px;
  color: rgba(255, 255, 255, 0.7);
}

body.light-theme .row-secondary-desc {
  color: rgba(0, 0, 0, 0.65);
}

.row-value-preview {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
}

.row-value-text {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

body.light-theme .row-value-text {
  color: rgba(0, 0, 0, 0.65);
}

.chevron-icon-wrap {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

body.light-theme .chevron-icon-wrap {
  color: rgba(0, 0, 0, 0.65);
}

/* Inline Settings Rows (Segmented & Switches) */
.settings-row-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
}

/* Segmented Controls & Font Buttons */
.segmented-control,
.font-button-group {
  display: flex;
  flex-direction: row;
  gap: 4px;
  margin-left: 8px;
  flex-shrink: 0;
}

.segmented-btn,
.font-choice-btn {
  height: 32px;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.084px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(60, 61, 64);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.15s ease;
  white-space: nowrap;
}

body.light-theme .segmented-btn,
body.light-theme .font-choice-btn {
  background: #e2e8f0;
  color: #475569;
}

.segmented-btn:hover,
.font-choice-btn:hover {
  background: rgb(75, 76, 80);
  color: #ffffff;
}

body.light-theme .segmented-btn:hover,
body.light-theme .font-choice-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.segmented-btn.active,
.font-choice-btn.active {
  background: #fec006;
  color: #111111;
  font-weight: 600;
}

body.light-theme .segmented-btn.active,
body.light-theme .font-choice-btn.active {
  background: #fec006;
  color: #111111;
}

.font-preview-text.font-niagara {
  font-family: 'Inter var', Inter, sans-serif !important;
}

.font-preview-text.font-thames {
  font-family: 'Playfair Display', Georgia, serif !important;
}

.font-preview-text.font-fuji {
  font-family: 'Caveat', cursive !important;
}

.font-preview-text.font-alps {
  font-family: 'JetBrains Mono', Consolas, monospace !important;
}

/* Pill Dropdown Buttons */
.settings-dropdown-pill {
  height: 32px;
  border-radius: 12px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.084px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(239, 244, 250, 0.1);
  color: #ffffff;
  transition: all 0.15s ease;
  max-width: 100%;
}

body.light-theme .settings-dropdown-pill {
  background: rgba(0, 0, 0, 0.06);
  color: #111111;
}

.settings-dropdown-pill:hover {
  background: rgba(239, 244, 250, 0.18);
}

.settings-dropdown-pill:active {
  background: #fec006;
  color: #111111;
}

body.light-theme .settings-dropdown-pill:active {
  background: #fec006;
  color: #111111;
}

.pill-icon-left {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.pill-text {
  font-weight: 400;
  white-space: nowrap;
  margin-right: 6px;
}

.pill-chevron-down {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

body.light-theme .pill-chevron-down {
  color: rgba(0, 0, 0, 0.65);
}

/* Switch Controls (Authentic 40x24 rounded-full) */
.switch-control {
  width: 40px;
  height: 24px;
  border-radius: 9999px;
  background: rgb(84, 85, 89);
  color: rgb(0, 0, 0);
  padding: 2px;
  position: relative;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
  box-sizing: border-box;
  flex-shrink: 0;
  outline: none;
  font-size: 14px;
}

body.light-theme .switch-control {
  background: #cbd5e1;
}

.switch-control.active {
  background: #fec006;
}

.switch-thumb {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: rgb(17, 17, 17);
  color: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

body.light-theme .switch-thumb {
  background: #ffffff;
}

.switch-control.active .switch-thumb {
  transform: translateX(16px);
  background: #ffffff;
}

body.light-theme .switch-control.active .switch-thumb {
  background: #111111;
}

.switch-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
  color: rgb(113, 114, 118);
}

.switch-control.active .switch-icon {
  color: #ffffff;
}

/* Wallpaper Thumbnail Preview */
.wallpaper-thumb-preview {
  width: 128px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #1b1b1b;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.theme-swatch-aurora {
  background: #09203f !important;
  background-image: url("https://v1.padlet.pics/3/image.webp?t=c_lfill%2Cdpr_2%2Cg_auto%2Ch_64%2Cw_128&url=https%3A%2F%2Felvis.padletcdn.com%2F1%2Fatat%2Fe_in-u_1773398369%2FappbR1Qbe0DGnDKkS%2FtblhZFRy95OZHncLj%2FrecBYNtSlC6p5vYPB%2FfldFlpqWBk19kjp8x") !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Subviews Header */
.subview-header-title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.subview-header-title {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  margin: 0;
}

body.light-theme .subview-header-title {
  color: #111111;
}

/* Wallpaper Subview Body & Grid */
.wallpaper-categories-bar {
  display: flex;
  gap: 8px;
  padding: 8px 16px 12px 16px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.wallpaper-categories-bar::-webkit-scrollbar {
  display: none;
}

body.light-theme .wallpaper-categories-bar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.wp-cat-btn {
  padding: 6px 12px;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

body.light-theme .wp-cat-btn {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.65);
}

.wp-cat-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

body.light-theme .wp-cat-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #111111;
}

.wp-cat-btn.active {
  background: #fec006;
  color: #111111;
}

.wallpaper-subview-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 32px 16px;
  display: flex;
  flex-direction: column;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  width: 100%;
  box-sizing: border-box;
}

.wallpaper-card-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  border-radius: 16px;
  transition: transform 0.15s ease;
  width: 100%;
}

.wallpaper-card-btn:hover {
  transform: translateY(-2px);
}

.wp-card-preview {
  width: 100%;
  height: 96px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 2px solid transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.wallpaper-card-btn.active .wp-card-preview {
  border-color: #fec006;
  box-shadow: 0 0 0 2px #fec006;
}

body.light-theme .wallpaper-card-btn.active .wp-card-preview {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px #7c3aed;
}

.wp-card-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: #ffffff;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.light-theme .wp-card-name {
  color: #111111;
}

/* Icon Picker Subview & 2-Tab Navigation */
.icon-subview-tabs-bar {
  display: flex;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

body.light-theme .icon-subview-tabs-bar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.icon-subview-tab {
  padding: 10px 4px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

body.light-theme .icon-subview-tab {
  color: rgba(0, 0, 0, 0.6);
}

.icon-subview-tab:hover {
  color: #ffffff;
}

body.light-theme .icon-subview-tab:hover {
  color: #111111;
}

.icon-subview-tab.active {
  color: #ffffff;
}

body.light-theme .icon-subview-tab.active {
  color: #111111;
}

.icon-subview-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #fec006;
  border-radius: 2px 2px 0 0;
}

.icon-tab-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.icon-tab-panel[hidden] {
  display: none !important;
}

/* Icon Picker Toolbar */
.icon-picker-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 8px 16px;
  flex-shrink: 0;
}

.icon-none-pill-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

body.light-theme .icon-none-pill-btn {
  background: rgba(0, 0, 0, 0.06);
  color: #111111;
}

.icon-none-pill-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.icon-none-pill-btn.active {
  background: #fec006;
  color: #111111;
}

.icon-search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.icon-search-lens {
  position: absolute;
  left: 10px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

body.light-theme .icon-search-lens {
  color: rgba(0, 0, 0, 0.4);
}

.icon-search-box input {
  width: 100%;
  height: 32px;
  border-radius: 12px;
  background: rgb(27, 27, 27);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0 12px 0 32px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

body.light-theme .icon-search-box input {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #111111;
}

.icon-search-box input:focus {
  border-color: #fec006;
}

/* Category Quick Navigation Bar */
.emoji-categories-nav {
  display: flex;
  gap: 4px;
  padding: 6px 16px 8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.emoji-categories-nav::-webkit-scrollbar {
  display: none;
}

body.light-theme .emoji-categories-nav {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.emoji-cat-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.emoji-cat-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.light-theme .emoji-cat-nav-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.emoji-cat-nav-btn.active {
  background: rgba(254, 192, 6, 0.2);
  outline: 1.5px solid #fec006;
}

/* Emoji Body & Blocks */
.icon-picker-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.emoji-category-block {
  width: 100%;
}

.emoji-cat-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-left: 4px;
}

body.light-theme .emoji-cat-title {
  color: rgba(0, 0, 0, 0.5);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  width: 100%;
}

.emoji-item-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  line-height: 1;
  padding: 0;
}

.emoji-item-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.15);
}

body.light-theme .emoji-item-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.emoji-item-btn:active {
  transform: scale(0.95);
}

.emoji-item-btn.selected {
  background: rgba(254, 192, 6, 0.2);
  outline: 2px solid #fec006;
}

/* Custom Icon Actions Grid */
.icon-custom-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.icon-custom-tile-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgb(36, 37, 39);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, transform 0.1s ease;
  width: 100%;
  box-sizing: border-box;
}

body.light-theme .icon-custom-tile-btn {
  background: #f1f5f9;
}

.icon-custom-tile-btn:hover {
  background: rgb(48, 50, 54);
}

body.light-theme .icon-custom-tile-btn:hover {
  background: #e2e8f0;
}

.custom-tile-icon-frame {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-tile-icon-frame.tile-orange {
  color: #ff833e;
  background: rgba(255, 131, 62, 0.15);
}

.custom-tile-icon-frame.tile-purple {
  color: #9466e8;
  background: rgba(148, 102, 232, 0.15);
}

.custom-tile-icon-frame.tile-blue {
  color: #3992de;
  background: rgba(57, 146, 222, 0.15);
}

.custom-tile-text {
  display: flex;
  flex-direction: column;
}

.custom-tile-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

body.light-theme .custom-tile-title {
  color: #111111;
}

.custom-tile-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

body.light-theme .custom-tile-desc {
  color: rgba(0, 0, 0, 0.5);
}

/* Post Fields Subpanel Styles */
.row-value-pill {
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
}

body.light-theme .row-value-pill {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.65);
}

.post-fields-custom-section {
  margin-top: 24px;
  padding: 0 4px;
}

.post-fields-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 10px 8px;
}

body.light-theme .post-fields-section-title {
  color: rgba(0, 0, 0, 0.5);
}

.add-custom-field-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgb(36, 37, 39);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
  box-sizing: border-box;
}

body.light-theme .add-custom-field-btn {
  background: #f1f5f9;
}

.add-custom-field-btn:hover {
  background: rgb(48, 50, 54);
}

body.light-theme .add-custom-field-btn:hover {
  background: #e2e8f0;
}

.add-cf-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.light-theme .add-cf-icon-wrap {
  background: rgba(0, 0, 0, 0.06);
  color: #111111;
}

.add-cf-text {
  display: flex;
  flex-direction: column;
}

.add-cf-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

body.light-theme .add-cf-title {
  color: #111111;
}

.add-cf-subtitle {
  font-size: 12px;
  color: #fec006;
  margin-top: 2px;
  font-weight: 500;
}

/* URL and Copy Button in Advanced */
.settings-input-wrapper.with-action {
  display: flex;
  align-items: center;
}

.settings-copy-inline-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0 16px;
  white-space: nowrap;
}

.settings-copy-inline-btn:hover {
  color: #ffffff;
}

body.light-theme .settings-copy-inline-btn {
  color: rgba(0, 0, 0, 0.7);
}

body.light-theme .settings-copy-inline-btn:hover {
  color: #111111;
}

.settings-dialog-footer-caption {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 16px;
}

/* ==========================================================================
   Padles Authentic Settings Floating Popovers Layer
   ========================================================================== */

.settings-popover-overlay {
  position: fixed;
  inset: 0;
  z-index: 30005;
  background: transparent;
  pointer-events: auto;
}

.settings-popover-overlay[hidden] {
  display: none !important;
}

.settings-floating-popover {
  position: fixed;
  width: 256px;
  border-radius: 20px;
  background: rgb(17, 17, 17);
  color: rgb(255, 255, 255);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 4px 0;
  z-index: 30006;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  font-family: 'Inter var', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  backdrop-filter: blur(10px);
  animation: settingsPopoverFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.settings-floating-popover[hidden] {
  display: none !important;
}

body.light-theme .settings-floating-popover {
  background: #ffffff;
  color: rgb(17, 17, 17);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

@keyframes settingsPopoverFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.popover-scrollable-inner {
  padding: 4px;
  display: flex;
  flex-direction: column;
}

.popover-menu-row {
  display: flex;
  flex-direction: column;
}

.popover-item-btn {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  user-select: none;
  transition: background-color 0.15s ease;
  box-sizing: border-box;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.084px;
}

body.light-theme .popover-item-btn {
  color: rgb(17, 17, 17);
}

.popover-item-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

body.light-theme .popover-item-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.popover-item-btn:active,
.popover-item-btn:focus-visible {
  outline: none;
}

.popover-item-btn.with-subtitle {
  height: auto;
  min-height: 56px;
  padding: 10px 12px;
  align-items: flex-start;
}

/* Format Badges */
.format-badge-frame {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.format-badge-frame svg {
  width: 20px;
  height: 20px;
}

.badge-wall { background: #ef4444; color: #ffffff; }
.badge-shelf { background: #0284c7; color: #ffffff; }
.badge-grid { background: #f97316; color: #ffffff; }
.badge-table { background: #10b981; color: #ffffff; }
.badge-freeform { background: #8b5cf6; color: #ffffff; }
.badge-rows { background: #f59e0b; color: #ffffff; }
.badge-timeline { background: #ec4899; color: #ffffff; }
.badge-stream { background: #3b82f6; color: #ffffff; }
.badge-map { background: #059669; color: #ffffff; }

.popover-item-label {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popover-item-check {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fec006;
}

body.light-theme .popover-item-check {
  color: #7c3aed;
}

.popover-item-check[hidden] {
  display: none !important;
}

.popover-item-icon-left {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}

body.light-theme .popover-item-icon-left {
  color: rgba(0, 0, 0, 0.6);
}

.popover-radio-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
  margin-left: auto;
}

body.light-theme .popover-radio-icon {
  color: rgba(0, 0, 0, 0.3);
}

.popover-radio-icon.active {
  color: #fec006;
}

body.light-theme .popover-radio-icon.active {
  color: #7c3aed;
}

.popover-item-text-stack {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.popover-item-title {
  font-size: 14px;
  font-weight: 400;
  color: inherit;
  line-height: 20px;
}

.popover-item-sub {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 16px;
}

body.light-theme .popover-item-sub {
  color: rgba(0, 0, 0, 0.55);
}

.popover-row-divider {
  height: 0.5px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 2px 0;
}

body.light-theme .popover-row-divider {
  background-color: rgba(0, 0, 0, 0.08);
}

.popover-row-divider.ms-10 {
  margin-left: 40px;
}

/* Board Font Application */
body[data-board-font="niagara"] {
  font-family: 'Inter var', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body[data-board-font="thames"] {
  font-family: 'Playfair Display', Georgia, serif !important;
}

body[data-board-font="fuji"] {
  font-family: 'Caveat', cursive, sans-serif !important;
}

body[data-board-font="alps"] {
  font-family: 'JetBrains Mono', Consolas, monospace !important;
}

/* Post Size Modification */
body[data-post-size="wide"] .section-column {
  width: 380px !important;
  min-width: 380px !important;
}

/* Post Attribution Toggle */
body.hide-post-attribution .card-author,
body.hide-post-attribution .card-author-line,
body.hide-post-attribution .post-time,
body.hide-post-attribution .card-author-byline {
  display: none !important;
}

/* Comments Disabled */
body.comments-disabled .card-comment-box,
body.comments-disabled .comments-container,
body.comments-disabled .comment-form,
body.comments-disabled .comment-composer-input {
  display: none !important;
}

/* Layout Formats */
body[data-layout-format="wall"] #sectionsTrack {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  align-items: flex-start !important;
  overflow-y: auto !important;
}

body[data-layout-format="grid"] #sectionsTrack {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 16px !important;
  overflow-y: auto !important;
}

body[data-layout-format="stream"] #sectionsTrack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 20px !important;
  overflow-y: auto !important;
}

body[data-layout-format="stream"] .section-column {
  width: 580px !important;
  max-width: 90vw !important;
}

/* Light Theme Mode for Board */
body.light-theme {
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-text-title: #0f172a;
  --card-text-body: #334155;
  --card-text-muted: #64748b;
  --section-header-bg: rgba(255, 255, 255, 0.85);
  --section-header-border: rgba(226, 232, 240, 0.8);
  --section-btn-bg: rgba(241, 245, 249, 0.9);
  --section-btn-hover: rgba(226, 232, 240, 1);
  color: #0f172a !important;
}

body.light-theme .surface-board-title {
  color: #0f172a !important;
}

body.light-theme .surface-board-description {
  color: #475569 !important;
}

body.light-theme .builder-link {
  color: #0f172a !important;
}

body.light-theme .byline-time {
  color: #64748b !important;
}

/* Wallpapers */
body.wallpaper-pitch-black {
  background: #0a0a0a !important;
  background-image: none !important;
}

body.wallpaper-slate-charcoal {
  background: #1e293b !important;
  background-image: none !important;
}

body.wallpaper-pure-white {
  background: #f8fafc !important;
  background-image: none !important;
}

body.wallpaper-soft-cream {
  background: #fef3c7 !important;
  background-image: none !important;
}

body.wallpaper-midnight-blue {
  background: #0f172a !important;
  background-image: none !important;
}

body.wallpaper-emerald-forest-solid {
  background: #064e3b !important;
  background-image: none !important;
}

body.wallpaper-crimson-wine {
  background: #881337 !important;
  background-image: none !important;
}

body.wallpaper-royal-purple {
  background: #581c87 !important;
  background-image: none !important;
}

body.wallpaper-sunset-gradient {
  background: linear-gradient(135deg, #f97316 0%, #e11d48 50%, #7c3aed 100%) !important;
  background-attachment: fixed !important;
}

body.wallpaper-neon-gradient {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%) !important;
  background-attachment: fixed !important;
}

body.wallpaper-lavender-gradient {
  background: linear-gradient(135deg, #e0e7ff 0%, #fae8ff 50%, #fce7f3 100%) !important;
  background-attachment: fixed !important;
}

body.wallpaper-ocean-gradient {
  background: linear-gradient(135deg, #022c43 0%, #053f5c 50%, #115173 100%) !important;
  background-attachment: fixed !important;
}

body.wallpaper-emerald-gradient {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #10b981 100%) !important;
  background-attachment: fixed !important;
}

body.wallpaper-brick-wall {
  background-color: #7f1d1d !important;
  background-image: radial-gradient(#991b1b 15%, transparent 16%), radial-gradient(#991b1b 15%, transparent 16%) !important;
  background-size: 60px 60px !important;
  background-position: 0 0, 30px 30px !important;
}

body.wallpaper-blackboard {
  background-color: #1c2826 !important;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px) !important;
  background-size: 20px 20px !important;
}

body.wallpaper-corkboard {
  background-color: #b45309 !important;
  background-image: radial-gradient(rgba(0,0,0,0.1) 1px, transparent 1px) !important;
  background-size: 8px 8px !important;
}

body.wallpaper-blueprint {
  background-color: #1e3a8a !important;
  background-image: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px) !important;
  background-size: 16px 16px !important;
}

body.wallpaper-dotgrid {
  background-color: #0f172a !important;
  background-image: radial-gradient(rgba(255,255,255,0.25) 1.5px, transparent 1.5px) !important;
  background-size: 24px 24px !important;
}

body.wallpaper-graphpaper {
  background-color: #ffffff !important;
  background-image: linear-gradient(to right, rgba(0,0,0,0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,0,0,0.08) 1px, transparent 1px) !important;
  background-size: 20px 20px !important;
}

body.wallpaper-starry-night {
  background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=1920&q=80') !important;
  background-size: cover !important;
  background-position: center !important;
}

body.wallpaper-mountains {
  background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1920&q=80') !important;
  background-size: cover !important;
  background-position: center !important;
}

body.wallpaper-ocean {
  background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80') !important;
  background-size: cover !important;
  background-position: center !important;
}

body.wallpaper-cherry-blossom {
  background-image: url('https://images.unsplash.com/photo-1522383225653-ed111181a951?auto=format&fit=crop&w=1920&q=80') !important;
  background-size: cover !important;
  background-position: center !important;
}

body.wallpaper-city-lights {
  background-image: url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?auto=format&fit=crop&w=1920&q=80') !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Active Theme Background Classes on body */
body.theme-midnight {
  background: #121212 !important;
}

body.theme-blueprint {
  background: #1e3a8a !important;
  background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1px) !important;
  background-size: 16px 16px !important;
}

body.theme-corkboard {
  background: #b45309 !important;
}





/* ==========================================================================
   Padlet 100% Authentic Polish: Submit Button, Hidden Schedule/Fields, Preview
   ========================================================================== */

#schedulePostBtn {
  display: none !important;
}

.composer-fields-btn {
  display: none !important;
}

.composer-card.is-editing-mode #expandModalBtn,
.composer-card.is-editing-mode #minimizeModalBtn {
  display: none !important;
}

.composer-publish-btn:disabled {
  background: #f1f3f4 !important;
  color: #9ca3af !important;
  opacity: 1 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

.composer-publish-btn:not(:disabled) {
  background: #de3163 !important;
  color: #ffffff !important;
  cursor: pointer !important;
}

.composer-publish-btn:not(:disabled):hover {
  background: #c22150 !important;
}

.active-attachment-preview[hidden] {
  display: none !important;
}

.active-attachment-preview:not([hidden]) {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  margin-bottom: 8px !important;
}

.attachment-preview-badge {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.attachment-preview-thumb {
  width: 72px !important;
  height: 54px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important;
}

#previewTypeBadge {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  background: #e0f2fe !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  text-transform: capitalize !important;
  flex-shrink: 0 !important;
}

#previewTitleText {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #111111 !important;
  flex: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.remove-attachment-btn {
  background: #f1f3f4 !important;
  border: none !important;
  color: #4b5563 !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  font-size: 16px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
}

.remove-attachment-btn:hover {
  background: #e5e7eb !important;
  color: #111111 !important;
}


/* Composer Rich Attachment Preview (YouTube, Images, Media) */
.composer-attachment-media-frame {
  width: 100% !important;
  height: 180px !important;
  max-height: 220px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  position: relative !important;
  background: rgb(24, 20, 15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 8px !important;
}

.composer-attachment-media-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.composer-media-play-btn {
  position: absolute !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(0, 0, 0, 0.65) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  backdrop-filter: blur(4px) !important;
  pointer-events: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.composer-media-category-badge {
  position: absolute !important;
  bottom: 8px !important;
  left: 8px !important;
  background: rgb(154, 221, 251) !important;
  color: rgb(17, 17, 17) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  letter-spacing: 0.3px !important;
}

.composer-attachment-media-frame .remove-attachment-btn {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  background: rgba(0, 0, 0, 0.6) !important;
  color: #ffffff !important;
  border: none !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  backdrop-filter: blur(4px) !important;
  transition: all 0.15s ease !important;
  z-index: 10 !important;
}

.composer-attachment-media-frame .remove-attachment-btn:hover {
  background: rgba(0, 0, 0, 0.85) !important;
  transform: scale(1.08) !important;
}

/* ==========================================================================
   Authentic Padlet Auth System (Modal Dialog + Standalone Fullscreen)
   Strict REA Tokens Extracted from Port 9222 Runtime Evidence
   ========================================================================== */

/* Topbar Login Pill Button */
.topbar-login-pill-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-family: inherit;
}

.topbar-login-pill-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* User Account Floating Dropdown */
.user-account-dropdown[hidden],
.padlet-auth-modal-backdrop[hidden],
.padlet-auth-standalone-view[hidden],
.padlet-dashboard-view[hidden],
[hidden] {
  display: none !important;
}

.user-account-dropdown {
  position: fixed;
  top: 54px;
  right: 16px;
  width: 280px;
  background: rgb(24, 24, 27);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  padding: 12px;
  z-index: 100000;
  color: #ffffff;
  animation: fadeIn 0.15s ease;
}

.user-account-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 10px;
}

.account-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.account-dropdown-info {
  flex: 1;
  min-width: 0;
}

.account-dropdown-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-dropdown-email {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.account-dropdown-tier {
  margin-top: 4px;
}

.tier-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.user-account-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.account-menu-item {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  color: #ffffff;
  background: transparent;
  border: none;
  transition: background 0.12s ease;
  font-family: inherit;
  text-align: left;
}

.account-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.account-menu-logout {
  color: #ef4444;
}

.account-menu-logout:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* Standalone Fullscreen Auth View */
.padlet-auth-standalone-view {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgb(17, 17, 17);
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADABAMAAACg8nE0AAAAElBMVEUREREAAAAYGBgUFBQREREREREQVHDYAAAABXRSTlP+AAEC/cWXbpkAAACBSURBVHhe7dqxDYAwDEVBFywAI8BCNNl/Ff4KVpQCuFdbucqpXGNtNwAAAADmAwAAAAAAAAAAAHvqPJPx4wUAAPCHTQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACo1AEqfe0yBAA4UwfI+OUvAswHAAAAAAAAAAAAAADA4rYHdzehYwsOKNUAAAAASUVORK5CYII=");
  background-size: 48px auto;
  overflow-y: auto;
  color: #ffffff;
  font-family: "Inter var", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}

.padlet-auth-standalone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}

.padlet-auth-standalone-logo {
  display: flex;
  align-items: center;
  color: #ffffff;
}

.padlet-auth-standalone-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.padlet-auth-link-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.padlet-auth-link-btn:hover {
  color: #ffffff;
}

.padlet-auth-standalone-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.padlet-auth-standalone-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
}

.padlet-auth-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-footer-icon-btn,
.auth-footer-lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13.5px;
  font-family: inherit;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.auth-footer-icon-btn:hover,
.auth-footer-lang-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* In-App Auth Modal Dialog */
.padlet-auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: fadeIn 0.15s ease;
}

.padlet-auth-modal-container {
  position: relative;
  width: 440px;
  max-width: 100%;
  background: rgb(17, 17, 17);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  padding: 32px 28px 28px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.padlet-auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.padlet-auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Shared Card Core */
.padlet-auth-card {
  width: 375px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.padlet-auth-top-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.padlet-auth-header-text {
  margin-bottom: 20px;
}

.padlet-auth-heading {
  font-size: 34px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px;
  padding: 0 4px;
  letter-spacing: -0.02em;
}

.padlet-auth-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
  padding: 0 4px;
  line-height: 1.4;
}

.padlet-auth-sso-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.padlet-sso-btn {
  height: 40px;
  border-radius: 16px;
  background: rgb(251, 251, 251);
  color: rgb(17, 17, 17);
  font-size: 17px;
  font-weight: 600;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s, background 0.15s;
  width: 100%;
  font-family: inherit;
  box-sizing: border-box;
}

.padlet-sso-btn:hover {
  background: #ffffff;
  transform: translateY(-0.5px);
}

.padlet-sso-btn:active {
  transform: translateY(0.5px);
}

.sso-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.padlet-sso-more-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 4px auto 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  font-family: inherit;
}

.padlet-sso-more-btn:hover {
  color: #ffffff;
}

.padlet-auth-divider-caption {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  padding: 0 4px;
  text-align: left;
}

.padlet-auth-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Pill Input Wrapper with Canary Yellow focus & Red error badge */
.padlet-input-pill-wrapper {
  position: relative;
  height: 40px;
  border-radius: 16px;
  background: rgb(17, 17, 17);
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 10px 0 14px;
  transition: border-color 0.15s ease;
}

.padlet-input-pill-wrapper:focus-within {
  border-color: rgb(254, 192, 6); /* Authentic Canary Yellow */
}

.padlet-input-pill-wrapper.has-error {
  border-color: rgb(239, 68, 68) !important; /* Authentic Red */
}

.padlet-input-floating-error {
  position: absolute;
  right: 8px;
  bottom: -8px;
  background: rgb(17, 17, 17);
  color: rgb(239, 68, 68);
  font-size: 12px;
  font-weight: 600;
  padding: 0 4px;
  line-height: 16px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}

.padlet-auth-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 17px;
  font-family: inherit;
  font-weight: 400;
}

.padlet-auth-input::placeholder {
  color: rgb(156, 163, 175);
}

.padlet-auth-eye-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
}

.padlet-auth-eye-btn:hover {
  color: #ffffff;
}

/* Continue Button Container: Aligns right on desktop */
.padlet-auth-continue-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .padlet-auth-continue-container {
    justify-content: center;
  }
}

/* Continue Button: Padlet Hot Pink rgb(255, 64, 129) */
.padlet-auth-continue-btn {
  height: 40px;
  border-radius: 16px;
  border: none;
  font-size: 17px;
  font-weight: 600;
  width: auto;
  min-width: 113px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all 0.15s ease;
  cursor: pointer;
  background: rgb(255, 64, 129);
  color: #ffffff;
}

@media (max-width: 600px) {
  .padlet-auth-continue-btn {
    width: 100%;
  }
}

.padlet-auth-continue-btn:disabled {
  background: rgba(239, 244, 250, 0.14) !important;
  color: rgba(255, 255, 255, 0.2) !important;
  cursor: not-allowed !important;
}

.padlet-auth-continue-btn:not(:disabled):hover {
  background: rgb(240, 50, 115);
}

.padlet-auth-back-btn,
.padlet-auth-magiclink-btn {
  height: 36px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  margin-top: 4px;
  transition: all 0.15s ease;
}

.padlet-auth-back-btn:hover,
.padlet-auth-magiclink-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.padlet-auth-terms {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  text-align: left;
  margin-top: 20px;
  padding: 0 4px;
}

.padlet-auth-terms a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.padlet-auth-workspace {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-top: 24px;
}

.padlet-auth-workspace a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

/* ========================================================================
   Padles Dashboard Shell Styles (1:1 Padlet Parity)
   ======================================================================== */

.padlet-dashboard-view {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  background: rgb(17, 17, 17);
  color: #ffffff;
  font-family: "Inter var", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}

/* --- Left Sidebar --- */
.dashboard-sidebar {
  width: 256px;
  min-width: 256px;
  background: rgb(24, 24, 27);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  box-sizing: border-box;
  overflow-y: auto;
  user-select: none;
}

.sidebar-profile-btn {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 10px;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.15s ease;
  font-family: inherit;
  text-align: left;
}

.sidebar-profile-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.sidebar-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.sidebar-user-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-user-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-tier-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  width: fit-content;
}

.sidebar-chevron {
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

/* Primary Action: + Make a padlet */
.sidebar-make-padlet-btn {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgb(255, 64, 129);
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(255, 64, 129, 0.3);
  font-family: inherit;
}

.sidebar-make-padlet-btn:hover {
  background: rgb(240, 50, 115);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 64, 129, 0.4);
}

.sidebar-make-padlet-btn:active {
  transform: translateY(0);
}

/* Nav list */
.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-item {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  text-align: left;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-nav-item.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
}

/* Folders */
.sidebar-folders-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-folders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 8px;
}

.sidebar-folders-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
}

.sidebar-folder-add-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-folder-add-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-folder-empty {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  padding: 8px;
}

/* --- Main Area & Top Bar --- */
.dashboard-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgb(17, 17, 17);
  overflow-y: auto;
}

.dashboard-topbar {
  height: 64px;
  min-height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.dashboard-search-bar {
  position: relative;
  width: 320px;
  display: flex;
  align-items: center;
}

.dashboard-search-icon {
  position: absolute;
  left: 12px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.dashboard-search-input {
  width: 100%;
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 36px 0 38px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.dashboard-search-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgb(254, 192, 6);
  box-shadow: 0 0 0 2px rgba(254, 192, 6, 0.2);
}

.dashboard-search-kbd {
  position: absolute;
  right: 12px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-family: monospace;
  pointer-events: none;
}

.dashboard-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-topbar-pill-btn {
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.dashboard-topbar-pill-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.dashboard-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dashboard-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.dashboard-avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* --- Content Area & Grid --- */
.dashboard-content-area {
  flex: 1;
  padding: 24px 28px;
  box-sizing: border-box;
}

.dashboard-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-tab-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.dashboard-sort-select {
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  padding: 0 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.dashboard-sort-select:focus {
  border-color: rgb(254, 192, 6);
}

.dashboard-boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 20px;
}

/* Card Button: Exact 1:1 Wall Card metrics */
.wall-card-button {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  position: relative;
  border-radius: 12px;
  transition: transform 0.15s ease;
  user-select: none;
}

.wall-card-button:hover {
  transform: translateY(-2px);
}

.wall-card-thumbnail-wrap {
  position: relative;
  width: 100%;
  height: 116px;
  border-radius: 8px;
  overflow: hidden;
  background: rgb(36, 37, 39);
}

.wall-card-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wall-card-thumbnail-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

.wall-card-bookmark-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffb800;
}

.wall-card-menu-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.wall-card-button:hover .wall-card-menu-btn {
  opacity: 1;
}

.wall-card-menu-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.wall-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 2px;
}

.wall-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #ffffff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wall-card-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 4px;
}

.wall-card-meta-dot {
  color: rgba(255, 255, 255, 0.3);
}

/* Empty State */
.dashboard-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.dashboard-empty-icon {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.3);
}

.dashboard-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px;
}

.dashboard-empty-desc {
  font-size: 14px;
  margin: 0 0 24px;
  max-width: 320px;
}

.dashboard-empty-action-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 14px;
  background: rgb(255, 64, 129);
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dashboard-empty-action-btn:hover {
  background: rgb(240, 50, 115);
}

/* Board Card Context Menu */
.dashboard-card-menu {
  position: fixed;
  z-index: 20000;
  width: 200px;
  background: rgb(28, 28, 30);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeIn 0.15s ease;
}

.dashboard-card-menu-item {
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-family: inherit;
}

.dashboard-card-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-card-menu-item.danger {
  color: #ef4444;
}

.dashboard-card-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* ========================================================================
   Wallpaper Themes
   ======================================================================== */

body.oceanic-theme {
  background-color: #032541;
  background-image: linear-gradient(135deg, rgba(2, 32, 60, 0.95) 0%, rgba(6, 64, 110, 0.9) 50%, rgba(1, 19, 38, 0.98) 100%), radial-gradient(circle at 80% 20%, rgba(57, 146, 222, 0.3) 0%, transparent 60%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.sunset-theme {
  background-color: #3d1028;
  background-image: linear-gradient(135deg, rgba(61, 16, 40, 0.95) 0%, rgba(112, 38, 50, 0.9) 50%, rgba(32, 8, 22, 0.98) 100%), radial-gradient(circle at 75% 25%, rgba(255, 131, 62, 0.25) 0%, transparent 60%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.charcoal-theme {
  background-color: #121316;
  background-image: linear-gradient(135deg, rgba(18, 19, 22, 0.98) 0%, rgba(31, 33, 40, 0.95) 50%, rgba(13, 14, 16, 1) 100%), radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ========================================================================
   Padles Make a Padlet Creation Modal (1:1 Parity)
   ======================================================================== */

#makePadletModal {
  z-index: 100000;
}

.make-padlet-dialog {
  width: 720px;
  max-width: 92vw;
  max-height: 88vh;
  background: rgb(24, 24, 27);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #ffffff;
  overflow-y: auto;
  box-sizing: border-box;
  animation: modalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Inter var", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

.make-padlet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.make-padlet-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.make-padlet-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0;
  color: #ffffff;
}

.make-padlet-subtitle {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.make-padlet-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.make-padlet-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.make-padlet-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.make-padlet-formats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.format-choice-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  color: #ffffff;
  font-family: inherit;
}

.format-choice-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.format-choice-card.selected {
  background: rgba(255, 64, 129, 0.08);
  border-color: #ff4081;
  box-shadow: 0 0 0 1px #ff4081;
}

.format-choice-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.format-icon-shelf {
  background: rgba(57, 146, 222, 0.16);
  color: rgb(57, 146, 222);
}

.format-icon-wall {
  background: rgba(148, 102, 232, 0.16);
  color: rgb(148, 102, 232);
}

.format-icon-grid {
  background: rgba(61, 199, 49, 0.16);
  color: rgb(61, 199, 49);
}

.format-icon-stream {
  background: rgba(255, 131, 62, 0.16);
  color: rgb(255, 131, 62);
}

.format-choice-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.format-choice-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.format-choice-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.format-choice-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(57, 146, 222, 0.2);
  color: rgb(57, 146, 222);
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.format-choice-desc {
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.make-padlet-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
}

.make-padlet-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.make-padlet-label {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.make-padlet-text-input {
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.15s ease;
}

.make-padlet-text-input:focus {
  border-color: #fec006;
  box-shadow: 0 0 0 1px #fec006;
  background: rgba(255, 255, 255, 0.08);
}

.wallpaper-swatches-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wallpaper-swatch-btn {
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #ffffff;
  font-family: inherit;
  transition: all 0.15s ease;
}

.wallpaper-swatch-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.wallpaper-swatch-btn.selected {
  border-color: #ff4081;
  background: rgba(255, 64, 129, 0.12);
}

.wallpaper-swatch-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.swatch-aurora {
  background: linear-gradient(135deg, #014e62, #00b4d8);
}

.swatch-oceanic {
  background: linear-gradient(135deg, #032541, #3992de);
}

.swatch-sunset {
  background: linear-gradient(135deg, #702632, #ff833e);
}

.swatch-charcoal {
  background: linear-gradient(135deg, #18181b, #303236);
}

.wallpaper-swatch-name {
  font-size: 13px;
  font-weight: 500;
}

.make-padlet-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

.make-padlet-cancel-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.make-padlet-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.make-padlet-submit-btn {
  height: 44px;
  padding: 0 24px;
  border-radius: 14px;
  background: #ff4081;
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(255, 64, 129, 0.4);
}

.make-padlet-submit-btn:hover {
  background: #e63974;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 64, 129, 0.5);
}




/* ==========================================================================
   Padles Public Landing Page Styles (1:1 Padlet Parity)
   ========================================================================== */

.padlet-landing-view[hidden] {
  display: none !important;
}

.padlet-landing-view {
  min-height: 100vh;
  background-color: #ffffff;
  color: #111111;
  font-family: 'Inter var', 'Inter', ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Landing Top Navigation */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 61px;
  background-color: #c0eeff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.landing-header-inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-logo-group {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.54);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.landing-nav-link:hover {
  color: #111111;
  background: rgba(0, 18, 52, 0.05);
}

.landing-nav-slash {
  color: rgba(0, 0, 0, 0.2);
  font-weight: 300;
  font-size: 14px;
}

.nav-ext-arrow {
  font-size: 11px;
  vertical-align: super;
}

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-login-pill-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(0, 18, 52, 0.06);
  border: none;
  color: rgba(0, 0, 0, 0.7);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.landing-login-pill-btn:hover {
  background: rgba(0, 18, 52, 0.12);
  color: #111111;
}

.landing-signup-pill-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 12px;
  background: #ff4081;
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.landing-signup-pill-btn:hover {
  background: #e63974;
}

/* Hero Section */
.landing-hero-section {
  background-color: #c0eeff;
  position: relative;
  padding: 64px 24px 0;
  text-align: center;
}

.landing-hero-container {
  max-width: 1080px;
  margin: 0 auto 50px;
}

.landing-hero-title {
  font-family: 'Lilita One', 'Inter var', sans-serif;
  font-size: 78px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -2.4px;
  color: #111111;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.landing-hero-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: #222222;
  margin: 0 0 32px;
}

.landing-hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-btn-pink {
  height: 48px;
  padding: 0 28px;
  border-radius: 16px;
  background: #ff4081;
  border: none;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(255, 64, 129, 0.3);
}

.landing-btn-pink:hover {
  background: #e63974;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 64, 129, 0.4);
}

.landing-btn-demo {
  height: 48px;
  padding: 0 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111111;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.landing-btn-demo:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.landing-hill-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.landing-hill-svg {
  width: 100%;
  height: 120px;
  display: block;
}

/* Showcase Sections */
.landing-showcase-section {
  padding: 72px 24px;
}

.landing-showcase-section.bg-leaf {
  background-color: #c3e776;
}

.landing-showcase-section.bg-white {
  background-color: #ffffff;
}

.landing-showcase-section.bg-subtle {
  background-color: #f7f9fa;
}

.landing-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.landing-section-title {
  font-family: 'Lilita One', 'Inter var', sans-serif;
  font-size: 44px;
  font-weight: 400;
  color: #111111;
  margin: 0 0 16px;
  letter-spacing: -1px;
}

.landing-section-desc {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.8);
  margin: 0;
}

/* Cards Showcase Grid */
.landing-cards-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.showcase-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.showcase-card-preview {
  height: 200px;
  background: #012b32;
  padding: 16px;
  display: flex;
  gap: 10px;
  overflow: hidden;
}

.shelf-preview {
  background: linear-gradient(135deg, #012b32 0%, #034857 100%);
}

.preview-col {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-header {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 6px;
  border-radius: 6px;
}

.preview-post {
  background: #ffffff;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #111111;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wall-preview {
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-brick {
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.grid-preview {
  background: #f8fafc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preview-tile {
  background: #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
}

.showcase-card-meta {
  padding: 18px 20px;
  background: #ffffff;
}

.showcase-format-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ff4081;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.showcase-card-meta h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111111;
}

.landing-section-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.landing-btn-outline {
  height: 44px;
  padding: 0 24px;
  border-radius: 14px;
  background: transparent;
  border: 2px solid #111111;
  color: #111111;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.landing-btn-outline:hover {
  background: #111111;
  color: #ffffff;
}

.landing-btn-text {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 12px;
  text-decoration: underline;
}

/* Sandbox Mockup */
.landing-sandbox-mockup {
  background: #fafafa;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  margin-bottom: 36px;
}

.sandbox-mockup-toolbar {
  background: #f1f5f9;
  padding: 10px 16px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sandbox-tool {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sandbox-tool.active {
  background: #3992de;
  color: #ffffff;
}

.sandbox-mockup-canvas {
  height: 260px;
  position: relative;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.sandbox-sticky {
  position: absolute;
  width: 220px;
  padding: 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #111111;
}

.sandbox-mindnode {
  position: absolute;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Reviews Grid */
.landing-reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.landing-review-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.review-brand {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 8px;
}

.review-score {
  font-size: 28px;
  font-weight: 800;
  color: #ff9800;
  margin-bottom: 6px;
}

.review-stars {
  font-size: 18px;
}

.review-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* Stats Grid */
.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.landing-stat-item {
  padding: 24px;
}

.stat-number {
  font-family: 'Lilita One', 'Inter var', sans-serif;
  font-size: 56px;
  color: #3992de;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: #475569;
}

/* Final CTA Section */
.landing-final-cta-section {
  background: linear-gradient(135deg, #012b32 0%, #034857 50%, #001f24 100%);
  color: #ffffff;
  padding: 96px 24px;
  text-align: center;
}

.landing-final-cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.landing-final-title {
  font-family: 'Lilita One', 'Inter var', sans-serif;
  font-size: 52px;
  margin: 0 0 16px;
  color: #ffffff;
}

.landing-final-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 36px;
}

.landing-btn-large {
  height: 52px;
  padding: 0 36px;
  font-size: 18px;
  border-radius: 18px;
}

/* Footer */
.landing-footer {
  background: #111111;
  color: #ffffff;
  padding: 64px 24px 32px;
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 36px;
}

.landing-footer-logo {
  font-family: 'Lilita One', 'Inter var', sans-serif;
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 12px;
}

.landing-footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  max-width: 240px;
}

.landing-footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
}

.landing-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-footer-col a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.landing-footer-col a:hover {
  color: #ffffff;
}

.landing-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.landing-language-tag {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Dashboard Sidebar & Topbar Enhancements (1:1 Live Padlet Parity)
   ========================================================================== */

.sidebar-greeting-widget {
  padding: 16px 12px 12px;
}

.sidebar-greeting-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.sidebar-greeting-fact {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}

.sidebar-quota-widget {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-quota-tier {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.sidebar-quota-used {
  font-size: 12px;
  font-weight: 600;
  color: #fec006; /* Canary Yellow */
}

.sidebar-quota-desc {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.sidebar-quota-upgrade-btn {
  align-self: flex-start;
  padding: 0;
  background: transparent;
  border: none;
  color: #ff4081;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.sidebar-quota-upgrade-btn:hover {
  text-decoration: underline;
}

/* Dashboard Breadcrumbs in Topbar */
.dashboard-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

.dashboard-breadcrumb {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.dashboard-breadcrumb:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-breadcrumb.active {
  color: #fec006; /* Canary Yellow for Home / active */
}

.breadcrumb-slash {
  color: rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.dashboard-breadcrumb-make {
  background: transparent;
  border: none;
  color: #ff4081;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.dashboard-breadcrumb-make:hover {
  background: rgba(255, 64, 129, 0.15);
}

body:has(#landingView:not([hidden])) #surface-topbar,
body:has(#dashboardView:not([hidden])) #surface-topbar,
body:has(#authStandaloneView:not([hidden])) #surface-topbar {
  display: none !important;
}

/* Authentic Padlet Join URL Modal (328px) */
.join-padlet-dialog {
  width: 328px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  padding: 24px 20px 20px;
  text-align: center;
  box-sizing: border-box;
}

#joinPadletModal,
#newFolderModal {
  z-index: 100000;
}

body.dark-mode .join-padlet-dialog,
body.dark-theme .join-padlet-dialog {
  background: #111111;
  color: #ffffff;
}

.join-dialog-title {
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 16px;
}

body.dark-mode .join-dialog-title,
body.dark-theme .join-dialog-title {
  color: #ffffff;
}

.join-input-wrapper {
  display: flex;
  align-items: center;
  height: 40px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 0 14px;
  box-sizing: border-box;
  margin-bottom: 20px;
  transition: border-color 0.15s ease;
}

.join-input-wrapper:focus-within {
  border-color: #111111;
}

body.dark-mode .join-input-wrapper,
body.dark-theme .join-input-wrapper {
  border-color: #374151;
}

body.dark-mode .join-input-wrapper:focus-within,
body.dark-theme .join-input-wrapper:focus-within {
  border-color: #ffffff;
}

.join-dialog-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: inherit;
  font-family: inherit;
}

.join-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.join-cancel-btn {
  height: 32px;
  background: rgb(235, 236, 239);
  color: rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  padding: 0 20px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

body.dark-mode .join-cancel-btn,
body.dark-theme .join-cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.join-submit-btn {
  height: 32px;
  background: rgba(0, 18, 52, 0.04);
  color: rgba(29, 29, 29, 0.3);
  border-radius: 16px;
  padding: 0 20px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: not-allowed;
  transition: background 0.15s ease, color 0.15s ease;
}

.join-submit-btn.active {
  background: #de3163;
  color: #ffffff;
  cursor: pointer;
}

/* Authentic New Folder Modal Dialog (328px) */
.folder-modal-dialog {
  width: 328px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  padding: 24px 20px 20px;
  text-align: center;
  box-sizing: border-box;
}

body.dark-mode .folder-modal-dialog,
body.dark-theme .folder-modal-dialog {
  background: #111111;
  color: #ffffff;
}

.folder-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 16px;
}

body.dark-mode .folder-modal-title,
body.dark-theme .folder-modal-title {
  color: #ffffff;
}

.folder-input-wrapper {
  display: flex;
  align-items: center;
  height: 40px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 0 14px;
  box-sizing: border-box;
  margin-bottom: 20px;
  transition: border-color 0.15s ease;
}

.folder-input-wrapper:focus-within {
  border-color: #111111;
}

body.dark-mode .folder-input-wrapper,
body.dark-theme .folder-input-wrapper {
  border-color: #374151;
}

body.dark-mode .folder-input-wrapper:focus-within,
body.dark-theme .folder-input-wrapper:focus-within {
  border-color: #ffffff;
}

.folder-modal-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: inherit;
  font-family: inherit;
}

.folder-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.folder-cancel-btn {
  height: 32px;
  background: rgb(235, 236, 239);
  color: rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  padding: 0 20px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

body.dark-mode .folder-cancel-btn,
body.dark-theme .folder-cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.folder-submit-btn {
  height: 32px;
  background: rgba(0, 18, 52, 0.04);
  color: rgba(29, 29, 29, 0.3);
  border-radius: 16px;
  padding: 0 20px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: not-allowed;
  transition: background 0.15s ease, color 0.15s ease;
}

.folder-submit-btn.active {
  background: #de3163;
  color: #ffffff;
  cursor: pointer;
}

/* Notifications Dropdown Panel */
.notifications-dropdown {
  position: fixed;
  top: 54px;
  right: 60px;
  width: 320px;
  max-width: 90vw;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 16px;
  z-index: 100000;
  color: #111111;
  box-sizing: border-box;
  animation: fadeIn 0.15s ease;
}

body.dark-mode .notifications-dropdown,
body.dark-theme .notifications-dropdown {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.notifications-dropdown[hidden] {
  display: none !important;
}

.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .notifications-header,
body.dark-theme .notifications-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.notifications-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.notifications-read-btn {
  background: transparent;
  border: none;
  color: #de3163;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.notifications-read-btn:hover {
  text-decoration: underline;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.15s ease;
  font-size: 13px;
  line-height: 1.4;
}

.notification-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

body.dark-mode .notification-item:hover,
body.dark-theme .notification-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.notification-item.unread {
  background: rgba(222, 49, 99, 0.06);
}

body.dark-mode .notification-item.unread,
body.dark-theme .notification-item.unread {
  background: rgba(222, 49, 99, 0.12);
}

.notification-icon {
  font-size: 16px;
  line-height: 1;
  padding-top: 2px;
}

.notification-content {
  flex: 1;
}

.notification-text strong {
  font-weight: 600;
}

.notification-time {
  font-size: 11px;
  color: #888888;
  margin-top: 2px;
}

/* Sidebar Folder items & active state */
.sidebar-folder-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #4b5563;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-folder-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #111111;
}

body.dark-mode .sidebar-folder-item,
body.dark-theme .sidebar-folder-item {
  color: #9ca3af;
}

body.dark-mode .sidebar-folder-item:hover,
body.dark-theme .sidebar-folder-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-folder-item.active {
  background: rgba(0, 0, 0, 0.08);
  color: #111111;
  font-weight: 600;
}

body.dark-mode .sidebar-folder-item.active,
body.dark-theme .sidebar-folder-item.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.sidebar-folder-item .folder-delete-btn {
  opacity: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  color: #999;
  font-size: 14px;
  line-height: 1;
  border-radius: 4px;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.sidebar-folder-item:hover .folder-delete-btn {
  opacity: 1;
}

.sidebar-folder-item .folder-delete-btn:hover {
  color: #ef4444;
}


