:root {
  color-scheme: light;
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #eef2f7;
  color: #1f2933;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(103, 140, 198, 0.18), transparent 35%),
    linear-gradient(180deg, #f5f7fa 0%, #e8edf4 100%);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lookup-card {
  width: min(960px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d8e0ea;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(31, 41, 51, 0.12);
  padding: 28px;
}

.card-header {
  margin-bottom: 24px;
}

.brand-logo {
  display: block;
  width: 100px;
  height: auto;
  margin: 0 0 12px;
}

h1 {
  margin: 0 0 10px;
  font-size: 31px;
  line-height: 1.2;
}

h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.intro,
.panel-copy,
.hint-text,
.signin-status {
  margin: 0;
  color: #52606d;
}

.signin-panel,
.search-panel {
  padding: 18px;
  border: 1px solid #dde5ee;
  border-radius: 14px;
  background: #fbfcfe;
}

.signin-panel {
  display: block;
}

.signin-copy {
  margin-bottom: 14px;
}

.signin-cta-row {
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}

.signin-button {
  min-height: 54px;
}

.signin-button > div {
  transform: scale(1.2);
  transform-origin: left;
}

.search-panel {
  margin-top: 0;
  display: block;
}

.results-section {
  margin-top: 16px;
}

.app-content {
  margin-top: 16px;
}

.is-hidden {
  display: none;
}

.signin-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef4fb;
  border: 1px solid #ccddf1;
  font-size: 14px;
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #b9c7d6;
  border-radius: 10px;
  font-size: 16px;
  color: #1f2933;
  background: #fff;
}

.search-row input:focus,
.search-row button:focus {
  outline: 3px solid rgba(70, 125, 197, 0.2);
  outline-offset: 2px;
}

.search-row button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: #1e5aa8;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.search-row button:disabled,
.search-row input:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.hint-text {
  margin-top: 10px;
  font-size: 14px;
}

.message {
  min-height: 24px;
  margin: 16px 2px;
  font-size: 14px;
  font-weight: 600;
}

.message-info {
  color: #235b8c;
}

.message-success {
  color: #137333;
}

.message-error {
  color: #b3261e;
}

.results-wrapper {
  border: 1px solid #ddd;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  max-height: 420px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

thead th:nth-child(1),
tbody td:nth-child(1) {
  width: 18%;
  white-space: nowrap;
}

thead th:nth-child(2),
tbody td:nth-child(2) {
  width: 31%;
  white-space: nowrap;
}

thead th:nth-child(3),
tbody td:nth-child(3) {
  width: 17%;
  white-space: nowrap;
}

thead th:nth-child(4),
tbody td:nth-child(4) {
  width: 34%;
}

thead th {
  position: sticky;
  top: 0;
  background: #f3f3f3;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  border-bottom: 1px solid #ccc;
  padding: 8px;
}

tbody td {
  font-size: 14px;
  padding: 8px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  overflow-wrap: break-word;
}

tbody tr:nth-child(odd) {
  background: #fafafa;
}

tbody tr:nth-child(even) {
  background: #ffffff;
}

tbody tr:hover {
  background: #f0f7ff;
}

.empty-state {
  text-align: center;
  color: #52606d;
  padding: 22px;
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
  text-transform: lowercase;
}

.status-member {
  background: #e6f4ea;
  color: #137333;
  border-color: #b7dfc2;
}

.status-non-member {
  background: #fce8e6;
  color: #b3261e;
  border-color: #f3b8b3;
}

a {
  color: #1e5aa8;
}

@media (max-width: 720px) {
  .lookup-card {
    padding: 20px;
  }

  .signin-panel {
    padding: 16px;
  }

  .search-row {
    flex-direction: column;
  }

  .search-row button,
  .search-row input {
    width: 100%;
  }

  thead th:nth-child(3),
  tbody td:nth-child(3) {
    width: 120px;
  }
}