:root {
  color-scheme:light;
  --paper:#f4f0e8;
  --card:#fbf9f5;
  --ink:#24231f;
  --muted:#736e64;
  --line:#ded9cf;
  --orange:#ff5b28;
  --orange-dark:#bd3914;
  --green:#b9d4a5;
  --radius:24px;
  font-family:Inter,Arial,Helvetica,sans-serif;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:125px;
  background:var(--paper)
}
body {
  margin:0;
  color:var(--ink);
  background:radial-gradient(ellipse at 85% 17%,#ffe4d452,transparent 35%),var(--paper);
  font-size:15px;
  line-height:1.5
}
button,input,select {
  font:inherit
}
button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
a {
  color:inherit;
  text-decoration:none
}
button {
  color:inherit
}
button:disabled {
  cursor:not-allowed;
  opacity:.4
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid var(--orange);
  outline-offset:4px
}
input,select {
  min-width:0
}
button {
  touch-action:manipulation
}
[hidden] {
  display:none!important
}
::selection {
  background:#ffbe9d;
  color:var(--ink)
}
.sr-only,.skip-link:not(:focus) {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link:focus {
  position:fixed;
  top:6px;
  left:15px;
  z-index:30;
  background:white;
  padding:10px
}
.orange {
  color:var(--orange)
}
.site-header {
  position:sticky;
  top:22px;
  z-index:20;
  width:min(1180px,calc(100% - 48px));
  margin:22px auto 0
}
.floating-menu {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  height:76px;
  padding:0 26px;
  background:#fbf9f5e8;
  border:1px solid #fff;
  border-radius:20px;
  box-shadow:0 10px 40px #392c1c0a;
  backdrop-filter:blur(18px)
}
.brand {
  display:flex;
  align-items:center;
  gap:17px;
  flex-shrink:0
}
.brand-crop {
  display:block;
  position:relative;
  width:120px;
  aspect-ratio:428/134;
  overflow:hidden
}
.brand-crop img {
  position:absolute;
  width:119.63%;
  height:auto;
  max-width:none;
  left:-10.28%;
  top:-142.54%
}
.brand-divider {
  height:24px;
  width:1px;
  background:#ccc6ba
}
.brand-section {
  font-size:23px;
  letter-spacing:-1px;
  font-weight:600
}
.nav-tool {
  display:flex;
  align-items:center;
  gap:8px;
  background:#ece8df;
  border-radius:9px;
  padding:9px 15px;
  font-size:12px;
  font-weight:600
}
.status-dot,.tiny-dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:var(--orange);
  border-radius:50%
}
.home-link {
  font-size:12px;
  color:var(--muted)
}
.home-link span {
  font-size:17px;
  margin-left:8px
}
.home-link:hover {
  color:var(--orange-dark)
}
.page {
  max-width:1128px;
  margin:0 auto;
  padding:0 0 64px
}
.hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:38px 0 26px
}
.eyebrow {
  font-size:10px;
  letter-spacing:2px;
  text-transform:uppercase;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 21px
}
.swiss-cross {
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  line-height:1;
  background:var(--orange);
  color:white;
  border-radius:4px;
  font-size:21px;
  font-weight:600
}
h1 {
  font-size:clamp(28px,3.5vw,42px);
  line-height:1.15;
  font-weight:500;
  letter-spacing:-1.6px;
  margin:0
}
em {
  font-family:Georgia,'Times New Roman',serif;
  font-weight:400;
  color:var(--orange-dark)
}
.hero-description {
  color:var(--muted);
  line-height:1.65;
  font-size:14px;
  margin:10px 0 0
}
.hero-note {
  transform:rotate(-7deg);
  margin:20px 100px 0 30px;
  color:var(--muted);
  font-family:Georgia,serif;
  font-style:italic;
  font-size:18px;
  line-height:1.4
}
.hero-note svg {
  width:100px;
  height:70px;
  display:block;
  margin:10px auto -45px;
  fill:none;
  stroke:var(--orange);
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round
}
.workspace {
  display:grid;
  grid-template-columns:1.07fr 1fr;
  border-radius:var(--radius);
  box-shadow:0 12px 50px #41341c08;
  overflow:hidden;
  background:var(--card);
  border:1px solid #fff;
  scroll-margin-top:0
}
.input-panel {
  padding:28px 34px 22px
}
.panel-heading,.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.section-number {
  font-size:9px;
  color:var(--muted);
  letter-spacing:1.7px;
  font-weight:650
}
.scale-tag {
  font-size:10px;
  border:1px solid var(--line);
  border-radius:5px;
  padding:3px 7px;
  color:var(--muted)
}
.mode-tabs {
  display:flex;
  margin:0 0 24px;
  border-bottom:1px solid var(--line);
  gap:24px
}
.mode-tabs button {
  background:none;
  border:0;
  border-bottom:2px solid transparent;
  padding:0 0 13px;
  margin-bottom:-1px;
  color:var(--muted);
  font-size:14px;
  font-weight:600
}
.mode-tabs button[aria-selected=true] {
  border-bottom-color:var(--orange);
  color:var(--ink)
}
.mode-tabs button span {
  margin-left:6px;
  color:var(--orange-dark)
}
.field {
  margin-bottom:18px
}
.field label {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  font-size:12px;
  font-weight:600;
  margin-bottom:8px
}
.field label>span {
  font-weight:400;
  font-size:10px;
  color:var(--muted)
}
.number-field {
  display:flex;
  align-items:center;
  border:1px solid var(--line);
  background:#fffefa;
  border-radius:12px;
  transition:border-color .15s,box-shadow .15s;
  padding-right:17px
}
.number-field:focus-within {
  border-color:var(--orange);
  box-shadow:0 0 0 3px #ff5b2812
}
.number-field input {
  width:100%;
  background:none;
  border:0;
  padding:10px 17px;
  font-size:30px;
  letter-spacing:-1px;
  font-weight:500;
  outline:none;
  line-height:1.3
}
.number-field input:focus-visible {
  outline:none
}
.number-field>span {
  color:var(--muted);
  font-size:11px
}
.number-field:has([aria-invalid=true]) {
  border-color:#b63024;
  background:#fff5f1
}
.field-error {
  color:#a1261c;
  font-size:11px;
  margin:6px 0 0
}
.range-wrap {
  margin:-1px 0 22px
}
.range-wrap input {
  width:100%;
  height:5px;
  margin:7px 0 12px;
  accent-color:var(--orange);
  cursor:ew-resize
}
.range-labels {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:var(--muted)
}
fieldset {
  border:0;
  padding:0;
  margin:0
}
legend {
  font-size:11px;
  font-weight:600;
  margin-bottom:9px
}
.rounding-options {
  display:flex;
  gap:5px;
  background:#ece8df;
  border-radius:9px;
  padding:4px
}
.rounding-options label {
  flex:1;
  position:relative;
  cursor:pointer
}
.rounding-options input {
  position:absolute;
  opacity:0;
  width:1px;
  height:1px
}
.rounding-options span {
  display:block;
  text-align:center;
  padding:8px 4px;
  font-size:11px;
  color:var(--muted);
  border-radius:6px
}
.rounding-options input:checked+span {
  background:var(--card);
  color:var(--ink);
  box-shadow:0 2px 5px #00000008
}
.rounding-options input:focus-visible+span {
  outline:2px solid var(--orange);
  outline-offset:2px
}
.input-bottom {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  margin-top:20px;
  border-top:1px solid var(--line);
  padding-top:16px;
  font-size:9px;
  color:var(--muted)
}
.input-bottom>span {
  display:flex;
  gap:6px;
  align-items:center
}
.tiny-dot {
  width:4px;
  height:4px;
  background:#627854
}
.text-button {
  border:0;
  background:none;
  padding:4px 0;
  color:var(--muted);
  font-size:11px
}
.text-button:hover {
  color:var(--orange-dark)
}
.text-button span {
  margin-left:4px
}
.target-presets {
  display:flex;
  gap:7px;
  margin:-3px 0 23px
}
.target-presets button {
  border:1px solid var(--line);
  border-radius:7px;
  padding:6px 12px;
  font-size:11px;
  background:transparent
}
.target-presets button:hover,.target-presets button.is-selected {
  background:#ffe6d9;
  border-color:#ffb28c;
  color:var(--orange-dark)
}
select {
  width:100%;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fffefa;
  color:var(--ink)
}
.small-note {
  font-size:10px;
  line-height:1.65;
  color:var(--muted);
  margin:10px 0 0
}
.step-field {
  margin-bottom:8px
}
.result-panel {
  background:#242521;
  color:#f8f5ee;
  padding:31px 36px 17px;
  position:relative;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background-image:radial-gradient(ellipse at 100% 0%,#53412d45,transparent 65%)
}
.result-topline {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:9px;
  letter-spacing:1.7px;
  color:#bbb9ab
}
.live-badge {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:8px;
  letter-spacing:1px
}
.live-badge span {
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--green)
}
.result-main {
  position:relative;
  flex:1;
  padding-top:12px;
  min-height:190px
}
.result-value {
  font-size:clamp(88px,9vw,134px);
  font-weight:500;
  letter-spacing:-8px;
  line-height:1.17;
  color:var(--orange);
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere
}
.result-value.is-precise {
  font-size:clamp(60px,7vw,94px);
  letter-spacing:-5px
}
.result-unit {
  position:absolute;
  right:0;
  top:108px;
  font-size:12px;
  color:#aaa99c
}
.result-verdict {
  font-size:16px;
  letter-spacing:0;
  margin:6px 0 3px
}
.result-detail {
  font-size:11px;
  color:#b7b6aa;
  margin:0
}
.grade-track {
  margin:20px 0
}
.grade-track__bar {
  height:5px;
  border-radius:6px;
  background:linear-gradient(to right,#55564c 0%,#55564c 60%,#bbc9a7 60%,#bbc9a7 100%);
  position:relative
}
.pass-marker {
  position:absolute;
  left:60%;
  top:-4px;
  width:1px;
  height:13px;
  background:#ecebdf
}
.grade-marker {
  position:absolute;
  left:75%;
  top:50%;
  height:15px;
  width:15px;
  border:3px solid var(--orange);
  background:#242521;
  border-radius:50%;
  transform:translate(-50%,-50%);
  transition:left .2s
}
.grade-track__labels {
  display:flex;
  justify-content:space-between;
  position:relative;
  margin-top:11px;
  color:#b7b6aa;
  font-size:9px
}
.pass-label {
  position:absolute;
  left:60%;
  transform:translateX(-50%)
}
.result-insight {
  display:flex;
  align-items:flex-start;
  gap:11px;
  border-top:1px solid #ffffff21;
  padding-top:17px;
  margin-top:2px;
  color:#d8dacd;
  font-size:11px;
  min-height:52px
}
.result-insight>span {
  color:var(--green);
  font-size:19px;
  line-height:1.1
}
.result-insight p {
  margin:0;
  line-height:1.6
}
.result-actions {
  display:flex;
  gap:10px;
  margin-top:13px
}
.result-actions button {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  border-radius:8px;
  border:1px solid #ffffff2a;
  background:transparent;
  color:#dedfd4;
  padding:11px 13px;
  font-size:11px
}
.result-actions button:first-child {
  flex:1;
  background:#f4f0e8;
  color:var(--ink);
  border-color:#f4f0e8
}
.result-actions button:hover {
  border-color:var(--orange)
}
.action-status {
  font-size:10px;
  line-height:1.4;
  min-height:14px;
  margin:6px 0 0;
  color:#d3d3c5
}
#share-fallback {
  font-size:11px;
  margin-top:10px
}
#share-url {
  width:100%;
  padding:8px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:5px;
  font-size:12px
}
.history-section {
  margin-top:26px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:21px 24px
}
.history-section h2 {
  font-size:16px;
  margin:0
}
.history-section .small-note {
  margin-top:4px
}
.history-list {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px
}
.history-item {
  display:flex;
  gap:14px;
  align-items:center;
  border:1px solid var(--line);
  background:var(--card);
  border-radius:9px;
  padding:9px 12px;
  text-align:left
}
.history-item strong {
  font-size:23px;
  color:var(--orange-dark);
  font-weight:500
}
.history-item span {
  font-size:10px;
  line-height:1.5;
  color:var(--muted)
}
.history-item:hover {
  border-color:var(--orange)
}
.details-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  margin-top:32px
}
.explanation {
  padding:6px 0
}
.details-grid h2 {
  font-size:23px;
  letter-spacing:-.5px;
  font-weight:500;
  line-height:1.15;
  margin:0 0 12px
}
.explanation>p {
  font-size:12px;
  color:var(--muted);
  max-width:410px;
  line-height:1.8
}
.formula {
  display:flex;
  align-items:center;
  gap:16px;
  margin:25px 0 16px;
  background:#eae5da6e;
  border:1px solid var(--line);
  border-radius:12px;
  padding:23px 20px;
  font-size:24px;
  letter-spacing:-.7px
}
.formula-label {
  font-size:9px;
  letter-spacing:1.4px;
  color:var(--muted);
  padding-right:8px
}
.fraction {
  display:flex;
  flex-direction:column;
  text-align:center;
  font-size:12px;
  letter-spacing:0;
  gap:4px
}
.fraction>span:first-child {
  border-bottom:1px solid var(--ink);
  padding-bottom:4px
}
.formula-example {
  font-family:ui-monospace,Consolas,monospace!important;
  font-size:11px!important
}
.formula-example strong {
  color:var(--orange-dark);
  font-weight:600
}
details {
  margin-top:25px;
  border-top:1px solid var(--line);
  padding-top:14px
}
summary {
  font-size:11px;
  cursor:pointer;
  font-weight:600
}
details p {
  font-size:11px;
  line-height:1.8;
  color:var(--muted)
}
.thresholds {
  background:#fbf9f570;
  border:1px solid var(--line);
  border-radius:18px;
  padding:25px 28px
}
.thresholds h2 {
  font-size:23px;
  margin:0 0 10px
}
.table-description {
  font-size:11px;
  color:var(--muted);
  margin:0 0 16px
}
.table-wrap {
  overflow-x:auto
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:11px;
  font-variant-numeric:tabular-nums
}
th {
  text-align:right;
  color:var(--muted);
  font-size:9px;
  font-weight:500;
  padding:0 0 10px
}
th:first-child,td:first-child {
  text-align:left
}
td {
  padding:7px 0;
  text-align:right;
  border-top:1px solid #ded9cf91
}
td:first-child {
  font-weight:600
}
.pass-row td {
  color:#45633a;
  background:#e7ecdf66
}
.pass-row td:first-child {
  border-left:3px solid #7b956b;
  padding-left:9px
}
.current-row td {
  color:var(--orange-dark);
  font-weight:600
}
td small {
  font-size:8px;
  font-weight:400;
  margin-left:7px;
  text-transform:uppercase;
  letter-spacing:1px
}
.closing-note {
  display:flex;
  align-items:center;
  gap:22px;
  margin-top:48px;
  border-top:1px solid var(--line);
  padding-top:35px
}
.closing-symbol {
  color:var(--orange-dark);
  font-size:38px;
  font-weight:400
}
.closing-note h2 {
  font-size:17px;
  font-weight:500;
  letter-spacing:-.4px;
  margin:0 0 4px
}
.closing-note p {
  font-size:12px;
  color:var(--muted);
  margin:0
}
.closing-label {
  margin-left:auto;
  font-size:9px;
  letter-spacing:1.5px;
  color:var(--muted)
}
.site-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  max-width:1180px;
  margin:0 auto;
  padding:23px 26px;
  border-top:1px solid var(--line);
  font-size:10px;
  color:var(--muted)
}
.site-footer a:hover {
  color:var(--orange-dark)
}
.no-script {
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:var(--orange);
  color:var(--ink);
  padding:20px;
  z-index:25
}
@media(min-width:1600px) {
  .hero {
    padding-top:38px
  }
}
@media(max-width:1230px) {
  .page {
    padding-right:32px;
    padding-left:32px
  }
}
@media(max-width:900px) {
  .hero-note {
    margin-right:40px
  }
  .input-panel {
    padding:25px
  }
  .result-panel {
    padding:28px 26px 16px
  }
  .details-grid {
    gap:30px
  }
  .result-unit {
    top:95px
  }
  .result-value {
    font-size:112px
  }
  .result-actions {
    gap:7px
  }
  .result-actions button {
    padding:10px;
    font-size:10px;
    gap:8px
  }
  .field label>span {
    font-size:9px
  }
  .mode-tabs {
    gap:18px
  }
  .mode-tabs button {
    font-size:12px
  }
  .input-bottom {
    font-size:8px
  }
  .input-bottom .text-button {
    font-size:10px
  }
  .thresholds {
    padding:23px
  }
  .formula {
    gap:12px;
    padding:23px 15px
  }
}
@media(max-width:700px) {
  html {
    scroll-padding-top:110px
  }
  .site-header {
    top:12px;
    margin-top:12px;
    width:calc(100% - 24px)
  }
  .floating-menu {
    height:64px;
    padding:0 17px;
    gap:14px;
    border-radius:15px
  }
  .brand {
    gap:10px
  }
  .brand-crop {
    width:98px
  }
  .brand-section {
    font-size:20px
  }
  .brand-divider {
    height:20px
  }
  .home-link {
    display:none
  }
  .nav-tool {
    font-size:10px;
    padding:8px 10px;
    gap:6px
  }
  .page {
    padding-left:20px;
    padding-right:20px;
    padding-bottom:38px
  }
  .hero {
    padding:28px 0 22px
  }
  .hero-note {
    display:none
  }
  h1 {
    font-size:clamp(27px,6vw,36px);
    letter-spacing:-1px
  }
  .eyebrow {
    font-size:9px;
    letter-spacing:1.6px;
    margin-bottom:18px
  }
  .hero-description {
    font-size:12px;
    max-width:440px;
    margin-top:10px
  }
  .workspace {
    grid-template-columns:1fr;
    border-radius:19px
  }
  .input-panel {
    padding:24px
  }
  .mode-tabs {
    gap:25px;
    margin-top:0
  }
  .mode-tabs button {
    font-size:13px
  }
  .field label {
    font-size:12px
  }
  .field label>span {
    font-size:10px
  }
  .number-field input {
    font-size:29px;
    padding:12px 16px
  }
  .rounding-options span {
    padding:10px 4px
  }
  .input-bottom {
    font-size:9px
  }
  .result-panel {
    padding:25px 25px 15px
  }
  .result-main {
    min-height:180px;
    padding-top:7px
  }
  .result-value {
    font-size:126px
  }
  .result-value.is-precise {
    font-size:85px
  }
  .result-unit {
    top:105px
  }
  .result-actions button {
    font-size:11px;
    padding:12px
  }
  .details-grid {
    grid-template-columns:1fr;
    gap:30px;
    margin-top:35px
  }
  .details-grid h2 {
    font-size:23px
  }
  .explanation>p {
    max-width:none;
    font-size:13px
  }
  .formula {
    max-width:450px;
    justify-content:center
  }
  .thresholds {
    padding:24px
  }
  .thresholds h2 {
    font-size:24px
  }
  .section-number {
    font-size:9px
  }
  td {
    padding:9px 0
  }
  .closing-note {
    margin-top:30px;
    gap:16px;
    padding-top:24px
  }
  .closing-label {
    display:none
  }
  .closing-note h2 {
    font-size:15px
  }
  .closing-note p {
    font-size:11px
  }
  .site-footer {
    font-size:9px;
    padding:20px;
    flex-wrap:wrap;
    gap:12px
  }
  .site-footer>span {
    order:3;
    width:100%
  }
  .small-note {
    font-size:11px
  }
  .table-description {
    font-size:12px
  }
}
@media(max-width:370px) {
  .page {
    padding-left:12px;
    padding-right:12px
  }
  .input-panel,.result-panel {
    padding-left:18px;
    padding-right:18px
  }
  .floating-menu {
    padding:0 12px
  }
  .brand-crop {
    width:84px
  }
  .nav-tool {
    font-size:9px
  }
  .mode-tabs {
    gap:20px
  }
  .mode-tabs button {
    font-size:12px
  }
  .field label>span {
    font-size:9px
  }
  h1 {
    font-size:27px;
    letter-spacing:-1px
  }
  .input-bottom {
    font-size:8px
  }
  .result-value.is-precise {
    font-size:72px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    transition:none!important;
    animation:none!important
  }
}
.result-unit {
  position:static;
  display:block;
  text-align:right;
  margin-top:-12px;
  margin-bottom:12px
}
.result-value.is-long {
  font-size:clamp(38px,5vw,65px);
  letter-spacing:-3px;
  line-height:2
}
@media(max-width:700px) {
  .result-value.is-long {
    font-size:48px;
    letter-spacing:-2px
  }
}
@media(max-width:370px) {
  .result-value.is-long {
    font-size:40px
  }
}
@media print {
  body {
    background:white
  }
  .site-header,.hero-note,.result-actions,.action-status,.input-bottom,.history-section,.site-footer,.closing-note,.target-presets,#export-table {
    display:none
  }
  .page {
    padding:0
  }
  .hero {
    padding:15px 0 25px
  }
  .hero h1 {
    font-size:40px
  }
  .workspace,.details-grid {
    break-inside:avoid
  }
  .result-panel {
    background:#eee;
    color:#222
  }
  .result-value {
    color:#bd3914
  }
  .result-detail,.result-unit,.result-topline,.result-insight {
    color:#444
  }
  .details-grid {
    gap:30px;
    margin-top:25px
  }
  .grade-track {
    display:none
  }
  .result-main {
    min-height:190px
  }
}
