/* SEOIntel shared app styles — preserved from original dashboard */
* { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --bg: #0b1020; --sidebar: #11172a; --panel: #131b30;
      --border: #252f4b; --accent: #ff7a21; --success: #2ad38a; --danger: #ff5c6a;
      --text: #e8ecf4; --muted: #8793aa;
    }
    body { font-family: Inter, Arial, sans-serif; background: var(--bg); color: var(--text); }
    .app { display: flex; min-height: 100vh; }
    .sidebar {
      width: 260px; background: var(--sidebar); border-right: 1px solid var(--border);
      padding: 20px 14px; position: fixed; inset: 0 auto 0 0; overflow-y: auto; z-index: 40;
    }
    .logo { font-size: 20px; font-weight: 800; margin-bottom: 20px; color: #fff; padding: 0 8px; }
    .logo span { color: var(--accent); }
    .menu { list-style: none; }
    .menu > li { margin-bottom: 2px; }
    .menu a, .menu .menu-parent {
      display: flex; align-items: center; gap: 8px; color: #9da9be; text-decoration: none;
      padding: 10px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: .2s;
      user-select: none;
    }
    .menu a:hover, .menu a.active, .menu-parent:hover { background: #202a44; color: #fff; }
    .menu-parent { justify-content: space-between; }
    .menu-parent .arrow { font-size: 10px; transition: transform .2s; }
    .menu-parent.open .arrow { transform: rotate(90deg); }
    .submenu { display: none; list-style: none; padding-left: 12px; margin: 4px 0 6px; }
    .submenu.open { display: block; }
    .submenu a { font-size: 12px; padding: 8px 12px; }
    .sidebar-bottom { margin-top: 24px; padding: 0 8px; }
    .server-status {
      background: #172037; padding: 12px; border-radius: 10px; font-size: 11px; color: var(--muted);
    }
    .status-dot {
      width: 8px; height: 8px; background: var(--success); border-radius: 50%;
      display: inline-block; margin-right: 6px;
    }
    .main { margin-left: 260px; width: calc(100% - 260px); padding: 24px 28px; min-height: 100vh; }
    .mobile-menu-btn {
      display: none; background: var(--panel); border: 1px solid var(--border);
      color: #fff; padding: 10px 14px; border-radius: 8px; cursor: pointer; margin-bottom: 14px;
    }
    .sidebar-overlay {
      display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 35;
    }
    .sidebar-overlay.show { display: block; }
    .topbar {
      display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
      margin-bottom: 18px; flex-wrap: wrap;
    }
    .topbar h1 { font-size: 24px; }
    .topbar p { color: var(--muted); margin-top: 4px; font-size: 13px; }
    .header-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
    .global-search {
      display: flex; gap: 8px; width: 100%; max-width: 720px; margin-bottom: 18px; flex-wrap: wrap;
    }
    .global-search select, .global-search input {
      background: #0d1426; border: 1px solid #34405e; color: #fff; padding: 11px 14px;
      border-radius: 10px; font-size: 14px;
    }
    .global-search input { flex: 1; min-width: 180px; }
    .global-search select { min-width: 100px; }
    .global-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,122,33,.12); }
    .user-menu {
      display: flex; align-items: center; gap: 10px; background: var(--panel);
      border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; cursor: pointer;
    }
    .user-avatar {
      width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ffb347);
      display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
    }
    .user-info { font-size: 12px; line-height: 1.3; }
    .user-info strong { display: block; font-size: 13px; }
    .user-info span { color: var(--accent); font-size: 11px; }
    .project-box {
      display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
      background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
      padding: 16px 20px; margin-bottom: 18px;
    }
    .project-box h3 { font-size: 16px; margin-bottom: 4px; }
    .project-box select {
      background: #0d1426; color: #fff; border: 1px solid #34405e; padding: 9px 12px;
      border-radius: 8px; min-width: 220px;
    }
    .filter-bar {
      display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; padding: 14px 18px;
      background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
    }
    .filter-bar label { font-size: 11px; color: var(--muted); text-transform: uppercase; }
    .filter-bar select {
      background: #0d1426; color: #fff; border: 1px solid #34405e; padding: 7px 10px;
      border-radius: 6px; font-size: 12px; margin-top: 4px;
    }
    .btn {
      border: none; background: var(--accent); color: #fff; padding: 10px 16px;
      border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap;
    }
    .btn:hover { background: #ff8d42; }
    .btn:disabled { opacity: .55; cursor: not-allowed; }
    .btn-secondary { background: #2a344d; }
    .btn-secondary:hover { background: #364261; }
    .btn-danger { background: var(--danger); }
    .btn-danger:hover { background: #ff7080; }
    .btn-sm { padding: 6px 12px; font-size: 12px; }
    .btn-icon { padding: 5px 9px; }
    .section { display: none; }
    .section.active { display: block; }
    .cards { display: grid; gap: 14px; margin-bottom: 18px; }
    .cards-4 { grid-template-columns: repeat(4, 1fr); }
    .cards-3 { grid-template-columns: repeat(3, 1fr); }
    .cards-5 { grid-template-columns: repeat(5, 1fr); }
    .cards-6 { grid-template-columns: repeat(6, 1fr); }
    .cards-8 { grid-template-columns: repeat(4, 1fr); }
    .card {
      background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
    }
    .card-label { font-size: 11px; color: #8c98ad; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
    .card-value { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
    .change { font-size: 12px; }
    .positive { color: var(--success); }
    .negative { color: var(--danger); }
    .neutral { color: #9ba7ba; }
    .panel {
      background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
      padding: 18px 20px; margin-bottom: 18px;
    }
    .panel-title {
      display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; flex-wrap: wrap;
    }
    .panel-title h3 { font-size: 15px; }
    .dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-bottom: 18px; }
    .dashboard-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
    .chart-wrap { height: 260px; position: relative; }
    .chart-wrap-sm { height: 200px; position: relative; }
    .chart-wrap-lg { height: 320px; position: relative; }
    .table-panel {
      background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
      overflow: hidden; margin-bottom: 18px;
    }
    .table-scroll { overflow-x: auto; }
    .table-header {
      padding: 16px 18px; display: flex; justify-content: space-between; align-items: center;
      gap: 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
    }
    table { width: 100%; border-collapse: collapse; }
    th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #202940; font-size: 13px; }
    th {
      color: #8390a7; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
      position: sticky; top: 0; background: #151d33; z-index: 2;
    }
    th.sortable { cursor: pointer; }
    th.sortable:hover { color: #fff; }
    tr:hover td { background: rgba(255,255,255,.02); }
    .url { color: #6ea8ff; font-size: 12px; word-break: break-all; max-width: 280px; }
    .rank { font-weight: 700; color: var(--accent); }
    .keyword-link { color: #6ea8ff; cursor: pointer; text-decoration: none; }
    .keyword-link:hover { text-decoration: underline; }
    .badge {
      display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700;
    }
    .badge-up { background: rgba(42,211,138,.15); color: var(--success); }
    .badge-down { background: rgba(255,92,106,.15); color: var(--danger); }
    .badge-stable { background: rgba(155,167,186,.15); color: #9ba7ba; }
    .badge-nofollow { background: rgba(155,167,186,.12); color: #9ba7ba; }
    .badge-your-domain { background: rgba(255,122,33,.2); color: var(--accent); margin-left: 6px; }
    .badge-missing { background: rgba(255,92,106,.15); color: var(--danger); }
    .badge-weak { background: rgba(255,180,71,.15); color: #ffb347; }
    .badge-strong { background: rgba(42,211,138,.15); color: var(--success); }
    .src-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
    .src-ahrefs { background: rgba(255,122,33,.18); color: #ff9a4d; }
    .src-internal { background: rgba(95,168,255,.15); color: #5fa8ff; }
    .src-gsc { background: rgba(42,211,138,.15); color: #2ad38a; }
    .src-demo { background: rgba(155,167,186,.15); color: #9ba7ba; }
    .freshness-note { font-size: 11px; color: #718098; margin-top: 6px; }
    .row-your-domain td { background: rgba(255,122,33,.06); }
    .status-404 { color: var(--danger); font-weight: 700; }
    .status-410 { color: #ffb347; font-weight: 700; }
    .status-500 { color: var(--danger); font-weight: 700; }
    .movement-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
    .movement-card {
      background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center;
    }
    .movement-card .num { font-size: 28px; font-weight: 700; margin-top: 4px; }
    .movement-card.improved .num { color: var(--success); }
    .movement-card.declined .num { color: var(--danger); }
    .movement-card.new-kw .num { color: #5fa8ff; }
    .movement-card.lost-kw .num { color: #ffb347; }
    .distribution-item { margin-bottom: 14px; }
    .distribution-header { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
    .progress { height: 6px; background: #222c44; border-radius: 10px; overflow: hidden; }
    .progress span {
      height: 100%; display: block; background: linear-gradient(90deg, var(--accent), #ffb347); border-radius: 10px;
    }
    .progress-bar-wrap { margin-bottom: 14px; }
    .progress-bar-header { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
    .progress-bar { height: 8px; background: #222c44; border-radius: 8px; overflow: hidden; }
    .progress-bar-fill { height: 100%; background: var(--accent); border-radius: 8px; }
    .winners-losers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
    .pagination {
      display: flex; justify-content: space-between; align-items: center; padding: 14px 18px;
      border-top: 1px solid var(--border); flex-wrap: wrap; gap: 10px;
    }
    .pagination-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
    .page-btn {
      background: #1a2340; border: 1px solid var(--border); color: #fff; padding: 6px 11px;
      border-radius: 6px; cursor: pointer; font-size: 12px;
    }
    .page-btn.active { background: var(--accent); border-color: var(--accent); }
    .page-btn:disabled { opacity: .4; cursor: not-allowed; }
    .search {
      background: #0d1426; border: 1px solid #313d5b; color: #fff; padding: 8px 12px;
      border-radius: 7px; width: 200px; font-size: 13px;
    }
    .inline-select, .panel select, .form-group select, .form-group input, .form-group textarea {
      background: #0d1426; color: #fff; border: 1px solid #34405e; padding: 9px 12px;
      border-radius: 7px; font-size: 13px; width: 100%;
    }
    .form-group { margin-bottom: 14px; }
    .form-group label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
    .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
    .tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
    .tab-btn {
      background: #1a2340; border: 1px solid var(--border); color: #9da9be; padding: 8px 16px;
      border-radius: 8px; cursor: pointer; font-size: 12px;
    }
    .tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
    .kd-circle {
      width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 20px;
      display: flex; align-items: center; justify-content: center; flex-direction: column;
      background: conic-gradient(var(--accent) var(--kd-pct, 0%), #222c44 0);
      position: relative;
    }
    .kd-circle-inner {
      width: 130px; height: 130px; border-radius: 50%; background: var(--panel);
      display: flex; align-items: center; justify-content: center; flex-direction: column;
    }
    .kd-score { font-size: 42px; font-weight: 800; color: var(--accent); }
    .kd-label { font-size: 11px; color: var(--muted); text-transform: uppercase; }
    .overlap-bar {
      display: flex; height: 24px; border-radius: 6px; overflow: hidden; margin: 8px 0;
    }
    .overlap-seg { height: 100%; }
    .overlap-shared { background: var(--accent); }
    .overlap-only-you { background: var(--success); }
    .overlap-only-them { background: #5fa8ff; }
    .health-score { font-size: 48px; font-weight: 800; color: var(--success); margin-bottom: 12px; }
    .audit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .audit-check {
      display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
      background: #0d1426; border: 1px solid var(--border); border-radius: 8px; padding: 12px;
      cursor: pointer; transition: .15s;
    }
    .audit-check:hover { border-color: var(--accent); }
    .status-ok { color: var(--success); }
    .status-warn { color: #ffb347; }
    .status-err { color: var(--danger); }
    .issue-row { cursor: pointer; }
    .issue-row:hover td { background: rgba(255,122,33,.05); }
    .plan-card {
      background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
      padding: 20px; text-align: center;
    }
    .plan-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
    .plan-price { font-size: 32px; font-weight: 800; margin: 12px 0; }
    .plan-card ul { list-style: none; text-align: left; font-size: 13px; color: var(--muted); margin: 16px 0; }
    .plan-card li { padding: 5px 0; }
    .plan-card li::before { content: "✓ "; color: var(--success); }
    .api-key-box {
      display: flex; gap: 8px; align-items: center; background: #0d1426; border: 1px solid var(--border);
      border-radius: 8px; padding: 12px; margin-bottom: 16px;
    }
    .api-key-box code { flex: 1; font-size: 13px; letter-spacing: .05em; }
    .endpoint-card {
      background: #0d1426; border: 1px solid var(--border); border-radius: 8px;
      padding: 14px; margin-bottom: 10px;
    }
    .endpoint-method {
      display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px;
      font-weight: 700; margin-right: 8px;
    }
    .method-get { background: rgba(42,211,138,.2); color: var(--success); }
    .method-post { background: rgba(95,168,255,.2); color: #5fa8ff; }
    .method-delete { background: rgba(255,92,106,.2); color: var(--danger); }
    .project-list-item {
      display: flex; justify-content: space-between; align-items: center; gap: 12px;
      padding: 14px 16px; border-bottom: 1px solid var(--border);
    }
    .project-list-item:last-child { border-bottom: none; }
    .empty-state { padding: 40px 20px; text-align: center; color: var(--muted); }
    .empty-state h3 { color: #fff; margin-bottom: 8px; }
    .toggle-row {
      display: flex; justify-content: space-between; align-items: center; padding: 10px 0;
      border-bottom: 1px solid var(--border); font-size: 13px;
    }
    .toggle-switch {
      width: 44px; height: 24px; background: #2a344d; border-radius: 999px; position: relative;
      cursor: pointer; transition: .2s;
    }
    .toggle-switch::after {
      content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
      background: #fff; border-radius: 50%; transition: .2s;
    }
    .toggle-switch.on { background: var(--accent); }
    .toggle-switch.on::after { left: 23px; }
    .metric-row {
      display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border);
      font-size: 13px;
    }
    .mono { font-family: monospace; font-size: 12px; }
    .tag {
      display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 10px;
      font-weight: 700; background: rgba(255,122,33,.15); color: #ff9f5a;
    }
    .comp-label {
      display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700;
    }
    .label-direct { background: rgba(255,92,106,.15); color: var(--danger); }
    .label-indirect { background: rgba(95,168,255,.15); color: #5fa8ff; }
    .label-new { background: rgba(42,211,138,.15); color: var(--success); }
    .last-updated { font-size: 12px; color: var(--muted); }
    .loading-overlay {
      display: none; position: fixed; inset: 0; background: rgba(11,16,32,.85);
      z-index: 9999; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
    }
    .loading-overlay.show { display: flex; }
    .loading-spinner {
      width: 44px; height: 44px; border: 3px solid var(--border); border-top-color: var(--accent);
      border-radius: 50%; animation: spin .8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .loading-text { color: var(--muted); font-size: 14px; }
    .toast-container { position: fixed; top: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; }
    .toast {
      padding: 12px 18px; border-radius: 8px; font-size: 13px; color: #fff;
      animation: slideIn .3s ease; min-width: 240px; box-shadow: 0 4px 20px rgba(0,0,0,.3);
    }
    .toast-success { background: #1a4d35; border: 1px solid var(--success); }
    .toast-error { background: #4d1a22; border: 1px solid var(--danger); }
    .toast-warning { background: #4d3a1a; border: 1px solid #ffb347; }
    .toast-info { background: #1a2a4d; border: 1px solid #5fa8ff; }
    @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
    .modal {
      display: none; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 5000;
      align-items: center; justify-content: center; padding: 20px;
    }
    .modal.open { display: flex; }
    .modal-content {
      background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
      padding: 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
    }
    .modal-content.wide { max-width: 640px; }
    .modal-content.xwide { max-width: 860px; }
    .modal-content h2 { margin-bottom: 18px; font-size: 20px; }
    .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
    .history-stats {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px;
    }
    .stat-box { background: #0d1426; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
    .stat-box label { font-size: 10px; color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 4px; }
    .stat-box span { font-size: 14px; font-weight: 600; }
    .score-badge {
      display: inline-flex; align-items: center; justify-content: center;
      width: 36px; height: 36px; border-radius: 8px; font-weight: 700; font-size: 14px;
    }
    .score-high { background: rgba(42,211,138,.15); color: var(--success); }
    .score-mid { background: rgba(255,180,71,.15); color: #ffb347; }
    .score-low { background: rgba(255,92,106,.15); color: var(--danger); }
    .se-domain-head { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
    .se-domain-head h2 { font-size:20px; }
    .se-domain-head .domain-sub { color:var(--muted); font-size:13px; margin-top:4px; }
    .se-meta-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:12px; color:var(--muted); }
    .range-pills { display:flex; gap:4px; flex-wrap:wrap; }
    .range-pill, .metric-chip {
      background:#1a2338; border:1px solid #34405e; color:#9da9be; padding:6px 10px;
      border-radius:6px; font-size:11px; font-weight:600; cursor:pointer;
    }
    .range-pill.active, .metric-chip.active { background:rgba(255,122,33,.15); border-color:var(--accent); color:#fff; }
    .metric-chips { display:flex; gap:6px; flex-wrap:wrap; }
    .se-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
    .chart-wrap-se { height:340px; position:relative; }
    .chart-wrap-se-md { height:300px; position:relative; }
    .chart-loading, .chart-empty {
      position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
      background:rgba(11,16,32,.55); border-radius:8px; z-index:2; font-size:13px; color:var(--muted); text-align:center; padding:16px;
    }
    .chart-loading { display:none; }
    .chart-loading.show { display:flex; }
    .country-bar-wrap { display:flex; align-items:center; gap:8px; }
    .country-bar { height:8px; border-radius:4px; background:var(--accent); min-width:2px; }
    .traffic-dist { display:flex; flex-direction:column; gap:10px; }
    .traffic-dist-row { display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:13px; }
    .traffic-dist-track { flex:1; height:10px; background:#1a2338; border-radius:6px; overflow:hidden; }
    .traffic-dist-fill { height:100%; background:linear-gradient(90deg,var(--accent),#ffb347); }
    .bl-change-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
    .bl-change-item { background:#0d1426; border:1px solid var(--border); border-radius:10px; padding:14px; }
    .bl-change-item .lbl { font-size:11px; color:var(--muted); text-transform:uppercase; margin-bottom:6px; }
    .bl-change-item .val { font-size:22px; font-weight:700; }
    .panel-toolbar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; max-width:100%; }
    #section-site-explorer-overview { max-width:100%; overflow-x:hidden; }
    #section-site-explorer-overview .table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    #section-site-explorer-overview .panel, #section-site-explorer-overview .table-panel { max-width:100%; }
    .chart-empty-msg { pointer-events:none; }
    @media (max-width: 1200px) {
      .cards-6, .cards-8, .cards-5 { grid-template-columns: repeat(3, 1fr); }
      .dashboard-grid, .dashboard-grid-3, .winners-losers, .se-grid-2 { grid-template-columns: 1fr; }
      .movement-grid { grid-template-columns: repeat(3, 1fr); }
      .audit-grid { grid-template-columns: repeat(2, 1fr); }
      .chart-wrap-se { height:300px; }
      .chart-wrap-se-md { height:280px; }
    }
    @media (max-width: 768px) {
      .mobile-menu-btn { display: block; }
      .sidebar { transform: translateX(-100%); transition: transform .3s; }
      .sidebar.open { transform: translateX(0); }
      .main { margin-left: 0; width: 100%; padding: 14px; }
      .cards-4, .cards-5, .cards-6, .cards-8, .movement-grid { grid-template-columns: 1fr 1fr; }
      .audit-grid { grid-template-columns: 1fr; }
      .history-stats { grid-template-columns: 1fr 1fr; }
      .bl-change-grid { grid-template-columns: 1fr; }
      .chart-wrap-se, .chart-wrap-se-md { height:260px; }
      table { min-width: 800px; }
    }
    @media (max-width: 480px) {
      .cards-4, .cards-5, .cards-6, .cards-8, .movement-grid { grid-template-columns: 1fr; }
    }

/* Breadcrumb */
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb .bc-sep { opacity: .55; }
.error-panel { background: rgba(255,92,106,.08); border: 1px solid rgba(255,92,106,.35); color: #ffb3bb; padding: 14px 16px; border-radius: 10px; margin-bottom: 14px; }
