/* ==========================================================================
   teamshare.chat (site 534) - the one stylesheet                         v19
   --------------------------------------------------------------------------
   Served as /css/tschat.css?v=N, linked from Default.aspx <head> directly
   after the responsive4 design bundle. Bump ?v=N in Default.aspx on every
   change to this file.

   Replaces: the <style> in SiteSettings 534 BodyCodeSnippetsOpening
   ("CSS MASTER", Marius) and the <style> blocks in page content of /plans,
   /portfolio and /choose-the-plan. Source dumps and catalogue:
   Claude outputs\design-inventory\injections\.

   Rules for this file
   - No !important unless justified in a comment on the same line.
     To beat the theme (hsfw.css), prefix with platform ids already in the
     DOM: #bdy (content), #wrapper (header + content + footer), #chdr,
     #mhdr, #ftr, #bdy_wrap, #main_wrap.
   - Colours only through the --ts-* tokens; pure white/black (incl. their
     rgba alpha forms) are the only literals.
   - Breakpoints: 1024 (header switch, as the theme) and 720 (phone):
     max-width:1023px / min-width:1024px / max-width:719px.
   - ASCII only; non-ASCII in content: values is written as a CSS escape.

   Sections (cascade order matters - append, do not reorder)
     0. Tokens (:root) + aliases for the master's names (#bdy)
     1. Base (#bdy font/colour, box-sizing, type scale, links, prose)
     2. Components (buttons, fields, card, table, notes, FAQ accordion)
     3. Migrated master sections
        3.1 legacy  3.2 homepage  3.3 how it works (ts-cf-*)
        3.4 final CTA (one definition)  3.5 text pages (legal)
        3.6 sitemap  3.7 contact form  3.8 wrappers + my account
        3.9 footer  (3.10 header -> 6.c)
     4. /plans + /portfolio (.tsp)
     5. /choose-the-plan (.tcp)
     6. Passes: b (app screens), c (header + drawer), d (auth), e (footer),
        f (partner-code block, v21), g (new company's details, v22)
   ========================================================================== */


/* ==========================================================================
   0. TOKENS
   ========================================================================== */
:root {
  --ts-brand: #0f55a0;
  --ts-brand-hover: #0d4a8c;
  --ts-brand-light: #1a7ac4;
  --ts-ink: #1d1d1f;
  --ts-gray: #6e6e73;
  --ts-line: #d2d2d7;
  --ts-bg-soft: #f5f5f7;
  --ts-white: #fff;
  --ts-red: #b91c1c;
  --ts-red-bg: #fdecec;
  --ts-ok: #1e7b4d;
  --ts-ok-bg: #eaf6ef;
  --ts-warn: #9a5b00;
  --ts-warn-bg: #fff5e6;
  --ts-accent: #f58232; /* v18: the platform orange - used ONLY by the My subscriptions pills (6.c bar + drawer, v19 6.d sidebar outline) */

  --ts-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ts-mono: Consolas, Menlo, monospace;

  --ts-max: 1200px;
  --ts-prose: 800px; /* v15: the one text measure, site-wide (was 720) */

  --ts-r-card: 12px;
  --ts-r-field: 8px;
  --ts-r-pill: 980px;

  --ts-s1: 4px;
  --ts-s2: 8px;
  --ts-s3: 12px;
  --ts-s4: 16px;
  --ts-s5: 24px;
  --ts-s6: 32px;
  --ts-s7: 48px;
  --ts-s8: 64px;
}

/* Aliases: the master's names, kept so any remaining var(--brand) etc.
   (C# styles, BodyCodeSnippets scripts, content) resolve to the tokens.
   --ok/--off/--soon were used without a definition (catalogue flag 7). */
#bdy {
  --brand: var(--ts-brand);
  --brand-hover: var(--ts-brand-hover);
  --brand-light: var(--ts-brand-light);
  --ink: var(--ts-ink);
  --gray: var(--ts-gray);
  --line: var(--ts-line);
  --bg-soft: var(--ts-bg-soft);
  --font: var(--ts-font);
  --ok: var(--ts-ok);
  --off: var(--ts-gray);
  --soon: var(--ts-warn);
}


/* ==========================================================================
   1. BASE
   Type scale defaults use :where() (zero specificity) so any class rule -
   the theme's, the app screens' C# styles (.tsa/.tsm, pass b) or the
   sections below - still wins. App roots are excluded outright.
   ========================================================================== */
/* v17: reserve the scrollbar's width on every page, so a page that gains or
   loses its vertical scrollbar while loading does not shift sideways */
html { scrollbar-gutter: stable; }

#bdy {
  font-family: var(--ts-font);
  color: var(--ts-ink);
  padding-bottom: 0;
}
#bdy section,
#bdy section * { box-sizing: border-box; }

:where(#bdy) h1:not(:where(.tsa *, .tsm *, .tsw *, #main_wrap *)) {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
:where(#bdy) h2:not(:where(.tsa *, .tsm *, .tsw *, #main_wrap *)) {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
:where(#bdy) h3:not(:where(.tsa *, .tsm *, .tsw *, #main_wrap *)) {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
:where(#bdy) p:not(:where(.tsa *, .tsm *, .tsw *, #main_wrap *)) {
  font-size: 17px;
  line-height: 1.6;
}
:where(#bdy) :where(small, .ts-small):not(:where(.tsa *, .tsm *, .tsw *, #main_wrap *)) { font-size: 14px; }
:where(#bdy) .ts-lead {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ts-gray);
}
:where(#bdy) a { color: var(--ts-brand); }
:where(#bdy) a:hover { color: var(--ts-brand-hover); }
/* v15: the one text measure. Zero specificity, so it is the default for every
   paragraph in content (marketing, text pages, .tsp, .tcp, 6.b app text) and
   every list in a section; the only other text caps in the file restate it.
   Lists outside sections are left alone (account / app menus can be lists). */
:where(#bdy) p,
:where(#bdy) section ul,
:where(#bdy) section ol { max-width: var(--ts-prose); }

@media (max-width: 719px) {
  :where(#bdy) h1:not(:where(.tsa *, .tsm *, .tsw *, #main_wrap *)) { font-size: 36px; }
  :where(#bdy) h2:not(:where(.tsa *, .tsm *, .tsw *, #main_wrap *)) { font-size: 28px; }
  :where(#bdy) h3:not(:where(.tsa *, .tsm *, .tsw *, #main_wrap *)) { font-size: 20px; }
  :where(#bdy) p:not(:where(.tsa *, .tsm *, .tsw *, #main_wrap *)) { font-size: 16px; }
  :where(#bdy) .ts-lead { font-size: 18px; }
}


/* ==========================================================================
   2. COMPONENTS (generic; app-screen components .tsa/.tsm/.tsk/.tsc = pass b)
   ========================================================================== */

/* ---- Buttons ---- */
#bdy .ts-btn {
  display: inline-block;
  box-sizing: border-box;
  min-height: 44px;
  font-family: var(--ts-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--ts-r-pill);
  transition: background .15s, transform .15s, border-color .15s, color .15s;
  margin: 6px 6px 0;
  cursor: pointer;
}
#bdy .ts-btn:focus-visible {
  outline: 2px solid var(--ts-brand-light);
  outline-offset: 2px;
}
#bdy .ts-btn.ts-btn-primary {
  background: var(--ts-brand);
  border-color: var(--ts-brand);
  color: var(--ts-white);
}
#bdy .ts-btn.ts-btn-primary:hover {
  background: var(--ts-brand-hover);
  border-color: var(--ts-brand-hover);
  color: var(--ts-white);
  transform: scale(1.02);
}
#bdy .ts-btn.ts-btn-ghost {
  background: transparent;
  color: var(--ts-brand);
}
#bdy .ts-btn.ts-btn-ghost:hover { color: var(--ts-brand-hover); }
#bdy .ts-btn.ts-btn-outline {
  background: transparent;
  color: var(--ts-brand);
  border-color: var(--ts-brand);
}
#bdy .ts-btn.ts-btn-outline:hover {
  background: var(--ts-brand);
  color: var(--ts-white);
}
#bdy .ts-btn.ts-btn-secondary {
  background: var(--ts-bg-soft);
  border-color: var(--ts-line);
  color: var(--ts-ink);
}
#bdy .ts-btn.ts-btn-secondary:hover {
  border-color: var(--ts-gray);
  color: var(--ts-ink);
}

/* ---- Form fields (#bdy only: the platform login/account controls are pass d) ---- */
#bdy :where(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]):not([type=hidden]):not([type=file]):not([type=range]):not([type=color]), select, textarea) {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  font-family: var(--ts-font);
  font-size: 16px;
  color: var(--ts-ink);
  background: var(--ts-white);
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-field);
}
#bdy :where(input:not([type=checkbox]):not([type=radio]), select, textarea):focus-visible {
  outline: 2px solid var(--ts-brand-light);
  outline-offset: 2px;
  border-color: var(--ts-brand);
}

/* ---- Card ---- */
#bdy .ts-card {
  background: var(--ts-white);
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  padding: var(--ts-s5);
}

/* ---- Table (pattern; stacks into labelled rows under 720 via td[data-label]) ---- */
#bdy .ts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
#bdy .ts-table th {
  background: var(--ts-bg-soft);
  color: var(--ts-ink);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ts-line);
}
#bdy .ts-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ts-line);
  vertical-align: top;
}
@media (max-width: 719px) {
  #bdy .ts-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  #bdy .ts-table,
  #bdy .ts-table tbody,
  #bdy .ts-table tr,
  #bdy .ts-table td { display: block; width: 100%; }
  #bdy .ts-table tr {
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-r-field);
    padding: var(--ts-s2) var(--ts-s3);
    margin-bottom: var(--ts-s3);
  }
  #bdy .ts-table td {
    display: flex;
    gap: var(--ts-s3);
    border-bottom: 0;
    padding: var(--ts-s1) 0;
  }
  #bdy .ts-table td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 40%;
    font-weight: 600;
    color: var(--ts-gray);
  }
}

/* ---- Notices ---- */
#bdy .ts-note {
  padding: var(--ts-s4) 20px;
  border-radius: var(--ts-r-card);
  border-left: 5px solid var(--ts-brand);
  background: var(--ts-bg-soft);
  color: var(--ts-ink);
}
#bdy .ts-note.ts-note-ok { border-left-color: var(--ts-ok); background: var(--ts-ok-bg); }
#bdy .ts-note.ts-note-warn { border-left-color: var(--ts-warn); background: var(--ts-warn-bg); }
#bdy .ts-note.ts-note-error {
  border-left-color: var(--ts-red);
  background: color-mix(in srgb, var(--ts-red) 8%, var(--ts-white));
}

/* ---- FAQ accordion (master S8; built by faq.js) ---- */
#main_wrap.mw_uac_infoc_item .uac_ic_item_content > h1 {
  text-align: left; /* v13: one alignment rule - left */
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ts-ink);
  margin: 0 0 32px;
  padding-top: 16px;
  font-family: var(--ts-font);
}
#main_wrap.mw_uac_infoc_item .uac_ic_item_content {
  max-width: 820px;
  margin-left: 0; /* v16: one left edge */
  margin-right: 0;
  font-family: var(--ts-font);
}
#bdy .ts-faq-item {
  max-width: var(--ts-prose); /* v15: the accordion column on the measure (was 820) */
  margin-left: 0; /* v13: anchored left with the text */
  margin-right: 0;
  border-bottom: 1px solid var(--ts-line);
}
#bdy .ts-faq-item:first-of-type { border-top: 1px solid var(--ts-line); }
#bdy .ts-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 22px 4px;
  font-family: var(--ts-font);
  font-size: 21px;
  font-weight: 600;
  color: var(--ts-ink);
  letter-spacing: -0.01em;
  transition: color .15s;
}
#bdy .ts-faq-q:hover { color: var(--ts-brand); }
#bdy .ts-faq-q:focus-visible {
  outline: 2px solid var(--ts-brand-light);
  outline-offset: 2px;
}
#bdy .ts-faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}
#bdy .ts-faq-icon::before,
#bdy .ts-faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ts-brand);
  border-radius: 2px;
  transition: transform .2s ease;
}
#bdy .ts-faq-icon::before {
  top: 50%;
  left: 0;
  width: 22px;
  height: 2px;
  transform: translateY(-50%);
}
#bdy .ts-faq-icon::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 22px;
  transform: translateX(-50%);
}
#bdy .ts-faq-open > .ts-faq-q .ts-faq-icon::after { transform: translateX(-50%) scaleY(0); }
#bdy .ts-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
}
#bdy .ts-faq-open > .ts-faq-a {
  max-height: none;
  padding: 0 4px 22px;
}
#bdy .ts-faq-sub {
  max-width: none;
  margin: 0;
}
#bdy .ts-faq-sub > .ts-faq-q {
  font-size: 17px;
  padding: 14px 4px 14px 16px;
}
#bdy .ts-faq-sub .ts-faq-icon { width: 16px; height: 16px; }
#bdy .ts-faq-sub .ts-faq-icon::before { width: 16px; }
#bdy .ts-faq-sub .ts-faq-icon::after { height: 16px; }
#bdy .ts-faq-sub.ts-faq-open > .ts-faq-a { padding: 0 4px 16px 16px; }
#bdy .ts-faq-a p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ts-ink);
}
#bdy .ts-faq-a a { color: var(--ts-brand); text-decoration: none; }
#bdy .ts-faq-a a:hover { text-decoration: underline; }


/* ==========================================================================
   3. MIGRATED MASTER SECTIONS (re-tokenised, de-duplicated)
   ========================================================================== */

/* ---- 3.1 Legacy (master lines 3-8) ---- */
.category_card .info_desc { display: none; }
div#nav_history { display: none; }

/* ---- 3.2 Homepage (master S1) ---- */
#bdy section[class*="ts-"],
#bdy section[class*="ts-"] * { font-family: var(--ts-font); }

#bdy .ts-hero,
#bdy .ts-problem,
#bdy .ts-steps,
#bdy .ts-plans,
#bdy .ts-proof,
#bdy .ts-demo {
  max-width: var(--ts-max);
  margin-left: auto;
  margin-right: auto;
  padding: 64px 32px;
  text-align: left; /* v13: left everywhere; .ts-problem (banner) re-centres below */
}
#bdy section h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ts-ink);
  margin: 0 0 16px;
  line-height: 1.15;
}
#bdy section h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ts-ink);
  margin: 0 0 8px;
}
#bdy section p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ts-gray);
  margin: 0 0 12px; /* v13: prose anchored left */
  max-width: var(--ts-prose);
}

