:root {
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: #17202a;
  background: #f8fafc;
}

* { box-sizing: border-box; }

body { margin: 0; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px 28px;
}

.header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

h1 { margin: 0 0 24px; font-size: 30px; }
p { margin: 0; line-height: 1.5; }

button {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 11px 16px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

button:hover { background: #f1f5f9; }
button:focus-visible, input:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .55; }

button.danger { background: #e5483b; border-color: #e5483b; color: #fff; }
button.danger:hover { background: #c93d32; }

.page-status { min-height: 24px; margin-bottom: 8px; color: #475569; }
.page-status.error { color: #b91c1c; }

.board {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(10, auto);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.note {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.number { width: 24px; flex: none; text-align: center; font-weight: 700; font-size: 14px; }
.field { flex: 1; min-width: 0; }

.field input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #9ca3af;
  border-radius: 3px;
  font: inherit;
  font-size: 14px;
}

.save-status { display: block; min-height: 15px; margin-top: 2px; font-size: 11px; color: #64748b; }
.save-status.error { color: #b91c1c; }
.notice { margin-top: 18px; color: #64748b; font-size: 13px; }

@media (max-width: 850px) {
  .board { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr; }
  .container { padding-top: 24px; }
  .header { align-items: stretch; flex-direction: column; }
  h1 { margin-bottom: 12px; font-size: 26px; }
  .header .danger { align-self: flex-start; }
}

@media (max-width: 480px) {
  .note { flex-wrap: wrap; }
  .field { flex-basis: calc(100% - 32px); }
  .note button { flex: 1; }
}
