  :root{
    --ink:#0F1B2D; --ink-soft:#16263C;
    --teal:#1F6F63; --teal-bg:#E4EFEC;
    --amber:#B9791F; --amber-bg:#FBEFDC;
    --coral:#C4453A; --coral-bg:#FBE6E3;
  }
  body[data-theme="light"]{
    --bg:#F7F5F0; --panel:#FFFFFF; --line:#E4E1D8; --text:#1B2430; --muted:#6B7480;
    --sidebar-bg:#0F1B2D; --sidebar-text:#CBD3DB; --sidebar-active:#233650;
    --input-bg:#F7F5F0;
  }
  body[data-theme="dark"]{
    --bg:#0B1420; --panel:#131F30; --line:#233247; --text:#E7EAEE; --muted:#8B96A3;
    --sidebar-bg:#080F19; --sidebar-text:#9AA6B2; --sidebar-active:#1B2A3E;
    --input-bg:#0B1420;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  body{ font-family:'Inter', sans-serif; background:var(--bg); color:var(--text); display:flex; min-height:100vh; transition:background .2s, color .2s; }
  .mono{ font-family:'IBM Plex Mono', monospace; }
  a{ color:inherit; }

  .sidebar{ width:252px; background:var(--sidebar-bg); color:var(--sidebar-text); flex-shrink:0; display:flex; flex-direction:column; padding:20px 14px; position:sticky; top:0; height:100vh; overflow-y:auto; }
  .sb-logo{ font-family:'Fraunces', serif; font-size:19px; font-weight:600; color:#fff; display:flex; align-items:center; gap:8px; padding:6px 10px 20px; }
  .sb-logo .mark{ width:18px; height:18px; border-radius:50%; background:conic-gradient(from 180deg, #E8A23D, #1F6F63, #E8A23D); }
  .sb-label{ font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:#66707C; padding:14px 10px 6px; }

  .sb-parent{ display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:8px; font-size:13.5px; font-weight:500; cursor:pointer; }
  .sb-parent:hover{ background:rgba(255,255,255,0.06); }
  .sb-parent.active{ background:var(--sidebar-active); color:#fff; }
  .sb-parent .ic{ width:16px; text-align:center; font-size:13px; opacity:.85; }
  .sb-parent .badge{ margin-left:auto; background:var(--coral); color:#fff; font-size:10px; font-weight:700; padding:1px 6px; border-radius:10px; }
  .sb-parent .chevron{ margin-left:auto; font-size:9px; opacity:.55; transition:transform .15s; }
  .sb-parent.open .chevron{ transform:rotate(90deg); }
  .sb-parent .badge + .chevron{ margin-left:6px; }

  .sb-children{ display:none; flex-direction:column; padding-left:30px; gap:1px; margin:2px 0 8px; }
  .sb-children.open{ display:flex; }
  .sb-child{ padding:7px 10px; border-radius:6px; font-size:12.5px; cursor:pointer; opacity:.82; display:flex; align-items:center; gap:6px; }
  .sb-child:hover{ background:rgba(255,255,255,0.05); opacity:1; }
  .sb-child.active{ background:var(--sidebar-active); color:#fff; opacity:1; }
  .sb-child .badge{ background:var(--coral); color:#fff; font-size:9px; font-weight:700; padding:1px 5px; border-radius:8px; margin-left:auto; }

  .sb-footer{ margin-top:auto; padding:14px 10px; font-size:11px; color:#5A6470; border-top:1px solid rgba(255,255,255,.08); }

  .main{ flex:1; min-width:0; }
  .topbar{ display:flex; justify-content:space-between; align-items:center; padding:16px 28px; background:var(--panel); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:6; }
  .region-tabs{ display:flex; gap:6px; }
  .region-tab{ padding:7px 14px; border-radius:8px; font-size:12.5px; font-weight:600; color:var(--muted); cursor:pointer; }
  .region-tab.active{ background:var(--ink); color:#fff; }
  .topbar-right{ display:flex; align-items:center; gap:14px; }
  .search-box{ display:flex; align-items:center; gap:8px; background:var(--bg); border:1px solid var(--line); border-radius:8px; padding:8px 12px; font-size:13px; color:var(--muted); width:230px; }
  .theme-toggle{ display:flex; border:1px solid var(--line); border-radius:20px; overflow:hidden; }
  .theme-toggle button{ border:none; background:transparent; color:var(--muted); font-size:12px; padding:6px 12px; cursor:pointer; font-weight:600; }
  .theme-toggle button.active{ background:var(--ink); color:#fff; }
  .alert-icon{ position:relative; font-size:16px; cursor:pointer; }
  .alert-icon .dot{ position:absolute; top:-2px; right:-2px; width:7px; height:7px; border-radius:50%; background:var(--coral); }
  .admin-chip{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; }
  .avatar{ width:30px; height:30px; border-radius:50%; background:var(--teal); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }

  .lang-dropdown{ position:relative; }
  .lang-current{ display:flex; align-items:center; gap:6px; padding:7px 12px; border:1px solid var(--line); border-radius:8px; cursor:pointer; font-size:12.5px; font-weight:600; background:var(--panel); user-select:none; }
  .lang-current .caret{ font-size:9px; opacity:.6; margin-left:2px; }
  .lang-menu{ position:absolute; top:calc(100% + 6px); right:0; min-width:170px; background:var(--panel); border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,0.25); padding:6px; display:none; flex-direction:column; gap:2px; z-index:20; }
  .lang-dropdown:hover .lang-menu, .lang-dropdown.open .lang-menu{ display:flex; }
  .lang-item{ display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:6px; cursor:pointer; font-size:13px; }
  .lang-item:hover{ background:var(--bg); }
  .lang-item.active{ color:var(--amber); font-weight:700; }

  .content{ padding:26px 28px 70px; }
  .page-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:22px; flex-wrap:wrap; gap:10px; }
  .page-head h1{ font-family:'Fraunces', serif; font-size:24px; font-weight:600; }
  .page-head p{ font-size:13px; color:var(--muted); margin-top:4px; }
  .breadcrumb{ font-size:12px; color:var(--muted); margin-bottom:8px; }
  .btn{ padding:9px 16px; border-radius:8px; font-size:13px; font-weight:600; cursor:pointer; border:1px solid var(--line); background:var(--panel); color:var(--text); }
  .btn-primary{ background:var(--ink); color:#fff; border-color:var(--ink); }
  .btn-sm{ padding:5px 11px; font-size:12px; }
  .btn-danger{ color:var(--coral); border-color:var(--coral-bg); }
  .btn-ok{ color:var(--teal); border-color:var(--teal-bg); }

  .kpi-grid{ display:grid; grid-template-columns:repeat(5, 1fr); gap:14px; margin-bottom:20px; }
  .kpi-card{ background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:18px; }
  .kpi-card .label{ font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
  .kpi-card .value{ font-family:'IBM Plex Mono', monospace; font-size:23px; font-weight:600; margin-top:8px; }
  .kpi-card .delta{ font-size:12px; margin-top:6px; font-weight:600; }
  .delta.up{ color:var(--teal); } .delta.down{ color:var(--coral); }

  .grid-2{ display:grid; grid-template-columns:1.6fr 1fr; gap:16px; margin-bottom:16px; }
  .grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:16px; }
  .panel{ background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:20px; margin-bottom:16px; }
  .panel-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; flex-wrap:wrap; gap:8px; }
  .panel-head h3{ font-size:15px; font-weight:600; }
  .panel-head span{ font-size:12px; color:var(--muted); }

  .chart-area{ height:200px; display:flex; align-items:flex-end; gap:4px; border-bottom:1px solid var(--line); }
  .chart-bar{ flex:1; min-width:0; background:var(--coral); border-radius:2px 2px 0 0; position:relative; cursor:default; transition:height .5s cubic-bezier(.22,.9,.32,1); }
  .chart-labels-row{ display:flex; gap:4px; margin-top:8px; }
  .chart-label{ flex:1; min-width:0; text-align:center; font-size:8px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; letter-spacing:-.02em; }
  .chart-bar:hover{ box-shadow:0 0 16px rgba(196,69,58,0.55); }
  .chart-bar .chart-tip{ position:absolute; bottom:100%; left:50%; transform:translateX(-50%); margin-bottom:6px; background:var(--ink); color:#fff; font-size:10.5px; padding:4px 7px; border-radius:5px; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .15s; }
  .chart-bar:hover .chart-tip{ opacity:1; }

  .live-board{ position:sticky; top:65px; z-index:4; background:var(--panel); border-bottom:1px solid var(--line); display:grid; grid-template-columns:repeat(4, 1fr); }
  .lb-col{ padding:12px 20px; border-right:1px solid var(--line); position:relative; overflow:hidden; }
  .lb-col:last-child{ border-right:none; }
  .lb-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
  .lb-label{ font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); display:flex; align-items:center; gap:6px; }
  .lb-pulse{ width:7px; height:7px; border-radius:50%; background:var(--teal); animation:pulse 1.6s infinite; }
  .lb-count{ font-family:'IBM Plex Mono', monospace; font-size:13px; font-weight:700; color:var(--amber); }
  .lb-latest{ font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .lb-latest .t{ color:var(--muted); font-size:11px; margin-left:6px; }
  @keyframes pulse{ 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.4; transform:scale(1.3);} }
  @keyframes fadeIn{ from{ opacity:0; transform:translateY(-4px);} to{ opacity:1; transform:translateY(0);} }
  .lb-fresh{ animation:fadeIn .35s ease; }

  .alert-row{ display:flex; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); font-size:13px; transition:background .12s ease; }
  .alert-row:hover{ background:var(--bg); }
  .alert-row:last-child{ border-bottom:none; }
  .alert-dot{ width:8px; height:8px; border-radius:50%; margin-top:5px; flex-shrink:0; }
  .alert-dot.high{ background:var(--coral); } .alert-dot.mid{ background:var(--amber); } .alert-dot.low{ background:var(--teal); }
  .alert-row .t{ font-weight:600; } .alert-row .d{ color:var(--muted); font-size:12px; margin-top:2px; }
  .tag-pill{ font-size:10px; font-weight:700; padding:2px 7px; border-radius:5px; margin-left:auto; height:fit-content; white-space:nowrap; }
  .tag-pill.high{ background:var(--coral-bg); color:var(--coral); }
  .tag-pill.mid{ background:var(--amber-bg); color:var(--amber); }
  .tag-pill.low{ background:var(--teal-bg); color:var(--teal); }

  table{ width:100%; border-collapse:collapse; font-size:13px; }
  th{ text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); padding:10px 8px; border-bottom:1px solid var(--line); white-space:nowrap; }
  td{ padding:12px 8px; border-bottom:1px solid var(--line); }
  tr:last-child td{ border-bottom:none; }
  tbody tr{ transition:background .12s ease; }
  tbody tr:hover{ background:var(--bg); }
  .status-pill{ font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; white-space:nowrap; }
  .status-pill.approved{ background:var(--teal-bg); color:var(--teal); }
  .status-pill.pending{ background:var(--amber-bg); color:var(--amber); }
  .status-pill.flagged{ background:var(--coral-bg); color:var(--coral); }

  .filter-tabs{ display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
  .filter-tab{ padding:7px 14px; border-radius:20px; font-size:12.5px; font-weight:600; color:var(--muted); border:1px solid var(--line); cursor:pointer; }

  /* ===== 입출금 프로세스 스테퍼 & 칸반 ===== */
  .stepper{ display:flex; align-items:flex-start; margin:18px 0 22px; }
  .step{ flex:1; text-align:center; position:relative; min-width:0; }
  .step:not(:first-child)::before{ content:''; position:absolute; top:15px; left:-50%; width:100%; height:2px; background:var(--line); z-index:0; }
  .step.done:not(:first-child)::before{ background:var(--teal); }
  .step-circle{ width:30px; height:30px; border-radius:50%; background:var(--panel); border:2px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; margin:0 auto 7px; position:relative; z-index:1; color:var(--muted); }
  .step.done .step-circle{ background:var(--teal); border-color:var(--teal); color:#fff; }
  .step.current .step-circle{ background:var(--amber); border-color:var(--amber); color:#1B2430; box-shadow:0 0 0 4px var(--amber-bg); }
  .step.rejected .step-circle{ background:var(--coral); border-color:var(--coral); color:#fff; }
  .step-label{ font-size:10px; color:var(--muted); line-height:1.3; padding:0 2px; }
  .step.done .step-label, .step.current .step-label, .step.rejected .step-label{ color:var(--text); font-weight:600; }

  .kanban-row{ display:grid; grid-template-columns:repeat(6,1fr); gap:10px; margin-bottom:20px; }
  .kanban-card{ background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:14px 10px; text-align:center; }
  .kanban-card .n{ font-family:'IBM Plex Mono', monospace; font-size:22px; font-weight:700; color:var(--amber); }
  .kanban-card .l{ font-size:10.5px; color:var(--muted); margin-top:4px; line-height:1.3; }
  .bank-info-box{ background:var(--bg); border:1px dashed var(--teal); border-radius:10px; padding:14px 16px; margin:12px 0; }
  .bank-info-box .row{ display:flex; justify-content:space-between; font-size:13px; padding:4px 0; }
  .filter-tab.active{ background:var(--ink); color:#fff; border-color:var(--ink); }

  .dash-range-bar{ display:flex; align-items:center; gap:8px; margin-bottom:18px; flex-wrap:wrap; }
  .dash-range-tab{ padding:8px 16px; border-radius:20px; font-size:12.5px; font-weight:600; color:var(--muted); border:1px solid var(--line); cursor:pointer; background:var(--panel); }
  .dash-range-tab.active{ background:var(--ink); color:#fff; border-color:var(--ink); }
  .dash-custom-box{ display:none; align-items:center; gap:8px; font-size:12.5px; }
  .dash-custom-box input[type="date"]{ padding:6px 10px; border-radius:6px; border:1px solid var(--line); background:var(--bg); color:var(--text); font-size:12px; }

  /* ===== World map (country connections) ===== */
  .world-map-container{ width:100%; height:280px; overflow:hidden; border-radius:8px; }
  .world-map-container .svgMap-map-wrapper{ padding-top:56% !important; }
  .world-map-legend{ display:flex; gap:16px; margin-top:12px; flex-wrap:wrap; font-size:12px; color:var(--muted); }
  .world-map-top{ display:flex; flex-direction:column; gap:6px; min-width:180px; }
  .wm-rank-row{ display:flex; justify-content:space-between; font-size:12.5px; padding:6px 0; border-bottom:1px solid var(--line); }
  .wm-rank-row:last-child{ border-bottom:none; }

  /* svgMap dark theme override */
  body[data-theme="dark"] .svgMap-map-wrapper{ background:#0B1420 !important; }
  body[data-theme="dark"] .svgMap-country{ fill:#1B2A3E !important; stroke:#0B1420 !important; }
  body[data-theme="dark"] .svgMap-country:hover, body[data-theme="dark"] .svgMap-country.svgMap-active{ stroke:#E8A23D !important; }
  body[data-theme="dark"] .svgMap-control-button{ background-color:#131F30 !important; }
  body[data-theme="dark"] .svgMap-control-button::before, body[data-theme="dark"] .svgMap-control-button::after{ background:#8B96A3 !important; }
  body[data-theme="dark"] .svgMap-tooltip{ background:#131F30 !important; border-color:#233247 !important; }
  body[data-theme="dark"] .svgMap-tooltip-title{ color:#E7EAEE !important; }
  body[data-theme="dark"] .svgMap-tooltip-content{ color:#8B96A3 !important; }
  body[data-theme="dark"] .svgMap-tooltip-content table td span{ color:#E7EAEE !important; }
  body[data-theme="dark"] .svgMap-tooltip-pointer::after{ background:#131F30 !important; border-color:#233247 !important; }

  .switch{ width:36px; height:20px; border-radius:20px; background:var(--line); position:relative; cursor:pointer; flex-shrink:0; }
  .switch.on{ background:var(--teal); }
  .switch::after{ content:''; position:absolute; width:16px; height:16px; border-radius:50%; background:#fff; top:2px; left:2px; transition:left .15s; }
  .switch.on::after{ left:18px; }

  .mini-input{ width:90px; padding:6px 8px; border-radius:6px; border:1px solid var(--line); background:var(--bg); color:var(--text); font-family:'IBM Plex Mono', monospace; font-size:12px; }
  .mini-input.wide{ width:110px; }

  .role-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
  .role-card{ border:1px solid var(--line); border-radius:10px; padding:16px; }
  .role-card h4{ font-size:14px; margin-bottom:4px; }
  .role-card .count{ font-size:12px; color:var(--muted); margin-bottom:12px; }
  .perm-row{ display:flex; justify-content:space-between; font-size:12px; padding:4px 0; color:var(--muted); }
  .perm-row b{ color:var(--text); font-weight:500; }

  .form-row{ margin-bottom:14px; }
  .form-row label{ display:block; font-size:12px; font-weight:600; margin-bottom:6px; color:var(--muted); }
  .form-row input, .form-row select{ width:100%; padding:9px 12px; border-radius:8px; border:1px solid var(--line); background:var(--input-bg); color:var(--text); font-size:13px; }

  .aff-tree{ display:flex; flex-direction:column; gap:6px; }
  .aff-node{ border:1px solid var(--line); border-radius:8px; padding:12px 14px; display:flex; align-items:center; gap:12px; background:var(--panel); }
  .aff-node.lvl-hq{ background:var(--ink); color:#fff; border-color:var(--ink); font-weight:700; }
  .aff-node.lvl-group{ border-left:3px solid var(--amber); }
  .aff-node.lvl-partner{ margin-left:28px; border-left:3px solid var(--teal); font-size:13px; }
  .aff-node.lvl-channel{ margin-left:56px; border-left:3px solid #8B96A3; font-size:12.5px; color:var(--muted); background:transparent; }
  .aff-tag{ font-size:10px; font-weight:700; padding:2px 8px; border-radius:10px; background:var(--teal-bg); color:var(--teal); }
  .aff-metric{ margin-left:auto; display:flex; gap:18px; font-family:'IBM Plex Mono', monospace; font-size:12px; }
  .aff-metric b{ display:block; font-size:10px; font-weight:400; color:var(--muted); font-family:'Inter',sans-serif; }

  .cal-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
  .cal-nav{ display:flex; align-items:center; gap:14px; }
  .cal-nav button{ background:none; border:1px solid var(--line); color:var(--text); border-radius:6px; width:28px; height:28px; cursor:pointer; }
  .cal-title{ font-size:15px; font-weight:600; }
  .cal-grid{ display:grid; grid-template-columns:repeat(7, 1fr); gap:8px; }
  .cal-dow{ font-size:11px; color:var(--muted); text-align:center; padding-bottom:4px; text-transform:uppercase; letter-spacing:.04em; }
  .cal-cell{ border:1px solid var(--line); border-radius:8px; padding:8px; min-height:96px; display:flex; flex-direction:column; gap:3px; }
  .cal-cell.empty{ border:none; }
  .cal-cell.today{ border-color:var(--amber); box-shadow:0 0 0 1px var(--amber) inset; }
  .cal-daynum{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--muted); margin-bottom:2px; }
  .cal-stat{ font-size:10.5px; display:flex; justify-content:space-between; gap:4px; }
  .cal-stat .k{ color:var(--muted); }
  .cal-stat .v{ font-family:'IBM Plex Mono', monospace; font-weight:600; }
  .cal-stat.ggr .v{ color:var(--amber); }
  .cal-stat.dep .v{ color:var(--teal); }
  .cal-stat.wd .v{ color:var(--coral); }
  .cal-legend{ display:flex; gap:18px; margin-top:14px; font-size:11.5px; color:var(--muted); flex-wrap:wrap; }
  .cal-legend span{ display:inline-flex; align-items:center; gap:6px; }
  .cal-legend .dotc{ width:8px; height:8px; border-radius:50%; }

  /* ===== Live betting P&L ===== */
  .pnl-panel{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
  .pnl-value{ font-family:'IBM Plex Mono', monospace; font-size:34px; font-weight:700; }
  .pnl-value.win{ color:var(--teal); }
  .pnl-value.lose{ color:var(--coral); }
  .pnl-sub{ font-size:12px; color:var(--muted); margin-top:4px; }
  .pnl-live-dot{ width:8px; height:8px; border-radius:50%; background:var(--coral); display:inline-block; animation:pulse 1.4s infinite; margin-right:6px; }
  .bet-row{ display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); font-size:13px; transition:background .12s ease; }
  .bet-row:hover{ background:var(--bg); }
  .bet-row:last-child{ border-bottom:none; }
  .bet-result{ font-size:10px; font-weight:800; padding:3px 8px; border-radius:5px; letter-spacing:.03em; }
  .bet-result.win{ background:var(--teal-bg); color:var(--teal); }
  .bet-result.lose{ background:var(--coral-bg); color:var(--coral); }
  .bet-amt{ margin-left:auto; font-family:'IBM Plex Mono', monospace; font-weight:700; }
  .bet-amt.win{ color:var(--teal); } .bet-amt.lose{ color:var(--coral); }

  /* ===== Pagination ===== */
  .pager{ display:flex; justify-content:space-between; align-items:center; margin-top:14px; flex-wrap:wrap; gap:10px; font-size:12.5px; color:var(--muted); }
  .pager-size select{ padding:5px 8px; border-radius:6px; border:1px solid var(--line); background:var(--bg); color:var(--text); font-size:12px; margin-left:6px; }
  .pager-pages{ display:flex; gap:4px; align-items:center; }
  .pager-btn{ min-width:28px; height:28px; padding:0 6px; border-radius:6px; border:1px solid var(--line); background:var(--panel); color:var(--text); cursor:pointer; font-size:12px; }
  .pager-btn.active{ background:var(--ink); color:#fff; border-color:var(--ink); }
  .pager-btn:disabled{ opacity:.35; cursor:not-allowed; }

  /* ===== Modal & Toast ===== */
  .modal-overlay{ position:fixed; inset:0; background:rgba(0,0,0,0.55); display:none; align-items:center; justify-content:center; z-index:50; padding:20px; }
  .modal-overlay.show{ display:flex; }
  .modal-box{ background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:26px; max-width:420px; width:100%; box-shadow:0 20px 60px rgba(0,0,0,0.4); }
  .modal-box.wide{ max-width:640px; }
  .modal-title{ font-size:16px; font-weight:700; margin-bottom:10px; }
  .modal-body{ font-size:13.5px; color:var(--muted); margin-bottom:22px; line-height:1.6; }
  .modal-actions{ display:flex; justify-content:flex-end; gap:10px; }
  .detail-row{ display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--line); font-size:13px; }
  .detail-row:last-child{ border-bottom:none; }
  .detail-row .k{ color:var(--muted); flex-shrink:0; }
  .toast{ position:fixed; bottom:24px; right:24px; background:var(--ink); color:#fff; padding:13px 20px; border-radius:8px; font-size:13px; font-weight:600; z-index:60; opacity:0; transform:translateY(10px); transition:all .25s ease; box-shadow:0 10px 30px rgba(0,0,0,0.35); pointer-events:none; }
  .toast.show{ opacity:1; transform:translateY(0); }

  @media(max-width:1100px){
    .kpi-grid{ grid-template-columns:repeat(2,1fr); }
    .grid-2, .grid-3, .role-grid{ grid-template-columns:1fr; }
  }

  /* ===== Mobile responsive ===== */
  .hamburger{ display:none; flex-direction:column; gap:4px; width:22px; cursor:pointer; margin-right:4px; }
  .hamburger span{ display:block; height:2px; background:var(--text); border-radius:2px; }
  .sidebar-overlay{ display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:9; }
  .sidebar-overlay.show{ display:block; }

  @media(max-width:900px){
    .hamburger{ display:flex; }
    .sidebar{
      position:fixed; left:0; top:0; z-index:10; transform:translateX(-100%);
      transition:transform .25s ease; box-shadow:0 0 30px rgba(0,0,0,0.4);
    }
    .sidebar.mobile-open{ transform:translateX(0); }
    .region-tabs{ display:none; }
    .search-box{ display:none; }
    .topbar{ padding:14px 16px; gap:10px; }
    .topbar-right{ gap:8px; }
    .admin-chip span{ display:none; }
    .content{ padding:16px 14px 60px; }
    .live-board{ grid-template-columns:repeat(2,1fr); position:static; }
    .lb-col{ padding:10px 12px; }
    .kpi-grid{ grid-template-columns:repeat(2,1fr) !important; gap:10px; }
    .page-head{ flex-direction:column; align-items:flex-start; }
    table{ font-size:12px; }
    .panel{ padding:14px; overflow-x:auto; }
    .panel table{ min-width:520px; }
    .lang-current span:not(.caret){ }
  }
  @media(max-width:520px){
    .kpi-grid{ grid-template-columns:1fr !important; }
    .live-board{ grid-template-columns:1fr; }
    .lb-col{ border-right:none; border-bottom:1px solid var(--line); }
    .role-grid{ grid-template-columns:1fr; }
    .theme-toggle button{ padding:6px 8px; font-size:11px; }
    .search-box{ display:none; }
  }