:root {
  --ink: #1b1f27;
  --muted: #6b7280;
  --bg: #ffffff;
  --panel: #f6f7f9;
  --line: #e2e5ea;
  --accent: #2f6fed;
  --accent-soft: #eaf1ff;
  --danger: #b3261e;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }
.topbar { background: #16213a; color: #fff; padding: .9rem 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.topbar .brand { font-weight: 700; letter-spacing: .02em; }
.topbar-nav { display: flex; align-items: center; gap: 1rem; }
.topbar-nav a { color: #cdd6ee; text-decoration: none; font-size: .9rem; }
.link-btn { background: none; border: none; color: #cdd6ee; cursor: pointer; font-size: .9rem; padding: 0; }

main { padding: 2rem 1.25rem 4rem; }

h1 { font-size: 1.4rem; }
h2 { font-size: 1.05rem; }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.panel.narrow { max-width: 380px; margin: 3rem auto; }

form { display: flex; flex-direction: column; gap: .8rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 600; }
input, textarea, button { font: inherit; }
input[type=text], input[type=email], input[type=password], textarea {
  padding: .5rem .6rem; border: 1px solid #c9ccd4; border-radius: 6px; font-size: .92rem;
}
textarea { min-height: 4rem; resize: vertical; }
button[type=submit] {
  align-self: flex-start; background: var(--accent); color: #fff; border: none;
  padding: .55rem 1.2rem; border-radius: 7px; cursor: pointer; font-weight: 600;
}
.error { color: var(--danger); font-size: .85rem; }
.status { font-size: .85rem; color: var(--accent); }
.muted { color: var(--muted); font-size: .9rem; }

.request-list { list-style: none; padding: 0; margin: 0; }
.request-list li {
  border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; margin-bottom: .6rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.request-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.status-badge {
  display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  padding: .15rem .55rem; border-radius: 999px; background: var(--accent-soft); color: #1d4ed8;
}
.not-active summary { cursor: pointer; color: var(--muted); margin: 1.5rem 0 .5rem; }

.request-frame {
  width: 100%; min-height: 70vh; border: 1px solid var(--line); border-radius: 10px; margin: 1rem 0;
}

.reply-list { list-style: none; padding: 0; }
.reply-list li {
  border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 8px 8px 0;
  padding: .7rem 1rem; margin-bottom: .6rem; font-size: .92rem;
}
.reply-list .reply-meta { font-size: .78rem; color: var(--muted); margin-bottom: .3rem; }
.reply-list .attachments { margin-top: .4rem; font-size: .82rem; }
.reply-list .attachments a { color: var(--accent); }
