/* Webza: polish for the app's own pages (app-create.js), without touching the app.
   html.wza: every page with the app's top bar (credits chip, help icon, plan badge,
   frosted bar). html.wzc: the /create page only. Both classes are set by app.js /
   app-create.js, so nothing here applies elsewhere. App elements are reached through
   stable hooks (data-slot, data-sidebar, data-tour-id, element types); colours come
   from the app's own theme variables, so light and dark both follow the app. */
html.wza, html.wzc, html.wzb {
  --wzc-blue: #2563eb; --wzc-blue-ink: #1d4ed8; --wzc-blue-t: #2563eb; --wzc-warm: rgba(255, 132, 74, .85); --wzc-ok: #16a34a;
  --wzc-glass: color-mix(in srgb, var(--card, #fff) 82%, transparent);
  --wzc-line: color-mix(in srgb, var(--foreground, #0a0a0a) 10%, transparent);
  --wzc-line2: color-mix(in srgb, var(--foreground, #0a0a0a) 16%, transparent);
  --wzc-shadow: 0 1px 2px rgba(10, 10, 20, .05), 0 12px 32px -14px rgba(10, 10, 20, .18);
  --wzc-shadow-lg: 0 2px 6px rgba(10, 10, 20, .05), 0 30px 70px -28px rgba(10, 10, 20, .35);
  --wza-amber: #d97706; --wza-red: #dc2626;
}
html.wza.dark, html.wzc.dark, html.wzb.dark {
  --wzc-blue-t: #7cb4ff; --wzc-ok: #4ade80; --wzc-glass: color-mix(in srgb, var(--card, #0a0a0a) 72%, transparent);
  --wzc-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -14px rgba(0, 0, 0, .7);
  --wzc-shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 34px 80px -28px rgba(0, 0, 0, .85);
  --wza-amber: #fbbf24; --wza-red: #f87171;
}
.wzc-hide { display: none !important; }

/* ---- background: the app's grid, faded at the edges, with a calm blue and warm light */
html.wzc [data-slot="gradient-background"] > div:not(:last-child) { display: none; }
html.wzc [data-slot="gradient-background"] > div:last-child {
  -webkit-mask-image: radial-gradient(70% 55% at 50% 22%, #000 25%, transparent 80%); mask-image: radial-gradient(70% 55% at 50% 22%, #000 25%, transparent 80%);
}
html.wzc [data-slot="gradient-background"]::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 90vh; pointer-events: none;
  background: radial-gradient(38% 46% at 50% 18%, rgba(37, 99, 235, .11), transparent 70%), radial-gradient(26% 34% at 82% 6%, rgba(255, 132, 74, .12), transparent 70%),
    radial-gradient(26% 34% at 16% 12%, rgba(124, 92, 255, .08), transparent 70%);
}
html.wzc.dark [data-slot="gradient-background"]::before {
  background: radial-gradient(38% 46% at 50% 18%, rgba(37, 99, 235, .22), transparent 70%), radial-gradient(26% 34% at 82% 6%, rgba(255, 116, 66, .16), transparent 70%),
    radial-gradient(26% 34% at 16% 12%, rgba(124, 92, 255, .12), transparent 70%);
}

/* ---- the app's top bar (every app page): see-through at the top, frosted once the page
   scrolls under it; credits as a chip with a small gauge; round icon buttons; the plan
   under the user's name; the guided tour as a help icon (the sidebar button is hidden). */
html.wza #main-content header { padding-inline: 16px 20px; border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s; }
html.wza.wza-sc #main-content header {
  background: color-mix(in srgb, var(--background, #fff) 80%, transparent); border-bottom-color: var(--wzc-line);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
html.wza #main-content header a.wza-cra {
  display: inline-flex; align-items: center; height: 32px; margin-inline-start: 4px; padding: 0 12px 0 8px; border-radius: 999px; text-decoration: none;
  color: var(--foreground); background: var(--wzc-glass); border: 1px solid var(--wzc-line); box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: border-color .2s, background-color .2s;
}
html.wza #main-content header a.wza-cra:hover { border-color: color-mix(in srgb, var(--foreground) 22%, transparent); }
html.wza #main-content header a.wza-cra > :not([data-wza]) { display: none; }
.wza-cr { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1; white-space: nowrap; }
.wza-cr b { font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.wza-cr span { color: var(--muted-foreground); }
.wza-ring { width: 18px; height: 18px; transform: rotate(-90deg); }
.wza-ring circle { fill: none; stroke: var(--wzc-line2); stroke-width: 2.6; }
.wza-ring circle.v { stroke: var(--foreground); stroke-linecap: round; transition: stroke-dasharray .4s; }
.wza-cr.is-mid .wza-ring circle.v { stroke: var(--wza-amber); }
.wza-cr.is-low .wza-ring circle.v { stroke: var(--wza-red); }
.wza-cr .wza-of { margin-inline-start: -3px; font-variant-numeric: tabular-nums; }
.wza-cv { display: inline-grid; margin-inline-start: -2px; color: var(--muted-foreground); transition: transform .2s; }
.wza-cv svg { width: 14px; height: 14px; }
html.wza #main-content header a.wza-cra[aria-expanded="true"] { background: var(--accent, var(--muted)); border-color: color-mix(in srgb, var(--foreground) 22%, transparent); }
html.wza #main-content header a.wza-cra[aria-expanded="true"] .wza-cv { transform: rotate(180deg); }
html.wza #main-content header a.wza-cra:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
html.wza #main-content header a.wza-cra:has(.is-plan) { color: var(--background); background: var(--foreground); border-color: transparent; }
html.wza #main-content header a.wza-cra:has(.is-plan):hover { opacity: .88; }
.wza-cr.is-plan { gap: 6px; }
.wza-top { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 3px; padding: 4px 9px 4px 7px; border-radius: 999px;
  font-size: 12px; font-style: normal; font-weight: 650; line-height: 1; color: var(--background); background: var(--foreground); }
.wza-top:hover { opacity: .85; }
.wza-top svg { width: 12px; height: 12px; }
html.wza #main-content header a.wza-cra:has(.is-top) { padding-inline-end: 4px; }
.wza-cr.is-plan svg { width: 14px; height: 14px; }
html.wza[dir="rtl"] .wza-cr.is-plan svg:last-child { transform: scaleX(-1); }
html.wza #main-content header > div:last-child { gap: 2px; }
html.wza #main-content header > div:last-child > div > button[data-slot="button"],
html.wza #main-content header > div:last-child > div > div > button[data-slot="button"],
.wza-ib {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  color: var(--muted-foreground); background: transparent; transition: background-color .15s, color .15s;
}
html.wza #main-content header > div:last-child > div > button[data-slot="button"]:hover,
html.wza #main-content header > div:last-child > div > div > button[data-slot="button"]:hover,
.wza-ib:hover { color: var(--foreground); background: var(--accent, rgba(0, 0, 0, .05)); }
.wza-ib:focus-visible { outline: 2px solid var(--foreground); outline-offset: 1px; }
.wza-ib svg { width: 17px; height: 17px; }
html.wza #main-content header > div:last-child > div:last-child { margin-inline-start: 8px; padding-inline-start: 10px; border-inline-start: 1px solid var(--wzc-line); }
/* Moving to the landing page reloads it in full (app.js); nothing shows meanwhile. */
html.wza-go body { visibility: hidden; }
/* The account button: avatar first, then the name with the plan under it, a small chevron
   for the menu; one framed chip on hover / while the menu is open. */
html.wza .wza-um {
  gap: 10px; padding-block: 4px; padding-inline: 4px 10px; border: 1px solid transparent; border-radius: 12px;
  transition: background-color .15s, border-color .15s;
}
html.wza .wza-um:hover, html.wza .wza-um[data-state="open"] { border-color: var(--wzc-line); background: color-mix(in srgb, var(--foreground) 5%, transparent); }
html.wza .wza-um > [data-slot="avatar"] { order: -1; width: 32px; height: 32px; box-shadow: 0 0 0 1px var(--wzc-line2); }
@media (min-width: 640px) { html.wza .wza-um > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: start; } }
html.wza .wza-um > div p:first-child { max-width: 11rem; font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: -.005em; }
html.wza .wza-um > div p:nth-of-type(2) { display: none; }
html.wza .wza-um::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-inline-start: -2px; background: var(--muted-foreground);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s;
}
html.wza .wza-um[data-state="open"]::after { transform: rotate(180deg); }
.wza-plan {
  display: inline-block; padding: 0 7px; border: 1px solid var(--wzc-line2); border-radius: 999px; font-size: 10.5px; font-weight: 600;
  line-height: 15px; letter-spacing: .02em; color: color-mix(in srgb, var(--foreground) 78%, transparent); background: transparent;
}
@media (max-width: 639.98px) { html.wza .wza-um { padding: 2px; border-radius: 999px; } html.wza .wza-um::after { display: none; } }
/* Menus opened from the top bar and the pages (account menu, project actions…): softer frame,
   roomier items; in the account menu the name reads as a title and "Log out" turns red on hover. */
html.wza [data-slot="dropdown-menu-content"] {
  min-width: 13rem; padding: 6px; border-radius: 14px; border-color: var(--wzc-line);
  box-shadow: 0 2px 6px rgba(10, 10, 20, .06), 0 24px 56px -20px rgba(10, 10, 20, .4);
}
html.wza.dark [data-slot="dropdown-menu-content"] { background: color-mix(in srgb, var(--foreground) 4%, var(--background)); border-color: color-mix(in srgb, var(--foreground) 12%, transparent); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85); }
html.wza [data-slot="dropdown-menu-item"] { min-height: 34px; gap: 10px; padding-inline: 10px; border-radius: 9px; font-size: 13.5px; }
html.wza [data-slot="dropdown-menu-item"] > svg { width: 16px; height: 16px; color: var(--muted-foreground); }
html.wza [data-slot="dropdown-menu-item"]:is(:focus, [data-highlighted]) { background: color-mix(in srgb, var(--foreground) 7%, transparent); }
html.wza [data-slot="dropdown-menu-item"]:is(:focus, [data-highlighted]) > svg { color: var(--foreground); }
html.wza [data-slot="dropdown-menu-separator"] { margin: 6px -6px; background: var(--wzc-line); }
html.wza [data-slot="dropdown-menu-content"] > div.px-2.py-1\.5:first-child { padding: 8px 10px 6px; }
html.wza [data-slot="dropdown-menu-content"] > div.px-2.py-1\.5:first-child > p:first-child { font-size: 14px; font-weight: 600; letter-spacing: -.005em; }
html.wza [data-slot="dropdown-menu-content"] > div.px-2.py-1\.5:first-child > p + p { margin-top: 2px; font-size: 12.5px; }
html.wza [data-slot="dropdown-menu-item"]:has(> svg.lucide-log-out):is(:focus, [data-highlighted]) { color: var(--wza-red); background: color-mix(in srgb, var(--wza-red) 9%, transparent); }
html.wza [data-slot="dropdown-menu-item"]:has(> svg.lucide-log-out):is(:focus, [data-highlighted]) > svg { color: var(--wza-red); }
@media (min-width: 768px) { html.wza.wza-ht [data-sidebar="footer"] > button:has(.lucide-rotate-ccw) { display: none; } }
@media (max-width: 767px) { #main-content header .wza-tour { display: none; } html.wza #main-content header a.wza-cra { padding: 0 10px 0 6px; } }
/* Phones: a compact chip (no word, top-up as an icon) so the bar fits next to the icons. */
@media (max-width: 640px) {
  html.wza #main-content header { padding-inline: 10px 12px; }
  .wza-cr > span { display: none; }
  .wza-top { padding: 4px 6px; font-size: 0; gap: 0; }
  html.wza #main-content header > div:last-child > div > button[data-slot="button"],
  html.wza #main-content header > div:last-child > div > div > button[data-slot="button"] { width: 34px; height: 34px; }
  html.wza #main-content header > div:last-child > div:last-child { margin-inline-start: 4px; padding-inline-start: 6px; }
}

/* ---- the credits panel (opens from the credits chip) */
.wza-pop { position: fixed; z-index: 70; box-sizing: border-box; padding: 16px; border-radius: 16px; font-size: 13px; line-height: 1.4; text-align: start;
  color: var(--popover-foreground, var(--foreground)); background: var(--popover, var(--card)); border: 1px solid var(--wzc-line); box-shadow: var(--wzc-shadow-lg);
  opacity: 0; transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease; outline: none; }
.wza-pop.is-on { opacity: 1; transform: none; }
.wza-pop-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-weight: 600; color: var(--muted-foreground); }
.wza-pop-h i { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 650; color: var(--foreground); background: color-mix(in srgb, var(--foreground) 8%, transparent); }
.wza-pop-n { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.wza-pop-n b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wza-pop-n span { color: var(--muted-foreground); }
.wza-pop-bar { height: 6px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: var(--wzc-line); }
.wza-pop-bar i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: var(--foreground); }
.wza-pop-bar.is-mid i { background: var(--wza-amber); }
.wza-pop-bar.is-low i { background: var(--wza-red); }
.wza-pop-cap { margin: 6px 0 0; font-size: 12px; color: var(--muted-foreground); }
.wza-pop dl { display: grid; gap: 8px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--wzc-line); }
.wza-pop dl > div { display: flex; justify-content: space-between; gap: 12px; }
.wza-pop dt { color: var(--muted-foreground); }
.wza-pop dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.wza-pop-note { margin: 12px 0 0; font-size: 12px; color: var(--muted-foreground); }
.wza-pop-a { display: grid; gap: 8px; margin-top: 16px; }
.wza-pop-btn { display: flex; align-items: center; justify-content: center; gap: 7px; height: 36px; border-radius: 10px; font-weight: 600; text-decoration: none;
  color: var(--background); background: var(--foreground); transition: opacity .15s; }
.wza-pop-btn:hover { opacity: .88; }
.wza-pop-lnk { display: flex; align-items: center; justify-content: center; gap: 5px; height: 34px; border-radius: 10px; font-weight: 500; text-decoration: none;
  color: var(--foreground); border: 1px solid var(--wzc-line); transition: background-color .15s; }
.wza-pop-lnk:hover { background: var(--accent, var(--muted)); }
.wza-pop-btn svg, .wza-pop-lnk svg { width: 15px; height: 15px; }
html.wza[dir="rtl"] .wza-pop-lnk svg { transform: scaleX(-1); }
.wza-pop-up { display: flex; align-items: center; gap: 7px; margin-top: 2px; padding: 9px 10px; border-radius: 10px; font-size: 12.5px; text-decoration: none;
  color: var(--foreground); background: color-mix(in srgb, var(--foreground) 5%, transparent); transition: background-color .15s; }
.wza-pop-up:hover { background: color-mix(in srgb, var(--foreground) 9%, transparent); }
.wza-pop-up svg { flex: none; width: 15px; height: 15px; }
.wza-pop a:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .wza-pop, .wza-cv, .wza-ring circle.v { transition: none; } }

/* ---- the column */
html.wzc #main-content main { justify-content: flex-start; padding-top: clamp(48px, 11vh, 130px); padding-bottom: 110px; }
html.wzc main > .prose { max-width: 900px; margin-bottom: 0; }
html.wzc main > .prose h1 {
  margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; font-weight: 650; letter-spacing: -.035em; text-wrap: balance;
}
html.wzc[dir="rtl"] main > .prose h1, html.wzc:is(:lang(ja), :lang(zh), :lang(ko)) main > .prose h1 { letter-spacing: 0; line-height: 1.3; }
.wzc-sub { max-width: 600px; margin: 16px auto 34px; text-align: center; font-size: 16.5px; line-height: 1.6; color: var(--muted-foreground); text-wrap: pretty; }

/* ---- the prompt box, in the landing page's style */
html.wzc main > [data-tour-id="create.prompt_input"] { max-width: 800px; }
html.wzc [data-tour-id="create.prompt_input"] form > div:first-child {
  border-radius: 24px; border: 1px solid var(--wzc-line2); background: var(--wzc-glass); overflow: visible;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--wzc-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06); transition: border-color .2s, box-shadow .2s;
}
html.wzc [data-tour-id="create.prompt_input"] form > div:first-child::before {
  content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 1px; z-index: 2; pointer-events: none;
  background: linear-gradient(to right, transparent, var(--wzc-warm), transparent);
}
html.wzc [data-tour-id="create.prompt_input"] form > div:first-child:focus-within {
  border-color: color-mix(in srgb, var(--wzc-blue) 50%, transparent);
  box-shadow: var(--wzc-shadow-lg), 0 0 0 4px color-mix(in srgb, var(--wzc-blue) 14%, transparent);
}
html.wzc [data-tour-id="create.prompt_input"] textarea {
  min-height: 132px; padding: 24px 24px 8px; font-size: 19px; line-height: 1.6; letter-spacing: -.012em; caret-color: var(--wzc-blue);
}
html.wzc[dir="rtl"] [data-tour-id="create.prompt_input"] textarea { letter-spacing: 0; }
html.wzc.wzc-tw [data-tour-id="create.prompt_input"] textarea ~ div.pointer-events-none:not([data-wzc]) { display: none; }
.wzc-type { position: absolute; inset: 0 0 auto; z-index: 11; padding: 24px 24px 8px; pointer-events: none; font-size: 19px; line-height: 1.6; letter-spacing: -.012em; color: var(--muted-foreground); opacity: .8; text-align: start; }
.wzc-type[hidden] { display: none; }
.wzc-type i { display: inline-block; width: 2px; height: 1.05em; margin-inline-start: 2px; vertical-align: -.16em; border-radius: 1px; background: color-mix(in srgb, var(--wzc-blue) 60%, transparent); animation: wzc-blink 1s steps(2, start) infinite; }
@keyframes wzc-blink { to { visibility: hidden; } }
html.wzc [data-tour-id="create.prompt_input"] form > div:first-child > div:last-child { padding: 10px 16px 16px; background: transparent; border-top: 0; }
html.wzc [data-tour-id="create.prompt_input"] form > div:first-child > div:last-child button:not([type="submit"]) { border-radius: 999px; }
html.wzc [data-tour-id="create.prompt_input"] button[type="submit"] {
  height: 42px; padding: 0 16px 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  color: #fff; background: var(--wzc-blue); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(29, 78, 216, .35), 0 8px 20px -8px rgba(37, 99, 235, .7);
  transition: transform .15s, filter .15s, opacity .15s;
}
html.wzc [data-tour-id="create.prompt_input"] button[type="submit"]:hover:not(:disabled) { transform: scale(1.02); filter: brightness(1.07); }
html.wzc [data-tour-id="create.prompt_input"] button[type="submit"]:disabled { opacity: .45; box-shadow: none; }
html.wzc.wzc-noplan [data-tour-id="create.prompt_input"] textarea:disabled { opacity: 1; }
html.wzc.wzc-noplan [data-tour-id="create.prompt_input"] form { opacity: .62; }

/* Phones: the prompt toolbar on one tidy row. The type picker shrinks (long names get an
   ellipsis), "Customize" becomes an icon button (its label stays for screen readers), the send
   button is a circle like the mic and attach buttons. Below 640px the app already hides "Start". */
@media (max-width: 639.98px) {
  html.wzc [data-tour-id="create.prompt_input"] form > div:first-child > div:last-child { flex-wrap: nowrap; gap: 8px; padding: 6px 12px 12px; }
  html.wzc [data-tour-id="create.prompt_input"] form > div:first-child > div:last-child > div:first-child { flex: 1 1 auto; flex-wrap: nowrap; min-width: 0; gap: 6px; }
  html.wzc [data-tour-id="create.prompt_input"] form > div:first-child > div:last-child > div:last-child { gap: 2px; }
  html.wzc [data-tour-id="create.prompt_input"] [role="combobox"] { flex: 0 1 auto; width: auto; min-width: 0; max-width: 100%; height: 38px; padding: 0 10px 0 12px; gap: 6px; }
  html.wzc [data-tour-id="create.prompt_input"] [role="combobox"] [data-slot="select-value"],
  html.wzc [data-tour-id="create.prompt_input"] [role="combobox"] [data-slot="select-value"] > div { min-width: 0; overflow: hidden; }
  html.wzc [data-tour-id="create.prompt_input"] [role="combobox"] [data-slot="select-value"] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.wzc [data-tour-id="create.customize"] { position: relative; flex: none; width: 38px; height: 38px; padding: 0 !important; }
  html.wzc [data-tour-id="create.customize"] > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html.wzc [data-tour-id="create.prompt_input"] form > div:first-child > div:last-child > div:last-child > button:not([type="submit"]) { width: 38px; height: 38px; color: var(--muted-foreground); }
  html.wzc [data-tour-id="create.prompt_input"] form > div:first-child > div:last-child > div:last-child > button:not([type="submit"]):hover { color: var(--foreground); }
  html.wzc [data-tour-id="create.prompt_input"] button[type="submit"] { width: 42px; padding: 0; margin-inline-start: 4px; }
  html.wzc [data-tour-id="create.prompt_input"] button[type="submit"] svg { width: 18px; height: 18px; }
}
@media (max-width: 379.98px) {
  html.wzc [data-tour-id="create.prompt_input"] [role="combobox"] [data-slot="select-value"] svg { display: none; }
}

/* ---- Plus card for signed-in users without a plan */
.wzc-plan {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: center; width: 100%; max-width: 800px; margin: 0 0 18px;
  padding: 24px; border-radius: 24px; text-align: start; background: var(--wzc-glass); border: 1px solid var(--wzc-line2); box-shadow: var(--wzc-shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden;
}
.wzc-plan::before { content: ""; position: absolute; inset: auto -20% -60% 30%; height: 220px; pointer-events: none; background: radial-gradient(closest-side, rgba(37, 99, 235, .14), transparent); }
.wzc-plan > * { position: relative; }
.wzc-plan h2 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; color: var(--foreground); text-wrap: balance; }
.wzc-plan-l p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted-foreground); }
.wzc-plan-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 18px;
  background: color-mix(in srgb, var(--wzc-blue) 6%, var(--card)); border: 1px solid color-mix(in srgb, var(--wzc-blue) 35%, transparent); }