#bdy .ts-hero {
  max-width: none;
  padding: 88px 32px 72px;
  background: linear-gradient(180deg, var(--ts-bg-soft) 0%, var(--ts-white) 100%);
  border-radius: 0;
}
#bdy .ts-hero > * {
  max-width: none; /* v13: the column comes from the section padding (end of 3.3) */
  margin-left: 0;
  margin-right: 0;
}
#bdy .ts-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ts-ink);
  max-width: none; /* v14: headlines are not prose - they wrap at the section width */
  margin: 0 0 20px;
}
#bdy .ts-hero .ts-hero-sub {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ts-gray);
  max-width: var(--ts-prose); /* v15 */
  margin: 0 0 28px;
  line-height: 1.45;
}

#bdy .ts-problem {
  background: var(--ts-ink);
  max-width: none;
  padding: 72px 32px;
  text-align: center; /* v13: full-width banner - stays centred */
}
#bdy .ts-problem h2 { color: var(--ts-white); }
#bdy .ts-problem p {
  color: rgba(255, 255, 255, .75);
  font-size: 19px;
  max-width: var(--ts-prose); /* v15 */
  margin-left: auto;
  margin-right: auto;
}

#bdy .ts-steps { padding-bottom: 40px; }
#bdy .ts-steps > h2 { margin-bottom: 48px; }
#bdy .ts-step {
  display: inline-block;
  vertical-align: top;
  width: calc(33.333% - 24px);
  margin: 0 10px 32px;
  padding: 28px 24px;
  background: var(--ts-bg-soft);
  border-radius: var(--ts-r-card);
  text-align: left;
}
#bdy .ts-step p { font-size: 15px; margin: 0; }
#bdy .ts-steps-link a {
  font-size: 17px;
  color: var(--ts-brand);
  text-decoration: none;
  font-weight: 500;
}
#bdy .ts-steps-link a:hover { text-decoration: underline; }

#bdy .ts-plans {
  background: var(--ts-bg-soft);
  max-width: none;
}
#bdy .ts-plans > h2 {
  margin-bottom: 44px;
  margin-left: 0;
  margin-right: 0;
}
#bdy .ts-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--ts-max);
  margin: 0;
}
#bdy .ts-plan-banner {
  background: var(--ts-white);
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  padding: 32px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
#bdy .ts-plan-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}
#bdy .ts-plan-featured {
  border-color: var(--ts-brand);
  border-width: 2px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ts-brand) 12%, transparent);
}
#bdy .ts-plan-banner h3 { font-size: 22px; margin-bottom: 10px; }
#bdy .ts-plan-price {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ts-brand);
  margin: 0 0 14px;
}
#bdy .ts-plan-period {
  font-size: 15px;
  font-weight: 500;
  color: var(--ts-gray);
}
#bdy .ts-plan-pitch {
  font-size: 15px;
  color: var(--ts-ink);
  margin: 0 0 10px;
  flex-grow: 0;
}
#bdy .ts-plan-for {
  font-size: 14px;
  color: var(--ts-gray);
  margin: 0 0 22px;
  flex-grow: 1;
}
#bdy .ts-plan-banner .ts-btn {
  margin: 0;
  text-align: center;
  width: 100%;
}
#bdy .ts-plans-compare { margin-top: 36px; }
#bdy .ts-plans-compare a {
  font-size: 17px;
  color: var(--ts-brand);
  text-decoration: none;
  font-weight: 500;
}
#bdy .ts-plans-compare a:hover { text-decoration: underline; }

#bdy .ts-proof p { font-size: 19px; max-width: var(--ts-prose); } /* v15 */
#bdy .ts-proof .ts-proof-note {
  font-size: 15px;
  color: var(--ts-gray);
  margin-top: 18px;
}

#bdy .ts-demo {
  background: var(--ts-bg-soft);
  max-width: none;
  border-radius: 0;
}
#bdy .ts-demo h2 {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 1023px) {
  #bdy .ts-plans-grid { grid-template-columns: repeat(2, 1fr); }
  #bdy .ts-step { width: 100%; margin: 0 0 16px; display: block; }
}
@media (max-width: 719px) {
  #bdy .ts-plans-grid { grid-template-columns: 1fr; }
  #bdy .ts-hero,
  #bdy .ts-problem,
  #bdy .ts-steps,
  #bdy .ts-plans,
  #bdy .ts-proof,
  #bdy .ts-demo { padding: 48px 20px; }
}

/* ---- 3.3 How it works / How do I pay (master S5, ts-cf-*) ---- */
#bdy .ts-cf-hero,
#bdy .ts-cf-step,
#bdy .ts-cf-extra {
  width: auto;
  position: relative;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  font-family: var(--ts-font);
}
#bdy .ts-cf-hero {
  background: linear-gradient(180deg, var(--ts-bg-soft) 0%, var(--ts-white) 100%);
  padding: 80px 32px 64px;
  text-align: left; /* v13 */
}
#bdy .ts-cf-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ts-ink);
  max-width: none; /* v14 */
  margin: 0 0 20px;
}
#bdy .ts-cf-hero p {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ts-gray);
  max-width: var(--ts-prose); /* v15 */
  margin: 0;
  line-height: 1.5;
}
#bdy .ts-cf-step { padding: 72px 32px; }
#bdy .ts-cf-alt { background: var(--ts-bg-soft); }
#bdy .ts-cf-step-inner {
  max-width: 900px;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
#bdy .ts-cf-num {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  color: var(--ts-brand);
  opacity: 0.25;
  flex-shrink: 0;
  letter-spacing: -0.03em;
}
#bdy .ts-cf-text h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ts-ink);
  margin: 0 0 16px;
  line-height: 1.15;
}
#bdy .ts-cf-text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ts-gray);
  margin: 0 0 12px;
  max-width: var(--ts-prose); /* v15 (was 640) */
}
#bdy .ts-cf-extra { padding: 72px 32px; }
#bdy .ts-cf-extra-inner {
  max-width: 1000px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
#bdy .ts-cf-extra-inner.ts-cf-grid4 {
  max-width: var(--ts-max);
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  box-sizing: border-box;
}
#bdy .ts-cf-card {
  background: var(--ts-white);
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  padding: 32px;
}
#bdy .ts-cf-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ts-ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
#bdy .ts-cf-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ts-gray);
  margin: 0;
}
#bdy .ts-cf-cta-btns { margin-top: 24px; }
/* v13: one left content edge. The full-width sections pad their content to
   the same column as the boxed ones (.ts-steps / .ts-proof: max-width
   --ts-max centred + 32px padding), so every heading starts at the same x. */
@media (min-width: 1024px) {
  #bdy .ts-hero,
  #bdy .ts-plans,
  #bdy .ts-demo,
  #bdy .ts-cf-hero,
  #bdy .ts-cf-step,
  #bdy .ts-cf-extra {
    padding-left: max(32px, calc((100% - var(--ts-max)) / 2 + 32px));
    padding-right: max(32px, calc((100% - var(--ts-max)) / 2 + 32px));
  }
}

@media (max-width: 1023px) {
  #bdy .ts-cf-extra-inner.ts-cf-grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 719px) {
  #bdy .ts-cf-extra-inner.ts-cf-grid4 { grid-template-columns: 1fr; }
  #bdy .ts-cf-step-inner { flex-direction: column; gap: 12px; }
  #bdy .ts-cf-extra-inner { grid-template-columns: 1fr; }
}

/* ---- 3.4 Final CTA - one definition (was 8 in the master: lines 60, 272,
   322, 767, 880, 1225, 1301, 1307; values = today's computed winner) ---- */
#bdy .ts-final-cta {
  display: block;
  visibility: visible;
  width: auto;
  max-width: 1160px;
  position: static;
  left: auto;
  right: auto;
  margin: 0 auto;
  padding: 72px 32px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(135deg, var(--ts-brand) 0%, var(--ts-brand-light) 100%);
  text-align: center;
  box-sizing: border-box;
  font-family: var(--ts-font);
}
#bdy .ts-final-cta h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ts-white);
  margin: 0 0 24px;
}
#bdy .ts-final-cta p {
  font-size: 18px;
  color: rgba(255, 255, 255, .92);
  margin: 0 auto 8px;
  max-width: var(--ts-prose); /* v15 */
  padding: 0;
}
#bdy .ts-final-cta .ts-btn.ts-btn-primary {
  background: var(--ts-white);
  color: var(--ts-brand);
  border: 2px solid var(--ts-white);
}
#bdy .ts-final-cta .ts-btn.ts-btn-primary:hover {
  background: var(--ts-bg-soft);
  color: var(--ts-brand);
}
#bdy .ts-final-cta .ts-btn.ts-btn-ghost {
  background: transparent;
  color: var(--ts-white);
  border: 2px solid rgba(255, 255, 255, .85);
}
#bdy .ts-final-cta .ts-btn.ts-btn-ghost:hover {
  background: rgba(255, 255, 255, .14);
  color: var(--ts-white);
}
#bdy .ts-final-cta .ts-btn:focus-visible { outline-color: var(--ts-white); }
#bdy:has(> .ts-final-cta:last-child) { padding-bottom: 0; }

/* ---- 3.5 Text pages: legal, who-we-are, sitemap ... (master S6 + the
   S12 overrides folded in). A page is a "text page" when #bdy has no ts-
   hero/problem section and no app root as a direct child. ---- */
@media (min-width: 1024px) {
  #bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) {
    width: 1160px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 48px 32px 64px;
    background: var(--ts-white);
    box-shadow: 0 8px 34.2px 3.8px rgba(0, 0, 0, .05);
    border-radius: 0 0 15px 15px;
  }
}
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) {
  padding-bottom: 64px;
}
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > h1:first-of-type {
  width: auto;
  position: static;
  left: auto;
  right: auto;
  margin: 0;
  background: transparent;
  padding: 56px 0 12px;
  max-width: none; /* v14 */
  text-align: left; /* v13 */
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ts-ink);
  font-family: var(--ts-font);
}
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > h1:first-of-type + p {
  width: auto;
  position: static;
  left: auto;
  right: auto;
  margin: 0 0 40px;
  max-width: var(--ts-prose); /* v15: the lead shares the one measure */
  background: transparent;
  padding: 0 0 40px;
  text-align: left; /* v13 */
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ts-gray);
  line-height: 1.5;
  border-bottom: none;
  box-sizing: border-box;
  font-family: var(--ts-font);
}
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > h1:first-of-type + p[style*="text-align"] { text-align: left !important; } /* !important: beats an inline style="text-align:right" in page content (legal pages, Last updated line); v13 left */
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > h2,
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > h3,
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > p:not(h1:first-of-type + p),
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ul,
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ol {
  max-width: var(--ts-prose);
  margin-left: 0; /* v13: anchored left, same edge as the h1 */
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  font-family: var(--ts-font);
}
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ol { padding-left: 20px; }
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > h2,
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > h3 { max-width: none; } /* v15: headings uncapped */
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ts-ink);
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 12px;
}
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ts-ink);
  margin-top: 24px;
  margin-bottom: 8px;
}
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > p,
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ul,
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ol {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ts-ink);
  margin-bottom: 14px;
}

/* ---- 3.5b One content left edge (v16) ----
   At 1024 and up every page's text starts at #bdy left + 32px (the section
   pages' edge) and ends 32px inside the box; under 1024 the gutter is 20px.
   #wrapper prefix: the theme's #bodyclass.home #bdy {padding:0} (2-1-0) beat
   the 3.5 book box (1-1-1), so text pages sat at #bdy left + 0. Only the
   padding is restated here - the 3.5 width:1160px stays theme-governed so
   1024-1159 viewports cannot overflow. Platform pages (#bdy > #main_wrap:
   blog list, my-account, info-center) are text pages by the selector and get
   the same box; the :has(> #main_wrap) line states it for the blog, whose
   template sets a 48px theme padding. */
@media (min-width: 1024px) {
  #wrapper #bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)),
  #wrapper #bdy:has(> #main_wrap) {
    padding: 48px 32px 64px;
  }
}
@media (max-width: 1023px) {
  #wrapper #bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)),
  #wrapper #bdy:has(> #main_wrap) {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ---- 3.6 Sitemap list (master S7) ---- */
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ul {
  max-width: var(--ts-prose);
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--ts-font);
}
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ul li {
  list-style: none;
  margin: 0;
  padding: 0;
}
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ul > li { border-bottom: 1px solid var(--ts-line); }
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ul > li:last-child { border-bottom: none; }
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ul a {
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  color: var(--ts-ink);
  text-decoration: none;
  transition: color .15s, padding-left .15s;
}
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ul a:hover {
  color: var(--ts-brand);
  padding-left: 12px;
}
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ul ul {
  margin: 0 0 8px 0;
  padding-left: 24px;
  border-left: 2px solid var(--ts-bg-soft);
  list-style: none;
}
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ul ul > li { border-bottom: none; }
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ul ul a {
  padding: 9px 4px;
  font-size: 15px;
  color: var(--ts-gray);
}
#bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ul ul a:hover { color: var(--ts-brand); }

/* ---- 3.6b Gutters under 720 (R2: sections 48px 20px; v5, fixed v13) ----
   Text pages: #bdy gets the 20px gutter and h1 / h2 / h3 / p / lists sit on
   that edge. v13: #wrapper prefix - the theme's #bodyclass.home #bdy
   {padding:0} (2-1-0; template 191 puts .home on every content page) beat
   the old #bdy:not(...) (1-1-1), and 3.5's > p:not(h1:first-of-type + p)
   (1-2-4) kept the 32px on p. Section pages: every direct-child section
   gets 48px 20px. */
@media (max-width: 719px) {
  #wrapper #bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) {
    padding-left: 20px;
    padding-right: 20px;
  }
  #wrapper #bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > h1,
  #wrapper #bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > h2,
  #wrapper #bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > h3,
  #wrapper #bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > p,
  #wrapper #bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ul {
    padding-left: 0;
    padding-right: 0;
  }
  #wrapper #bdy:not(:has(> section.ts-hero, > section.ts-cf-hero, > section.ts-problem, > .tsa, > .tsm, > .tsw, > .tcp, > .tsp)) > ol {
    padding-left: 20px;
    padding-right: 0;
  }
  #bdy > section[class] {
    padding: 48px 20px;
  }
}

