:root{color-scheme:light;--accent:#2147ed;--accent-strong:#1739bd;--ink:#1c2c47;--muted:#526580;--canvas:#f7f9fd;--line:#d8e1ed;--paper:#fff;--soft:#eef3ff;--success:#126f56;--shadow:0 14px 44px rgba(24,48,96,.065)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);font:15px/1.55 system-ui,-apple-system,'Noto Sans KR',sans-serif}a{color:var(--accent)}.skip{position:absolute;top:-80px;left:16px;z-index:100;background:#fff;padding:10px;border:2px solid var(--accent)}.skip:focus{top:10px}button,select,input{font:inherit}button{cursor:pointer}input,select,button{min-height:44px}input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #8ea3ff;outline-offset:3px}button:disabled{opacity:.55;cursor:not-allowed}.topbar{max-width:1250px;padding:18px 24px;margin:auto;display:flex;align-items:center;gap:24px}.topbar .brand{color:var(--ink);font-size:27px;font-weight:800;text-decoration:none;white-space:nowrap}.brand span{color:var(--accent);font-size:13px;letter-spacing:.04em}.topbar nav{display:flex;gap:18px;margin-left:auto}.topbar nav a{font-size:13px;color:var(--muted);text-decoration:none}.locale{display:flex;align-items:center;gap:8px;font-size:13px}.locale select{border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);padding:7px 10px}.shell{max-width:1250px;margin:0 auto;padding:0 24px 52px}.hero{border-radius:28px;background:radial-gradient(circle at 90% 12%,#dce6ff,transparent 29%),linear-gradient(130deg,#fff,#eff4ff);border:1px solid #dde5fb;padding:clamp(24px,5vw,54px);margin:8px 0 24px;box-shadow:var(--shadow)}.eyebrow,.section-kicker{color:var(--accent);font-weight:750;letter-spacing:.025em;font-size:13px;margin:0 0 7px}.hero h1{font-size:clamp(28px,4.5vw,46px);line-height:1.2;letter-spacing:-.04em;margin:10px 0 14px}.lead{color:var(--muted);max-width:65ch;font-size:16px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.hero-actions button,.copy{border-radius:12px;padding:10px 16px;font-weight:700;border:1px solid var(--line)}.primary{background:var(--accent);border-color:var(--accent)!important;color:#fff}.subtle,.copy{background:var(--paper);color:var(--accent)}.caption{font-size:12px;color:var(--muted);margin:10px 0 0}.workspace{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);gap:18px;align-items:start}.input-zone,.result-zone,.guide{background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:22px;padding:24px}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between}.toolbar h2,.result-zone h2{font-size:21px;letter-spacing:-.03em;margin:0}.term{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:13px}.term select{padding:7px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:9px}.quote-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.quote{min-width:0;border:1px solid var(--line);border-radius:16px;padding:20px 16px;background:#fbfcff}.quote legend{font-size:15px;font-weight:800;padding:0 8px}.letter{display:inline-grid;place-items:center;width:28px;height:28px;background:var(--accent);color:#fff;border-radius:9px;margin-right:8px}.quote-b .letter,#quote-b .letter{background:#116a68}.field{margin:10px 0 16px}.field>label{display:block;font-size:12px;font-weight:700;color:var(--ink);margin-bottom:6px}.field>label small{display:block;font-size:11px;font-weight:400;color:var(--muted)}.money{border:1px solid #cdd9e9;border-radius:10px;display:flex;align-items:center;overflow:hidden;background:var(--paper)}.money:focus-within{outline:2px solid #b9c9ff;outline-offset:1px}.money input{min-width:0;width:100%;border:0;background:transparent;padding:10px 8px 10px 10px;color:var(--ink);outline:0;font-variant-numeric:tabular-nums}.money span{padding:0 9px;font-size:12px;color:var(--muted);flex-shrink:0}.field select{width:100%;max-width:100%;padding:8px;border:1px solid #cdd9e9;border-radius:10px;background:var(--paper);color:var(--ink);font-size:12px}.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.two .field{min-width:0}.check{display:flex;align-items:flex-start;gap:8px;font-size:12px;font-weight:600;color:var(--ink);line-height:1.45;cursor:pointer;margin-top:4px}.check input{min-width:17px;width:17px;height:17px;min-height:17px;accent-color:var(--accent);margin:2px 0 0}.input-notes{font-size:12px;color:var(--muted);margin:15px 0 0}.status{background:var(--soft);border-radius:11px;padding:13px;font-size:13px;color:var(--ink);margin:15px 0}.status.error{background:#fff0f1;color:#8d1e2d}.status.warn{background:#fff7dc;color:#6e5209}.status.ok{background:#e7f8ef;color:#115e49}.totals{display:grid;grid-template-columns:1fr 1fr;gap:9px}.total{border:1px solid var(--line);border-radius:14px;padding:14px;min-width:0}.total span{display:block;font-size:12px;color:var(--muted)}.total strong{font-size:clamp(17px,2.3vw,24px);letter-spacing:-.035em;white-space:nowrap}.total small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.comparison{padding:16px;border-radius:14px;margin:12px 0;background:var(--soft)}.comparison>span{display:block;color:var(--muted);font-size:12px}.comparison strong{font-size:26px}.comparison p{font-size:12px;margin:5px 0 0}.components{margin-top:16px}.components h3{font-size:15px}.components table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}.components th,.components td{text-align:right;padding:10px 5px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.components th:first-child,.components td:first-child{text-align:left;width:42%}.copy{margin-top:18px;width:100%}.footnote{font-size:12px;color:var(--muted);line-height:1.65}.guide{margin-top:20px}.guide h2{font-size:19px;margin:0 0 15px}.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.guide article{border:1px solid var(--line);border-radius:14px;padding:15px}.guide article h3{font-size:14px;margin:0 0 8px}.guide article p{font-size:12px;color:var(--muted);margin:0}.reference{margin:16px 0 0;font-size:13px}footer{max-width:1250px;padding:8px 24px 35px;margin:auto;display:flex;gap:20px;justify-content:space-between;font-size:12px;color:var(--muted)}
@media(max-width:1000px){.workspace{grid-template-columns:1fr}.result-zone{position:static}.total strong{font-size:23px}}
@media(max-width:600px){.topbar{flex-wrap:wrap;padding:14px 16px;gap:8px 16px}.topbar nav{order:3;margin:0;width:100%;gap:20px}.locale{margin-left:auto}.shell{padding:0 12px 38px}.hero{padding:24px 20px;border-radius:20px}.hero h1{font-size:30px}.input-zone,.result-zone,.guide{padding:17px 13px;border-radius:17px}.quote-grid{grid-template-columns:1fr}.quote{padding:17px}.two{gap:12px}.guide-grid{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}.totals{grid-template-columns:1fr 1fr}.total{padding:10px}.total strong{font-size:19px}.hero-actions button{flex:1}footer{padding:8px 16px 28px;flex-wrap:wrap}}
@media(max-width:350px){.two{grid-template-columns:1fr}.totals{grid-template-columns:1fr}.topbar .brand{font-size:22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
@media(prefers-color-scheme:dark){:root{color-scheme:dark;--accent:#a3b6ff;--accent-strong:#c4d0ff;--ink:#e2e9f6;--muted:#bdcbe2;--canvas:#121a29;--paper:#202c40;--line:#52627a;--soft:#2b3f60;--success:#8ed5b8;--shadow:none}.hero{background:linear-gradient(130deg,#212f4a,#253c66);border-color:#536a97}.money{border-color:#647691}.quote{background:#1b293d}.status.ok{background:#214538;color:#d7f3e6}.status.warn{background:#534525;color:#ffe9b3}.status.error{background:#562d35;color:#ffcbd3}.primary{background:#355ac4;border-color:#8da4ff!important}.letter{background:#355ac4}.copy,.subtle{color:var(--ink)}}

/* Explicit share controls; no automatic quote storage or external tracking. */
.share-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.share-actions .copy{margin-top:0;min-width:0;white-space:normal}@media(max-width:600px){.share-actions{grid-template-columns:1fr}}

/*
 * Yeoyu / phone total-cost comparison — composed editorial workspace.
 * CSS only: keep existing arithmetic, share/restore, validation and locale JS.
 * Font comes from /theme.css; do not download another face or add artwork.
 */
body {
  font-family:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,
    "Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
  font-size:15px;
  line-height:1.65;
  font-variant-numeric:tabular-nums;
  -webkit-text-size-adjust:100%;
}
body :is(button,input,select) {font-family:inherit}
body :is(button,a,input,select):focus-visible {
  outline:3px solid #81a5ce;
  outline-offset:3px;
}
body .topbar {
  gap:clamp(12px,2vw,24px);
}
body .topbar .brand {
  color:var(--ink);
  font-size:26px;
  letter-spacing:-.043em;
  font-weight:790;
}
body .topbar nav {
  gap:14px;
}
body .topbar nav a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 3px;
  font-size:13px;
  font-weight:590;
  text-decoration:none;
  transition:color .18s ease;
}
body .topbar nav a:is(:hover,:focus-visible) {
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:4px;
}
body .locale {font-size:13px;color:var(--ink)}
body .locale select {
  min-height:44px;
  border-color:#bdcde0;
  background:#fcfdff;
}
body .shell {padding-bottom:55px}
body .hero {
  background:
    radial-gradient(circle at 94% 6%,rgba(139,170,211,.12),transparent 36%),
    linear-gradient(139deg,#fafcfe,#f1f5fa);
  border-color:#dbe4ef;
  border-radius:26px;
  box-shadow:0 14px 37px rgba(31,56,91,.06),inset 0 1px 0 rgba(255,255,255,.85);
  padding:clamp(24px,4vw,49px);
}
body .hero .eyebrow {
  color:#426b99;
  font-size:13px;
  font-weight:740;
  letter-spacing:.012em;
}
body .hero h1 {
  color:#223958;
  font-size:clamp(28px,4vw,43px);
  line-height:1.28;
  letter-spacing:-.052em;
  font-weight:790;
  text-wrap:balance;
  word-break:keep-all;
}
body .lead {
  color:#506680;
  font-size:15px;
  line-height:1.85;
  max-width:64ch;
}
body .hero-actions {gap:11px}
body .hero-actions button {
  min-height:46px;
  padding:11px 17px;
  border-radius:11px;
  transition:background-color .2s ease,box-shadow .2s ease,transform .2s cubic-bezier(.22,1,.36,1);
}
body .primary {
  background:#315c94;
  border-color:#315c94!important;
  color:#fff;
}
body .primary:is(:hover,:focus-visible) {
  background:#274c7c;
  border-color:#274c7c!important;
  box-shadow:0 8px 18px rgba(36,73,119,.15);
}
body .subtle,body .copy {
  background:#fbfdff;
  color:#315b8e;
  border-color:#b9cce2;
}
body .subtle:is(:hover,:focus-visible),body .copy:is(:hover,:focus-visible) {
  background:#eff5fc;
  border-color:#8eafd5;
  color:#274e7f;
}
body .caption {
  font-size:13px;
  line-height:1.75;
  color:#63778e;
}
body .workspace {gap:20px}
body :is(.input-zone,.result-zone,.guide) {
  border-color:#dce5f0;
  border-radius:21px;
  box-shadow:0 9px 28px rgba(32,60,98,.045);
  padding:clamp(19px,2.2vw,27px);
}
body .toolbar {gap:16px}
body :is(.toolbar h2,.result-zone h2) {
  color:#273f5f;
  font-weight:750;
  font-size:clamp(19px,2vw,23px);
  letter-spacing:-.037em;
  line-height:1.4;
  text-wrap:pretty;
  word-break:keep-all;
}
body .section-kicker {
  font-size:13px;
  font-weight:730;
  color:#416a9b;
  letter-spacing:.015em;
  margin-bottom:8px;
}
body .term {
  color:#516780;
  font-weight:580;
  font-size:13px;
}
body .term select {
  font-size:14px;
  border-color:#c3d2e4;
  min-height:44px;
  border-radius:10px;
}
body .quote-grid {gap:15px;margin-top:21px}
body .quote {
  background:#fcfdff;
  border-color:#dce5f1;
  border-radius:17px;
  padding:21px 18px;
}
body .quote legend {
  font-size:15px;
  font-weight:760;
  color:#2d496d;
  line-height:1.5;
  letter-spacing:-.017em;
}
body .letter {
  width:30px;
  height:30px;
  background:#3f6b9f;
  border-radius:9px;
}
body .quote-b .letter,
body #quote-b .letter {background:#437b79}
body .field {margin:11px 0 17px}
body .field>label {
  font-size:14px;
  font-weight:700;
  line-height:1.5;
  color:#334a66;
  margin-bottom:8px;
  word-break:keep-all;
}
body .field>label small {
  margin-top:5px;
  font-size:12.5px;
  font-weight:450;
  line-height:1.6;
  color:#62768f;
}
body .field :is(.money,select) {
  min-height:47px;
  border:1px solid #bdcde0;
  border-radius:11px;
  background:#fff;
  color:#203958;
  transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease;
}
body .money:focus-within {
  outline:2px solid #79a1d1;
  outline-offset:2px;
  border-color:#7498c7;
  box-shadow:0 0 0 4px rgba(91,137,193,.095);
  background:#fff;
}
body .money input {
  min-height:45px;
  padding:10px 9px 10px 12px;
  font-size:15px;
  color:#213851;
}
body .money input:focus-visible {
  outline:0;
  box-shadow:none;
}
body .money span {
  color:#5e7189;
  font-size:13px;
}
body .field select {
  font-size:14px;
  padding:10px 11px;
  line-height:1.4;
}
body .check {
  gap:10px;
  margin-top:12px;
  font-size:13px;
  font-weight:600;
  line-height:1.6;
  color:#435c79;
}
body .check input {
  width:19px;height:19px;min-width:19px;min-height:19px;margin-top:1px;
  accent-color:#37689d;
}
body .input-notes,body .footnote {
  font-size:13px;
  line-height:1.82;
  color:#5f748d;
}
body .result-zone {
  background:linear-gradient(180deg,#fff,#fbfdff);
  border-color:#d2e0ee;
}
body .status {
  background:#edf3fa;
  border:1px solid #d9e5f1;
  color:#3c5878;
  border-radius:12px;
  line-height:1.7;
  font-size:13px;
  padding:13px 15px;
}
body .status.ok{background:#e9f5ef;border-color:#bfe0ce;color:#206347}
body .status.warn{background:#fff6e6;border-color:#ebd6ad;color:#775317}
body .status.error{background:#fff1f2;border-color:#efc7cc;color:#913645}
body .totals {gap:11px}
body .total {
  background:#f4f7fc;
  border-color:#d7e3f0;
  border-radius:14px;
  padding:15px 13px;
  min-width:0;
}
body .total span {
  font-size:13px;
  font-weight:650;
  line-height:1.45;
  color:#536b87;
}
body .total strong {
  display:block;
  color:#24476f;
  font-size:clamp(16px,2vw,23px);
  font-weight:790;
  letter-spacing:-.045em;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.35;
  margin-top:5px;
}
body .total small {
  color:#617891;
  font-size:12px;
  line-height:1.5;
}
body .comparison {
  background:linear-gradient(140deg,#e9f1fa,#f5f8fc);
  border:1px solid #d2e2f3;
  border-radius:15px;
  padding:19px 17px;
  margin-top:13px;
}
body .comparison>span {
  font-size:13px;
  color:#48698e;
  font-weight:650;
}
body .comparison strong {
  display:block;
  font-size:clamp(23px,2.8vw,31px);
  letter-spacing:-.048em;
  line-height:1.35;
  color:#214b7c;
  overflow-wrap:anywhere;
  margin-top:5px;
}
body .comparison p {
  font-size:13px;
  line-height:1.7;
  color:#526b85;
}
body .components h3 {font-size:16px;font-weight:720;color:#304b6c}
body .components table {
  font-size:13px;
  line-height:1.65;
}
body .components th,
body .components td {
  padding:12px 5px;
  border-bottom-color:#e0e9f3;
}
body .components th{font-weight:710;color:#3b5878}
body .components td{color:#3e536d}
body .copy {
  min-height:47px;
  border-radius:11px;
  font-size:13px;
  line-height:1.5;
}
body .guide article {
  border-color:#dce7f2;
  background:#fbfdff;
  border-radius:14px;
  padding:17px;
}
body .guide article h3 {
  color:#304b6c;
  font-size:15px;
  font-weight:710;
}
body .guide article p {font-size:13px;line-height:1.78;color:#586d85}
body footer{line-height:1.7}
@media(max-width:600px) {
  body .shell{padding:0 14px 38px}
  body .hero {padding:26px 21px;border-radius:20px}
  body .hero h1{font-size:clamp(28px,7vw,34px);line-height:1.3}
  body .lead{font-size:14px}
  body :is(.input-zone,.result-zone,.guide){padding:19px 16px;border-radius:17px}
  body .quote-grid {gap:16px}
  body .quote {padding:18px 15px}
  body .totals {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body .total {padding:12px 10px}
  body .total strong{font-size:clamp(16px,4.5vw,21px)}
  body .hero-actions button{flex:1 1 140px}
  body .comparison strong {font-size:clamp(24px,6vw,30px)}
}
@media(max-width:370px) {
  body .two{grid-template-columns:1fr}
  body .topbar nav{gap:10px}
  body .topbar .brand{font-size:23px}
  body .total strong{font-size:16px}
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  body .hero-actions button:is(:hover,:focus-visible),
  body .share-actions button:is(:hover,:focus-visible){
    transform:translateY(-2px);
  }
  body .hero-actions button:active,
  body .share-actions button:active{
    transform:translateY(0) scale(.993);
  }
}
@media(prefers-color-scheme:dark){
  body .hero{
    background:linear-gradient(140deg,#202d43,#23354c);
    border-color:#4f6685;
    box-shadow:none;
  }
  body .hero h1,
  body :is(.toolbar h2,.result-zone h2),
  body .quote legend,
  body .field>label,
  body .components h3,
  body .guide article h3{color:#eaf2ff}
  body .hero :is(.eyebrow,.lead,.caption),
  body .section-kicker,
  body :is(.term,.check,.input-notes,.footnote),
  body .field>label small{color:#c3d5eb}
  body .locale select{background:#26384e;border-color:#677f9d;color:#f2f6ff}
  body :is(.input-zone,.result-zone,.guide){
    background:#202d40;
    border-color:#516986;
    box-shadow:none;
  }
  body .quote,body .guide article{
    background:#24364d;
    border-color:#546b89;
  }
  body .money,body .field select{
    background:#1f3045;
    border-color:#6b85a4;
    color:#f1f7ff;
  }
  body .money input{color:#f2f7ff}
  body .money span{color:#c8d8ee}
  body .money:focus-within{background:#263a55;border-color:#9ab9e1}
  body .status{background:#293d58;border-color:#5f7fa4;color:#e0ecfd}
  body .status.ok{background:#244736;border-color:#48836d;color:#defbe9}
  body .status.warn{background:#554528;border-color:#967c45;color:#fff0c8}
  body .status.error{background:#5b313a;border-color:#ac6979;color:#ffe0e5}
  body .total{background:#263951;border-color:#597390}
  body .total span,body .total small{color:#c3d5ec}
  body .total strong{color:#f4f8ff}
  body .comparison{
    background:linear-gradient(140deg,#2c4463,#273950);
    border-color:#6683a7;
  }
  body .comparison>span,body .comparison p{color:#cbdcf1}
  body .comparison strong{color:#f1f7ff}
  body .components th,body .components td{color:#d5e2f4;border-color:#4b6180}
  body .guide article p{color:#c8d9ef}
  body :is(.subtle,.copy){background:#2c4563;border-color:#6986ab;color:#f1f7ff}
  body :is(.subtle,.copy):is(:hover,:focus-visible){background:#385677;color:#fff}
  body .primary{background:#4268a3;border-color:#759ac9!important}
  body .primary:is(:hover,:focus-visible){background:#517bb6;border-color:#a6c5ed!important}
}
@media(prefers-reduced-motion:reduce){
  body :is(.hero-actions button,.share-actions button,.topbar nav a,.money,.field select){
    transition:none!important;transform:none!important;
  }
}
@media print {
  body .hero,body :is(.input-zone,.result-zone,.guide){box-shadow:none!important}
  body .hero-actions,body .share-actions{display:none!important}
}


/* Japanese headings have long uninterrupted runs; keep-all blocks natural
   CJK wrapping and pushed this standalone tool outside 320–390px viewports. */
html[lang="ja"] body :is(.hero h1,.toolbar h2,.result-zone h2,.quote legend,.field>label){
  word-break:normal;
  overflow-wrap:anywhere;
}
body :is(.topbar,.hero,.workspace,.quote-grid,.input-zone,.result-zone,.quote,.toolbar,.term){
  min-width:0;
}
