/* Shared notification/profile panels. Portals anchor to the clicked control. */
#clipsyraNotifMenu.topbar-connected,#clipsyraProfileMenu.topbar-connected{
  position:fixed;box-sizing:border-box;z-index:2147483000;padding:20px;
  margin:0;transform:none;bottom:auto;overflow:auto;overscroll-behavior:contain;
  background:radial-gradient(ellipse at 30% 0,rgba(57,30,155,.22),transparent 65%),linear-gradient(145deg,#090f30,#040b20);
  border:1px solid #6051df;border-radius:22px;color:#f6f7ff;
  box-shadow:0 18px 65px #000b,0 0 24px #5331dd22;font:14px/1.45 Inter,system-ui,sans-serif;
}
#clipsyraNotifMenu.topbar-connected[hidden],#clipsyraProfileMenu.topbar-connected[hidden]{display:none!important}
.topbar-connected *{box-sizing:border-box}
.topbar-connected svg{width:26px;height:26px;display:block}
#clipsyraNotifMenu.topbar-connected button,#clipsyraProfileMenu.topbar-connected button{font:inherit;color:inherit;cursor:pointer;white-space:normal}
.topbar-connected button:focus-visible{outline:2px solid #36c8ff;outline-offset:3px}
.topbar-connected button:disabled{opacity:.45;cursor:default}
.topbar-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:16px;border-bottom:1px solid #273573}
.topbar-panel-head h2{font-size:21px;margin:0;letter-spacing:-.03em}
#clipsyraNotifMenu .topbar-text-action{width:auto;padding:2px;background:none;border:0;color:#16abff;font-size:12px;text-align:right}
#clipsyraNotifMenu .topbar-notice{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;width:100%;padding:17px 0;border:0;border-bottom:1px solid #25316b;border-radius:0;background:none;text-align:left;align-items:start}
#clipsyraNotifMenu .topbar-notice:hover{background:#26368233}
.topbar-notice-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:12px;color:white;background:linear-gradient(135deg,#761bdf,#271071)}
.topbar-notice-icon.is-failed{background:linear-gradient(135deg,#9b284d,#351237)}
.topbar-notice-copy{min-width:0;display:grid;gap:4px;overflow-wrap:anywhere}
.topbar-notice-copy>b{font-size:14px;line-height:1.35}
.topbar-notice-copy>span{font-size:13px;color:#bac5ee}
#clipsyraNotifMenu .topbar-notice-copy>small{font-size:12px;color:#99abd8}
.topbar-notice-meta{display:grid;gap:12px;justify-items:end;color:#879bd3;font-size:10px}
.topbar-unread-dot{width:9px;height:9px;border-radius:50%;background:#009bff;box-shadow:0 0 12px #078bff88}
#clipsyraNotifMenu .topbar-view-all{display:block;width:100%;margin-top:16px;padding:12px 16px;border:1px solid #344192;border-radius:12px;background:#10183e;color:#bac6ff;text-align:left}
#clipsyraNotifMenu .topbar-view-all:after{content:'›';float:right;font-size:20px;line-height:1}
.topbar-empty{padding:24px 0;color:#d7def6}
.topbar-empty p{color:#a4b0d3;margin:6px 0 0}
.topbar-connected .topbar-read-note{display:block;margin-top:10px;color:#7c8bb4;font-size:10px}
.topbar-profile-head{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:14px;align-items:center;margin-bottom:18px}
.topbar-avatar{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:linear-gradient(150deg,#167eff,#5730fc);color:white;font-size:25px;font-weight:800}
.topbar-profile-identity{min-width:0;overflow-wrap:anywhere}
.topbar-profile-identity>b{font-size:17px;letter-spacing:-.02em}
#clipsyraProfileMenu .topbar-profile-identity small{font-size:12px;color:#b4c5ee;margin-top:3px}
.topbar-profile-identity small:before{content:'';display:inline-block;width:8px;height:8px;margin-right:6px;background:#00db98;border-radius:50%}
#clipsyraProfileMenu #clipsyraProfilePlanStatus{white-space:normal;margin:0;padding:6px 10px;border:1px solid #613bf4;border-radius:999px;background:linear-gradient(120deg,#4c0fa8,#101d68);color:#fff;font-size:11px;font-weight:800}
.topbar-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #2d348a;border-radius:14px;overflow:hidden;margin-bottom:12px;background:#0b153b}
.topbar-profile-stats>div{padding:12px 4px;text-align:center;min-width:0;overflow-wrap:anywhere}
.topbar-profile-stats>div+div{border-left:1px solid #263677}
.topbar-profile-stats b{display:block;font-size:21px;color:#fff}
#clipsyraProfileMenu .topbar-profile-stats small{font-size:11px;color:#aebde9}
#clipsyraProfileMenu .topbar-profile-action{display:grid;grid-template-columns:28px minmax(0,1fr) 12px;gap:16px;align-items:center;width:100%;padding:13px 8px;background:none;border:0;border-radius:9px;text-align:left}
#clipsyraProfileMenu .topbar-profile-action:hover{background:#23327844}
.topbar-profile-action b{display:block;font-size:15px}
#clipsyraProfileMenu .topbar-profile-action small{display:block;font-size:12px;color:#a6b7e6;margin-top:2px}
.topbar-chevron{color:#889fe2;font-size:24px}
#clipsyraProfileMenu.topbar-connected button.topbar-logout{margin-top:8px;padding-top:18px;border-top:1px solid #263472;border-radius:0;color:#ff364f}
.topbar-status{display:block;color:#aab8d9;font-size:11px;margin:8px 0 0}
.topbar-status:empty{display:none}
[data-topbar-toggle],#clipsyraNotifBtn,#home2NotifBtn{position:relative}
.topbar-unread{position:absolute;right:2px;top:2px;display:grid;place-items:center;min-width:14px;height:14px;padding:0 3px;background:#ff176f;border-radius:10px;color:white;font:9px/1 system-ui;box-shadow:0 0 12px #ff176f55}
.topbar-unread[hidden]{display:none!important}
@media(max-width:520px){
  #clipsyraNotifMenu.topbar-connected,#clipsyraProfileMenu.topbar-connected{padding:16px;border-radius:16px}
  .topbar-profile-head{grid-template-columns:44px minmax(0,1fr) auto;gap:10px}
  .topbar-avatar{width:44px;height:44px;font-size:22px}
  .topbar-profile-identity>b{font-size:14px}
  #clipsyraNotifMenu .topbar-notice{grid-template-columns:36px minmax(0,1fr);gap:10px}
  .topbar-notice-icon{width:36px;height:36px}
  .topbar-notice-meta{grid-column:2;display:flex;justify-content:space-between;align-items:center}
}

.topbar-bell-icon{display:inline-grid;place-items:center;vertical-align:middle}.topbar-bell-icon svg{width:22px;height:22px;display:block}

/* Upgrade is a real Billing action in the Home header. */
body.clipsyra-web2-clean .home2-top-actions .home2-upgrade-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;min-height:42px;padding:10px 18px;border:1px solid #9149ff;border-radius:13px;background:linear-gradient(115deg,#c000f4,#7020ed 52%,#3530f5);box-shadow:0 0 20px #7926ef40;color:#fff;font-family:inherit;font-size:14px;font-weight:700;line-height:1.2;cursor:pointer;white-space:nowrap}
body.clipsyra-web2-clean .home2-top-actions .home2-upgrade-btn svg{width:23px;height:23px;flex-shrink:0}
body.clipsyra-web2-clean .home2-top-actions .home2-upgrade-btn:hover{filter:brightness(1.12)}
body.clipsyra-web2-clean .home2-top-actions .home2-upgrade-btn:focus-visible{outline:2px solid #59d6ff;outline-offset:3px}
#clipsyraProfileMenu.topbar-connected button.topbar-logout b,#clipsyraProfileMenu.topbar-connected button.topbar-logout .topbar-action-icon{color:#ff364f}
@media(max-width:600px){body.clipsyra-web2-clean .home2-top-actions{flex-wrap:wrap;gap:8px}body.clipsyra-web2-clean .home2-top-actions .home2-upgrade-btn{font-size:12px;padding:9px 12px}}

/* Header account name: a long name/email must never stretch the header */
.home2-account-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:820px){.home2-account-name{display:none}}
