/* Word Spinner v5 shell (BUILD-PLAN v2 section 2). Values: build-v5/dashboard-design/DESIGN.md + ws-dash.css.
   Only active when <html> has .v5-on (set by v5-shell.js), so pages without the shell are untouched. */
@font-face { font-family: 'Geist'; src: url('/v5/fonts/geist-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/v5/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --v5-ink: #171717; --v5-ink-80: rgba(23,23,23,.8); --v5-muted: #6B6B6B; --v5-label: #8A8A8A;
  --v5-line: #EBEBEB; --v5-frame: #F7F7F7; --v5-hover: #EBEBEB; --v5-inset: #FAFAFA;
  --v5-blue: #00A3FF; --v5-blue-text: #0089DB; --v5-blue-tint: #E7F5FF; --v5-blue-btn: #0089DB; --v5-blue-btn-hover: #0077C2;
  --v5-fast: 160ms; --v5-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --v5-display: 'Geist', 'Inter', system-ui, sans-serif; --v5-sans: 'Inter', system-ui, sans-serif;
  --v5-side: 220px;
}

/* Old chrome off; the page body stays as it is (phase 4 restyles it). */
html.v5-on .ws-topbar, html.v5-on .ws-drawer, html.v5-on .ws-drawer-scrim, html.v5-on .ws-footer,
html.v5-on .ws-content-strip, html.v5-on #ws-ssr,
html.v5-on #q7box, html.v5-on .q7 { display: none !important; } /* SEOGrown banner off (decision I) */
html.v5-on body { background: var(--v5-frame); }
html.v5-on .ws-app { margin-left: var(--v5-side); padding-left: 0 !important; min-height: 100vh; }

#v5-shell { position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: var(--v5-side); padding: 12px 8px; display: flex; flex-direction: column;
  background: var(--v5-frame); color: var(--v5-ink); font: 400 13px/18px var(--v5-sans); letter-spacing: -0.13px; -webkit-font-smoothing: antialiased; }
#v5-shell * { box-sizing: border-box; }
#v5-shell .v5-brand { display: flex; align-items: center; height: 36px; padding: 0 6px; }
#v5-shell .v5-mark { display: block; height: 28px; width: auto; filter: brightness(0); }
#v5-shell .v5-menu-btn { display: none; }
#v5-shell .v5-side-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
#v5-shell .v5-glabel { font: 500 11px/16px var(--v5-sans); color: var(--v5-muted); padding: 14px 8px 6px; letter-spacing: 0; }
#v5-shell .v5-nav { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: 6px; color: var(--v5-ink-80); text-decoration: none;
  transition: background-color var(--v5-fast) var(--v5-ease), color var(--v5-fast) var(--v5-ease); }
#v5-shell .v5-nav svg { flex: none; }
#v5-shell .v5-nav:hover:not(.on) { background: var(--v5-hover); color: var(--v5-ink); }
#v5-shell .v5-nav.on { background: var(--v5-blue-tint); color: var(--v5-blue-text); font-weight: 500; }
#v5-shell .v5-nav.on svg { color: var(--v5-blue); }
#v5-shell .v5-lock { margin-left: auto; color: var(--v5-label); display: inline-flex; }
#v5-shell .v5-grow { flex: 1; }
#v5-shell .v5-usage { margin: 8px 0; padding: 10px 8px; border-radius: 10px; box-shadow: 0 0 0 1px var(--v5-line); }
#v5-shell .v5-usage-t { font-weight: 500; display: flex; justify-content: space-between; }
#v5-shell .v5-usage-t span { color: var(--v5-muted); font-weight: 400; }
#v5-shell .v5-bar { height: 4px; border-radius: 2px; background: var(--v5-hover); margin: 8px 0; overflow: hidden; }
#v5-shell .v5-bar i { display: block; height: 100%; background: var(--v5-blue); border-radius: 2px; transform-origin: left center; transition: transform 400ms var(--v5-ease); }
#v5-shell .v5-usage p { margin: 0; font-size: 12px; line-height: 16px; color: var(--v5-muted); }
#v5-shell .v5-usage-btn { display: flex; justify-content: center; align-items: center; height: 30px; margin-top: 10px; border-radius: 6px; background: #fff; color: var(--v5-ink);
  font: 500 13px/16px var(--v5-display); text-decoration: none; box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 1px 2px rgba(23,23,23,.04); transition: background-color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
#v5-shell .v5-usage-btn:hover { background: var(--v5-inset); }
#v5-shell .v5-usage-btn:active { transform: scale(0.98); }
#v5-shell .v5-user { position: relative; border-top: 1px solid var(--v5-line); margin-top: 4px; }
#v5-shell .v5-user-btn { width: 100%; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px; border: 0; background: transparent; color: var(--v5-ink); font: inherit; cursor: pointer; border-radius: 6px; }
#v5-shell .v5-user-btn:hover { background: var(--v5-hover); }
#v5-shell .v5-user-btn svg { margin-left: auto; color: var(--v5-label); }
#v5-shell .v5-user-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#v5-shell .v5-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--v5-blue-tint); color: var(--v5-blue-text); display: grid; place-items: center; font: 600 11px/1 var(--v5-sans); flex: none; }
#v5-shell .v5-menu { position: absolute; left: 0; right: 0; bottom: 44px; z-index: 5; background: #fff; border-radius: 10px; padding: 4px;
  box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 4px 6px -1px rgba(23,23,23,.08), 0 12px 24px -8px rgba(23,23,23,.12); animation: v5-in var(--v5-fast) var(--v5-ease) both; }
#v5-shell .v5-menu[hidden] { display: none; }
#v5-shell .v5-menu a, #v5-shell .v5-menu button { width: 100%; min-height: 32px; border: 0; background: transparent; border-radius: 6px; display: flex; align-items: center; padding: 6px 8px;
  text-align: left; color: var(--v5-ink); text-decoration: none; font: inherit; cursor: pointer; white-space: nowrap; }
#v5-shell .v5-menu a:hover, #v5-shell .v5-menu button:hover { background: var(--v5-hover); }
#v5-shell .v5-menu-hd { padding: 6px 8px; color: var(--v5-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
#v5-shell .v5-menu hr { border: 0; border-top: 1px solid var(--v5-line); margin: 4px 0; }
@keyframes v5-in { from { opacity: 0; transform: translateY(4px) scale(0.98); } }

/* Up to 1024 px: phone layout (top bar + menu), as the design decision of 29 Nov. */
@media (max-width: 1024px) {
  html.v5-on .ws-app { margin-left: 0; padding-top: 52px; }
  #v5-shell { bottom: auto; right: 0; width: auto; height: 52px; padding: 0 8px 0 12px; border-bottom: 1px solid var(--v5-line); background: #fff; }
  #v5-shell .v5-brand { height: 52px; padding: 0; }
  #v5-shell .v5-mark { height: 26px; }
  #v5-shell .v5-menu-btn { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 8px; color: var(--v5-ink); cursor: pointer; }
  #v5-shell .v5-side-body { display: none; }
  html.v5-drawer-open #v5-shell .v5-side-body { display: flex; position: fixed; top: 52px; left: 0; bottom: 0; width: 300px; padding: 8px; background: var(--v5-frame);
    box-shadow: 12px 0 32px -12px rgba(23,23,23,.3); overflow-y: auto; animation: v5-in var(--v5-fast) var(--v5-ease) both; }
  html.v5-drawer-open body::after { content: ""; position: fixed; inset: 52px 0 0 0; background: rgba(23,23,23,.32); z-index: 59; }
}

@media (prefers-reduced-motion: reduce) {
  #v5-shell *, #v5-shell { animation: none !important; transition: none !important; }
}

/* ===================== Phase 4: page bodies (tools) =====================
   Boards: Main, HumanizerResult, HumanizerLoading, HumanizerStats, RemoverResult, Detector*, Rewriter*, ToolDialogs.
   Production markup stays; only the look changes. */
