/* الدعم: نفس هوية «حسابي». عمود واحد بعرض مريح للقراءة. */
.s-main { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; display: flex; flex-direction: column; gap: 14px; }
.s-main section { display: flex; flex-direction: column; gap: 14px; }
.s-main section.hidden { display: none; }
.s-main h1 { margin: 4px 0 0; }
.s-main p { margin: 0; }

/* Choices as chips: the radio is hidden, the label is the button. */
.topics { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { font-size: 14px; color: var(--wool-dim); margin-bottom: 8px; padding: 0; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topic { background: var(--deep); color: var(--wool); border-radius: 99px; padding: 8px 14px; font-size: 15px; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; }
.topics input:focus-visible + .topic { box-shadow: inset 0 0 0 2px var(--saffron); }
.topics input:checked + .topic { background: var(--saffron); color: var(--on-accent); font-weight: 600; }

.s-fields { display: flex; flex-direction: column; gap: 10px; }
.s-fields.hidden { display: none; }
textarea, select {
  width: 100%; border: 0; border-radius: 12px; background: var(--deep); color: var(--wool);
  padding: 12px 14px; font: 400 16px "Readex", sans-serif; outline: none; box-shadow: inset 0 0 0 1.5px var(--field-line); resize: vertical;
}
textarea:focus, select:focus { box-shadow: inset 0 0 0 2px var(--saffron); }
/* The field only bots fill: out of sight without widening the page. */
.hp { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.s-fields, .a-box { position: relative; }
.s-room { background: var(--deep); border-radius: 10px; padding: 8px 12px; font-size: 14px; color: var(--accent-text); }
.s-room.hidden { display: none; }
.s-sent { align-items: center; text-align: center; }
.s-sent .btn { margin-top: 6px; }

.s-main a:not(.btn) { color: var(--accent-text); }
.s-back { color: var(--accent-text); text-decoration: none; font-size: 14px; }
.s-back::before { content: "‹ "; }
.s-head p { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }

/* The conversation: the customer on the right (start), the team on the left with a saffron edge. */
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.thread li { max-width: 88%; border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.thread li p { white-space: pre-wrap; line-height: 1.8; overflow-wrap: anywhere; }
.thread li small { font-size: 12px; }
.thread li.you { align-self: flex-start; background: var(--up); }
.thread li.team { align-self: flex-end; background: var(--deep); box-shadow: inset -3px 0 0 var(--saffron); }

.st-new, .st-open { color: var(--accent-text); }
.st-waiting { color: var(--on-accent); background: var(--saffron); }
.s-rate .a-row .btn { font-size: 16px; }
.s-main .ok.hidden, .s-main .dim.hidden, .s-main .card.hidden { display: none; }