/* ---- 3.7 Contact form (master S7b) ---- */
#bdy .page_section,
#bdy .section_title,
#bdy .contact_page_form {
  max-width: 760px;
  margin-left: 0; /* v13: anchored left with the text above */
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}
#bdy .section_title { max-width: none; } /* v15: holds an h2 - headings uncapped */
#bdy .section_title h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ts-ink);
  margin: 32px 0 16px;
}
#bdy .contact_page_form .__c {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
#bdy .contact_page_form .__e { flex: 1 1 300px; }
#bdy .contact_page_form input,
#bdy .contact_page_form textarea {
  width: 100%;
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-field);
  padding: 10px 12px;
  font-size: 15px;
  font-family: var(--ts-font);
  box-sizing: border-box;
}
#bdy .contact_page_form label { font-size: 14px; color: var(--ts-gray); }

/* ---- 3.8 Theme wrappers (S8/S12/S13 merged) + My account leftovers ---- */
#wrapper #bdy_wrap {
  padding: 0;
  margin: 0;
  background: transparent;
}
#wrapper #bdy_wrap::before,
#wrapper #bdy_wrap::after { display: none; }
#wrapper #main_wrap {
  margin: 0;
  padding: 0;
}
/* My account: hide e-commerce sections. RO URLs as in the master; v18 (SEQ 34)
   adds the EN /my-account ones - Companies, Delivery addresses, Orders and
   Messages come from a C# list in profile.ascx.cs (repTabs, shared with
   Account details), so they are hidden here, not commented out in markup.
   The ?show= pages stay reachable by URL. */
#wrapper a[href*="contul-meu?show=addresses"],
#wrapper a[href*="contul-meu?show=orders"],
#wrapper a[href*="contul-meu?show=messages"],
#wrapper a[href*="contul-meu?show=companies"],
#wrapper a[href*="contul-meu?c=disable_account"],
#wrapper a[href*="my-account?show=addresses"],
#wrapper a[href*="my-account?show=orders"],
#wrapper a[href*="my-account?show=messages"],
#wrapper a[href*="my-account?show=companies"],
#wrapper a[href*="my-account?c=disable_account"],
#wrapper li:has(> a[href*="contul-meu?show=addresses"]),
#wrapper li:has(> a[href*="contul-meu?show=orders"]),
#wrapper li:has(> a[href*="contul-meu?show=messages"]),
#wrapper li:has(> a[href*="contul-meu?show=companies"]),
#wrapper li:has(> a[href*="contul-meu?c=disable_account"]),
#wrapper li:has(> a[href*="my-account?show=addresses"]),
#wrapper li:has(> a[href*="my-account?show=orders"]),
#wrapper li:has(> a[href*="my-account?show=messages"]),
#wrapper li:has(> a[href*="my-account?show=companies"]),
#wrapper li:has(> a[href*="my-account?c=disable_account"]) { display: none; }

/* ---- 3.9 Footer (master S3; #ftr lives outside #bdy) ---- */
#wrapper #ftr .ts-trust {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 18px;
}
#wrapper #ftr .ts-trust + .ts-trust { margin-top: 14px; }
#wrapper #ftr .ts-trust-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ts-gray);
  font-weight: 600;
}
#wrapper #ftr .ts-trust-logo {
  max-height: 28px;
  height: auto;
  width: auto;
  max-width: 130px;
  opacity: 0.9;
  filter: grayscale(100%) contrast(1.15) brightness(0.55);
  transition: opacity .15s, filter .15s;
}
#wrapper #ftr .ts-trust-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}
#wrapper #ftr img[src*="stripe" i],
#wrapper #ftr img[src*="OpenAI" i],
#wrapper #ftr img[src*="claude" i] {
  height: 26px;
  width: auto;
  max-width: 120px;
}
/* pass e: .faux_h2 ("Have a question?" + company, fed by FOOTER_RIGHT_MENU_TITLE)
   retired - that text is column 4 of the label footer, see 6.e */
#wrapper #ftr a {
  color: var(--ts-gray);
  text-decoration: none;
  transition: color .15s;
}
#wrapper #ftr a:hover { color: var(--ts-brand); }
/* pass e: .faux_h1 (FOOTER_COL1_TITLE / COL2_TITLE) retired - headings are
   .ts-ftr-h in 6.e; the control's .faux_h1 is hidden there */
/* theMarketer newsletter embed */
.mktr-embedded-form-container,
[id^="mktr-embedded-form-container"] {
  display: block !important; /* beats the embed's inline style="display:none" */
  margin-top: 4px;
}
#wrapper #ftr #ftr_newsletter { display: block; }
#wrapper #ftr .nl_form { display: none; }
#wrapper #ftr .ftr_h3 { display: none; }
#wrapper #ftr .mktr-embedded-form-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
#wrapper #ftr .mktr-embedded-form-container * {
  max-width: 100%;
  box-sizing: border-box;
}
#wrapper #ftr .mktr-embedded-form-container input[type="email"],
#wrapper #ftr .mktr-embedded-form-container input[type="text"] { width: 100%; }
#wrapper #ftr .mktr-embedded-form-container button { white-space: nowrap; }
/* pass e: .company-data retired (no markup used it); company block = .ts-ftr-company in 6.e */
#wrapper #ftr input[type="text"],
#wrapper #ftr input[type="email"] {
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-field);
  padding: 9px 12px;
  font-size: 14px;
}
#wrapper #ftr button[type="submit"] {
  background: var(--ts-brand);
  color: var(--ts-white);
  border: none;
  border-radius: var(--ts-r-field);
  padding: 9px 18px;
  font-size: 14px;
  cursor: pointer;
}
#wrapper #ftr button[type="submit"]:hover { background: var(--ts-brand-hover); }
/* pass e: the desktop three-cell flex layout (#ftr .__c / .__e, .logo) retired -
   the layout is the .ts-ftr grid in 6.e and cells 2 + 3 are hidden there */

/* ---- 3.10 Header: moved to section 6.c (pass c). The rule that hid the
   burger (.mhdr_toggle_nav {display:none}) was never migrated. ---- */


/* ==========================================================================
   4. /plans + /portfolio (.tsp)
   Token mapping: --tsp-blue -> --ts-brand, --tsp-blue-dark -> --ts-brand-hover,
   --tsp-ink -> --ts-ink, --tsp-muted -> --ts-gray, --tsp-line -> --ts-line,
   --tsp-paper -> --ts-white, --tsp-sky -> --ts-bg-soft,
   --tsp-sun -> --ts-brand-light (focus ring, match bars, quote accent).
   Shared base = /plans where the two pages diverged; /portfolio extras follow.
   ========================================================================== */
#bdy .tsp {
  color: var(--ts-ink);
  font-family: inherit;
  line-height: 1.55;
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}
@media (min-width: 1024px) {
  /* v16: one left edge - the box spans #bdy, text at #bdy left + 32 */
  #bdy .tsp {
    max-width: none;
    margin: 0;
    padding: 48px 32px 24px;
  }
}
#bdy .tsp *,
#bdy .tsp *::before,
#bdy .tsp *::after { box-sizing: border-box; }
#bdy .tsp h1,
#bdy .tsp h2,
#bdy .tsp h3 {
  color: var(--ts-ink);
  margin: 0;
}
#bdy .tsp p { margin: 0; }
#bdy .tsp a { color: var(--ts-brand); }
#bdy .tsp a:focus-visible,
#bdy .tsp button:focus-visible,
#bdy .tsp input:focus-visible,
#bdy .tsp summary:focus-visible {
  outline: 2px solid var(--ts-brand-light);
  outline-offset: 2px;
  border-radius: 4px;
}
#bdy .tsp .tsp-head {
  max-width: none; /* v14: was 760 - the h1 wraps at the container */
  margin-bottom: 40px;
}
#bdy .tsp .tsp-head h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}
#bdy .tsp .tsp-head p {
  margin-top: 16px;
  font-size: 1.15rem;
  color: var(--ts-gray);
  max-width: var(--ts-prose); /* v15 (v14 880, before 68ch) */
  text-wrap: pretty;
}
#bdy .tsp .tsp-head,
#bdy .tsp .tsp-head *,
#bdy .tsp .tsp-plan,
#bdy .tsp .tsp-plan h2,
#bdy .tsp .tsp-plan p,
#bdy .tsp .tsp-plan li,
#bdy .tsp .tsp-big p,
#bdy .tsp .tsp-section,
#bdy .tsp .tsp-section p,
#bdy .tsp .tsp-shop,
#bdy .tsp .tsp-shop * { text-align: left; }
#bdy .tsp .tsp-btn {
  margin-top: auto;
  display: block;
  box-sizing: border-box;
  min-height: 44px;
  text-align: center;
  padding: 13px 18px;
  border-radius: var(--ts-r-pill);
  font-weight: 700;
  text-decoration: none;
  background: var(--ts-white);
  color: var(--ts-brand);
  border: 2px solid var(--ts-brand);
}
#bdy .tsp .tsp-btn:hover { background: var(--ts-bg-soft); }

/* /plans */
#bdy .tsp .tsp-price { justify-content: flex-start; }
#bdy .tsp .tsp-price strong,
#bdy .tsp .tsp-price span { color: var(--ts-ink); }
#bdy .tsp .tsp-finder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 20px 24px;
  margin-bottom: 28px;
  background: var(--ts-bg-soft);
  border-radius: var(--ts-r-card);
}
#bdy .tsp .tsp-finder label {
  font-weight: 700;
  font-size: 1.05rem;
}
#bdy .tsp .tsp-finder input {
  width: 170px;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
#bdy .tsp .tsp-finder output {
  font-size: 1rem;
  color: var(--ts-gray);
  flex: 1 1 260px;
}
#bdy .tsp .tsp-finder output strong { color: var(--ts-ink); }
#bdy .tsp .tsp-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  overflow: hidden;
  background: var(--ts-white);
}
#bdy .tsp .tsp-plan {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border-left: 1px solid var(--ts-line);
  transition: background-color .25s ease, box-shadow .25s ease;
}
#bdy .tsp .tsp-plan:first-child { border-left: 0; }
#bdy .tsp .tsp-plan.is-match {
  background: var(--ts-bg-soft);
  box-shadow: inset 0 6px 0 var(--ts-brand-light);
}
#bdy .tsp .tsp-plan h2 {
  font-size: 1.35rem;
  font-weight: 700;
}
#bdy .tsp .tsp-sku {
  margin-top: 4px;
  color: var(--ts-gray);
}
#bdy .tsp .tsp-sku strong {
  color: var(--ts-ink);
  font-variant-numeric: tabular-nums;
}
#bdy .tsp .tsp-price {
  margin: 22px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
#bdy .tsp .tsp-price strong {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
#bdy .tsp .tsp-price span {
  font-size: 1.1rem;
  font-weight: 700;
}
#bdy .tsp .tsp-per {
  font-size: .9rem;
  color: var(--ts-gray);
}
#bdy .tsp .tsp-plan ul {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  display: grid;
  gap: 8px;
}
#bdy .tsp .tsp-plan li {
  padding-left: 22px;
  position: relative;
}
#bdy .tsp .tsp-plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ts-brand);
}
#bdy .tsp .tsp-plan.is-match .tsp-btn {
  background: var(--ts-brand);
  color: var(--ts-white);
}
#bdy .tsp .tsp-plan.is-match .tsp-btn:hover {
  background: var(--ts-brand-hover);
  border-color: var(--ts-brand-hover);
}
#bdy .tsp .tsp-big {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 14px;
  padding: 20px 26px;
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  transition: background-color .25s ease, box-shadow .25s ease;
}
#bdy .tsp .tsp-big.is-match {
  background: var(--ts-bg-soft);
  box-shadow: inset 5px 0 0 var(--ts-brand-light);
}
#bdy .tsp .tsp-big p { font-size: 1.05rem; }
#bdy .tsp .tsp-big .tsp-btn {
  margin-top: 0;
  display: inline-block;
}
#bdy .tsp .tsp-section { margin-top: 72px; }
#bdy .tsp .tsp-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
#bdy .tsp .tsp-lead {
  color: var(--ts-gray);
  max-width: var(--ts-prose); /* v15 (was 62ch) */
  margin-bottom: 24px;
}
#bdy .tsp .tsp-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}
#bdy .tsp .tsp-features li {
  padding-left: 30px;
  position: relative;
}
#bdy .tsp .tsp-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ts-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
#bdy .tsp .tsp-mark {
  color: var(--ts-brand);
  font-weight: 700;
}
#bdy .tsp .tsp-sku-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: var(--ts-bg-soft);
  border-radius: var(--ts-r-card);
}
#bdy .tsp .tsp-tee {
  display: flex;
  gap: 8px;
}
#bdy .tsp .tsp-tee span {
  width: 46px;
  height: 46px;
  border-radius: var(--ts-r-field);
  background: var(--ts-white);
  border: 2px solid var(--ts-brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ts-brand);
  font-size: .95rem;
}
#bdy .tsp .tsp-sku-box p + p { margin-top: 10px; }
#bdy .tsp .tsp-faq details {
  border-top: 1px solid var(--ts-line);
  padding: 16px 0;
}
#bdy .tsp .tsp-faq details:last-child { border-bottom: 1px solid var(--ts-line); }
#bdy .tsp .tsp-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
#bdy .tsp .tsp-faq summary::-webkit-details-marker { display: none; }
#bdy .tsp .tsp-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: -2px;
  font-size: 1.4rem;
  color: var(--ts-brand);
  font-weight: 400;
}
#bdy .tsp .tsp-faq details[open] summary::after { content: "\2212"; }
#bdy .tsp .tsp-faq details p {
  margin-top: 10px;
  color: var(--ts-gray);
  max-width: var(--ts-prose); /* v15 (was 70ch) */
}
#bdy .tsp .tsp-notes {
  margin-top: 48px;
  font-size: .9rem;
  color: var(--ts-gray);
  display: grid;
  gap: 6px;
}
#bdy .tsp .tsp-vat {
  margin-top: 12px;
  font-size: .95rem;
  color: var(--ts-gray);
}
#bdy .tsp .tsp-chat {
  display: grid;
  gap: 6px;
  min-width: 150px;
}
#bdy .tsp .tsp-chat span {
  display: block;
  height: 14px;
  width: 110px;
  border-radius: 7px;
  background: var(--ts-white);
  border: 2px solid var(--ts-brand);
}
#bdy .tsp .tsp-chat span:nth-child(even) {
  justify-self: end;
  width: 90px;
  background: var(--ts-brand);
}
#bdy .tsp .tsp-chat strong {
  margin-top: 6px;
  text-align: center;
  color: var(--ts-brand);
  font-size: .95rem;
}
#bdy .tsp [id] { scroll-margin-top: 100px; }

