/* 10/15 설정 칸 통일 (사용자 "설정창 자체가 예전에 만든 거라 삐뚤빼뚤 · 싹 다 통일감 있게 칸 맞춰서 · 모든 칸이 일정하게 · 심플하고")
   한 줄 = 이름 왼쪽(밑에 작은 설명) · 고르는 칸 오른쪽. 줄 높이 52 · 오른쪽 단추 34 높이 · 둥근 10 · 옅은 회색 바탕 하나로.
   고르기(select · 동그라미 묶음)는 같은 단추 하나 → 누르면 단추 바로 밑에 작은 칸 (알약과 같은 규칙). 맨 마지막에 읽는다 */

/* ── 줄 ── */
html body #sideSet .sp-body .set-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;margin:0;padding:9px 0;border:0;border-top:1px solid var(--shell-line);font:400 14px/1.35 Pretendard,sans-serif;color:var(--shell-text);background:none}
html body #sideSet .sp-body > .set-row:first-child,
html body #sideSet .sp-body > .sp-sub:first-child > .set-row:first-child,
html body #sideSet .sp-body > .acc:first-child .set-row:first-child,
html body #sideSet .sp-body .set-h + .set-row,
html body #sideSet .sp-body .set-h + .sp-sub > .set-row:first-child{border-top:0}
html body #sideSet .sp-body .set-row > span:first-child{flex:1 1 auto;min-width:0;font-size:14px;line-height:1.35;color:var(--shell-text)}
html body #sideSet .sp-body .set-row > span:first-child :is(small,.muted){display:block;margin-top:2px;font-size:12px!important;font-weight:400;line-height:1.4;color:var(--shell-muted)}
html body #sideSet .sp-body .set-row > span:first-child br{display:none}
html body #sideSet .sp-body .set-row > span:first-child b{font-weight:600}
html body #sideSet .sp-body .sp-sub{margin:0;padding:0;border:0}
html body #sideSet .sp-body .sp-sub + .sp-sub > .set-row:first-child{border-top:1px solid var(--shell-line)}

/* 묶음 제목 (칸 안): 작은 회색 글씨 하나로 — 옛 ps-row · 이름만 있는 첫 줄도 같은 모양 */
html body #sideSet .sp-body .set-h,
html body #sideSet .sp-body .set-row.ps-row,
html body #sideSet .sp-body .sp-sub > .set-row:first-child:has(> span:only-child){display:block;min-height:0;margin:8px 0 0;padding:16px 0 6px;border:0;border-top:1px solid var(--shell-line)!important;font:600 12px/1.3 Pretendard,sans-serif;color:var(--shell-muted)}
html body #sideSet .sp-body > :is(.set-h,.set-row.ps-row):first-child,
html body #sideSet .sp-body > .sp-sub:first-child > .set-row:first-child:has(> span:only-child){margin-top:0;padding-top:12px;border-top:0!important}
html body #sideSet .sp-body :is(.set-h,.set-row.ps-row,.sp-sub > .set-row:first-child:has(> span:only-child)) span{font:inherit;color:inherit}
html body #sideSet .sp-body .set-row.ps-row + .set-row,
html body #sideSet .sp-body .sp-sub > .set-row:first-child:has(> span:only-child) + .set-row{border-top:0}

/* 설명 글 */
html body #sideSet .sp-body .hint{margin:-2px 0 10px;font-size:12px;line-height:1.55;color:var(--shell-muted)}
html body #sideSet .sp-intro p{margin:0;font-size:12px;line-height:1.6;color:var(--shell-muted)}
html body #sideSet .sp-intro{padding:0 6px 12px}

/* ── 오른쪽 고르는 칸: 단추 · 고르기 · 글 칸 모두 높이 34 ── */
html body #sideSet .set-pick{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;flex:0 1 auto;min-width:92px;max-width:62%;height:34px;margin:0;padding:0 10px 0 12px;border:0;border-radius:10px;background:var(--shell-soft);color:var(--shell-text);font:500 13px/1 Pretendard,sans-serif;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
html body #sideSet .set-pick > span{min-width:0;overflow:hidden;text-overflow:ellipsis}
html body #sideSet .set-pick .sp-chev{flex:none;color:var(--shell-muted);transition:transform .15s}
html body #sideSet .set-pick.open{background:var(--shell-line)}
html body #sideSet .set-pick.open .sp-chev{transform:rotate(180deg)}
html body #sideSet select[data-picked],html body #sideSet .radios.as-pick{display:none!important}
html body #sideSet .sp-body .set-row > :is(.btn,a.btn,button.btn){display:inline-flex;align-items:center;justify-content:center;flex:none;height:34px;min-width:64px;margin:0;padding:0 14px;border:0;border-radius:10px;background:var(--shell-soft);color:var(--shell-text);font:500 13px/1 Pretendard,sans-serif;text-decoration:none;white-space:nowrap;box-shadow:none}
html body #sideSet .sp-body .set-row > .btn.danger{color:#d64545}
html body #sideSet .sp-body .set-row > :is(input.ed-in,input[type=date],input[type=text]){flex:0 1 58%;min-width:0;height:34px;margin:0;padding:0 10px;border:1px solid var(--shell-line);border-radius:10px;background:var(--shell-surface);font:400 14px/1 Pretendard,sans-serif;color:var(--shell-text);box-sizing:border-box}
html body #sideSet .sp-body .set-row > input.fx-t{flex:0 0 76px;text-align:center}
html body #sideSet .sp-body .set-row > .muted{flex:none;font-size:13px;color:var(--shell-muted)}
html body #sideSet .sp-body .set-row > .tog{flex:none}

