        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
            background: #111113;
            min-height: 100vh;
            color: #e5e5e5;
            font-size: 16px;
        }
        .layout {
            display: grid;
            grid-template-columns: 240px 1fr;
            min-height: 100vh;
        }

        /* Sidebar */
        .sidebar {
            background: #18181b;
            border-right: 1px solid #27272a;
            padding: 24px 16px;
            display: flex;
            flex-direction: column;
        }
        .logo {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            padding: 8px 12px;
            margin-bottom: 32px;
            letter-spacing: -0.3px;
        }
        .logo span {
            color: #71717a;
            font-weight: 400;
        }
        .nav-section {
            margin-bottom: 24px;
        }
        .nav-label {
            font-size: 12px;
            font-weight: 500;
            color: #71717a;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 8px 12px;
        }
        .nav-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            color: #a3a3a3;
            text-decoration: none;
            font-size: 15px;
            border-radius: 6px;
            transition: all 0.15s;
            cursor: pointer;
        }
        .nav-item:hover {
            background: #27272a;
            color: #fff;
        }
        .nav-item.active {
            background: #27272a;
            color: #fff;
        }
        .nav-badge {
            background: #ef4444;
            color: #fff;
            border-radius: 10px;
            min-width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 600;
            margin-left: auto;
            padding: 0 6px;
        }
        .nav-icon {
            width: 16px;
            height: 16px;
            opacity: 0.7;
        }
        .sidebar-footer {
            margin-top: auto;
            padding-top: 16px;
            border-top: 1px solid #27272a;
            position: sticky;
            bottom: 24px;
        }
        .status-dot {
            width: 8px;
            height: 8px;
            background: #22c55e;
            border-radius: 50%;
            display: inline-block;
        }
        .status-dot.warning {
            background: #eab308;
        }

        /* News Section */
        .news-label {
            font-size: 13px;
            font-weight: 500;
            color: #71717a;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
        }
        .news-card {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 12px;
            transition: border-color 0.2s;
        }
        .news-card:hover {
            border-color: #3f3f46;
        }
        .news-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 8px;
        }
        .news-card-title {
            font-size: 15px;
            font-weight: 600;
            color: #fff;
            flex: 1;
            margin-right: 12px;
            line-height: 1.4;
        }
        .news-card-source {
            font-size: 11px;
            color: #71717a;
            background: #27272a;
            padding: 3px 8px;
            border-radius: 4px;
            white-space: nowrap;
        }
        .news-card-reason {
            font-size: 13px;
            color: #71717a;
            margin-bottom: 12px;
            font-style: italic;
        }
        .news-card-caption {
            font-size: 14px;
            line-height: 1.65;
            color: #d4d4d8;
            background: #111113;
            border: 1px solid #27272a;
            border-radius: 6px;
            padding: 16px;
            margin-bottom: 12px;
            white-space: pre-wrap;
        }
        .news-card-meta {
            font-size: 12px;
            color: #52525b;
        }
        .news-card-meta a {
            color: #3b82f6;
            text-decoration: none;
        }
        .news-card-meta a:hover {
            text-decoration: underline;
        }
        .news-card-actions {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
            margin-top: 12px;
        }
        .news-btn {
            padding: 8px 16px;
            border-radius: 6px;
            border: none;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s;
        }
        .news-btn-approve {
            background: #22c55e;
            color: #fff;
        }
        .news-btn-approve:hover {
            background: #16a34a;
        }
        .news-btn-reject {
            background: #27272a;
            color: #a1a1aa;
            border: 1px solid #3f3f46;
        }
        .news-btn-reject:hover {
            background: #3f3f46;
            color: #fff;
        }
        .news-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .news-status-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 500;
        }
        .news-status-published {
            background: #052e16;
            color: #22c55e;
        }
        .news-status-scheduled {
            background: #1e1b4b;
            color: #818cf8;
        }
        .news-scheduled-card {
            opacity: 0.7;
        }
        .news-empty {
            text-align: center;
            color: #52525b;
            padding: 32px;
            font-size: 14px;
        }

        /* Trends Section */
        .trn-stat {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 10px;
            padding: 16px 24px;
            flex: 1;
            text-align: center;
        }
        .trn-stat-val { font-size: 26px; font-weight: 700; color: #fff; }
        .trn-stat-lbl { font-size: 11px; color: #71717a; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
        .trn-empty { text-align: center; padding: 80px 24px; }
        .trn-table {
            width: 100%;
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 12px;
            overflow: hidden;
            border-collapse: collapse;
        }
        .trn-table th {
            text-align: left;
            padding: 14px 20px;
            font-size: 11px;
            color: #52525b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid #27272a;
            font-weight: 600;
        }
        .trn-table td {
            padding: 16px 20px;
            border-bottom: 1px solid #1a1a1d;
            vertical-align: top;
        }
        .trn-row { cursor: pointer; transition: background 0.15s; }
        .trn-row:hover { background: #161618; }
        .trn-row-active { background: #161618; }
        .trn-row-title { font-size: 15px; font-weight: 600; color: #fff; }
        .trn-row-sub { font-size: 12px; color: #52525b; margin-top: 2px; }
        .trn-row-heat { font-size: 16px; font-weight: 700; }
        .trn-row-bar { height: 6px; border-radius: 3px; margin-top: 6px; }
        .trn-row-num { font-size: 14px; color: #a1a1aa; text-align: right; }
        .trn-row-numlbl { font-size: 10px; color: #3f3f46; text-align: right; }
        .trn-expand {
            background: #161618;
            padding: 20px 20px 20px 56px;
            border-bottom: 1px solid #27272a;
        }
        .trn-expand-summary { font-size: 14px; color: #a1a1aa; line-height: 1.6; margin-bottom: 16px; }
        .trn-expand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
        .trn-expand-lbl { font-size: 11px; font-weight: 600; color: #52525b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
        .trn-expand-post {
            font-size: 13px; color: #a1a1aa; font-style: italic; line-height: 1.5;
            margin-bottom: 8px; padding: 10px; background: #1c1c1f;
            border-radius: 6px; border: 1px solid #27272a;
        }
        .trn-expand-angle {
            font-size: 13px; color: #a1a1aa; line-height: 1.4;
            margin-bottom: 8px; padding: 10px; background: #1c1c1f;
            border-radius: 6px; border: 1px solid #27272a; border-left: 3px solid #3b82f6;
        }
        .trn-expand-angle strong { color: #3b82f6; }
        .news-toast {
            position: fixed;
            bottom: 24px;
            right: 24px;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 14px;
            color: white;
            z-index: 200;
            animation: newsToastIn 0.3s;
        }
        .news-toast-success { background: #16a34a; }
        .news-toast-error { background: #dc2626; }
        @keyframes newsToastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* Engagement Tracker */
        .eng-chart-container {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 24px;
        }
        .eng-chart-title {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 20px;
        }
        .eng-chart-table {
            width: 100%;
            border-collapse: collapse;
        }
        .eng-chart-table th {
            font-size: 12px;
            color: #71717a;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-align: left;
            padding: 8px 12px;
            border-bottom: 1px solid #27272a;
        }
        .eng-chart-table td {
            padding: 10px 12px;
            font-size: 14px;
            color: #a1a1aa;
            border-bottom: 1px solid #1a1a1a;
        }
        .eng-chart-table tr.active-week td {
            color: #fff;
            font-weight: 600;
            background: #111827;
        }
        .eng-chart-table tr.active-week {
            border-left: 3px solid #3b82f6;
        }
        .eng-chart-bar-cell {
            padding: 10px 12px !important;
        }
        .eng-chart-bar-wrapper {
            display: flex;
            gap: 3px;
            align-items: center;
        }
        .eng-chart-bar {
            height: 18px;
            border-radius: 3px;
            transition: width 0.3s;
        }
        .eng-chart-bar.conn { background: #3b82f6; }
        .eng-chart-bar.foll { background: #8b5cf6; }
        .eng-chart-bar.comm { background: #22c55e; }
        .eng-chart-bar.like { background: #eab308; }
        .eng-chart-legend {
            display: flex;
            gap: 16px;
            margin-top: 16px;
        }
        .eng-chart-legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: #71717a;
        }
        .eng-chart-legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 2px;
        }
        .eng-day-detail-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .eng-day-detail-header h3 {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
        }
        .eng-day-detail-close {
            padding: 4px 12px;
            border-radius: 6px;
            border: 1px solid #3f3f46;
            background: transparent;
            color: #a1a1aa;
            font-size: 13px;
            cursor: pointer;
        }
        .eng-day-detail-close:hover {
            background: #27272a;
            color: #fff;
        }
        .eng-detail-section {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 10px;
            padding: 16px;
            margin-bottom: 12px;
            max-height: 300px;
            overflow-y: auto;
        }
        .eng-detail-section::-webkit-scrollbar {
            width: 6px;
        }
        .eng-detail-section::-webkit-scrollbar-track {
            background: transparent;
        }
        .eng-detail-section::-webkit-scrollbar-thumb {
            background: #3f3f46;
            border-radius: 3px;
        }
        .eng-detail-section-title {
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .eng-detail-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid #1a1a1a;
            font-size: 14px;
        }
        .eng-detail-item:last-child {
            border-bottom: none;
        }
        .eng-detail-name {
            font-weight: 500;
            color: #e5e5e5;
            min-width: 140px;
        }
        .eng-detail-meta {
            color: #71717a;
            font-size: 13px;
            flex: 1;
        }
        .eng-detail-time {
            color: #52525b;
            font-size: 12px;
            white-space: nowrap;
        }
        .eng-detail-empty {
            color: #52525b;
            font-size: 13px;
            font-style: italic;
            padding: 8px 0;
        }
        .eng-detail-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
            margin-top: 6px;
        }
        .weekly-tab {
            padding: 12px 8px;
            border-radius: 10px;
            border: 1px solid #2e2e32;
            background: #1c1c1f;
            color: #71717a;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s;
            flex: 1;
            text-align: center;
        }
        .weekly-tab:hover {
            border-color: #3f3f46;
            color: #fff;
            background: #27272a;
        }
        .weekly-tab.active {
            background: #1e3a5f;
            border-color: #3b82f6;
            color: #fff;
        }
        .weekly-tab.has-notes {
            border-color: #22c55e55;
        }
        .weekly-tab .tab-count {
            font-size: 11px;
            display: block;
            margin-top: 4px;
            font-weight: 400;
        }
        .weekly-lead-card {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 12px;
            padding: 20px 24px;
            margin-bottom: 16px;
            transition: border-color 0.2s;
        }
        .weekly-lead-card:hover {
            border-color: #3f3f46;
        }
        .weekly-lead-card.has-note {
            border-left: 3px solid #22c55e;
        }
        .weekly-lead-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }
        .weekly-lead-name {
            font-size: 16px;
            font-weight: 600;
            color: #3b82f6;
            text-decoration: none;
        }
        .weekly-lead-name:hover {
            text-decoration: underline;
        }
        .weekly-lead-headline {
            font-size: 13px;
            color: #52525b;
            margin-top: 2px;
        }
        .weekly-lead-tldr {
            font-size: 14px;
            color: #a1a1aa;
            margin-bottom: 12px;
            line-height: 1.5;
        }
        .weekly-lead-tldr span {
            color: #3b82f6;
            font-weight: 500;
        }
        .weekly-full-post {
            background: #0a0a0a;
            border: 1px solid #1a1a1a;
            border-radius: 8px;
            padding: 16px;
            font-size: 13px;
            color: #71717a;
            line-height: 1.7;
            white-space: pre-wrap;
            max-height: 200px;
            overflow-y: auto;
            margin-top: 8px;
            margin-bottom: 12px;
        }
        .weekly-full-post::-webkit-scrollbar {
            width: 5px;
        }
        .weekly-full-post::-webkit-scrollbar-thumb {
            background: #3f3f46;
            border-radius: 3px;
        }
        .weekly-note-label {
            font-size: 13px;
            color: #71717a;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .weekly-note-input {
            width: 100%;
            min-height: 70px;
            background: #111113;
            border: 1px solid #27272a;
            border-radius: 10px;
            color: #e5e5e5;
            font-size: 14px;
            font-family: inherit;
            padding: 14px 16px;
            resize: vertical;
            transition: border-color 0.2s;
            line-height: 1.5;
        }
        .weekly-note-input:focus {
            outline: none;
            border-color: #3b82f6;
            background: #0d0d12;
        }
        .weekly-note-input::placeholder {
            color: #3f3f46;
        }
        .weekly-open-btn {
            padding: 8px 20px;
            border-radius: 8px;
            border: 1px solid #3b82f6;
            background: #1e3a5f;
            color: #60a5fa;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.15s;
            white-space: nowrap;
        }
        .weekly-open-btn:hover {
            background: #2563eb;
            color: #fff;
        }
        .weekly-details-toggle {
            font-size: 13px;
            color: #52525b;
            cursor: pointer;
            margin-bottom: 4px;
        }
        .weekly-details-toggle:hover {
            color: #71717a;
        }
        .eng-comment-card {
            background: #111113;
            border: 1px solid #27272a;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 8px;
            display: flex;
            gap: 16px;
            align-items: flex-start;
            transition: border-color 0.15s;
        }
        .eng-comment-card:hover {
            border-color: #3b82f6;
        }
        .eng-comment-card.done {
            opacity: 0.5;
            border-color: #22c55e33;
        }
        .eng-comment-info {
            flex: 1;
        }
        .eng-comment-name {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
        }
        .eng-comment-headline {
            font-size: 12px;
            color: #52525b;
            margin-bottom: 8px;
        }
        .eng-comment-snippet {
            font-size: 13px;
            color: #a1a1aa;
            line-height: 1.5;
            font-style: italic;
        }
        .eng-comment-actions {
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex-shrink: 0;
        }
        .eng-comment-open {
            padding: 8px 16px;
            border-radius: 6px;
            border: 1px solid #3b82f6;
            background: #1e3a5f;
            color: #60a5fa;
            font-size: 13px;
            cursor: pointer;
            text-decoration: none;
            text-align: center;
            transition: all 0.15s;
        }
        .eng-comment-open:hover {
            background: #2563eb;
            color: #fff;
        }
        .eng-comment-done-btn {
            padding: 6px 16px;
            border-radius: 6px;
            border: 1px solid #3f3f46;
            background: transparent;
            color: #71717a;
            font-size: 12px;
            cursor: pointer;
        }
        .eng-comment-done-btn:hover {
            background: #052e16;
            border-color: #22c55e;
            color: #22c55e;
        }
        .eng-comment-score {
            font-size: 11px;
            color: #22c55e;
            background: #052e16;
            padding: 2px 6px;
            border-radius: 3px;
            display: inline-block;
            margin-left: 8px;
        }
        .eng-bar-segment:hover {
            opacity: 0.8 !important;
            filter: brightness(1.3);
        }
        .eng-tooltip {
            position: fixed;
            background: #27272a;
            color: #fff;
            font-size: 13px;
            font-weight: 500;
            padding: 10px 14px;
            border-radius: 8px;
            pointer-events: none;
            z-index: 999;
            white-space: pre-line;
            box-shadow: 0 4px 16px rgba(0,0,0,0.5);
            transition: opacity 0.1s;
            line-height: 1.6;
            border: 1px solid #3f3f46;
        }
        .eng-step {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 16px;
            transition: border-color 0.2s;
        }
        .eng-step.completed {
            border-color: #22c55e33;
            opacity: 0.7;
        }
        .eng-step-header {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 16px;
        }
        .eng-step-number {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #27272a;
            border: 1px solid #3f3f46;
            color: #a1a1aa;
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .eng-step.completed .eng-step-number {
            background: #052e16;
            border-color: #22c55e;
            color: #22c55e;
        }
        .eng-step-title {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
        }
        .eng-step-desc {
            font-size: 13px;
            color: #71717a;
            margin-top: 2px;
        }
        .eng-step-time {
            margin-left: auto;
            font-size: 13px;
            color: #52525b;
            white-space: nowrap;
            padding-top: 4px;
        }
        .eng-step-cards {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        .eng-step-post {
            padding: 12px 16px;
            background: #111113;
            border: 1px solid #27272a;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .eng-mini-card {
            background: #111113;
            border: 1px solid #27272a;
            border-radius: 8px;
            padding: 16px;
        }
        .eng-mini-label {
            font-size: 12px;
            color: #71717a;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }
        .eng-mini-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .eng-mini-count {
            font-size: 24px;
            font-weight: 600;
            color: #fff;
        }
        .eng-mini-target {
            font-size: 13px;
            color: #52525b;
        }
        .eng-week-selector {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
        }
        .eng-week-btn {
            padding: 8px 16px;
            border-radius: 8px;
            border: 1px solid #2e2e32;
            background: #1c1c1f;
            color: #a1a1aa;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .eng-week-btn:hover {
            border-color: #3f3f46;
            color: #fff;
        }
        .eng-week-btn.active {
            background: #3b82f6;
            border-color: #3b82f6;
            color: #fff;
        }
        .eng-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 24px;
        }
        .eng-card {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 12px;
            padding: 24px;
        }
        .eng-card-label {
            font-size: 13px;
            color: #71717a;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
        }
        .eng-card-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        .eng-card-target {
            font-size: 32px;
            font-weight: 600;
            color: #fff;
        }
        .eng-card-done {
            font-size: 32px;
            font-weight: 600;
            color: #22c55e;
        }
        .eng-progress-bar {
            width: 100%;
            height: 8px;
            background: #27272a;
            border-radius: 4px;
            margin-top: 12px;
            overflow: hidden;
        }
        .eng-progress-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 0.3s;
        }
        .eng-progress-fill.green { background: #22c55e; }
        .eng-progress-fill.blue { background: #3b82f6; }
        .eng-progress-fill.purple { background: #8b5cf6; }
        .eng-progress-fill.yellow { background: #eab308; }
        .eng-controls {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }
        .eng-btn-minus, .eng-btn-plus {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            border: 1px solid #3f3f46;
            background: #27272a;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }
        .eng-btn-minus:hover, .eng-btn-plus:hover {
            background: #3f3f46;
        }
        .eng-btn-plus {
            background: #1e3a5f;
            border-color: #2563eb;
            color: #60a5fa;
        }
        .eng-btn-plus:hover {
            background: #2563eb;
            color: #fff;
        }
        .eng-tip {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 12px;
            padding: 20px;
            margin-top: 16px;
        }
        .eng-tip-title {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 8px;
        }
        .eng-tip-text {
            font-size: 14px;
            color: #a1a1aa;
            line-height: 1.6;
        }
        .eng-streak {
            font-size: 14px;
            color: #71717a;
            margin-bottom: 20px;
        }
        .eng-streak strong {
            color: #eab308;
        }

        /* Poll Cards */
        .poll-card {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 12px;
        }
        .poll-card:hover {
            border-color: #3f3f46;
        }
        .poll-question {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 12px;
        }
        .poll-options {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-bottom: 12px;
        }
        .poll-option {
            background: #27272a;
            border: 1px solid #3f3f46;
            border-radius: 6px;
            padding: 10px 14px;
            font-size: 14px;
            color: #d4d4d8;
        }
        .poll-copy-btn {
            padding: 6px 14px;
            border-radius: 6px;
            border: 1px solid #3f3f46;
            background: transparent;
            color: #a1a1aa;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .poll-copy-btn:hover {
            background: #27272a;
            color: #fff;
        }
        .poll-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .poll-context {
            font-size: 12px;
            color: #52525b;
            font-style: italic;
        }

        /* Profile Section */
        .profile-section {
            position: relative;
        }
        .profile-btn {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.15s;
        }
        .profile-btn:hover {
            background: #27272a;
        }
        .profile-avatar {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 600;
            color: #fff;
        }
        .profile-info {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .profile-name {
            font-size: 14px;
            font-weight: 500;
            color: #fff;
        }
        .profile-status {
            font-size: 12px;
            color: #71717a;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .profile-status .status-dot {
            width: 6px;
            height: 6px;
        }
        .profile-chevron {
            width: 16px;
            height: 16px;
            color: #71717a;
            transition: transform 0.2s;
        }
        .profile-section.open .profile-chevron {
            transform: rotate(180deg);
        }
        .profile-menu {
            display: none;
            padding: 8px 0;
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 8px;
            position: absolute;
            bottom: 100%;
            left: 0;
            right: 0;
            margin-bottom: 8px;
        }
        .profile-section.open .profile-menu {
            display: block;
        }
        .profile-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            color: #a3a3a3;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.15s;
        }
        .profile-menu-item:hover {
            background: #27272a;
            color: #fff;
        }
        .profile-menu-item .nav-icon {
            width: 16px;
            height: 16px;
            opacity: 0.7;
        }

        /* Workspace switcher items */
        .profile-menu-section-label {
            font-size: 10px;
            font-weight: 600;
            color: #71717a;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            padding: 6px 14px 4px;
        }
        .profile-menu-divider {
            height: 1px;
            background: #2e2e32;
            margin: 8px 10px;
        }
        .workspace-item {
            padding: 10px 14px !important;
            gap: 12px !important;
        }
        .workspace-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            color: #fff;
            flex-shrink: 0;
        }
        .workspace-avatar.personal-avatar {
            background: linear-gradient(135deg, #16a34a, #06b6d4);
        }
        .workspace-avatar.admin-avatar {
            background: #9333ea;
        }
        .workspace-avatar.admin-avatar svg {
            width: 16px;
            height: 16px;
            color: #fff;
        }
        .profile-avatar.admin-avatar {
            background: #9333ea;
        }
        .profile-avatar.admin-avatar svg {
            width: 18px;
            height: 18px;
            color: #fff;
        }
        .workspace-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
        }
        .workspace-name {
            font-size: 13px;
            font-weight: 500;
            color: #fff;
        }
        .workspace-sub {
            font-size: 11px;
            color: #71717a;
            margin-top: 1px;
        }
        .workspace-check {
            width: 16px;
            height: 16px;
            color: #16a34a;
            flex-shrink: 0;
        }

        /* Admin overview section */
        .admin-user-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-top: 8px;
        }
        .admin-user-card {
            background: #18181b;
            border: 1px solid #27272a;
            border-radius: 10px;
            padding: 18px;
            cursor: pointer;
            transition: border-color 0.15s, background 0.15s;
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .admin-user-card:hover {
            border-color: #3f3f46;
            background: #1c1c1f;
        }
        .admin-user-card-disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .admin-user-card-disabled:hover {
            border-color: #27272a;
            background: #18181b;
        }
        .admin-uc-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 15px;
            color: #fff;
            flex-shrink: 0;
        }
        .admin-uc-name {
            color: #fff;
            font-size: 15px;
            font-weight: 600;
        }
        .admin-uc-tag {
            color: #a855f7;
            font-size: 10px;
            font-weight: 500;
            margin-left: 4px;
            letter-spacing: 0.3px;
        }
        .admin-uc-handle {
            color: #71717a;
            font-size: 12px;
            margin-top: 2px;
        }

        /* Main Content */
        .main {
            padding: 32px 40px;
            overflow-y: auto;
        }
        .header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 32px;
        }
        .header h1 {
            font-size: 28px;
            font-weight: 600;
            color: #fff;
            letter-spacing: -0.5px;
        }
        .header-subtitle {
            color: #71717a;
            font-size: 15px;
            margin-top: 4px;
        }
        .phase-tag {
            background: #18181b;
            border: 1px solid #27272a;
            color: #a1a1aa;
            padding: 8px 14px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
        }


        /* Today's Schedule Widget */
        .today-schedule {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 8px;
            padding: 24px;
            margin-bottom: 32px;
        }
        .today-schedule-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .today-schedule-title-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .today-schedule-day {
            font-size: 13px;
            color: #71717a;
            font-weight: 400;
        }
        .today-schedule-tz {
            display: flex;
            gap: 4px;
        }
        .today-tz-btn {
            background: #18181b;
            border: 1px solid #27272a;
            color: #71717a;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s;
        }
        .today-tz-btn.active {
            background: #27272a;
            color: #e4e4e7;
            border-color: #3f3f46;
        }
        .today-tz-btn:hover {
            color: #e4e4e7;
        }
        .today-schedule-body {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .today-schedule-loading {
            color: #71717a;
            font-size: 14px;
            padding: 12px 0;
        }
        .today-schedule-empty {
            color: #52525b;
            font-size: 14px;
            padding: 16px 0;
            text-align: center;
        }

        /* Mix + Comments side-by-side row */
        .mix-comments-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            margin-bottom: 32px;
            align-items: start;
        }
        .mix-comments-row .mix-card,
        .mix-comments-row > .card {
            margin-bottom: 0;
        }
        @media (max-width: 1100px) {
            .mix-comments-row {
                grid-template-columns: 1fr;
            }
        }

        /* Content Mix card (this week) */
        .mix-card {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 8px;
            padding: 24px;
            margin-bottom: 32px;
        }
        .mix-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
        }
        .mix-card-sub {
            font-size: 12px;
            color: #71717a;
            margin-top: 4px;
        }
        .mix-row {
            display: grid;
            grid-template-columns: 1fr 90px;
            grid-template-rows: auto;
            align-items: center;
            gap: 8px 16px;
            padding: 10px 6px;
            margin: 0 -6px;
            border-bottom: 1px solid #27272a;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.15s;
        }
        .mix-row:last-child { border-bottom: none; }
        .mix-row:hover { background: rgba(255,255,255,0.02); }
        .mix-row.open { background: rgba(255,255,255,0.025); }
        .mix-row-main { min-width: 0; }
        .mix-row-name {
            font-size: 13px;
            color: #e5e5e5;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .mix-caret {
            display: inline-block;
            font-size: 9px;
            color: #52525b;
            transition: transform 0.2s, color 0.2s;
            width: 10px;
        }
        .mix-row.open .mix-caret {
            transform: rotate(90deg);
            color: #fff;
        }
        .mix-row-bar-wrap {
            height: 5px;
            background: #27272a;
            border-radius: 3px;
            margin-top: 6px;
            overflow: hidden;
        }
        .mix-row-bar {
            height: 100%;
            border-radius: 3px;
            transition: width 0.3s ease;
        }
        .mix-row-bar.good { background: #22c55e; }
        .mix-row-bar.warn { background: #f59e0b; }
        .mix-row-bar.bad  { background: #ef4444; }
        .mix-row-bar.over { background: #dc2626; }
        .mix-row-count {
            font-size: 13px;
            color: #71717a;
            text-align: right;
            font-variant-numeric: tabular-nums;
        }
        .mix-row-count strong { color: #fff; }
        .mix-row-count.over { color: #ef4444; font-weight: 600; }
        .mix-tag {
            font-size: 9px;
            background: #ef4444;
            color: #fff;
            padding: 1px 6px;
            border-radius: 8px;
            font-weight: 700;
            letter-spacing: 0.5px;
        }
        .mix-row-expand {
            grid-column: 1 / -1;
            display: none;
            margin-top: 6px;
            padding: 10px 12px;
            background: rgba(255,255,255,0.02);
            border-left: 2px solid #3f3f46;
            border-radius: 0 6px 6px 0;
        }
        .mix-row.open .mix-row-expand { display: block; }
        .mix-post-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .mix-post {
            display: grid;
            grid-template-columns: 80px 14px 1fr auto;
            align-items: center;
            gap: 10px;
            padding: 4px 0;
            font-size: 12px;
        }
        .mix-post.over { opacity: 0.85; }
        .mix-post-when {
            color: #71717a;
            font-size: 11px;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.3px;
        }
        .mix-post-title {
            color: #e5e5e5;
            line-height: 1.4;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .mix-post-over-tag {
            font-size: 9px;
            background: rgba(220, 38, 38, 0.2);
            color: #fca5a5;
            padding: 1px 5px;
            border-radius: 6px;
            font-weight: 600;
            margin-left: 8px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            vertical-align: middle;
        }
        .mix-post-link {
            color: #71717a;
            text-decoration: none;
            font-size: 13px;
            padding: 2px 6px;
            border-radius: 4px;
        }
        .mix-post-link:hover {
            color: #fff;
            background: rgba(255,255,255,0.05);
        }
        .mix-status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            display: inline-block;
        }
        .mix-status-dot.published { background: #22c55e; }
        .mix-status-dot.scheduled { background: #3b82f6; }
        .mix-status-dot.failed { background: #ef4444; }
        .mix-empty-msg {
            color: #52525b;
            font-size: 12px;
            font-style: italic;
        }
        .mix-loading {
            color: #71717a;
            font-size: 13px;
            padding: 16px 0;
            text-align: center;
        }

        /* Impressions Chart Widget */
        .impressions-chart-card {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 8px;
            padding: 24px;
            margin-bottom: 32px;
        }
        .impressions-chart-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
        }
        .impressions-since {
            font-size: 12px;
            color: #52525b;
            margin-left: 10px;
        }
        .impressions-stats {
            display: flex;
            gap: 24px;
        }
        .impressions-stat {
            text-align: right;
        }
        .impressions-stat-value {
            font-size: 20px;
            font-weight: 700;
            color: #e4e4e7;
            letter-spacing: -0.5px;
        }
        .impressions-stat-label {
            font-size: 11px;
            color: #52525b;
            margin-top: 2px;
        }
        .impressions-progress-wrap {
            margin-bottom: 20px;
        }
        .impressions-progress-bar {
            height: 8px;
            background: #27272a;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }
        .impressions-progress-fill {
            height: 100%;
            background: #3b82f6;
            border-radius: 4px;
            transition: width 1s ease, background 1s ease;
            width: 0%;
        }
        .impressions-progress-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 6px;
            font-size: 10px;
            color: #3f3f46;
        }
        .impressions-scale-toggle {
            display: flex;
            gap: 4px;
            align-items: center;
        }
        .imp-scale-btn {
            background: #18181b;
            border: 1px solid #27272a;
            color: #71717a;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s;
        }
        .imp-scale-btn.active {
            background: #27272a;
            color: #e4e4e7;
            border-color: #3f3f46;
        }
        .imp-scale-btn:hover {
            color: #e4e4e7;
        }
        .impressions-chart-area {
            height: 300px;
            position: relative;
        }
        .impressions-chart-area svg {
            width: 100%;
            height: 100%;
        }

        /* Cards Grid */
        .cards {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 32px;
        }
        .card {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 8px;
            padding: 24px;
        }
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .card-title {
            font-size: 16px;
            font-weight: 500;
            color: #fff;
        }
        .card-action {
            font-size: 13px;
            color: #71717a;
            cursor: pointer;
        }
        .card-action:hover {
            color: #fff;
        }

        /* Checklist */
        .checklist {
            list-style: none;
        }
        .checklist li {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid #2e2e32;
            font-size: 15px;
            color: #d4d4d8;
        }
        .checklist li:last-child {
            border-bottom: none;
        }
        .check {
            width: 18px;
            height: 18px;
            border: 1px solid #52525b;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .check.done {
            background: #22c55e;
            border-color: #22c55e;
        }
        .check.done::after {
            content: "✓";
            color: #000;
            font-size: 12px;
            font-weight: bold;
        }
        .checklist li.done {
            color: #71717a;
            text-decoration: line-through;
        }

        /* Comments Donut Widget */
        .donut-layout {
            display: flex;
            align-items: center;
            gap: 24px;
        }
        .donut-container {
            position: relative;
            width: 100px;
            height: 100px;
            flex-shrink: 0;
        }
        .donut-container svg {
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
        }
        .donut-center {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
        }
        .donut-center-num {
            font-size: 28px;
            font-weight: 700;
            color: #f4f4f5;
            line-height: 1;
        }
        .donut-center-label {
            font-size: 10px;
            color: #71717a;
            text-transform: uppercase;
        }
        .donut-legend {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }
        .donut-legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
        }
        .donut-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .donut-label {
            color: #a1a1aa;
            flex: 1;
        }
        .donut-count {
            color: #f4f4f5;
            font-weight: 600;
        }
        .donut-status {
            font-size: 12px;
            color: #71717a;
        }

        .donut-status-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px solid #2e2e32;
        }
        #donut-refresh {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        #donut-refresh.loading svg {
            animation: donut-spin 1s linear infinite;
        }
        @keyframes donut-spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        @keyframes donut-pulse {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.7; }
        }
        .donut-container.loading circle {
            animation: donut-pulse 1.5s ease-in-out infinite;
        }

        /* Ideas List */
        .idea-item {
            padding: 14px 0;
            border-bottom: 1px solid #2e2e32;
        }
        .idea-item:last-child {
            border-bottom: none;
        }
        .idea-title {
            font-size: 15px;
            color: #f4f4f5;
            margin-bottom: 6px;
        }
        .idea-meta {
            font-size: 13px;
            color: #71717a;
        }
        .idea-status {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            background: #27272a;
            color: #a1a1aa;
        }
        .idea-status.new {
            background: #172554;
            color: #60a5fa;
        }

        /* Next Action Banner */
        .next-action {
            background: linear-gradient(135deg, #1c1c1f 0%, #27272a 100%);
            border: 1px solid #3f3f46;
            border-radius: 8px;
            padding: 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .next-action-content h3 {
            font-size: 13px;
            font-weight: 500;
            color: #22c55e;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }
        .next-action-content p {
            font-size: 18px;
            color: #fff;
            font-weight: 500;
        }
        .next-action-btn {
            background: #fff;
            color: #000;
            border: none;
            padding: 12px 24px;
            border-radius: 6px;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: opacity 0.15s;
        }
        .next-action-btn:hover {
            opacity: 0.9;
        }

        /* Quick Links */
        .quick-links {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        .quick-link {
            background: #27272a;
            border: 1px solid #3f3f46;
            color: #d4d4d8;
            padding: 10px 16px;
            border-radius: 6px;
            font-size: 14px;
            text-decoration: none;
            transition: all 0.15s;
        }
        .quick-link:hover {
            background: #3f3f46;
            color: #fff;
        }

        /* Loading/Error states */
        .loading {
            color: #71717a;
            font-size: 15px;
        }
        .empty {
            color: #71717a;
            font-size: 15px;
            padding: 20px 0;
            text-align: center;
        }

        /* Footer */
        .footer {
            margin-top: 32px;
            padding-top: 16px;
            border-top: 1px solid #2e2e32;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Cohorts Tab Styles */
        .add-cohort-btn {
            background: #27272a;
            border: 1px solid #3f3f46;
            color: #d4d4d8;
            padding: 10px 18px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s;
        }
        .add-cohort-btn:hover {
            background: #3f3f46;
            color: #fff;
        }
        .cohort-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 24px;
        }
        .cohort-card {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 10px;
            padding: 24px;
        }
        .cohort-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .cohort-status {
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
        }
        .cohort-status.active {
            background: rgba(34, 197, 94, 0.15);
            color: #22c55e;
        }
        .cohort-status.paused {
            background: rgba(234, 179, 8, 0.15);
            color: #eab308;
        }
        .cohort-status.archived {
            background: #27272a;
            color: #71717a;
        }
        .cohort-date {
            font-size: 12px;
            color: #71717a;
        }
        .cohort-name {
            font-size: 22px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 10px;
        }
        .cohort-description {
            font-size: 16px;
            color: #a1a1aa;
            margin-bottom: 20px;
            line-height: 1.5;
        }
        .cohort-section {
            margin-bottom: 16px;
        }
        .cohort-section-title {
            font-size: 13px;
            font-weight: 500;
            color: #71717a;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 10px;
        }
        .cohort-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .cohort-list li {
            font-size: 15px;
            color: #d4d4d8;
            padding: 8px 0;
            padding-left: 18px;
            position: relative;
            line-height: 1.4;
        }
        .cohort-list li::before {
            content: "•";
            position: absolute;
            left: 0;
            color: #52525b;
        }
        .cohort-service {
            display: inline-block;
            background: #27272a;
            border: 1px solid #3f3f46;
            color: #d4d4d8;
            padding: 8px 14px;
            border-radius: 4px;
            font-size: 15px;
            margin-right: 8px;
            margin-bottom: 8px;
        }
        .cohort-stats {
            display: flex;
            gap: 24px;
            padding: 16px 0;
            border-top: 1px solid #2e2e32;
            border-bottom: 1px solid #2e2e32;
            margin: 16px 0;
        }
        .cohort-stat {
            display: flex;
            flex-direction: column;
        }
        .cohort-stat-value {
            font-size: 24px;
            font-weight: 600;
            color: #fff;
        }
        .cohort-stat-label {
            font-size: 13px;
            color: #71717a;
        }
        .cohort-analysis {
            margin-top: 16px;
        }
        .cohort-analysis-text {
            font-size: 15px;
            color: #a1a1aa;
            line-height: 1.6;
            font-style: italic;
        }
        .framework-tips {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .framework-tip {
            font-size: 15px;
            color: #d4d4d8;
            padding: 14px 16px;
            background: #27272a;
            border-radius: 6px;
            line-height: 1.5;
        }
        .framework-tip strong {
            color: #22c55e;
        }
        .footer-text {
            font-size: 13px;
            color: #71717a;
        }
        .refresh-btn {
            background: transparent;
            border: 1px solid #3f3f46;
            color: #a1a1aa;
            padding: 8px 14px;
            border-radius: 4px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .refresh-btn:hover {
            border-color: #52525b;
            color: #d4d4d8;
        }

        /* Pipeline */
        .pipeline {
            display: flex;
            align-items: center;
            gap: 0;
            margin-bottom: 32px;
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 8px;
            padding: 24px;
        }
        .pipeline-stage {
            flex: 1;
            text-align: center;
            padding: 16px 12px;
            border-radius: 6px;
            position: relative;
            transition: all 0.2s;
        }
        .pipeline-stage.bottleneck {
            background: rgba(234, 179, 8, 0.1);
            border: 1px solid #eab308;
        }
        .pipeline-stage.ok {
            opacity: 0.7;
        }
        .pipeline-stage.future {
            opacity: 0.4;
        }
        .pipeline-count {
            font-size: 32px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 6px;
        }
        .pipeline-stage.bottleneck .pipeline-count {
            color: #eab308;
        }
        .pipeline-stage.future .pipeline-count {
            color: #52525b;
        }
        .pipeline-label {
            font-size: 15px;
            color: #a1a1aa;
            margin-bottom: 8px;
        }
        .pipeline-status {
            font-size: 12px;
            padding: 3px 10px;
            border-radius: 4px;
            display: inline-block;
        }
        .pipeline-status.ok {
            background: rgba(34, 197, 94, 0.15);
            color: #22c55e;
        }
        .pipeline-status.focus {
            background: rgba(234, 179, 8, 0.15);
            color: #eab308;
        }
        .pipeline-status.soon {
            background: #27272a;
            color: #52525b;
        }
        .pipeline-arrow {
            color: #3f3f46;
            font-size: 20px;
            padding: 0 8px;
            flex-shrink: 0;
        }

        /* Metrics */
        .metrics {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-bottom: 24px;
        }
        .metric-card {
            background: #1c1c1f;
            border: 1px solid #2e2e32;
            border-radius: 12px;
            padding: 20px;
        }
        .metric-label {
            font-size: 13px;
            color: #71717a;
            margin-bottom: 8px;
        }
        .metric-value {
            font-size: 32px;
            font-weight: 700;
            color: #fff;
            letter-spacing: -1px;
        }
        .metric-change {
            font-size: 13px;
            margin-top: 4px;
        }
        .metric-change.neutral {
            color: #52525b;
        }
        .metric-change.positive {
            color: #22c55e;
        }

        /* Mobile Header with Hamburger */
        .mobile-header {
            display: none;
            background: #18181b;
            border-bottom: 1px solid #27272a;
            padding: 16px 20px;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .mobile-logo {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
        }
        .mobile-logo span {
            color: #71717a;
            font-weight: 400;
        }
        .hamburger {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .hamburger span {
            display: block;
            width: 22px;
            height: 2px;
            background: #d4d4d8;
            border-radius: 2px;
            transition: all 0.3s;
        }
        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }
        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }
        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        /* Mobile Menu Overlay */
        .mobile-menu {
            display: none;
            position: fixed;
            top: 57px;
            left: 0;
            right: 0;
            bottom: 0;
            background: #18181b;
            z-index: 99;
            padding: 20px;
            overflow-y: auto;
        }
        .mobile-menu.active {
            display: block;
        }
        .mobile-menu .nav-section {
            margin-bottom: 24px;
        }
        .mobile-menu .nav-item {
            padding: 14px 16px;
            font-size: 16px;
        }
        .mobile-menu .nav-label {
            padding: 10px 16px;
        }
        .mobile-status {
            margin-top: 24px;
            padding: 16px;
            background: #27272a;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #a3a3a3;
        }

        /* Mobile Responsive */
        @media (max-width: 1024px) {
            .mobile-header {
                display: flex;
            }
            .layout {
                grid-template-columns: 1fr;
            }
            .sidebar {
                display: none;
            }
            .main {
                padding: 20px;
            }
            .cards {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 640px) {
            .main {
                padding: 16px;
            }
            .header {
                flex-direction: column;
                gap: 12px;
                align-items: flex-start;
            }
            .header h1 {
                font-size: 22px;
            }
            .phase-tag {
                font-size: 12px;
                padding: 6px 10px;
            }

            /* Simple Vertical Pipeline for Mobile */
            .pipeline {
                flex-direction: column;
                align-items: center;
                gap: 0;
                padding: 0;
                background: transparent;
                border: none;
            }
            .pipeline-stage {
                width: 100%;
                background: #1c1c1f;
                border: 1px solid #2e2e32;
                border-radius: 8px;
                padding: 16px 20px;
                display: flex;
                align-items: center;
                text-align: left;
            }
            .pipeline-stage.bottleneck {
                border-color: rgba(234, 179, 8, 0.5);
                background: rgba(234, 179, 8, 0.05);
            }
            .pipeline-stage.future {
                opacity: 0.5;
            }
            .pipeline-count {
                font-size: 28px;
                font-weight: 600;
                min-width: 50px;
                margin-bottom: 0;
            }
            .pipeline-label {
                font-size: 15px;
                color: #d4d4d8;
                margin-bottom: 0;
                flex: 1;
            }
            .pipeline-status {
                font-size: 11px;
                padding: 4px 10px;
            }
            .pipeline-arrow {
                display: block;
                color: #52525b;
                font-size: 16px;
                padding: 6px 0;
                text-align: center;
                width: 100%;
                transform: rotate(90deg);
            }

            .card {
                padding: 16px;
            }
            .card-title {
                font-size: 14px;
            }
            .checklist li {
                font-size: 14px;
                padding: 10px 0;
            }
            .idea-title {
                font-size: 14px;
            }
            .quick-links {
                gap: 8px;
            }
            .quick-link {
                padding: 12px 16px;
                font-size: 14px;
                flex: 1;
                min-width: calc(50% - 4px);
                text-align: center;
            }
            .next-action {
                flex-direction: column;
                gap: 16px;
                text-align: center;
                padding: 20px;
            }
            .next-action-content p {
                font-size: 16px;
            }
            .next-action-btn {
                width: 100%;
            }
            .footer {
                flex-direction: column;
                gap: 12px;
                text-align: center;
            }
            /* Cohorts mobile */
            .cohort-grid {
                grid-template-columns: 1fr;
            }
            .cohort-card {
                padding: 20px;
            }
            .cohort-name {
                font-size: 16px;
            }
            .cohort-stats {
                gap: 16px;
            }
            .add-cohort-btn {
                padding: 8px 14px;
                font-size: 13px;
            }
        }

/* ============================
   Content Calendar (Timeline)
   ============================ */

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cal-tz-toggle {
    display: flex;
    background: #1e1e22;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.cal-tz-btn {
    padding: 6px 14px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    color: #888;
    background: transparent;
    font-weight: 500;
    transition: all 0.2s;
}

.cal-tz-btn.active {
    background: #3b82f6;
    color: #fff;
}

.cal-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #1a1a1e;
    border-radius: 10px;
    border: 1px solid #2e2e32;
}

.cal-week-label {
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
}

.cal-week-nav {
    display: flex;
    gap: 8px;
}

.cal-week-nav button {
    background: #2a2a2e;
    border: 1px solid #3a3a3e;
    color: #888;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
}

.cal-week-nav button:hover {
    background: #3a3a3e;
    color: #ccc;
}

.cal-week-today-btn {
    background: #3b82f6 !important;
    color: #fff !important;
    border-color: #3b82f6 !important;
}

/* Stats */
.cal-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.cal-stat {
    background: #1a1a1e;
    border: 1px solid #2e2e32;
    border-radius: 10px;
    padding: 12px 16px;
    flex: 1;
}

.cal-stat-num {
    font-size: 22px;
    font-weight: 600;
}

.cal-stat-label {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cal-stat-scheduled .cal-stat-num { color: #60a5fa; }
.cal-stat-published .cal-stat-num { color: #4ade80; }
.cal-stat-total .cal-stat-num { color: #e5e5e5; }
.cal-stat-media .cal-stat-num { color: #c084fc; }

/* Timeline */
.cal-timeline {
    margin-top: 8px;
}

.cal-day-group {
    margin-bottom: 24px;
}

.cal-day-header {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cal-day-today { color: #f59e0b; }
.cal-day-future { color: #93c5fd; }
.cal-day-past { color: #666; }

.cal-today-badge {
    background: #f59e0b;
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.cal-post-count {
    font-size: 11px;
    font-weight: 400;
    color: #555;
}

.cal-day-empty {
    padding: 8px 0 8px 52px;
    color: #444;
    font-style: italic;
    font-size: 13px;
    border-left: 2px solid #2a2a2e;
    margin-left: 16px;
}

/* Post items */
.cal-post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    margin-left: 16px;
    border-left: 3px solid #3b82f6;
    margin-bottom: 6px;
    border-radius: 0 10px 10px 0;
    background: #1a1a1e;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    position: relative;
    width: 55%;
}

.cal-post-item:hover {
    background: #22222a;
    transform: translateX(2px);
}

.cal-post-scheduled { border-left-color: #3b82f6; }
.cal-post-published { border-left-color: #22c55e; }
.cal-post-failed { border-left-color: #ef4444; }
.cal-post-draft { border-left-color: #f59e0b; border-left-style: dashed; }

.cal-post-time {
    font-size: 12px;
    color: #666;
    width: 40px;
    flex-shrink: 0;
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
}

.cal-post-body {
    flex: 1;
    min-width: 0;
}

.cal-post-title {
    font-size: 14px;
    font-weight: 500;
    color: #e5e5e5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

/* Badges */
.cal-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.cal-badge-platform { background: #2a2a2e; color: #888; text-transform: capitalize; }
.cal-badge-video { background: rgba(124, 58, 237, 0.12); color: #a78bfa; border: 1px solid rgba(124, 58, 237, 0.25); }
.cal-badge-photo { background: rgba(236, 72, 153, 0.12); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.25); }
.cal-badge-text { background: rgba(59, 130, 246, 0.12); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.25); }
.cal-badge-news { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.cal-badge-pdf { background: rgba(20, 184, 166, 0.12); color: #5eead4; border: 1px solid rgba(20, 184, 166, 0.25); }
.cal-badge-short { background: rgba(244, 52, 84, 0.12); color: #fca5a5; border: 1px solid rgba(244, 52, 84, 0.25); }

.cal-badge-scheduled { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.cal-badge-published { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.cal-badge-failed { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }
.cal-badge-draft { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }

.cal-media-indicator {
    font-size: 11px;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Hover popup — positioned via JS for smart placement */
.cal-hover-popup {
    display: none;
    position: fixed;
    width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #1c1c24, #16161e);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.cal-hover-popup.visible {
    display: block;
}

/* Popup inner layout */
.cal-popup-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cal-popup-status {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 6px;
}

.cal-popup-status.scheduled { color: #60a5fa; background: rgba(59, 130, 246, 0.15); }
.cal-popup-status.published { color: #4ade80; background: rgba(34, 197, 94, 0.15); }
.cal-popup-status.failed { color: #fca5a5; background: rgba(239, 68, 68, 0.15); }
.cal-popup-status.draft { color: #fbbf24; background: rgba(245, 158, 11, 0.15); }

.cal-popup-time {
    font-size: 11px;
    color: #666;
}

/* Media preview in popup */
.cal-popup-media {
    position: relative;
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    background: #111;
}

.cal-popup-media img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.cal-popup-media video {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.cal-popup-media-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cal-popup-media-doc {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #888;
    font-size: 13px;
    background: #161620;
    max-height: none;
}

.cal-popup-media-doc span {
    font-size: 28px;
}

.cal-popup-body {
    padding: 14px 20px;
}

.cal-popup-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.4;
}

.cal-popup-caption {
    font-size: 12px;
    color: #999;
    line-height: 1.7;
    white-space: pre-wrap;
    padding-right: 4px;
}

.cal-hover-popup::-webkit-scrollbar { width: 3px; }
.cal-hover-popup::-webkit-scrollbar-track { background: transparent; }
.cal-hover-popup::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.cal-popup-footer {
    padding: 10px 20px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cal-popup-tag {
    font-size: 10px;
    color: #666;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Responsive: popup below instead of right on narrow screens */
@media (max-width: 1200px) {
    .cal-post-item {
        width: 100%;
    }
    .cal-hover-popup {
        left: 0;
        top: 100%;
        margin-top: 8px;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .cal-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .cal-week-header {
        flex-direction: column;
        gap: 8px;
    }
    .cal-stats {
        flex-wrap: wrap;
    }
    .cal-stat {
        flex: 1 1 calc(50% - 6px);
    }
}

/* ═══════════════════════════════════════════════
   Newsletter Section
   ═══════════════════════════════════════════════ */

/* Kanban top row: 2 columns */
.nl-kanban-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.nl-kanban-col {
    background: #141416;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 20px;
    min-height: 280px;
}
.nl-kanban-col-header {
    font-size: 13px;
    font-weight: 600;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #27272a;
}
.nl-kanban-count {
    background: #27272a;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: #a3a3a3;
}

/* Kanban cards */
.nl-kanban-card {
    background: #1c1c1f;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.nl-kanban-card:hover {
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.nl-kanban-card:last-child { margin-bottom: 0; }
.nl-kanban-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #e5e5e5;
    margin-bottom: 8px;
    line-height: 1.4;
}
.nl-kanban-card-meta {
    font-size: 12px;
    color: #71717a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nl-kanban-card-tags {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.nl-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #27272a;
    color: #a3a3a3;
}
.nl-kanban-card.draft {
    border-left: 3px solid #eab308;
}
.nl-kanban-card.in-progress {
    border-left: 3px solid #3b82f6;
}

/* Progress bar on draft cards */
.nl-progress-bar {
    height: 4px;
    background: #27272a;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}
.nl-progress-fill {
    height: 100%;
    border-radius: 2px;
}

/* Published row (full width) */
.nl-kanban-published {
    background: #141416;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 20px;
}
.nl-published-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.nl-published-card {
    background: #1c1c1f;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.nl-published-card:hover {
    border-color: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.nl-published-card-number {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #71717a;
    background: #27272a;
    padding: 2px 8px;
    border-radius: 4px;
}
.nl-published-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #e5e5e5;
    margin-bottom: 10px;
    line-height: 1.4;
    padding-right: 50px;
}
.nl-published-card-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #71717a;
}
.nl-published-stat-val { color: #fff; font-weight: 600; }
.nl-published-card-date {
    font-size: 12px;
    color: #71717a;
    margin-top: 8px;
}
.nl-empty {
    text-align: center;
    padding: 48px 20px;
    color: #52525b;
    font-size: 14px;
}

/* Badge styles */
.nl-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}
.nl-badge-green { background: rgba(34,197,94,0.15); color: #22c55e; }
.nl-badge-blue { background: rgba(59,130,246,0.15); color: #3b82f6; }
.nl-badge-yellow { background: rgba(234,179,8,0.15); color: #eab308; }
.nl-badge-purple { background: rgba(168,85,247,0.15); color: #a855f7; }

/* ─── Newsletter Modal ─── */
.nl-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 40px;
}
.nl-modal-overlay.active {
    display: flex;
}
.nl-modal {
    background: #1c1c1f;
    border: 1px solid #27272a;
    border-radius: 16px;
    width: 100%;
    max-width: 760px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
    animation: nlModalIn 0.2s ease-out;
}
@keyframes nlModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.nl-modal-header {
    padding: 24px 32px 20px;
    border-bottom: 1px solid #27272a;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}
.nl-modal-header-left {
    flex: 1;
    padding-right: 20px;
}
.nl-modal-edition-label {
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.nl-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 10px;
}
.nl-modal-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #71717a;
    align-items: center;
    flex-wrap: wrap;
}
.nl-modal-close {
    width: 36px;
    height: 36px;
    background: #27272a;
    border: none;
    border-radius: 8px;
    color: #a3a3a3;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.nl-modal-close:hover { background: #3f3f46; color: #fff; }
.nl-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

/* Article content styling (serif for reading) */
.nl-article-content {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.85;
    color: #d4d4d4;
}
.nl-article-content h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 32px 0 16px;
}
.nl-article-content h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #e5e5e5;
    margin: 24px 0 12px;
}
.nl-article-content p {
    margin-bottom: 18px;
}
.nl-article-content strong {
    color: #fff;
    font-weight: 700;
}
.nl-article-content blockquote {
    border-left: 3px solid #3b82f6;
    padding: 12px 20px;
    margin: 20px 0;
    background: rgba(59,130,246,0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #a3a3a3;
}
.nl-article-content ul, .nl-article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}
.nl-article-content li {
    margin-bottom: 8px;
}
.nl-article-content .nl-highlight-box {
    background: #27272a;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    font-size: 14px;
    color: #e5e5e5;
    line-height: 1.6;
}
.nl-modal-footer {
    padding: 16px 32px;
    border-top: 1px solid #27272a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.nl-modal-footer-info {
    font-size: 13px;
    color: #71717a;
}
.nl-modal-footer-actions {
    display: flex;
    gap: 8px;
}
.nl-modal-footer-actions .next-action-btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== Analytics Section ===== */
.ana-kpis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.ana-kpi {
    background: #1c1c1f;
    border: 1px solid #2e2e32;
    border-radius: 12px;
    padding: 20px;
}
.ana-kpi-label {
    font-size: 12px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.ana-kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}
.ana-kpi-sub {
    font-size: 12px;
    color: #52525b;
    margin-top: 4px;
}
.ana-kpi-sub.up { color: #22c55e; }
.ana-kpi-sub.down { color: #ef4444; }

.ana-chart-card {
    background: #1c1c1f;
    border: 1px solid #2e2e32;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}
.ana-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ana-chart {
    width: 100%;
    min-height: 180px;
}
.ana-chart-tall {
    min-height: 240px;
}

.ana-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.ana-two-col .ana-chart-card {
    margin-bottom: 0;
}

/* Heatmap */
.ana-heatmap-grid {
    display: grid;
    grid-template-columns: 48px repeat(14, 1fr);
    gap: 3px;
    align-items: center;
}
.ana-hm-label { width: 48px; }
.ana-hm-hour {
    font-size: 10px;
    color: #52525b;
    text-align: center;
    padding-bottom: 4px;
}
.ana-hm-day {
    font-size: 12px;
    color: #a1a1aa;
    text-align: right;
    padding-right: 8px;
}
.ana-hm-cell {
    aspect-ratio: 1;
    border-radius: 3px;
    min-height: 20px;
    cursor: default;
    transition: opacity 0.15s;
}
.ana-hm-cell:hover {
    opacity: 0.8;
    outline: 1px solid #fff;
    outline-offset: 1px;
}
.ana-hm-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    justify-content: flex-end;
}
.ana-hm-cell-sm {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

/* Info popup (eye/info button) */
.ana-info-wrap {
    position: relative;
    display: inline-flex;
}
.ana-info-btn {
    background: none;
    border: none;
    color: #52525b;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.ana-info-btn:hover {
    color: #a1a1aa;
}
.ana-info-popup {
    display: none;
    position: absolute;
    top: 28px;
    left: 0;
    z-index: 50;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 14px 16px;
    width: 300px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.ana-info-popup p {
    font-size: 13px;
    color: #d4d4d8;
    line-height: 1.5;
    margin-bottom: 8px;
}
.ana-info-popup p:last-child {
    margin-bottom: 0;
}
.ana-info-popup strong {
    color: #fff;
}
.ana-info-wrap:hover .ana-info-popup {
    display: block;
}

/* Chart tooltip */
.ana-tooltip {
    display: none;
    position: absolute;
    z-index: 60;
    background: #1c1c1f;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    min-width: 140px;
}

/* Range toggle (14d / 30d / 60d) */
.ana-range-toggle {
    display: flex;
    gap: 2px;
    background: #27272a;
    border-radius: 6px;
    padding: 2px;
}
.ana-range-btn {
    background: none;
    border: none;
    color: #71717a;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.ana-range-btn:hover {
    color: #a1a1aa;
}
.ana-range-btn.active {
    background: #3f3f46;
    color: #fff;
}

/* Post selector pills */
.ana-post-selector {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ana-post-btn {
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #a1a1aa;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ana-post-btn:hover {
    background: #3f3f46;
    color: #fff;
}
.ana-post-btn.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
}

/* PCS Comment Quality */
.ana-pcs-legend {
    margin-top: 16px;
}
.ana-pcs-row {
    display: flex;
    gap: 20px;
    align-items: center;
}
.ana-pcs-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #a1a1aa;
}
.ana-pcs-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

/* Posts table */
.ana-table {
    width: 100%;
    border-collapse: collapse;
}
.ana-table thead th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #27272a;
}
.ana-table tbody tr {
    border-bottom: 1px solid #1f1f23;
    transition: background 0.15s;
}
.ana-table tbody tr:hover {
    background: #27272a;
}
.ana-table tbody td {
    padding: 12px 14px;
    font-size: 13px;
    color: #d4d4d8;
}
.ana-td-title {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff !important;
    font-weight: 500;
}

/* Top Post of the Week (Option 2: Gold rank badge) */
.ana-tp-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.ana-tp-rank {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 18px;
    font-weight: 800;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ana-tp-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.15s;
}
.ana-tp-title:hover {
    color: #3b82f6;
    text-decoration: underline;
}
.ana-tp-date {
    font-size: 13px;
    color: #52525b;
    margin-top: 4px;
}
.ana-tp-stats {
    display: flex;
    gap: 1px;
    background: #27272a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.ana-tp-stat {
    flex: 1;
    background: #1c1c1f;
    padding: 16px 8px;
    text-align: center;
}
.ana-tp-stat-val {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.ana-tp-stat-lbl {
    font-size: 10px;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 4px;
}
.ana-tp-insight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #a1a1aa;
    line-height: 1.6;
    background: #27272a;
    border-radius: 8px;
    padding: 14px 16px;
}
.ana-tp-insight-icon {
    color: #f59e0b;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Locked / Coming Soon state */
.ana-locked {
    position: relative;
    pointer-events: none;
    user-select: none;
}
.ana-locked > *:not(.ana-locked-overlay) {
    opacity: 0.2;
    filter: grayscale(100%);
}
.ana-locked-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.ana-locked-label {
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #71717a;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* Future ideas block */
.ana-future-block {
    background: #1c1c1f;
    border: 1px solid #2e2e32;
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
}
.ana-future-title {
    font-size: 14px;
    font-weight: 600;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.ana-future-list {
    list-style: none;
    padding: 0;
}
.ana-future-list li {
    font-size: 13px;
    color: #a1a1aa;
    line-height: 1.6;
    padding: 8px 0;
    border-bottom: 1px solid #27272a;
}
.ana-future-list li:last-child {
    border-bottom: none;
}
.ana-future-list li strong {
    color: #d4d4d8;
}

/* Responsive */
@media (max-width: 900px) {
    .ana-kpis {
        grid-template-columns: repeat(3, 1fr);
    }
    .ana-two-col {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .ana-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nl-kanban-top {
        grid-template-columns: 1fr;
    }
    .nl-published-grid {
        grid-template-columns: 1fr;
    }
    .nl-modal {
        max-height: 95vh;
    }
    .nl-modal-body {
        padding: 20px;
    }
}
