/* ═══ 앱티케어 운영판 추가 스타일 — 브랜드 로고 · 도움말 아이콘 · 시험 구분 · 실시간 공동 편집 · 노션식 학교 선택 · 녹음 전사 상태 ═══ */

/* 브랜드 로고 — aptiLMS 와 같은 심볼(index.html 의 <symbol id="ac-mark">) + 그라디언트 워드마크
   <span class="ac-brand"><svg class="ac-mark" aria-hidden="true"><use href="#ac-mark"/></svg><span class="ac-wordmark">Apticare</span></span>
   기본 = 머리글 크기(심볼 30px · 글자 21px) · .ac-brand--sm = 사이드바 · 바닥글(24px · 18px)
   어두운 바탕: .ac-brand--light (심볼 흰색 · 밝은 바이올렛 그라디언트) */
.ac-brand{display:inline-flex;align-items:center;gap:8px;vertical-align:middle;white-space:nowrap;line-height:1;text-decoration:none}
.ac-mark{width:30px;height:30px;flex:none;display:block;overflow:visible}
.ac-wordmark{font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  font-size:21px;font-weight:800;letter-spacing:-.02em;line-height:1.2;
  background:linear-gradient(120deg,#6439FF 0%,#050C9C 100%);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:#6439FF}
.ac-brand--sm{gap:7px}
.ac-brand--sm .ac-mark{width:24px;height:24px}
.ac-brand--sm .ac-wordmark{font-size:18px}
.ac-brand--light .ac-mark{--bm-d:#fff;--bm-v:#fff}
.ac-brand--light .ac-wordmark{background:linear-gradient(120deg,#C4B5FD 0%,#8FA5FF 100%);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:#C4B5FD}

/* 도움말 아이콘 [?] · 말풍선 — app-base.js hp() 와 한 쌍. 평소에는 차분한 회색, 올리거나(포커스) 열면 브랜드 색 */
.hp{position:relative;display:inline-grid;place-items:center;flex:none;width:18px;height:18px;margin:0 0 0 6px;padding:0;
  border:1.5px solid #aab4c3;border-radius:50%;background:#fff;color:#55627a;cursor:help;vertical-align:-3px;
  font:800 11px/1 Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  letter-spacing:0;text-transform:none;transition:background .12s,border-color .12s,color .12s}
.hp::after{content:"";position:absolute;inset:-7px;border-radius:50%}   /* 손가락으로 누르기 쉽게(보이는 크기는 18px 그대로) */
.hp:hover,.hp.on,.hp:focus-visible{background:var(--brand);border-color:var(--brand);color:#fff}
.hp:focus{outline:none}
.hp:focus-visible{box-shadow:0 0 0 3px rgba(47,95,158,.28)}
.hp-pop{position:fixed;left:0;top:0;z-index:600;display:none;box-sizing:border-box;max-width:min(300px,calc(100vw - 16px));
  background:#fff;color:#22314a;border:1px solid #cfd8e4;border-radius:10px;padding:10px 13px;box-shadow:0 12px 30px rgba(20,30,50,.18);
  font-size:13.5px;line-height:1.6;font-weight:500;letter-spacing:0;text-align:left;white-space:pre-line;word-break:keep-all;overflow-wrap:anywhere}
.hp-pop.show{display:block}
.hp-pop::before{content:"";position:absolute;left:var(--ax,16px);top:-6px;width:10px;height:10px;margin-left:-5px;background:#fff;
  border-left:1px solid #cfd8e4;border-top:1px solid #cfd8e4;transform:rotate(45deg)}
.hp-pop.up::before{top:auto;bottom:-6px;transform:rotate(225deg)}
@media print{.hp,.hp-pop{display:none!important}}
/* 칸 이름 + [?]: 도움말 단추는 <label> 밖(바로 뒤)에 둔다 — label 안에 있으면 입력 칸의 이름에 '도움말: …'이 섞이고,
   button 은 label 안에 둘 수 없다. <div class="flabw"><label class="flab" for="칸">이름</label>${hp(…)}</div> */
.flabw{display:flex;align-items:center;margin-bottom:7px}
.flabw>.flab{margin:0}
.ac-grid .flabw{margin:0}
/* 입력 창에 부제가 없을 때(app-base.js openF 가 .nosub): 제목과 첫 줄 사이 여백 */
.fbox.nosub h3{margin-bottom:12px}

@keyframes sgvSpin{to{transform:rotate(360deg)}}
@keyframes sgvPulse{0%{box-shadow:0 0 0 0 rgba(224,70,79,.45)}70%{box-shadow:0 0 0 7px rgba(224,70,79,0)}100%{box-shadow:0 0 0 0 rgba(224,70,79,0)}}
.spin{display:inline-block;width:11px;height:11px;border-radius:50%;border:2px solid #c3d4ec;border-top-color:var(--brand);animation:sgvSpin .8s linear infinite;vertical-align:-1px;margin-right:5px}
.spin.big{width:26px;height:26px;border-width:3px;margin:0 0 10px}
#mMsg{white-space:pre-line}

/* 성적 그래프: 시험 유형 탭 + 시험 구분(월간 · 주간) */
.seg.ctype .ksep{width:1px;background:#d7dde7;margin:4px 3px}
.seg.ctype button.kd{padding:7px 11px;font-size:12px}
.skd{display:inline-block;font-size:12px;font-weight:700;border-radius:6px;padding:3px 7px;background:#f0f3f8;color:#55627a}
.skd.monthly{background:#eaf1fb;color:#2f5f9e}.skd.weekly{background:#fff3e2;color:#9a5b00}.skd.mid,.skd.final{background:#f1ecfb;color:#5b3a99}

/* 실시간: 접속 기기 · 연결 상태 · 함께 편집 */
.rt-avatars{display:flex;align-items:center;gap:0}
.rt-status{font-size:12.5px;color:#93600a;font-weight:700}
.rt-status.closed,.rt-status.offline{color:var(--risk)}
.coedit-bar{font-size:13.5px;color:#4c5870;margin:-2px 0 12px;min-height:0}
.coedit-bar:empty{display:none}
.codot,.ldot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#e0464f;margin-right:6px;vertical-align:1px;animation:sgvPulse 1.6s infinite}
.rs1.live{color:#c9403f;font-weight:800}
.livewho{color:#b73a39;margin-top:4px;font-size:12.5px}
.toast-act{margin-left:12px;border:0;background:#fff;color:#16223a;border-radius:7px;padding:5px 10px;font-weight:800;font-size:13px;cursor:pointer}
#toast.show .toast-act{pointer-events:auto} /* #toast 는 pointer-events:none — 보일 때 버튼만 누를 수 있게 */
#toast{width:max-content;max-width:min(640px,calc(100vw - 32px))} #toast .toast-act{flex:none;white-space:nowrap} /* 좁은 화면: 긴 알림은 줄바꿈 · 버튼은 화면 안에 */
.mbox,.fbox{max-width:calc(100vw - 40px)} /* 좁은 화면(휴대폰): 확인 · 입력 창이 화면 밖으로 나가 [저장하고 공유] 같은 버튼을 못 누르는 일이 없게 */
.lfmsg{font-size:14px;line-height:1.75;color:#4c5870;margin:2px 0 4px}

/* 녹음 · 전사 상태 */
.txst{display:inline-flex;align-items:center;font-size:12px;font-weight:700;border-radius:6px;padding:2px 7px;white-space:nowrap}
.txst.ok{background:#e9f6f1;color:#12795a}.txst.busy{background:var(--brand-soft);color:var(--brand)}
.txst.fail{background:var(--risk-bg);color:var(--risk)}.txst.new{background:#fff3e2;color:#9a5b00}
.aurow{flex-wrap:wrap;row-gap:4px}
.aurow .lnkbtn{border:0;background:none;color:var(--brand);font-weight:700;font-size:13px;cursor:pointer;padding:2px 4px}
.txbox{white-space:pre-wrap;line-height:1.75;font-size:14px;background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:14px 16px;max-height:52vh;overflow:auto}
.upprog{height:0;position:relative;margin-top:8px}
.upprog:not(:empty){height:22px;background:#eef1f6;border-radius:8px;overflow:hidden}
.upprog i{position:absolute;left:0;top:0;bottom:0;background:#cfe0f5;transition:width .2s}
.upprog span{position:relative;font-size:12.5px;font-weight:700;color:#2f5f9e;padding-left:10px;line-height:22px}

/* 중복 확인: 다른 학생일 수 있음 */
.dupwho.dupwarn{background:#fff6e8;border:1px solid #f2ce9a;border-radius:10px;padding:12px 14px;color:#7a4b00}

/* 리포트 */
.rp-wait{display:flex;flex-direction:column;align-items:center;text-align:center;padding:60px 20px;color:#4c5870;background:#fff;border:1px solid var(--line);border-radius:14px}
.rp-wait b{font-size:15px;color:#16223a}.rp-wait p{max-width:460px;font-size:14px;line-height:1.7}
.seg2.sm button{padding:6px 12px;font-size:13px}
#rActs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rp-ed{transition:box-shadow .15s}

/* 로그인 안내 */
.lg-help p{font-size:13.5px;line-height:1.75;color:#4c5870;margin:6px 0 16px}
/* 아이디 · 비밀번호 찾기: 휴대폰 번호가 없거나 문자가 오지 않을 때 카카오톡 채널 문의 */
.lg-ask{margin-top:18px;padding-top:14px;border-top:1px solid #edf0f4}
.lg-ask p{margin:0 0 4px;font-size:13px;line-height:1.65;color:#5f6b7d;text-align:center}
/* 계정 정보 수정: 칸 아래 도움말(오른쪽 칸에 붙임) */
.ac-hint{grid-column:2;margin:-6px 0 0;font-size:13px;line-height:1.5;color:#5f6b7d}

/* 학교 선택(노션식) */
.nsp{display:inline-flex;align-items:center;max-width:100%;font-size:12.5px;font-weight:700;border-radius:6px;padding:3px 8px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nsel-field{display:flex;align-items:center;gap:6px;text-align:left;cursor:pointer;min-height:38px}
.nsel-field .ph{color:#a3adbb}.nsel-field .car{margin-left:auto;font-style:normal;color:#69758a;font-size:12px}
.nsel-open .nsel-field,.cell-school.nsel-open{border-color:#a9c2e2;box-shadow:0 0 0 3px rgba(47,95,158,.08)}
.cell-school .nsp{font-size:12px;padding:2px 7px}
.nsel-pop{position:fixed;z-index:400;background:#fff;border:1px solid #dfe5ee;border-radius:12px;box-shadow:0 12px 32px rgba(20,30,50,.16);padding:8px;max-height:min(420px,70vh);display:flex;flex-direction:column}
.nsel-in{display:flex;gap:6px;align-items:center;padding:2px 2px 6px;border-bottom:1px solid #eef1f6}
.nsel-in input{flex:1;border:0;outline:0;font-size:13.5px;padding:7px 6px;font-family:inherit;background:transparent}
.nsel-clear{border:0;background:#f2f4f8;color:#55627a;border-radius:7px;font-size:12.5px;font-weight:700;padding:5px 8px;cursor:pointer;white-space:nowrap}
.nsel-hd{font-size:12px;font-weight:800;color:#69758a;padding:8px 6px 4px}
.nsel-list{overflow:auto;min-height:40px}
.nsel-it{display:flex;align-items:center;gap:8px;padding:6px 6px;border-radius:8px;cursor:pointer}
.nsel-it.hi{background:#f2f6fc}.nsel-it:hover{background:#f6f8fb}
.nsel-it.on .nsp{box-shadow:0 0 0 2px rgba(47,95,158,.28)}
.nsel-ck{color:var(--brand);font-weight:900;font-size:12px}
.nsel-new{font-size:13px;font-weight:800;color:#2f5f9e}
.nsel-more{margin-left:auto;border:0;background:transparent;color:#5f6b7d;font-size:15px;line-height:1;border-radius:6px;padding:2px 6px;cursor:pointer}
.nsel-more:hover{background:#eef1f6;color:#4c5870}
.nsel-empty{font-size:13px;color:#5f6b7d;padding:12px 6px}
.nsel-menu{border-top:1px solid #eef1f6;margin-top:6px;padding:10px 4px 4px}
.nsel-mt{margin-bottom:8px}
.nsel-rename{width:100%;border:1px solid var(--line);border-radius:8px;padding:7px 9px;font-size:13px;font-family:inherit}
.nsel-ml{font-size:12px;font-weight:800;color:#69758a;margin:10px 0 6px}
.nsel-colors{display:flex;gap:6px;flex-wrap:wrap}
.nsel-colors button{width:28px;height:24px;border-radius:6px;border:2px solid transparent;font-size:11px;font-weight:800;cursor:pointer}
.nsel-colors button.on{border-color:#2f5f9e}
.nsel-del{margin-top:10px;border:0;background:#fdeeee;color:#b73a39;border-radius:8px;padding:7px 10px;font-weight:800;font-size:13px;cursor:pointer;width:100%}
.nsel-hint{font-size:12.5px;color:#5f6b7d;margin-top:6px;line-height:1.5}

/* 시험 정보 한 번에 입력 줄 */
.iof+.iof{margin-top:8px}
.iof .fpick{min-height:36px;padding:7px 10px}

@media (max-width:760px){
  .rt-avatars{display:none}
  .nsel-pop{left:8px!important;right:8px;width:auto!important}
}
.aunote2{flex-basis:100%;font-size:12.5px;color:#5f6b7d;padding-left:26px}.aunote2.bad{color:var(--risk)}

/* 기획 리뷰 적용(2026-11-25): 지난 예약 · 열어 둔 예약(상담 중 · 종료 전) · 퇴원 · CARE-8 유효 기간 · 보호자 응답 · 업로드 확인 */
.cst.reserved.going{background:#fdeeee;color:#b73a39}   /* 상담 중(종료 전) — 글자 대비 4.5:1 이상 */
.rs1.on.past .rsd{color:#b4532a}
.leftnote{margin-top:6px;font-size:13px;font-weight:600;color:#8a5a0c;background:#fff6e8;border:1px solid #f2ce9a;border-radius:8px;padding:6px 10px;line-height:1.5}
.care8.stale{opacity:.55}
.c8note{margin-top:10px;font-size:13px;color:#5f6b7d;line-height:1.5}
.setnote{margin-top:6px;font-size:13px;font-weight:600;color:#5f6b7d;line-height:1.5}
.nmlist{margin:10px 0 0 18px;font-size:13.5px;line-height:1.8;color:#4c5870;max-height:40vh;overflow:auto}
