/*
 * The inner pages in the studio look (4.8): pricing, account, support, user
 * guides, features and the legal pages. Loaded after 20-studio.css; it only
 * restyles, every class the plugins print stays as it is.
 */

/* The old dark card colour, now the flat navy band (bundle card, account bar). */
:root { --qb-today-text: #0b6e49; --pa-dark: var(--qb-band); --pa-ink: var(--qb-ink); --pa-muted: var(--qb-muted); --pa-soft: var(--qb-muted); --pa-green: var(--qb-today-text); }

/* ---------- Page width: the same edges as the header ---------- */
.wms-pricing-page > .wms-container,
.wms-account-page > .wms-container,
.wms-support-page > .wms-container,
.wms-guide-page > .wms-container,
.wms-features-page > .wms-container { max-width: calc(82.5rem + 2 * var(--qb-gutter)); padding-inline: var(--qb-gutter); }

main.wms-features-page,
.wms-pricing-page,
.wms-account-page,
.wms-support-page,
.wms-guide-page { background: var(--qb-wall); }
.wms-section.wms-pricing-page,
.wms-section.wms-account-page,
.wms-support-page,
main.wms-features-page { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.wms-guide-page { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- Page heads: a condensed headline on the wall, lead beside it, ink rule below ---------- */
.wms-pricing-page .wms-section-head,
.wms-account-page .wms-section-head,
.wms-support-hero,
.wms-features-page > .wms-container > .wms-section-head {
  position: static; overflow: visible; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto auto; align-items: end; gap: .75rem 3rem;
  max-width: none; margin: 0 0 clamp(1.5rem, 3vw, 2rem); padding: 0 0 clamp(1rem, 2vw, 1.5rem);
  border: 0; border-bottom: 2px solid var(--qb-ink); border-radius: 0; background: none; box-shadow: none; color: var(--qb-ink); text-align: left;
}
.wms-pricing-page .wms-section-head::after,
.wms-account-page .wms-section-head::after { content: none; }
.wms-pricing-page .wms-section-head > *,
.wms-account-page .wms-section-head > * { position: static; }
.wms-pricing-page .wms-section-head h1,
.wms-account-page .wms-section-head h1,
.wms-support-hero h1,
.wms-features-page > .wms-container > .wms-section-head h1 { grid-column: 1; grid-row: 1 / span 3; align-self: end; max-width: 20ch; margin: 0; color: var(--qb-ink); font: 700 clamp(2.25rem, 3.6vw, 3rem)/.95 var(--qb-display); letter-spacing: 0; text-wrap: balance; }
.wms-pricing-page .wms-section-head > :not(h1),
.wms-account-page .wms-section-head > :not(h1),
.wms-support-hero > :not(h1),
.wms-features-page > .wms-container > .wms-section-head > :not(h1) { grid-column: 2; grid-row: 2; }
.wms-pricing-page .wms-section-head > .wms-trust-row { grid-row: 3; }
.wms-pricing-page .wms-section-head > p,
.wms-account-page .wms-section-head > p,
.wms-support-hero p,
.wms-features-page > .wms-container > .wms-section-head p { max-width: 72ch; margin: 0; color: var(--qb-ink-2); font-size: 1rem; line-height: 1.55; }

/* No labels above headings. */
.wms-pricing-page .wms-section-head .wms-eyebrow,
.wms-account-page .wms-section-head .wms-eyebrow,
.wms-support-hero .wms-eyebrow,
.wms-features-page .wms-eyebrow,
.wms-guide-hero-eyebrow,
.wms-prose > .wms-eyebrow { display: none; }

/* Pricing: what every trial gives, as a short ruled list. */
.wms-pricing-page .wms-section-head .wms-trust-row { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .5rem 1.25rem; margin: .25rem 0 0; padding: 0; list-style: none; color: var(--qb-ink); font-size: .9375rem; }
.wms-pricing-page .wms-section-head .wms-trust-row li { display: inline-flex; align-items: center; gap: .375rem; margin: 0; padding: 0; border: 0; background: none; color: inherit; }
.wms-pricing-page .wms-section-head .wms-trust-row svg,
.wms-pricing-page .wms-section-head .wms-trust-row .wms-icon { flex: none; width: 1rem; height: 1rem; color: var(--qb-today-text); }

@media (max-width: 860px) {
  .wms-pricing-page .wms-section-head,
  .wms-account-page .wms-section-head,
  .wms-support-hero,
  .wms-features-page > .wms-container > .wms-section-head { grid-template-columns: 1fr; grid-template-rows: none; }
  .wms-pricing-page .wms-section-head h1,
  .wms-account-page .wms-section-head h1,
  .wms-support-hero h1,
  .wms-features-page > .wms-container > .wms-section-head h1 { grid-row: auto; max-width: none; }
  .wms-pricing-page .wms-section-head > :not(h1),
  .wms-account-page .wms-section-head > :not(h1),
  .wms-support-hero > :not(h1),
  .wms-features-page > .wms-container > .wms-section-head > :not(h1),
  .wms-pricing-page .wms-section-head > .wms-trust-row { grid-column: 1; grid-row: auto; }
}

/* ---------- Chips: plan filter, guide products, support jump links ---------- */
.wms-plan-filters { gap: .5rem; width: auto; max-width: none; margin: 0 0 2rem; padding: 0; border-radius: 0; background: none; box-shadow: none; justify-content: flex-start; }
.wms-home-plans .wms-plan-filters { justify-content: center; }
.wms-chip,
.wms-plan-filters .wms-chip,
.wms-support-nav a { min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--qb-rule); border-radius: 4px; background: var(--qb-board); color: var(--qb-ink-2); font: 600 1.0625rem/1 var(--qb-display); letter-spacing: .02em; box-shadow: none; transition: border-color .2s var(--qb-ease), background-color .2s var(--qb-ease), color .2s var(--qb-ease); }
.wms-chip:hover,
.wms-plan-filters .wms-chip:hover,
.wms-support-nav a:hover { border-color: var(--qb-ink); background: var(--qb-board); color: var(--qb-ink); }
.wms-chip[aria-pressed="true"],
.wms-chip[aria-current="page"],
.wms-plan-filters .wms-chip[aria-pressed="true"] { border-color: var(--qb-ink); background: var(--qb-ink); color: #fff; box-shadow: none; }
.wms-chip small { padding: .125rem .375rem; border: 1px dashed currentColor; border-radius: 3px; font: 600 .6875rem/1.2 var(--qb-display); letter-spacing: .08em; opacity: .8; }
.wms-chip:focus-visible,
.wms-support-nav a:focus-visible { outline: 3px solid var(--qb-webnovel); outline-offset: 2px; }

/* Phones: each chip set wraps onto a second line, so no chip is cut off at the edge. */
@media (max-width: 620px) {
  .wms-plan-filters,
  .wms-guide-products,
  .wms-support-nav { flex-wrap: wrap; justify-content: flex-start; }
  .wms-home-plans .wms-plan-filters { justify-content: flex-start; }
}

/* ---------- Pricing extras ---------- */
.wms-offers .wms-price-grid { max-width: 1100px; margin-inline: auto; }
/* On the pricing page the cards line up with the filter row and the head. */
.wms-pricing-page .wms-offers .wms-price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
@media (max-width: 1080px) { .wms-pricing-page .wms-offers .wms-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .wms-pricing-page .wms-offers .wms-price-grid { grid-template-columns: 1fr; } }
.wms-plan-includes { max-width: none; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--qb-rule); border-radius: var(--qb-radius); background: var(--qb-board); box-shadow: none; }
.wms-plan-includes h2 { margin: 0 0 1.5rem; color: var(--qb-ink); font: 700 clamp(1.75rem, 3vw, 2.25rem)/1 var(--qb-display); letter-spacing: 0; text-align: left; }
.wms-plan-includes ul { gap: 0 2.5rem; border-top: 1px solid var(--qb-rule); }
.wms-plan-includes li { border: 0; border-bottom: 1px solid var(--qb-rule); gap: 1rem; padding: 1.25rem 0; border-radius: 0; background: none; color: var(--qb-ink-2); font-size: .9375rem; }
.wms-plan-includes li > .wms-icon { width: 2.5rem; height: 2.5rem; border-radius: 4px; background: var(--qb-today-wash); color: var(--qb-today-text); }
.wms-plan-includes li strong { color: var(--qb-ink); font: 600 1.25rem/1.15 var(--qb-display); }
.wms-pricing-page .wms-offers > .wms-price-note,
.wms-pricing-page > .wms-container > .wms-price-note { margin-inline: 0; text-align: left; }
.wms-faq-intro .wms-eyebrow { display: none; }

/* ---------- Account and sign-in ---------- */
.wms-account-page .wms-account-dashboard,
.wms-account-page .wms-auth { border: 1px solid var(--qb-rule); border-radius: var(--qb-radius); box-shadow: var(--qb-lift); }
.wms-account-page .wms-auth h2,
.wms-account-dashboard > h3 { color: var(--qb-ink); font: 700 clamp(1.375rem, 2vw, 1.625rem)/1 var(--qb-display); letter-spacing: 0; }
.wms-account-page .wms-auth input[type="email"],
.wms-account-page .wms-auth input[type="text"] { border: 1px solid var(--qb-rule-strong); border-radius: 4px; background: var(--qb-board); box-shadow: none; }
.wms-account-page .wms-auth input:focus { border-color: var(--qb-ink); box-shadow: 0 0 0 3px rgba(35, 97, 196, .25); }
.wms-account-page .wms-auth button[type="submit"],
.wms-account-page .wms-auth .wms-button-primary { min-height: 3rem; border-radius: 4px; background: var(--qb-ink); box-shadow: none; color: #fff; font: 700 1.0625rem/1 var(--qb-display); letter-spacing: .05em; text-transform: uppercase; transition: background-color .2s var(--qb-ease); }
.wms-account-page .wms-auth button[type="submit"]:hover,
.wms-account-page .wms-auth .wms-button-primary:hover { background: var(--qb-band); }
.wms-account-page .wms-auth-links button { color: var(--qb-ink); text-decoration: underline; text-decoration-color: var(--qb-today); text-decoration-thickness: 2px; }
.wms-account-heading { border-radius: var(--qb-radius); background: var(--qb-band); }
.wms-account-heading .wms-eyebrow { color: var(--qb-today); font: 600 .8125rem/1 var(--qb-display); letter-spacing: .08em; }
.wms-account-heading h2 { font: 700 1.5rem/1 var(--qb-display); letter-spacing: 0; }
.wms-account-heading p { color: var(--qb-band-ink); }
.wms-account-heading .wms-account-plan { border-radius: 4px; }
.wms-account-dashboard .wms-product-access-row { border: 1px solid var(--qb-rule); border-radius: 4px; background: var(--qb-sheet); box-shadow: none; }
.wms-account-dashboard .wms-product-access-row:hover { background: var(--qb-board); border-color: var(--qb-rule-strong); box-shadow: none; }
.wms-account-dashboard .wms-product-access-row.is-active { border-color: rgba(11, 110, 73, .3); background: var(--qb-today-wash); box-shadow: none; }
/* A plan set to end (amber) or whose payment failed (red) does not look all well. */
.wms-account-dashboard .wms-product-access-row.is-ending { border-color: rgba(178, 132, 10, .4); background: #fdf6e3; }
.wms-account-dashboard .wms-product-access-row.is-issue { border-color: rgba(178, 42, 44, .35); background: #fcefef; }
.wms-account-dashboard .wms-product-access-row h4 { font: 600 1.125rem/1.1 var(--qb-display); }
.wms-account-dashboard .wms-product-access-row strong { border-radius: 3px; }
.wms-account-dashboard > .wms-account-actions { border-top-color: var(--qb-rule); }
.wms-account-dashboard > .wms-account-actions .wms-button { border-radius: 4px; }
.wms-account-dashboard > .wms-account-actions .wms-button-secondary { border: 1.5px solid var(--qb-ink); box-shadow: none; }
.wms-account-dashboard .wms-notice { border-radius: 4px; }
@media (max-width: 640px) { .wms-account-page .wms-account-dashboard { border-radius: var(--qb-radius); } }

/* ---------- Support ---------- */
.wms-support-quick { gap: 0; max-width: none; margin: 0; border: 1px solid var(--qb-rule); border-radius: var(--qb-radius); background: var(--qb-board); overflow: hidden; }
.wms-support-quick li + li { border-left: 1px solid var(--qb-rule); }
.wms-support-quick a { padding: 1rem 1.25rem; border: 0; border-radius: 0; background: none; box-shadow: none; transition: background-color .2s var(--qb-ease); }
.wms-support-quick a:hover { transform: none; border: 0; background: var(--qb-sheet); box-shadow: none; }
.wms-support-quick-icon { border-radius: 4px; background: var(--qb-today-wash); color: var(--qb-today-text); }
.wms-support-quick strong { color: var(--qb-ink); font: 600 1.25rem/1.1 var(--qb-display); }
.wms-support-quick span:last-child { color: var(--qb-ink-2); }
.wms-support-nav { justify-content: flex-start; margin-top: 1.5rem; margin-bottom: 0; }
.wms-support-group { max-width: none; margin: clamp(2rem, 4vw, 3rem) 0 0; gap: 2rem 3rem; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.wms-support-group-head .wms-support-group-icon { border: 1px solid var(--qb-rule); border-radius: 4px; box-shadow: none; }
.wms-support-group-head h2 { color: var(--qb-ink); font: 700 clamp(1.5rem, 2.2vw, 2rem)/.98 var(--qb-display); letter-spacing: 0; }
.wms-support-group-head p { color: var(--qb-ink-2); }
.wms-support-contact { max-width: none; margin: clamp(4rem, 8vw, 6rem) 0 0; border-radius: var(--qb-radius); background: var(--qb-band); color: var(--qb-band-ink); box-shadow: none; }
.wms-support-contact h2 { font: 700 clamp(2rem, 3.6vw, 2.75rem)/.96 var(--qb-display); letter-spacing: 0; }
.wms-support-contact p,
.wms-support-contact ul { color: var(--qb-band-ink); }
.wms-support-contact li svg { color: var(--qb-today); }
.wms-support-contact small { color: #9fb3ba; }
.wms-support-email { min-height: 3rem; border-radius: 4px; background: var(--qb-today); color: var(--qb-ink); box-shadow: none; transition: background-color .2s var(--qb-ease); }
.wms-support-email:hover { transform: none; background: #fff; }
.wms-support-email svg { color: var(--qb-ink); }
@media (max-width: 900px) {
  .wms-support-quick li + li { border-left: 0; border-top: 1px solid var(--qb-rule); }
  .wms-support-group { grid-template-columns: 1fr; }
}

/* ---------- User guides: the tool's mark and title on the wall ---------- */
.wms-guide-hero { overflow: visible; gap: 1.75rem; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0 0 clamp(1.5rem, 3vw, 2.25rem); border: 0; border-bottom: 2px solid var(--qb-ink); border-radius: 0; background: none; box-shadow: none; color: var(--qb-ink); }
.wms-guide-hero::after { content: none; }
.wms-guide-hero-mark { width: 5.5rem; height: 5.5rem; border: 1px solid var(--qb-rule); border-radius: var(--qb-radius); background: var(--qb-board); box-shadow: none; }
.wms-guide-hero .wms-brand-on-light { display: block !important; }
.wms-guide-hero .wms-brand-on-dark { display: none !important; }
.wms-guide-hero h1 { margin: 0 0 .75rem; color: var(--qb-ink); font: 700 clamp(2.5rem, 5vw, 4rem)/.92 var(--qb-display); letter-spacing: 0; text-wrap: balance; }
.wms-guide-hero-copy > p:not(.wms-guide-hero-eyebrow) { color: var(--qb-ink-2); font-size: 1.0625rem; }
.wms-guide-hero-meta li { padding: .3125rem .5rem; border: 1px solid var(--qb-rule); border-radius: 3px; background: var(--qb-board); box-shadow: none; color: var(--qb-ink-2); font: 600 .8125rem/1 var(--qb-display); letter-spacing: .06em; text-transform: uppercase; }
.wms-guide-hero-meta .wms-icon { color: var(--qb-today-text); }
main.wms-guide-page.is-scheduler-guide .wms-guide-products,
main.wms-guide-page.is-app-guide .wms-guide-products { margin-top: 0; margin-bottom: 1.5rem; }
@media (max-width: 700px) {
  .wms-guide-hero { padding: 0 0 1.5rem; border-radius: 0; }
  .wms-guide-hero-mark { width: 4rem; height: 4rem; border-radius: var(--qb-radius); }
}

/* The app guides (Fiction Editor): Core prints them as .qg; same head, flat boards. */
.wms-guide-page .qg { --qg-radius: 6px; --qg-border: var(--qb-rule); --qg-soft: var(--qb-sheet); --qg-mint: var(--qb-today-wash); --qg-accent: var(--qb-today-text); }
.wms-guide-page .qg-hero { overflow: visible; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0 0 clamp(1.5rem, 3vw, 2.25rem); border-bottom: 2px solid var(--qb-ink); border-radius: 0; background: none; box-shadow: none; color: var(--qb-ink); }
.wms-guide-page .qg-hero::after { content: none; }
.wms-guide-page .qg-hero-mark img { width: 5.5rem; height: 5.5rem; border-radius: var(--qb-radius); box-shadow: 0 0 0 1px var(--qb-rule); }
.wms-guide-page .qg-eyebrow { display: none; }
.wms-guide-page .qg-title { color: var(--qb-ink); font: 700 clamp(2.5rem, 5vw, 4rem)/.92 var(--qb-display); letter-spacing: 0; text-wrap: balance; }
.wms-guide-page .qg-lead { color: var(--qb-ink-2); font-size: 1.0625rem; }
.wms-guide-page .qg-lead strong { color: var(--qb-ink); }
.wms-guide-page .qg-meta li { padding: .3125rem .5rem; border: 1px solid var(--qb-rule); border-radius: 3px; background: var(--qb-board); box-shadow: none; color: var(--qb-ink-2); font: 600 .8125rem/1 var(--qb-display); letter-spacing: .06em; text-transform: uppercase; }
.wms-guide-page .qg-meta .qg-icon { color: var(--qb-today-text); }
.wms-guide-page .qg-hero-cta { min-height: 3rem; padding: 0 1.25rem; border-radius: 4px; background: var(--qb-ink); box-shadow: none; color: #fff; font: 700 1.0625rem/1 var(--qb-display); letter-spacing: .05em; text-transform: uppercase; transition: background-color .2s var(--qb-ease); }
.wms-guide-page .qg-hero-cta:hover { transform: none; background: var(--qb-band); color: #fff; }
.wms-guide-page .qg-quick { gap: 0; border: 1px solid var(--qb-rule); border-radius: var(--qb-radius); background: var(--qb-board); overflow: hidden; }
.wms-guide-page .qg-quick li + li { border-left: 1px solid var(--qb-rule); }
.wms-guide-page .qg-quick a { border: 0; border-radius: 0; transition: background-color .2s var(--qb-ease); }
.wms-guide-page .qg-quick a:hover { transform: none; box-shadow: none; background: var(--qb-sheet); }
.wms-guide-page .qg-quick-icon { border-radius: 4px; }
.wms-guide-page .qg-quick strong { font: 600 1.375rem/1.1 var(--qb-display); }
.wms-guide-page .qg-quick-num { font: 700 1rem/1 var(--qb-display); font-variant-numeric: tabular-nums; }
.wms-guide-page .qg-toolbar { background: var(--qb-wall); }
.wms-guide-page .qg-search,
.wms-guide-page .qg-tool { border-radius: 4px; box-shadow: none; }
.wms-guide-page .qg-search:focus-within { border-color: var(--qb-ink); box-shadow: 0 0 0 3px rgba(35, 97, 196, .25); }
.wms-guide-page .qg-toc a { border-radius: 4px; }
.wms-guide-page .qg-progress span { background: var(--qb-today); }
.wms-guide-page .qg-section { border-radius: var(--qb-radius); box-shadow: none; }
.wms-guide-page .qg-section-icon { border-radius: 4px; background: var(--qb-band); box-shadow: none; color: var(--qb-today); }
@media (max-width: 900px) { .wms-guide-page .qg-quick li + li { border-left: 0; border-top: 1px solid var(--qb-rule); } }
@media (max-width: 640px) { .wms-guide-page .qg-hero { padding: 0 0 1.5rem; border-radius: 0; } .wms-guide-page .qg-hero-mark img { width: 4rem; height: 4rem; } }

/* ---------- Features pages: boards with the real screen on a well ---------- */
.wms-features-page .wms-feature-row { margin-top: 1.25rem; border: 1px solid var(--qb-rule); border-radius: var(--qb-radius); box-shadow: none; }
.wms-features-page .wms-feature-row h2 { margin-top: 0; color: var(--qb-ink); font: 700 clamp(1.5rem, 2.2vw, 2rem)/.98 var(--qb-display); letter-spacing: 0; }
.wms-features-page .wms-feature-row p { color: var(--qb-ink-2); }
.wms-features-page .wms-feature-figure { border-radius: 4px; background: var(--lane-wash, var(--qb-wall)); }
.wms-features-page .wms-feature-figure img { border-radius: 6px; filter: var(--qb-shot-shadow); }
.wms-features-page .wms-feature-figure img { max-height: 30rem; object-fit: contain; }
.wms-features-page .wms-feature-figure figcaption { color: var(--qb-ink-2); }
.wms-features-page .wms-feature-figure .wms-icon-button { border-color: var(--qb-rule); background: var(--qb-board); color: var(--qb-ink); }
.wms-features-page .wms-feature-row-text { border-color: transparent; background: var(--qb-band); color: var(--qb-band-ink); }
.wms-features-page .wms-feature-row-text h2 { color: #fff; }
.wms-features-page .wms-feature-row-text p { color: var(--qb-band-ink); }
.wms-features-page .wms-feature-row-text a { color: var(--qb-today); }

/* ---------- Legal pages ---------- */
.wms-prose > h1 { margin: 0 0 .75rem; color: var(--qb-ink); font: 700 clamp(2.5rem, 5vw, 4rem)/.92 var(--qb-display); letter-spacing: 0; }
.wms-prose > .wms-legal-updated { margin: 0 0 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--qb-ink); color: var(--qb-muted); }
.wms-prose > h2 { font-family: var(--qb-display); letter-spacing: 0; }

/* The scheduler guide's notes and quick steps: studio corners, no lift. */
.wms-guide-page .wms-guide-notes .wms-guide-trial { border: 0; border-radius: 4px; background: var(--qb-today-wash); color: var(--qb-ink-2); }
.wms-guide-page .wms-guide-notes .wms-guide-trial strong { color: var(--qb-ink); font: 600 1.125rem/1.15 var(--qb-display); }
.wms-guide-page .wms-guide-quick a { border-color: var(--qb-rule); border-radius: var(--qb-radius); background: var(--qb-board); }
.wms-guide-page .wms-guide-quick a:hover { border-color: var(--qb-ink); box-shadow: none; transform: none; }
.wms-guide-page .wms-guide-quick-icon { border-radius: 4px; background: var(--qb-today-wash); color: var(--qb-today-text); }
.wms-guide-page .wms-guide-quick strong { font: 600 1.25rem/1.1 var(--qb-display); }
.wms-guide-page .wms-guide-quick-num { color: var(--qb-muted); font-family: var(--qb-display); }

/* ---------- Fixes shared with the product pages ---------- */
/* The week sample label sits on the navy band; a later rule turned it ink. */
.sched-week .sched-week-top .sched-week-sample { color: #9fb3ba; }
/* The notice card: 16-scheduler-refresh still carried dark-card legend rules. */
.showcase-notice-card .wms-notice-legend li { display: block; padding: 1rem 1.25rem; border-bottom: 0; font-size: inherit; }
.showcase-notice-card .wms-notice-legend small { display: block; margin-top: .25rem; color: var(--qb-muted); font-size: .8125rem; text-align: left; }
.showcase-notice-card.wms-notice-sample > small { margin: 0; color: var(--qb-muted); font-size: .8125rem; }
.wms-price-card .wms-price-includes { border-radius: 4px; }
.wms-offers .wms-price-card .wms-bundle-off { font-size: .75rem; }
.wms-chip small { font-size: .75rem; }
.showcase-footer-inner .showcase-footer-copy { margin-top: .75rem; opacity: .8; }
.wms-guide-page .qg-toc-group, .wms-guide-page .wms-guide-toc p { font-size: .75rem; }
.wms-notice-shot figcaption .showcase-icon-button, .wms-guide-page .qg-anchor { flex: none; }

@media (max-width: 620px) {
  /* Stage tabs: name only, so the next tab peeks in and says there is more. */
  .qb-stage-tabs [role="tab"] { gap: .5rem; min-height: 3.25rem; padding: 0 .875rem; }
  .qb-stage-tabs .qb-lane-name small { display: none; }
  /* Pipeline: all seven stages on screen, two rows, no half-drawn line. */
  .app-pipe-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem .25rem; overflow: visible; padding: 1.25rem .5rem; }
  .app-pipe-line { display: none; }
  .app-pipe-stage { flex: none; min-height: 2.75rem; padding: 0; }
  .app-pipe-name { font-size: .875rem; }
  /* The PC list: the badge and the count drop under the name instead of squeezing it. */
  .app-license-row { grid-template-columns: auto minmax(0, 1fr); gap: .375rem .875rem; }
  .app-license-row > :nth-child(3) { grid-column: 2; justify-self: start; }
  /* Tap targets reach 44px. */
  .qb-tool-links a:not(.qb-tool-open) { padding-inline: .25rem; }
  .qb-tool-links a:not(.qb-tool-open), .wms-privacy-more a, .showcase-text-link, a.wms-text-link { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .showcase-footer-links a { min-height: 2.75rem; }
  .showcase-header .showcase-brand { min-height: 2.75rem; }
  .wms-video-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .875rem; }
  .wms-guide-page .wms-guide-toc a { min-height: 2.75rem; align-items: center; }
  .wms-guide-page .qg-search input { min-height: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wms-chip, .wms-support-nav a, .wms-support-quick a, .wms-support-email { transition: none; }
}

/* Account sign-in: the card sits in the middle; the code step matches the site's buttons and fields. */
.wms-account-page { min-height: 70vh; }
.wms-account-page .wms-auth { margin-inline: auto; }
.wms-account-page .wms-auth input:focus-visible { outline: none; }
.wms-account-page .wms-auth-sent { border: 1px solid var(--qb-rule); border-radius: 4px; background: var(--qb-wall); color: var(--qb-ink-2); font-size: 1rem; }
.wms-account-page .wms-auth-sent strong { color: var(--qb-ink); }
.wms-account-page .wms-auth .wms-auth-change { color: var(--qb-ink); text-decoration-color: var(--qb-today); text-decoration-thickness: 2px; }
.wms-account-page .wms-auth .wms-auth-code input { min-height: 3.75rem; padding: 0 0 0 .5em; font-size: 1.75rem; }
.wms-account-page .wms-auth-timer { color: var(--qb-ink-2); font-size: .875rem; }
.wms-account-page .wms-auth .wms-auth-resend { min-height: 3rem; border: 1px solid var(--qb-rule-strong); border-radius: 4px; background: var(--qb-board); color: var(--qb-ink); font: 700 1.0625rem/1 var(--qb-display); letter-spacing: .05em; text-transform: uppercase; }
.wms-account-page .wms-auth .wms-auth-resend:not(:disabled):hover { border-color: var(--qb-ink); }
.wms-account-page .wms-auth-help { font-size: .875rem; }

/* A video guide uploaded to this site plays in the browser's own player. */
.wms-video-file video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
/* Its frame holds the picture and, under it, the 10-second skips and the speed menu. */
.wms-video-player { min-width: 0; border-radius: var(--qb-radius); overflow: hidden; background: #0b1216; box-shadow: var(--qb-lift); }
.wms-video-player .wms-video { border-radius: 0; box-shadow: none; }
.wms-video-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem .75rem; color: #fff; }
.wms-video-controls button, .wms-video-speed select { min-height: 2.5rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.wms-video-controls button { display: inline-flex; align-items: center; gap: .375rem; padding: 0 .875rem; }
.wms-video-controls svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wms-video-controls button:hover, .wms-video-speed select:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.wms-video-controls button:focus-visible, .wms-video-speed select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.wms-video-speed { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; color: rgba(255, 255, 255, .78); font-size: .875rem; }
.wms-video-speed select { padding: 0 .75rem; background: #16232b; }
@media (max-width: 720px) { .wms-video-controls button, .wms-video-speed select { min-height: 2.75rem; } }
/* Phones: the three controls stay on one row; "Speed" is still read out for the menu. */
@media (max-width: 480px) {
  .wms-video-controls { gap: .375rem; padding: .5rem; }
  .wms-video-controls button { padding: 0 .75rem; }
  .wms-video-speed span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .wms-video-controls button, .wms-video-speed select { transition: none; } }