/* 칸 전체 폭 단추 (+ 넣기 · 고치러 가기): 높이 42 · 같은 회색 */
html body #sideSet .sp-body > .btn,html body #sideSet .sp-body > .sp-sub > .btn,html body #sideSet .sp-body .acc > .btn:not(.admin-go){display:flex;align-items:center;justify-content:center;width:100%;height:42px;margin:10px 0 6px;padding:0 14px;border:0;border-radius:12px;background:var(--shell-soft);color:var(--shell-text);font:600 13px/1 Pretendard,sans-serif}
html body #sideSet .sp-body .btns{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:10px 0 6px}
html body #sideSet .sp-body .btns > .btn{display:flex;align-items:center;justify-content:center;height:40px;margin:0;padding:0 12px;border:0;border-radius:12px;background:var(--shell-soft);font:600 13px/1 Pretendard,sans-serif;text-decoration:none}
html body #sideSet .dt-add{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 8px}
html body #sideSet .dt-add > .btn{display:flex;align-items:center;justify-content:center;height:40px;margin:0;padding:0 6px;border:0;border-radius:12px;background:var(--shell-soft);color:var(--shell-text);font:600 12.5px/1 Pretendard,sans-serif;white-space:nowrap}

/* 줄 안 작은 단추 (반복 · 지우기 · 보임): 높이 32 */
html body #sideSet .sp-body > .ed-row{display:flex;align-items:center;gap:8px;min-height:52px;margin:0;padding:8px 0;border-top:1px solid var(--shell-line)}
html body #sideSet .sp-body > .ed-row:first-child{border-top:0}
html body #sideSet .sp-body > .ed-row > .ed-in{height:36px;padding:0 10px;border:1px solid var(--shell-line);border-radius:10px;font-size:14px;box-sizing:border-box}
html body #sideSet .sp-body > .ed-row > .mini{height:32px;min-width:32px;justify-content:center;padding:0 10px;border:0;border-radius:10px;background:var(--shell-soft);color:var(--shell-text);font:500 12.5px/1 Pretendard,sans-serif}
html body #sideSet .sp-body > .ed-row > .mini.danger{width:32px;padding:0;background:none;color:var(--shell-muted)}
html body #sideSet .rp-t{flex:1;min-width:0}
html body #sideSet .rp-t b{display:block;overflow:hidden;font:600 15px/1.3 Pretendard,sans-serif;color:var(--shell-text);white-space:nowrap;text-overflow:ellipsis}
html body #sideSet .rp-t small{display:block;margin-top:2px;font-size:12px;line-height:1.4;color:var(--shell-muted)}

/* 학원 · 고정 시간: 이름 · 시작 – 끝 · 지우기 한 줄 + 요일 일곱 칸 (시각이 '18:0(' 처럼 잘리지 않게) */
html body #sideSet .fx-row{display:grid;grid-template-columns:minmax(0,1fr) 66px 10px 66px 32px;gap:6px;align-items:center;padding:10px 0;border-top:1px solid var(--shell-line)}
html body #sideSet .set-h + .fx-row{border-top:0}
html body #sideSet .fx-row > .ed-in{height:36px;min-width:0;padding:0 8px;border:1px solid var(--shell-line);border-radius:10px;font:400 14px/1 Pretendard,sans-serif;box-sizing:border-box}
html body #sideSet .fx-row > .fx-t{text-align:center;font-variant-numeric:tabular-nums;padding:0 4px}
html body #sideSet .fx-row > span{text-align:center;color:var(--shell-muted)}
html body #sideSet .fx-row > .mini.danger{width:32px;height:32px;justify-content:center;padding:0;background:none;color:var(--shell-muted)}
html body #sideSet .fx-row .fx-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
html body #sideSet .fx-d{height:32px;padding:0;border:1px solid var(--shell-line);border-radius:8px;background:var(--shell-surface);color:var(--shell-muted);font:500 12.5px/1 Pretendard,sans-serif}
html body #sideSet .fx-d.on{border-color:var(--shell-text);background:var(--shell-text);color:var(--shell-surface);font-weight:600}