.wzc-plus-h { display: flex; align-items: center; gap: 8px; }
.wzc-plus-h b { font-size: 15px; font-weight: 650; color: var(--foreground); }
.wzc-badge { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 14px; color: #fff; background: var(--wzc-blue); }
.wzc-price { margin: 4px 0 8px; color: var(--foreground); }
.wzc-price b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.wzc-price span { margin-inline-start: 3px; font-size: 13px; color: var(--muted-foreground); }
.wzc-plus ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.wzc-plus li { display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.4; color: var(--foreground); }
.wzc-plus li svg { flex: none; width: 14px; height: 14px; stroke-width: 2.6; color: var(--wzc-blue-t); }
.wzc-plan-cta { display: grid; justify-items: center; gap: 8px; }
.wzc-plan-cta small { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted-foreground); }
.wzc-plan-cta small svg { width: 13px; height: 13px; }
.wzc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  font-size: 14.5px; font-weight: 600; color: #fff !important; text-decoration: none; background: var(--wzc-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(29, 78, 216, .35), 0 8px 20px -8px rgba(37, 99, 235, .7); transition: filter .15s, transform .15s;
}
.wzc-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.wzc-link { font-size: 13px; font-weight: 500; color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--wzc-line2); }
.wzc-link:hover { color: var(--foreground); }

/* ---- credits running low or gone: a card above the box */
.wzc-crd {
  --wzc-tone: #f59e0b; --wzc-tone-ink: #b45309;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top a" "packs packs"; gap: 18px 24px; align-items: center;
  width: 100%; max-width: 800px; margin: 0 0 18px; padding: 20px 22px; overflow: hidden; border-radius: 22px; text-align: start;
  background: var(--wzc-glass); border: 1px solid color-mix(in srgb, var(--wzc-tone) 45%, var(--wzc-line)); box-shadow: var(--wzc-shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.wzc-crd.lv2 { --wzc-tone: #ef4444; --wzc-tone-ink: #dc2626; }
html.wzc.dark .wzc-crd { --wzc-tone-ink: #fbbf24; }
html.wzc.dark .wzc-crd.lv2 { --wzc-tone-ink: #f87171; }
.wzc-crd::before { content: ""; position: absolute; inset: -60% auto auto -10%; width: 340px; height: 260px; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--wzc-tone) 16%, transparent), transparent); }
.wzc-crd > * { position: relative; }
.wzc-crd-top { grid-area: top; display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.wzc-crd-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: var(--wzc-tone-ink); background: color-mix(in srgb, var(--wzc-tone) 15%, transparent); }
.wzc-crd-ic svg { width: 19px; height: 19px; }
.wzc-crd-m { min-width: 0; }
.wzc-crd h2 { margin: 1px 0 0; font-size: 17px; line-height: 1.3; font-weight: 650; letter-spacing: -.015em; color: var(--foreground); }
.wzc-crd-m p { margin: 5px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted-foreground); }
.wzc-crd-m p.wzc-renew { margin-top: 8px; font-size: 12.5px; }
.wzc-meter { max-width: 340px; height: 6px; margin-top: 12px; overflow: hidden; border-radius: 3px; background: var(--wzc-line); }
.wzc-meter i { display: block; height: 100%; min-width: 4px; border-radius: 3px; background: linear-gradient(90deg, var(--wzc-tone), color-mix(in srgb, var(--wzc-tone) 70%, #f43f5e)); }
.wzc-crd-a { grid-area: a; display: grid; justify-items: center; gap: 8px; }
.wzc-crd-a .wzc-link { max-width: 220px; text-align: center; }
.wzc-packs { grid-area: packs; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.wzc-pack { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: 100%; padding: 12px 14px; border-radius: 14px; text-decoration: none;
  color: var(--foreground); background: var(--card); border: 1px solid var(--wzc-line); transition: border-color .2s, transform .2s, box-shadow .2s; }
.wzc-pack:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--wzc-blue) 50%, var(--wzc-line)); box-shadow: var(--wzc-shadow); }
.wzc-pack.is-pop { border-color: color-mix(in srgb, var(--wzc-blue) 45%, var(--wzc-line)); background: color-mix(in srgb, var(--wzc-blue) 5%, var(--card)); }
.wzc-pack b { font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.wzc-pack b small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted-foreground); }
.wzc-bonus { font-size: 12px; font-weight: 600; color: var(--wzc-ok); }
.wzc-pp { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted-foreground); }
.wzc-pop { position: absolute; top: -9px; inset-inline-end: 12px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-style: normal; font-weight: 650; line-height: 14px; color: #fff; background: var(--wzc-blue); }
.wzc-x { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  cursor: pointer; color: var(--muted-foreground); background: transparent; transition: background-color .15s, color .15s; }
.wzc-x:hover { color: var(--foreground); background: var(--accent, rgba(0, 0, 0, .05)); }
.wzc-x svg { width: 15px; height: 15px; }
.wzc-crd:has(.wzc-x) .wzc-crd-a { padding-top: 14px; }

/* ---- below the box */
.wzc-below { display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px; width: 100%; max-width: 1080px; margin-top: 64px; text-align: start; }
.wzc-below > * { min-width: 0; }
.wzc-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.wzc-h.c { justify-content: center; text-align: center; }
.wzc-h h2 { margin: 0; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; font-weight: 650; letter-spacing: -.025em; color: var(--foreground); text-wrap: balance; }
.wzc-h p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted-foreground); }
.wzc-more { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 14px; font-weight: 600; color: var(--foreground); text-decoration: none; }
.wzc-more:hover { color: var(--wzc-blue-t); }

/* how it works: a small picture of each moment in the builder */
.wzc-how-l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.wzc-hw { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--card); border: 1px solid var(--wzc-line); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.wzc-hv {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 176px; overflow: hidden;
  border-bottom: 1px solid var(--wzc-line); background: radial-gradient(110% 90% at 50% 125%, color-mix(in srgb, var(--wzc-blue) 13%, transparent), transparent 70%), color-mix(in srgb, var(--muted, #f5f5f5) 55%, var(--card));
}
.wzc-hv::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, var(--wzc-line2) 1px, transparent 1.3px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(75% 80% at 50% 45%, #000, transparent); mask-image: radial-gradient(75% 80% at 50% 45%, #000, transparent); opacity: .7; }
.wzc-hv > * { position: relative; }
.wzc-hw-b { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px 22px; }
.wzc-hw-b .n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; font: 650 13px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--wzc-blue-t); background: color-mix(in srgb, var(--wzc-blue) 10%, transparent); }
.wzc-hw-b h3 { margin: 3px 0 0; font-size: 16px; line-height: 1.3; font-weight: 650; letter-spacing: -.015em; color: var(--foreground); }
.wzc-hw-b p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted-foreground); }
.wzc-hv-in { display: flex; align-items: flex-end; gap: 10px; width: min(86%, 300px); padding: 12px 10px 10px 14px; border-radius: 16px; text-align: start;
  background: var(--card); border: 1px solid var(--wzc-line2); box-shadow: var(--wzc-shadow); }
html.wzc[dir="rtl"] .wzc-hv-in { padding: 12px 14px 10px 10px; }
.wzc-hv-in p { flex: 1; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12.5px; line-height: 1.45; color: var(--foreground); }
.wzc-hv-in .c { display: inline-block; width: 1.5px; height: 1.05em; margin-inline-start: 2px; vertical-align: -.18em; background: var(--wzc-blue); animation: wzc-blink 1s steps(2, start) infinite; }
.wzc-hv-in .go { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--wzc-blue); box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .8); }
.wzc-hv-in .go svg { width: 15px; height: 15px; }
.wzc-hv-pages { display: flex; gap: 8px; }
.wzc-hv-pages span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; color: var(--wzc-blue-t); background: var(--card); border: 1px solid var(--wzc-line); }
.wzc-hv-pages svg { width: 13px; height: 13px; }
.wzc-hv-pages i { width: 24px; height: 6px; border-radius: 3px; background: var(--wzc-line2); }
.wzc-hv-win { position: relative; width: min(74%, 250px); margin-top: 22px; border-radius: 12px; background: var(--card); border: 1px solid var(--wzc-line2); box-shadow: var(--wzc-shadow); }
.wzc-hv-win .bar { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--wzc-line); }
.wzc-hv-win .bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--wzc-line2); }
.wzc-hv-win img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 0 0 11px 11px; }
.wzc-hv-win .sel { position: absolute; inset-inline-start: 6%; top: 40%; width: 46%; height: 30%; border: 1.5px solid var(--wzc-blue); border-radius: 4px; background: color-mix(in srgb, var(--wzc-blue) 8%, transparent); }
.wzc-hv-win .sel i { position: absolute; width: 6px; height: 6px; border-radius: 2px; background: #fff; border: 1.5px solid var(--wzc-blue); }
.wzc-hv-win .sel i:nth-child(1) { left: -4px; top: -4px; } .wzc-hv-win .sel i:nth-child(2) { right: -4px; top: -4px; }
.wzc-hv-win .sel i:nth-child(3) { left: -4px; bottom: -4px; } .wzc-hv-win .sel i:nth-child(4) { right: -4px; bottom: -4px; }
.wzc-hv-win .tool { position: absolute; inset-inline-start: 6%; top: calc(40% - 32px); display: flex; gap: 1px; padding: 3px; border-radius: 9px; color: #fff; background: #14182b; box-shadow: var(--wzc-shadow); }
html.wzc.dark .wzc-hv-win .tool { color: #111114; background: #f2f2f4; }
.wzc-hv-win .tool svg { width: 12px; height: 12px; margin: 4px; }
.wzc-hv-win .cur { position: absolute; inset-inline-start: 46%; top: 63%; color: var(--foreground); }
.wzc-hv-win .cur svg { width: 18px; height: 18px; fill: var(--card); stroke-width: 1.6; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .25)); }
html.wzc[dir="rtl"] .wzc-hv-win .cur svg { transform: scaleX(-1); }
.wzc-hv-url { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 11px; border-radius: 999px; direction: ltr;
  font: 500 13px/1 ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace; color: var(--foreground); background: var(--card); border: 1px solid var(--wzc-line2); box-shadow: var(--wzc-shadow); }
.wzc-hv-url svg { width: 14px; height: 14px; color: var(--wzc-ok); }
.wzc-hv-url .live { width: 8px; height: 8px; margin-inline-start: 4px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.wzc-hv-done { display: flex; align-items: center; gap: 10px; width: min(74%, 230px); padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--wzc-line); }
.wzc-hv-done .ok { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: #22c55e; }
.wzc-hv-done .ok svg { width: 14px; height: 14px; stroke-width: 3; }
.wzc-hv-done .ln { flex: 1; }
.wzc-hv-done .ln i { display: block; height: 6px; border-radius: 3px; background: var(--wzc-line2); }
.wzc-hv-done .ln i + i { width: 60%; margin-top: 6px; }
.wzc-hv-done .gl svg { width: 16px; height: 16px; color: var(--muted-foreground); }

/* example cards */
.wzc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.wzc-card {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 8px; border-radius: 18px; text-align: start; cursor: pointer; font: inherit; color: inherit;
  background: var(--card); border: 1px solid var(--wzc-line); box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: transform .3s cubic-bezier(.22, .61, .24, 1), box-shadow .3s, border-color .3s;
}
.wzc-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--foreground) 20%, var(--wzc-line)); box-shadow: var(--wzc-shadow-lg); }
.wzc-card:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--background), 0 0 0 4px color-mix(in srgb, var(--foreground) 55%, transparent); }
.wzc-thumb { position: relative; display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 9; background: var(--muted); border: 1px solid var(--wzc-line); }
.wzc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.22, .61, .24, 1); }
.wzc-card:hover .wzc-thumb img { transform: scale(1.04); }
.wzc-ov { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 10, 20, .32); opacity: 0; transition: opacity .25s; }
.wzc-ov span { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #111114; background: #fff;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); transform: translateY(4px); transition: transform .25s; }
.wzc-ov svg { width: 15px; height: 15px; color: #111114; }
.wzc-card:hover .wzc-ov, .wzc-card:focus-visible .wzc-ov { opacity: 1; }
.wzc-card:hover .wzc-ov span, .wzc-card:focus-visible .wzc-ov span { transform: none; }
@media (hover: none) { .wzc-ov { display: none; } }
.wzc-cbody { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 12px 8px 6px; }
.wzc-sector { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--foreground); }
.wzc-sector svg { flex: none; width: 15px; height: 15px; color: var(--muted-foreground); }
.wzc-prompt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }
.wzc-use { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 600; color: var(--foreground); }
.wzc-use span { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.wzc-card:hover .wzc-use span { text-decoration-color: color-mix(in srgb, var(--foreground) 40%, transparent); }
.wzc-use svg { width: 14px; height: 14px; transition: transform .2s; }
.wzc-card:hover .wzc-use svg { transform: translateX(3px); }
html.wzc[dir="rtl"] .wzc-use svg { transform: scaleX(-1); }
html.wzc[dir="rtl"] .wzc-card:hover .wzc-use svg { transform: scaleX(-1) translateX(3px); }

/* more examples: the button under the picture cards, then compact cards */
.wzc-exmoreb { display: flex; justify-content: center; margin-top: 22px; }
.wzc-exmore {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--foreground); background: var(--background);
  border: 1px solid var(--wzc-line2); box-shadow: 0 1px 2px rgba(10, 10, 20, .05); transition: background-color .15s, border-color .15s;
}
.wzc-exmore:hover { border-color: color-mix(in srgb, var(--foreground) 28%, transparent); background: color-mix(in srgb, var(--foreground) 4%, var(--background)); }
.wzc-exmore:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--background), 0 0 0 4px color-mix(in srgb, var(--foreground) 55%, transparent); }
.wzc-exmore svg { width: 16px; height: 16px; color: var(--muted-foreground); transition: transform .2s; }
.wzc-exmore[aria-expanded="true"] svg { transform: rotate(180deg); }
.wzc-exmore .c, .wzc-exmore[aria-expanded="true"] .o { display: none; }
.wzc-exmore[aria-expanded="true"] .c { display: inline; }
.wzc-minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.wzc-minis[hidden] { display: none; }
.wzc-mini {
  position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; height: 100%; padding: 14px 14px 14px 14px; border-radius: 14px;
  text-align: start; cursor: pointer; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--wzc-line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03); transition: transform .25s cubic-bezier(.22, .61, .24, 1), box-shadow .25s, border-color .25s;
}
.wzc-mini:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--foreground) 20%, var(--wzc-line)); box-shadow: var(--wzc-shadow-lg); }
.wzc-mini:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--background), 0 0 0 4px color-mix(in srgb, var(--foreground) 55%, transparent); }
.wzc-mi {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--foreground);
  background: color-mix(in srgb, var(--foreground) 5%, var(--background)); box-shadow: inset 0 0 0 1px var(--wzc-line);
}
.wzc-mi svg { width: 17px; height: 17px; }
.wzc-mb { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-inline-end: 14px; }
.wzc-mn { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--foreground); }
.wzc-mp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 2px; font-size: 12.5px; line-height: 1.5; color: var(--muted-foreground); }
html.wzc:is(:lang(ar), :lang(ja), :lang(zh), :lang(ko)) .wzc-mp { line-height: 1.6; }
.wzc-ma { position: absolute; top: 14px; inset-inline-end: 12px; color: var(--muted-foreground); opacity: 0; transition: opacity .2s, transform .2s; }
.wzc-ma svg { width: 14px; height: 14px; }
.wzc-mini:hover .wzc-ma, .wzc-mini:focus-visible .wzc-ma { opacity: 1; transform: translateX(2px); color: var(--foreground); }
html.wzc[dir="rtl"] .wzc-ma svg { transform: scaleX(-1); }
html.wzc[dir="rtl"] .wzc-mini:hover .wzc-ma { transform: translateX(-2px); }
@media (max-width: 1100px) { .wzc-minis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .wzc-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wzc-minis { grid-template-columns: minmax(0, 1fr); gap: 10px; } .wzc-ma { opacity: 1; } .wzc-exmoreb { margin-top: 14px; } }
@media (prefers-reduced-motion: reduce) { .wzc-mini, .wzc-exmore svg, .wzc-ma { transition: none; } }

/* recent projects */
.wzc-projs ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.wzc-proj { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: var(--foreground);
  background: var(--card); border: 1px solid var(--wzc-line); transition: border-color .2s, box-shadow .2s, transform .2s; }
.wzc-proj:hover { border-color: color-mix(in srgb, var(--wzc-blue) 40%, var(--wzc-line)); box-shadow: var(--wzc-shadow); transform: translateY(-2px); }
.wzc-pi { position: relative; display: grid; place-items: center; flex: none; width: 64px; height: 40px; overflow: hidden; border-radius: 8px; font-size: 15px; font-weight: 700;
  color: hsl(var(--h) 55% 36%); background: hsl(var(--h) 70% 94%); }
