/* Shared interactive components. Keep the established page and composer layout. */
.reference-ui-shell .topbar-popover{position:fixed!important;inset:auto!important;top:var(--zq-menu-top,64px)!important;left:var(--zq-menu-left,auto)!important;width:var(--zq-menu-width,280px)!important;max-width:calc(100vw - 24px);max-height:var(--zq-menu-height,calc(100dvh - 80px));z-index:180;overflow:auto;overscroll-behavior:contain;border:1px solid var(--ref-border-2);border-radius:12px;background:var(--ref-surface);box-shadow:var(--refine-panel-shadow,0 18px 50px #0005);color:var(--ref-text);text-align:left;white-space:normal;scrollbar-width:thin}
.reference-ui-shell .topbar-popover[hidden]{display:none!important}
.reference-ui-shell .user-popover{padding:7px}
.reference-ui-shell .topbar-user-summary{display:flex;align-items:center;gap:10px;padding:12px 9px 14px;margin-bottom:5px;border-bottom:1px solid var(--ref-border)}
.reference-ui-shell .topbar-user-summary>span:last-child{display:grid;gap:5px;min-width:0;flex:1}
.reference-ui-shell .topbar-user-summary strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.reference-ui-shell .topbar-user-summary small{font-size:11px;line-height:1.5;color:var(--ref-sub);overflow-wrap:anywhere}
.reference-ui-shell .topbar-user-avatar{display:grid;place-items:center;width:36px;height:36px;flex:0 0 auto;border-radius:10px;background:var(--refine-soft);color:var(--ref-primary);font-size:16px;font-weight:700}
.reference-ui-shell .user-popover>button{display:flex;align-items:center;min-height:40px;width:100%;padding:10px 11px;border:0;border-radius:7px;background:transparent;color:var(--ref-text);font-size:12px;font-weight:500;line-height:1.5;text-align:left;white-space:normal}
.reference-ui-shell .user-popover>button:is(:hover,:focus-visible){background:var(--refine-soft);color:var(--ref-primary);filter:none}
.reference-ui-shell .user-popover>button.danger{margin-top:4px;border-top:1px solid var(--ref-border);border-radius:0 0 7px 7px;color:var(--refine-danger)}
.reference-ui-shell .topbar-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;border-bottom:1px solid var(--ref-border)}
.reference-ui-shell .topbar-popover-head>span{display:grid;gap:5px;min-width:0}
.reference-ui-shell .topbar-popover-head strong{font-size:13px}.reference-ui-shell .topbar-popover-head small{font-size:11px;color:var(--ref-sub);line-height:1.5}
.reference-ui-shell .topbar-popover-head button,.reference-ui-shell .topbar-popover-empty button{min-height:32px;padding:6px 10px;border:1px solid var(--ref-border-2);border-radius:7px;background:var(--ref-bg-2);color:var(--ref-primary);font-size:11px;white-space:nowrap}
.reference-ui-shell .topbar-notification-list{padding:6px}
.reference-ui-shell .topbar-notification-row{display:grid;grid-template-columns:8px minmax(0,1fr);align-items:start;gap:10px;width:100%;padding:12px 10px;border:0;border-radius:8px;background:transparent;color:var(--ref-text);text-align:left}
.reference-ui-shell .topbar-notification-row:is(:hover,:focus-visible){background:var(--refine-soft);filter:none}
.reference-ui-shell .topbar-notification-row>span:last-child{display:grid;gap:5px;min-width:0}
.reference-ui-shell .topbar-notification-row strong{font-size:12px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.reference-ui-shell .topbar-notification-row small{font-size:11px;line-height:1.5;color:var(--ref-sub);overflow-wrap:anywhere}
.reference-ui-shell .topbar-notification-dot{width:7px;height:7px;margin-top:5px;border-radius:50%;background:var(--ref-primary)}
.reference-ui-shell .topbar-notification-row.attention .topbar-notification-dot{background:var(--refine-danger)}
.reference-ui-shell .topbar-popover-empty{display:grid;gap:8px;justify-items:center;padding:28px 16px;text-align:center;font-size:12px}
.reference-ui-shell .topbar-popover-empty span{font-size:11px;line-height:1.6;color:var(--ref-sub)}
.reference-ui-shell .topbar-popover-footer{display:block;min-height:40px;width:100%;padding:10px 12px;border:0;border-top:1px solid var(--ref-border);border-radius:0;background:var(--ref-bg-2);color:var(--ref-primary);font-size:12px;text-align:center}
.reference-ui-shell .notification-trigger{position:relative}
.reference-ui-shell .notification-count{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border:2px solid var(--ref-bg);border-radius:99px;background:var(--refine-danger-bg);color:var(--refine-danger);font-size:9px;line-height:1;font-weight:700}
.reference-ui-shell .notification-count[hidden]{display:none!important}
.reference-ui-shell .topbar-popover :is(button,a):focus-visible{outline:2px solid var(--refine-focus,var(--ref-primary));outline-offset:-2px}
@media(max-width:700px){.reference-ui-shell .user-popover>button{min-height:44px}.reference-ui-shell .topbar-user-summary{padding:10px 9px 12px}.reference-ui-shell .topbar-popover{border-radius:10px}}
@media(prefers-reduced-motion:reduce){.reference-ui-shell .topbar-popover{scroll-behavior:auto}}
