:root {
  --bg: #f7f6f2;
  --card-bg: #ffffff;
  --border: #e0ddd4;
  --text: #2f2c28;
  --muted: #7a766c;
  --accent: #4a7c6f;
  --accent-dark: #345a51;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

h1 { font-size: 1.4rem; margin: 0; }
h2 { font-size: 1.1rem; margin-top: 0; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.hidden { display: none; }

label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

input, textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

textarea { min-height: 60px; resize: vertical; }

button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover { background: var(--accent-dark); }

#auth-status {
  font-size: 0.85rem;
  color: var(--muted);
}

#auth-status button {
  background: none;
  color: var(--accent);
  padding: 0;
  font-size: 0.85rem;
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 8px;
}

th, td {
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { color: var(--muted); font-weight: 600; }

#summary {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.delete-btn {
  background: none;
  color: #b23b3b;
  padding: 0;
  font-size: 0.8rem;
  text-decoration: underline;
}

#login-message {
  font-size: 0.85rem;
  color: var(--accent-dark);
}
