* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: #f5f5f3;
  color: #222;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #e0e0dd;
}

h1 {
  font-size: 18px;
  margin: 0;
}

.status {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #eee;
}

.status.ok {
  background: #dff3e3;
  color: #1e7a34;
}

.status.warn {
  background: #fdecea;
  color: #b3261e;
}

main {
  max-width: 560px;
  margin: 32px auto;
  padding: 0 16px;
}

.hint {
  color: #555;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

.sheetLink {
  font-size: 13px;
  margin: 4px 0 0;
}

.logout {
  font-size: 13px;
  margin-top: 24px;
}

.logout a,
.sheetLink a {
  color: #555;
}

.actions {
  display: flex;
  gap: 12px;
  margin: 16px 0 24px;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  background: #333;
  color: #fff;
}

button:hover {
  background: #555;
}

#log {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #444;
}

#log li {
  padding: 6px 0;
  border-bottom: 1px solid #e5e5e2;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 420px;
}

.modal-content textarea {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.modal-actions button:first-child {
  background: #ddd;
  color: #333;
}

.modal-actions button:first-child:hover {
  background: #ccc;
}
