/* Three 17 Support Centre: one stylesheet for the hub and both product help centres. The brand is set by
   <body data-brand="three17|educatedon|automatedon">; everything below reads the brand through these variables. */
:root, [data-brand="three17"] {
  --primary: #00809D;
  --primary-hover: #006A82;
  --primary-text: #00708A;
  --soft: #E6F4F7;
  --line: #B9DDE7;
  --ink: #244061;
  --hero: #1B3350;
  --hero-accent: #9FD3E3;
  --hero-chip: #486581;
  --font-head: Aptos, "Figtree", system-ui, sans-serif;
  --font-body: Aptos, "Figtree", system-ui, sans-serif;
  --head-weight: 500;

  --text: #1F2933;
  --text-2: #323F4B;
  --text-3: #3E4C59;
  --muted: #52606D;
  --rule: #E4E7EB;
  --field: #CBD2D9;
  --surface: #F5F7FA;
  --hero-text: #D9E2EC;

  --eo: #6941C6; --eo-soft: #F4F0FC; --eo-text: #53389E; --eo-line: #D9CCF3; --eo-ink: #062A44;
  --ao: #2B7F72; --ao-soft: #E8F5F2; --ao-text: #22695E; --ao-line: #BFE3DC; --ao-ink: #172B3A;

  --st-open-bg: #DCEEFB; --st-open-fg: #0B4F8A;
  --st-progress-bg: #E3F8F5; --st-progress-fg: #0B6B5E;
  --st-waiting-bg: #FFF3C4; --st-waiting-fg: #7A4B00;
  --st-resolved-bg: #E4E7EB; --st-resolved-fg: #3E4C59;
  --danger: #9B2C2C;
  --radius: 12px;
}

