/* SEOmise public help centre and the "Ask Mise" assistant (1.71.0). Extends the "Clear Signal" theme in public.css
   (its tokens: --ink, --brand, --mint, --night, radii, --ease). Phone first; every motion stops under
   prefers-reduced-motion. Help pages: .hc-*. The assistant (on every public page): .mise-*. */

/* ---------- Hero ---------- */
.hc-hero { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 92px); isolation: isolate; }
.hc-hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(900px 420px at 80% -10%, rgba(25, 195, 125, .22), transparent 65%), radial-gradient(700px 420px at -10% 110%, rgba(14, 116, 144, .32), transparent 70%), linear-gradient(180deg, #0b1526, #0f1d33); }
.hc-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(230, 237, 247, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 237, 247, .05) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.hc-hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hc-hero-glow i { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; }
.hc-hero-glow i:nth-child(1) { width: 220px; height: 220px; right: 6%; top: 18%; background: radial-gradient(circle at 30% 30%, rgba(25, 195, 125, .55), rgba(25, 195, 125, 0) 70%); }
.hc-hero-glow i:nth-child(2) { width: 140px; height: 140px; left: 4%; top: 58%; background: radial-gradient(circle at 30% 30%, rgba(14, 116, 144, .7), rgba(14, 116, 144, 0) 70%); }
.hc-hero-glow i:nth-child(3) { width: 90px; height: 90px; right: 28%; bottom: 8%; background: radial-gradient(circle at 30% 30%, rgba(220, 247, 234, .5), rgba(220, 247, 234, 0) 70%); }
.hc-hero-inner { text-align: center; }
.hc-hero h1 { color: #fff; margin: 0 auto 16px; max-width: 16ch; }
.hc-hero h1 em { font-style: normal; color: var(--brand-bright); }
.hc-hero .lede { color: var(--on-night-2); margin: 0 auto 28px; }
.crumbs-light, .crumbs-light a { color: var(--on-night-2); justify-content: center; }
.crumbs-light li + li::before { color: rgba(230, 237, 247, .3); }
.hc-quick { margin: 18px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; color: var(--on-night-2); max-width: 760px; }
.hc-quick span { padding: 6px 2px; }
.hc-quick a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, border-color .2s; }
.hc-quick a:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; }

/* ---------- Search ---------- */
.hc-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 720px; background: var(--card); border: 1px solid var(--line-2); border-radius: 99px;
  padding: 6px 6px 6px 16px; box-shadow: var(--sh-2); margin: 0; }
.hc-head .hc-search { margin-top: 26px; }
.hc-search-big { margin: 0 auto; padding: 8px 8px 8px 20px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55), 0 0 0 6px rgba(25, 195, 125, .12); }
.hc-search > .ms { color: var(--ink-3); }
.hc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 17px/1.3 var(--sans); color: var(--ink); padding: 10px 4px; }
.hc-search input::-webkit-search-cancel-button { cursor: pointer; }
.hc-search:focus-within { border-color: var(--brand); box-shadow: var(--sh-2), 0 0 0 4px rgba(11, 138, 91, .16); }
.hc-search-big:focus-within { box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55), 0 0 0 6px rgba(25, 195, 125, .32); }
.hc-search .btn { flex-shrink: 0; }
.hc-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-3); padding: 6px; max-height: min(70vh, 460px); overflow-y: auto; }
.hc-sugg-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.hc-sugg-item em { font: 600 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); font-style: normal; }
.hc-sugg-item b { font-weight: 650; }
.hc-sugg-item small { color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }
.hc-sugg-item:hover, .hc-sugg-item.is-active { background: var(--mint-2); color: var(--ink); }
.hc-sugg-all { display: block; padding: 10px 12px; font-weight: 600; font-size: 14px; border-top: 1px solid var(--line); margin-top: 4px; }
.hc-sugg-none { margin: 0; padding: 10px 12px; color: var(--ink-3); font-size: 14px; }

