/* EduGenixAI Support Hub: mobile first, no JavaScript. */
:root { --navy: #042c53; --coral: #f0997b; --ink: #1b2430; --muted: #5b6675; --line: #d9dee5; --bg: #f5f7fa; --urgent: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
header { background: var(--navy); color: #fff; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
header nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
header a { color: #fff; }
header button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
main { padding: 16px; max-width: 960px; margin: 0 auto; }
h1 { font-size: 1.4rem; margin: 8px 0 16px; }
h2 { font-size: 1.1rem; margin: 0 0 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; overflow-wrap: anywhere; }
.narrow { max-width: 420px; margin: 32px auto; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 8px; min-height: 44px; }
textarea { min-height: 96px; }
button { font: inherit; min-height: 44px; padding: 8px 16px; margin-top: 12px; border-radius: 8px; border: 0; background: var(--navy); color: #fff; cursor: pointer; }
form.inline { display: inline; }
form.inline button { margin-top: 0; }
.error { color: var(--urgent); font-weight: 600; }
.filters { display: grid; grid-template-columns: 1fr; gap: 0 12px; margin-bottom: 16px; }
.tickets { list-style: none; padding: 0; margin: 0; }
.ticket a { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 12px 16px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.ticket.urgent a { border-left: 6px solid var(--urgent); }
.num { font-weight: 700; }
.badge { font-size: .8rem; padding: 2px 8px; border-radius: 999px; background: #e7ebf0; }
.badge.urgent { background: var(--urgent); color: #fff; }
.meta { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.status { color: var(--muted); }
dl { display: grid; grid-template-columns: 1fr; margin: 0; }
dt { font-weight: 600; color: var(--muted); font-size: .9rem; }
dd { margin: 0 0 8px; }
.desc { white-space: pre-wrap; }
.convo li, .thread li { margin-bottom: 8px; }
.msg.internal { background: #fff7e6; border-left: 4px solid var(--coral); padding-left: 8px; }
.msg.to_school .who { color: var(--navy); }
.who { font-weight: 600; }
.at { color: var(--muted); font-size: .85rem; }
figure { margin: 0 0 12px; }
img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: #fff; }
td, th { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; font-size: .9rem; }
@media (min-width: 720px) {
  .filters { grid-template-columns: repeat(3, 1fr) auto; align-items: end; }
  dl { grid-template-columns: 200px 1fr; }
  dd { margin: 0 0 8px; }
}
