:root{
  --bg:#fafafa;
  --text:#222;
  --muted:#555;
  --card:#fff;
  --border:#e6e6e6;
  --shadow:0 10px 30px rgba(0,0,0,.06);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
}
a{color:inherit; text-decoration:underline; text-underline-offset:3px}
.container{max-width:720px; margin:0 auto; padding:24px 16px}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:22px 18px;
}
.hdr{margin:0 0 10px 0; font-size:14px; letter-spacing:.04em; text-transform:uppercase; color:var(--muted)}
.name{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size:30px;
  line-height:1.15;
  margin:0 0 14px 0;
}
.meta{margin:0 0 16px 0; color:var(--muted); font-size:14px; line-height:1.5}
.main{font-size:16px; line-height:1.7; margin:0 0 14px 0}
.hr{height:1px; background:var(--border); margin:18px 0}
.small{font-size:13px; color:var(--muted); line-height:1.6}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#f3f3f3;
  cursor:pointer;
  font-size:15px;
}
.btn:active{transform:translateY(1px)}
.row{display:flex; gap:10px; flex-wrap:wrap}
.input, .select, .textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  font-size:15px;
}
.textarea{min-height:88px; resize:vertical}
.label{font-size:13px; color:var(--muted); margin:12px 0 6px}
.grid{display:grid; grid-template-columns:1fr; gap:12px}
@media(min-width:680px){ .grid.two{grid-template-columns:1fr 1fr} }
.badge{
  display:inline-flex; padding:4px 10px; border:1px solid var(--border);
  border-radius:999px; font-size:12px; color:var(--muted); background:#fff;
}
.topbar{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px}
.error{color:#b00020; font-size:13px; margin-top:10px}
.success{color:#0a6b2b; font-size:13px; margin-top:10px}
.table{width:100%; border-collapse:separate; border-spacing:0 10px}
.tr{background:#fff; border:1px solid var(--border)}
.tr td{padding:12px}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}
.kv{display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--border)}
.kv:last-child{border-bottom:none}
