/* shop.css — 삽타이쿤 성장 화면. 웹툰의 탭·드로어·채팅 스타일(.wt-*, .wc-*)을 그대로 쓰고 여기서는 고유 부분만. */
#shop{color:var(--tx)}
#shop [hidden]{display:none!important}

/* 데스크톱에서도 페이지 전체가 자연스럽게 스크롤되게 (웹툰과 같은 방식) */
@media(min-width:681px){
  html body[data-app-area="shop"]{height:auto!important;min-height:100vh!important;display:block!important;overflow-x:hidden!important;overflow-y:auto!important}
  html body[data-app-area="shop"] main{display:block!important;flex:none!important;width:min(1320px,calc(100vw - 28px))!important;max-width:none!important;min-height:0!important;height:auto!important;margin:0 auto!important;padding:10px 0 56px!important;overflow:visible!important}
  html body[data-app-area="shop"] #shop:not([hidden]){display:block!important;width:100%!important;height:auto!important;min-height:0!important;padding:0!important;overflow:visible!important}
}

.sh-shell .wt-viewbar a.wt-result-count{color:#5b6b85;text-decoration:none;font-weight:800}
.sh-body{display:grid;gap:14px}

/* 성장 홈 머리 */
.sh-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:20px;align-items:center;padding:22px 24px;border:1px solid #e4dccb;border-radius:22px;background:linear-gradient(135deg,#fff8ea,#fdf2df 55%,#f4f1ff)}
.sh-hero-copy>span{color:#a0723a;font-size:10px;font-weight:950;letter-spacing:.14em}
.sh-hero-copy h1{margin:6px 0 4px;font-size:30px;letter-spacing:-.04em}
.sh-hero-copy p{margin:0;color:#7a6a55;font-size:13px;line-height:1.55}
.sh-hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.sh-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.sh-kpis>div{min-width:0;padding:12px 10px;border:1px solid rgba(228,216,196,.95);border-radius:15px;background:rgba(255,255,255,.85);text-align:center}
.sh-kpis span{display:block;color:#8b7d68;font-size:10px;font-weight:850;white-space:nowrap}
.sh-kpis strong{display:block;margin-top:3px;font-size:24px;letter-spacing:-.04em}
.sh-kpis small{display:block;color:#9a8e7c;font-size:9.5px;line-height:1.3}

.sh-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sh-card{padding:16px 18px;border:1px solid #e1e8f1;border-radius:18px;background:#fff}
.sh-card.sh-span{grid-column:1/-1}
.sh-card>header{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.sh-card h3{margin:0;font-size:16px}
.sh-card header small,.sh-muted{color:#7d899b;font-size:12.5px;line-height:1.55}
.sh-muted{margin:8px 0 0}
.sh-warn{margin:8px 0 0;color:#b45309;font-size:13px;font-weight:700}
.sh-meter{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;margin:7px 0}
.sh-meter span{color:#6b778a;font-size:12px;font-weight:800}
.sh-meter>div{height:10px;border-radius:99px;background:#eef2f7;overflow:hidden}
.sh-meter i{display:block;width:var(--w);height:100%;border-radius:inherit;background:linear-gradient(90deg,#f59e0b,#ef4444)}
.sh-meter.spirit i{background:linear-gradient(90deg,#8b5cf6,#3b82f6)}
.sh-meter b{text-align:right;font-size:13px}
.sh-todo{display:grid;gap:6px}
.sh-todo button{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:8px;padding:10px 12px;border:1px solid #eceff4;border-radius:12px;background:#fafbfd;text-align:left;cursor:pointer;font:inherit}
.sh-todo button span{color:#6b778a;font-size:12.5px;text-align:right}
.sh-timeline{display:grid;gap:8px}
.sh-timeline article{display:grid;grid-template-columns:92px 1fr;gap:10px;padding:10px 0;border-top:1px solid #f0f2f6}
.sh-timeline article:first-child{border-top:0}
.sh-timeline time{color:#8a94a5;font-size:12px;font-weight:800}
.sh-timeline p{margin:3px 0 0;font-size:13px}

.sh-elem{display:inline-block;padding:2px 8px;border-radius:99px;background:color-mix(in srgb,var(--ec) 14%,#fff);color:var(--ec);font-size:11px;font-weight:900;border:1px solid color-mix(in srgb,var(--ec) 30%,#fff)}

/* 영웅 */
.sh-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sh-hero-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.sh-hero-card{display:grid;gap:7px;padding:14px;border:1px solid #e1e8f1;border-radius:16px;background:#fff;text-align:left;cursor:pointer;font:inherit;color:inherit;transition:.15s}
.sh-hero-card:hover{border-color:#c9d6ea;box-shadow:0 8px 22px rgba(31,50,81,.07)}
.sh-hero-card.warn{border-color:#f5d6a6}.sh-hero-card.bad{border-color:#f3b4b4;background:#fffafa}
.sh-hc-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sh-hc-top strong{font-size:16px}
.sh-hc-sub{color:#7d899b;font-size:12px}
.sh-bar{display:grid;grid-template-columns:30px 1fr 30px;align-items:center;gap:6px}
.sh-bar small{color:#8a94a5;font-size:10.5px;font-weight:800}
.sh-bar i{position:relative;display:block;height:7px;border-radius:99px;background:#eef2f7;overflow:hidden}
.sh-bar i:after{content:"";position:absolute;inset:0 auto 0 0;width:var(--w);border-radius:inherit;background:#f59e0b}
.sh-bar b{font-size:11px;text-align:right}
.sh-hc-foot{display:flex;flex-wrap:wrap;gap:4px}
.sh-hc-foot i{padding:2px 7px;border-radius:99px;background:#f3f5f9;color:#5f6b7d;font-size:10.5px;font-style:normal;font-weight:800}
.sh-hc-foot i.ai{background:#efeafd;color:#5b46d6}

/* 편집 드로어 */
.sh-editor{width:min(640px,96vw)!important;height:100dvh!important;max-height:100dvh!important;padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}
.sh-editor header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px}
.sh-editor h2{margin:4px 0}
.sh-editor header p{margin:0;color:#8a94a5;font-size:12px}
.sh-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px}
.sh-growth-form{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:12px;padding:12px;border-radius:14px;background:#f8fafc}
.sh-form label{display:grid;gap:4px;color:#64748b;font-size:12px;font-weight:800}
.sh-form .wide{grid-column:1/-1}
.sh-form input,.sh-form select,.sh-form textarea{width:100%;min-width:0;padding:9px 10px;border:1px solid #d9e1ec;border-radius:10px;background:#fff;color:var(--tx);font:inherit;font-size:16px}
.sh-form textarea{min-height:0;resize:vertical}
.sh-form-actions{display:flex;justify-content:flex-end}

.sh-plan{margin-top:18px;padding-top:16px;border-top:1px solid #eceff4}
.sh-plan>header{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.sh-plan h3{margin:3px 0 0;font-size:17px}
.sh-plan-ask{display:flex;gap:8px}
.sh-plan-ask input{flex:1;min-width:0;padding:10px 12px;border:1px solid #d9e1ec;border-radius:10px;font:inherit;font-size:16px}
.sh-plan-card{margin-top:12px;padding:14px 16px;border:1px solid #e3def7;border-radius:16px;background:#fbfaff;font-size:14px;line-height:1.6}
.sh-plan-sum{margin:0 0 6px;font-weight:700}
.sh-plan-first{margin:0 0 10px;padding:8px 10px;border-radius:10px;background:#fff4e0;color:#8a4b07;font-weight:800}
.sh-plan-card dl{display:grid;grid-template-columns:44px 1fr;gap:4px 10px;margin:0 0 8px}
.sh-plan-card dt{color:#6d5de5;font-weight:900}
.sh-plan-card dd{margin:0}
.sh-plan-card h4{margin:10px 0 4px;font-size:13.5px;color:#4b5563}
.sh-plan-card ul,.sh-plan-card ol{margin:0;padding-left:20px}
.sh-plan-card small{color:#7d899b}
.sh-plan-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid #ebe7fa;color:#7d899b;font-size:12px}
.sh-plan-foot b{color:#16a34a}
.sh-saved{margin-top:12px}
.sh-saved summary{cursor:pointer;color:#5b46d6;font-weight:800;font-size:13px}
.sh-saved pre{margin:8px 0 0;padding:12px;border-radius:12px;background:#f8fafc;white-space:pre-wrap;word-break:keep-all;overflow-wrap:anywhere;font:inherit;font-size:13px;line-height:1.6;max-height:360px;overflow:auto}

/* 코치 */
.sh-chat{padding:0;overflow:hidden}
.sh-chat-hero{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #eef1f6;color:#64748b;font-size:12px;font-weight:800}
.sh-chat-hero select{padding:7px 10px;border:1px solid #d9e1ec;border-radius:10px;font:inherit;font-size:16px}
.sh-chat .wc-compose{padding:12px 16px 14px}
.sh-chat textarea{width:100%;font-size:16px}

@media(max-width:860px){
  .sh-hero{grid-template-columns:1fr;padding:18px}
  .sh-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .sh-hero-copy h1{font-size:25px}
  .sh-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sh-form,.sh-growth-form{grid-template-columns:1fr 1fr}
  .sh-plan-ask{flex-direction:column}
  .sh-timeline article{grid-template-columns:1fr;gap:2px}
  .sh-todo button{grid-template-columns:auto auto;}
  .sh-todo button span{grid-column:1/-1;text-align:left}
  .sh-editor{width:100vw!important}
  #areaBar button{min-width:0;flex:1;padding:9px 10px}
  #areaBar{flex:1 1 100%}
}


/* 운영실: 기존 운동/웹툰 화면에 영향이 없도록 #shop 안으로 한정 */
#shop .sh-body{gap:20px;padding-top:8px}
#shop .sh-hero{background:linear-gradient(120deg,#153c35,#28594a);color:#fff;border:0;padding:28px;border-radius:22px}
#shop .sh-hero-copy>span{color:#c9d7ac}
#shop .sh-hero-copy h1{font-size:34px;margin:9px 0}
#shop .sh-hero-copy p{color:#e3ebe5;max-width:540px}
#shop .sh-hero .act{background:#f4d48f;color:#263e32;border-color:#f4d48f}
#shop .sh-hero .mini-btn{background:transparent;color:#fff;border:1px solid #7c9c8d}
#shop .sh-kpis>div{background:#ffffff0f;border-color:#ffffff25;color:#fff;padding:17px 8px}
#shop .sh-kpis span,#shop .sh-kpis small{color:#cfddd5}
#shop .sh-kpis strong{font-size:28px}
#shop .sh-today>header{margin:3px 0 14px}
#shop .eyebrow{color:#547968;font-size:10px;font-weight:800;letter-spacing:.12em}
#shop .sh-today h2,#shop .sh-page-heading h2{font-size:23px;margin:5px 0;letter-spacing:-.04em}
#shop .sh-today p,#shop .sh-page-heading p{font-size:13px;color:#64756c;margin:5px 0;line-height:1.6}
#shop .sh-focus-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#shop .sh-focus-grid button{display:grid;grid-template-columns:35px 1fr;gap:6px 10px;text-align:left;padding:19px;background:#faf9f5;border:1px solid #e8e4d9;border-radius:17px;cursor:pointer;color:#293b33;font:inherit}
#shop .sh-focus-grid i{grid-row:span 3;display:grid;place-items:center;align-self:start;width:31px;height:31px;background:#e9eddf;border-radius:9px;font-size:12px;font-style:normal;font-weight:800;color:#4b634e}
#shop .sh-focus-grid b{font-size:15px}
#shop .sh-focus-grid span{font-size:12px;line-height:1.6;color:#778278}
#shop .sh-focus-grid em{font-size:11px;font-style:normal;font-weight:800;color:#456d59;margin-top:6px}
#shop button:focus-visible,#shop a:focus-visible,#shop summary:focus-visible{outline:3px solid #458b75;outline-offset:3px}
#shop .sh-card-next{display:block;padding:8px 9px;border-radius:8px;background:#f3f6ef;color:#4a6553;font-size:12px;line-height:1.5}
#shop .sh-bar{grid-template-columns:30px 1fr 42px}
#shop .sh-hero-card{min-height:185px;align-content:start}
#shop .sh-hc-foot{margin-top:3px}
#shop .sh-advice{background:#f6f7ee;border:1px solid #dfe5d0;padding:16px;border-radius:14px;margin:0 0 20px}
#shop .sh-advice>small{font-size:10px;color:#798b66}
#shop .sh-advice h3{margin:6px 0 12px;font-size:16px;color:#36513b}
#shop .sh-advice dl{display:grid;grid-template-columns:36px 1fr;gap:8px;margin:0;font-size:13px;line-height:1.6}
#shop .sh-advice dt{font-weight:800;color:#4f7055}
#shop .sh-advice dd{margin:0}
#shop .sh-advice p{font-size:11px;line-height:1.7;color:#65745b;margin:10px 0 0}
#shop .sh-steps{list-style:none;counter-reset:step;padding:0;display:grid;gap:18px}
#shop .sh-steps li{counter-increment:step;position:relative;padding-left:34px}
#shop .sh-steps li:before{content:counter(step);position:absolute;left:0;top:1px;border-radius:50%;background:#eef3eb;width:23px;height:23px;display:grid;place-items:center;color:#517157;font-size:12px;font-weight:800}
#shop .sh-steps b,#shop .sh-steps span{display:block;font-size:13px;line-height:1.7}
#shop .sh-steps span{color:#728078;margin-top:3px}
#shop .sh-enchant-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#shop .sh-enchant-pair>div{padding:15px;background:#fff7e6;border-radius:12px}
#shop .sh-enchant-pair>div+div{background:#f1edff}
#shop .sh-enchant-pair span{font-size:11px;color:#7d6d48;font-weight:800;display:block;margin-bottom:7px}
#shop .sh-enchant-pair b{font-size:14px}
#shop .sh-enchant-pair p{font-size:12px;line-height:1.7;color:#77756f}
#shop .sh-table-wrap{overflow:auto}
#shop .sh-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.65}
#shop .sh-table th{padding:11px 10px;text-align:left;color:#768275;font-size:11px;background:#f5f7f3;white-space:nowrap}
#shop .sh-table td{padding:12px 10px;border-bottom:1px solid #edf0e9;vertical-align:top;min-width:105px}
#shop .sh-table td:first-child{white-space:nowrap}
#shop .sh-text-button{background:none;border:0;color:#315d45;font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:4px;cursor:pointer;padding:0}
#shop .sh-sources summary{cursor:pointer;font-size:13px;font-weight:700}
#shop .sh-sources p{font-size:12px;color:#758173;line-height:1.7}
#shop .sh-sources a{display:inline-block;margin:5px 16px 5px 0;font-size:12px;color:#426c50}
#shop .sh-calc-head{grid-template-columns:repeat(3,1fr);max-width:620px;margin:15px 0}
#shop .sh-calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
#shop .sh-calc-grid fieldset{min-width:0;border:1px solid #dfe6dc;border-radius:12px;padding:14px;margin:0}
#shop .sh-calc-grid legend{font-size:13px;font-weight:800;color:#487057;padding:0 6px}
#shop .sh-comparison{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:18px 0}
#shop .sh-comparison>div{background:#f0f5ed;padding:16px 20px;border-radius:13px}
#shop .sh-comparison small,#shop .sh-comparison span{display:block;font-size:12px;color:#64765f}
#shop .sh-comparison b{display:block;font-size:30px;color:#31593d;margin:7px 0}
#shop .sh-comparison em{font-size:12px;font-style:normal;font-weight:500;margin-left:5px}
#shop .sh-plan-summary{display:grid;gap:5px;background:#faf9f5;padding:13px 15px;border-radius:12px;margin:15px 0}
#shop .sh-plan-summary b{font-size:13px}
#shop .sh-plan-summary span{font-size:11px;color:#7c8176;line-height:1.6;overflow-wrap:anywhere}
#shop .sh-alert{padding:12px 14px;background:#fff0eb;color:#a94f31;border-radius:10px;font-size:12px;line-height:1.8;margin-bottom:12px}
#shop .sh-slot-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
#shop .sh-slot-summary>div{display:grid;gap:7px;padding:11px 9px;border:1px solid #e2e8df;border-radius:10px}
#shop .sh-slot-summary b{font-size:11px;color:#4f6d55}
#shop .sh-slot-summary span,#shop .sh-slot-summary small{font-size:10px;color:#7e877a;line-height:1.5}
#shop .sh-wave-tabs{display:flex;gap:8px;margin:18px 0 14px}
#shop .sh-wave-tabs button{border:1px solid #d9e3d3;background:#fff;color:#6d7c66;border-radius:10px;padding:11px 17px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
#shop .sh-wave-tabs button.on{background:#31583e;color:#fff;border-color:#31583e}
#shop .sh-team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#shop .sh-team-card{padding:15px;border:1px solid #e0e6db;border-radius:14px;background:#fcfdfb;min-width:0}
#shop .sh-team-card>header{display:flex;align-items:center;gap:8px;margin-bottom:14px}
#shop .sh-team-card>header span{border-radius:7px;padding:5px 8px;background:#e5eddf;color:#3c6244;font-size:11px;font-weight:800}
#shop .sh-team-card>header b{font-size:12px}
#shop .sh-team-card>header small{font-size:9px;color:#899582;margin-left:auto}
#shop .sh-team-card details{font-size:11px;color:#6e7c65}
#shop .sh-team-card summary{cursor:pointer;padding:4px 0}
#shop .sh-team-card details label{margin-top:8px}
#shop .sh-team-card .sh-form{gap:9px}
#shop .sh-team-card select{font-size:13px}
#shop .sh-shell .wt-view-tabs{flex-wrap:wrap}
#shop .sh-shell .wt-viewbar{flex-wrap:wrap;gap:10px}
#shop .sh-shell .wt-view-tabs button{white-space:nowrap;min-height:40px}
@media(max-width:1050px){#shop .sh-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#shop .sh-slot-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){#shop .sh-focus-grid{grid-template-columns:1fr}#shop .sh-focus-grid button{padding:15px}#shop .sh-hero{padding:20px}#shop .sh-team-grid{grid-template-columns:1fr}#shop .sh-calc-grid{grid-template-columns:1fr}#shop .sh-comparison>div{padding:14px 10px}#shop .sh-comparison b{font-size:25px}#shop .sh-card{padding:16px 13px}#shop .sh-card>header{flex-wrap:wrap}#shop .sh-enchant-pair{grid-template-columns:1fr}#shop .sh-table{min-width:520px}#shop .sh-shell .wt-view-tabs{gap:3px}#shop .sh-shell .wt-view-tabs button{font-size:12px;padding:8px 10px}}

#shop .sh-hero .mini-btn{color:#fff!important;min-height:36px;font-size:12px}
