/**
 * STYLESHEET: Modern Bento UI (Dual Theme: Dark & Light)
 * Inspired by modern financial & SaaS dashboards with rounded bento cards,
 * geometric Plus Jakarta Sans typography, and lime green capsule accents.
 */

/* ==========================================================================
   DESIGN TOKENS & DUAL THEMES (Studio Krama Agency Architectural Theme)
   ========================================================================== */

/* DARK THEME:
   Background Color: #3a0803
   Lines and Strokes: #a12716
   Highlight color for hover and buttons: #fc422a
*/
:root, :root[data-theme="dark"] {
  color-scheme: dark;

  /* Canvas & Surfaces */
  --bg-canvas: #3a0803;          /* Exact user request */
  --bg-surface: #430a04;         /* Rich deep burgundy surface */
  --bg-card: #380702;            /* Structural architectural card */
  --bg-card-subtle: #4b0e06;     /* Subtle container tint */
  --bg-card-hover: #541107;      /* Hover state */
  --bg-overlay: rgba(58, 8, 3, 0.92);
  --bg-input: #2b0502;
  --bg-input-focus: #3e0904;

  /* Elevated Bento Accent */
  --card-white-bg: #fff5f2;
  --card-white-text: #280502;
  --card-white-muted: #8b3c33;

  /* Lines and Strokes */
  --border-subtle: rgba(161, 39, 22, 0.45);  /* Subtle structural hairline */
  --border-medium: #a12716;                  /* Exact user request: a12716 */
  --border-strong: #c8311d;                  /* Prominent border */
  --border-focus: #fc422a;                   /* Exact user request highlight */

  /* Highlight color for hover and buttons */
  --accent-primary: #fc422a;                 /* Exact user request: fc422a */
  --accent-primary-hover: #ff5842;
  --accent-primary-text: #ffffff;
  --accent-primary-subtle: rgba(252, 66, 42, 0.18);

  /* Legacy alias mappings */
  --accent-lime: var(--accent-primary);
  --accent-lime-hover: var(--accent-primary-hover);
  --accent-lime-text: var(--accent-primary-text);
  --accent-lime-subtle: var(--accent-primary-subtle);

  /* Text Colors */
  --text-primary: #fff5f2;       /* Warm ivory for supreme legibility on dark burgundy */
  --text-secondary: #f0c2bb;     /* Soft warm terracotta ivory */
  --text-muted: #b86a60;         /* Muted terracotta */
  --text-inverse: #280502;

  /* Nav Pills */
  --nav-pill-bg: #2d0602;
  --nav-pill-text: #f0c2bb;
  --nav-pill-active-bg: #fc422a;
  --nav-pill-active-text: #ffffff;

  /* Status Colors & Badges (Refined Harmonious Warm Architectural Palette) */
  --status-approved: #52b788;
  --status-approved-bg: rgba(82, 183, 136, 0.16);
  --status-approved-text: #74c69d;

  --status-posted: #38bdf8;
  --status-posted-bg: rgba(56, 189, 248, 0.16);
  --status-posted-text: #7dd3fc;

  --status-pending: #e09f3e;
  --status-pending-bg: rgba(224, 159, 62, 0.16);
  --status-pending-text: #f0be6c;

  --status-revision: #fc422a;
  --status-revision-bg: rgba(252, 66, 42, 0.18);
  --status-revision-text: #ff6f5b;

  --status-draft: #b86a60;
  --status-draft-bg: rgba(184, 106, 96, 0.16);
  --status-draft-text: #f0c2bb;

  /* Social Calendar Event Formats (Warm Architectural Harmonized) */
  --cal-story: #e88062;
  --cal-story-bg: rgba(232, 128, 98, 0.16);
  --cal-story-text: #fcae9a;
  --cal-reel: #e27396;
  --cal-reel-bg: rgba(226, 115, 150, 0.16);
  --cal-reel-text: #f4a6be;
  --cal-post: #f59e42;
  --cal-post-bg: rgba(245, 158, 66, 0.16);
  --cal-post-text: #ffb775;

  /* Architectural Shadows */
  --card-shadow: 0 12px 36px rgba(25, 3, 1, 0.55);
  --card-shadow-hover: 0 16px 44px rgba(25, 3, 1, 0.75), 0 0 0 1px #a12716;
}

