/* Pulse Manifest – EXE Fensterleiste (überall gleich) */
:root {
  --chrome-h: 44px;
  --chrome-accent: #8b5cf6;
  --chrome-accent-rgb: 139, 92, 246;
}

/* Custom-Cursor: Overlay via pulse_cursor.js (EXE injiziert; CSS url() unzuverlässig in WebView2) */

#pulseChrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: var(--chrome-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.45rem 0 0.85rem;
  background:
    linear-gradient(180deg, rgba(28, 28, 32, 0.98) 0%, rgba(14, 14, 18, 0.98) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  user-select: none;
  color: #f1f5f9;
  font-family: "Segoe UI", system-ui, sans-serif;
}
#pulseChrome::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--chrome-accent-rgb), 0.55),
    transparent
  );
  pointer-events: none;
}
.chrome-drag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
  height: 100%;
  -webkit-app-region: drag;
  app-region: drag;
}
.chrome-ico {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.chrome-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}
.chrome-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.chrome-title strong {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
  white-space: nowrap;
}
.chrome-title strong em {
  font-style: normal;
  color: var(--chrome-accent);
  font-weight: 800;
}
.chrome-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.chrome-title span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}
.chrome-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  -webkit-app-region: no-drag;
  app-region: no-drag;
}
.chrome-btn {
  width: 36px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}
.chrome-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.chrome-btn:active { transform: scale(0.93); }
.chrome-close:hover {
  background: rgba(244, 63, 94, 0.28);
  color: #fecdd3;
  box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.25);
}
.chrome-btn svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}
.chrome-btn svg[fill="none"] { fill: none; }

body.has-chrome {
  padding-top: var(--chrome-h) !important;
}
body.has-chrome nav.fixed {
  top: var(--chrome-h) !important;
}

/* Resize grips */
.rz {
  position: fixed;
  z-index: 10050;
  background: transparent;
}
.rz-n { top: 0; left: 10px; right: 10px; height: 4px; cursor: ns-resize !important; }
.rz-s { bottom: 0; left: 10px; right: 10px; height: 6px; cursor: ns-resize !important; }
.rz-e { top: 10px; right: 0; bottom: 10px; width: 6px; cursor: ew-resize !important; }
.rz-w { top: 10px; left: 0; bottom: 10px; width: 6px; cursor: ew-resize !important; }
.rz-ne { top: 0; right: 0; width: 12px; height: 12px; cursor: nesw-resize !important; }
.rz-nw { top: 0; left: 0; width: 12px; height: 12px; cursor: nwse-resize !important; }
.rz-se { bottom: 0; right: 0; width: 12px; height: 12px; cursor: nwse-resize !important; }
.rz-sw { bottom: 0; left: 0; width: 12px; height: 12px; cursor: nesw-resize !important; }
body.resizing { user-select: none !important; }
body.resizing.rz-cur-ns,
body.resizing.rz-cur-ns * { cursor: ns-resize !important; }
body.resizing.rz-cur-ew,
body.resizing.rz-cur-ew * { cursor: ew-resize !important; }
body.resizing.rz-cur-nesw,
body.resizing.rz-cur-nesw * { cursor: nesw-resize !important; }
body.resizing.rz-cur-nwse,
body.resizing.rz-cur-nwse * { cursor: nwse-resize !important; }

/* Scrollbar in EXE (Website-Seiten) – Accent Violet */
html, body, * {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.55) rgba(255, 255, 255, 0.05);
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.55) 0%, rgba(139, 92, 246, 0.7) 100%);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.75) 0%, rgba(139, 92, 246, 0.9) 100%);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner { background: transparent; }

/* Klick-Bestätigung (EXE) */
.pulse-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}
.pulse-confirm-card {
  width: min(26rem, 100%);
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 1rem;
  background: #12121a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  color: #f1f5f9;
}
.pulse-confirm-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.pulse-confirm-msg {
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.pulse-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pulse-confirm-btn {
  appearance: none;
  border: 0;
  border-radius: 0.55rem;
  padding: 0.45rem 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.pulse-confirm-btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}
.pulse-confirm-btn.primary {
  background: #8b5cf6;
  color: #fff;
}
.pulse-confirm-btn.danger {
  background: #ef4444;
  color: #fff;
}
