/* ToolsNest unified shell v2: loaded after individual page styles. */
:root { --us-shell-width:1100px; --us-shell-gutter:20px; }
html { box-sizing:border-box; }
*,*::before,*::after { box-sizing:inherit; }
/* Identical outside edges for the header and tool panels. */
body > .us-header-shell, body > main.app, body > .app:not(.sign-editor-internal),
body > main.container, body > .container,
body > .tool-intro, body > .mobile-editor-bar, body > .sign-ad-strip,
body > .site-footer {
  width:min(calc(100% - 2 * var(--us-shell-gutter)),var(--us-shell-width)) !important;
  max-width:var(--us-shell-width) !important;
  margin-left:auto !important; margin-right:auto !important;
}
/* Page containers previously added 22px of padding, making their panels narrower. */
body > main.app, body > main.container, body > .container {
  padding-left:0 !important; padding-right:0 !important;
}
/* Sign editor needs its flex layout intact. Its internal scroll areas are untouched. */
body > div.app { padding-left:0 !important; padding-right:0 !important; }
/* Prevent legacy site-nav rules overriding the shared dropdown. */
.us-header-shell .site-nav { display:none !important; overflow-x:hidden !important; }
.us-header-shell .site-nav.us-nav-open { display:flex !important; }
.us-header-shell .us-desktop-nav { display:flex; flex-wrap:wrap; overflow:visible; }
.us-header-shell .site-logo { max-width:46px !important; max-height:46px !important; }
@media(max-width:768px) {
  .us-header-shell .us-desktop-nav { display:none !important; }
}
@media(max-width:600px) {
  :root { --us-shell-gutter:16px; }
  .us-header-shell .site-logo { max-width:42px !important; max-height:42px !important; }
}
/* Universal mobile header alignment */
@media (max-width: 800px) {

    html body #usSharedHeader.us-header-shell {
        box-sizing: border-box !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 8px 16px 9px !important;
        background: #f4f6fc !important;
    }

    #usSharedHeader .us-header-row {
        width: 100%;
        min-width: 0;
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0;
        padding: 0;
    }
}