html.wzc.dark .wzc-pi { color: hsl(var(--h) 75% 78%); background: hsl(var(--h) 35% 20%); }
/* the project's own thumbnail, as on /projects; the initial stays underneath until it loads */
.wzc-pi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .25s; }
.wzc-pi.has-img { background: var(--muted); }
.wzc-pi.has-img img { opacity: 1; }
.wzc-pi.has-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foreground) 10%, transparent); pointer-events: none; }
.wzc-pn { flex: 1; min-width: 0; overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.wzc-po { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 13px; color: var(--muted-foreground); }
.wzc-po svg, .wzc-more svg, .wzc-btn svg { width: 15px; height: 15px; transition: transform .2s; }
.wzc-proj:hover .wzc-po svg, .wzc-more:hover svg, .wzc-btn:hover svg:last-child { transform: translateX(3px); }
html.wzc[dir="rtl"] .wzc-po svg, html.wzc[dir="rtl"] .wzc-more svg, html.wzc[dir="rtl"] .wzc-btn svg:last-child { transform: scaleX(-1); }
html.wzc[dir="rtl"] .wzc-proj:hover .wzc-po svg, html.wzc[dir="rtl"] .wzc-more:hover svg, html.wzc[dir="rtl"] .wzc-btn:hover svg:last-child { transform: scaleX(-1) translateX(3px); }

/* Plus card for people on the Free plan (v77: plain card, same border and radius as the example cards) */
.wzc-up { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 22px 24px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--wzc-line); }
.wzc-up-l { min-width: 0; }
.wzc-up h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: var(--foreground); }
.wzc-up ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0; padding: 0; list-style: none; }
.wzc-up li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted-foreground); }
.wzc-up li svg { flex: none; width: 14px; height: 14px; stroke-width: 2.25; color: var(--foreground); opacity: .7; }
.wzc-up-r { display: flex; align-items: center; gap: 20px; flex: none; }
.wzc-up-price { display: grid; justify-items: end; margin: 0; line-height: 1.2; color: var(--foreground); }
.wzc-up-price b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.wzc-up-price span { display: inline; margin-inline-start: 2px; font-size: 13px; color: var(--muted-foreground); }
.wzc-up-price b + span { grid-row: 1; grid-column: 2; align-self: end; }
.wzc-up-price small { grid-column: 1 / -1; margin-top: 2px; font-size: 12px; color: var(--muted-foreground); }
.wzc-up-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 10px; white-space: nowrap;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--background) !important; background: var(--foreground); transition: opacity .15s; }
.wzc-up-btn:hover { opacity: .88; }
.wzc-up-btn svg { width: 15px; height: 15px; transition: transform .2s; }
.wzc-up-btn:hover svg { transform: translateX(2px); }
html.wzc[dir="rtl"] .wzc-up-btn svg { transform: scaleX(-1); }
.wzc-up-btn:focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }

/* ---- smaller screens */
@media (max-width: 1100px) { .wzc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wzc-cards li:nth-child(n + 7) { display: none; } }
@media (max-width: 960px) {
  .wzc-how-l { grid-template-columns: 1fr; gap: 12px; }
  .wzc-hw { flex-direction: row; align-items: stretch; }
  .wzc-hv { flex: 0 0 44%; height: auto; min-height: 150px; border-bottom: 0; border-inline-end: 1px solid var(--wzc-line); }
  .wzc-hw-b { align-self: center; }
}
@media (max-width: 860px) {
  .wzc-plan { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .wzc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wzc-cards li:nth-child(n + 7) { display: list-item; }
  .wzc-up { flex-direction: column; align-items: stretch; gap: 18px; }
  .wzc-up-r { justify-content: space-between; }
  .wzc-up-price { justify-items: start; }
}
@media (max-width: 640px) {
  html.wzc #main-content main { padding-top: 32px; }
  .wzc-sub { font-size: 15px; margin-bottom: 24px; }
  html.wzc [data-tour-id="create.prompt_input"] textarea, .wzc-type { padding: 18px 18px 6px; font-size: 17px; }
  html.wzc [data-tour-id="create.prompt_input"] textarea { min-height: 116px; }
  .wzc-plan-r { grid-template-columns: 1fr; }
  .wzc-crd { grid-template-columns: 1fr; grid-template-areas: "top" "packs" "a"; gap: 14px; padding: 18px 16px; }
  .wzc-crd-a { justify-items: stretch; text-align: center; padding-top: 0 !important; }
  .wzc-crd-a .wzc-link { max-width: none; }
  .wzc-packs { gap: 8px; }
  .wzc-pack { padding: 11px 10px; }
  .wzc-pack b { font-size: 16px; }
  .wzc-pop { inset-inline-end: 8px; }
  .wzc-plan-cta { justify-items: stretch; text-align: center; }
  .wzc-plan-cta small { justify-content: center; }
  .wzc-below { gap: 48px; margin-top: 40px; }
  .wzc-hw { flex-direction: column; }
  .wzc-hv { flex: none; height: 150px; min-height: 0; border-inline-end: 0; border-bottom: 1px solid var(--wzc-line); }
  .wzc-how-l { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; gap: 12px; margin-inline: -16px; padding: 2px 16px 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .wzc-how-l::-webkit-scrollbar { display: none; }
  .wzc-hw { scroll-snap-align: center; }
  .wzc-cards { display: flex; gap: 12px; margin-inline: -16px; padding: 2px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .wzc-cards::-webkit-scrollbar { display: none; }
  .wzc-cards li { flex: 0 0 78%; scroll-snap-align: center; }
  .wzc-up { padding: 20px; }
  .wzc-up-r { flex-wrap: wrap; gap: 14px; }
  .wzc-up-btn { flex: 1 1 100%; justify-content: center; }
  .wzc-h { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .wzc-type i, .wzc-hv-in .c { animation: none; } .wzc-card, .wzc-thumb img, .wzc-pi img, .wzc-proj, .wzc-btn, .wzc-ov, .wzc-ov span { transition: none; } }

/* Collapsed sidebar: the square Webza mark instead of a shrunken wordmark
   (black in light mode, white in dark mode; same 32px box as the menu buttons). */
[data-collapsible="icon"] [data-sidebar="header"] a > div {
  width: 32px; height: 32px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1500 1500'%3E%3Crect width='1500' height='1500' rx='260.87' fill='%23000'/%3E%3Cpath d='M460.766 487.956H258L556.411 1210.38L747.699 840.942L941.539 1210.38L1242.5 487.956H1041.01L919.859 797.925L747.699 450L578.09 796.66L460.766 487.956Z' fill='%23fff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.dark [data-collapsible="icon"] [data-sidebar="header"] a > div {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1500 1500'%3E%3Crect width='1500' height='1500' rx='260.87' fill='%23fff'/%3E%3Cpath d='M460.766 487.956H258L556.411 1210.38L747.699 840.942L941.539 1210.38L1242.5 487.956H1041.01L919.859 797.925L747.699 450L578.09 796.66L460.766 487.956Z' fill='%23000'/%3E%3C/svg%3E");
}
[data-collapsible="icon"] [data-sidebar="header"] a > div > img { visibility: hidden; }
/* v57: a "more" example that has a sample site shows its first screen instead of an icon */
.wzc-mt { width: 76px; height: auto; aspect-ratio: 16 / 10; overflow: hidden; background: var(--background); }
.wzc-mt img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .4s cubic-bezier(.22, .61, .24, 1); }
html.wzc[dir="rtl"] .wzc-mt img { object-position: right top; }
.wzc-mini.has-pic:hover .wzc-mt img { transform: scale(1.06); }
@media (max-width: 640px) { .wzc-mt { width: 64px; } }

/* v73: template and design-system pickers (app-create.js pickers()) */
[data-wzk] > svg { display: none !important; }
[data-wzk] { display: flex; align-items: center; gap: .5rem; }
.wzk-tile { display: inline-grid; place-items: center; flex: none; width: 1.25rem; height: 1rem; color: var(--muted-foreground, #888); }
.wzk-tile .wzk-svg { width: 1rem; height: 1rem; stroke-width: 1.75; }
[data-highlighted] .wzk-tile, [data-state="checked"] .wzk-tile { color: var(--foreground, currentColor); }
.wzk-chip { --r: var(--popover, #fff); display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.25rem; height: 1rem; }
button[role="combobox"] .wzk-chip { --r: var(--background, #fff); }
[data-highlighted] .wzk-chip { --r: var(--accent, #f4f4f5); }
.wzk-chip i { display: block; flex: none; width: .5rem; height: .5rem; border-radius: 50%; margin-left: -.125rem;
  box-shadow: 0 0 0 1.5px var(--r), inset 0 0 0 1px rgb(0 0 0 / .08); }
.wzk-chip i:first-child { margin-left: 0; }
.wzk-chip i:nth-child(1) { background: var(--a); }
.wzk-chip i:nth-child(2) { background: var(--b); }
.wzk-chip i:nth-child(3) { background: var(--c); }
/* the settings popover grows when a design set's preview appears: keep it inside the window */
[data-slot="popover-content"]:has(#cz-template) > div { max-height: min(60vh, calc(var(--radix-popover-content-available-height, 60vh) - 12px)) !important; overscroll-behavior: contain; }
[role="option"] [data-wzk] { min-height: 1.75rem; }

/* v76: AI model row in the Customize panel (app-create.js modelRow()) */
.wzc-model { display: grid; gap: .375rem; margin-top: .75rem; }
.wzc-model-l { font-size: .75rem; font-weight: 500; line-height: 1rem; color: var(--muted-foreground, #888); }
.wzc-model svg { width: .875rem; height: .875rem; flex: none; }
.wzc-model-seg { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .1875rem; border: 1px solid var(--input, var(--border, #e5e5e5)); border-radius: .5rem; }
html.dark .wzc-model-seg, html.dark .wzc-model-paid { background: color-mix(in oklab, var(--input, #333) 30%, transparent); }
.wzc-model-seg > * { display: flex; align-items: center; justify-content: center; gap: .375rem; height: 1.875rem; padding: 0 .5rem; border-radius: .375rem;
  font-size: .8125rem; font-weight: 500; white-space: nowrap; text-decoration: none; }
.wzc-model-seg .is-on { background: var(--accent, #f4f4f5); color: var(--foreground, #111); }
.wzc-model-seg .is-on svg:last-child { color: var(--muted-foreground, #888); }
.wzc-model-seg .is-lock { color: var(--muted-foreground, #888); transition: background-color .15s, color .15s; }
.wzc-model-seg .is-lock:hover, .wzc-model-seg .is-lock:focus-visible { background: var(--accent, #f4f4f5); color: var(--foreground, #111); outline: none; }
.wzc-model-seg em { font-style: normal; font-size: .6875rem; font-weight: 600; padding: .0625rem .375rem; border-radius: 999px;
  border: 1px solid var(--border, #e5e5e5); color: var(--foreground, #111); }
.wzc-model-hint { margin: 0; font-size: .75rem; line-height: 1.45; color: var(--muted-foreground, #888); }
.wzc-model-hint a { color: var(--foreground, #111); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.wzc-model-hint a:hover { text-decoration-color: currentColor; }
.wzc-model-paid { display: flex; align-items: center; gap: .5rem; height: 2.25rem; padding: 0 .75rem; border: 1px solid var(--input, var(--border, #e5e5e5)); border-radius: .5rem; font-size: .875rem; }
.wzc-model-paid span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wzc-model-paid small { flex: none; font-size: .75rem; color: var(--muted-foreground, #888); white-space: nowrap; }

/* v79: fields at 16px on touch screens (iPhone zooms in on smaller text) */
@media (pointer: coarse) {
  html.wzc :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select) { font-size: max(16px, 1em) !important; }
}

/* ================================================================ the panel's own pages
   html.wzp is set by app.js on the account pages (projects, files, databases, GitHub, API
   keys and docs, billing, usage, invite, plans, support, settings); the sidebar rules
   apply on every app page with the top bar (html.wza). Same rule as everywhere: the app's
   elements are reached through stable hooks (data-slot, data-sidebar, roles, the app's
   utility classes), only their look changes; every button, field and link works as before. */

/* ---- sidebar: calmer items, a clear current page, quiet section label */
html.wza [data-sidebar="menu-button"] {
  height: 34px; gap: 10px; padding-inline: 10px; border-radius: 9px; font-size: 13.5px;
  color: color-mix(in srgb, var(--sidebar-foreground, var(--foreground)) 82%, transparent); transition: background-color .15s, color .15s;
}
html.wza [data-sidebar="menu-button"] > svg { width: 16px; height: 16px; color: var(--muted-foreground); transition: color .15s; }
html.wza [data-sidebar="menu-button"]:hover { color: var(--sidebar-foreground, var(--foreground)); background: color-mix(in srgb, var(--foreground) 5%, transparent); }
html.wza [data-sidebar="menu-button"]:hover > svg { color: var(--sidebar-foreground, var(--foreground)); }
html.wza [data-sidebar="menu-button"][data-active="true"] {
  font-weight: 550; color: var(--sidebar-foreground, var(--foreground)); background: color-mix(in srgb, var(--foreground) 7.5%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foreground) 6%, transparent);
}
html.wza [data-sidebar="menu-button"][data-active="true"] > svg { color: var(--sidebar-foreground, var(--foreground)); }
html.wza [data-sidebar="group-label"] {
  height: 30px; margin-bottom: 2px; padding-inline: 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-foreground);
}
html.wza [data-sidebar="group-label"]:hover { background: transparent; color: var(--foreground); }
html.wza[lang="tr"] [data-sidebar="group-label"], html.wza:is(:lang(ar), :lang(ja), :lang(zh), :lang(ko)) [data-sidebar="group-label"] { letter-spacing: .02em; }
/* recent projects under "Recent" */
html.wza [data-sidebar="content"] a.h-8, html.wza [role="navigation"] a.h-8.text-muted-foreground { height: 30px; border-radius: 8px; font-size: 13px; }
/* The two buttons at the bottom ("Invite friends", and "Restart tour" where it stays in
   the sidebar: on phones, since wider screens get it as the help icon in the top bar):
   the same small card, icon on a tile, title over a muted line. */
html.wza [data-sidebar="footer"] { gap: 8px; padding: 12px; }
html.wza [data-sidebar="footer"] > button[data-slot="button"] {
  min-height: 52px; margin: 0; gap: 10px; padding: 9px 12px 9px 10px; border: 1px solid var(--wzc-line); border-radius: 12px; box-shadow: none;
  color: var(--foreground); background: color-mix(in srgb, var(--foreground) 3%, transparent); transition: background-color .15s, border-color .15s;
}
html.wza [data-sidebar="footer"] > button[data-slot="button"]:hover { border-color: var(--wzc-line2); background: color-mix(in srgb, var(--foreground) 6%, transparent); }
html.wza [data-sidebar="footer"] > button[data-slot="button"] > svg {
  box-sizing: border-box; width: 32px !important; height: 32px !important; margin: 0; padding: 8px; border-radius: 9px;
  color: var(--foreground); background: var(--background); box-shadow: 0 0 0 1px var(--wzc-line);
}
html.wza [data-sidebar="footer"] > button[data-slot="button"] > div { gap: 1px; min-width: 0; }
html.wza [data-sidebar="footer"] > button[data-slot="button"] span:first-child { font-size: 13px; font-weight: 600; line-height: 1.3; }
html.wza [data-sidebar="footer"] > button[data-slot="button"] span + span { font-size: 11.5px; line-height: 1.35; }

/* ---- page header: title, one line of context, actions; a hairline under it */
html.wzp main { padding-top: 32px; }
html.wzp main :is([class*="justify-between"]:has(> div > h1.text-2xl), div:has(> h1.text-2xl):not(.prose):not([class*="justify-between"] > div)) {
  margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--wzc-line);
}
html.wzp main h1.text-2xl { margin: 0; font-size: 27px; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
html.wzp[dir="rtl"] main h1.text-2xl, html.wzp:is(:lang(ja), :lang(zh), :lang(ko)) main h1.text-2xl { letter-spacing: 0; }
html.wzp main h1.text-2xl + p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted-foreground); }
html.wzp main .prose:has(> h1.text-2xl) { max-width: 72ch; }

/* ---- buttons and fields */
html.wzp main :is([data-slot="button"], [data-slot="dialog-trigger"], [data-slot="alert-dialog-trigger"]):is(.h-9, .h-10) { border-radius: 10px; }
html.wzp main :is([data-slot="button"], [data-slot="dialog-trigger"], [data-slot="alert-dialog-trigger"]).h-9 { height: 36px; padding-inline: 14px; }
html.wzp main :is([data-slot="button"], [data-slot="dialog-trigger"], [data-slot="alert-dialog-trigger"]).h-10 { height: 42px; }
html.wzp main :is([data-slot="button"], [data-slot="dialog-trigger"], [data-slot="alert-dialog-trigger"]).border-input { border-color: var(--wzc-line2); box-shadow: 0 1px 1px rgba(10, 10, 20, .04); }
html.wzp main [data-slot="button"]:is(.size-8, .size-9) { border-radius: 9px; }
/* destructive actions (cancel subscription…): red text on a quiet frame; the confirm dialog keeps the solid red */
html.wzp main [data-slot="alert-dialog-trigger"].bg-destructive {
  color: var(--wza-red); background: transparent; border: 1px solid color-mix(in srgb, var(--wza-red) 32%, transparent); box-shadow: none;
}
html.wzp main [data-slot="alert-dialog-trigger"].bg-destructive:hover { background: color-mix(in srgb, var(--wza-red) 9%, transparent); border-color: color-mix(in srgb, var(--wza-red) 45%, transparent); }
html.wzp main :is([data-slot="input"], [data-slot="select-trigger"], [data-slot="textarea"]) {
  border-radius: 10px; border-color: var(--wzc-line2); background: var(--background); box-shadow: 0 1px 1px rgba(10, 10, 20, .03);
  transition: border-color .15s, box-shadow .15s;
}
html.wzp main :is([data-slot="input"], [data-slot="select-trigger"]):not(.h-8):not([class*="h-7"]) { height: 38px; }
html.wzp.dark main :is([data-slot="input"], [data-slot="select-trigger"], [data-slot="textarea"]) { background: color-mix(in srgb, var(--foreground) 3.5%, var(--background)); box-shadow: none; }
html.wzp main :is([data-slot="input"], [data-slot="select-trigger"], [data-slot="textarea"]):hover:not(:disabled):not(:focus-visible) { border-color: color-mix(in srgb, var(--foreground) 26%, transparent); }
html.wzp main :is([data-slot="input"], [data-slot="select-trigger"], [data-slot="textarea"]):focus-visible,
html.wzp main [data-slot="select-trigger"][data-state="open"] { border-color: var(--wzc-blue-t, #2563eb); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wzc-blue-t, #2563eb) 16%, transparent); }
html.wzp main [data-slot="input"][readonly] { color: var(--muted-foreground); }
html.wzp main [data-slot="label"] { font-size: 13px; }

/* long names (a project picked in File manager) stay inside the screen */
html.wzp main [data-slot="select-trigger"] { max-width: 100%; }
html.wzp main [data-slot="select-trigger"] > span.truncate { min-width: 0; }
html.wzp main [data-slot="card-header"] > * { min-width: 0; }

/* ---- cards */
html.wzp main :is([data-slot="card"], div.bg-card.border.rounded-lg) {
  border-radius: 16px; border-color: var(--wzc-line); background: var(--card);
  box-shadow: 0 1px 2px rgba(10, 10, 20, .04), 0 12px 32px -24px rgba(10, 10, 20, .28);
}
html.wzp.dark main :is([data-slot="card"], div.bg-card.border.rounded-lg) { background: color-mix(in srgb, var(--foreground) 2.5%, var(--background)); box-shadow: none; }
html.wzp main [data-slot="card-title"] { font-size: 15.5px; letter-spacing: -.01em; }
html.wzp main [data-slot="card-title"] > svg { width: 16px; height: 16px; color: var(--muted-foreground); }
html.wzp main [data-slot="card-description"] { font-size: 13.5px; line-height: 1.5; }
html.wzp main div.bg-card.border.rounded-lg section > header h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
/* side menus inside a page (settings, API docs): the current item as a soft highlight */
html.wzp main nav button.p-2.w-full { min-height: 36px; padding-inline: 10px; border-radius: 9px; color: color-mix(in srgb, var(--foreground) 82%, transparent); }
html.wzp main nav button.p-2.w-full > svg { width: 16px; height: 16px; color: var(--muted-foreground); }
html.wzp main nav button.p-2.w-full:hover { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 5%, transparent); }
html.wzp main nav button.p-2.w-full.bg-primary {
  font-weight: 600; color: var(--foreground); background: color-mix(in srgb, var(--foreground) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foreground) 7%, transparent);
}
html.wzp main nav button.p-2.w-full.bg-primary > svg { color: var(--foreground); }
html.wzp main nav p.uppercase { font-size: 11px; letter-spacing: .06em; }

/* ---- segmented tabs (All / Favorites / Trash, ticket filters, usage views) */
html.wzp main [data-slot="tabs-list"] {
  height: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 2px; padding: 3px; border-radius: 12px;
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
}
html.wzp main [data-slot="tabs-list"]::-webkit-scrollbar { display: none; }
html.wzp main [data-slot="tabs-list"] > [role="tab"] {
  height: 32px; padding: 0 13px; gap: 7px; border: 0; border-radius: 9px; font-size: 13.5px; color: var(--muted-foreground);
  transition: color .15s, background-color .15s, box-shadow .15s;
}
html.wzp main [data-slot="tabs-list"] > [role="tab"]:hover { color: var(--foreground); }
html.wzp main [data-slot="tabs-list"] > [role="tab"] > svg { width: 15px; height: 15px; }
html.wzp main [data-slot="tabs-list"] > [role="tab"][data-state="active"] {
  color: var(--foreground); background: var(--background); box-shadow: 0 1px 2px rgba(10, 10, 20, .1), 0 0 0 1px var(--wzc-line);
}
html.wzp.dark main [data-slot="tabs-list"] > [role="tab"][data-state="active"] { background: color-mix(in srgb, var(--foreground) 12%, var(--background)); }
html.wzp main [data-slot="tabs-list"] > [role="tab"] > span.rounded { margin-inline-start: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
/* sort and visibility selects on Projects: the app gives them a fixed 140px, which cut
   "Son düzenleme", "Tüm görünürlükler" and longer labels in other languages */
html.wzp main [data-slot="select-trigger"].w-\[140px\] { width: auto; min-width: 140px; gap: 8px; }
/* grid / list / full width toggles on Projects */
html.wzp main div[role="group"].border.rounded-lg { gap: 2px; padding: 3px; border: 0; border-radius: 11px; background: color-mix(in srgb, var(--foreground) 6%, transparent); }
html.wzp main div[role="group"].border.rounded-lg > button { width: 30px; height: 28px; border-radius: 8px; color: var(--muted-foreground); }
html.wzp main div[role="group"].border.rounded-lg > button:is(.bg-secondary, .bg-accent, .bg-muted, [aria-pressed="true"], [data-state="on"]) {
  color: var(--foreground); background: var(--background); box-shadow: 0 1px 2px rgba(10, 10, 20, .1), 0 0 0 1px var(--wzc-line);
}
html.wzp.dark main div[role="group"].border.rounded-lg > button:is(.bg-secondary, .bg-accent, .bg-muted, [aria-pressed="true"], [data-state="on"]) { background: color-mix(in srgb, var(--foreground) 12%, var(--background)); }

/* project cards on Projects: framed thumbnail that lifts a little on hover */
html.wzp main .group.relative > a > div[class*="aspect-[4/3]"] {
  border-radius: 14px; border-color: var(--wzc-line); box-shadow: 0 1px 2px rgba(10, 10, 20, .05); transition: box-shadow .2s, transform .2s, border-color .2s;
}
html.wzp main .group.relative:hover > a > div[class*="aspect-[4/3]"] {
  transform: translateY(-2px); border-color: var(--wzc-line2); box-shadow: 0 1px 2px rgba(10, 10, 20, .06), 0 18px 40px -22px rgba(10, 10, 20, .45);
}
html.wzp main .group.relative > div > h3.truncate { font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; }
/* the card's "…" menu: the app puts it in an empty box between the picture and the title, so
   on phones (where it always shows) and on hover it sat over the title's last letters; it
   now sits on the picture's top corner, as a small frosted button */
html.wzp main .group.relative > div.relative[data-table-action-menu] { position: static; }
html.wzp main .group.relative > div.relative[data-table-action-menu] > button[data-table-action-menu-trigger] {
  top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 9px; color: var(--foreground);
  background: color-mix(in srgb, var(--background) 82%, transparent); box-shadow: 0 0 0 1px var(--wzc-line), 0 4px 12px -6px rgba(10, 10, 20, .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
html.wzp main .group.relative > div.relative[data-table-action-menu] > button[data-table-action-menu-trigger]:hover { background: var(--background); }
@media (prefers-reduced-motion: reduce) { html.wzp main .group.relative > a > div[class*="aspect-[4/3]"] { transition: none; } html.wzp main .group.relative:hover > a > div[class*="aspect-[4/3]"] { transform: none; } }

/* ---- tables (API keys, invoices) */
html.wzp main div.rounded-md.border:has(> [data-slot="table-container"]), html.wzp main [data-slot="table-container"].rounded-md.border {
  overflow: hidden; border-radius: 12px; border-color: var(--wzc-line); background: transparent;
}
html.wzp main [data-slot="table-header"] [data-slot="table-row"] { background: color-mix(in srgb, var(--foreground) 3%, transparent); }
html.wzp main [data-slot="table-head"] { height: 42px; padding-inline: 14px; font-size: 12.5px; font-weight: 500; color: var(--muted-foreground); }
html.wzp main [data-slot="table-head"] button { height: 28px; font-size: 12.5px; font-weight: 500; color: var(--muted-foreground); }
html.wzp main [data-slot="table-head"] button:hover { color: var(--foreground); background: transparent; }
html.wzp main [data-slot="table-head"] button svg { width: 13px !important; height: 13px !important; opacity: .65; }
html.wzp main [data-slot="table-cell"] { padding: 13px 14px; }
html.wzp main [data-slot="table-row"] { border-color: var(--wzc-line); }
html.wzp main [data-slot="table-body"] [data-slot="table-row"]:hover { background: color-mix(in srgb, var(--foreground) 2.5%, transparent); }
html.wzp main [data-slot="table-body"] [data-slot="table-row"]:last-child { border-bottom: 0; }
html.wzp main [data-slot="table-cell"] .font-mono, html.wzp main [data-slot="table-cell"] code { font-size: 12.5px; }

/* ---- badges: pills; finished / active ones in green with a dot */
html.wzp main [data-slot="badge"] { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
html.wzp main [data-slot="badge"].bg-secondary { color: color-mix(in srgb, var(--foreground) 85%, transparent); background: color-mix(in srgb, var(--foreground) 7%, transparent); }
html.wzp main [data-slot="badge"].text-foreground:not(.bg-secondary):not(.bg-primary) { border-color: var(--wzc-line2); }
html.wzp main [data-slot="badge"][class*="bg-primary/10"] {
  gap: 6px; padding-inline: 8px 10px; color: var(--wzc-ok); background: color-mix(in srgb, var(--wzc-ok) 12%, transparent);
}
html.wzp main [data-slot="badge"][class*="bg-primary/10"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---- empty states: an icon tile, a clear line, the action */
html.wzp main div.border-dashed.text-center:has(> h3) {
  border-width: 1.5px; border-color: var(--wzc-line2); border-radius: 18px;
  background: radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--foreground) 3.5%, transparent), transparent 70%);
}
html.wzp main div.border-dashed.text-center:has(> h3) > div.mb-4:first-child,
html.wzp main div.text-center:has(> h3) > div.mb-4:first-child:has(> svg) {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px; color: var(--foreground);
  background: var(--background); box-shadow: 0 1px 2px rgba(10, 10, 20, .08), 0 0 0 1px var(--wzc-line), 0 10px 24px -14px rgba(10, 10, 20, .35);
}
html.wzp.dark main div.text-center:has(> h3) > div.mb-4:first-child:has(> svg) { background: color-mix(in srgb, var(--foreground) 7%, var(--background)); box-shadow: 0 0 0 1px var(--wzc-line); }
html.wzp main div.text-center:has(> h3) > div.mb-4:first-child > svg { width: 24px; height: 24px; }
html.wzp main div.text-center:has(> h3) > h3 { margin-bottom: 6px; font-size: 16.5px; font-weight: 600; color: var(--foreground); }
html.wzp main div.text-center:has(> h3) > p { font-size: 13.5px; line-height: 1.55; color: var(--muted-foreground); }
html.wzp main div.text-center:has(> h3) > div.mt-4 { margin-top: 20px; }
/* upload area (File manager) */
html.wzp main div[role="presentation"].border-dashed { border-width: 1.5px; border-color: var(--wzc-line2); border-radius: 16px; transition: border-color .15s, background-color .15s; }
html.wzp main div[role="presentation"].border-dashed:hover { border-color: color-mix(in srgb, var(--wzc-blue-t, #2563eb) 45%, transparent); background: color-mix(in srgb, var(--wzc-blue-t, #2563eb) 6%, transparent); }
html.wzp main div[role="presentation"].border-dashed > svg {
  box-sizing: border-box; width: 44px; height: 44px; padding: 11px; border-radius: 12px; color: var(--foreground);
  background: var(--background); box-shadow: 0 1px 2px rgba(10, 10, 20, .08), 0 0 0 1px var(--wzc-line);
}

/* ---- usage: the credit bar */
html.wzp main [data-slot="card-content"] > div.flex.gap-2:has(> button.h-8.bg-primary):has(> button.h-8.border-input) {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--foreground) 6%, transparent);
}
html.wzp main [data-slot="card-content"] > div.flex.gap-2:has(> button.h-8.bg-primary):has(> button.h-8.border-input) > button.h-8 {
  height: 30px; padding: 0 13px; border: 0; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--muted-foreground); background: transparent; box-shadow: none;
}
html.wzp main [data-slot="card-content"] > div.flex.gap-2:has(> button.h-8.bg-primary):has(> button.h-8.border-input) > button.h-8:hover { color: var(--foreground); }
html.wzp main [data-slot="card-content"] > div.flex.gap-2:has(> button.h-8.bg-primary):has(> button.h-8.border-input) > button.h-8.bg-primary {
  color: var(--foreground); background: var(--background); box-shadow: 0 1px 2px rgba(10, 10, 20, .1), 0 0 0 1px var(--wzc-line);
}
html.wzp.dark main [data-slot="card-content"] > div.flex.gap-2:has(> button.h-8.bg-primary):has(> button.h-8.border-input) > button.h-8.bg-primary { background: color-mix(in srgb, var(--foreground) 12%, var(--background)); }
html.wzp main [data-slot="progress"] { height: 8px; background: var(--wzc-line); }
html.wzp main [data-slot="progress-indicator"] { border-radius: 999px; }

/* ---- plans: the popular plan stands out in blue, the current one quietly; missing items muted */
html.wzp main .grid > [data-slot="card"] [data-slot="card-title"].text-xl { font-size: 19px; font-weight: 650; }
html.wzp main .grid > [data-slot="card"] [data-slot="card-content"] span.text-4xl { font-size: 40px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
html.wzp main .grid > [data-slot="card"] [data-slot="card-content"] ul > li > svg { width: 17px; height: 17px; }
html.wzp main .grid > [data-slot="card"] [data-slot="card-content"] ul > li > svg.lucide-x { color: var(--muted-foreground); opacity: .55; }
html.wzp main .grid > [data-slot="card"] [data-slot="card-content"] ul > li:has(> svg.lucide-x) > span { color: var(--muted-foreground); opacity: .8; }
html.wzp main .grid > [data-slot="card"].shadow-lg.border-primary:not(.ring-2) {
  border-color: var(--wzc-blue); box-shadow: 0 0 0 1px var(--wzc-blue), 0 24px 60px -30px rgba(37, 99, 235, .55);
}
html.wzp.dark main .grid > [data-slot="card"].shadow-lg.border-primary:not(.ring-2) {
  background: linear-gradient(180deg, rgba(37, 99, 235, .1), transparent 45%), color-mix(in srgb, var(--foreground) 2.5%, var(--background));
}
html.wzp:not(.dark) main .grid > [data-slot="card"].shadow-lg.border-primary:not(.ring-2) { background: linear-gradient(180deg, rgba(37, 99, 235, .06), transparent 45%), var(--card); }
html.wzp main .grid > [data-slot="card"].shadow-lg.border-primary:not(.ring-2) > div > [data-slot="badge"].bg-primary { color: #fff; background: var(--wzc-blue); box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .6); }
html.wzp main .grid > [data-slot="card"].shadow-lg.border-primary:not(.ring-2) [data-slot="card-footer"] [data-slot="button"].bg-primary {
  font-weight: 600; color: #fff; background: var(--wzc-blue); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 20px -10px rgba(37, 99, 235, .8);
}
html.wzp main .grid > [data-slot="card"].shadow-lg.border-primary:not(.ring-2) [data-slot="card-footer"] [data-slot="button"].bg-primary:hover { filter: brightness(1.08); }
html.wzp main .grid > [data-slot="card"].ring-2 { border-color: color-mix(in srgb, var(--foreground) 35%, transparent); box-shadow: none; --tw-ring-shadow: 0 0 #0000; }
html.wzp main .grid > [data-slot="card"].ring-2 > div > [data-slot="badge"] { color: var(--foreground); background: var(--background); box-shadow: 0 0 0 1px var(--wzc-line2); }
html.wzp main .grid > [data-slot="card"] > div.absolute > [data-slot="badge"] { padding: 4px 11px; font-size: 11.5px; font-weight: 600; }

/* ---- "choose a payment method" (after Choose plan): PayPal or a card, each as a clear row
   with its marks; the gateways' own English lines are replaced in app-create.js */
html.wza [data-slot="dialog-content"]:has([data-wza="pm"]) { gap: 18px; padding: 24px; border-radius: 18px; }
html.wza [data-slot="dialog-content"]:has([data-wza="pm"]) [data-slot="dialog-title"] { gap: 10px; font-size: 18px; letter-spacing: -.01em; }
html.wza [data-slot="dialog-content"]:has([data-wza="pm"]) [data-slot="dialog-title"] > svg { color: var(--muted-foreground); }
html.wza [data-slot="dialog-content"]:has([data-wza="pm"]) div.p-4.bg-muted.rounded-lg {
  padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--foreground) 4%, transparent); box-shadow: inset 0 0 0 1px var(--wzc-line);
}
html.wza [data-slot="dialog-content"]:has([data-wza="pm"]) div.p-4.bg-muted.rounded-lg h4 { font-size: 15px; }
html.wza [data-slot="dialog-content"]:has([data-wza="pm"]) div.p-4.bg-muted.rounded-lg p.text-xl { font-size: 21px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
html.wza button[data-slot="button"]:has(> [data-wza="pm"]) {
  min-height: 70px; padding: 12px 16px 12px 12px; gap: 14px; border-color: var(--wzc-line2); border-radius: 14px; box-shadow: 0 1px 2px rgba(10, 10, 20, .04);
  white-space: normal; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
html.wza button[data-slot="button"]:has(> [data-wza="pm"]):hover {
  border-color: color-mix(in srgb, var(--foreground) 32%, transparent); background: color-mix(in srgb, var(--foreground) 2.5%, var(--background));
  box-shadow: 0 6px 18px -12px rgba(10, 10, 20, .45);
}
/* the chosen method (buying credits): the app fills it with its primary colour, which hid our
   text (black on black, white on white in dark mode); a framed row instead, like the chosen pack */
html.wza button[data-slot="button"].bg-primary:has(> [data-wza="pm"]),
html.wza button[data-slot="button"].bg-primary:has(> [data-wza="pm"]):hover {
  color: var(--foreground); background: color-mix(in srgb, var(--foreground) 4%, var(--background));
  border: 1px solid var(--foreground); box-shadow: inset 0 0 0 1px var(--foreground);
}
html.wza button[data-slot="button"].bg-primary:has(> [data-wza="pm"]) > div.flex-shrink-0 { color: var(--foreground); }
html.wza button[data-slot="button"]:has(> [data-wza="pm"]) > div.text-start { display: none; }
html.wza button[data-slot="button"]:has(> [data-wza="pm"]) > div.flex-shrink-0 { color: var(--muted-foreground); transition: transform .15s, color .15s; }
html.wza button[data-slot="button"]:has(> [data-wza="pm"]):hover > div.flex-shrink-0 { color: var(--foreground); transform: translateX(2px); }
html.wza[dir="rtl"] button[data-slot="button"]:has(> [data-wza="pm"]):hover > div.flex-shrink-0 { transform: translateX(-2px); }
html.wza .wza-pm { display: flex; flex: 1; min-width: 0; align-items: center; gap: 14px; }
html.wza .wza-pm-logo { flex: none; display: grid; place-items: center; width: 50px; height: 34px; border-radius: 8px; }
html.wza .wza-pm-logo img { display: block; box-sizing: border-box; width: 50px; height: 34px; padding: 4px 6px; object-fit: contain; border-radius: 7px; background: #fff; box-shadow: 0 0 0 1px rgba(17, 17, 20, .12), 0 1px 2px rgba(17, 17, 20, .08); }
html.wza .wza-pm-logo.is-card { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 6%, transparent); box-shadow: inset 0 0 0 1px var(--wzc-line); }
html.wza .wza-pm-logo.is-card svg { width: 20px !important; height: 20px !important; }
html.wza .wza-pm-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: start; }
html.wza .wza-pm-tx b { font-size: 14.5px; font-weight: 600; line-height: 1.25; color: var(--foreground); }
html.wza .wza-pm-tx small { font-size: 12.5px; font-weight: 400; line-height: 1.4; color: var(--muted-foreground); }
html.wza .wza-pm-marks { display: flex; gap: 5px; margin-top: 5px; }
html.wza .wza-pm-marks img { display: block; box-sizing: border-box; width: 32px; height: 21px; padding: 2px 3px; object-fit: contain; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px rgba(17, 17, 20, .12); }
html.wza .wza-pm-sec { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted-foreground); text-align: center; }
html.wza .wza-pm-sec svg { flex: none; width: 13px; height: 13px; margin-top: 2px; color: var(--wzc-ok); }
@media (max-width: 479.98px) { html.wza [data-slot="dialog-content"]:has([data-wza="pm"]) { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { html.wza button[data-slot="button"]:has(> [data-wza="pm"]) > div.flex-shrink-0 { transition: none; transform: none !important; } }

/* credit packs: the whole description (two lines at most) */
html.wza [data-slot="dialog-content"] [role="radiogroup"] p.line-clamp-1 { -webkit-line-clamp: 2; line-clamp: 2; }

/* ---- tables: number columns (the app right-aligns their cells but not their headings).
   The heading lines up with the numbers, its sort icon before it; numbers in the page font. */
html.wzp main thead th > div.flex.text-end { justify-content: flex-end; }
html.wzp main thead th > div.flex.text-end > div > button[data-slot="button"] { flex-direction: row-reverse; margin-inline: 0 -12px; }
html.wzp main td span.font-mono.text-end { font-family: inherit; font-variant-numeric: tabular-nums; }

/* ---- API docs and invite link: code and long values */
html.wzp main code:not(pre code) { padding: 2px 6px; border-radius: 6px; font-size: 12.5px; background: color-mix(in srgb, var(--foreground) 7%, transparent); }
html.wzp main pre { border-radius: 12px; }

@media (max-width: 639.98px) {
  html.wzp main { padding-top: 20px; }
  html.wzp main [data-slot="tabs-list"] > [role="tab"] { flex: none; padding: 0 10px; font-size: 13px; }
  html.wzp main h1.text-2xl { font-size: 23px; }
  /* projects: search on its own line, the two selects share the next one */
  html.wzp main [data-slot="select-trigger"].w-\[140px\] { flex: 1 1 auto; min-width: 0; font-size: 14px; }
  /* tabs inside a card (usage): text only, so both fit */
  html.wzp main [data-slot="card"] [data-slot="tabs-list"] > [role="tab"] > svg { display: none; }
  /* invoices: one line per cell; the table scrolls sideways instead of breaking numbers and dates */
  html.wzp main [data-slot="table-container"] :is([data-slot="table-cell"], [data-slot="table-head"]) { white-space: nowrap; }
  /* API docs: the key field over its button */
  html.wzp main .flex.gap-2:has(> input#docs_api_key) { flex-wrap: wrap; }
  html.wzp main .flex.gap-2 > input#docs_api_key { flex: 1 1 100%; }
  html.wzp main :is([class*="justify-between"]:has(> div > h1.text-2xl), div:has(> h1.text-2xl):not(.prose):not([class*="justify-between"] > div)) { margin-bottom: 20px; padding-bottom: 16px; }
}
/* plans: one column below 768px, so the description no longer needs its fixed height */
@media (max-width: 767.98px) {
  html.wzp main .grid > [data-slot="card"] [data-slot="card-description"].min-h-\[40px\] { min-height: 0; }
  html.wzp main .grid > [data-slot="card"] [data-slot="card-header"].pb-4 { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html.wza [data-sidebar="menu-button"], html.wza [data-sidebar="menu-button"] > svg, html.wzp main [data-slot="tabs-list"] > [role="tab"] { transition: none; }
}

/* ================================================================ log in / sign up
   html.wza-auth (app.js: /login, /register, /forgot-password, /reset-password). The form keeps
   its own half of the page, quiet: Google / GitHub first, then email, 46px fields. The other
   half is the pitch (app-create.js authPage): a sentence typed out in large type and the site
   it describes rising under it, four sample businesses in turn, a line at the foot. Phones: the
   form first, the panel after it. The form works exactly as before. */
html.wza-auth { --au-font: "Instrument Sans", Inter, ui-sans-serif, system-ui, sans-serif; --au-ember: #ff6a2b; --au-ok: #16a34a; --au-bg: #eef0f4; --au-fg: #0b0b0d; }
html.wza-auth.dark { --au-bg: #0c0c0e; --au-fg: #f4f4f5; }
/* the page: form half, panel half */
html.wza-auth #app > div.min-h-screen { flex-direction: row; align-items: stretch; justify-content: flex-start; padding: 0; }
html.wza-auth #app [data-slot="gradient-background"] { display: none; }
html.wza-auth #app div.relative.z-10.w-full.max-w-md {
  position: static; display: flex; flex: 0 0 44%; flex-direction: column; align-items: center; justify-content: center; max-width: none; min-height: 100vh; padding: 104px 40px 56px;
}
html.wza-auth #app div.relative.z-10.w-full.max-w-md > a.mb-8 { position: absolute; top: 24px; inset-inline-start: 32px; z-index: 20; margin: 0; }
html.wza-auth #app div.relative.z-10.w-full.max-w-md > a.mb-8 img { height: 30px; }
html.wza-auth #app .absolute.top-4.end-4 { top: 20px; inset-inline-end: calc(56% + 22px); }
html.wza-auth #app .absolute.top-4.end-4 > button, html.wza-auth #app .absolute.top-4.end-4 > div > button { border-radius: 10px; }
/* the form */
html.wza-auth #app [data-slot="card"] { width: 100%; max-width: 392px; gap: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.wza-auth #app [data-slot="card"] > [data-slot="card-content"] { display: flex; flex-direction: column; padding: 0; }
html.wza-auth #app [data-slot="card-content"] > .prose { order: 0; max-width: none; margin: 0 0 30px; text-align: start; }
html.wza-auth #app [data-slot="card-content"] > .prose h1 { margin: 0 0 8px; font: 600 32px/1.12 var(--au-font); letter-spacing: -.03em; }
html.wza-auth #app [data-slot="card-content"] > .prose h1 + p { margin: 0; font-size: 15px; line-height: 1.5; }
html.wza-auth #app [data-slot="card-content"] > .space-y-3 { order: 1; display: flex; flex-direction: column; gap: 10px; margin: 0; }
html.wza-auth #app [data-slot="card-content"] > .space-y-3 > * { margin: 0; }
html.wza-auth #app [data-slot="card-content"] > .space-y-3 > .grid { order: 0; gap: 10px; }
html.wza-auth #app [data-slot="card-content"] > .space-y-3 > .wza-legal { order: 1; }
html.wza-auth #app [data-slot="card-content"] > .space-y-3 > .relative { order: 2; margin: 14px 0 12px; }
html.wza-auth #app [data-slot="card-content"] > form { order: 2; }
html.wza-auth #app [data-slot="card-content"]:has([data-wza="legal"]) > p.text-xs:has(a[href*="privacy"]) { display: none; }
html.wza-auth #app a[data-slot="button"]:is([href*="/auth/google"], [href*="/auth/github"]) {
  height: 46px; gap: 10px; border-radius: 10px; font-size: 15px; font-weight: 500; box-shadow: none;
  border-color: color-mix(in srgb, var(--foreground) 14%, transparent); background: transparent; transition: border-color .15s, background-color .15s;
}
html.wza-auth #app a[data-slot="button"]:is([href*="/auth/google"], [href*="/auth/github"]):hover { border-color: color-mix(in srgb, var(--foreground) 30%, transparent); background: color-mix(in srgb, var(--foreground) 4%, transparent); }
html.wza-auth #app a[data-slot="button"]:is([href*="/auth/google"], [href*="/auth/github"]) svg { width: 18px !important; height: 18px !important; }
html.wza-auth #app .space-y-3 > .relative > .absolute { display: none; }
html.wza-auth #app .space-y-3 > .relative > .relative { align-items: center; gap: 14px; text-transform: none; }
html.wza-auth #app .space-y-3 > .relative > .relative::before, html.wza-auth #app .space-y-3 > .relative > .relative::after { content: ""; flex: 1; border-top: 1px solid color-mix(in srgb, var(--foreground) 12%, transparent); }
html.wza-auth #app .space-y-3 > .relative > .relative > span { padding: 0; font-size: 13px; letter-spacing: 0; text-transform: none; background: transparent; }
html.wza-auth .wza-legal { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted-foreground); text-wrap: pretty; }
html.wza-auth .wza-legal a, html.wza-auth #app [data-slot="card-content"] a.text-primary, html.wza-auth #app form a.text-sm.text-primary {
  color: var(--foreground); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--foreground) 30%, transparent); text-underline-offset: 3px;
}
html.wza-auth #app form label[data-slot="label"] { font-size: 13.5px; font-weight: 500; }
html.wza-auth #app form [data-slot="input"] {
  height: 46px; padding-inline: 14px; border-radius: 10px; font-size: 16px; box-shadow: none; background: transparent;
  border-color: color-mix(in srgb, var(--foreground) 15%, transparent); transition: border-color .15s, box-shadow .15s;
}
html.wza-auth #app form [data-slot="input"]:hover { border-color: color-mix(in srgb, var(--foreground) 26%, transparent); }
html.wza-auth #app form [data-slot="input"]:focus-visible { border-color: var(--foreground); box-shadow: 0 0 0 3px color-mix(in srgb, var(--foreground) 12%, transparent); }
html.wza-auth #app form .relative > [data-slot="input"] { padding-inline-end: 46px; }
html.wza-auth #app form .relative > [data-slot="input"] + button[data-slot="button"] { width: 36px; height: 36px; border-radius: 8px; color: var(--muted-foreground); }
html.wza-auth #app form label[data-slot="label"]:is([for="remember"], [for^="consent"]) { font-size: 14px; font-weight: 400; color: var(--muted-foreground); }
html.wza-auth #app form [data-slot="checkbox"] { width: 18px; height: 18px; border-radius: 5px; }
html.wza-auth #app form button[type="submit"] { height: 48px; margin-top: 6px; border-radius: 10px; font-size: 15px; font-weight: 600; box-shadow: none; }
html.wza-auth #app form > p { margin-top: 20px; font-size: 14.5px; text-align: start; }
/* the panel: the sentence, the site, the line at its foot */
html.wza-auth .au-panel { position: sticky; top: 0; z-index: 1; flex: 1 1 56%; height: 100vh; min-height: 640px; overflow: hidden; isolation: isolate; color: var(--au-fg); background: var(--au-bg); }
/* its place is held from the first paint (app.js sets the class at once; the panel comes with
   the language file a moment later), so the form never moves */
html.wza-auth #app > div.min-h-screen:not(:has(> .au-panel))::after { content: ""; position: sticky; top: 0; flex: 1 1 56%; height: 100vh; min-height: 640px; background: var(--au-bg); }
html.wza-auth .au-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 40% at 92% 104%, rgba(255, 106, 43, .22), transparent 70%), radial-gradient(50% 40% at 30% 112%, rgba(44, 107, 255, .16), transparent 70%);
}
html.wza-auth.dark .au-panel::before { background: radial-gradient(55% 42% at 92% 104%, rgba(255, 106, 43, .32), transparent 70%), radial-gradient(50% 42% at 30% 112%, rgba(44, 107, 255, .3), transparent 70%); }
html.wza-auth .au-panel::after { content: ""; position: absolute; inset: auto 0 0; z-index: 3; height: 150px; background: linear-gradient(to top, var(--au-bg) 38%, color-mix(in srgb, var(--au-bg) 0%, transparent)); }
html.wza-auth .au-bars { position: absolute; top: 40px; inset-inline-start: 72px; z-index: 4; display: flex; gap: 6px; }
html.wza-auth .au-bars i { position: relative; width: 40px; height: 3px; overflow: hidden; border-radius: 3px; background: color-mix(in srgb, currentColor 15%, transparent); }
html.wza-auth .au-bars i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; transform: scaleX(0); transform-origin: left; animation: 24s linear infinite; }
html.wza-auth[dir="rtl"] .au-bars i::after { transform-origin: right; }
html.wza-auth .au-bars .b0::after { animation-name: auB0; } html.wza-auth .au-bars .b1::after { animation-name: auB1; }
html.wza-auth .au-bars .b2::after { animation-name: auB2; } html.wza-auth .au-bars .b3::after { animation-name: auB3; }
@keyframes auB0 { 0% { transform: scaleX(0); } 25%, 99.8% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes auB1 { 0%, 25% { transform: scaleX(0); } 50%, 99.8% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes auB2 { 0%, 50% { transform: scaleX(0); } 75%, 99.8% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes auB3 { 0%, 75% { transform: scaleX(0); } 99.8% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
html.wza-auth .au-stage { position: absolute; inset: 0; }
html.wza-auth .au-slide { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: 104px; padding-inline-start: 72px; opacity: 0;
  animation: auSlide 24s linear infinite both; animation-delay: calc(var(--i) * 6s); }
html.wza-auth .au-q { max-width: 15.5em; margin: 0 0 46px; padding-inline-end: 56px; font: 600 40px/1.13 var(--au-font); letter-spacing: -.032em; text-wrap: pretty; }
html.wza-auth:is(:lang(ja), :lang(zh), :lang(ko)) .au-q { max-width: 14.5em; font-size: 36px; line-height: 1.3; letter-spacing: 0; }
html.wza-auth:lang(ja) .au-q { word-break: auto-phrase; }
html.wza-auth[dir="rtl"] .au-q { font-family: "IBM Plex Sans Arabic", var(--au-font); font-size: 36px; line-height: 1.45; letter-spacing: 0; }
html.wza-auth .au-q span { display: inline-block; opacity: 0; animation: auWord 24s cubic-bezier(.2, .7, .2, 1) infinite both; animation-delay: calc(var(--i) * 6s + .3s + var(--w) * .075s); }
html.wza-auth .au-q.is-cjk span { display: inline; }
html.wza-auth .au-caret { display: inline-block; width: 3px; height: .86em; margin-inline-start: 4px; vertical-align: -.06em; border-radius: 2px; background: var(--au-ember); animation: auBlink 1.1s steps(1) infinite; }
html.wza-auth .au-frame { position: relative; flex: none; width: calc(100% + 64px); margin: 0; overflow: hidden; border-radius: 16px; background: #fff; opacity: 0;
  box-shadow: 0 0 0 1px rgba(15, 15, 25, .07), 0 60px 120px -50px rgba(20, 24, 45, .55);
  animation: auRise 24s cubic-bezier(.2, .8, .2, 1) infinite both; animation-delay: calc(var(--i) * 6s + 2.2s); }
html.wza-auth.dark .au-frame { background: #151518; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 60px 120px -40px rgba(0, 0, 0, .9); }
html.wza-auth .au-chrome { display: flex; align-items: center; gap: 7px; height: 42px; padding-inline: 16px; background: #f8f8fa; border-bottom: 1px solid rgba(15, 15, 25, .07); }
html.wza-auth.dark .au-chrome { background: #19191c; border-bottom-color: rgba(255, 255, 255, .07); }
html.wza-auth .au-chrome > i { width: 10px; height: 10px; border-radius: 50%; background: rgba(15, 15, 25, .13); }
html.wza-auth.dark .au-chrome > i { background: rgba(255, 255, 255, .16); }
html.wza-auth .au-url { display: inline-flex; align-items: center; gap: 7px; height: 28px; margin-inline-start: 16px; padding-inline: 10px 5px; border-radius: 8px; font: 500 13px/1 Inter, sans-serif; color: #2a2a30; background: rgba(15, 15, 25, .05); }
html.wza-auth.dark .au-url { color: #d4d4d8; background: rgba(255, 255, 255, .06); }
html.wza-auth .au-url svg { width: 12px; height: 12px; color: var(--au-ok); }
html.wza-auth .au-url b { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: 8px; padding: 4px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #15803d; background: rgba(22, 163, 74, .12); }
html.wza-auth.dark .au-url b { color: #4ade80; background: rgba(74, 222, 128, .12); }
html.wza-auth .au-url b i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
html.wza-auth .au-frame img { display: block; width: 100%; height: auto; }
html.wza-auth .au-cap { position: absolute; z-index: 4; inset-inline: 72px; bottom: 34px; max-width: 34em; margin: 0; font-size: 16px; line-height: 1.5; color: color-mix(in srgb, currentColor 72%, transparent); text-wrap: pretty; }
html.wza-auth .au-cap b { font-weight: 600; color: var(--au-fg); }
@keyframes auSlide { 0% { opacity: 0; } 1.4% { opacity: 1; } 24% { opacity: 1; } 25.4% { opacity: 0; } 100% { opacity: 0; } }
@keyframes auWord { 0% { opacity: 0; transform: translateY(.2em); } 1.1% { opacity: 1; transform: none; } 22.4% { opacity: 1; } 23.4% { opacity: 0; } 100% { opacity: 0; } }
@keyframes auRise { 0% { opacity: 0; transform: translateY(56px) scale(.985); } 3.2% { opacity: 1; transform: none; } 14.6% { opacity: 1; transform: none; } 15.8% { opacity: 0; transform: none; } 100% { opacity: 0; } }
@keyframes auBlink { 50% { opacity: 0; } }
/* below 1024px: one column, the form first; the panel follows as a card */
@media (max-width: 1023.98px) {
  html.wza-auth #app > div.min-h-screen { flex-direction: column; }
  html.wza-auth #app > div.min-h-screen::after { display: none; }
  html.wza-auth #app div.relative.z-10.w-full.max-w-md { flex: none; min-height: 0; padding: 92px 22px 40px; }
  html.wza-auth #app div.relative.z-10.w-full.max-w-md > a.mb-8 { top: 22px; inset-inline-start: 22px; }
  html.wza-auth #app div.relative.z-10.w-full.max-w-md > a.mb-8 img { height: 26px; }
  html.wza-auth #app .absolute.top-4.end-4 { top: 16px; inset-inline-end: 16px; }
  html.wza-auth #app [data-slot="card-content"] > .prose h1 { font-size: 28px; }
  html.wza-auth .au-panel { position: relative; flex: none; height: 520px; min-height: 0; margin: 0 12px 12px; border-radius: 22px; }
  html.wza-auth .au-bars { top: 26px; inset-inline-start: 26px; }
  html.wza-auth .au-slide { padding-top: 58px; padding-inline-start: 26px; }
  html.wza-auth .au-q { margin-bottom: 26px; padding-inline-end: 26px; font-size: 25px; }
  html.wza-auth:is(:lang(ja), :lang(zh), :lang(ko)) .au-q, html.wza-auth[dir="rtl"] .au-q { font-size: 23px; }
  html.wza-auth .au-frame { width: calc(100% + 40px); }
  html.wza-auth .au-cap { inset-inline: 26px; bottom: 22px; font-size: 14.5px; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  html.wza-auth .au-slide { padding-top: 84px; }
  html.wza-auth .au-q { margin-bottom: 30px; font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html.wza-auth .au-slide:not(:first-child) { display: none; }
  html.wza-auth .au-slide, html.wza-auth .au-q span, html.wza-auth .au-frame { opacity: 1; animation: none; }
  html.wza-auth .au-bars i::after, html.wza-auth .au-caret { animation: none; }
  html.wza-auth .au-bars .b0::after { transform: none; }
}

/* v61: API docs search box: the stand-in that password managers leave alone (app.js proxy()) */
html.wzp .wza-px-src { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; }
html.wzp .wza-px { display: block; overflow: hidden; white-space: nowrap; line-height: 1.5; cursor: text; outline: none; }
html.wzp .wza-px:focus-visible, html.wzp .wza-px:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring, #3b82f6) 35%, transparent); border-color: var(--ring, #3b82f6); }
html.wzp .wza-px:empty::before { content: attr(data-ph); color: var(--muted-foreground, #888); pointer-events: none; }

/* v79: iPhone zooms the page in when a field with text under 16px gets focus (and keeps
   that zoom after the next page loads). Every field on touch screens is at least 16px. */
@media (pointer: coarse) {
  html:is(.wza-auth, .wzp, .wzc, .wzb) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select, [contenteditable="true"]) { font-size: max(16px, 1em) !important; }
}

/* ================================================================ the project builder (/project/…)
   html.wzb is set by app.js on the builder only. Same rule as the rest: the app's elements
   are reached through stable hooks (data-testid, data-tour-id, data-slot, aria), only their
   look changes, and an active button (the app gives it .bg-primary) keeps a clear state. */

/* ---- chat column: header */
html.wzb [data-testid="chat-column"] > div:first-child { gap: 10px; }
html.wzb [data-testid="chat-column"] > div:first-child h1 { font-size: 14.5px; letter-spacing: -.01em; }
html.wzb [data-testid="chat-column"] > div:first-child [data-slot="button"] { border-radius: 10px; color: var(--muted-foreground); }
html.wzb [data-testid="chat-column"] > div:first-child [data-slot="button"]:hover { color: var(--foreground); }
.wzb-logo { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--background); background: var(--foreground); transition: opacity .15s; }
.wzb-logo:hover { opacity: .82; }
.wzb-logo:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
.wzb-logo svg { width: 20px; height: 20px; }

/* ---- chat: messages */
html.wzb [data-testid="chat-transcript"] { padding: 20px 18px 28px; }
/* your messages: a soft bubble instead of a solid black/white block */
html.wzb [data-testid="chat-transcript"] .justify-end > div[class*="rounded-2xl"] {
  padding: 11px 15px; border-radius: 18px; border-end-end-radius: 6px; color: var(--foreground);
  background: color-mix(in srgb, var(--foreground) 6%, var(--background)); box-shadow: inset 0 0 0 1px var(--wzc-line);
}
html.wzb.dark [data-testid="chat-transcript"] .justify-end > div[class*="rounded-2xl"] { background: color-mix(in srgb, var(--foreground) 9%, var(--background)); }
html.wzb [data-testid="chat-transcript"] .justify-end > div[class*="rounded-2xl"] :is(p, li, .prose) { font-size: 14px; line-height: 1.55; }
html.wzb [data-testid="chat-transcript"] .justify-end > div[class*="rounded-2xl"] .prose {
  color: var(--foreground); --tw-prose-body: var(--foreground); --tw-prose-headings: var(--foreground); --tw-prose-bold: var(--foreground);
  --tw-prose-links: var(--foreground); --tw-prose-bullets: var(--muted-foreground); --tw-prose-counters: var(--muted-foreground); --tw-prose-code: var(--foreground);
}
/* Webza's replies: plain text across the column, no avatar or box */
html.wzb [data-testid="chat-transcript"] .justify-start.gap-3 > [data-slot="avatar"] { display: none; }
html.wzb [data-testid="chat-transcript"] .justify-start.gap-3 > div[class*="rounded-2xl"] {
  max-width: 100%; padding: 2px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
html.wzb [data-testid="chat-transcript"] .justify-start.gap-3 .prose { font-size: 14.5px; line-height: 1.65; }
html.wzb [data-testid="chat-transcript"] .ms-11 { margin-inline-start: 0; font-size: 12.5px; }
/* progress lines ("Working on…", "Saving…"): one quiet card per run */
html.wzb [data-testid="chat-transcript"] > [data-wzb="act"] {
  padding: 2px 14px; background: color-mix(in srgb, var(--foreground) 2.5%, var(--card)); border: 1px solid var(--wzc-line); border-block: 0;
}
html.wzb [data-testid="chat-transcript"] > [data-wzb="act"] + [data-wzb="act"] { margin-block-start: 0; }
html.wzb [data-testid="chat-transcript"] > [data-wzb="act"]:has(+ [data-wzb="act"]) { margin-block-end: 0; }
html.wzb [data-testid="chat-transcript"] > :not([data-wzb="act"]) + [data-wzb="act"],
html.wzb [data-testid="chat-transcript"] > [data-wzb="act"]:first-child { padding-top: 9px; border-top: 1px solid var(--wzc-line); border-start-start-radius: 14px; border-start-end-radius: 14px; }
html.wzb [data-testid="chat-transcript"] > [data-wzb="act"]:not(:has(+ [data-wzb="act"])) { padding-bottom: 9px; border-bottom: 1px solid var(--wzc-line); border-end-start-radius: 14px; border-end-end-radius: 14px; }
html.wzb [data-testid="chat-transcript"] > [data-wzb="act"] > .justify-start > div { gap: 10px; padding-block: 5px; font-size: 13px; line-height: 1.45; }
html.wzb [data-testid="chat-transcript"] > [data-wzb="act"] > .justify-start > div > span:first-child {
  flex: none; width: 22px; height: 22px; font-size: 11px; background: color-mix(in srgb, var(--foreground) 7%, transparent);
}
html.wzb [data-testid="chat-transcript"] > [data-wzb="act"] span.italic { font-style: normal; min-width: 0; overflow-wrap: anywhere; }

/* ---- chat: the box you write in */
html.wzb div:has(> form [data-tour-id="builder.chat_input"]) { padding: 4px 16px 16px; border-top: 0; }
html.wzb [data-tour-id="builder.chat_input"] {
  border-radius: 18px; border: 1px solid var(--wzc-line2); background: var(--card);
  box-shadow: 0 1px 2px rgba(10, 10, 20, .04), 0 10px 28px -18px rgba(10, 10, 20, .3); transition: border-color .2s, box-shadow .2s;
}
html.wzb [data-tour-id="builder.chat_input"]:focus-within {
  border-color: color-mix(in srgb, var(--foreground) 28%, transparent);
  box-shadow: 0 1px 2px rgba(10, 10, 20, .04), 0 0 0 3px color-mix(in srgb, var(--foreground) 7%, transparent);
}
html.wzb [data-tour-id="builder.chat_input"] [data-lexical-editor] { padding: 14px 16px 6px; min-height: 64px; font-size: 14.5px; line-height: 1.55; }
html.wzb [data-tour-id="builder.chat_input"] [data-lexical-editor] + div { top: 14px; inset-inline-start: 16px; font-size: 14.5px; line-height: 1.55; }
html.wzb [data-tour-id="builder.chat_input"] > div:last-child { padding: 4px 8px 8px; background: transparent; border-top: 0; }
html.wzb [data-tour-id="builder.chat_input"] > div:last-child > div { flex: 1; gap: 2px; }
html.wzb [data-tour-id="builder.chat_input"] > div:last-child button { border-radius: 10px; }
html.wzb [data-tour-id="builder.chat_input"] > div:last-child button:not([type="submit"]) { color: var(--muted-foreground); }
html.wzb [data-tour-id="builder.chat_input"] > div:last-child button:not([type="submit"]):hover { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 6%, transparent); }
html.wzb [data-tour-id="builder.chat_input"] input[type="file"] + button { order: 1; width: 34px; height: 34px; }
html.wzb [data-tour-id="builder.chat_input"] button[aria-pressed] { order: 2; width: 34px; height: 34px; }
html.wzb [data-tour-id="builder.chat_input"] button[aria-haspopup="menu"] { order: 3; height: 30px; margin-inline-start: 4px; padding: 0 10px; gap: 5px; border-radius: 999px; font-size: 12.5px; box-shadow: inset 0 0 0 1px var(--wzc-line); }
html.wzb [data-tour-id="builder.chat_input"] button[type="submit"] {
  order: 9; margin-inline-start: auto; height: 34px; min-width: 34px; padding: 0 10px; border-radius: 999px; color: var(--background); background: var(--foreground);
}
html.wzb [data-tour-id="builder.chat_input"] button[type="submit"]:disabled { opacity: .3; }
/* the send button: a round arrow, its label kept for screen readers */
html.wzb [data-tour-id="builder.chat_input"] button[type="submit"]:has(> svg.lucide-send) { width: 34px; padding: 0; gap: 0; font-size: 0; }
html.wzb [data-tour-id="builder.chat_input"] button[type="submit"]:has(> svg.lucide-send) > svg { display: none; }
html.wzb [data-tour-id="builder.chat_input"] button[type="submit"]:has(> svg.lucide-send)::before {
  content: ""; width: 17px; height: 17px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* credits above the box: the app's text plus a thin bar (app-builder.js) */
html.wzb [data-wzb="cr"] { flex: 1; min-width: 0; gap: 10px; font-variant-numeric: tabular-nums; }
html.wzb [data-wzb="cr"] > svg { display: none; }
.wzb-bar { flex: 1; max-width: 150px; height: 4px; overflow: hidden; border-radius: 999px; background: var(--wzc-line); }
.wzb-bar i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: var(--foreground); opacity: .85; }
.wzb-bar.is-mid i { background: var(--wza-amber); opacity: 1; }
.wzb-bar.is-low i { background: var(--wza-red); opacity: 1; }

/* ---- preview column: Preview / Code / Settings as one segmented control */
html.wzb div:has(> [data-tour-id="builder.preview_tab"]) {
  gap: 2px; padding: 3px; border: 0; border-radius: 12px; overflow: visible; background: color-mix(in srgb, var(--foreground) 6%, transparent);
}
html.wzb div:has(> [data-tour-id="builder.preview_tab"]) > div:not([data-tour-id]) { display: none; }
html.wzb div:has(> [data-tour-id="builder.preview_tab"]) > button {
  height: 32px; padding: 0 13px; gap: 7px; border-radius: 9px; color: var(--muted-foreground); background: transparent; transition: color .15s, background-color .15s, box-shadow .15s;
}
html.wzb div:has(> [data-tour-id="builder.preview_tab"]) > button:hover { color: var(--foreground); }
html.wzb div:has(> [data-tour-id="builder.preview_tab"]) > button.bg-primary {
  color: var(--foreground); background: var(--background); box-shadow: 0 1px 2px rgba(10, 10, 20, .1), 0 0 0 1px var(--wzc-line);
}
html.wzb.dark div:has(> [data-tour-id="builder.preview_tab"]) > button.bg-primary { background: color-mix(in srgb, var(--foreground) 12%, var(--background)); }
/* Rebuild, Open, Export: quiet; Publish: the one blue button */
html.wzb div:has(> [data-tour-id="builder.rebuild"]) { gap: 2px; }
html.wzb div:has(> [data-tour-id="builder.rebuild"]) > button:not(.bg-primary):not([data-tour-id="builder.publish"]) {
  height: 34px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; color: var(--muted-foreground);
}
html.wzb div:has(> [data-tour-id="builder.rebuild"]) > button:not(.bg-primary):not([data-tour-id="builder.publish"]):hover { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 6%, transparent); }
html.wzb [data-tour-id="builder.publish"] {
  height: 36px; margin-inline: 6px 2px; padding: 0 16px !important; border: 0; border-radius: 999px; font-weight: 600; color: #fff; background: var(--wzc-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px -8px rgba(37, 99, 235, .75); transition: filter .15s, transform .15s;
}
html.wzb [data-tour-id="builder.publish"]:hover { color: #fff; background: var(--wzc-blue); filter: brightness(1.08); }

/* ---- preview toolbar: Inspect, Design · the site's address · devices · undo/redo/history */
html.wzb div:has(> [data-testid="toolbar-actions"]) {
  height: 52px; padding: 0 12px; gap: 8px; justify-content: flex-start; background: var(--background); -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.wzb div:has(> [data-testid="toolbar-actions"]) > div:first-child { gap: 2px; flex: none; }
html.wzb div:has(> [data-testid="toolbar-actions"]) > div:first-child > button { height: 32px; padding: 0 10px; gap: 7px; border-radius: 9px; font-size: 13.5px; }
html.wzb div:has(> [data-testid="toolbar-actions"]) > div:first-child > button:not(.bg-primary) { border: 0; box-shadow: none; background: transparent; color: var(--muted-foreground); }
html.wzb div:has(> [data-testid="toolbar-actions"]) > div:first-child > button:not(.bg-primary):hover { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 6%, transparent); }
html.wzb div:has(> [data-testid="toolbar-actions"]) > div:first-child > button svg { width: 15px; height: 15px; }
.wzb-url {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 1 auto; min-width: 0; max-width: 340px; height: 32px; margin-inline: auto; padding: 0 14px;
  border-radius: 999px; font-size: 13px; white-space: nowrap; text-decoration: none; color: var(--muted-foreground); background: color-mix(in srgb, var(--foreground) 5%, transparent);
  transition: color .15s, background-color .15s;
}
.wzb-url > span { overflow: hidden; text-overflow: ellipsis; }
.wzb-url svg { flex: none; width: 13px; height: 13px; }
a.wzb-url:hover { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 8%, transparent); }
a.wzb-url:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
.wzb-url.is-draft i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--wza-amber); }
html.wzb div:has(> [data-testid="toolbar-actions"]):not(:has(> .wzb-url)) > div:has(> button[aria-pressed]) { margin-inline-start: auto; }
/* device sizes: desktop, tablet, phone in one segmented control */
html.wzb div:has(> button[aria-pressed] > svg.lucide-monitor) { gap: 2px; padding: 3px; border-radius: 11px; background: color-mix(in srgb, var(--foreground) 6%, transparent); }
html.wzb div:has(> button[aria-pressed] > svg.lucide-monitor) > button { width: 32px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted-foreground); }
html.wzb div:has(> button[aria-pressed] > svg.lucide-monitor) > button:hover { color: var(--foreground); }
html.wzb div:has(> button[aria-pressed] > svg.lucide-monitor) > button[aria-pressed="true"] { color: var(--foreground); background: var(--background); box-shadow: 0 1px 2px rgba(10, 10, 20, .1), 0 0 0 1px var(--wzc-line); }
html.wzb.dark div:has(> button[aria-pressed] > svg.lucide-monitor) > button[aria-pressed="true"] { background: color-mix(in srgb, var(--foreground) 12%, var(--background)); }
html.wzb div:has(> button[aria-pressed] > svg.lucide-monitor) > button:has(> svg.lucide-monitor) { order: -2; }
html.wzb div:has(> button[aria-pressed] > svg.lucide-monitor) > button:has(> svg.lucide-tablet) { order: -1; }
html.wzb [data-testid="toolbar-actions"] { flex: none; gap: 2px; margin-inline-start: 4px; padding-inline-start: 8px; border-inline-start: 1px solid var(--wzc-line); }
html.wzb [data-testid="toolbar-actions"] > button { width: 32px; height: 32px; border: 0; border-radius: 9px; box-shadow: none; background: transparent; color: var(--muted-foreground); }
html.wzb [data-testid="toolbar-actions"] > button:hover:not(:disabled) { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 6%, transparent); }
html.wzb [data-testid="toolbar-actions"] > button svg { width: 16px; height: 16px; }
@media (max-width: 1180px) {
  html.wzb div:has(> [data-testid="toolbar-actions"]) > div:first-child > button { width: 34px; padding: 0; gap: 0; font-size: 0; }
}
/* narrower screens: the header keeps one line; labels give way to icons (names stay in aria-label/title) */
@media (max-width: 1359.98px) {
  html.wzb div:has(> [data-tour-id="builder.rebuild"]) > button:not([data-tour-id="builder.publish"]) > span { display: none; }
  html.wzb div:has(> [data-tour-id="builder.rebuild"]) > button:not(.bg-primary):not([data-tour-id="builder.publish"]) { width: 34px; padding: 0; }
}
@media (max-width: 1079.98px) {
  html.wzb div:has(> [data-tour-id="builder.preview_tab"]) > button > span { display: none; }
  html.wzb div:has(> [data-tour-id="builder.preview_tab"]) > button { padding: 0 11px; }
}
@media (max-width: 919.98px) {
  html.wzb [data-tour-id="builder.publish"] > span { display: none; }
  html.wzb [data-tour-id="builder.publish"] { width: 36px; padding: 0 !important; }
  .wzb-url { display: none; }
  html.wzb div:has(> button[aria-pressed] > svg.lucide-monitor) { margin-inline-start: auto; }
}
/* phones (the app hides the device sizes there): undo/redo/history to the right, a slimmer frame */
@media (max-width: 767.98px) {
  html.wzb [data-testid="toolbar-actions"] { margin-inline-start: auto; }
  html.wzb div:has(> [data-testid="device-frame"]) { padding: 8px; }
  html.wzb [data-testid="device-frame"] { border-radius: 12px; }
}

/* ---- the preview itself: a framed page on a quiet surface */
html.wzb [data-testid="preview-column"] [data-slot="gradient-background"] { display: none; }
html.wzb div:has(> [data-testid="device-frame"]) { padding: 14px; background: color-mix(in srgb, var(--foreground) 4%, var(--background)); }
html.wzb [data-testid="device-frame"] {
  overflow: hidden; border: 1px solid var(--wzc-line); border-radius: 14px; background: var(--background);
  box-shadow: 0 1px 2px rgba(10, 10, 20, .05), 0 18px 44px -26px rgba(10, 10, 20, .4);
}
html.wzb [data-testid="device-frame"][style*="width"] { border-radius: 24px; }

/* ---- phones: Chat / Preview switch */
html.wzb #app nav:has(> button[aria-pressed]) { gap: 6px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); }
html.wzb #app nav:has(> button[aria-pressed]) > button { height: 40px; border-radius: 12px; color: var(--muted-foreground); }
html.wzb #app nav:has(> button[aria-pressed]) > button[aria-pressed="true"] { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 7%, transparent); }
@media (prefers-reduced-motion: reduce) { .wzb-logo, .wzb-url, html.wzb [data-tour-id="builder.publish"] { transition: none; } }

/* ================================================================ v29: Inspect, Code and finishing touches */
html.wzb { --wzb-accent: #2563eb; --wzb-accent-bg: rgba(37, 99, 235, .1); --wzb-accent-line: rgba(37, 99, 235, .35); }
html.wzb.dark { --wzb-accent: #60a5fa; --wzb-accent-bg: rgba(96, 165, 250, .14); --wzb-accent-line: rgba(96, 165, 250, .4); }

/* progress lines: quieter emoji, so the card reads as a calm list */
html.wzb [data-testid="chat-transcript"] > [data-wzb="act"] > .justify-start > div > span:first-child { filter: grayscale(1); opacity: .75; }

/* ---- Inspect: the mode button, the hint, the selected element */
html.wzb div:has(> [data-testid="toolbar-actions"]) > div:first-child > button.bg-primary {
  color: var(--wzb-accent); background: var(--wzb-accent-bg); box-shadow: inset 0 0 0 1px var(--wzb-accent-line);
}
html.wzb div:has(> [data-testid="toolbar-actions"]) > div:first-child > button.bg-primary:hover { background: var(--wzb-accent-bg); filter: brightness(1.08); }
html.wzb [data-testid="toolbar-actions"] > span {
  margin-inline-end: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap;
  color: var(--wzb-accent); background: var(--wzb-accent-bg);
}
@media (max-width: 1299.98px) { html.wzb [data-testid="toolbar-actions"] > span { display: none; } }
/* the small bar over a clicked element: Edit text · Style · Ask AI · close */
html.wzb body > div.fixed[class*="z-[99999]"]:has(> span.font-mono) {
  gap: 2px; padding: 4px; border-radius: 12px; background: var(--popover, var(--card)); border-color: var(--wzc-line);
  box-shadow: 0 1px 2px rgba(10, 10, 20, .08), 0 12px 32px -12px rgba(10, 10, 20, .45);
}
html.wzb body > div.fixed[class*="z-[99999]"]:has(> span.font-mono) > span.font-mono {
  margin-inline: 2px 4px; padding: 3px 8px; border-radius: 7px; font-size: 11px; color: var(--wzb-accent); background: var(--wzb-accent-bg);
}
html.wzb body > div.fixed[class*="z-[99999]"]:has(> span.font-mono) > button { width: 32px; height: 32px; border-radius: 8px; color: var(--muted-foreground); }
html.wzb body > div.fixed[class*="z-[99999]"]:has(> span.font-mono) > button:hover { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 7%, transparent); }
html.wzb body > div.fixed[class*="z-[99999]"]:has(> span.font-mono) > button svg { width: 15px; height: 15px; }
/* the element you picked, above the chat box */
html.wzb [data-tour-id="builder.chat_input"] .inline-flex:has(> svg.lucide-mouse-pointer-click) {
  gap: 7px; padding: 5px 6px 5px 9px; border-radius: 9px; font-size: 12px; color: var(--wzb-accent); background: var(--wzb-accent-bg);
  box-shadow: inset 0 0 0 1px var(--wzb-accent-line);
}
html.wzb [data-tour-id="builder.chat_input"] .inline-flex:has(> svg.lucide-mouse-pointer-click) > svg { width: 13px; height: 13px; }
html.wzb [data-tour-id="builder.chat_input"] .inline-flex:has(> svg.lucide-mouse-pointer-click) > button { margin: 0 0 0 2px; padding: 3px; border-radius: 6px; }

/* ---- Inspect: the style panel (Typography, Spacing, Colors, Layout, Borders…) */
html.wzb body > div[class*="w-[340px]"] {
  top: 128px; bottom: 24px; inset-inline-end: 26px; border-radius: 16px; border-color: var(--wzc-line);
  background: var(--popover, var(--card)); box-shadow: 0 1px 2px rgba(10, 10, 20, .06), 0 24px 60px -24px rgba(10, 10, 20, .5);
}
html.wzb body > div[class*="w-[340px]"] > div:first-child { padding: 10px 10px 10px 14px; background: transparent; border-color: var(--wzc-line); }
html.wzb body > div[class*="w-[340px]"] > div:first-child span { padding: 3px 8px; border-radius: 7px; font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--wzb-accent); background: var(--wzb-accent-bg); }
html.wzb body > div[class*="w-[340px]"] > div:first-child > button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 8px; color: var(--muted-foreground); }
html.wzb body > div[class*="w-[340px]"] > div:first-child > button:hover { color: var(--foreground); }
html.wzb body > div[class*="w-[340px]"] > div:nth-child(2) {
  margin: 10px 12px 2px; padding: 3px; gap: 2px; border: 0; border-radius: 11px; background: color-mix(in srgb, var(--foreground) 6%, transparent);
}
html.wzb body > div[class*="w-[340px]"] > div:nth-child(2) > button { height: 30px; border-radius: 8px; }
html.wzb body > div[class*="w-[340px]"] > div:nth-child(2) > button svg { width: 15px; height: 15px; }
html.wzb body > div[class*="w-[340px]"] > div:nth-child(2) > button.bg-background { box-shadow: 0 1px 2px rgba(10, 10, 20, .12), 0 0 0 1px var(--wzc-line); }
html.wzb.dark body > div[class*="w-[340px]"] > div:nth-child(2) > button.bg-background { background: color-mix(in srgb, var(--foreground) 12%, var(--background)); }
html.wzb body > div[class*="w-[340px]"] > div:nth-child(3) > div { gap: 4px; padding: 8px 12px; background: transparent; border-color: var(--wzc-line); }
html.wzb body > div[class*="w-[340px]"] > div:nth-child(3) button { padding: 3px 9px; border-radius: 7px; font-size: 11.5px; }
html.wzb body > div[class*="w-[340px]"] .space-y-4 { padding: 14px; }
html.wzb body > div[class*="w-[340px]"] .space-y-4 label { margin-bottom: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; }
html.wzb body > div[class*="w-[340px]"] .space-y-4 .flex { gap: 5px; }
html.wzb body > div[class*="w-[340px]"] .space-y-4 button.border {
  min-height: 28px; padding: 4px 9px; border-radius: 8px; font-size: 12px; border-color: var(--wzc-line); background: color-mix(in srgb, var(--foreground) 2.5%, transparent);
  transition: background-color .15s, color .15s, border-color .15s;
}
html.wzb body > div[class*="w-[340px]"] .space-y-4 button.border:hover { background: color-mix(in srgb, var(--foreground) 7%, transparent); }
html.wzb body > div[class*="w-[340px]"] .space-y-4 button.border.bg-primary,
html.wzb body > div[class*="w-[340px]"] > div:nth-child(3) button.bg-primary {
  color: var(--wzb-accent); background: var(--wzb-accent-bg); border-color: var(--wzb-accent-line); box-shadow: inset 0 0 0 1px var(--wzb-accent-line);
}
html.wzb body > div[class*="w-[340px]"] > div:last-child > div:last-child { gap: 8px; padding: 12px; }
html.wzb body > div[class*="w-[340px]"] > div:last-child > div:last-child > button { height: 34px; border-radius: 10px; font-size: 13px; }
html.wzb body > div[class*="w-[340px]"] > div:last-child > div:last-child > button:last-child { color: #fff; background: var(--wzc-blue); border-color: transparent; box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .7); }
html.wzb body > div[class*="w-[340px]"] > div:last-child > div:last-child > button:last-child:hover { filter: brightness(1.08); }

/* ---- Code: files on the left, the editor on the right */
html.wzb [data-testid="preview-column"] [data-slot="collapsible"]:has([role="tree"]) { border-color: var(--wzc-line); }
@media (min-width: 768px) { html.wzb [data-testid="preview-column"] [data-slot="collapsible"]:has([role="tree"]) { width: 248px; } }
html.wzb [data-testid="preview-column"] [data-slot="collapsible"]:has([role="tree"]) [data-slot="collapsible-content"] > div { background: color-mix(in srgb, var(--foreground) 2.5%, var(--background)); }
html.wzb [data-testid="preview-column"] [data-slot="collapsible-content"] > div > div:first-child { height: 46px; padding: 0 10px 0 16px; border-color: var(--wzc-line); }
html.wzb [data-testid="preview-column"] [data-slot="collapsible-content"] > div > div:first-child h2 { font-size: 13.5px; letter-spacing: -.005em; }
html.wzb [data-testid="preview-column"] [data-slot="collapsible-content"] > div > div:first-child button { width: 30px; height: 30px; border-radius: 8px; color: var(--muted-foreground); }
html.wzb [data-testid="preview-column"] [data-slot="collapsible-content"] > div > div:first-child button:hover { color: var(--foreground); }
html.wzb [data-testid="preview-column"] [role="tree"] { padding: 8px; }
html.wzb [data-testid="preview-column"] [role="treeitem"] {
  min-height: 30px; gap: 7px; border-radius: 8px; font-size: 13px; color: color-mix(in srgb, var(--foreground) 82%, transparent); transition: background-color .12s, color .12s;
}
html.wzb [data-testid="preview-column"] [role="treeitem"]:hover { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 5%, transparent); }
html.wzb [data-testid="preview-column"] [role="treeitem"][aria-selected="true"] {
  color: var(--foreground); background: var(--wzb-accent-bg); box-shadow: inset 0 0 0 1px var(--wzb-accent-line);
}
html.wzb [data-testid="preview-column"] [role="treeitem"] > svg.lucide-chevron-down,
html.wzb [data-testid="preview-column"] [role="treeitem"] > svg.lucide-chevron-right { width: 14px; height: 14px; opacity: .7; }
html.wzb [data-testid="preview-column"] [role="treeitem"] > svg:is(.lucide-folder, .lucide-folder-open) { width: 16px; height: 16px; color: var(--muted-foreground); }
/* file types as small coloured file icons (the colour still tells TS from CSS, HTML, Markdown) */
html.wzb [data-testid="preview-column"] [role="treeitem"] > span.font-mono { width: 16px; height: 16px; }
html.wzb [data-testid="preview-column"] [role="treeitem"] > span.font-mono > span { display: block; width: 15px; height: 15px; font-size: 0; }
html.wzb [data-testid="preview-column"] [role="treeitem"] > span.font-mono > span::before {
  content: ""; display: block; width: 100%; height: 100%; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='m10 13-2 2 2 2'/%3E%3Cpath d='m14 17 2-2-2-2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='m10 13-2 2 2 2'/%3E%3Cpath d='m14 17 2-2-2-2'/%3E%3C/svg%3E") center / contain no-repeat;
}
html.wzb [data-testid="preview-column"] [role="treeitem"] > svg:not(.lucide-chevron-down):not(.lucide-chevron-right):not(.lucide-folder):not(.lucide-folder-open) { width: 15px; height: 15px; }
/* the editor: header with the file's path, a calm editor surface */
html.wzb [data-testid="preview-column"] [data-slot="collapsible"]:has([role="tree"]) + div > div > div:first-child { height: 46px; padding: 0 10px 0 16px; border-color: var(--wzc-line); }
html.wzb [data-testid="preview-column"] [data-slot="collapsible"]:has([role="tree"]) + div > div > div:first-child button {
  height: 30px; padding: 0 11px; gap: 6px; border-radius: 9px; font-size: 12.5px; box-shadow: none; border-color: var(--wzc-line);
}
html.wzb span:has(+ [data-wza="bcrumb"]) { display: none; }
.wzb-crumb { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted-foreground); white-space: nowrap; }
.wzb-crumb > svg { flex: none; width: 15px; height: 15px; color: var(--wzb-accent); }
.wzb-crumb i { font-style: normal; }
.wzb-crumb b { font-weight: 400; opacity: .55; }
.wzb-crumb strong { font-weight: 600; color: var(--foreground); overflow: hidden; text-overflow: ellipsis; }
.wzb-crumb em { margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 500; color: var(--muted-foreground); background: color-mix(in srgb, var(--foreground) 6%, transparent); }
html.wzb.dark .monaco-editor {
  --vscode-editor-background: var(--background); --vscode-editorGutter-background: var(--background);
  --vscode-editorLineNumber-foreground: color-mix(in srgb, var(--foreground) 28%, transparent);
  --vscode-editorLineNumber-activeForeground: color-mix(in srgb, var(--foreground) 80%, transparent);
  --vscode-editorActiveLineNumber-foreground: color-mix(in srgb, var(--foreground) 80%, transparent);
  --vscode-editor-lineHighlightBackground: color-mix(in srgb, var(--foreground) 4%, transparent); --vscode-editor-lineHighlightBorder: transparent;
  --vscode-editorIndentGuide-background1: color-mix(in srgb, var(--foreground) 7%, transparent);
}
html.wzb:not(.dark) .monaco-editor {
  --vscode-editor-lineHighlightBackground: color-mix(in srgb, var(--foreground) 3.5%, transparent); --vscode-editor-lineHighlightBorder: transparent;
  --vscode-editorLineNumber-foreground: color-mix(in srgb, var(--foreground) 30%, transparent);
}
/* no file picked yet: a quiet empty state */
html.wzb [data-testid="preview-column"] [data-slot="collapsible"]:has([role="tree"]) + div .h-full.flex.items-center.justify-center.text-muted-foreground { flex-direction: column; gap: 12px; font-size: 13.5px; }
html.wzb [data-testid="preview-column"] [data-slot="collapsible"]:has([role="tree"]) + div .h-full.flex.items-center.justify-center.text-muted-foreground::before {
  content: ""; width: 44px; height: 44px; border-radius: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='m10 13-2 2 2 2'/%3E%3Cpath d='m14 17 2-2-2-2'/%3E%3C/svg%3E") center / 22px no-repeat, color-mix(in srgb, var(--foreground) 6%, transparent);
  box-shadow: inset 0 0 0 1px var(--wzc-line);
}

/* ================================================================ v30: Settings and Publish
   Settings: html.wzb div:has(> [data-slot=tabs] [id$=-trigger-domains]) is the tab's column
   (General, Domains, Knowledge, Database, Storage). Publish: the dialog that holds
   #publish-subdomain. Only the look changes; every field, button and action stays the app's. */

/* ---- Settings: one centred column, the sub-tabs as a segmented control that stays in view */
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) { width: 100%; max-width: 820px; margin-inline: auto; padding: 22px 28px 56px; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) > [data-slot="tabs"] {
  position: sticky; top: 0; z-index: 5; margin: -22px -4px 8px; padding: 22px 4px 12px; background: linear-gradient(var(--background) 82%, transparent);
}
html.wzb [data-slot="tabs"]:has([id$="-trigger-domains"]) > div { scrollbar-width: none; }
html.wzb [data-slot="tabs"]:has([id$="-trigger-domains"]) > div::-webkit-scrollbar { display: none; }
html.wzb [data-slot="tabs-list"]:has([id$="-trigger-domains"]) { height: auto; gap: 2px; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--foreground) 6%, transparent); }
html.wzb [data-slot="tabs-list"]:has([id$="-trigger-domains"]) > [role="tab"] {
  flex: none; height: 32px; padding: 0 13px; gap: 7px; border: 0; border-radius: 9px; font-size: 13.5px; color: var(--muted-foreground);
  transition: color .15s, background-color .15s, box-shadow .15s;
}
html.wzb [data-slot="tabs-list"]:has([id$="-trigger-domains"]) > [role="tab"]:hover { color: var(--foreground); }
html.wzb [data-slot="tabs-list"]:has([id$="-trigger-domains"]) > [role="tab"] > svg { width: 15px; height: 15px; }
html.wzb [data-slot="tabs-list"]:has([id$="-trigger-domains"]) > [role="tab"][data-state="active"] {
  color: var(--foreground); background: var(--background); box-shadow: 0 1px 2px rgba(10, 10, 20, .1), 0 0 0 1px var(--wzc-line);
}
html.wzb.dark [data-slot="tabs-list"]:has([id$="-trigger-domains"]) > [role="tab"][data-state="active"] { background: color-mix(in srgb, var(--foreground) 12%, var(--background)); }

/* ---- Settings: cards */
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card"] {
  gap: 20px; padding-block: 22px; border-radius: 16px; border-color: var(--wzc-line); background: var(--card);
  box-shadow: 0 1px 2px rgba(10, 10, 20, .04), 0 10px 30px -22px rgba(10, 10, 20, .25);
}
html.wzb.dark div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card"] { background: color-mix(in srgb, var(--foreground) 2.5%, var(--background)); box-shadow: none; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-header"] { gap: 6px; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-title"] { font-size: 15.5px; letter-spacing: -.01em; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-title"] > svg { width: 16px; height: 16px; color: var(--muted-foreground); }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-description"] { font-size: 13.5px; line-height: 1.5; max-width: 62ch; }
/* "Live" next to the subdomain card's title */
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-header"] span.rounded-full { gap: 5px; padding: 4px 10px 4px 8px; font-weight: 500; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-header"] span.rounded-full > svg { width: 13px; height: 13px; }

/* ---- Settings + Publish: labels, help text, fields */
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) [data-slot="label"] { font-size: 13px; line-height: 1.3; }
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) p.text-xs.text-muted-foreground { font-size: 12.5px; line-height: 1.45; }
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) :is([data-slot="input"], [data-slot="select-trigger"], [data-slot="textarea"]) {
  border-radius: 10px; border-color: var(--wzc-line2); background: var(--background); font-size: 14px;
  box-shadow: 0 1px 1px rgba(10, 10, 20, .03); transition: border-color .15s, box-shadow .15s, background-color .15s;
}
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) :is([data-slot="input"], [data-slot="select-trigger"]) { height: 40px; padding-inline: 12px; }
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) [data-slot="input"].pe-8 { padding-inline-end: 34px; }
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) [data-slot="textarea"] { min-height: 92px; padding: 10px 12px; line-height: 1.55; }
html.wzb.dark :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) :is([data-slot="input"], [data-slot="select-trigger"], [data-slot="textarea"]) {
  background: color-mix(in srgb, var(--foreground) 3.5%, var(--background)); box-shadow: none;
}
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) :is([data-slot="input"], [data-slot="select-trigger"], [data-slot="textarea"]):hover:not(:disabled):not(:focus-visible) {
  border-color: color-mix(in srgb, var(--foreground) 26%, transparent);
}
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) :is([data-slot="input"], [data-slot="select-trigger"], [data-slot="textarea"]):focus-visible,
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) [data-slot="select-trigger"][data-state="open"] {
  border-color: var(--wzb-accent); box-shadow: 0 0 0 3px var(--wzb-accent-bg);
}
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) [data-slot="input"][aria-invalid="true"] { border-color: var(--wza-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wza-red) 14%, transparent); }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="input"][readonly] { font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted-foreground); background: color-mix(in srgb, var(--foreground) 4%, var(--background)); }
/* subdomain + ".webza.app": one field */
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) div.flex.items-center.gap-2:has(> div.relative.flex-1 > [data-slot="input"]):has(> span.whitespace-nowrap) { gap: 0; }
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) div.flex.items-center.gap-2:has(> div.relative.flex-1 > [data-slot="input"]):has(> span.whitespace-nowrap) > div.relative > [data-slot="input"] { border-start-end-radius: 0; border-end-end-radius: 0; }
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) div.flex.items-center.gap-2:has(> div.relative.flex-1 > [data-slot="input"]) > span.whitespace-nowrap {
  display: flex; align-items: center; align-self: stretch; padding: 0 13px; border: 1px solid var(--wzc-line2); border-inline-start: 0;
  border-start-end-radius: 10px; border-end-end-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--muted-foreground);
  background: color-mix(in srgb, var(--foreground) 4.5%, var(--background));
}
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) div.flex.items-center.gap-2:has(> div.relative.flex-1 > [data-slot="input"]) > div.relative > div.absolute svg { width: 15px; height: 15px; }

/* ---- Settings: share image, GitHub / Analytics panels, the live address, storage */
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) label.border-dashed {
  max-width: 440px; border-width: 1.5px; border-radius: 14px; border-color: var(--wzc-line2); background: color-mix(in srgb, var(--foreground) 2.5%, transparent);
  transition: border-color .15s, background-color .15s;
}
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) label.border-dashed:hover { border-color: var(--wzb-accent-line); background: var(--wzb-accent-bg); }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) label.border-dashed svg {
  box-sizing: border-box; width: 44px; height: 44px; margin-bottom: 10px; padding: 11px; border-radius: 12px; color: var(--foreground);
  background: var(--background); box-shadow: 0 1px 2px rgba(10, 10, 20, .08), 0 0 0 1px var(--wzc-line);
}
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) label.border-dashed p { font-size: 13px; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"] div.space-y-3.p-4.border.rounded-lg {
  padding: 16px 18px; border-radius: 12px; border-color: var(--wzc-line); background: color-mix(in srgb, var(--foreground) 2%, transparent);
}
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) div.space-y-3.p-4.border.rounded-lg > div:first-child > [data-slot="label"] { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) div.space-y-3.p-4.border.rounded-lg > div:first-child > [data-slot="label"] > svg { width: 16px; height: 16px; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) div.space-y-3.p-4.border.rounded-lg > div:first-child > p { margin-top: 4px; font-size: 13px; line-height: 1.5; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) div.space-y-3.p-4.border.rounded-lg a { font-weight: 500; color: var(--foreground); text-decoration: underline; text-decoration-color: var(--wzc-line2); text-underline-offset: 3px; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) div.space-y-3.p-4.border.rounded-lg a:hover { text-decoration-color: currentColor; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"] > div.rounded-lg.border.p-3 { padding: 12px 14px; border-radius: 12px; border-color: var(--wzc-line); background: color-mix(in srgb, var(--foreground) 2.5%, transparent); }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"] > div.rounded-lg.border.p-3 > p:has(> a)::before,
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.rounded-lg.border > p.break-all::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 9px; vertical-align: 1px; border-radius: 50%;
  background: var(--wzc-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wzc-ok) 18%, transparent);
}
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"] > div.rounded-lg.border.p-3 a { font-weight: 500; color: var(--foreground); text-decoration: underline; text-decoration-color: var(--wzc-line2); text-underline-offset: 3px; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) .h-2.bg-muted.rounded-full { height: 6px; background: var(--wzc-line); }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) div.flex.items-center.justify-between.text-sm:has(+ .h-2) { font-size: 13px; font-variant-numeric: tabular-nums; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) div.flex.items-center.justify-between.text-sm:has(+ .h-2) > span:last-child { color: var(--muted-foreground); }
/* the token's show / copy buttons: square, framed like the field */
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) div.flex.items-center.gap-2 > [data-slot="input"] ~ button.size-9 {
  flex: none; width: 40px; height: 40px; border: 1px solid var(--wzc-line2); border-radius: 10px; color: var(--muted-foreground);
}
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) div.flex.items-center.gap-2 > [data-slot="input"] ~ button.size-9:hover { color: var(--foreground); }

/* ---- Settings + Publish: buttons */
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) :is([data-slot="button"], [data-slot="alert-dialog-trigger"]).h-9:not(.size-9) {
  height: 38px; padding-inline: 16px; border-radius: 10px;
}
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) :is([data-slot="button"], [data-slot="alert-dialog-trigger"]).border-input {
  border-color: var(--wzc-line2); box-shadow: 0 1px 1px rgba(10, 10, 20, .04);
}
/* destructive actions (Unpublish, Revoke): red text on a quiet frame; the confirm dialog keeps the solid red */
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) [data-slot="alert-dialog-trigger"].bg-destructive,
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="button"] + [data-slot="alert-dialog-trigger"].border-input,
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.rounded-lg.border [data-slot="alert-dialog-trigger"] {
  color: var(--wza-red); background: transparent; border: 1px solid color-mix(in srgb, var(--wza-red) 32%, transparent); box-shadow: none;
}
html.wzb :is(div:has(> [data-slot="tabs"] [id$="-trigger-domains"]), [data-slot="dialog-content"]:has([id="publish-subdomain"])) [data-slot="alert-dialog-trigger"].bg-destructive:hover,
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="button"] + [data-slot="alert-dialog-trigger"].border-input:hover,
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.rounded-lg.border [data-slot="alert-dialog-trigger"]:hover {
  color: var(--wza-red); background: color-mix(in srgb, var(--wza-red) 9%, transparent); border-color: color-mix(in srgb, var(--wza-red) 45%, transparent);
}

/* ---- Settings: each card's action row as a footer bar (Save on the right, stays in view on long forms) */
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"] > div.flex:last-child:has(> :is([data-slot="button"], [data-slot="alert-dialog-trigger"])) {
  position: sticky; bottom: 0; z-index: 2; gap: 10px; margin: 6px -24px -22px; padding: 13px 24px; justify-content: flex-end;
  border-top: 1px solid var(--wzc-line); border-end-start-radius: 15px; border-end-end-radius: 15px;
  background: color-mix(in srgb, var(--foreground) 2.5%, var(--card));
}
html.wzb.dark div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"] > div.flex:last-child:has(> :is([data-slot="button"], [data-slot="alert-dialog-trigger"])) {
  background: color-mix(in srgb, var(--foreground) 4.5%, var(--background));
}
/* two actions: the main one on the far right */
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"] > div.flex:not(.justify-end):last-child:has(> :is([data-slot="button"], [data-slot="alert-dialog-trigger"])) {
  flex-direction: row-reverse; justify-content: flex-start;
}
/* custom domain: the usage note and "Add domain" share the footer */
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"]:has(> div:first-child + p + button:last-child) {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
}
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"]:has(> div:first-child + p + button:last-child) > div:first-child { grid-column: 1 / -1; margin: 0 0 20px; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"]:has(> div:first-child + p + button:last-child) > p { grid-row: 2; grid-column: 1; position: relative; z-index: 1; margin: 0; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"]:has(> div:first-child + p + button:last-child) > button { grid-row: 2; grid-column: 2; position: relative; z-index: 1; margin: 0; }
html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"]:has(> div:first-child + p + button:last-child)::after {
  content: ""; grid-row: 2; grid-column: 1 / -1; align-self: stretch; margin: -13px -24px -22px; border-top: 1px solid var(--wzc-line);
  border-end-start-radius: 15px; border-end-end-radius: 15px; background: color-mix(in srgb, var(--foreground) 2.5%, var(--card));
}
html.wzb.dark div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"]:has(> div:first-child + p + button:last-child)::after { background: color-mix(in srgb, var(--foreground) 4.5%, var(--background)); }
@media (max-width: 639.98px) {
  html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) { padding-inline: 16px; }
  html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card"] { padding-block: 18px; }
  html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) :is([data-slot="card-header"], [data-slot="card-content"]) { padding-inline: 18px; }
  html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"] > div.flex:last-child:has(> :is([data-slot="button"], [data-slot="alert-dialog-trigger"])) { margin: 6px -18px -18px; padding: 12px 18px; flex-wrap: wrap; }
  html.wzb div:has(> [data-slot="tabs"] [id$="-trigger-domains"]) [data-slot="card-content"]:has(> div:first-child + p + button:last-child)::after { margin: -12px -18px -18px; }
}