html.v5-on { --ws-primary-btn: #0089DB; --ws-primary-dark: #0077C2; --ws-soft: #F7F7F7; --ring: 0 0 0 3px rgba(0,163,255,.2); }
html.v5-on .ws-app { background: var(--v5-frame); }
html.v5-on .wsc-tool { --b: #EBEBEB; --b2: #F2F2F2; --mut: #6B6B6B; --fg: #171717; --soft: #FAFAFA;
  --sh-sm: 0 1px 2px rgba(23,23,23,.05); --sh-md: 0 4px 12px -6px rgba(23,23,23,.12); font: 400 13px/18px var(--v5-sans); letter-spacing: -0.13px; color: var(--v5-ink); }

/* The page sits on one white panel next to the sidebar (board .panel). */
html.v5-on .ws-page { margin-left: 0 !important; width: auto !important; min-height: 100vh; }
html.v5-on .ws-page-surface, html.v5-on .wsc-tool .ws-page-surface, html.v5-on .ws-home .ws-page-surface, html.v5-on .ws-humanizer-page {
  margin: 8px 8px 8px 0; border-radius: 10px; background: #fff; border: 0; box-shadow: 0 0 0 1px var(--v5-line); min-height: calc(100vh - 16px); overflow: visible; }
html.v5-on .wsc-tool .wsc-shell { max-width: 1200px; margin: 0 auto; padding: 32px 24px 48px; height: auto !important; min-height: 0; overflow: visible; }

/* Title row: no icon tile, display type, language as a small select. */
html.v5-on .wsc-topbar { padding: 0; border: 0; gap: 12px; }
html.v5-on .wsc-title-ic { display: none; }
html.v5-on .wsc-title { gap: 0; }
html.v5-on .wsc-title h1 { font: 500 24px/28px var(--v5-display); letter-spacing: -0.4px !important; color: var(--v5-ink); }
html.v5-on .wsc-sub { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--v5-muted); }
html.v5-on .wsc-top-actions { margin-left: auto; }
html.v5-on .wsc-lang-btn { height: 28px; padding: 0 8px 0 10px; gap: 6px; border: 0; border-radius: 6px; background: #fff; font: 400 12px/18px var(--v5-sans); color: var(--v5-ink);
  box-shadow: 0 2px 6px rgba(12,10,9,.08), 0 0 0 1px rgba(23,23,23,.08); transition: background-color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-on .wsc-lang-btn:hover { background: var(--v5-inset); }
html.v5-on .wsc-lang-btn:active { transform: scale(0.98); }
html.v5-on .wsc-lang-top .wsc-lang-btn > svg:first-child { display: none; }
html.v5-on .wsc-bar .wsc-lang-btn > svg:first-child { width: 12px; height: 12px; color: var(--v5-blue); }
html.v5-on .wsc-lang-top .wsc-lang-btn::before { content: "Language"; color: var(--v5-muted); }
html.v5-on .wsc-lang-cv svg, html.v5-on .wsc-lcv svg { width: 12px; height: 12px; color: #737373; }
html.v5-on .wsc-lang-menu, html.v5-on .wsc-dl-menu { border: 0; border-radius: 10px; padding: 4px; gap: 0;
  box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 4px 6px -1px rgba(23,23,23,.08), 0 12px 24px -8px rgba(23,23,23,.12); animation: v5-in var(--v5-fast) var(--v5-ease) both; }
html.v5-on .wsc-lang-menu button, html.v5-on .wsc-dl-menu button { min-height: 32px; padding: 6px 8px; border-radius: 6px; font: 400 13px/18px var(--v5-sans); white-space: nowrap; transition: background-color var(--v5-fast) var(--v5-ease); }
html.v5-on .wsc-lang-menu button:hover, html.v5-on .wsc-dl-menu button:hover { background: var(--v5-hover); }
html.v5-on .wsc-lang-menu button.sel { background: var(--v5-blue-tint); color: var(--v5-blue-text); font-weight: 500; }
html.v5-on .wsc-lang-menu button.sel::after { content: none; }
html.v5-on .wsc-humanizer-option .wsc-lang-menu { min-width: 340px; }

/* Mode bar: grey segmented control, plain note. */
html.v5-on .wsc-modebar { margin-top: 16px; padding: 0; border: 0; background: transparent; gap: 14px; }
html.v5-on .wsc-seg { padding: 2px; gap: 2px; border: 0; border-radius: 8px; background: var(--v5-hover); }
html.v5-on .wsc-seg-item { height: 28px; padding: 0 12px; border-radius: 6px; font: 500 13px/16px var(--v5-sans); color: var(--v5-muted);
  transition: background-color var(--v5-fast) var(--v5-ease), color var(--v5-fast) var(--v5-ease), box-shadow var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-on .wsc-seg-item svg { width: 14px; height: 14px; }
html.v5-on .wsc-seg-item:active { transform: scale(0.98); }
html.v5-on .wsc-seg-item.active { background: #fff; color: var(--v5-ink); box-shadow: 0 1px 2px rgba(23,23,23,.08), 0 0 0 1px rgba(23,23,23,.06); }
html.v5-on .wsc-seg-item.active svg { color: var(--v5-blue); }
html.v5-on .wsc-modebar-note { font-size: 12px; font-weight: 400; color: var(--v5-muted); }

/* Two cards side by side. */
html.v5-on .wsc-tool .wsc-grid { margin-top: 20px; gap: 12px; overflow: visible; flex: none; }
html.v5-on .wsc-tool .wsc-pane { min-height: 560px; border: 0 !important; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--v5-line); overflow: visible; }
html.v5-on .wsc-tool .wsc-pane.wsc-output { box-shadow: 0 0 0 1px #BFE6FF; }
html.v5-on .wsc-pane-toolbar { height: auto; min-height: 44px; padding: 0 14px; gap: 8px; border-bottom: 1px solid var(--v5-line); border-radius: 12px 12px 0 0; }
html.v5-on .wsc-output .wsc-pane-toolbar { background: var(--v5-blue-tint); border-bottom-color: #BFE6FF; }
html.v5-on .wsc-pane-label { font: 500 13px/18px var(--v5-sans); text-transform: none; letter-spacing: -0.13px; color: var(--v5-ink); }
html.v5-on .wsc-icontools, html.v5-on .wsc-tb-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
/* Paste, Clear, Copy, Statistics: clear bordered buttons (Brian 29 Nov). */
html.v5-on .wsc-clear-btn, html.v5-on .wsc-tb-btn { height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: #fff; color: var(--v5-ink); font: 500 13px/16px var(--v5-display); letter-spacing: -0.13px;
  box-shadow: 0 0 0 1px rgba(23,23,23,.12), 0 1px 2px rgba(23,23,23,.05); transition: background-color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-on .wsc-clear-btn:hover, html.v5-on .wsc-tb-btn:hover { background: var(--v5-inset); color: var(--v5-ink); }
html.v5-on .wsc-clear-btn:active, html.v5-on .wsc-tb-btn:active { transform: scale(0.98); }
html.v5-on .wsc-output .wsc-clear-btn, html.v5-on .wsc-output .wsc-tb-btn { box-shadow: 0 0 0 1px #BFE6FF, 0 1px 2px rgba(23,23,23,.05); }
html.v5-on .wsc-tb-btn svg { width: 14px; height: 14px; }
html.v5-on .wsc-tb-btn.is-active { background: #fff; color: var(--v5-ink); }
/* "Highlight changes" reads as a label with a switch, not a button. */
html.v5-on .wsc-tb-btn[data-action$="highlight-toggle"] { box-shadow: none !important; background: transparent !important; padding: 0 4px; font: 400 12px/16px var(--v5-sans); flex-direction: row-reverse; }
html.v5-on .wsc-switch { background: #8A8A8A; }
html.v5-on .wsc-switch.on { background: var(--v5-blue); }
html.v5-on .wsc-switch.sm { width: 28px; height: 16px; }
html.v5-on .wsc-switch.sm::after { width: 12px; height: 12px; box-shadow: none; }
html.v5-on .wsc-switch.sm.on::after { transform: translateX(12px); }
html.v5-on .wsc-tag.green { background: transparent; color: var(--v5-blue-text); padding: 0; font-weight: 500; }

/* Editor and result text. */
html.v5-on .wsc-editor { padding: 16px; font: 400 14px/22px var(--v5-sans); letter-spacing: -0.14px; color: var(--v5-ink); }
html.v5-on .wsc-editor::placeholder { color: #737373; }
html.v5-on .gm-dropcard { width: 180px; padding: 16px; gap: 4px; border: 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--v5-line); font: 500 13px/18px var(--v5-sans);
  transition: box-shadow var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-on .gm-dropcard:hover { box-shadow: 0 0 0 1px #D9D9D9, 0 4px 12px -6px rgba(23,23,23,.12); transform: none; }
html.v5-on .gm-dropcard:active { transform: scale(0.98); }
html.v5-on .gm-dropcard-ic { display: none; }
html.v5-on .gm-dropcard small { font: 400 12px/16px var(--v5-sans); color: var(--v5-muted); }
html.v5-on .wsc-result { padding: 16px; }
html.v5-on .wsc-result-text { font: 400 14px/22px var(--v5-sans); letter-spacing: -0.14px; color: var(--v5-ink); }
html.v5-on .wsc-hl, html.v5-on .wsc-hl.static { background: var(--v5-blue-tint); color: var(--v5-blue-text); font-weight: 400; border-radius: 3px; padding: 0 2px; transition: background-color var(--v5-fast) var(--v5-ease), box-shadow var(--v5-fast) var(--v5-ease); }
html.v5-on .wsc-hl:hover { background: #D6EEFF; }
html.v5-on .wsc-hl.open { background: var(--v5-blue-tint); box-shadow: 0 0 0 1.5px var(--v5-blue); }
html.v5-on .wsc-hl-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--v5-blue-tint); box-shadow: 0 0 0 1px #BFE6FF; }
html.v5-on .wsc-variants { border: 0; border-radius: 10px; padding: 4px; min-width: 220px; box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 12px 24px -8px rgba(23,23,23,.18); animation: v5-in var(--v5-fast) var(--v5-ease) both; }
html.v5-on .wsc-variant { height: 32px; padding: 0 8px; border-radius: 6px; font-size: 13px; }
html.v5-on .wsc-variant:hover { background: var(--v5-hover); }

/* Bottom bars. */
html.v5-on .wsc-bar, html.v5-on .wsc-out-footbar { min-height: 52px; padding: 10px 12px; gap: 8px; border-top: 1px solid var(--v5-line); background: transparent; border-radius: 0 0 12px 12px; flex-wrap: nowrap; }
html.v5-on .wsc-bar .ws-humanizer-word-count, html.v5-on .wsc-bar .ws-detector-count, html.v5-on .wsc-stat { font: 400 12px/18px var(--v5-sans); color: var(--v5-muted); white-space: nowrap; padding: 0; }
html.v5-on .wsc-bar .over { color: #B42318; }
html.v5-on .wsc-bar .wsc-lang { margin-left: auto; }
html.v5-on .wsc-bar .wsc-lang-btn { height: 28px; }
html.v5-on .wsc-dot-sep { background: #D9D9D9; }

/* Buttons. */
html.v5-on .wsc-btn { height: 32px; padding: 0 12px; border-radius: 6px; border: 0; gap: 6px; font: 500 13px/16px var(--v5-display); letter-spacing: -0.13px;
  transition: background-color var(--v5-fast) var(--v5-ease), color var(--v5-fast) var(--v5-ease), box-shadow var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-on .wsc-btn:active { transform: scale(0.98); }
html.v5-on .wsc-btn svg { width: 14px; height: 14px; }
html.v5-on .wsc-btn.lg { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 6px; }
html.v5-on .wsc-btn.primary, html.v5-on .wsc-btn.primary.pink { background: var(--v5-blue-btn); color: #fff; font-weight: 600; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(23,23,23,.12); }
html.v5-on .wsc-btn.primary:hover, html.v5-on .wsc-btn.primary.pink:hover { background: var(--v5-blue-btn-hover); }
html.v5-on .wsc-btn.outline { background: #fff; color: var(--v5-ink); border-radius: 7px; box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04); }
html.v5-on .wsc-btn.outline:hover { background: var(--v5-inset); color: var(--v5-blue-text); }
html.v5-on .wsc-btn.ghost { background: transparent; color: var(--v5-muted); }
html.v5-on .wsc-bar .wsc-run, html.v5-on .wsc-run { margin-left: 0; width: auto; }
html.v5-on .wsc-rw-cta .wsc-btn { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 6px; }

/* Empty, loading and limit states. */
html.v5-on .wsc-out-empty, html.v5-on .wsc-out-state { gap: 6px; padding: 24px; }
html.v5-on .wsc-empty-ic { display: none; }
html.v5-on .wsc-out-empty h2, html.v5-on .wsc-out-empty h3 { font: 500 13px/18px var(--v5-sans); color: var(--v5-ink); letter-spacing: -0.13px !important; }
html.v5-on .wsc-out-empty p, html.v5-on .wsc-out-state p { font-size: 13px; line-height: 18px; color: var(--v5-muted); max-width: 320px; }
html.v5-on .wsc-big-spin { width: 28px; height: 28px; border-width: 3px; border-color: var(--v5-blue-tint); border-top-color: var(--v5-blue); }
html.v5-on .wsc-limit-card { border: 0; border-radius: 12px; padding: 20px; box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 24px 48px -12px rgba(23,23,23,.25); }
html.v5-on .wsc-limit-ic { display: none; }
html.v5-on .wsc-limit-count { color: var(--v5-blue-text); font-weight: 500; }

/* Statistics view. */
html.v5-on .wsc-statsview { padding: 16px; gap: 16px; }
html.v5-on .wsc-statsview-title { font: 500 15px/20px var(--v5-display); }
html.v5-on .wsc-stats { gap: 0; border-radius: 8px; box-shadow: 0 0 0 1px var(--v5-line); overflow: hidden; }
html.v5-on .wsc-stats > div { border: 0; border-radius: 0; box-shadow: none; padding: 14px 16px; border-left: 1px solid var(--v5-line); border-top: 1px solid var(--v5-line); }
html.v5-on .wsc-stats span { font: 400 12px/16px var(--v5-sans); text-transform: none; letter-spacing: 0; color: var(--v5-muted); }
html.v5-on .wsc-stats strong { font: 500 20px/26px var(--v5-display); letter-spacing: -0.3px; color: var(--v5-ink); }

/* AI check verdict (Remover result and Detector): soft glow fading in from the top-left; <=20 green, 21-79 yellow, >=80 red. */
html.v5-on .wsc-aicheck, html.v5-on .wsc-score2 { position: relative; overflow: hidden; border: 0; border-radius: 12px; background: #fff !important; box-shadow: 0 0 0 1px var(--v5-line); }
html.v5-on .wsc-aicheck::before, html.v5-on .wsc-score2::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(140% 120% at 0% 0%, var(--v5-glow, transparent) 0%, transparent 62%); }
/* The pages redraw on every click, so entrances only play when content is new (v5-shell.js adds .v5-enter). */
html.v5-on .v5-enter { animation: v5-up 220ms var(--v5-ease) both; }
html.v5-on .v5-enter::before { animation: v5-fade 600ms var(--v5-ease) both; }
html.v5-on .wsc-aicheck > *, html.v5-on .wsc-score2 > * { position: relative; }
html.v5-on .is-human { --v5-glow: rgba(18,183,106,.22); --v5-tone: #067647; }
html.v5-on .is-mixed { --v5-glow: rgba(247,181,0,.26); --v5-tone: #8A5A00; }
html.v5-on .is-ai { --v5-glow: rgba(240,68,56,.20); --v5-tone: #B42318; }
html.v5-on .wsc-aicheck .wsc-score2-num, html.v5-on .wsc-score2.is-human .wsc-score2-num, html.v5-on .wsc-score2.is-mixed .wsc-score2-num, html.v5-on .wsc-score2.is-ai .wsc-score2-num { color: var(--v5-tone, var(--v5-ink)); }
html.v5-on .wsc-aicheck .wsc-score2-sub { color: var(--v5-tone, var(--v5-muted)) !important; font-weight: 500; }
html.v5-on .wsc-score2-num { font: 500 40px/1 var(--v5-display); letter-spacing: -0.8px; }
html.v5-on .wsc-score2-num span { font-size: 18px; }
html.v5-on .wsc-det { padding: 16px; gap: 16px; }
html.v5-on .wsc-note { font-size: 12px; color: var(--v5-muted); }
html.v5-on .wsc-quota { display: none; } /* words live in the sidebar card (Brian 29 Nov) */

@keyframes v5-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes v5-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html.v5-on .ws-app * { animation: none !important; transition: none !important; } }

/* Remover: AI check + removal analysis as two cards (board RemoverResult). */
html.v5-on .wsc-removal-dock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px 16px; border-top: 0; background: transparent; }
html.v5-on .wsc-removal-dock > :only-child { grid-column: 1 / -1; }
html.v5-on .wsc-removal-dock .wsc-aicheck { padding: 14px; border-radius: 10px; gap: 0; width: auto; min-width: 0; max-width: none; flex: none; display: block; }
html.v5-on .wsc-aicheck-label, html.v5-on .wsc-rm-head { display: block; font: 500 11px/16px var(--v5-sans); color: var(--v5-muted); letter-spacing: .02em; text-transform: uppercase; text-align: left; white-space: nowrap; }
html.v5-on .wsc-aicheck-label svg, html.v5-on .wsc-rm-ic, html.v5-on .wsc-aicheck .wsc-score2-sub svg { display: none; }
html.v5-on .wsc-aicheck .wsc-score2-num { margin-top: 6px; font: 500 28px/32px var(--v5-display); letter-spacing: -0.4px; }
html.v5-on .wsc-aicheck .wsc-score2-num span { font: 500 15px/20px var(--v5-display); color: var(--v5-tone, var(--v5-ink)); margin-left: 2px; }
html.v5-on .wsc-aicheck .wsc-score2-sub { display: block; margin: 4px 0 12px; font-size: 13px; line-height: 18px; }
html.v5-on .wsc-aicheck-wait { font-size: 13px; color: var(--v5-muted); padding: 6px 0 0; }
html.v5-on .wsc-aicheck-redo { width: 100%; margin-top: 0; height: 32px; }
html.v5-on .wsc-aicheck-redo svg { display: none; }
html.v5-on .wsc-removal.compact { display: block; padding: 14px; border: 0; border-radius: 10px; box-shadow: 0 0 0 1px var(--v5-line); text-align: left; }
html.v5-on .wsc-rm-verdict { display: block; margin: 6px 0 10px; font-size: 13px; line-height: 18px; color: var(--v5-muted); }
html.v5-on .wsc-rm-pred, html.v5-on .wsc-rm-prob { display: inline; font: inherit; color: inherit; }
html.v5-on .wsc-rm-pred::after { content: " · "; }
html.v5-on .wsc-rm-human, html.v5-on .wsc-rm-ai { color: var(--v5-muted); font-weight: 400; }
html.v5-on .wsc-rm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; justify-content: stretch; }
html.v5-on .wsc-rm-metric { display: block; padding: 0; border: 0; background: transparent; border-radius: 0; }
html.v5-on .wsc-rm-metric span { display: block; font: 400 12px/16px var(--v5-sans); color: var(--v5-muted); }
html.v5-on .wsc-rm-metric strong { display: block; font: 600 13px/18px var(--v5-sans); color: var(--v5-ink); }

/* Detector: document wider than the analysis (board Detector, 1.55fr / 1fr). */
html.v5-on .wsc-tool .wsc-grid.wsc-det-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
html.v5-on .wsc-pane-toolbar > .wsc-tb-tools { margin-left: auto; }
html.v5-on .wsc-pane-toolbar > .wsc-icontools:empty { display: none; }
/* Document highlights: light blue like the Humanizer changes (board DetectorResult); human sentences stay plain. */
html.v5-on .wsc-doc, html.v5-on .ws-detector-document { padding: 16px; font: 400 14px/24px var(--v5-sans); letter-spacing: -0.14px; color: var(--v5-ink); }
html.v5-on .ws-detector-sentence, html.v5-on .wsc-det .ws-detector-sentence { padding: 1px 2px; margin: 0; border-radius: 3px; filter: none; text-decoration: none; transition: background-color var(--v5-fast) var(--v5-ease), box-shadow var(--v5-fast) var(--v5-ease); }
html.v5-on .ws-detector-sentence.ai { background: var(--v5-blue-tint); color: var(--v5-blue-text); }
html.v5-on .ws-detector-sentence.mixed { background: #F3FAFF; color: #3A8FC4; }
html.v5-on .ws-detector-sentence.human { background: transparent; color: var(--v5-ink); }
html.v5-on .ws-detector-sentence.active, html.v5-on .ws-detector-sentence.active.ai, html.v5-on .ws-detector-sentence.active.mixed { box-shadow: 0 0 0 1.5px var(--v5-blue); text-decoration: none; }
html.v5-on .ws-detector-sentence.active.human { background: var(--v5-inset); box-shadow: 0 0 0 1.5px #D9D9D9; }
/* Analysis column: score, sentence list, note, humanize card (board order). */
html.v5-on .wsc-det { display: flex; flex-direction: column; gap: 14px; }
html.v5-on .wsc-det > .wsc-score2 { order: 0; } html.v5-on .wsc-det > .wsc-sent-list { order: 1; }
html.v5-on .wsc-det > .wsc-note { order: 2; } html.v5-on .wsc-det > .wsc-hum-cta { order: 3; }
html.v5-on .wsc-score2 { display: block; padding: 16px; border-radius: 10px; }
html.v5-on .wsc-score2-num { font: 500 44px/48px var(--v5-display); letter-spacing: -1px; color: var(--v5-tone, var(--v5-ink)); }
html.v5-on .wsc-score2-num span { font: 500 20px/24px var(--v5-display); letter-spacing: -0.3px; margin-left: 6px; color: var(--v5-tone, var(--v5-ink)); }
html.v5-on .wsc-score2-sub { display: block; margin-top: 4px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--v5-tone, var(--v5-muted)); }
html.v5-on .wsc-score2-sub svg { display: none; }
html.v5-on .wsc-score2-rows, html.v5-on .wsc-det .wsc-score2-rows { display: block; width: 100%; min-width: 0; border: 0; padding: 0; }
html.v5-on .wsc-sig-title { margin: 16px 0 6px; font: 500 13px/18px var(--v5-sans); color: var(--v5-ink); }
html.v5-on .wsc-sigrows > div:not(.wsc-sig-title) { display: flex; justify-content: space-between; align-items: center; height: 28px; font-size: 12px; color: var(--v5-muted); }
html.v5-on .wsc-sigrows > div > span { display: inline-flex; align-items: center; gap: 6px; }
html.v5-on .wsc-sigrows > div > span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: #F2F2F2; box-shadow: 0 0 0 1px var(--v5-line); }
html.v5-on .wsc-sigrows > div:has(.dot.ai) > span::before { background: #FDE8EC; box-shadow: 0 0 0 1px #F6C7D1; }
html.v5-on .wsc-sigrows > div:has(.dot.mixed) > span::before { background: #FFF6D6; box-shadow: 0 0 0 1px #F3DF9C; }
html.v5-on .wsc-sigrows b { width: auto; font: 600 13px/18px var(--v5-sans); color: var(--v5-ink); }
html.v5-on .wsc-sigrows .dot { display: none; }
html.v5-on .wsc-sig-note { margin: 8px 0 12px; font-size: 12px; line-height: 16px; color: #737373; }
html.v5-on .wsc-sig-none { font-size: 13px; color: var(--v5-muted); }
html.v5-on .wsc-flag-switch, html.v5-on .wsc-det-grid .wsc-flag-switch { height: 40px; padding: 0 12px; gap: 8px; margin: 0; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--v5-line); font: 500 13px/18px var(--v5-sans); color: var(--v5-ink); }
html.v5-on .wsc-flag-switch:hover { background: var(--v5-inset); }
html.v5-on .wsc-flag-switch em, html.v5-on .wsc-det-grid .wsc-flag-switch em { display: inline-block; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 4px; background: #F2F2F2; font: 500 11px/20px var(--v5-sans); color: var(--v5-ink-80); }
html.v5-on .wsc-flag-switch .wsc-switch, html.v5-on .wsc-det-grid .wsc-flag-switch .wsc-switch { width: 28px; height: 16px; }
html.v5-on .wsc-flag-switch .wsc-switch::after, html.v5-on .wsc-det-grid .wsc-flag-switch .wsc-switch::after { width: 12px; height: 12px; box-shadow: none; }
html.v5-on .wsc-flag-switch .wsc-switch.on::after, html.v5-on .wsc-det-grid .wsc-flag-switch .wsc-switch.on::after { transform: translateX(12px); }
/* Sentence list: one bordered list, text left, label and signal right. */
html.v5-on .wsc-sent-list { gap: 0; border-radius: 10px; box-shadow: 0 0 0 1px var(--v5-line); overflow: hidden; background: #fff; }
html.v5-on .wsc-sent { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 16px; border-radius: 0; box-shadow: none; border-top: 1px solid var(--v5-line); }
html.v5-on .wsc-sent:first-child { border-top: 0; }

html.v5-on .wsc-sent.active, html.v5-on .wsc-sent.ai.active, html.v5-on .wsc-sent.mixed.active, html.v5-on .wsc-sent.human.active { background: var(--v5-blue-tint); box-shadow: none; color: inherit; }
html.v5-on .wsc-sent.ai, html.v5-on .wsc-sent.mixed, html.v5-on .wsc-sent.human { background: #fff; border-color: var(--v5-line); }
html.v5-on .wsc-sent-list .wsc-sent:not(.active):hover { background: var(--v5-inset); box-shadow: none; }
html.v5-on .wsc-sent-head { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin: 0; }
html.v5-on .wsc-sent p { grid-column: 1; grid-row: 1; font-size: 13px; line-height: 18px; color: var(--v5-ink); }
html.v5-on .ws-detector-label, html.v5-on .wsc-det .ws-detector-label.ai { height: 20px; padding: 0 6px; margin: 0; border-radius: 4px; background: #F2F2F2; color: var(--v5-ink-80); font: 500 11px/20px var(--v5-sans); }
html.v5-on .ws-detector-label.ai, html.v5-on .wsc-det .ws-detector-label.ai { background: var(--v5-blue-tint); color: var(--v5-blue-text); }
html.v5-on .wsc-sent-sig, html.v5-on .wsc-sent-sig.ai, html.v5-on .wsc-sent-sig.mixed, html.v5-on .wsc-sent-sig.human { font: 400 11px/14px var(--v5-sans); color: var(--v5-muted); }
html.v5-on .wsc-sent-sig::before { content: none; }
html.v5-on .wsc-det .wsc-note { margin: 0; font-size: 12px; line-height: 16px; color: #737373; }
/* "Want this to read as human?" card. */
html.v5-on .wsc-hum-cta { display: block; padding: 16px; border: 0; border-radius: 10px; background: var(--v5-blue-tint); box-shadow: 0 0 0 1px #BFE6FF; }
html.v5-on .wsc-hum-cta strong { font: 600 15px/20px var(--v5-display); color: var(--v5-ink); }
html.v5-on .wsc-hum-cta p { margin: 4px 0 12px; font-size: 13px; line-height: 18px; color: var(--v5-muted); }
html.v5-on .wsc-hum-cta .wsc-btn { width: 100%; height: 36px; }
html.v5-on .wsc-hum-cta .wsc-btn svg { display: none; }

/* Inline tool hints (Brian 29 Nov): the min-words note and the max-words flag get their own row above the bottom bar,
   so the bar never overflows. Amber = not yet, red = limit. The count on the right comes from v5-shell.js (data-v5-count). */
html.v5-on .wsc-bar:has(> .ws-limit-flag, > .wsc-status:not(:empty)) { flex-wrap: wrap; }
html.v5-on .wsc-bar > .wsc-status:empty { display: none; }
html.v5-on .wsc-bar > .wsc-status:not(:empty), html.v5-on .wsc-bar > .ws-limit-flag {
  order: -1; flex: 0 0 calc(100% + 24px); display: flex; align-items: center; gap: 8px; min-height: 36px; margin: -10px -12px 10px; padding: 8px 14px;
  border: 0; border-bottom: 1px solid var(--v5-line); border-radius: 0; background: #FFFBF2; color: #8A5A00 !important; font: 400 12px/16px var(--v5-sans); letter-spacing: 0; white-space: normal; animation: v5-fade var(--v5-fast) var(--v5-ease) both; }
html.v5-on .wsc-bar > .ws-limit-flag { background: #FEF3F2; color: #B42318 !important; }
html.v5-on .wsc-bar > .wsc-status:not(:empty)::before, html.v5-on .wsc-bar > .ws-limit-flag::before {
  content: ""; width: 14px; height: 14px; flex: none; 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='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%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' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
html.v5-on .wsc-bar > .wsc-status[data-v5-count]::after, html.v5-on .wsc-bar > .ws-limit-flag[data-v5-count]::after { content: attr(data-v5-count); margin-left: auto; font-weight: 500; white-space: nowrap; }
html.v5-on .wsc-bar > span[class*="-count"].over { color: #B42318; }

/* Rewriter bar: tone select and intensity slider (board Rewriter). */
html.v5-on .wsc-bar .wsc-voice { margin-left: auto; height: 28px; padding: 0 8px 0 10px; gap: 6px; border: 0; border-radius: 6px; background: #fff; display: inline-flex; align-items: center; position: relative;
  box-shadow: 0 2px 6px rgba(12,10,9,.08), 0 0 0 1px rgba(23,23,23,.08); font: 400 12px/18px var(--v5-sans); color: var(--v5-ink); }
html.v5-on .wsc-voice-lab { color: var(--v5-muted); font: inherit; text-transform: none; letter-spacing: 0; }
html.v5-on .wsc-voice-val { font: inherit; color: var(--v5-ink); font-weight: 400; }
html.v5-on .wsc-voice.is-locked { cursor: not-allowed; opacity: .5; }
html.v5-on .wsc-voice.is-locked:hover { background: #fff; }
html.v5-on .wsc-voice-cv svg { width: 12px; height: 12px; color: #737373; }
html.v5-on .wsc-strength { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0; border: 0; background: transparent; box-shadow: none; font: 400 12px/16px var(--v5-sans); color: var(--v5-muted); }
html.v5-on .wsc-strength-lab { display: contents; }
html.v5-on .wsc-strength-txt { color: var(--v5-muted); font: inherit; text-transform: none; letter-spacing: 0; }
html.v5-on .wsc-strength-lab b { order: 2; color: var(--v5-ink); font-weight: 500; min-width: 28px; }
html.v5-on .wsc-strength-range { order: 1; -webkit-appearance: none; appearance: none; width: 72px; height: 14px; margin: 0; background: transparent; cursor: pointer; }
html.v5-on .wsc-strength-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--v5-blue) var(--v5-pct, 38%), var(--v5-line) var(--v5-pct, 38%)); }
html.v5-on .wsc-strength-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--v5-line); }
html.v5-on .wsc-strength-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--v5-blue); }
html.v5-on .wsc-strength-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(23,23,23,.2), 0 1px 2px rgba(23,23,23,.15); }
html.v5-on .wsc-strength-range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(23,23,23,.2), 0 1px 2px rgba(23,23,23,.15); }
html.v5-on .wsc-bar-gap { display: none; }
html.v5-on .wsc-bar .wsc-btn:disabled { opacity: .5; box-shadow: none; }
.v5-tone-menu { position: fixed; z-index: 70; max-height: 300px; overflow-y: auto; background: #fff; border-radius: 10px; padding: 4px; font: 400 13px/18px var(--v5-sans); letter-spacing: -0.13px; color: var(--v5-ink);
  box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 4px 6px -1px rgba(23,23,23,.08), 0 2px 4px -2px rgba(23,23,23,.1), 0 12px 24px -8px rgba(23,23,23,.12); animation: v5-in var(--v5-fast) var(--v5-ease) both; transform-origin: bottom left; }
.v5-tone-menu .v5-tm-hd { padding: 6px 8px; color: var(--v5-muted); font-size: 12px; }
.v5-tone-menu .v5-tm-list { display: flex; flex-direction: column; }
.v5-tone-menu .v5-tm-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 10px; white-space: normal; }
.v5-tone-menu .v5-tm-name { font-weight: 500; color: inherit; }
.v5-tone-menu .v5-tm-desc { font-size: 12px; line-height: 16px; color: var(--v5-muted); }
.v5-tone-menu button.sel .v5-tm-desc { color: inherit; opacity: .75; }
.v5-tone-menu .v5-tm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v5-tone-menu button { min-height: 32px; border: 0; background: transparent; border-radius: 6px; padding: 6px 8px; text-align: left; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color var(--v5-fast) var(--v5-ease); }
.v5-tone-menu button:hover { background: var(--v5-hover); }
.v5-tone-menu button.sel { background: var(--v5-blue-tint); color: var(--v5-blue-text); font-weight: 500; }
.v5-tone-menu button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--v5-blue); }
@media (max-width: 600px) { .v5-tone-menu .v5-tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html.v5-on .wsc-tb-btn[data-action$="stats-toggle"] svg { display: none; }
html.v5-on .wsc-mode-chip { height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: #fff; color: var(--v5-ink); display: inline-flex; align-items: center; gap: 6px; font: 500 12px/16px var(--v5-display);
  box-shadow: 0 2px 6px rgba(12,10,9,.08), 0 0 0 1px rgba(23,23,23,.08); }
html.v5-on .wsc-mode-chip svg { display: none; }
html.v5-on .wsc-result-foot { display: flex; align-items: center; gap: 8px; }
html.v5-on .wsc-statsview-head { display: none; }
html.v5-on .wsc-statsview { padding: 12px 16px 16px; gap: 12px; }

/* ===================== Documents (boards Documents, DocDetails, DocEditor) ===================== */
html.v5-on .ws-dc { max-width: 1200px; padding: 32px 24px 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 8px; align-items: center; }
html.v5-on .ws-dc > * { grid-column: 1 / -1; }
html.v5-on .ws-dc > .ws-dc-head, html.v5-on .ws-dc > .ws-dc-toolbar { display: contents; }
html.v5-on .ws-dc-headl { grid-column: 1; grid-row: 1; }
html.v5-on .ws-dc-toolbar > .ws-dc-search { grid-column: 2; grid-row: 1; }
html.v5-on .ws-dc-headr { grid-column: 3; grid-row: 1; gap: 8px; }
html.v5-on .ws-dc-crumb { grid-row: auto; margin: 0 0 12px; font-size: 13px; color: var(--v5-muted); }
html.v5-on .ws-dc-crumb button { color: var(--v5-blue-text); font-weight: 500; }
html.v5-on .ws-dc-crumb-cur { color: var(--v5-ink); font-weight: 500; }
html.v5-on .ws-dc-headl h1 { font: 500 24px/28px var(--v5-display); letter-spacing: -0.4px !important; color: var(--v5-ink); }
html.v5-on .ws-dc-primary { height: 32px; padding: 0 12px; gap: 6px; border-radius: 6px; background: var(--v5-blue-btn); font: 600 13px/16px var(--v5-display); letter-spacing: -0.13px;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(23,23,23,.12); transition: background-color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-on .ws-dc-primary:hover { background: var(--v5-blue-btn-hover); transform: none; }
html.v5-on .ws-dc-primary:active, html.v5-on .ws-dc-ghost:active, html.v5-on .ws-dc-chip:active, html.v5-on button.ws-dc-page:active { transform: scale(0.98); }
html.v5-on .ws-dc-primary svg { width: 14px; height: 14px; }
html.v5-on .ws-dc-ghost, html.v5-on .ws-dc-iconbtn { height: 32px; border: 0; border-radius: 7px; background: #fff; color: var(--v5-ink); font: 500 13px/16px var(--v5-display); box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04);
  transition: background-color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-on .ws-dc-ghost { padding: 0 12px; gap: 6px; }
html.v5-on .ws-dc-iconbtn { width: 32px; }
html.v5-on .ws-dc-ghost:hover, html.v5-on .ws-dc-iconbtn:hover { background: var(--v5-inset); color: var(--v5-blue-text); }
html.v5-on .ws-dc-ghost svg, html.v5-on .ws-dc-iconbtn svg { width: 14px; height: 14px; }
html.v5-on .ws-dc-toolbar { margin: 0; }
html.v5-on .ws-dc-search { width: 260px; max-width: none; height: 32px; padding: 0 10px; gap: 8px; border: 0; border-radius: 8px; background: #fff; color: #737373; box-shadow: 0 0 0 1px rgba(23,23,23,.1); }
html.v5-on .ws-dc-search:focus-within { box-shadow: 0 0 0 1px var(--v5-blue), 0 0 0 3px rgba(0,163,255,.2); }
html.v5-on .ws-dc-search svg { width: 14px; height: 14px; }
html.v5-on .ws-dc-search input { font: 400 13px/18px var(--v5-sans); color: var(--v5-ink); }
html.v5-on .ws-dc-search input::placeholder { color: #737373; }
html.v5-on .ws-dc-section { margin: 24px 0 0; }
html.v5-on .ws-dc-section h2 { font: 500 15px/20px var(--v5-display); color: var(--v5-ink); margin: 0 0 10px; }
html.v5-on .ws-dc-filter { gap: 8px; margin: 0 0 14px; }
html.v5-on .ws-dc-chip { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: #fff; color: var(--v5-ink); font: 500 12px/16px var(--v5-display);
  box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04); transition: background-color var(--v5-fast) var(--v5-ease), color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-on .ws-dc-chip:hover:not(.on) { color: var(--v5-blue-text); }
html.v5-on .ws-dc-chip.on { background: var(--v5-blue-tint); color: var(--v5-blue-text); box-shadow: 0 0 0 1px #BFE6FF; }
/* Document cards. */
html.v5-on .ws-dc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html.v5-on .ws-dc-card { background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px var(--v5-line); animation: none; transition: box-shadow var(--v5-fast) var(--v5-ease); }
html.v5-on .ws-dc-card:hover { box-shadow: 0 0 0 1px #D9D9D9, 0 4px 12px -6px rgba(23,23,23,.12); }
html.v5-on .ws-dc-thumb { height: 120px; padding: 12px; border: 0; border-bottom: 1px solid var(--v5-line); border-radius: 10px 10px 0 0; background: var(--v5-inset) !important; transform: none !important; box-shadow: none !important; }
html.v5-on .ws-dc-thumb:after { content: none; }
html.v5-on .ws-dc-thumb-text { font: 400 11px/15px var(--v5-sans); color: #737373; letter-spacing: 0; -webkit-line-clamp: 6; }
html.v5-on .ws-dc-meta { padding: 10px 12px; gap: 2px; }
html.v5-on .ws-dc-titlerow { gap: 8px; }
html.v5-on .ws-dc-name { font: 500 13px/18px var(--v5-sans); color: var(--v5-ink); }
html.v5-on .ws-dc-kebab { width: 24px; height: 24px; border-radius: 6px; color: var(--v5-muted); }
html.v5-on .ws-dc-kebab:hover { background: var(--v5-hover); color: var(--v5-ink); }
html.v5-on .ws-dc-kebab svg { width: 16px; height: 16px; }
html.v5-on .ws-dc-sub { gap: 2px 6px; flex-wrap: wrap; white-space: nowrap; font-size: 12px; line-height: 18px; color: var(--v5-muted); }
html.v5-on .ws-dc-sub-ic { display: none; }
html.v5-on .ws-dc-tag { height: 20px; padding: 0 6px; margin-right: 0; border-radius: 4px; background: var(--v5-blue-tint); color: var(--v5-blue-text); font: 500 11px/20px var(--v5-sans); }
/* Folders. */
html.v5-on .ws-dc-folders { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html.v5-on .ws-dc-folder { gap: 10px; padding: 12px; border: 0; border-radius: 10px; box-shadow: 0 0 0 1px var(--v5-line); transform: none !important; }
html.v5-on .ws-dc-folder:hover { box-shadow: 0 0 0 1px #D9D9D9, 0 4px 12px -6px rgba(23,23,23,.12); }
html.v5-on .ws-dc-folder-ic { width: auto; height: auto; background: transparent; color: var(--v5-muted); }
html.v5-on .ws-dc-folder-ic svg { width: 18px; height: 18px; }
html.v5-on .ws-dc-foldername { font: 500 13px/18px var(--v5-sans); }
html.v5-on .ws-dc-folder-count { font-size: 12px; color: var(--v5-muted); }
html.v5-on .ws-dc-newfolder-card { border: 1px dashed #D9D9D9; border-radius: 10px; font: 500 13px/18px var(--v5-sans); color: var(--v5-muted); }
html.v5-on .ws-dc-newfolder-card:hover { border-color: var(--v5-blue); color: var(--v5-blue-text); background: transparent; }
/* Pagination. */
html.v5-on .ws-dc-pagination { gap: 4px; margin: 20px 0 0; }
html.v5-on button.ws-dc-page { min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--v5-ink-80); font: 400 13px/18px var(--v5-sans); transition: background-color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-on button.ws-dc-page:hover:not(:disabled):not(.active) { background: var(--v5-hover); }
html.v5-on button.ws-dc-page.active { background: var(--v5-blue-tint); color: var(--v5-blue-text); font-weight: 600; }
/* Menus and the details drawer. */
html.v5-on .ws-dc-menu { width: 200px; padding: 4px; border: 0; border-radius: 10px; box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 4px 6px -1px rgba(23,23,23,.08), 0 12px 24px -8px rgba(23,23,23,.12); animation: v5-in var(--v5-fast) var(--v5-ease) both; }
html.v5-on .ws-dc-menu-name { padding: 6px 8px; border: 0; border-radius: 0; background: transparent; color: var(--v5-muted); font: 400 12px/16px var(--v5-sans); text-transform: none; letter-spacing: 0; }
html.v5-on .ws-dc-mi { min-height: 32px; gap: 8px; padding: 6px 8px; border-radius: 6px; font: 400 13px/18px var(--v5-sans); color: var(--v5-ink); white-space: nowrap; transition: background-color var(--v5-fast) var(--v5-ease); }
html.v5-on .ws-dc-mi:hover { background: var(--v5-hover); }
html.v5-on .ws-dc-mi > svg { display: none; }
html.v5-on .ws-dc-mi.danger, html.v5-on .ws-dc-mi.danger:hover { color: #B42318; }
html.v5-on .ws-dc-mi.danger:hover { background: #FEF3F2; }
html.v5-on .ws-dc-msep { margin: 4px 0; background: var(--v5-line); }
html.v5-on .ws-dc-submenu { border-left: 1px solid var(--v5-line); margin: 2px 0 4px 8px; }
html.v5-on .ws-dc-scrim.panel { background: rgba(23,23,23,.32); animation: v5-fade var(--v5-fast) var(--v5-ease) both; }
html.v5-on .ws-dc-detpanel { width: 360px; padding: 16px; border-left: 0; box-shadow: -1px 0 0 var(--v5-line), -16px 0 32px -12px rgba(23,23,23,.2); animation: v5-drawer 220ms var(--v5-ease) both; }
html.v5-on .ws-dc-detpanel-head span { font: 500 15px/20px var(--v5-display); }
html.v5-on .ws-dc-detpanel-thumb { height: 120px; padding: 12px; border: 0; border-radius: 10px; background: var(--v5-inset); box-shadow: 0 0 0 1px var(--v5-line); }
html.v5-on .ws-dc-detpanel-thumb span { font: 400 11px/15px var(--v5-sans); color: #737373; -webkit-line-clamp: 6; }
html.v5-on .ws-dc-detcard { padding: 14px; border: 0; border-radius: 10px; box-shadow: 0 0 0 1px var(--v5-line); }
html.v5-on .ws-dc-detcard h4 { font: 500 13px/18px var(--v5-sans); margin: 0 0 8px; }
html.v5-on .ws-dc-detrow { padding: 6px 0; font-size: 13px; }
html.v5-on .ws-dc-detrow span { color: var(--v5-muted); }
html.v5-on .ws-dc-detrow strong { font-weight: 500; }
html.v5-on .ws-dc-person { width: 28px; height: 28px; background: var(--v5-blue-tint); color: var(--v5-blue-text); font: 600 12px/1 var(--v5-sans); }
html.v5-on .ws-dc-rename, html.v5-on .ws-dc-rename:focus, html.v5-on .ws-dc-folder-rename, html.v5-on .ws-dc-folder-rename:focus { border: 0; border-radius: 6px; box-shadow: 0 0 0 1px var(--v5-blue), 0 0 0 3px rgba(0,163,255,.2); font: 500 13px/18px var(--v5-sans); }
html.v5-on .ws-dc-empty { border: 1px dashed #D9D9D9; border-radius: 12px; padding: 40px 24px; gap: 6px; color: var(--v5-muted); }
html.v5-on .ws-dc-empty svg { display: none; }
html.v5-on .ws-dc-empty strong { font: 500 13px/18px var(--v5-sans); color: var(--v5-ink); }
html.v5-on .ws-dc-empty span { font-size: 13px; line-height: 18px; }
@keyframes v5-drawer { from { transform: translateX(16px); opacity: 0; } }
/* Editor: one 932px column; back + status row, title, then the toolbar and page in one card (board DocEditor). */
html.v5-on .ws-page-surface:has(> .ws-ed-head) { display: grid; grid-template-columns: minmax(0, 932px); grid-template-rows: auto auto auto; justify-content: center; align-content: start; padding: 32px 24px 48px; background: #fff; }
html.v5-on .ws-ed-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 12px; padding: 0; background: transparent; border: 0; }
html.v5-on .ws-ed-back { grid-column: 1; grid-row: 1; height: 32px; padding: 0 12px 0 4px; border-radius: 6px; color: var(--v5-muted); font: 500 13px/16px var(--v5-display); transition: color var(--v5-fast) var(--v5-ease); }
html.v5-on .ws-ed-back:hover { color: var(--v5-blue-text); }
html.v5-on .ws-ed-back svg { width: 14px; height: 14px; }
html.v5-on .ws-ed-head-meta { grid-column: 3; grid-row: 1; gap: 12px; }
html.v5-on .ws-ed-title { grid-column: 1 / -1; grid-row: 2; height: 48px; font: 600 24px/30px var(--v5-display); letter-spacing: -0.4px; color: var(--v5-ink); }
html.v5-on .ws-ed-saved { font: 500 12px/16px var(--v5-sans); color: var(--v5-blue-text); }
html.v5-on .ws-ed-saved.saving { color: var(--v5-muted); }
html.v5-on .ws-ed-wc { font: 400 13px/18px var(--v5-sans); color: var(--v5-muted); }
html.v5-on .ws-ed-dlbtn { height: 32px; padding: 0 12px; gap: 6px; border: 0; border-radius: 7px; background: #fff; color: var(--v5-ink); font: 500 13px/16px var(--v5-display);
  box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04); transition: background-color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-on .ws-ed-dlbtn:hover { background: var(--v5-inset); color: var(--v5-blue-text); }
html.v5-on .ws-ed-dlbtn:active { transform: scale(0.98); }
html.v5-on .ws-ed-dlbtn svg { width: 14px; height: 14px; }
html.v5-on .ws-ed-dl-menu, html.v5-on .ws-ed-blockmenu { min-width: 180px; padding: 4px; border: 0; border-radius: 10px; box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 4px 6px -1px rgba(23,23,23,.08), 0 12px 24px -8px rgba(23,23,23,.12); animation: v5-in var(--v5-fast) var(--v5-ease) both; }
html.v5-on .ws-ed-dl-menu button, html.v5-on .ws-ed-bi { min-height: 32px; padding: 6px 8px; border-radius: 6px; font: 400 13px/18px var(--v5-sans); color: var(--v5-ink); }
html.v5-on .ws-ed-dl-menu button:hover, html.v5-on .ws-ed-bi:hover { background: var(--v5-hover); }
html.v5-on .ws-ed-dl-menu svg { display: none; }
html.v5-on .ws-ed-toolbar { margin-top: 12px; padding: 6px 8px; gap: 2px; background: #fff; border: 0; border-bottom: 1px solid var(--v5-line); border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px var(--v5-line); position: relative; }
html.v5-on .ws-ed-btn { width: 30px; height: 30px; border-radius: 6px; color: var(--v5-ink-80); transition: background-color var(--v5-fast) var(--v5-ease); }
html.v5-on .ws-ed-btn:hover { background: var(--v5-hover); }
html.v5-on .ws-ed-btn svg { width: 15px; height: 15px; }
html.v5-on .ws-ed-div { height: 18px; margin: 0 4px; background: var(--v5-line); }
html.v5-on .ws-ed-blockbtn { height: 30px; padding: 0 8px; gap: 4px; border: 0; border-radius: 6px; background: transparent; font: 500 13px/16px var(--v5-sans); color: var(--v5-ink-80); }
html.v5-on .ws-ed-blockbtn:hover { background: var(--v5-hover); }
html.v5-on .ws-ed-blockbtn svg { width: 12px; height: 12px; }
html.v5-on .ws-ed-canvas { flex: none; padding: 28px; background: var(--v5-inset); border-radius: 0 0 12px 12px; box-shadow: 0 0 0 1px var(--v5-line); overflow: visible; }
html.v5-on .ws-ed-page-sheet { max-width: 720px; min-height: 520px; padding: 48px 56px; border: 0; border-radius: 8px; box-shadow: 0 0 0 1px var(--v5-line), 0 8px 24px -12px rgba(23,23,23,.12); }
html.v5-on .ws-ed-doc { min-height: 420px; font: 400 15px/24px var(--v5-sans); color: var(--v5-ink); }
html.v5-on .ws-ed-doc p { margin: 0 0 12px; }
html.v5-on .ws-ed-doc h1 { font: 600 24px/30px var(--v5-display); letter-spacing: -0.4px !important; margin: 16px 0 10px; }
html.v5-on .ws-ed-doc h2 { font: 600 20px/26px var(--v5-display); letter-spacing: -0.3px !important; margin: 14px 0 10px; }
html.v5-on .ws-ed-doc h3 { font: 600 17px/22px var(--v5-display); margin: 12px 0 8px; }
html.v5-on .ws-ed-doc blockquote { padding: 2px 0 2px 12px; border-left: 2px solid var(--v5-line); color: var(--v5-muted); font-style: normal; }
html.v5-on .ws-ed-doc a { color: var(--v5-blue-text); }

/* ===================== Account (boards AcctProfile, AcctPlan, AcctExtension, AcctInvoices, AcctPrivacy, AcctTeam, AcctDialogs) ===================== */
html.v5-on .ws-ac { max-width: 1040px; padding: 32px 24px 48px; }
html.v5-on .ws-ac-head { gap: 14px; margin-bottom: 24px; }
html.v5-on .ws-ac-avatar { width: 56px; height: 56px; background: var(--v5-blue-tint); color: var(--v5-blue-text); font: 600 22px/1 var(--v5-display); box-shadow: none; }
html.v5-on .ws-ac-id h1 { font: 600 22px/28px var(--v5-display); letter-spacing: -0.4px !important; margin: 0; }
html.v5-on .ws-ac-id p { font-size: 13px; line-height: 18px; color: var(--v5-muted); }
html.v5-on .ws-ac-body { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
html.v5-on .ws-ac-nav { gap: 2px; top: 24px; }
html.v5-on .ws-ac-navlink { height: 32px; padding: 0 10px; gap: 0; border: 0; border-radius: 6px; color: var(--v5-ink-80); font: 400 13px/18px var(--v5-sans); transition: background-color var(--v5-fast) var(--v5-ease), color var(--v5-fast) var(--v5-ease); }
html.v5-on .ws-ac-navlink svg { display: none; }
html.v5-on .ws-ac-navlink:hover { background: var(--v5-hover); color: var(--v5-ink); }
html.v5-on .ws-ac-navlink.active { background: var(--v5-blue-tint); color: var(--v5-blue-text); font-weight: 500; border: 0; }
html.v5-on .ws-ac-card { padding: 20px; min-height: 0; border: 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--v5-line); }
html.v5-on .ws-ac-label { gap: 6px; font: 500 11px/16px var(--v5-sans); letter-spacing: .02em; color: var(--v5-muted); }
html.v5-on .ws-ac-value { margin-top: 2px; font: 500 13px/18px var(--v5-sans); color: var(--v5-ink); }
html.v5-on .ws-ac-hint { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--v5-muted); }
html.v5-on .ws-ac-verified { width: auto; height: auto; background: transparent; color: var(--v5-blue-text); }
html.v5-on .ws-ac-verified svg { width: 12px; height: 12px; }
html.v5-on .ws-ac-profile { grid-template-columns: 1fr 1fr; gap: 32px; }
html.v5-on .ws-ac-field { margin-bottom: 18px; }
html.v5-on .ws-ac-divider { margin: 0 0 18px; background: var(--v5-line); }
html.v5-on .ws-ac-acol { padding-left: 0; border-left: 0; gap: 10px; }
html.v5-on .ws-ac-link { width: 100%; height: 36px; padding: 0 12px; gap: 8px; border-radius: 7px; background: #fff; color: var(--v5-ink); font: 500 13px/16px var(--v5-display);
  box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04); transition: background-color var(--v5-fast) var(--v5-ease), color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-on .ws-ac-link:hover { background: var(--v5-inset); color: var(--v5-blue-text); }
html.v5-on .ws-ac-link svg { width: 14px; height: 14px; color: var(--v5-muted); }
html.v5-on .ws-ac-acol .ws-ac-hint { margin-top: -2px; }
html.v5-on .ws-ac-edit { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border-radius: 6px; color: var(--v5-muted); }
html.v5-on .ws-ac-edit:hover { background: var(--v5-hover); color: var(--v5-ink); }
html.v5-on .ws-ac-edit svg { width: 14px; height: 14px; }
/* Plan. */
html.v5-on .ws-ac-plan-name { margin: 6px 0 2px; gap: 8px; font: 600 22px/28px var(--v5-display); letter-spacing: -0.3px; }
html.v5-on .ws-ac-badge, html.v5-on .ws-ac-statuspill, html.v5-on .ws-ac-invstatus, html.v5-on .ws-ac-opt { height: 22px; padding: 0 8px; border: 0; border-radius: 11px; display: inline-flex; align-items: center; gap: 4px;
  background: #F2F2F2; color: var(--v5-ink-80); font: 500 11px/22px var(--v5-sans); text-transform: none; letter-spacing: 0; }
html.v5-on .ws-ac-badge, html.v5-on .ws-ac-statuspill.on, html.v5-on .ws-ac-invstatus { background: var(--v5-blue-tint); color: var(--v5-blue-text); }
html.v5-on .ws-ac-plan-meta { gap: 40px; display: flex; flex-wrap: wrap; margin: 18px 0 0; padding: 0; border: 0; }
html.v5-on .ws-ac-plan-meta > div { gap: 2px; }
html.v5-on .ws-ac-plan-meta span { font: 500 11px/16px var(--v5-sans); letter-spacing: .02em; color: var(--v5-muted); }
html.v5-on .ws-ac-plan-meta strong { font: 500 13px/18px var(--v5-sans); }
html.v5-on .ws-ac-plan-actions { gap: 8px; margin-top: 14px; }
html.v5-on .ws-ac-plan-meta ~ .ws-ac-plan-actions, html.v5-on .ws-ac-plan > .ws-ac-note ~ .ws-ac-plan-actions { margin: 20px -20px -20px; padding: 20px; border-top: 1px solid var(--v5-line); }
html.v5-on .ws-ac-plan > .ws-ac-divider { margin: 20px -20px; }
html.v5-on .ws-ac-divider + .ws-ac-label:has(+ .ws-ac-hint) { color: #B42318; }
html.v5-on a.ws-ac-primary[href*="export-data"] { background: #fff; color: var(--v5-ink); font-weight: 500; border-radius: 7px; box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04); }
html.v5-on a.ws-ac-primary[href*="export-data"]:hover { background: var(--v5-inset); color: var(--v5-blue-text); }
html.v5-on a.ws-ac-primary[href*="export-data"] svg, html.v5-on .ws-ac-danger svg { display: none; }
html.v5-on .ws-ac-cancel-link { margin-left: auto; font: 400 13px/18px var(--v5-sans); color: var(--v5-muted); text-underline-offset: 2px; }
html.v5-on .ws-ac-cancel-link:hover { color: #B42318; }
/* Buttons. */
html.v5-on .ws-ac-primary, html.v5-on .ws-ac-primary.sm { height: 32px; padding: 0 12px; gap: 6px; border-radius: 6px; background: var(--v5-blue-btn); font: 600 13px/16px var(--v5-display); letter-spacing: -0.13px;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(23,23,23,.12); transition: background-color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-on .ws-ac-primary:hover { background: var(--v5-blue-btn-hover); transform: none; }
html.v5-on .ws-ac-primary svg { width: 14px; height: 14px; }
html.v5-on .ws-ac-ghost { height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: #fff; color: var(--v5-ink); font: 500 13px/16px var(--v5-display); box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04); }
html.v5-on .ws-ac-ghost:hover { background: var(--v5-inset); color: var(--v5-blue-text); }
html.v5-on .ws-ac-danger { height: 40px; padding: 0 14px; border-radius: 6px; background: #B42318; font: 600 13px/16px var(--v5-display); }
html.v5-on .ws-ac-danger:hover { background: #912018; }
html.v5-on .ws-ac-primary:active, html.v5-on .ws-ac-ghost:active, html.v5-on .ws-ac-danger:active, html.v5-on .ws-ac-link:active { transform: scale(0.98); }
/* Preferences, privacy, extension, invoices. */
html.v5-on .ws-ac-ptabs { gap: 2px; margin: 0 0 16px; padding: 2px; border: 0; border-radius: 8px; background: var(--v5-hover); display: inline-flex; }
html.v5-on .ws-ac-ptab { height: 28px; padding: 0 12px; margin: 0; border: 0; border-radius: 6px; font: 500 13px/16px var(--v5-sans); color: var(--v5-muted); }
html.v5-on .ws-ac-ptab.active { background: #fff; color: var(--v5-ink); box-shadow: 0 1px 2px rgba(23,23,23,.08), 0 0 0 1px rgba(23,23,23,.06); }
html.v5-on .ws-ac-prow { gap: 24px; padding: 16px 0; border-bottom-color: var(--v5-line); }
html.v5-on .ws-ac-pinfo h3, html.v5-on .ws-ac-pblock h3, html.v5-on .ws-ac-extstatus h4, html.v5-on .ws-ac-extdefaults h4, html.v5-on .ws-ac-fsection h4 { font: 600 16px/22px var(--v5-display); margin: 0 0 4px; }
html.v5-on .ws-ac-pinfo h4 { font: 500 13px/18px var(--v5-sans); }
html.v5-on .ws-ac-pinfo p, html.v5-on .ws-ac-pblock > p, html.v5-on .ws-ac-extstatus p, html.v5-on .ws-ac-extdefaults p, html.v5-on .ws-ac-fsection p { font-size: 13px; line-height: 18px; color: var(--v5-muted); }
html.v5-on .ws-ac-radio { font: 400 13px/18px var(--v5-sans); gap: 10px; }
html.v5-on .ws-ac-dot { width: 16px; height: 16px; border: 0; box-shadow: inset 0 0 0 1.5px #8A8A8A; }
html.v5-on .ws-ac-radio.on .ws-ac-dot, html.v5-on .ws-ac-creason.on .ws-ac-dot { box-shadow: inset 0 0 0 5px var(--v5-blue); }
html.v5-on .ws-ac-radio.on .ws-ac-dot:after, html.v5-on .ws-ac-creason.on .ws-ac-dot:after { content: none; }
html.v5-on .ws-ac-switch { width: 28px; height: 16px; background: #8A8A8A; }
html.v5-on .ws-ac-switch:after { top: 2px; left: 2px; width: 12px; height: 12px; box-shadow: none; }
html.v5-on .ws-ac-switch.on { background: var(--v5-blue); }
html.v5-on .ws-ac-switch.on:after { transform: translateX(12px); }
html.v5-on .ws-ac-input, html.v5-on .ws-ac-selwrap select, html.v5-on .ws-ac-select { height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: #fff; font: 400 13px/18px var(--v5-sans); color: var(--v5-ink); box-shadow: 0 0 0 1px rgba(23,23,23,.12); }
html.v5-on .ws-ac-selwrap select, html.v5-on .ws-ac-select { padding-right: 34px; font-weight: 400; }
html.v5-on .ws-ac-input.tall { height: auto; padding: 10px 12px; }
html.v5-on .ws-ac-input:focus, html.v5-on .ws-ac-selwrap select:focus, html.v5-on .ws-ac-select:focus { box-shadow: 0 0 0 1px var(--v5-blue), 0 0 0 3px rgba(0,163,255,.2); }
html.v5-on .ws-ac-select-cv, html.v5-on .ws-ac-selcv { color: #737373; }
html.v5-on .ws-ac-select-cv svg, html.v5-on .ws-ac-selcv svg { width: 14px; height: 14px; }
html.v5-on .ws-ac-selfield label, html.v5-on .ws-ac-ffield label, html.v5-on .ws-ac-subq label { font: 500 13px/18px var(--v5-sans); color: var(--v5-ink); }
html.v5-on .ws-ac-word { height: 24px; padding: 0 4px 0 8px; gap: 4px; border: 0; border-radius: 6px; background: var(--v5-blue-tint); color: var(--v5-blue-text); font: 500 12px/24px var(--v5-sans); }
html.v5-on .ws-ac-word button { color: var(--v5-blue-text); }
html.v5-on .ws-ac-empty { border: 1px dashed #D9D9D9; border-radius: 12px; padding: 32px 24px; }
html.v5-on .ws-ac-empty strong { font: 500 13px/18px var(--v5-sans); }
html.v5-on .ws-ac-empty span { font-size: 13px; color: var(--v5-muted); }
html.v5-on .ws-ac-note { gap: 8px; padding: 10px 12px; border: 0; border-radius: 8px; background: var(--v5-blue-tint); box-shadow: 0 0 0 1px #BFE6FF; color: var(--v5-ink); font: 400 13px/18px var(--v5-sans); }
html.v5-on .ws-ac-note svg { width: 14px; height: 14px; color: var(--v5-blue-text); }
html.v5-on .ws-ac-extstatus { gap: 16px; align-items: center; padding: 20px 0; border-color: var(--v5-line); }
html.v5-on .ws-ac-extstatus h4 { font: 500 13px/18px var(--v5-sans); margin: 0 0 2px; }
html.v5-on .ws-ac-cardfoot { margin-top: 20px; padding-top: 20px; border-top-color: var(--v5-line); }
html.v5-on .ws-ac-invrow { gap: 16px; padding: 12px 4px; border-bottom-color: var(--v5-line); }
html.v5-on .ws-ac-invic { display: none; } /* no icon tiles (Brian 28 Nov) */
html.v5-on .ws-ac-invc strong { font: 500 13px/18px var(--v5-sans); }
html.v5-on .ws-ac-invc span { font-size: 12px; color: var(--v5-muted); }
html.v5-on .ws-ac-invamt { font: 400 13px/18px var(--v5-sans); }
html.v5-on .ws-ac-fsection { padding: 20px 0; border-top-color: var(--v5-line); }
html.v5-on .ws-ac-pausebox { gap: 6px; padding: 10px 12px; border: 0; border-radius: 8px; background: var(--v5-inset); box-shadow: 0 0 0 1px var(--v5-line); font-size: 13px; color: var(--v5-muted); }
html.v5-on .ws-ac-pausebox strong { font-weight: 500; }
/* Dialogs and toast. */
html.v5-on .ws-ac-scrim { background: rgba(23,23,23,.32); animation: v5-fade var(--v5-fast) var(--v5-ease) both; }
html.v5-on #ws-cancel-layer { background: rgba(23,23,23,.32); }
html.v5-on .ws-ac-modal { max-width: 400px; padding: 20px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 24px 48px -12px rgba(23,23,23,.25); animation: v5-dialog 220ms var(--v5-ease) both; }
html.v5-on .ws-ac-modal.cancel { max-width: 480px; }
html.v5-on .ws-ac-modal h3 { font: 600 18px/22px var(--v5-display); letter-spacing: -0.2px !important; margin: 0 0 6px; }
html.v5-on .ws-ac-modal > p { margin: 0 0 16px; font-size: 13px; line-height: 19px; color: var(--v5-muted); }
html.v5-on .ws-ac-mclose { top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 6px; font-size: 18px; color: var(--v5-muted); }
html.v5-on .ws-ac-mclose:hover { background: var(--v5-hover); }
html.v5-on .ws-ac-mfields { gap: 12px; margin-bottom: 18px; }
html.v5-on .ws-ac-mfoot { gap: 8px; }
html.v5-on .ws-ac-creasons { gap: 8px; margin-bottom: 18px; }
html.v5-on .ws-ac-creason { min-height: 44px; padding: 0 12px; gap: 10px; border-radius: 8px; box-shadow: 0 0 0 1px var(--v5-line); font: 400 13px/18px var(--v5-sans); color: var(--v5-ink); }
html.v5-on .ws-ac-creason:hover { background: var(--v5-inset); }
html.v5-on .ws-ac-creason.on { background: #F5FBFF; box-shadow: 0 0 0 1.5px var(--v5-blue); }
html.v5-on .ws-ac-toast { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 18px; background: var(--v5-ink); font: 400 13px/18px var(--v5-sans); box-shadow: 0 8px 20px -8px rgba(23,23,23,.4); animation: v5-up 220ms var(--v5-ease) both; }
html.v5-on .ws-ac-toast.is-err { background: #B42318; }
html.v5-on .ws-ac-toast svg { width: 14px; height: 14px; }
@keyframes v5-dialog { from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); } }

/* ===================== Tablet and phone (boards *Mobile; up to 1024 px uses the phone layout) ===================== */
@media (max-width: 1024px) {
  html.v5-on .ws-page-surface, html.v5-on .wsc-tool .ws-page-surface, html.v5-on .ws-home .ws-page-surface, html.v5-on .ws-humanizer-page {
    margin: 0; border-radius: 0; box-shadow: none; min-height: calc(100vh - 52px); }
  html.v5-on .wsc-tool .wsc-shell, html.v5-on .ws-dc, html.v5-on .ws-ac { padding: 20px 16px 32px; }
  html.v5-on .ws-page-surface:has(> .ws-ed-head) { padding: 20px 16px 32px; }
  html.v5-on .wsc-tool .wsc-grid, html.v5-on .wsc-tool .wsc-grid.wsc-det-grid { grid-template-columns: minmax(0, 1fr); }
  html.v5-on .wsc-tool .wsc-pane, html.v5-on .wsc-tool .wsc-pane.wsc-input, html.v5-on .wsc-tool .wsc-pane.wsc-output { min-height: 0 !important; }
  html.v5-on .wsc-tool .wsc-pane.wsc-input .wsc-inputwrap { min-height: 180px !important; }
  html.v5-on .wsc-tool .wsc-pane.wsc-input .wsc-editor { min-height: 180px !important; }
  html.v5-on .wsc-out-empty, html.v5-on .wsc-out-state { flex: none; padding: 24px 16px; }
  html.v5-on .wsc-out-body { min-height: 0 !important; }
  html.v5-on .wsc-bar { flex-wrap: wrap; }
  html.v5-on .wsc-bar > span[class*="-count"] { flex: 1 0 100%; }
  html.v5-on .wsc-bar .wsc-lang, html.v5-on .wsc-bar .wsc-voice { margin-left: 0; }
  html.v5-on .wsc-bar .wsc-run, html.v5-on .wsc-run { margin-left: auto; height: 44px; }
  html.v5-on .ws-dc-grid, html.v5-on .ws-dc-folders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.v5-on .ws-ac-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html.v5-on .ws-ac-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding-bottom: 4px; position: static; scrollbar-width: none; }
  html.v5-on .ws-ac-navlink { flex: none; white-space: nowrap; }
  html.v5-on .ws-dc-detpanel { width: min(360px, 100vw); }
}
@media (max-width: 600px) {
  html.v5-on .wsc-tool .wsc-shell, html.v5-on .ws-dc, html.v5-on .ws-ac, html.v5-on .ws-page-surface:has(> .ws-ed-head) { padding: 16px 16px 32px; }
  html.v5-on .wsc-title h1 { font-size: 22px; line-height: 28px; }
  html.v5-on .wsc-topbar { align-items: flex-start; flex-wrap: wrap; row-gap: 12px; }
  html.v5-on .wsc-top-actions { margin-left: 0; width: 100%; }
  html.v5-on .wsc-modebar { gap: 8px; margin-top: 12px; }
  html.v5-on .wsc-modebar-note { display: none; }
  html.v5-on .wsc-tool .wsc-grid { margin-top: 16px; }
  html.v5-on .wsc-pane-toolbar { flex-wrap: wrap; padding: 6px 12px; }
  html.v5-on .wsc-tb-right { flex-wrap: wrap; justify-content: flex-end; }
  html.v5-on .wsc-bar .wsc-lang-btn > span:not(.wsc-lang-cv) { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
  html.v5-on .wsc-bar .wsc-lang-btn { white-space: nowrap; }
  html.v5-on .wsc-removal-dock { grid-template-columns: minmax(0, 1fr); }
  html.v5-on .wsc-out-footbar { flex-wrap: wrap; }
  html.v5-on .ws-dc { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; }
  html.v5-on .ws-dc-toolbar > .ws-dc-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  html.v5-on .ws-dc-headr { grid-column: 2; }
  html.v5-on .ws-dc-grid, html.v5-on .ws-dc-folders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html.v5-on .ws-dc-thumb { height: 96px; }
  html.v5-on .ws-dc-thumb-text { -webkit-line-clamp: 4; }
  html.v5-on .ws-dc-headl h1 { font-size: 22px; }
  html.v5-on .ws-ed-page-sheet { padding: 24px 20px; min-height: 0; }
  html.v5-on .ws-ed-canvas { padding: 12px; }
  html.v5-on .ws-ed-toolbar { flex-wrap: nowrap; overflow-x: auto; }
  html.v5-on .ws-ac-profile { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  html.v5-on .ws-ac-plan-meta { gap: 16px; }
  html.v5-on .ws-ac-prow, html.v5-on .ws-ac-extstatus { flex-direction: column; align-items: stretch; }
  html.v5-on .ws-ac-modal { width: calc(100% - 32px); }
}

/* ===================== Sign-in and onboarding (boards AuthLogin, AuthRegister, AuthCode, AuthForgot, AuthStates, Onb*) ===================== */
html.v5-auth body { background: #fff; }
html.v5-auth .ws-app { margin-left: 0; padding-top: 0; background: #fff; }
html.v5-auth .ws-page, html.v5-auth .ws-page-surface { margin: 0 !important; width: auto !important; border-radius: 0; box-shadow: none !important; background: #fff; min-height: 0; }
#v5-auth-top { position: relative; z-index: 2; height: 60px; display: flex; align-items: center; padding: 0 24px; background: #fff; }
#v5-auth-top img { display: block; height: 30px; width: auto; filter: brightness(0); }
html.v5-auth .ws-auth-surface { min-height: calc(100vh - 60px); padding: 56px 16px 64px; background: #fff; justify-content: flex-start; }
html.v5-auth .ws-auth-wrap { max-width: 400px; animation: none; }
html.v5-auth .ws-auth-title { font: 600 28px/34px var(--v5-display); letter-spacing: -0.6px !important; color: var(--v5-ink); margin: 0; }
html.v5-auth .ws-auth-card { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; animation: none; }
html.v5-auth .ws-auth-soc { height: 44px; gap: 10px; border: 0; border-radius: 10px; background: #fff; color: var(--v5-ink); font: 500 14px/18px var(--v5-sans);
  box-shadow: 0 0 0 1px rgba(23,23,23,.14), 0 1px 2px rgba(23,23,23,.05); transition: background-color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-auth .ws-auth-soc:hover { background: var(--v5-inset); box-shadow: 0 0 0 1px rgba(23,23,23,.2), 0 1px 2px rgba(23,23,23,.05); transform: none; }
html.v5-auth .ws-auth-soc:active, html.v5-auth .ws-auth-primary:active { transform: scale(0.98); }
html.v5-auth .ws-auth-or { margin: 8px 0; color: var(--v5-label); font: 400 12px/18px var(--v5-sans); }
html.v5-auth .ws-auth-or::before, html.v5-auth .ws-auth-or::after { background: var(--v5-line); }
html.v5-auth .ws-auth-input { height: 44px; padding: 0 6px 0 12px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(23,23,23,.12); transition: box-shadow var(--v5-fast) var(--v5-ease); }
html.v5-auth .ws-auth-input:focus-within { box-shadow: 0 0 0 1px var(--v5-blue), 0 0 0 3px rgba(0,163,255,.2); }
html.v5-auth .ws-auth-input input { font: 400 14px/18px var(--v5-sans); color: var(--v5-ink); }
html.v5-auth .ws-auth-input input::placeholder { color: #737373; }
html.v5-auth .ws-auth-eye { min-width: 32px; min-height: 32px; width: 32px; height: 32px; border-radius: 6px; color: var(--v5-muted); }
html.v5-auth .ws-auth-eye:hover { background: var(--v5-hover); }
html.v5-auth .ws-auth-eye svg { width: 16px; height: 16px; }
html.v5-auth .ws-auth-link { padding: 0; color: var(--v5-blue-text); font: 500 13px/18px var(--v5-sans); }
html.v5-auth .ws-auth-link.center { margin-top: 8px; color: var(--v5-muted); font-weight: 400; }
html.v5-auth .ws-auth-link.center[data-view="register"]::after { content: " Sign up"; color: var(--v5-blue-text); font-weight: 500; }
html.v5-auth .ws-auth-link.center[data-view="login"]:not(.strong)::after { content: " Log in"; color: var(--v5-blue-text); font-weight: 500; }
html.v5-auth .ws-auth-link.strong { color: var(--v5-ink); font-weight: 500; }
html.v5-auth .ws-auth-link:hover { text-decoration: none; color: var(--v5-blue-text); }
html.v5-auth .ws-auth-primary { height: 44px; padding: 0 22px; gap: 8px; border: 0; border-radius: 10px; background: var(--v5-blue-btn); color: #fff; font: 600 15px/20px var(--v5-display); letter-spacing: -0.15px;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(23,23,23,.12); transition: background-color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease), opacity var(--v5-fast) var(--v5-ease); }
html.v5-auth .ws-auth-primary:hover { background: var(--v5-blue-btn-hover); transform: none; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(23,23,23,.12); }
html.v5-auth .ws-auth-primary.disabled { background: var(--v5-blue-btn); opacity: .45; }
html.v5-auth .ws-auth-primary.pill, html.v5-auth .ws-auth-primary.big { height: 44px; padding: 0 20px; font-size: 15px; }
html.v5-auth .ws-auth-primary svg { width: 16px; height: 16px; }
html.v5-auth .ws-auth-check { gap: 10px; font: 400 13px/18px var(--v5-sans); color: #525252; margin: 0; }
html.v5-auth .ws-auth-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--v5-blue); }
html.v5-auth .ws-auth-lead { margin: 0 0 16px; font-size: 14px; line-height: 20px; color: var(--v5-muted); }
html.v5-auth .ws-auth-legal { max-width: 320px; margin: 24px auto 0; font-size: 12px; line-height: 17px; color: var(--v5-label); }
html.v5-auth .ws-auth-legal a { color: var(--v5-muted); text-decoration: underline; text-underline-offset: 2px; }
/* Register stepper: numbered circles. */
html.v5-auth .ws-auth-steps { counter-reset: v5step; gap: 8px; margin: 18px 0 0; font-size: 12px; }
html.v5-auth .ws-auth-step { counter-increment: v5step; gap: 6px; font: 400 12px/16px var(--v5-sans); color: var(--v5-label); }
html.v5-auth .ws-auth-step > svg { display: none; }
html.v5-auth .ws-auth-step::before { content: counter(v5step); width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #D4D4D4; display: grid; place-items: center; font: 600 11px/1 var(--v5-sans); color: var(--v5-label); }
html.v5-auth .ws-auth-step.on, html.v5-auth .ws-auth-step.done { color: var(--v5-ink); font-weight: 500; }
html.v5-auth .ws-auth-step.on::before, html.v5-auth .ws-auth-step.done::before { box-shadow: none; background: var(--v5-blue-btn); color: #fff; }
html.v5-auth .ws-auth-step-bar { width: 28px; background: #E3E3E3; }
/* Status pill and notices. */
html.v5-auth [data-ws-auth-bridge-status] { bottom: 24px !important; width: auto !important; max-width: calc(100% - 32px) !important; min-height: 40px; padding: 8px 40px 8px 14px !important; gap: 10px !important; border-radius: 20px !important;
  background: #fff !important; color: var(--v5-ink) !important; border: 0 !important; font: 400 13px/18px var(--v5-sans) !important; box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 8px 24px -8px rgba(23,23,23,.25) !important; }
html.v5-auth [data-ws-auth-bridge-dot] { width: 8px !important; height: 8px !important; }
html.v5-auth [data-ws-auth-already], html.v5-auth [data-ws-auth-conf] { border-radius: 12px !important; font-family: var(--v5-sans) !important; box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 24px 48px -12px rgba(23,23,23,.25) !important; }
/* Email code step: a plain white screen like the board, no card. */
[data-ws-code-step] { background: #fff !important; align-items: flex-start !important; padding: 116px 16px 40px !important; font-family: var(--v5-sans) !important; }
[data-ws-code-step] > div { max-width: 400px !important; padding: 24px 0 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
[data-ws-code-step] > div > div:first-child { display: none !important; } /* mail icon tile */
[data-ws-code-step] h2 { font: 600 28px/34px var(--v5-display) !important; letter-spacing: -0.6px !important; color: var(--v5-ink) !important; }
[data-ws-code-step] p { font-size: 14px !important; line-height: 20px !important; color: var(--v5-muted) !important; }
[data-ws-code-step] p strong { color: var(--v5-ink) !important; font-weight: 600 !important; }
[data-ws-code-step] input[data-ci] { width: 48px !important; height: 56px !important; border: 0 !important; border-radius: 10px !important; box-shadow: 0 0 0 1px rgba(23,23,23,.16); font: 600 22px/1 var(--v5-display) !important; color: var(--v5-ink) !important; transition: box-shadow var(--v5-fast) var(--v5-ease); }
[data-ws-code-step] input[data-ci]:focus { box-shadow: 0 0 0 2px var(--v5-blue); }
[data-ws-code-step] [data-ws-code-verify] { height: 44px; padding: 0 !important; border-radius: 10px !important; background: var(--v5-blue-btn) !important; font: 600 15px/20px var(--v5-display) !important; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(23,23,23,.12); }
[data-ws-code-step] [data-ws-code-verify]:hover { background: var(--v5-blue-btn-hover) !important; }
[data-ws-code-step] [data-ws-code-resend] { color: var(--v5-blue-text) !important; font-weight: 500 !important; }
[data-ws-code-step] [data-ws-code-resend]:disabled { color: var(--v5-label) !important; }
[data-ws-code-step] [data-ws-code-err] { color: #B42318 !important; font-weight: 500 !important; }
/* Onboarding steps 1-3. */
html.v5-auth .ws-auth-ob { max-width: 640px; padding-left: 0; animation: none; align-self: center; }
html.v5-auth .ws-auth-ob-top { gap: 0; margin-bottom: 28px; }
html.v5-auth .ws-auth-back { width: 36px; height: 36px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(23,23,23,.12); color: var(--v5-ink); }
html.v5-auth .ws-auth-back:hover { background: var(--v5-inset); }
html.v5-auth .ws-auth-back svg { width: 16px; height: 16px; }
html.v5-auth .ws-auth-pdots { flex: 1; justify-content: center; gap: 6px; margin-right: 36px; }
html.v5-auth .ws-auth-pdot, html.v5-auth .ws-auth-pdot.on { width: 24px; height: 4px; border-radius: 2px; background: #E3E3E3; transition: background-color 220ms var(--v5-ease); }
html.v5-auth .ws-auth-pdot.on, html.v5-auth .ws-auth-pdot.done { background: var(--v5-blue); }
html.v5-auth .ws-auth-ob-title, html.v5-auth .ws-auth-split .ws-auth-ob-title { font: 600 28px/34px var(--v5-display); letter-spacing: -0.6px !important; color: var(--v5-ink); margin: 0; }
html.v5-auth .ws-auth-ob-sub { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--v5-muted); }
html.v5-auth .ws-auth-ob-label { margin: 28px 0 10px; font: 500 13px/18px var(--v5-sans); color: var(--v5-ink); }
html.v5-auth .ws-auth-ob-sub + .ws-auth-grid { margin-top: 24px; }
html.v5-auth .ws-auth-persona { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html.v5-auth .ws-auth-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html.v5-auth .ws-auth-grid:not(:has(.ws-auth-mono)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* step 2 (board OnbUseCases) */
html.v5-auth .ws-auth-pcard, html.v5-auth .ws-auth-gcard { flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; height: auto; min-height: 52px; padding: 0 16px; border: 0; border-radius: 12px;
  background: #fff; box-shadow: 0 0 0 1px #E3E3E3; color: var(--v5-ink); font: 500 13px/18px var(--v5-sans); transform: none !important; text-align: left;
  transition: box-shadow var(--v5-fast) var(--v5-ease), background-color var(--v5-fast) var(--v5-ease); }
html.v5-auth .ws-auth-pcard:hover, html.v5-auth .ws-auth-gcard:hover { box-shadow: 0 0 0 1px #C7C7C7; }
html.v5-auth .ws-auth-pcard.on, html.v5-auth .ws-auth-gcard.on { background: #F3FAFF; box-shadow: 0 0 0 1.5px var(--v5-blue); }
html.v5-auth .ws-auth-pradio { position: static; order: 3; margin-left: auto; width: 18px; height: 18px; border: 0; box-shadow: inset 0 0 0 1.5px #C7C7C7; background: transparent; }
html.v5-auth .ws-auth-pcard.on .ws-auth-pradio { background: transparent; box-shadow: inset 0 0 0 5px var(--v5-blue); }
html.v5-auth .ws-auth-pic svg { width: 18px; height: 18px; color: var(--v5-muted); }
html.v5-auth .ws-auth-pcard.on .ws-auth-pic svg { color: var(--v5-blue); }
html.v5-auth .ws-auth-pname { font: 500 13px/18px var(--v5-sans); }
html.v5-auth .ws-auth-cbox { order: 3; margin-left: auto; width: 18px; height: 18px; border: 0; border-radius: 5px; box-shadow: inset 0 0 0 1.5px #C7C7C7; }
html.v5-auth .ws-auth-gcard.on .ws-auth-cbox { background: var(--v5-blue); box-shadow: none; }
html.v5-auth .ws-auth-cbox svg { width: 12px; height: 12px; }
html.v5-auth .ws-auth-mono { width: 22px; height: auto; background: transparent; color: var(--v5-label); font: 600 13px/1 var(--v5-display); }
html.v5-auth .ws-auth-ob-actions { justify-content: flex-end; margin-top: 28px; }
/* Extension step: text left, light mock right (board OnbExtension). */
html.v5-auth .ws-auth-split { max-width: 960px; min-height: 0; margin: 0 auto; padding-top: 24px; gap: 56px; align-items: center; align-self: center; animation: none; }
html.v5-auth .ws-auth-split-l { padding: 0; gap: 0; }
html.v5-auth .ws-auth-reco { margin: 0 0 8px; color: var(--v5-blue-text); font: 500 13px/18px var(--v5-sans); }
html.v5-auth .ws-auth-split .ws-auth-ob-sub { margin: 8px 0 0; }
html.v5-auth .ws-auth-rating { margin: 18px 0 22px; font-size: 13px; }
html.v5-auth .ws-auth-stars { color: var(--v5-blue); letter-spacing: 2px; font-size: 13px; }
html.v5-auth .ws-auth-loved { margin: 16px 0 0; font-size: 13px; color: var(--v5-muted); }
html.v5-auth .ws-auth-skip { margin-top: 28px; padding: 0; color: var(--v5-ink); font: 500 13px/18px var(--v5-sans); }
html.v5-auth .ws-auth-skip:hover { color: var(--v5-blue-text); }
html.v5-auth .ws-auth-split-r { padding: 20px; border-radius: 14px; background: #F7F7F7; }
html.v5-auth .ws-auth-mock { width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: 10px; }
html.v5-auth .ws-auth-ext-head { font: 600 13px/18px var(--v5-sans); }
html.v5-auth .ws-auth-ext-head svg { display: none; }
html.v5-auth .ws-auth-ext-row, html.v5-auth .ws-auth-ext-line { padding: 10px 12px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--v5-line); color: var(--v5-ink); font-size: 13px; }
html.v5-auth .ws-auth-ext-err { color: var(--v5-ink); font-weight: 400; }
html.v5-auth .ws-auth-ext-fix { height: 28px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 7px; background: #fff; color: var(--v5-ink); font: 500 13px/16px var(--v5-display); box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04); }
html.v5-auth .ws-auth-ext-line s { color: var(--v5-label); }
html.v5-auth .ws-auth-ext-line b { color: var(--v5-ink); }
/* Personal match (board OnbResult). */
html.v5-auth .ws-auth-result { max-width: 520px; }
html.v5-auth .ws-auth-result-badge { height: 26px; padding: 0 12px; gap: 6px; border-radius: 13px; background: var(--v5-blue-tint); color: var(--v5-blue-text); font: 500 12px/26px var(--v5-sans); }
html.v5-auth .ws-auth-result-badge svg { width: 12px; height: 12px; }
html.v5-auth .ws-auth-result .ws-auth-ob-title { margin-top: 16px; text-align: center; }
html.v5-auth .ws-auth-result .ws-auth-ob-sub { text-align: center; }
html.v5-auth .ws-auth-reco-card { align-items: flex-start; text-align: left; max-width: none; margin-top: 28px; padding: 22px; gap: 0; border: 0; border-radius: 14px; background: #F3FAFF; box-shadow: 0 0 0 1.5px var(--v5-blue); }
html.v5-auth .ws-auth-reco-ic { display: none; } /* no icon tiles (Brian 28 Nov) */
html.v5-auth .ws-auth-reco-kicker { margin: 0 0 6px; text-transform: none; letter-spacing: 0; color: var(--v5-blue-text); font: 500 12px/16px var(--v5-sans); }
html.v5-auth .ws-auth-reco-name { margin: 0; font: 600 20px/26px var(--v5-display); color: var(--v5-ink); }
html.v5-auth .ws-auth-reco-body p { margin: 6px 0 18px; color: #525252; font-size: 13px; line-height: 19px; }
html.v5-auth .ws-auth-reco-card .ws-auth-primary { width: 100%; }
html.v5-auth .ws-auth-reco-more { margin-top: 24px; gap: 10px; }
html.v5-auth .ws-auth-reco-more > span { text-transform: none; letter-spacing: 0; font: 400 13px/18px var(--v5-sans); color: var(--v5-muted); }
html.v5-auth .ws-auth-reco-chip { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border: 0; border-radius: 7px; background: #fff; color: var(--v5-ink); font: 500 13px/16px var(--v5-display);
  box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04); transition: background-color var(--v5-fast) var(--v5-ease); }
html.v5-auth .ws-auth-reco-chip:hover { background: var(--v5-inset); color: var(--v5-blue-text); }
html.v5-auth .ws-auth-result .ws-auth-ob-actions { justify-content: center; }
@media (max-width: 600px) {
  #v5-auth-top { height: 52px; padding: 0 16px; }
  #v5-auth-top img { height: 26px; }
  html.v5-auth .ws-auth-surface { padding: 28px 16px 40px; min-height: calc(100vh - 52px); }
  html.v5-auth .ws-auth-title, html.v5-auth .ws-auth-ob-title, html.v5-auth .ws-auth-split .ws-auth-ob-title { font-size: 24px; line-height: 30px; }
  html.v5-auth .ws-auth-persona, html.v5-auth .ws-auth-grid, html.v5-auth .ws-auth-grid:not(:has(.ws-auth-mono)) { grid-template-columns: minmax(0, 1fr); }
  html.v5-auth .ws-auth-ob-top { margin-bottom: 20px; }
  html.v5-auth .ws-auth-ob-actions .ws-auth-primary { width: 100%; }
  html.v5-auth .ws-auth-split { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 0; }
  html.v5-auth .ws-auth-split-r { display: block; }
  [data-ws-code-step] { padding-top: 80px !important; }
  [data-ws-code-step] input[data-ci] { width: 44px !important; height: 52px !important; }
}

/* ===================== Pricing for signed-in users (boards Pricing, PricingStates) ===================== */
#v5-auth-top .v5-auth-me { margin-left: auto; display: inline-flex; text-decoration: none; border-radius: 50%; }
#v5-auth-top .v5-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--v5-blue-tint); color: var(--v5-blue-text); display: grid; place-items: center; font: 600 11px/1 var(--v5-sans); }
.v5-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.v5-auth .ws-pr-surface { min-height: calc(100vh - 60px); background: #fff; font-family: var(--v5-sans); color: var(--v5-ink); }
html.v5-auth .ws-pr-hero { padding: 24px 24px 0; max-width: 1080px; }
html.v5-auth .ws-pr-active { max-width: 640px; margin: 0 auto 36px; padding: 10px 14px; gap: 10px; justify-content: center; border: 0; border-radius: 10px; background: #F7F7F7; box-shadow: none; }
html.v5-auth .ws-pr-active-l { flex: none; gap: 10px; font-size: 13px; color: #404040; }
html.v5-auth .ws-pr-active-l strong { font-weight: 500; color: var(--v5-ink); }
html.v5-auth .ws-pr-active-sub { color: var(--v5-muted); font-weight: 400; }
html.v5-auth .ws-pr-active-dot { width: 8px; height: 8px; background: var(--v5-blue); box-shadow: none; }
html.v5-auth .ws-pr-active-actions { margin-left: 8px; }
html.v5-auth .ws-pr-manage { height: auto; padding: 0; border: 0; background: transparent; color: var(--v5-blue-text); font: 500 13px/18px var(--v5-sans); }
html.v5-auth .ws-pr-manage:hover { background: transparent; color: var(--v5-blue-btn-hover); }
html.v5-auth .ws-pr-manage svg { width: 14px; height: 14px; }
html.v5-auth .ws-pr-legacy, html.v5-auth .ws-pr-pending { max-width: 640px !important; margin: -24px auto 28px !important; padding: 10px 12px !important; border: 0 !important; border-radius: 8px !important; background: var(--v5-blue-tint) !important; box-shadow: 0 0 0 1px #BFE6FF; color: var(--v5-ink) !important; font: 400 13px/18px var(--v5-sans) !important; }
html.v5-auth .ws-pr-hero h1 { font: 600 34px/40px var(--v5-display); letter-spacing: -0.9px !important; margin: 0; color: var(--v5-ink); }
html.v5-auth .ws-pr-hero > p { margin: 8px 0 0; font-size: 15px; line-height: 22px; color: var(--v5-muted); }
html.v5-auth .ws-pr-billing { margin-top: 24px; padding: 0; gap: 10px; }
html.v5-auth .ws-pr-switch { width: 28px; height: 16px; background: var(--v5-blue); }
html.v5-auth .ws-pr-switch:not(.on) { background: #8A8A8A; }
html.v5-auth .ws-pr-switch span { top: 2px; left: 2px; width: 12px; height: 12px; box-shadow: none; }
html.v5-auth .ws-pr-switch.on span { transform: translateX(12px); }
html.v5-auth .ws-pr-billing-l { font: 500 13px/18px var(--v5-sans); }
html.v5-auth .ws-pr-save { padding: 0; background: transparent; color: var(--v5-blue-text); font: 600 11px/16px var(--v5-sans); }
html.v5-auth .ws-pr-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1080px; margin: 28px auto 0; }
html.v5-auth .ws-pr-card, html.v5-auth .ws-pr-card.prem { border: 0; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #E3E3E3; overflow: visible; }
html.v5-auth .ws-pr-card.prem { box-shadow: 0 0 0 1.5px var(--v5-blue); }
html.v5-auth .ws-pr-badge { display: none; }
html.v5-auth .ws-pr-card-in, html.v5-auth .ws-pr-card.prem .ws-pr-card-in { padding: 22px; }
html.v5-auth .ws-pr-name, html.v5-auth .ws-pr-card.prem .ws-pr-name { justify-content: flex-start; gap: 6px; margin: 0; font: 600 18px/24px var(--v5-display); color: var(--v5-ink); }
html.v5-auth .ws-pr-card.prem .ws-pr-name::after { content: "Most popular"; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--v5-blue-btn); color: #fff; font: 600 11px/20px var(--v5-sans); }
html.v5-auth .ws-pr-name-ic { color: var(--v5-ink); }
html.v5-auth .ws-pr-name-ic svg { width: 14px; height: 14px; }
html.v5-auth .ws-pr-tag { margin: 4px 0 14px; min-height: 0; text-align: left; font-size: 12px; line-height: 17px; color: var(--v5-muted); }
html.v5-auth .ws-pr-price { text-align: left; font: 600 34px/38px var(--v5-display); letter-spacing: -0.8px; color: var(--v5-ink); }
html.v5-auth .ws-pr-pnote { margin: 2px 0 14px; text-align: left; font-size: 12px; color: var(--v5-muted); }
html.v5-auth .ws-pr-cta { height: 40px; border-radius: 10px; font: 500 13px/16px var(--v5-display); transition: background-color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-auth .ws-pr-cta:active { transform: scale(0.98); }
html.v5-auth .ws-pr-cta.primary { background: var(--v5-blue-btn); color: #fff; font-weight: 600; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(23,23,23,.12); }
html.v5-auth .ws-pr-cta.primary:hover { background: var(--v5-blue-btn-hover); transform: none; }
html.v5-auth .ws-pr-cta.ghost { border: 0; background: #F2F2F2; color: var(--v5-muted); }
html.v5-auth .ws-pr-cta.outline { border: 0; background: #fff; color: var(--v5-ink); box-shadow: 0 0 0 1px rgba(23,23,23,.14); }
html.v5-auth .ws-pr-cta.outline:hover { background: var(--v5-inset); }
html.v5-auth .ws-pr-feat-title { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--v5-line); font: 400 12px/16px var(--v5-sans); color: var(--v5-muted); }
html.v5-auth .ws-pr-feats { gap: 9px; margin-top: 10px; }
html.v5-auth .ws-pr-feats li { gap: 8px; font-size: 13px; line-height: 18px; color: #404040; }
html.v5-auth .ws-pr-feats li > svg { width: 14px; height: 14px; color: var(--v5-blue); margin-top: 2px; }
html.v5-auth .ws-pr-terms { max-width: 640px; margin: 28px auto 0; padding: 0 16px 48px; font-size: 12px; line-height: 17px; color: var(--v5-muted); }
html.v5-auth .ws-pr-empty { grid-column: 1 / -1; border: 1px dashed #D9D9D9; border-radius: 12px; font-weight: 400; color: var(--v5-muted); }
html.v5-auth .ws-modal .ws-pr-confirm, html.v5-auth .ws-pr-confirm { max-width: 400px; text-align: left; }
html.v5-auth .ws-pr-confirm-ic { display: none; }
@media (max-width: 1024px) { html.v5-auth .ws-pr-cards { grid-template-columns: minmax(0, 1fr); max-width: 440px; } }
@media (max-width: 600px) {
  html.v5-auth .ws-pr-hero { padding: 16px 16px 0; }
  html.v5-auth .ws-pr-hero h1 { font-size: 26px; line-height: 32px; letter-spacing: -0.6px !important; }
  html.v5-auth .ws-pr-active { flex-direction: row; flex-wrap: wrap; }
  html.v5-auth .ws-pr-cards { padding: 0 16px; }
}

/* ===================== Plan states (boards AcctNoPlan, AcctPlanTrial, TrialStates; section 8.2) ===================== */
html.v5-on .ws-ac-badge.v5-warn { background: #FFF4E0; color: #8A5A00; }
html.v5-noplan .ws-ac-navlink[data-tab="extension"], html.v5-noplan .ws-ac-navlink[data-tab="team"] { display: none; } /* decision G */
.v5-dialog-layer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; font: 400 13px/18px var(--v5-sans); letter-spacing: -0.13px; color: var(--v5-ink); }
.v5-scrim { position: absolute; inset: 0; background: rgba(23,23,23,.32); animation: v5-fade var(--v5-fast) var(--v5-ease) both; }
.v5-dialog { position: relative; box-sizing: border-box; width: 400px; max-width: calc(100vw - 32px); padding: 20px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 24px 48px -12px rgba(23,23,23,.25); animation: v5-up 220ms var(--v5-ease) both; }
.v5-dialog h3 { margin: 0 0 6px; font: 600 18px/22px var(--v5-display); letter-spacing: -0.2px; }
.v5-dialog p { margin: 0; color: var(--v5-muted); line-height: 19px; }
.v5-dialog-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.v5-btn { height: 32px; padding: 0 12px; border: 0; border-radius: 6px; font: 500 13px/16px var(--v5-display); cursor: pointer; transition: background-color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
.v5-btn:active { transform: scale(0.98); }
.v5-btn.primary { background: var(--v5-blue-btn); color: #fff; font-weight: 600; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(23,23,23,.12); }
.v5-btn.primary:hover { background: var(--v5-blue-btn-hover); }
.v5-btn.primary:disabled { opacity: .7; cursor: default; }
.v5-btn.sec { background: #fff; color: var(--v5-ink); border-radius: 7px; box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04); }
.v5-btn.sec:hover { background: var(--v5-inset); }

/* Payment failed overlay on the tools (board PaymentFailed): the jacket's dialog. */
html.v5-on #ws-payfail { background: rgba(23,23,23,.32) !important; padding: 16px !important; font-family: var(--v5-sans) !important; }
html.v5-on #ws-payfail > div { display: grid; grid-template-columns: 1fr auto auto; gap: 0 8px; align-items: center; max-width: 440px !important; padding: 20px !important; border-radius: 12px !important; text-align: left !important;
  box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 24px 48px -12px rgba(23,23,23,.25) !important; font-family: var(--v5-sans) !important; animation: v5-up 220ms var(--v5-ease) both; }
html.v5-on #ws-payfail > div > div:first-child { display: none !important; }
html.v5-on #ws-payfail h2 { grid-column: 1 / -1; margin: 0 0 6px !important; font: 600 18px/22px var(--v5-display) !important; letter-spacing: -0.2px; color: var(--v5-ink) !important; }
html.v5-on #ws-payfail p { grid-column: 1 / -1; margin: 0 0 18px !important; font-size: 13px !important; line-height: 19px !important; color: var(--v5-muted) !important; }
html.v5-on #ws-payfail a { grid-row: 3; display: inline-flex !important; align-items: center; height: 32px; margin: 0 !important; padding: 0 12px !important; border-radius: 6px !important; font: 500 13px/16px var(--v5-display) !important; }
html.v5-on #ws-payfail a[href$="/account"] { grid-column: 2; background: #fff !important; color: var(--v5-ink) !important; border-radius: 7px !important; box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04); }
html.v5-on #ws-payfail a:not([href$="/account"]) { grid-column: 3; background: var(--v5-blue-btn) !important; color: #fff !important; font-weight: 600 !important; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(23,23,23,.12); }

/* Paused takeover (board Paused). */
html.v5-on #ws-paused-takeover { display: flex; align-items: center; justify-content: center; font-family: var(--v5-sans) !important; color: var(--v5-ink) !important; }
html.v5-on #ws-paused-takeover::before { content: ""; position: absolute; top: 16px; left: 20px; width: 86px; height: 30px; background: url(/v5/logo-full.png) left center / contain no-repeat; filter: brightness(0); }
html.v5-on #ws-pt-avatar { width: 32px !important; height: 32px !important; border: 0 !important; background: var(--v5-blue-tint) !important; color: var(--v5-blue-text) !important; font: 600 12px/1 var(--v5-sans) !important; }
html.v5-on #ws-pt-menu { top: 40px !important; min-width: 160px !important; padding: 4px !important; border: 0 !important; border-radius: 10px !important; box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 12px 24px -8px rgba(23,23,23,.18) !important; }
html.v5-on #ws-pt-menu button { min-height: 32px; padding: 6px 8px !important; border-radius: 6px !important; font: 400 13px/18px var(--v5-sans) !important; }
html.v5-on #ws-pt-menu button:hover { background: var(--v5-hover) !important; }
html.v5-on #ws-paused-takeover > div:last-child { width: 520px; max-width: calc(100% - 32px) !important; margin: 0 16px !important; padding: 32px !important; border: 0 !important; border-radius: 12px !important; box-shadow: 0 0 0 1px var(--v5-line) !important; }
html.v5-on #ws-paused-takeover h1 { margin: 0 0 10px !important; font: 500 24px/28px var(--v5-display) !important; letter-spacing: -0.4px; }
html.v5-on #ws-paused-takeover p { font-size: 13px !important; line-height: 19px !important; margin: 0 0 8px !important; }
html.v5-on #ws-paused-takeover p + p { color: var(--v5-muted); }
html.v5-on #ws-paused-takeover form button[type="submit"] { height: 40px; padding: 0 !important; margin-top: 10px; border-radius: 6px !important; background: var(--v5-blue-btn) !important; font: 600 13px/16px var(--v5-display) !important; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(23,23,23,.12); }
html.v5-on #ws-paused-takeover form + div { margin-top: 16px !important; padding: 10px 12px !important; border: 0 !important; border-radius: 8px !important; background: var(--v5-blue-tint); box-shadow: 0 0 0 1px #BFE6FF; font-size: 13px !important; line-height: 18px !important; }
html.v5-on #ws-paused-takeover form + div p { margin: 0 !important; color: var(--v5-ink) !important; }
html.v5-on #ws-pt-logout2, html.v5-on #ws-pt-chat { height: 36px; padding: 0 !important; border-radius: 7px !important; font: 500 13px/16px var(--v5-display) !important; }
html.v5-on #ws-pt-logout2 { background: #fff !important; box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04); }
html.v5-on #ws-pt-chat { background: var(--v5-ink) !important; }

/* Keyboard focus (phase 8 accessibility): the jacket's box-shadow borders replaced the production focus ring,
   so every interactive element gets a visible outline on keyboard focus. */
html.v5-on :is(button, a[href], [role="button"], [role="switch"], [role="tab"], [role="option"], summary, select, input[type="checkbox"], input[type="radio"], input[type="range"]):focus-visible,
#v5-shell :is(button, a[href]):focus-visible, .v5-tone-menu button:focus-visible, .v5-dialog-layer button:focus-visible {
  outline: 2px solid var(--v5-blue) !important; outline-offset: 2px !important; }
html.v5-on :is(input[type="text"], input[type="email"], input[type="password"], input:not([type]), textarea):focus-visible { outline: none; }
html.v5-on .wsc-editor:focus-visible, html.v5-on .ws-ed-doc:focus-visible, html.v5-on .wsc-result-text:focus-visible, html.v5-on .wsc-doc:focus-visible { outline: none !important; }

/* Tool dialogs (board ToolDialogs): the page's modals in the jacket's dialog style - left aligned, 400px,
   buttons in a row on the right. */
html.v5-on .ws-login-modal { background: rgba(23,23,23,.32) !important; padding: 16px !important; animation: v5-fade var(--v5-fast) var(--v5-ease) both; }
html.v5-on .ws-login-modal .ws-login-card, html.v5-on .ws-login-card { max-width: 400px !important; padding: 20px !important; border: 0 !important; border-radius: 12px !important; text-align: left !important;
  box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 24px 48px -12px rgba(23,23,23,.25) !important; font-family: var(--v5-sans) !important; animation: v5-up 220ms var(--v5-ease) both; }
html.v5-on .ws-login-modal .ws-login-card h3, html.v5-on .ws-login-card h3 { margin: 0 0 6px !important; padding-right: 28px; font: 600 18px/22px var(--v5-display) !important; letter-spacing: -0.2px !important; color: var(--v5-ink) !important; }
html.v5-on .ws-login-modal .ws-login-card p, html.v5-on .ws-login-card p { margin: 0 0 18px !important; font-size: 13px !important; line-height: 19px !important; color: var(--v5-muted) !important; }
html.v5-on .ws-login-modal .ws-modal-list { margin: 0 0 18px !important; max-width: none; }
html.v5-on .ws-login-modal .ws-modal-list li { font-size: 13px; color: var(--v5-ink); }
html.v5-on .ws-login-modal .ws-modal-list li::before { color: var(--v5-blue); font-weight: 600; }
html.v5-on .ws-login-modal .ws-login-card .ws-auth-choice { display: flex !important; flex-direction: row-reverse !important; justify-content: flex-start; flex-wrap: wrap; gap: 8px !important; }
html.v5-on .ws-login-modal .ws-login-card .ws-primary, html.v5-on .ws-login-modal .ws-login-card .ws-ghost { width: auto !important; flex: 0 0 auto !important; min-height: 32px !important; height: 32px !important; padding: 0 12px !important; border-radius: 6px !important; font: 500 13px/16px var(--v5-display) !important; }
html.v5-on .ws-login-modal .ws-login-card .ws-primary { background: var(--v5-blue-btn) !important; color: #fff !important; font-weight: 600 !important; border: 0 !important; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(23,23,23,.12) !important; }
html.v5-on .ws-login-modal .ws-login-card .ws-primary:hover { background: var(--v5-blue-btn-hover) !important; }
html.v5-on .ws-login-modal .ws-login-card .ws-ghost { background: #fff !important; color: var(--v5-ink) !important; border: 0 !important; border-radius: 7px !important; box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04) !important; }
html.v5-on .ws-login-modal .ws-login-card > .ws-primary { display: inline-flex !important; width: auto !important; float: right; margin: 0 0 0 8px !important; }
html.v5-on .ws-login-modal .ws-login-card .ws-modal-secondary, html.v5-on .ws-login-modal .ws-modal-close:not([aria-label]) { display: inline-flex !important; align-items: center; height: 32px; margin: 0 !important; padding: 0 12px !important; float: right; border-radius: 7px !important;
  background: #fff !important; color: var(--v5-ink) !important; font: 500 13px/16px var(--v5-display) !important; box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04) !important; }
html.v5-on .ws-login-modal .ws-login-card::after { content: ""; display: block; clear: both; }
html.v5-on .ws-login-modal .ws-modal-x, html.v5-on .ws-login-modal .ws-modal-close[aria-label] { top: 12px !important; right: 12px !important; width: 28px !important; height: 28px !important; border-radius: 6px !important; font-size: 18px !important; color: var(--v5-muted) !important; }
html.v5-on .ws-login-modal .ws-modal-x:hover, html.v5-on .ws-login-modal .ws-modal-close[aria-label]:hover { background: var(--v5-hover) !important; }

/* ===== Sign-in v2 (boards AuthLoginV2 / AuthRegisterV2: Distribb layout in Word Spinner identity) ===== */
html.v5-split { --v5-sx: calc((100vw - min(100vw, 1304px)) / 2 + 32px); --v5-gw: calc(min(100vw, 1304px) - 64px); }
html.v5-split body { position: relative; min-height: 100vh; background: radial-gradient(50% 60% at 6% 0%, rgba(0,163,255,.13), rgba(0,163,255,0) 70%) 0 0 / 100% 720px no-repeat, radial-gradient(40% 50% at 46% 0%, rgba(127,208,255,.16), rgba(127,208,255,0) 70%) 0 0 / 100% 720px no-repeat, #fff; }
html.v5-split #v5-auth-top { height: 76px; max-width: 1304px; margin: 0 auto; padding: 0 32px; background: transparent; }
#v5-auth-top .v5-auth-ask { margin: 0 0 0 auto; font: 400 15px/22px var(--v5-sans); color: #8A8A8A; }
#v5-auth-top .v5-auth-ask a { color: var(--v5-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #C7C7C7; transition: text-decoration-color 200ms; }
#v5-auth-top .v5-auth-ask a:hover { text-decoration-color: var(--v5-ink); }
html.v5-split .ws-app { margin-left: var(--v5-sx) !important; width: calc((var(--v5-gw) - 72px) * 5 / 12); min-height: 0; background: transparent; }
html.v5-split .ws-page, html.v5-split .ws-page-surface, html.v5-split .ws-auth-surface { background: transparent !important; }
html.v5-split .ws-auth-surface { min-height: calc(100vh - 76px); padding: 32px 0 72px; justify-content: center; }
html.v5-split .ws-auth-wrap { width: 100%; max-width: 360px; margin: 0 auto; text-align: left; }
html.v5-split .ws-auth-wrap > .ws-auth-title, html.v5-split .ws-auth-wrap > .v5-lead, html.v5-split .ws-auth-wrap > .ws-auth-card, html.v5-split .ws-auth-card > .ws-auth-link.center, html.v5-split .ws-auth-wrap > .v5-trust { align-self: stretch; width: 100%; }
html.v5-split .ws-auth-title { font: 600 28px/32px var(--v5-display); letter-spacing: -0.7px !important; text-align: left; }
html.v5-split .ws-auth-title span { display: block; }
html.v5-split .ws-auth-title .m { color: #8A8A8A; }
html.v5-split .v5-lead { margin: 12px 0 0; font: 400 15px/22px var(--v5-sans); color: #525252; text-align: left; }
html.v5-split-register .v5-lead { font-size: 17px; line-height: 24px; }
html.v5-split .ws-auth-steps, html.v5-split-register .ws-auth-link.center { display: none; }
html.v5-split .ws-auth-card { gap: 0; margin-top: 26px; }
html.v5-split .v5-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 12px 0 6px; font: 500 13px/20px var(--v5-sans); color: var(--v5-ink); }
html.v5-split .v5-lbl label { margin: 0; }
html.v5-split .v5-lbl.first, html.v5-split .ws-auth-or + .v5-lbl { margin-top: 0; }
html.v5-split .v5-lbl .ws-auth-link.right { margin: 0; padding: 0; font: 400 12px/20px var(--v5-sans); color: #525252; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #C7C7C7; }
html.v5-split .ws-auth-input { height: 44px; padding: 0 6px 0 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px #E3E3E3; transition: box-shadow 350ms; }
html.v5-split .ws-auth-input:focus-within { box-shadow: inset 0 0 0 1.5px var(--v5-blue), 0 0 0 4px rgba(0,163,255,.14); }
html.v5-split .ws-auth-input input { font: 400 15px/20px var(--v5-sans); }
html.v5-split .ws-auth-input input::placeholder { color: #A3A3A3; }
html.v5-split .ws-auth-primary { width: 100%; height: 46px; margin-top: 18px; font: 600 15px/16px var(--v5-display); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 18px -8px rgba(0,137,219,.6); }
html.v5-split .ws-auth-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 18px -8px rgba(0,137,219,.6); }
html.v5-split .ws-auth-or { margin: 18px 0 14px; display: block; text-align: center; font: 400 12px/18px var(--v5-sans); color: #8A8A8A; }
html.v5-split .ws-auth-or::before, html.v5-split .ws-auth-or::after { display: none; }
html.v5-split .ws-auth-soc { height: 42px; font: 500 14px/18px var(--v5-sans); }
html.v5-split .ws-auth-check { margin-top: 14px; }
html.v5-split-login .ws-auth-card > .ws-auth-primary { order: 4; }
html.v5-split-login .ws-auth-card > .ws-auth-or { order: 5; }
html.v5-split-login .ws-auth-card > .ws-auth-social { order: 6; }
html.v5-split-login .ws-auth-card > .ws-auth-link.center { order: 7; }
html.v5-split-login .ws-auth-link.center { margin-top: 22px; font: 400 14px/22px var(--v5-sans); color: #525252; text-align: center; }
html.v5-split-login .ws-auth-link.center::after { content: none !important; }
html.v5-split-login .ws-auth-link.center u { color: var(--v5-ink); font-weight: 500; text-underline-offset: 3px; text-decoration-color: #C7C7C7; }
html.v5-split .ws-auth-legal { margin: 14px auto 0; }
html.v5-split .v5-ticks { display: flex; justify-content: center; gap: 18px; margin-top: 12px; font: 400 12px/20px var(--v5-sans); color: #525252; }
html.v5-split .v5-ticks span { display: inline-flex; align-items: center; gap: 6px; }
html.v5-split .v5-trust { margin-top: 24px; padding-top: 20px; border-top: 1px solid #EBEBEB; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
html.v5-split .v5-trust p { margin: 0; font: 400 13px/20px var(--v5-sans); color: #525252; white-space: nowrap; }
html.v5-split .v5-trust b { color: var(--v5-ink); font-weight: 600; }
html.v5-split .v5-trust .logos { display: flex; gap: 12px; align-items: center; justify-content: center; }
html.v5-split .v5-trust img { height: 24px; width: auto; display: block; }
#v5-auth-art { display: none; }
html.v5-split #v5-auth-art { display: block; position: absolute; top: 84px; bottom: 32px; right: var(--v5-sx); width: calc((var(--v5-gw) - 72px) * 7 / 12); }
#v5-auth-art .frame { height: 100%; min-height: 0; }
#v5-auth-art .frame{position:relative;border-radius:32px;overflow:hidden;isolation:isolate;background:#0089DB;display:flex;align-items:center;justify-content:center;padding:72px 44px 56px;min-height:780px}
#v5-auth-art .frame::before{content:"";position:absolute;inset:-3%;z-index:-1;will-change:transform;animation:v5drift 36s ease-in-out infinite alternate;
  background:
    repeating-radial-gradient(ellipse 150% 55% at 50% 118%,rgba(255,255,255,.10) 0 1.5px,rgba(255,255,255,0) 1.5px 17px),
    repeating-radial-gradient(ellipse 120% 70% at 10% -20%,rgba(255,255,255,.07) 0 1.5px,rgba(255,255,255,0) 1.5px 23px),
    radial-gradient(48% 38% at 16% 10%,rgba(255,255,255,.55),rgba(255,255,255,0) 64%),
    radial-gradient(55% 45% at 86% 22%,rgba(140,214,255,.9),rgba(140,214,255,0) 66%),
    radial-gradient(70% 55% at 22% 96%,rgba(0,62,112,.95),rgba(0,62,112,0) 72%),
    radial-gradient(55% 50% at 96% 100%,rgba(0,118,196,.95),rgba(0,118,196,0) 70%),
    radial-gradient(60% 40% at 55% 55%,rgba(0,163,255,.55),rgba(0,163,255,0) 70%),
    linear-gradient(165deg,#9FDBFF 0%,#2FB0FF 34%,#0089DB 62%,#005189 100%)}
#v5-auth-art .frame::after{content:"";position:absolute;inset:0;z-index:3;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
@keyframes v5drift{0%{transform:scale(1.02) translate3d(-1%,0,0)}100%{transform:scale(1.08) translate3d(1.2%,-1.2%,0)}}
#v5-auth-art .exl{position:absolute;top:18px;right:24px;font-size:11.5px;line-height:18px;color:rgba(255,255,255,.86)}
#v5-auth-art /* Product window */
.win{position:relative;z-index:1;width:100%;max-width:593px;border-radius:16px;background:#fff;overflow:hidden;
  box-shadow:0 0 0 .5px rgba(0,0,0,.1),0 2px 6px rgba(0,40,80,.08),0 40px 90px -30px rgba(0,46,92,.6)}
#v5-auth-art .bar{display:flex;align-items:center;gap:10px;height:38px;padding:0 14px;border-bottom:1px solid #F0F0F0}
#v5-auth-art .lights{display:flex;gap:6px}
#v5-auth-art .lights i{width:10px;height:10px;border-radius:50%;background:#E3E3E3}
#v5-auth-art .lights i:nth-child(1){background:#FF5F57}
#v5-auth-art .lights i:nth-child(2){background:#FEBC2E}
#v5-auth-art .lights i:nth-child(3){background:#28C840}
#v5-auth-art .addr{flex:0 1 300px;margin:0 auto;height:22px;border-radius:6px;background:#F5F5F5;display:flex;align-items:center;justify-content:center;gap:6px;font-size:11.5px;color:#6B6B6B}
#v5-auth-art .bar .sp2{width:48px}
#v5-auth-art .app{padding:18px 20px 20px}
#v5-auth-art .app-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
#v5-auth-art .app-h b{font:600 15px/20px 'Geist','Inter',sans-serif}
#v5-auth-art .app-h small{font-size:12px;color:#8A8A8A}
#v5-auth-art .card{border:1px solid #EBEBEB;border-radius:12px;background:#fff}
#v5-auth-art .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#v5-auth-art .stat{padding:16px 18px;text-align:center}
#v5-auth-art .stat b{display:block;font:700 26px/32px 'Geist','Inter',sans-serif;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
#v5-auth-art .stat span{display:block;margin-top:2px;font-size:10.5px;line-height:14px;font-weight:600;letter-spacing:.08em;color:#8A8A8A}
#v5-auth-art .stat small{display:block;margin-top:4px;font-size:11px;line-height:15px;color:#9A9A9A}
#v5-auth-art .an{margin-top:14px;padding:16px 18px}
#v5-auth-art .an h6{margin:0;font:600 15px/20px 'Geist','Inter',sans-serif}
#v5-auth-art .an .con{display:flex;align-items:center;gap:7px;margin-top:3px;font-size:12px;color:#6B6B6B}
#v5-auth-art .an .con i{width:7px;height:7px;border-radius:50%;background:#171717}
#v5-auth-art .mets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
#v5-auth-art .met{padding:10px 12px;border:1px solid #EBEBEB;border-radius:10px}
#v5-auth-art .met b{display:block;font:700 18px/22px 'Geist','Inter',sans-serif;font-variant-numeric:tabular-nums}
#v5-auth-art .met span{display:block;font-size:9.5px;line-height:13px;font-weight:600;letter-spacing:.08em;color:#8A8A8A}
#v5-auth-art .met small{display:block;margin-top:2px;font-size:11px;line-height:14px;font-weight:600}
#v5-auth-art .up{color:#0089DB}
#v5-auth-art .chart{position:relative;height:112px;margin-top:12px}
#v5-auth-art .chart svg{width:100%;height:100%;overflow:visible;display:block}
#v5-auth-art .ln{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:0;vector-effect:non-scaling-stroke;transition:stroke-dashoffset 1.8s cubic-bezier(.4,0,.2,1)}
#v5-auth-art .undrawn .ln{stroke-dashoffset:1}
#v5-auth-art .area{transition:opacity 1s .8s}
#v5-auth-art .undrawn .area{opacity:0}
#v5-auth-art .legend{display:flex;gap:14px;margin-top:8px;font-size:11px;color:#6B6B6B}
#v5-auth-art .legend span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
#v5-auth-art .legend i{width:8px;height:8px;border-radius:2px}
#v5-auth-art [data-m]{transition:opacity .45s,transform .45s}
#v5-auth-art .pre{opacity:0!important;transform:translateY(10px)}
#v5-auth-art .snap,#v5-auth-art .snap *{transition:none!important}
#v5-auth-art /* Sign-up window: documents + review */
.docs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#v5-auth-art .doc{padding:12px;border:1px solid #EBEBEB;border-radius:10px;background:#FAFAFA;min-height:104px;display:flex;flex-direction:column;gap:6px}
#v5-auth-art .doc b{font:600 12.5px/17px 'Inter',sans-serif;color:#171717}
#v5-auth-art .pill{align-self:flex-start;height:20px;padding:0 8px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px #E3E3E3;font-size:10.5px;line-height:20px;font-weight:600;color:#525252}
#v5-auth-art .doc small{margin-top:auto;font-size:11px;line-height:14px;color:#8A8A8A}
#v5-auth-art .rev{position:relative;z-index:1;width:100%;max-width:593px;margin-top:16px;padding:18px 20px;border-radius:16px;background:rgba(255,255,255,.94);
  box-shadow:0 0 0 .5px rgba(0,0,0,.08),0 20px 50px -24px rgba(0,46,92,.55)}
#v5-auth-art .rev .stars{color:#F5A524;letter-spacing:2px;font-size:13px}
#v5-auth-art .rev p{margin:6px 0 8px;font-size:15px;line-height:22px;color:#171717}
#v5-auth-art .rev small{font-size:12px;color:#6B6B6B}
#v5-auth-art .rev small b{color:#171717;font-weight:600}
#v5-auth-art .colwrap{position:relative;z-index:1;width:100%;max-width:593px;display:flex;flex-direction:column}
@media (max-width: 820px) {
  html.v5-split #v5-auth-top { height: 64px; padding: 0 20px; }
  #v5-auth-top .v5-auth-ask { font-size: 14px; }
  #v5-auth-top .v5-auth-ask span { display: none; }
  html.v5-split .ws-app { margin-left: 0 !important; width: auto; }
  html.v5-split .ws-auth-surface { min-height: 0; padding: 12px 20px 0; }
  html.v5-split .ws-auth-title { font-size: 24px; line-height: 28px; letter-spacing: -0.6px !important; }
  html.v5-split .v5-lead { font-size: 15px; line-height: 22px; }
  html.v5-split #v5-auth-art { position: static; width: auto; margin: 28px 12px 12px; }
  #v5-auth-art .frame{min-height:0;border-radius:24px;padding:56px 12px 16px}
  #v5-auth-art .exl{top:16px;right:18px}
  #v5-auth-art .stat{padding:12px 10px}
  #v5-auth-art .stat b{font-size:22px;line-height:28px}
  #v5-auth-art .app{padding:14px 14px 16px}
  #v5-auth-art .mets{gap:6px}
  #v5-auth-art .met{padding:8px}
  #v5-auth-art .met b{font-size:15px;line-height:20px}
  #v5-auth-art .met span{font-size:8.5px;letter-spacing:.06em}
  #v5-auth-art .addr{flex-basis:220px;font-size:10.5px}
  #v5-auth-art .bar .sp2{width:0}
  #v5-auth-art .docs{grid-template-columns:repeat(2,minmax(0,1fr))}
  #v5-auth-art .docs .doc:nth-child(n+5){display:none}
  #v5-auth-art .legend .lbl{display:none}
}
@media (prefers-reduced-motion: reduce) { #v5-auth-art .frame::before { animation: none; } #v5-auth-art [data-m], #v5-auth-art .ln, #v5-auth-art .area { transition: none; } }

/* Card height as on word-spinner.com (Brian 30 Nov: only a bit taller, same size as the live site; measured
   614px at 1440x900 and 1920x1080, 862px at 2560x1440 = max(614px, 100vh - 578px); phone 300 / 320). Width: full, as the live site. */
@media (min-width: 1025px) {
  html.v5-on .wsc-tool .wsc-shell { max-width: none; } /* full width, as word-spinner.com (884px cards at 1920) */
  html.v5-on .wsc-tool .wsc-pane { min-height: max(614px, calc(100vh - 578px)); }
}
@media (max-width: 1024px) {
  html.v5-on .wsc-tool .wsc-pane.wsc-input { min-height: 300px !important; }
  html.v5-on .wsc-tool .wsc-pane.wsc-output { min-height: 320px !important; }
  html.v5-on .wsc-tool .wsc-pane.wsc-input .wsc-inputwrap, html.v5-on .wsc-tool .wsc-pane.wsc-input .wsc-editor { min-height: 250px !important; }
}

/* Dialogs cover the side menu too (Brian 30 Nov): the page is its own layer (z-index 1) and the menu sits at 60,
   so while a dialog is open the page drops its layer and the scrim (z-index 130/1000) covers everything. */
html.v5-on .ws-page:has([class*="scrim"]) { z-index: auto; }
/* Busy state, used by "Download my data". */
html.v5-on .v5-busy { pointer-events: none; opacity: .8; }
.v5-spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; vertical-align: -2px; animation: v5-spin .7s linear infinite; }
@keyframes v5-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .v5-spin { animation-duration: 2.4s; } }

/* The document editor page is <main class="ws-page ws-dc-page ws-ed-page">: it shares the class of the list's page
   buttons, so the button look (32px box, hover tint, press scale) leaked onto the whole editor (Brian 30 Nov: odd
   highlights, the white sheet zooming on every click). Undo the button rules of documents.html on the page itself. */
html.v5-on main.ws-dc-page, html.v5-on main.ws-dc-page:hover, html.v5-on main.ws-dc-page:active {
  min-width: 0; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; font: inherit; color: inherit;
  cursor: auto; transform: none; transition: none; }
/* AI Detector: the Detect AI button sits on the right of the bar, as Humanize does (Brian 30 Nov). */
html.v5-on .wsc-det-grid .wsc-bar .wsc-run, html.v5-on .wsc-tool .wsc-bar .wsc-run { margin-left: auto; } /* every tool: run button on the right (Grammar too, Brian 30 Nov) */

/* Snappy page switches (Brian 30 Nov): a short cross-fade between app pages; the side menu keeps its place. */
/* Audit 30 Nov: the cross-document fade made Chrome log "Transition was aborted ... Page already revealed" on every page switch; switches stay instant through prerendering. */
@view-transition { navigation: none; }
#v5-shell { view-transition-name: v5-side; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 120ms; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* One AI Humanizer (Brian 30 Nov): the page always runs the AI Remover, so the Humanize / AI Remover switch is hidden. */
html.v5-on .wsc-seg:has([data-action="humanizer-engine"]) { display: none; }

/* AI Humanizer result, compact (board HumanizerResultV2, Brian 30 Nov): the AI check is one strip under both cards,
   score | verdict + Human-Mixed-AI scale | Redo (from 25% AI); the result text reads larger. */
html.v5-on .wsc-tool .wsc-result-text { font: 400 14px/22px var(--v5-sans); letter-spacing: -0.14px; color: var(--v5-ink); } /* Brian 30 Nov: result text exactly as large as the input */
html.v5-on .wsc-tool .wsc-removal-dock { display: block; margin-top: 12px; padding: 0; border: 0; background: transparent; }
html.v5-on .wsc-aicheck { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; min-width: 0; max-width: none; margin: 0;
  padding: 16px 20px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--v5-line); }
html.v5-on .wsc-aicheck .wsc-aicheck-label { display: block; font: 500 12px/16px var(--v5-display); letter-spacing: .04em; text-transform: uppercase; color: var(--v5-muted); }
html.v5-on .wsc-aicheck .wsc-score2-num { display: flex; align-items: baseline; gap: 5px; margin-top: 2px; font: 600 30px/34px var(--v5-display); letter-spacing: -.6px; }
html.v5-on .wsc-aicheck .wsc-score2-num span { font: 500 15px/20px var(--v5-display); margin: 0; color: inherit; }
html.v5-on .wsc-aicheck .wsc-score2-sub { display: block; margin: 0; font: 500 14px/20px var(--v5-sans); color: var(--v5-ink); }
html.v5-on .wsc-ac-bar { position: relative; height: 6px; margin-top: 10px; border-radius: 999px; background: linear-gradient(90deg, #DCF3E6 0 20%, #FBF0D2 20% 80%, #FBE0DC 80% 100%); }
html.v5-on .wsc-ac-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: currentColor; opacity: .9; }
html.v5-on .wsc-ac-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; line-height: 16px; color: #8A8A8A; }
html.v5-on .wsc-ac-act { display: flex; align-items: center; justify-content: flex-end; }
html.v5-on .wsc-aicheck .wsc-aicheck-redo { margin: 0; height: 36px; white-space: nowrap; }
html.v5-on .wsc-aicheck.is-human { color: #1F9D5B; } html.v5-on .wsc-aicheck.is-human .wsc-score2-num { color: #1F7A4C; }
html.v5-on .wsc-aicheck.is-mixed { color: #C98A12; } html.v5-on .wsc-aicheck.is-mixed .wsc-score2-num { color: #9A6608; }
html.v5-on .wsc-aicheck.is-ai { color: #D2462F; } html.v5-on .wsc-aicheck.is-ai .wsc-score2-num { color: #B33522; }
html.v5-on .wsc-aicheck .wsc-aicheck-wait { padding: 0; font-size: 14px; color: var(--v5-muted); }
html.v5-on .wsc-result-foot .wsc-tag { margin-left: 10px; }
@media (max-width: 767px) {
  html.v5-on .wsc-aicheck { grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; }
  html.v5-on .wsc-ac-act { grid-column: 1 / -1; justify-content: stretch; }
  html.v5-on .wsc-ac-act .wsc-aicheck-redo { width: 100%; justify-content: center; }
}

/* Compact check strip: beat the older dock rules (display:block, glow) and hide the engine row entirely. */
html.v5-on .wsc-tool .wsc-removal-dock .wsc-aicheck { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 16px 20px; border-radius: 12px; }
html.v5-on .wsc-tool .wsc-removal-dock .wsc-aicheck::before { display: none; }
html.v5-on .wsc-tool .wsc-removal-dock .wsc-aicheck .wsc-score2-num { margin-top: 2px; font: 600 30px/34px var(--v5-display); }
html.v5-on .wsc-tool .wsc-removal-dock .wsc-aicheck .wsc-score2-sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--v5-ink) !important; }
html.v5-on .wsc-modebar:has([data-action="humanizer-engine"]) { display: none; }
@media (max-width: 767px) { html.v5-on .wsc-tool .wsc-removal-dock .wsc-aicheck { grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; } }

/* Brian 30 Nov: the AI check sits inside the result card, at the bottom above the footer, without its own frame. */
html.v5-on .wsc-tool .wsc-output .wsc-removal-dock { margin: 0; padding: 14px 16px; border-top: 1px solid var(--v5-line); background: #fff; }
html.v5-on .wsc-tool .wsc-output .wsc-removal-dock .wsc-aicheck { gap: 20px; padding: 0; border-radius: 0; box-shadow: none; background: transparent !important; }
html.v5-on .wsc-tool .wsc-output .wsc-removal-dock .wsc-aicheck .wsc-score2-num { font-size: 26px; line-height: 30px; }
html.v5-on .wsc-tool .wsc-output .wsc-removal-dock .wsc-aicheck-redo { height: 34px; padding: 0 12px; font-size: 13px; }

/* AI Detector highlights (Brian 30 Nov): Likely AI light red, Borderline light yellow, human plain. */
html.v5-on .ws-detector-sentence.ai, html.v5-on .wsc-det .ws-detector-sentence.ai { background: #FDE8EC; color: #9E193F; }
html.v5-on .ws-detector-sentence.mixed, html.v5-on .wsc-det .ws-detector-sentence.mixed { background: #FFF6D6; color: #7A5600; }
html.v5-on .ws-detector-sentence.active.ai { box-shadow: 0 0 0 1.5px #E5627F; }
html.v5-on .ws-detector-sentence.active.mixed { box-shadow: 0 0 0 1.5px #D9A920; }
html.v5-on .ws-detector-label.ai, html.v5-on .wsc-det .ws-detector-label.ai { background: #FDE8EC; color: #9E193F; }
html.v5-on .ws-detector-label.mixed, html.v5-on .wsc-det .ws-detector-label.mixed { background: #FFF6D6; color: #7A5600; }
html.v5-on .wsc-det .dot.ai { background: #E5627F; } html.v5-on .wsc-det .dot.mixed { background: #E3B341; }

/* AI Detector cards keep their height with a result; the document and the analysis scroll inside (Brian 30 Nov). */
html.v5-on .wsc-tool .wsc-det-grid { align-items: stretch; }
html.v5-on .wsc-tool .wsc-det-grid > .wsc-pane { display: flex; flex-direction: column; overflow: hidden; }
html.v5-on .wsc-tool .wsc-det-grid > .wsc-pane > .wsc-pane-toolbar, html.v5-on .wsc-tool .wsc-det-grid > .wsc-pane > .wsc-bar { flex: none; }
html.v5-on .wsc-tool .wsc-det-grid > .wsc-pane > .wsc-out-body, html.v5-on .wsc-tool .wsc-det-grid > .wsc-pane > .ws-detector-document { flex: 1 1 0; min-height: 0; height: auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 1025px) {
  html.v5-on .wsc-tool .wsc-det-grid > .wsc-pane { height: max(614px, calc(100vh - 578px)); }
}
@media (max-width: 1024px) {
  html.v5-on .wsc-tool .wsc-det-grid > .wsc-pane.wsc-input:has(> .ws-detector-document) { height: 300px; }
  html.v5-on .wsc-tool .wsc-det-grid > .wsc-pane.wsc-output:has(.wsc-det) { height: 460px; }
}

/* Highlighted text in every tool: brand light blue, text in a dark shade of the same blue, semibold
   (Brian 30 Nov: readable, but it must stay our blue, not purple). #005E94 on #E7F5FF = 6.2:1. */
html.v5-on .wsc-hl, html.v5-on .wsc-hl.static, html.v5-on .ws-detector-sentence.ai, html.v5-on .ws-detector-sentence.mixed, html.v5-on .wsc-det .ws-detector-sentence.ai, html.v5-on .wsc-det .ws-detector-sentence.mixed { font-weight: 600; }
html.v5-on .wsc-hl, html.v5-on .wsc-hl.static, html.v5-on .wsc-hl.open { background: var(--v5-blue-tint); color: #005E94; }
html.v5-on .wsc-hl:hover { background: #D6EEFF; }
html.v5-on .wsc-hl.open { box-shadow: 0 0 0 1.5px var(--v5-blue); }

/* AI check bar (Brian 30 Nov): no fill from the left; the zone the score falls in lights up in its colour
   (Human <=20, Mixed 21-79, AI >=80), a dot marks the exact score (also at 0%), its label turns dark. */
html.v5-on .wsc-ac-bar.is-zoned { display: flex; gap: 2px; background: none; overflow: visible; }
html.v5-on .wsc-ac-z { height: 100%; border-radius: 999px; transition: background-color var(--v5-fast) var(--v5-ease); }
html.v5-on .wsc-ac-z.h { flex: 0 0 calc(20% - 1px); background: #DCF3E6; }
html.v5-on .wsc-ac-z.m { flex: 1 1 auto; background: #FBF0D2; }
html.v5-on .wsc-ac-z.a { flex: 0 0 calc(20% - 1px); background: #FBE0DC; }
html.v5-on .wsc-ac-z.on { background: currentColor; }
html.v5-on .wsc-ac-pin { position: absolute; top: 50%; left: clamp(6px, var(--pos), calc(100% - 6px)); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2.5px currentColor, 0 1px 3px rgba(0,0,0,.18); }
html.v5-on .wsc-ac-scale span.on { color: var(--v5-ink); font-weight: 600; }

/* Grammar: applied fixes in the brand highlight; clicking a fix card glides there and pulses the spot (Brian 30 Nov). */
html.v5-on .wsc-gm-fixed, html.v5-on .wsc-gm-fixed.active { background: var(--v5-blue-tint); color: #005E94; font-weight: 600; border: 0; border-radius: 3px; padding: 0 2px; box-shadow: none; animation: none; }
html.v5-on .wsc-gm-fixed.active { box-shadow: 0 0 0 1.5px var(--v5-blue); }
html.v5-on .wsc-input-highlight .gm-flash, html.v5-on .gm-flash { animation: v5-gm-flash 1.6s var(--v5-ease) both; }
@keyframes v5-gm-flash {
  0% { background: var(--v5-blue-tint); box-shadow: 0 0 0 0 rgba(0,163,255,0); }
  15%, 45% { background: #BFE6FF; box-shadow: 0 0 0 4px rgba(0,163,255,.28); }
  100% { background: var(--v5-blue-tint); box-shadow: 0 0 0 1.5px var(--v5-blue); }
}
@media (prefers-reduced-motion: reduce) { html.v5-on .gm-flash { animation: none; box-shadow: 0 0 0 2px var(--v5-blue); } }

/* Grammar cards keep their height with a result, as the AI Detector: the text and the suggestions scroll inside (Brian 30 Nov). */
html.v5-on .wsc-tool .wsc-grammar-grid { align-items: stretch; }
html.v5-on .wsc-tool .wsc-grammar-grid > .wsc-pane { display: flex; flex-direction: column; overflow: hidden; }
html.v5-on .wsc-tool .wsc-grammar-grid > .wsc-pane > .wsc-pane-toolbar, html.v5-on .wsc-tool .wsc-grammar-grid > .wsc-pane > .wsc-bar { flex: none; }
html.v5-on .wsc-tool .wsc-grammar-grid > .wsc-pane > .wsc-inputwrap { flex: 1 1 0; min-height: 0 !important; height: auto; position: relative; }
html.v5-on .wsc-tool .wsc-grammar-grid > .wsc-pane > .wsc-inputwrap > .wsc-editor { height: 100% !important; min-height: 0 !important; overflow-y: auto; }
html.v5-on .wsc-tool .wsc-grammar-grid > .wsc-pane > .wsc-out-body { flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 1025px) {
  html.v5-on .wsc-tool .wsc-grammar-grid > .wsc-pane { height: max(614px, calc(100vh - 578px)); }
}
@media (max-width: 1024px) {
  html.v5-on .wsc-tool .wsc-grammar-grid > .wsc-pane.wsc-input { height: 360px; }
  html.v5-on .wsc-tool .wsc-grammar-grid > .wsc-pane.wsc-output:has(.gm2-list) { height: 480px; }
}

/* AI Detector sentence list: one 1px line everywhere (Brian 30 Nov). The rows lost their old full border,
   which doubled the dividers and the sides; the list keeps its single outer line. */
html.v5-on .wsc-sent-list .wsc-sent, html.v5-on .wsc-sent-list .wsc-sent.ai, html.v5-on .wsc-sent-list .wsc-sent.mixed, html.v5-on .wsc-sent-list .wsc-sent.human, html.v5-on .wsc-sent-list .wsc-sent.active { border: 0; border-top: 1px solid var(--v5-line); border-radius: 0; }
html.v5-on .wsc-sent-list .wsc-sent:first-child { border-top: 0; }

/* Grammar results column (Brian 30 Nov, board GrammarResultsV2): summary + progress, filters, compact rows,
   one open row, fixed list with Undo, footer. Header and footer stay put; the list scrolls. */
html.v5-on .wsc-grammar-grid > .wsc-pane > .wsc-out-body:has(> .gm2) { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
html.v5-on .gm2 { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; height: 100%; font-family: var(--v5-sans); color: var(--v5-ink); }
html.v5-on .gm2-sum { flex: none; padding: 18px 18px 14px; }
html.v5-on .gm2-sum-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
html.v5-on .gm2-n { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
html.v5-on .gm2-n b { font: 500 28px/32px Geist, var(--v5-sans); letter-spacing: -.6px; color: var(--v5-ink); }
html.v5-on .gm2-n span { font: 400 14px/20px var(--v5-sans); color: var(--v5-muted); }
html.v5-on .gm2-alldone { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/18px var(--v5-sans); color: #006FB3; }
html.v5-on .gm2-prog { margin-top: 14px; }
html.v5-on .gm2-prog-t { display: flex; justify-content: space-between; font: 400 12px/16px var(--v5-sans); color: var(--v5-muted); }
html.v5-on .gm2-prog-t b { font-weight: 500; color: var(--v5-ink); }
html.v5-on .gm2-bar { height: 4px; margin-top: 6px; border-radius: 2px; background: var(--v5-line); overflow: hidden; }
html.v5-on .gm2-bar i { display: block; height: 100%; border-radius: 2px; background: #0089DB; transition: width .3s var(--v5-ease); }
html.v5-on .gm2-fil { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
html.v5-on .gm2-chip { height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--v5-line); font: 500 12px/16px var(--v5-sans); color: rgba(23,23,23,.8); cursor: pointer; transition: background-color var(--v5-fast) var(--v5-ease), color var(--v5-fast) var(--v5-ease); }
html.v5-on .gm2-chip:hover { background: #FAFAFA; }
html.v5-on .gm2-chip em { font-style: normal; font-weight: 400; color: #8A8A8A; }
html.v5-on .gm2-chip.on { background: var(--v5-blue-tint); box-shadow: none; color: #006FB3; }
html.v5-on .gm2-chip.on em { color: #006FB3; }
html.v5-on .gm2-list { flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 12px; border-top: 1px solid var(--v5-line); }
html.v5-on .gm2-grp { padding: 14px 6px 8px; font: 500 11px/16px var(--v5-sans); letter-spacing: .02em; text-transform: uppercase; color: var(--v5-muted); }
html.v5-on .gm2-row { border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--v5-line); padding: 12px 14px; cursor: pointer; transition: box-shadow var(--v5-fast) var(--v5-ease), background-color var(--v5-fast) var(--v5-ease); }
html.v5-on .gm2-row + .gm2-row { margin-top: 8px; }
html.v5-on .gm2-row:hover { background: #FAFAFA; }
html.v5-on .gm2-row:focus-visible, html.v5-on .gm2-fix:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--v5-blue); }
html.v5-on .gm2-row.open { cursor: default; background: #F7F7F8; box-shadow: 0 0 0 1px #DCDCE0; }
html.v5-on .gm2-cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 500 12px/16px var(--v5-sans); color: var(--v5-muted); }
html.v5-on .gm2-diff, html.v5-on .gm2-ctx { margin-top: 4px; font: 400 14px/22px var(--v5-sans); letter-spacing: -.14px; color: var(--v5-ink); overflow-wrap: anywhere; }
html.v5-on .gm2-ctx { margin-top: 8px; cursor: pointer; }
html.v5-on .gm2-del { color: #8A8A8A; text-decoration: line-through; text-decoration-color: #B5B5B5; }
html.v5-on .gm2-arr { color: #B5B5B5; margin: 0 6px; }
html.v5-on .gm2-ins { background: var(--v5-blue-tint); color: #005E94; font-weight: 600; border-radius: 3px; padding: 1px 3px; }
html.v5-on .gm2-why { margin: 8px 0 0; font: 400 13px/19px var(--v5-sans); color: var(--v5-muted); }
html.v5-on .gm2-acts { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
html.v5-on .gm2-sp { flex: 1; }
html.v5-on .gm2-btn { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; border-radius: 7px; font: 500 13px/18px var(--v5-sans); white-space: nowrap; cursor: pointer; transition: background-color var(--v5-fast) var(--v5-ease), color var(--v5-fast) var(--v5-ease); }
html.v5-on .gm2-btn.pri { background: #0089DB; color: #fff; }
html.v5-on .gm2-btn.pri:hover { background: #0077C2; }
html.v5-on .gm2-btn.sec { background: #fff; color: var(--v5-ink); box-shadow: 0 0 0 1px var(--v5-line), 0 4px 4px rgba(23,23,23,.04); }
html.v5-on .gm2-btn.sec:hover, html.v5-on .gm2-btn.gh:hover { color: #006FB3; }
html.v5-on .gm2-btn.gh { background: transparent; color: var(--v5-muted); }
html.v5-on .gm2-ico { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--v5-muted); cursor: pointer; }
html.v5-on .gm2-ico:hover:not(:disabled) { background: #F2F2F2; color: var(--v5-ink); }
html.v5-on .gm2-ico:disabled { opacity: .35; cursor: default; }
html.v5-on .gm2-fix { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-top: 1px solid var(--v5-line); font: 400 13px/18px var(--v5-sans); color: var(--v5-muted); cursor: pointer; border-radius: 0; }
html.v5-on .gm2-fixes .gm2-fix:first-child { border-top: 0; }
html.v5-on .gm2-fix:hover { background: #FAFAFA; }
html.v5-on .gm2-ck { display: inline-flex; color: #0089DB; flex: none; }
html.v5-on .gm2-w { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.v5-on .gm2-w b { font-weight: 600; color: #005E94; }
html.v5-on .gm2-undo { flex: none; border: 0; background: none; padding: 4px 2px; font: 500 12px/16px var(--v5-sans); color: var(--v5-muted); cursor: pointer; }
html.v5-on .gm2-undo:hover { color: #006FB3; }
html.v5-on .gm2-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 10px 12px; border-top: 1px solid var(--v5-line); }
html.v5-on .gm2-meta { font: 400 12px/16px var(--v5-sans); color: var(--v5-muted); }
html.v5-on .gm2-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 24px; }
html.v5-on .gm2-done-ic { display: inline-flex; color: #0089DB; }
html.v5-on .gm2-done h3 { margin: 10px 0 4px; font: 500 15px/20px Geist, var(--v5-sans); color: var(--v5-ink); }
html.v5-on .gm2-done p { margin: 8px 0 14px; max-width: 260px; font: 400 13px/19px var(--v5-sans); color: var(--v5-muted); }
html.v5-on .gm2-done h3 + p { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { html.v5-on .gm2-bar i { transition: none; } }

/* Grammar editor: suggestions to review get a blue underline, the open one a soft blue mark (board GrammarResultsV2). */
html.v5-on .wsc-input-highlight .wsc-gm, html.v5-on .wsc-input-highlight .wsc-gm[class*="wsc-gm-"] { background: transparent; border: 0; border-radius: 3px; padding: 0; text-decoration: underline; text-decoration-color: #0089DB; text-decoration-thickness: 2px; text-underline-offset: 4px; }
html.v5-on .wsc-input-highlight .wsc-gm.active { background: var(--v5-blue-tint); box-shadow: 0 0 0 3px rgba(0,163,255,.18); }

/* Grammar editor: the highlight layer that covers the text after a check uses exactly the editor's type and padding,
   so the text no longer grows after the check or shrinks when you click in (Brian 30 Nov). */
html.v5-on .wsc-grammar-grid .wsc-inputwrap .wsc-input-highlight { padding: 16px; font: 400 14px/22px var(--v5-sans); letter-spacing: -0.14px; color: var(--v5-ink); }
/* Run buttons are locked while a run is busy. */
html.v5-on .wsc-tool .wsc-run:disabled, html.v5-on .wsc-tool .wsc-run[aria-busy="true"] { opacity: .55; cursor: default; pointer-events: none; }

/* Email: the tone picker sits on the right, right next to Generate email (Brian 30 Nov). */
html.v5-on .wsc-tool .wsc-bar > .wsc-tone { margin-left: auto; }
html.v5-on .wsc-tool .wsc-bar > .wsc-tone + .wsc-run { margin-left: 0; }

/* Rewriter (Brian 30 Nov): Tone + Intensity sit on the right, next to Rewrite, not centred. */
@media (min-width: 1025px) { html.v5-on .wsc-tool .wsc-bar > .wsc-voice ~ .wsc-run { margin-left: 0; } }

/* Humanizer, Rewriter and Email cards keep their height with a long text or result: both scroll inside,
   the page never grows (Brian 30 Nov, as the AI Detector and Grammar cards). */
html.v5-on .wsc-tool .wsc-grid:not(.wsc-det-grid):not(.wsc-grammar-grid) { align-items: stretch; }
html.v5-on .wsc-tool .wsc-grid:not(.wsc-det-grid):not(.wsc-grammar-grid) > .wsc-pane { display: flex; flex-direction: column; overflow: hidden; }
html.v5-on .wsc-tool .wsc-grid:not(.wsc-det-grid):not(.wsc-grammar-grid) > .wsc-pane > * { flex: none; }
html.v5-on .wsc-tool .wsc-grid:not(.wsc-det-grid):not(.wsc-grammar-grid) > .wsc-pane > .wsc-out-body { flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
html.v5-on .wsc-tool .wsc-grid:not(.wsc-det-grid):not(.wsc-grammar-grid) > .wsc-pane > .wsc-inputwrap { flex: 1 1 0; min-height: 0 !important; height: auto; position: relative; }
html.v5-on .wsc-tool .wsc-grid:not(.wsc-det-grid):not(.wsc-grammar-grid) > .wsc-pane > .wsc-inputwrap > .wsc-editor { height: 100% !important; min-height: 0 !important; overflow-y: auto; }
html.v5-on .wsc-tool .wsc-grid:not(.wsc-det-grid):not(.wsc-grammar-grid) > .wsc-pane > .wsc-editor { flex: 1 1 0; height: auto !important; min-height: 0 !important; overflow-y: auto; }
@media (min-width: 1025px) {
  html.v5-on .wsc-tool .wsc-grid:not(.wsc-det-grid):not(.wsc-grammar-grid) > .wsc-pane { height: max(614px, calc(100vh - 578px)); }
}
@media (max-width: 1024px) {
  html.v5-on .wsc-tool .wsc-grid:not(.wsc-det-grid):not(.wsc-grammar-grid) > .wsc-pane.wsc-input { height: 360px; }
  html.v5-on .wsc-tool .wsc-grid:not(.wsc-det-grid):not(.wsc-grammar-grid) > .wsc-pane.wsc-output:has(.wsc-result) { height: 480px; }
}
html.v5-on .wsc-tool .wsc-grid:not(.wsc-det-grid):not(.wsc-grammar-grid) > .wsc-pane > .em-briefwrap { flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; } /* Email: the brief fills the card and scrolls; the button bar stays at the bottom */

/* Live 30 Nov (Brian: buttons misaligned in "You've used your monthly words"): the tool pages add
   <br><button class="ws-modal-close">keep editing</button> after the .ws-auth-choice block, so the primary sat
   on its own line with the secondary below it. One row on the right instead: [Keep editing] [Upgrade plan]. */
html.v5-on .ws-login-modal .ws-login-card > br { display: none !important; }
html.v5-on .ws-login-modal .ws-login-card > .ws-auth-choice { float: right; margin: 0 0 0 8px !important; }
html.v5-on .ws-login-modal .ws-login-card > .ws-modal-close:not([aria-label]) { display: inline-block !important; line-height: 32px !important; text-transform: none !important; }
html.v5-on .ws-login-modal .ws-login-card > .ws-modal-close:not([aria-label])::first-letter { text-transform: uppercase; }

/* ===== Signed-in /pricing, polish (Brian 30 Nov: "mooier, niet aligned"). Same composition as the visitor pricing:
   soft grey page, bigger heading, billing switch in a white pill with a Save chip, badge on the card edge, prices and
   buttons on one line across the cards, reviews under the cards. ===== */
html.v5-auth .ws-pr-surface { background: #F5F7FA; }
html.v5-auth .ws-pr-hero { padding-top: 40px; }
html.v5-auth .ws-pr-active { background: #fff; box-shadow: 0 0 0 1px #E6E8EC; margin-bottom: 40px; }
html.v5-auth .ws-pr-hero h1 { font: 700 44px/50px var(--v5-display); letter-spacing: -1.4px !important; }
html.v5-auth .ws-pr-hero > p { margin-top: 10px; font-size: 17px; line-height: 26px; }
html.v5-auth .ws-pr-billing { margin-top: 28px; padding: 8px 10px 8px 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #E6E8EC; align-items: center; }
html.v5-auth .ws-pr-billing-l { font-size: 14px; line-height: 20px; }
html.v5-auth .ws-pr-save { padding: 0 8px; border-radius: 999px; background: var(--v5-blue-btn); color: #fff; font: 600 11px/20px var(--v5-sans); }
html.v5-auth .ws-pr-cards { gap: 20px; max-width: 1040px; margin-top: 36px; align-items: stretch; }
html.v5-auth .ws-pr-card, html.v5-auth .ws-pr-card.prem { position: relative; border-radius: 18px; box-shadow: 0 0 0 1px #E6E8EC, 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -12px rgba(16,24,40,.10); }
html.v5-auth .ws-pr-card.prem { box-shadow: 0 0 0 1.5px var(--v5-blue), 0 12px 32px -14px rgba(0,137,219,.35); }
html.v5-auth .ws-pr-card.prem .ws-pr-name::after { content: none; }
html.v5-auth .ws-pr-card.prem .ws-pr-badge { display: block; position: absolute; top: -11px; right: 18px; z-index: 1; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--v5-blue-btn); color: #fff; font: 600 11px/22px var(--v5-sans); }
html.v5-auth .ws-pr-card-in, html.v5-auth .ws-pr-card.prem .ws-pr-card-in { padding: 28px 24px 26px; }
html.v5-auth .ws-pr-name, html.v5-auth .ws-pr-card.prem .ws-pr-name { font: 600 20px/26px var(--v5-display); }
html.v5-auth .ws-pr-tag { min-height: 34px; margin: 6px 0 10px; font-size: 13px; line-height: 17px; }
html.v5-auth .ws-pr-price { font: 700 44px/48px var(--v5-display); letter-spacing: -1.4px; }
html.v5-auth .ws-pr-pnote { min-height: 32px; margin: 4px 0 18px; font-size: 12px; line-height: 16px; }
html.v5-auth .ws-pr-cta { width: 100%; height: 44px; font-size: 14px; }
html.v5-auth .ws-pr-feat-title { margin-top: 20px; padding-top: 18px; font-weight: 500; color: var(--v5-ink); }
html.v5-auth .ws-pr-feats { gap: 11px; margin-top: 12px; }
html.v5-auth .ws-pr-feats li { align-items: flex-start; font-size: 13.5px; line-height: 19px; }
html.v5-auth .ws-pr-terms { margin-top: 36px; text-align: center; }
html.v5-auth #v5-pr-reviews { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 64px auto 0; padding: 0 24px; text-align: center; }
html.v5-auth #v5-pr-reviews h2 { margin: 0 0 18px; font: 700 30px/36px var(--v5-display); letter-spacing: -0.8px; color: var(--v5-ink); }
html.v5-auth #v5-pr-reviews .badges { display: flex; justify-content: center; align-items: center; gap: 28px; margin: 0 0 24px; }
html.v5-auth #v5-pr-reviews .badges img { height: 30px; width: auto; }
html.v5-auth #v5-pr-reviews .senja-embed { min-height: 240px; text-align: left; }
@media (max-width: 640px) {
  html.v5-auth .ws-pr-hero h1 { font-size: 30px; line-height: 36px; letter-spacing: -0.8px !important; }
  html.v5-auth .ws-pr-hero > p { font-size: 15px; line-height: 22px; }
  html.v5-auth .ws-pr-tag, html.v5-auth .ws-pr-pnote { min-height: 0; }
  html.v5-auth #v5-pr-reviews { margin-top: 48px; padding: 0 16px; }
  html.v5-auth #v5-pr-reviews h2 { font-size: 24px; line-height: 30px; }
}
html.v5-auth .ws-pr-hero { box-sizing: border-box; width: 100%; }
@media (max-width: 640px) {
  html.v5-auth .ws-pr-active { box-sizing: border-box; max-width: 100%; margin-bottom: 28px; }
  html.v5-auth .ws-pr-active-l, html.v5-auth .ws-pr-active-l > span { flex-wrap: wrap; justify-content: center; white-space: normal; text-align: center; }
  html.v5-auth .ws-pr-active-dot { display: none; }
}
@media (max-width: 640px) { html.v5-auth .ws-pr-active-l { display: block; min-width: 0; } html.v5-auth .ws-pr-active-l span { white-space: normal !important; } html.v5-auth .ws-pr-active-actions { margin: 4px 0 0; width: 100%; justify-content: center; display: flex; } }
@media (max-width: 640px) { html.v5-auth .ws-pr-active-l { flex: 1 1 100% !important; max-width: 100%; } }

/* Usage gate (tool-bridge.js #ws-usage-gate: "AI Remover is available with Pro", word limit, out of runs, free
   account) and the flash toast, in the jacket's dialog style (same as .v5-dialog / ToolDialogs): 400px, left
   aligned, 18px title, 13px copy, 32px buttons on one row with the primary on the right. Live 30 Nov these two
   still had the old 460px card, blue eyebrow and full-width 48px buttons. */
html.v5-on .wsug-backdrop { padding: 16px !important; place-items: center !important; align-items: center !important; background: rgba(23,23,23,.32) !important; backdrop-filter: none !important; animation: v5-fade var(--v5-fast) var(--v5-ease) both; }
html.v5-on .wsug-dialog { box-sizing: border-box; width: 400px !important; max-width: 100% !important; max-height: calc(100vh - 32px) !important; padding: 20px !important; border: 0 !important; border-radius: 12px !important; text-align: left !important; color: var(--v5-ink) !important; font: 400 13px/18px var(--v5-sans) !important; letter-spacing: -0.13px; box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 24px 48px -12px rgba(23,23,23,.25) !important; animation: v5-up 220ms var(--v5-ease) both; }
html.v5-on .wsug-eyebrow { display: none !important; }
html.v5-on .wsug-dialog h2, html.v5-on .wsug-dialog.wsug-centred h2 { margin: 0 0 6px !important; padding-right: 28px; font: 600 18px/22px var(--v5-display) !important; letter-spacing: -0.2px !important; color: var(--v5-ink) !important; text-wrap: pretty; }
html.v5-on .wsug-dialog.wsug-centred h2 { padding-right: 0; }
html.v5-on .wsug-dialog #wsug-copy { margin: 0 !important; font-size: 13px !important; line-height: 19px !important; color: var(--v5-muted) !important; }
html.v5-on .wsug-close { top: 12px !important; right: 12px !important; width: 28px !important; height: 28px !important; border-radius: 6px !important; font-size: 18px !important; color: var(--v5-muted) !important; outline: 0 !important; transition: background var(--v5-fast) var(--v5-ease); }
html.v5-on .wsug-close:hover { background: var(--v5-hover) !important; color: var(--v5-ink) !important; }
html.v5-on .wsug-close:focus-visible { background: var(--v5-hover) !important; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--v5-blue); }
html.v5-on .wsug-actions, html.v5-on .wsug-centred .wsug-actions { display: flex !important; flex-direction: row-reverse; flex-wrap: wrap; justify-content: flex-start; align-items: center !important; gap: 8px !important; margin-top: 18px; }
html.v5-on .wsug-action { flex: 0 0 auto; min-height: 32px !important; height: 32px; gap: 8px !important; padding: 0 12px !important; border: 0 !important; border-radius: 7px !important; font: 500 13px/16px var(--v5-display) !important; white-space: nowrap; transform: none !important; transition: background var(--v5-fast) var(--v5-ease) !important; }
html.v5-on .wsug-action:hover { transform: none !important; }
html.v5-on .wsug-upgrade, html.v5-on .wsug-email { background: var(--v5-blue-btn) !important; color: #fff !important; font-weight: 600 !important; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(23,23,23,.12) !important; }
html.v5-on .wsug-upgrade:hover, html.v5-on .wsug-email:hover { background: var(--v5-blue-btn-hover) !important; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(23,23,23,.12) !important; }
html.v5-on .wsug-secondary, html.v5-on .wsug-google { background: #fff !important; color: var(--v5-ink) !important; box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04) !important; }
html.v5-on .wsug-secondary:hover, html.v5-on .wsug-google:hover { background: var(--v5-frame) !important; box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04) !important; }
html.v5-on .wsug-action:focus-visible { outline: 2px solid var(--v5-blue) !important; outline-offset: 2px !important; }
html.v5-on .wsug-google svg { width: 16px !important; height: 16px !important; flex-basis: 16px !important; }
html.v5-on .wsug-login, html.v5-on .wsug-centred .wsug-login { display: block !important; width: auto !important; min-height: 0 !important; margin: 14px 0 0 !important; text-align: left !important; font-size: 13px !important; line-height: 18px; color: var(--v5-blue-text) !important; text-decoration: none !important; }
html.v5-on .wsug-login:hover { text-decoration: underline !important; }
html.v5-on .wsug-proof { margin: 14px 0 0 !important; text-align: left !important; font-size: 12px !important; line-height: 16px; color: var(--v5-label) !important; }
@media (max-width: 520px) {
  html.v5-on .wsug-backdrop { align-items: center !important; padding: 16px !important; }
  html.v5-on .wsug-dialog { width: 100% !important; border-radius: 12px !important; padding: 20px !important; }
  html.v5-on .wsug-action { flex: 1 1 auto; min-height: 36px !important; height: 36px; }
}
html.v5-on .ws-flash-toast { top: 16px !important; align-items: center !important; gap: 10px !important; min-height: 40px; box-sizing: border-box; padding: 6px 6px 6px 14px !important; border: 0 !important; border-radius: 10px !important; background: var(--v5-ink) !important; color: #fff !important; font: 400 13px/18px var(--v5-sans) !important; letter-spacing: -0.13px; box-shadow: 0 8px 20px -8px rgba(23,23,23,.4) !important; animation: v5-fade 220ms var(--v5-ease) both; }
html.v5-on .ws-flash-toast.is-err { background: #B42318 !important; }
/* Tool toast (tool-bridge showToolToast: Stop, uploads, errors) and the auth reset toast: the same dark jacket toast,
   replacing the old green/red cards (Brian 1 Dec 2026). Inline styles from the bridge are overridden here. */
html.v5-on .ws-tool-toast, html.v5-auth .ws-tool-toast { display: flex !important; align-items: center !important; gap: 10px; width: auto !important; max-width: min(92vw, 460px) !important; min-height: 40px; box-sizing: border-box; padding: 6px 6px 6px 14px !important; border: 0 !important; border-radius: 10px !important; background: var(--v5-ink, #171717) !important; color: #fff !important; font: 400 13px/18px var(--v5-sans, Inter, system-ui, sans-serif) !important; letter-spacing: -0.13px; box-shadow: 0 8px 20px -8px rgba(23,23,23,.4) !important; animation: v5-fade 220ms var(--v5-ease) both; }
html.v5-on .ws-tool-toast.is-err, html.v5-auth .ws-tool-toast.is-err { background: #B42318 !important; }
html.v5-on .ws-tool-toast-ic, html.v5-auth .ws-tool-toast-ic { width: 16px; height: 16px; flex: none; display: inline-flex; color: #fff; }
html.v5-on .ws-tool-toast:not(.is-err) .ws-tool-toast-ic, html.v5-auth .ws-tool-toast:not(.is-err) .ws-tool-toast-ic { color: #5FD08B; }
html.v5-on .ws-tool-toast-ic svg, html.v5-auth .ws-tool-toast-ic svg { width: 16px; height: 16px; }
html.v5-on .ws-tool-toast-t, html.v5-auth .ws-tool-toast-t { flex: 1; min-width: 0; }
html.v5-on .ws-tool-toast [data-ws-upload-close], html.v5-auth .ws-tool-toast [data-ws-upload-close] { position: static !important; width: 28px !important; height: 28px !important; display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 6px !important; color: rgba(255,255,255,.75) !important; font: 400 18px/1 var(--v5-sans, Inter, sans-serif) !important; }
html.v5-on .ws-tool-toast [data-ws-upload-close]:hover, html.v5-auth .ws-tool-toast [data-ws-upload-close]:hover { background: rgba(255,255,255,.14) !important; color: #fff !important; }
html.v5-on .ws-auth-toast, html.v5-auth .ws-auth-toast { width: min(400px, 92vw) !important; align-items: flex-start !important; gap: 10px !important; box-sizing: border-box; padding: 12px 8px 12px 14px !important; border: 0 !important; border-radius: 10px !important; background: var(--v5-ink, #171717) !important; color: #fff !important; box-shadow: 0 8px 20px -8px rgba(23,23,23,.4) !important; }
html.v5-on .ws-auth-toast-ic, html.v5-auth .ws-auth-toast-ic { width: 18px !important; height: 18px !important; margin-top: 1px; background: transparent !important; color: #5FD08B !important; }
html.v5-on .ws-auth-toast-ic svg, html.v5-auth .ws-auth-toast-ic svg { width: 16px !important; height: 16px !important; }
html.v5-on .ws-auth-toast strong, html.v5-auth .ws-auth-toast strong { font: 600 13px/18px var(--v5-display, Inter, sans-serif) !important; color: #fff !important; margin-bottom: 2px !important; }
html.v5-on .ws-auth-toast p, html.v5-auth .ws-auth-toast p { font: 400 13px/18px var(--v5-sans, Inter, sans-serif) !important; color: rgba(255,255,255,.72) !important; }
html.v5-on .ws-auth-toast-x, html.v5-auth .ws-auth-toast-x { width: 28px; height: 28px; margin-top: -5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: rgba(255,255,255,.75) !important; }
html.v5-on .ws-auth-toast-x:hover, html.v5-auth .ws-auth-toast-x:hover { background: rgba(255,255,255,.14) !important; color: #fff !important; }
html.v5-on .ws-flash-act { height: 28px; display: inline-flex; align-items: center; padding: 0 10px !important; border-radius: 6px !important; background: #fff !important; color: var(--v5-ink) !important; font: 600 13px/16px var(--v5-display) !important; }
html.v5-on .ws-flash-act:hover { background: #F2F2F2 !important; }
html.v5-on .ws-flash-x { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: rgba(255,255,255,.75) !important; font-size: 18px !important; }
html.v5-on .ws-flash-x:hover { background: rgba(255,255,255,.14) !important; color: #fff !important; }
/* Guest variant: blue "Continue with email" on the right like every jacket primary. Word-limit variant: its two long
   labels do not fit one row, so they stack full width instead of two ragged right-aligned rows. */
html.v5-on .wsug-actions .wsug-email { order: -1; }
html.v5-on .wsug-actions:has([data-wsug-shorten]) .wsug-action { flex: 1 1 100%; }

/* Swap-word menu (rewriter + humanizer): it was as narrow as the highlighted word and every option had a fixed 32px
   height, so longer phrases wrapped onto the next option (live 30 Nov). Size it to its options instead, wrap only
   past 360px, and let each option grow with its text. */
html.v5-on .wsc-variants { width: max-content !important; max-width: min(360px, calc(100vw - 32px)); white-space: normal; text-align: left; line-height: 18px; }
html.v5-on .wsc-variant { height: auto !important; min-height: 32px; padding: 7px 8px !important; line-height: 18px !important; white-space: normal; overflow-wrap: anywhere; text-decoration: none; }

/* Tool pages: grey canvas, white work surfaces (ref: Langdock agent editor, Mistral Le Chat canvas). */
html.v5-on main.wsc-tool .ws-page-surface{background:#F1F1F3;box-shadow:0 0 0 1px #E6E6E9}
html.v5-on main.wsc-tool .wsc-shell,html.v5-on main.wsc-tool .wsc-grid,html.v5-on main.wsc-tool .wsc-topbar{background:transparent !important}
html.v5-on main.wsc-tool .wsc-pane{background:#fff;box-shadow:0 0 0 1px #E0E0E4,0 1px 2px rgba(16,24,40,.05),0 4px 14px rgba(16,24,40,.05) !important;transition:box-shadow .15s ease}
html.v5-on main.wsc-tool .wsc-input:focus-within{box-shadow:0 0 0 1px #0089DB,0 0 0 4px rgba(0,137,219,.12),0 4px 14px rgba(16,24,40,.05) !important}
html.v5-on main.wsc-tool .wsc-pane-toolbar{background:#FAFAFA !important;border-bottom:1px solid #EBEBEB !important;border-radius:12px 12px 0 0}
html.v5-on main.wsc-tool .wsc-output .wsc-pane-toolbar{color:#171717}
html.v5-on main.wsc-tool .wsc-clear-btn{background:#fff;box-shadow:0 0 0 1px #E4E4E7,0 1px 1px rgba(16,24,40,.04)}
html.v5-on main.wsc-tool .wsc-clear-btn:hover{background:#F5F5F5}
html.v5-on main.wsc-tool .wsc-editor::placeholder{color:#6B6B6B}
html.v5-on main.wsc-tool .wsc-bar{border-top:1px solid #EBEBEB;background:#FAFAFA;border-radius:0 0 12px 12px}
/* Empty result: a quieter surface, so it reads as "waiting" next to the white writing surface. */
html.v5-on main.wsc-tool .wsc-output:has(.wsc-out-empty) .wsc-out-body{background:#FAFAFA;border-radius:0 0 12px 12px}
html.v5-on main.wsc-tool .wsc-out-empty .wsc-empty-ic{color:#8A8A8A !important}
/* Paste card: a real, tactile button. No filled icon tile. */
html.v5-on main.wsc-tool .gm-dropcard{background:#fff;box-shadow:0 0 0 1px #E4E4E7,0 1px 2px rgba(16,24,40,.05),0 4px 12px rgba(16,24,40,.04);transition:box-shadow .15s ease,transform .15s ease}
html.v5-on main.wsc-tool .gm-dropcard:hover{box-shadow:0 0 0 1px #D4D4D8,0 2px 4px rgba(16,24,40,.06),0 8px 20px rgba(16,24,40,.06);transform:translateY(-1px)}
html.v5-on main.wsc-tool .gm-dropcard-ic{background:transparent !important;color:#525252 !important}

/* AI Detector highlights (Brian 1 Dec 2026): same colours, between the old strong and a too-light wash; medium-weight text. */
html.v5-on .ws-detector-sentence.ai, html.v5-on .wsc-det .ws-detector-sentence.ai { background: #FDEBEF; color: #6E1D34; font-weight: 500; }
html.v5-on .ws-detector-sentence.mixed, html.v5-on .wsc-det .ws-detector-sentence.mixed { background: #FFF7DF; color: #5E4500; font-weight: 500; }
html.v5-on .ws-detector-sentence.ai:hover, html.v5-on .ws-detector-sentence.active.ai { background: #FDE6EB; }
html.v5-on .ws-detector-sentence.mixed:hover, html.v5-on .ws-detector-sentence.active.mixed { background: #FFF3CF; }

/* Highlights switch moved into the Document toolbar (v5-shell.js placeTools). */
html.v5-on .wsc-pane-toolbar .wsc-icontools .v5-moved-tools { display: inline-flex; align-items: center; margin-right: 6px; }
/* Copy buttons: the green check after copying sits in the middle of the button, not on the left (Brian 1 Dec). */
html.v5-on .gm2-btn, html.v5-on .ws-copied { justify-content: center; }

/* AI Humanizer loader (Brian 1 Dec 2026): ring with the seconds + one word for the step, skeleton of the user's paragraphs below. */
/* Humanizer loading option B (Brian 1 Dec 2026): the user's own text, scanned sentence by sentence */
html.v5-on .wsc-out-state:has(.wsrb) { align-items: stretch; justify-content: flex-start; text-align: left; padding: 16px 20px 20px; overflow: hidden; overscroll-behavior: contain; touch-action: none; display: block; }
/* phone and tablet: the result card grows with its content, so the loader scrolls inside its own height */
@media (max-width: 1024px) { html.v5-on .wsc-out-state:has(.wsrb) { max-height: 56vh; } }
html.v5-on .wsrb { width: 100%; }
html.v5-on .wsrb-head { position: sticky; top: -16px; z-index: 1; display: flex; align-items: center; gap: 8px; margin: -16px -20px 12px; padding: 12px 20px 10px; background: #fff; box-shadow: 0 8px 10px -4px #fff; font-size: 13px; line-height: 18px; color: #6B6B6B; font-variant-numeric: tabular-nums; }
html.v5-on .wsrb-head b { font-weight: 500; color: #171717; }
html.v5-on .wsrb-time { margin-left: auto; white-space: nowrap; }
html.v5-on .wsrb-stop { flex: none; font: 500 12px/16px var(--v5-sans); color: #171717; background: #fff; border: 1px solid #EBEBEB; border-radius: 6px; padding: 3px 10px; cursor: pointer; transition: border-color .15s, background-color .15s; }
html.v5-on .wsrb-stop:hover { border-color: #D6D6D6; background: #FAFAFA; }
html.v5-on .wsrb-stop:focus-visible { outline: 2px solid #00A3FF; outline-offset: 2px; }
html.v5-on .wsrb-spin { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #E7F5FF; border-top-color: #00A3FF; animation: wsrb-spin .8s linear infinite; flex: none; }
@keyframes wsrb-spin { to { transform: rotate(360deg); } }
html.v5-on .wsrb-text { font-size: 14px; line-height: 23px; color: #B3B3B3; }
html.v5-on .wsrb-p { margin: 0 0 12px; }
html.v5-on .wsrb-h { font-weight: 600; margin: 2px 0 4px; }
html.v5-on .wsrb-li { display: flex; gap: 6px; }
html.v5-on .wsrb-mk { flex: none; }
html.v5-on .wsrb-s { border-radius: 4px; position: relative; transition: color .35s cubic-bezier(.23,1,.32,1), background-color .35s cubic-bezier(.23,1,.32,1); }
html.v5-on .wsrb-s { background-image: linear-gradient(#BFE3FF, #BFE3FF), linear-gradient(transparent, transparent); background-repeat: no-repeat; background-position: 0 100%, 0 0; background-size: 0% 2px, 0% 100%; }
html.v5-on .wsrb-s.is-done { color: #171717; background-image: linear-gradient(#BFE3FF, #BFE3FF), linear-gradient(transparent, transparent); background-size: 100% 2px, 0% 100%; transition: color .45s cubic-bezier(.23,1,.32,1), background-size .7s cubic-bezier(.23,1,.32,1); }
html.v5-on .wsrb-s.is-now { color: #171717; background-image: linear-gradient(#BFE3FF, #BFE3FF), linear-gradient(#E7F5FF, #E7F5FF); background-size: 0% 2px, var(--wsrb-p, 0%) 100%; transition: background-size .12s linear; }
html.v5-on .wsrb-p { position: relative; border-radius: 8px; }
html.v5-on .wsrb-p.is-complete { animation: wsrb-glow 1.1s cubic-bezier(.23,1,.32,1) 1; }
html.v5-on .wsrb-p.is-complete > :last-child::after { content: ""; display: inline-block; vertical-align: -3px; margin-left: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: #00A3FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
  animation: wsrb-pop .55s cubic-bezier(.34,1.56,.64,1) 1 both; }
@keyframes wsrb-pop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes wsrb-glow { 0% { box-shadow: 0 0 0 0 rgba(0,163,255,0); background-color: transparent; } 30% { box-shadow: 0 0 0 6px rgba(0,163,255,.10); background-color: rgba(0,163,255,.05); } 100% { box-shadow: 0 0 0 10px rgba(0,163,255,0); background-color: transparent; } }
html.v5-on .wsrb-text { transition: opacity .5s cubic-bezier(.23,1,.32,1), filter .5s cubic-bezier(.23,1,.32,1); }
html.v5-on .wsrb.is-final .wsrb-text { opacity: .28; filter: blur(1.5px); }

html.v5-on .wsrb-final { position: sticky; top: 50%; height: 0; z-index: 3; display: flex; justify-content: center; align-items: flex-start; pointer-events: none; }
html.v5-on .wsrb-final-card { display: none; align-items: center; gap: 12px; width: 400px; max-width: calc(100% - 24px); box-sizing: border-box; padding: 14px 18px 14px 16px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #EBEBEB, 0 16px 36px -10px rgba(23,23,23,.22); }
html.v5-on .wsrb.is-final .wsrb-final-card { display: flex; animation: wsrb-final-in .55s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes wsrb-final-in { from { opacity: 0; transform: translateY(-40%) scale(.82); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
html.v5-on .wsrb-final-spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid #E7F5FF; border-top-color: #00A3FF; animation: wsrb-spin .8s linear infinite; flex: none; }
html.v5-on .wsrb-final-t { font: 600 15px/20px var(--v5-sans); color: #171717; }
html.v5-on .wsrb-final-s { font-size: 13px; line-height: 18px; color: #6B6B6B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.v5-on .wsrb-final-txt { min-width: 0; flex: 1; text-align: left; }
html.v5-on .wsrb-final-s.is-swap { animation: wsrb-swap .35s cubic-bezier(.23,1,.32,1) both; }
@keyframes wsrb-swap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { html.v5-on .wsrb-final-s { white-space: normal; } }
/* locked while it runs: no selecting, a busy cursor, and a friendly note on hover */
html.v5-on .wsrb-text { cursor: progress; -webkit-user-select: none; user-select: none; }
html.v5-on .wsrb-hint { position: sticky; top: 50%; z-index: 2; display: flex; align-items: center; gap: 8px; width: fit-content; max-width: calc(100% - 24px); margin: 0 auto -38px; padding: 10px 16px 10px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #EBEBEB, 0 14px 32px -10px rgba(23,23,23,.22); font-size: 13px; line-height: 18px; color: #6B6B6B; opacity: 0; transform: translateY(-50%) scale(.96); transition: opacity .25s cubic-bezier(.23,1,.32,1), transform .25s cubic-bezier(.23,1,.32,1); pointer-events: none; }
html.v5-on .wsrb-hint b { color: #171717; font-weight: 600; }
html.v5-on .wsrb-hint-ic { width: 16px; height: 16px; color: #00A3FF; flex: none; }
html.v5-on .wsrb:has(.wsrb-text:hover):not(.is-final) .wsrb-hint { opacity: 1; transform: translateY(-50%) scale(1); }
html.v5-on .wsrb:has(.wsrb-text:hover):not(.is-final) .wsrb-text { opacity: .3; }
/* final state: the card carries the Stop button; the status line above goes away */
html.v5-on .wsrb.is-final .wsrb-head { visibility: hidden; }
html.v5-on .wsrb-final-card { pointer-events: auto; }
html.v5-on .wsrb-final-stop { margin-left: 4px; }
/* running: blurred text, status card in the middle (Brian 1 Dec 2026) */
html.v5-on .wsrb-head { position: sticky; top: 50%; z-index: 3; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 1px; align-items: center;
  width: 400px; max-width: calc(100% - 24px); box-sizing: border-box; margin: 0 auto -64px; padding: 12px 14px 12px 16px; transform: translateY(-50%);
  background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #EBEBEB, 0 16px 36px -10px rgba(23,23,23,.22); animation: wsrb-head-in .45s cubic-bezier(.23,1,.32,1) both; }
@keyframes wsrb-head-in { from { opacity: 0; transform: translateY(-40%) scale(.94); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
html.v5-on .wsrb-head .wsrb-spin { grid-row: 1 / 3; width: 22px; height: 22px; border-width: 2.5px; }
html.v5-on .wsrb-head > span:nth-child(2) { grid-column: 2; grid-row: 1; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.v5-on .wsrb-head .wsrb-time { grid-column: 2; grid-row: 2; margin: 0; font-size: 13px; line-height: 18px; color: #6B6B6B; }
html.v5-on .wsrb-head .wsrb-stop { grid-column: 3; grid-row: 1 / 3; }
html.v5-on .wsrb:not(.is-final) .wsrb-text { filter: blur(3.5px); }
html.v5-on .wsrb.is-final .wsrb-text { filter: blur(3.5px); }
html.v5-on .wsrb.is-final .wsrb-head { visibility: hidden; animation: none; }
/* the note unfolds inside the status card on hover (Brian 1 Dec 2026) */
html.v5-on .wsrb-head .wsrb-hint { grid-column: 1 / -1; grid-row: 3; position: static; display: flex; align-items: center; gap: 8px; width: auto; max-width: none; box-sizing: border-box;
  max-height: 0; margin: 0; padding: 0 0 0 34px; overflow: hidden; border-radius: 0; background: none; box-shadow: inset 0 1px 0 transparent;
  font-size: 13px; line-height: 18px; color: #6B6B6B; white-space: normal; opacity: 0; transform: translateY(-4px);
  transition: max-height .32s cubic-bezier(.23,1,.32,1), margin .32s cubic-bezier(.23,1,.32,1), padding .32s cubic-bezier(.23,1,.32,1), box-shadow .32s, opacity .2s ease, transform .4s cubic-bezier(.34,1.56,.64,1); pointer-events: none; }
html.v5-on .wsrb-head .wsrb-hint-ic { width: 14px; height: 14px; margin-left: -30px; margin-right: 8px; }
html.v5-on .wsrb:has(.wsrb-text:hover):not(.is-final) .wsrb-head .wsrb-hint,
html.v5-on .wsrb:not(.is-final) .wsrb-head:hover .wsrb-hint { max-height: 60px; margin-top: 10px; padding-top: 10px; box-shadow: inset 0 1px 0 #F0F0F0; opacity: 1; transform: none; transition-delay: 0s, 0s, 0s, 0s, .08s, .08s; }
html.v5-on .wsrb:has(.wsrb-text:hover):not(.is-final) .wsrb-head,
html.v5-on .wsrb:not(.is-final) .wsrb-head:hover { box-shadow: 0 0 0 1px #E5E5E5, 0 20px 44px -12px rgba(23,23,23,.26); }
html.v5-on .wsrb-head { transition: box-shadow .3s cubic-bezier(.23,1,.32,1); }
html.v5-on .wsrb::after { content: ""; display: block; position: sticky; bottom: -20px; height: 72px; margin-top: -72px; background: linear-gradient(rgba(255,255,255,0), #fff 85%); pointer-events: none; }
html.v5-on .wsrb-s-old-hover { content: attr(data-state); position: absolute; left: 0; bottom: calc(100% + 4px); white-space: nowrap; font: 500 11px/16px var(--v5-sans); padding: 2px 6px; border-radius: 6px; background: #171717; color: #fff; pointer-events: none; z-index: 2; }
@media (prefers-reduced-motion: reduce) { html.v5-on .wsrb-hint { transition: none; } html.v5-on .wsrb-final-spin, html.v5-on .wsrb.is-final .wsrb-final-card, html.v5-on .wsrb-final-s.is-swap, html.v5-on .wsrb-spin, html.v5-on .wsrb-p.is-complete, html.v5-on .wsrb-p.is-complete > :last-child::after { animation: none; } html.v5-on .wsrb-s, html.v5-on .wsrb-s.is-done, html.v5-on .wsrb-s.is-now { transition: none; } }
html.v5-on .wsc-out-state:has(.wsrc) { align-items: stretch; justify-content: flex-start; text-align: left; padding: 20px; }
html.v5-on .wsrc { width: 100%; }
html.v5-on .wsrc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
html.v5-on .wsrc-ring { width: 40px; height: 40px; flex: none; position: relative; }
html.v5-on .wsrc-ring svg { width: 40px; height: 40px; transform: rotate(-90deg); display: block; }
html.v5-on .wsrc-ring circle { fill: none; stroke-width: 3; }
html.v5-on .wsrc-ring .trk { stroke: #E7F5FF; }
html.v5-on .wsrc-ring .bar { stroke: #00A3FF; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
html.v5-on .wsrc-secs { position: absolute; inset: 0; display: grid; place-items: center; font: 600 12px/1 var(--v5-sans); color: #171717; font-variant-numeric: tabular-nums; }
html.v5-on .wsrc-text { display: grid; min-width: 0; }
html.v5-on .wsrc-title { font: 600 15px/22px var(--v5-sans); color: #171717; }
html.v5-on .wsrc-sub { font-size: 13px; line-height: 18px; color: #6B6B6B; font-variant-numeric: tabular-nums; }
html.v5-on .wsrc-lines { display: grid; gap: 10px; }
html.v5-on .wsrc-line { height: 10px; border-radius: 5px; background: #F2F2F2; position: relative; overflow: hidden; transition: background-color .6s cubic-bezier(.23,1,.32,1); }
html.v5-on .wsrc-line.is-done { background: #E7F5FF; }
html.v5-on .wsrc-line.is-now::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(0,163,255,.22), transparent); transform: translateX(-100%); animation: wsrc-sweep 1.2s cubic-bezier(.23,1,.32,1) infinite; }
html.v5-on .wsrc-gap { height: 8px; }
@keyframes wsrc-sweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { html.v5-on .wsrc-line.is-now::after { animation: none; } }

/* AI Detector: quiet Humanize bar pinned at the bottom of the analysis, only for red/yellow results (Brian 1 Dec 2026). */
html.v5-on .wsc-det:has(> .wsc-hum-bar) { flex: 1 0 auto; }
html.v5-on .wsc-hum-bar { order: 3; position: sticky; bottom: 0; z-index: 2; margin: auto -16px -16px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #FAFAFA; border-top: 1px solid #EBEBEB; }
html.v5-on .wsc-hum-bar-t { display: grid; min-width: 0; }
html.v5-on .wsc-hum-bar-t strong { font: 500 13px/18px var(--v5-sans); color: var(--v5-ink); }
html.v5-on .wsc-hum-bar-t span { font: 400 12px/16px var(--v5-sans); color: var(--v5-muted); }
html.v5-on .wsc-hum-bar-btn { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: #fff; color: #0089DB; font: 500 13px/18px var(--v5-sans); box-shadow: 0 0 0 1px #E0E0E4, 0 1px 2px rgba(16,24,40,.04); cursor: pointer; transition: background-color var(--v5-fast) var(--v5-ease); }
html.v5-on .wsc-hum-bar-btn:hover { background: #F5F5F5; }

/* Sign-up page (funnel review, 1 Dec 2026): no name field; one plain line under the button about the $0 trial. */
html.v5-on.v5-split-register .ws-auth-input:has(input[data-auth-field="name"]) { display: none; }
html.v5-on .v5-zero { margin: 10px 0 0; text-align: center; font: 400 13px/18px var(--v5-sans); color: var(--v5-muted); }

/* ===================== Thumbs up/down after every rewrite (Brian 2 Dec 2026, build-v5/feedback-thumbs/DESIGN.md) ===================== */
html.v5-on .wsc-foot-right:has(.v5-fb) { display: flex; align-items: center; gap: 8px; }
html.v5-on .v5-fb { display: inline-flex; align-items: center; gap: 2px; }
html.v5-on .v5-fb-btn { position: relative; width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--v5-muted); cursor: pointer;
  transition: background-color var(--v5-fast) var(--v5-ease), color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
html.v5-on .v5-fb-btn svg { width: 16px; height: 16px; }
html.v5-on .v5-fb-btn:hover { background: var(--v5-hover); color: var(--v5-ink); }
html.v5-on .v5-fb-btn:active { transform: scale(0.94); }
html.v5-on .v5-fb-btn:focus-visible { outline: 2px solid var(--v5-blue); outline-offset: 2px; }
html.v5-on .v5-fb-btn.on, html.v5-on .v5-fb-btn.on:hover { background: var(--v5-blue-tint); color: var(--v5-blue-text); }
html.v5-on .v5-fb-btn.on svg { animation: v5-fb-pop var(--v5-fast) var(--v5-ease) both; }
@media (hover: hover) {
  html.v5-on .v5-fb-btn::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; background: var(--v5-ink); color: #fff;
    font: 500 12px/16px var(--v5-sans); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--v5-fast) var(--v5-ease) 0s; z-index: 30; }
  html.v5-on .v5-fb-btn:hover::after { opacity: 1; transition-delay: 400ms; }
  html.v5-on .v5-fb-btn[aria-expanded="true"]::after { display: none; }
}
html.v5-on .wsc-out-footbar.v5-fb-thx .wsc-result-foot > :not(.v5-fb-thanks) { display: none !important; }
html.v5-on .v5-fb-thanks { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/18px var(--v5-sans); color: var(--v5-muted); white-space: nowrap; animation: v5-fb-fade var(--v5-fast) var(--v5-ease) both; }
html.v5-on .v5-fb-thanks svg { color: var(--v5-blue-text); flex: none; }

.v5-fb-pop { position: fixed; z-index: 200; width: 300px; box-sizing: border-box; padding: 16px; border-radius: 12px; background: #fff; color: var(--v5-ink); font: 400 13px/18px var(--v5-sans); -webkit-font-smoothing: antialiased;
  box-shadow: 0 0 0 1px rgba(23,23,23,.08), 0 4px 6px -1px rgba(23,23,23,.08), 0 12px 24px -8px rgba(23,23,23,.12); animation: v5-in var(--v5-fast) var(--v5-ease) both; }
.v5-fb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.v5-fb-title { font: 600 13px/18px var(--v5-sans); color: var(--v5-ink); }
.v5-fb-opt { font: 400 12px/16px var(--v5-sans); color: #737373; }
.v5-fb-row { display: flex; align-items: center; justify-content: space-between; height: 30px; margin: 0 -6px; padding: 0 6px; border-radius: 6px; color: var(--v5-ink-80); cursor: pointer; transition: background-color var(--v5-fast) var(--v5-ease); }
.v5-fb-row:hover { background: var(--v5-inset); }
.v5-fb-check { appearance: none; -webkit-appearance: none; flex: none; margin: 0; width: 18px; height: 18px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px rgba(23,23,23,.2); display: grid; place-items: center; cursor: pointer;
  transition: background-color var(--v5-fast) var(--v5-ease), box-shadow var(--v5-fast) var(--v5-ease); }
.v5-fb-check:checked { background: var(--v5-blue-btn); box-shadow: none; }
.v5-fb-check:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.v5-fb-check:focus-visible { outline: 2px solid var(--v5-blue); outline-offset: 2px; }
.v5-fb-ta { display: block; width: 100%; box-sizing: border-box; height: 72px; margin: 12px 0 0; padding: 10px 12px; border: 0; border-radius: 8px; resize: none; font: 400 13px/18px var(--v5-sans); color: var(--v5-ink); background: #fff;
  box-shadow: 0 0 0 1px rgba(23,23,23,.12); outline: none; transition: box-shadow var(--v5-fast) var(--v5-ease); }
.v5-fb-ta::placeholder { color: #737373; }
.v5-fb-ta:focus { box-shadow: 0 0 0 1px var(--v5-blue), 0 0 0 3px rgba(0,163,255,.15); }
.v5-fb-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.v5-fb-b { height: 32px; padding: 0 12px; border: 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font: 500 13px/16px var(--v5-display); letter-spacing: -0.13px; cursor: pointer;
  transition: background-color var(--v5-fast) var(--v5-ease), color var(--v5-fast) var(--v5-ease), transform 100ms var(--v5-ease); }
.v5-fb-b:active { transform: scale(0.98); }
.v5-fb-b.out { background: #fff; color: var(--v5-ink); border-radius: 7px; box-shadow: 0 0 0 1px rgba(23,23,23,.1), 0 4px 4px rgba(23,23,23,.04); }
.v5-fb-b.out:hover { background: var(--v5-inset); color: var(--v5-blue-text); }
.v5-fb-b.pri { background: var(--v5-blue-btn); color: #fff; font-weight: 600; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(23,23,23,.12); }
.v5-fb-b.pri:hover { background: var(--v5-blue-btn-hover); }
.v5-fb-b.pri:disabled { opacity: .5; cursor: default; background: var(--v5-blue-btn); }
.v5-fb-b:focus-visible { outline: 2px solid var(--v5-blue); outline-offset: 2px; }

/* Phone and tablet: 44 px thumbs, reasons in a bottom sheet. */
.v5-fb-scrim { position: fixed; inset: 0; z-index: 199; background: rgba(23,23,23,.32); animation: v5-fb-fade 200ms var(--v5-ease) both; }
.v5-fb-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; box-sizing: border-box; max-height: 90vh; overflow-y: auto; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: #fff; color: var(--v5-ink);
  box-shadow: 0 -12px 32px -12px rgba(23,23,23,.25); animation: v5-fb-up 240ms var(--v5-ease) both; -webkit-font-smoothing: antialiased; }
.v5-fb-grab { width: 36px; height: 4px; border-radius: 2px; background: #D9D9D9; margin: 0 auto 12px; }
.v5-fb-sheet .v5-fb-head { align-items: baseline; margin-bottom: 4px; }
.v5-fb-sheet .v5-fb-title { font: 600 17px/22px var(--v5-display); letter-spacing: -0.3px; }
.v5-fb-sheet .v5-fb-opt { font-size: 13px; line-height: 18px; }
.v5-fb-sheet .v5-fb-row { height: 44px; margin: 0; padding: 0; border-radius: 0; border-bottom: 1px solid #F2F2F2; font: 400 15px/20px var(--v5-sans); }
.v5-fb-sheet .v5-fb-row:hover { background: transparent; }
.v5-fb-sheet .v5-fb-check { width: 20px; height: 20px; border-radius: 6px; }
.v5-fb-sheet .v5-fb-ta { height: 80px; margin-top: 14px; padding: 12px; border-radius: 10px; font-size: 16px; line-height: 22px; }
.v5-fb-sheet .v5-fb-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.v5-fb-sheet .v5-fb-b { height: 44px; border-radius: 8px; font-size: 14px; }
@media (max-width: 1024px) {
  html.v5-on .v5-fb-btn { width: 44px; height: 44px; border-radius: 8px; }
  html.v5-on .v5-fb-btn svg { width: 18px; height: 18px; }
  html.v5-on .v5-fb { gap: 0; }
}

@keyframes v5-fb-pop { from { transform: scale(0.8); } }
@keyframes v5-fb-fade { from { opacity: 0; } }
@keyframes v5-fb-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  html.v5-on .v5-fb-btn.on svg, html.v5-on .v5-fb-thanks, .v5-fb-pop, .v5-fb-sheet, .v5-fb-scrim { animation: none; }
}
