@media screen {
.calculator-home {
  --paper:#edefff; --green:#101947; --muted:#47517a; --line:#c0c7f2;
  background:
    radial-gradient(ellipse 730px 235px at 19% -95px,#eef0ff 97%,transparent 98%),
    radial-gradient(ellipse 780px 290px at 92% -36px,#b9c3fa 76%,transparent 98%),
    linear-gradient(160deg,#e3e7ff var(--wave-stop,18rem),#eef0ff 34rem);
}
.calculator-home .wrap {width:min(100%, 35rem);margin-inline:auto;padding-inline:1.35rem}
.calculator-home header.nav {height:4.8rem;border:0;gap:1rem;position:relative;z-index:2}
.calculator-home .brand {font-size:1.95rem;line-height:1;font-weight:800;letter-spacing:-.06em}
.home-menu {position:relative}
.home-menu summary {display:grid;place-items:center;width:44px;height:44px;color:#252e88;list-style:none;border-radius:.5rem}
.home-menu summary::-webkit-details-marker {display:none}
.home-menu summary span {display:block;width:1.6rem;height:.86rem;border-block:.14rem solid currentColor;position:relative}
.home-menu summary span::after {content:"";position:absolute;inset-inline:0;top:50%;border-top:.14rem solid;transform:translateY(-50%)}
.home-menu-panel {position:absolute;inset-inline-end:0;top:100%;width:min(15rem,84vw);border:1px solid var(--line);padding:.65rem;background:#fbfbff;border-radius:.8rem;box-shadow:0 10px 24px #1a216523}
.home-menu-panel nav {display:grid;gap:.2rem;font-size:.925rem}
.home-menu-panel nav a {display:flex!important;align-items:center;min-height:44px;padding:.25rem .45rem}
.reference-c .home-actions{display:flex;align-items:center;gap:clamp(.2rem,1.6cqw,.5rem);min-width:0}
.reference-c #home-language{min-width:0}
.reference-c #home-language #language-control{margin:0;flex-wrap:nowrap;width:auto}
.reference-c #home-language #language-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.reference-c #home-language #site-language{display:block;width:min(34vw,8.8rem);background:#f8f9ff;color:#111947;border:1px solid #aeb9ed;border-radius:.55rem;font-size:.82rem;min-height:44px;padding-inline:.45rem}
.calculator-home .calculator {border:0;border-radius:0;background:transparent;box-shadow:none;padding-block:.9rem 1.2rem}
.calculator-home h1 {font-size:clamp(2.18rem,8vw,3.65rem);letter-spacing:-.055em;line-height:.99;max-inline-size:10ch;margin:0 0 1.4rem;text-wrap:balance}
.calculator-home .rows {display:grid;grid-template-columns:1fr;gap:.7rem;margin-top:0}
.calculator-home .option {padding:0;border:0;background:none}
.calculator-home .option-head {margin-bottom:.37rem}
.calculator-home .option-head strong {font-size:1.03rem}
.focused-fields {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.62rem}
.quantity-pair,.price-field {display:flex;min-width:0;min-height:3.2rem;align-items:center;border:1px solid #aeb8ed;border-radius:.64rem;background:#f9f9ff;box-shadow:0 2px 4px #17215027;color:#10142c}
.quantity-pair label {min-width:0;display:flex}
.quantity-pair label:first-child {flex:1}
.quantity-pair label:last-child {flex:none}
.focused-fields input,.focused-fields select {display:block;min-width:0;border:0;background:transparent;color:inherit;font-size:clamp(1rem,4.55vw,1.45rem);min-height:3.1rem}
.focused-fields input {width:100%;padding:.55rem .35rem .55rem .7rem}
.focused-fields select {padding:.35rem .22rem;max-width:4rem}
.price-field {gap:.12rem;padding-inline-start:.56rem;font-size:clamp(.98rem,4.4vw,1.45rem)}
.price-field input {padding-inline-start:.18rem}
.currency-sign {white-space:nowrap}
.focused-fields [aria-invalid=true] {background:#fff5f2}
.row-extra {margin:.28rem 0}
.calculator-extra > summary,.row-extra > summary,.result-more > summary {color:#374583;font-size:.81rem;min-height:32px;padding-block:.3rem;cursor:pointer}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.calculator-home #comparison .primary {display:grid;place-items:center;width:100%;min-width:0;min-height:3.2rem;margin-top:.7rem;padding:.55rem .8rem;border:1px solid #454dc7;border-radius:.72rem;background:#5157d0;font-size:1.27rem}
.calculator-home #comparison .primary:hover {background:#3c44b6}
.calculator-home .result {display:block;margin-top:1rem;color:var(--green);border:1px solid #afbaf1;border-radius:.85rem;background:#e4e8ff;box-shadow:0 3px 6px #18215124}
.calculator-home .winner {padding:.78rem 1rem .38rem}
.calculator-home .winner .eyebrow {display:inline-block;padding:.16rem .53rem;border-radius:.35rem;background:#bfc8ff;color:#16256c;font-size:.88rem;letter-spacing:normal;text-transform:none}
.calculator-home .winner .rate {font-size:clamp(1.85rem,7.5vw,3rem);line-height:1.2;margin-top:.25rem}
.calculator-home .winner .rate small {font-size:.55em;font-weight:650}
.result-more > summary {padding-inline:1rem;margin-block:0 .18rem}
.calculator-home .ranking {background:#f5f6ff;color:inherit;padding:.55rem 1rem}
.calculator-home .ranking p,.calculator-home .winner-more p {color:var(--muted)}
.winner-more {padding:.55rem 1rem}
.winner-more h3 {margin:.1rem 0 .4rem}
.calculator-home .other-tools {position:static;display:block;margin:.65rem 0 .25rem;width:fit-content}
.calculator-home .other-tools summary {display:flex;align-items:center;min-height:44px;padding:0;border:0;box-shadow:none;border-radius:0;text-decoration:underline;background:none;color:#172887;font-size:1.02rem}
.calculator-home .other-tools nav {display:block}
.calculator-home .other-tools:not([open]) nav {display:none}
.calculator-home .other-tools nav a:first-child {display:grid}
.calculator-extra {margin:.1rem 0 0}
.calculator-home .calculator-extra .add {display:inline-flex;padding-inline:0;min-height:44px;text-decoration:underline}
.calculator-home .guide-section,.calculator-home .transparency { padding-block:1.75rem }
.calculator-home .guides,.calculator-home .transparency { grid-template-columns:1fr;gap:1rem }
.calculator-home footer { padding-block:.85rem; }
}

@media screen {
.calculator-home .home-reference {width:min(100% - 2.7rem,32.3rem);margin:.15rem auto;border-top:1px solid var(--line)}
.calculator-home .home-reference > summary {min-height:44px;display:list-item;padding-block:.7rem;font-size:.9rem;color:var(--muted)}
.calculator-home .home-reference > .wrap {padding-inline:0}
.calculator-home .ad-footer > span {display:none}
.calculator-home .ad-footer {justify-content:flex-start}
}

@media screen {
.calculator-home:lang(ko) h1 {max-inline-size:none;word-break:keep-all;font-size:clamp(2rem,7.4vw,3.35rem)}
.calculator-home #comparison .primary {display:flex;align-items:center;justify-content:center;text-align:center}
}

/* Original C reference normalized to its 490px by 918px tool panel. */
@media screen {
.reference-c {
  --green:#0e1748;
  --line:#bfcbf3;
  position:relative;
  isolation:isolate;
  width:min(100%,490px);
  min-height:100vh;
  margin-inline:auto;
  container-type:inline-size;
  border:1px solid #bfcaf7;
  border-radius:15px;
  background:linear-gradient(161deg,#c5cdfd 0,#e3e7fd 30%,#eff0fc 58%,#e9ecfc 100%);
}
.reference-c::before,.reference-c::after {content:"";position:absolute;inset-inline:0;top:0;pointer-events:none;z-index:-1;border-radius:inherit}
.reference-c::before{
  height:47cqw;background:radial-gradient(ellipse 122% 110% at 2% -64%,#e7eaff99 0%,#dae1fecc 99%,transparent 100%);
}
.reference-c::after{
  height:75cqw;background:radial-gradient(ellipse 108% 80% at 110% 106%,#eef0fc 6%,#d3dcff66 95%,transparent 96%);
}
.reference-c .wrap {width:100%;max-width:none;padding-inline:5.6cqw}
.reference-c header.nav {height:17cqw;min-height:54px;padding-block:3.4cqw 2.8cqw}
.reference-c header .brand {font-size:clamp(1.65rem,8.3cqw,2.54rem);color:var(--green);letter-spacing:-.06em}
.reference-c .home-menu summary {color:#273898}
.reference-c .home-menu summary span {width:6.5cqw;min-width:18px;height:4.1cqw;min-height:14px}
.reference-c .home-menu-panel #advanced-toggle {text-align:start;min-height:44px;width:100%}
.reference-c .calculator {padding-block:7.6cqw 2cqw}
.reference-c h1 {max-inline-size:none;margin:0 0 8.4cqw;padding-inline:.55cqw;font-size:clamp(2rem,10.55cqw,3.23rem);line-height:.99;letter-spacing:-.06em;font-weight:800}
.reference-c .rows {gap:4.8cqw}
.reference-c .option-head {margin:0 0 2.55cqw;padding-inline:.55cqw}
.reference-c .option-head strong {font-size:clamp(1.13rem,5.45cqw,1.66rem);line-height:1.15;font-weight:750}
.reference-c .focused-fields {gap:2.45cqw}
.reference-c .focused-fields input,.reference-c .focused-fields select,.reference-c .price-field {font-size:clamp(1.15rem,6.2cqw,1.89rem);line-height:1.1}
.reference-c .quantity-pair,.reference-c .price-field {min-height:max(44px,13.65cqw);border-radius:2.25cqw;background:linear-gradient(155deg,#fbfbff,#f0f2fd);border-color:#abb9ed;box-shadow:0 3px 6px #2735722d}
.reference-c .focused-fields input,.reference-c .focused-fields select {min-height:calc(max(44px,13.65cqw) - 2px)}
.reference-c .focused-fields input {padding:.3rem 0 .3rem 4.2cqw}
.reference-c .focused-fields select {max-width:13cqw}
.reference-c .price-field {padding-inline-start:4.55cqw}
.reference-c .price-field input {padding-inline-start:.12em}
.reference-c #comparison .primary {min-height:max(44px,13.7cqw);margin-top:6.1cqw;padding:0;border:0;border-radius:2.9cqw;background:linear-gradient(175deg,#565bdc,#4c50c4);font-size:clamp(1.2rem,6.5cqw,2rem);font-weight:750}
.reference-c #comparison .primary:hover {background:#3e46b4}
.reference-c .result {margin-top:5.9cqw;min-height:37.4cqw;border-radius:3.6cqw;background:#e7eafe99;box-shadow:0 5px 8px #25367825}
.reference-c .winner {padding:5.5cqw 6.25cqw 4cqw}
.reference-c .winner .eyebrow {padding:1.05cqw 3.55cqw;background:#b8c3fc;color:#121e68;border-radius:1.55cqw;font-size:clamp(1rem,5.2cqw,1.58rem);font-weight:750}
.reference-c .winner .rate {margin-top:2.45cqw;font-size:clamp(1.65rem,11.9cqw,3.62rem);font-weight:800;line-height:1.09;letter-spacing:-.065em}
.reference-c .winner .rate small {font-size:.86em;font-weight:800}
.reference-c .other-tools {margin:2.8cqw 0 2.7cqw;padding-inline:.55cqw}
.reference-c .other-tools summary {font-size:clamp(1rem,5.15cqw,1.58rem);min-height:44px;font-weight:500;color:#17247c}
.reference-c:not(.show-calculator-extras) :is(.row-extra,.result-more,.calculator-extra,.ad-footer) {display:none}
.reference-c .home-reference {margin-inline:auto}
.reference-c:not(.show-reference):not(.show-calculator-extras) .home-reference {display:none}
.reference-c footer.wrap {display:none}
.reference-c.show-calculator-extras footer.wrap {display:flex}
.reference-c:has(.row-extra:focus-within) .row-extra {display:block}
.reference-c .calculator .option .error[hidden] {display:none}
}

@media screen {
.reference-c .quantity-pair {position:relative}
.reference-c .quantity-pair label:first-child {flex:0 1 auto;max-width:calc(100% - 48px)}
.reference-c .quantity-pair label:last-child {flex:1 0 48px}
.reference-c .quantity-pair input {width:auto;min-width:2.8ch;max-width:100%;field-sizing:content;padding-inline-end:.14em}
@supports not (field-sizing:content) {.reference-c .quantity-pair input {width:4.6ch}}
.reference-c .quantity-pair select {appearance:none;max-width:none;width:100%;padding-inline:.12em 1.25em;border-radius:.42rem;cursor:pointer}
.reference-c .quantity-pair::after {content:"";position:absolute;inset-inline-end:.69rem;top:50%;width:.46rem;height:.46rem;border:solid currentColor;border-width:0 .12rem .12rem 0;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.reference-c .winner .rate small {font-size:.96em}
.reference-c::before {background:radial-gradient(ellipse 114% 104% at 8% -66%,#eef0ffca 0%,#e1e7fec9 99%,transparent 100%)}
}

@media screen {
.reference-c .other-tools nav{max-height:min(60vh,18rem);overflow-y:auto;overscroll-behavior:contain}
.reference-c .other-tools nav a{white-space:normal;overflow-wrap:anywhere}
}

/* Soft Tech: make use of laptop/desktop width without changing the phone layout. */
@media screen and (min-width:900px) {
  .reference-c {
    width:min(calc(100% - 3rem),1280px);
    min-height:calc(100vh - 3rem);
    margin-block:1.5rem;
    border-radius:1.4rem;
  }
  .reference-c::before{height:16rem}
  .reference-c::after{height:22rem}
  .reference-c .wrap {width:100%;max-width:70rem;padding-inline:clamp(2.7rem,5vw,4rem)}
  .reference-c header.nav {height:5.2rem;padding-block:1rem}
  .reference-c .home-menu summary span {width:1.55rem;height:.9rem;min-width:0;min-height:0}
  .reference-c .home-actions {gap:.7rem}
  .reference-c .calculator {
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
    grid-template-areas:
      "title title"
      "form result"
      "tools tools"
      "extras extras";
    align-items:start;
    column-gap:clamp(2rem,5vw,4rem);
    padding-block:1.7rem 3rem;
  }
  .reference-c .calculator h1 {
    grid-area:title;margin:0 0 1.8rem;padding:0;
    font-size:clamp(2.45rem,4.8vw,3.75rem);line-height:1.04;max-width:100%;
  }
  .reference-c #comparison {grid-area:form;min-width:0}
  .reference-c #result {grid-area:result;min-width:0}
  .reference-c #other-tools {grid-area:tools}
  .reference-c .calculator-extra {grid-area:extras}
  .reference-c .rows {gap:1.3rem}
  .reference-c .option-head {margin:0 0 .45rem;padding:0}
  .reference-c .option-head strong {font-size:1.25rem}
  .reference-c .focused-fields {gap:.8rem}
  .reference-c .quantity-pair,.reference-c .price-field {min-height:3.5rem;border-radius:.75rem}
  .reference-c .focused-fields input,.reference-c .focused-fields select,.reference-c .price-field {font-size:1.45rem}
  .reference-c .focused-fields input,.reference-c .focused-fields select {min-height:calc(3.5rem - 2px)}
  .reference-c .focused-fields input {padding-inline-start:.75rem}
  .reference-c .price-field {padding-inline-start:.75rem}
  .reference-c .price-field input {padding-inline-start:.12em}
  .reference-c #comparison .primary {min-height:3.5rem;margin-top:1.2rem;border-radius:.8rem;font-size:1.35rem}
  .reference-c #result .result {margin:0;min-height:16.15rem;border-radius:1.1rem}
  .reference-c .winner {padding:2.2rem clamp(1.45rem,3vw,2.35rem)}
  .reference-c .winner .eyebrow {padding:.34rem .8rem;border-radius:.42rem;font-size:1.05rem}
  .reference-c .winner .rate {margin-top:.7rem;font-size:clamp(2.45rem,4.1vw,3.7rem);overflow-wrap:anywhere}
  .reference-c .other-tools {margin:1.3rem 0 .3rem;padding:0}
  .reference-c .other-tools summary {font-size:1.1rem}
  .reference-c .home-reference {width:min(calc(100% - 5.4rem),62rem)}
}