/* /portfolio */
/* v16: the /portfolio 1080 cap is gone - one left edge (see #bdy .tsp) */
#bdy .tsp .tsp-shops {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
#bdy .tsp .tsp-shop {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  background: var(--ts-white);
}
#bdy .tsp .tsp-shop h2 {
  font-size: 1.35rem;
  font-weight: 700;
}
#bdy .tsp .tsp-shop .tsp-cat {
  color: var(--ts-gray);
  margin-top: 2px;
}
#bdy .tsp .tsp-ask {
  background: var(--ts-bg-soft);
  border-radius: var(--ts-r-field);
  padding: 14px 16px;
  border-left: 4px solid var(--ts-brand-light);
}
#bdy .tsp .tsp-ask span {
  display: block;
  font-size: .85rem;
  color: var(--ts-gray);
  margin-bottom: 2px;
}
#bdy .tsp .tsp-ask q {
  font-weight: 700;
  quotes: "\201E" "\201D";
}
#bdy .tsp .tsp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
#bdy .tsp .tsp-actions .tsp-btn {
  display: inline-block;
  margin-top: 0;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--ts-brand);
  color: var(--ts-white);
  border-color: var(--ts-brand);
}
#bdy .tsp .tsp-actions .tsp-btn:hover {
  background: var(--ts-brand-hover);
  border-color: var(--ts-brand-hover);
}
#bdy .tsp .tsp-actions .tsp-btn.tsp-btn-ghost {
  background: var(--ts-white);
  color: var(--ts-brand);
}
#bdy .tsp .tsp-actions .tsp-btn.tsp-btn-ghost:hover {
  background: var(--ts-bg-soft);
  border-color: var(--ts-brand);
}
#bdy .tsp .tsp-how {
  margin-top: 48px;
  padding: 24px 26px;
  background: var(--ts-bg-soft);
  border-radius: var(--ts-r-card);
  max-width: var(--ts-prose); /* v15: the text card sized to the measure (was 760) */
}
#bdy .tsp .tsp-how h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
#bdy .tsp .tsp-how p { color: var(--ts-gray); }

@media (min-width: 1024px) {
  #bdy .tsp .tsp-plan { padding: 28px 18px 26px; }
  #bdy .tsp .tsp-plan .tsp-sku,
  #bdy .tsp .tsp-plan ul li:first-child {
    white-space: nowrap;
    font-size: .95rem;
  }
}
@media (max-width: 1023px) {
  #bdy .tsp .tsp-plans { grid-template-columns: repeat(2, 1fr); }
  #bdy .tsp .tsp-plan:nth-child(3) { border-left: 0; }
  #bdy .tsp .tsp-plan:nth-child(n+3) { border-top: 1px solid var(--ts-line); }
}
@media (max-width: 719px) {
  #bdy .tsp .tsp-plans { grid-template-columns: 1fr; }
  #bdy .tsp .tsp-plan {
    border-left: 0;
    border-top: 1px solid var(--ts-line);
  }
  #bdy .tsp .tsp-plan:first-child { border-top: 0; }
  #bdy .tsp .tsp-features { grid-template-columns: 1fr; }
  #bdy .tsp .tsp-sku-box { grid-template-columns: 1fr; }
  #bdy .tsp .tsp-shops { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #bdy .tsp .tsp-plan,
  #bdy .tsp .tsp-big { transition: none; }
}


/* ==========================================================================
   5. /choose-the-plan (.tcp)
   Own token block dropped (it shadowed --ink/--line); mapping as section 4,
   plus --ok -> --ts-ok, --warn -> --ts-warn, #EAF6EF -> --ts-ok-bg,
   #FFF5E6 -> --ts-warn-bg. The 9 !important are gone: each was replaced by
   a #bdy-prefixed selector of higher specificity.
   .tcp-country (C# ChoosePlanTemplate.PlanStyle) stays in C# until pass b.
   ========================================================================== */
#bdy .tcp {
  color: var(--ts-ink);
  font-family: inherit;
  line-height: 1.55;
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 20px 24px;
}
@media (min-width: 1024px) {
  #bdy .tcp { margin: 0; padding-left: 32px; padding-right: 32px; } /* v16: one left edge; 980 kept, left-anchored */
}
#bdy .tcp *,
#bdy .tcp *::before,
#bdy .tcp *::after { box-sizing: border-box; }
#bdy .tcp h1,
#bdy .tcp h2,
#bdy .tcp h3,
#bdy .tcp p {
  margin: 0;
  text-align: left;
}
#bdy .tcp a { color: var(--ts-brand); }
#bdy .tcp p {
  margin-left: 0;
  margin-right: 0;
}
#bdy .tcp :focus-visible {
  outline: 2px solid var(--ts-brand-light);
  outline-offset: 2px;
  border-radius: 4px;
}
#bdy .tcp .tcp-head h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
}
#bdy .tcp .tcp-head p {
  margin-top: 12px;
  color: var(--ts-gray);
  font-size: 1.1rem;
  max-width: var(--ts-prose); /* v15 (was 66ch) */
}
#bdy .tcp .tcp-status {
  margin: 26px 0 8px;
  padding: 16px 20px;
  border-radius: var(--ts-r-card);
  border-left: 5px solid var(--ts-ok);
  background: var(--ts-ok-bg);
}
#bdy .tcp .tcp-status p + p { margin-top: 6px; }
#bdy .tcp .tcp-status .no-trial { display: none; }
#bdy .tcp .tcp-status[data-ok="false"] {
  border-color: var(--ts-warn);
  background: var(--ts-warn-bg);
}
#bdy .tcp .tcp-status[data-ok="false"] .trial { display: none; }
#bdy .tcp .tcp-status[data-ok="false"] .no-trial { display: block; }
#bdy .tcp .tcp-step { margin-top: 40px; }
#bdy .tcp .tcp-step h2 {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
#bdy .tcp .tcp-step h2 span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ts-brand);
  color: var(--ts-white);
  font-size: 1rem;
}
#bdy .tcp .tcp-lead {
  color: var(--ts-gray);
  margin-bottom: 16px;
  max-width: var(--ts-prose); /* v15 (was 68ch) */
}
#bdy .tcp .tcp-companies {
  display: grid;
  gap: 10px;
}
#bdy .tcp .tcp-opt {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 2px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  cursor: pointer;
  background: var(--ts-white);
}
#bdy .tcp .tcp-opt:has(input:checked) {
  border-color: var(--ts-brand);
  background: var(--ts-bg-soft);
}
#bdy .tcp .tcp-opt input {
  margin-top: 5px;
  accent-color: var(--ts-brand);
  width: 18px;
  height: 18px;
  flex: none;
}
#bdy .tcp .tcp-opt strong { display: block; }
#bdy .tcp .tcp-opt small {
  color: var(--ts-gray);
  display: block;
}
#bdy .tcp .tcp-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: .82rem;
  font-weight: 700;
  font-style: normal;
  padding: 2px 10px;
  border-radius: var(--ts-r-pill);
  background: var(--ts-ok-bg);
  color: var(--ts-ok);
}
#bdy .tcp .tcp-badge.off {
  background: var(--ts-warn-bg);
  color: var(--ts-warn);
}
#bdy .tcp .tcp-finder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: var(--ts-bg-soft);
  border-radius: var(--ts-r-card);
}
#bdy .tcp .tcp-finder label { font-weight: 700; }
#bdy .tcp .tcp-finder input { width: 160px; }
#bdy .tcp .tcp-finder output {
  color: var(--ts-gray);
  flex: 1 1 240px;
}
#bdy .tcp .tcp-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
#bdy .tcp .tcp-plan {
  position: relative;
  display: block;
  padding: 20px 18px;
  border: 2px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  cursor: pointer;
  background: var(--ts-white);
}
#bdy .tcp .tcp-plan:has(input:checked) {
  border-color: var(--ts-brand);
  background: var(--ts-bg-soft);
  box-shadow: inset 0 5px 0 var(--ts-brand-light);
}
#bdy .tcp .tcp-plan input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
#bdy .tcp .tcp-plan .name {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}
#bdy .tcp .tcp-plan .sku {
  display: block;
  color: var(--ts-gray);
  font-size: .95rem;
}
#bdy .tcp .tcp-plan .sku strong { color: var(--ts-ink); }
#bdy .tcp .tcp-plan .price {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
#bdy .tcp .tcp-plan .per {
  display: block;
  color: var(--ts-gray);
  font-size: .85rem;
}
#bdy .tcp .tcp-notes {
  margin-top: 14px;
  display: grid;
  gap: 4px;
  font-size: .9rem;
  color: var(--ts-gray);
}
#bdy .tcp .tcp-summary {
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--ts-r-card);
  background: var(--ts-ink);
  color: var(--ts-white);
}
#bdy .tcp .tcp-summary h2 {
  color: var(--ts-white);
  font-size: 1.3rem;
  font-weight: 700;
}
#bdy .tcp .tcp-summary ul {
  margin: 12px 0 18px;
  padding-left: 20px;
}
#bdy .tcp .tcp-summary li { color: rgba(255, 255, 255, .85); }
#bdy .tcp .tcp-summary li strong { color: var(--ts-white); }
#bdy .tcp .tcp-summary li + li { margin-top: 4px; }
#bdy .tcp .tcp-go {
  display: inline-block;
  box-sizing: border-box;
  min-height: 44px;
  padding: 14px 26px;
  border-radius: var(--ts-r-pill);
  background: var(--ts-white);
  color: var(--ts-brand);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}
#bdy .tcp .tcp-go:hover { background: var(--ts-bg-soft); }
#bdy .tcp .tcp-summary .fine {
  margin-top: 14px;
  max-width: none;
  font-size: .9rem;
  color: rgba(255, 255, 255, .75);
}
#bdy .tcp .tcp-faq { margin-top: 44px; }
#bdy .tcp .tcp-faq details {
  border-top: 1px solid var(--ts-line);
  padding: 14px 0;
}
#bdy .tcp .tcp-faq details:last-child { border-bottom: 1px solid var(--ts-line); }
#bdy .tcp .tcp-faq summary {
  cursor: pointer;
  font-weight: 700;
}
#bdy .tcp .tcp-faq details p {
  margin-top: 8px;
  color: var(--ts-gray);
}
@media (max-width: 1023px) {
  #bdy .tcp .tcp-plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 719px) {
  #bdy .tcp .tcp-plans { grid-template-columns: 1fr; }
}


/* ==========================================================================
   6. RESERVED - later passes append here, in this order
   ========================================================================== */

/* ---- 6.b Pass b: app screens (.tsa .tsm .tsk .tsc .tsw .tcp-country) ----
   Moved out of the C# style members (AgentShell.Style, AgentConversationsView.Style,
   AgentKnowledgeView.Style, AgentWidgetView.Style, ChoosePlanTemplate.PlanStyle,
   my_subscriptions Style, welcome Style - each now ""), re-tokenised, R2 applied.
   Every selector starts with #bdy: that replaces the old !important (the theme
   and section 3 use #bdy too). Plain selectors only (no :where/:has here) - the
   D1 cascade checks parse this section. Fields take the section 2 component. */

/* -- shared: app headings, install code, secondary button alias -- */
#bdy .tsa h1,
#bdy .tsm h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ts-ink);
  margin: 0 0 6px;
}
#bdy .tsa .tsm-code,
#bdy .tsm-code {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--ts-mono);
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
  color: var(--ts-ink);
  background: var(--ts-bg-soft);
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-field);
  white-space: pre-wrap;
  word-break: break-all;
}
/* .tsa-btn-secondary = alias of the component .ts-btn-secondary (the class is
   asserted by D1 and used in markup and scripts, so it stays) */
#bdy .ts-btn.tsa-btn-secondary {
  background: var(--ts-bg-soft);
  border-color: var(--ts-line);
  color: var(--ts-ink);
  text-decoration: none;
  cursor: pointer;
}
#bdy .ts-btn.tsa-btn-secondary:hover {
  border-color: var(--ts-gray);
  color: var(--ts-ink);
}

/* -- My agent shell (.tsa) -- */
#bdy .tsa {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 32px;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ts-ink);
}
#bdy .tsa,
#bdy .tsa p,
#bdy .tsa small,
#bdy .tsa label,
#bdy .tsa h1,
#bdy .tsa h2,
#bdy .tsa h3,
#bdy .tsa li,
#bdy .tsa .tsa-field { text-align: left; }
#bdy .tsa p,
#bdy .tsa small,
#bdy .tsa label,
#bdy .tsa h1,
#bdy .tsa h2,
#bdy .tsa h3,
#bdy .tsa .tsa-field,
#bdy .tsa .tsc-hint {
  margin-left: 0;
  margin-right: 0;
}
#bdy .tsa p { font-size: inherit; line-height: inherit; }
#bdy .tsa .tsa-back { margin: 0 0 12px; }
#bdy .tsa .tsa-back a { text-decoration: none; font-weight: 600; }
#bdy .tsa .tsa-site { margin: 0 0 18px; font-size: 14px; color: var(--ts-gray); }
#bdy .tsa .tsa-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--ts-line);
  margin: 0 0 20px;
}
#bdy .tsa .tsa-tab {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 600;
  color: var(--ts-gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
#bdy .tsa .tsa-tab:hover { color: var(--ts-ink); }
#bdy .tsa .tsa-tab:focus-visible { outline: 2px solid var(--ts-brand-light); outline-offset: 2px; }
#bdy .tsa .tsa-tab.tsa-tab-on {
  color: var(--ts-ink);
  border-bottom-color: var(--ts-brand);
}
#bdy .tsa input,
#bdy .tsa select,
#bdy .tsa textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
#bdy .tsa textarea {
  font-family: var(--ts-mono);
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
}
#bdy .tsa input[readonly],
#bdy .tsa textarea[readonly],
#bdy .tsa select[disabled] {
  background: var(--ts-bg-soft);
  color: var(--ts-gray);
}
#bdy .tsa .tsa-field {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  min-width: 0;
}
#bdy .tsa .tsa-field > label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ts-ink);
}
#bdy .tsa .tsa-field small { color: var(--ts-gray); }
#bdy .tsa .tsa-notice {
  margin: 0;
  padding: 16px 20px;
  border-radius: var(--ts-r-card);
  border-left: 5px solid var(--ts-warn);
  background: var(--ts-warn-bg);
  color: var(--ts-ink);
  line-height: 1.5;
}
#bdy .tsa .tsa-msg {
  margin: 0 0 16px;
  padding: 16px 20px;
  border-radius: var(--ts-r-card);
  border-left: 5px solid var(--ts-brand);
  background: var(--ts-bg-soft);
  color: var(--ts-ink);
}
#bdy .tsa .tsa-save { margin: 0 0 16px; }
#bdy .tsa .tsa-save .tsa-msg { margin: 10px 0 0; }
#bdy .tsa .tsa-btn-off { opacity: .5; cursor: default; pointer-events: none; }
#bdy .tsa .tsa-ok { border-left: 5px solid var(--ts-ok); background: var(--ts-ok-bg); }
#bdy .tsa .tsa-err { border-left: 5px solid var(--ts-warn); background: var(--ts-warn-bg); }

