* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

.topbar {
  background: #111827;
  color: #fff;
  padding: 18px 24px;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
}

.topbar p {
  margin: 6px 0 0;
  color: #cbd5e1;
}

.container {
  max-width: 1080px;
  margin: 20px auto 40px;
  padding: 0 16px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 16px;
  margin-bottom: 16px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

button {
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  padding: 9px 14px;
  font-size: 14px;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

button.secondary {
  margin-left: 8px;
  background: #4b5563;
}

button.secondary:hover {
  background: #374151;
}

button.mini {
  margin: 0;
  padding: 6px 10px;
  font-size: 12px;
}

button.danger {
  background: #dc2626;
}

button.danger:hover {
  background: #b91c1c;
}

.list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.list li {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tutor-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.tutor-card {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
}

.tutor-main {
  display: flex;
  gap: 12px;
}

.tutor-main h4 {
  margin: 0 0 4px;
  font-size: 20px;
}

.tutor-avatar {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #e5e7eb;
}

.tutor-side {
  min-width: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.price {
  font-weight: 700;
  font-size: 24px;
}

.muted-line {
  color: #4b5563;
  font-size: 14px;
  margin-top: 2px;
}

.tutor-empty {
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  padding: 16px;
  color: #6b7280;
}

.result {
  margin-top: 12px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  min-height: 70px;
  white-space: pre-wrap;
  word-break: break-word;
}

.muted {
  color: #6b7280;
  margin-top: 10px;
}

.hidden {
  display: none;
}
