/* 06 아래 수익 구조 예상 계산기 (B+안, 2026-10-02). 모든 선택자는 .profit 안에서만 */
.profit{margin-top:96px;padding-top:56px;border-top:1px solid var(--rule);color:var(--ink)}
.profit .p-head{max-width:760px}
.profit .eyebrow{margin:0 0 12px}
.profit h2{font-family:Myeongjo,serif;font-weight:800;font-size:clamp(27px,4vw,44px);line-height:1.3;margin:0 0 14px;color:var(--ink)}
.profit h2 em{font-style:normal;color:var(--tungsten-deep)}
.profit .p-lead{font-size:clamp(15px,1.6vw,18px);line-height:1.65;color:var(--ink-muted);margin:0}
.profit h3{font:700 18px/1.4 Pretendard,sans-serif;margin:0 0 10px}
.profit .p-est{display:inline-block;font:700 11px/1.6 Pretendard,sans-serif;padding:0 7px;border-radius:999px;border:1px solid var(--tungsten);color:var(--tungsten-deep);vertical-align:middle;white-space:nowrap;margin-left:4px}
.profit .p-notice{margin:24px 0 0;display:flex;gap:12px;align-items:flex-start;background:#FFF4DC;border:2px solid var(--tungsten);border-radius:6px;padding:14px 16px;font-size:15px;line-height:1.6;font-weight:600;color:var(--ink)}
.profit .p-notice i{font-style:normal;flex:none;width:26px;height:26px;border-radius:50%;background:var(--tungsten);color:var(--black);display:grid;place-items:center;font-weight:800}
.profit .p-notice p{margin:0}
/* JS 꺼짐·로드 실패: 계산기 대신 안내 */
.profit .p-fallback{margin-top:24px;background:#fff;border:1px solid var(--rule);border-radius:6px;padding:22px 20px;font-size:16px;line-height:1.6}
.profit .p-fallback strong{display:block;font-size:19px;margin-bottom:4px}
.profit .p-calc,.profit .p-ease,.profit .p-cta{display:none}
.profit.p-ready .p-calc{display:grid}
.profit.p-ready .p-ease{display:block}
.profit.p-ready .p-cta{display:flex}
.profit.p-ready .p-fallback{display:none}
.profit.p-ready + .cta-row{display:none}
.profit .p-calc{margin-top:26px;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:20px;align-items:start}
.profit .p-card{background:#fff;border:1px solid var(--rule);border-radius:6px;padding:20px;min-width:0}
/* 입력 */
.profit .p-q{padding:13px 0;border-bottom:1px solid #EFE8DC}
.profit .p-q:last-of-type{border-bottom:0}
.profit .p-lab{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;font-weight:700;font-size:16px;gap:6px 10px}
.profit .p-q small,.profit .p-small{display:block;font-size:12.5px;line-height:1.55;color:var(--ink-muted);margin-top:5px}
.profit .p-row{display:flex;gap:10px;align-items:center;margin-top:8px}
.profit input[type=range]{flex:1;min-width:0;accent-color:var(--tungsten-deep);height:30px;margin:0}
.profit .p-inp{display:flex;align-items:center;border:1px solid var(--rule);border-radius:4px;background:var(--paper);overflow:hidden;min-width:0}
.profit .p-inp input{width:100%;border:0;background:transparent;font:inherit;font-size:16px;padding:9px 8px;text-align:right;color:var(--ink);min-width:0}
.profit .p-inp input::placeholder{color:#9A9488;font-size:14px}
.profit .p-inp input:focus,.profit .p-inp input:focus-visible{outline:none}
.profit .p-inp:focus-within{border-color:var(--tungsten-deep);box-shadow:0 0 0 2px #A85F1233}
.profit .p-inp span{padding:0 9px 0 2px;color:var(--ink-muted);font-size:13px;white-space:nowrap}
.profit .p-row .p-inp{width:136px;flex:none}
.profit .p-hint{margin-top:6px;font-size:13px;font-weight:700;color:var(--tungsten-deep)}
.profit.p-touched .p-hint{display:none}
.profit .p-seg{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.profit .p-seg button{font:inherit;font-size:14px;border:1px solid var(--rule);background:var(--paper);color:var(--ink);padding:7px 13px;border-radius:999px;min-height:36px}
.profit .p-seg button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink);font-weight:700}
.profit .p-switch{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:700;font-size:16px}
.profit .p-switch input{width:22px;height:22px;margin:0;accent-color:var(--tungsten-deep);flex:none}
/* 자동 채움 */
.profit .p-auto-h{margin-top:18px}
.profit .p-arow{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:4px 10px;align-items:center;padding:11px 0;border-bottom:1px dashed #E6DCCB}
.profit .p-arow:last-child{border-bottom:0}
.profit .p-arow .p-name{font-weight:700;font-size:15px}
.profit .p-arow .p-src{grid-column:1/-1;font-size:12px;line-height:1.55;color:var(--ink-muted)}
.profit .p-arow .p-src b{color:var(--tungsten-deep);font-weight:700}
.profit .p-arow.edited .p-src b::after{content:" · 직접 수정함";color:#B3261E}
.profit .p-repay{font-weight:800;font-size:16px;text-align:right}
/* 결과 */
.profit .p-result{background:var(--night);color:var(--text);border-color:var(--night);position:relative}
.profit .p-result h3{color:var(--text);display:flex;justify-content:space-between;align-items:center;gap:10px}
.profit .p-result .p-est{color:var(--tungsten);border-color:var(--tungsten)}
.profit .p-cover{display:grid;place-items:center;text-align:center;min-height:300px;border:1px dashed #3a4150;border-radius:6px;padding:24px;color:var(--muted);font-size:15px;line-height:1.6}
.profit .p-cover strong{display:block;color:var(--text);font-size:20px;margin-bottom:6px}
.profit .p-cover .p-arrow{display:block;font-size:26px;color:var(--tungsten);margin-bottom:8px}
.profit .p-kpi{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.profit .p-kpi>div{background:#161a21;border-radius:4px;padding:12px 13px;min-width:0}
.profit .p-kpi p{margin:0;font-size:12.5px;line-height:1.45;color:var(--muted)}
.profit .p-kpi strong{display:block;font-size:clamp(19px,2.2vw,24px);margin-top:2px;color:var(--text);overflow-wrap:anywhere}
.profit .p-kpi .hl strong{color:var(--tungsten)}
.profit .p-kpi .neg strong{color:#FF8A80}
.profit .p-kpi .wide{grid-column:1/-1}
.profit .p-diff{margin-top:10px;font-size:14px;line-height:1.6;background:#1d2430;border-left:3px solid var(--dawn);padding:10px 12px}
.profit .p-diff b{color:var(--dawn)}
.profit .p-chart{margin-top:14px}
.profit .p-chart svg{width:100%;height:auto;display:block}
.profit .p-legend{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--muted);margin-top:6px}
.profit .p-legend span::before{content:"";display:inline-block;width:14px;height:3px;margin-right:5px;vertical-align:middle;background:var(--c)}
.profit .p-bd{margin-top:12px;font-size:13px;color:var(--muted)}
.profit .p-bd summary{cursor:pointer;color:var(--text);padding:4px 0}
.profit .p-bd .r{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px solid #262a31}
.profit .p-fine{margin-top:12px;font-size:12px;line-height:1.6;color:var(--muted);border-top:1px solid #262a31;padding-top:10px}
.profit .p-ease{margin-top:20px;background:#fff;border:1px solid var(--rule);border-radius:6px;padding:16px 18px;font-size:14.5px;line-height:1.65}
.profit .p-ease b{color:var(--tungsten-deep)}
.profit .p-cta{flex-wrap:wrap;gap:12px;align-items:center;margin-top:26px}
.profit .p-cta .btn{margin-top:0}
.profit .p-sources{margin-top:22px;font-size:12px;line-height:1.6;color:var(--ink-muted)}
.profit .p-sources ol{padding-left:18px;margin:6px 0 0}
.profit [hidden]{display:none!important}
@media (max-width:900px){.profit .p-calc{grid-template-columns:minmax(0,1fr)}}
@media (max-width:768px){
  .profit{margin-top:64px;padding-top:40px}
  .profit .p-card{padding:16px}
  .profit .p-arow{grid-template-columns:minmax(0,1fr) 118px}
  .profit .p-row .p-inp{width:118px}
  .profit .p-notice{font-size:14px}
  .profit .p-cover{min-height:200px}
}
@media (max-width:400px){.profit .p-kpi{grid-template-columns:1fr}.profit .p-kpi .wide{grid-column:auto}}
@media (prefers-reduced-motion:reduce){.profit *{transition:none!important;animation:none!important}}

/* 업무 093(2026-10-12): 좁은 화면·글자 크게 설정에서 버튼 글자가 화면 밖으로 나가지 않게 줄바꿈 */
.profit .p-cta .btn{white-space:normal;max-width:100%;text-align:center}
.profit .p-result-action{margin:4px 0 16px}
.profit .p-result-action .btn{width:100%;font-size:16px;white-space:normal}
#calc-consult-summary{padding:12px;background:#fff4dc;color:#1A1C20;border-left:3px solid #A85F12;margin:12px 0;font-size:14px;line-height:1.7}
