
      /* Dashboard styles — scoped to .dash-scope so the global reset is contained */
      .dash-scope, .dash-scope * { box-sizing: border-box; margin: 0; padding: 0; }
      .dash-scope {
        font-family: 'JetBrains Mono', monospace;
        /* semi-transparent so the particle canvas behind shows through */
        background: linear-gradient(135deg, rgba(7,8,15,0.55) 0%, rgba(13,21,53,0.55) 50%, rgba(10,14,46,0.55) 100%);
        color: #e8eaf2;
        padding: 24px 20px 32px;
        position: relative;
        border-radius: 14px;
        overflow: hidden;
      }
      .dash-scope::before {
        content: ''; position: absolute; inset: 0; pointer-events: none; border-radius:14px;
        background-image: linear-gradient(rgba(0,210,180,0.025) 1px, transparent 1px),
                          linear-gradient(90deg, rgba(0,210,180,0.025) 1px, transparent 1px);
        background-size: 40px 40px; z-index: 0;
      }
      .dash-scope .container { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; }
      .dash-scope .header {
        display: flex; align-items: center; justify-content: space-between;
        margin-bottom: 24px; padding: 22px;
        background: rgba(0,0,0,0.35); border: 2px solid rgba(0,210,180,0.25);
        border-radius: 20px; box-shadow: 0 8px 32px rgba(0,210,180,0.1), inset 0 1px 0 rgba(0,210,180,0.1);
      }
      .dash-scope .header-left h2 {
        font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; margin-bottom: 6px;
        background: linear-gradient(135deg, #00d2b4, #7c6aff);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
      }
      .dash-scope .header-left p { font-size: 11px; color: #6b7194; letter-spacing: 0.05em; }
      .dash-scope .live-pill {
        display: flex; align-items: center; gap: 8px; padding: 9px 15px;
        background: rgba(0,255,136,0.12); border: 2px solid rgba(0,255,136,0.4);
        border-radius: 20px; font-size: 11px; font-weight: 600; color: #00ff88;
        box-shadow: 0 0 16px rgba(0,255,136,0.2); white-space: nowrap;
      }
      .dash-scope .live-dot { width: 8px; height: 8px; background: #00ff88; border-radius: 50%; animation: dpulse 1.5s ease-in-out infinite; }
      @keyframes dpulse { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(0,255,136,0.4);} 50%{opacity:0.7;box-shadow:0 0 0 6px rgba(0,255,136,0);} }
      .dash-scope .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
      .dash-scope .kpi-card {
        background: linear-gradient(135deg, rgba(0,210,180,0.08) 0%, rgba(0,0,0,0.6) 100%);
        border: 2px solid rgba(0,210,180,0.2); border-radius: 16px; padding: 20px; text-align: center;
        position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(0,210,180,0.1); transition: all 0.3s ease;
      }
      .dash-scope .kpi-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,210,180,0.2); border-color: rgba(0,210,180,0.4); }
      .dash-scope .kpi-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
      .dash-scope .kpi-card.posts::before { background: linear-gradient(90deg, #00d2b4, transparent); }
      .dash-scope .kpi-card.today::before { background: linear-gradient(90deg, #00ff88, transparent); }
      .dash-scope .kpi-card.next::before { background: linear-gradient(90deg, #7c6aff, transparent); }
      .dash-scope .kpi-value { font-family: 'Syne', sans-serif; font-size: 42px; font-weight: 800; line-height: 1; margin-bottom: 10px; display: block; }
      .dash-scope .kpi-card.posts .kpi-value { color: #00d2b4; }
      .dash-scope .kpi-card.today .kpi-value { color: #00ff88; }
      .dash-scope .kpi-card.next .kpi-value { color: #7c6aff; font-size: 24px; margin-top: 6px; }
      .dash-scope .kpi-label { font-size: 10px; font-weight: 600; color: #6b7194; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 6px; }
      .dash-scope .kpi-sub { font-size: 9px; color: #3a3d56; margin-top: 6px; }
      .dash-scope .blink { animation: dblink 1.2s ease-in-out infinite; color: #3a3d56; }
      @keyframes dblink { 0%,100%{opacity:0.3;} 50%{opacity:1;} }
      .dash-scope .section-label {
        font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
        color: #00d2b4; margin-bottom: 14px; margin-top: 24px; display: flex; align-items: center; gap: 12px;
      }
      .dash-scope .section-label::after { content: ''; flex: 1; height: 1px; background: rgba(0,210,180,0.2); }
      .dash-scope .posts-box {
        background: linear-gradient(135deg, rgba(0,210,180,0.06) 0%, rgba(0,0,0,0.8) 100%);
        border: 2px solid rgba(0,210,180,0.2); border-radius: 18px; padding: 22px; margin-bottom: 18px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(0,210,180,0.1);
      }
      .dash-scope .post-row {
        display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(0,210,180,0.12);
        align-items: flex-start; justify-content: space-between; transition: all 0.3s ease;
      }
      .dash-scope .post-row:last-child { border: none; padding-bottom: 0; }
      .dash-scope .post-row:hover {
        background: rgba(0,210,180,0.06); padding-left: 12px; padding-right: 12px;
        margin-left: -12px; margin-right: -12px; border-radius: 10px;
      }
      .dash-scope .post-content { flex: 1; min-width: 0; }
      .dash-scope .post-title { font-size: 13px; color: #c8cfed; line-height: 1.45; word-break: break-word; margin-bottom: 8px; font-weight: 500; }
      .dash-scope .post-meta { font-size: 10px; color: #4a5070; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
      .dash-scope .post-date { display: flex; align-items: center; gap: 4px; }
      .dash-scope .post-category { display: inline-block; padding: 3px 9px; border-radius: 5px; font-size: 9px; font-weight: 600; background: rgba(0,210,180,0.12); color: #00d2b4; border: 1px solid rgba(0,210,180,0.3); }
      .dash-scope .post-btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 6px;
        padding: 8px 14px; min-width: 110px; border-radius: 10px;
        background: linear-gradient(135deg, #00d2b4, #00ff88); border: none; color: #07080f;
        font-weight: 700; font-size: 11px; letter-spacing: 0.1em; cursor: pointer;
        transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(0,255,136,0.3);
        text-transform: uppercase; flex-shrink: 0; margin-top: -2px; font-family:'JetBrains Mono',monospace;
      }
      .dash-scope .post-btn::before { content: '→'; display: inline-block; transition: transform 0.3s ease; }
      .dash-scope .post-btn:hover { transform: translateY(-2px) translateX(2px); box-shadow: 0 8px 24px rgba(0,255,136,0.5); }
      .dash-scope .post-btn:hover::before { transform: translateX(4px); }
      .dash-scope .categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 18px; }
      .dash-scope .category-card {
        background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
        border: 2px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 18px; text-align: center;
        transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(0,0,0,0.3);
      }
      .dash-scope .category-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.5); border-color: rgba(0,210,180,0.4); }
      .dash-scope .category-value { font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800; line-height: 1; margin-bottom: 8px; display: block; }
      .dash-scope .category-label { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
      .dash-scope .system-box {
        background: linear-gradient(135deg, rgba(0,210,180,0.06) 0%, rgba(0,0,0,0.8) 100%);
        border: 2px solid rgba(0,210,180,0.2); border-radius: 18px; overflow: hidden;
        box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(0,210,180,0.1);
      }
      .dash-scope .system-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid rgba(0,210,180,0.1); font-size: 12px; }
      .dash-scope .system-row:last-child { border: none; }
      .dash-scope .system-key { color: #6b7194; font-weight: 500; }
      .dash-scope .system-value { color: #c0c8e0; font-weight: 600; text-align: right; display: flex; align-items: center; gap: 8px; }
      .dash-scope .status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
      .dash-scope .status-dot.ok { background: #00ff88; box-shadow: 0 0 8px rgba(0,255,136,0.6); }
      .dash-scope .loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 0; color: #6b7194; font-size: 11px; }
      .dash-scope .loader { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(0,210,180,0.3); border-top-color: #00d2b4; border-radius: 50%; animation: dspin 0.8s linear infinite; }
      @keyframes dspin { to { transform: rotate(360deg); } }
      .dash-scope .error-msg { padding: 12px; background: rgba(255,87,87,0.1); border: 1px solid rgba(255,87,87,0.3); border-radius: 8px; color: #ff5757; font-size: 11px; }
      @media (max-width: 768px) {
        .dash-scope .header { flex-direction: column; gap: 16px; text-align: center; }
        .dash-scope .kpi-grid { grid-template-columns: repeat(2, 1fr); }
        .dash-scope .categories-grid { grid-template-columns: repeat(2, 1fr); }
        .dash-scope .post-row { flex-direction: column; }
        .dash-scope .post-btn { align-self: flex-start; }
      }
      @media (max-width: 480px) {
        .dash-scope { padding: 14px; }
        .dash-scope .header-left h2 { font-size: 22px; }
        .dash-scope .kpi-grid { grid-template-columns: 1fr; }
        .dash-scope .kpi-value { font-size: 32px; }
        .dash-scope .categories-grid { grid-template-columns: 1fr; }
        .dash-scope .post-btn { width: 100%; }
      }
      /* modal (fixed overlay, shared) */
      #dash-postModal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 11000; padding: 20px; align-items: center; justify-content: center; font-family:'JetBrains Mono',monospace; }
      #dash-postModal.active { display: flex; animation: dfade 0.3s ease; }
      @keyframes dfade { from{opacity:0;} to{opacity:1;} }
      #dash-postModal .modal-content { background: linear-gradient(135deg, #0d1535 0%, #07080f 100%); border: 2px solid rgba(0,210,180,0.3); border-radius: 22px; max-width: 600px; max-height: 80vh; overflow-y: auto; padding: 30px; box-shadow: 0 20px 60px rgba(0,0,0,0.8); }
      #dash-postModal .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid rgba(0,210,180,0.2); }
      #dash-postModal .modal-title { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: #00d2b4; }
      #dash-postModal .modal-close { background: none; border: none; font-size: 24px; color: #00d2b4; cursor: pointer; transition: all 0.3s ease; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
      #dash-postModal .modal-close:hover { transform: rotate(90deg); color: #7c6aff; }
      #dash-postModal .modal-body { color: #c8cfed; line-height: 1.8; font-size: 13px; }
      #dash-postModal .modal-body img { max-width: 100%; height: auto; border-radius: 8px; }
      #dash-postModal .modal-meta { display: flex; gap: 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(0,210,180,0.1); font-size: 11px; color: #6b7194; }
      