/* 11/04 영어 탭 (english.js). 색·브릭·글꼴 = 9안 그대로, 영어 색 = 청록 #17A2B2 (진한 #0F7A87)
   클래스는 모두 eg 로 시작 (다른 화면과 안 겹치게) */
@keyframes egSpin{to{transform:rotate(360deg)}}
@keyframes egBlink{0%,80%,100%{opacity:.25}40%{opacity:1}}
@keyframes egPulse{0%{box-shadow:0 5px 0 #B5231F,0 0 0 0 rgba(227,52,47,.35)}100%{box-shadow:0 5px 0 #B5231F,0 0 0 18px rgba(227,52,47,0)}}

.views button.veng{display:inline-flex;align-items:center;gap:5px}
.views button.veng svg{flex-shrink:0;opacity:.45;transition:opacity 140ms}
.views button.veng[aria-pressed="true"] svg{opacity:1}
/* PC(왼쪽 칸 400px): 탭이 여섯이면 「영어」가 둘째 줄로 밀림 → 그림 빼고 간격만 좁혀 한 줄 */
@media (min-width:1101px){ body.tabs6 .views{gap:16px} body.tabs6 .views button svg{display:none} }

.v-eng .datebox,.v-eng .people,.v-eng .motto,.v-eng .addbar{display:none!important}
.v-eng .left{justify-content:flex-start}
.v-eng .ltop{display:flex;flex-direction:column;min-height:0;flex:1}
.egleft{margin-top:26px;display:flex;flex-direction:column;gap:14px;min-height:0;overflow:auto;padding:8px 6px 40px 2px;margin-right:-6px}
.egleft[hidden]{display:none}
.eng{padding:28px 0 0;min-width:0}

.egbtn{border:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:12px 18px;border-radius:10px;font-size:15px;font-weight:800;color:var(--ink);background:#fff;box-shadow:0 4px 0 var(--edge);white-space:nowrap;transition:transform 80ms}
.egbtn:active{transform:translateY(3px);box-shadow:none}
.egbtn.sm{padding:8px 12px;font-size:13px;border-radius:8px;box-shadow:0 3px 0 var(--edge)}
.egbtn.teal{background:#17A2B2;color:#fff;box-shadow:0 4px 0 #0F7A87}
.egbtn.teal.sm{box-shadow:0 3px 0 #0F7A87}
.egbtn.red{background:var(--red);color:#fff;box-shadow:0 3px 0 var(--red-d)}
.egbtn.ghost{background:none;box-shadow:none;color:var(--mute)}
.egbtn:disabled{opacity:.45;cursor:default;transform:none}

.eglhead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.eglhead h2{margin:0;font-size:26px;font-weight:800;letter-spacing:-.03em}
.egnote{padding:10px 12px;border-radius:8px;background:#FFF4D6;color:#8A6A00;font-size:13px;font-weight:700}
.egstart{display:flex;flex-direction:column;gap:10px}
.egbig{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;padding:15px 16px;border:0;border-radius:12px;background:#17A2B2;color:#fff;text-align:left;box-shadow:0 4px 0 #0F7A87;transition:transform 80ms}
.egbig:active{transform:translateY(3px);box-shadow:none}
.egbig b{font-size:17px;font-weight:800;letter-spacing:-.02em}
.egbig b em{font-style:normal;display:inline-block;min-width:22px;padding:0 7px;margin-left:4px;border-radius:11px;background:#fff;color:#0F7A87;font-family:var(--num);font-size:14px;text-align:center}
.egbig small{font-size:12.5px;opacity:.88;font-weight:600}
.egbig.alt{background:#fff;color:var(--ink);box-shadow:0 4px 0 var(--edge)}
.egbig.alt b em{background:#17A2B2;color:#fff}
.egbig.alt small{color:var(--mute);opacity:1}
.egbig.on{outline:2px solid #0F7A87;outline-offset:2px}
.egweek{font-size:13px;color:var(--mute);font-weight:600}
.egweek b{color:#0F7A87;font-family:var(--num);font-size:15px}
.eglist{display:flex;flex-direction:column;gap:8px}
.egcard{display:flex;flex-direction:column;gap:4px;width:100%;padding:12px 14px;border:0;border-radius:10px;background:#fff;text-align:left;color:var(--ink);box-shadow:0 3px 0 var(--edge)}
.egcard.on{box-shadow:0 3px 0 #0F7A87,inset 0 0 0 2px #17A2B2}
.egcard b{font-size:15px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.egm{font-size:12px;color:var(--mute);font-weight:600;display:flex;align-items:center;gap:6px}
.egdot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#17A2B2}
.egempty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:30px 10px;color:var(--mute);font-size:14px;line-height:1.6}
.egempty p{margin:0}
.eghint{display:flex;flex-direction:column;align-items:center;gap:14px;padding:120px 20px;color:var(--mute);text-align:center;font-size:15px}

.egpane{display:flex;flex-direction:column;gap:14px;min-height:calc(100dvh - 60px)}
.egtop{display:flex;align-items:center;gap:10px}
.egback{display:none;width:38px;height:38px;flex-shrink:0;border:0;border-radius:8px;background:#fff;box-shadow:0 3px 0 var(--edge);place-items:center;color:var(--ink)}
.egtt{flex:1;min-width:0;display:flex;flex-direction:column}
.egtt b{font-size:22px;font-weight:800;letter-spacing:-.03em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.egtt small{font-size:12.5px;color:var(--mute);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.egtopr{display:flex;gap:6px;flex-shrink:0}
.eghelp{margin:0;font-size:13px;color:var(--mute);line-height:1.6}
.egacts{display:flex;justify-content:flex-end;gap:10px}

.egtopics{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}
.egtopic{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:14px;border:0;border-radius:10px;background:#fff;text-align:left;box-shadow:0 3px 0 var(--edge);color:var(--ink)}
.egtopic b{font-size:15px;font-weight:800}
.egtopic small{font-size:12px;color:var(--mute)}
.egtopic.on{box-shadow:0 3px 0 #0F7A87,inset 0 0 0 2px #17A2B2}
.egcustom{width:100%;border:0;border-radius:10px;background:#fff;padding:12px 14px;font-size:15px;line-height:1.5;box-shadow:0 3px 0 var(--edge);resize:vertical;outline:0}
.egcustom:focus{box-shadow:0 3px 0 var(--edge),inset 0 0 0 2px #17A2B2}
.egvoiceline{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:10px;background:#fff;font-size:13px;font-weight:700;color:var(--soft);box-shadow:0 3px 0 var(--edge)}

.egset h4{margin:0 0 8px;font-size:14px;font-weight:800}
.egset h4 small,.egvg h4 small{margin-left:8px;font-size:12px;font-weight:600;color:var(--mute)}
.egsegs{display:flex;flex-wrap:wrap;gap:6px}
.egseg{border:0;padding:8px 14px;border-radius:8px;background:#fff;font-size:13px;font-weight:800;color:var(--soft);box-shadow:0 3px 0 var(--edge)}
.egseg.on{background:#17A2B2;color:#fff;box-shadow:0 3px 0 #0F7A87}
.egvg{margin:0 0 14px}
.egvg h4{margin:0 0 6px;font-size:13px;font-weight:800;color:var(--soft)}
.egvs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.egv{display:flex;align-items:center;gap:4px;padding:4px 4px 4px 0;border-radius:10px;background:#fff;box-shadow:0 3px 0 var(--edge)}
.egv.on{box-shadow:0 3px 0 #0F7A87,inset 0 0 0 2px #17A2B2}
.egvpick{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;border:0;background:none;padding:6px 10px;text-align:left;color:var(--ink)}
.egvpick b{font-size:14px;font-weight:800}
.egvpick small{font-size:11.5px;color:var(--mute)}

.egplay{display:inline-flex;align-items:center;gap:5px;border:0;padding:6px 10px;border-radius:16px;background:#E2F4F6;color:#0F7A87;font-size:12px;font-weight:800;vertical-align:middle}
.egplay:active{transform:translateY(1px)}
.egplay.me{background:#EEF0F2;color:var(--soft)}

/* 대화 */
.egses{gap:10px}
.egchat{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;padding:6px 2px 14px;overflow-y:auto;max-height:calc(100dvh - 210px)}
.egrow{display:flex;gap:8px;align-items:flex-end}
.egrow.ai{align-self:flex-start;max-width:min(640px,92%)}
.egrow.me{flex-direction:column;align-items:flex-end;align-self:flex-end;max-width:min(640px,92%)}
.egrow.ai>svg{flex-shrink:0}
.egbub{padding:12px 14px;border-radius:14px;background:#fff;box-shadow:0 3px 0 var(--edge);font-size:15.5px;line-height:1.55}
.egbub p{margin:0}
.egbub.ai{border-bottom-left-radius:4px}
.egbub.me{background:#DDF1F3;box-shadow:0 3px 0 #B9DDE1;border-bottom-right-radius:4px}
.egbub.fail{background:#FDE3E2;box-shadow:0 3px 0 #F1B9B7;display:flex;align-items:center;gap:10px}
.egbubf{display:flex;align-items:center;gap:8px;margin-top:8px}
.egbubf:empty{display:none}
.egwait{font-size:12px;color:var(--mute);font-weight:600}
.egdur{font-size:12px;color:var(--mute);font-family:var(--num)}
.egdots{display:inline-flex;gap:4px;padding:2px 2px}
.egdots i{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.25;animation:egBlink 1.2s infinite}
.egdots i:nth-child(2){animation-delay:.2s}.egdots i:nth-child(3){animation-delay:.4s}
.egfix{display:flex;flex-direction:column;gap:5px;margin:-2px 0 10px;padding:9px 11px;border-radius:9px;background:#FFF6DA;font-size:14px}
.egfixl{line-height:1.5}
.egfix s,.egfixp s,.egwhy s,.egsum s,.egres s{color:var(--mute);text-decoration-color:var(--red)}
.egtag{display:inline-block;margin-right:6px;padding:1px 7px;border-radius:5px;background:#17A2B2;color:#fff;font-size:11px;font-weight:800;vertical-align:1px}
.egtag.soft{background:#E2F4F6;color:#0F7A87}
.egtag.red{background:#FDE3E2;color:var(--red-d)}
.egw{border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;text-underline-offset:4px}
.egw.egbad{text-decoration:underline wavy var(--red);text-decoration-thickness:1.6px}
.egw.egstr{text-decoration:underline dotted #E08A00;text-decoration-thickness:2.4px}
.egw.on{background:#fff;border-radius:4px}
.egpop{margin-top:8px;padding:10px 12px;border-radius:10px;background:#fff;font-size:13.5px;line-height:1.55;display:flex;flex-direction:column;gap:6px}
.egpop>b{font-size:15px}
.egpopw{font-weight:800;color:var(--red-d)}
.egpop p{margin:0;color:var(--soft)}
.egpopb{display:flex;gap:6px}
.egfb{width:100%;min-width:min(420px,80vw);border-radius:12px;background:#fff;box-shadow:0 3px 0 var(--edge);overflow:hidden}
.egfbh{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;background:none;padding:10px 14px;font-size:13px;font-weight:800;color:var(--ink);text-align:left}
.egfbh i{font-style:normal;color:var(--mute);font-size:12px}
.egfbb{display:flex;flex-direction:column;gap:10px;padding:0 14px 14px}
.egfbr{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding-top:10px;border-top:1px dashed var(--edge)}
.egfbr.good{color:#23793A;font-size:13.5px;font-weight:700}
.egen{margin:0;font-size:15px;line-height:1.55}
.egfixp{margin:0;font-size:14.5px;line-height:1.55}
.egfixp.soft{color:var(--soft)}
.egwhy{margin:0;font-size:13px;color:var(--soft);line-height:1.6}
.egfbwait{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--mute);font-weight:600}
.egspin{width:12px;height:12px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:egSpin .8s linear infinite;flex-shrink:0}
.egsum{align-self:stretch;padding:16px;border-radius:12px;background:#fff;box-shadow:0 3px 0 var(--edge);font-size:14px}
.egsum h4{margin:0 0 10px;font-size:15px}
.egsumg{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}
.egsumg div{display:flex;flex-direction:column;align-items:center;padding:8px 4px;border-radius:8px;background:var(--bg)}
.egsumg b{font-family:var(--num);font-size:18px;color:#0F7A87}
.egsumg small{font-size:11.5px;color:var(--mute)}
.egsum p{margin:6px 0}
.egsum ul{margin:6px 0;padding-left:18px;line-height:1.6}

/* 마이크 줄 */
.egmic{position:sticky;bottom:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;padding:12px 0 calc(14px + env(safe-area-inset-bottom));background:linear-gradient(to bottom,rgba(242,242,240,0),var(--bg) 26%)}
.egmic:empty{display:none}
.egmicbtn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:260px;padding:16px 24px;border:0;border-radius:40px;background:#fff;color:var(--soft);font-size:16px;font-weight:800;box-shadow:0 5px 0 var(--edge)}
.egmicbtn.go{background:#17A2B2;color:#fff;box-shadow:0 5px 0 #0F7A87}
.egmicbtn.rec{background:var(--red);color:#fff;animation:egPulse 1.4s infinite}
.egmicbtn b{font-family:var(--num);font-weight:600}
.egmicbtn:active:not(:disabled){transform:translateY(3px)}
.egrecdot{width:10px;height:10px;border-radius:2px;background:#fff}
.egmichint{width:100%;text-align:center;font-size:12px;color:var(--mute)}
.eglevel{width:120px;height:8px;border-radius:4px;background:var(--grey);overflow:hidden}
.eglevel i{display:block;height:100%;width:0;background:#17A2B2;transition:width 90ms}
.egmicnote{padding:12px 14px;border-radius:10px;background:#FFF4D6;color:#8A6A00;font-size:13.5px;font-weight:700;display:flex;align-items:center;gap:10px;flex-wrap:wrap}

/* 카드 */
.egcards{display:flex;flex-direction:column;gap:10px;padding-bottom:40px}
.egcardx{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border-radius:12px;background:#fff;box-shadow:0 3px 0 var(--edge)}
.egctx{margin:0;font-size:13px;color:var(--mute);line-height:1.5}
.egcardf{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--mute);font-weight:600}
.egtest{display:flex;flex-direction:column;gap:14px}
.egtest .egbub{align-self:flex-start;max-width:640px}
.egres{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border-radius:12px;background:#fff;box-shadow:0 3px 0 var(--edge)}
.egres p{margin:0;line-height:1.55}
.egres.ok{box-shadow:0 3px 0 #2C7D37,inset 0 0 0 2px #3DA64A}
.egres.no{box-shadow:0 3px 0 #C46416,inset 0 0 0 2px #F58220}

@media (max-width:759px){
  .egleft{margin-top:14px;padding:6px 2px 30px;margin-right:0;overflow:visible}
  body.eg-det .egleft{display:none!important}
  body.eg-det .v-eng .left,body.eg-det.v-eng .left{padding-bottom:0}
  .eng{padding:6px 0 0}
  .egback{display:grid}
  .egtt b{font-size:19px}
  .egchat{max-height:none;overflow:visible}
  .egpane{min-height:calc(100dvh - 120px)}
  .egmicbtn{min-width:0;width:100%}
  .eghint{display:none}
  .egsumg{grid-template-columns:repeat(2,1fr)}
  .egfb{min-width:0}
}
