.oi-shell{
  max-width:1480px;
  margin:0 auto;
}

.oi-hero{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:18px 20px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(52,100,145,0.35), transparent 60%),
    linear-gradient(135deg, rgba(15,18,26,0.95), rgba(20,24,34,0.9));
  box-shadow:0 18px 40px rgba(0,0,0,0.35);
  margin-bottom:16px;
}

.oi-title-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.oi-title{
  margin:0;
  font-size:28px;
  font-weight:700;
  letter-spacing:0.01em;
}

.oi-hero-tag{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(34,197,94,0.14);
  border:1px solid rgba(34,197,94,0.5);
  color:#7cf4b1;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
}

.oi-subtitle{
  font-size:13px;
  color:var(--muted);
}

.oi-hero-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.oi-hero-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(12,15,21,0.7);
  font-size:12px;
  color:var(--text);
}

.oi-chip-label{
  text-transform:uppercase;
  font-size:10px;
  letter-spacing:0.08em;
  color:var(--muted);
}

.oi-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:12px;
  align-items:center;
}

.oi-view-toggle{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:2px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.24);
  background:rgba(12,15,21,0.7);
}

.oi-view-btn{
  border:none;
  background:transparent;
  color:var(--muted);
  border-radius:999px;
  padding:5px 10px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}

.oi-view-btn.is-active{
  color:#cbd5f5;
  background:rgba(59,130,246,0.22);
}

.oi-info-toggle{
  border:1px solid rgba(59,130,246,0.4);
  background:rgba(59,130,246,0.15);
  color:#93c5fd;
  border-radius:999px;
  padding:6px 14px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}

.oi-info-toggle[aria-expanded="false"]{
  background:rgba(148,163,184,0.12);
  border-color:rgba(148,163,184,0.3);
  color:var(--muted);
}

.oi-input,
.oi-select{
  background:#0f1116;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 12px;
  font-size:13px;
  min-height:34px;
}

.oi-input{
  min-width:220px;
}

.oi-select{
  min-width:170px;
}

.oi-select{
  padding-right:30px;
}

.oi-clear-btn{
  border:1px solid rgba(148,163,184,0.35);
  background:rgba(148,163,184,0.14);
  color:var(--text);
  border-radius:999px;
  padding:6px 14px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}

.oi-clear-btn:hover{
  border-color:rgba(147,197,253,0.6);
  background:rgba(30,41,59,0.8);
}

.oi-overview{
  display:grid;
  grid-template-columns:repeat(8, minmax(0, 1fr));
  gap:6px;
  margin-bottom:10px;
}

.oi-stat-card{
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(12,15,21,0.72);
  padding:7px 8px;
  min-height:62px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:3px;
}

.oi-stat-card.is-good{
  border-color:rgba(34,197,94,0.38);
  background:rgba(10,35,24,0.6);
}

.oi-stat-card.is-risk{
  border-color:rgba(251,191,36,0.38);
  background:rgba(43,29,9,0.58);
}

.oi-stat-label{
  font-size:9px;
  line-height:1;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--muted);
}

.oi-stat-value{
  font-size:14px;
  line-height:1.1;
  font-weight:700;
  color:var(--text);
  font-variant-numeric:tabular-nums;
}

.oi-stat-meta{
  font-size:9px;
  line-height:1.2;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.oi-info{
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(15,23,42,0.6);
  padding:12px 14px;
  margin-bottom:14px;
}

.oi-info.is-hidden{
  display:none;
}

.oi-info-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.oi-info-title{
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--muted);
}

.oi-info-close{
  width:28px;
  height:28px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(12,15,21,0.8);
  color:var(--text);
  font-size:16px;
  line-height:1;
  cursor:pointer;
}

.oi-info-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:10px;
  font-size:12px;
  color:var(--muted);
}

.oi-info-grid div{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.06);
  background:rgba(12,15,21,0.7);
}

.oi-table-wrap{
  position:relative;
  border-radius:14px;
  border:1px solid var(--border);
  overflow-x:auto;
  background:var(--panel);
  box-shadow:var(--shadow);
}

