:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #25364b;
  background: #f6f7fa;
  --ink: #25364b;
  --muted: #627184;
  --line: #dce2eb;
  --blue: #294b72;
  --light: #eaf0f9;
  --accent: #d9dff9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #956b20;
  outline-offset: 3px;
}
.shell {
  max-width: 1240px;
  margin: auto;
  padding-left: 36px;
  padding-right: 36px;
}
.header {
  height: 90px;
  display: flex;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 29px;
  letter-spacing: -1.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  color: #6b70a6;
}
.header-related {
  font-size: 11px;
  margin-left: auto;
}
.languages {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  padding: 4px;
}
.languages a {
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  padding: 10px;
  border-radius: 25px;
}
.languages a[aria-current] {
  background: var(--blue);
  color: white;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  align-items: center;
  padding-top: 45px;
  padding-bottom: 38px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 700;
  line-height: 1.8;
}
h1 {
  font-size: 49px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -2px;
  max-width: 810px;
  margin: 18px 0;
}
h2 {
  font-size: 25px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin-top: 13px;
}
h3 {
  font-size: 15px;
  line-height: 1.6;
}
.lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 720px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 20px;
}
.motion-art {
  height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.motion-ring {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 22px solid #dce4f4;
  transform: rotate(-25deg);
  border-right-color: #7e99c2;
  border-bottom-color: #b5c5e1;
  box-shadow: 0 0 0 10px #edf1f9;
}
.motion-num {
  position: relative;
  font-size: 35px;
  letter-spacing: -1px;
  transform: rotate(-8deg);
  font-weight: 600;
}
.motion-num span {
  display: block;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  margin-top: 7px;
}
.motion-star {
  position: absolute;
  top: 0;
  right: 5px;
  font-size: 35px;
  color: #666daa;
}
.tabs {
  display: flex;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  gap: 3px;
}
.tabs button {
  flex: 1;
  white-space: nowrap;
  padding: 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 11px;
  line-height: 1.7;
}
.tabs button[aria-selected="true"] {
  background: var(--blue);
  color: #fff;
}
.layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}
.input-card,
.view {
  padding: 27px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  min-width: 0;
}
.input-card {
  position: sticky;
  top: 22px;
}
.input-card .eyebrow {
  font-size: 8px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
  margin: 17px 0;
}
input:not([type="checkbox"]),
select {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #cdd6e3;
  border-radius: 7px;
  background: #fbfcfe;
  padding: 12px 10px;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
}
input[type="checkbox"] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
select[multiple] {
  font-size: 11px;
  padding: 7px;
}
.weight-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 15px;
}
.primary,
.secondary {
  padding: 12px 16px;
  border-radius: 7px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  min-height: 42px;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.primary:hover {
  background: #1c3d63;
}
.secondary {
  background: var(--light);
}
.wide {
  display: block;
  width: 100%;
  margin-top: 11px;
}
.text-button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 10px;
  line-height: 1.7;
  padding: 12px;
  min-height: 40px;
}
.hint {
  font-size: 10px;
  line-height: 1.85;
  color: var(--muted);
}
p {
  font-size: 12px;
  line-height: 1.9;
}
p.error,
.status {
  color: #98392c;
  font-size: 11px;
  line-height: 1.8;
}
.error:empty,
.status:empty {
  display: none;
}
.notice {
  background: #fff5df;
  border: 1px solid #ecdfbf;
  border-radius: 8px;
  padding: 14px;
  color: #69532b;
  font-size: 11px;
  line-height: 1.9;
}
.caution {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 0;
}
.reference {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 18px;
}
.reference summary {
  font-size: 10px;
  line-height: 1.8;
}
.reference a {
  display: block;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 12px;
}
.reference p {
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 23px 0;
}
.stats > div {
  padding: 18px;
  background: #edf2f9;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  min-width: 0;
}
.stats > div:first-child {
  background: #e0e6fa;
  border-color: #cfd9ef;
}
.stats dt {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}
.stats dd {
  font-size: 25px;
  letter-spacing: -0.7px;
  line-height: 1.4;
  margin: 7px 0 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.segment,
.history-card,
.combination {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin: 16px 0;
}
.segment-fields {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
}
.segment-fields label {
  font-size: 10px;
  margin: 7px 0;
}
.segment-fields select {
  font-size: 11px;
}
.mini-actions,
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.mini-actions button {
  font-size: 9px;
  padding: 8px 10px;
  min-height: 36px;
}
.mini-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}
.segment .reference {
  margin-top: 10px;
}
.empty {
  color: var(--muted);
  padding: 25px 12px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: 12px;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 18px 0;
  max-height: 570px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
  line-height: 1.8;
}
th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 10px;
  background: #eaf0f8;
  position: sticky;
  top: 0;
  white-space: nowrap;
}
td:first-child {
  min-width: 180px;
}
td:not(:first-child) {
  white-space: nowrap;
}
.compare-selects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.compare-selects label {
  margin: 8px 0;
}
.comparison-bars {
  padding: 12px 0;
}
.comparison-bars label {
  font-size: 11px;
  margin: 20px 0;
}
.comparison-bars meter {
  display: block;
  width: 100%;
  height: 19px;
  margin: 6px 0;
  accent-color: #5d7cab;
}
.comparison-bars span {
  font-size: 11px;
  color: var(--muted);
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.history-card .stats dd {
  font-size: 19px;
}
.history-card > button {
  margin: 5px;
}
.combination ul {
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.9;
}
.related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 35px;
  padding-bottom: 35px;
}
.related > a,
.related > div {
  background: #eaf0f6;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  text-decoration: none;
}
.related span {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
}
.related h2 {
  font-size: 22px;
  margin-bottom: 0;
}
.related > p {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 11px;
}
.education {
  padding-top: 20px;
  padding-bottom: 40px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 25px;
}
.article-grid article {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.article-grid h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}
.article-grid p {
  font-size: 11px;
  color: var(--muted);
}
.faq {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 50px;
  padding-top: 25px;
  padding-bottom: 45px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.faq summary {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
}
.faq p {
  font-size: 11px;
  color: var(--muted);
}
.sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  padding-bottom: 48px;
}
.sources > div {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.sources h2 {
  font-size: 22px;
}
.sources p,
.sources a {
  font-size: 11px;
  color: var(--muted);
}
.sources .formula {
  font-weight: 600;
  color: var(--ink);
  line-height: 2;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  padding-bottom: 30px;
  border-top: 1px solid var(--line);
}
.footer nav {
  display: flex;
  gap: 22px;
  font-size: 10px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  background: #fff;
  padding: 15px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .shell {
    padding-left: 25px;
    padding-right: 25px;
  }
  .layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
  }
  .input-card,
  .view {
    padding: 22px;
  }
  .stats dd {
    font-size: 21px;
  }
  .stats > div {
    padding: 14px;
  }
  .hero {
    grid-template-columns: 1fr 175px;
    gap: 25px;
  }
  .motion-art {
    transform: scale(0.85);
    transform-origin: right;
  }
  .tabs button {
    padding: 12px 10px;
    font-size: 10px;
  }
  .segment-fields {
    grid-template-columns: 1fr;
  }
  .article-grid {
    gap: 22px;
  }
}
@media (max-width: 720px) {
  .shell {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header {
    height: 77px;
    gap: 12px;
  }
  .brand {
    font-size: 26px;
  }
  .header-related {
    display: none;
  }
  .languages {
    margin-left: auto;
  }
  .hero {
    display: block;
    padding-top: 30px;
    padding-bottom: 25px;
  }
  .motion-art {
    display: none;
  }
  h1 {
    font-size: 36px;
    letter-spacing: -1.4px;
  }
  .lead {
    font-size: 14px;
  }
  .badges {
    font-size: 9px;
    gap: 10px;
  }
  .tabs button {
    flex: 0 0 auto;
    padding: 12px 14px;
    font-size: 11px;
  }
  .layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .input-card,
  .panels {
    width: 100%;
  }
  .input-card {
    position: static;
    padding: 24px 21px;
  }
  .view {
    padding: 23px 18px;
  }
  input:not([type="checkbox"]),
  select {
    font-size: 16px;
  }
  .segment-fields select {
    font-size: 13px;
  }
  .weight-row {
    grid-template-columns: 1fr 100px;
  }
  .stats dd {
    font-size: 24px;
  }
  .segment-fields {
    grid-template-columns: 1fr;
  }
  .actions .primary {
    width: 100%;
  }
  .article-grid {
    grid-template-columns: 1fr 1fr;
    gap: 23px;
  }
  .article-grid h2 {
    font-size: 16px;
  }
  .related {
    padding-top: 27px;
    gap: 12px;
  }
  .related > a,
  .related > div {
    padding: 18px;
  }
  .related h2 {
    font-size: 19px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sources {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer {
    flex-direction: column;
  }
  .footer nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .table-wrap {
    max-height: 450px;
  }
}
@media (max-width: 380px) {
  .shell {
    padding-left: 15px;
    padding-right: 15px;
  }
  h1 {
    font-size: 32px;
  }
  .article-grid,
  .related,
  .two-fields {
    grid-template-columns: 1fr;
  }
  .stats dd {
    font-size: 21px;
  }
  .stats > div {
    padding: 13px;
  }
  .related > p {
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  .header,
  .hero,
  .tabs,
  .input-card,
  .related,
  .education,
  .faq,
  .sources,
  .footer,
  button,
  #exercise-status {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .view {
    border: 0;
    padding: 0;
  }
  .view:not(#view-session) {
    display: none !important;
  }
  #view-session {
    display: block !important;
  }
  .segment,
  .stats,
  .history-card {
    break-inside: avoid;
  }
  .segment input,
  .segment select {
    border: 0;
    padding: 0;
  }
  body {
    background: #fff;
  }
  .reference {
    display: none;
  }
  .shell {
    padding: 0 15px;
    max-width: none;
  }
}
