:root{--ink:#20211f;--muted:#777873;--paper:#f7f7f5;--white:#fff;--line:#e5e5e1;--soft:#f0f0ed;--accent:#343632;--shadow:0 2px 8px rgba(20,20,18,.025)}
*{box-sizing:border-box}html{background:var(--paper);scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Arial,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;line-height:1.55;letter-spacing:-.025em}.page-shell{width:min(1160px,100% - 48px);margin:0 auto;padding:0 0 28px}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:.95rem;font-weight:700;text-decoration:none}.brand-mark{width:27px;height:27px;border:1px solid #bdbeb8;border-radius:50%;display:grid;place-items:center;font-size:.78rem;font-weight:600}.top-note{font-size:.66rem;letter-spacing:.14em;color:#888982}.hero{padding:58px 0 35px;max-width:none}.eyebrow{font-size:.72rem;letter-spacing:.09em;color:#777873;margin:0 0 17px}.eyebrow span{padding:0 7px;color:#b4b4ae}h1{font-size:clamp(1.8rem,3.5vw,2.9rem);line-height:1.22;letter-spacing:-.065em;font-weight:650;margin:0 0 12px;white-space:normal}h1 .phrase{display:inline-block;white-space:nowrap}.mobile-break{display:none}.intro{font-size:1.12rem;color:var(--muted);max-width:none;margin:0;white-space:nowrap}.input-panel{background:var(--white);border:1px solid var(--line);padding:25px 27px 21px;box-shadow:var(--shadow)}.section-heading,.section-heading>div,.results-heading,.results-heading>div{display:flex;align-items:center;gap:11px}.section-heading{justify-content:space-between;margin-bottom:22px}.section-heading h2,.results-heading h2{font-size:1.1rem;font-weight:650;letter-spacing:-.04em;margin:0}.section-number{font-size:.7rem;color:#8a8b84;letter-spacing:.06em;font-variant-numeric:tabular-nums}.text-button{border:0;background:none;color:#777873;font:inherit;font-size:.78rem;cursor:pointer;padding:6px 0}.text-button span{font-size:1rem;margin-left:4px}.inputs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field>span{font-size:.82rem;font-weight:600}.field>span small{font-size:.72rem;font-weight:400;color:var(--muted);margin-left:4px}.stepper{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;border:1px solid #deded9;background:#fff;min-width:0;transition:border-color .15s}.stepper:focus-within{border-color:#777873;box-shadow:0 0 0 2px #77787315}.stepper.fixed-value{background:#f7f7f5;border-color:#e5e5e1}.stepper.fixed-value input{cursor:default;color:var(--ink);font-weight:600;text-align:center}.stepper input{width:100%;min-width:0;border:0;border-radius:0;padding:12px 4px;background:transparent;font:inherit;font-size:1.12rem;font-weight:500;color:var(--ink);text-align:center;font-variant-numeric:tabular-nums;outline:none;appearance:textfield;-moz-appearance:textfield}.stepper input::-webkit-inner-spin-button,.stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.step-btn{border:0;background:#fafaf8;color:#555650;font:inherit;font-size:1.1rem;cursor:pointer;display:grid;place-items:center;min-width:0;transition:background .15s,color .15s}.step-btn:first-child{border-right:1px solid #eeeeeb}.step-btn:last-child{border-left:1px solid #eeeeeb}.step-btn:hover{background:#eeeeea;color:#20211f}.step-btn:active{background:#e4e4df}.step-btn:focus-visible{outline:2px solid #777873;outline-offset:-3px}.hint{font-size:.72rem;color:#999a93}.measure-summary{display:flex;align-items:center;justify-content:space-between;margin-top:23px;padding-top:17px;border-top:1px solid #ededeb;color:var(--muted);font-size:.8rem}.measure-summary strong{font-size:1.03rem;color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums}
.waist-part-section{margin-top:18px;padding-top:17px;border-top:1px solid #ededeb}
.waist-part-title{font-size:.82rem;font-weight:650;margin-bottom:13px}
.waist-part-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.waist-part-value{display:flex;flex-direction:column;gap:8px;min-width:0}
.waist-part-value>span{font-size:.82rem;font-weight:600}
.waist-part-value>span small{font-size:.72rem;font-weight:400;color:var(--muted);margin-left:4px}
.waist-part-value strong{font-size:1.12rem;font-weight:600;font-variant-numeric:tabular-nums;padding:11px 0}
.waist-part-value .hint{font-size:.72rem;color:#999a93}.results-heading{justify-content:space-between;margin:36px 0 15px}.results-heading>div{gap:11px}.result-count{color:#8a8b84;font-size:.73rem;margin-left:3px}.primary-button{border:1px solid var(--ink);border-radius:2px;padding:10px 14px;background:var(--ink);color:white;font:inherit;font-size:.78rem;font-weight:600;cursor:pointer;transition:background .15s}.primary-button:hover{background:#454641}.primary-button span{font-size:.9rem;margin-right:5px}.results-note{margin:-4px 0 16px;padding:10px 13px;background:var(--soft);border-left:2px solid #c9cac4;color:#66675f;font-size:.8rem;line-height:1.6;word-break:keep-all}.results-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}.result-card{background:var(--white);border:1px solid var(--line);min-width:0;box-shadow:var(--shadow)}.card-head{padding:18px 17px 15px;border-bottom:1px solid var(--line)}.card-head .overline{font-size:.63rem;letter-spacing:.12em;color:#888982;font-weight:600}.card-head h3{margin:6px 0 3px;font-size:1.12rem;letter-spacing:-.04em;font-weight:650}.card-head p{margin:0;color:var(--muted);font-size:.76rem}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:1.12rem;font-variant-numeric:tabular-nums}th,td{padding:10px 7px;border-bottom:1px solid #eeeeeb;text-align:right;white-space:nowrap}th{color:#777873;font-weight:500;background:#fafaf8;font-size:.82rem;line-height:1.35}th:first-child,td:first-child{text-align:left;padding-left:12px}tbody tr:last-child td{border-bottom:0}.total-row td{font-weight:700;background:#f6f6f3;color:#33352f}.mini-label{display:block;color:var(--muted);font-size:.68rem;font-weight:500;margin-top:2px}.checks{padding:12px 14px;border-top:1px solid var(--line);display:flex;gap:6px;flex-wrap:wrap}.check{font-size:.68rem;padding:4px 7px;background:#f3f3f0;color:#696a64}.check.ok{background:#f0f3ee;color:#4b6048}.check.bad{background:#fbefec;color:#9b432f}.card-foot{padding:0 14px 14px;color:#92938c;font-size:.68rem}.status{min-height:22px;text-align:right;color:#66675f;font-size:.78rem;margin-top:9px}footer{display:flex;justify-content:space-between;gap:12px;margin-top:32px;padding:17px 0 0;border-top:1px solid var(--line);color:#8a8b84;font-size:.7rem}
@media(max-width:1000px){.results-grid{grid-template-columns:1fr}.result-card{display:block}.table-wrap{overflow-x:auto}table{font-size:1.12rem}th,td{padding:11px 12px}th{font-size:.82rem}.card-head{padding:17px 18px}.card-foot{padding-top:0}}
@media(max-width:600px){.page-shell{width:calc(100% - 28px);max-width:100%;overflow:hidden}.topbar{height:59px}.brand{font-size:.82rem}.top-note{font-size:.56rem;letter-spacing:.08em}.hero{padding:39px 0 25px}h1{font-size:1.75rem;line-height:1.3;white-space:normal;word-break:keep-all;overflow-wrap:break-word}.intro{font-size:.95rem;line-height:1.6;white-space:normal;word-break:keep-all;overflow-wrap:break-word}.input-panel,.result-card{border-radius:12px;overflow:hidden}.stepper{border-radius:8px;overflow:hidden}.primary-button{border-radius:8px}.input-panel{padding:19px 15px 17px}.section-heading{margin-bottom:17px}.inputs-grid{grid-template-columns:1fr;gap:15px}.field{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,40%);align-items:center;gap:5px 12px}.field>span{grid-column:1;grid-row:1}.stepper{grid-column:2;grid-row:1 / span 2;grid-template-columns:32px minmax(0,1fr) 32px}.stepper input{padding:10px 2px;font-size:1rem}.step-btn{font-size:1rem}.field .hint{grid-column:1;grid-row:2}.measure-summary{margin-top:19px;padding-top:14px}.waist-part-grid{grid-template-columns:1fr;gap:15px}.waist-part-value{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,40%);align-items:center;gap:5px 12px}.waist-part-value>span{grid-column:1;grid-row:1}.waist-part-value strong{grid-column:2;grid-row:1;text-align:center;padding:10px 0}.waist-part-value .stepper{grid-column:2;grid-row:1 / span 2;grid-template-columns:32px minmax(0,1fr) 32px}.waist-part-value .hint{grid-column:1;grid-row:2}.results-heading{margin-top:29px;gap:10px;align-items:flex-start}.results-heading>div{min-width:0}.results-heading h2{white-space:nowrap}.results-heading>div{gap:7px;flex-wrap:wrap}.results-heading h2{font-size:1rem}.result-count{font-size:.67rem}.primary-button{padding:9px 10px;font-size:.72rem;white-space:nowrap}.card-head h3{font-size:1.05rem}table{font-size:1rem;width:100%;table-layout:fixed}th,td{padding:10px 9px}th{font-size:.76rem}
.table-wrap{overflow:visible}
.result-card table thead{display:none}
.result-card table,.result-card table tbody{display:block;width:100%}
/* 구간 하나 = 작은 카드. 6칸 그리드: 위 줄은 끝부분·주름 수·끝부분(각 2칸), 아래는 길이 4개를 2×2(각 3칸) */
.result-card table tbody{padding:12px 12px 4px}
.result-card table tbody tr{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-bottom:10px;padding:10px;border:1px solid #ebebe7;border-radius:10px;background:#fff}
.result-card table tbody tr:last-child{border-bottom:1px solid #ebebe7}
.result-card table td,.result-card table td:first-child{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:keep-all;text-align:center;padding:8px 4px;border:0;border-radius:7px;background:#f7f7f4;font-size:1.05rem;font-weight:650;line-height:1.25}
.result-card table td::before{content:attr(data-label);display:block;color:var(--muted);font-size:.66rem;font-weight:500;line-height:1.3;margin-bottom:3px}
.result-card table td:nth-child(2),.result-card table td:nth-child(3),.result-card table td:nth-child(4){grid-column:span 2}
.result-card table td:nth-child(n+5){grid-column:span 3;flex-direction:row;justify-content:space-between;padding:9px 11px;background:transparent;border:1px solid #efefeb}
.result-card table td:nth-child(n+5){white-space:nowrap;gap:6px}
.result-card table td:nth-child(n+5)::before{margin:0;font-size:.7rem;white-space:normal;text-align:left;flex:1 1 auto;min-width:0}
.result-card table td:first-child,.result-card table tr td:first-child{grid-column:1/-1;flex-direction:row;justify-content:flex-start;gap:8px;background:transparent;padding:0 2px 4px;font-size:1rem;font-weight:700}
.result-card table td:first-child::before{content:"구간";margin:0;padding:2px 7px;border:1px solid #deded9;border-radius:999px;font-size:.62rem;letter-spacing:.02em}
.result-card table tr.total-row{background:#f6f6f3;border-color:#e2e2dd}
.result-card table tr.total-row td{background:#fff}
.result-card table tr.total-row td:first-child{background:transparent}
.result-card table tr.total-row td:first-child::before{content:"전체"}
.result-card table tr.total-row td:nth-child(2),.result-card table tr.total-row td:nth-child(4){display:none}
.result-card table tr.total-row td:nth-child(3),.result-card table tr.total-row td:nth-child(5),.result-card table tr.total-row td:nth-child(6){grid-column:span 2;flex-direction:column;justify-content:center;padding:8px 4px}
.result-card table tr.total-row td:nth-child(5)::before,.result-card table tr.total-row td:nth-child(6)::before{margin:0 0 3px}
.checks{padding:4px 12px 10px;border-top:0}.check{border-radius:999px;padding:4px 9px}
.card-foot{padding:0 14px 14px}
footer{flex-direction:column;gap:5px;margin-top:25px}}
@media(max-width:360px){.result-card table tbody{padding:10px 8px 2px}.result-card table tbody tr{padding:8px;gap:5px}.result-card table td:nth-child(n+5){padding:8px}.result-card table td{font-size:.98rem}}
/* Fixed-value field: remove the empty stepper columns so the value centers in the full control. */
.stepper.fixed-value{display:flex;justify-content:center;align-items:center}
.stepper.fixed-value input{display:block;flex:1 1 100%;width:100%;text-align:center!important;padding-left:0;padding-right:0}
@media(max-width:600px){.stepper.fixed-value{display:flex}.stepper.fixed-value input{width:100%;text-align:center!important}}

/* Center-align all text and values inside the results tables only. */
.result-card table th,
.result-card table td,
.result-card table th:first-child,
.result-card table td:first-child {
  text-align: center;
}