.oi-table-loading{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px;
  border-radius:14px;
  background:rgba(16,19,24,0.68);
  color:var(--text);
  font-size:13px;
  font-weight:600;
  z-index:6;
}

.oi-table-loading-spinner{
  width:18px;
  height:18px;
  border-radius:999px;
  border:2px solid rgba(240,199,122,0.35);
  border-top-color:#f0c77a;
  animation:oiTableSpin .9s linear infinite;
}

.oi-table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
  font-variant-numeric:tabular-nums;
  min-width:0;
  table-layout:fixed;
}

.oi-table-wrap.is-basic .oi-table{
  min-width:0;
}

.oi-table-wrap.is-basic .oi-advanced-col{
  display:none;
}

.oi-table-wrap.is-loading .oi-table-loading{
  display:flex;
}

.oi-table-wrap.is-loading .oi-table{
  opacity:0.42;
  pointer-events:none;
}

@keyframes oiTableSpin{
  to { transform:rotate(360deg); }
}

.oi-table th,
.oi-table td{
  padding:8px 8px;
  border-bottom:1px solid rgba(255,255,255,0.05);
  text-align:right;
  vertical-align:middle;
  height:42px;
}

.oi-row{
  height:42px;
}

.oi-table th:nth-child(2),
.oi-table td:nth-child(2){
  text-align:left;
}

.oi-table th:nth-child(3),
.oi-table td:nth-child(3){
  text-align:left;
}

.oi-table th:nth-child(1),
.oi-table td:nth-child(1){
  width:40px;
}

.oi-table th:nth-child(2),
.oi-table td:nth-child(2){
  width:130px;
}

.oi-table th:nth-child(3),
.oi-table td:nth-child(3){
  width:96px;
}

.oi-table th:nth-child(4),
.oi-table td:nth-child(4){
  width:102px;
}

.oi-table th:nth-child(5),
.oi-table td:nth-child(5){
  width:102px;
}

.oi-table th:nth-child(6),
.oi-table td:nth-child(6){
  width:116px;
}

.oi-table th:nth-child(7),
.oi-table td:nth-child(7){
  width:142px;
}

.oi-table th:nth-child(8),
.oi-table td:nth-child(8){
  width:72px;
}

.oi-table th.oi-note-head,
.oi-note-cell{
  text-align:left;
  width:180px;
  max-width:180px;
}

.oi-table th:nth-child(10),
.oi-table td:nth-child(10){
  width:88px;
  text-align:center;
  white-space:nowrap;
}

.oi-table th:nth-child(11),
.oi-table td:nth-child(11){
  width:84px;
  text-align:center;
}

.oi-table th{
  font-size:10px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--muted);
  background:rgba(12,15,21,0.9);
}

.oi-rank-head{
  width:48px;
  text-align:center !important;
}

