    :root {
      --bg: #09090b;
      --surface: #121215;
      --border: #222226;
      --text: #f4f4f5;
      --muted: #71717a;
      --faint: #3f3f46;
      --positive: #10b981;
      --negative: #f43f5e;
      --accent: #e4e4e7;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif; -webkit-font-smoothing: antialiased; }
    
    /* Sleek scrollbar */
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: #27272a; border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

    html { width: 380px; box-sizing: border-box; margin: 0; padding: 0; background: #08080a; }
    body { background: transparent; color: var(--text); padding: 14px 14px 64px 14px; width: 380px; min-width: 380px; max-width: 380px; box-sizing: border-box; max-height: 590px; overflow-x: hidden; overflow-y: auto; margin: 0; position: relative; }

    /* Web & Mobile Standalone Mode (GitHub Pages, Phone, Browser Tab) */
    html.web-mode {
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      height: 100% !important;
      min-height: 100vh !important;
      min-height: 100dvh !important;
      background: #08080a !important;
    }
    html.web-mode body,
    body.web-mode {
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      height: auto !important;
      min-height: 100vh !important;
      min-height: 100dvh !important;
      max-height: none !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      padding: 12px 14px calc(72px + env(safe-area-inset-bottom, 0px)) 14px !important;
      background: #08080a !important;
      box-sizing: border-box !important;
    }
    html.web-mode .app-container,
    body.web-mode .app-container {
      width: 100% !important;
      max-width: 480px !important;
      margin: 0 auto !important;
      flex: 1 0 auto !important;
      display: flex !important;
      flex-direction: column !important;
      box-sizing: border-box !important;
    }
    html.web-mode #btnOpenTab,
    body.web-mode #btnOpenTab {
      display: none !important;
    }
    
    /* Dynamic Background Canvas */
    #bgCanvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      pointer-events: none;
      z-index: 0;
    }

    /* Large Font Accessibility Mode */
    html.font-large {
      font-size: 114%;
    }
    html.font-large body {
      font-size: 1.05em;
    }
    html.font-large .mono {
      letter-spacing: 0.02em;
    }
    html.font-large input,
    html.font-large select,
    html.font-large textarea {
      font-size: 0.88rem;
    }
    html.font-large .hero-val {
      font-size: 2.35rem;
    }
    html.font-large .hero-sub {
      font-size: 0.78rem;
    }
    html.font-large .pill-btn {
      font-size: 0.75rem;
      padding: 5px 9px;
    }
    html.font-large .feed-item {
      font-size: 0.76rem;
    }
    html.font-large .icon-btn {
      font-size: 0.72rem;
      height: 22px;
      min-width: 22px;
    }
    html.font-large .sync-badge {
      font-size: 0.60rem;
    }

    /* App Container */
    .app-container {
      width: 100%;
      position: relative;
      z-index: 1;
    }

    /* Dashboard Layout Containers */
    .dashboard-layout { display: flex; flex-direction: column; width: 100%; }
    .dashboard-col { display: flex; flex-direction: column; width: 100%; }
    .col-section { display: flex; flex-direction: column; width: 100%; }
    .mobile-nav { display: none !important; }

    /* Mobile & Extension App Navigation Layout (< 840px) */
    @media (max-width: 839px) {
      .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 54px;
        padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
        background: rgba(12, 12, 16, 0.94);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border);
        z-index: 100;
        justify-content: space-around;
        align-items: center;
        box-sizing: content-box;
      }

      .mobile-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        height: 100%;
        background: none;
        border: none;
        color: var(--muted);
        cursor: pointer;
        padding: 6px 0;
        transition: color 0.15s ease, transform 0.15s ease;
        -webkit-tap-highlight-color: transparent;
      }

      .mobile-nav-btn span {
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
        font-size: 0.65rem;
        font-weight: 500;
        letter-spacing: 0.03em;
        text-transform: uppercase;
      }

      .mobile-nav-btn svg {
        stroke: var(--muted);
        stroke-width: 2;
        transition: stroke 0.15s ease, transform 0.15s ease;
      }

      .mobile-nav-btn:active {
        transform: scale(0.94);
      }

      .mobile-nav-btn.active {
        color: var(--text);
      }

      .mobile-nav-btn.active svg {
        stroke: var(--text);
      }

      .mobile-nav-btn.active span {
        color: var(--text);
        font-weight: 700;
      }

      /* Column Visibility Controlled by data-active-tab on .dashboard-layout */
      .dashboard-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        flex: 1 !important;
      }

      .dashboard-layout:not([data-active-tab]) .col-left,
      .dashboard-layout[data-active-tab="tracker"] .col-left {
        display: flex !important;
      }
      .dashboard-layout:not([data-active-tab]) .col-right,
      .dashboard-layout:not([data-active-tab]) .col-calendar,
      .dashboard-layout[data-active-tab="tracker"] .col-right,
      .dashboard-layout[data-active-tab="tracker"] .col-calendar {
        display: none !important;
      }

      .dashboard-layout[data-active-tab="utang"] .col-left,
      .dashboard-layout[data-active-tab="utang"] .col-calendar,
      .dashboard-layout[data-active-tab="utang"] #sectionActivity {
        display: none !important;
      }
      .dashboard-layout[data-active-tab="utang"] .col-right,
      .dashboard-layout[data-active-tab="utang"] #sectionUtang {
        display: flex !important;
      }

      .dashboard-layout[data-active-tab="activity"] .col-left,
      .dashboard-layout[data-active-tab="activity"] .col-calendar,
      .dashboard-layout[data-active-tab="activity"] #sectionUtang {
        display: none !important;
      }
      .dashboard-layout[data-active-tab="activity"] .col-right,
      .dashboard-layout[data-active-tab="activity"] #sectionActivity {
        display: flex !important;
      }

      .dashboard-layout[data-active-tab="calendar"] .col-left,
      .dashboard-layout[data-active-tab="calendar"] .col-right {
        display: none !important;
      }
      .dashboard-layout[data-active-tab="calendar"] .col-calendar {
        display: flex !important;
      }

      /* In compact views, allow full natural height so lists don't feel cramped */
      #feedList {
        max-height: none !important;
        min-height: 200px;
      }
      #utangList {
        max-height: none !important;
        min-height: 120px;
      }
    }

    /* Centered View for intermediate sizes (500px - 839px) in non-web mode */
    @media (min-width: 500px) and (max-width: 839px) {
      body:not(.web-mode) { width: 100% !important; min-width: 0 !important; max-width: none !important; min-height: 100vh; margin: 0 !important; padding: 0 !important; background: transparent; border: none; box-shadow: none; max-height: none; overflow-x: hidden; overflow-y: auto; }
      body:not(.web-mode) .app-container {
        width: calc(100% - 32px);
        min-width: 360px;
        max-width: 520px;
        margin: 24px auto;
        padding: 16px 20px;
        background: rgba(12, 12, 16, 0.50);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        box-shadow: 0 12px 36px rgba(0,0,0,0.6);
        box-sizing: border-box;
      }
    }

    /* Desktop Full Tab Dashboard (>= 840px) */
    @media (min-width: 840px) {
      html { width: 100% !important; min-width: 100% !important; max-width: none !important; height: 100%; min-height: 100%; background: #08080a; }
      body {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
      }
      .app-container {
        width: 85vw !important;
        max-width: 85vw !important;
        min-width: 85vw !important;
        height: 85vh !important;
        min-height: 85vh !important;
        max-height: 85vh !important;
        margin: auto !important;
        padding: 24px 30px;
        background: rgba(12, 12, 16, 0.50);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        box-shadow: 0 24px 60px rgba(0,0,0,0.75);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      #btnOpenTab { display: none; }
      header { margin-bottom: 16px; padding-bottom: 12px; flex-shrink: 0; }
      .brand { font-size: 0.95rem; }
      .dashboard-layout {
        display: grid;
        grid-template-columns: 360px minmax(320px, 1fr) 350px;
        gap: 24px;
        align-items: stretch;
        width: 100%;
        flex: 1;
        min-height: 0;
      }
      .mobile-nav {
        display: none !important;
      }
      #sectionUtang, #sectionActivity {
        display: flex !important;
        flex-direction: column;
        width: 100%;
      }
      .col-left {
        min-width: 0;
        overflow-y: auto;
        padding-right: 6px;
        display: flex !important;
        flex-direction: column;
      }
      .col-right {
        min-width: 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
      }
      .col-calendar {
        min-width: 0;
        overflow-y: auto;
        padding-right: 6px;
        display: flex;
        flex-direction: column;
      }
      #feedList {
        flex: 1;
        min-height: 180px;
        max-height: none;
        overflow-y: auto;
        padding-right: 4px;
      }
      #utangList {
        max-height: 180px;
        overflow-y: auto;
        padding-right: 4px;
      }
    }
    @media (min-width: 840px) and (max-width: 1140px) {
      .dashboard-layout {
        grid-template-columns: 340px minmax(0, 1fr) !important;
        gap: 18px !important;
      }
      .col-calendar {
        grid-column: 1 / -1;
      }
    }
    header {
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      flex-wrap: nowrap !important;
      gap: 6px !important;
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--border);
      width: 100%;
      box-sizing: border-box;
    }
    .brand-row {
      display: flex;
      align-items: center;
      gap: 5px;
      flex-shrink: 0;
      white-space: nowrap;
    }
    .brand {
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--text);
    }
    .sync-badge {
      font-size: 0.60rem;
      padding: 1px 5px;
      border-radius: 4px;
      background: #1c1c21;
      border: 1px solid var(--border);
      color: var(--muted);
      cursor: pointer;
      text-decoration: none;
      white-space: nowrap;
      line-height: 1.3;
    }
    .sync-badge.synced { color: var(--positive); border-color: rgba(16, 185, 129, 0.2); }
    .sync-badge.pending { color: #f59e0b; border-color: rgba(245, 158, 11, 0.2); }
    .sync-badge.syncing { color: var(--accent); }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: nowrap !important;
      flex-shrink: 0;
    }
    .header-actions #dateLabel {
      font-size: 0.68rem;
      color: var(--muted);
      white-space: nowrap;
      margin-right: 2px;
    }
    .icon-btn {
      background: rgba(28, 28, 33, 0.5);
      border: 1px solid var(--border);
      border-radius: 4px;
      color: var(--muted);
      cursor: pointer;
      padding: 0 5px;
      height: 22px;
      min-width: 22px;
      font-size: 0.72rem;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      user-select: none;
    }
    .icon-btn:hover { color: var(--text); border-color: #3f3f46; background: #27272a; }
    .icon-btn svg { display: block; pointer-events: none; }

    @media (max-width: 480px) {
      header {
        gap: 4px !important;
        padding-bottom: 6px !important;
      }
      .brand {
        font-size: 0.74rem !important;
      }
      .sync-badge {
        font-size: 0.56rem !important;
        padding: 1px 4px !important;
      }
      .header-actions {
        gap: 3px !important;
      }
      .header-actions #dateLabel {
        font-size: 0.63rem !important;
      }
      .icon-btn {
        height: 20px !important;
        min-width: 20px !important;
        padding: 0 3px !important;
        font-size: 0.68rem !important;
      }
      .input-grid {
        grid-template-columns: 1fr !important;
      }
    }

    .hero { margin-bottom: 14px; }
    .hero-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
    .hero-val { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 6px; }
    .hero-sub { font-size: 0.75rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
    .hero-sub span b { font-weight: 600; }

    .utang-hero { background: rgba(18, 18, 23, 0.50); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 0.75rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
    .utang-hero-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
    .utang-proj { font-size: 0.72rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 4px; margin-top: 4px; }
    .utang-proj b { color: var(--text); }

    .checkin { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; display: none; }
    .checkin-msg { font-size: 0.75rem; color: var(--text); margin-bottom: 6px; }
    .checkin-row { display: flex; gap: 6px; flex-wrap: wrap; }
    .btn-mini { background: #1c1c21; border: 1px solid var(--border); color: var(--text); padding: 5px 9px; border-radius: 6px; font-size: 0.72rem; cursor: pointer; font-weight: 500; }
    .btn-mini:hover { background: #27272a; }
    .btn-mini.primary { background: var(--text); color: var(--bg); border: none; font-weight: 600; }

    .section-title { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }

    .pills-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
    .pills-row { display: flex; gap: 4px; flex-wrap: wrap; max-width: 100%; }
    .pill { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 5px 8px; border-radius: 5px; font-size: 0.72rem; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pill:hover { border-color: var(--faint); }
    .pill:active { background: #27272a; }

    .form-wrap { background: rgba(18, 18, 23, 0.50); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 18px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
    .mode-switch { display: flex; gap: 4px; background: #09090b; padding: 2px; border-radius: 6px; margin-bottom: 10px; border: 1px solid var(--border); }
    .mode-btn { flex: 1; border: none; background: none; color: var(--muted); font-size: 0.72rem; font-weight: 600; padding: 5px 0; border-radius: 4px; cursor: pointer; text-align: center; }
    .mode-btn.active { background: #27272a; color: var(--text); }

    .input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; margin-bottom: 6px; }
    input, select { width: 100%; min-width: 0; background: #09090b; border: 1px solid var(--border); color: var(--text); padding: 7px 9px; border-radius: 5px; font-size: 0.8rem; box-sizing: border-box; }
    input:focus, select:focus { outline: none; border-color: var(--muted); }
    .btn-submit { width: 100%; background: var(--text); color: var(--bg); border: none; padding: 8px; border-radius: 5px; font-weight: 600; font-size: 0.8rem; cursor: pointer; margin-top: 2px; }
    .btn-submit:hover { opacity: 0.9; }

    .status-msg { font-size: 0.72rem; margin-top: 4px; text-align: center; min-height: 18px; line-height: 18px; padding: 2px 4px; visibility: hidden; display: block; }
    .status-msg.error { color: var(--negative); visibility: visible; }
    .status-msg.success { color: var(--positive); visibility: visible; }

    .feed { display: flex; flex-direction: column; margin-bottom: 18px; }
    .feed-item { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid #18181b; font-size: 0.78rem; gap: 6px; }
    .feed-item:last-child { border-bottom: none; }
    .feed-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; overflow: hidden; }
    .feed-cat { font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .feed-meta { font-size: 0.68rem; color: var(--muted); }
    .feed-right { text-align: right; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .feed-amt { font-weight: 600; font-size: 0.82rem; }
    .feed-amt.pos { color: var(--positive); }
    .feed-amt.neg { color: var(--negative); }
    .feed-btn { background: none; border: none; color: var(--faint); font-size: 0.7rem; cursor: pointer; padding: 2px 3px; }
    .feed-btn:hover { color: var(--text); }
    .feed-btn.del:hover { color: var(--negative); }
    .feed-btn.action { color: var(--positive); text-decoration: underline; font-weight: 600; }

    /* Modal */
    .modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 100; align-items: center; justify-content: center; padding: 14px; }
    .modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; width: 100%; max-width: 340px; padding: 14px; max-height: 90vh; overflow-y: auto; }
    .modal-title { font-size: 0.8rem; font-weight: 600; margin-bottom: 10px; color: var(--text); display: flex; justify-content: space-between; align-items: center; }

    /* Stash Card */
    .stash-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; margin-bottom: 12px; }
    .stash-row { display: flex; justify-content: space-between; align-items: center; }
    .stash-quick-list { margin-top: 6px; border-top: 1px solid var(--border); padding-top: 6px; display: flex; flex-direction: column; gap: 4px; }
    .stash-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; background: #09090b; padding: 4px 8px; border: 1px solid var(--border); border-radius: 4px; }

    /* Empty Pills Hint */
    .empty-pills-hint { font-size: 0.72rem; color: var(--muted); border: 1px dashed var(--border); border-radius: 6px; padding: 8px 10px; width: 100%; cursor: pointer; line-height: 1.4; box-sizing: border-box; }
    .empty-pills-hint:hover { border-color: var(--faint); color: var(--text); }

    /* Pill Filter Tabs */
    .pill-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
    .pill-tab-btn { background: #18181b; border: 1px solid var(--border); color: var(--muted); padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; cursor: pointer; }
    .pill-tab-btn.active { background: var(--text); color: var(--bg); font-weight: 600; border-color: var(--text); }
    .cat-tab-btn { background: #18181b; border: 1px solid var(--border); color: var(--muted); padding: 1px 6px; border-radius: 4px; font-size: 0.62rem; cursor: pointer; }
    .cat-tab-btn.active { background: var(--text); color: var(--bg); font-weight: 600; border-color: var(--text); }

    /* Analytics Semi-Fullscreen Window */
    #analyticsModal {
      display: none;
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(8, 8, 10, 0.45) !important;
      backdrop-filter: blur(4px) !important;
      -webkit-backdrop-filter: blur(4px) !important;
      z-index: 500;
      padding: 0;
      margin: 0;
      overflow-y: auto;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
    }
    /* Metrics Auto-Expand in extension popup */
    body.metrics-expanded .app-container {
      display: none !important;
    }
    html.metrics-expanded, body.metrics-expanded {
      width: 780px !important;
      min-width: 780px !important;
      max-width: 780px !important;
      height: 600px !important;
      min-height: 600px !important;
      max-height: 600px !important;
      padding: 0 !important;
      margin: 0 !important;
      overflow: hidden !important;
    }

    #grafanaModalBox {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      border: none;
      border-radius: 0;
      padding: 12px 14px;
      overflow-y: auto;
      overflow-x: hidden;
      background: transparent;
      box-sizing: border-box;
      position: relative;
      z-index: 1;
    }
    @media (min-width: 700px) {
      .grafana-body-grid {
        display: grid !important;
        grid-template-columns: 1.18fr 0.82fr !important;
        gap: 14px !important;
        align-items: start !important;
      }
      .grafana-streak-panel {
        grid-template-columns: repeat(4, 1fr) !important;
      }
    }
    @media (min-width: 840px) {
      #analyticsModal {
        width: 100vw !important;
        height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        display: none;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
      }
      html.metrics-expanded, body.metrics-expanded {
        width: 100% !important;
        min-width: 100% !important;
        max-width: none !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
      }
      #grafanaModalBox {
        width: 85vw !important;
        max-width: 85vw !important;
        min-width: 85vw !important;
        height: 85vh !important;
        min-height: 85vh !important;
        max-height: 85vh !important;
        background: rgba(12, 12, 16, 0.50) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.09) !important;
        border-radius: 16px !important;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
        padding: 24px 30px !important;
        overflow-y: auto !important;
        margin: auto !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
      }
      .grafana-body-grid {
        display: grid !important;
        grid-template-columns: 1.15fr 0.85fr !important;
        gap: 20px !important;
        align-items: start !important;
        flex: 1 !important;
      }
    }
    .grafana-streak-panel, .grafana-panel, .grafana-meta-bar {
      background: rgba(18, 18, 22, 0.50) !important;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    .streak-hero {
      background: rgba(12, 12, 15, 0.50) !important;
      border: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    /* Grafana Style Metrics */
    .grafana-streak-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
    @media (max-width: 440px) {
      .grafana-streak-panel { grid-template-columns: repeat(2, 1fr); }
    }
    .streak-hero { border-radius: 6px; padding: 8px 6px; text-align: center; }
    .streak-val { font-size: 1.05rem; font-weight: 700; }
    .streak-label { font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

    /* Secondary Meta Bar */
    .grafana-meta-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.68rem; border-radius: 6px; padding: 6px 10px; margin-bottom: 10px; color: var(--muted); }
    .grafana-meta-bar b { color: var(--text); }

    .grafana-panel { border-radius: 6px; padding: 10px; margin-bottom: 10px; }
    .panel-header { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }

    /* Grafana Body Layout */
    .grafana-body-grid { display: flex; flex-direction: column; gap: 10px; }
    .grafana-body-col { display: flex; flex-direction: column; width: 100%; min-width: 0; }

    /* Missed Days Grid */
    .days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
    .day-cell { border: 1px solid var(--border); border-radius: 4px; padding: 4px 2px; text-align: center; font-size: 0.62rem; background: #09090b; }
    .day-cell.active-day { border-color: var(--positive); background: rgba(34, 197, 94, 0.1); color: var(--positive); }
    .day-cell.missed-day { border-color: var(--negative); background: rgba(239, 68, 68, 0.15); color: var(--negative); font-weight: 600; }
    .day-cell.untracked-day { border-color: #1f1f23; color: #52525b; opacity: 0.45; }
    .day-cell.today-cell { outline: 1px solid var(--text); font-weight: 700; }

    /* Charts & Breakdown */
    .chart-svg { width: 100%; height: 90px; }
    .cat-bar-wrap { margin-bottom: 6px; }
    .cat-bar-header { display: flex; justify-content: space-between; font-size: 0.68rem; margin-bottom: 2px; }
    .cat-bar-track { width: 100%; height: 6px; background: #27272a; border-radius: 3px; overflow: hidden; }
    .cat-bar-fill { height: 100%; border-radius: 3px; transition: width 0.2s ease; }
    .audit-list { max-height: 140px; overflow-y: auto; font-size: 0.68rem; display: flex; flex-direction: column; gap: 4px; }
    .audit-entry { background: #09090b; border: 1px solid #1f1f23; border-radius: 4px; padding: 4px 6px; display: flex; justify-content: space-between; }

    /* Telemetry Chronometer (Clock to Milliseconds) */
    .chrono-card {
      background: rgba(18, 18, 23, 0.50);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 10px;
      padding: 12px 14px;
      margin-bottom: 12px;
    }
    .chrono-top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.65rem;
      margin-bottom: 6px;
    }
    .chrono-tag { color: var(--positive); font-weight: 700; letter-spacing: 0.06em; }
    .chrono-zone { color: var(--muted); }
    .chrono-display {
      display: flex;
      align-items: baseline;
      justify-content: flex-start;
      margin-bottom: 4px;
    }
    .chrono-hms {
      font-size: 1.7rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: #fafafa;
    }
    .chrono-ms {
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--muted);
      margin-left: 2px;
    }
    .chrono-sub {
      display: flex;
      justify-content: space-between;
      font-size: 0.62rem;
      color: var(--muted);
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding-top: 6px;
      margin-top: 4px;
    }

    /* Full Monthly Calendar */
    .calendar-card {
      background: rgba(18, 18, 23, 0.50);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 10px;
      padding: 12px 14px;
    }
    .cal-nav {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
    }
    .cal-month-title {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--text);
    }
    .cal-weekdays {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      text-align: center;
      font-size: 0.62rem;
      color: var(--muted);
      text-transform: uppercase;
      margin-bottom: 6px;
    }
    .cal-days-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 3px;
      margin-bottom: 10px;
    }
    .cal-day-cell {
      aspect-ratio: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-size: 0.68rem;
      border-radius: 5px;
      cursor: pointer;
      position: relative;
      background: rgba(24, 24, 28, 0.5);
      border: 1px solid transparent;
      transition: all 0.15s ease;
      user-select: none;
    }
    .cal-day-cell:hover {
      background: rgba(39, 39, 42, 0.8);
      border-color: rgba(255, 255, 255, 0.15);
    }
    .cal-day-cell.other-month {
      color: #3f3f46;
      opacity: 0.35;
      background: transparent;
    }
    .cal-day-cell.is-today {
      border-color: var(--positive);
      color: var(--positive);
      font-weight: 700;
      background: rgba(16, 185, 129, 0.1);
    }
    .cal-day-cell.is-selected {
      background: rgba(56, 189, 248, 0.2) !important;
      border-color: var(--accent) !important;
      color: #fff !important;
      font-weight: 700;
    }
    .cal-dot-row {
      display: flex;
      gap: 2px;
      position: absolute;
      bottom: 2px;
    }
    .cal-dot {
      width: 3.5px;
      height: 3.5px;
      border-radius: 50%;
    }
    .cal-dot.exp { background: var(--negative); }
    .cal-dot.inc { background: var(--positive); }
    .cal-dot.both { background: #f59e0b; }

    /* Day Inspector */
    .cal-inspector {
      background: rgba(12, 12, 15, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 6px;
      padding: 8px 10px;
      font-size: 0.68rem;
    }
    .cal-insp-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      padding-bottom: 4px;
    }
    .cal-insp-stats {
      display: flex;
      justify-content: space-between;
      color: var(--muted);
      gap: 6px;
    }
    .cal-insp-txs {
      margin-top: 6px;
      max-height: 80px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .cal-tx-mini {
      display: flex;
      justify-content: space-between;
      padding: 2px 4px;
      background: rgba(24, 24, 28, 0.6);
      border-radius: 3px;
      font-size: 0.62rem;
    }
