:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5b6676;
  --line: #dde2e8;
  --accent: #1f5fbf;
  --accent-text: #ffffff;
  --warn-bg: #fff4e0;
  --warn-text: #7a4a00;
  --err-bg: #fde8e8;
  --err-text: #8a1c1c;
  --ok: #1d7a46;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; padding: 0 16px 32px; max-width: 640px; margin-inline: auto; }

header.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
header.bar h1 { font-size: 1.15rem; margin: 0; }
header.bar .who { font-size: 0.85rem; color: var(--muted); text-align: right; }
header.bar a { color: var(--accent); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 12px;
}
.card h2 { font-size: 1.05rem; margin: 0 0 4px; }
.card .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.card .mine { color: var(--ok); font-weight: 600; }

button, .button {
  display: inline-block; width: 100%; padding: 14px; font-size: 1rem; font-weight: 600;
  border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-text);
  text-align: center; text-decoration: none; cursor: pointer;
}
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button:disabled { opacity: 0.5; cursor: default; }

.error { background: var(--err-bg); color: var(--err-text); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.note { background: var(--warn-bg); color: var(--warn-text); padding: 10px 12px; border-radius: 8px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
