/* The builder site (src/builder-site.js): the same app and styles, with only New test and Reports. Loaded only on
   that site's pages, which carry <html data-site="builder">. */

/* The same Constants wordmark as the signed-in sidebar, also in the signed-out phone bar. */
.builder-guest-mobile-name img { display: block; width: 85px; height: 14px; }

/* No workspaces, settings, agent set-up or credits. */
[data-site="builder"] :is(.workspace-picker-label, .startup-workspace, .workspace-settings-button, [data-sidebar-integrations], .agent-setup-trigger, .workspace-credits) { display: none !important; }
[data-site="builder"] .workspace-nav-sections { margin-top: 12px; }

/* The account menu keeps the email and sign out. */
[data-site="builder"] :is(.account-credits, [data-workspace-menu]) { display: none !important; }

/* Websites only. */
[data-site="builder"] .target-picker { display: none; }

/* Sign in with Google or email: Discord is the Constants community's. */
[data-site="builder"] :is([data-discord-sign-in], [data-provider="discord"]) { display: none !important; }

/* The mobile bar leaves no room for the credits it doesn't show. */
@media (max-width: 760px) {
  [data-site="builder"] .workspace-app .workspace-mobile-bar { padding-right: 16px !important; }
}

/* Signed out (public/builder-guest-shell.js): Sign in at the sidebar's foot, and the site's name and Sign in on phones. */
.builder-guest-sign-in { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; margin: 0 4px 6px; border-radius: 8px; background: var(--theme); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; }
.builder-guest-sign-in:hover { background: var(--theme-strong); }
.builder-guest-mobile-bar { justify-content: space-between; }
.builder-guest-mobile-name { text-decoration: none; }
.builder-guest-mobile-sign-in { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; background: var(--theme); color: #fff !important; font-size: 14px; font-weight: 500; text-decoration: none; }
.builder-guest-mobile-sign-in span { color: inherit; font-size: inherit !important; font-weight: inherit !important; }

/* The sign-in card, which signed-in visitors never see, in the app's style. */
[data-site="builder"] .workspace-app .auth-card .card-heading h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
[data-site="builder"] .workspace-app .auth-card .card-heading p { color: var(--muted); font-size: 14px; }
[data-site="builder"] .workspace-app .provider-button { height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 14px; font-weight: 500; }
[data-site="builder"] .workspace-app .provider-button:hover { border-color: var(--primary-line); background: var(--hover); }
[data-site="builder"] .workspace-app .auth-card :is(input[type="email"], .code-input) { border-radius: 8px; }
[data-site="builder"] .workspace-app .auth-card .inline-button { border-radius: 8px; }