/* ---- dialogs in the builder: softer frame, blurred backdrop */
html.wzb :is([data-slot="dialog-overlay"], [data-slot="alert-dialog-overlay"]) { background: rgba(8, 8, 14, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html.wzb.dark :is([data-slot="dialog-overlay"], [data-slot="alert-dialog-overlay"]) { background: rgba(0, 0, 0, .62); }
html.wzb :is([data-slot="dialog-content"], [data-slot="alert-dialog-content"]) {
  border-radius: 18px; border-color: var(--wzc-line); box-shadow: 0 2px 6px rgba(10, 10, 20, .06), 0 30px 80px -24px rgba(10, 10, 20, .5);
}
html.wzb.dark :is([data-slot="dialog-content"], [data-slot="alert-dialog-content"]) { background: color-mix(in srgb, var(--foreground) 3%, var(--background)); border-color: color-mix(in srgb, var(--foreground) 12%, transparent); box-shadow: 0 34px 90px -24px rgba(0, 0, 0, .9); }
html.wzb [data-slot="alert-dialog-content"] [data-slot="alert-dialog-title"] { font-size: 17px; letter-spacing: -.01em; }
html.wzb [data-slot="alert-dialog-content"] [data-slot="alert-dialog-description"] { font-size: 13.5px; line-height: 1.55; }
html.wzb [data-slot="alert-dialog-content"] [data-slot="alert-dialog-footer"] button { height: 38px; padding-inline: 16px; border-radius: 10px; }
html.wzb [data-slot="dialog-content"] > button:has(> svg.lucide-x) {
  display: grid; place-items: center; width: 32px; height: 32px; top: 14px; inset-inline-end: 14px; border-radius: 9px; opacity: 1; color: var(--muted-foreground);
  transition: color .15s, background-color .15s;
}
html.wzb [data-slot="dialog-content"] > button:has(> svg.lucide-x):hover { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 7%, transparent); }

/* ---- Publish: header with an icon, the live address card, the form, earlier versions */
@media (min-width: 640px) { html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) { max-width: 480px; } }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) { gap: 18px; padding: 24px; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) [data-slot="dialog-header"] { position: relative; min-height: 40px; gap: 4px; padding-inline: 52px 32px; text-align: start; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) [data-slot="dialog-title"] { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) [data-slot="dialog-title"] > svg {
  position: absolute; top: 0; inset-inline-start: 0; box-sizing: border-box; width: 40px; height: 40px; padding: 10px; border-radius: 12px;
  color: var(--wzb-accent); background: var(--wzb-accent-bg); box-shadow: inset 0 0 0 1px var(--wzb-accent-line);
}
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) [data-slot="dialog-description"] { font-size: 13.5px; line-height: 1.5; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.rounded-lg.border {
  padding: 14px 16px; border-radius: 14px; border-color: var(--wzc-line); background: color-mix(in srgb, var(--foreground) 2.5%, transparent);
}
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.rounded-lg.border > p.break-all { font-size: 13px; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.rounded-lg.border > p.break-all > span { font-weight: 600; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.rounded-lg.border > div.flex { gap: 6px; padding-top: 4px; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.rounded-lg.border > div.flex > button {
  height: 32px; padding: 0 12px; gap: 6px; border-radius: 9px; font-size: 13px; border-color: var(--wzc-line2); box-shadow: none;
}
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.rounded-lg.border > div.flex > [data-slot="alert-dialog-trigger"] { margin-inline-start: auto; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) form { margin-top: 2px; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) form > div.space-y-2 + div.space-y-2 { margin-top: 18px; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) [data-slot="dialog-footer"] { gap: 8px; padding-top: 8px; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) [data-slot="dialog-footer"] button { height: 38px; padding-inline: 18px; border-radius: 10px; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) [data-slot="dialog-footer"] button[type="submit"] {
  font-weight: 600; color: #fff; background: var(--wzc-blue); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px -8px rgba(37, 99, 235, .75);
}
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) [data-slot="dialog-footer"] button[type="submit"]:hover:not(:disabled) { filter: brightness(1.08); }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) [data-slot="dialog-footer"] button[type="submit"]:disabled { opacity: .45; box-shadow: none; }
/* earlier versions */
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.border-t { margin-top: 2px; padding-top: 18px; border-color: var(--wzc-line); }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.border-t > div:first-child { margin-bottom: 6px; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.border-t > div:first-child h4 { font-size: 14px; font-weight: 600; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.border-t > div:first-child svg { width: 15px; height: 15px; color: var(--muted-foreground); }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.border-t > p { font-size: 12.5px; line-height: 1.5; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.border-t > div.space-y-2 > div {
  padding: 10px 10px 10px 14px; border-radius: 12px; border-color: var(--wzc-line); background: color-mix(in srgb, var(--foreground) 2.5%, transparent);
}
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.border-t > div.space-y-2 > div p.font-medium { font-size: 13.5px; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.border-t > div.space-y-2 > div p.text-xs { margin-top: 2px; font-size: 12px; font-variant-numeric: tabular-nums; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.border-t > div.space-y-2 > div button { height: 30px; border-radius: 8px; font-size: 12.5px; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.border-t > div.space-y-2 > div button:not([aria-label]) { padding: 0 10px; border-color: var(--wzc-line2); box-shadow: none; }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.border-t > div.space-y-2 > div button[aria-label] { width: 30px; color: var(--muted-foreground); }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.border-t > div.space-y-2 > div button[aria-label]:hover { color: var(--wza-red); background: color-mix(in srgb, var(--wza-red) 9%, transparent); }
html.wzb [data-slot="dialog-content"]:has([id="publish-subdomain"]) > div.border-t > div.space-y-2 > div button svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { html.wzb :is([data-slot="dialog-overlay"], [data-slot="alert-dialog-overlay"]) { -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* v61: the Design panel's footer ("Unsaved changes" + "Ask AI to apply"). The app keeps the
   button on one line, so in longer languages it ran past the panel's edge. The two now share
   the row while they fit; otherwise the button takes a full row of its own and its label
   may wrap. */
html.wzb div.border-t.justify-between.shrink-0:has(> p.text-muted-foreground + button) { flex-wrap: wrap; row-gap: 10px; }
html.wzb div.border-t.justify-between.shrink-0:has(> p.text-muted-foreground + button) > p { flex: 0 1 auto; min-width: 0; }
html.wzb div.border-t.justify-between.shrink-0:has(> p.text-muted-foreground + button) > p:empty { display: none; }
html.wzb div.border-t.justify-between.shrink-0:has(> p.text-muted-foreground + button) > button {
  flex: 1 0 auto; max-width: 100%; min-width: 0; white-space: normal; height: auto; min-height: 2.25rem;
  padding-block: .5rem; line-height: 1.25; text-align: center; }

/* v76: the plan's AI model after the credits under the chat box (app-builder.js model()) */
html.wzb .wzb-model { display: inline-flex; align-items: center; gap: .3rem; margin-left: .375rem; padding-left: .5rem; border-left: 1px solid var(--border, #e5e5e5);
  color: var(--muted-foreground, #888); font-size: .75rem; line-height: 1rem; white-space: nowrap; text-decoration: none; }
html.wzb .wzb-model svg { width: .75rem; height: .75rem; flex: none; }
html.wzb .wzb-model b { display: inline-flex; align-items: center; gap: .125rem; margin-left: .25rem; font-weight: 500; color: var(--foreground, #111); }
html.wzb .wzb-model.is-free:hover b, html.wzb .wzb-model.is-free:focus-visible b { text-decoration: underline; text-underline-offset: 2px; }

/* v78: your messages. The app colours their text with text-primary-foreground, which on the
   soft bubble above is white on light grey (light theme) or dark on dark (dark theme):
   everything inside follows the bubble's own colour instead. */
html.wzb [data-testid="chat-transcript"] .justify-end > div[class*="rounded-2xl"] .prose :is(p, ul, ol, li, h1, h2, h3, h4, h5, h6, strong, em, a, blockquote, code, pre, span) { color: inherit !important; }
html.wzb [data-testid="chat-transcript"] .justify-end > div[class*="rounded-2xl"] .prose li::marker { color: var(--muted-foreground) !important; }
html.wzb [data-testid="chat-transcript"] .justify-end > div[class*="rounded-2xl"] .prose :is(h1, h2, h3, h4, h5, h6) { margin: .9em 0 .35em; font-size: 14px; font-weight: 600; letter-spacing: 0; }
html.wzb [data-testid="chat-transcript"] .justify-end > div[class*="rounded-2xl"] .prose > :first-child { margin-top: 0; }
html.wzb [data-testid="chat-transcript"] .justify-end > div[class*="rounded-2xl"] .prose :is(ul, ol) { margin: .35em 0; padding-inline-start: 1.15em; }
html.wzb [data-testid="chat-transcript"] .justify-end > div[class*="rounded-2xl"] .prose li { margin: .15em 0; }
/* long messages: folded with a fade and a "Show more" button (app-builder.js longMsgs()) */
html.wzb [data-wzb-long="1"] .prose { max-height: 300px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent); }
html.wzb .wzb-more { display: inline-flex; align-items: center; margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--foreground); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
html.wzb .wzb-more:hover { text-decoration-color: currentColor; }
html.wzb .wzb-more:focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; border-radius: 4px; }

/* v79: the chat box at 16px on touch screens, so iPhone does not zoom in when you tap it */
@media (pointer: coarse) {
  html.wzb [data-tour-id="builder.chat_input"] [data-lexical-editor], html.wzb [data-tour-id="builder.chat_input"] [data-lexical-editor] + div { font-size: 16px; }
  html.wzb :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select) { font-size: max(16px, 1em) !important; }
}

/* ================================================================ v80: calmer chat */
/* progress card: no frame, a soft panel; smaller, tighter lines with plain grey icons */
html.wzb [data-testid="chat-transcript"] > [data-wzb="act"] {
  padding-inline: 12px; border-color: transparent !important; background: color-mix(in srgb, var(--foreground) 3%, transparent);
}
html.wzb [data-testid="chat-transcript"] > [data-wzb="act"] > .justify-start > div { gap: 9px; padding-block: 3px; font-size: 12.5px; line-height: 1.4; }
html.wzb [data-testid="chat-transcript"] > [data-wzb="act"] > .justify-start > div > span:first-child { width: 18px; height: 18px; font-size: 10px; background: transparent; }
html.wzb [data-testid="chat-transcript"] > [data-wzb="act"] > .justify-start > div > span.italic {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal;
}
/* a long run: only the last three lines, "+N steps" above them */
html.wzb [data-testid="chat-transcript"] > [data-wzb-hide] { display: none !important; }
html.wzb [data-testid="chat-transcript"] > [data-wzb-hide] + [data-wzb="act"]:not([data-wzb-hide]) { padding-top: 9px; border-start-start-radius: 14px; border-start-end-radius: 14px; }
html.wzb .wzb-steps { display: block; margin: 0 0 4px; padding: 2px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
html.wzb .wzb-steps:hover { color: var(--foreground); }
html.wzb .wzb-steps:focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; border-radius: 4px; }
/* your messages: a little smaller and tighter */
html.wzb [data-testid="chat-transcript"] .justify-end > div[class*="rounded-2xl"] { padding: 8px 14px; border-radius: 16px; border-end-end-radius: 6px; }
html.wzb [data-testid="chat-transcript"] .justify-end > div[class*="rounded-2xl"] :is(p, li, .prose) { font-size: 13.5px; line-height: 1.5; }
/* "previous version restored" lines: upright, quiet */
html.wzb [data-testid="chat-transcript"] .italic { font-style: normal; }

/* the line above the chat box: credits with a short quiet bar; Free adds "Fast model ↗" */
html.wzb .wzb-bar { flex: none; width: 56px; max-width: 56px; height: 3px; }
html.wzb .wzb-bar i { opacity: .55; }
html.wzb .wzb-model { margin-left: 0; padding-left: 0; border-left: 0; gap: 2px; }
html.wzb .wzb-model.is-free:hover, html.wzb .wzb-model.is-free:focus-visible { color: var(--foreground); }
html.wzb .wzb-model.is-free svg { width: 11px; height: 11px; }

/* v64: plan cards on the landing page and /billing/plans (plan-cards.js marks them .wzpc-card) */
.wzpc-src { display: none !important; }
.wzpc-card { border-radius: 20px !important; transition: transform .25s, box-shadow .25s; }
.wzpc-card.wzpc-hot {
  background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 9%, var(--card)) 0%, var(--card) 38%) !important;
  box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--primary) 70%, transparent), 0 28px 60px -28px color-mix(in oklab, var(--primary) 55%, transparent) !important;
}
@media (min-width: 1024px) { .wzpc-card.wzpc-hot { transform: translateY(-8px); } }
.wzpc-card [data-slot="card-title"] { letter-spacing: .02em; }
ul.wzpc { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--border); display: grid; gap: 11px; text-align: start; }
ul.wzpc li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
ul.wzpc > li > .ic { width: 18px; height: 18px; padding: 3px; flex: none; margin-top: 1px; border-radius: 50%; stroke-width: 2.6;
  color: #16a34a; background: color-mix(in oklab, #16a34a 14%, transparent); }
.dark ul.wzpc > li > .ic { color: #4ade80; background: color-mix(in oklab, #4ade80 14%, transparent); }
ul.wzpc .ic { width: 16px; height: 16px; flex: none; }
ul.wzpc li.pc-grp { display: block; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 600; }
ul.wzpc li:is(.pc-off, .pc-inc) { color: var(--muted-foreground); }
ul.wzpc > li:is(.pc-off, .pc-inc) > .ic { background: none; color: var(--muted-foreground); opacity: .75; stroke-width: 2.2; }
.wzpc-day { display: inline-block; margin: 10px 0 0; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--primary); background: color-mix(in oklab, var(--primary) 10%, transparent); }
/* landing buttons: a little taller; the popular plan's filled */
.wzpc-card [data-slot="card-footer"] a { height: 44px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.wzpc-card.wzpc-hot [data-slot="card-footer"] a { box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--primary) 70%, transparent); }
