/* The support center (owner 2026-10-30): support.js builds it, support.py
   serves it. Colours are Sable's own tokens from style.css. */
.su-page { background: var(--bg); color: var(--text); margin: 0; min-height: 100vh; }
.su .hidden { display: none !important; }
.su-phead { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.su-pback { color: var(--muted); text-decoration: none; font-size: 14px; }
.su-pback:hover { color: var(--text); }
.su-ptitle { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.su-plogo { width: 26px; height: 26px; }
.su-pmain { max-width: 760px; margin: 0 auto; padding: 18px 16px 60px; }

.su-h3 { margin: 0 0 6px; font-size: 17px; }
.su-h4 { margin: 18px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.su-sub { color: var(--muted); font-size: 13px; }
.su-empty { color: var(--muted); font-size: 14px; padding: 14px 4px; }
.su-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.su-msg { font-size: 13px; color: var(--muted); }
.su-ok { color: var(--ok); }
.su-err { color: var(--err); }

.su-new { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.su-new label, .su-ctl label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.su input, .su select, .su textarea { background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 14px; max-width: 100%; box-sizing: border-box; }
.su textarea { width: 100%; resize: vertical; }
.su-att { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.su .su-filebtn { text-transform: none; letter-spacing: normal; cursor: pointer; font-size: 13px; color: var(--gold-lt); border: 1px dashed var(--line); border-radius: 10px; padding: 7px 11px; }
.su-filebtn input { display: none; }
.su-att-status { font-size: 12px; color: var(--muted); }

.su-list-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.su-list { display: flex; flex-direction: column; gap: 6px; }
.su-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--text); cursor: pointer; font: inherit; }
.su-item:hover, .su-item.on { border-color: rgba(var(--gold-rgb), .55); }
.su-unread { border-left: 3px solid var(--gold); }
.su-logo { width: 26px; height: 26px; flex: none; border-radius: 6px; }
.su-item-main { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.su-item-sub { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.su-item-meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.su-pill { flex: none; font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.su-pill.su-open { color: var(--warn); border-color: rgba(224,160,60,.45); }
.su-pill.su-waiting { color: var(--gold-lt); border-color: rgba(var(--gold-rgb), .45); }
.su-pill.su-resolved { color: var(--ok); border-color: rgba(94,201,138,.4); }
.su-desk-link { margin-top: 18px; font-size: 13px; }
.su-desk-link a { color: var(--gold-lt); }

.su-back { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 0 10px; font: inherit; font-size: 14px; }
.su-back:hover { color: var(--text); }
.su-th-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; align-items: flex-start; }
.su-msgs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.su-bubble { max-width: 88%; border-radius: 14px; padding: 10px 13px; border: 1px solid var(--line); background: var(--panel); }
.su-mine { align-self: flex-end; background: rgba(var(--gold-rgb), .10); border-color: rgba(var(--gold-rgb), .35); }
.su-them { align-self: flex-start; }
.su-note { align-self: stretch; max-width: none; background: rgba(224,160,60,.08); border: 1px dashed rgba(224,160,60,.5); }
.su-who { font-size: 12px; color: var(--muted); margin-bottom: 4px; overflow-wrap: anywhere; }
.su-text { white-space: pre-wrap; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.su-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.su-file { max-width: 180px; max-height: 140px; border-radius: 8px; border: 1px solid var(--line); }
.su-reply { border-top: 1px solid var(--line); padding-top: 14px; }
.su .su-check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  text-transform: none; letter-spacing: normal; cursor: pointer; }
.su .su-check input { width: 16px; height: 16px; margin: 0; padding: 0; flex: none; }
.su-others { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.su-link { background: none; border: 0; color: var(--gold-lt); cursor: pointer; padding: 2px 0; font: inherit; font-size: 13px; text-align: left; }

/* the desk */
.su-deskpage { overflow-x: hidden; }
/* The desk wears the studio's own sidebar (owner 2026-10-31): .sidebar, the
   brand row, rows and foot all come from style.css; only the frame is here. */
.su-app { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 12px; padding: 12px; min-height: 100vh;
  box-sizing: border-box; align-items: start; align-content: start; }
.su-ic { width: 16px; height: 16px; flex: none; }
.su-app .su-sidebar { width: auto; position: sticky; top: 12px; height: calc(100vh - 24px); box-sizing: border-box; }
.su-sidebar nav { flex: 1 0 auto; }
.su-sidebar .tag { min-width: 8px; text-align: center; }
.su-sb-close, .su-mtop, .su-scrim { display: none; }
/* the foot's pages: What's new, How to, Referrals, Request a feature, Account */
.su-pane, .su-guide { max-width: 760px; padding: 8px 16px 40px; }
.su-ph { font-size: 22px; margin: 4px 0 6px; }
.su-psub { margin: 0 0 16px; }
.su-guide .su-ph { margin-bottom: 16px; }
.su-wn { display: flex; flex-direction: column; gap: 10px; }
.su-pane .su-wn .card-flat { margin-bottom: 0; gap: 6px; }
.su-wn-item p { margin: 4px 0 0; line-height: 1.5; }
.su-steps { padding-left: 20px; line-height: 1.6; margin: 0; }
.su-pane .card-flat { margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.su-pane .card-flat .su-h3, .su-pane .card-flat > p { margin: 0; }
.su-feat-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.su-feat { flex-direction: row !important; align-items: flex-start; }
.su-feat p { margin: 4px 0 0; }
.su-acct-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.su-acct-row b { overflow-wrap: anywhere; }
.su-acct input { flex: 1; min-width: 160px; }
.su-main { min-width: 0; overflow: visible; padding: 0; }
.su-side, .su-dthread { box-shadow: var(--shadow); }
/* Sable's dropdowns in the desk's rows */
.su-ctl .sable-dd { width: auto; min-width: 170px; }
.su-person .sable-dd, .su-invite .sable-dd { display: inline-block; width: auto; min-width: 110px; }
.su-pick .sable-dd { margin-top: 2px; }
.su-inbox { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 16px; align-items: start; }
.su-side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  max-height: calc(100vh - 24px); box-sizing: border-box; }
.su-filters .su-row { margin-top: 6px; }
.su-filters .su-row:first-child { margin-top: 0; }
.su-filters select, .su-filters input { flex: 1; min-width: 120px; }
.su-side .su-list { overflow-y: auto; }
.su-who-tag { flex: none; font-size: 11px; font-weight: 700; color: var(--on-gold); background: var(--gold); border-radius: 999px; padding: 3px 7px; }
.su-dthread { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px 40px; min-width: 0; min-height: calc(100vh - 24px); box-sizing: border-box; }
.su-dthread .su-back { display: none; }
.su-ctl { align-items: flex-end; }
.su-team { max-width: 760px; padding: 8px 16px 60px; }
.su-people { display: flex; flex-direction: column; gap: 6px; }
.su-person { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; flex-wrap: wrap; }
.su-off { opacity: .55; }
.su-invite input { flex: 1; min-width: 200px; }
.su-center { max-width: 460px; margin: 12vh auto 0; padding: 0 16px; text-align: center; }

/* Under 900px the studio's sidebar slides in over the page (style.css); the
   desk opens it from its own top bar, as the studio does. */
@media (max-width: 900px) {
  .su-app { grid-template-columns: minmax(0, 1fr); padding: 8px; gap: 8px; }
  .su-mtop { display: flex; gap: 12px; }
  .su-app .su-sidebar { position: fixed; top: 0; bottom: 0; height: auto; width: min(268px, 80vw); }
  .su-sb-close { display: grid; margin-left: auto; }
  .su-menu-open .su-sidebar { transform: none; }
  .su-menu-open .su-scrim { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(0, 0, 0, .45); }
}
@media (max-width: 760px) {
  .su-inbox { grid-template-columns: 1fr; }
  .su-side { max-height: none; }
  .su-filters .su-row { flex-direction: column; align-items: stretch; }
  .su-filters select, .su-filters input, .su-flt { width: 100%; min-width: 0; flex: none; }
  .su-dthread { display: none; padding: 14px 16px 40px; min-height: 0; }
  .su-reading .su-side { display: none; }
  .su-reading .su-dthread { display: block; }
  .su-dthread .su-back { display: inline-block; }
  .su-bubble { max-width: 100%; }
}
/* Desk filters as dropdowns, passing to the admins, the guide (owner 2026-10-31). */
.su-flt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 120px; font-size: 12px; color: var(--muted); }
.su-flt select { width: 100%; }
.su-esc-tag { flex: none; font-size: 11px; font-weight: 700; color: #fff; background: #c0563b; border-radius: 999px; padding: 3px 7px; }
.su-esc { margin: 8px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(192,86,59,.55); background: rgba(192,86,59,.1); font-size: 14px; }
.su-esc button { margin-left: 6px; }
.su-escform { margin: 8px 0; padding: 12px; border-radius: 10px; border: 1px dashed rgba(192,86,59,.55); }
.su-escform label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.su-ctl #su-esc { align-self: flex-end; }
.su-guide { line-height: 1.55; }
.su-gsec { margin: 0 0 22px; }
.su-gsec p, .su-gsec li { color: var(--text); font-size: 15px; }
.su-gsec ul, .su-gsec ol { padding-left: 20px; }

/* Our products at the top of the menu, the studio's own cards (owner 2026-11-03) */
.su-sidebar .products-row .row-icon .mark { width: 16px; height: 16px; }
.su-pane .su-dc-grid { max-width: none; }
.su-pane:has(.su-dc-grid) { max-width: none; }
.su-needname { margin: 0 0 10px; }
.su-cname { color: var(--text); font-weight: 600; }
.su-noname { color: var(--warn); }
/* App dropdowns with each app's icon, bigger rows (owner 2026-11-03) */
.su-dd-icons .sable-dd-label { display: flex; align-items: center; gap: 10px; }
.su-dd-icons .sable-dd-label span { overflow: hidden; text-overflow: ellipsis; }
.su-dd-icons .sable-dd-btn { padding: 7px 12px; }
.su-dd-ico { width: 24px; height: 24px; border-radius: 6px; flex: none; display: grid; place-items: center; color: var(--muted); }
.su-dd-ico svg { width: 18px; height: 18px; }
.su-dd-icons .sable-dd-menu { min-width: max(100%, 260px); max-height: 440px; }
.su-dd-icons .sable-dd-opt { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 34px; font-size: 15px; }
.su-dd-icons .sable-dd-opt .su-dd-ico { width: 32px; height: 32px; border-radius: 8px; }
.su-dd-icons .sable-dd-opt.sel::before { top: 50%; margin-top: -6px; }
/* Saved answers, Was this solved?, team stats (owner 2026-11-04) */
.su-macro-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.su-macros { display: flex; flex-direction: column; gap: 10px; }
.su-macro-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.su-macro-head span { display: flex; gap: 6px; }
.su-pane .su-macro .su-text { margin: 0; }
.su-mpick { margin: 0 0 8px; }
.su-mpick .sable-dd { max-width: 360px; }
.su-rate { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--panel-2); font-size: 14px; }
.su-stats { color: var(--muted); }
/* Owner, Admin, VA and titles, as Telegram shows them (owner 2026-11-05) */
.su-person .su-item-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.su-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.su-badge-owner { color: #c9a7ff; border-color: rgba(166, 120, 255, .5); background: rgba(166, 120, 255, .1); }
.su-badge-admin { color: var(--ok); border-color: rgba(94, 201, 138, .45); background: rgba(94, 201, 138, .08); }
/* The Support center's three folders and the box they open in, over the page
   (owner 2026-11-07, his friend's video): red waiting for us, yellow
   answered, green solved. */
.su-folds { display: flex; flex-direction: column; gap: 10px; }
.su-fold { --fc: var(--muted); display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  width: 100%; text-align: left; padding: 14px; border-radius: 14px; cursor: pointer; font: inherit; color: var(--text);
  border: 1px solid color-mix(in srgb, var(--fc) 45%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--fc) 16%, transparent), color-mix(in srgb, var(--fc) 3%, transparent)); }
.su-fold:hover { border-color: var(--fc); }
.su-fold-red { --fc: #e5484d; }
.su-fold-yellow { --fc: #e0a03c; }
.su-fold-green { --fc: #46b97a; }
.su-fold-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--fc);
  background: color-mix(in srgb, var(--fc) 18%, transparent); }
.su-fold-ico .su-ic { width: 24px; height: 24px; }
.su-fold-txt b { display: block; font-size: 15px; }
.su-fold-txt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.su-fold em { font-style: normal; font-weight: 700; font-size: 18px; color: var(--fc); min-width: 22px; text-align: right; }
.su-fold-new { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--fc); border-radius: 999px; padding: 2px 8px; }
.su-modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, .55); }
.su-modal.on { display: flex; }
.su-modal-box { --fc: var(--muted); width: min(780px, 100%); max-height: min(78vh, 760px); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--fc) 50%, var(--line)); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); overflow: hidden; }
.su-modal-box.su-fold-red { --fc: #e5484d; }
.su-modal-box.su-fold-yellow { --fc: #e0a03c; }
.su-modal-box.su-fold-green { --fc: #46b97a; }
.su-modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--fc) 16%, transparent), transparent 70%); }
.su-modal-head b { display: block; font-size: 17px; }
.su-modal-head small { display: block; color: var(--muted); font-size: 12.5px; }
.su-fold-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--fc); flex: none; }
.su-modal-x { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; width: 32px; height: 32px;
  display: grid; place-items: center; cursor: pointer; }
