/* Support on the new site (2026-09-25).
   The conversation UI (thread.js, chatpage.js, support.js) was styled by the
   OLD stylesheet. Its rules are carried over here unchanged, every selector
   scoped to .sup-scope and fed the old variable names mapped onto the new
   palette, so nothing leaks into the site and nothing from the site leaks in.
   The new look (square corners, the site's fonts and buttons) is layered on
   top at the end. Generated from assets/css/style.css; edit the tail by hand. */
.sup-scope{--line:rgba(242,240,235,.12);--line-2:rgba(242,240,235,.24);--text:#f2f0eb;--muted:#aaa69d;--dim:#7f7b73;
  --red:#dc1e3c;--red-deep:#8e1226;color:var(--text);font-family:var(--body)}
.sup-scope .th-x{
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; line-height: 1;
  border-radius: 50%; border: 0; cursor: pointer; font-size: 15px;
  background: rgba(8,7,10,.82); color: #fff;
}
.sup-scope .th-x:hover{ background: var(--red); }
.sup-scope .sup-faqs{ max-width: 640px; margin: 0 auto; text-align: left; }
.sup-scope .sup-faq{ border: 1px solid var(--line); border-radius: 12px; margin-bottom: .6rem; background: rgba(255,255,255,.02); }
.sup-scope .sup-faq summary{ padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; list-style: none; }
.sup-scope .sup-faq summary::-webkit-details-marker{ display: none; }
.sup-scope .sup-faq summary::before{ content: "＋"; color: var(--red); margin-right: .6rem; font-weight: 700; }
.sup-scope .sup-faq[open] summary::before{ content: "－"; }
.sup-scope .sup-faq-body{ padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.sup-scope .sup-faq-body code{ background: rgba(255,255,255,.06); padding: .1rem .4rem; border-radius: 5px; }
.sup-scope .sup-wrap{ max-width: 640px; }
.sup-scope .sup-form{ display: grid; gap: 1.2rem; margin-top: 1.4rem; text-align: left; }
.sup-scope .sup-field{ display: grid; gap: .4rem; }
.sup-scope .sup-l{ font-size: .8rem; font-weight: 600; letter-spacing: .03em; color: var(--text); }
.sup-scope .sup-hint{ margin: 0; font-size: .8rem; color: var(--muted); }
.sup-scope .sup-select, .sup-scope .sup-input, .sup-scope .sup-form textarea{
  width: 100%; padding: .7rem .85rem; border-radius: 10px; font: inherit; font-size: .95rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: var(--text);
}
.sup-scope .sup-form textarea{ resize: vertical; }
.sup-scope .sup-select{ appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 1.15rem, calc(100% - 13px) 1.15rem; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.sup-scope .sup-select:focus, .sup-scope .sup-input:focus, .sup-scope .sup-form textarea:focus{ outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.sup-scope .sup-actions{ margin-top: .2rem; }
.sup-scope .sup-status{ margin: .2rem 0 0; font-size: .85rem; min-height: 1.2em; }
.sup-scope .sup-status.ok{ color: #d4a72c; }
.sup-scope .sup-status.err{ color: #ff8a90; }
.sup-scope .sup-signed{ font-size: .88rem; color: #d4a72c; margin: 0; }
.sup-scope .sup-quick{ max-width: 760px; margin: 0 auto; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: left; }
.sup-scope .sup-qcard{ display: block; text-decoration: none; color: inherit; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); transition: border-color .2s, transform .1s; }
.sup-scope .sup-qcard:hover{ border-color: var(--red); transform: translateY(-2px); }
.sup-scope .sup-qcard b{ display: block; font-size: .98rem; margin-bottom: .25rem; }
.sup-scope .sup-qcard .sup-qi{ margin-right: .55rem; }
.sup-scope .sup-qcard span{ font-size: .82rem; color: var(--muted); line-height: 1.5; }
.sup-scope .sup-opt{ font-size: .68rem; color: var(--dim); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; margin-left: .4rem; }
.sup-scope .sup-file{ font-size: .85rem; color: var(--muted); padding: .4rem 0; }
.sup-scope .sup-file::file-selector-button{ margin-right: .8rem; padding: .5rem .9rem; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-size: .82rem; cursor: pointer; }
.sup-scope .sup-file::file-selector-button:hover{ border-color: var(--red); }
.sup-scope .th-file{
  display: flex; align-items: center; justify-content: center; padding: .4rem;
  background: rgba(255,255,255,.04); text-align: center;
}
.sup-scope .th-name{ font-size: .64rem; line-height: 1.3; color: var(--muted); word-break: break-all; }
.sup-scope .th-wrap{ margin-top: .9rem; }
.sup-scope .th-wrap > summary{
  cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--muted);
  letter-spacing: .04em; padding: .35rem 0; list-style: none;
}
.sup-scope .th-wrap > summary::-webkit-details-marker{ display: none; }
.sup-scope .th-wrap > summary::before{ content: "▸ "; color: var(--red); }
.sup-scope .th-wrap[open] > summary::before{ content: "▾ "; }
.sup-scope .th-count{
  display: inline-block; min-width: 1.25em; padding: 0 .35em; margin-left: .3rem;
  background: var(--red); color: #fff; border-radius: 999px;
  font-size: .68rem; text-align: center;
}
.sup-scope .th-wrap-open{ margin-top: 1rem; }
.sup-scope .th-h{
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dim); margin-bottom: .5rem;
}
.sup-scope .th-status{ display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.sup-scope .th-av{ width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.sup-scope .th-who{ display: grid; line-height: 1.25; }
.sup-scope .th-who b{ font-size: .9rem; color: var(--text); }
.sup-scope .th-pres{ font-size: .68rem; color: var(--dim); font-style: normal; min-height: .9em; display: flex; align-items: center; gap: .35rem; }
.sup-scope .th-pres.on::before{
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d4a72c; flex: none; 
}
.sup-scope .th-list{
  display: flex; flex-direction: column; gap: .12rem; max-height: 400px; overflow-y: auto;
  padding: 1rem .95rem; border-radius: 20px; scroll-behavior: smooth;
  background: rgba(255,255,255,.022); border: 1px solid var(--line);
}
.sup-scope .th-empty{ margin: auto; font-size: .84rem; color: var(--dim); text-align: center; padding: 1.6rem 0; }
.sup-scope .th-msg{ display: flex; gap: .45rem; align-items: flex-end; max-width: 80%; margin-top: .35rem; }
.sup-scope .th-msg.mine{ margin-left: auto; flex-direction: row-reverse; }
.sup-scope .th-mav{
  width: 26px; height: 26px; border-radius: 50%; flex: none; object-fit: cover; margin-bottom: 3px;
  display: grid; place-items: center; font-size: .7rem; font-weight: 700;
  color: #fff; background: var(--red-deep); overflow: hidden;
}
.sup-scope .th-bub{
  padding: .55rem .9rem; border-radius: 20px; position: relative;
  background: #2b2732; color: var(--text);
}
.sup-scope .th-msg:not(.mine) .th-bub{ border-bottom-left-radius: 6px; }
.sup-scope .th-msg.mine .th-bub{
  background: var(--red); color: #fff; border-bottom-right-radius: 6px;
}
.sup-scope .th-meta{ display: none; }
.sup-scope .th-bub p{ margin: 0; font-size: .9rem; line-height: 1.4; word-break: break-word; }
.sup-scope .th-msg.th-pop{ animation: th-pop .34s cubic-bezier(.2,.7,.3,1); transform-origin: bottom left; }
.sup-scope .th-msg.mine.th-pop{ transform-origin: bottom right; }
.sup-scope .th-typing .th-bub{ padding: .75rem .9rem; }
.sup-scope .th-dots{ display: flex; gap: 4px; align-items: center; }
.sup-scope .th-dots span{ width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: th-bounce 1.2s infinite ease-in-out; }
.sup-scope .th-dots span:nth-child(2){ animation-delay: .16s; }
.sup-scope .th-dots span:nth-child(3){ animation-delay: .32s; }
.sup-scope .th-form{ display: flex; gap: .5rem; align-items: flex-end; margin-top: .7rem; }
.sup-scope .th-form textarea{
  flex: 1; resize: none; min-height: 2.7rem; font: inherit; font-size: .92rem;
  padding: .7rem 1rem; border-radius: 22px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--text);
}
.sup-scope .th-form textarea:focus{ outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.sup-scope .th-form button{ flex: none; align-self: stretch; border-radius: 22px; padding-inline: 1.3rem; }
.sup-scope .th-note{ margin: .35rem 0 0; font-size: .74rem; color: var(--dim); min-height: 1em; }
.sup-scope .th-note.bad{ color: #ff8a90; font-weight: 600; }
@media (max-width: 560px){.sup-scope .th-msg{ max-width: 92%; }}
.sup-scope .chat-page{ padding: 1.1rem 0 2.2rem; }
.sup-scope .chat-wrap{ display: grid; gap: 1rem; align-items: start; }
@media (min-width: 900px){.sup-scope .chat-wrap:has(.chat-rail){ grid-template-columns: minmax(0, 250px) minmax(0, 1fr); }}
.sup-scope .chat-rail{ display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.sup-scope .chat-rail-item{
  display: grid; gap: .1rem; padding: .6rem .75rem; border-radius: 14px;
  text-decoration: none; color: var(--text); border: 1px solid transparent; min-width: 0;
}
.sup-scope .chat-rail-item:hover{ background: rgba(255,255,255,.04); }
.sup-scope .chat-rail-item.on{ background: rgba(255,255,255,.06); border-color: var(--line); }
.sup-scope .chat-rail-item b{ font-size: .88rem; font-weight: 600; }
.sup-scope .chat-rail-last{
  font-size: .76rem; color: var(--dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sup-scope .chat-rail-tag{
  justify-self: start; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 0 .45em;
}
.sup-scope .chat-rail-new{ font-size: .78rem; color: var(--muted); text-decoration: none; padding: .5rem .75rem; }
.sup-scope .chat-rail-new:hover{ color: var(--text); }
.sup-scope .chat-main{ min-width: 0; }
.sup-scope .chat-top{
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  margin: 0 0 .6rem; font-size: .84rem; color: var(--muted);
}
.sup-scope .chat-top > span:first-child{ font-weight: 600; color: var(--text); }
.sup-scope .chat-ref{ font-size: .7rem; letter-spacing: .06em; color: var(--dim); margin-right: auto; }
.sup-scope .chat-thread .th-list{ max-height: none; height: clamp(340px, 58vh, 620px); }
@media (max-width: 899px){.sup-scope .chat-rail{ flex-direction: row; overflow-x: auto; gap: .4rem; padding-bottom: .2rem; }.sup-scope .chat-rail-item{ flex: 0 0 auto; max-width: 60vw; }.sup-scope .chat-rail-last{ display: none; }.sup-scope .chat-rail-new{ flex: 0 0 auto; align-self: center; white-space: nowrap; }.sup-scope .chat-thread .th-list{ height: clamp(320px, 62vh, 560px); }}
.sup-scope img.th-mav{ background: transparent; }
/* the assistant's robot (same drawing as the help chat); only the newest one blinks, and not at all with reduced motion */
.sup-scope .th-mav.th-ai{ background: transparent; border-radius: 6px; overflow: visible; }
.sup-scope .th-ai .rb{ width: 100%; height: 100%; display: block; }
.sup-scope .th-ai .rb-eye{ transform-box: fill-box; transform-origin: center; }
.sup-scope .th-pop .th-ai .rb-eye{ animation: rb-blink 4.4s infinite; }
@keyframes rb-blink{ 0%, 92%, 100%{ transform: scaleY(1); } 95%{ transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce){ .sup-scope .th-pop .th-ai .rb-eye{ animation: none; } }
.sup-scope .th-closed{
  align-self: center; max-width: 90%; margin: .7rem 0 .2rem; padding: .45rem .85rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-size: .74rem; color: var(--dim); text-align: center;
}
.sup-scope .chat-actions{ display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 .6rem; }
.sup-scope .chat-act{
  font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
  padding: .35rem .8rem; border-radius: 999px; text-decoration: none;
  color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.sup-scope .chat-act:hover{ background: rgba(255,255,255,.09); }
.sup-scope .chat-act-close{ margin-left: auto; color: #ff8a90; }
.sup-scope .chat-act[disabled]{ opacity: .5; cursor: default; }
.sup-scope .chat-thread .th-list{ height: clamp(360px, calc(100vh - 320px), 760px); }
@media (max-width: 899px){.sup-scope .chat-thread .th-list{ height: clamp(320px, calc(100vh - 290px), 640px); }}
/* ---- the new look ---- */
.sup-scope *,.sup-scope *::before,.sup-scope *::after{border-radius:0!important}
.sup-scope .th-dots i,.sup-scope .th-pres.on::before{border-radius:50%!important}
.sup-card{max-width:680px;margin:40px 0 0;padding:32px;background:#111;border:1px solid var(--line)}
.sup-card h2{margin:0 0 6px;font:700 clamp(24px,2.4vw,32px)/1.1 var(--display);letter-spacing:-.02em}
.sup-scope .sup-select,.sup-scope .sup-input,.sup-scope .sup-form textarea{background:#0b0b0b;border:1.5px solid var(--line-2);color:var(--text);font:inherit;padding:14px 16px}
.sup-scope .sup-select:focus,.sup-scope .sup-input:focus,.sup-scope .sup-form textarea:focus{outline:none;border-color:var(--text)}
.sup-scope .sup-l{font:500 11px/1.3 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.sup-scope .sup-opt{font-family:var(--mono)}
.sup-scope .sup-file::file-selector-button{border:1.5px solid var(--line-2);background:transparent;color:var(--text);font:600 13px var(--body)}
.sup-scope .inline-link,.sup-scope a.inline-link{color:var(--text);text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:3px}
.sup-scope .btn{--bg:var(--red);--fg:#fff;--edge:#f2f0eb;--box:#f2f0eb;--boxfg:var(--ink)}
.sup-scope .sup-status.ok,.sup-scope .sup-signed{color:#3ecf8e}
.sup-scope .sup-status.err{color:#ff7a88}
.sup-scope .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.sup-scope .th-msg.mine .th-bub{background:var(--red);color:#fff}
.sup-scope .th-msg:not(.mine) .th-bub{background:#1a1a1a;border:1px solid var(--line)}
.sup-scope .chat-top{font:500 11px/1.3 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.sup-scope .chat-act{border:1.5px solid var(--line-2);background:transparent;color:var(--text);font:600 13px var(--body)}
.sup-scope .chat-act:hover{border-color:var(--text)}
/* the tickets page: the rail of conversations beside the open one */
.sup-page{padding:clamp(40px,8vh,90px) var(--pad) clamp(60px,10vh,120px)}
.sup-page .head{margin-bottom:28px}
.sup-scope .chat-rail-item.on{box-shadow:inset 4px 0 0 var(--red);background:#1a1a1a}
.sup-scope .chat-rail-new{color:var(--text);font-weight:600}
/* the dropdown's arrow: appearance:none (kept from the old rules) removed it */
.sup-scope .sup-select{padding-right:44px;background-image:linear-gradient(45deg,transparent 50%,#f2f0eb 50%),linear-gradient(135deg,#f2f0eb 50%,transparent 50%);
  background-position:calc(100% - 24px) 50%,calc(100% - 18px) 50%;background-size:6px 6px;background-repeat:no-repeat}
