/* 설하소리 사이트 맞춤 층.
   요소의 모양은 라이브러리(/lib/*.css, 원본은 motion-kit 의 web/)에서 온다. 여기에는 "이 자리에서만 다른 값"만 적는다.
   크기는 라이브러리 크기 값으로 준다: --fit-h(높이) · --fit-fs(글자) · --fit-px(좌우 여백) · --fit-r(모서리). 색·테두리·모양을 새로 정하지 않는다.
   모든 페이지 CSS 뒤에 불러온다. 모든 화면이 이 파일을 읽으므로, 한 화면 묶음에만 해당하는 줄은 body 의 묶음 클래스(.sah-academy 등)로 좁힌다. */

/* ── 버튼 (.su-btn) ─────────────────────────────────────────────────────────── */
/* 표 안 줄 동작: 낮고 작은 버튼. 좌우 여백과 글자 크기를 직접 적는 까닭: .row-actions button 규칙(suite.css)이 라이브러리 값보다 세다 */
.business-record-table .row-actions .row-action{--fit-h:32px;padding:0 9px;font-size:12px}
/* 관찰 기록: 기록 줄의 작은 버튼 / 필터 줄 버튼 / 목록 머리의 아주 작은 버튼 */
.observation-history-actions .outline-button{--fit-h:36px;--fit-fs:12px;--fit-px:12px}
.observation-history-filters .outline-button{--fit-h:44px}
.observation-history-list .observation-list-heading .outline-button{--fit-h:30px;--fit-fs:11px;--fit-px:8px}
/* 회의: 발언자 줄의 작은 버튼 */
.meeting-speaker-action.outline-button{--fit-h:32px;--fit-px:10px}
/* 회의: 이름 제안은 글이 길어 줄이 바뀐다 → 높이를 내용에 맡긴다 */
.meeting-name-suggestion .outline-button{height:auto;min-height:var(--fit-h);padding-block:6px}
/* 안내서 아래 버튼 */
.guide-detail-footer .outline-button{--fit-h:44px}

/* ── 글자 동작 (.su-link) ────────────────────────────────────────────────────── */
/* 학원관리·포털의 글자 동작은 둘레 글자 크기와 상관없이 13px 이고(링크로 쓴 것 포함), 위아래 5px 을 둔다: 누르는 자리를 넓히고 예전 줄 높이를 지킨다.
   :where = 화면 묶음으로만 좁히고 무게는 그대로 둔다(자리별 규칙이 계속 이기게). 다른 묶음(상담·학생 등)은 옮길 때 자기 줄을 더한다 */
:where(.sah-academy,.sah-portal) .text-button{padding:5px 0;font-size:13px}

/* ── 날짜 · 선택 칸 버튼 (.sdp-trigger) ─────────────────────────────────────────── */
/* 입력 칸을 라이브러리로 옮긴 화면 묶음에서는 날짜·선택 칸 버튼도 같은 높이(--fit-h)로 맞춘다 */
:where(.sah-academy,.sah-portal) .sdp-trigger{min-height:var(--fit-h)}

/* ── 패널 (.su-panel) ──────────────────────────────────────────────────────── */
/* 회의 예시 안내 메모(점선 상자): 본문보다 작은 글자, 아래 내용과 18px 띄운다 */
.meeting-demo-note{--fit-fs:11px;margin-bottom:18px}

/* ── 표 (.su-table) ───────────────────────────────────────────────────────── */
/* 학원관리 표는 줄이 높다: 머리줄 46px · 본문 56px 이상(한 줄에 버튼·배지가 같이 놓인다). 칸 위아래 여백은 줄 높이 값(--fit-row)으로 준다 */
:where(.sah-academy,.sah-portal) .su-table{--fit-row:44px}
:where(.sah-academy,.sah-portal) .su-table th{height:46px}
:where(.sah-academy,.sah-portal) .su-table td{height:56px}

/* ── 탭 (.su-tabs) ────────────────────────────────────────────────────────── */
/* 학생 상태 체크의 탭은 글자 폭에 가깝게 좁다: 좌우 여백을 줄이고(밑줄이 글자 폭을 따른다) 탭 사이를 그만큼 띄운다 */
.observation-page .work-tabs{--fit-px:6px;gap:12px}

/* ── 배지 (.su-badge) ──────────────────────────────────────────────────────── */
/* 업무 화면의 꼬리표: 좁은 화면에서는 글이 두 줄이 될 수 있다(work-ui.css 의 좁은 화면 규칙) → 높이를 내용에 맡긴다 */
.work-tag{height:auto;min-height:calc(var(--fit-fs) + 9px)}

/* ── 입력 칸 묶음 (.su-field) ─────────────────────────────────────────────────── */
/* 막대 안 칸의 너비는 운영 화면 것이다(입력 160px · 선택 칸은 내용만큼 · 격자 칸). 라이브러리는 막대 안 묶음을 168px 로 맞추는데, 그러면 칸 너비가 달라진다 */
:where(.sah-academy,.sah-portal) .su-filterbar>.su-field:where(:not(.su-filterbar-grow)){flex:0 1 auto}

/* ── 체크 상자 (.su-check) ───────────────────────────────────────────────────── */
/* 학생 상태 체크의 둥근 선택 표시와 관찰 상태 칩은 체크 상자 모양이 아니라 옮기지 않았다(자기 규칙이 그린다). 업무 화면 체크 줄에서 뺀 가운데 맞춤만 여기서 지킨다 */
.observation-student-row>.work-check,.observation-compose .work-checks .work-check{align-items:center}
/* 수업 요일: 편집창 반 너비 칸에 일곱 개가 한 줄로 들어가도록 네모를 글자 위에 쌓는다(운영 화면의 배치 그대로. 옆으로 놓으면 줄이 넘어간다) */
.weekday-field .su-check{flex-direction:column;align-items:center}

/* ── 숫자 카드 (.su-stat) ────────────────────────────────────────────────────── */
/* 출석부 위 숫자 띠: 목록 바로 위 좁은 자리라 이름표와 값을 한 줄에 나란히 놓는 낮은 카드다(여백·줄 맞춤은 attendance.css 에 남긴 자리 값) */
.attendance-overview .su-stat{flex-direction:row}

/* ── 소식: 버튼 (.su-btn) ────────────────────────────────────────────────────── */
/* 계정 목록 줄의 동작 버튼: 좁은 칸(165px)에 버튼 두세 개가 한 줄로 들어가야 해서 낮고 작다(전과 같은 36px · 11px · 좌우 10px). ⋯ 버튼도 이 높이를 따른다 */
:where(.sah-community) .admin-user-actions{--fit-h:36px;--fit-fs:11px;--fit-px:10px}
/* 그 줄의 버튼은 글자 폭보다 줄어들지 않는다(학생 계정 목록은 한 줄에 버튼이 여덟 개까지 놓인다. 라이브러리 버튼은 좁은 자리에서 줄어들게 되어 있다) */
:where(.sah-community) .admin-user-actions>.su-btn{flex:none}

