:root {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #1f2937;
  background: #f3f4f6;
}

body {
  margin: 0;
}

.container,
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

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

.utility-bar {
  min-height: auto;
  margin-bottom: 12px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  min-height: calc(100vh - 210px);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

button {
  border: 1px solid #2563eb;
  background: #3b82f6;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

.room-form,
.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.stack-form {
  display: flex;
  gap: 8px;
  flex-direction: column;
  margin-bottom: 8px;
}

.room-form input,
.inline-form input,
.stack-form textarea,
.stack-form input,
#import-json {
  padding: 8px;
}

.room-form input {
  width: 240px;
}

.logs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding-right: 4px;
}

.log-item,
.memo-item,
.checklist-card {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px;
  background: #f9fafb;
  margin-bottom: 8px;
}

.checklist-card h4 {
  margin: 0 0 8px;
}

.check-item {
  display: block;
  margin-bottom: 6px;
}

.memo-item summary {
  cursor: pointer;
  font-weight: 700;
}

.memo-item p {
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .columns {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }
}

.admin-block {
  margin-bottom: 10px;
}

.admin-block summary {
  font-weight: 700;
  margin-bottom: 8px;
  cursor: pointer;
}

.manage-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.manage-row h4 {
  margin: 0;
  margin-right: auto;
}

#flags .manage-row label {
  margin-right: auto;
}


details > summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 8px;
}


.admin-item { border: 1px solid #d1d5db; border-radius: 6px; padding: 6px; margin-bottom: 8px; background: #fff; }
button.danger { background: #dc2626; border-color: #b91c1c; }
.custom-fields { display: flex; flex-direction: column; gap: 6px; }