/* -- My agent: Widget tab sections (AgentWidgetView) -- */
#bdy .tsa .tsa-section {
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--ts-line);
}
#bdy .tsa .tsa-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ts-ink);
  margin: 0 0 8px;
}
#bdy .tsa .tsa-note { margin: 0 0 12px; color: var(--ts-gray); }

/* -- My agent: Conversations (AgentConversationsView, also on Knowledge) -- */
#bdy .tsa .tsc-filter { margin: 0 0 8px; }
#bdy .tsa .tsc-filter-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,2fr);
  gap: 12px 16px;
  align-items: start;
}
#bdy .tsa .tsc-filter-row .tsa-field { margin: 0; }
#bdy .tsa .tsc-hint { margin: 6px 0 10px; color: var(--ts-gray); font-size: 14px; }
#bdy .tsa .tsc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}
#bdy .tsa .tsc-actions .ts-btn,
#bdy .tsa .tsc-teach-actions .ts-btn,
#bdy .tsa .tsk-actions .ts-btn,
#bdy .tsa .tsk-form-actions .ts-btn,
#bdy .tsa .tsk-topic > .ts-btn,
#bdy .tsa .tsk-tools .ts-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  vertical-align: middle;
}
#bdy .tsa .tsc-clear { margin-left: 6px; }
#bdy .tsa .tsc-export-hint { margin: 6px 0 12px; }
#bdy .tsa .tsc-sessions {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}
#bdy .tsa .tsc-sessions th,
#bdy .tsa .tsc-sessions td {
  padding: 8px;
  vertical-align: top;
  border-bottom: 1px solid var(--ts-line);
  text-align: left;
}
#bdy .tsa .tsc-sessions th {
  background: var(--ts-bg-soft);
  color: var(--ts-ink);
  font-weight: 600;
}
#bdy .tsa .tsc-sessions tr:hover td { background: var(--ts-bg-soft); }
#bdy .tsa .tsc-col-start,
#bdy .tsa .tsc-col-last { width: 150px; }
#bdy .tsa .tsc-sessions .tsc-turns { width: 90px; text-align: center; }
#bdy .tsa .tsc-act { width: 72px; }
#bdy .tsa .tsc-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ts-ink);
  text-decoration: none;
}
#bdy .tsa a.tsc-snippet:hover { text-decoration: underline; }
#bdy .tsa .tsc-bot { color: var(--ts-gray); }
#bdy .tsa .tsc-aborted { font-style: italic; color: var(--ts-gray); }
#bdy .tsa .tsc-pager {
  margin: 12px 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
#bdy .tsa .tsc-empty,
#bdy .tsa .tsk-empty {
  padding: 16px 20px;
  border-radius: var(--ts-r-card);
  border-left: 5px solid var(--ts-brand);
  background: var(--ts-bg-soft);
  color: var(--ts-ink);
}
#bdy .tsa .tsc-empty { margin: 8px 0; }
#bdy .tsa .tsk-empty { margin: 8px 0 12px; }
#bdy .tsa .tsc-backlist { margin: 0 0 8px; }
#bdy .tsa .tsc-title { font-size: 20px; font-weight: 700; color: var(--ts-ink); margin: 0 0 4px; }
#bdy .tsa .tsc-when { font-size: 14px; font-weight: 400; color: var(--ts-gray); margin-left: 8px; }
#bdy .tsa .tsc-sid { font-family: var(--ts-mono); }
#bdy .tsa .tsc-conv {
  background: var(--ts-bg-soft);
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  padding: 14px 18px;
}
#bdy .tsa .tsc-msg { margin: 8px 0; display: flex; }
#bdy .tsa .tsc-user { justify-content: flex-end; }
#bdy .tsa .tsc-bot { justify-content: flex-start; }
#bdy .tsa .tsc-bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}
#bdy .tsa .tsc-user .tsc-bubble {
  background: var(--ts-ink);
  color: var(--ts-white);
  border-bottom-right-radius: 6px;
  white-space: pre-wrap;
}
#bdy .tsa .tsc-bot .tsc-bubble {
  background: var(--ts-white);
  color: var(--ts-ink);
  border: 1px solid rgba(0, 0, 0, .08);
  border-bottom-left-radius: 6px;
}
#bdy .tsa .tsc-answer p { margin: 0 0 8px; }
#bdy .tsa .tsc-answer p:last-child { margin-bottom: 0; }
#bdy .tsa .tsc-answer ul { margin: 6px 0 6px 18px; padding: 0; }
#bdy .tsa .tsc-answer a { color: var(--ts-ink); font-weight: 600; }
#bdy .tsa .tsc-aborted.tsc-bubble {
  background: var(--ts-bg-soft);
  border: 1px dashed rgba(0, 0, 0, .18);
}
#bdy .tsa .tsc-form {
  background: var(--ts-bg-soft);
  border: 1px dashed var(--ts-gray);
  color: var(--ts-ink);
}
#bdy .tsa .tsc-form-label {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
#bdy .tsa .tsc-form-sub { font-style: italic; }
#bdy .tsa .tsc-fb {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
#bdy .tsa .tsc-fb-up { color: var(--ts-ok); }
#bdy .tsa .tsc-fb-down { color: var(--ts-red); }
#bdy .tsa .tsc-cards,
#bdy .tsa .tsc-resources { max-width: 95%; }
#bdy .tsa .tsc-products { display: flex; flex-wrap: wrap; gap: 10px; }
#bdy .tsa .tsc-card {
  width: 260px;
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  padding: 10px;
  background: var(--ts-white);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#bdy .tsa .tsc-card-name { font-weight: 700; color: inherit; text-decoration: none; }
#bdy .tsa .tsc-card-price { font-weight: 700; }
#bdy .tsa .tsc-card-img {
  display: block;
  max-width: 100%;
  max-height: 160px;
  margin: 0 auto;
  object-fit: contain;
}
#bdy .tsa .tsc-card-why { font-size: 13px; color: var(--ts-gray); }
#bdy .tsa .tsc-card-hi { display: flex; flex-wrap: wrap; gap: 4px; }
#bdy .tsa .tsc-pill {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--ts-r-pill);
  background: var(--ts-bg-soft);
}
#bdy .tsa .tsc-card-link {
  display: inline-block;
  padding: 6px 10px;
  background: var(--ts-ink);
  color: var(--ts-white);
  border-radius: var(--ts-r-field);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}
#bdy .tsa .tsc-resources-title { font-weight: 700; color: var(--ts-gray); margin-bottom: 4px; }
#bdy .tsa .tsc-resource { display: block; color: var(--ts-ink); }
#bdy .tsa .tsc-taught {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: var(--ts-r-pill);
  background: var(--ts-ok-bg);
  color: var(--ts-ok);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}
#bdy .tsa .tsc-taught[hidden],
#bdy .tsa .tsc-teach-form[hidden] { display: none; }
#bdy .tsa .tsc-teach-row {
  margin: 2px 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
#bdy .tsa .tsc-teach-row .tsc-taught { margin-left: 0; }
#bdy .tsa .tsc-teach-open { padding: 6px 14px; font-size: 14px; margin: 0; }
#bdy .tsa .tsc-teach-form {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  background: var(--ts-white);
}
#bdy .tsa .tsc-teach-label { display: block; font-weight: 700; margin: 0 0 4px; }
#bdy .tsa .tsc-teach-q {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-left: 4px solid var(--ts-line);
  background: var(--ts-bg-soft);
  white-space: pre-wrap;
  word-wrap: break-word;
}
#bdy .tsa .tsc-teach-form textarea { font-family: inherit; font-size: 16px; }
#bdy .tsa .tsc-teach-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
#bdy .tsa .tsc-teach-msg { flex: 1 1 220px; margin: 0; }

/* -- My agent: Knowledge (AgentKnowledgeView) -- */
#bdy .tsa .tsk-sec { margin: 0 0 28px; }
#bdy .tsa .tsk-sec h2 { font-size: 20px; font-weight: 700; color: var(--ts-ink); margin: 0 0 4px; }
#bdy .tsa .tsk-list { list-style: none; margin: 12px 0 0; padding: 0; }
#bdy .tsa .tsk-item {
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  padding: 16px;
  margin: 0 0 10px;
  background: var(--ts-white);
}
#bdy .tsa .tsk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
#bdy .tsa .tsk-title { font-weight: 700; overflow-wrap: anywhere; }
#bdy .tsa .tsk-date { color: var(--ts-gray); font-size: 13px; }
#bdy .tsa .tsk-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--ts-r-pill);
  background: var(--ts-ok-bg);
  color: var(--ts-ok);
  font-size: 12px;
  font-weight: 700;
}
#bdy .tsa .tsk-snippet { margin: 6px 0 0; color: var(--ts-ink); overflow-wrap: anywhere; }
#bdy .tsa .tsk-path {
  margin: 4px 0 0;
  font-family: var(--ts-mono);
  font-size: 13px;
  color: var(--ts-gray);
  overflow-wrap: anywhere;
}
#bdy .tsa .tsk-actions,
#bdy .tsa .tsk-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
}
#bdy .tsa .tsk-form {
  margin: 12px 0 0;
  padding: 16px;
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  background: var(--ts-white);
}
#bdy .tsa .tsk-form h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
#bdy .tsa .tsk-form textarea { font-family: inherit; font-size: 16px; }
#bdy .tsa .tsk-form[hidden],
#bdy .tsa .tsk-body[hidden] { display: none; }
#bdy .tsa .tsk-topic { margin: 8px 0 4px; }
#bdy .tsa .tsk-tools { display: flex; flex-wrap: wrap; gap: 10px; }
#bdy .tsa .tsk-msg { margin: 8px 0 0; }
#bdy .tsa .tsk-form-msg { flex: 1 1 220px; margin: 0; }
#bdy .tsa .tsk-undo { margin-left: 8px; padding: 4px 14px; }

/* -- My subscriptions (.tsm) -- */
#bdy .tsm {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ts-ink);
}
#bdy .tsm h1 { margin-bottom: 20px; }
#bdy .tsm .tsm-sub {
  background: var(--ts-white);
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  padding: 18px 20px;
  margin-bottom: 14px;
}
#bdy .tsm .tsm-sub h2 { font-size: 20px; font-weight: 700; color: var(--ts-ink); margin: 0 0 10px; }
#bdy .tsm .tsm-sub dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0 0 10px;
}
#bdy .tsm .tsm-sub dt { color: var(--ts-gray); }
#bdy .tsm .tsm-sub dd { margin: 0; }
#bdy .tsm .tsm-state,
#bdy .tsm .tsm-banner,
#bdy .tsm .tsm-msg,
#bdy .tsm .tsm-ready,
#bdy .tsm .tsm-life {
  margin: 8px 0;
  padding: 12px 16px;
  border-radius: var(--ts-r-card);
  border-left: 5px solid var(--ts-brand);
  background: var(--ts-bg-soft);
  color: var(--ts-ink);
}
#bdy .tsm .tsm-warn,
#bdy .tsm .tsm-msg,
#bdy .tsm .tsm-life { border-left-color: var(--ts-warn); background: var(--ts-warn-bg); }
#bdy .tsm .tsm-banner,
#bdy .tsm .tsm-ready { border-left-color: var(--ts-ok); background: var(--ts-ok-bg); }
#bdy .tsm .tsm-banner { margin: 0 0 16px; }
#bdy .tsm .tsm-form { margin: 12px 0; display: grid; gap: 12px; max-width: 620px; }
#bdy .tsm .tsm-field { display: grid; gap: 4px; }
#bdy .tsm .tsm-field span { font-size: 14px; font-weight: 600; color: var(--ts-ink); }
#bdy .tsm .tsm-field input,
#bdy .tsm .tsm-field select { width: 100%; box-sizing: border-box; }
#bdy .tsm .tsm-field small { color: var(--ts-gray); }
#bdy .tsm .tsm-js-msg { margin: 0; color: var(--ts-warn); font-weight: 700; }
#bdy .tsm .tsm-note { margin: 0; color: var(--ts-gray); font-size: 14px; }
#bdy .tsm .tsm-add { margin-top: 20px; }
#bdy .tsm .tsm-life p { margin: 0 0 8px; }
#bdy .tsm .tsm-life p:last-child { margin-bottom: 0; }
#bdy .tsm .tsm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* v20 (SEQ 36): "How we read your product feed" (OnboardingStates.FeedSummaryHtml) - open on the setting-up card, closed after the Ready card's actions */
#bdy .tsm .tsm-feed {
  margin: 8px 0;
  padding: 12px 16px;
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  background: var(--ts-white);
}
#bdy .tsm .tsm-feed summary { cursor: pointer; font-weight: 600; color: var(--ts-ink); }
#bdy .tsm .tsm-feed ul { margin: 8px 0; padding-left: 20px; }
#bdy .tsm .tsm-feed li { margin: 2px 0; overflow-wrap: anywhere; }

/* -- /choose-the-plan country block (was ChoosePlanTemplate.PlanStyle in <head>) -- */
#bdy .tcp .tcp-country { display: grid; gap: 6px; max-width: 420px; margin: 0 0 16px; }
#bdy .tcp .tcp-country label { font-size: 14px; font-weight: 600; color: var(--ts-ink); }
#bdy .tcp .tcp-note { margin: 0; color: var(--ts-gray); }
#bdy .tcp .tcp-country-msg { margin: 10px 0 0; color: var(--ts-warn); font-weight: 700; }

