/* ==========================================================
   SUNSEEKERS TOURS LTD - MANAGEMENT REVIEW PRESENTATION STUDIO
   Styles matching slide-craft-studio-19.lovable.app
   ========================================================== */

:root {
  --color-forest: #042f24;
  --color-forest-dark: #021f18;
  --color-forest-light: #0a4435;
  --color-yellow: #facc15;
  --color-yellow-dark: #eab308;
  --color-mint-light: #e6f4ea;
  --color-mint-border: #b7e1cd;
  --color-canvas-bg: #FCFBF8;
  --color-card-bg: #ffffff;
  --color-text-main: #1f2937;
  --color-text-muted: #6b7280;
  --color-border-subtle: #e5e7eb;

  --nav-bg: #ffffff;
  --nav-border: #e5e7eb;
  --sidebar-bg: #f9fafb;
  --sidebar-border: #e5e7eb;

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background-color: #f3f4f6;
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Container Shell: Row layout (Left Sidebar + Main Workspace) */
.app-container {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #071711;
}

/* ==========================================================
   LEFT APP GLOBAL NAVIGATION SIDEBAR (CANVA/FIGMA STYLE)
   ========================================================== */
.app-left-sidebar {
  width: 240px;
  min-width: 240px;
  height: 100vh;
  background: #071711;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  flex-shrink: 0;
  user-select: none;
}

.app-left-sidebar.collapsed {
  width: 68px;
  min-width: 68px;
}

.sidebar-brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.sidebar-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
  flex-shrink: 0;
}

.sidebar-brand-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.brand-app-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-app-tag {
  font-size: 0.68rem;
  color: #a7f3d0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sidebar-collapse-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.sidebar-collapse-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-quick-actions {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.sidebar-action-btn {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sidebar-action-btn.primary-action {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: 1px solid #10b981;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.sidebar-action-btn.primary-action:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  transform: translateY(-1px);
}

