.ops-floating-shell {
  position: fixed;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.ops-floating-shell > * {
  pointer-events: auto;
}

.ops-alert-strip {
  display: grid;
  gap: 8px;
}

.ops-alert {
  border-radius: 16px;
  border: 1px solid rgba(193, 104, 0, 0.12);
  background: rgba(255, 248, 235, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 12px 14px;
}

.ops-alert strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #8a4a00;
}

.ops-alert p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #7a5a2d;
}

.ops-alert--error {
  border-color: rgba(185, 28, 28, 0.16);
  background: rgba(254, 242, 242, 0.98);
}

.ops-alert--error strong,
.ops-alert--error p {
  color: #9f1239;
}

.ops-alert--success {
  border-color: rgba(21, 128, 61, 0.14);
  background: rgba(240, 253, 244, 0.98);
}

.ops-alert--success strong,
.ops-alert--success p {
  color: #166534;
}

.ops-alert--info {
  border-color: rgba(37, 99, 235, 0.12);
  background: rgba(239, 246, 255, 0.98);
}

.ops-alert--info strong,
.ops-alert--info p {
  color: #1d4ed8;
}

.ops-notification-panel {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  padding: 14px;
}

.ops-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ops-panel-header strong {
  font-size: 14px;
  color: #0f172a;
}

.ops-panel-header span {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff3e3;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
}

.ops-panel-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ops-panel-action {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 9px;
}

.ops-panel-action:disabled {
  cursor: wait;
  opacity: 0.64;
}

.ops-notification-list {
  display: grid;
  gap: 10px;
  max-height: min(48vh, 360px);
  overflow-y: auto;
}

.ops-notification-item {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  padding: 12px;
}

.ops-notification-item--unread {
  border-color: rgba(37, 99, 235, 0.18);
  background: #f8fbff;
}

.ops-notification-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ops-notification-item strong {
  font-size: 13px;
  color: #0f172a;
}

.ops-notification-item p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

.ops-notification-item small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #64748b;
}

.ops-notification-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.ops-notification-item__footer small {
  margin-top: 0;
}

.ops-state-card {
  border-radius: 16px;
  border: 1px dashed rgba(203, 213, 225, 0.9);
  background: #ffffff;
  padding: 14px;
}

.ops-state-card strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.ops-state-card p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.ops-state-card--error {
  border-color: rgba(248, 113, 113, 0.4);
  background: #fff5f5;
}

.ops-state-card--error strong,
.ops-state-card--error p {
  color: #991b1b;
}

.ops-status-pill {
  border-radius: 999px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ops-status-pill--info {
  background: #eff6ff;
  color: #1d4ed8;
}

.ops-status-pill--success {
  background: #ecfdf5;
  color: #15803d;
}

.ops-status-pill--warning {
  background: #fff7ed;
  color: #c2410c;
}

.ops-status-pill--error {
  background: #fef2f2;
  color: #b91c1c;
}

.ops-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ops-stat-card {
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.98);
  padding: 14px;
}

.ops-stat-card span,
.ops-stat-card small {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.ops-stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  color: #0f172a;
}

@media (min-width: 768px) {
  .ops-floating-shell {
    bottom: 24px;
  }

  .ops-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ops-floating-shell {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}