/* LIGHT THEME:
   Background Color: #fbfbfb
   Lines and Strokes: Refined terracotta/crimson hairline borders
   Highlight color for hover and buttons: #fc422a
*/
:root[data-theme="light"] {
  color-scheme: light;

  /* Canvas & Surfaces */
  --bg-canvas: #fbfbfb;          /* Exact user request */
  --bg-surface: #ffffff;         /* Pure crisp architectural white */
  --bg-card: #ffffff;
  --bg-card-subtle: #f8f2f1;     /* Delicate warm ivory-rose tint */
  --bg-card-hover: #fcf7f6;
  --bg-overlay: rgba(251, 251, 251, 0.94);
  --bg-input: #f5ecea;
  --bg-input-focus: #ffffff;

  /* Elevated Bento Accent */
  --card-white-bg: #2d0602;
  --card-white-text: #ffffff;
  --card-white-muted: #e8b4ad;

  /* Lines and Strokes */
  --border-subtle: rgba(161, 39, 22, 0.16);  /* Soft terracotta hairline */
  --border-medium: rgba(161, 39, 22, 0.35);  /* Harmonious architectural stroke */
  --border-strong: #a12716;                  /* Solid terracotta stroke */
  --border-focus: #fc422a;

  /* Highlight color for hover and buttons */
  --accent-primary: #fc422a;                 /* Exact user request highlight */
  --accent-primary-hover: #e0321c;
  --accent-primary-text: #ffffff;
  --accent-primary-subtle: rgba(252, 66, 42, 0.14);

  /* Legacy alias mappings */
  --accent-lime: var(--accent-primary);
  --accent-lime-hover: var(--accent-primary-hover);
  --accent-lime-text: var(--accent-primary-text);
  --accent-lime-subtle: var(--accent-primary-subtle);

  /* Text Colors */
  --text-primary: #280502;       /* Deep rich dark mahogany for pristine contrast */
  --text-secondary: #6e2017;     /* Warm dark terracotta */
  --text-muted: #9e5246;         /* Refined terracotta muted */
  --text-inverse: #ffffff;

  /* Nav Pills */
  --nav-pill-bg: #f4ecea;
  --nav-pill-text: #6e2017;
  --nav-pill-active-bg: #fc422a;
  --nav-pill-active-text: #ffffff;

  /* Status Colors & Badges (Refined Harmonious Warm Architectural Palette) */
  --status-approved: #2d6a4f;
  --status-approved-bg: rgba(45, 106, 79, 0.12);
  --status-approved-text: #1b4332;

  --status-posted: #0284c7;
  --status-posted-bg: rgba(2, 132, 199, 0.12);
  --status-posted-text: #0369a1;

  --status-pending: #a86c1d;
  --status-pending-bg: rgba(168, 108, 29, 0.12);
  --status-pending-text: #734509;

  --status-revision: #fc422a;
  --status-revision-bg: rgba(252, 66, 42, 0.12);
  --status-revision-text: #c22915;

  --status-draft: #6e2017;
  --status-draft-bg: #f4ecea;
  --status-draft-text: #6e2017;

  /* Social Calendar Event Formats (Warm Architectural Harmonized) */
  --cal-story: #b34a2e;
  --cal-story-bg: rgba(179, 74, 46, 0.12);
  --cal-story-text: #7d2a13;
  --cal-reel: #a83858;
  --cal-reel-bg: rgba(168, 56, 88, 0.12);
  --cal-reel-text: #7a1d35;
  --cal-post: #b86514;
  --cal-post-bg: rgba(184, 101, 20, 0.12);
  --cal-post-text: #8c4805;

  /* Shadows */
  --card-shadow: 0 8px 24px rgba(40, 5, 2, 0.06), 0 1px 3px rgba(40, 5, 2, 0.03);
  --card-shadow-hover: 0 14px 32px rgba(40, 5, 2, 0.12), 0 0 0 1px rgba(161, 39, 22, 0.35);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.mono-text, time, .badge, .status-dot, .code-tag, input[type="datetime-local"] {
  font-family: 'Space Mono', monospace;
}

.card-kicker {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ==========================================================================
   BUTTONS & PILLS (Capsule Style)
   ========================================================================== */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: 9999px;
  border: 1px solid var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(252, 66, 42, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(252, 66, 42, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-card-hover);
  color: var(--accent-primary);
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: transparent;
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-subtle:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background-color: var(--bg-card-subtle);
}

.btn-icon-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon-subtle:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.btn-icon-action,
.btn-icon-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
}

.btn-icon-action:hover,
.btn-icon-edit:hover {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(252, 66, 42, 0.35);
}

.btn-danger-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: var(--status-revision);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger-ghost:hover {
  background: rgba(244, 63, 94, 0.1);
  border-color: var(--status-revision);
}

/* Status Dots & Modern Status Pills (from Image 1 & 2) */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.status-approved { background-color: var(--status-approved); }
.status-dot.status-posted { background-color: var(--status-posted); box-shadow: 0 0 6px var(--status-posted); }
.status-dot.status-pending { background-color: var(--status-pending); }
.status-dot.status-revision { background-color: var(--status-revision); }
.status-dot.status-draft { background-color: var(--status-draft); }

.status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-pill-badge.pill-approved {
  background-color: var(--status-approved-bg);
  color: var(--status-approved-text);
}

.status-pill-badge.pill-posted {
  background-color: var(--status-posted-bg);
  color: var(--status-posted-text);
  border: 1px solid var(--status-posted);
}

.status-pill-badge.pill-pending {
  background-color: var(--status-pending-bg);
  color: var(--status-pending-text);
}

.status-pill-badge.pill-revision {
  background-color: var(--status-revision-bg);
  color: var(--status-revision-text);
}

.status-pill-badge.pill-draft {
  background-color: var(--status-draft-bg);
  color: var(--status-draft-text);
}

/* ==========================================================================
   HEADER & FLOATING CAPSULE NAVIGATION (from Image 1 & 2)
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  gap: 16px;
}

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

/* Logo icon like 4-leaf clover / flower in the reference images */
.brand-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px 3px 12px 12px;
  background-color: var(--accent-primary);
  color: #ffffff;
  border: 1px solid var(--border-medium);
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(252, 66, 42, 0.3);
  overflow: hidden;
  padding: 4px;
}

