:root {
  --navy: #0b2540;
  --navy-2: #12365c;
  --teal: #0f766e;
  --teal-dark: #0b5d57;
  --bg: #f1f5f9;
  --card: #ffffff;
  --ink: #14212f;
  --muted: #526273;
  --line: #d3dce5;
  --good: #166534;
  --good-bg: #e3f4e8;
  --fair: #92400e;
  --fair-bg: #fdf0d5;
  --poor: #b91c1c;
  --poor-bg: #fde7e7;
  --info-bg: #e4eef8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 37, 64, 0.08), 0 2px 8px rgba(11, 37, 64, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 20px;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}

.btn:active {
  background: var(--teal-dark);
}

.btn.secondary {
  background: #fff;
  color: var(--teal-dark);
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--navy-2);
  text-decoration: underline;
  min-height: 44px;
}

.btn.danger {
  background: var(--poor);
  border-color: var(--poor);
}

.btn.small {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 15px;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.block {
  display: flex;
  width: 100%;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.btn:focus-visible,
.seg input:focus-visible + span {
  outline: 3px solid #7cc4f5;
  outline-offset: 1px;
}

label.field {
  display: block;
  margin-top: 16px;
  font-weight: 600;
}

label.field .hint,
.hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 15px;
  margin-top: 2px;
}

label.field > input,
label.field > select,
label.field > textarea {
  margin-top: 6px;
  font-weight: 400;
}

.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
  white-space: nowrap;
}

.chip.good {
  background: var(--good-bg);
  color: var(--good);
}

.chip.fair {
  background: var(--fair-bg);
  color: var(--fair);
}

.chip.poor {
  background: var(--poor-bg);
  color: var(--poor);
}

.chip.info {
  background: var(--info-bg);
  color: var(--navy-2);
}

.chip.muted {
  background: #e8edf2;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
