* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}

.hidden { display: none !important; }

.house-header {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  padding: 16px 20px;
}

.house-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.house-brand span { font-size: 1.6rem; }

.house-title { font-weight: 800; font-size: 1.1rem; }
.house-subtitle { font-size: 0.85rem; opacity: 0.9; }

.house-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
}

.house-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.house-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.house-hint {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.house-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.house-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.house-optional {
  font-weight: 400;
  color: #64748b;
}

.house-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
}

.house-combobox {
  position: relative;
}

.house-input-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.03em;
}

.house-team-note {
  margin: -0.35rem 0 0.75rem;
  color: #64748b;
  font-size: 0.88rem;
}

.house-field-note {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.house-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.house-suggestion {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}

.house-suggestion:last-child {
  border-bottom: none;
}

.house-suggestion:hover,
.house-suggestion.is-active {
  background: #fff7ed;
}

.house-suggestion-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.house-suggestion-detail {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.house-suggestion-empty {
  padding: 10px 12px;
  color: #64748b;
  font-size: 0.9rem;
}

.house-btn {
  margin-top: 4px;
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  background: #4f46e5;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.house-btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.house-alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.92rem;
}

.house-result-card { text-align: center; }

.house-result-greeting {
  margin: 0 0 16px;
  font-size: 1rem;
}

.house-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  border: 2px solid transparent;
}

.house-badge-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.house-result-card h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  text-align: left;
  color: #475569;
}

.house-member-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  text-align: left;
}

.house-member-list li {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.house-member-list li:last-child {
  border-bottom: none;
}

.house-footer {
  text-align: center;
  padding: 20px;
  color: #64748b;
  font-size: 0.85rem;
}