/* -- /welcome status banner (welcome.ascx; WelcomeStates.HideRule stays in C#) -- */
#bdy .tsw {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  max-width: 980px;
  margin: 32px auto;
  padding: 22px 26px;
  border-radius: var(--ts-r-card);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ts-ink);
}
#bdy .tsw p { margin: 0; }
#bdy .tsw .tsw-cta { flex-basis: 100%; }
#bdy .tsw.tsw-processing { border-left: 6px solid var(--ts-brand); background: var(--ts-bg-soft); }
#bdy .tsw.tsw-failed { border-left: 6px solid var(--ts-warn); background: var(--ts-warn-bg); }
#bdy .tsw.tsw-slow { border-left: 6px solid var(--ts-gray); background: var(--ts-bg-soft); }
#bdy .tsw .tsw-spinner {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 4px solid var(--ts-line);
  border-top-color: var(--ts-brand);
  animation: tsw-spin .9s linear infinite;
}

/* -- app screens under 720 -- */
@media (max-width: 719px) {
  #bdy .tsa h1,
  #bdy .tsm h1 { font-size: 26px; }
  #bdy .tsa .tsa-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }
  #bdy .tsa .tsa-tab { flex: none; padding: 0 12px; }
  #bdy .tsa .tsc-filter-row { grid-template-columns: minmax(0,1fr); }
  #bdy .tsa .tsc-actions .ts-btn { flex: 1 1 0; min-width: 0; }
  #bdy .tsa .tsc-clear { flex-basis: 100%; margin-left: 0; }
  #bdy .tsa .tsc-sessions,
  #bdy .tsa .tsc-sessions tbody,
  #bdy .tsa .tsc-sessions td { display: block; width: 100%; box-sizing: border-box; }
  #bdy .tsa .tsc-sessions { table-layout: auto; }
  #bdy .tsa .tsc-sessions thead { display: none; }
  #bdy .tsa .tsc-sessions tr {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 0;
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-r-card);
    padding: 0;
    margin: 0 0 10px;
    background: var(--ts-white);
    overflow: hidden;
  }
  #bdy .tsa .tsc-sessions td { border: 0; padding: 8px 12px; text-align: left; min-width: 0; }
  #bdy .tsa .tsc-sessions td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ts-gray);
    margin-bottom: 2px;
  }
  #bdy .tsa .tsc-sessions td.tsc-col-start,
  #bdy .tsa .tsc-sessions td.tsc-col-last,
  #bdy .tsa .tsc-sessions td.tsc-turns {
    width: auto;
    background: var(--ts-bg-soft);
    border-bottom: 1px solid var(--ts-line);
    padding: 8px 10px;
    font-size: 13px;
    text-align: left;
    overflow-wrap: anywhere;
  }
  #bdy .tsa .tsc-sessions td.tsc-col-first,
  #bdy .tsa .tsc-sessions td.tsc-col-reply,
  #bdy .tsa .tsc-sessions td.tsc-act { grid-column: 1/-1; text-align: left; }
  #bdy .tsa .tsc-sessions td.tsc-act { text-align: right; padding-top: 4px; }
  #bdy .tsa .tsc-sessions td.tsc-act::before { content: none; }
  #bdy .tsa .tsc-snippet { -webkit-line-clamp: 4; }
}
@media (prefers-reduced-motion: reduce) {
  #bdy .tsw .tsw-spinner { animation-duration: 3s; }
}
@keyframes tsw-spin { to { transform: rotate(360deg); } }
/* v16: one left edge - the 980 app boxes are left-anchored, text at #bdy left + 32
   (after the .tsa / .tsm / .tsw base rules above, same specificity) */
@media (min-width: 1024px) {
  #bdy .tsa,
  #bdy .tsm { margin: 0; padding-left: 32px; padding-right: 32px; }
  #bdy .tsw { margin-left: 0; margin-right: 0; padding-left: 32px; padding-right: 32px; }
}
/* ---- end 6.b ---- */

/* ---- 6.c Pass c: header + mobile drawer (#chdr #tbar_wrap #hdr #mhdr) ----
   Ruling R4. Holds every header rule (section 3.10 moved here). The theme
   (shared hsfw.css) switches #chdr / #mhdr at 1024; hsfw.min.js toggles
   #mhdr.open on the burger, and the theme shows #mhdr_nav under #mhdr.open.
   Drawer markup: header_v4_old.ascx + header_mobile_nav_list.ascx put the tab
   menu (ul.mhdr_tabs) first; the old TopRight list (the Repeater's div.ul)
   is hidden here. No !important. */

/* -- e-commerce leftovers, hidden at every width (was 3.10) -- */
#wrapper #mhdr_search,
#wrapper .search_box_wrap,
#wrapper .search_box,
#wrapper .search_form { display: none; }
#wrapper #mhdr_fav,
#wrapper .__x_mhdr_fav,
#wrapper #chdr a[href="/?id=0"],
#wrapper #chdr li:has(> a[href="/?id=0"]),
#wrapper #chdr .__e:has(a[href="/?id=0"]) { display: none; }
#wrapper #mhdr_phone,
#wrapper #tbar a[href^="tel:"],
#wrapper #tbar .menu_box ul li:has(a[href^="tel:"]) { display: none; }
#wrapper #mm_open,
#wrapper #mhdr_cart,
#wrapper #mhdr_account { display: none; }

/* -- desktop (1024 and up): brand strip 40px + logo row 72px -- */
@media (min-width: 1024px) {
  #wrapper #chdr,
  #wrapper #bodyclass.home #chdr { height: auto; }
  #wrapper #chdr #tbar_wrap {
    display: block;
    background: var(--ts-brand);
    border-top: none;
    padding: 0;
  }
  #wrapper #chdr #tbar {
    height: 40px;
    box-sizing: border-box;
    padding: 0; /* v9: the theme's padding-top 2px put li/a at y=2..40 */
  }
  /* v9: the theme's separator li::before (absolute, top 4px, 16x1 white) sat
     ~10px above the text centre; centre it on the 40px li. Theme first-item
     handling left as is. */
  #wrapper #chdr #tbar .menu_box ul li::before,
  #wrapper #chdr #tbar .user_box > ul > li::before {
    top: 50%;
    bottom: auto;
    height: 16px;
    margin-top: -8px;
  }
  #wrapper #tbar .menu_box ul li,
  #wrapper #tbar .user_box ul li { line-height: 40px; }
  #wrapper #tbar .menu_box ul li a {
    display: inline-block;
    font-size: 13px;
    line-height: 40px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ts-white);
    text-decoration: none;
  }
  /* v10: one underline for the whole bar - tabs (hover + .selected), the user
     box links and the language links - instead of the tabs' inset box-shadow
     at the bar's bottom edge */
  #wrapper #tbar .menu_box ul li.selected > a,
  #wrapper #tbar .menu_box ul li a:hover,
  #wrapper #tbar .user_box > ul > li:not(#lang_selector_d) a:hover {
    box-shadow: none;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }
  #wrapper #tbar .user_box ul li,
  #wrapper #tbar .user_box ul li a,
  #wrapper #tbar .active_lang,
  #wrapper #tbar span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ts-white);
  }
  #wrapper #tbar a:focus-visible {
    outline: 2px solid var(--ts-white);
    outline-offset: 2px;
  }
  #wrapper #tbar ._dd,
  #wrapper #tbar ._dd * {
    color: var(--ts-ink);
    text-transform: none;
  }
  #wrapper #tbar ._dd a:hover ._l { color: var(--ts-brand); }
  /* v13: no underline on the language selector (toggle + RO/EN links), hover or focus (owner) */
  #wrapper #tbar #lang_selector_d a,
  #wrapper #tbar #lang_selector_d a:hover,
  #wrapper #tbar #lang_selector_d a:focus-visible,
  #wrapper #tbar #lang_selector_d a ._l,
  #wrapper #tbar #lang_selector_d ._ddt,
  #wrapper #tbar #lang_selector_d ._ddt:hover { text-decoration: none; }
  /* v10: logged out, getPageProfileV4 renders <span class="fa fa-lock
     fa-or-underline"></span> + a space before "Authentication". No FontAwesome
     font or fa-lock glyph is loaded on 534, so the span is an empty
     inline-block that keeps the space alive and the underline starts on a
     blank. Hidden, the space collapses. (.topbar_icon_auth on Logout is a real
     16px icomoon glyph - kept.) */
  #wrapper #chdr #tbar .user_box a > .fa { display: none; }
  /* v23 (SEQ 81): the theme gives .user_box a FIXED 400px and .menu_box the rest; signed in, the menu (the pill is its
     last item) did not fit and spilled over the greeting (nothing clips it). The user box now takes its content's
     width and the menu the rest. The greeting is one line, cut with an ellipsis: 186px of text (206px with the li's
     padding) keeps RO - the wider language - 12px clear of the pill on the 1160px bar (measured live: menu 744 +
     greeting 206 + logout and language 198 + 12 = 1160). On the 990px bar (1024-1259) it is hidden below. */
  #wrapper #chdr #tbar .user_box { flex: 0 0 auto; }
  #wrapper #chdr #tbar .menu_box { flex: 1 1 auto; min-width: 0; }
  #wrapper #chdr #tbar #usrxid {
    display: block;
    max-width: 186px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  #wrapper #chdr #hdr_wrap {
    height: 72px;
    min-height: 0;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  #wrapper #chdr #hdr {
    height: 72px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }
  #wrapper #hdr_nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
  }
  #wrapper #hdr_nav .logo_box { margin-right: auto; }
  #wrapper #hdr_nav .logo_box a.logo img {
    height: 40px;
    width: auto;
    max-height: none;
  }
  #wrapper #hdr_nav .controls_box,
  #wrapper #hdr .controls_box { display: none; }
  #wrapper #megamenu_attach,
  #wrapper #mm_extralinks { display: none; }
}

/* v23 (SEQ 81): on the 990px desktop bar (windows 1024-1259) RO does not fit with the greeting (measured live: 744 + 387
   > 990), even with the first name alone: the greeting is hidden there. */
@media (min-width: 1024px) and (max-width: 1259px) {
  #wrapper #chdr #tbar #usrxid { display: none; }
}
/* -- mobile (under 1024): 56px bar + full-width drawer -- */
@media (max-width: 1023px) {
  #wrapper #mhdr {
    padding: 0;
    background: var(--ts-white);
    border-bottom: 1px solid var(--ts-line);
    box-sizing: border-box;
    max-width: 100%;
  }
  #wrapper #mhdr * { box-sizing: border-box; }
  #wrapper #mhdr #mhdr_menu > .__i > .__l {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 6px;
  }
  #wrapper #mhdr #mhdr_menu .__e { flex: none; }
  #wrapper #mhdr #mhdr_menu .__e3,
  #wrapper #mhdr #mhdr_menu .__e4bis,
  #wrapper #mhdr #mhdr_menu .__e5 { display: none; }
  #wrapper #mhdr #mhdr_menu .__e2 {
    flex: 1 1 auto;
    text-align: center;
  }
  #wrapper #mhdr .mhdr_logo img {
    height: 32px;
    width: auto;
    max-width: 100%;
    vertical-align: middle;
  }
  #wrapper #mhdr .mhdr_toggle_nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }
  #wrapper #mhdr .mhdr_toggle_nav .bars,
  #wrapper #mhdr .mhdr_toggle_nav .bars::before {
    color: var(--ts-brand);
    font-size: 24px;
    line-height: 24px;
  }
  #wrapper #mhdr #mhdr_user a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--ts-brand);
  }
  #wrapper #mhdr #mhdr_user .icon,
  #wrapper #mhdr #mhdr_user .icon::before { color: var(--ts-brand); }
  #wrapper #mhdr .mhdr_toggle_nav:focus-visible,
  #wrapper #mhdr #mhdr_user a:focus-visible,
  #wrapper #mhdr .mhdr_logo a:focus-visible {
    outline: 2px solid var(--ts-brand-light);
    outline-offset: 2px;
  }
  #wrapper #mhdr #mhdr_nav {
    padding: 0;
    background: var(--ts-white);
    border-top: 1px solid var(--ts-line);
  }
  #wrapper #mhdr #mhdr_nav .mhdr_nav_title { display: none; }
  #wrapper #mhdr #mhdr_nav .mhdr_nav_list div.ul { display: none; }
  #wrapper #mhdr #mhdr_nav ul.mhdr_tabs {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #wrapper #mhdr #mhdr_nav ul.mhdr_tabs > li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--ts-line);
  }
  #wrapper #mhdr #mhdr_nav ul.mhdr_tabs > li:last-child { border-bottom: 0; }
  #wrapper #mhdr #mhdr_nav ul.mhdr_tabs > li > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 400;
    color: var(--ts-ink);
    text-decoration: none;
  }
  #wrapper #mhdr #mhdr_nav ul.mhdr_tabs > li.selected > a {
    color: var(--ts-brand);
    font-weight: 600;
  }
  #wrapper #mhdr #mhdr_nav ul.mhdr_tabs > li > a:focus-visible,
  #wrapper #mhdr #mhdr_nav ul.mhdr_account a:focus-visible,
  #wrapper #mhdr #mhdr_nav ul.mhdr_lang a:focus-visible {
    outline: 2px solid var(--ts-brand-light);
    outline-offset: -2px;
  }
  /* account rows + language links: cloned from #tbar .user_box by the header
     script on each open (Welcome / Logout or Authentication; RO / EN) */
  #wrapper #mhdr #mhdr_nav ul.mhdr_account,
  #wrapper #mhdr #mhdr_nav ul.mhdr_lang {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ts-line);
  }
  #wrapper #mhdr #mhdr_nav ul.mhdr_account > li,
  #wrapper #mhdr #mhdr_nav ul.mhdr_lang > li {
    margin: 0;
    padding: 0;
    float: none;
    display: block;
    min-height: 48px;
    line-height: 48px;
    font-size: 14px;
    color: var(--ts-gray);
  }
  /* v23 (SEQ 81): the greeting row (cloned from #usrxid, no link): one line, a long first name cut with an ellipsis */
  #wrapper #mhdr #mhdr_nav ul.mhdr_account > li:not(:has(a)) { padding: 0 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  #wrapper #mhdr #mhdr_nav ul.mhdr_account a,
  #wrapper #mhdr #mhdr_nav ul.mhdr_lang a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    font-size: 14px;
    color: var(--ts-gray);
    text-decoration: none;
  }
  #wrapper #mhdr #mhdr_nav ul.mhdr_account a:hover,
  #wrapper #mhdr #mhdr_nav ul.mhdr_lang a:hover { color: var(--ts-ink); }
  #wrapper #mhdr #mhdr_nav ul.mhdr_lang > li .__i { display: block; }
  /* v11: the cloned logged-out row carries the same empty .fa span as #tbar
     (see 1.2 above); in the flex row it also added an 8px gap */
  #wrapper #mhdr .mhdr_account a > .fa { display: none; }
}
/* v18 (SEQ 34): "My subscriptions" (page 13395) is the one orange element - a
   pill, logged-in only. The tab menu renders a#tab_13395 in the top bar and,
   with the same duplicate id, in the drawer (any language).
   Gate: the Logout link (?c=logout) in #tbar .user_box, which is per visitor -
   fillHeader() on cacheable pages, litProfile on the others; the drawer's
   account rows are cloned from it. Not the <html> _auth0/_auth1 class: that is
   inside the OutputCache'd HTML and on 534 the cache key does not vary by login
   (ShowPricesForGuest = 1), so a cached copy carries its first visitor's state. */