/* ---------- Topic cards ---------- */
.hc-topics { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hc-topic { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--sh-1); transition: box-shadow .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); overflow: hidden; }
.hc-topic::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--mint), transparent 70%); opacity: .6; pointer-events: none; }
.hc-topic:hover, .hc-topic:focus-within { box-shadow: var(--sh-3); border-color: var(--line-2); }
.hc-topic-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hc-topic-link:focus-visible { outline-offset: -3px; }
.hc-topic-ico, .hc-head-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--mint), #c9f1df); color: var(--brand-ink); box-shadow: 0 8px 20px -10px rgba(11, 138, 91, .6); }
.hc-topic-ico .ms, .hc-head-ico .ms { font-size: 28px; }
.hc-topic h3 { font-size: 21px; }
.hc-topic p { margin: 0; color: var(--ink-2); font-size: 15px; }
.hc-topic ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; position: relative; z-index: 2; }
.hc-topic li a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; display: inline-flex; gap: 6px; }
.hc-topic li a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-bright); margin-top: .55em; flex-shrink: 0; }
.hc-topic li a:hover { color: var(--brand-ink); text-decoration: underline; }
.hc-topic-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--brand-ink); font-size: 14.5px; }
.hc-topic-more .ms { font-size: 18px; transition: transform .25s var(--ease); }
.hc-topic:hover .hc-topic-more .ms { transform: translateX(4px); }

/* ---------- Article cards and lists ---------- */
.hc-split { display: grid; gap: 28px; }
.hc-list { display: grid; gap: 10px; }
.hc-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; color: var(--ink); box-shadow: var(--sh-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; overflow: hidden; }
.hc-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); color: var(--ink); }
.hc-card-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--brand-ink); flex-shrink: 0; }
.hc-card-ico .ms { font-size: 22px; }
.hc-card-body { display: grid; gap: 3px; min-width: 0; flex: 1; }
.hc-card-body b { font-weight: 650; line-height: 1.35; }
.hc-card-body small { color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.hc-card-go { color: var(--ink-3); transition: transform .25s var(--ease), color .25s; }
.hc-card:hover .hc-card-go { transform: translateX(4px); color: var(--brand-ink); }
.hc-tag { font: 600 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); font-style: normal; }
.hc-count { margin: 0 0 12px; font-size: 14px; }
.hc-words { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-word { padding: 9px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 14.5px; transition: border-color .2s, color .2s, background .2s; }
.hc-word:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--mint-2); }

/* ---------- Page heads ---------- */
.hc-head { padding-bottom: clamp(28px, 4vw, 44px); }
.hc-head h1 { font-size: clamp(32px, 4.6vw, 54px); max-width: 24ch; }
.hc-h1-sm { font-size: clamp(28px, 3.6vw, 42px) !important; }
.hc-head-row { display: flex; align-items: flex-start; gap: 16px; }
.hc-head-row h1 { margin-bottom: 10px; }
.hc-art-head h1 { max-width: 30ch; margin-bottom: 18px; }
.hc-answer { display: block; max-width: 70ch; padding: 16px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand-bright); box-shadow: var(--sh-1); font-size: 17.5px; }
.hc-answer-tag { display: block; font: 600 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 8px; }
.hc-meta { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; }

