/* Panel runtime — kara liste modal */
.bl-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}

.bl-modal {
  width: min(520px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  position: relative;
}

.bl-modal h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.bl-modal__sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: #64748b;
}

.bl-modal__x {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: #f1f5f9;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

.bl-modal__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.bl-modal__tabs button {
  flex: 1;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.bl-modal__tabs button.is-active {
  background: #7c4dff;
  color: #fff;
  border-color: #7c4dff;
}

.bl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
}

.bl-row small {
  display: block;
  color: #64748b;
  margin-top: 2px;
}

.bl-row--ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.bl-ok {
  color: #166534;
  font-weight: 800;
  font-size: 12px;
}

.bl-empty {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  padding: 20px;
}

.lucky-box__lbl {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 6px;
}

.shell-maint-banner {
  background: #fef3c7;
  color: #92400e;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #fcd34d;
}

.icon-btn {
  position: relative;
}

.notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.notify-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}

.notify-modal {
  width: min(440px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.notify-modal h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.notify-modal__sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: #64748b;
}

.notify-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.notify-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notify-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}

.notify-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.notify-item time {
  font-size: 11px;
  color: #64748b;
}

.notify-item p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.notify-empty {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  text-align: center;
  padding: 20px 0;
}

.cr-modal {
  width: min(560px, 100%);
}

.cr-log-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 52vh;
  overflow-y: auto;
}

.cr-log-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}

.cr-log-row--plus {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.cr-log-row--minus {
  background: #fef2f2;
  border-color: #fecaca;
}

.cr-log-row__main strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.cr-log-row__main span {
  color: #475569;
  line-height: 1.4;
}

.cr-log-row__meta {
  text-align: right;
  flex-shrink: 0;
  font-size: 11px;
  color: #64748b;
}

.cr-log-row__meta time {
  display: block;
  margin-bottom: 4px;
}