.brand-monogram img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Workspace Selector Unified Pill (Image 2 Fix) */
.workspace-selector-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  padding: 5px 12px 5px 14px;
  margin-left: 12px;
  transition: all 0.2s ease;
}

.workspace-selector-wrap:hover,
.workspace-selector-wrap:focus-within {
  border-color: var(--accent-primary);
  background-color: var(--bg-card-hover);
}

.workspace-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
  user-select: none;
}

.workspace-dropdown {
  background: transparent;
  border: none;
  padding: 2px 18px 2px 2px;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a12716' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}

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

/* Theme Switcher Pill Toggle */
.theme-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-pill:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-profile-badge:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-card-hover);
}

.user-avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name-snippet {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.user-role-indicator {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.role-admin-badge {
  background-color: var(--accent-primary-subtle);
  color: var(--accent-primary);
  border: 1px solid var(--border-medium);
}

.role-client-badge {
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}

/* ==========================================================================
   SETTINGS DROPDOWN & BURGER MENU
   ========================================================================== */
.settings-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-burger-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0;
}

.btn-burger-menu:hover,
.btn-burger-menu[aria-expanded="true"] {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(252, 66, 42, 0.35);
  transform: translateY(-1px);
}

.settings-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: settingsMenuSlideIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-dropdown-menu.hidden {
  display: none !important;
}

@keyframes settingsMenuSlideIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.settings-menu-header {
  padding: 8px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-user-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.menu-user-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.settings-menu-divider {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 4px 0;
}

.settings-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: var(--text-primary);
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.settings-menu-item:hover {
  background-color: var(--bg-card-hover);
}

.menu-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--bg-card-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.settings-menu-item:hover .menu-item-icon {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.menu-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.menu-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.menu-item-desc {
  font-size: 10px;
  color: var(--text-muted);
}

.btn-theme-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9999px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-theme-switch-toggle:hover {
  border-color: var(--accent-primary);
  background-color: var(--accent-primary);
  color: #ffffff;
}

.menu-item-logout:hover {
  background-color: rgba(239, 68, 68, 0.12);
}

.menu-item-logout:hover .menu-item-icon {
  background-color: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.menu-item-logout:hover .menu-item-title {
  color: #ef4444;
}

/* ==========================================================================
   WORKSPACE SUB-NAV: CAPSULE TABS
   ========================================================================== */
.workspace-nav-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-medium);
  padding: 16px 0;
  margin-bottom: 8px;
  position: sticky;
  top: 63px;
  z-index: 40;
}

.workspace-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  box-sizing: border-box;
}

.workspace-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crumb-separator {
  color: var(--text-muted);
}

.current-client-name {
  font-size: 14px;
  font-weight: 800;
}

.current-client-code {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.workspace-tabs-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-card);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--border-medium);
}

.tab-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 8px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--nav-pill-text);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.tab-button:hover {
  color: var(--accent-primary);
}

.tab-button.active {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(252, 66, 42, 0.35);
}

.tab-button.active .tab-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff;
}

.tab-dot {
  display: none;
}

/* ==========================================================================
   BENTO DASHBOARD CONTAINERS (from Image 1 & 2)
   ========================================================================== */
.main-content-area {
  flex: 1;
  padding: 24px 28px 48px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* Overview Header Banner */
.overview-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 26px 30px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}