[data-brand="educatedon"] {
  --primary: #6941C6; --primary-hover: #53389E; --primary-text: #53389E;
  --soft: #F4F0FC; --line: #D9CCF3; --ink: #062A44; --hero: #062A44; --hero-accent: #FEC84B; --hero-chip: #3B5A73;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

[data-brand="automatedon"] {
  --primary: #2B7F72; --primary-hover: #22695E; --primary-text: #22695E;
  --soft: #E8F5F2; --line: #BFE3DC; --ink: #172B3A; --hero: #172B3A; --hero-accent: #7FD1C3; --hero-chip: #3E5A6B;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --head-weight: 700;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: #FFFFFF; font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--primary-text); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); color: var(--ink); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.sup-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sup-skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--ink); color: #FFFFFF; border-radius: 8px; }
.sup-skip:focus { top: 12px; }
.sup-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sup-wrap--wide { max-width: 1240px; }

/* Buttons */
.sup-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.sup-btn--primary { background: var(--primary); color: #FFFFFF; }
.sup-btn--primary:hover { background: var(--primary-hover); color: #FFFFFF; }
.sup-btn--outline { background: #FFFFFF; color: var(--primary-text); border-color: var(--primary); }
.sup-btn--outline:hover { background: var(--soft); color: var(--primary-text); }
.sup-btn--plain { background: #FFFFFF; color: var(--text-2); border-color: var(--field); }
.sup-btn--plain:hover { background: var(--surface); color: var(--text); }
.sup-btn--block { width: 100%; }
.sup-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Header */
.sup-header { background: #FFFFFF; border-bottom: 1px solid var(--rule); }
.sup-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.sup-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.sup-brand img { display: block; height: 36px; width: auto; }
.sup-brand__label { font-size: 16px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--field); white-space: nowrap; }
.sup-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.sup-nav__link { padding: 12px 14px; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 8px; }
.sup-nav__link:hover { background: var(--surface); color: var(--text); }
.sup-nav__link[aria-current="page"] { color: var(--primary-text); font-weight: 600; }
.sup-nav .sup-btn { margin-left: 4px; }
.sup-header__search { flex: 1 1 200px; max-width: 320px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--field); border-radius: 10px; padding: 0 12px; height: 44px; background: #FFFFFF; }
.sup-header__search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 15px; height: 40px; color: var(--text); background: transparent; }
.sup-header__search input:focus { outline: none; }
.sup-header__search:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.sup-account { position: relative; }
.sup-account summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.sup-account summary::-webkit-details-marker { display: none; }
.sup-account summary:hover { background: var(--surface); }
.sup-account__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 220px; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 30, 45, .12); padding: 8px; }
.sup-account__menu p { margin: 4px 8px 8px; font-size: 14px; color: var(--muted); }
.sup-account__menu button { width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; font: inherit; font-size: 15px; border-radius: 6px; cursor: pointer; color: var(--text); }
.sup-account__menu button:hover { background: var(--surface); }
.sup-avatar { flex: none; width: 36px; height: 36px; border-radius: 999px; background: var(--soft); color: var(--primary-text); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.sup-avatar--agent { background: var(--primary); color: #FFFFFF; }
.sup-who { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.sup-who strong { font-size: 15px; font-weight: 600; color: var(--text); }
.sup-who span { font-size: 13px; color: var(--muted); }

/* Hero */
.sup-hero { background: var(--hero); color: #FFFFFF; }
.sup-hero__inner { padding-top: 72px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 18px; }
.sup-hero--centred .sup-hero__inner { align-items: center; text-align: center; padding-top: 88px; padding-bottom: 96px; gap: 20px; }
.sup-hero__eyebrow { margin: 0; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--hero-accent); font-weight: 600; }
.sup-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; font-weight: 500; max-width: 760px; color: #FFFFFF; }
.sup-hero__lead { margin: 0; font-size: 19px; line-height: 1.5; color: var(--hero-text); max-width: 620px; font-weight: 300; }
.sup-hero__note { margin: 0; font-size: 14px; color: var(--hero-text); }
.sup-hero__note a, .sup-hero a.sup-crumb { color: #FFFFFF; font-weight: 600; }
.sup-hero .sup-breadcrumb { color: var(--hero-text); }
.sup-hero .sup-breadcrumb a { color: #FFFFFF; }
.sup-bigsearch { width: 100%; max-width: 760px; display: flex; flex-wrap: wrap; gap: 8px; background: #FFFFFF; border-radius: 12px; padding: 8px; }
.sup-bigsearch select { height: 52px; border: 0; background: var(--surface); border-radius: 8px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--text-2); }
.sup-bigsearch input { flex: 1 1 240px; min-width: 0; height: 52px; border: 0; font: inherit; font-size: 17px; padding: 0 12px; color: var(--text); }
.sup-bigsearch .sup-btn { height: 52px; padding: 0 26px; font-size: 16px; }
.sup-popular { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font-size: 14px; color: var(--hero-text); }
.sup-popular a { color: #FFFFFF; padding: 6px 12px; border: 1px solid var(--hero-chip); border-radius: 999px; text-decoration: none; }
.sup-popular a:hover { background: rgba(255, 255, 255, .08); }
.sup-pill-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: #FFFFFF; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.sup-pill-link:hover { color: var(--primary-text); }
.sup-hero:not(.sup-hero--centred) .sup-pill-link { align-self: flex-start; }

/* Sections */
.sup-section { padding-top: 64px; padding-bottom: 24px; }
.sup-section h2.sup-section__title { margin: 0 0 8px; font-size: 30px; }
.sup-section__lead { margin: 0 0 32px; font-size: 17px; color: var(--muted); font-weight: 300; }
.sup-columns { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 56px; padding-bottom: 72px; }
.sup-columns > * { flex: 1 1 440px; min-width: 0; }
.sup-columns > .sup-columns__main { flex: 2 1 480px; }
.sup-columns > .sup-columns__side { flex: 1 1 300px; align-self: flex-start; }
.sup-h-list { margin: 0 0 16px; font-size: 24px; }

/* Product cards (hub) */
.sup-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.sup-product { border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: #FFFFFF; }
.sup-product__head { padding: 28px 32px; display: flex; align-items: center; gap: 14px; }
.sup-product__head img { height: 40px; width: auto; }
.sup-product__tagline { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.sup-product--educatedon .sup-product__head { background: var(--eo-soft); }
.sup-product--educatedon .sup-product__tagline { color: var(--eo-text); }
.sup-product--automatedon .sup-product__head { background: var(--ao-soft); }
.sup-product--automatedon .sup-product__tagline { color: var(--ao-text); }
.sup-product__body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.sup-product__body > p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-3); }
.sup-product__body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.sup-product__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.sup-product--educatedon .sup-btn--primary { background: var(--eo); }
.sup-product--educatedon .sup-btn--primary:hover { background: var(--eo-text); }
.sup-product--educatedon .sup-btn--outline { color: var(--eo-text); border-color: var(--eo-line); }
.sup-product--educatedon a:not(.sup-btn) { color: var(--eo-text); }
.sup-product--automatedon .sup-btn--primary { background: var(--ao); }
.sup-product--automatedon .sup-btn--primary:hover { background: var(--ao-text); }
.sup-product--automatedon .sup-btn--outline { color: var(--ao-text); border-color: var(--ao-line); }
.sup-product--automatedon a:not(.sup-btn) { color: var(--ao-text); }

/* Lists of guides */
.sup-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.sup-list li { border-bottom: 1px solid var(--rule); }
.sup-list a { display: flex; align-items: center; gap: 14px; padding: 16px 4px; text-decoration: none; color: var(--primary-text); font-size: 16px; font-weight: 500; }
.sup-list a:hover { background: var(--surface); }
.sup-list a .sup-list__title { flex: 1; }
.sup-list a .sup-list__meta { font-size: 14px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.sup-list a svg { flex: none; color: #7B8794; }
.sup-list--plain a { color: var(--text); }
.sup-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--surface); color: var(--text-2); }
.sup-tag--educatedon { background: var(--eo-soft); color: var(--eo-text); }
.sup-tag--automatedon { background: var(--ao-soft); color: var(--ao-text); }

/* Panels */
.sup-panel { background: var(--soft); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.sup-panel h2 { margin: 0; font-size: 22px; }
.sup-panel p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.sup-panel--grey { background: var(--surface); padding: 22px; border-radius: 12px; gap: 12px; }
.sup-panel--grey h2 { font-size: 18px; }
.sup-panel--grey p { font-size: 15px; }
.sup-contacts { background: var(--surface); }
.sup-contacts__inner { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.sup-contacts h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.sup-contacts__inner > div { display: flex; flex-direction: column; gap: 6px; }
.sup-contacts span { font-size: 15px; color: var(--muted); }
.sup-band { background: var(--soft); }
.sup-band__inner { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.sup-band h2 { margin: 0 0 6px; font-size: 24px; }
.sup-band p { margin: 0; color: var(--text-2); }
.sup-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Topics grid */
.sup-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.sup-topic { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--rule); border-radius: 14px; text-decoration: none; color: var(--text); background: #FFFFFF; }
.sup-topic:hover { border-color: var(--line); background: var(--soft); color: var(--text); }
.sup-topic__icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--soft); color: var(--primary-text); display: flex; align-items: center; justify-content: center; }
.sup-topic:hover .sup-topic__icon { background: #FFFFFF; }
.sup-topic__text { display: flex; flex-direction: column; gap: 6px; }
.sup-topic__name { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--ink); }
.sup-topic__desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.sup-topic__count { font-size: 13px; color: var(--muted); }

/* Topic and guide pages */
.sup-subhero { background: var(--soft); border-bottom: 1px solid var(--line); }
.sup-subhero__inner { padding-top: 36px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }
.sup-subhero h1 { margin: 0; font-size: 38px; }
.sup-subhero p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-3); max-width: 720px; }
.sup-breadcrumb { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.sup-breadcrumb a { color: var(--primary-text); }
.sup-layout { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 40px; padding-bottom: 72px; }
.sup-layout__nav { flex: 1 1 240px; min-width: 0; }
.sup-layout__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.sup-layout__aside { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.sup-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); }
.sup-sidenav { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sup-sidenav a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 15px; line-height: 1.4; text-decoration: none; color: var(--text-2); }
.sup-sidenav a:hover { background: var(--surface); }
.sup-sidenav a[aria-current="page"] { background: var(--soft); color: var(--primary-text); font-weight: 600; }
.sup-group h2 { margin: 0 0 8px; font-size: 22px; }

.sup-article { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.sup-article__head { display: flex; flex-direction: column; gap: 12px; }
.sup-article h1 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; }
.sup-article__meta { margin: 0; font-size: 14px; color: #616E7C; }
.sup-article h2.sup-article__h { margin: 16px 0 0; font-size: 26px; scroll-margin-top: 16px; }
.sup-rte { font-size: 16px; line-height: 1.7; color: var(--text-3); }
.sup-rte > :first-child { margin-top: 0; }
.sup-rte > :last-child { margin-bottom: 0; }
.sup-rte h2 { font-size: 22px; margin: 28px 0 8px; }
.sup-rte h3 { font-size: 18px; margin: 24px 0 6px; }
.sup-rte code { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 5px; font-size: .92em; }
.sup-rte pre { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; overflow-x: auto; }
.sup-rte pre code { border: 0; padding: 0; background: none; }
.sup-rte table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.sup-rte th, .sup-rte td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.sup-rte th { background: var(--surface); color: var(--text); }
.sup-rte--lead { font-size: 18px; color: var(--text-2); }
.sup-note { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: flex; gap: 14px; }
.sup-note > svg { flex: none; margin-top: 2px; color: var(--primary-text); }
.sup-note h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; scroll-margin-top: 16px; }
.sup-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 24px; counter-reset: step; }
.sup-steps > li { display: flex; gap: 18px; }
.sup-steps__n { flex: none; width: 36px; height: 36px; border-radius: 999px; background: var(--primary); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.sup-steps__body { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; min-width: 0; flex: 1; }
.sup-steps__body h3 { margin: 0; font-family: var(--font-body); font-size: 18px; font-weight: 600; color: var(--text); }
.sup-figure { margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.sup-figure img { border-radius: 12px; border: 1px solid var(--rule); }
.sup-figure figcaption { font-size: 14px; color: #616E7C; }
.sup-feedback { margin-top: 16px; padding: 24px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.sup-feedback h2 { margin: 0; font-family: var(--font-body); font-size: 17px; font-weight: 600; color: var(--text); }
.sup-feedback form { display: flex; gap: 10px; }
.sup-feedback .sup-btn { min-width: 88px; }
.sup-feedback__thanks { margin: 0; font-weight: 600; color: var(--primary-text); }
.sup-related h2 { margin: 0 0 12px; font-size: 20px; }
.sup-related ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sup-related a { font-size: 16px; font-weight: 500; }
.sup-toc ul { margin: 0; padding: 0 0 0 14px; list-style: none; display: flex; flex-direction: column; gap: 10px; border-left: 2px solid var(--rule); font-size: 15px; }
.sup-toc a { color: var(--text-2); text-decoration: none; }
.sup-toc a:hover { color: var(--primary-text); }

/* Search */
.sup-searchhead { background: var(--soft); border-bottom: 1px solid var(--line); }
.sup-searchhead__inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.sup-searchhead .sup-bigsearch { max-width: 820px; border: 1px solid var(--line); }
.sup-searchhead h1 { margin: 0; font-size: 28px; }
.sup-searchhead p { margin: 0; color: var(--text-3); }
.sup-facets { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sup-facets fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sup-facets legend { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.sup-facets a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-size: 15px; }
.sup-facets a:hover { background: var(--surface); }
.sup-facets a[aria-current="true"] { background: var(--soft); color: var(--primary-text); font-weight: 600; }
.sup-facets a span { color: var(--muted); font-weight: 400; }
.sup-results { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.sup-results li { padding: 22px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.sup-results__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.sup-results a.sup-results__title { font-family: var(--font-head); font-size: 20px; font-weight: 600; text-decoration: none; }
.sup-results a.sup-results__title:hover { text-decoration: underline; }
.sup-results p { margin: 0; color: var(--text-3); line-height: 1.6; }
.sup-empty { padding: 32px; border: 1px dashed var(--field); border-radius: 12px; text-align: center; color: var(--muted); }
.sup-empty h2 { margin: 0 0 8px; font-size: 20px; }
.sup-empty p { margin: 0 0 16px; }

/* Forms */
.sup-form { display: flex; flex-direction: column; gap: 22px; }
.sup-field { display: flex; flex-direction: column; gap: 6px; }
.sup-field > label, .sup-field > .sup-label, .sup-form legend { font-size: 15px; font-weight: 600; color: var(--text); }
.sup-field__hint { font-size: 14px; color: var(--muted); }
.sup-input, .sup-select, .sup-textarea { width: 100%; min-height: 48px; border: 1px solid var(--field); border-radius: 8px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--text); background: #FFFFFF; }
.sup-textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.sup-input:focus, .sup-select:focus, .sup-textarea:focus { outline: 3px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.sup-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sup-radios { display: flex; flex-wrap: wrap; gap: 10px; }
.sup-radios label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--field); border-radius: 8px; cursor: pointer; font-size: 15px; }
.sup-radios label:has(input:checked) { border-color: var(--primary); background: var(--soft); color: var(--primary-text); font-weight: 600; }
.sup-check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.sup-check input, .sup-radios input { width: 18px; height: 18px; accent-color: var(--primary); }
.sup-alert { padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.5; }
.sup-alert--error { background: #FDECEC; color: var(--danger); border: 1px solid #F5C2C2; }
.sup-alert--ok { background: var(--st-progress-bg); color: var(--st-progress-fg); border: 1px solid #A8E6DD; }
.sup-alert--info { background: var(--soft); color: var(--text-2); border: 1px solid var(--line); }
.field-validation-error, .sup-error { color: var(--danger); font-size: 14px; }
.sup-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; border: 1px dashed var(--field); border-radius: 12px; background: var(--surface); text-align: center; cursor: pointer; color: var(--text-2); }
.sup-drop.is-over { border-color: var(--primary); background: var(--soft); }
.sup-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sup-drop strong { color: var(--primary-text); }
.sup-drop span { font-size: 14px; color: var(--muted); }
.sup-files { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sup-files li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--surface); border-radius: 8px; }
.sup-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sup-choice label { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid var(--rule); border-radius: 12px; cursor: pointer; background: #FFFFFF; }
.sup-choice label:has(input:checked) { border-color: var(--primary); background: var(--soft); }
.sup-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sup-choice label:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.sup-choice img { height: 28px; width: auto; }
.sup-choice span { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }

/* Sign in */
.sup-auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.sup-auth__side { flex: 1 1 420px; background: var(--hero); color: #FFFFFF; padding: 48px; display: flex; flex-direction: column; gap: 28px; }
.sup-auth__side .sup-brand { color: #FFFFFF; }
.sup-auth__side .sup-brand__label { color: var(--hero-text); border-color: var(--hero-chip); }
.sup-auth__side .sup-brand img { background: #FFFFFF; border-radius: 8px; padding: 6px 10px; height: 48px; }
.sup-auth__side h1 { margin: auto 0 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; color: #FFFFFF; max-width: 460px; }
.sup-auth__side ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; color: var(--hero-text); }
.sup-auth__side li { display: flex; gap: 12px; }
.sup-auth__side li svg { flex: none; color: var(--hero-accent); margin-top: 3px; }
.sup-auth__side p { margin: auto 0 0; font-size: 14px; color: var(--hero-text); }
.sup-auth__main { flex: 1 1 480px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.sup-auth__card { width: 100%; max-width: 440px; }
.sup-auth__card h2 { margin: 0 0 8px; font-size: 30px; }
.sup-auth__card > p { margin: 0 0 24px; color: var(--muted); }
.sup-auth__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sup-auth__row a { font-size: 14px; }
.sup-auth__card > .sup-auth__foot { margin: 24px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Tickets */
.sup-page { padding-top: 40px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.sup-page__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.sup-page__head h1 { margin: 0 0 4px; font-size: 34px; }
.sup-page__head p { margin: 0; color: var(--muted); }
.sup-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--rule); }
.sup-tabs a, .sup-tabs button { padding: 12px 16px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--text-3); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.sup-tabs a[aria-current="page"], .sup-tabs [aria-selected="true"] { color: var(--primary-text); font-weight: 600; border-bottom-color: var(--primary); }
.sup-tabs .sup-count { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 6px; border-radius: 999px; background: var(--surface); font-size: 12px; color: var(--muted); }
.sup-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sup-toolbar .sup-input { flex: 1 1 280px; max-width: 420px; min-height: 44px; }
.sup-toolbar .sup-select { width: auto; min-height: 44px; }
.sup-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sup-chips a { padding: 8px 14px; border: 1px solid var(--field); border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text-2); background: #FFFFFF; }
.sup-chips a[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.sup-tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; }
.sup-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sup-table th { text-align: left; padding: 12px 16px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.sup-table td { padding: 14px 16px; border-top: 1px solid var(--rule); vertical-align: top; }
.sup-table tr:hover td { background: #FAFBFC; }
.sup-table a.sup-ticketlink { display: flex; flex-direction: column; text-decoration: none; gap: 2px; }
.sup-ticketlink small { font-size: 13px; color: var(--muted); font-weight: 600; }
.sup-ticketlink span { color: var(--text); font-weight: 600; }
.sup-ticketlink:hover span { color: var(--primary-text); text-decoration: underline; }
.sup-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sup-status--new { background: var(--st-open-bg); color: var(--st-open-fg); }
.sup-status--inprogress { background: var(--st-progress-bg); color: var(--st-progress-fg); }
.sup-status--awaitingcustomer { background: var(--st-waiting-bg); color: var(--st-waiting-fg); }
.sup-status--resolved { background: var(--st-resolved-bg); color: var(--st-resolved-fg); }
.sup-priority--urgent { color: var(--danger); font-weight: 700; }
.sup-ticket { display: flex; flex-wrap: wrap; gap: 40px; }
.sup-ticket__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sup-ticket__side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sup-ticket__title { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sup-ticket__title h1 { margin: 6px 0 0; font-size: 30px; line-height: 1.2; }
.sup-ticket__ref { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); font-weight: 600; }
.sup-msg { border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; }
.sup-msg--agent { border-color: var(--line); background: var(--soft); }
.sup-msg--system { border-style: dashed; background: var(--surface); font-size: 14px; color: var(--muted); }
.sup-msg header { display: flex; align-items: center; gap: 12px; }
.sup-msg time { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sup-msg__body { white-space: pre-wrap; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
.sup-attach { display: flex; flex-wrap: wrap; gap: 8px; }
.sup-attach a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--field); border-radius: 999px; font-size: 14px; text-decoration: none; background: #FFFFFF; }
.sup-card { border: 1px solid var(--rule); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sup-card h2 { margin: 0; font-size: 17px; font-family: var(--font-body); font-weight: 700; color: var(--text); }
.sup-card p { margin: 0; font-size: 15px; color: var(--text-3); line-height: 1.5; }
.sup-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.sup-dl dt { color: var(--muted); }
.sup-dl dd { margin: 0; color: var(--text); font-weight: 500; }
.sup-reply { border: 1px solid var(--rule); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sup-reply__actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

/* Assistant */
.sup-chat { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 32px; padding-bottom: 64px; }
.sup-chat__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sup-chat__side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sup-chat__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.sup-chat__head h1 { margin: 0; font-size: 26px; }
.sup-chat__head p { margin: 0; font-size: 14px; color: var(--muted); }
.sup-chat__head .sup-btn { margin-left: auto; }
.sup-chat__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--primary-text); display: flex; align-items: center; justify-content: center; }
.sup-chat__log { display: flex; flex-direction: column; gap: 16px; min-height: 240px; }
.sup-bubble { max-width: 85%; padding: 14px 18px; border-radius: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.sup-bubble--user { align-self: flex-end; background: var(--primary); color: #FFFFFF; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.sup-bubble--bot { align-self: flex-start; background: var(--surface); color: var(--text-2); border-bottom-left-radius: 4px; }
.sup-bubble--bot p { margin: 0 0 10px; }
.sup-bubble--bot p:last-child { margin-bottom: 0; }
.sup-bubble--bot ol, .sup-bubble--bot ul { margin: 0 0 10px; padding-left: 22px; }
.sup-sources { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.sup-sources a { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; }
.sup-offer { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 10px; }
.sup-handoff { border: 2px solid var(--primary); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #FFFFFF; }
.sup-handoff h2 { margin: 0; font-size: 20px; }
.sup-composer { border: 1px solid var(--field); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; }
.sup-composer textarea { border: 0; resize: none; font: inherit; font-size: 16px; min-height: 52px; padding: 6px; color: var(--text); }
.sup-composer textarea:focus { outline: none; }
.sup-composer:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.sup-composer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.sup-composer__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sup-composer__chips button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--primary-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sup-disclaimer { margin: 0; font-size: 13px; color: var(--muted); }
.sup-typing { display: inline-flex; gap: 4px; }
.sup-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: sup-blink 1.2s infinite ease-in-out; }
.sup-typing i:nth-child(2) { animation-delay: .15s; }
.sup-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sup-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sup-typing i { animation: none; } }

/* Footer */
.sup-footer { background: var(--hero); color: var(--hero-text); }
.sup-footer__inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; }
.sup-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.sup-footer a { color: var(--hero-text); }
.sup-footer a:hover { color: #FFFFFF; }

@media (max-width: 720px) {
  .sup-brand__label { display: none; }
  .sup-nav { width: 100%; }
  .sup-hero__inner, .sup-hero--centred .sup-hero__inner { padding-top: 48px; padding-bottom: 56px; }
  .sup-bigsearch select { flex: 1 1 100%; }
  .sup-bigsearch .sup-btn { flex: 1 1 100%; }
  .sup-auth__side { padding: 32px 24px; }
  .sup-product__head, .sup-product__body { padding-left: 22px; padding-right: 22px; }
}