.sidebar-action-btn.secondary-action {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-action-btn.secondary-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.sidebar-nav-section {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.85rem 0.75rem;
}

.sidebar-section-label {
  font-size: 0.66rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem 0.5rem;
  white-space: nowrap;
}

.sidebar-mode-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-nav-tab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.sidebar-nav-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.sidebar-nav-tab.active {
  background: rgba(5, 150, 105, 0.18);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
  box-shadow: inset 3px 0 0 #10b981;
}

.nav-tab-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.sidebar-nav-tab.active .nav-tab-icon {
  background: #059669;
  color: #ffffff;
}

.nav-tab-details {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  overflow: hidden;
}

.nav-tab-title {
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-tab-desc {
  font-size: 0.69rem;
  color: #94a3b8;
  white-space: nowrap;
}

.sidebar-nav-tab.active .nav-tab-desc {
  color: #a7f3d0;
}

.sidebar-bottom-panel {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.sidebar-theme-trigger {
  width: 100%;
  padding: 0.48rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.sidebar-theme-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.4);
}

.sidebar-tips-pill {
  font-size: 0.68rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.sidebar-tips-pill kbd {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

/* Collapsed Sidebar Behavior */
.app-left-sidebar.collapsed .sidebar-brand-info,
.app-left-sidebar.collapsed .sidebar-action-btn span,
.app-left-sidebar.collapsed .sidebar-section-label,
.app-left-sidebar.collapsed .nav-tab-details,
.app-left-sidebar.collapsed .sidebar-theme-trigger span,
.app-left-sidebar.collapsed .sidebar-tips-pill {
  display: none !important;
}

.app-left-sidebar.collapsed .sidebar-brand-block {
  justify-content: center;
  padding: 0.85rem 0;
}

.app-left-sidebar.collapsed .sidebar-collapse-toggle {
  display: none;
}

.app-left-sidebar.collapsed .sidebar-action-btn {
  justify-content: center;
  padding: 0.6rem 0;
}

.app-left-sidebar.collapsed .sidebar-nav-tab {
  justify-content: center;
  padding: 0.6rem 0;
}

.app-left-sidebar.collapsed .sidebar-theme-trigger {
  justify-content: center;
  padding: 0.5rem 0;
}

/* ==========================================================
   MAIN APP LAYOUT (TOP NAV + WORKSPACES)
   ========================================================== */
.app-main-layout {
  flex: 1;
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background-color: #f3f4f6;
}

/* ==========================================================
   TOP GLOBAL NAVIGATION BAR
   ========================================================== */
.top-nav {
  height: 52px;
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-toggle-btn {
  background: transparent;
  border: 1px solid var(--nav-border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.sidebar-toggle-btn:hover {
  background: #f3f4f6;
  color: var(--color-text-main);
}

.brand-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.brand-doc-name {
  color: #111827;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

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

.nav-arrow-btn {
  background: #f9fafb;
  border: 1px solid var(--nav-border);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.nav-arrow-btn:hover {
  background: #e5e7eb;
  color: var(--color-text-main);
}

.slide-counter-badge {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-text-main);
  background: #f3f4f6;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.slide-counter-badge .slash {
  color: #9ca3af;
}

/* UNDO & REDO TOOLBAR CONTROLS */
.undo-redo-container {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 2px;
  margin-left: 0.4rem;
  gap: 2px;
}

.history-action-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border: none;
  background: transparent;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
}

.history-action-btn:hover:not(:disabled) {
  background: #ffffff;
  color: var(--color-forest);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.history-action-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.add-slide-nav-btn {
  background: var(--color-mint-light) !important;
  color: #065f46 !important;
  border-color: var(--color-mint-border) !important;
  font-weight: 700 !important;
}

.add-slide-nav-btn:hover {
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
}

.live-edit-indicator {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  margin-left: 0.35rem;
}

.edit-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-tool-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid var(--nav-border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-main);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
}

.nav-tool-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.present-accent-btn {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.present-accent-btn:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}

.primary-export-btn {
  background: var(--color-forest);
  border-color: var(--color-forest);
  color: #ffffff;
}

.primary-export-btn:hover {
  background: var(--color-forest-light);
}

.nav-icon-menu-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.nav-icon-menu-btn:hover {
  background: #f3f4f6;
  border-color: var(--nav-border);
  color: var(--color-text-main);
}

/* ==========================================================
   DROPDOWN MENUS
   ========================================================== */
.dropdown-container {
  position: relative;
}

.export-dropdown-menu,
.more-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 280px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 100;
}

.export-dropdown-menu.show,
.more-dropdown-menu.show {
  display: flex;
}

.menu-heading {
  font-size: 0.68rem;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.6rem 0.15rem;
}

.menu-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border: none;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  width: 100%;
}

.menu-option:hover {
  background: #f3f4f6;
}

.opt-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  min-width: 44px;
  text-align: center;
}

.pptx-tag { background: #fef3c7; color: #b45309; }
.pdf-tag { background: #fee2e2; color: #b91c1c; }
.master-tag { background: #ecfdf5; color: #047857; }
.json-tag { background: #e0f2fe; color: #0369a1; }
.load-tag { background: #f3e8ff; color: #7e22ce; }
.danger-tag { background: #fee2e2; color: #ef4444; }

.opt-text strong {
  display: block;
  font-size: 0.8rem;
  color: #111827;
}

.opt-text small {
  display: block;
  font-size: 0.7rem;
  color: #6b7280;
}

.menu-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 0.25rem 0;
}

.more-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #374151;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.more-menu-item:hover {
  background: #f3f4f6;
}

.more-menu-item kbd {
  margin-left: auto;
  font-size: 0.68rem;
  background: #e5e7eb;
  color: #4b5563;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.text-danger { color: #dc2626 !important; }
.text-danger:hover { background: #fee2e2 !important; }

/* ==========================================================
   MAIN WORKSPACE LAYOUT (SIDEBAR + STAGE + NOTES)
   ========================================================= */
.main-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 54px);
}

/* Slide Sidebar */
.slide-sidebar {
  width: 220px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.2s ease, margin-left 0.2s ease;
}

.slide-sidebar.collapsed {
  margin-left: -220px;
}

.sidebar-header {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.08em;
}

.sidebar-add-btn {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4b5563;
}

.sidebar-add-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.sidebar-thumbs-container {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sidebar-thumbs-container::-webkit-scrollbar {
  width: 5px;
}
.sidebar-thumbs-container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

/* Sidebar Thumbnail Item */
.thumb-card-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.thumb-index-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9ca3af;
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}

.thumb-card {
  flex: 1;
  aspect-ratio: 16 / 9;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.thumb-card:hover {
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.thumb-card.active {
  border-color: #10b981;
  box-shadow: 0 0 0 1px #10b981, 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.thumb-preview-mini {
  width: 100%;
  height: 100%;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 6px;
  line-height: 1.2;
  overflow: hidden;
  pointer-events: none;
}

.thumb-card.dark-theme-thumb {
  background: var(--color-forest);
  color: #ffffff;
}

.thumb-card.dark-theme-thumb .mini-title {
  color: #ffffff;
}

.thumb-card.dark-theme-thumb .mini-badge {
  background: var(--color-yellow);
  color: #000;
}

.mini-badge {
  font-size: 5px;
  font-weight: 800;
  background: var(--color-yellow);
  color: #042f24;
  padding: 1px 3px;
  border-radius: 2px;
  width: fit-content;
  margin-bottom: 2px;
}

.mini-title {
  font-weight: 700;
  font-size: 6.5px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-sub {
  font-size: 5px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================
   CENTER PRESENTATION STAGE (16:9 CANVAS)
   ========================================================== */
.presentation-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem 0.5rem;
  background-color: #e5e7eb;
  overflow: hidden;
  position: relative;
}

.stage-tip-banner {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  color: #4b5563;
  margin-bottom: 0.4rem;
}

.aspect-wrapper {
  width: 100%;
  max-width: 1140px;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 145px);
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.slide-frame {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--color-canvas-bg);
  box-sizing: border-box;
}

/* Footer Controls under Canvas */
.stage-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  margin-top: 0.4rem;
}

.footer-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.footer-nav-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.footer-dots-list {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 480px;
  overflow-x: auto;
  padding: 4px;
}

.footer-dots-list::-webkit-scrollbar { display: none; }

.f-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.f-dot.active {
  background: var(--color-forest);
  transform: scale(1.4);
}

/* ==========================================================
   SPEAKER NOTES SIDEBAR (COLLAPSIBLE)
   ========================================================== */
.speaker-notes-panel {
  width: 290px;
  background: #ffffff;
  border-left: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.2s ease, margin-right 0.2s ease;
}

.speaker-notes-panel.collapsed {
  margin-right: -290px;
}

.notes-panel-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}

.notes-header-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.close-notes-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.2rem;
  cursor: pointer;
}

.notes-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.notes-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.notes-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.notes-category-badge {
  display: inline-block;
  font-size: 0.75rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  color: #374151;
  font-weight: 500;
}

.slide-notes-textarea {
  width: 100%;
  height: 180px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 0.6rem;
  color: #111827;
  resize: vertical;
  outline: none;
}

.slide-notes-textarea:focus {
  border-color: var(--color-forest);
  background: #ffffff;
}

.notes-help {
  font-size: 0.7rem;
  color: #9ca3af;
  line-height: 1.35;
}

.quick-slide-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  flex: 1;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem;
  cursor: pointer;
  color: #374151;
}

.action-btn:hover {
  background: #f3f4f6;
}

.btn-danger {
  color: #dc2626;
}
.btn-danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* ==========================================================
   SLIDE DESIGN SYSTEM (LOVABLE / SLIDEFORGE EXACT REPLICA)
   ========================================================== */

/* Slide inner layout base */
.slide-view {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 2.2rem;
  box-sizing: border-box;
  background-color: var(--color-canvas-bg);
  overflow: hidden;
}

/* Slideforge watermark in top right */
.slideforge-watermark {
  position: absolute;
  top: 1.2rem;
  right: 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #9ca3af;
  text-transform: uppercase;
}

/* Top Yellow Badge */
.yellow-pill-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-yellow);
  color: #042f24;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  width: fit-content;
}

/* Slide Header Block */
.slide-header-area {
  margin-bottom: 0.9rem;
}

.slide-heading-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111827;
  text-transform: uppercase;
  line-height: 1.15;
}

.slide-subheading-text {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

.yellow-underline {
  width: 38px;
  height: 3px;
  background-color: var(--color-yellow);
  border-radius: 2px;
  margin-top: 0.35rem;
}

/* Content Editable Highlight */
[contenteditable="true"] {
  outline: 1px dashed transparent;
  transition: outline 0.15s, background 0.15s;
  border-radius: 2px;
}

[contenteditable="true"]:hover {
  outline: 1px dashed #10b981;
  background: rgba(16, 185, 129, 0.06);
  cursor: text;
}

[contenteditable="true"]:focus {
  outline: 2px solid #059669;
  background: rgba(16, 185, 129, 0.1);
}

/* ==========================================================
   SLIDE 1: COVER SLIDE (DARK FOREST GREEN)
   ========================================================== */
.slide-cover-layout {
  background: radial-gradient(circle at 90% 20%, rgba(250, 204, 21, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
              var(--color-forest) !important;
  color: #ffffff;
  justify-content: center;
  padding: 3rem 4rem;
}

.slide-cover-layout .slideforge-watermark {
  color: rgba(255, 255, 255, 0.35);
}

.cover-main-headline {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.cover-accent-rule {
  width: 60px;
  height: 4px;
  background-color: var(--color-yellow);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.cover-role-headline {
  font-size: 1.1rem;
  font-weight: 500;
  color: #a7f3d0;
  margin-bottom: 0.25rem;
}

.cover-org-headline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
}

.cover-footer-meta {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 800px;
}

.meta-group label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.25rem;
}

.meta-group strong {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================
   SLIDE 2: PURPOSE AND REVIEW BASIS
   ========================================================== */
.purpose-two-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
  margin-bottom: 0.85rem;
}

.white-accent-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 3.5px solid var(--color-yellow);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.white-accent-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.45rem;
}

.white-accent-card p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #4b5563;
}

.dark-core-banner {
  background: var(--color-forest);
  border-radius: 8px;
  padding: 0.85rem 1.15rem;
  color: #ffffff;
}

.dark-core-banner h5 {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-yellow);
  margin-bottom: 0.25rem;
}

.dark-core-banner p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #e5e7eb;
}

/* ==========================================================
   SLIDE 3: ENGAGEMENT AT A GLANCE (METRICS)
   ========================================================== */
.metrics-quad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.metric-green-box {
  background: var(--color-mint-light);
  border: 1px solid var(--color-mint-border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.metric-big-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-forest);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.metric-caption {
  font-size: 0.75rem;
  color: #374151;
  line-height: 1.35;
}

/* ==========================================================
   SLIDE 4, 5, 6, 16: EXECUTIVE & SCOPE TABLES
   ========================================================== */
.table-surface {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.formal-slide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.formal-slide-table th {
  background: var(--color-mint-light);
  color: var(--color-forest);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-mint-border);
}

.formal-slide-table td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: top;
  line-height: 1.45;
}

.formal-slide-table tr:last-child td {
  border-bottom: none;
}

.formal-slide-table .col-workstream {
  font-weight: 700;
  color: #111827;
  width: 28%;
}

.formal-slide-table .col-responsibility {
  font-weight: 700;
  color: #111827;
  width: 25%;
}

.formal-slide-table .col-period-label {
  font-weight: 700;
  color: #059669;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  width: 18%;
}

.formal-slide-table .col-focus-label {
  font-weight: 700;
  color: #111827;
  width: 25%;
}

.table-footer-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.75rem;
  padding-left: 0.25rem;
}

/* ==========================================================
   SLIDES 7–12: MONTHLY KEY WORK CAPTURED
   ========================================================== */
.monthly-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.85rem 1rem;
}