#wrapper:not(:has(#tbar .user_box a[href*="c=logout"])) li:has(> a#tab_13395) { display: none; }
@media (min-width: 1024px) {
  #wrapper #chdr #tbar .menu_box ul li:has(> a#tab_13395) { margin-left: 8px; }
  #wrapper #chdr #tbar .menu_box ul li:has(> a#tab_13395)::before { display: none; }
  #wrapper #tbar .menu_box ul li a#tab_13395 {
    vertical-align: top;
    height: 28px;
    margin: 6px 0;
    padding: 0 14px;
    line-height: 28px;
    color: var(--ts-white);
    background: var(--ts-accent);
    border-radius: var(--ts-r-pill);
    text-decoration: none;
  }
  #wrapper #tbar .menu_box ul li a#tab_13395:hover,
  #wrapper #tbar .menu_box ul li.selected > a#tab_13395 {
    color: var(--ts-white);
    background: color-mix(in srgb, var(--ts-accent) 85%, black);
    text-decoration: none;
  }
  /* focus: the bar's white ring (#tbar a:focus-visible above) */
}
@media (max-width: 1023px) {
  #wrapper #mhdr #mhdr_nav ul.mhdr_tabs > li:has(> a#tab_13395) { padding: 4px 20px; }
  #wrapper #mhdr #mhdr_nav ul.mhdr_tabs > li > a#tab_13395 {
    display: inline-flex;
    height: 40px;
    min-height: 40px;
    padding: 0 18px;
    font-weight: 600;
    color: var(--ts-white);
    background: var(--ts-accent);
    border-radius: var(--ts-r-pill);
  }
  #wrapper #mhdr #mhdr_nav ul.mhdr_tabs > li > a#tab_13395:hover,
  #wrapper #mhdr #mhdr_nav ul.mhdr_tabs > li.selected > a#tab_13395 {
    color: var(--ts-white);
    background: color-mix(in srgb, var(--ts-accent) 85%, black);
  }
}
/* ---- end 6.c ---- */

/* ---- 6.d Pass d: auth screens (#login_bg #login_container .meta-btn) ----
   /login = template 202: #bodyclass.login > #login_bg > account_responsive_one_page.ascx
   (no header/footer cells, outside #bdy - so the section 2 field component does
   not reach these forms; it is restated here under #login_container). Owner
   ruling: no background image at all (the theme's bg.jpg is a 1920x1080
   placeholder graphic - its printed size was the stray "1920px 1080px" text). */
#wrapper #bodyclass.login,
#wrapper #login_bg {
  background: var(--ts-bg-soft) none;
}
#wrapper #login_bg {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}
#wrapper #login_container {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  background: var(--ts-white);
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-card);
  box-shadow: none;
  font-family: var(--ts-font);
  color: var(--ts-ink);
}
#wrapper #login_container * { box-sizing: border-box; }
#wrapper #login_logo {
  padding-top: 24px;
  text-align: center;
}
#wrapper #login_logo img {
  width: 200px;
  max-width: 100%;
  height: auto;
}
#wrapper #login_box { padding: 0 32px 28px; }
#wrapper #login_box .hello {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ts-ink);
  margin: 16px 0 16px;
  text-align: center;
}
#wrapper #login_box .title,
#wrapper #login_box .title p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ts-ink);
}
#wrapper #login_box .title { margin: 0 0 16px; }
#wrapper #login_box .email_saved { font-size: 14px; color: var(--ts-gray); text-align: center; margin: 0 0 12px; }
#wrapper #login_box .login_form label { display: block; margin: 0 0 14px; }
#wrapper #login_box .login_form label p {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ts-ink);
}
#wrapper #login_container input[type="text"],
#wrapper #login_container input[type="email"],
#wrapper #login_container input[type="password"] {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 44px;
  margin: 6px 0 0;
  padding: 10px 12px;
  font-family: var(--ts-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4; /* v7: the theme's line-height 40px made these 62px tall; 22 + 20 + 2 = the component's 44px */
  color: var(--ts-ink);
  background: var(--ts-white);
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-field);
  box-shadow: none;
}
#wrapper #login_container input[type="text"]:focus-visible,
#wrapper #login_container input[type="email"]:focus-visible,
#wrapper #login_container input[type="password"]:focus-visible {
  outline: 2px solid var(--ts-brand-light);
  outline-offset: 2px;
  border-color: var(--ts-brand);
}
#wrapper #login_box .button { margin: 4px 0 16px; }
/* v7: the theme paints the div.button wrapper around every .meta-btn #f58232 (orange corners behind the pill) */
#wrapper #login_container .button,
#wrapper #login_container .button:hover,
#wrapper #login_container .button:focus-within {
  background: transparent none;
  padding: 0;
  border: 0;
  box-shadow: none;
}
#wrapper #login_container .button > .__d { height: 0; margin: 0; padding: 0; background: none; }
#wrapper #login_container .meta-btn {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid var(--ts-brand);
  border-radius: var(--ts-r-pill);
  background: var(--ts-brand);
  color: var(--ts-white);
  font-family: var(--ts-font);
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
#wrapper #login_container .meta-btn:hover {
  background: var(--ts-brand-hover);
  border-color: var(--ts-brand-hover);
}
#wrapper #login_container .meta-btn:focus-visible,
#wrapper #login_container .form_button:focus-visible,
#wrapper #login_container a:focus-visible {
  outline: 2px solid var(--ts-brand-light);
  outline-offset: 2px;
}
#wrapper #login_container .form_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--ts-r-pill);
  background: transparent;
  color: var(--ts-brand);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
#wrapper #login_container .form_button:hover { color: var(--ts-brand-hover); text-decoration: underline; }
#wrapper #login_box .info,
#wrapper #login_box .info p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ts-ink);
}
#wrapper #login_box .info a { color: var(--ts-brand); }
#wrapper #login_box .info.success {
  padding: 12px 16px;
  border-radius: var(--ts-r-field);
  background: var(--ts-ok-bg);
  color: var(--ts-ok);
}
#wrapper #login_box .info.success p { color: var(--ts-ok); }
#wrapper #login_box .info.error {
  padding: 12px 16px;
  border-radius: var(--ts-r-field);
  background: var(--ts-red-bg);
  color: var(--ts-red);
}
#wrapper #login_box .info.error p { color: var(--ts-red); }
#wrapper #login_box .password_options,
#wrapper #login_box .register_checkboxes {
  font-size: 14px;
  color: var(--ts-ink);
}
#wrapper #login_box .password_options a,
#wrapper #login_box .need_help a,
#wrapper #login_box .go_back a {
  font-size: 14px;
  color: var(--ts-brand);
  text-decoration: none;
}
#wrapper #login_box .password_options a:hover,
#wrapper #login_box .need_help a:hover,
#wrapper #login_box .go_back a:hover { text-decoration: underline; }
#wrapper #login_container .colorred,
#wrapper #login_container .ts-field-error,
#wrapper #login_container .error { color: var(--ts-red); font-size: 13px; }
#wrapper #login_container .error { display: inline !important; } /* !important: moved verbatim from the control's own <style> - the theme's login CSS sets display on .error; validators still hide their own wrapper with inline display:none */
/* v24 (SEQ 86, owner): every text in the card centred - messages, labels, links, headings, the checkbox row - in every
   state of the control. What a visitor types is not touched (no input / textarea / select here): those keep the
   alignment they have today. */
#wrapper #login_container *:not(input):not(textarea):not(select) { text-align: center; }

/* footer links under the card (SiteMenu FooterAccount) + "Powered by" line */
#wrapper #login_footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 0;
  padding: 0 16px;
  list-style: none;
  text-shadow: none; /* v8: the theme sets text-shadow 1px 1px 0 #000 on the footer ul/li */
}
#wrapper #login_footer li { text-shadow: none; }
#wrapper #login_footer a,
#wrapper #login_footer a .__t {
  font-family: var(--ts-font); /* v7: the theme sets its condensed 700 face here */
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  text-shadow: none;
  font-size: 14px;
  color: var(--ts-gray);
  text-decoration: none;
}
#wrapper #login_footer a:hover,
#wrapper #login_footer a:hover .__t { color: var(--ts-ink); }
#wrapper #login_footer a:focus-visible { outline: 2px solid var(--ts-brand-light); outline-offset: 2px; }
#form1:has(#login_bg) .global_footer,
#form1:has(#login_bg) .global_footer a,
#form1:has(#login_bg) .global_footer * {
  font-family: var(--ts-font);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--ts-gray);
  background: var(--ts-bg-soft);
}

@media (max-width: 719px) {
  #wrapper #login_box { padding: 0 24px 24px; }
}
/* v18 (SEQ 34): the platform account screens (template 195, #main_wrap.mw_uac:
   account details, edit details, change password - all .uac_cm_form) take the
   component look. Submit buttons = .ts-btn-primary (brand pill, 44px); the
   back button (input.back, "Back to profile") = .ts-btn-secondary. The value
   boxes (.info_field: theme grey #f0f0f0 + drop shadow) and the inputs = white,
   1px line, radius 8 (the theme's orange hover/focus border is gone too).
   Brand blue is the primary action colour; orange is only the My subscriptions
   pill (6.c). The order-list / filter-bar buttons (.uac_cm_crt,
   .uac_cm_filterbar - screens hidden on 534) keep the theme. */
#wrapper #main_wrap.mw_uac .uac_cm_form :is(button, input[type=submit], input[type=button]):not(:where(.uac_cm_crt *, .uac_cm_filterbar *)) {
  box-sizing: border-box;
  height: auto;
  min-height: 44px;
  margin: 0 8px 12px 0;
  padding: 13px 26px;
  font-family: var(--ts-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ts-white);
  background: var(--ts-brand);
  border: 1px solid var(--ts-brand);
  border-radius: var(--ts-r-pill);
  box-shadow: none;
  cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s, color .15s;
}
#wrapper #main_wrap.mw_uac .uac_cm_form :is(button, input[type=submit], input[type=button]):not(:where(.uac_cm_crt *, .uac_cm_filterbar *)):is(:hover, :focus, :active) {
  color: var(--ts-white);
  background: var(--ts-brand-hover);
  border-color: var(--ts-brand-hover);
  box-shadow: none;
}
#wrapper #main_wrap.mw_uac .uac_cm_form :is(button, input[type=submit], input[type=button]):not(:where(.uac_cm_crt *, .uac_cm_filterbar *)):hover { transform: scale(1.02); }
#wrapper #main_wrap.mw_uac .uac_cm_form :is(button, input[type=submit], input[type=button]):not(:where(.uac_cm_crt *, .uac_cm_filterbar *)):focus-visible {
  outline: 2px solid var(--ts-brand-light);
  outline-offset: 2px;
}
#wrapper #main_wrap.mw_uac .uac_cm_form :is(button, input[type=submit], input[type=button]):not(:where(.uac_cm_crt *, .uac_cm_filterbar *)).back {
  color: var(--ts-ink);
  background: var(--ts-bg-soft);
  border-color: var(--ts-line);
}
#wrapper #main_wrap.mw_uac .uac_cm_form :is(button, input[type=submit], input[type=button]):not(:where(.uac_cm_crt *, .uac_cm_filterbar *)).back:is(:hover, :focus, :active) {
  color: var(--ts-ink);
  background: var(--ts-bg-soft);
  border-color: var(--ts-gray);
}
#wrapper #main_wrap.mw_uac .uac_cm_form .info_field,
#wrapper #main_wrap.mw_uac .uac_cm_form :is(input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], select, textarea) {
  background-color: var(--ts-white);
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-r-field);
  box-shadow: none;
}
#wrapper #main_wrap.mw_uac .uac_cm_form :is(input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], select, textarea):focus {
  border-color: var(--ts-brand);
  box-shadow: none;
}
#wrapper #main_wrap.mw_uac .uac_cm_form :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--ts-brand-light);
  outline-offset: 2px;
}
/* v19 (SEQ 35): the My account sidebar's "My subscriptions" row (a SiteMenu
   AccountLeft row in repCustomAccountMenu; EN /my-subscriptions, RO
   /ro/abonamentele-mele) is an OUTLINED orange pill, so the solid pill in the
   bar (6.c) stays the single primary accent. The other rows are unchanged. */
#wrapper #uac_cm_sidebar .uac_cm_sidebar_menu li > a:is([href$="/my-subscriptions"], [href$="/abonamentele-mele"]) {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 36px;
  padding: 0 16px;
  font-weight: 600;
  color: var(--ts-accent);
  background: var(--ts-white);
  border: 1px solid var(--ts-accent);
  border-radius: var(--ts-r-pill);
  text-decoration: none;
}
#wrapper #uac_cm_sidebar .uac_cm_sidebar_menu li > a:is([href$="/my-subscriptions"], [href$="/abonamentele-mele"]):hover,
#wrapper #uac_cm_sidebar .uac_cm_sidebar_menu li.selected > a:is([href$="/my-subscriptions"], [href$="/abonamentele-mele"]) {
  color: var(--ts-white);
  background: var(--ts-accent);
  text-decoration: none;
}
#wrapper #uac_cm_sidebar .uac_cm_sidebar_menu li > a:is([href$="/my-subscriptions"], [href$="/abonamentele-mele"]):focus-visible {
  outline: 2px solid var(--ts-brand-light);
  outline-offset: 2px;
}
/* ---- end 6.d ---- */