.overview-heading {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.overview-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.overview-stat-cluster {
  display: flex;
  align-items: center;
  gap: 24px;
}

.overview-stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.stat-number.stat-highlight {
  color: var(--status-pending);
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Client Hub Cards Grid */
.clients-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.client-hub-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.client-hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: var(--card-shadow-hover);
}

.client-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.client-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 14px 4px 14px 14px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.client-hub-card:hover .client-logo-box {
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

.card-num-badge {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.06em;
}

.client-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.client-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-code-pill {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}

.client-status-indicator {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
}

.client-status-indicator.badge-urgent {
  background: var(--status-revision-bg);
  color: var(--status-revision-text);
}

.client-brand-name {
  font-size: 16px;
  font-weight: 800;
}

.client-industry-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Real-Time Notification Box in Client Card */
.client-notif-box {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.client-notif-box.notif-revision {
  border-color: var(--accent-primary);
  background-color: var(--status-revision-bg);
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-dot-tag {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.notif-time {
  font-size: 10px;
  color: var(--text-muted);
}

.notif-body {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-primary);
  font-weight: 500;
}

.client-quick-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.text-approved { color: var(--status-approved); }
.text-pending { color: var(--status-pending); }
.text-revision { color: var(--status-revision); }
.text-posted { color: var(--status-posted); }

.q-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.q-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.client-next-event {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-medium);
  padding-top: 10px;
}

.client-card-action-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.btn-enter-workspace {
  width: 100%;
  padding: 12px 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent-primary);
  color: #ffffff;
  border: 1px solid var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(252, 66, 42, 0.28);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-enter-workspace:hover {
  background-color: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(252, 66, 42, 0.45);
}

.btn-enter-workspace .btn-arrow {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-enter-workspace:hover .btn-arrow {
  transform: translateX(4px);
}

/* Global Activity Feed */
.global-activity-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: var(--card-shadow);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.activity-feed-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 12px;
}

.activity-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-author {
  font-weight: 700;
}

.activity-excerpt {
  color: var(--text-secondary);
}

.activity-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   MENU 1: BRAND HQ & MAIN DASHBOARD
   ========================================================================== */
.brand-hq-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand-identity-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.brand-bio-card, .brand-design-system-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--card-shadow);
}

.bio-brand-name {
  font-size: 22px;
  font-weight: 800;
}

.bio-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.bio-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
}

.brand-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.contact-pill {
  font-size: 11px;
  font-weight: 600;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 5px 12px;
  color: var(--text-primary);
}

.contact-pill .lbl {
  color: var(--text-muted);
  margin-right: 4px;
}

.color-swatches-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}

.color-swatch-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
}

.swatch-circle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.swatch-name {
  font-size: 11px;
  font-weight: 700;
}

.swatch-hex {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}

.typography-tokens-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 14px;
}

.token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.tok-label {
  font-weight: 700;
  color: var(--text-muted);
}

.tok-val {
  font-weight: 600;
  color: var(--text-primary);
}

/* Charts & Counters */
.charts-metrics-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.charts-dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 14px;
}

.chart-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.chart-bars-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.bar-track {
  width: 100%;
  height: 8px;
  background-color: var(--bg-card-subtle);
  border-radius: 9999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.fill-blue { background-color: var(--status-posted); }
.fill-green { background-color: var(--status-approved); }
.fill-yellow { background-color: var(--status-pending); }
.fill-red { background-color: var(--status-revision); }
.fill-gray { background-color: var(--status-draft); }

.format-distribution-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.format-badge-card {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.fmt-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
}

.pill-post {
  background: var(--cal-post-bg);
  color: var(--cal-post);
}

.pill-reel {
  background: var(--cal-reel-bg);
  color: var(--cal-reel);
}

.pill-story {
  background: var(--cal-story-bg);
  color: var(--cal-story);
}

.fmt-count {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.fmt-sub {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Staged Queue section */
.staged-queue-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.queue-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.queue-heading {
  font-size: 20px;
  font-weight: 800;
}

.queue-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-mode-toggle {
  display: flex;
  align-items: center;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 3px;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-toggle-btn.active {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   MENU 2: SOCIAL MEDIA CALENDAR (APPLE CALENDAR BENTO STYLE)
   ========================================================================== */
.apple-calendar-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--card-shadow);
}

.apple-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.cal-month-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cal-sub-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.cal-controls-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cal-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-pill {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.legend-separator {
  color: var(--border-medium);
}

.cal-nav-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cal-grid-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.weekday-cell {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  padding: 6px 0;
  letter-spacing: 0.04em;
}

.cal-grid-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 8px;
  width: 100%;
}

.cal-day-cell {
  min-height: 115px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 10px 10px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s ease;
  position: relative;
}

.cal-day-cell:hover {
  border-color: var(--border-medium);
  background-color: var(--bg-card-hover);
}

.cal-day-cell.is-other-month {
  opacity: 0.35;
}

.cal-day-cell.is-today {
  border-color: var(--accent-primary);
  background-color: var(--accent-primary-subtle);
}

.day-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  width: 100%;
}

.day-number {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
}

.today-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

/* Quick Add button with breathing room from top-right corner */
.btn-cal-add-post {
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cal-add-post:hover {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: scale(1.18);
  box-shadow: 0 0 12px rgba(252, 66, 42, 0.45);
}

.cal-day-cell:hover .btn-cal-add-post {
  display: inline-flex;
}

.day-events-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

/* Event Capsule in Calendar */
.cal-post-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.cal-post-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.cal-post-pill.format-post {
  background-color: var(--cal-post-bg);
  color: var(--cal-post);
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.cal-post-pill.format-reel {
  background-color: var(--cal-reel-bg);
  color: var(--cal-reel);
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.cal-post-pill.format-story {
  background-color: var(--cal-story-bg);
  color: var(--cal-story);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pill-time {
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  flex-shrink: 0;
}

.pill-format-tag {
  font-size: 9px;
  opacity: 0.8;
  flex-shrink: 0;
}

.pill-snippet-wrapper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.pill-snippet {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  will-change: transform;
}

/* News bulletin marquee on hover: smoothly scrolls from right to left */
.cal-post-pill:hover .pill-snippet,
.pill-snippet.is-marquee-scrolling {
  overflow: visible;
  text-overflow: clip;
  animation: calNewsTickerScroll 3.8s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}

@keyframes calNewsTickerScroll {
  0%, 15% {
    transform: translateX(0);
  }
  85%, 100% {
    transform: translateX(var(--scroll-dist, -55px));
  }
}

.event-shoot-marker {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   MENU 3: CREATIVE NOTEPAD & IDEA VAULT
   ========================================================================== */
.creative-notepad-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.notepad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.notepad-main-title {
  font-size: 22px;
  font-weight: 800;
}

.notepad-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.notepad-two-sections-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

.notepad-section-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-label-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.column-header-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

/* Ideas Stream Container (Fixes image 1 cards touching) */
.ideas-cards-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.idea-note-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.idea-note-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.idea-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.idea-pillar-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  padding: 3px 8px;
  border-radius: 9999px;
}

.idea-title {
  font-size: 15px;
  font-weight: 800;
}

.idea-notes-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.idea-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.idea-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--cal-story-text);
  background: var(--cal-story-bg);
  padding: 3px 8px;
  border-radius: 9999px;
}

.idea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Directives Stack (Fixes image 1 cards touching) */
.directives-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.directive-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--card-shadow);
}

.hashtag-banks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hashtag-bank-item {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bank-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bank-name {
  font-size: 12px;
  font-weight: 700;
}

.btn-copy-bank {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-bank:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.bank-tags-string {
  font-size: 11px;
  line-height: 1.5;
  color: var(--cal-story);
  word-break: break-word;
}

.voice-rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voice-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-primary);
}

.rule-bullet {
  color: var(--status-approved);
  font-weight: 700;
}

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

.pillar-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
}

.p-bar-track {
  width: 100%;
  height: 6px;
  background-color: var(--bg-card-subtle);
  border-radius: 9999px;
  overflow: hidden;
}

.p-bar-fill {
  height: 100%;
  background-color: var(--accent-primary);
  border-radius: 9999px;
}

/* ==========================================================================
   MENU 4: PRODUCTION PLANNER & EVENT MARKERS
   ========================================================================== */
.production-planner-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.planner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.planner-main-title {
  font-size: 22px;
  font-weight: 800;
}

.planner-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.production-events-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.production-event-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--card-shadow);
}

