:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --text: #1e1e1e;
  --muted: #5e5e5e;
  --brand: #0f766e;
  --danger: #b91c1c;
  --line: #e2e8f0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: radial-gradient(circle at top left, #f0fdfa, var(--bg) 45%);
  color: var(--text);
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.userbox { display: flex; align-items: center; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.narrow { max-width: 460px; margin: 40px auto; }
.grid-two { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: 8px; }
.compact { max-width: 240px; }
.inline-form { display: inline-block; margin-right: 8px; margin-top: 6px; }
label { font-size: 14px; color: var(--muted); }
input, select, button { border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px; font: inherit; }
button { background: var(--brand); color: #fff; border-color: var(--brand); cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.danger { background: var(--danger); border-color: var(--danger); }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px; vertical-align: top; }
a { color: var(--brand); text-decoration: none; }
.flash { border-radius: 10px; padding: 12px; margin-bottom: 16px; }
.flash.success { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }
@media (max-width: 900px) {
  .grid-two { grid-template-columns: 1fr; }
  .wrap { padding: 12px; }
}
