.smb-app {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-sans, Inter, sans-serif);
}
.smb-panel {
  padding: 20px;
  background: #f8fafc;
  border-right: 1px solid #d8e1ec;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.smb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.smb-field { display: flex; flex-direction: column; gap: 4px; }
.smb-field.is-full { grid-column: 1 / -1; }
.smb-field label { font-size: 12px; font-weight: 600; color: #334155; }
.smb-input, .smb-select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
}
.smb-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 12px;
  color: #1e3a8a;
}
.smb-link-btn {
  background: transparent;
  border: 1px solid #2563eb;
  color: #1d4ed8;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.smb-link-btn:hover { background: #dbeafe; }
.smb-actions { display: flex; flex-direction: column; gap: 8px; }
.smb-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.smb-btn {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #94a3b8;
  background: transparent;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.smb-btn:hover { background: #e2e8f0; }
.smb-btn.is-primary { background: #1d4ed8; border-color: #1d4ed8; color: #ffffff; }
.smb-btn.is-primary:hover { background: #1e40af; }
.smb-status { font-size: 12px; color: #0f766e; font-weight: 600; min-height: 16px; }
.smb-right {
  background: #0f172a;
  color: #e2e8f0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.smb-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #93c5fd;
  flex-wrap: wrap;
}
.smb-pill {
  padding: 3px 8px;
  border-radius: 4px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #34d399;
}
.smb-pill.is-warn { color: #fbbf24; border-color: #fbbf24; }
.smb-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.smb-kpi {
  background: #162032;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-mono, monospace);
}
.smb-kpi.is-accent { border-color: #38bdf8; }
.smb-kpi span { font-size: 11px; color: #94a3b8; }
.smb-kpi strong { font-size: 17px; color: #f8fafc; }
.smb-kpi small { font-size: 11px; color: #38bdf8; }
.smb-canvas-wrap {
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.smb-canvas-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #94a3b8;
}
.smb-legend { display: flex; align-items: center; gap: 10px; }
.smb-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 4px;
}
.smb-dot.is-outline { background: #38bdf8; }
.smb-dot.is-center { background: #f59e0b; }
.smb-dot.is-zone { background: #34d399; }
#smbCanvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background: #070d18;
}
@media (max-width: 960px) {
  .smb-app { grid-template-columns: 1fr; }
  .smb-panel { border-right: none; border-bottom: 1px solid #d8e1ec; }
  .smb-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .smb-kpis { grid-template-columns: 1fr; }
}