[hidden]{display:none!important}
body *{letter-spacing:0!important}
:root{--ops-surface:#17191d;--ops-line:#303338;--ops-muted:#a0a6af;--ops-green:#62d7ac;--ops-amber:#e8bc64}
.nav-icon .lucide{width:18px;height:18px}
.ops-shell{display:grid;gap:20px}
.ops-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.ops-heading h1{font-size:24px;line-height:1.3;margin:6px 0 0;font-weight:700;letter-spacing:0;overflow-wrap:anywhere;color:#f8fafc}
.ops-eyebrow{font-size:11px;color:var(--ops-muted);font-weight:600;letter-spacing:0.04em;text-transform:uppercase}
.ops-inline,.ops-row-actions{display:flex;align-items:center;gap:8px}
.ops-button,.ops-icon{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #41454d;border-radius:8px;background:#202329;color:#e8ebef;min-height:36px;padding:7px 12px;font-size:12px;font-weight:600;line-height:1.4;transition:background .15s,border-color .15s;white-space:nowrap;cursor:pointer}
.ops-button:hover,.ops-icon:hover{background:#30343c;border-color:#69707c}
.ops-button:focus-visible,.ops-icon:focus-visible,.ops-metric:focus-visible{outline:2px solid #87b9ff;outline-offset:3px}
.ops-button.primary{background:#2869d5;border-color:#4a88ef;color:white}
.ops-button.primary:hover{background:#3276e8;border-color:#669cf4}
.ops-button.retry{border-color:#665632;color:#efc778;background:#302a1e}
.ops-button.retry:hover{background:#3d3525;border-color:#826e40}
.ops-icon{width:36px;min-width:36px;height:36px;padding:8px}
.ops-icon.danger{color:#fb9494}
.ops-button:disabled,.ops-icon:disabled{opacity:.45;cursor:default}
.ops-button .lucide,.ops-icon .lucide,.ops-metric .lucide{width:16px;height:16px;flex-shrink:0}
.ops-muted{color:var(--ops-muted)}
.ops-connection{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:13px 0;border-top:1px solid var(--ops-line);border-bottom:1px solid var(--ops-line);font-size:12px;color:#e2e8f0}
.ops-connection>span:last-child{margin-left:auto}
.ops-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#e8bc64;flex-shrink:0;box-shadow:0 0 8px rgba(232,188,100,0.45)}
.ops-dot.online{background:var(--ops-green);box-shadow:0 0 8px rgba(98,215,172,0.55)}
.ops-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:20px 0}
.ops-metric{padding:18px;border-radius:14px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);text-align:left;color:var(--ops-muted);min-height:84px;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.ops-metric:hover{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.16)}
.ops-metric span{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600}
.ops-metric strong{display:block;font-size:26px;font-weight:800;font-variant-numeric:tabular-nums;color:#ffffff;margin-top:8px}
.ops-metric.selected{border-color:rgba(232,188,100,0.55);background:rgba(232,188,100,0.08)}
.ops-metric.selected span{color:var(--ops-amber)}
.ops-note{padding:16px 18px;border-radius:16px;background:rgba(255,255,255,0.025);border:1px solid rgba(255,255,255,0.08);color:var(--text-secondary);line-height:1.65}
.ops-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;flex-wrap:wrap}
.ops-search{display:flex;align-items:center;gap:9px;flex:1;max-width:520px;min-width:240px;border:1px solid #3c4148;border-radius:8px;padding:0 12px;background:#131519;height:40px}
.ops-search:focus-within{border-color:#7ab1ff;outline:1px solid rgba(122,177,255,0.4)}
.ops-search .lucide{width:17px;height:17px;color:var(--ops-muted);flex-shrink:0}
.ops-search input{border:none;outline:none;background:none;color:#f1f5f9;width:100%;min-width:0;font-size:12.5px}
.ops-search input::placeholder{color:#64748b}
.ops-select{display:flex;align-items:center;gap:10px;color:var(--ops-muted);font-size:12px;font-weight:600}
.ops-select select,.ops-field input,.ops-field textarea{border:1px solid #454a54;background:#15171b;border-radius:8px;color:#e9ebef;padding:9px 12px;outline:none;min-height:40px;max-width:100%;font-size:12.5px}
.ops-select select option{background:#15171b;color:#e9ebef}
.ops-field input:focus,.ops-field textarea:focus,.ops-select select:focus{border-color:#7ab1ff;outline:1px solid #7ab1ff}
.ops-table-wrap{overflow-x:auto;width:100%;border:1px solid var(--ops-line);border-radius:12px;background:#12151a}
.ops-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;min-width:880px}
.ops-table th{background:#181b20;text-align:left;color:#a8afb9;font-size:11px;font-weight:700;padding:12px 14px;text-transform:uppercase;letter-spacing:0.03em}
.ops-table td{padding:15px 14px;vertical-align:top;border-top:1px solid #252930;overflow-wrap:anywhere;line-height:1.6}
.ops-table tr:hover td{background:rgba(255,255,255,0.02)}
.ops-table th:nth-child(1){width:28%}.ops-table th:nth-child(2){width:16%}.ops-table th:nth-child(3){width:21%}.ops-table th:nth-child(4){width:15%}.ops-table th:nth-child(5){width:20%}
.ops-table td strong{display:block;font-size:12.5px;font-weight:700;margin-bottom:3px;color:#f0f1f3;line-height:1.4}
.ops-table td small,.ops-table td>span.ops-mono{display:block;color:var(--ops-muted);font-size:11px;margin-top:2px}
.ops-mono{font-family:ui-monospace,Consolas,monospace;font-size:10.5px;overflow-wrap:anywhere}
.ops-link{display:block;text-align:left;color:#8dbbff;margin:2px 0;background:none;border:none;padding:0;cursor:pointer}
.ops-link:hover{text-decoration:underline;color:#b4d4ff}
.ops-row-actions{justify-content:flex-end;flex-wrap:wrap;gap:6px}
.ops-row-actions .ops-button{min-height:32px;padding:5px 9px;font-size:11px}
.ops-row-actions .ops-icon{width:32px;min-width:32px;height:32px;padding:6px}
.ops-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border:1px solid #434852;border-radius:999px;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:0.04em;white-space:nowrap;background:#252931;color:#d1d5dc}
.ops-badge.held{background:rgba(56,189,248,0.14);color:#7dd3fc;border-color:rgba(56,189,248,0.34)}
.ops-badge.queued,.ops-badge.dispatching{background:rgba(47,104,254,0.14);color:#8fb1ff;border-color:rgba(47,104,254,0.34)}
.ops-badge.needs_review{background:rgba(245,158,11,0.16);color:#fcd34d;border-color:rgba(245,158,11,0.35)}
.ops-badge.confirmed{background:rgba(16,185,129,0.16);color:#6ee7b7;border-color:rgba(16,185,129,0.35)}
.ops-badge.executing,.ops-badge.leased,.ops-badge.submitted{background:#1c2d42;color:#91c0fa;border-color:#365577}
.ops-badge.refunded{background:#292931;color:#bcbbce;border-color:#434352}
.ops-badge.cancelled,.ops-badge.failed{background:rgba(239,68,68,0.16);color:#fca5a5;border-color:rgba(239,68,68,0.35)}
.ops-badge.owner{background:#302c3a;color:#cdbce9;border-color:#5f5271}
.ops-order-note{margin-top:6px;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ops-empty{text-align:center;padding:50px 12px!important;color:var(--ops-muted)}
.ops-right{text-align:right!important}
.ops-actions{display:flex;flex-wrap:wrap;gap:8px}
.ops-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ops-muted);font-size:11.5px;padding:14px 2px}
.ops-alert,.ops-notice{margin:14px 0;padding:12px 14px;border:1px solid #744343;border-radius:8px;color:#fac1bd;background:#332020;font-size:12px;line-height:1.6}
.ops-notice{color:#efd198;background:#30291b;border-color:#675533}
.ops-dialog{position:fixed;inset:0;margin:auto;padding:24px;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 36px);overflow:auto;background:#1b1e24;color:#edf0f3;border:1px solid #484e58;border-radius:12px;box-shadow:0 24px 80px #000a}
.ops-dialog::backdrop{background:#000a}
.ops-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.ops-dialog h2{font-size:18px;line-height:1.4;overflow-wrap:anywhere;margin:0}
.ops-dialog h3{font-size:14px;margin:20px 0 10px;overflow-wrap:anywhere}
.ops-dialog p{color:#bfc5cf;font-size:12px;line-height:1.7;margin:12px 0}
.ops-dialog-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}
.ops-field{display:flex;flex-direction:column;gap:8px;font-size:12px;margin:18px 0}
.ops-field textarea{resize:vertical;width:100%}
.ops-check{display:flex;gap:10px;align-items:flex-start;font-size:12px;color:#e8c284;line-height:1.6;margin-top:18px}
.ops-check input{margin-top:3px;width:16px;height:16px;accent-color:#d4a54f;flex-shrink:0}
.ops-action-order{font-size:13px;color:#e8ebef;overflow-wrap:anywhere;padding-bottom:14px;border-bottom:1px solid var(--ops-line)}
.ops-detail{width:min(700px,calc(100vw - 28px))}
.ops-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.7 ui-monospace,Consolas,monospace;background:#111317;border:1px solid #343943;border-radius:6px;padding:12px;color:#c6cedb;max-height:260px;overflow:auto}
.ops-facts{display:grid;grid-template-columns:115px minmax(0,1fr);gap:12px 15px;margin:20px 0;font-size:12px}
.ops-facts dt{color:var(--ops-muted)}.ops-facts dd{margin:0;overflow-wrap:anywhere}
.ops-timeline article{border-left:2px solid #505c6b;padding:0 0 18px 14px;margin-top:16px;font-size:12px}
.ops-timeline small{display:block;color:var(--ops-muted);margin-top:4px}
.ops-permissions{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:18px 0;margin-bottom:24px;border-top:1px solid var(--ops-line);border-bottom:1px solid var(--ops-line);font-size:12px}
.ops-permissions strong{display:block;margin-bottom:6px}.ops-permissions span{color:var(--ops-muted);line-height:1.7}
.bottom-row{grid-template-columns:minmax(0,1fr)!important}
.tab-view{min-width:0}.main-wrapper{min-width:0}.content-area{min-width:0}
#deliveryWorkspace,#adminWorkspace{min-width:0;width:100%;letter-spacing:0}
@media(max-width:1120px){
  .ops-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
  .top-header{gap:12px;flex-wrap:wrap;height:auto;min-height:72px;padding:12px 18px}
  .header-left{flex:1;min-width:160px}
  .header-right{flex-wrap:wrap;justify-content:flex-end;gap:8px}
  .status-indicator-pill{max-width:100%;white-space:normal}
  .header-search{width:100%;min-width:0}
  .top-header .header-search input{width:100%;min-width:0}
  .ops-heading h1{font-size:22px}
}
@media(max-width:768px){
  .sidebar{position:relative;left:0;top:auto;bottom:auto;width:64px;min-width:64px}
  .sidebar.collapsed{width:64px;min-width:64px}
  .sidebar .nav-label,.sidebar .nav-group-title,.sidebar .brand-info,.sidebar .nav-badge{display:none}
  .sidebar .nav-item{justify-content:center}
  .nav-item[href="/dashboard/game-logs.html"]{display:none}
  .main-wrapper{flex:1;width:auto}
}
@media(max-width:700px){
  .sidebar{width:64px;min-width:64px;padding:16px 6px}
  .sidebar .brand-info,.sidebar .nav-label,.sidebar .nav-group-title,.sidebar .nav-badge,.sidebar .sidebar-collapse-btn{display:none}
  .sidebar .brand-icon{margin:0}
  .sidebar .nav-item{padding:12px;justify-content:center;min-height:42px}
  .sidebar .brand-wrapper{justify-content:center}
  .sidebar .sidebar-header{padding:0 0 16px}
  .nav-item[href="/dashboard/game-logs.html"]{display:none}
  .top-header{padding:10px 12px}
  .header-left{flex-basis:100%}
  .header-right{justify-content:flex-start;width:100%}
  .header-right .status-indicator-pill{font-size:10px;order:2;width:100%}
  .user-profile-badge{margin-left:0!important}
  .main-content{padding:18px 12px!important}
  .ops-heading{align-items:flex-start;gap:8px}
  .ops-heading h1{font-size:20px}
  .ops-heading>.ops-inline{flex-wrap:wrap;justify-content:flex-end}
  .ops-heading .ops-button{font-size:11px;padding:7px}
  .ops-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
  .ops-metric{padding:14px;min-height:78px}
  .ops-metric span{font-size:11px}
  .ops-metric strong{font-size:22px}
  .ops-toolbar{flex-direction:column;align-items:stretch}
  .ops-search{max-width:none;flex:none}
  .ops-select{justify-content:space-between}
  .ops-select select{min-width:160px}
  .ops-connection{font-size:11px}
  .ops-connection>span:last-child{margin-left:0;flex-basis:100%}
  .ops-permissions{grid-template-columns:1fr;gap:18px}
  .ops-dialog{padding:18px}
  .ops-facts{grid-template-columns:90px minmax(0,1fr)}
}
