.arg-run-overlay {
  position: fixed;
  inset: 0;
  z-index: 9700;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arg-run-card {
  width: 380px;
  background: var(--surface-window, #fff);
  color: var(--text-primary, #000);
  border: 1px solid var(--border-strong);
  padding: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.arg-run-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--accent-deep);
}

.arg-run-help {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

.arg-run-help code {
  background: rgba(0, 0, 0, 0.12);
  padding: 1px 4px;
}

.arg-run-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}

.arg-run-row input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--accent-soft);
  background: var(--color-white);
  color: var(--text-accent);
  font-size: 12px;
}

.arg-run-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.arg-run-actions button {
  padding: 4px 12px;
  border: 1px solid var(--accent-mid);
  background: var(--surface-soft);
  color: var(--text-primary);
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
}

.arg-run-actions button:hover {
  background: var(--surface-soft-hover);
}

.arg-screensaver {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: #000;
  display: block;
}

.arg-activate-watermark {
  position: fixed;
  right: 18px;
  bottom: 56px;
  white-space: pre-line;
  text-align: right;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  z-index: 200;
  text-decoration: none;
}

.arg-activate-watermark-title {
  display: block;
  font-size: 17px;
  font-weight: 500;
}

.arg-activate-watermark:hover {
  color: rgba(255, 255, 255, 0.85);
}

.tray-gem {
  background: linear-gradient(#9c5cff, #4a25a0);
  color: #ffffff;
  border: 1px solid #2a0f5e;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(120, 80, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tray-gem:hover {
  box-shadow: 0 0 14px rgba(140, 100, 255, 0.85);
}

.arg-corrupt {
  animation: argCorruptShake 90ms steps(2) infinite;
}

@keyframes argCorruptShake {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1px, 1px); }
  50%  { transform: translate(1px, -1px); }
  75%  { transform: translate(-2px, 0); }
  100% { transform: translate(0, 0); }
}

.arg-bsod {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a3a8a;
  color: #ffffff;
  font-family: 'Lucida Console', 'Consolas', monospace;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  outline: none;
}

.arg-bsod-inner {
  max-width: 720px;
  line-height: 1.5;
}

.arg-bsod-title {
  background: #ffffff;
  color: #0a3a8a;
  padding: 4px 8px;
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 700;
}

.arg-bsod-tech {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.arg-bsod-hint {
  margin-top: 22px;
  opacity: 0.85;
}

.arg-fake-cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 99000;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(135deg, #1a1a1a 0%, #1a1a1a 45%, transparent 46%);
  clip-path: polygon(0 0, 100% 60%, 60% 70%, 100% 100%, 60% 100%, 40% 70%, 0 100%);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
}

.taskbar-btn-flashing {
  position: relative;
}

.taskbar-btn-flash-on {
  background: linear-gradient(#ffd47a, #ff9c2d) !important;
  color: #281800 !important;
  box-shadow: 0 0 12px rgba(255, 156, 45, 0.6);
}

.arg-phone-call {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arg-phone-card {
  width: 280px;
  background: var(--surface-window, #1c2738);
  color: var(--text-primary, #ffffff);
  border: 1px solid var(--border-strong, #1d324e);
  padding: 18px;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.arg-phone-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin-bottom: 10px;
}

.arg-phone-avatar {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 8px;
}

.arg-phone-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.arg-phone-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.arg-phone-btn {
  padding: 8px 0;
  border: 1px solid var(--border-strong, #1d324e);
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  border-radius: 4px;
}

.arg-phone-decline {
  background: linear-gradient(#cc4a4a, #8a2929);
  color: #ffffff;
}

.arg-phone-accept {
  background: linear-gradient(#5ad06a, #2f8d3f);
  color: #ffffff;
}

#toast-stack {
  position: fixed;
  right: 12px;
  bottom: 56px;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  z-index: 4000;
  pointer-events: none;
  max-width: 320px;
}

.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  background: var(--toast-bg);
  color: var(--toast-text);
  border: 1px solid var(--toast-border);
  padding: 8px 10px;
  font-size: 11px;
  cursor: pointer;
  transform: translateX(110%);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  box-shadow: 0 6px 18px var(--toast-shadow);
}

.toast.toast-show {
  transform: translateX(0);
  opacity: 1;
}

.toast.toast-hide {
  transform: translateX(20%);
  opacity: 0;
}

.toast-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toast-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
}

.toast-body {
  min-width: 0;
}

.toast-title {
  font-weight: 700;
  color: var(--toast-title);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-text {
  color: var(--toast-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--toast-close);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.toast-close:hover {
  color: var(--toast-title);
}
