:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f5f7fa;
  line-height: 1.55;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f5f7fa;
}

a {
  color: #1769e0;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100% - 32px, 720px);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid #e5e9f0;
  background: #ffffff;
}

.header-row,
.nav-row {
  display: flex;
  align-items: center;
}

.header-row {
  min-height: 64px;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: #172033;
  font-size: 1.05rem;
  font-weight: 750;
}

.private-badge {
  border-radius: 999px;
  padding: 5px 10px;
  color: #0e55bd;
  background: #eaf2ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav {
  border-bottom: 1px solid #e5e9f0;
  background: #ffffff;
}

.nav-row {
  min-height: 52px;
  gap: 8px;
}

.nav-row a {
  display: grid;
  min-width: 72px;
  min-height: 44px;
  place-items: center;
  border-radius: 12px;
  font-weight: 650;
}

.nav-row a:hover,
.nav-row a:focus-visible {
  background: #edf3fd;
}

.page {
  padding-block: 24px 36px;
}

.page-heading {
  margin-bottom: 20px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 7vw, 2.15rem);
  line-height: 1.22;
}

h2 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.eyebrow {
  margin-bottom: 6px;
  color: #1769e0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.muted {
  color: #627087;
}

.safety-banner {
  margin-bottom: 20px;
  border: 1px solid #b9d2f8;
  border-radius: 14px;
  padding: 14px 16px;
  color: #104f9e;
  background: #edf5ff;
  font-weight: 650;
}

.login-card,
.form-card,
.action-card,
.danger-card,
.empty-card {
  border: 1px solid #e2e7ef;
  border-radius: 18px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgb(30 50 80 / 6%);
}

.login-card {
  max-width: 520px;
  margin: 24px auto;
}

.status-list,
.history-list {
  display: grid;
  gap: 12px;
}

.status-card {
  border: 1px solid #e2e7ef;
  border-radius: 16px;
  padding: 17px 18px;
  background: #ffffff;
}

.status-card h2 {
  color: #627087;
  font-size: 0.86rem;
  font-weight: 650;
}

.status-value {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 760;
}

.action-card,
.danger-card,
.form-card {
  margin-top: 18px;
}

.danger-card {
  border-color: #f2cccc;
}

.history-item {
  display: grid;
  gap: 8px;
  border: 1px solid #e2e7ef;
  border-radius: 16px;
  padding: 16px 18px;
  background: #ffffff;
}

.history-item p {
  margin-bottom: 0;
  color: #46546a;
}

.history-item time {
  color: #758197;
  font-size: 0.8rem;
}

.stack-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.compact-form {
  margin-top: 12px;
}

.stack-form label {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 700;
}

.stack-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d7dde7;
  border-radius: 12px;
  padding: 11px 13px;
  color: #172033;
  background: #f5f7fa;
}

.stack-form input:focus-visible {
  border-color: #1769e0;
  outline: 3px solid #d9e9ff;
}

.primary-button,
.secondary-button,
.danger-button,
.text-button {
  min-height: 48px;
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 750;
}

.primary-button {
  border: 1px solid #1769e0;
  color: #ffffff;
  background: #1769e0;
}

.secondary-button {
  border: 1px solid #1769e0;
  color: #145ab8;
  background: #eef5ff;
}

.danger-button {
  border: 1px solid #c43e3e;
  color: #ffffff;
  background: #b93636;
}

.text-button {
  border: 0;
  color: #52617a;
  background: transparent;
}

.form-error {
  border: 1px solid #f0c2c2;
  border-radius: 12px;
  padding: 12px 14px;
  color: #9d2929;
  background: #fff0f0;
  font-weight: 650;
}

.official-captcha {
  display: block;
  max-width: 100%;
  border: 2px solid currentColor;
}

.site-footer {
  display: flex;
  justify-content: center;
  border-top: 1px solid #e1e6ee;
  padding-block: 22px 36px;
}

@media (min-width: 640px) {
  .status-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-item {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}