.su-modal-x:hover { color: var(--text); }
.su-modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px 18px; overflow-y: auto; }
.su-modal-grid .su-empty { grid-column: 1 / -1; }
.su-card { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel-2); color: var(--text); cursor: pointer; font: inherit; min-width: 0; }
.su-card:hover { border-color: var(--fc); }
.su-modal-foot { padding: 0 18px 16px; display: flex; justify-content: center; }
.su-modal-foot .hidden { display: none; }
@media (max-width: 640px) {
  .su-modal { padding: 0; align-items: stretch; }
  .su-modal-box { max-height: none; height: 100%; border-radius: 0; }
  .su-modal-grid { grid-template-columns: 1fr; }
}

/* The phone menu open: the page behind stays still (owner 2026-11-09) */
body.su-noscroll { overflow: hidden; }
/* Record video and Voice note (owner 2026-11-17) */
.su .su-recbtn { display: inline-flex; align-items: center; gap: 6px; background: none; font: inherit; }
.su-recbtn .su-ic { width: 14px; height: 14px; }
.su-recs { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.su-recs:empty { display: none; }
.su-recchip { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.su-recchip video { max-width: 260px; max-height: 160px; border-radius: 8px; border: 1px solid var(--line); }
.su-recchip audio, .su-recfile audio { max-width: 280px; }
.su-recfile { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.su-transcript { font-size: 13px; max-width: 520px; }
.su-transcript summary { cursor: pointer; color: var(--gold-lt); }
.su-transcript p { margin: 6px 0 0; white-space: pre-wrap; }
.su-recbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px; background: var(--panel); border: 1px solid rgba(229, 72, 77, .5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55); max-width: calc(100vw - 24px); flex-wrap: wrap; }
.su-recdot { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; animation: su-blink 1s infinite; }
@keyframes su-blink { 50% { opacity: .3; } }
.su-rectime { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 40px; }
.su-meter { width: 90px; height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line); }
.su-meter i { display: block; height: 100%; width: 0; background: #46b97a; transition: width .08s linear; }
.su-recbar small { color: var(--warn); }
/* Recording made simple (owner 2026-11-19) */
.su-recintro .su-modal-box { width: min(520px, 100%); }
.su-recsteps { padding: 16px 18px 0 38px; margin: 0; line-height: 1.6; font-size: 15px; }
.su-recsteps li { margin: 4px 0; }
.su-recnote { padding: 8px 18px 0; margin: 0; }
.su-recfoot { justify-content: flex-end; gap: 10px; padding-top: 16px; }
.su-rechint { color: var(--muted); font-size: 13px; }
