:root { --ink: #1f1f24; --muted: #6b6b76; --line: #e3e3ea; --bg: #f6f6f9; --brand: #ea4b71; --ok: #1f8a4c; --warn: #b35c00; --bad: #c0262d; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: #3b4cc0; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.brand { font-weight: 700; color: var(--brand); text-decoration: none; font-size: 17px; }
nav { display: flex; gap: 14px; align-items: center; }
nav form { margin: 0; }
#who { color: var(--muted); font-size: 13px; }
main { max-width: 980px; margin: 20px auto; padding: 0 16px 80px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin: 14px 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row h2, .row h3 { margin: 0 8px 0 0; }
h3 { font-size: 16px; }
.muted, .hint { color: var(--muted); font-size: 13px; }
.error { color: var(--bad); }
.warn { color: var(--warn); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; background: #eef; color: #334; }
.badge.approved, .badge.delivered { background: #e3f6ea; color: var(--ok); }
.badge.warn, .badge.failed { background: #fff1e0; color: var(--warn); }
.badge.busy { background: #fdeef2; color: var(--brand); }
.badge.skipped, .badge.cancelled { background: #eee; color: #777; }
button, .button { font: inherit; padding: 6px 14px; border-radius: 7px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; }
button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
button.danger { background: #fff; color: var(--bad); border-color: #f0c8ca; }
button.link { background: none; border: 0; color: var(--muted); padding: 0; }
button:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; width: 100%; }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.form label { display: block; margin: 10px 0; font-weight: 500; }
.form label input, .form label select, .form label textarea { margin-top: 4px; }
label.check { display: flex; gap: 6px; align-items: center; font-weight: 400; white-space: nowrap; }
label.check input { width: auto; }
form.guide { display: flex; gap: 8px; align-items: center; width: 100%; margin-top: 8px; }
form.guide input { width: auto; min-width: 0; }
form.guide input[name=text] { flex: 1 1 auto; }
form.guide input[name=pattern] { flex: 0 0 280px; }
form.guide select { width: auto; }
.question-text { font-weight: 500; white-space: pre-wrap; }
.answer { border-left: 3px solid var(--brand); padding: 4px 0 4px 14px; margin: 10px 0; }
.answer h4 { margin: 10px 0 2px; }
.answer p { margin: 6px 0; }
.answer ul { margin: 4px 0 4px 18px; padding: 0; }
pre.research { white-space: pre-wrap; background: var(--bg); padding: 10px; border-radius: 6px; font-size: 13px; max-height: 420px; overflow: auto; }
details { margin: 8px 0; }
summary { cursor: pointer; color: #3b4cc0; }
.dispute { background: #fff6e8; border: 1px solid #f3d9ad; border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.guidance { padding-left: 18px; font-size: 13px; }
.thread { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.msg { padding: 8px 10px; border-radius: 8px; background: var(--bg); }
.msg.se { background: #eef0ff; }
.msg .who { font-size: 12px; color: var(--muted); }
.edit { width: 100%; }
table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.list th, table.list td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 12px; color: var(--muted); font-weight: 600; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 8px; color: #fff; z-index: 5; max-width: 80vw; }
#toast.ok { background: var(--ok); }
#toast.bad { background: var(--bad); }
.report p { margin: 4px 0; }
body.auth { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.auth-card { max-width: 420px; width: 100%; }
.auth-card h1 { color: var(--brand); font-size: 22px; margin-top: 0; }
.auth-card form { display: flex; flex-direction: column; gap: 10px; }