/* ---------- Topic page ---------- */
.hc-topic-layout { display: grid; gap: 24px; }
.hc-side { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.hc-side-h { display: none; }
.hc-side a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.hc-side a .ms { font-size: 19px; color: var(--ink-3); }
.hc-side a small { color: var(--ink-3); font-size: 12px; }
.hc-side a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.hc-side a[aria-current="page"] .ms, .hc-side a[aria-current="page"] small { color: var(--brand-bright); }

/* ---------- Article page ---------- */
.hc-art-band { padding-top: clamp(20px, 3vw, 36px); }
.hc-art-layout { display: grid; gap: 24px; }
.hc-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px; }
.hc-toc summary { cursor: pointer; padding: 12px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.hc-toc summary::-webkit-details-marker { display: none; }
.hc-toc summary::after { content: "expand_more"; font-family: "Material Symbols Outlined"; font-size: 22px; font-weight: 300; transition: transform .2s; }
.hc-toc[open] summary::after { transform: rotate(180deg); }
.ms-off .hc-toc summary::after { content: "+"; font-family: var(--sans); }
.hc-toc nav { display: grid; gap: 2px; padding: 0 0 12px; }
.hc-toc a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-left: 2px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.hc-toc a.lvl-3 { padding-left: 22px; font-size: 13.5px; }
.hc-toc a:hover { color: var(--brand-ink); border-color: var(--brand-bright); }
.hc-toc a.is-current { color: var(--brand-ink); border-color: var(--brand); font-weight: 600; background: var(--mint-2); }
.hc-art-main { min-width: 0; }
.hc-prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 72ch; }
.hc-prose h2 { font-size: clamp(23px, 2.4vw, 28px); color: var(--ink); margin: 36px 0 12px; letter-spacing: -0.015em; scroll-margin-top: 90px; }
.hc-prose h3 { font-size: 20px; color: var(--ink); margin: 28px 0 10px; scroll-margin-top: 90px; }
.hc-prose h4 { font-size: 17px; color: var(--ink); margin: 22px 0 8px; }
.hc-prose > :first-child { margin-top: 0; }
.hc-prose p { margin: 0 0 16px; }
.hc-prose ul, .hc-prose ol { margin: 0 0 18px; padding-left: 1.4em; }
.hc-prose li { margin: 6px 0; }
.hc-prose ol { counter-reset: hcstep; list-style: none; padding-left: 0; }
.hc-prose ol > li { counter-increment: hcstep; position: relative; padding-left: 44px; min-height: 30px; }
.hc-prose ol > li::before { content: counter(hcstep); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: var(--brand-ink); font: 700 14px/1 var(--sans); }
.hc-prose strong { color: var(--ink); }
.hc-prose a { font-weight: 550; }
.hc-prose blockquote { margin: 0 0 18px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--aqua-soft); color: var(--ink); border-left: 4px solid var(--aqua); }
.hc-prose blockquote p:last-child { margin: 0; }
.hc-prose pre { background: var(--night); color: var(--on-night); padding: 14px 16px; border-radius: var(--r-sm); overflow-x: auto; font: 14px/1.6 var(--mono); }
.hc-prose pre code { background: none; padding: 0; color: inherit; }
.hc-prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.hc-table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.hc-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.hc-table th, .hc-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hc-table th { background: var(--bg-2); color: var(--ink); }
.hc-better { font-size: 22px; margin: 0 0 12px; }
.hc-feedback { margin: 36px 0 0; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); scroll-margin-top: 90px; }
.hc-feedback form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.hc-feedback form p { margin: 0; }
.hc-feedback-btns { display: flex; gap: 8px; }
.hc-feedback-done { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 600; color: var(--brand-ink); }
.hc-feedback .fine { margin: 0; }
.hc-related { margin-top: 40px; }
.hc-related h2 { font-size: 22px; margin-bottom: 14px; }

/* ---------- Still stuck ---------- */
.hc-stuck-grid { display: grid; gap: 28px; align-items: center; }
.hc-stuck .h-sec { color: #fff; }
.hc-stuck-cards { display: grid; gap: 14px; }
.hc-stuck-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 20px; border-radius: var(--r-lg); text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); transition: background .25s, border-color .25s, transform .3s var(--ease); overflow: hidden; }
.hc-stuck-card:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .32); color: #fff; transform: translateY(-2px); }
.hc-stuck-card .hc-ico { grid-row: span 2; }
.hc-stuck-card b { font: 650 19px/1.2 var(--display); }
.hc-stuck-card small { color: var(--on-night-2); font-size: 14.5px; }
.hc-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; flex-shrink: 0; }
.hc-ico .ms { font-size: 26px; }

/* ---------- Empty state, alerts ---------- */
.hc-empty { text-align: center; padding: 40px 20px; background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.hc-empty > .ms { font-size: 48px; color: var(--ink-3); }
.hc-empty h2 { font-size: 24px; margin: 10px 0; }
.hc-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.hc-alert { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--coral-soft); color: var(--coral); margin-bottom: 18px; }
.hc-alert ul { margin: 6px 0 0; padding-left: 18px; }
.hc-ok { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--mint); color: var(--brand-ink); font-weight: 600; }