.monthly-step-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.monthly-step-card.dark-highlight {
  background: var(--color-forest);
  border-color: var(--color-forest);
  color: #ffffff;
}

.monthly-step-card.dark-highlight .step-badge-green {
  color: var(--color-yellow);
}

.monthly-step-card.dark-highlight p {
  color: #ffffff;
}

.step-badge-green {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: #059669;
  flex-shrink: 0;
  line-height: 1.3;
}

.monthly-step-card p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #374151;
}

/* ==========================================================
   SLIDE 13: PROGRESSION OF WORK (TIMELINE)
   ========================================================== */
.timeline-horizontal-container {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.timeline-nodes-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  margin-bottom: 1rem;
}

.timeline-connector-line {
  position: absolute;
  top: 14px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: #d1d5db;
  z-index: 1;
}

.timeline-node-item {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.timeline-circle-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--color-canvas-bg);
}

.timeline-five-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  flex: 1;
}

.timeline-col-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.timeline-period-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #059669;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-col-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.6rem;
}

.timeline-col-card .col-summary {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #4b5563;
  margin-bottom: auto;
}

.timeline-col-card .col-footnote {
  font-size: 0.7rem;
  line-height: 1.35;
  color: #9ca3af;
  border-top: 1px solid #f3f4f6;
  padding-top: 0.5rem;
  margin-top: 0.75rem;
}

/* ==========================================================
   SLIDE 4: MAJOR DELIVERABLES (THE 10 DELIVERABLES)
   ========================================================== */
.ten-deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.85rem;
}

.ten-deliv-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 3.5px solid var(--color-yellow);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ten-deliv-badge-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: #059669;
  background: var(--color-mint-light);
  border: 1px solid var(--color-mint-border);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1.1;
  margin-top: 0.1rem;
}

.ten-deliv-body {
  flex: 1;
}

.ten-deliv-body strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.ten-deliv-body p {
  font-size: 0.73rem;
  line-height: 1.35;
  color: #4b5563;
  margin-top: 0.15rem;
}

/* ==========================================================
   SLIDE 14: MAJOR DELIVERABLES (WITH ICONS)
   ========================================================== */
.deliverables-3x2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.deliv-feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.deliv-card-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.deliv-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--color-mint-light);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.deliv-feature-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.deliv-feature-card p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #4b5563;
}

/* ==========================================================
   SLIDE 15: CURRENT POSITION (3 COLUMNS)
   ========================================================== */
.position-3-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  height: 100%;
}

.status-col-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.status-col-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 0.75rem;
}

.title-completed { color: #059669; border-bottom-color: #10b981; }
.title-ongoing { color: #d97706; border-bottom-color: #f59e0b; }
.title-planned { color: #2563eb; border-bottom-color: #3b82f6; }

.status-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
}

.status-list-item {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #374151;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.status-bullet-icon {
  font-weight: 800;
  flex-shrink: 0;
}

.bullet-check { color: #059669; }
.bullet-ongoing { color: #d97706; }
.bullet-planned { color: #2563eb; }

/* ==========================================================
   SLIDE 17: OUTSTANDING WORK (9 / 10 ITEMS)
   ========================================================== */
.outstanding-10-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.25rem;
}

.outstanding-9-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem 0.85rem;
}

.outstanding-item-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 3px solid var(--color-yellow);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.item-check-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #a7f3d0;
  background: var(--color-mint-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.outstanding-item-text {
  flex: 1;
}

.outstanding-item-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.outstanding-item-text p {
  font-size: 0.72rem;
  line-height: 1.35;
  color: #4b5563;
  margin-top: 0.2rem;
}

.outstanding-item-card span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #111827;
}

/* ==========================================================
   SLIDE 18: NEXT PHASE PRIORITIES (01 - 07)
   ========================================================== */
.priorities-7-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.priority-step-row {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.step-num-round {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  color: #059669;
  background: var(--color-mint-light);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.step-row-body strong {
  font-size: 0.84rem;
  color: #111827;
}

.step-row-body span {
  font-size: 0.78rem;
  color: #4b5563;
  margin-left: 0.35rem;
}

/* ==========================================================
   SLIDE 19: MANAGEMENT DISCUSSION QUESTIONS
   ========================================================== */
.questions-8-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.question-card-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.question-q-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.8rem;
  color: #059669;
  background: var(--color-mint-light);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.question-card-item p {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
}

/* ==========================================================
   SLIDE 20: MANAGEMENT ASSESSMENT RUBRIC
   ========================================================== */
.assessment-rubric-table {
  width: 100%;
  border-collapse: collapse;
}

.assessment-rubric-table th {
  background: var(--color-mint-light);
  color: var(--color-forest);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-mint-border);
}

.assessment-rubric-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.82rem;
  vertical-align: middle;
}

.assessment-rubric-table .rubric-title {
  font-weight: 700;
  color: #111827;
  width: 45%;
}

.assessment-rubric-table .rubric-notes-field {
  color: #6b7280;
  font-style: italic;
}

/* ==========================================================
   SLIDE 21: CLOSING SLIDE
   ========================================================== */
.slide-closing-layout {
  background: var(--color-forest) !important;
  color: #ffffff;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 4rem;
}

.closing-huge-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.closing-sub-title {
  font-size: 1.15rem;
  color: var(--color-yellow);
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.closing-disclaimer-box {
  max-width: 720px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 2.25rem;
}

.closing-disclaimer-box p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #e5e7eb;
}

.closing-signoff-line {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-size: 0.9rem;
}

.closing-signoff-line span { color: rgba(255, 255, 255, 0.6); }
.closing-signoff-line strong { color: #ffffff; margin-left: 0.35rem; }

/* ==========================================================
   GRID VIEW MODAL OVERLAY
   ========================================================== */
.grid-view-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.grid-view-overlay.hidden {
  display: none !important;
}

.grid-view-header {
  height: 54px;
  padding: 0 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid-view-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.close-grid-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
}

.grid-view-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.grid-card-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
}

.grid-card-thumb {
  aspect-ratio: 16 / 9;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-canvas-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.15s;
}

.grid-card-item:hover .grid-card-thumb {
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.grid-card-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

/* ==========================================================
   FULLSCREEN PRESENTER OVERLAY
   ========================================================== */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-overlay.hidden {
  display: none !important;
}

.fs-canvas-container {
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  max-height: 100vh;
  max-width: 177.78vh; /* 16:9 */
}

.fs-top-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2002;
}

.fullscreen-overlay:hover .fs-top-hud {
  opacity: 1;
}

.fs-brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-yellow);
}

.fs-counter {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.fs-hud-actions {
  display: flex;
  gap: 0.5rem;
}

.fs-hud-btn {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #ffffff;
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.fs-exit-btn {
  background: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.fs-nav-hotspot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  z-index: 2001;
  user-select: none;
}

.fs-prev-hotspot { left: 0; }
.fs-next-hotspot { right: 0; }

.fs-nav-hotspot:hover {
  opacity: 1;
  color: var(--color-yellow);
}

.fs-notes-card {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 360px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  color: #ffffff;
  backdrop-filter: blur(12px);
  z-index: 2003;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.fs-notes-card.hidden {
  display: none !important;
}

.fs-notes-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-yellow);
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.fs-notes-card-header button {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
}

.fs-notes-card-body {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.fs-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 2002;
}

.fs-progress-fill {
  height: 100%;
  background: var(--color-yellow);
  width: 0%;
  transition: width 0.25s ease;
}

/* Toast */
.app-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #111827;
  color: #ffffff;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  z-index: 3000;
  transition: all 0.25s ease;
}

.app-toast.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.toast-icon {
  color: #10b981;
  font-weight: 800;
}

/* ==========================================================
   STUDIO MODE SWITCHER (NAVBAR)
   ========================================================== */
.studio-mode-switcher {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-left: 0.75rem;
  gap: 2px;
}

.mode-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-tab:hover {
  color: #111827;
  background: rgba(255, 255, 255, 0.6);
}

.mode-tab.active {
  background: #ffffff;
  color: var(--color-forest);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.import-doc-btn {
  background: var(--color-mint-light) !important;
  border-color: var(--color-mint-border) !important;
  color: #065f46 !important;
}

.import-doc-btn:hover {
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
}

/* ==========================================================
   VIEW 2: DOCUMENT STUDIO (EXECUTIVE PDF REPORT DESIGNER)
   ========================================================== */
.document-studio-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #e5e7eb;
  overflow: hidden;
  height: calc(100vh - 54px);
}

.doc-studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.doc-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.doc-badge-pill {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--color-yellow);
  color: #042f24;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.doc-toolbar-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
}

.doc-pages-count {
  font-size: 0.75rem;
  color: #6b7280;
}

.doc-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.doc-btn-tool {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  transition: all 0.15s;
}

.doc-btn-tool:hover {
  background: #f9fafb;
}

.doc-btn-primary {
  background: var(--color-forest) !important;
  color: #ffffff !important;
  border-color: var(--color-forest) !important;
}

.doc-btn-primary:hover {
  background: var(--color-forest-light) !important;
}

.doc-btn-secondary {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border-color: #a7f3d0 !important;
}

.doc-btn-secondary:hover {
  background: #d1fae5 !important;
}

.doc-stage-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
}

