:root {
  --bg: #0b1220; --panel: #111827; --line: #1f2937; --text: #e5e7eb;
  --muted: #9ca3af; --accent: #f59e0b; --accent-ink: #111827;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom); }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.brand { font-weight: 700; letter-spacing: .02em; }
.who { margin-left: auto; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
h1, h2 { margin: 0 0 8px; }
.hint, p { color: var(--muted); }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.module { padding: 18px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-size: 16px; text-align: left; }
.module small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.module:disabled { opacity: .5; }
textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px; font: inherit; font-size: 16px; margin: 8px 0; }
.primary { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
  padding: 12px 18px; font-weight: 600; font-size: 16px; }
.primary:disabled { opacity: .6; }
.link { background: none; border: 0; color: var(--accent); font-size: 14px; }
.reply { white-space: pre-wrap; background: var(--bg); border-radius: 8px; padding: 12px; min-height: 2em; margin-top: 12px; }
.env { text-align: center; color: var(--muted); font-size: 12px; padding: 16px; }
.notice { border: 1px solid #b45309; background: #1f1505; color: #fcd34d; border-radius: 8px;
  padding: 12px; font-size: 14px; line-height: 1.4; margin-bottom: 12px; }
.banner { background: #7f1d1d; color: #fff; border-radius: 6px; padding: 8px 10px; font-size: 13px; font-weight: 600; }
.upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.upload input, .upload select { background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px; font-size: 15px; }
table.files { width: 100%; border-collapse: collapse; font-size: 14px; }
table.files th, table.files td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.files small { color: var(--muted); }
.tag { background: #374151; border-radius: 4px; padding: 2px 6px; font-size: 12px; }