.oi-rank-cell{
  text-align:center !important;
  width:48px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.oi-th-btn{
  border:none;
  background:transparent;
  color:inherit;
  font:inherit;
  letter-spacing:inherit;
  text-transform:inherit;
  padding:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.oi-th-btn::after{
  content:'↕';
  font-size:10px;
  line-height:1;
  color:rgba(148,163,184,0.75);
}

.oi-th-btn.is-active{
  color:#c7ddff;
}

.oi-th-btn.is-active::after{
  content:'↓';
  color:#93c5fd;
}

.oi-row{
  cursor:default;
}

.oi-row td{
  transition:background-color 0.2s ease;
}

.oi-row:nth-child(even) td{
  background:rgba(148,163,184,0.02);
}

.oi-row.is-active td{
  background:rgba(59,130,246,0.16);
}

.oi-row:hover td{
  background:rgba(148,163,184,0.08);
}

.oi-token{
  font-weight:700;
  color:#64b5ff;
}

.oi-token-inner{
  display:flex;
  align-items:center;
  gap:5px;
}

.oi-token-inner--sub{
  min-height:18px;
}

.oi-group-row td{
  background:transparent;
}

.oi-group-row:hover td{
  background:rgba(148,163,184,0.08);
}

.oi-token-text{
  display:inline-flex;
  align-items:center;
}

.oi-ex{
  text-align:left !important;
}

.oi-ex-inline{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-width:0;
}

.oi-ex-logo{
  display:inline-block;
  flex:0 0 auto;
  width:15px;
  height:15px;
  min-width:15px;
  border-radius:0;
  background-image:var(--oi-ex-logo);
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  border:none;
  background-color:transparent;
  box-shadow:none;
  transform:translateZ(0);
}

.oi-ex-label{
  display:inline-block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:68px;
}

.oi-ex-link{
  color:inherit;
  text-decoration:none;
}

.oi-ex-link-inline{
  display:inline-flex;
  align-items:center;
  max-width:100%;
}

.oi-ex-link:hover .oi-ex-label,
.oi-ex-link:focus-visible .oi-ex-label{
  color:#93c5fd;
  text-decoration:underline;
  text-underline-offset:2px;
  text-decoration-thickness:1px;
}

.oi-ex-link:focus-visible{
  outline:2px solid rgba(59,130,246,0.45);
  outline-offset:2px;
  border-radius:8px;
}

.oi-kpi-link .oi-ex-label{
  max-width:none;
}

.oi-group-toggle{
  width:20px;
  height:20px;
  border-radius:6px;
  border:1px solid rgba(148,163,184,0.35);
  background:rgba(15,23,42,0.5);
  color:rgba(148,163,184,0.8);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:700;
  line-height:1;
  padding:0;
}

.oi-group-toggle:hover{
  color:#dbeafe;
  border-color:rgba(147,197,253,0.6);
  background:rgba(30,41,59,0.85);
}

.oi-group-toggle.spacer{
  opacity:0;
  pointer-events:none;
  border:none;
  background:transparent;
}

.oi-group-badge{
  font-size:9px;
  padding:1px 5px;
  border-radius:999px;
  background:rgba(59,130,246,0.12);
  color:#b7dcff;
  border:1px solid rgba(59,130,246,0.22);
}

.oi-sub-row td{
  background:rgba(148,163,184,0.03);
}

.oi-sub-row:hover td{
  background:rgba(148,163,184,0.06);
}

.oi-sub-row td.oi-ex{
  padding-left:26px;
  position:relative;
}

.oi-sub-row td.oi-ex::before{
  content:'•';
  position:absolute;
  left:10px;
  color:rgba(148,163,184,0.6);
}

.oi-sub-token{
  color:var(--muted);
}

.oi-ex{
  font-weight:600;
  color:var(--text);
}

.oi-delta-col,
.oi-ratio-col{
  white-space:nowrap;
  text-align:right;
}

.oi-cell{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
  line-height:1.1;
  width:100%;
  min-width:0;
}

.oi-value{
  font-weight:600;
  color:var(--text);
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.oi-delta{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:10px;
  font-weight:600;
  letter-spacing:0.02em;
  padding:2px 6px;
  border-radius:999px;
  background:rgba(148,163,184,0.12);
  border:1px solid rgba(148,163,184,0.2);
  color:var(--muted);
  white-space:nowrap;
}

.oi-meter{
  width:100%;
  max-width:80px;
  height:4px;
  border-radius:999px;
  background:rgba(148,163,184,0.2);
  overflow:hidden;
}

.oi-meter span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(59,130,246,0.45), rgba(34,197,94,0.78));
}

.oi-delta.up{
  color:#22c55e;
  background:rgba(34,197,94,0.16);
  border-color:rgba(34,197,94,0.35);
}

.oi-delta.down{
  color:#ef4444;
  background:rgba(239,68,68,0.16);
  border-color:rgba(239,68,68,0.35);
}

.oi-delta.flat{
  color:#94a3b8;
  background:rgba(148,163,184,0.12);
  border-color:rgba(148,163,184,0.25);
}

.oi-age{
  color:var(--muted);
}

.oi-age-stale{
  color:#fbbf24;
  font-weight:600;
}

.oi-note-cell{
  white-space:normal;
}

.oi-note-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  min-width:0;
}

.oi-note-sub{
  font-size:10px;
  line-height:1.25;
  color:var(--muted);
  white-space:nowrap;
  display:block;
  width:100%;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:right;
}

.oi-note-text{
  display:block;
  font-size:11px;
  line-height:1.25;
  color:var(--muted);
  word-break:break-word;
}

