* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f7fa;
  color: #1a1a2e;
  line-height: 1.5;
  padding: 20px;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.subtitle {
  color: #666;
  margin-bottom: 28px;
  font-size: 1rem;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.hint {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}

input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1.5px solid #d0d5dd;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
}

input[type="text"]:focus {
  border-color: #4f6ef7;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.slot-btn {
  background: #f0f2f5;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  color: #333;
}

.slot-btn:hover {
  background: #e4e7ec;
}

.slot-btn.selected {
  background: #e0e8ff;
  border-color: #4f6ef7;
  color: #1a1a2e;
  font-weight: 600;
}

button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: #4f6ef7;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
}

button[type="submit"]:hover:not(:disabled) {
  background: #3b5bdb;
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.message.success {
  background: #d3f9d8;
  color: #1a7d36;
}

.message.error {
  background: #ffe0e0;
  color: #c92a2a;
}

.footer-links {
  margin-top: 28px;
  text-align: center;
}

.footer-links a {
  color: #4f6ef7;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ── results page ──────────────────────────────── */
.card {
  margin-bottom: 28px;
}

.card h2 {
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.card hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 24px 0;
}

.meeting-link {
  display: inline-block;
  word-break: break-all;
  color: #4f6ef7;
  margin: 8px 0;
  font-size: 0.9rem;
  background: #f0f4ff;
  padding: 8px 14px;
  border-radius: 8px;
}

.copy-btn {
  display: inline-block;
  background: #4f6ef7;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  margin-left: 8px;
}

.copy-btn:hover {
  background: #3b5bdb;
}

.code-badge {
  display: inline-block;
  background: #e8ecf4;
  color: #555;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  font-family: monospace;
}

.date-hint {
  color: #999;
  font-size: 0.8rem;
  margin-left: 8px;
}

.meeting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}

.meeting-row:last-child {
  border-bottom: none;
}

.meeting-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-small {
  display: inline-block;
  background: #f0f2f5;
  color: #333;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}

.btn-small:hover {
  background: #e4e7ec;
  text-decoration: none !important;
}

.summary-count {
  font-size: 1rem;
  color: #444;
  margin-bottom: 16px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.results-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}

.results-table td {
  padding: 8px 4px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  font-size: 0.9rem;
}

.results-table td:last-child {
  color: #555;
}

.bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar {
  height: 22px;
  background: #4f6ef7;
  border-radius: 6px;
  min-width: 4px;
  transition: width 0.3s;
}

.bar-label {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 20px;
  color: #1a1a2e;
}

.person-card {
  background: #f8f9fc;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.person-card strong {
  min-width: 80px;
}

.person-card .times {
  color: #555;
  font-size: 0.9rem;
}

h2 {
  font-size: 1.15rem;
  margin: 24px 0 12px;
}

#no-results p {
  color: #888;
  text-align: center;
  padding: 40px 0;
}