:root { --ink:#1f2430; --muted:#5b6472; --line:#d7dce4; --accent:#0b5fff; --accent-soft:#e8f0ff; --warn:#8a5a00; --warn-bg:#fff4d6; --err:#9b1c1c; --err-bg:#fde8e8; --ok:#146c2e; --ok-bg:#e6f4ea; }
* { box-sizing:border-box; }
body { margin:0; font-family:system-ui,-apple-system,'Segoe UI',sans-serif; color:var(--ink); background:#f6f7f9; line-height:1.45; }
header { padding:20px 16px 8px; max-width:960px; margin:0 auto; }
h1 { margin:0 0 6px; font-size:26px; }
.proto { font-size:11px; font-weight:600; color:var(--muted); border:1px solid var(--line); border-radius:10px; padding:2px 8px; vertical-align:middle; text-transform:uppercase; letter-spacing:.05em; }
.tag { margin:0; color:var(--muted); max-width:640px; }
.card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; margin:14px auto; max-width:928px; }
h2 { margin:0 0 8px; font-size:18px; }
h3 { margin:14px 0 6px; font-size:15px; }
.hint { color:var(--muted); font-size:13px; margin:0 0 10px; }
.hint-inline { color:var(--muted); font-weight:400; font-size:12px; }
textarea { width:100%; font:14px/1.5 ui-monospace,monospace; border:1px solid var(--line); border-radius:8px; padding:10px; resize:vertical; }
input, select { font:inherit; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; }
input[type=number] { width:76px; }
.row { display:flex; gap:10px; margin-top:10px; align-items:center; }
.row.wrap { flex-wrap:wrap; }
button { font:inherit; border-radius:8px; padding:10px 16px; cursor:pointer; border:1px solid transparent; }
.primary { background:var(--accent); color:#fff; font-weight:600; }
.big { font-size:16px; padding:12px 20px; margin-top:14px; }
.ghost { background:#fff; border-color:var(--line); color:var(--ink); }
.summary { margin-top:10px; font-size:14px; color:var(--muted); }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.chip { background:var(--accent-soft); border-radius:14px; padding:3px 10px; font-size:13px; }
.chip .grp { color:var(--muted); font-size:11px; margin-left:4px; }
.kalist { list-style:none; padding:0; margin:10px 0 0; }
.kalist li { display:flex; justify-content:space-between; align-items:center; gap:8px; background:#fafbfc; border:1px solid var(--line); border-radius:8px; padding:6px 10px; margin-bottom:6px; font-size:14px; }
.kalist button { padding:2px 8px; font-size:13px; }
.status { margin:6px 0 12px; font-size:14px; }
.status.ok { background:var(--ok-bg); color:var(--ok); border-radius:8px; padding:8px 12px; }
.status.problem { background:var(--err-bg); color:var(--err); border-radius:8px; padding:8px 12px; }
.status ul { margin:6px 0 0; padding-left:18px; }
.tables { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; }
.table-card { border:1.5px solid var(--line); border-radius:10px; padding:10px; background:#fff; cursor:pointer; }
.table-card.drop-target { border-color:var(--accent); background:var(--accent-soft); }
.table-card h4 { margin:0 0 8px; font-size:14px; display:flex; justify-content:space-between; }
.table-card h4 .n { color:var(--muted); font-weight:400; }
.guest { display:block; width:100%; text-align:left; background:#f2f4f8; border:1px solid transparent; border-radius:8px; padding:6px 10px; margin-bottom:5px; font-size:14px; }
.guest:last-child { margin-bottom:0; }
.guest.selected { background:var(--accent-soft); border-color:var(--accent); font-weight:600; }
.guest .grp { display:block; font-size:11px; color:var(--muted); }
.guest.conflict { background:var(--err-bg); }
footer { max-width:960px; margin:0 auto; padding:6px 16px 30px; color:var(--muted); font-size:12.5px; }
.hidden { display:none !important; }
@media (max-width:560px) {
  .row { flex-direction:column; align-items:stretch; }
  button.big { width:100%; }
  select, input[type=text] { width:100%; }
}

.ghost.small { padding:2px 8px; font-size:12px; }
.privacy { margin-top:8px; }
#btn-draft { margin-top:8px; display:block; }
