:root {
  --vgn-primary: #0f3d70;
  --vgn-primary-dark: #0b2f57;
  --vgn-danger: #dc2626;
  --vgn-bg: #ffffff;
  --vgn-text: #0f172a;
  --vgn-muted: #64748b;
  --vgn-line: #dbe4ef;
  --vgn-shadow: 0 18px 48px rgba(15, 23, 42, .22);
}

.vgn-root, .vgn-root * { box-sizing: border-box; }
.vgn-root { position: fixed; right: 18px; bottom: 18px; z-index: 2147483000; font-family: Arial, Helvetica, sans-serif; color: var(--vgn-text); }
.vgn-bell {
  width: 54px; height: 54px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--vgn-primary); color: #fff;
  box-shadow: var(--vgn-shadow); font-size: 24px; position: relative;
}
.vgn-bell:hover { background: var(--vgn-primary-dark); transform: translateY(-1px); }
.vgn-count {
  position: absolute; right: -4px; top: -5px; min-width: 23px; height: 23px;
  padding: 0 6px; border-radius: 999px; background: var(--vgn-danger); color: #fff;
  display: none; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
  border: 2px solid #fff;
}
.vgn-count.visible { display: flex; }
.vgn-panel {
  position: absolute; right: 0; bottom: 66px; width: min(390px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 100px)); overflow: hidden; display: none;
  background: var(--vgn-bg); border: 1px solid var(--vgn-line); border-radius: 18px;
  box-shadow: var(--vgn-shadow);
}
.vgn-panel.open { display: flex; flex-direction: column; }
.vgn-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--vgn-line); }
.vgn-panel-head strong { font-size: 15px; }
.vgn-link-button { border: 0; background: none; color: var(--vgn-primary); cursor: pointer; font-weight: 700; font-size: 12px; padding: 4px; }
.vgn-browser-permission { margin: 12px 14px 0; padding: 11px 12px; border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 12px; font-size: 12px; line-height: 1.35; color: #1e3a5f; }
.vgn-browser-permission button { margin-top: 8px; width: 100%; border: 0; border-radius: 9px; background: var(--vgn-primary); color: #fff; font-weight: 700; padding: 9px 10px; cursor: pointer; }
.vgn-list { overflow: auto; padding: 8px; }
.vgn-empty { padding: 30px 18px; text-align: center; color: var(--vgn-muted); font-size: 13px; }
.vgn-item { border: 1px solid var(--vgn-line); border-radius: 13px; padding: 12px; margin-bottom: 8px; background: #fff; }
.vgn-item:last-child { margin-bottom: 0; }
.vgn-item-title { display: flex; gap: 9px; align-items: flex-start; }
.vgn-item-icon { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #dbeafe; color: var(--vgn-primary); }
.vgn-item strong { display: block; font-size: 13px; line-height: 1.3; }
.vgn-item time { display: block; color: var(--vgn-muted); font-size: 11px; margin-top: 3px; }
.vgn-item p { margin: 9px 0 10px; color: #334155; font-size: 12px; line-height: 1.45; }
.vgn-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vgn-open, .vgn-read { border-radius: 9px; padding: 8px 10px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; }
.vgn-open { border: 0; background: var(--vgn-primary); color: #fff; }
.vgn-read { border: 1px solid var(--vgn-line); background: #fff; color: #334155; }
.vgn-toast-stack { position: fixed; right: 18px; top: 18px; z-index: 2147483001; width: min(390px, calc(100vw - 28px)); display: grid; gap: 10px; pointer-events: none; }
.vgn-toast { pointer-events: auto; background: #fff; border: 1px solid var(--vgn-line); border-left: 5px solid var(--vgn-primary); border-radius: 14px; box-shadow: var(--vgn-shadow); padding: 13px 14px; opacity: 0; transform: translateY(-8px); transition: .2s ease; }
.vgn-toast.visible { opacity: 1; transform: translateY(0); }
.vgn-toast-head { display: flex; justify-content: space-between; gap: 10px; }
.vgn-toast strong { font-size: 14px; }
.vgn-toast-close { border: 0; background: none; color: #64748b; cursor: pointer; font-size: 19px; line-height: 1; }
.vgn-toast p { margin: 7px 0 10px; color: #334155; font-size: 12px; line-height: 1.4; }
.vgn-toast a { display: inline-block; padding: 8px 10px; border-radius: 9px; background: var(--vgn-primary); color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; }

@media (max-width: 620px) {
  .vgn-root { right: 12px; bottom: 12px; }
  .vgn-toast-stack { right: 10px; top: 10px; width: calc(100vw - 20px); }
}
