
          .wz-topbar { display: none; }
          @media (min-width: 1025px) {
            .app.has-topbar { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr); }
            .wz-topbar { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 560px) minmax(180px, 1fr); grid-column: 2; grid-row: 1; min-width: 0; height: 56px; align-items: center; gap: 1rem; padding: 0 1rem; box-sizing: border-box; background: #ffffff; color: #334155; border-bottom: 1px solid #e2e8f0; position: relative; z-index: 41; }
            html.dark .wz-topbar { background: #111113; color: #e2e8f0; border-bottom-color: #27272a; }
            .app.has-topbar > .sidebar { grid-column: 1; grid-row: 1 / 3; height: 100vh; padding-top: 0; }
            .app.has-topbar > .content { grid-column: 2; grid-row: 2; min-width: 0; height: calc(100vh - 56px); }
            .app.has-topbar .sidebar-header { min-height: 56px; flex-shrink: 0; margin-bottom: 12px; }
            .app.has-topbar .sidebar-brand-logo--full { max-width: calc(100% - 30px); }
            .app.has-topbar #notifications-sidebar-btn, .app.has-topbar #profile-button { display: none; }
          }
          .wz-topbar-actions { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; }
          .wz-topbar-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: inherit; opacity: .85; cursor: pointer; transition: background .15s, opacity .15s; }
          .wz-topbar-btn:hover { opacity: 1; background: rgba(15,23,42,.06); }
          html.dark .wz-topbar-btn:hover { background: rgba(255,255,255,.1); }
          .wz-topbar-ico { width: 18px; height: 18px; }
          .wz-topbar .wz-ico-light { display: none; }
          html.dark .wz-topbar .wz-ico-light { display: block; }
          html.dark .wz-topbar .wz-ico-dark { display: none; }
          .wz-topbar .notifications-badge { top: 2px; right: 2px; min-width: 16px; height: 16px; font-size: 10px; border: 1.5px solid #ffffff; }
          html.dark .wz-topbar .notifications-badge { border-color: #111113; }
          .wz-topbar-user { display: inline-flex; align-items: center; gap: .55rem; height: 38px; max-width: 260px; padding: 0 .65rem 0 .3rem; margin-left: .25rem; border-radius: 999px; border: 0; background: transparent; color: inherit; cursor: pointer; transition: background .15s; }
          .wz-topbar-user:hover { background: rgba(15,23,42,.06); }
          html.dark .wz-topbar-user:hover { background: rgba(255,255,255,.1); }
          .wz-topbar-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
          .wz-topbar-initial { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e2e8f0; color: #334155; font-weight: 700; font-size: 13px; flex-shrink: 0; }
          html.dark .wz-topbar-initial { background: #27272a; color: #e4e4e7; }
          .wz-topbar-user-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
          .wz-topbar-caret { width: 14px; height: 14px; opacity: .6; flex-shrink: 0; transition: transform .15s; }
          .wz-topbar-user.is-open .wz-topbar-caret { transform: rotate(180deg); }
          .wz-topbar-userwrap { position: relative; }
          .wz-topbar-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; max-width: 300px; padding: 6px; border-radius: 12px; background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 12px 32px rgba(15,23,42,.14); z-index: 70; }
          html.dark .wz-topbar-menu { background: #18181b; border-color: #27272a; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
          .wz-topbar-menu[hidden] { display: none; }
          .wz-topbar-menu-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid #e2e8f0; min-width: 0; }
          html.dark .wz-topbar-menu-head { border-bottom-color: #27272a; }
          .wz-topbar-menu-head strong { font-size: 14px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
          .wz-topbar-menu-head span { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
          html.dark .wz-topbar-menu-head strong { color: #f4f4f5; }
          html.dark .wz-topbar-menu-head span { color: #a1a1aa; }
          .wz-topbar-menu-item { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 8px; font-size: 14px; font-weight: 500; color: #334155; text-decoration: none; transition: background .12s; }
          .wz-topbar-menu-item:hover { background: rgba(15,23,42,.05); color: #0f172a; }
          html.dark .wz-topbar-menu-item { color: #d4d4d8; }
          html.dark .wz-topbar-menu-item:hover { background: rgba(255,255,255,.08); color: #fafafa; }
          .wz-topbar-menu-item--danger { color: #dc2626; }
          .wz-topbar-menu-item--danger:hover { background: rgba(220,38,38,.08); color: #b91c1c; }
          html.dark .wz-topbar-menu-item--danger { color: #f87171; }
          html.dark .wz-topbar-menu-item--danger:hover { background: rgba(248,113,113,.12); color: #fca5a5; }
          /* Notificações no desktop: painel ancorado sob o sino, no mesmo estilo do menu do usuário (sem overlay escuro). */
          @media (min-width: 1025px) {
            .notifications-modal { padding: 0; align-items: flex-start; justify-content: flex-end; animation: none; }
            .notifications-modal-overlay { background: transparent; backdrop-filter: none; animation: none; }
            .notifications-modal-content { margin: 62px 16px 0 0; width: 380px; max-width: 380px; max-height: min(70vh, 640px); border-radius: 12px; background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 12px 32px rgba(15,23,42,.14); animation: wzPopIn .16s ease; }
            html.dark .notifications-modal-content { background: #18181b; border-color: #27272a; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
            .notifications-modal-header { padding: 12px 12px 10px 14px; border-bottom-color: #e2e8f0; }
            html.dark .notifications-modal-header { border-bottom-color: #27272a; }
            .notifications-modal-title { gap: 10px; }
            .notifications-title-icon { width: 32px; height: 32px; padding: 7px; border-radius: 9px; }
            .notifications-modal-title h2 { font-size: 14px; font-weight: 600; }
            .notifications-count-text { margin-top: 1px; font-size: 12px; }
            .notifications-modal-close { width: 30px; height: 30px; border-radius: 8px; }
            .notifications-modal-close i, .notifications-modal-close svg { width: 16px; height: 16px; }
            .notifications-list { max-height: min(70vh, 640px); padding: 6px 8px 8px; }
            .notifications-modal-footer { padding: 8px 10px; gap: 8px; background: transparent; border-top-color: #e2e8f0; }
            html.dark .notifications-modal-footer { background: transparent; border-top-color: #27272a; }
            .notifications-dismiss-all, .notifications-view-all { font-size: 13px; padding: 7px 10px; border-radius: 8px; }
            .notifications-dismiss-all { border-color: rgba(239,68,68,.35); }
            .notifications-dismiss-all { flex: 0 0 auto; }
            .notifications-view-all { flex: 1 1 auto; white-space: nowrap; }
          }
          @keyframes wzPopIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
          /* Busca global (meio da barra) */
          .wz-topbar-search { flex: 1 1 auto; max-width: 560px; min-width: 0; margin: 0 auto 0 0; position: relative; }
          .wz-gs-box { display: flex; align-items: center; gap: .5rem; height: 36px; padding: 0 .7rem 0 .8rem; border-radius: 10px; background: #f1f5f9; border: 1px solid transparent; color: #64748b; cursor: text; transition: background .15s, border-color .15s, box-shadow .15s; }
          .wz-gs-box:focus-within { background: #ffffff; border-color: #cbd5e1; box-shadow: 0 0 0 3px rgba(15,23,42,.05); }
          html.dark .wz-gs-box { background: #27272a; color: #a1a1aa; }
          html.dark .wz-gs-box:focus-within { background: #18181b; border-color: #3f3f46; box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
          .wz-gs-ico { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }
          .wz-gs-input { flex: 1 1 auto; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; box-shadow: none; font-size: 14px; color: #0f172a; padding: 0; margin: 0; }
          .wz-gs-input::placeholder { color: #94a3b8; }
          .wz-gs-input::-webkit-search-cancel-button, .wz-gs-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
          html.dark .wz-gs-input { color: #f4f4f5; }
          html.dark .wz-gs-input::placeholder { color: #71717a; }
          .wz-gs-kbd { font: 600 11px/1 ui-sans-serif, system-ui, sans-serif; color: #64748b; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 3px 6px; white-space: nowrap; flex-shrink: 0; }
          html.dark .wz-gs-kbd { color: #a1a1aa; background: #18181b; border-color: #3f3f46; }
          .wz-gs-box:focus-within .wz-gs-kbd { display: none; }
          .wz-gs-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: min(70vh, 640px); overflow-y: auto; padding: 6px; border-radius: 12px; background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 12px 32px rgba(15,23,42,.14); z-index: 70; animation: wzPopIn .16s ease; }
          html.dark .wz-gs-panel { background: #18181b; border-color: #27272a; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
          .wz-gs-panel[hidden] { display: none; }
          .wz-gs-group + .wz-gs-group { margin-top: 4px; border-top: 1px solid #f1f5f9; padding-top: 4px; }
          html.dark .wz-gs-group + .wz-gs-group { border-top-color: #27272a; }
          .wz-gs-group-title { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #94a3b8; padding: 8px 10px 4px; }
          .wz-gs-item { display: flex; align-items: center; gap: .65rem; padding: .5rem .65rem; border-radius: 8px; text-decoration: none; color: #0f172a; min-width: 0; }
          .wz-gs-item.is-active, .wz-gs-item:hover { background: rgba(15,23,42,.05); }
          html.dark .wz-gs-item { color: #f4f4f5; }
          html.dark .wz-gs-item.is-active, html.dark .wz-gs-item:hover { background: rgba(255,255,255,.08); }
          .wz-gs-item-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: #f1f5f9; color: #475569; flex-shrink: 0; }
          html.dark .wz-gs-item-ico { background: #27272a; color: #a1a1aa; }
          .wz-gs-item-ico svg { width: 15px; height: 15px; }
          .wz-gs-item-body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
          .wz-gs-item-title { font-size: 14px; font-weight: 500; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
          .wz-gs-item-title mark { background: rgba(250,204,21,.45); color: inherit; border-radius: 3px; padding: 0 1px; }
          html.dark .wz-gs-item-title mark { background: rgba(250,204,21,.28); }
          .wz-gs-item-sub { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
          html.dark .wz-gs-item-sub { color: #a1a1aa; }
          .wz-gs-item-badge { font-size: 12px; font-weight: 600; color: #047857; background: #ecfdf5; border-radius: 999px; padding: 2px 8px; flex-shrink: 0; }
          html.dark .wz-gs-item-badge { color: #6ee7b7; background: rgba(5,150,105,.15); }
          .wz-gs-more { display: block; padding: 6px 10px 8px; font-size: 12px; font-weight: 600; color: #2563eb; text-decoration: none; }
          .wz-gs-more:hover { text-decoration: underline; }
          html.dark .wz-gs-more { color: #93c5fd; }
          .wz-gs-empty, .wz-gs-loading { padding: 18px 12px; text-align: center; font-size: 13px; color: #64748b; }
          html.dark .wz-gs-empty, html.dark .wz-gs-loading { color: #a1a1aa; }
          .wz-gs-foot { display: flex; gap: 14px; align-items: center; padding: 8px 10px 4px; margin-top: 4px; border-top: 1px solid #f1f5f9; font-size: 11px; color: #94a3b8; }
          html.dark .wz-gs-foot { border-top-color: #27272a; }
          .wz-gs-foot kbd { font: 600 10px/1 ui-sans-serif, system-ui, sans-serif; border: 1px solid #cbd5e1; border-radius: 4px; padding: 2px 4px; margin-right: 3px; color: #64748b; }
          html.dark .wz-gs-foot kbd { border-color: #3f3f46; color: #a1a1aa; }
          @media (max-width: 1280px) { .wz-gs-kbd { display: none; } }
          /* Equal side tracks keep search centered in the content area, even when the sidebar changes width. */
          @media (min-width: 1025px) {
            .wz-topbar > .wz-topbar-search { grid-column: 2; grid-row: 1; width: 100%; margin: 0; }
            .wz-topbar > .wz-topbar-actions { grid-column: 3; grid-row: 1; justify-self: end; min-width: 0; max-width: 100%; }
            .wz-topbar-actions > .wz-topbar-btn { flex-shrink: 0; }
            .wz-topbar-actions > .wz-topbar-userwrap { min-width: 0; }
            .wz-topbar-actions .wz-topbar-user { max-width: 100%; box-sizing: border-box; }
            .wz-topbar > .impersonation-notice--desktop { grid-column: 1; grid-row: 1; width: 100%; max-width: 100%; }
          }
        