.event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.event-type-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
}

.event-type-badge.type-shoot {
  background-color: var(--status-approved-bg);
  color: var(--status-approved-text);
}

.event-type-badge.type-milestone {
  background-color: var(--status-pending-bg);
  color: var(--status-pending-text);
}

.event-date-pill, .event-time-pill {
  font-size: 11px;
  font-weight: 600;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 4px 10px;
  color: var(--text-primary);
}

.event-card-title {
  font-size: 18px;
  font-weight: 800;
}

.event-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
}

.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-cell.full-width {
  grid-column: span 2;
}

.spec-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.spec-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checklist-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.checklist-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.checklist-items-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.checklist-item-row:hover {
  background-color: var(--bg-card-hover);
}

.checklist-item-row.is-completed {
  opacity: 0.55;
}

.checklist-item-row.is-completed .checklist-item-text {
  text-decoration: line-through;
}

.checklist-checkbox {
  accent-color: var(--accent-primary);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.checklist-item-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ==========================================================================
   POST CARDS, KANBAN & MASONRY GRID (Bento Rounded Cards)
   ========================================================================== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  gap: 18px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 20px;
}

.kanban-column {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  box-shadow: var(--card-shadow);
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.column-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.column-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.kanban-column-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.kanban-column-body.drag-over {
  background-color: var(--accent-primary-subtle);
  outline: 2px dashed var(--accent-primary);
  border-radius: 16px;
}

.behance-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.post-card {
  container-type: inline-size;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
  box-shadow: var(--card-shadow-hover);
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #000000;
  overflow: hidden;
}

.card-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .card-media-wrapper img {
  transform: scale(1.04);
}

.card-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.post-card:hover .card-media-overlay {
  opacity: 1;
}

.inspect-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  z-index: 2;
}

.card-format-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 9999px;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.card-format-tag.format-post {
  background-color: var(--cal-post-bg);
  color: var(--cal-post);
}

.card-format-tag.format-reel {
  background-color: var(--cal-reel-bg);
  color: var(--cal-reel);
}

.card-format-tag.format-story {
  background-color: var(--cal-story-bg);
  color: var(--cal-story);
}

.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-date {
  font-size: 11px;
  color: var(--text-secondary);
}