.oi-note-text.muted{
  color:var(--muted);
}

.oi-note-list{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}

.oi-note{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px 9px;
  border-radius:999px;
  font-size:10px;
  font-weight:650;
  letter-spacing:0.02em;
  border:1px solid rgba(148,163,184,0.2);
  background:rgba(148,163,184,0.12);
  color:var(--muted);
  white-space:nowrap;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  align-self:flex-end;
}

.oi-note.good{
  color:#22c55e;
  background:rgba(34,197,94,0.14);
  border-color:rgba(34,197,94,0.35);
}

.oi-note.bad{
  color:#ef4444;
  background:rgba(239,68,68,0.14);
  border-color:rgba(239,68,68,0.35);
}

.oi-note.warn{
  color:#fbbf24;
  background:rgba(251,191,36,0.14);
  border-color:rgba(251,191,36,0.35);
}

.oi-note.neutral{
  color:#38bdf8;
  background:rgba(56,189,248,0.12);
  border-color:rgba(56,189,248,0.35);
}

.oi-note.muted{
  color:var(--muted);
}

.oi-empty{
  text-align:center;
  padding:24px 10px;
  color:var(--muted);
}

.oi-detail-host{
  display:block;
}

.oi-detail-row td{
  padding:0 10px 12px;
  border-bottom:none;
  background:transparent;
}

.oi-detail-row:hover td{
  background:transparent;
}

.oi-detail{
  margin-bottom:14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:var(--panel);
  box-shadow:var(--shadow);
  padding:14px;
  width:100%;
}

.oi-detail.hidden{
  display:none;
}

.oi-detail-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.oi-detail-title{
  font-weight:700;
  font-size:16px;
}

.oi-detail-badge{
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  border:1px solid rgba(59,130,246,0.4);
  color:#93c5fd;
  background:rgba(59,130,246,0.15);
}

.oi-detail-close{
  width:32px;
  height:32px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(15,23,42,0.7);
  color:var(--text);
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

.oi-detail-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap:10px;
}

.oi-detail-summary{
  display:grid;
  grid-template-columns:repeat(8, minmax(0, 1fr));
  gap:6px;
  margin-bottom:10px;
}

.oi-detail-summary-empty{
  grid-column:1 / -1;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(12,15,21,0.65);
  color:var(--muted);
  font-size:12px;
  padding:10px 12px;
}

.oi-kpi{
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(12,15,21,0.65);
  padding:7px 9px;
  display:flex;
  flex-direction:column;
  gap:5px;
  min-height:56px;
}

.oi-kpi-wide{
  grid-column:span 2;
}

.oi-kpi-label{
  font-size:9px;
  line-height:1;
  letter-spacing:0.07em;
  text-transform:uppercase;
  color:var(--muted);
}

.oi-kpi-value{
  font-size:12px;
  font-weight:700;
  color:var(--text);
  display:flex;
  align-items:center;
}

.oi-kpi-stack{
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}

.oi-kpi-main{
  font-size:14px;
  line-height:1.1;
}

.oi-chart-card,
.oi-detail-table-wrap{
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(12,15,21,0.7);
  padding:12px;
  min-width:0;
}

.oi-chart-title{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color:var(--muted);
  margin-bottom:10px;
}

#oi-chart{
  width:100%;
  min-height:180px;
}

.oi-chart-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}

.oi-chart-meta-title{
  font-size:10px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--muted);
}

.oi-delta-list{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.oi-delta-chip{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:2px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:600;
  border:1px solid rgba(148,163,184,0.2);
  background:rgba(148,163,184,0.12);
  color:var(--muted);
  white-space:nowrap;
}

.oi-delta-chip.up{
  color:#22c55e;
  background:rgba(34,197,94,0.14);
  border-color:rgba(34,197,94,0.35);
}

.oi-delta-chip.down{
  color:#ef4444;
  background:rgba(239,68,68,0.14);
  border-color:rgba(239,68,68,0.35);
}

.oi-delta-chip.flat{
  color:#94a3b8;
  background:rgba(148,163,184,0.12);
  border-color:rgba(148,163,184,0.25);
}

.oi-delta-chip.muted{
  color:var(--muted);
}

.oi-ratio{
  font-weight:600;
  color:var(--text);
}

.oi-ratio.high{
  color:#fbbf24;
}

.oi-detail-table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
  font-variant-numeric:tabular-nums;
}

