/* Support panel (docked right, like TradingView's Help), admin «Підтримка» list.
   Only tokens from tokens.css. */
.sup-panel {
  position: fixed; z-index: var(--z-dialog); display: flex; flex-direction: column;
  inset: 0; background: var(--panel); color: var(--text);
}
.sup-panel[hidden] { display: none; }
.sup-panel:focus { outline: none; }
@media (min-width: 640px) {
  .sup-panel {
    inset: var(--topbar-h) 44px 0 auto; width: min(380px, calc(100vw - 44px));
    border-left: 1px solid var(--border-strong); box-shadow: var(--shadow-2); animation: cg-fade var(--dur) var(--ease);
  }
}
.sup-head { flex: none; display: flex; align-items: center; gap: var(--s2); height: 46px; padding: 0 var(--s2) 0 var(--s4); border-bottom: 1px solid var(--border); }
.sup-head b { font: 600 var(--fs-lg)/1 var(--sans); }
.sup-close { margin-left: auto; }
.sup-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 var(--s2); border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font: 600 var(--fs-2xs)/1 var(--sans); white-space: nowrap; }
.sup-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: var(--s4); padding-bottom: calc(var(--s4) + env(safe-area-inset-bottom, 0px)); }
.sup-form { display: grid; gap: var(--s4); }
.sup-intro { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.sup-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.sup-chip { height: auto; min-height: var(--h-sm); padding: 6px 12px; white-space: normal; text-align: left; line-height: 1.3; }
.sup-chip:focus-visible { box-shadow: var(--focus); outline: none; }
.sup-panel textarea { width: 100%; min-height: 140px; }
.sup-count { align-self: flex-end; font: 500 var(--fs-2xs)/1 var(--mono); color: var(--soft); }
.sup-who { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.sup-who[hidden], .sup-err[hidden], .sup-done[hidden], .sup-form[hidden], .field[hidden] { display: none; }
.sup-err { margin: 0; padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: var(--short-soft); color: var(--short); font-size: var(--fs-sm); line-height: 1.4; }
.sup-send { width: 100%; height: var(--h-lg); }
.sup-done { display: grid; justify-items: center; gap: var(--s3); padding: var(--s6) var(--s3); text-align: center; }
.sup-done .icon { width: 36px; height: 36px; color: var(--long); }
.sup-done p { margin: 0; font-size: var(--fs-md); line-height: 1.5; }
.strip-btn.sup-btn { margin-top: var(--s1); }

/* mobile: the item inside the «Ще» sheet reuses #mMore button styles */
@media (max-width: 639px) { body.sup-open #toasts { z-index: calc(var(--z-dialog) + 1); } }

/* admin: support inbox */
.sup-list { display: grid; gap: var(--s3); }
.sup-item { display: grid; gap: var(--s2); padding: var(--s4); }
.sup-item.done { opacity: .62; }
.sup-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); font-size: var(--fs-xs); color: var(--muted); }
.sup-meta b { color: var(--text); font-weight: 600; }
.sup-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-md); line-height: 1.55; }
.sup-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.sup-foot .sup-page { font: 500 var(--fs-xs)/1 var(--mono); color: var(--soft); margin-right: auto; overflow-wrap: anywhere; }
/* quieter header and send button (Obsidian): a muted one-line note instead of a coloured «early access» badge */
.sup-head .sup-sub { flex: 1 1 auto; min-width: 0; color: var(--soft); font-size: var(--fs-2xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-send.btn-secondary { width: auto; min-width: 140px; height: var(--h-md, 32px); margin-left: auto; display: block; background: #2A2A2A; color: #FFFFFF; border: 1px solid #3A3A3A; }
.sup-send.btn-secondary:hover { background: #333333; }
