        * { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: Arial, sans-serif;
            background: #0f1117;
            color: #e0e0e0;
            font-size: 13px;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        header {
            background: #1a1a2e;
            padding: 14px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 2px solid #2a2a4a;
            flex-shrink: 0;
        }

        header h1 { font-size: 18px; color: #fff; letter-spacing: 1px; }
        header span { color: #888; font-size: 11px; }

        .layout {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        /* ── Sidebar ── */
        .sidebar {
            width: 240px;
            background: #13131f;
            border-right: 1px solid #2a2a4a;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            overflow-y: auto;
        }

        .sidebar-title {
            padding: 14px 16px 8px;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #555;
            border-bottom: 1px solid #1f1f35;
        }

        .import-item {
            padding: 10px 16px;
            border-bottom: 1px solid #1a1a2e;
            cursor: pointer;
            text-decoration: none;
            display: block;
            transition: background 0.15s;
        }

        .import-item:hover { background: #1f1f38; }

        .import-item.active {
            background: #1e2a4a;
            border-left: 3px solid #2e86de;
        }

        .import-item .dates {
            font-size: 11px;
            color: #fff;
            font-weight: bold;
        }

        .import-item .meta {
            font-size: 10px;
            color: #666;
            margin-top: 3px;
        }

        .import-item .del-btn {
            float: right;
            color: #c0392b;
            font-size: 10px;
            margin-top: 2px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
        }

        .import-item .del-btn:hover { color: #e74c3c; }

        .sidebar-empty {
            padding: 20px 16px;
            color: #555;
            font-size: 11px;
        }

        /* ── Main ── */
        .main {
            flex: 1;
            overflow-y: auto;
            padding: 20px 24px;
        }

        /* ── Upload Bar ── */
        .upload-bar {
            background: #1a1a2e;
            border: 1px solid #2a2a4a;
            border-radius: 8px;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .upload-bar label { color: #aaa; font-size: 11px; white-space: nowrap; }

        .upload-bar input[type="file"] {
            background: #0f1117;
            border: 1px solid #333;
            border-radius: 4px;
            padding: 5px 8px;
            color: #ccc;
            font-size: 11px;
            flex: 1;
            min-width: 180px;
        }

        .btn {
            padding: 7px 14px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 11px;
            font-weight: bold;
            white-space: nowrap;
        }

        .btn-primary { background: #2e86de; color: #fff; }
        .btn-primary:hover { background: #1a6cbf; }
        .btn-danger  { background: #c0392b; color: #fff; }
        .btn-danger:hover { background: #a93226; }

        .alert {
            padding: 9px 14px;
            border-radius: 4px;
            margin-bottom: 14px;
            font-size: 11px;
        }
        .alert-success { background: #1e4d2b; border: 1px solid #27ae60; color: #a8f0b8; }
        .alert-error   { background: #4d1e1e; border: 1px solid #c0392b; color: #f0a8a8; }

        /* ── Active Import Banner ── */
        .active-banner {
            background: #1e2a4a;
            border: 1px solid #2e86de;
            border-radius: 6px;
            padding: 8px 14px;
            margin-bottom: 16px;
            font-size: 11px;
            color: #7eb8f7;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .active-banner strong { color: #fff; }

        /* ── Stats ── */
        .stats {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 10px;
            margin-bottom: 20px;
        }

        .stat-card {
            background: #1a1a2e;
            border: 1px solid #2a2a4a;
            border-radius: 8px;
            padding: 12px 14px;
            text-align: center;
        }

        .stat-card .val { font-size: 20px; font-weight: bold; color: #fff; }
        .stat-card .lbl { font-size: 9px; color: #888; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
        .stat-card.red    { border-color: #c0392b; } .stat-card.red .val    { color: #e74c3c; }
        .stat-card.green  { border-color: #27ae60; } .stat-card.green .val  { color: #2ecc71; }
        .stat-card.yellow { border-color: #e67e22; } .stat-card.yellow .val { color: #f39c12; }

        /* ── Tabs ── */
        .tabs { display: flex; gap: 4px; margin-bottom: 0; }

        .tab {
            padding: 9px 18px;
            border-radius: 6px 6px 0 0;
            cursor: pointer;
            font-size: 11px;
            font-weight: bold;
            border: 1px solid #2a2a4a;
            border-bottom: none;
            background: #1a1a2e;
            color: #888;
            user-select: none;
        }

        .tab.active-red    { background: #3d1a1a; color: #e74c3c; border-color: #c0392b; }
        .tab.active-green  { background: #1a3d1a; color: #2ecc71; border-color: #27ae60; }
        .tab.active-orange { background: #3d2d1a; color: #e67e22; border-color: #d35400; }

        /* ── Table ── */
        .table-wrap {
            background: #1a1a2e;
            border: 1px solid #2a2a4a;
            border-radius: 0 6px 6px 6px;
            overflow-x: auto;
        }

        table { width: 100%; border-collapse: collapse; }
        thead tr { background: #0f1117; }
        thead th {
            padding: 9px 12px;
            text-align: left;
            font-size: 10px;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid #2a2a4a;
            white-space: nowrap;
        }

        tbody tr { border-bottom: 1px solid #1f1f35; }
        tbody tr:hover { background: #1f1f38; }
        tbody tr:last-child { border-bottom: none; }

        td { padding: 7px 12px; font-size: 11px; color: #ccc; }
        td.term     { color: #fff; font-weight: 500; max-width: 260px; }
        td.campaign { color: #888; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        td.num      { text-align: right; font-variant-numeric: tabular-nums; }
        td.acos-bad  { color: #e74c3c; font-weight: bold; text-align: right; }
        td.acos-good { color: #2ecc71; font-weight: bold; text-align: right; }
        td.action   { color: #f39c12; font-size: 10px; }
        td.ctr      { color: #7eb8f7; text-align: right; }

        .empty { padding: 40px; text-align: center; color: #555; font-size: 12px; }

        .section-hidden { display: none; }

        .be-badge {
            background: #0f1117;
            border: 1px solid #2a2a4a;
            border-radius: 4px;
            padding: 4px 10px;
            font-size: 10px;
            color: #888;
            margin-left: auto;
        }
        .be-badge span { color: #2e86de; font-weight: bold; }