/* ── 상담: 버튼 (.su-btn) ────────────────────────────────────────────────────── */
/* 오늘 일정 줄의 버튼: 낮고 작다 */
:where(.sah-counsel) .row-actions .su-btn{--fit-h:34px;--fit-fs:12px;--fit-px:12px}
/* 작은 달력의 달 넘기기: 26px 원(아이콘 버튼 지름 = --fit-h - 6px) */
:where(.sah-counsel) .mini-head .su-btn{--fit-h:32px}
/* 상담록 옆 '학생 요청' 상자의 요약 버튼: 좁은 옆 칸이라 글자가 작고, 누르는 높이는 44px */
:where(.sah-counsel) .request-note .su-btn{--fit-h:44px;--fit-fs:12px}
/* 상담 준비: 폼 아래 동작 줄 · 요청 요약 상자 · 전사 자료 머리의 버튼은 글자가 한 단계 작다 */
:where(.sah-counsel) :is(.wf-actions,.counsel-source-heading) .su-btn,:where(.sah-counsel) .wf-summary>.su-btn{--fit-fs:12px}
/* 상담 요약 머리의 저장 버튼: 좌우 여백 14px */
:where(.sah-counsel) .record-summary-tools .su-btn{--fit-px:14px}
/* 좁은 화면의 달 넘기기: 운영 규칙이 너비 30px · 최소 높이 32px 로 줄인다 → 찌그러지지 않게 32px 원으로 맞춘다(둥근 아이콘 버튼 지름 = --fit-h - 6px) */
@media(max-width:650px){:where(.sah-counsel) .month-toolbar .su-btn--icon{--fit-h:38px;width:calc(var(--fit-h) - 6px)}}

/* ── 소식: 글자 동작 (.su-link) ────────────────────────────────────────────────── */
/* 계정 줄의 '[편집됨]': 이름 아래 작은 글씨(아이디 · 소속 11px)와 같은 줄에 놓이는 꼬리표라 글자를 그 크기에 맞춘다 */
:where(.sah-community) .admin-edited-link{--fit-fs:11px}

/* ── 소식: 날짜 · 선택 칸 버튼 (.sdp-trigger) ─────────────────────────────────────── */
/* 입력 칸을 라이브러리로 옮겼으므로 날짜·선택 칸 버튼도 같은 높이(--fit-h)로 맞춘다(학원관리 묶음의 줄과 같은 뜻) */
:where(.sah-community) .sdp-trigger{min-height:var(--fit-h)}

/* ── 상담: 글자 동작 (.su-link) ────────────────────────────────────────────────── */
/* 상담의 글자 동작은 버튼 줄·표·카드 아래에 버튼처럼 놓인다: 누르는 높이를 옆 버튼과 같게(--fit-h) 지키고, 아이콘이 붙는 것(열기)이 있어 가운데 맞춤으로 둔다. 줄은 바꾸지 않는다(운영 화면 그대로).
   링크(a)로 쓴 것도 버튼과 같은 글자 크기. :where = 화면 묶음으로만 좁히고 무게는 그대로 둔다(자리별 규칙·좁은 화면 규칙이 계속 이기게) */
:where(.sah-counsel) .text-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--fit-gap);min-height:var(--fit-h);font-size:var(--fit-fs);white-space:nowrap}
/* 패널 머리의 '전체 보기': 낮고 작다 */
:where(.sah-counsel) .panel-head .text-button{--fit-h:32px;--fit-fs:12px}
/* 월간 요약 학생 표의 '보기': 누르는 높이 44px */
:where(.sah-counsel) .summary-students .text-button{--fit-h:44px}
/* 상담 준비: 신청 취소 · 결재 폼의 '내가 상담' · 전사 자료 줄의 동작(버튼 포함)은 글자가 한 단계 작다 */
:where(.sah-counsel) :is(.wf-cancel,.wf-form-grid>div)>.text-button,:where(.sah-counsel) .counsel-source-actions{--fit-fs:12px}
/* [편집됨] 표시: 본문 옆에 붙는 작은 글자 */
:where(.sah-counsel) .record-edited{--fit-fs:12px}

/* ── 소식: 탭 (.su-tabs) ────────────────────────────────────────────────────── */
/* 소식 분류 탭은 패널 너비를 똑같이 나눠 갖는다(자리 값 flex:1 은 styles.css 에 남아 있다) → 넓어진 탭 안에서 글자를 가운데에 둔다 */
:where(.sah-community) .tabs>.tab{justify-content:center}

/* ── 안내 문구 (.su-alert) ───────────────────────────────────────────────────── */
/* 안내 상자 위아래 16px 은 그 화면의 본문 간격이다(라이브러리 안내 문구는 바깥 여백이 없다). 무게를 예전 .callout 과 같게 둬서(:where) 자리별 규칙이 계속 이긴다 */
:where(.sah-academy,.sah-portal) .su-alert:where(.callout){margin:16px 0}

/* ── 소식: 배지 (.su-badge) ──────────────────────────────────────────────────── */
/* 계정 목록의 상태 배지: 좁은 칸(80px)에서 글이 두 줄이 될 수 있다('새 로그인 5분 제한'. admin.css 가 줄바꿈을 허용한다) → 높이를 내용에 맡긴다 */
:where(.sah-community) .admin-account-status .admin-status-pill{height:auto;min-height:calc(var(--fit-fs) + 9px)}

/* ── 표: 출결 격자 (.su-table--grid) ──────────────────────────────────────────── */
/* 격자 안 출결 표시(미체크 칩 · 수업 없는 날의 점)는 흐린 글자였다: 예전에는 칸 글자색(secondary)을 물려받았는데, 라이브러리 표의 칸은 먹색이다 */
.su-table--grid .session-month-day{color:var(--secondary)}

/* ── 상담: 글자 입력 칸 (.su-input) ─────────────────────────────────────────────── */
/* 찾기 칸 안의 돋보기(18px): 칸 높이가 라이브러리 값(--fit-h)이 되었으니 그 가운데에 둔다 */
:where(.sah-counsel) .search .icon{top:calc((var(--fit-h) - 18px)/2)}

/* ── 상담: 날짜 · 선택 칸 버튼 (.sdp-trigger) ─────────────────────────────────────── */
/* 입력 칸을 라이브러리로 옮겼으니 같은 줄의 날짜·선택 칸 버튼도 같은 높이(--fit-h)로 맞춘다 */
:where(.sah-counsel) .sdp-trigger{min-height:var(--fit-h)}

/* ── 상담: 패널 (.su-panel) ──────────────────────────────────────────────────── */
/* 상담록 본문 패널: 탭 줄과 저장 줄이 화면에 붙어 따라오므로(sticky) 넘침을 숨기는 --flush 를 쓸 수 없다. 여백만 0 으로 둔다 */
:where(.sah-counsel) .detail-grid>.su-panel{padding:0}

/* ── 상담: 표 (.su-table) ───────────────────────────────────────────────────── */
/* 상담의 표는 패널 가장자리까지 찬다: 칸 좌우 여백을 22px(= --fit-px - 4px)로 두어 위의 패널 머리줄(25px)과 줄을 맞춘다 */
:where(.sah-counsel) .su-table{--fit-px:26px}

/* ── 상담: 페이지 제목 (.su-heading) ────────────────────────────────────────────── */
/* 상담록 상세의 제목 줄: 제목이 길어도 상태 배지는 오른쪽 위에 남고 제목이 줄을 바꾼다(라이브러리 기본은 넘치면 다음 줄로 내린다) */
:where(.sah-counsel) .detail-heading{flex-wrap:nowrap}