.executive-paper-sheet {
  width: 100%;
  max-width: 840px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  padding: 3.5rem 3.5rem;
  box-sizing: border-box;
  font-family: var(--font-sans);
  color: #1f2937;
  line-height: 1.6;
}

.doc-header-block {
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1.5rem;
}

.doc-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.doc-company-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #059669;
}

.doc-confidential-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
}

.doc-headline {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-forest);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.doc-accent-bar {
  width: 50px;
  height: 4px;
  background: var(--color-yellow);
  border-radius: 2px;
  margin-bottom: 1rem;
}

.doc-meta-summary {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.doc-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
}

.doc-meta-item label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.2rem;
}

.doc-meta-item strong {
  display: block;
  font-size: 0.88rem;
  color: #111827;
}

.doc-meta-item span {
  font-size: 0.75rem;
  color: #6b7280;
}

.doc-section-block {
  margin-bottom: 2rem;
}

.doc-section-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-forest);
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.doc-callout-box {
  background: var(--color-forest);
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.doc-callout-box h4 {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-yellow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.doc-callout-box p {
  font-size: 0.86rem;
  color: #e5e7eb;
  line-height: 1.55;
}

.doc-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.doc-col-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-left: 3.5px solid var(--color-yellow);
  border-radius: 6px;
  padding: 0.85rem 1rem;
}

.doc-col-card h4 {
  font-size: 0.86rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.35rem;
}

.doc-col-card p {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.45;
}

.doc-deliverables-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
}

.doc-deliv-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #374151;
}

.doc-deliv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #059669;
  flex-shrink: 0;
  margin-top: 6px;
}

.doc-deliv-item strong {
  color: #111827;
}

.doc-table-surface {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.doc-formal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.doc-formal-table th {
  background: var(--color-mint-light);
  color: var(--color-forest);
  font-weight: 800;
  font-size: 0.72rem;
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--color-mint-border);
}

.doc-formal-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: top;
  line-height: 1.45;
}

.doc-formal-table tr:last-child td {
  border-bottom: none;
}

.doc-phases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}

.doc-phase-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
}

.doc-phase-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #059669;
  text-transform: uppercase;
}

.doc-phase-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  margin: 0.2rem 0 0.35rem;
}

.doc-phase-bullets {
  font-size: 0.73rem;
  color: #4b5563;
  line-height: 1.35;
}

.doc-outstanding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.doc-out-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  font-size: 0.76rem;
  color: #374151;
}

.doc-out-item strong {
  display: block;
  font-size: 0.8rem;
  color: #111827;
  margin-bottom: 0.15rem;
}

.doc-contractual-note {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #065f46;
  line-height: 1.45;
}

.doc-signoff-block {
  margin-top: 2.5rem;
  border-top: 2px solid #e5e7eb;
  padding-top: 1.25rem;
}

.doc-signoff-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6b7280;
}

.doc-signoff-line strong {
  color: #111827;
}

/* ==========================================================
   VIEW 3: CONVERSION HUB (WORD ⇄ PDF & DECK)
   ========================================================== */
.converters-hub-workspace {
  flex: 1;
  overflow-y: auto;
  background: #f3f4f6;
  padding: 2.5rem 3rem;
  box-sizing: border-box;
}

.hub-hero-banner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.hub-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--color-mint-light);
  color: #065f46;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.hub-headline {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.6rem;
}

.hub-subline {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.55;
}

.hub-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}