/* ---- 6.e Pass e: footer as one label (FOOTER_COL1_CONTENT = div.ts-ftr) ----
   Model: hendi.ro (site 342), same control footer_v4_content.ascx: the whole
   footer is the FOOTER_COL1_CONTENT label, written raw into cell 1 after the
   FOOTER_COL1_TITLE .faux_h1; its theme hides the rest of the control
   (#ftr .__a2, #ftr > .__i > .__c > .__e2 / .__e3). Here that hiding is gated
   on :has(.ts-ftr), so the old three-cell footer is untouched until the label
   is pasted. Label sources + owner steps: Claude outputs\design-pass-e\.
   Columns: brand | About us (two lists, spans 2 tracks) | Contact.
   Cell 3 is kept, minus its logo and social icons: its #ftr_newsletter (the
   live theMarketer embed) is moved into the grid by a script once it has
   content - see the newsletter block at the end of this section (owner,
   2026-11-07; SEQ 28, 29). */
#wrapper #ftr > .__i > .__c:has(.ts-ftr) > .__e2,
#wrapper #ftr > .__i > .__c:has(.ts-ftr) > .__e3 .logo,
#wrapper #ftr > .__i > .__c:has(.ts-ftr) > .__e3 .social_icons,
#wrapper #ftr .__a1 > .__i:has(> .ts-ftr) > .faux_h1 { display: none; }
#wrapper #ftr > .__i > .__c > .__e1:has(.ts-ftr) {
  flex: 0 0 100%;
  max-width: 100%;
}
#wrapper #ftr > .__i > .__c > .__e1:has(.ts-ftr) > .__i {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
#wrapper #ftr .ts-ftr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  font-family: var(--ts-font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ts-gray);
  text-align: left;
}
#wrapper #ftr .ts-ftr-col { min-width: 0; }
#wrapper #ftr .ts-ftr-h {
  display: block;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--ts-ink);
  background: none;
  font-family: var(--ts-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ts-ink);
}
#wrapper #ftr .ts-ftr-text,
#wrapper #ftr .ts-ftr-company { margin: 0 0 12px; }
#wrapper #ftr .ts-ftr-company { font-size: 13px; line-height: 1.55; }
#wrapper #ftr .ts-ftr-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  align-content: start;
}
#wrapper #ftr .ts-ftr-about > .ts-ftr-h { grid-column: 1 / -1; }
#wrapper #ftr .ts-ftr-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
#wrapper #ftr .ts-ftr-list li { margin: 0; padding: 0; list-style: none; } /* v11: rows at the 14px/1.6 line height (owner) */
#wrapper #ftr .ts-ftr a {
  font-size: 14px;
  color: var(--ts-gray);
  text-decoration: none;
}
#wrapper #ftr .ts-ftr a:hover { color: var(--ts-ink); text-decoration: underline; }
#wrapper #ftr .ts-ftr-contact a { color: var(--ts-brand); }
#wrapper #ftr .ts-ftr-contact a:hover { color: var(--ts-brand-hover); }
#wrapper #ftr .ts-ftr a:focus-visible { outline: 2px solid var(--ts-brand-light); outline-offset: 2px; }
#wrapper #ftr .ts-ftr-contact { grid-column: 1 / -1; }

@media (min-width: 1024px) {
  #wrapper #ftr .ts-ftr { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  #wrapper #ftr .ts-ftr-about { grid-column: span 2; } /* inner 1fr 1fr + the same 32px gap = exactly tracks 2 and 3 */
  #wrapper #ftr .ts-ftr-contact { grid-column: auto; text-align: right; }
}
@media (max-width: 719px) {
  #wrapper #ftr:has(.ts-ftr) { padding-left: 20px; padding-right: 20px; }
  #wrapper #ftr .ts-ftr { grid-template-columns: 1fr; gap: 28px; }
  #wrapper #ftr .ts-ftr-contact { grid-column: auto; }
}
/* -- newsletter: the theMarketer embedded form (mini-icon layout) --
   theMarketer injects #mkt-embedded-form-layout-container-<id> into
   .mktr-embedded-form-container (cell 3) with its own <style> (selectors: one
   id + two classes; it also @imports Helvetica Neue from fonts.cdnfonts.com -
   that request is theMarketer's and still loads). Three ids win here, no
   !important. Once the embed has content, the script at the end of
   footer_v4_content.ascx moves #ftr_newsletter into .ts-ftr as its last child
   with the class .ts-ftr-news (v12): under the About us lists at 1024 and up,
   a full row at 720-1023, last item on phones. Ad blockers (uBlock) drop the
   embed: no move, cell 3 stays empty (.logo, .social_icons above; .nl_form,
   .ftr_h3 in 3.9) and nothing shows. Texts, the privacy link and the arrow
   button are theMarketer-side. Compact by default; the phone block restores
   the v11 sizes. */
#wrapper #ftr #ftr_newsletter {
  margin: 0;
  padding: 0;
  text-align: left;
}
#wrapper #ftr #ftr_newsletter > .__i > p:empty { display: none; }
#wrapper #ftr #ftr_newsletter .mktr-embedded-form-container { margin: 0; }
#wrapper #ftr .ts-ftr > #ftr_newsletter.ts-ftr-news { grid-column: 1 / -1; min-width: 0; }
#wrapper #ftr #ftr_newsletter .mkt-embedded-form-layout-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}
#wrapper #ftr #ftr_newsletter .mktr-embedded-form-container * { font-family: var(--ts-font); }
#wrapper #ftr #ftr_newsletter h3.mkt-embedded-form-headline {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ts-ink);
}
#wrapper #ftr #ftr_newsletter .mkt-embedded-form-description {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ts-gray);
}
/* input + arrow button are one glued control in this layout: outer corners 8px */
#wrapper #ftr #ftr_newsletter .mkt-embedded-form-mini-icon-action-wrap { max-width: 520px; }
#wrapper #ftr #ftr_newsletter input.mkt-embedded-form-subscriber-input {
  height: 40px;
  margin: 0;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ts-ink);
  background: var(--ts-white);
  border: 1px solid var(--ts-line);
  border-right-width: 0;
  border-radius: var(--ts-r-field) 0 0 var(--ts-r-field);
  box-shadow: none;
}
#wrapper #ftr #ftr_newsletter input.mkt-embedded-form-subscriber-input::placeholder { color: var(--ts-gray); }
#wrapper #ftr #ftr_newsletter input.mkt-embedded-form-subscriber-input:focus-visible {
  outline: 2px solid var(--ts-brand-light);
  outline-offset: 2px;
  border-color: var(--ts-brand);
}
#wrapper #ftr #ftr_newsletter button.mkt-embedded-form-subscribe-button {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  margin: 0;
  padding: 0 18px;
  background: var(--ts-brand);
  color: var(--ts-white);
  border: 1px solid var(--ts-brand);
  border-radius: 0 var(--ts-r-field) var(--ts-r-field) 0;
}
#wrapper #ftr #ftr_newsletter button.mkt-embedded-form-subscribe-button:hover {
  background: var(--ts-brand-hover);
  border-color: var(--ts-brand-hover);
}
#wrapper #ftr #ftr_newsletter button.mkt-embedded-form-subscribe-button:focus-visible {
  outline: 2px solid var(--ts-brand-light);
  outline-offset: 2px;
}
#wrapper #ftr #ftr_newsletter .mkt-embedded-form-privacy-policy { margin: 8px 0 0; }
#wrapper #ftr #ftr_newsletter .mkt-embedded-form-privacy-policy-input-wrap,
#wrapper #ftr #ftr_newsletter .mkt-embedded-form-privacy-policy-input-wrap p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ts-gray);
}
#wrapper #ftr #ftr_newsletter .mkt-embedded-form-privacy-policy-input-wrap a { font-size: 12px; color: var(--ts-gray); }
#wrapper #ftr #ftr_newsletter .mkt-embedded-form-privacy-policy-input-wrap a:hover { color: var(--ts-ink); }
#wrapper #ftr #ftr_newsletter input[type="checkbox"] { accent-color: var(--ts-brand); }
#wrapper #ftr #ftr_newsletter .mkt-embedded-form-error-input-message {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ts-red);
}
#wrapper #ftr #ftr_newsletter .mkt-embedded-form-success-message {
  margin: 8px 0 0;
  border-radius: var(--ts-r-field);
  background: var(--ts-ok-bg);
}
#wrapper #ftr #ftr_newsletter .mkt-embedded-form-success-message-text,
#wrapper #ftr #ftr_newsletter .mkt-embedded-form-success-message-text p {
  margin: 0;
  font-size: 13px;
  color: var(--ts-ok);
}
/* the "powered by" credit is an image badge: an 11px line = a 14px-tall image */
#wrapper #ftr #ftr_newsletter .mkt-embedded-form-powered-by {
  max-height: 14px;
  margin: 6px 0 0;
}
@media (min-width: 1024px) {
  /* row 1: brand | About us | Contact; row 2 under About us: the newsletter.
     Row 2 is the flexible one, so the taller brand/contact columns grow it
     and not row 1 - the form sits 8px under the link lists. */
  #wrapper #ftr .ts-ftr {
    grid-template-rows: auto 1fr;
    row-gap: 8px;
  }
  #wrapper #ftr .ts-ftr-brand { grid-column: 1; grid-row: 1 / 3; }
  #wrapper #ftr .ts-ftr-about { grid-column: 2 / 4; grid-row: 1; }
  #wrapper #ftr .ts-ftr-contact { grid-column: 4; grid-row: 1 / 3; }
  #wrapper #ftr .ts-ftr > #ftr_newsletter.ts-ftr-news { grid-column: 2 / 4; grid-row: 2; align-self: start; }
}
/* phones: last item, v11 band sizes (the mini-icon layout is one row by
   design - icon-only button glued to the input - so it is not stacked) */
@media (max-width: 719px) {
  #wrapper #ftr .ts-ftr > #ftr_newsletter.ts-ftr-news {
    grid-column: auto;
    padding-top: 24px;
    border-top: 1px solid var(--ts-line);
  }
  #wrapper #ftr #ftr_newsletter h3.mkt-embedded-form-headline { margin-bottom: 6px; font-size: 18px; }
  #wrapper #ftr #ftr_newsletter .mkt-embedded-form-description { margin-bottom: 16px; font-size: 14px; }
  #wrapper #ftr #ftr_newsletter .mkt-embedded-form-mini-icon-action-wrap { max-width: none; }
  #wrapper #ftr #ftr_newsletter input.mkt-embedded-form-subscriber-input { height: 44px; padding: 10px 12px; }
  #wrapper #ftr #ftr_newsletter button.mkt-embedded-form-subscribe-button { height: 44px; min-height: 44px; max-height: 44px; padding: 0 20px; }
  #wrapper #ftr #ftr_newsletter .mkt-embedded-form-privacy-policy { margin-top: 12px; }
  #wrapper #ftr #ftr_newsletter .mkt-embedded-form-privacy-policy-input-wrap,
  #wrapper #ftr #ftr_newsletter .mkt-embedded-form-privacy-policy-input-wrap p,
  #wrapper #ftr #ftr_newsletter .mkt-embedded-form-privacy-policy-input-wrap a,
  #wrapper #ftr #ftr_newsletter .mkt-embedded-form-error-input-message { font-size: 13px; }
  #wrapper #ftr #ftr_newsletter .mkt-embedded-form-success-message-text,
  #wrapper #ftr #ftr_newsletter .mkt-embedded-form-success-message-text p { font-size: 14px; }
}
/* ---- end 6.e ---- */

/* ---- 6.f v21 (TODO 205 slice 4): the partner-code block ----
   js/tschat-campaign.js builds .ts-campaign-ui inside the empty #ts-campaign container: on the prices page
   (.tsp, between the product finder and the plans) and on /choose-the-plan (.tcp, after the trial status).
   The container itself carries no rule: without the script it is empty and takes no space.
   The lines reuse the component notes (.ts-note, -ok, -error); the button is .ts-btn-secondary. */
#bdy .ts-campaign-ui { margin: 0 0 var(--ts-s5); }
#bdy .tcp .ts-campaign-ui { margin: var(--ts-s5) 0 0; }
#bdy .ts-campaign-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ts-s3) var(--ts-s4);
  padding: var(--ts-s4) var(--ts-s5);
  background: var(--ts-bg-soft);
  border-radius: var(--ts-r-card);
}
#bdy .ts-campaign-field label { font-weight: 700; color: var(--ts-ink); }
#bdy .ts-campaign-field input { width: 220px; max-width: 100%; }
#bdy .ts-campaign-field .ts-btn { margin: 0; }
#bdy .ts-campaign-msgs { display: grid; gap: var(--ts-s2); }
#bdy .ts-campaign-msgs:not(:empty) { margin-top: var(--ts-s3); }
#bdy .ts-campaign-msgs p { margin: 0; }
#bdy .ts-campaign-msgs a { color: var(--ts-brand); }
/* ---- end 6.f ---- */

/* ---- 6.g v22 (tax ID before Checkout, slice 3): the new company's details on /choose-the-plan ----
   ChoosePlanTemplate.NewCompanyBlock, rendered only with TSChat.NewCompanyTaxIdBeforeCheckout on, right after the
   company options (.tcp-companies); its script shows it only while "a new company" is selected. */
#bdy .tcp .tcp-newco {
  display: grid;
  gap: var(--ts-s2);
  max-width: 520px;
  margin: var(--ts-s5) 0 0;
  padding: var(--ts-s4) var(--ts-s5);
  background: var(--ts-bg-soft);
  border-radius: var(--ts-r-card);
}
#bdy .tcp .tcp-newco[hidden], #bdy .tcp .tcp-newco [hidden] { display: none; }
#bdy .tcp .tcp-newco h3 { margin: 0 0 var(--ts-s2); font-size: 16px; color: var(--ts-ink); }
#bdy .tcp .tcp-newco label { margin-top: var(--ts-s2); font-size: 14px; font-weight: 600; color: var(--ts-ink); }
#bdy .tcp .tcp-newco input { width: 100%; max-width: 100%; }
#bdy .tcp .tcp-newco p { margin: 0; }
#bdy .tcp .tcp-newco-help, #bdy .tcp .tcp-newco-note { color: var(--ts-gray); font-size: 14px; }
#bdy .tcp .tcp-newco-err { color: var(--ts-warn); font-weight: 700; }
#bdy .tcp .tcp-newco-contact a { color: var(--ts-brand); }
/* ---- end 6.g ---- */
