/* The support desk: the form (support/index.html) and the ticket pages
   src/support.js renders. On top of /site.css, which holds the tokens. */

body.support main.sp { display: block; padding: 72px 0 96px; }
@media (max-width: 640px) { body.support main.sp { padding: 48px 0 72px; } }
.brand .dim { font-weight: 500; margin-left: 2px; }
.acct-link { margin-top: 14px; font-size: 16px; color: var(--ink-2); }
.sp h1 { font-size: clamp(34px, 4.6vw, 56px); }
.sp h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 6px; }
.sp h3 { font-size: 17px; font-weight: 650; margin: 0 0 6px; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; margin-top: 48px; align-items: start; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; gap: 40px; } }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); border-radius: 3px; padding: 10px 12px;
}
input, select { height: 46px; }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input[type="file"] { height: auto; padding: 12px; background: transparent; border-style: dashed; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 122, 109, .12); }
::placeholder { color: #9a9ca3; }
.err { color: #b42318; font-size: 14px; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn { cursor: pointer; }

.sysinfo { border-top: 1px solid var(--line-2); padding-top: 14px; }
.sysinfo summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style-position: inside; }
.sysinfo .grid { margin-top: 14px; }

.help .card { position: relative; border-top: 1px solid var(--line-2); padding: 18px 0 22px; }
.help .card::before { content: ""; position: absolute; left: 0; top: -2px; width: 40px; height: 3px; background: var(--accent); }
.help p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: #f1f1ee;
        padding: 1px 6px; border-radius: 3px; color: var(--ink); white-space: nowrap; cursor: copy; }

/* ── a ticket ───────────────────────────────── */
.notice { border: 1px solid var(--accent); background: rgba(11, 122, 109, .06); border-radius: 4px;
          padding: 18px 20px; margin-bottom: 40px; color: var(--ink-2); font-size: 16px; }
.notice strong { color: var(--ink); }
.notice .link { margin-top: 12px; }
.notice input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; height: 42px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 3px;
        font-size: 13px; font-weight: 600; background: #f1f1ee; color: var(--ink-2); margin-right: 8px; vertical-align: 2px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-new, .st-open { background: rgba(183, 135, 10, .13); color: #8a6508; }
.st-waiting { background: rgba(23, 122, 69, .10); color: #177a45; }

.thread { margin: 40px 0 56px; max-width: 820px; }
.msg { border-top: 1px solid var(--line-2); padding: 20px 0 24px; position: relative; }
.msg.team::before { content: ""; position: absolute; left: 0; top: -2px; width: 40px; height: 3px; background: var(--accent); }
.msg-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.msg-head strong { color: var(--ink); font-size: 15px; }
.msg.team .msg-head strong { color: var(--accent); }
.msg-text { color: var(--ink); font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.file { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line-2);
        border-radius: 3px; text-decoration: none; font-size: 14px; color: var(--ink); }
.file:hover { border-color: var(--ink-3); }
.thumb { display: block; width: 180px; text-decoration: none; font-size: 13px; color: var(--ink-3); }
.thumb img { width: 180px; height: 120px; object-fit: cover; border: 1px solid var(--line-2); border-radius: 3px; display: block; margin-bottom: 4px; }
.thumb span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.reply { max-width: 820px; border-top: 1px solid var(--line-2); padding-top: 28px; }
.reply label { margin-top: 16px; }