.card-comment-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.card-caption {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.post-id-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   THE REVIEW MODAL & MODAL OVERLAYS
   ========================================================================== */
dialog:not([open]) {
  display: none !important;
}

dialog.custom-modal {
  margin: auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  color: var(--text-primary);
  width: 92vw;
  max-width: 1180px;
  height: 88vh;
  max-height: 860px;
  padding: 0;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

dialog.custom-modal[open] {
  display: flex;
  flex-direction: column;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-header-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 20;
}

.modal-header-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.modal-client-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 3px 10px;
  background-color: var(--bg-card-subtle);
  border-radius: 9999px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
}

.review-modal-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  height: calc(88vh - 58px);
  max-height: calc(860px - 58px);
  overflow: hidden;
}

.review-left-pane {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  padding: 24px;
  gap: 18px;
  background-color: var(--bg-canvas);
}

.review-media-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: #000000;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-aspect-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
}

.btn-media-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.review-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}

.caption-display-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.caption-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.box-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-copy-caption {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-copy-caption:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.caption-pre {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-primary);
}

.caption-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hashtag-pill {
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
  background-color: rgba(2, 132, 199, 0.1);
  padding: 3px 8px;
  border-radius: 9999px;
}

.review-right-pane {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  overflow: hidden;
}

.comments-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.thread-title {
  font-size: 13px;
  font-weight: 800;
}

.comments-stream {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comment-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 82%;
}

.comment-entry.msg-incoming {
  align-self: flex-start;
  align-items: flex-start;
}

.comment-entry.msg-outgoing {
  align-self: flex-end;
  align-items: flex-end;
}

.comment-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-entry.msg-outgoing .comment-meta-row {
  justify-content: flex-end;
}

.msg-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.msg-author-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.msg-time {
  font-size: 10px;
  font-family: 'Space Mono', monospace;
  color: var(--text-muted);
}

.comment-bubble-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-entry.msg-outgoing .comment-bubble-wrapper {
  align-items: flex-end;
}

.comment-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--border-subtle);
  word-break: break-word;
}

.comment-entry.msg-incoming .comment-bubble {
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

.comment-entry.msg-outgoing .comment-bubble {
  background-color: var(--accent-primary-subtle);
  color: var(--text-primary);
  border: 1px solid rgba(252, 66, 42, 0.35);
  border-top-right-radius: 4px;
}

[data-theme="light"] .comment-entry.msg-outgoing .comment-bubble {
  background-color: rgba(252, 66, 42, 0.12);
  border-color: rgba(161, 39, 22, 0.3);
}

.msg-delivery-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  padding: 0 4px;
}

.msg-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

.msg-status-pill.is-seen {
  color: var(--status-approved);
}

.msg-status-pill.is-sent {
  color: var(--text-muted);
}

.btn-unsend-msg {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
  opacity: 0.7;
}

.btn-unsend-msg:hover {
  opacity: 1;
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

/* Review Modal Action Dock - Equal Vertical Spacing */
.review-action-dock {
  border-top: 1px solid var(--border-subtle);
  padding: 22px 24px;
  background-color: var(--bg-surface);
}

.comment-textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 13px;
  min-height: 54px;
  max-height: 140px;
  outline: none;
}

.comment-textarea:focus {
  border-color: var(--border-focus);
}

.comment-compose-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compose-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.admin-decision-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.client-decision-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Custom Status Dropdown Component (Replaces crude select with sleek pill) */
.status-dropdown-wrapper {
  position: relative;
  display: inline-flex;
}

.btn-status-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  padding: 8px 16px;
  color: var(--text-primary);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-status-dropdown-trigger:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.dropdown-caret-icon {
  transition: transform 0.2s ease;
  color: var(--text-secondary);
}

.btn-status-dropdown-trigger[aria-expanded="true"] .dropdown-caret-icon {
  transform: rotate(180deg);
}

.status-dropdown-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: popoverFadeIn 0.15s ease-out;
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-dropdown-popover.hidden {
  display: none !important;
}

.popover-heading {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 6px 10px 4px;
}

.status-menu-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease;
}

.status-menu-option:hover {
  background-color: var(--bg-card-hover);
}

.status-menu-option.is-selected {
  background-color: var(--bg-card-subtle);
  font-weight: 700;
}

.status-menu-option .opt-label {
  flex: 1;
}

.status-menu-option .opt-check {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-primary);
}

.status-select-input {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 8px 14px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.status-select-input:hover {
  border-color: var(--border-medium);
}

.btn-edit-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-edit-post:hover {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: scale(1.06);
}

.btn-delete-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-delete-post:hover {
  background-color: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.btn-reply-comment {
  padding: 8px 22px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  margin-left: auto;
}

.btn-approve-post {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--status-approved);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  transition: all 0.2s ease;
}

.btn-approve-post:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-approve-post.is-already-approved {
  background-color: var(--status-approved-bg);
  color: var(--status-approved-text);
  box-shadow: none;
}

/* Action Modals */
dialog.action-modal {
  width: 92vw;
  max-width: 580px;
  height: 88vh;
  max-height: 820px;
  border-radius: 24px;
  overflow: hidden;
}

dialog.action-modal[open] {
  display: flex;
  flex-direction: column;
}

dialog.action-modal-lg {
  max-width: 760px;
  height: 90vh;
  max-height: 880px;
}

.modal-content-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.media-upload-preview-area {
  border: 2px dashed var(--border-medium);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--bg-card-subtle);
  cursor: pointer;
  min-height: 120px;
  transition: all 0.2s ease;
}