/* 칸마다 폰트 (글꼴 · 구조): 이름 · 보기 · 고르기 세 칸 */
html body #sideSet .sp-body .set-row.pf-row{display:grid;grid-template-columns:84px minmax(0,1fr) auto;gap:10px}
html body #sideSet .pf-row .pf-k{font:600 11.5px/1.2 Pretendard,sans-serif;letter-spacing:.02em;color:var(--shell-muted)}
html body #sideSet .pf-row .pf-s{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html body #sideSet .pf-row .set-pick{max-width:none;min-width:112px}

/* 내 계정: 사진·이름 · 프리미엄 · 관리자 · 저장 상태 — 다 같은 줄 */
html body #sideSet .sp-body .acc .acct{display:flex;align-items:center;gap:12px;min-height:60px;padding:6px 0 12px}
html body #sideSet .sp-body .acc .acct .btn{height:34px;padding:0 14px;border:0;border-radius:10px;background:var(--shell-soft);font:500 13px/1 Pretendard,sans-serif}
html body #sideSet .sp-body .plan-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;margin:0;padding:9px 0;border:0;border-top:1px solid var(--shell-line);border-radius:0;background:none;font-size:14px;color:var(--shell-text)}
html body #sideSet .sp-body .plan-row span{font-size:14px;color:var(--shell-text)}
html body #sideSet .sp-body .plan-row .btn{height:34px;padding:0 14px;border:0;border-radius:10px;background:var(--shell-soft);color:var(--shell-text);font:500 13px/1 Pretendard,sans-serif}
html body #sideSet .sp-body .admin-go{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;margin:0;padding:0;border:0;border-top:1px solid var(--shell-line);border-radius:0;background:none!important;color:var(--shell-text);font:400 14px/1 Pretendard,sans-serif;text-decoration:none}
html body #sideSet .sp-body #syncState{margin:0;padding:10px 0 2px;border-top:1px solid var(--shell-line);font-size:12px}

/* 우리 학교 찾기 줄 */
html body #sideSet .sp-body .ed-row:has(#schoolQ){border-top:0}
html body #sideSet .sp-body > .ed-row > .btn{height:36px;padding:0 14px;border:0;border-radius:10px;background:var(--shell-soft);font:500 13px/1 Pretendard,sans-serif}

/* 코멘트 미리 보기 · D-day 쪽 줄 · 오늘의 문장 */
html body #sideSet .q-preview{margin:2px 0 10px}

/* 플래너 관리 같은 목록: 묶음마다 둥근 칸, 줄 높이 52 */
html body #side .sg.settings-menu:not(.settings-menu-root):not(.settings-menu-decorate) .sr{min-height:52px;padding-top:8px;padding-bottom:8px}
html body #side .sg.settings-menu + .sg.settings-menu{margin-top:0}

/* 단추 밑 작은 칸 (설정): 설정 창 위로 · 고른 것은 ✓ */
html body .set-drop.pill-drop{z-index:80;padding:4px;max-width:min(280px,calc(100vw - 32px))}
html body .set-drop .msr-list{max-height:min(320px,52vh)}
html body .set-drop .msr-chip{flex:0 0 40px;justify-content:space-between;gap:14px;padding:0 12px;font-size:14px}
html body .set-drop .msr-chip > span{min-width:0;overflow:hidden;text-overflow:ellipsis}
html body .set-drop .msr-chip.on{font-weight:600}
html body .set-drop .sp-tick{flex:none;color:var(--accent,#e2545e)}

/* 구조 쪽: 윗부분 배치 · 하루 쪽 배치 제목도 같은 작은 회색 제목, 편집 단추는 칸 폭 회색 단추 */
html body #sideSet .sp-body :is(.hl-settings,.dl-settings){margin:0;padding:0}
html body #sideSet .sp-body .dl-settings,html body #sideSet .sp-body .sp-sub + .hl-settings{margin-top:8px;border-top:1px solid var(--shell-line)}
html body #sideSet .sp-body :is(.hl-settings-title,.dl-settings-title){padding:12px 0 6px;font:600 12px/1.3 Pretendard,sans-serif;color:var(--shell-muted)}
html body #sideSet .sp-body .dl-settings .dl-settings-title{padding-top:16px}
html body #sideSet .sp-body :is(.hl-settings,.dl-settings) > p{margin:-2px 0 10px;font-size:12px;line-height:1.55;color:var(--shell-muted)}
html body #sideSet .sp-body :is(.hl-edit-launch,.dl-edit-launch){min-height:42px;margin:10px 0 6px;border:0;border-radius:12px;background:var(--shell-soft);font:600 13px/1 Pretendard,sans-serif}
html body #sideSet .sp-body :is(.hl-settings,.dl-settings) + .sp-sub > .set-row:first-child{margin-top:8px}

/* 줄 안 휴지통은 18 (다른 칸 아이콘과 같은 크기) */
html body #sideSet .sp-body :is(.ed-row,.fx-row) > .mini.danger svg{width:18px;height:18px}
