/* 폰: 미리 대화 아래 시트 */
.csgrip,.csbar,.csx{display:none}
@media (max-width:760px){
  body.csheet{--csH:58px}
  body.csheet .app.ws .chat{position:fixed;left:0;right:0;bottom:0;z-index:110;min-height:0;max-height:60vh;display:flex;flex-direction:column;background:#fff;border:0;border-radius:18px 18px 0 0;box-shadow:0 -10px 30px rgba(16,24,40,.18);animation:none}
  body.csheet .app.ws .chat .feed{overflow:auto;flex:1;min-height:0;overscroll-behavior:contain}
  body.csheet .app.ws .chat .cin{position:static}
  body.csheet .app.ws .chat .chead{padding:4px 14px 8px}
  body.csheet .csgrip{display:flex;justify-content:center;width:100%;padding:8px 0 4px;flex:none}
  body.csheet .csgrip i{width:40px;height:5px;border-radius:3px;background:var(--line2)}
  body.csheet .csx{display:grid}
  body.csheet .app.ws .chat.fold{max-height:none;border-radius:16px 16px 0 0}
  body.csheet .app.ws .chat.fold>*:not(.csbar){display:none}
  body.csheet .chat.fold .csbar{display:flex}
  .csbar{align-items:center;gap:10px;width:100%;height:var(--csH);padding:0 12px 0 14px;text-align:left}
  .csbar img{width:32px;height:32px;flex:none}
  .csbar .csin{flex:1;height:38px;border:1px solid var(--line);border-radius:19px;display:flex;align-items:center;padding:0 14px;color:var(--faint);font-size:14px;background:var(--sub,#F6F8FB)}
  .csbar .cswait{flex:none;background:var(--pri);color:#fff;font-size:12px;font-weight:800;border-radius:999px;padding:3px 10px}
  .csbar .csdot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--bad,#E5484D);box-shadow:0 0 0 3px #fff}
  .csscrim{position:fixed;inset:0;z-index:105;background:rgba(16,24,40,.32)}
  /* 접힌 바가 아래쪽 버튼을 가리지 않게 */
  body.csheet .board,body.csheet .bbody{padding-bottom:calc(var(--csH) + 16px)}
  body.csheet .quote{bottom:var(--csH)}
  body.csheet .tpanel{bottom:var(--csH);max-height:calc(70vh - var(--csH))}
  body.csheet .toast{bottom:calc(var(--csH) + 12px)}
  body.csheet .timeline{padding-bottom:var(--csH)}
}
@media (max-width:760px){
  /* 시트가 열려 있어도 판 아래쪽을 시트 위로 끌어올려 볼 수 있게 */
  body.csheet.cs-open .app.ws:not(.edit) .board{padding-bottom:62vh}
}
@media (max-width:760px){
  body.csheet .big{bottom:var(--csH)}
}

/* 11-13 미리 에이전트: 생각 중(10~30초) 표시 — 점 셋 + 서버의 한 줄 진행 */
.mthink{display:flex;align-items:center;gap:8px;color:var(--muted,#667);margin:0}
.mthink .mdots{display:inline-flex;gap:3px}
.mthink .mdots i{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.35;animation:mdot 1.2s infinite ease-in-out}
.mthink .mdots i:nth-child(2){animation-delay:.2s}.mthink .mdots i:nth-child(3){animation-delay:.4s}
@keyframes mdot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:.9;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.mthink .mdots i{animation:none;opacity:.6}}
.ccard.mcard{background:transparent}
.ccard.mcard.done{opacity:1}
.ccard.mcard .acts .btn:disabled{opacity:.55}

/* chat-brief-1114: 기획 대화 — 질문 카드(보기 버튼·여러 개 고르기·직접 쓰기)·기획 카드·판의 "Planning with Miri". 폰 375폭 먼저 */
.ccard.bask{gap:14px}
.ccard.bask.done,.ccard.bplan.done{opacity:.72}
.bq{display:flex;flex-direction:column;gap:7px}
.bq .q{display:flex;gap:8px;align-items:flex-start}
.bq .bqn{flex:none;width:20px;height:20px;border-radius:6px;background:var(--pri-soft);color:var(--pri);font-size:11.5px;font-weight:800;display:grid;place-items:center;margin-top:1px}
.bopts{display:flex;flex-direction:column;gap:6px}
.bopt{display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 12px;border-radius:12px;background:var(--sub);border:1.5px solid transparent;text-align:left;font-size:14.5px;font-weight:600;color:var(--ink);line-height:1.35}
.bopt:hover:not(:disabled){border-color:var(--line2);background:#fff}
.bopt i{flex:none;width:18px;height:18px;border-radius:50%;border:2px solid var(--line2);background:#fff;box-sizing:border-box}
.bopt.multi i{border-radius:5px}
.bopt.on{border-color:var(--pri);background:var(--pri-soft)}
.bopt.on i{border-color:var(--pri);background:var(--pri);box-shadow:inset 0 0 0 3px #fff}
.bopt:disabled{cursor:default}
.ccard.done .bopt:not(.on){display:none}
.bown{height:44px;border:1px solid var(--line);border-radius:12px;padding:0 12px;font-size:16px;background:#fff;width:100%;box-sizing:border-box}
.bown:focus{outline:none;border-color:var(--pri-line);box-shadow:0 0 0 3px var(--pri-ring)}
.bowned{font-size:13.5px;font-weight:600;color:var(--ink2);background:var(--pri-soft);border-radius:10px;padding:8px 12px}
.bacts{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.bacts .btn{height:44px}
.bacts .btn.pri{flex:1;min-width:150px}
.ccard.bplan{gap:10px}
.brow{display:flex;flex-direction:column;gap:2px}
.brow>span{font-size:11.5px;font-weight:700;color:var(--muted)}
.brow>b{font-size:14.5px;font-weight:600;line-height:1.5;color:var(--ink)}
.bcuts{margin:0;padding-left:20px;font-size:14px;line-height:1.55;color:var(--ink)}
.bfacts{margin:0;padding-left:18px;font-size:13.5px;line-height:1.55;color:var(--ink2)}
.btexts{display:flex;flex-wrap:wrap;gap:6px}
.btexts em{font-style:normal;font-weight:700;font-size:13.5px;background:var(--ink);color:#fff;border-radius:8px;padding:4px 9px}
/* fix-eltest-1128(엘 1-2): 기획 카드 — 빠진 사실(맨 위, 기존 주의 색) · 한 줄 요약이 가장 먼저 읽히게 · 나머지는 「자세히 보기」(템플릿 문법 접힘과 같은 모양) */
.bmiss{background:var(--warn-soft);border:1px solid var(--warn-line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.bmiss>b{font-size:13px;font-weight:700;color:var(--warn)}
.bmiss>small{font-size:12px;color:var(--ink2)}
.bsum{display:flex;flex-direction:column;gap:2px}
.bfmt{font-size:12px;font-weight:700;color:var(--muted)}
.bcore{margin:0;font-size:17px;font-weight:700;line-height:1.45;color:var(--ink)}
.bgot{margin:0;line-height:1.5}
.tplgram.bmore{margin:2px 0 0}
.tplgram.bmore .tplgram-body{display:flex;flex-direction:column;gap:10px}
.bsub{margin:-6px 0 16px}
.breq{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;font-size:14.5px;font-weight:600;line-height:1.55;white-space:pre-line;max-height:9.5em;overflow:auto}
.bknown{margin:0;padding:10px 14px 10px 30px;background:#fff;border:1px solid var(--line);border-radius:14px;font-size:14px;line-height:1.7}
.brun .bans{display:none}
@media (max-width:760px){
  body.csheet.cs-brief .app.ws .chat{max-height:86vh}
  body.csheet.cs-brief.cs-open .app.ws:not(.edit) .board{padding-bottom:calc(var(--csH) + 16px)}
  .brun{position:sticky;bottom:calc(var(--csH,58px) + 8px)}
  .brun>.small{flex-basis:100%}
  .brun .btn{flex:1;height:44px}
  .brun .bans{display:inline-flex}
}

