/* account.html, tickets.html and the admin console (docs/customer-support.md §6) — on top of app.css, which holds the
   whole "Silver Night" system (design/: tokens, base, app components). app.css is also the one file the plugin's loopback
   page fetches, so what only these signed-in pages need stays here: how web/views/{account,support,admin}.js markup sits
   on the design's form card, claim-ticket stubs, conversation and composer. Hand-written; tokens only. */

/* ───────── Account (views/account.js): one graphite form card, a section per row ───────── */
.account-page.form-card { padding-top: clamp(14px, 2vw, 26px); }
.account-page > .fsec { border-bottom: 1px dashed var(--line-2); }
.account-page > .fsec:last-child { border-bottom: 0; }
.fsec-head h2 { font: 700 var(--fs-h3)/1.4 var(--font-body); letter-spacing: -.01em; overflow-wrap: anywhere; }
.fsec-body { align-content: start; min-width: 0; }
.account-page .fsec-body { gap: var(--s-4); }
.fsec-body h3 { font-size: 1rem; color: var(--fg); }
.fsec-body > h3:not(:first-child) { margin-top: var(--s-3); }
/* buttons and button links keep their own width (a section body stretches its children) */
.account-section > a.btn, .account-section > .btn, .fsec-body > .btn { align-self: flex-start; justify-self: start; }
.profile { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 16px 18px; background: var(--surface-2); border-radius: var(--r-sm); }
.profile .avatar { width: 48px; height: 48px; font-size: 1.25rem; }
.profile-text { display: grid; gap: 4px; min-width: 0; }
.profile-name { font-size: 1.125rem; font-weight: 700; color: var(--fg); overflow-wrap: anywhere; }
.steam-id { font-size: .9375rem; letter-spacing: .04em; color: var(--fg); overflow-wrap: anywhere; }
.save-row { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.save-msg { min-height: 1.5em; font-size: .9375rem; font-weight: 600; color: var(--fg-2); }
.save-msg.ok { color: var(--ok); }
.save-msg.err { color: var(--no); }
.usage-line { font-size: 1.0625rem; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.field select { width: min(100%, 280px); }

/* ───────── Tickets (views/support.js) ───────── */
.support-list { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.support-list > .btn { align-self: flex-start; }
.stub { --perf: 92px; }
.stub:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); border-radius: 0; }  /* the perforation mask would cut a ring outside */
.stub-no b { font: var(--fw-num) 1.125rem/1.25 var(--font-display); letter-spacing: 0; text-align: center; }
.stub-subject { font-weight: 700; font-size: .9688rem; line-height: 1.45; color: var(--fg-2); overflow-wrap: anywhere; }
.stub.answered { background: var(--night-3); }
.stub.answered .stub-subject { color: var(--fg); }
/* a new ticket: the design's form card */
.ticket-form { display: flex; flex-direction: column; gap: var(--s-5); }
.ticket-form .form-card-head { margin-bottom: 0; }
.ticket-form > .btn, .reply > .btn, .reply > .row { align-self: flex-start; }
.choices { gap: 8px 10px; }
.choices legend { margin-bottom: 10px; }
.choices .small { flex-basis: 100%; margin-top: 4px; font-size: var(--fs-ko-min); }
.ticket-form .note { padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-sm); }
.counter { align-self: flex-end; justify-self: end; font-variant-numeric: tabular-nums; font-size: var(--fs-ko-min); }
/* one ticket: the conversation panel */
.thread-panel { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.thread-head { margin-bottom: 0; }
.thread-head .chip { justify-self: start; }
.thread-head h2 { overflow-wrap: anywhere; }   /* a subject typed without spaces (Japanese) under keep-all: wrap, never widen the page */
.msg-head time, .msg-head .msg-time { margin-left: auto; font: 500 var(--fs-ko-min)/1.4 var(--font-body); letter-spacing: 0; color: var(--fg-3); }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }   /* text as typed: line breaks kept, nothing linked */
/* The answer box spans the panel; only its button row keeps its own width (review finding 15: a flex-start here left
   the textarea 195px wide). */
.reply { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.composer { margin-top: 0; }
.composer-bar .counter { margin-right: auto; align-self: center; }

@media (max-width: 760px) {
  .profile { align-items: flex-start; }
  .account-page.form-card { padding-inline: 18px; }
}
@media (max-width: 520px) {
  .stub { --perf: 78px; }
  .stub-no b { font-size: 1rem; }
  .choice { flex: 1 1 calc(50% - 10px); }
  .choice span { width: 100%; justify-content: center; }
}