.oi-detail-table th,
.oi-detail-table td{
  padding:8px 8px;
  border-bottom:1px solid rgba(255,255,255,0.05);
  text-align:right;
}

.oi-detail-table th:last-child,
.oi-detail-table td:last-child{
  width:56px;
  text-align:center;
}

.oi-detail-table th:first-child,
.oi-detail-table td:first-child{
  text-align:left;
}

.oi-detail-table th{
  font-size:10px;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--muted);
}

.oi-detail-table-wrap{
  max-height:300px;
  overflow:auto;
}

.oi-detail-table tr.is-active td{
  background:rgba(59,130,246,0.14);
}

.oi-actions{
  text-align:center !important;
  width:84px;
}

.oi-open-detail,
.oi-select-ex{
  border-radius:8px;
  border:1px solid rgba(59,130,246,0.35);
  background:rgba(59,130,246,0.15);
  color:#93c5fd;
  font-size:10px;
  font-weight:700;
  padding:4px 7px;
  line-height:1;
  cursor:pointer;
}

.oi-update-cell{
  text-align:center !important;
}

.oi-update-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
}

.oi-update-wrap .oi-open-detail{
  min-width:54px;
  padding:3px 6px;
  font-size:10px;
}

.oi-select-ex-icon{
  width:34px;
  min-width:34px;
  height:32px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.oi-select-ex-icon i{
  font-size:14px;
  line-height:1;
}

.oi-open-detail.is-active,
.oi-select-ex.is-active{
  background:rgba(34,197,94,0.18);
  border-color:rgba(34,197,94,0.5);
  color:#86efac;
}

body.light .oi-hero{
  border-color:#e2e8f0;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(191,219,254,0.45), transparent 60%),
    linear-gradient(135deg, #ffffff, #f1f5f9);
  box-shadow:0 14px 30px rgba(15, 23, 42, 0.08);
}

body.light .oi-hero-chip{
  background:#ffffff;
  border-color:#e2e8f0;
  color:var(--text);
}

body.light .oi-hero-tag{
  background:#dcfce7;
  border-color:#16a34a;
  color:#166534;
}

body.light .oi-input,
body.light .oi-select{
  background:#ffffff;
  border-color:#e2e8f0;
  color:var(--text);
}

body.light .oi-clear-btn{
  background:#ffffff;
  border-color:#cbd5e1;
  color:#0f172a;
}

body.light .oi-clear-btn:hover{
  background:#f1f5f9;
  border-color:#93c5fd;
}

body.light .oi-info-toggle{
  background:#e0f2fe;
  border-color:#7dd3fc;
  color:#0369a1;
}

body.light .oi-info-toggle[aria-expanded="false"]{
  background:#ffffff;
  border-color:#e2e8f0;
  color:#64748b;
}

body.light .oi-view-toggle{
  border-color:#cbd5e1;
  background:#ffffff;
}

body.light .oi-view-btn{
  color:#64748b;
}

body.light .oi-view-btn.is-active{
  color:#0f172a;
  background:#e2e8f0;
}

body.light .oi-info{
  border-color:#e2e8f0;
  background:#ffffff;
}

body.light .oi-info-close{
  background:#ffffff;
  border-color:#e2e8f0;
}

body.light .oi-info-grid div{
  border-color:#e2e8f0;
  background:#f8fafc;
  color:#475569;
}

body.light .oi-stat-card{
  border-color:#e2e8f0;
  background:#ffffff;
}

body.light .oi-stat-card.is-good{
  border-color:#86efac;
  background:#f0fdf4;
}

body.light .oi-stat-card.is-risk{
  border-color:#fcd34d;
  background:#fffbeb;
}

body.light .oi-row:nth-child(even) td{
  background:#f8fafc;
}

body.light .oi-row.is-active td{
  background:#dbeafe;
}

body.light .oi-row:hover td{
  background:#f1f5f9;
}

body.light .oi-table th{
  background:#1f2937;
  color:#e2e8f0;
  border-bottom-color:rgba(255,255,255,0.12);
}

body.light .oi-table-loading{
  background:rgba(255,255,255,0.84);
  color:#2b313a;
}

body.light .oi-table-loading-spinner{
  border-color:rgba(43,49,58,0.2);
  border-top-color:rgba(181,132,31,0.85);
}

body.light .oi-th-btn{
  color:inherit;
}

body.light .oi-th-btn.is-active{
  color:#ffffff;
}

body.light .oi-th-btn::after{
  color:#cbd5e1;
}

body.light .oi-th-btn.is-active::after{
  color:#93c5fd;
}

body.light .oi-token{
  color:#2f8cff;
}

body.light .oi-ex-logo{
  border:none;
  background-color:transparent;
  box-shadow:none;
}

body.light .oi-group-badge{
  background:#dbeafe;
  color:#1e3a8a;
  border-color:#93c5fd;
}

body.light .oi-meter{
  background:#e2e8f0;
}

body.light .oi-age-stale{
  color:#b45309;
}

body.light .oi-group-toggle{
  border-color:#cbd5e1;
  background:#f8fafc;
  color:#475569;
}

body.light .oi-group-toggle:hover{
  border-color:#93c5fd;
  background:#eff6ff;
  color:#1d4ed8;
}

body.light .oi-detail{
  border-color:#e2e8f0;
  background:#ffffff;
}

body.light .oi-chart-card,
body.light .oi-detail-table-wrap{
  border-color:#e2e8f0;
  background:#f8fafc;
}

body.light .oi-kpi,
body.light .oi-detail-summary-empty{
  border-color:#e2e8f0;
  background:#f8fafc;
}

body.light .oi-detail-close{
  background:#ffffff;
  border-color:#e2e8f0;
}

body.light .oi-open-detail,
body.light .oi-select-ex{
  border-color:#93c5fd;
  background:#e0f2fe;
  color:#075985;
}

body.light .oi-open-detail.is-active,
body.light .oi-select-ex.is-active{
  background:#dcfce7;
  border-color:#86efac;
  color:#166534;
}

@media (max-width: 900px){
  .oi-toolbar{
    gap:8px;
  }
  .oi-input,
  .oi-select,
  .oi-clear-btn,
  .oi-info-toggle{
    width:100%;
    min-width:0;
    justify-content:center;
  }
  .oi-view-toggle{
    width:100%;
    justify-content:center;
  }
  .oi-overview{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .oi-table{
    font-size:12px;
  }
  .oi-table th,
  .oi-table td{
    padding:8px 8px;
  }
  .oi-table-wrap{
    border-radius:12px;
  }
  .oi-note-head,
  .oi-note-cell{
    min-width:180px;
  }
  .oi-detail-grid{
    grid-template-columns:1fr;
  }
  .oi-info-grid{
    grid-template-columns:1fr;
  }
  .oi-detail-summary{
    grid-template-columns:1fr 1fr;
  }
  .oi-kpi-wide{
    grid-column:1 / -1;
  }
  .oi-detail-table-wrap{
    max-height:280px;
  }
}

@media (max-width: 1600px){
  .oi-overview{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:8px;
  }
  .oi-stat-card{
    min-height:70px;
    padding:8px 9px;
  }
  .oi-stat-value{
    font-size:16px;
  }
  .oi-stat-meta{
    font-size:10px;
  }
}

@media (max-width: 1280px){
  .oi-detail-summary{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1500px){
  .oi-table{
    font-size:11px;
  }
  .oi-table th,
  .oi-table td{
    padding:7px 6px;
  }
  .oi-table th.oi-note-head,
  .oi-note-cell{
    width:140px;
    max-width:140px;
  }
  .oi-note-sub{
    display:none;
  }

  .oi-table th:nth-child(2),
  .oi-table td:nth-child(2){
    width:116px;
  }

  .oi-table th:nth-child(3),
  .oi-table td:nth-child(3){
    width:88px;
  }
}

@media (max-width: 1100px){
  .oi-detail-grid{
    grid-template-columns:1fr;
  }
}