/* ---------- Contact ---------- */
.hc-contact { display: grid; gap: 28px; }
.hc-form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); box-shadow: var(--sh-1); }
.hc-row { display: grid; gap: 16px; }
.hc-field { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.hc-field small { font-weight: 400; color: var(--ink-3); }
.hc-field input, .hc-field select, .hc-field textarea { width: 100%; font: 16px/1.45 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.hc-field textarea { resize: vertical; min-height: 140px; }
.hc-field input:focus, .hc-field select:focus, .hc-field textarea:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(11, 138, 91, .14); }
.hc-field [aria-invalid="true"] { border-color: var(--coral); background: #fff8f6; }
.hc-form .fine { margin: 0; }
.hc-form .btn { justify-self: start; }
.hc-attached { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--aqua-soft); color: var(--aqua); font-weight: 600; font-size: 14.5px; }
.hc-captcha { min-height: 65px; }
.hc-err { color: var(--coral); margin: 6px 0 0; font-size: 14px; }
.hc-contact-side { display: grid; gap: 16px; align-content: start; }
.hc-side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.hc-side-card h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin-bottom: 10px; }
.hc-side-card h2 .ms { color: var(--brand); }
.hc-side-card .hc-search { margin: 12px 0; box-shadow: none; }
.hc-side-card .hc-search .btn { display: none; }
.hc-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; }
.hc-portal { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.hc-portal h2 { font-size: 22px; margin-bottom: 8px; }

/* ---------- Sent, ticket ---------- */
.hc-sent-ico { width: 84px; height: 84px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--mint); color: var(--brand-ink); margin-bottom: 18px; box-shadow: 0 0 0 10px var(--mint-2); }
.hc-sent-ico .ms { font-size: 42px; }
.hc-sent .lede { margin: 12px auto; }
.hc-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); font-weight: 600; font-size: 14px; margin: 6px 0 0; }
.hc-status-solved, .hc-status-closed { background: var(--mint); color: var(--brand-ink); }
.hc-thread { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.hc-msg { padding: 16px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); max-width: 92%; }
.hc-msg.mine { justify-self: end; background: var(--mint-2); border-color: #c6ecd9; }
.hc-msg-who { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-3); }
.hc-msg-body p:last-child { margin: 0; }
.hc-msg-body { overflow-wrap: anywhere; }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  .hc-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-row { grid-template-columns: 1fr 1fr; }
  .hc-stuck-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hc-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .hc-topic { padding: 28px; min-height: 300px; }
  .hc-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
  .hc-topic-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
  .hc-side { flex-direction: column; overflow: visible; position: sticky; top: 96px; }
  .hc-side-h { display: block; margin: 0 0 6px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .hc-side a { border-radius: 12px; white-space: normal; }
  .hc-side a small { margin-left: auto; }
  .hc-art-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
  .hc-art-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
  .hc-toc-wrap { order: 2; position: sticky; top: 96px; }
  .hc-toc summary { pointer-events: none; }
  .hc-toc summary::after { display: none; }
  .hc-stuck-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .hc-contact { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 40px; align-items: start; }
}
@media (max-width: 640px) {
  .hc-topic li:nth-child(n+3) { display: none; } /* two examples per topic on phones */
  .hc-topic { padding: 20px; }
}
@media (max-width: 520px) {
  .hc-search .btn { padding: 0 14px; }
  .hc-search-big { padding-left: 14px; }
  .hc-search input { font-size: 16px; }
  .hc-hero h1 { font-size: 40px; }
  .hc-card { padding: 14px; gap: 12px; }
  .hc-card-go { display: none; }
  .hc-portal { flex-direction: column; }
}

/* =====================================================================================================
   Ask Mise: the launcher and its panel (every public page)
   ===================================================================================================== */
.mise { --mise-w: 400px; position: fixed; right: 16px; bottom: 16px; z-index: 45; font-family: var(--sans); }
.mise-launch { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 99px;
  background: var(--night); color: #fff; font: 650 15px/1 var(--sans); box-shadow: 0 16px 36px -12px rgba(11, 21, 38, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s; }
.mise-launch:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -14px rgba(11, 21, 38, .6); }
.mise-launch:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }
.mise-launch[hidden] { display: none; }
.mise-launch-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-bright), var(--brand)); position: relative; }
.mise-launch-ico::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(25, 195, 125, .55); animation: mise-pulse 2.8s var(--ease) infinite; }
.mise-launch-ico .ms { font-size: 21px; }
@keyframes mise-pulse { 0% { transform: scale(.9); opacity: .9; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
.mise.is-open .mise-launch { opacity: 0; pointer-events: none; transform: scale(.9); }
.mise.is-low { bottom: -100px; }
.mise.is-low.is-open { bottom: 16px; }

.mise-panel { position: fixed; right: 16px; bottom: 16px; width: min(var(--mise-w), calc(100vw - 32px)); height: min(640px, calc(100vh - 32px)); height: min(640px, calc(100dvh - 32px));
  display: flex; flex-direction: column; background: var(--card); color: var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(11, 21, 38, .45), 0 0 0 1px rgba(11, 21, 38, .08); transform-origin: bottom right; animation: mise-in .35s var(--ease); }
.mise-panel[hidden] { display: none; }
@keyframes mise-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.mise-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: var(--night); color: #fff;
  background-image: radial-gradient(320px 140px at 100% 0%, rgba(25, 195, 125, .3), transparent 70%); }
.mise-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-bright), var(--aqua)); flex-shrink: 0; }
.mise-avatar .ms { font-size: 21px; }
.mise-titles { flex: 1; min-width: 0; }
.mise-titles h2 { font: 700 16px/1.2 var(--display); color: #fff; margin: 0; }
.mise-titles p { margin: 2px 0 0; font-size: 12.5px; color: var(--on-night-2); }
.mise-icon-btn { all: unset; box-sizing: border-box; cursor: pointer; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--on-night); }
.mise-icon-btn:hover { background: rgba(255, 255, 255, .1); }
.mise-icon-btn:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 1px; }
.mise-icon-btn .ms { font-size: 21px; }

