* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
}

.topbar {
  height: 14px;
  background: #2b2f33;
}

.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.home-row { padding: 8px 0 4px; }

.btn-home {
  background: #ececec;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.btn-home:hover { background: #e0e0e0; }

.title {
  text-align: center;
  font-size: 30px;
  margin: 24px 0 32px;
}

.hint-box {
  background: #efefef;
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.6;
}
.hint-box p { margin: 0 0 8px; }
.hint-box ul { margin: 0; padding-left: 22px; }

.btn-query-all {
  display: block;
  width: 100%;
  margin: 26px 0 0;
  background: #ececec;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 20px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
}
.btn-query-all:hover { background: #e3e3e3; }

.or-divider {
  text-align: center;
  margin: 22px 0;
  position: relative;
  color: #999;
  font-size: 13px;
}
.or-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: #e2e2e2;
  z-index: 0;
}
.or-divider span {
  background: #fff;
  padding: 0 14px;
  position: relative;
  z-index: 1;
}

.query-card {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 16px;
}

.query-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 14px;
}
.query-input:focus { outline: none; border-color: #4caf72; }

.btn-query {
  width: 100%;
  background: #57b977;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.btn-query:hover { background: #4caf72; }

.results-banner {
  background: #e9f3fc;
  border-left: 4px solid #3b82f6;
  padding: 14px 18px;
  border-radius: 4px;
  margin: 22px 0 14px;
  font-size: 15px;
  color: #444;
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e2e2e2;
  margin-bottom: 14px;
}
.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 18px;
  font-size: 16px;
  cursor: pointer;
  color: #555;
}
.tab.active {
  color: #111;
  font-weight: 600;
  border-bottom-color: #111;
}

.renew-bar {
  background: #f1f1f1;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-renew {
  background: #e6e6e6;
  border: none;
  border-radius: 6px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.btn-renew:hover { background: #dcdcdc; }
.renew-hint { color: #777; font-size: 14px; }

.cards { display: flex; flex-direction: column; gap: 14px; }

.lic-card {
  width: 440px;
  max-width: 100%;
  background: linear-gradient(160deg, #3a55f0 0%, #6f9bf0 100%);
  color: #fff;
  border-radius: 8px;
  padding: 16px 18px;
  position: relative;
  cursor: default;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.lic-card.selectable { cursor: pointer; }
.lic-card.selected { outline: 3px solid #ffd54a; }

.lic-row {
  display: flex;
  font-size: 14px;
  line-height: 1.9;
}
.lic-row .k { width: 130px; opacity: .92; flex: none; }
.lic-row .v { font-weight: 500; word-break: break-all; }
.lic-row .v.strong { font-weight: 700; }

.gear {
  position: absolute;
  right: 14px;
  bottom: 12px;
  opacity: .85;
  font-size: 16px;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
}
.gear:hover { opacity: 1; }

.empty {
  color: #888;
  text-align: center;
  padding: 24px;
  font-size: 15px;
}