/* ── 학생공간: 버튼 (.su-btn) ──────────────────────────────────────────────────── */
/* 주석 줄의 삭제: 본문 옆에 붙는 작은 동작이라 글자가 한 단계 작다 */
:where(.sah-students) .annotation-row>.su-btn{--fit-fs:12px}

/* ── 학생: 버튼 (.su-btn) ────────────────────────────────────────────────────── */
/* 이 앱의 주 색은 세이지(--sage)다: 주 버튼의 바탕과 눌렀을 때 색(#60786b)은 앱의 색을 지킨다. 손가락으로 누르는 높이 52px 도 그대로 둔다(라이브러리 42px 로 줄이지 않는다) */
:where(.sah-student) .su-btn--primary:where(:not(.band-button)){--fit-h:52px;--b-bg:var(--sage);--b-line:var(--sage);--b-fg:#fff;--b-bg-h:#60786b;--b-line-h:#60786b;--b-fg-h:#fff}
/* 상담 시트 안은 상담의 색을 쓴다(주 버튼이 먹색) → 라이브러리 기본 색으로 되돌린다 */
:where(.sah-student) #sheet[data-context=counsel] .su-btn--primary{--b-bg:var(--ink);--b-line:var(--ink);--b-fg:var(--on-ink);--b-bg-h:var(--accent);--b-line-h:var(--accent);--b-fg-h:var(--on-accent)}
/* 바탕 없는 버튼(새 단어 · 건의함 · 학원 Q&A)의 글자는 세이지 */
:where(.sah-student) .su-btn--quiet:where(:not(.band-button)){--b-fg:var(--sage);--b-fg-h:var(--sage)}
/* 새 단어 버튼: 누르는 크기 44px 원(둥근 아이콘 버튼 지름 = --fit-h - 6px) · 홈 아래 두 버튼: 누르는 높이 50px */
:where(.sah-student) :is(.icon-button.su-btn,.home-contact .su-btn){--fit-h:50px}
/* 초점 테두리는 앱의 색(세이지). 밴드의 버튼은 밴드 규칙(.band-button:focus-visible)이 정한다 */
:where(.sah-student) .su-btn:where(:not(.band-button)):focus-visible{outline-color:var(--sage)}

/* ── 학생: 밴드의 버튼 (.su-btn) ────────────────────────────────────────────────── */
/* 밴드의 주 버튼은 밴드의 세이지(--band-sage). 어둡게 보기에서는 밝은 세이지 바탕에 어두운 글자(운영 화면 그대로) */
:where(.sah-student) .band-primary.su-btn{--b-bg:var(--band-sage);--b-line:var(--band-sage);--b-fg:#fff;--b-bg-h:#344e41;--b-line-h:#344e41;--b-fg-h:#fff}
@media(prefers-color-scheme:dark){:where(.sah-student) .band-primary.su-btn{--b-fg:#14291d;--b-bg-h:#bfd6c3;--b-line-h:#bfd6c3;--b-fg-h:#14291d}}
/* 바탕 없는 버튼: 글자는 세이지, 올리면 옅은 세이지 바탕 */
:where(.sah-student) .band-button.su-btn:where(:not(.su-btn--primary)){--b-fg:var(--band-sage);--b-fg-h:var(--band-sage);--b-bg-h:var(--band-soft)}
/* 삭제 · 제거: 빨간 글자(어둡게 보기 값도 운영 화면 그대로) */
:where(.sah-student) .band-danger.su-btn{--b-fg:#a34239;--b-fg-h:#a34239}
@media(prefers-color-scheme:dark){:where(.sah-student) .band-danger.su-btn{--b-fg:#e2a496;--b-fg-h:#e2a496}}
/* 선이 있는 자리(더 보기 · 멤버 모두 보기 · 작품 동작 · 라벨 도구 · 더 최근 작품 · 연도 · 그룹 관리 줄 · 사진 선택): 밴드의 선 색. 올려도 선이 남는다 */
:where(.sah-student) :is(.band-more,.band-about-card,.band-work-actions,.band-label-tools,.band-previous,.band-year-tabs,.band-settings-list)>.su-btn:not(.su-btn--primary),:where(.sah-student) .band-upload-label.su-btn{--b-line:var(--band-border);--b-line-h:var(--band-border)}
/* 더 보기 · 사진 선택: 밴드의 흰 바탕 */
:where(.sah-student) :is(.band-more>.su-btn,.band-upload-label.su-btn){--b-bg:var(--band-surface)}
/* 그룹 도구(관리 · 만들기): 32px 원(둥근 아이콘 버튼 지름 = --fit-h - 6px) */
:where(.sah-student) .band-group-toolbar .su-btn--icon{--fit-h:38px}
/* 그룹 목록 아래 '삭제한 그룹': 흐린 작은 글자, 왼쪽 맞춤 */
:where(.sah-student) .band-side-links .su-btn{--fit-fs:12px;--fit-px:9px;--b-fg:var(--band-muted);--b-fg-h:var(--band-muted);justify-content:flex-start}
/* 작품 수 줄의 작은 도구 버튼 */
:where(.sah-student) .band-result-tools .su-btn{--fit-h:28px;--fit-fs:10px;--fit-px:7px;--fit-icon:14px}
/* 멤버 모두 보기 · 작품 상세 도구: 글자 한 단계 작게 */
:where(.sah-student) :is(.band-about-card,.band-detail-toolbar)>.su-btn{--fit-fs:12px}
/* 업로드 시기의 연도 버튼(실제 높이 38px) · 작품 동작 · 더 최근 작품 · 댓글의 수정/삭제: 운영 화면의 낮은 높이와 작은 글자 */
:where(.sah-student) .band-year-tabs>.su-btn{--fit-h:38px;--fit-fs:12px}
:where(.sah-student) .band-work-actions>.su-btn{--fit-h:40px;--fit-fs:12px;--fit-px:12px}
:where(.sah-student) .band-previous>.su-btn{--fit-h:33px;--fit-fs:11px;--fit-px:12px}
:where(.sah-student) .band-comment .su-btn{--fit-h:30px;--fit-fs:11px;--fit-px:7px}
/* 저장 줄의 주 버튼: 누르는 높이 46px */
:where(.sah-student) .band-actions .su-btn--primary{--fit-h:46px}
/* 그룹 관리의 줄 버튼: 제목 + 설명 두 줄이라 높이를 내용에 맞추고 줄을 바꾼다 */
:where(.sah-student) .band-settings-list>.su-btn{height:auto;min-height:var(--fit-h);white-space:normal;line-height:1.5}
/* 좁은 화면: 운영 규칙(@media)이 '삭제한 그룹'을 낮게 그렸다(글자 10px, 실제 높이 35px) → 그 높이를 그대로 둔다. 사진 업로드(41.5px)는 라이브러리 42px 를 쓴다 */
@media(max-width:767px){:where(.sah-student) .band-side-links .su-btn{--fit-h:35px}}

/* ── 학생공간: 글자 입력 칸 (.su-input) ───────────────────────────────────────────── */
/* 이 화면은 입력 칸을 굵은 이름표(label, 600) 안에 넣는다: 칸에 적는 글자는 보통 굵기로 둔다(라이브러리 칸은 굵기를 물려받는다) */
:where(.sah-students) :is(.su-input,.su-textarea){font-weight:400}
/* 본문 · 답변 · 강평 기준 · 주석 설명은 긴 글을 쓰는 칸이라 처음부터 150px 높이를 준다 */
:where(.sah-students) .su-textarea{min-height:150px}

/* ── 학생공간: 날짜 · 선택 칸 버튼 (.sdp-trigger) ───────────────────────────────────── */
/* 입력 칸을 라이브러리로 옮겼으니 같은 줄의 날짜·선택 칸 버튼도 같은 높이(--fit-h)로 맞춘다.
   글 분류 편집기(공용 post-classifications.js, 아직 옮기지 않았다)의 선택 칸은 뺀다: 같은 줄의 '+ 추가' 버튼(옮기지 않은 버튼)과 높이가 어긋나지 않게 44px 그대로 둔다 */
:where(.sah-students) .sdp-trigger:where(:not(.pc-choice .sdp-trigger)){min-height:var(--fit-h)}
/* 분야 고르기 버튼(이 화면이 직접 만든 선택 칸, 운영 규칙은 47px · 위아래 여백 13px)도 옆의 달 칸과 같은 높이로 맞춘다. 모양은 그대로다(선택 목록을 옮길 때 같이 옮긴다) */
:where(.sah-students) #category-trigger{min-height:var(--fit-h);padding-block:0}

/* ── 학생: 글자 동작 (.su-link) ────────────────────────────────────────────────── */
/* 글자 동작의 색은 이 앱의 색(세이지). 올려도 금색으로 바뀌지 않는다. 어둡게 보기에서 버튼으로 쓴 것(.text-button)은 밝은 세이지(운영 화면 그대로. 링크는 운영 화면에서도 세이지 그대로였다) */
:where(.sah-student) .su-link{color:var(--sage);text-decoration-color:color-mix(in srgb,currentColor 40%,transparent)}
:where(.sah-student) .su-link:hover{color:var(--sage);text-decoration-color:currentColor}
@media(prefers-color-scheme:dark){:where(.sah-student) .text-button.su-link,:where(.sah-student) .text-button.su-link:hover{color:#9fbcaa}}
/* 버튼으로 쓴 글자 동작은 손가락으로 누른다: 누르는 높이 44px 과 둘레 여백 8px 을 지킨다 */
:where(.sah-student) .text-button{--fit-h:44px;display:inline-flex;align-items:center;justify-content:center;min-height:var(--fit-h);padding:8px}

/* ── 학생: 글자 입력 칸 (.su-input · .su-textarea) ──────────────────────────────── */
/* 학생 앱의 입력 칸: 손가락으로 누르는 높이 52px 을 지킨다. 글자 17px 도 그대로 둔다(아이폰은 글자가 16px 보다 작은 입력 칸에 초점이 가면 화면을 확대한다) */
:where(.sah-student) :is(.su-input,.su-textarea){--fit-h:52px;--fit-fs:17px}
/* 시트의 폼: 입력 칸이 라벨 글자 아래 줄을 통째로 차지한다(줄 안 요소로 두면 라벨 높이가 달라진다) */
:where(.sah-student) #sheet-body :is(.su-input,.su-textarea){display:block}
/* 올림 · 초점 표시는 이 앱의 색(세이지. 단어장 시트에서는 그 시트의 색) */
:where(.sah-student) :is(.su-input,.su-textarea):hover{border-color:color-mix(in srgb,var(--sage) 45%,var(--line))}
:where(.sah-student) :is(.su-input,.su-textarea):focus{border-color:var(--sage);box-shadow:0 0 0 3px color-mix(in srgb,var(--sage) 18%,transparent)}
/* 밴드 창의 폼: 높이 49px(운영 화면 48.4px) · 글자는 라이브러리 값(13px, 보통 굵기) · 선과 글자색은 밴드의 색(어둡게 보기에서 --band-ink 는 라이브러리 먹색과 다르다) */
:where(.sah-student) .band-dialog :is(.su-input,.su-textarea){--fit-h:49px;--fit-fs:13px;border-color:var(--band-border);color:var(--band-ink);font-weight:400}
:where(.sah-student) .band-dialog :is(.su-input,.su-textarea):hover{border-color:color-mix(in srgb,var(--band-sage) 45%,var(--band-border))}
:where(.sah-student) .band-dialog :is(.su-input,.su-textarea):focus{border-color:var(--band-sage);box-shadow:0 0 0 3px color-mix(in srgb,var(--band-sage) 18%,transparent)}

/* ── 학생: 패널 (.su-panel) ──────────────────────────────────────────────────── */
/* 밴드의 상자(그룹 목록 · 게시판 · 우리 그룹)는 밴드의 선 색을 쓴다 */
:where(.sah-student) :is(.band-groups,.band-main,.band-about-card).su-panel{border-color:var(--band-border)}

/* ── 학생공간: 페이지 제목 (.su-heading) ──────────────────────────────────────────── */
/* 제목 줄: 화면이 좁아져도 '새로 작성' 버튼은 제목 오른쪽에 남고 설명 글이 줄을 바꾼다(운영 화면 그대로. 라이브러리 기본은 넘치면 버튼을 다음 줄로 내린다) */
:where(.sah-students) #workspace>main>.su-heading{flex-wrap:nowrap}
/* 좁은 화면의 제목 27px: 운영 규칙(@media 안의 h1)이 라이브러리 제목 규칙에 밀리지 않게 같은 무게로 다시 적는다 */
@media(max-width:620px){:where(.sah-students) .su-heading h1{font-size:27px}}

/* ── 학생: 밴드의 탭 (.su-tabs) ────────────────────────────────────────────────── */
/* 누르는 높이 46px 을 지킨다. 아래 줄은 필터 막대(.band-filter-bar)가 그리므로 탭 묶음의 줄은 끈다 */
:where(.sah-student) .band-type-tabs.su-tabs{--fit-h:46px;box-shadow:none}
/* 밴드의 색: 안 고른 탭은 흐린 글자, 고른 탭과 밑줄 · 초점 테두리는 세이지. 글꼴은 다른 버튼처럼 공용 규칙(body.sah-page button)의 글꼴을 그대로 쓴다 */
:where(.sah-student) .band-type-tabs [role=tab]{color:var(--band-muted);font-family:var(--sc-font)}
:where(.sah-student) .band-type-tabs [role=tab]:hover{color:var(--band-ink)}
:where(.sah-student) .band-type-tabs [role=tab][aria-selected=true]{color:var(--band-sage)}
:where(.sah-student) .band-type-tabs [role=tab][aria-selected=true]::after{background:var(--band-sage)}
:where(.sah-student) .band-type-tabs [role=tab]:focus-visible{outline-color:var(--band-sage)}
/* 좁은 화면: 운영 규칙(@media)의 높이 44px · 아주 좁은 화면의 글자 12px 을 그대로 둔다 */
@media(max-width:767px){:where(.sah-student) .band-type-tabs.su-tabs{--fit-h:44px}}
@media(max-width:360px){:where(.sah-student) .band-type-tabs.su-tabs{--fit-fs:12px}}

/* ── 학생: 칩 (.su-chip) ────────────────────────────────────────────────────── */
/* 학생 앱의 칩은 손가락으로 누른다: 높이 44px 을 지킨다(라이브러리 칩의 높이는 글자 크기에서 나오는 값이라 여기서는 높이를 직접 적는다). 줄이 넘치면 가로로 밀어 보므로 칩은 줄어들지 않는다. 글자는 먹색 */
:where(.sah-student) .chips .su-chip{height:44px;flex-shrink:0;color:var(--ink)}
:where(.sah-student) .chips .su-chip:hover{border-color:color-mix(in srgb,var(--sage) 45%,var(--line))}
/* 고른 칩: 이 앱의 고름 색(--selection 바탕 · 먹색 글자 · 세이지 빛 테두리) */
:where(.sah-student) .chips .su-chip[aria-pressed=true]{background:var(--selection);border-color:color-mix(in srgb,var(--sage) 25%,transparent);color:var(--ink)}

/* ── 학생: 빈 화면 (.su-empty) ────────────────────────────────────────────────── */
/* 빈 화면 아이콘은 이 앱에서 쓰던 흐린 글자색 그대로(라이브러리 기본은 금색 선) */
:where(.sah-student) .su-empty>svg{stroke:currentColor}

/* ── 학생: 페이지 제목 (.su-heading) ────────────────────────────────────────────── */
/* 전화 너비의 큰 제목 34px(380px 이하 31px)은 이 앱의 전화 화면 값이다: 라이브러리 제목 규칙(30px)에 밀리지 않게 같은 조건 안에 다시 적는다. 넓은 화면은 라이브러리 값 30px */
@media(max-width:767px){:where(.sah-student) .su-heading h1{font-size:34px}}
@media(max-width:380px){:where(.sah-student) .su-heading h1{font-size:31px}}

/* ── 확인창 (.su-confirm) ───────────────────────────────────────────────────── */
/* 삭제 확인창의 너비는 예전 그대로 740px 이다(라이브러리 확인창은 520px). 이 줄을 지우면 520px 이 된다. 학생 공간 관리 · 학생 웹에도 #confirm 이 있어 학원관리로 좁혀 둔다 */
:where(.sah-academy) #confirm{width:min(740px,calc(100% - 32px))}
/* 옆 창(작성·수정)의 붙는 저장 줄 위 24px: 마지막 칸과 저장 줄 사이 간격(예전 .dialog-actions 의 margin-top 그대로) */
#editor[data-mode="work"] .su-dialog-foot{margin-top:24px}

/* ── 틀: 옆 메뉴 (.su-sidenav) ───────────────────────────────────────────────── */
/* 학원관리 · 상담: 메뉴 묶음의 너비와 바깥 여백은 사이드바 칸이 정한다(라이브러리 기본은 220px · 12px) */
:where(.sah-counsel) .sidebar>.su-sidenav{width:auto;padding:0}
/* 학원관리의 세 묶음은 지금처럼 블록으로 둔다: 묶음 사이 여백이 겹치는 자리와 메뉴 편집 도구(+ 대분류 · 기본 배치로 버튼)의 너비가 그대로다 */
:where(.sah-academy) #sidebar>.su-sidenav{display:block;width:auto}
/* 학원관리 메뉴 편집 화면의 '숨긴 메뉴' 접기 줄은 편집 도구다: 옆 메뉴의 폴더 줄 모양(40px 줄 · 굵은 글자 · 화살표)을 받지 않는다 */
:where(.sah-academy) #sidebar .pm-hidden>summary{display:list-item;min-height:0;padding:6px 8px;border-radius:6px;font-weight:500;user-select:auto}
:where(.sah-academy) #sidebar .pm-hidden>summary::after{content:none}
/* 학생 공간 관리, 좁은 화면(가로로 넘기는 메뉴 줄): 줄 높이 45px 그대로. 줄이 낮아지면 그 아래 본문이 위로 올라온다 */
@media(max-width:620px){:where(.sah-students) #navigation>.su-sidenav-link{min-height:45px}}

/* ── 공용: 날짜 · 선택 칸 버튼 (.su-datepicker-trigger · .su-combobox-trigger) ────── */
/* 학생 웹은 날짜 · 선택 칸이 다른 화면보다 크다: 예전 높이 46px 그대로(글자 13px 은 라이브러리 값과 같다) */
:where(.sah-student) :is(.su-datepicker-trigger,.su-combobox-trigger){--fit-h:46px}
/* 글 분류 편집기(공용 post-classifications.js)의 선택 칸: 같은 줄 '+ 추가' 버튼(아직 옮기지 않았다)과 같은 44px */
.pc-choice :is(.su-datepicker-trigger,.su-combobox-trigger){--fit-h:44px}

/* ── 창 (.su-dialog) ──────────────────────────────────────────────────────── */
/* 회의 창: 머리줄이 창 여백 24px 에 맞춰 창 끝까지 닿아 있다(운영 규칙의 -24px). 넓은 화면의 여백을 예전 값으로 둔다. 좁은 화면(20px)은 운영 규칙 그대로 */
@media(min-width:651px){.meeting-dialog{padding:24px}}

/* ── 공용: 날짜 선택 팝업 (.su-datepicker-panel) ─────────────────────────────────── */
/* 학생 공간 관리: 그 화면의 기본 버튼 규칙(button:where(:not(.su-btn,.su-chip)), 최소 높이 42px)이 날짜 칸에도 닿아 칸이 42px 정사각형으로 커지며 옆 칸과 겹친다 → 날짜 칸은 격자 너비(36px)를 따른다 */
:where(.sah-students) .su-datepicker-panel .su-calendar-grid>button{min-height:0}

/* ── 옆 창 (.su-drawer) ────────────────────────────────────────────────────── */
/* 학생 상세 옆 창의 바탕은 캔버스색이다: 학생 상세 쪽의 패널들이 그대로 들어가므로 쪽 바탕과 같아야 패널이 구분된다(라이브러리 옆 창은 종이색) */
#student-panel{background:var(--canvas)}
/* 학생 상세 옆 창: 좁은 화면에서 왼쪽에 뒤 어둠이 조금 남던 것(브라우저 기본 최대 너비)을 그대로 둔다. 그 자리를 눌러 닫을 수 있다 */
#student-panel{max-width:calc(100% - 6px - 2em)}

/* ── 창 · 긴 글 읽기 (.su-dialog--reader) ─────────────────────────────────────── */
/* 전사 원문 창: 여백은 머리줄 · 본문 · 버튼 줄이 준다(회의 창의 24px · 좁은 화면 20px 을 받지 않는다) */
.meeting-original-dialog{padding:0}
/* 전사 원문 창의 '전체 N개 발화' 한 줄: 머리줄과 본문 사이에 바로 놓여 있어 좌우 여백을 여기서 준다 */
.meeting-original-dialog>.meeting-small{margin:0;padding:12px 20px 0}

/* ── 공용: 확인창 (.seolha-confirm = .su-dialog) ──────────────────────────────── */
/* 공용 확인창은 제목 없이 물음 한 줄과 버튼만 있다: 물음이 맨 위라 위 여백을 머리줄만큼(20px) 두고, 물음 자체가 본문이라 먹색으로 둔다 */
.seolha-confirm>.su-dialog-body{padding-top:20px;color:var(--ink)}
/* 학생 웹은 주 버튼이 크고(52px) 세이지색이다. 확인창은 어느 화면에서나 같은 모양이어야 해서, 그 안의 확인 버튼은 라이브러리 기본 값(자리 높이 · 먹색)으로 되돌린다 */
:where(.sah-student) .seolha-confirm .su-btn--primary{--fit-h:inherit;--b-bg:var(--ink);--b-line:var(--ink);--b-fg:var(--on-ink);--b-bg-h:var(--accent);--b-line-h:var(--accent);--b-fg-h:var(--on-accent)}

/* ── 상담: 창 (.su-dialog) ──────────────────────────────────────────────────── */
/* 상담 공간의 창 너비는 560px 이다(라이브러리 기본 520px). 전사 원문 창의 너비 규칙보다 약하게 둔다 */
:where(.sah-counsel) .su-dialog:where(#dialog){width:min(560px,calc(100% - 32px))}

/* ── 틀: 상단바 (.su-topbar · .su-btn--icon) ─────────────────────────────────── */
/* 상단바 컨트롤은 44px 원(--sc-control)이다. 아이콘 버튼 지름 = --fit-h - 6px 이라 --fit-h 는 6px 더 크게, 아이콘은 지금처럼 20px. 알림 종(그림자 DOM)도 이 값을 물려받는다 */
#seolha-topbar .sc-actions{--fit-h:calc(var(--sc-control) + 6px);--fit-icon:20px}

/* ── 소식: 창 (.su-dialog) ──────────────────────────────────────────────────── */
/* 소식 · 계정 관리 · 단어장의 창: 너비 600px · 최대 높이는 예전 값이다(라이브러리 기본 520px · 화면 높이 - 48px).
   내용이 #modal-content 한 겹 안에 있고 코드가 창의 스크롤 위치를 되돌리므로(modal.scrollTop=0) 창 전체가 스크롤되게 둔다(라이브러리 기본은 본문만 스크롤) */
:where(.sah-community) .su-dialog:where(#modal){width:min(600px,calc(100% - 32px));max-height:calc(100dvh - 64px);overflow:auto}
:where(.sah-community) .su-dialog:where(#modal)[open]{display:block}
/* 좁은 화면의 너비 · 최대 높이도 예전 값 그대로(운영 규칙은 dialog 에 걸려 있어 라이브러리 창 규칙에 밀린다) */
@media(max-width:720px){:where(.sah-community) .su-dialog:where(#modal){width:calc(100% - 20px);max-height:calc(100dvh - 28px)}}

/* ── 학생공간: 창 (.su-dialog) ────────────────────────────────────────────────── */
/* 학생 공간 관리의 창: 너비 780px(주석 창은 운영 규칙의 520px) · 최대 높이 90vh 는 예전 값이다(라이브러리 기본 520px · 화면 높이 - 48px) */
:where(.sah-students) .su-dialog:where(#editor,#annotation-editor,#report-context,#confirm){width:min(780px,calc(100% - 34px));max-height:90vh}
/* 편집창 · 주석 창 · 신고 내용 창: 여백 30px 은 위아래에 붙는 머리줄 · 저장 줄이 맞춰져 있는 값이고, 바탕은 캔버스색이다(입력 칸이 종이색이라 바탕이 달라야 칸이 구분된다) */
:where(.sah-students) .su-dialog--flow:where(#editor,#annotation-editor,#report-context){padding:30px;background:var(--canvas)}

/* ── 학생: 창 (.su-sheet · .su-dialog) ──────────────────────────────────────── */
/* 학생 웹의 시트는 화면 아래에 붙지 않고 가운데에 뜨는 둥근 카드다(라이브러리 시트는 아래에 붙고 위 모서리만 둥글다): 예전 자리와 최대 높이 그대로.
   바탕은 캔버스색(안의 카드가 종이색이라 바탕이 달라야 구분된다), 글자 크기는 이 앱의 본문 17px 을 물려받는다(라이브러리 시트는 13px 기준) */
:where(.sah-student) .su-sheet:where(#sheet){inset:0;margin:auto;border-radius:var(--sm-r-card);max-height:calc(100dvh - 28px);background:var(--canvas);font-size:inherit}
@media(min-width:768px){:where(.sah-student) .su-sheet:where(#sheet){max-height:calc(100dvh - 60px)}}
/* 확인창(닫기 확인 · 밴드 확인)의 버튼 줄: 위 여백은 라이브러리 값(16px)만 쓴다(.actions 22px · .band-actions 6px 을 더하지 않는다) */
:where(.sah-student) .su-confirm>.su-dialog-foot{margin-top:0}
/* 밴드 확인창: 여백은 머리줄 · 본문 · 버튼 줄이 준다(좁은 화면 규칙의 22px 을 받지 않는다) */
.band-confirm.su-confirm{padding:0}

/* ── 안내 문구: 업무 화면 오류 줄 (.work-error) ─────────────────────────────────────── */
/* 업무 화면 밖(창 · 포털)의 오류 줄은 위아래 14px 을 둔다(전에는 문단 기본 여백이었고, 라이브러리 안내 문구는 바깥 여백이 없다).
   업무 화면 안은 그 화면의 문단 간격 7px(.work-page p)이 전처럼 이긴다 */
:where(.sah-academy,.sah-portal) .su-alert:where(.work-error){margin:14px 0}

/* ── 공용: 토스트 (.su-toast) ─────────────────────────────────────────────────── */
/* 운영 토스트는 화면마다 하나 있는 고정 요소(#toast)다. 자리(아래 가운데 · 겹침 순서)는 각 화면 규칙에 남아 있다.
   나타남은 모션 레이어가 움직인다. 라이브러리의 나타남(su-rise)은 transform 을 써서 가운데 맞춤(translateX(-50%))과 겹치므로 끈다.
   너비는 라이브러리 토스트 자리(.su-toast-area)처럼 글 길이만큼, 화면 너비 - 30px 까지: 고정 위치 + left:50% 라 그냥 두면 화면 절반에서 줄이 바뀌어
   휴대폰에서 알약이 세 줄이 된다. 긴 주소 · 열쇠 글자도 화면 밖으로 나가지 않게 줄바꿈한다 */
#toast.su-toast{animation:none;width:max-content;max-width:calc(100vw - 30px);overflow-wrap:anywhere}

/* ── 계정 연동: 안내 문구 (.su-alert) ────────────────────────────────────────────── */
/* 라이브러리 안내 줄은 바깥 여백이 없다. 이 화면은 문단 사이 간격(예전 <p> 기본 여백: 로그인 안내 13px, 완료 · 오류 줄 14px)으로 띄운다 */
:where(.sah-links) .su-alert:where(.login-note){margin:13px 0}
:where(.sah-links) .su-alert:where(#message,#error){margin:14px 0}

/* ── 계정 연동: 버튼 (.su-btn) ─────────────────────────────────────────────────── */
/* 연동 버튼(.provider-button: app.js 가 만든다) · 다시 확인하기(#retry)의 높이는 이 화면의 누름 자리 48px 이다(예전 min-height:48px) */
:where(.sah-links) .provider-button,:where(.sah-links) :where(#retry){--fit-h:48px}

/* ── 학생 웹: 좁은 화면 (설삣삐 · 칩 줄) ─────────────────────────────────────────────── */
/* 휴대폰 너비에서 아래 탭 막대(767px 이하: 아래 max(12px,안전 영역) · 높이 66px) 위로 설삣삐를 올린다. 원래는 막대의 '내 학습' 위에 겹쳤다 */
@media(max-width:767px){:where(.sah-student) #seolha-bbippi{bottom:calc(max(12px,env(safe-area-inset-bottom,0px)) + 74px + var(--keyboard-offset,0px) + var(--dock-offset,0px));--bb-height:min(610px,calc(100dvh - 224px))}}
/* 칩 줄은 줄을 바꿔 다 보인다(원래 한 줄 고정 + 가로 스크롤이라 휴대폰에서 끝 칩이 잘려 보였다) */
:where(.sah-student) .chips{flex-wrap:wrap}

/* ── 상담: 서식 편집기 (.su-editor) ─────────────────────────────────────────────── */
/* 휴대폰에서 편집 면 글자 16px(입력할 때 화면이 확대되지 않게). 옛 좁은 화면 규칙과 같은 값 */
@media(max-width:650px){:where(.sah-counsel) .su-editor .ProseMirror{font-size:16px}}

/* ── 상담: 녹음 재생기 (.su-player) ─────────────────────────────────────────────── */
/* 글자 버튼판의 재생 버튼은 글자가 바뀌어도(재생 · 일시정지 · 불러오는 중) 옆 버튼이 밀리지 않게 최소 너비를 둔다(전과 같은 78px) */
.su-player-controls>.su-btn[data-recording-toggle]{min-width:78px}

/* ── 일정 월 달력 (.su-calendar--events) ──────────────────────────────────────── */
/* 주요 스케줄 달력: 달 제목 줄과의 간격 15px, 날짜 칸 최소 높이 105px(전과 같은 자리 크기) */
.calendar-scroll.su-calendar--events{margin-top:15px}
:where(.calendar-scroll) .su-calendar-day{min-height:105px}   /* 무게를 낮춰 좁은 화면 규칙(@media)이 전처럼 이긴다 */
/* 종류 글자(.event-kind → small)는 라이브러리 일정처럼 제목 아래에 놓는다(템플릿에서는 제목 앞에 있다) */
.su-calendar-event>.event-kind{order:1}
/* 좁은 화면의 날짜 칸 높이 규칙(.calendar>div, @media)이 요일 줄까지 높이지 않게: 요일 줄은 라이브러리 높이 */
.calendar-scroll .su-calendar-dow{min-height:calc(var(--fit-row) - 6px)}

/* ── 소식: 게시글 (.su-post · .su-avatar) ─────────────────────────────────────── */
/* 글 머리의 ⋯(신고하기): 머리줄 높이(23px)에 맞는 26px 원(아이콘 버튼 지름 = --fit-h - 6px) */
:where(.sah-community) .post-head>.su-btn--icon{--fit-h:32px}
/* 큰 프로필(내 계정 · 계정 사진 편집 · 학생 계정 사진 창): 예전 72px 자리(라이브러리 --lg 는 56px) */
:where(.sah-community) .su-avatar--lg{--su-av:72px}

/* ── 상담: 찾기 칸 (.su-search) ───────────────────────────────────────────────── */
/* 예약 관리 거르기 줄의 찾기 칸은 남는 너비를 채운다(전과 같음). 라이브러리 거르기 줄의 찾기 칸 기본은 높이의 6배에서 자라지 않는다. 좁은 화면의 한 줄 차지(flex-basis:100%)는 운영 규칙 그대로 */
:where(.sah-counsel) .su-filterbar>.search{flex-grow:1}

/* ── 소식: 글 사진 (.su-thumb--full) ──────────────────────────────────────────── */
/* 글 사진의 최대 높이: 예전 32rem(라이브러리 기본은 화면 높이의 70% · 620px 중 작은 값) */
:where(.sah-community) .community-post-photo{--su-thumb-max:32rem}

/* ── 소식: 찾기 칸 (.su-search) ───────────────────────────────────────────────── */
/* 계정 검색의 돋보기는 쪽을 열 때 코드가 <span data-icon> 안에 그린다. 라이브러리는 돋보기가 찾기 칸 바로 안에 있다고 보고 세로 가운데에 둔다 → 감싼 span 을 없는 셈 친다 */
:where(.sah-community) .su-search>[data-icon]{display:contents}

/* ── 사진 크게 보기 · 창 모양 (.su-lightbox--window) ──────────────────────────────── */
/* 가이드 예시 화면 창의 꼬리 글('합성 시연 화면 …'): 그림 상자 아래, 창의 좌우 여백에 맞춘다 */
.su-lightbox--window>.guide-footnote{margin:0;padding:0 var(--fit-px) var(--fit-px)}
/* 앱 머리줄 규칙(header{background:var(--canvas)})이 창 머리줄에 닿지 않게: 라이브러리 머리줄은 바탕 없이 창 종이색 */
.guide-image-dialog>.su-lightbox-head{background:none}

/* ── 학생공간: 주석 팝오버 · 범례 (.su-popover · .su-legend) ────────────────────────── */
/* 주석 카드는 자리를 transform(가운데 맞춤)으로 잡는다: 라이브러리 등장 움직임 가운데 투명도만 쓴다 */
:where(.sah-students) .su-popover.annotation-popover{transition-property:opacity}
@starting-style{:where(.sah-students) .su-popover.annotation-popover{transform:translate(-50%,calc(-100% - 21px))}:where(.sah-students) .su-popover.annotation-popover.below{transform:translate(-50%,21px)}}
/* 카드 본문 글은 먹색(학생공간의 맨 p 규칙이 흐린 글자로 덮는다) */
:where(.sah-students) .su-popover-body>p{color:inherit}
/* 범례 색 조각은 그림 위 번호 색과 같게(선생님 --green · 학생 파랑) */
:where(.sah-students) .annotation-legend>.teacher{--su-series:var(--green)}
:where(.sah-students) .annotation-legend>.student{--su-series:#386497}

/* ── 소식: 안내 문구 (.su-alert) ───────────────────────────────────────────────── */
/* 로그인 오류 줄 · 연결 편집기 상태 줄은 비어 있어도 자리를 지킨다(예전처럼: 글이 생길 때 아래 버튼 · 목록이 밀리지 않게). 라이브러리 안내 문구는 비면 숨는다 */
:where(.sah-community) .su-alert:where(.error-text,.cn-status):empty{display:block;visibility:hidden}
/* 단어장을 불러오지 못함: 피드 안에서 예전 글자 자리(좌우 26px · 위아래 20px)에 놓인다 */
:where(.sah-community) .su-alert:where(.dictionary-error){margin:20px 26px}

/* ── 학생공간: 찾기 칸 (.su-search) ─────────────────────────────────────────────── */
/* 거르기 줄의 찾기 칸: 남는 칸을 채우되 최대 320px(전과 같음) */
:where(.sah-students) .toolbar>.su-search{flex:1 1 0;max-width:320px}

/* ── 틀: 화면 도구 판 (.su-popover) ────────────────────────────────────────────── */
/* 자리는 운영 규칙(상단바 아래 오른쪽 고정)이 정한다: 라이브러리 팝오버가 누른 버튼 옆으로 붙이는 값은 끈다.
   안의 선택 칸 · 버튼은 원래 높이 44px(손가락 누름 크기) */
#seolha-topbar .sc-mobile-tools.su-popover{position-area:none;position-try-fallbacks:none;--fit-h:44px}

/* ── 학생공간: 사진 틀 (.su-thumb) ──────────────────────────────────────────────── */
/* 그림 미리보기의 최대 높이(전과 같음). 미리보기 상자 안은 340px 이고 상자 규칙이 정한다 */
:where(.sah-students) img.su-thumb.preview{--su-thumb-max:370px}
/* 미리보기 상자 안에서는 상자가 선을 그린다(그림에 선을 또 두지 않는다. 전과 같음) */
:where(.sah-students) .photo-selected>img.su-thumb{border:0}

/* ── 학생: 댓글 (.su-comment) ────────────────────────────────────────────────── */
/* 댓글 본문은 쓴 줄바꿈을 그대로 보이고 긴 낱말을 끊는다(전과 같음). 이름 줄과 본문 사이 4px */
:where(.sah-student) .su-comment-body>p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}

/* ── 공용: 글 분류 (.su-btn · .su-alert · .su-badge) ──────────────────────────── */
/* 분류 고르기 줄의 '+ 추가': 옆 선택 칸(44px)과 같은 높이로, 줄어들지 않게 */
.pc-choice>.su-btn{--fit-h:44px;flex:none}
/* 꼬리표: 긴 대학 이름은 줄을 바꾼다(라이브러리 꼬리표는 한 줄 높이) */
.pc-badges .su-badge{height:auto;min-height:calc(var(--fit-fs) + 9px);white-space:normal}

/* ── 학생: 일정 달력 (.su-calendar--events) ────────────────────────────────────── */
/* 일정 시트(휴대폰 우선) 안의 날짜 칸 높이는 전과 같은 64px(라이브러리 기본은 줄 높이의 2.6배 ≈ 104px라 달력이 시트를 넘친다) */
:where(.sah-student) .calendar .su-calendar-day{min-height:64px}

/* ── 범례 (.su-legend) ─────────────────────────────────────────────────────── */
/* 월별 출석부 범례 줄: 표 위의 자리(위 12px · 아래 18px) */
.attendance-legend.su-legend{margin:12px 0 18px}

/* ── 소식: 연결 편집기 (.su-toolbar--inline · .su-sidenav-link · .su-legend · .su-field · .su-item) ──── */
/* 목록에서 고른 줄: 코드가 붙이는 .active 를 라이브러리 고른 줄(aria-current)과 같은 모양으로 */
:where(.sah-community) .cn-library-items .su-sidenav-link.active{background:var(--selected);color:var(--ink);font-weight:650}
/* 연결된 기능 줄: 제목 아래 설명이 오는 한 칸(줄마다 아래 구분선은 전과 같은 자리) */
:where(.sah-community) .cn-related>.su-item{display:block;border-bottom:1px solid var(--line-soft)}

/* ── 소식: 머리줄 찾기 칸 (.su-search · .su-kbd) ─────────────────────────────────── */
/* 머리줄 찾기 칸 높이(전과 같은 44px) */
:where(.sah-community) .community-heading-search>.su-search{--fit-h:44px}
/* ⌘K 표시는 입력 칸 안 오른쪽 끝에(전과 같은 자리). 글자가 표시 밑으로 들어가지 않게 입력 칸 오른쪽을 비운다 */
:where(.sah-community) .community-heading-search>.su-search>.su-kbd{position:absolute;right:var(--su-pad);pointer-events:none}
:where(.sah-community) .community-heading-search>.su-search>.su-input{padding-right:calc(var(--su-pad) + 40px)}

/* ── 소식: 글 부품 (.su-link · .su-item · .su-disclosure · .su-comment · 떠 있는 .su-btn) ──── */
/* '새 소식 n개': 화면 아래 떠 있는 알약 버튼(전과 같은 높이 48px · 둥근 끝) */
:where(.sah-community) .feed-update-notice.su-btn{--fit-h:48px;--fit-r:999px}
/* 누를 때 라이브러리 버튼의 줄어듦(transform)이 가운데 맞춤(translateX)을 지우지 않게 둘을 같이 적는다 */
:where(.sah-community) .feed-update-notice.su-btn:active:not(:disabled):not([aria-disabled="true"]){transform:translateX(-50%) scale(.98)}

/* ── 소식: 계정 관리 안내 문구 (.su-alert · 경고 줄 색조) ───────────────────────────────── */
/* 보안 현황 해외 접속 표에서 로그인한 계정이 있는 줄: 라이브러리 경고 색조 */
:where(.sah-community) .ss-row.ss-warn{border-color:var(--su-warning-line);background:var(--su-warning-bg)}

/* ── 공용: 창 닫기 (.seolha-close → .su-btn--icon.su-btn--quiet) ──────────────── */
/* 글자로 그린 닫기는 그림 아이콘(16px)과 비슷한 크기로 보이게 한다. 그림이 든 닫기에는 닿지 않는다(그림은 크기를 따로 받는다)
   학생 공간 관리의 ✕ 는 18px, 학원관리 · 회의의 × 는 글자 안에서 작게 그려져 24px */
.seolha-close.su-btn--icon{font-size:calc(var(--fit-icon) + 2px);line-height:1}
:where(.sah-academy,.sah-portal) .seolha-close.su-btn--icon{font-size:calc(var(--fit-icon) + 8px)}

/* ── 상담: 숫자 카드 · 안내 문구 (.su-stat · .su-alert) ────────────────────────────── */
/* 숫자 카드: 값과 '건'을 한 줄에(전과 같은 흐름 배치). 좁은 화면의 2칸 격자가 줄지어 놓이도록 격자 흐름은 줄 방향 */
:where(.sah-counsel) .stats.su-stats{grid-auto-flow:row}
:where(.sah-counsel) .stat.su-stat{display:block}
/* 자체 아이콘이 있던 안내: 라이브러리 아이콘(::before)과 겹치지 않게 자체 아이콘을 숨긴다 */
:where(.sah-counsel) :is(.content-note,.quiet-note,.demo-banner).su-alert>.icon{display:none}

/* ── 학생공간: 카드 표지 · 주석 줄 (.su-thumb · .su-item) ───────────────────────────── */
/* 카드 표지 그림: 카드 윗부분이라 그림의 선 · 모서리를 두지 않는다(카드가 모서리를 자른다. 전과 같음) */
:where(.sah-students) .card>img.su-thumb{border:0;border-radius:0}
/* 주석 줄: 좌우 여백 없이 목록 폭 그대로(전과 같은 자리) */
:where(.sah-students) .annotation-row.su-item{padding-inline:0}

/* ── 학생: 밴드 사진 (.su-thumb) ───────────────────────────────────────────────── */
/* 작품 카드 표지: 카드 틀 안이라 그림의 선 · 모서리를 두지 않는다(전과 같음) */
:where(.sah-student) .band-image-frame>img.su-thumb{border:0;border-radius:0}

/* ── 아이소식 창 · 사진 틀 · 달력 머리줄 (.su-dialog · .su-thumb · .su-calendar-head) ──── */
/* 아이소식 읽기 창: 창 전체가 스크롤되는 블록 흐름(전과 같음). 라이브러리 창의 세로 flex 를 쓰지 않는다 */
.pn-dialog.su-dialog[open]{display:block}
/* 가이드 예시 화면: 그림 높이 제한 없이 꽉 찬 너비로(전과 같음) */
.guide-image-button.su-thumb{--su-thumb-max:none}
/* 주요 스케줄 달 머리줄: 아래 달력과의 간격은 전과 같게(라이브러리 머리줄의 아래 여백을 쓰지 않는다) */
.spaced.su-calendar-head{margin-bottom:0}

/* ── 학생: 어두운 화면 홈 조용한 버튼 글자 ──────────────────────────────────────────────── */
@media(prefers-color-scheme:dark){:where(.sah-student) .home-contact .su-btn--quiet{--b-fg:#9fbcaa;--b-fg-h:#9fbcaa}}