.mise-log { position: relative; flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); overscroll-behavior: contain; }
.mise-log:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.mise-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; animation: mise-msg .3s var(--ease); overflow-wrap: anywhere; }
@keyframes mise-msg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mise-msg p { margin: 0; white-space: pre-line; }
.mise-msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.mise-msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.mise-msg.unanswered { border-color: #f3d2a3; background: #fffaf2; }
.mise-msg.is-gone, .mise-hello.is-gone { display: none; }
.mise-msg p.typing::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--brand); animation: mise-caret .8s steps(2) infinite; }
@keyframes mise-caret { 50% { opacity: 0; } }
.mise-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.mise-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: mise-dot 1.1s infinite ease-in-out; }
.mise-typing i:nth-child(2) { animation-delay: .15s; } .mise-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mise-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
.mise-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mise-chip { all: unset; box-sizing: border-box; cursor: pointer; padding: 7px 12px; border-radius: 99px; background: var(--mint-2); color: var(--brand-ink); border: 1px solid #c6ecd9; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.mise-chip:hover { background: var(--mint); }
.mise-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mise-cards { display: grid; gap: 6px; margin-top: 10px; }
.mise-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.mise-card:hover { border-color: var(--brand); background: var(--mint-2); color: var(--ink); }
.mise-card .ms { font-size: 20px; color: var(--brand-ink); }
.mise-card span { display: grid; gap: 2px; min-width: 0; }
.mise-card b { font-size: 14px; font-weight: 650; line-height: 1.3; }
.mise-card small { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.mise-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.mise-ticket, .mise-inline-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; margin-top: 6px; }
.mise-ticket .ms { font-size: 18px; }
.mise-rate { display: inline-flex; gap: 2px; margin-left: auto; }
.mise-rate button { all: unset; box-sizing: border-box; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); }
.mise-rate button:hover { background: var(--bg-2); color: var(--ink); }
.mise-rate button[aria-pressed="true"] { color: var(--brand); background: var(--mint-2); }
.mise-rate button:focus-visible { outline: 2px solid var(--brand); }
.mise-rate .ms { font-size: 18px; }
.mise-captcha { padding: 10px 14px; border-top: 1px solid var(--line); background: var(--amber-soft); display: grid; gap: 8px; justify-items: start; }
.mise-captcha[hidden] { display: none; }
.mise-captcha p { margin: 0; font-size: 14px; color: var(--ink); }

.mise-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 10px 14px; border-top: 1px solid var(--line); background: var(--card); }
.mise-form textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; font: 16px/1.4 var(--sans); color: var(--ink); background: var(--bg); max-height: 140px; }
.mise-form textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 138, 91, .16); background: #fff; }
.mise-send { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; flex-shrink: 0; transition: background .2s, transform .2s var(--ease); }
.mise-send:hover { background: var(--brand-hover); transform: translateY(-1px); }
.mise-send:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.mise-form.is-busy .mise-send { opacity: .5; pointer-events: none; }
.mise-foot { margin: 0; padding: 0 14px 12px; font-size: 11.5px; line-height: 1.45; color: var(--ink-3); background: var(--card); }
.mise-foot a { color: var(--ink-2); }

@media (max-width: 640px) {
  .mise { right: 12px; bottom: 12px; }
  .mise-launch { padding: 6px; }
  .mise-launch-txt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mise-panel { left: 0; right: 0; bottom: 0; width: 100%; height: 88vh; height: 88dvh; border-radius: 22px 22px 0 0; transform-origin: bottom center; }
  .mise-log { padding: 14px 12px; }
}

/* ---------- Reduced motion: nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .mise-launch-ico::after, .mise-panel, .mise-msg, .mise-typing i, .mise-msg p.typing::after { animation: none !important; }
  .mise-launch, .hc-card, .hc-topic, .hc-stuck-card, .mise-send { transition: none !important; }
  .mise-launch:hover, .hc-card:hover, .hc-stuck-card:hover, .mise-send:hover { transform: none; }
}
@media print { .mise { display: none !important; } }
