:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #182230;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.app {
  width: calc(100% - 32px);
  max-width: none;
  margin: 0 auto;
  padding: 32px 0;
}

.hidden {
  display: none !important;
}

.panel,
.loginBox {
  background: #ffffff;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(24, 34, 48, 0.08);
  overflow: hidden;
}

.login {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
}

.loginBox {
  width: min(520px, 100%);
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid #e7ebf0;
}

h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

p {
  margin: 0;
  color: #5c6b7f;
  line-height: 1.65;
}

label {
  display: block;
  margin: 24px 0 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 0 12px;
  color: #182230;
  font: inherit;
}

button {
  min-width: 128px;
  height: 42px;
  border: 0;
  border-radius: 7px;
  background: #0f766e;
  color: white;
  font-weight: 750;
  cursor: pointer;
}

button.secondary,
button.tab {
  background: #eef2f6;
  color: #243447;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.loginRow,
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  border-bottom: 1px solid #e7ebf0;
  background: #fbfcfd;
}

.tab {
  min-width: 108px;
}

.tab.active {
  background: #182230;
  color: #ffffff;
}

.toolbar {
  padding: 16px 24px;
  border-bottom: 1px solid #e7ebf0;
}

.toolbar input {
  max-width: 360px;
}

.toolbar .numberInput {
  max-width: 130px;
}

.countBadge {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #cfe7df;
  border-radius: 7px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.status {
  flex: 1;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e1e7ee;
  border-radius: 7px;
  color: #43546a;
  background: #fbfcfd;
}

.status.compact {
  margin-top: 14px;
}

.status.error {
  color: #9f1239;
  border-color: #fecdd3;
  background: #fff1f2;
}

.progressPanel {
  padding: 0 24px 16px;
  border-bottom: 1px solid #e7ebf0;
  background: #fbfcfd;
}

.progressMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #243447;
  font-size: 13px;
  font-weight: 800;
}

.progressTrack {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe6ee;
}

.progressFill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
  transition: width 240ms ease;
}

.progressMessage {
  margin-top: 10px;
  color: #526176;
  font-size: 14px;
  line-height: 1.45;
}

.tableWrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid #edf0f3;
  white-space: nowrap;
}

th {
  color: #526176;
  font-size: 13px;
  background: #fafbfc;
}

td:first-child {
  font-weight: 800;
  color: #0f172a;
}

.domainName {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.buyTick {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.buyTick.strong {
  background: #0f766e;
}

.domainRow {
  cursor: pointer;
}

.domainRow:hover {
  background: #f7faf9;
}

.domainRow.purchased,
.domainRow.purchased:hover,
.domainRow.purchased + .detailRow td {
  background: #dcfce7;
}

.purchaseButton {
  min-width: 116px;
  height: 34px;
  background: #116466;
  font-size: 13px;
}

.domainRow.purchased .purchaseButton {
  background: #15803d;
}

.detailRow td {
  padding: 0 18px 16px;
  background: #fbfcfd;
  white-space: normal;
}

.detailBox {
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.detailTitle {
  margin-bottom: 8px;
  color: #182230;
  font-weight: 800;
}

.detailTitleSecondary {
  margin-top: 14px;
}

.empty {
  text-align: center;
  color: #748196;
  padding: 42px 18px;
}

@media (max-width: 720px) {
  .app {
    width: calc(100% - 20px);
    padding: 16px 0;
  }

  .topbar,
  .toolbar,
  .loginRow {
    align-items: stretch;
    flex-direction: column;
  }

  button,
  .toolbar input {
    width: 100%;
    max-width: none;
  }
}