.converter-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.converter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon-box.bg-mint { background: var(--color-mint-light); }
.card-icon-box.bg-yellow { background: #fef3c7; }
.card-icon-box.bg-forest { background: var(--color-forest); }

.converter-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.badge-word-pdf { background: #d1fae5; color: #065f46; }
.badge-pdf-word { background: #fef3c7; color: #92400e; }
.badge-word-deck { background: #e0e7ff; color: #3730a3; }

.converter-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.converter-card p {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.drop-zone {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  background: #f9fafb;
  transition: all 0.15s ease;
  margin-bottom: 1.25rem;
  position: relative;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: #059669;
  background: #ecfdf5;
}

.hidden-file-input {
  display: none;
}

.drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.drop-prompt {
  font-size: 0.84rem;
  color: #374151;
}

.drop-subtext {
  font-size: 0.72rem;
  color: #9ca3af;
}

.file-chosen-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #059669;
}

.remove-file-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: #9ca3af;
  cursor: pointer;
}

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

.btn-action-primary {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  background: var(--color-forest);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.15s;
}

.btn-action-primary:hover:not(:disabled) {
  background: var(--color-forest-light);
}

.btn-action-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-action-secondary {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s;
}

.btn-action-secondary:hover:not(:disabled) {
  background: #f9fafb;
}

.sample-files-box {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sample-box-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: #4b5563;
}

.sample-box-left strong {
  color: #111827;
}

.sample-box-left code {
  background: #f3f4f6;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: #059669;
  font-family: var(--font-mono);
}

.btn-sample {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sample:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* ==========================================================
   MODALS: IMPORT, THEME, LAYOUT PICKER & OVERLAYS
   ========================================================= */
.import-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.import-modal-overlay.hidden {
  display: none !important;
}

.import-modal-card {
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.import-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  flex-shrink: 0;
}

.import-header-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.import-header-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.header-subtitle {
  font-size: 0.74rem;
  color: #64748b;
  display: block;
  margin-top: 1px;
}

/* Step Navigation Bar */
.import-steps-bar {
  display: flex;
  align-items: center;
  padding: 0.45rem 1.4rem;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
  gap: 0.5rem;
}

.import-step-tab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.import-step-tab:hover {
  background: rgba(255, 255, 255, 0.6);
}

.import-step-tab.active {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.import-step-tab.active .step-badge {
  background: #059669;
  color: #ffffff;
}

.step-text strong {
  display: block;
  font-size: 0.78rem;
  color: #1e293b;
  line-height: 1.2;
}

.step-text small {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.2;
}

.step-divider {
  color: #cbd5e1;
  font-size: 1.2rem;
  user-select: none;
}

.import-modal-body {
  padding: 1.4rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  box-sizing: border-box;
}

.import-step-panel.hidden {
  display: none !important;
}

.step1-continue-row {
  margin-top: 1rem;
}

.btn-step-next {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s;
}

.btn-step-next:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}

.import-modal-actions.sticky-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}

.btn-action-ghost {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #4b5563;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-action-ghost:hover {
  background: #f9fafb;
  color: #111827;
}

/* Slide Layout Picker Card Grid */
.layout-picker-card {
  max-width: 720px !important;
}

.slide-layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.layout-card-btn {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.layout-card-btn:hover {
  border-color: #059669;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(5, 150, 105, 0.15);
}

.layout-preview-box {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  margin-bottom: 0.6rem;
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  overflow: hidden;
  position: relative;
}

.layout-prev-cover {
  background: #042f24;
  color: #ffffff;
}

.layout-prev-cover .prev-badge {
  font-size: 0.5rem;
  font-weight: 800;
  background: #facc15;
  color: #042f24;
  padding: 1px 4px;
  border-radius: 2px;
  width: fit-content;
}

.layout-prev-cover .prev-title-line {
  height: 4px;
  background: #ffffff;
  border-radius: 2px;
  width: 70%;
}

.layout-prev-cover .prev-sub-line {
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  width: 50%;
}

.layout-prev-cards .prev-2col {
  display: flex;
  gap: 4px;
  flex: 1;
}

.layout-prev-cards .prev-box {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
}

.layout-prev-cards .prev-banner-box {
  height: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 2px;
}

.layout-prev-metrics .prev-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.layout-prev-metrics .prev-stat {
  height: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
}

.layout-prev-deliv .prev-grid6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.layout-prev-deliv .prev-c {
  height: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 2px;
}

.layout-prev-table .prev-th {
  height: 6px;
  background: #042f24;
  border-radius: 2px;
}

.layout-prev-table .prev-tr {
  height: 5px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.layout-prev-timeline .prev-tline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #059669;
  padding-bottom: 4px;
}

.layout-prev-timeline .p-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #059669;
}

.layout-prev-kanban {
  display: flex;
  gap: 3px;
  height: 100%;
}

.layout-prev-kanban .prev-kcol {
  flex: 1;
  border-radius: 2px;
  height: 100%;
}

.layout-prev-kanban .col-green { background: #d1fae5; }
.layout-prev-kanban .col-amber { background: #fef3c7; }
.layout-prev-kanban .col-blue { background: #dbeafe; }

.layout-prev-checks .prev-chk-row {
  height: 6px;
  background: #f1f5f9;
  border-radius: 2px;
  border-left: 3px solid #059669;
  margin-bottom: 2px;
}

.layout-prev-closing {
  background: #042f24;
  color: #ffffff;
}

.layout-prev-closing .prev-badge {
  font-size: 0.5rem;
  font-weight: 800;
  background: #10b981;
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 2px;
  width: fit-content;
}

.layout-prev-closing .prev-title-line {
  height: 4px;
  background: #facc15;
  border-radius: 2px;
  width: 60%;
}

.layout-card-meta strong {
  display: block;
  font-size: 0.79rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.15rem;
}

.layout-card-meta small {
  display: block;
  font-size: 0.69rem;
  color: #64748b;
  line-height: 1.35;
}

.import-explainer {
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.import-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: #9ca3af;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.import-or-divider::before, .import-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.import-or-divider span {
  padding: 0 0.75rem;
}

.modal-text-textarea {
  width: 100%;
  height: 110px;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  box-sizing: border-box;
  resize: vertical;
  margin-bottom: 1.25rem;
}

.import-modal-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.75rem;
}

.hidden {
  display: none !important;
}

.processing-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 47, 36, 0.75);
  backdrop-filter: blur(4px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.processing-modal-overlay.hidden {
  display: none !important;
}

.processing-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  max-width: 400px;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #059669;
  border-radius: 50%;
  animation: spin-cw 0.8s linear infinite;
  margin: 0 auto 1.25rem;
}

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

.processing-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.4rem;
}

.processing-card p {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.45;
}
/* ==========================================================
   THEME STYLING & 5 EXECUTIVE TEMPLATES
   ========================================================== */
:root {
  --theme-primary: #042F24;
  --theme-accent: #FACC15;
  --theme-light: #E6F4EA;
  --theme-border: #A7F3D0;
  --theme-bg: #FCFBF8;
  --theme-card: #FFFFFF;
  --theme-text: #111827;
  --theme-muted: #6B7280;
}

/* Template 1: Executive Emerald & Gold */
body.theme-emerald,
.theme-emerald {
  --color-forest: #042f24;
  --color-forest-dark: #021f18;
  --color-forest-light: #0a4435;
  --color-yellow: #facc15;
  --color-yellow-dark: #eab308;
  --color-mint-light: #e6f4ea;
  --color-mint-border: #b7e1cd;
  --color-canvas-bg: #FCFBF8;
  --color-card-bg: #ffffff;
  --color-text-main: #1f2937;
  --color-text-muted: #6b7280;
  --color-border-subtle: #e5e7eb;

  --theme-primary: #042F24;
  --theme-accent: #FACC15;
  --theme-light: #E6F4EA;
  --theme-border: #A7F3D0;
  --theme-bg: #FCFBF8;
  --theme-card: #FFFFFF;
  --theme-text: #111827;
  --theme-muted: #6B7280;
}

/* Template 2: Midnight Obsidian & Cyber Cyan */
body.theme-obsidian,
.theme-obsidian {
  --color-forest: #06B6D4;
  --color-forest-dark: #0891B2;
  --color-forest-light: #164E63;
  --color-yellow: #38BDF8;
  --color-yellow-dark: #0284C7;
  --color-mint-light: #1E293B;
  --color-mint-border: #334155;
  --color-canvas-bg: #0B0F19;
  --color-card-bg: #161F30;
  --color-text-main: #F8FAFC;
  --color-text-muted: #94A3B8;
  --color-border-subtle: #334155;

  --theme-primary: #0B0F19;
  --theme-accent: #06B6D4;
  --theme-light: #1E293B;
  --theme-border: #334155;
  --theme-bg: #0B0F19;
  --theme-card: #161F30;
  --theme-text: #F8FAFC;
  --theme-muted: #94A3B8;
}

.theme-obsidian.slide-frame,
.theme-obsidian .slide-frame,
body.theme-obsidian .slide-frame {
  background: #0B0F19 !important;
  color: #F8FAFC !important;
}

.theme-obsidian .slide-view,
body.theme-obsidian .slide-view {
  background: #0B0F19 !important;
}

.theme-obsidian .slide-header-area h2,
.theme-obsidian .slide-view h1,
.theme-obsidian .slide-view h2,
.theme-obsidian .slide-view h3,
.theme-obsidian .slide-view h4,
.theme-obsidian .slide-view strong,
body.theme-obsidian .slide-view h1,
body.theme-obsidian .slide-view h2,
body.theme-obsidian .slide-view h3,
body.theme-obsidian .slide-view h4,
body.theme-obsidian .slide-view strong {
  color: #F8FAFC !important;
}

.theme-obsidian .slide-header-area .slide-subline,
.theme-obsidian .slide-view p,
.theme-obsidian .slide-view span,
body.theme-obsidian .slide-view p,
body.theme-obsidian .slide-view span {
  color: #CBD5E1 !important;
}

.theme-obsidian .white-accent-card,
.theme-obsidian .deliv-feature-card,
.theme-obsidian .ten-deliv-card,
.theme-obsidian .status-col-card,
.theme-obsidian .outstanding-item-card,
.theme-obsidian .priority-step-row,
.theme-obsidian .question-card-item,
.theme-obsidian .timeline-col-card,
body.theme-obsidian .white-accent-card,
body.theme-obsidian .deliv-feature-card,
body.theme-obsidian .ten-deliv-card,
body.theme-obsidian .status-col-card,
body.theme-obsidian .outstanding-item-card,
body.theme-obsidian .priority-step-row,
body.theme-obsidian .question-card-item,
body.theme-obsidian .timeline-col-card {
  background: #161F30 !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4) !important;
}

.theme-obsidian .slide-category-pill,
body.theme-obsidian .slide-category-pill {
  background: #06B6D4 !important;
  color: #0B0F19 !important;
}

.theme-obsidian .table-surface table th,
body.theme-obsidian .table-surface table th {
  background: #1E293B !important;
  color: #06B6D4 !important;
}

.theme-obsidian .table-surface table td,
body.theme-obsidian .table-surface table td {
  background: #161F30 !important;
  color: #F8FAFC !important;
  border-color: #334155 !important;
}

/* Template 3: Corporate Royal Azure & Cobalt */
body.theme-royal_azure,
.theme-royal_azure {
  --color-forest: #1E3A8A;
  --color-forest-dark: #172554;
  --color-forest-light: #1D4ED8;
  --color-yellow: #2563EB;
  --color-yellow-dark: #1D4ED8;
  --color-mint-light: #EFF6FF;
  --color-mint-border: #BFDBFE;
  --color-canvas-bg: #F8FAFC;
  --color-card-bg: #FFFFFF;
  --color-text-main: #0F172A;
  --color-text-muted: #64748B;
  --color-border-subtle: #E2E8F0;

  --theme-primary: #0F172A;
  --theme-accent: #2563EB;
  --theme-light: #EFF6FF;
  --theme-border: #BFDBFE;
  --theme-bg: #F8FAFC;
  --theme-card: #FFFFFF;
  --theme-text: #0F172A;
  --theme-muted: #64748B;
}

.theme-royal_azure .slide-category-pill,
body.theme-royal_azure .slide-category-pill {
  background: #2563EB !important;
  color: #FFFFFF !important;
}

.theme-royal_azure .slide-header-area h2,
body.theme-royal_azure .slide-header-area h2 {
  color: #0F172A !important;
}

.theme-royal_azure .white-accent-card,
body.theme-royal_azure .white-accent-card {
  border-top-color: #2563EB !important;
}

/* Template 4: Nordic Warm Sand & Terracotta */
body.theme-nordic_sand,
.theme-nordic_sand {
  --color-forest: #9A3412;
  --color-forest-dark: #7C2D12;
  --color-forest-light: #C2410C;
  --color-yellow: #C2410C;
  --color-yellow-dark: #9A3412;
  --color-mint-light: #F5EBE1;
  --color-mint-border: #E7D8C9;
  --color-canvas-bg: #FAF7F2;
  --color-card-bg: #FFFFFF;
  --color-text-main: #1C1917;
  --color-text-muted: #78716C;
  --color-border-subtle: #E7D8C9;

  --theme-primary: #292524;
  --theme-accent: #C2410C;
  --theme-light: #F5EBE1;
  --theme-border: #E7D8C9;
  --theme-bg: #FAF7F2;
  --theme-card: #FFFFFF;
  --theme-text: #1C1917;
  --theme-muted: #78716C;
}

.theme-nordic_sand.slide-frame,
.theme-nordic_sand .slide-frame,
body.theme-nordic_sand .slide-frame {
  background: #FAF7F2 !important;
}

.theme-nordic_sand .slide-category-pill,
body.theme-nordic_sand .slide-category-pill {
  background: #C2410C !important;
  color: #FFFFFF !important;
}

.theme-nordic_sand .white-accent-card,
body.theme-nordic_sand .white-accent-card {
  border-top-color: #C2410C !important;
}

/* Template 5: Sunset Crimson & Vibrant Coral */
body.theme-sunset_coral,
.theme-sunset_coral {
  --color-forest: #831843;
  --color-forest-dark: #701A75;
  --color-forest-light: #9D174D;
  --color-yellow: #F43F5E;
  --color-yellow-dark: #E11D48;
  --color-mint-light: #FFE4E6;
  --color-mint-border: #FECDD3;
  --color-canvas-bg: #FFFBFB;
  --color-card-bg: #FFFFFF;
  --color-text-main: #1F2937;
  --color-text-muted: #6B7280;
  --color-border-subtle: #FECDD3;

  --theme-primary: #3B0764;
  --theme-accent: #F43F5E;
  --theme-light: #FFE4E6;
  --theme-border: #FECDD3;
  --theme-bg: #FFFBFB;
  --theme-card: #FFFFFF;
  --theme-text: #1F2937;
  --theme-muted: #6B7280;
}

.theme-sunset_coral .slide-category-pill,
body.theme-sunset_coral .slide-category-pill {
  background: #F43F5E !important;
  color: #FFFFFF !important;
}

.theme-sunset_coral .white-accent-card,
body.theme-sunset_coral .white-accent-card {
  border-top-color: #F43F5E !important;
}

/* ==========================================================
   ANIMATED DESIGNS & SLIDE TRANSITIONS
   ========================================================== */
.anim-slide_up .slide-view {
  animation: slideUpEmerge 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpEmerge {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.anim-fade .slide-view {
  animation: fadeDissolve 0.3s ease-in-out forwards;
}

@keyframes fadeDissolve {
  from { opacity: 0; }
  to { opacity: 1; }
}

.anim-zoom .slide-view {
  animation: zoomScaleSoft 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoomScaleSoft {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.anim-flip .slide-view {
  animation: perspectiveFlip 0.38s ease-out forwards;
}

@keyframes perspectiveFlip {
  from {
    opacity: 0;
    transform: perspective(800px) rotateX(10deg) translateY(15px);
  }
  to {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg) translateY(0);
  }
}

.anim-stagger .slide-view {
  animation: fadeDissolve 0.25s ease forwards;
}

.anim-stagger .slide-view .white-accent-card,
.anim-stagger .slide-view .deliv-feature-card,
.anim-stagger .slide-view .ten-deliv-card,
.anim-stagger .slide-view .outstanding-item-card,
.anim-stagger .slide-view .priority-step-row,
.anim-stagger .slide-view .question-card-item {
  animation: slideUpEmerge 0.38s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.anim-stagger .slide-view *:nth-child(1) { animation-delay: 0.03s; }
.anim-stagger .slide-view *:nth-child(2) { animation-delay: 0.07s; }
.anim-stagger .slide-view *:nth-child(3) { animation-delay: 0.11s; }
.anim-stagger .slide-view *:nth-child(4) { animation-delay: 0.15s; }
.anim-stagger .slide-view *:nth-child(5) { animation-delay: 0.19s; }
.anim-stagger .slide-view *:nth-child(6) { animation-delay: 0.23s; }

/* Aspect ratio 4:3 mode */
.aspect-ratio-4-3 .aspect-wrapper {
  max-width: 960px !important;
  aspect-ratio: 4 / 3 !important;
}

/* Typography styles */
.font-tech .slide-view {
  font-family: 'Outfit', sans-serif !important;
}

.font-editorial .slide-view h1,
.font-editorial .slide-view h2,
.font-editorial .slide-view h3 {
  font-family: 'Playfair Display', Georgia, serif !important;
}

.font-corporate .slide-view {
  font-family: 'Segoe UI', Roboto, sans-serif !important;
}

/* Icon style variants */
.icon-style-glass .deliv-icon-wrapper,
.icon-style-glass .item-check-circle {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.icon-style-solid .deliv-icon-wrapper {
  background: var(--theme-primary) !important;
  color: var(--theme-accent) !important;
}

.icon-style-line .deliv-icon-wrapper {
  background: transparent !important;
  border: 1.5px solid var(--theme-accent) !important;
  color: var(--theme-primary) !important;
}

/* ==========================================================
   CONFIGURATOR UI (MODAL & DESIGN TOOLS)
   ========================================================== */
.deck-config-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.config-header {
  margin-bottom: 1rem;
}

.config-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--color-yellow);
  color: #042f24;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.3rem;
}

.config-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.config-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.template-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.template-option {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.template-option:hover {
  border-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.template-option.active {
  border-color: #059669;
  background: #ecfdf5;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.tpl-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 14px;
  background: #f3f4f6;
  margin-bottom: 0.2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-forest { background: #042F24; }
.dot-gold { background: #FACC15; }
.dot-mint { background: #10B981; }

.dot-black { background: #0B0F19; }
.dot-cyan { background: #06B6D4; }
.dot-indigo { background: #6366F1; }

.dot-navy { background: #0F172A; }
.dot-cobalt { background: #2563EB; }
.dot-ice { background: #93C5FD; }

.dot-stone { background: #292524; }
.dot-terracotta { background: #C2410C; }
.dot-cream { background: #F5EBE1; }

.dot-plum { background: #3B0764; }
.dot-coral { background: #F43F5E; }
.dot-rose { background: #FDA4AF; }

.template-option strong {
  font-size: 0.74rem;
  color: #111827;
  line-height: 1.2;
}

.template-option small {
  font-size: 0.65rem;
  color: #6b7280;
  line-height: 1.2;
}

.config-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.config-row-full {
  margin-bottom: 0.5rem;
}

.slide-count-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.count-pill {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.count-pill:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.count-pill.active {
  background: var(--color-forest);
  color: #ffffff;
  border-color: var(--color-forest);
}

.custom-count-input-wrap {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #374151;
}

.custom-num-field {
  width: 70px;
  padding: 0.25rem 0.4rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.format-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.format-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.format-btn:hover {
  border-color: #059669;
}

.format-btn.active {
  border-color: #059669;
  background: #ecfdf5;
}

.ratio-box {
  background: #d1d5db;
  border: 1px solid #9ca3af;
  border-radius: 2px;
  flex-shrink: 0;
}

.ratio-16-9 {
  width: 22px;
  height: 12.5px;
}

.ratio-4-3 {
  width: 18px;
  height: 13.5px;
}

.format-btn strong {
  display: block;
  font-size: 0.78rem;
  color: #111827;
}

.format-btn small {
  font-size: 0.68rem;
  color: #6b7280;
}

.config-select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
}

.font-selector-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.font-btn {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.font-btn:hover {
  border-color: #059669;
}

.font-btn.active {
  border-color: #059669;
  background: #ecfdf5;
}

.font-btn strong {
  display: block;
  font-size: 0.74rem;
  color: #111827;
}

.font-btn small {
  font-size: 0.65rem;
  color: #6b7280;
}

.theme-style-btn {
  background: #fef3c7 !important;
  border-color: #fde68a !important;
  color: #92400e !important;
}

.theme-style-btn:hover {
  background: #fde68a !important;
}

.custom-color-pickers-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #374151;
}

.custom-color-pickers-row input[type="color"] {
  width: 32px;
  height: 28px;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  vertical-align: middle;
}
@media print {
  @page {
    size: 16in 9in landscape;
    margin: 0;
  }

  body, html {
    background: #ffffff !important;
    overflow: visible !important;
    height: auto !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .top-nav,
  .slide-sidebar,
  .speaker-notes-panel,
  .stage-tip-banner,
  .stage-footer-bar,
  .grid-view-overlay,
  .fullscreen-overlay,
  .app-toast {
    display: none !important;
  }

  .main-workspace {
    display: block !important;
    height: auto !important;
  }

  .presentation-stage {
    padding: 0 !important;
    background: none !important;
    display: block !important;
  }

  .aspect-wrapper {
    max-width: 100% !important;
    max-height: none !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    page-break-after: always;
  }

  .slide-frame {
    width: 100vw !important;
    height: 100vh !important;
  }

  .slide-view {
    padding: 3.5rem 4.5rem !important;
  }
}

/* ==========================================================
   VIEW 4: PDF EDITOR & SIGN STUDIO STYLES
   ========================================================== */

.pdf-editor-workspace {
  display: flex;
  flex: 1;
  height: calc(100vh - 54px);
  overflow: hidden;
  background-color: #f1f5f9;
}

/* PDF Pages Sidebar */
.pdf-pages-sidebar {
  width: 240px;
  background: #ffffff;
  border-right: 1px solid var(--nav-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
}

.pdf-pages-sidebar .sidebar-header {
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--nav-border);
}

.page-count-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #475569;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.pdf-thumbs-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pdf-thumb-card {
  position: relative;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdf-thumb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.pdf-thumb-card.active {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.pdf-thumb-img {
  width: 100%;
  display: block;
  background: #f8fafc;
}

.pdf-thumb-number {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.pdf-sidebar-bottom {
  padding: 0.85rem;
  border-top: 1px solid var(--nav-border);
  background: #f8fafc;
}

.btn-sidebar-upload {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sidebar-upload:hover {
  border-color: #059669;
  color: #059669;
  background: #ecfdf5;
}

/* PDF Editor Main Area */
.pdf-editor-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
}

/* PDF Toolbar */
.pdf-toolbar {
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  gap: 1rem;
  z-index: 20;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.pdf-toolbar-left,
.pdf-toolbar-center,
.pdf-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdf-doc-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toolbar-sep {
  width: 1px;
  height: 22px;
  background: #e2e8f0;
  margin: 0 0.35rem;
}

.pdf-tool-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.pdf-tool-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.pdf-tool-btn.active {
  background: #ecfdf5;
  border-color: #059669;
  color: #065f46;
}

.signature-accent-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.signature-accent-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.pdf-nav-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.pdf-nav-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.pdf-page-indicator {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  min-width: 80px;
  text-align: center;
}

.zoom-level-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  min-width: 45px;
  text-align: center;
}

.btn-download-pdf-accent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
  transition: all 0.15s;
}

.btn-download-pdf-accent:hover {
  background: #047857;
  transform: translateY(-1px);
}

/* Floating Find & Replace Bar */
.pdf-find-replace-bar {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 30;
  padding: 1rem 1.25rem;
  animation: slideDownFade 0.2s ease-out forwards;
}

.find-replace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.find-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #0f172a;
}

.close-bar-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #94a3b8;
  cursor: pointer;
}

.close-bar-btn:hover {
  color: #0f172a;
}

.fr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.fr-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fr-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.fr-field input {
  padding: 0.45rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}

.fr-field input:focus {
  border-color: #059669;
}

.fr-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fr-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
}

.fr-matches-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.fr-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-fr-secondary {
  padding: 0.4rem 0.8rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.btn-fr-secondary:hover {
  background: #e2e8f0;
}

.btn-fr-primary {
  padding: 0.4rem 0.85rem;
  background: #059669;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
}

.btn-fr-primary:hover {
  background: #047857;
}

/* Subbars */
.pdf-text-options-bar,
.pdf-signature-arm-bar {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  animation: slideDownFade 0.15s ease-out forwards;
}

.pdf-signature-arm-bar {
  background: #312e81;
}

.arm-pulse {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(56, 189, 248, 0.7);
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.text-opt-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.text-opt-item select {
  background: #334155;
  color: #ffffff;
  border: 1px solid #475569;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.text-opt-item input[type="color"] {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.btn-close-subbar {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-close-subbar:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* PDF Canvas Scrollport */
.pdf-canvas-scrollport {
  flex: 1;
  overflow: auto;
  padding: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #cbd5e1;
}

.pdf-page-wrapper {
  position: relative;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  transition: transform 0.15s ease-out;
  transform-origin: top center;
}

.pdf-page-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.pdf-interactive-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

/* Overlay Items */
.pdf-search-highlight {
  position: absolute;
  background: rgba(250, 204, 21, 0.45);
  border: 1px solid #eab308;
  border-radius: 2px;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.pdf-text-annotation {
  position: absolute;
  border: 1px dashed transparent;
  border-radius: 4px;
  padding: 2px 4px;
  cursor: move;
  outline: none;
  transition: all 0.15s;
  background: rgba(255, 255, 255, 0.4);
}

.pdf-text-annotation:hover,
.pdf-text-annotation:focus {
  border-color: #2563eb;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.pdf-item-delete-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 50%;
  border: none;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pdf-text-annotation:hover .pdf-item-delete-btn,
.pdf-signature-stamp:hover .pdf-item-delete-btn {
  display: flex;
}

.pdf-signature-stamp {
  position: absolute;
  border: 1px dashed #4f46e5;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
  cursor: move;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.pdf-signature-stamp img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.pdf-sig-resize-handle {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background: #4f46e5;
  border-radius: 2px;
  cursor: se-resize;
}

/* Quick Sign Panel in PDF Sidebar */
.pdf-sidebar-quick-sign {
  padding: 0.85rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--nav-border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pdf-quick-sign-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
  transition: all 0.2s;
}

.pdf-quick-sign-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}

.pdf-quick-sign-help {
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  line-height: 1.35;
}

/* Interactive "Sign Here" Target on the PDF */
.pdf-sign-target-prompt {
  position: absolute;
  cursor: pointer;
  z-index: 15;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pdf-sign-target-prompt:hover {
  transform: scale(1.03);
}

.sign-target-box {
  background: rgba(254, 243, 199, 0.95);
  border: 2px dashed #f59e0b;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  animation: pulseSignTarget 2s infinite;
}

@keyframes pulseSignTarget {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.sign-target-icon {
  font-size: 1.25rem;
}

.sign-target-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400e;
}

.sign-target-text small {
  display: block;
  font-size: 0.7rem;
  color: #b45309;
}

/* ==========================================================
   SIGNATURE STUDIO MODAL STYLES
   ========================================================== */
.signature-modal-card {
  background: #ffffff;
  border-radius: 12px;
  width: 95%;
  max-width: 640px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalScaleIn 0.2s ease-out;
}

.sig-tabs-bar {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--nav-border);
  padding: 0.5rem 1.25rem 0;
  gap: 0.5rem;
}

.sig-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
}

.sig-tab:hover {
  color: #0f172a;
}

.sig-tab.active {
  color: #059669;
  border-bottom-color: #059669;
}

.sig-tab-content {
  padding: 1.25rem;
}

/* Tab 1: Draw */
.sig-canvas-container {
  position: relative;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  cursor: crosshair;
}

#sigDrawCanvas {
  display: block;
  width: 100%;
  height: 180px;
  background: transparent;
}

.sig-canvas-baseline {
  position: absolute;
  bottom: 40px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: #e2e8f0;
  pointer-events: none;
}

.sig-draw-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
}

.pen-colors,
.pen-widths {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ctrl-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 0.2rem;
}

.pen-color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s;
}

.pen-color-dot.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #059669;
  transform: scale(1.1);
}

.pen-width-btn {
  padding: 0.25rem 0.55rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.pen-width-btn.active {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

.btn-clear-sig {
  padding: 0.3rem 0.75rem;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-clear-sig:hover {
  background: #fca5a5;
}

/* Tab 2: Type */
.type-input-box {
  margin-bottom: 1rem;
}

.type-input-box label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.35rem;
}

.type-input-box input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
}

.type-input-box input:focus {
  border-color: #059669;
}

.sig-font-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.sig-font-card {
  padding: 0.85rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s;
}

.sig-font-card:hover {
  border-color: #94a3b8;
  background: #ffffff;
}

.sig-font-card.active {
  border-color: #059669;
  background: #ecfdf5;
}

.font-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.25rem;
}

.font-sample {
  font-size: 1.5rem;
  color: #0b2545;
  line-height: 1.3;
}

.dancing-script-sample {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
}

.great-vibes-sample {
  font-family: 'Great Vibes', cursive;
  font-size: 1.7rem;
}

.caveat-sample {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.8rem;
}

.sacramento-sample {
  font-family: 'Sacramento', cursive;
  font-size: 1.9rem;
}

/* Tab 3: Upload */
.sig-drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s;
}

.sig-drop-zone:hover {
  border-color: #059669;
  background: #ecfdf5;
}

.sig-preview-box {
  position: relative;
  max-width: 280px;
  margin: 0 auto;
  background: #ffffff;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.sig-preview-box img {
  max-width: 100%;
  max-height: 100px;
  display: block;
  margin: 0 auto;
}

/* Modal Footer */
.sig-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--nav-border);
  gap: 0.75rem;
}

.btn-use-sig {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.25rem;
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-use-sig:hover {
  background: #047857;
}

/* =======================================================
   DECK & DOCUMENT HISTORY MODAL STYLES
   ======================================================= */
.history-modal-card {
  max-width: 820px !important;
  width: 95% !important;
  max-height: 88vh;
}

.history-search-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.4rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.history-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  flex: 1;
}

.history-search-input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.82rem;
  width: 100%;
  color: #1e293b;
}

.btn-save-snapshot {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  border-radius: 8px;
  background: #059669;
  color: #ffffff;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-save-snapshot:hover {
  background: #047857;
}

.history-modal-body {
  padding: 1.25rem 1.4rem;
  max-height: 56vh;
  overflow-y: auto;
}

.deck-history-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.deck-history-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  gap: 1rem;
}

.deck-history-card:hover {
  border-color: #059669;
  box-shadow: 0 6px 16px -2px rgba(5, 150, 105, 0.12);
  transform: translateY(-1px);
}

.deck-history-card.active-deck-card {
  border-color: #10b981;
  background: #f0fdf4;
}

.deck-card-main {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  flex: 1;
  min-width: 0;
}

.deck-card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.active-deck-card .deck-card-icon-box {
  background: #059669;
  color: #ffffff;
}

.deck-card-text {
  flex: 1;
  min-width: 0;
}

.deck-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.deck-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-active-deck {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #059669;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.deck-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: #64748b;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
}

.deck-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-deck-load {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: #059669;
  color: #ffffff;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-deck-load:hover {
  background: #047857;
}

.btn-deck-load.is-active-btn {
  background: #e2e8f0;
  color: #64748b;
  cursor: default;
}

.btn-deck-dl {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f766e;
  border: 1px solid #ccfbf1;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.btn-deck-dl:hover {
  background: #f0fdfa;
  border-color: #5eead4;
  color: #0d9488;
}

.btn-deck-del {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: #ffffff;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-deck-del:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.history-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}

.history-empty-state svg {
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}

.history-empty-state h4 {
  color: #334155;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}


