:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  margin-bottom: 28px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #0071e3;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
}

.subtitle {
  margin: 24px 0 0;
  max-width: 680px;
  color: #6e6e73;
  font-size: 23px;
  line-height: 1.38;
  font-weight: 600;
}

.hero-panel {
  flex: 0 0 300px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.08);
  padding: 22px;
  backdrop-filter: blur(20px);
}

.hero-panel p {
  margin: 14px 0 0;
  color: #6e6e73;
  line-height: 1.55;
  font-size: 14px;
  font-weight: 650;
}

.status {
  border: 1px solid #d2d2d7;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 800;
}

.disclaimer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
  border: 1px solid #ffd60a;
  border-radius: 22px;
  background: #fff8d6;
  color: #5c4300;
  padding: 18px 20px;
}

.disclaimer strong {
  white-space: nowrap;
  font-weight: 900;
}

.disclaimer span {
  line-height: 1.65;
  font-size: 14px;
  font-weight: 650;
}

.settings {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-kicker {
  margin: 0 0 5px;
  color: #86868b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.section-title p {
  margin: 2px 0 0;
  color: #6e6e73;
  font-weight: 650;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-actions p {
  text-align: right;
}

.text-button {
  min-height: 36px;
  border: 1px solid #d2d2d7;
  background: #fff;
  color: #0071e3;
  padding: 0 14px;
}

.settings-body {
  overflow: hidden;
  transition: max-height 220ms ease, opacity 180ms ease;
}

.settings.collapsed {
  padding-bottom: 24px;
}

.settings.collapsed .section-title {
  margin-bottom: 0;
}

.settings.collapsed .settings-body {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.settings:not(.collapsed) .settings-body {
  max-height: 440px;
  opacity: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #424245;
  font-size: 14px;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d2d2d7;
  border-radius: 14px;
  background: #fbfbfd;
  color: #1d1d1f;
  font: inherit;
  font-weight: 650;
  padding: 0 14px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: #0071e3;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  padding: 0 18px;
  cursor: pointer;
}

button.secondary {
  background: #f5f5f7;
  color: #1d1d1f;
}

.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.tool-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  background: #ffffff;
  padding: 28px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.04);
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 113, 227, 0.32);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.09);
}

.tool-card span {
  color: #0071e3;
  font-size: 13px;
  font-weight: 900;
}

.tool-card h2 {
  margin: auto 0 14px;
  font-size: 28px;
  line-height: 1.18;
}

.tool-card p {
  margin: 0;
  color: #6e6e73;
  line-height: 1.65;
  font-weight: 600;
}

.tool-card em {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  color: #0071e3;
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, 680px);
    padding: 28px 0;
  }

  .hero,
  .section-title,
  .settings-actions {
    display: grid;
  }

  .settings-actions p {
    text-align: left;
  }

  .hero {
    min-height: auto;
    align-items: start;
  }

  .hero-panel,
  .status {
    width: 100%;
    flex-basis: auto;
  }

  .form-grid,
  .tools {
    grid-template-columns: 1fr;
  }

  .actions {
    display: grid;
  }

  h1 {
    font-size: 44px;
    line-height: 1.04;
  }

  .subtitle {
    font-size: 19px;
  }

  .disclaimer {
    grid-template-columns: 1fr;
  }
}
