:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --accent-color: #6366f1;
  --accent-hover: #4f46e5;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --success: #10b981;
  --danger: #f43f5e;
  --warning: #f59e0b;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

/* Contenitore di Login Centrato */
.login-container {
  margin: auto;
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  background-color: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-header {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.brand-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Form e Input */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 14px;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Pulsanti */
.btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  margin-top: 1rem;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Alerts e Messaggi */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: none;
}

.alert-danger {
  background-color: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Layout della Dashboard */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background-color: var(--bg-secondary);
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.main-content {
  padding: 2.5rem;
  overflow-y: auto;
}

.user-card {
  background-color: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 12px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-card p {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.user-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: var(--accent-color);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

/* Griglia dei Test RBAC */
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.test-card {
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.test-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.test-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.response-box {
  background-color: #020617;
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  margin-top: 1rem;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #38bdf8;
}

body.dashboard-shell-mode {
  background: #f3f5f9;
  color: #4b5565;
}

body.dashboard-shell-mode .dashboard-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  background: #f3f5f9;
}

body.dashboard-shell-mode .sidebar {
  background: #10243c;
  border-right: none;
  color: #93a4b8;
  padding: 18px 14px 22px;
}

body.dashboard-shell-mode .brand-header {
  padding: 0 8px 18px;
  margin-bottom: 1.5rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.dashboard-shell-mode .brand-header h1 {
  background: none;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  font-size: 1rem !important;
  letter-spacing: 0;
}

body.dashboard-shell-mode .brand-header p {
  color: #6f829a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.dashboard-shell-mode .user-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #ffffff;
}

body.dashboard-shell-mode .user-card p {
  color: #93a4b8;
}

body.dashboard-shell-mode .user-badge {
  background: rgba(22, 199, 183, 0.16);
  color: #6ce5da;
  border-radius: 4px;
}

body.dashboard-shell-mode .btn-secondary {
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 6px;
}

body.dashboard-shell-mode .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.dashboard-shell-mode .main-content {
  padding: 16px 18px 18px;
  background: #f3f5f9;
}

body.dashboard-shell-mode .main-content header {
  min-height: 58px;
  margin: -16px -18px 18px !important;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  border-bottom: 1px solid #e8edf3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.dashboard-shell-mode .main-content header h2 {
  color: #2f3848;
  font-size: 1rem !important;
  font-weight: 700;
}

body.dashboard-shell-mode .main-content header p {
  color: #8a96a8 !important;
  font-size: 0.85rem;
}

body.dashboard-shell-mode .test-grid {
  gap: 12px;
  margin-top: 0;
}

body.dashboard-shell-mode .test-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 6px;
  color: #4b5565;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

body.dashboard-shell-mode .test-card::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  width: 3px;
  height: 22px;
  border-radius: 0 4px 4px 0;
  background: #16c7b7;
}

body.dashboard-shell-mode .test-card h3 {
  color: #3f4857;
}

body.dashboard-shell-mode .test-card p {
  color: #8a96a8;
}

body.dashboard-shell-mode .test-card .btn {
  width: auto;
  border-radius: 6px;
  background: var(--workspace-accent, #ff7b87) !important;
  color: var(--workspace-accent-contrast, #ffffff) !important;
}

body.dashboard-shell-mode .response-box {
  background: #fbfcfe;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  color: #2877f0;
}

@media (max-width: 720px) {
  body.dashboard-shell-mode .dashboard-layout {
    display: block;
  }

  body.dashboard-shell-mode .sidebar {
    min-height: auto;
  }

  body.dashboard-shell-mode .main-content {
    padding: 1rem;
  }

  body.dashboard-shell-mode .main-content header {
    margin: -1rem -1rem 1rem !important;
    padding: 1rem;
  }
}

/* Workspace editor/brand */
body.workspace-shell-mode {
  --workspace-accent: #3f72af;
  --workspace-accent-hover: #315f94;
  --workspace-accent-soft: rgba(63, 114, 175, 0.08);
  --workspace-accent-softer: rgba(63, 114, 175, 0.05);
  --workspace-accent-border: rgba(63, 114, 175, 0.35);
  --workspace-accent-strong: #315f94;
  --workspace-accent-contrast: #ffffff;
  display: block;
  background: #f3f5f9;
  color: #4b5565;
}

.workspace-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: #f3f5f9;
}

.workspace-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 18px 14px 22px;
  background: #10243c;
  color: #93a4b8;
  overflow-y: auto;
}

.workspace-brand {
  padding: 0 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.workspace-brand h1 {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
}

.workspace-brand p,
.workspace-sidebar-title {
  margin-top: 0.35rem;
  color: #6f829a;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-user {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.workspace-user span,
.workspace-user small {
  color: #93a4b8;
  font-size: 0.78rem;
}

.workspace-user strong {
  color: #ffffff;
  font-size: 0.86rem;
  word-break: break-word;
}

.workspace-sidebar-section {
  display: grid;
  gap: 0.5rem;
  min-height: 0;
  flex-shrink: 0;
}

.workspace-project-list {
  display: grid;
  gap: 0.35rem;
  max-height: 35vh;
  overflow-y: auto;
  align-content: start;
}

.workspace-project-button {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #93a4b8;
  text-align: left;
  cursor: pointer;
}

.workspace-project-button:hover,
.workspace-project-button.active {
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
}

.workspace-project-button span {
  font-size: 0.86rem;
  font-weight: 700;
}

.workspace-project-button small,
.workspace-sidebar-empty {
  color: #6f829a;
  font-size: 0.76rem;
}

.workspace-project-button.active small {
  color: var(--workspace-accent-contrast);
  opacity: 0.78;
}

.workspace-page-nav-section {
  padding-top: 0.2rem;
}

.workspace-page-section-nav {
  display: grid;
  gap: 0.75rem;
}

.workspace-page-nav-group {
  display: grid;
  gap: 0.28rem;
  padding: 0.45rem 0.3rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 7px;
}

.workspace-page-nav-group.keyword {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.workspace-page-nav-group-title {
  display: grid;
  gap: 0.12rem;
  padding: 0 0.32rem 0.16rem;
}

.workspace-page-nav-group-title span {
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.workspace-page-nav-group-title small,
.workspace-page-nav-group-title em {
  color: #6f829a;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 750;
}

.workspace-nav-page-list,
.workspace-nav-section-list {
  display: grid;
  gap: 0.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.workspace-nav-page-item { min-width: 0; }

.workspace-page-section-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #b6c6d9;
  text-align: left;
  cursor: pointer;
}

.workspace-page-section-link:focus-visible {
  outline: 2px solid #c1d5ee;
  outline-offset: 2px;
}

.workspace-nav-page-link {
  min-height: 38px;
  padding: 0.55rem 0.6rem;
  font-size: 0.81rem;
  font-weight: 750;
}

.workspace-nav-label {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.workspace-nav-page-icon {
  display: grid;
  place-items: center;
  flex: 0 0 21px;
  height: 21px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
}

.workspace-nav-chevron {
  flex: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1;
  text-align: center;
  transition: transform 0.15s ease;
}

.workspace-nav-page-link[aria-expanded="true"] .workspace-nav-chevron { transform: rotate(90deg); }
.workspace-nav-page-link:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.workspace-nav-page-link.active { background: var(--workspace-accent); color: var(--workspace-accent-contrast); }

.workspace-nav-channel-sections {
  margin: 0.35rem 0.25rem 0.65rem 1.2rem;
  padding-left: 0.7rem;
  border-left: 1px solid rgba(147, 164, 184, 0.35);
}

.workspace-nav-channel-sections[hidden] { display: none; }

.workspace-nav-sections-heading {
  display: block;
  padding: 0.5rem 0.5rem 0.3rem;
  color: #8fa4bd;
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.workspace-nav-section-list { gap: 0.1rem; }

.workspace-nav-section-link {
  min-height: 30px;
  padding: 0.4rem 0.5rem;
  border-left: 2px solid transparent;
  color: #a4b6cb;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.4;
}

.workspace-nav-section-link:hover { background: rgba(255, 255, 255, 0.05); color: #ffffff; }
.workspace-nav-section-link.active {
  border-left-color: var(--workspace-accent);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 650;
}

.workspace-section-anchor {
  scroll-margin-top: 16px;
}

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

.workspace-sidebar-actions {
  margin-top: auto;
  display: grid;
  gap: 0.6rem;
}

.workspace-admin-link {
  display: inline-flex;
  justify-content: center;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.workspace-main {
  min-width: 0;
  padding: 16px 18px 18px;
}

.workspace-topbar {
  min-height: 92px;
  margin: -16px -18px 18px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e8edf3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.workspace-client-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.workspace-client-logo-block {
  display: grid;
  gap: 0.35rem;
  min-width: 128px;
  max-width: 168px;
  justify-items: start;
}

.workspace-client-logo {
  display: none;
  max-width: 128px;
  max-height: 42px;
  object-fit: contain;
}

.workspace-client-logo-fallback {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
  font-size: 0.95rem;
  font-weight: 850;
}

.workspace-platform-name {
  color: #7d8898;
  font-size: 0.67rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.workspace-client-title-block {
  min-width: 0;
}

.workspace-breadcrumb {
  color: #9ba6b7;
  font-size: 0.76rem;
  margin-bottom: 0.2rem;
}

.workspace-topbar h2 {
  margin: 0;
  color: #313a46;
  font-size: 1rem;
  font-weight: 750;
}

.workspace-topbar p {
  margin-top: 0.15rem;
  color: #8a96a8;
  font-size: 0.84rem;
}

.workspace-topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.workspace-topbar-actions .language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #8a96a8;
  font-size: 0.78rem;
  white-space: nowrap;
}

.workspace-topbar-actions .language-switcher select {
  min-width: 104px;
  height: 34px;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
}

.workspace-account-menu {
  position: relative;
  min-width: 0;
  max-width: 280px;
}

[data-changelog-link][hidden] {
  display: none !important;
}

.workspace-account-menu summary {
  display: grid;
  gap: 0.1rem;
  min-width: 188px;
  padding: 0.48rem 0.7rem;
  border: 1px solid #e8edf3;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  list-style: none;
}

.workspace-account-menu summary::-webkit-details-marker {
  display: none;
}

.workspace-account-menu summary span {
  color: #8a96a8;
  font-size: 0.67rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-account-menu summary strong {
  color: #313a46;
  font-size: 0.84rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-account-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 0.55rem;
  min-width: 220px;
  padding: 0.75rem;
  border: 1px solid #e8edf3;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.workspace-account-menu-panel small {
  color: #8a96a8;
  font-size: 0.78rem;
}

.workspace-account-menu-panel .workspace-admin-link {
  width: 100%;
  border-color: #e8edf3;
  color: #313a46;
  background: #f7f9fc;
}

.workspace-account-menu-panel .btn {
  width: 100%;
}

.workspace-menabo-logo {
  width: 116px;
  max-height: 36px;
  object-fit: contain;
}

.workspace-topbar .btn,
.workspace-filters .btn,
.workspace-pagination .btn,
.workspace-workflow-actions .btn {
  width: auto;
  border-radius: 6px;
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
}

.workspace-topbar .btn:hover,
.workspace-filters .btn:hover,
.workspace-pagination .btn:hover,
.workspace-workflow-actions .btn:hover {
  background: var(--workspace-accent-hover);
}

.workspace-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(252, 81, 133, 0.22);
  border-radius: 6px;
  background: rgba(252, 81, 133, 0.08);
  color: #b42355;
  font-size: 0.86rem;
}

.workspace-card {
  margin-bottom: 1.1rem;
  padding: 1.15rem;
  border: 1px solid #e3eaf3;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.workspace-empty-state {
  display: grid;
  gap: 0.4rem;
}

.workspace-empty-state h3,
.workspace-section-header h3,
.workspace-detail-header h3,
.workspace-detail-section h4 {
  margin: 0;
  color: #3f4857;
}

.workspace-widget-title {
  display: inline-flex;
  max-width: 100%;
  gap: 0.45rem;
  align-items: center;
}

.workspace-widget-title h3,
.workspace-widget-title h4 {
  min-width: 0;
}

.workspace-widget-title h3 {
  color: #2f3847;
  font-size: 1.14rem;
  line-height: 1.22;
}

.workspace-widget-title h4 {
  color: #374151;
  font-size: 0.96rem;
  line-height: 1.25;
}

.workspace-inline-help-label {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.workspace-empty-state p,
.workspace-section-header p,
.workspace-detail-header p,
.workspace-muted {
  margin: 0.25rem 0 0;
  color: #8a96a8;
  font-size: 0.85rem;
}

.workspace-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.workspace-summary-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid #e8edf3;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.workspace-summary-card span {
  color: #8a96a8;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-summary-card strong {
  color: #313a46;
  font-size: 1.35rem;
}

.workspace-dashboard-controls {
  display: grid;
  gap: 0.9rem;
}

.workspace-dashboard-social-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, auto);
  gap: 0.85rem;
  align-items: stretch;
}

.workspace-dashboard-context {
  min-width: 0;
}

.workspace-dashboard-context-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  height: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e8edf3;
  border: 1px solid color-mix(in srgb, var(--social-color) 28%, #e8edf3);
  border-left: 4px solid var(--social-color);
  border-radius: 6px;
  background: #ffffff;
  background: linear-gradient(90deg, color-mix(in srgb, var(--social-color) 9%, #ffffff), #ffffff 58%);
}

.workspace-dashboard-social-icon,
.workspace-social-mark {
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--social-color);
  color: #ffffff;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-dashboard-social-icon {
  width: 40px;
  height: 40px;
  font-size: 0.78rem;
}

.workspace-dashboard-context-copy {
  min-width: 0;
}

.workspace-dashboard-context-copy span {
  display: block;
  color: #8a96a8;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-dashboard-context-copy h3 {
  margin: 0.12rem 0 0;
  color: #313a46;
  font-size: 1.08rem;
}

.workspace-dashboard-context-copy p {
  margin: 0.2rem 0 0;
  color: #6f7b8d;
  font-size: 0.8rem;
}

.workspace-dashboard-context-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-dashboard-context-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.42rem 0.6rem;
  border: 1px solid #edf1f5;
  border-radius: 999px;
  background: #ffffff;
  color: #8a96a8;
  font-size: 0.74rem;
  font-weight: 750;
}

.workspace-dashboard-context-stats strong {
  color: #313a46;
  font-size: 0.9rem;
}

.workspace-social-switcher {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e8edf3;
  border-radius: 6px;
  background: #fbfcfe;
}

.workspace-social-switcher > span {
  color: #7d8898;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-social-switcher .workspace-tabs {
  justify-content: flex-end;
}

.workspace-social-switcher .workspace-tab {
  min-width: 132px;
  padding: 0.5rem 0.62rem;
}

.workspace-social-switcher .workspace-tab small {
  font-size: 0.72rem;
}

.workspace-dashboard-filter-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) minmax(120px, auto);
  gap: 0.75rem;
  align-items: end;
}

.workspace-dashboard-filter-form label,
.workspace-profile-filter-row {
  display: grid;
  gap: 0.35rem;
}

.workspace-dashboard-filter-form label span,
.workspace-profile-filter-row > span {
  color: #7d8898;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-profile-filter-row {
  display: grid;
  gap: 0.5rem;
}

.workspace-profile-filter-list {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.workspace-profile-filter-chip {
  display: grid;
  gap: 0.18rem;
  min-width: 192px;
  max-width: 250px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e4e9f0;
  border-radius: 6px;
  background: #fbfcfe;
  color: #4b5565;
  text-align: left;
  cursor: pointer;
  flex: 0 0 auto;
}

.workspace-profile-filter-main {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 0.58rem;
  min-width: 0;
}

.workspace-profile-filter-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.workspace-profile-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  width: 34px;
  height: 34px;
  border: 1px solid var(--workspace-accent-border);
  border-radius: 50%;
  background: var(--workspace-accent-soft);
  color: var(--workspace-accent-strong);
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.workspace-profile-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workspace-profile-avatar em {
  font-style: normal;
}

.workspace-profile-filter-chip:hover,
.workspace-profile-filter-chip.active {
  border-color: var(--workspace-accent-border);
  background: var(--workspace-accent-soft);
}

.workspace-profile-filter-chip.active strong {
  color: var(--workspace-accent-strong);
}

.workspace-profile-filter-chip strong {
  overflow: hidden;
  color: #313a46;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-profile-filter-chip span {
  overflow: hidden;
  color: #8a96a8;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-profile-filter-chip .workspace-profile-filter-main,
.workspace-profile-filter-chip .workspace-profile-filter-copy {
  overflow: visible;
}

.workspace-profile-filter-chip .workspace-profile-avatar {
  overflow: hidden;
  color: var(--workspace-accent-strong);
  font-size: 0.72rem;
  text-overflow: clip;
  white-space: normal;
}

.workspace-profile-filter-chip .workspace-profile-filter-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-dashboard-data {
  display: grid;
  gap: 1.35rem;
  margin-bottom: 1.15rem;
}

.workspace-dashboard-section-heading {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.28rem;
  min-width: 0;
  margin: 0.25rem 0 -0.25rem;
  padding: 0.2rem 0 0.2rem 0.85rem;
  border-left: 4px solid var(--workspace-accent);
}

.workspace-dashboard-section-heading span {
  color: var(--workspace-accent-strong);
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-dashboard-section-heading h2 {
  margin: 0;
  color: #263241;
  font-size: 1.42rem;
  line-height: 1.2;
}

.workspace-dashboard-section-heading p {
  margin: 0;
  color: #6f7b8d;
  font-size: 0.9rem;
  line-height: 1.4;
}

.workspace-dashboard-section-heading-standalone {
  margin: 1.45rem 0 0.8rem;
}

.workspace-kpi-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.85rem;
}

.workspace-kpi-grid.profile-selected {
  grid-template-columns: 1fr;
}

.workspace-kpi-card {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  min-height: 140px;
  padding: 1.05rem;
  border: 1px solid #e8edf3;
  border-top: 4px solid var(--workspace-accent);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.workspace-kpi-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #8a96a8;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-help {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--workspace-accent-border);
  border-radius: 50%;
  color: var(--workspace-accent-strong);
  font-size: 0.72rem;
  font-weight: 850;
  cursor: help;
  text-transform: none;
  z-index: 5;
}

.workspace-inline-help-label .workspace-help,
.workspace-selected-profile-synthesis .workspace-help,
.workspace-selected-profile-metrics .workspace-help {
  color: var(--workspace-accent-strong);
  font-size: 0.72rem;
  text-transform: none;
}

.workspace-help::after,
.workspace-help::before {
  position: absolute;
  right: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.workspace-help::after {
  content: attr(data-tooltip);
  top: calc(100% + 0.55rem);
  width: min(240px, 72vw);
  padding: 0.65rem 0.75rem;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  background: #ffffff;
  color: #4b5565;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  transform: translateY(-4px);
  white-space: normal;
}

.workspace-help::before {
  content: '';
  top: calc(100% + 0.25rem);
  width: 9px;
  height: 9px;
  border-left: 1px solid #dbe3ef;
  border-top: 1px solid #dbe3ef;
  background: #ffffff;
  transform: translate(-4px, -2px) rotate(45deg);
}

.workspace-help:hover::after,
.workspace-help:hover::before,
.workspace-help:focus-visible::after,
.workspace-help:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.workspace-help:hover::after,
.workspace-help:focus-visible::after {
  transform: translateY(0);
}

.workspace-kpi-card strong {
  color: #313a46;
  font-size: 1.52rem;
  line-height: 1.2;
}

.workspace-kpi-card small {
  color: #8a96a8;
  font-size: 0.78rem;
}

.workspace-selected-profile-card {
  display: grid;
  gap: 1rem;
  margin-bottom: 0;
  border-top: 3px solid var(--workspace-accent);
}

.workspace-selected-profile-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.workspace-selected-profile-photo {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--workspace-accent-border);
  border-radius: 6px;
  background: var(--workspace-accent-soft);
  color: var(--workspace-accent-strong);
  font-size: 1.45rem;
  font-weight: 900;
}

.workspace-selected-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workspace-selected-profile-content {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
}

.workspace-selected-profile-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.workspace-selected-profile-eyebrow {
  display: block;
  margin-bottom: 0.18rem;
  color: #8a96a8;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-selected-profile-header h3 {
  margin: 0;
  color: #313a46;
  font-size: 1.25rem;
}

.workspace-selected-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--workspace-accent-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--workspace-accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.workspace-selected-profile-link:hover {
  background: var(--workspace-accent-soft);
}

.workspace-selected-profile-link.disabled {
  border-color: #e8edf3;
  color: #a5afbd;
}

.workspace-selected-profile-bio {
  margin: 0;
  color: #4b5565;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.workspace-selected-profile-meta,
.workspace-selected-profile-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.workspace-selected-profile-meta span,
.workspace-selected-profile-metrics div {
  display: grid;
  gap: 0.22rem;
  padding: 0.75rem;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #fbfcfe;
}

.workspace-selected-profile-meta small,
.workspace-selected-profile-metrics span,
.workspace-selected-profile-synthesis span {
  color: #8a96a8;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-selected-profile-meta strong,
.workspace-selected-profile-metrics strong {
  color: #313a46;
  font-size: 1rem;
}

.workspace-selected-profile-synthesis {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--workspace-accent-border);
  border-radius: 6px;
  background: var(--workspace-accent-softer);
}

.workspace-selected-profile-synthesis p {
  margin: 0;
  color: #3f4857;
  font-size: 0.92rem;
  line-height: 1.45;
}

.workspace-selected-profile-metrics div {
  border-left: 3px solid var(--workspace-accent);
}

.workspace-selected-profile-metrics strong {
  color: var(--workspace-accent-strong);
  font-size: 1.2rem;
}

.workspace-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
}

.workspace-chart-card {
  margin-bottom: 0;
  min-width: 0;
}

.workspace-chart-refresh {
  width: auto;
  border-radius: 6px;
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
}

.workspace-chart-refresh:hover {
  background: var(--workspace-accent-hover);
}

.workspace-profile-activity-table {
  width: 100%;
  min-width: 540px;
  border-collapse: separate;
  border-spacing: 0 0.45rem;
}

.workspace-profile-activity-table th {
  padding: 0 0.65rem 0.15rem;
  text-align: left;
}

.workspace-profile-activity-table th button,
.workspace-data-table th button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a96a8;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
}

.workspace-profile-activity-table th button:hover,
.workspace-data-table th button:hover {
  color: var(--workspace-accent-strong);
}

.workspace-profile-activity-table th small,
.workspace-data-table th small {
  color: var(--workspace-accent-strong);
  font-size: 0.62rem;
  font-weight: 850;
}

.workspace-profile-activity-table td {
  padding: 0.7rem 0.65rem;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
  color: #4b5565;
  font-size: 0.84rem;
}

.workspace-profile-activity-table tbody tr:nth-child(odd) td {
  background: var(--workspace-accent-softer);
}

.workspace-profile-activity-table tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.workspace-profile-activity-table td:first-child {
  border-left: 3px solid var(--workspace-accent);
  border-radius: 6px 0 0 6px;
}

.workspace-profile-activity-table td:last-child {
  border-right: 1px solid #edf1f5;
  border-radius: 0 6px 6px 0;
}

.workspace-profile-activity-table td strong,
.workspace-profile-activity-table td span {
  display: block;
}

.workspace-profile-activity-table td strong {
  color: #313a46;
}

.workspace-profile-activity-table td span {
  margin-top: 0.15rem;
  color: #8a96a8;
  font-size: 0.74rem;
}

.workspace-bar-chart {
  display: grid;
  gap: 0.55rem;
}

.workspace-bar-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #edf1f5;
  border-left: 3px solid transparent;
  border-radius: 6px;
  background: #ffffff;
}

.workspace-bar-row:nth-child(odd) {
  border-left-color: var(--workspace-accent);
  background: var(--workspace-accent-softer);
}

.workspace-bar-row:nth-child(even) {
  background: #fbfcfe;
}

.workspace-bar-row-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.workspace-bar-row-header span {
  overflow: hidden;
  color: #4b5565;
  font-size: 0.82rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-bar-row-header strong {
  color: #313a46;
  font-size: 0.82rem;
}

.workspace-bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.workspace-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--workspace-accent), var(--workspace-accent-hover));
}

.workspace-chart-note {
  margin-top: 0.75rem;
  color: #8a96a8;
  font-size: 0.78rem;
}

.workspace-trend-timeline {
  min-width: 0;
}

.workspace-trend-card {
  margin-bottom: 0;
}

.workspace-trend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.workspace-trend-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #fbfcfe;
}

.workspace-trend-panel:first-child,
.workspace-trend-panel:last-child {
  grid-column: auto;
}

.workspace-trend-panel-header {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.workspace-trend-panel-header h4 {
  margin: 0;
  color: #313a46;
  font-size: 1rem;
}

.workspace-trend-subtitle {
  color: #8a96a8;
  font-size: 0.78rem;
  font-weight: 750;
}

.workspace-trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.workspace-trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #5f6b7a;
  font-size: 0.74rem;
  font-weight: 750;
}

.workspace-trend-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--trend-color);
}

.workspace-trend-chart-scroll,
.workspace-trend-stacked-scroll {
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.workspace-trend-chart-shell {
  position: relative;
  min-width: 0;
  height: 250px;
}

.workspace-trend-line-chart {
  width: 100%;
  min-width: 620px;
  height: 230px;
  display: block;
}

.workspace-trend-grid-line {
  stroke: #e9eef5;
  stroke-width: 1;
}

.workspace-trend-axis-line {
  stroke: #cfd8e3;
  stroke-width: 1;
}

.workspace-trend-axis-label {
  fill: #8a96a8;
  font-size: 0.68rem;
  font-weight: 750;
}

.workspace-trend-stacked-bars {
  display: grid;
  grid-template-columns: repeat(var(--trend-columns), minmax(24px, 1fr));
  gap: 0.4rem;
  min-width: 560px;
  align-items: end;
}

.workspace-trend-stacked-column {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.workspace-trend-stacked-bar {
  display: flex;
  flex-direction: column-reverse;
  height: 190px;
  overflow: hidden;
  border-radius: 6px;
  background: #edf2f7;
}

.workspace-trend-stacked-bar span {
  position: relative;
  min-height: 2px;
  height: var(--trend-size);
  background: var(--trend-color);
}

.workspace-trend-stacked-bar span.empty {
  background: #edf2f7;
}

.workspace-trend-stacked-bar span em {
  display: none;
}

.workspace-trend-stacked-bar span:hover em {
  position: absolute;
  z-index: 2;
  bottom: 100%;
  left: 50%;
  display: block;
  min-width: max-content;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  background: #111827;
  color: #ffffff;
  font-size: 0.68rem;
  font-style: normal;
  transform: translateX(-50%);
}

.workspace-trend-stacked-column small {
  overflow: hidden;
  color: #8a96a8;
  font-size: 0.66rem;
  font-weight: 750;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-top-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.workspace-top-post-card {
  margin-bottom: 0;
  min-width: 0;
}

.workspace-top-post-list {
  display: grid;
  gap: 0.6rem;
}

.workspace-top-post-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid #edf1f5;
  border-left: 3px solid var(--workspace-accent);
  border-radius: 6px;
  background: #fbfcfe;
}

.workspace-top-post-item:nth-child(odd) {
  background: var(--workspace-accent-softer);
}

.workspace-top-post-rank {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
  font-size: 0.82rem;
  font-weight: 850;
}

.workspace-top-post-body {
  min-width: 0;
}

.workspace-top-post-title a,
.workspace-top-post-title strong {
  display: block;
  color: #313a46;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.workspace-top-post-title a:hover {
  color: var(--workspace-accent-strong);
}

.workspace-top-post-meta {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.workspace-top-post-meta span {
  color: #8a96a8;
  font-size: 0.74rem;
}

.workspace-top-post-metrics {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5565;
}

.workspace-top-post-metrics strong {
  color: var(--workspace-accent-strong);
  font-size: 0.9rem;
}

.workspace-top-post-metrics span {
  color: #8a96a8;
  font-size: 0.72rem;
  font-weight: 750;
}

.workspace-hot-conversations {
  display: grid;
  gap: 1rem;
}

.workspace-hot-card {
  margin-bottom: 0;
}

.workspace-hot-list {
  display: grid;
  gap: 0.75rem;
}

.workspace-hot-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(220px, 310px);
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid #e5ebf2;
  border-left: 4px solid var(--workspace-accent);
  border-radius: 7px;
  background: #fbfcfe;
}

.workspace-hot-item:nth-child(odd) {
  background: var(--workspace-accent-softer);
}

.workspace-hot-score {
  display: grid;
  width: 54px;
  min-height: 54px;
  place-items: center;
  align-content: center;
  border-radius: 7px;
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
}

.workspace-hot-score strong {
  font-size: 1.05rem;
  line-height: 1;
}

.workspace-hot-score span {
  font-size: 0.65rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-hot-body {
  display: grid;
  gap: 0.68rem;
  min-width: 0;
}

.workspace-hot-row-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.workspace-hot-row-head div,
.workspace-hot-field,
.workspace-hot-post {
  min-width: 0;
}

.workspace-hot-row-head span,
.workspace-hot-field > span,
.workspace-hot-post > span {
  display: block;
  margin-bottom: 0.22rem;
  color: #8a96a8;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workspace-hot-row-head strong {
  display: block;
  color: #313a46;
  font-size: 0.86rem;
  line-height: 1.3;
}

.workspace-hot-tags {
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.workspace-hot-tags span {
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  background: #ffffff;
  color: #6f7b8d;
  font-size: 0.72rem;
  font-weight: 750;
}

.workspace-hot-field {
  padding: 0.7rem;
  border: 1px solid #e9eef4;
  border-radius: 6px;
  background: #ffffff;
}

.workspace-hot-comment-field {
  border-left: 3px solid var(--workspace-accent);
}

.workspace-hot-field p {
  margin: 0;
  color: #3f4857;
  line-height: 1.45;
}

.workspace-hot-ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

.workspace-hot-post-suggestion {
  display: grid;
  gap: 0.42rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--workspace-accent-border);
  border-left: 5px solid var(--workspace-accent);
  border-radius: 7px;
  background: linear-gradient(180deg, var(--workspace-accent-softer), #ffffff);
}

.workspace-hot-post-suggestion.suggestion-freshness-today {
  border-color: rgba(245, 82, 124, 0.34);
  border-left-color: #f5527c;
  background: linear-gradient(180deg, rgba(245, 82, 124, 0.16), #ffffff 72%);
  box-shadow: 0 0 0 3px rgba(245, 82, 124, 0.08);
}

.workspace-hot-post-suggestion.suggestion-freshness-recent {
  border-color: rgba(244, 151, 74, 0.28);
  border-left-color: #f4974a;
  background: linear-gradient(180deg, rgba(244, 151, 74, 0.12), #ffffff 74%);
}

.workspace-hot-post-suggestion.suggestion-freshness-fading {
  border-color: rgba(210, 181, 89, 0.22);
  border-left-color: #d2b559;
  background: linear-gradient(180deg, rgba(210, 181, 89, 0.08), #ffffff 76%);
}

.workspace-hot-post-suggestion.suggestion-freshness-stale {
  border-color: rgba(148, 163, 184, 0.18);
  border-left-color: #d6dee9;
  background: #fbfcfe;
}

.workspace-hot-post-suggestion > span {
  color: var(--workspace-accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-hot-post-suggestion blockquote {
  margin: 0;
  color: #263241;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.55;
}

.workspace-hot-post-suggestion small {
  color: #6f7b8d;
  font-size: 0.76rem;
  line-height: 1.35;
}

.workspace-comment-opportunity {
  display: grid;
  gap: 0.85rem;
  border-left: 5px solid var(--workspace-accent);
  background: linear-gradient(180deg, var(--workspace-accent-softer), #ffffff 54%);
}

.workspace-comment-opportunity-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.workspace-comment-opportunity-head h4 {
  margin-bottom: 0.25rem;
}

.workspace-comment-opportunity-head p {
  margin: 0;
  color: #8a96a8;
  font-size: 0.86rem;
  line-height: 1.45;
}

.workspace-comment-opportunity-score {
  display: grid;
  min-width: 74px;
  min-height: 58px;
  place-items: center;
  align-content: center;
  border-radius: 7px;
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
}

.workspace-comment-opportunity-score strong {
  font-size: 1.2rem;
  line-height: 1;
}

.workspace-comment-opportunity-score span {
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-hot-item blockquote,
.workspace-scraped-comment-ai blockquote {
  margin: 0;
  padding: 0.62rem 0.75rem;
  border-left: 3px solid var(--workspace-accent);
  border-radius: 5px;
  background: var(--workspace-accent-softer);
  color: #344054;
  line-height: 1.45;
}

.workspace-scraped-comment-ai blockquote em {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--workspace-accent-strong);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-scraped-comment-ai .workspace-scraped-comment-post-suggestion {
  border-left-width: 5px;
  background: linear-gradient(180deg, var(--workspace-accent-softer), #ffffff);
}

.workspace-hot-suggestion-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.workspace-hot-suggestion-head > span {
  color: var(--workspace-accent-strong);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-hot-suggestion-head > small {
  color: #7d899b;
  font-size: 0.74rem;
  font-weight: 750;
}

.workspace-suggestion-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.workspace-suggestion-meta small {
  color: #7d899b;
  font-size: 0.74rem;
  font-weight: 750;
}

.workspace-suggestion-freshness {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.workspace-suggestion-freshness.is-today {
  color: #ffffff;
  background: #f5527c;
  box-shadow: 0 0 0 3px rgba(245, 82, 124, 0.14);
}

.workspace-suggestion-freshness.is-recent {
  color: #9b4a08;
  border-color: rgba(244, 151, 74, 0.28);
  background: #fff0df;
}

.workspace-suggestion-freshness.is-fading {
  color: #80620f;
  border-color: rgba(210, 181, 89, 0.25);
  background: #fff8df;
  opacity: 0.72;
}

.workspace-suggestion-freshness.is-stale {
  color: #8a96a8;
  border-color: rgba(148, 163, 184, 0.16);
  background: #eef3f8;
  opacity: 0.38;
}

.workspace-hot-post {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.workspace-hot-post-link {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  padding: 0.78rem;
  border: 1px solid var(--workspace-accent-border);
  border-radius: 7px;
  background: #ffffff;
  color: #313a46;
  text-align: left;
  cursor: pointer;
}

.workspace-hot-post-link:hover,
.workspace-hot-post-link:focus-visible {
  outline: none;
  border-color: var(--workspace-accent);
  box-shadow: 0 0 0 3px var(--workspace-accent-softer);
}

.workspace-hot-post-link strong {
  color: #313a46;
  font-size: 0.84rem;
  line-height: 1.35;
}

.workspace-hot-post-link small {
  width: max-content;
  padding: 0.24rem 0.48rem;
  border-radius: 999px;
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
  font-size: 0.7rem;
  font-weight: 850;
}

.workspace-topic-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.workspace-topic-card {
  margin-bottom: 0;
  min-width: 0;
}

.workspace-category-cloud {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.workspace-category-cloud-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: calc(0.35rem + (var(--cloud-weight) * 0.18rem)) calc(0.55rem + (var(--cloud-weight) * 0.28rem));
  border: 1px solid var(--workspace-accent-border);
  border-radius: 999px;
  background: var(--workspace-accent-soft);
  color: var(--workspace-accent-strong);
  font-size: calc(0.72rem + (var(--cloud-weight) * 0.28rem));
  line-height: 1.2;
}

button.workspace-category-cloud-item {
  cursor: pointer;
  font-family: inherit;
}

button.workspace-category-cloud-item:hover,
button.workspace-category-cloud-item:focus-visible {
  outline: none;
  border-color: var(--workspace-accent);
  box-shadow: 0 0 0 3px var(--workspace-accent-softer);
}

.workspace-category-cloud-item strong {
  font-weight: 850;
}

.workspace-category-cloud-item em {
  color: #6f7b8d;
  font-size: 0.72em;
  font-style: normal;
  font-weight: 850;
}

.workspace-keyword-cloud {
  align-content: flex-start;
}

.workspace-keyword-cloud-item {
  border-color: #dde6f1;
  background: #f7f9fc;
  color: #313a46;
}

.workspace-keyword-cloud-item:nth-child(3n + 1) {
  background: var(--workspace-accent-softer);
  color: var(--workspace-accent-strong);
}

.workspace-keyword-cloud-item:nth-child(3n + 2) {
  background: #eef5ff;
  color: #236192;
}

.workspace-keyword-cloud-item:nth-child(3n + 3) {
  background: #f4f7f9;
  color: #475467;
}

.workspace-keyword-dashboard {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.workspace-keyword-empty-card,
.workspace-keyword-overview-card,
.workspace-keyword-panel {
  margin-bottom: 0;
  min-width: 0;
}

.workspace-keyword-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}

.workspace-keyword-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.workspace-keyword-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.workspace-keyword-chart-card {
  margin-bottom: 0;
  min-width: 0;
}

.workspace-keyword-chart-header {
  align-items: flex-start;
  flex-wrap: wrap;
}

.workspace-keyword-chart-mode {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid #dbe3ec;
  border-radius: 0.5rem;
  background: #f6f8fb;
}

.workspace-keyword-chart-mode button {
  border: 0;
  border-radius: 0.3rem;
  padding: 0.4rem 0.65rem;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.workspace-keyword-chart-mode button[aria-pressed="true"] {
  background: var(--workspace-accent, #3f7f68);
  color: #fff;
}

.workspace-keyword-mood-details {
  margin-top: 0.75rem;
  color: #475569;
  font-size: 0.8rem;
}

.workspace-keyword-mood-details summary {
  cursor: pointer;
  font-weight: 750;
}

.workspace-keyword-mood-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid #edf2f7;
}

.workspace-keyword-mood-row small {
  display: block;
  margin: 0.2rem 0 0.45rem;
}

.workspace-keyword-mood-row button {
  border: 1px solid #dbe3ec;
  border-left: 4px solid var(--mood-color);
  border-radius: 0.3rem;
  padding: 0.35rem 0.5rem;
  margin: 0 0.3rem 0.3rem 0;
  background: #fff;
  color: #334155;
  font: inherit;
  cursor: pointer;
}

.workspace-keyword-chart-select {
  display: grid;
  gap: 0.25rem;
  min-width: 210px;
}

.workspace-keyword-chart-select span {
  color: #8a96a8;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-keyword-chart-shell {
  height: 320px;
  min-width: 0;
}

.workspace-keyword-chart-shell canvas {
  width: 100% !important;
  height: 100% !important;
}

.workspace-keyword-matrix-scroll {
  overflow-x: auto;
}

.workspace-keyword-matrix {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
}

.workspace-keyword-matrix th,
.workspace-keyword-matrix td {
  min-width: 132px;
  padding: 0.65rem;
  border-right: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: top;
}

.workspace-keyword-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f9fc;
  color: #4b5565;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-keyword-matrix-keyword {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 220px !important;
  max-width: 260px;
  background: #ffffff;
}

.workspace-keyword-matrix tbody .workspace-keyword-matrix-keyword {
  box-shadow: 1px 0 0 #edf1f5;
}

.workspace-keyword-matrix th strong,
.workspace-keyword-matrix td strong {
  display: block;
  color: #313a46;
  font-weight: 900;
}

.workspace-keyword-matrix th span,
.workspace-keyword-matrix td span,
.workspace-keyword-matrix td em {
  display: block;
  margin-top: 0.18rem;
  color: #8a96a8;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 750;
}

.workspace-keyword-matrix-cell {
  position: relative;
  overflow: hidden;
  padding-right: 2.35rem !important;
  background:
    linear-gradient(90deg, rgba(10, 102, 194, 0.16), rgba(10, 102, 194, 0.16)) left bottom / var(--cell-volume) 4px no-repeat,
    var(--cell-bg);
}

.workspace-keyword-matrix-cell div {
  position: relative;
  z-index: 1;
}

.workspace-keyword-matrix-cell.empty {
  position: relative;
  background: #fbfcfe;
  color: #c0cad6;
  text-align: center;
}

.workspace-keyword-matrix-action {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid rgba(10, 102, 194, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--workspace-accent, #0a66c2);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.workspace-keyword-matrix-action:hover {
  transform: translateY(-1px);
  border-color: var(--workspace-accent, #0a66c2);
  box-shadow: 0 6px 14px rgba(49, 58, 70, 0.14);
}

.workspace-keyword-matrix-action svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-keyword-matrix-total {
  background: #fbfcfe;
}

.workspace-keyword-matrix-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
  color: #8a96a8;
  font-size: 0.76rem;
  font-weight: 750;
}

.workspace-keyword-matrix-note span {
  padding: 0.28rem 0.45rem;
  border: 1px solid #edf1f5;
  border-radius: 999px;
  background: #fbfcfe;
}

.workspace-keyword-signals,
.workspace-keyword-cost-coverage {
  scroll-margin-top: 1rem;
}

.workspace-keyword-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.workspace-keyword-signal-card {
  display: grid;
  align-content: start;
  gap: 0.62rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid #edf1f5;
  border-left: 4px solid var(--workspace-accent);
  border-radius: 7px;
  background: #ffffff;
}

.workspace-keyword-signal-card.is-critical {
  border-left-color: #ef4444;
  background: #fff5f5;
}

.workspace-keyword-signal-card.is-monitor {
  border-left-color: #f59e0b;
  background: #fffaf0;
}

.workspace-keyword-signal-card.is-strength {
  border-left-color: var(--workspace-accent);
  background: var(--workspace-accent-softer);
}

.workspace-keyword-signal-card div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.workspace-keyword-signal-card span {
  flex: 0 0 auto;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #4b5565;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-keyword-signal-card strong {
  color: #313a46;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.25;
}

.workspace-keyword-signal-card p,
.workspace-keyword-signal-card em {
  margin: 0;
  color: #6f7b8d;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.42;
}

.workspace-keyword-signal-card em {
  color: #313a46;
  font-weight: 850;
}

.workspace-keyword-signal-action {
  width: fit-content;
  min-height: 30px;
  padding: 0.36rem 0.62rem;
  border: 1px solid var(--workspace-accent-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--workspace-accent-strong);
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.workspace-keyword-signal-action:hover {
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
}

.workspace-keyword-cost-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
}

.workspace-keyword-cost-card {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.82rem;
  border: 1px solid #edf1f5;
  border-radius: 7px;
  background: #ffffff;
}

.workspace-keyword-cost-card span {
  color: #8a96a8;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-keyword-cost-card strong {
  overflow: hidden;
  color: #313a46;
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-keyword-cost-card small {
  color: #8a96a8;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.35;
}

.workspace-keyword-low-yield {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0.75rem;
  border: 1px solid #edf1f5;
  border-radius: 7px;
  background: #fbfcfe;
}

.workspace-keyword-low-yield.empty {
  color: #6f7b8d;
  font-size: 0.82rem;
  font-weight: 750;
}

.workspace-keyword-low-yield strong {
  color: #313a46;
  font-size: 0.82rem;
  font-weight: 900;
}

.workspace-keyword-low-yield div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.workspace-keyword-low-yield button {
  padding: 0.34rem 0.55rem;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5565;
  font-size: 0.74rem;
  font-weight: 850;
  cursor: pointer;
}

.workspace-keyword-low-yield button:hover {
  border-color: var(--workspace-accent);
  color: var(--workspace-accent-strong);
}

.workspace-keyword-concept-cloud {
  align-content: flex-start;
}

.workspace-keyword-market-list {
  display: grid;
  gap: 0.75rem;
}

.workspace-keyword-market-item {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #fbfcfe;
}

.workspace-keyword-market-item strong,
.workspace-keyword-post-title {
  color: #313a46;
  font-weight: 850;
}

.workspace-keyword-market-item span {
  display: block;
  margin-top: 0.15rem;
  color: #8a96a8;
  font-size: 0.78rem;
  font-weight: 750;
}

.workspace-keyword-table {
  min-width: 1080px;
}

.workspace-keyword-table td {
  white-space: normal;
}

.workspace-keyword-table td:nth-child(n + 3) {
  white-space: nowrap;
}

.workspace-keyword-post-list {
  display: grid;
  gap: 0.75rem;
}

.workspace-keyword-post-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(120px, 0.16fr);
  align-items: start;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.workspace-keyword-post-body {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.workspace-keyword-post-title {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.workspace-keyword-post-title:hover {
  color: var(--workspace-accent-strong);
}

.workspace-keyword-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.workspace-keyword-post-tags span {
  display: inline-flex;
  max-width: 100%;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--workspace-accent-border);
  border-radius: 999px;
  background: var(--workspace-accent-softer);
  color: var(--workspace-accent-strong);
  font-size: 0.72rem;
  font-weight: 850;
}

.workspace-keyword-post-metrics {
  display: grid;
  gap: 0.2rem;
  justify-items: end;
  color: #8a96a8;
  font-size: 0.74rem;
  font-weight: 750;
  text-align: right;
}

.workspace-keyword-post-metrics strong {
  color: #313a46;
  font-size: 1rem;
  font-weight: 900;
}

.workspace-keyword-post-metrics span,
.workspace-keyword-post-metrics small {
  display: block;
}

.workspace-keyword-post-explorer {
  scroll-margin-top: 1rem;
}

.workspace-keyword-post-toolbar {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(120px, 0.8fr) minmax(160px, 1.2fr) auto;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.workspace-keyword-post-toolbar label {
  display: grid;
  gap: 0.3rem;
}

.workspace-keyword-post-toolbar label > span {
  color: #8a96a8;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-keyword-post-toolbar-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.workspace-keyword-post-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.2rem 0 1rem;
  color: #8a96a8;
  font-size: 0.76rem;
  font-weight: 800;
}

.workspace-keyword-post-active-filters strong {
  color: #4b5565;
  font-weight: 900;
}

.workspace-keyword-post-active-filters span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--workspace-accent-border);
  border-radius: 999px;
  background: var(--workspace-accent-softer);
  color: var(--workspace-accent-strong);
}

.workspace-keyword-post-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.68fr);
  align-items: start;
  gap: 1rem;
}

.workspace-keyword-post-column {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.workspace-keyword-post-results {
  display: grid;
  gap: 0.7rem;
}

.workspace-keyword-result-row {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.workspace-keyword-result-row .workspace-post-state strong {
  color: #313a46;
  font-size: 0.92rem;
  font-weight: 900;
}

.workspace-keyword-detail-panel {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.workspace-keyword-detail-tags {
  margin-bottom: 0.85rem;
}

.workspace-keyword-pagination {
  justify-content: space-between;
}

.workspace-keyword-insights {
  scroll-margin-top: 1rem;
}

.workspace-keyword-intelligence-grid {
  align-items: stretch;
}

.workspace-keyword-source-list,
.workspace-keyword-author-list {
  display: grid;
  gap: 0.7rem;
}

.workspace-keyword-source-card,
.workspace-keyword-author-card {
  display: grid;
  gap: 0.62rem;
  padding: 0.82rem;
  border: 1px solid #edf1f5;
  border-radius: 7px;
  background: #ffffff;
}

.workspace-keyword-source-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.workspace-keyword-source-main > span,
.workspace-keyword-source-card p,
.workspace-keyword-author-card p,
.workspace-keyword-author-head span {
  margin: 0;
  color: #8a96a8;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
}

.workspace-keyword-source-card p strong {
  color: #313a46;
  font-weight: 900;
}

.workspace-keyword-source-metrics,
.workspace-keyword-author-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.workspace-keyword-source-metrics div,
.workspace-keyword-author-metrics span {
  min-width: 0;
  padding: 0.52rem;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #f8fafc;
}

.workspace-keyword-source-metrics strong,
.workspace-keyword-author-metrics strong {
  display: block;
  color: #313a46;
  font-size: 0.92rem;
  font-weight: 950;
}

.workspace-keyword-source-metrics span,
.workspace-keyword-author-metrics span {
  color: #8a96a8;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-keyword-source-bar {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #edf1f5;
}

.workspace-keyword-source-bar span {
  display: block;
  width: var(--bar-width);
  height: 100%;
  min-width: 5px;
  border-radius: inherit;
  background: var(--workspace-accent);
}

.workspace-keyword-author-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.workspace-keyword-author-head > div {
  min-width: 0;
}

.workspace-keyword-author-head strong {
  display: block;
  overflow: hidden;
  color: #313a46;
  font-size: 0.9rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-keyword-author-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  font-size: 0.74rem;
}

.workspace-keyword-author-card > a {
  width: fit-content;
  color: var(--workspace-accent-strong);
  font-size: 0.75rem;
  font-weight: 900;
  text-decoration: none;
}

.workspace-keyword-author-card > a:hover {
  text-decoration: underline;
}

.workspace-keyword-insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
}

.workspace-keyword-insight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 0.9rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid #edf1f5;
  border-radius: 7px;
  background: #fbfcfe;
}

.workspace-keyword-insight-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  min-width: 0;
}

.workspace-keyword-insight-card > *,
.workspace-keyword-insight-head > div,
.workspace-keyword-comparison-card > * {
  min-width: 0;
  max-width: 100%;
}

.workspace-keyword-insight-head > div:first-child {
  flex: 1 1 12rem;
}

.workspace-keyword-insight-card .workspace-table-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.workspace-keyword-insight-head h4,
.workspace-keyword-insight-list h5,
.workspace-keyword-insight-top-posts h5 {
  margin: 0;
  color: #313a46;
  font-size: 0.95rem;
  font-weight: 900;
}

.workspace-keyword-insight-head p {
  margin: 0.18rem 0 0;
  color: #8a96a8;
  font-size: 0.78rem;
  font-weight: 700;
}

.workspace-keyword-insight-select {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  width: 210px;
  max-width: 100%;
  flex: 0 1 210px;
}

.workspace-keyword-insight-select select {
  min-width: 0;
  max-width: 100%;
}

.workspace-keyword-insight-select span {
  color: #8a96a8;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-keyword-mini-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.workspace-keyword-mini-kpis div {
  padding: 0.7rem;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #ffffff;
}

.workspace-keyword-mini-kpis span,
.workspace-keyword-comparison-metrics span {
  display: block;
  color: #8a96a8;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-keyword-mini-kpis strong {
  display: block;
  margin-top: 0.22rem;
  color: #313a46;
  font-size: 1rem;
  font-weight: 900;
}

.workspace-keyword-sparkline-block {
  display: grid;
  gap: 0.45rem;
}

.workspace-keyword-sparkline-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.workspace-keyword-sparkline-label strong {
  color: #313a46;
  font-size: 0.82rem;
  font-weight: 900;
}

.workspace-keyword-sparkline-label span {
  color: #8a96a8;
  font-size: 0.72rem;
  font-weight: 750;
  text-align: right;
}

.workspace-keyword-sparkline {
  display: flex;
  align-items: end;
  gap: 0.25rem;
  height: 88px;
  padding: 0.6rem;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #ffffff;
}

.workspace-keyword-sparkline span {
  display: flex;
  align-items: end;
  flex: 1;
  height: 100%;
  min-width: 4px;
}

.workspace-keyword-sparkline i {
  display: block;
  width: 100%;
  height: var(--bar-height);
  min-height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--workspace-accent);
}

.workspace-keyword-insight-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.workspace-keyword-insight-list {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.workspace-keyword-insight-list-row {
  position: relative;
  overflow: hidden;
  padding: 0.62rem;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #ffffff;
}

.workspace-keyword-insight-list-row div {
  position: relative;
  z-index: 1;
}

.workspace-keyword-insight-list-row strong,
.workspace-keyword-insight-top-posts button,
.workspace-keyword-table-link {
  color: #313a46;
  font-weight: 850;
}

.workspace-keyword-insight-list-row span {
  display: block;
  margin-top: 0.15rem;
  color: #8a96a8;
  font-size: 0.72rem;
  font-weight: 750;
}

.workspace-keyword-insight-list-row em {
  position: absolute;
  inset: auto auto 0 0;
  width: var(--bar-width);
  height: 4px;
  background: var(--workspace-accent);
  opacity: 0.55;
}

.workspace-keyword-insight-top-posts {
  display: grid;
  gap: 0.55rem;
}

.workspace-keyword-insight-top-posts article {
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #ffffff;
}

.workspace-keyword-insight-top-posts button,
.workspace-keyword-table-link {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.workspace-keyword-insight-top-posts button:hover,
.workspace-keyword-table-link:hover {
  color: var(--workspace-accent-strong);
}

.workspace-keyword-insight-top-posts span {
  color: #8a96a8;
  font-size: 0.74rem;
  font-weight: 750;
}

.workspace-keyword-mode-toggle {
  display: inline-flex;
  padding: 0.18rem;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: #ffffff;
}

.workspace-keyword-mode-toggle button,
.workspace-keyword-compare-picker button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.workspace-keyword-mode-toggle button {
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: transparent;
  color: #697586;
  font-size: 0.75rem;
  font-weight: 850;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.workspace-keyword-mode-toggle button.active {
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
}

.workspace-keyword-compare-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.workspace-keyword-compare-picker button {
  padding: 0.36rem 0.58rem;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: #ffffff;
  color: #5f6c7b;
  font-size: 0.74rem;
  font-weight: 850;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.workspace-keyword-compare-picker button.active {
  border-color: var(--workspace-accent);
  background: var(--workspace-accent-softer);
  color: var(--workspace-accent-strong);
}

.workspace-keyword-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.workspace-keyword-comparison-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 0.55rem;
  padding: 0.78rem;
  border: 1px solid #edf1f5;
  border-radius: 7px;
  background: #ffffff;
}

.workspace-keyword-comparison-card > strong {
  color: #313a46;
  font-size: 0.9rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.workspace-keyword-comparison-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.workspace-keyword-comparison-metrics span {
  width: fit-content;
  padding: 0.24rem 0.42rem;
  border-radius: 999px;
  background: #f4f7f9;
}

.workspace-keyword-comparison-bars {
  display: grid;
  gap: 0.42rem;
}

.workspace-keyword-comparison-bars label {
  display: grid;
  gap: 0.22rem;
  color: #8a96a8;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-keyword-comparison-bars i {
  display: block;
  width: var(--bar-width);
  height: 6px;
  min-width: 5px;
  border-radius: 999px;
  background: var(--workspace-accent);
}

.workspace-keyword-compare-table {
  min-width: 900px;
  margin-top: 0.85rem;
}

.workspace-narrative-radar {
  min-width: 0;
}

.workspace-narrative-radar-card {
  margin-bottom: 0;
}

.workspace-radar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.workspace-radar-panel {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #fbfcfe;
}

.workspace-radar-panel h4 {
  margin: 0;
  color: #313a46;
  font-size: 0.9rem;
  font-weight: 850;
}

.workspace-radar-topic-list,
.workspace-radar-driver-list,
.workspace-radar-trigger-list {
  display: grid;
  gap: 0.55rem;
}

.workspace-radar-topic,
.workspace-radar-driver,
.workspace-radar-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.65rem;
  border: 1px solid #e4e9f0;
  border-radius: 6px;
  background: #ffffff;
}

.workspace-radar-topic.positive {
  border-left: 3px solid var(--workspace-accent);
  background: var(--workspace-accent-softer);
}

.workspace-radar-topic.negative {
  border-left: 3px solid #f59e0b;
  background: #fff8eb;
}

.workspace-radar-topic strong,
.workspace-radar-driver strong,
.workspace-radar-trigger a,
.workspace-radar-trigger-link,
.workspace-radar-trigger strong {
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #313a46;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.3;
  text-decoration: none;
  text-overflow: ellipsis;
  text-align: left;
  cursor: pointer;
}

.workspace-radar-trigger a:hover,
.workspace-radar-trigger-link:hover {
  color: var(--workspace-accent-strong);
}

.workspace-radar-topic span,
.workspace-radar-driver span,
.workspace-radar-trigger span {
  display: block;
  margin-top: 0.18rem;
  color: #8a96a8;
  font-size: 0.72rem;
  line-height: 1.35;
}

.workspace-radar-topic em,
.workspace-radar-driver em,
.workspace-radar-trigger em {
  justify-self: end;
  padding: 0.24rem 0.45rem;
  border-radius: 999px;
  background: #f4f7f9;
  color: #4b5565;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.workspace-radar-topic.positive em {
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
}

.workspace-radar-topic.negative em {
  background: #f59e0b;
  color: #ffffff;
}

.workspace-profile-stats {
  margin-bottom: 0;
}

.workspace-profile-intelligence {
  min-width: 0;
}

.workspace-executive-brief {
  min-width: 0;
}

.workspace-executive-brief-card {
  margin-bottom: 0;
}

.workspace-executive-brief-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--workspace-accent-border);
  border-radius: 999px;
  background: var(--workspace-accent-softer);
  color: var(--workspace-accent-strong);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-executive-brief-status.failed {
  border-color: rgba(225, 77, 67, 0.24);
  background: rgba(225, 77, 67, 0.08);
  color: #b23b33;
}

.workspace-executive-brief-status.running {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
  color: #b7791f;
}

.workspace-executive-brief-summary {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--workspace-accent);
  border-radius: 6px;
  background: var(--workspace-accent-softer);
  color: #3f4857;
  font-size: 0.93rem;
  font-weight: 750;
  line-height: 1.5;
}

.workspace-executive-brief-alerts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.workspace-executive-brief-alert {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid #edf1f5;
  border-left-width: 5px;
  border-radius: 7px;
  background: #ffffff;
}

.workspace-executive-brief-alert strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
}

.workspace-executive-brief-alert span {
  color: #313a46;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-executive-brief-alert.is-critical {
  border-left-color: #d64545;
  background: linear-gradient(180deg, rgba(214, 69, 69, 0.08), #ffffff 70%);
}

.workspace-executive-brief-alert.is-critical strong {
  background: #d64545;
}

.workspace-executive-brief-alert.is-monitor {
  border-left-color: #d98b2b;
  background: linear-gradient(180deg, rgba(217, 139, 43, 0.09), #ffffff 70%);
}

.workspace-executive-brief-alert.is-monitor strong {
  background: #d98b2b;
}

.workspace-executive-brief-alert.is-strength {
  border-left-color: #3f7f68;
  background: linear-gradient(180deg, rgba(63, 127, 104, 0.09), #ffffff 70%);
}

.workspace-executive-brief-alert.is-strength strong {
  background: #3f7f68;
}

.workspace-executive-brief-editor {
  display: grid;
  gap: 1rem;
}

.workspace-executive-brief-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--workspace-accent-border);
  border-radius: 7px;
  background: var(--workspace-accent-softer);
}

.workspace-executive-brief-editor-head strong {
  display: block;
  color: #313a46;
  font-size: 0.95rem;
  font-weight: 900;
}

.workspace-executive-brief-editor-head p {
  margin: 0.25rem 0 0;
  color: #5f6b7a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.workspace-executive-brief-editor-head span {
  flex: 0 0 auto;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-executive-brief-editor-head span.muted {
  background: #edf2f7;
  color: #697586;
}

.workspace-executive-brief-field {
  display: grid;
  gap: 0.35rem;
}

.workspace-executive-brief-field span {
  color: #8a96a8;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-executive-brief-field textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid #d9e2ec;
  border-radius: 7px;
  padding: 0.75rem 0.85rem;
  background: #ffffff;
  color: #313a46;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.5;
}

.workspace-executive-brief-field textarea:focus {
  outline: none;
  border-color: var(--workspace-accent);
  box-shadow: 0 0 0 3px var(--workspace-accent-softer);
}

.workspace-executive-brief-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.85rem;
}

.workspace-executive-brief-editor-section {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #edf1f5;
  border-radius: 7px;
  background: #fbfcfe;
}

.workspace-executive-brief-editor-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.workspace-executive-brief-editor-section-head h4 {
  margin: 0;
  color: #313a46;
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1.2;
}

.workspace-executive-brief-editor-section-head .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 132px;
  min-height: 2.25rem;
  padding: 0.52rem 0.78rem;
  border: 1px solid var(--workspace-accent-border);
  border-radius: 7px;
  background: #ffffff;
  color: var(--workspace-accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
}

.workspace-executive-brief-editor-section-head .btn:hover {
  background: var(--workspace-accent-softer);
}

.workspace-executive-brief-editor-items {
  display: grid;
  gap: 0.7rem;
}

.workspace-executive-brief-empty {
  padding: 0.75rem;
  border: 1px dashed #d9e2ec;
  border-radius: 7px;
  color: #8a96a8;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.workspace-executive-brief-edit-item {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid #e4e9f0;
  border-radius: 7px;
  background: #ffffff;
}

.workspace-executive-brief-edit-item label {
  display: grid;
  gap: 0.3rem;
}

.workspace-executive-brief-edit-item label span {
  color: #8a96a8;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-executive-brief-edit-item input,
.workspace-executive-brief-edit-item select,
.workspace-executive-brief-edit-item textarea {
  width: 100%;
  border: 1px solid #d9e2ec;
  border-radius: 7px;
  padding: 0.68rem 0.75rem;
  background: #ffffff;
  color: #313a46;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.45;
}

.workspace-executive-brief-edit-item textarea {
  resize: vertical;
}

.workspace-executive-brief-edit-item input:focus,
.workspace-executive-brief-edit-item select:focus,
.workspace-executive-brief-edit-item textarea:focus {
  outline: none;
  border-color: var(--workspace-accent);
  box-shadow: 0 0 0 3px var(--workspace-accent-softer);
}

.workspace-executive-brief-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.38fr);
  gap: 0.65rem;
}

.workspace-executive-brief-remove {
  justify-self: end;
  width: fit-content;
  border: 0;
  background: transparent;
  color: #b23b33;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.workspace-executive-brief-remove:hover {
  color: #8f2f29;
}

.workspace-executive-brief-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.workspace-executive-brief-actions.compact {
  align-items: center;
}

.workspace-executive-brief-actions.compact .btn {
  min-width: 136px;
}

.workspace-executive-brief-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 178px;
  min-height: 2.65rem;
  padding: 0.72rem 1.05rem;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.1;
}

.workspace-executive-brief-actions .btn:not(.btn-workspace-primary) {
  border: 1px solid #d9e2ec;
  background: #ffffff;
  color: #313a46;
}

.workspace-executive-brief-actions .btn:not(.btn-workspace-primary):hover {
  border-color: var(--workspace-accent-border);
  background: var(--workspace-accent-softer);
  color: var(--workspace-accent-strong);
}

.workspace-executive-brief-actions .btn-workspace-primary {
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
}

.workspace-form-feedback {
  display: none;
  padding: 0.7rem 0.85rem;
  border-radius: 7px;
  background: rgba(225, 77, 67, 0.08);
  color: #b23b33;
  font-size: 0.82rem;
  font-weight: 800;
}

.workspace-executive-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0.85rem;
}

.workspace-executive-brief-section {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #fbfcfe;
}

.workspace-executive-brief-section h4 {
  margin: 0 0 0.65rem;
  color: #313a46;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.22;
}

.workspace-executive-brief-list {
  display: grid;
  gap: 0.55rem;
}

.workspace-executive-brief-list article {
  display: grid;
  gap: 0.25rem;
  padding-left: 0.65rem;
  padding-bottom: 0.55rem;
  border-left: 3px solid #d9e2ec;
  border-bottom: 1px solid #edf1f5;
}

.workspace-executive-brief-list article.is-critical {
  border-left-color: #d64545;
}

.workspace-executive-brief-list article.is-monitor {
  border-left-color: #d98b2b;
}

.workspace-executive-brief-list article.is-strength {
  border-left-color: #3f7f68;
}

.workspace-executive-brief-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.workspace-executive-brief-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.workspace-executive-brief-list strong {
  color: #313a46;
  font-size: 0.82rem;
}

.workspace-executive-brief-list p {
  margin: 0;
  color: #5f6b7a;
  font-size: 0.78rem;
  line-height: 1.42;
}

.workspace-executive-brief-list em {
  width: fit-content;
  padding: 0.14rem 0.38rem;
  border-radius: 999px;
  background: #edf2f7;
  color: #697586;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-executive-brief-insight-pill {
  flex: 0 0 auto;
  width: fit-content;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.workspace-executive-brief-insight-pill.is-critical {
  background: rgba(214, 69, 69, 0.11);
  color: #a83232;
}

.workspace-executive-brief-insight-pill.is-monitor {
  background: rgba(217, 139, 43, 0.13);
  color: #9b611c;
}

.workspace-executive-brief-insight-pill.is-strength {
  background: rgba(63, 127, 104, 0.12);
  color: #2f6652;
}

.workspace-executive-brief-history {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #edf1f5;
}

.workspace-executive-brief-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-executive-brief-history-head h4 {
  margin: 0;
  color: #313a46;
  font-size: 0.98rem;
  font-weight: 900;
}

.workspace-executive-brief-history-head p {
  margin: 0.22rem 0 0;
  color: #8a96a8;
  font-size: 0.8rem;
  font-weight: 750;
}

.workspace-executive-brief-history-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: #edf2f7;
  color: #4b5565;
  font-size: 0.78rem;
  font-weight: 900;
}

.workspace-executive-brief-history-list {
  display: grid;
  gap: 0.55rem;
}

.workspace-executive-brief-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #e4e9f0;
  border-radius: 7px;
  background: #ffffff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.workspace-executive-brief-history-item:hover,
.workspace-executive-brief-history-item:focus-visible {
  outline: none;
  border-color: var(--workspace-accent);
  box-shadow: 0 0 0 3px var(--workspace-accent-softer);
}

.workspace-executive-brief-history-item strong,
.workspace-executive-brief-history-item span,
.workspace-executive-brief-history-item p {
  display: block;
}

.workspace-executive-brief-history-item strong {
  color: #313a46;
  font-size: 0.86rem;
  font-weight: 900;
}

.workspace-executive-brief-history-item span {
  margin-top: 0.18rem;
  color: #8a96a8;
  font-size: 0.72rem;
  font-weight: 750;
}

.workspace-executive-brief-history-item p {
  margin: 0.42rem 0 0;
  color: #5f6b7a;
  font-size: 0.78rem;
  line-height: 1.42;
}

.workspace-executive-brief-history-badges {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.workspace-executive-brief-history-badges em,
.workspace-executive-brief-history-badges small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.workspace-executive-brief-history-badges em {
  padding: 0.25rem 0.45rem;
  background: var(--workspace-accent-softer);
  color: var(--workspace-accent-strong);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.workspace-executive-brief-history-badges em.failed {
  background: rgba(225, 77, 67, 0.08);
  color: #b23b33;
}

.workspace-executive-brief-history-badges small {
  width: 1.45rem;
  height: 1.45rem;
  color: #ffffff;
  font-size: 0.68rem;
}

.workspace-executive-brief-history-badges small.is-critical {
  background: #d64545;
}

.workspace-executive-brief-history-badges small.is-monitor {
  background: #d98b2b;
}

.workspace-executive-brief-history-badges small.is-strength {
  background: #3f7f68;
}

.workspace-profile-intelligence-card {
  margin-bottom: 0;
}

.workspace-table-scroll {
  overflow-x: auto;
}

.workspace-data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.workspace-data-table th,
.workspace-data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #edf1f5;
  color: #4b5565;
  font-size: 0.84rem;
  text-align: left;
  vertical-align: top;
}

.workspace-data-table th {
  color: #8a96a8;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-data-table td:not(:first-child) {
  white-space: nowrap;
}

.workspace-profile-intelligence-table {
  min-width: 1180px;
}

.workspace-profile-intelligence-table td {
  white-space: normal;
}

.workspace-profile-intelligence-profile {
  width: 250px;
}

.workspace-profile-intelligence-person {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.workspace-profile-intelligence-avatar {
  width: 38px;
  height: 38px;
  font-size: 0.74rem;
}

.workspace-profile-intelligence-profile button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #313a46;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.workspace-profile-intelligence-profile button:hover strong {
  color: var(--workspace-accent-strong);
}

.workspace-profile-intelligence-profile strong,
.workspace-profile-intelligence-profile span,
.workspace-profile-intelligence-profile em,
.workspace-profile-intelligence-metric,
.workspace-profile-intelligence-submetric {
  display: block;
}

.workspace-profile-intelligence-profile strong,
.workspace-profile-intelligence-metric {
  color: #313a46;
  font-weight: 850;
}

.workspace-profile-intelligence-profile span,
.workspace-profile-intelligence-submetric,
.workspace-profile-intelligence-shift small {
  margin-top: 0.2rem;
  color: #8a96a8;
  font-size: 0.76rem;
  font-weight: 750;
}

.workspace-profile-intelligence-profile em {
  margin-top: 0.3rem;
  color: var(--workspace-accent-strong);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 850;
}

.workspace-profile-intelligence-stack,
.workspace-profile-intelligence-shift {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.workspace-profile-intelligence-chip-row,
.workspace-profile-intelligence-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.workspace-profile-intelligence-chip,
.workspace-profile-intelligence-keywords span,
.workspace-profile-intelligence-shift span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.28rem 0.45rem;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #fbfcfe;
  color: #4b5565;
  font-size: 0.74rem;
  font-weight: 800;
}

.workspace-profile-intelligence-chip.strong {
  border-color: var(--workspace-accent-border);
  background: var(--workspace-accent-softer);
  color: var(--workspace-accent-strong);
}

.workspace-profile-intelligence-chip em {
  color: #8a96a8;
  font-style: normal;
}

.workspace-profile-intelligence-keywords span {
  background: #ffffff;
  color: #697586;
  font-weight: 750;
}

.workspace-profile-intelligence-bars {
  display: grid;
  gap: 0.25rem;
  min-width: 170px;
}

.workspace-profile-intelligence-bars span {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.workspace-profile-intelligence-bars span::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar-size);
  border-radius: inherit;
  background: var(--workspace-accent);
}

.workspace-profile-intelligence-bars em {
  display: none;
}

.workspace-profile-intelligence-shift span.positive {
  border-color: rgba(63, 127, 104, 0.28);
  background: rgba(63, 127, 104, 0.08);
  color: #2f6f59;
}

.workspace-profile-intelligence-shift span.negative {
  border-color: rgba(225, 77, 67, 0.24);
  background: rgba(225, 77, 67, 0.08);
  color: #b23b33;
}

.workspace-profile-intelligence-shift span.neutral {
  color: #697586;
}

.workspace-profile-intelligence-shift em {
  font-style: normal;
  font-weight: 900;
}

.workspace-data-table td strong {
  display: block;
  color: #313a46;
}

.workspace-data-table td span {
  display: block;
  margin-top: 0.2rem;
  color: #8a96a8;
  font-size: 0.76rem;
}

.workspace-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #edf1f5;
}

.workspace-tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.workspace-tab {
  display: grid;
  gap: 0.15rem;
  min-width: 150px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e8edf3;
  border-left: 3px solid var(--social-color, #e8edf3);
  border-radius: 6px;
  background: #fbfcfe;
  color: #4b5565;
  text-align: left;
  cursor: pointer;
}

.workspace-tab.active,
.workspace-tab:hover {
  border-color: color-mix(in srgb, var(--social-color) 38%, #e8edf3);
  border-left-color: var(--social-color);
  background: linear-gradient(90deg, color-mix(in srgb, var(--social-color) 10%, #ffffff), #ffffff 72%);
}

.workspace-tab.active span,
.workspace-tab:hover span {
  color: #313a46;
}

.workspace-tab span {
  display: inline-flex;
  min-width: 0;
  gap: 0.45rem;
  align-items: center;
}

.workspace-tab b {
  overflow: hidden;
  color: inherit;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-social-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  font-size: 0.64rem;
}

.workspace-tab small {
  color: #8a96a8;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1.05fr);
  gap: 1rem;
  align-items: start;
}

.workspace-posts-panel,
.workspace-detail-panel {
  min-width: 0;
}

.workspace-detail-panel {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.workspace-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 180px) minmax(190px, 240px) auto;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.workspace-filters .form-control,
.workspace-workflow-section .form-control {
  background: #fbfcfe;
  border: 1px solid #e4e9f0;
  color: #4b5565;
  border-radius: 6px;
}

.workspace-filters select.form-control,
.workspace-workflow-section select.form-control {
  padding-right: 2.75rem;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 14px;
}

.workspace-post-list {
  display: grid;
  gap: 0.55rem;
}

.workspace-post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #e8edf3;
  border-radius: 6px;
  background: #ffffff;
  color: #4b5565;
  text-align: left;
}

.workspace-post-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.workspace-post-row:hover,
.workspace-post-row.active {
  border-color: var(--workspace-accent-border);
  background: var(--workspace-accent-softer);
}

.workspace-post-main {
  min-width: 0;
}

.workspace-post-title,
.workspace-detail-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.workspace-detail-title-row h3 {
  margin: 0;
  min-width: 0;
}

.workspace-post-main strong {
  display: block;
  min-width: 0;
  color: #313a46;
  font-size: 0.9rem;
  line-height: 1.35;
}

.workspace-post-main p {
  margin-top: 0.35rem;
  color: #6f7b8d;
  line-height: 1.45;
}

.workspace-post-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}

.workspace-post-meta span {
  color: #8a96a8;
  font-size: 0.76rem;
}

.workspace-post-meta .workspace-monitored-repost {
  color: var(--workspace-accent-strong);
  font-weight: 800;
}

.workspace-post-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #dde5ef;
  background: #f7f9fc;
  color: #667085;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.workspace-post-kind.repost {
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.12);
  color: #996011;
}

.workspace-post-kind.monitored_repost {
  border-color: var(--workspace-accent-border);
  background: var(--workspace-accent-soft);
  color: var(--workspace-accent-strong);
}

.workspace-post-state {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

.workspace-post-state small {
  color: #8a96a8;
}

.workspace-favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dde5ef;
  border-radius: 999px;
  background: #ffffff;
  color: #b5bfcc;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.workspace-favorite-btn.compact {
  width: 32px;
  height: 32px;
  font-size: 0.92rem;
}

.workspace-favorite-btn:hover:not(:disabled),
.workspace-favorite-btn.active {
  border-color: rgba(245, 158, 11, 0.38);
  background: #fff7e6;
  color: #f59e0b;
}

.workspace-favorite-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.workspace-favorite-btn:disabled {
  cursor: default;
  opacity: 0.82;
}

.workspace-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.workspace-status-pill.neutral {
  background: #eef2f7;
  color: #667085;
}

.workspace-status-pill.draft {
  background: var(--workspace-accent-soft);
  color: var(--workspace-accent-strong);
}

.workspace-status-pill.pending {
  background: rgba(255, 194, 111, 0.22);
  color: #996011;
}

.workspace-status-pill.changes {
  background: rgba(252, 81, 133, 0.14);
  color: #b42355;
}

.workspace-status-pill.approved {
  background: rgba(99, 163, 97, 0.16);
  color: #317337;
}

.workspace-status-pill.rejected {
  background: #eef2f7;
  color: #8a4b5c;
}

.workspace-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.workspace-pagination span {
  color: #8a96a8;
  font-size: 0.84rem;
}

.workspace-detail-empty {
  min-height: 320px;
  display: grid;
  place-content: center;
  text-align: center;
}

.workspace-detail {
  display: grid;
  gap: 1rem;
}

.workspace-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.workspace-detail-actions {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-post-link {
  display: block;
  padding: 0.75rem;
  border: 1px solid #e8edf3;
  border-radius: 6px;
  background: #fbfcfe;
  color: #2877f0;
  word-break: break-word;
  text-decoration: none;
}

.workspace-repost-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--workspace-accent-border);
  border-radius: 6px;
  background: var(--workspace-accent-softer);
}

.workspace-repost-box strong {
  color: #313a46;
  font-size: 0.88rem;
}

.workspace-repost-box p {
  margin: 0.25rem 0 0;
  color: #667085;
  font-size: 0.82rem;
}

.workspace-repost-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.workspace-repost-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: #ffffff;
  color: var(--workspace-accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.workspace-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.workspace-media-grid img,
.workspace-media-grid video {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border: 1px solid #e8edf3;
  border-radius: 6px;
  background: #f7f9fc;
}

.workspace-media-item { margin: 0; min-width: 0; }
.workspace-media-video { grid-column: 1 / -1; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.workspace-media-stage video { display: block; max-height: 440px; min-height: 200px; aspect-ratio: 16 / 9; object-fit: contain; background: #111827; border: 0; }
.workspace-media-stage iframe { display: block; width: 100%; height: 360px; border: 0; background: #fff; }
.workspace-media-instagram .workspace-media-stage iframe { height: 560px; }
.workspace-media-message { margin: 0; padding: 12px; color: #475569; font-size: .85rem; line-height: 1.5; }
.workspace-media-message[hidden], .workspace-media-actions button[hidden] { display: none; }
.workspace-media-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 12px; }
.workspace-media-actions .btn { width: auto; font-size: .8rem; }
.workspace-media-actions a, .workspace-media-link a { color: #24527d; text-decoration: underline; overflow-wrap: anywhere; }
.workspace-media-link { padding: 12px; border: 1px solid #e2e8f0; border-radius: 6px; }

.workspace-detail-section {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #e8edf3;
  border-radius: 6px;
  background: #fbfcfe;
}

.workspace-original-post {
  white-space: pre-wrap;
  line-height: 1.55;
  color: #4b5565;
}

.workspace-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
}

.workspace-info-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid #e4e9f0;
  border-radius: 6px;
  background: #ffffff;
}

.workspace-info-item span {
  color: #8a96a8;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-info-item strong {
  color: #3f4857;
  line-height: 1.35;
}

.workspace-ai-analysis {
  white-space: pre-wrap;
  line-height: 1.5;
}

.workspace-workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.workspace-workflow-grid label {
  display: block;
  margin-bottom: 0.4rem;
  color: #5d6675;
  font-size: 0.78rem;
  font-weight: 800;
}

.workspace-workflow-grid textarea {
  min-height: 110px;
  resize: vertical;
}

.workspace-workflow-grid textarea[readonly] {
  background: #f5f7fa;
  color: #6f7b8d;
}

.workspace-workflow-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.workspace-workflow-actions .btn-workspace-primary {
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
}

.workspace-workflow-actions .btn-workspace-success {
  background: #63a361;
}

.workspace-workflow-actions .btn-workspace-danger {
  background: #fc5185;
}

.workspace-inline-error {
  color: #b42355;
  font-size: 0.85rem;
}

.workspace-thread,
.workspace-scraped-comments {
  display: grid;
  gap: 0.65rem;
}

.workspace-thread-message,
.workspace-scraped-comment {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid #e4e9f0;
  border-radius: 6px;
  background: #ffffff;
}

.workspace-scraped-comment.hot {
  border-color: var(--workspace-accent-border);
  border-left: 4px solid var(--workspace-accent);
  background: var(--workspace-accent-soft);
}

.workspace-comment-hot-badge {
  display: inline-flex;
  width: max-content;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: var(--workspace-accent);
  color: var(--workspace-accent-contrast);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-scraped-comment-ai {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.25rem;
}

.workspace-scraped-comment-ai span {
  margin-left: 0;
  color: #6f7b8d;
  font-size: 0.74rem;
  font-weight: 750;
}

.workspace-thread-message.workflow-draft,
.workspace-thread-message.internal {
  border-color: #e8d69c;
  background: #fff9e8;
}

.workspace-thread-message.workflow-pending_brand {
  border-color: var(--workspace-accent-border);
  background: var(--workspace-accent-soft);
}

.workspace-thread-message.workflow-changes_requested {
  border-color: #f0c36d;
  background: #fff7e6;
}

.workspace-thread-message.workflow-approved {
  border-color: rgba(99, 163, 97, 0.35);
  background: #edf8ef;
}

.workspace-thread-message.workflow-rejected {
  border-color: rgba(252, 81, 133, 0.35);
  background: #fff0f5;
}

.workspace-thread-message div,
.workspace-scraped-comment {
  min-width: 0;
}

.workspace-thread-message strong,
.workspace-scraped-comment strong {
  color: #3f4857;
}

.workspace-thread-message span,
.workspace-scraped-comment span {
  margin-left: 0.35rem;
  color: #8a96a8;
  font-size: 0.78rem;
}

.workspace-thread-message em {
  display: inline-flex;
  margin-left: 0.35rem;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: rgba(138, 116, 47, 0.12);
  color: #8a742f;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.workspace-thread-message blockquote {
  margin: 0.2rem 0 0;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid currentColor;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  color: #2f3847;
  line-height: 1.45;
  white-space: pre-wrap;
}

.workspace-thread-message p,
.workspace-scraped-comment p {
  color: #4b5565;
  line-height: 1.45;
  white-space: pre-wrap;
}

.workspace-thread-message .workspace-thread-note {
  margin: 0.2rem 0 0;
  color: #657184;
}

.workspace-thread-message .workspace-thread-status {
  margin: 0.2rem 0 0;
  font-weight: 700;
  color: #394456;
}

.notification-center {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.notification-bell:hover,
.notification-bell[aria-expanded="true"] {
  border-color: var(--workspace-accent, #3f72af);
  box-shadow: 0 10px 26px rgba(32, 50, 75, 0.12);
  transform: translateY(-1px);
}

.notification-bell svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fc5185;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1rem;
  text-align: center;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(70vh, 560px);
  overflow: hidden;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(22, 34, 51, 0.18);
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid #edf1f6;
}

.notification-panel-head strong {
  display: block;
  color: #253044;
  font-size: 0.95rem;
}

.notification-panel-head span {
  display: block;
  color: #8491a5;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.notification-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notification-browser-enable {
  border: 1px solid rgba(63, 114, 175, 0.24);
  border-radius: 7px;
  background: var(--workspace-accent-soft, #edf5ff);
  color: var(--workspace-accent, #3f72af);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.42rem 0.55rem;
  white-space: nowrap;
}

.notification-browser-enable:hover:not(:disabled) {
  border-color: var(--workspace-accent, #3f72af);
}

.notification-browser-enable:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.notification-read-all {
  border: 0;
  background: transparent;
  color: var(--workspace-accent, #3f72af);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.notification-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem 0.2rem;
}

.notification-tab {
  flex: 1;
  border: 1px solid #dce4ef;
  border-radius: 7px;
  background: #fff;
  color: #61708a;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.48rem 0.6rem;
}

.notification-tab.active {
  border-color: var(--workspace-accent, #3f72af);
  background: var(--workspace-accent-soft, #edf5ff);
  color: var(--workspace-accent, #3f72af);
}

.notification-list {
  max-height: calc(min(70vh, 560px) - 4rem);
  overflow-y: auto;
  padding: 0.4rem;
}

.notification-empty {
  padding: 1.25rem;
  color: #7b8798;
  font-size: 0.88rem;
  text-align: center;
}

.notification-status {
  padding: 1rem;
  color: #253044;
  font-size: 0.88rem;
}

.notification-status p {
  margin: 0 0 0.75rem;
}

.notification-status a,
.notification-status button {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border: 1px solid #b5c5d9;
  border-radius: 4px;
  background: transparent;
  color: #245d94;
  font: inherit;
  cursor: pointer;
}

.admin-shell-mode .notification-status {
  color: #e5edf8;
}

.admin-shell-mode .notification-status a,
.admin-shell-mode .notification-status button {
  border-color: #8294b0;
  color: #dbe5f2;
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f8fafc;
}

.notification-item.unread {
  border-color: rgba(63, 114, 175, 0.22);
  background: #f3f8ff;
}

.notification-item-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 0.4rem 0.75rem 0.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.notification-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.3rem;
  border-radius: 999px;
  background: #6b7a90;
}

.notification-item.severity-success .notification-dot {
  background: #43866b;
}

.notification-item.severity-warning .notification-dot {
  background: #d08a00;
}

.notification-item.severity-danger .notification-dot {
  background: #fc5185;
}

.notification-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.notification-copy strong {
  color: #253044;
  font-size: 0.88rem;
  line-height: 1.25;
}

.notification-copy span {
  color: #4f5b6f;
  font-size: 0.8rem;
  line-height: 1.35;
}

.notification-copy small {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  color: #8895a7;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
}

.notification-dismiss {
  align-self: start;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0.35rem 0.35rem 0 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #93a0b2;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.notification-dismiss:hover {
  background: rgba(148, 163, 184, 0.14);
  color: #334155;
}

.admin-shell-mode .notification-bell {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.68);
  color: #dbe5f2;
}

.admin-shell-mode .notification-badge {
  border-color: #0f172a;
}

.admin-shell-mode .notification-panel {
  border-color: rgba(148, 163, 184, 0.22);
  background: #111827;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.admin-shell-mode .notification-panel-head {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

.admin-shell-mode .notification-panel-head strong,
.admin-shell-mode .notification-copy strong {
  color: #e5edf8;
}

.admin-shell-mode .notification-panel-head span,
.admin-shell-mode .notification-empty,
.admin-shell-mode .notification-copy small {
  color: #8fa1b8;
}

.admin-shell-mode .notification-browser-enable {
  border-color: rgba(129, 140, 248, 0.35);
  background: rgba(129, 140, 248, 0.14);
  color: #dfe6ff;
}

.admin-shell-mode .notification-tab {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #9fb0c5;
}

.admin-shell-mode .notification-tab.active {
  border-color: rgba(129, 140, 248, 0.55);
  background: rgba(129, 140, 248, 0.14);
  color: #dfe6ff;
}

.admin-shell-mode .notification-item {
  background: rgba(15, 23, 42, 0.72);
}

.admin-shell-mode .notification-item.unread {
  border-color: rgba(129, 140, 248, 0.35);
  background: rgba(30, 41, 59, 0.92);
}

.admin-shell-mode .notification-copy span {
  color: #b7c3d3;
}

.admin-shell-mode .notification-dismiss:hover {
  background: rgba(148, 163, 184, 0.14);
  color: #e5edf8;
}

.notification-settings-grid,
.notification-settings-list {
  display: grid;
  gap: 1rem;
}

.notification-settings-group {
  display: grid;
  gap: 0.75rem;
}

.notification-settings-group h3 {
  margin: 0;
  color: #27364a;
  font-size: 1rem;
}

.notification-settings-card {
  display: grid;
  gap: 0.8rem;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  background: #fff;
  padding: 0.95rem;
}

.notification-settings-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.notification-settings-switch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  cursor: pointer;
}

.notification-settings-switch input,
.notification-settings-recipients input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--workspace-accent, #3f72af);
}

.notification-settings-switch strong {
  display: block;
  color: #27364a;
  font-size: 0.92rem;
}

.notification-settings-switch small {
  display: block;
  margin-top: 0.2rem;
  color: #6f7b8d;
  font-size: 0.8rem;
  line-height: 1.4;
}

.notification-settings-severity {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  background: #eef3f8;
  color: #5b6779;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.notification-settings-severity.severity-success {
  background: #edf8ef;
  color: #43866b;
}

.notification-settings-severity.severity-warning {
  background: #fff7e6;
  color: #a66a00;
}

.notification-settings-severity.severity-danger {
  background: #fff0f5;
  color: #c23d68;
}

.notification-settings-recipients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-left: 1.65rem;
}

.notification-settings-recipients label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #e4e9f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #4b5565;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.3rem 0.55rem;
}

.admin-shell-mode .notification-settings-group h3,
.admin-shell-mode .notification-settings-switch strong {
  color: #e5edf8;
}

.admin-shell-mode .notification-settings-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

.admin-shell-mode .notification-settings-switch small {
  color: #9fb0c5;
}

.admin-shell-mode .notification-settings-recipients label {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.78);
  color: #cbd7e8;
}

@media (max-width: 720px) {
  .notification-center {
    position: static;
  }

  .notification-panel {
    position: fixed;
    top: 4.5rem;
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

@media (max-width: 1080px) {
  .workspace-layout,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .workspace-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-radar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-executive-brief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-executive-brief-editor-grid {
    grid-template-columns: 1fr;
  }

  .workspace-executive-brief-alerts {
    grid-template-columns: 1fr;
  }

  .workspace-hot-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .workspace-hot-post {
    grid-column: 2;
  }

  .workspace-hot-row-head,
  .workspace-hot-ai-grid {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
    height: auto;
  }

  .workspace-detail-panel {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 720px) {
  .workspace-main {
    padding: 1rem;
  }

  .workspace-topbar {
    margin: -1rem -1rem 1rem;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .workspace-client-header {
    align-items: flex-start;
  }

  .workspace-topbar-actions {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .workspace-topbar-actions .language-switcher {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .workspace-menabo-logo {
    width: 100px;
  }

  .workspace-account-menu {
    min-width: 0;
    max-width: none;
    flex: 1 0 100%;
    order: 1;
  }

  .workspace-account-menu summary {
    min-width: 0;
  }

  .workspace-account-menu-panel {
    right: 0;
    left: 0;
    min-width: 0;
  }

  .workspace-dashboard-filter-form,
  .workspace-profile-filter-row {
    grid-template-columns: 1fr;
  }

  .workspace-dashboard-social-row {
    grid-template-columns: 1fr;
  }

  .workspace-dashboard-context-main {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .workspace-dashboard-social-icon {
    width: 38px;
    height: 38px;
    font-size: 0.72rem;
  }

  .workspace-dashboard-context-stats {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .workspace-social-switcher .workspace-tabs {
    justify-content: flex-start;
  }

  .workspace-social-switcher .workspace-tab {
    min-width: 138px;
  }

  .workspace-selected-profile-main {
    grid-template-columns: 1fr;
  }

  .workspace-selected-profile-header {
    flex-direction: column;
  }

  .workspace-selected-profile-photo {
    width: 82px;
    height: 82px;
  }

  .workspace-charts-grid {
    grid-template-columns: 1fr;
  }

  .workspace-kpi-grid {
    grid-template-columns: 1fr;
  }

  .workspace-top-posts-grid {
    grid-template-columns: 1fr;
  }

  .workspace-hot-item {
    grid-template-columns: 1fr;
  }

  .workspace-hot-post {
    grid-column: auto;
  }

  .workspace-topic-insights-grid {
    grid-template-columns: 1fr;
  }

  .workspace-keyword-kpi-grid,
  .workspace-keyword-chart-grid,
  .workspace-keyword-grid,
  .workspace-keyword-signal-grid,
  .workspace-keyword-cost-grid,
  .workspace-keyword-insight-layout,
  .workspace-keyword-mini-kpis,
  .workspace-keyword-insight-split,
  .workspace-keyword-comparison-grid,
  .workspace-keyword-post-toolbar,
  .workspace-keyword-post-workspace,
  .workspace-keyword-post-item {
    grid-template-columns: 1fr;
  }

  .workspace-keyword-insight-head {
    flex-direction: column;
  }

  .workspace-keyword-sparkline-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-keyword-sparkline-label span {
    text-align: left;
  }

  .workspace-keyword-insight-select {
    width: 100%;
  }

  .workspace-keyword-chart-select {
    width: 100%;
  }

  .workspace-keyword-post-metrics {
    justify-items: start;
    text-align: left;
  }

  .workspace-keyword-post-toolbar-actions {
    justify-content: stretch;
  }

  .workspace-keyword-post-toolbar-actions .btn {
    flex: 1;
  }

  .workspace-keyword-detail-panel {
    position: static;
    max-height: none;
  }

  .workspace-radar-grid {
    grid-template-columns: 1fr;
  }

  .workspace-executive-brief-grid {
    grid-template-columns: 1fr;
  }

  .workspace-executive-brief-editor-head,
  .workspace-executive-brief-editor-section-head,
  .workspace-executive-brief-history-head,
  .workspace-executive-brief-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-executive-brief-edit-row {
    grid-template-columns: 1fr;
  }

  .workspace-executive-brief-history-item {
    grid-template-columns: 1fr;
  }

  .workspace-executive-brief-history-badges {
    justify-content: flex-start;
  }

  .workspace-executive-brief-editor-section-head .btn,
  .workspace-executive-brief-actions .btn {
    width: 100%;
  }

  .workspace-trend-grid {
    grid-template-columns: 1fr;
  }

  .workspace-trend-panel:first-child,
  .workspace-trend-panel:last-child {
    grid-column: auto;
  }

  .workspace-trend-chart-shell {
    height: 240px;
  }

  .workspace-filters,
  .workspace-workflow-grid,
  .workspace-post-row,
  .workspace-detail-header {
    grid-template-columns: 1fr;
  }

  .workspace-repost-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-repost-links {
    justify-content: flex-start;
  }

  .workspace-post-state {
    justify-items: start;
  }
}