.media-upload-preview-area:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-card-hover);
}

.media-preview-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.modal-footer-row {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding: 16px 0 6px 0;
  border-top: 1px solid var(--border-subtle);
  position: sticky;
  bottom: 0;
  background-color: var(--bg-surface);
  z-index: 10;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  padding: 10px 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  pointer-events: auto;
}

/* ==========================================================================
   UNIVERSAL FORM SYSTEM
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
  position: relative;
}

.form-label {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  background-color: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--accent-primary-subtle);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-hint-note {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrap .form-input {
  padding-right: 44px;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.15s ease;
}

.btn-toggle-password:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   AUTHENTICATION VIEW & CREDENTIALS DIRECTORY (BENTO STYLE)
   ========================================================================== */
.auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  background-color: var(--bg-canvas);
}

.auth-container {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-card {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: var(--card-shadow);
}

.auth-header {
  margin-bottom: 24px;
  text-align: left;
}

.auth-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.auth-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.auth-brand-kicker .accent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-auth-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Credentials Directory Bento Box */
.credentials-directory-card {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.cred-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.cred-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cred-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cred-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.cred-theme-pill {
  font-size: 11px;
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.credential-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.2s ease;
}

.credential-row:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-medium);
}

.cred-account-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cred-avatar-mini {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-medium);
}

.cred-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cred-name-role {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cred-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.cred-role-badge {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
}

.cred-role-admin {
  background-color: var(--accent-primary-subtle);
  color: var(--accent-primary-text);
  border: 1px solid var(--accent-primary);
}

:root[data-theme="dark"] .cred-role-admin {
  color: var(--accent-primary);
}

.cred-role-client {
  background-color: var(--status-pending-bg);
  color: var(--status-pending-text);
  border: 1px solid var(--status-pending);
}

.cred-keys-snippet {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-secondary);
}

.cred-keys-snippet .cred-val {
  color: var(--text-primary);
  font-weight: 700;
}

.btn-fill-cred {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  padding: 5px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-fill-cred:hover {
  background-color: var(--accent-primary);
  color: var(--accent-primary-text);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   ADMIN OPTIONS: EDIT CLIENT & EDIT PROFILE MODALS
   ========================================================================== */

/* Image Uploader for Brand & Profile (System / Phone upload) */
.image-upload-chassis {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 14px 18px;
  transition: all 0.2s ease;
}

.image-upload-chassis:hover {
  border-color: var(--border-medium);
  background-color: var(--bg-card-hover);
}

.client-logo-preview-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--border-medium);
  background-color: var(--bg-surface);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.upload-trigger-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.uploader-hint-text {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}

.btn-file-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

/* Google Drive Asset Buttons & Tags */
.btn-open-drive-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-primary);
  color: var(--accent-primary-text);
  padding: 9px 18px;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(252, 66, 42, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-open-drive-capsule:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(252, 66, 42, 0.35);
}

.card-drive-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(18, 21, 25, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 3px 8px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

:root[data-theme="light"] .card-drive-tag {
  background-color: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

.media-drive-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 10px 14px;
  gap: 12px;
}

.drive-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.drive-icon-badge {
  font-size: 14px;
}

.modal-form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-form-grid-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.modal-form-divider {
  margin: 10px 0;
  border-top: 1px dashed var(--border-medium);
  position: relative;
  text-align: center;
}

.divider-label {
  position: relative;
  top: -10px;
  background-color: var(--bg-surface);
  padding: 0 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Color Swatches Editor */
.color-edit-quad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.color-edit-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 10px;
}

.color-edit-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Full Circular Color Preview with No Inner Box (Item 3 Fix) */
.color-picker-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  padding: 0;
  cursor: pointer;
  background: none;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-picker-input:hover {
  transform: scale(1.08);
  border-color: var(--text-primary);
}

.color-picker-input::-webkit-color-swatch-wrapper {
  padding: 0;
  border: none;
  border-radius: 50%;
}

.color-picker-input::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
  padding: 0;
  width: 100%;
  height: 100%;
}

.color-picker-input::-moz-color-swatch {
  border: none;
  border-radius: 50%;
  padding: 0;
  width: 100%;
  height: 100%;
}

.color-hex-text-input {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-input);
  color: var(--text-primary);
  width: 100%;
}

.color-name-text-input {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-input);
  color: var(--text-primary);
  width: 100%;
}

/* Client Credentials Box in Edit Client Modal */
.client-creds-container {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.creds-copy-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-copy-client-creds {
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Profile Modal Elements */
.profile-avatar-stage {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  margin-bottom: 6px;
}

.profile-avatar-large {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-medium);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-avatar-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.avatar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.avatar-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.avatar-presets-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  overflow-x: auto;
}

.preset-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

.avatar-choices-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-choice-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.15s ease;
}

