* {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f6f8;
  color: #1f2430;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

h1 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.table {
  border-collapse: collapse;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table th,
.table td {
  box-sizing: border-box;
  border: 1px solid #c9ced8;
  padding: 0.75rem 1rem;
  text-align: center;
}

.table thead th {
  background: #2f6fed;
  color: #ffffff;
  font-weight: 600;
}

.table tbody td {
  background: #ffffff;
}

.table tbody tr:nth-child(even) td {
  background: #eef3ff;
}

/* Highlight for the selected cell ("selected" class, see common/table.js).
   The last selector keeps the highlight above the even-row stripe. */
.table td.selected,
.table thead th.selected,
.table tbody tr:nth-child(even) td.selected {
  background: #ffd66b;
  color: #1f2430;
}

/* Editable cell (contenteditable, see common/edit.js). */
.table td[contenteditable="true"],
.table th[contenteditable="true"] {
  outline: 2px solid #2f6fed;
  outline-offset: -2px;
  cursor: text;
}

.menu {
  position: absolute;
  min-width: 100px;
  min-height: 100px;
  box-sizing: border-box;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #c9ced8;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 4px 0;
}

.menu-item {
  padding: 0.5rem 1.25rem;
  cursor: default;
  user-select: none;
}

.menu-item:hover {
  background: #eef3ff;
}
