:root {
  --us-ink: #121923;
  --us-muted: #64727e;
  --us-line: #dbe5eb;
  --us-teal: #008d91;
  --us-teal-dark: #00747a;
  --us-blue: #eaf5ff;
  --us-amber: #fff4d1;
  --us-green: #11965f;
  --us-bg: #fffdfa;
  --us-shadow: 0 18px 50px rgba(18, 31, 43, 0.08);
}

.utility-page {
  margin: 0;
  background: linear-gradient(180deg, #fffdfa 0%, #f9fcfc 62%, #fffdfa 100%);
  color: var(--us-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.utility-page * { box-sizing: border-box; }

.us-header {
  min-height: 70px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--us-line);
  background: rgba(255, 253, 250, 0.96);
}

.us-brand {
  color: inherit;
  text-decoration: none;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.us-brand span { color: var(--us-teal); }

.us-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 850;
}

.us-header a { color: inherit; text-decoration: none; }

.us-shell {
  width: min(1560px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.us-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.72fr) minmax(690px, 1.28fr);
  gap: 38px;
  align-items: start;
}

.us-title h1 {
  margin: 0 0 18px;
  max-width: 720px;
  font-size: clamp(42px, 4.3vw, 64px);
  line-height: 1.14;
  font-weight: 950;
}

.us-title h1 strong {
  color: var(--us-teal);
  font-style: normal;
}

.us-lead {
  margin: 0 0 24px;
  max-width: 700px;
  color: #27323c;
  font-size: 21px;
  line-height: 1.72;
  font-weight: 760;
}

.us-input,
.us-result,
.us-guide-card,
.us-status-card {
  border: 1px solid var(--us-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 31, 43, 0.05);
}

.us-input {
  padding: 22px;
}

.us-panel-head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.us-panel-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  line-height: 1.35;
}

.us-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: #e8f7f8;
  color: var(--us-teal-dark);
  font-size: 20px;
  font-weight: 950;
}

.us-count {
  padding: 6px 10px;
  border: 1px solid var(--us-line);
  border-radius: 7px;
  color: var(--us-muted);
  font-size: 13px;
  font-weight: 850;
}

.us-field {
  margin: 0 0 16px;
}

.us-field label {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #17212b;
  font-size: 16px;
  font-weight: 900;
}

.us-num {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--us-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.us-required {
  color: #ed466f;
  font-size: 12px;
  font-weight: 900;
}

.us-field input,
.us-field textarea,
.us-field select {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid #cfdbe2;
  border-radius: 8px;
  background: #fff;
  color: var(--us-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 720;
}

.us-field textarea {
  min-height: 100px;
  line-height: 1.65;
  resize: vertical;
}

.us-meta {
  margin-top: -4px;
  color: var(--us-muted);
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}

.us-primary,
.us-copy {
  border: 1px solid var(--us-teal);
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.us-primary {
  width: 100%;
  min-height: 56px;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--us-teal) 0%, #007f86 100%);
  color: #fff;
  font-size: 21px;
  font-weight: 950;
}

.us-private {
  margin: 14px 0 0;
  color: var(--us-muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
}

.us-result {
  padding: 20px;
}

.us-result-top {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.us-result-top h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
}

.us-copy {
  min-height: 40px;
  padding: 0 16px;
  background: #fff;
  color: var(--us-teal-dark);
  font-size: 15px;
  font-weight: 900;
}

.us-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid var(--us-line);
  border-radius: 8px;
  overflow: hidden;
}

.us-tab {
  min-height: 46px;
  border: 0;
  border-right: 1px solid var(--us-line);
  background: #fff;
  color: #26323e;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.us-tab:last-child { border-right: 0; }
.us-tab.is-active { background: var(--us-teal); color: #fff; }

.us-output {
  min-height: 330px;
  padding: 24px;
  border: 1px solid #b9d9f6;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4fbff 0%, #eaf5ff 100%);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 720;
}

.us-status-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.us-status-card {
  min-height: 78px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.us-status-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--us-green);
  color: #fff;
  font-weight: 950;
}

.us-status-card.warn .us-status-mark {
  background: #f49b13;
}

.us-status-card b {
  display: block;
  font-size: 15px;
}

.us-status-card span:last-child {
  color: var(--us-muted);
  font-size: 13px;
  font-weight: 800;
}

.us-guide {
  margin-top: 18px;
}

.us-guide h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

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

.us-guide-card {
  padding: 18px;
  display: flex;
  gap: 14px;
}

.us-guide-card .us-icon {
  width: 46px;
  height: 46px;
  font-size: 24px;
}

.us-guide-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.us-guide-card p {
  margin: 0;
  color: var(--us-muted);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 740;
}

.us-footer {
  padding: 28px 42px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--us-line);
  color: #7b8791;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .us-hero { grid-template-columns: 1fr; }
  .us-output { min-height: 230px; }
}

@media (max-width: 760px) {
  .us-header {
    min-height: auto;
    padding: 16px 18px;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .us-brand { font-size: 23px; }
  .us-header nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 13px;
  }
  .us-shell {
    width: min(100% - 24px, 720px);
    padding-top: 24px;
  }
  .us-title h1 { font-size: clamp(36px, 11vw, 50px); }
  .us-lead { font-size: 18px; }
  .us-input,
  .us-result { padding: 14px; }
  .us-tabs,
  .us-status-grid,
  .us-guide-grid { grid-template-columns: 1fr; }
  .us-tab { border-right: 0; border-bottom: 1px solid var(--us-line); }
  .us-tab:last-child { border-bottom: 0; }
  .us-output {
    min-height: 220px;
    padding: 18px;
    font-size: 16px;
  }
  .us-footer {
    padding: 24px 18px;
    flex-direction: column;
    gap: 8px;
  }
}