.avatar-choice-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-choice-btn:hover,
.avatar-choice-btn.is-selected {
  border-color: var(--accent-primary);
  transform: scale(1.08);
}

/* Edit Buttons on Client Cards and Header */
.btn-edit-client,
.btn-edit-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 6px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-edit-client:hover,
.btn-edit-profile:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-medium);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.user-profile-badge {
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-profile-badge:hover {
  border-color: var(--border-medium);
  background-color: var(--bg-card-hover);
}

/* Responsive */
@media (max-width: 1024px) {
  .brand-identity-grid, .charts-dashboard-grid, .notepad-two-sections-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .review-modal-grid {
    grid-template-columns: 1fr;
    height: auto;
    overflow-y: auto;
  }
  .cal-grid-weekdays,
  .cal-grid-month {
    grid-template-columns: repeat(7, minmax(85px, 1fr)) !important;
    overflow-x: auto;
  }
  .modal-form-grid-two,
  .modal-form-grid-three {
    grid-template-columns: 1fr;
  }
}

/* Mobile Phone Enhancements (iPhone & Android) */
@media (max-width: 768px) {
  .app-header {
    padding: 10px 16px;
  }
  .header-brand-cluster {
    gap: 8px;
    flex-wrap: wrap;
  }
  .brand-subtitle {
    display: none;
  }
  .header-actions-cluster {
    gap: 6px;
  }
  .theme-toggle-pill .theme-label {
    display: none;
  }
  .user-name-snippet {
    display: none;
  }
  .workspace-nav-bar {
    padding: 10px 0;
    top: 57px;
  }
  .workspace-nav-container {
    padding: 0 16px;
    gap: 10px;
  }
  .workspace-tabs-group {
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .workspace-tabs-group::-webkit-scrollbar {
    display: none;
  }
  .tab-button {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 11px;
  }
  .main-content-area {
    padding: 16px 16px 48px;
  }
  .overview-header-strip {
    padding: 18px 20px;
  }
  .overview-stat-cluster {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .clients-cards-grid {
    grid-template-columns: 1fr;
  }
  .custom-modal {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 94vh !important;
    padding: 0 !important;
    border-radius: 20px !important;
  }
  .review-modal-grid {
    grid-template-columns: 1fr !important;
    height: auto;
    max-height: 82vh;
  }
  .review-left-pane {
    max-height: 380px;
    overflow-y: auto;
  }
  .comment-entry {
    max-width: 92%;
  }
}

/* ==========================================================================
   INTERACTIVE EMPTY STATES & MODERN ACTION PILLS
   ========================================================================== */
.empty-state-card,
.empty-workspace-view {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 16px;
}

.btn-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-medium);
  border-radius: 16px;
  padding: 16px 24px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  max-width: 480px;
  width: 100%;
}

.btn-empty-action:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-primary);
  border-style: solid;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.empty-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-empty-action:hover .empty-action-icon {
  background-color: var(--accent-primary);
  color: #ffffff;
  transform: scale(1.05);
}

.empty-action-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.empty-action-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.empty-action-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Kanban Empty Stage Slots */
.kanban-empty-slot {
  width: 100%;
  padding: 10px 0;
}

.btn-kanban-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 12px;
  background-color: var(--bg-card-subtle);
  border: 1px dashed var(--border-subtle);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
  text-align: center;
}

.btn-kanban-stage:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.empty-plus-icon {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-primary);
}

.empty-stage-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.empty-stage-sub {
  font-size: 10px;
  color: var(--text-muted);
}

/* Comments Empty State */
.comments-empty-card {
  padding: 36px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.feedback-prompt-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  max-width: 380px;
}

.prompt-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-pending);
  box-shadow: 0 0 10px var(--status-pending);
  flex-shrink: 0;
  animation: pulse-slow 2s infinite ease-in-out;
}

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

.prompt-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prompt-main-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.prompt-sub-text {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Revision Highlight in Chat */
.comment-bubble.revision-highlight-bubble {
  border-left: 3px solid var(--status-revision) !important;
  background-color: rgba(252, 66, 42, 0.08) !important;
}

.revision-flag-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background-color: var(--status-revision-bg);
  border-radius: 9999px;
  margin-bottom: 6px;
}

.revision-flag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--status-revision);
}

.revision-flag-title {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--status-revision-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Button with Sub-text in Modal Action Dock */
.btn-text-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}

.btn-main-label {
  font-size: 11.5px;
  font-weight: 700;
}

.btn-sub-label {
  font-size: 9px;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.btn-request-revision {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-color: var(--status-revision);
  color: var(--text-primary);
}

.btn-request-revision:hover {
  background-color: var(--status-revision-bg);
  border-color: var(--status-revision);
  color: var(--status-revision-text);
}

.btn-request-revision .btn-dot-tag {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-revision);
  flex-shrink: 0;
}

.btn-send-comment {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
}
