/* 이지통계 H – 고유 스타일 (공통 프레임은 ../common/easy.css) */
:root { --view-bg: #ffffff; --sh-in: #eef4ff; --sh-out: #f3faef; }

/* 인트로 */
.ez-intro { gap: 16px; }
.ez-intro .sh-login { position: absolute; top: 16px; right: 16px; height: 38px; padding: 0 16px; border-radius: 19px; border: 1.5px solid rgba(255,255,255,.8); background: transparent; color: #fff; }
.ez-intro .sh-logo-mark { color: var(--primary); filter: drop-shadow(0 6px 16px rgba(0,0,0,.25)); }
.ez-intro .sh-ebs { font-size: 18px; letter-spacing: .02em; }

/* 메뉴 */
.sh-menu { width: 348px; }
.sh-menu header { gap: 6px; padding: 10px 10px 8px 14px; border-bottom: 1px solid var(--line); }
.sh-mlogo { border: 0; background: none; font-weight: 800; font-size: 17px; color: var(--primary); padding: 6px 4px; border-radius: 6px; white-space: nowrap; }
.sh-mlogo:hover { background: var(--bg); }
.sh-mtools { display: flex; align-items: center; gap: 4px; }
.sh-menu header .sh-mini { height: 30px; font-size: 13px; padding: 0 10px; border: 1px solid var(--line); line-height: 1; }
.sh-menu header .sh-vbtn { width: 32px; height: 32px; padding: 6px; border-radius: 6px; color: var(--muted); display: inline-flex; }
.sh-menu header .sh-vbtn.on { background: var(--primary-weak); color: var(--primary); }
.sh-vbtn svg { width: 100%; height: 100%; }
.sh-mlist { flex: 1; overflow-y: auto; padding: 10px; }
.sh-mlist.tile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; grid-auto-rows: max-content; }
.sh-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; min-height: 104px; }
.sh-tile:hover { border-color: var(--primary); }
.sh-tile.sel { border-color: var(--primary); background: var(--primary-weak); }
.sh-tile .th { width: 64px; height: 50px; color: var(--primary); }
.sh-tile .th svg { width: 100%; height: 100%; }
.sh-tile .nm { font-size: 13.500px; line-height: 1.3; font-weight: 600; text-align: center; word-break: keep-all; }
.sh-mlist.tile .sh-sublist { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: -4px; }
.sh-mlist.list { padding: 6px 0; }
.sh-mlist .item { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; line-height: 1.35; word-break: keep-all; }
.sh-mlist .item.sub { padding-left: 32px; font-size: 14px; background: #fafbfd; }
.sh-mlist .item .caret { color: var(--muted); font-size: 11px; }

/* 세부 설정 줄 */
#subSetting { gap: 10px; }
.sh-subclose { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; padding: 2px 8px; border-radius: 6px; flex: none; }
.sh-switch-wrap { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.sh-switch-wrap label { color: var(--text); font-size: 15px; }
.sh-switch { position: relative; width: 66px; height: 30px; border-radius: 15px; border: 0; background: #b9c0cc; color: #fff; font-size: 12px; font-weight: 800; padding: 0; flex: none; }
.sh-switch .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.sh-switch .txt { position: absolute; right: 9px; top: 0; line-height: 30px; }
.sh-switch.on { background: var(--primary); }
.sh-switch.on .knob { left: 39px; }
.sh-switch.on .txt { right: auto; left: 10px; }

/* 뷰포트 */
.sh-viewwrap { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.sh-view { flex: 1; min-width: 0; min-height: 0; overflow: auto; background: var(--view-bg); padding: 4px 14px 56px; }
/* 되돌리기/다시 실행/새로고침: 뷰포트 오른쪽 위의 고정된 줄(내용이 그 밑으로 지나가며 가려지지 않게 스크롤 영역 밖에 둠) */
.sh-vtools { flex: none; display: flex; justify-content: flex-end; gap: 2px; padding: 4px 18px 0; background: var(--view-bg); }
.sh-vtools button { width: 36px; height: 36px; border: 0; background: none; border-radius: 8px; color: var(--muted); padding: 8px; }
.sh-vtools button:hover { background: var(--bg); color: var(--text); }
.sh-vtools svg { width: 100%; height: 100%; }
.sh-kbtn { position: absolute; left: 12px; bottom: 10px; z-index: 5; width: 46px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); padding: 7px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.sh-kbtn.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.sh-kbtn svg { width: 100%; height: 100%; }

/* 수식 */
.m { font-family: var(--math); font-size: 1.08em; white-space: nowrap; }
.m i { font-style: italic; }
.m .fr { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; font-size: .88em; line-height: 1.2; margin: 0 .12em; }
.m .fr > span:first-child { border-bottom: 1.3px solid currentColor; padding: 0 .25em 1px; }
.m .fr > span:last-child { padding: 1px .25em 0; }
.m .sq { display: inline-flex; align-items: stretch; vertical-align: middle; }
.m .sq .rt { display: inline-flex; align-items: center; }
.m .sq .rd { border-top: 1.3px solid currentColor; padding: 1px .12em 0; margin-left: -.06em; display: inline-flex; align-items: center; }
.m .sq.tall .rt { transform: scaleY(2); transform-origin: center; }
.m .fr .sq { vertical-align: baseline; }
.m .bp { display: inline-block; transform: scaleY(2.1); margin: 0 .05em; }
.m .ov { text-decoration: overline; }
.m .hat { position: relative; }
.m .hat::after { content: '^'; position: absolute; left: 0; right: 0; top: -.62em; text-align: center; font-style: normal; font-size: .8em; }
.m .tx { font-family: var(--ui); font-size: .92em; }
.m sup, .m sub { font-size: .68em; }

/* 모듈 배치 */
.sh-cols { display: flex; gap: 12px; align-items: flex-start; }
.sh-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sh-col.cl { width: 350px; flex: none; }
.sh-col.cm { flex: 1; }
.sh-col.cr { width: 218px; flex: none; }
.sh-stack { display: flex; flex-direction: column; gap: 12px; }
.sh-hide { display: none !important; }
.sh-sec { border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.sh-sec.in { background: var(--sh-in); border-color: #cfdcf3; }
.sh-sec-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; font-weight: 800; flex-wrap: wrap; }
.sh-sec-h .bar { width: 4px; height: 18px; border-radius: 2px; background: var(--primary); flex: none; }
.sh-sec-h .ttl { flex: 1 1 11em; min-width: 0; word-break: keep-all; }
.sh-sec-b { padding: 6px 12px 12px; }
.sh-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sh-field > label, .sh-flabel { font-size: 15px; font-weight: 600; }
.sh-frow { display: flex; align-items: center; gap: 8px; }
.sh-frow .sh-range { flex: 1; min-width: 60px; }
.sh-in { height: 38px; border: 1.5px solid #b9c3d6; border-radius: 8px; padding: 0 8px; font: 18px var(--math); width: 6.5em; background: #fff; color: var(--text); text-align: center; }
.sh-in:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.sh-in.bad { border-color: var(--danger); background: #fff3f3; }
.sh-in:disabled { background: #eef0f4; color: var(--muted); }
.sh-range { accent-color: var(--primary); height: 28px; }
.sh-play { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--primary); background: #fff; color: var(--primary); font-size: 15px; flex: none; padding: 0; }
.sh-play.on { background: var(--primary); color: #fff; }
.sh-done { align-self: flex-end; min-width: 110px; height: 40px; font-size: 16px; }
.sh-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.sh-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.sh-gbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 12px 6px; }
.sh-gbar .sp { flex: 1; }
.sh-tg.on, .sh-ch.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.sh-graph { position: relative; }
.sh-cv { display: block; width: 100%; height: clamp(300px, calc(100vh - 300px), 620px); touch-action: pan-y; border-radius: 0 0 12px 12px; }
.sh-cv.drag { touch-action: none; }
/* 분포 배지: 그래프 왼쪽 위(그래프와 겹치지 않게 그래프 위쪽 줄에 둠) */
.sh-badge-wrap { position: relative; display: block; width: max-content; max-width: 100%; margin: 0 0 2px 12px; z-index: 2; }
.sh-badge { border: 1.5px solid var(--primary); background: #fff; color: var(--primary); border-radius: 8px; padding: 3px 10px; font-size: 15px; line-height: 1.45; text-align: left; }
.sh-bubble { display: none; position: absolute; left: 0; top: calc(100% + 8px); background: #2b3140; color: #fff; padding: 8px 12px; border-radius: 10px; line-height: 1.6; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.sh-bubble.show { display: block; }
.sh-bubble::before { content: ''; position: absolute; left: 16px; top: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: #2b3140; }

/* 표 */
.sh-tblwrap { overflow: auto; max-height: calc(100vh - 210px); border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.sh-tbl { border-collapse: collapse; width: 100%; font: 16px var(--math); }
.sh-tbl th, .sh-tbl td { border: 1px solid var(--line); padding: 5px 10px; text-align: center; white-space: nowrap; }
.sh-tbl thead th { position: sticky; top: 0; background: #eef1f6; z-index: 1; font-weight: 400; }
.sh-tbl tr.on td { background: color-mix(in srgb, var(--primary) 18%, #fff); }
.sh-tbl tr.sum td { background: #f6f7fa; font-family: var(--ui); font-size: 14px; }
.sh-tbl tr.sum td:last-child { font: 16px var(--math); }
.sh-tbl.h th { position: static; }
.sh-xp { overflow-x: auto; padding-bottom: 4px; }
.sh-xp table { border-collapse: collapse; }
.sh-xp th, .sh-xp td { border: 1px solid #aeb7c7; padding: 6px; text-align: center; min-width: 76px; height: 50px; }
.sh-xp th { background: #e9edf4; font-weight: 400; white-space: nowrap; padding: 6px 12px; }
.sh-xp tr:first-child td { background: #e3eefc; }
.sh-xp tr:last-child td { background: #e8f5df; }
.sh-xp td.sum { background: #f6f7fa !important; font: 17px var(--math); min-width: 70px; }
.sh-xp td.sum.bad { color: var(--danger); font-weight: 700; }
.sh-xp .sh-in { width: 4.6em; height: 36px; }

/* 확률 계산 입력 */
.sh-types { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sh-types .ez-btn { min-width: 64px; font-size: 16px; }
.sh-prow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sh-pexpr { display: flex; align-items: center; gap: 6px; font-size: 18px; flex-wrap: wrap; }
.sh-pres { font-size: 20px; font-weight: 700; color: var(--primary); }
.sh-pbtns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sh-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.500px; color: var(--muted); }
.sh-steps { display: grid; grid-template-columns: auto 1fr; gap: 10px 6px; align-items: center; font-size: 17px; overflow-x: auto; padding: 6px 2px; }
.sh-steps .l { text-align: right; }
.sh-proc p { margin: 0 0 6px; line-height: 1.7; }
.sh-proc2 { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.sh-proc2 > .sh-proc { flex: 1; min-width: 260px; }
.sh-alert { margin: 0; line-height: 1.7; }
.ez-pop:has(.sh-wide) { max-width: min(860px, 100%); }
.sh-wide { min-width: min(520px, 80vw); }

/* 추가/삭제, 탭 */
.sh-adddel { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 600; font-size: 14px; }
.sh-adddel .lbl { margin-right: 4px; }
.sh-adddel .slash { color: var(--muted); }
.sh-pm { width: 28px; height: 28px; border: 1.5px solid var(--primary); border-radius: 6px; background: #fff; color: var(--primary); font-size: 18px; font-weight: 800; line-height: 1; padding: 0; }
.sh-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--primary); margin-bottom: 12px; }
.sh-tab { border: 1px solid var(--line); border-bottom: 0; background: #f1f3f7; border-radius: 10px 10px 0 0; padding: 9px 14px; font-size: 14.500px; }
.sh-tab.sel { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.sh-evs { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; }
.sh-evs .ez-btn { min-width: 110px; height: 44px; font-size: 17px; }
.sh-evs .out { min-height: 50px; display: flex; align-items: center; background: color-mix(in srgb, var(--primary) 9%, #fff); border-radius: 8px; padding: 6px 12px; font-size: 18px; overflow-x: auto; }

/* 자료 표 */
.sh-dt { max-height: 398px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sh-dt table { border-collapse: collapse; width: 100%; }
.sh-dt thead th { position: sticky; top: 0; background: #e9edf4; z-index: 1; height: 34px; font-size: 14px; }
.sh-dt th, .sh-dt td { border-bottom: 1px solid var(--line); height: 36px; padding: 0; text-align: center; }
.sh-dt tbody th { width: 52px; background: #f6f7fa; color: var(--muted); font-weight: 400; font-size: 13px; border-right: 1px solid var(--line); }
.sh-dt.ro td { font: 16px var(--math); }
.sh-dtin { width: 100%; height: 35px; border: 0; background: transparent; text-align: center; font: 16px var(--math); color: var(--text); }
.sh-dtin:focus { outline: 2px solid var(--primary); outline-offset: -2px; }
.sh-dtin.bad { background: #ffecec; color: var(--danger); }
.sh-dt tr.mark td, .sh-dt tr.mark th { background: color-mix(in srgb, var(--primary) 20%, #fff); }
.sh-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; margin: 0 0 10px; }
.sh-kv dt { color: var(--muted); font-size: 14px; }
.sh-kv dd { margin: 0; font-size: 17px; }
.sh-grp { font-weight: 800; font-size: 14px; margin: 10px 0 6px; color: var(--primary); }
.sh-ci-res { background: color-mix(in srgb, var(--primary) 9%, #fff); border-radius: 10px; padding: 10px 12px; margin: 8px 0; overflow-x: auto; }
.sh-ci-res .t { font-weight: 700; margin-bottom: 6px; }
.sh-ci-res .big { font-size: 21px; font-weight: 700; color: var(--primary); margin-top: 8px; }
.sh-ci-res .f { font-size: 17px; }
.sh-form { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; }
.sh-form > label { font-size: 15px; font-weight: 600; }
.sh-form .full { grid-column: 1 / -1; }
.sh-select { height: 38px; border: 1.5px solid #b9c3d6; border-radius: 8px; padding: 0 8px; font: inherit; background: #fff; max-width: 100%; }
.sh-radio { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.sh-radio label { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; }
.sh-ci { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.sh-ci-axis { display: block; width: 100%; height: 40px; flex: none; }
.sh-ci-scroll { height: 330px; overflow-y: auto; }
.sh-ci-bars { display: block; width: 100%; height: 328px; }
.sh-tally { line-height: 1.9; font-size: 16px; margin-top: 8px; }
.sh-tally b { color: var(--primary); }
.sh-tally .no b { color: var(--danger); }
.sh-dot { display: block; width: 100%; height: 190px; }

/* 연속확률변수 */
.sh-ftbl { width: 100%; border-collapse: collapse; }
.sh-ftbl th { font-size: 14px; padding: 4px; }
.sh-ftbl td { padding: 4px; vertical-align: middle; }
.sh-ftbl .sh-in { width: 100%; text-align: left; font-size: 17px; }
.sh-ftbl td.rg { width: 46%; }
.sh-ftbl td.rg .sh-in { text-align: center; }
.sh-ftbl .sh-in::placeholder { font-size: 15px; }
.sh-piece { display: flex; align-items: center; gap: 4px; }
.sh-piece .br { font-size: 20px; transform: scaleY(2.4); display: inline-block; }
.sh-piece .rows { display: inline-flex; flex-direction: column; line-height: 1.5; }
.sh-ibtn { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--danger); color: #fff; font-weight: 900; padding: 0; line-height: 1; }
.sh-cond { background: #fff; border: 1px dashed #b9c3d6; border-radius: 8px; padding: 8px 10px; margin: 8px 0; line-height: 1.7; font-size: 14.500px; }
.sh-step2 { border: 1.5px solid var(--primary); border-radius: 10px; padding: 12px; text-align: center; line-height: 1.7; background: #fff; }
.sh-step2 .btns { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.sh-step2 .btns button { width: 46px; height: 42px; border-radius: 10px; border: 1.5px solid var(--primary); background: #fff; color: var(--primary); font-size: 20px; padding: 0; }
.sh-fab { display: block; margin: 8px 12px 12px auto; }

/* 개념 설명·사용방법 카드, 기타 팝업 */
.sh-cards { display: flex; flex-direction: column; gap: 12px; min-width: min(440px, 76vw); }
.sh-card { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px 12px; line-height: 1.75; overflow-x: auto; }
.sh-card .ch { margin: 0 -14px 10px; padding: 8px 14px; background: var(--primary-weak); color: var(--primary); font-weight: 800; border-radius: 12px 12px 0 0; }
.sh-card .sub { color: var(--accent); font-weight: 800; margin-top: 8px; }
.sh-card p { margin: 4px 0; word-break: keep-all; }
.sh-card .eqn { text-align: center; margin: 8px 0; font-size: 17px; }
.sh-card table { border-collapse: collapse; margin: 8px auto; font-size: 14px; }
.sh-card td, .sh-card th { border: 1px solid var(--line); padding: 3px 8px; text-align: center; }
.sh-ztab { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); }
.sh-ztab table { margin: 0; font: 13px var(--math); }
.sh-ztab thead th { position: sticky; top: 0; background: #eef1f6; }
.sh-info { text-align: center; line-height: 1.9; }
.sh-info b { font-size: 22px; color: var(--primary); }
.sh-info .cp { color: var(--muted); font-size: 13px; }
.sh-share .lbl { font-weight: 700; margin: 4px 0 6px; }
.sh-share .row { display: flex; gap: 8px; margin-bottom: 14px; }
.sh-share .row .sh-in { font: 14px var(--ui); text-align: left; }
.sh-share canvas.qr { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; image-rendering: pixelated; }
.sh-share .qr.none { color: var(--muted); font-size: 14px; }
.sh-fig { margin: 8px 0; text-align: center; }
.sh-fig svg { max-width: 100%; height: auto; }
.sh-fig figcaption { font-size: 13px; color: var(--muted); }
.sh-figrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.sh-figrow .sh-fig { flex: 1 1 250px; margin: 4px 0; }
.sh-colors { display: grid; grid-template-columns: repeat(4, 52px); gap: 14px; justify-content: center; padding: 6px 0; }
.sh-colors button { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); padding: 0; }
.sh-colors button.on { box-shadow: 0 0 0 3.500px var(--text); }

/* 키패드 */
.sh-keypad { background: #e3e7ee; padding: 6px 8px 8px; flex: none; border-top: 1px solid var(--line); }
.sh-keypad.hide { display: none; }
.sh-khead { display: flex; align-items: center; gap: 6px; margin: 0 auto 6px; max-width: 980px; }
.sh-khead .tab { height: 32px; padding: 0 16px; border-radius: 8px; border: 0; background: transparent; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; }
.sh-khead .tab.sel { background: #fff; color: var(--primary); }
.sh-khead .close { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; padding: 2px 8px; }
.sh-kcols { display: grid; grid-template-columns: 4fr 4fr 3fr; gap: 12px; max-width: 980px; margin: 0 auto; }
.sh-kcol { display: grid; gap: 5px; grid-auto-rows: 42px; }
.sh-kcol.kb { grid-template-columns: repeat(4, 1fr); }
.sh-kcol.kc { grid-template-columns: repeat(3, 1fr); }
.sh-kcol.ka { grid-template-columns: 1fr; grid-auto-rows: auto; align-content: start; min-width: 0; }
.sh-kcol.ka.f { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 42px; }
.sh-key { border: 0; border-radius: 8px; background: var(--key); font-size: 19px; box-shadow: 0 1px 0 rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; user-select: none; touch-action: manipulation; padding: 0; min-width: 0; }
.sh-key:active:not(:disabled) { transform: translateY(1px); background: #f1f3f7; }
.sh-key.fn { background: var(--key-fn); }
.sh-key.math { font: 20px var(--math); }
.sh-key.hot { background: var(--primary); color: #fff; font-weight: 800; }
.sh-key.txt { font-size: 14px; font-weight: 700; }
.sh-key.on { background: var(--primary); color: #fff; }
.sh-key.w2 { grid-column: span 2; } .sh-key.w3 { grid-column: span 3; }
.sh-key .kbox { display: inline-block; width: .6em; height: .76em; border: 1.5px dashed currentColor; opacity: .7; }
.sh-key sup .kbox { width: .55em; height: .55em; }
.sh-key .kfr { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-size: .62em; }
.sh-key .kfr span:first-child { border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.sh-kmode { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; height: 34px; }
.sh-klogo { display: flex; align-items: center; justify-content: center; color: rgba(60,70,90,.22); font-weight: 900; font-size: 22px; min-height: 120px; }
.sh-klogo.w4 { grid-column: span 4; grid-row: span 3; min-height: 0; }
.sh-kscreen { background: #fff; border-radius: 8px; height: 142px; overflow-y: auto; padding: 4px; }
.sh-kscreen .ln { display: flex; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: none; padding: 4px 8px; font: 17px var(--math); border-radius: 6px; text-align: left; min-height: 28px; }
.sh-kscreen .ln.sel { background: var(--primary-weak); }
.sh-kscreen .ln .r { color: var(--primary); white-space: nowrap; }
.sh-kscreen .ln.cur { justify-content: flex-start; gap: 1px; border-top: 1px dashed var(--line); border-radius: 0; }
.sh-kscreen .caret { width: 2px; height: 1.1em; background: var(--primary); animation: shblink 1s steps(1) infinite; }
@keyframes shblink { 50% { opacity: 0; } }
.sh-kcopy { height: 32px; font-size: 13.500px; justify-self: start; }
.sh-kchars { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 5px; }
.sh-kchars .row { display: flex; gap: 5px; justify-content: center; }
.sh-kchars .sh-key { flex: 1; height: 40px; max-width: 70px; font-size: 18px; }
.sh-kchars .sh-key.wide { flex: 1.5; max-width: 100px; }
.sh-kchars .sh-key.space { flex: 6; max-width: none; font-size: 14px; }

/* 발표 모드: 뷰포트의 글자·선·표를 크고 진하게 */
body.present .sh-view { font-size: 20px; font-weight: 600; color: #000; }
body.present .sh-in { font-size: 23px; height: 46px; border-width: 2px; border-color: #5b6880; }
body.present .sh-tbl, body.present .sh-dtin, body.present .sh-dt.ro td { font-size: 21px; }
body.present .sh-tbl, body.present .sh-tbl thead th, body.present .sh-tbl tr.sum td, body.present .sh-dtin, body.present .sh-dt.ro td, body.present .sh-dt th, body.present .sh-in, body.present .sh-xp th, body.present .sh-xp td, body.present .sh-ftbl th { font-weight: 700; color: #000; }
body.present .sh-tbl th, body.present .sh-tbl td, body.present .sh-xp th, body.present .sh-xp td { border-color: #5b6880; border-width: 1.500px; }
body.present .sh-sec { border-width: 2px; border-color: #8793a8; }
body.present .ez-btn { height: 44px; font-size: 18px; border-width: 2px; }
body.present .sh-pexpr, body.present .sh-evs .out, body.present .sh-steps { font-size: 22px; }
body.present .sh-pres { font-size: 25px; }
body.present .sh-badge { font-size: 19px; border-width: 2px; }
body.present .sh-field > label, body.present .sh-flabel, body.present .sh-form > label { font-size: 19px; }

/* 반응형 */
/* 메뉴를 펼치면 뷰포트가 좁아지므로 창 너비가 아니라 뷰포트 너비를 기준으로 배치를 바꾼다 */
.sh-view { container-type: inline-size; }
@container (max-width: 1080px) { .sh-col.cl { width: 290px !important; } .sh-col.cr { width: 180px !important; } }
@container (max-width: 760px) {
  .sh-cols { flex-direction: column; align-items: stretch; }
  .sh-col.cl, .sh-col.cr { width: auto !important; }
  .sh-tblwrap { max-height: 320px; }
  .sh-cv { height: clamp(280px, 56vh, 480px); }
}
@media (max-width: 820px) {
  .sh-menu { width: min(348px, 92vw); }
  .sh-view { padding: 4px 8px 56px; }
  .sh-vtools { padding: 2px 10px 0; }
  /* 좁은 화면에서도 메뉴 버튼 오른쪽에 현재 모듈 이름을 보인다(공통 스타일은 숨김). 두 줄까지, 넘치면 말줄임 */
  .ez-top .ez-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; flex: 1 1 0; min-width: 0; font-size: 12.500px; line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere; margin: 0 2px; }
  .ez-top .ez-logo { font-size: 14px; padding: 6px 4px; flex: none; margin: 0; }
}
@media (max-width: 480px) {
  /* 세부 설정 4종이 한 화면에 들어오게 줄이고, 그래도 좁으면 줄바꿈 */
  #subSetting { gap: 4px; padding: 6px 8px; flex-wrap: wrap; overflow-x: visible; }
  #subSetting .sep { display: none; }
  #subSetting .ez-btn { padding: 0 7px; font-size: 14px; }
  #subSetting .sh-switch-wrap { gap: 5px; }
  #subSetting .sh-switch-wrap label { font-size: 14px; }
  #subSetting .sh-switch { width: 60px; }
  #subSetting .sh-switch.on .knob { left: 33px; }
  #subSetting .sh-subclose { padding: 2px 6px; }
}
@media (max-width: 700px) {
  .sh-kcols { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sh-kcol.ka { grid-column: 1 / -1; }
  .sh-kcol.ka.f { grid-template-columns: repeat(8, 1fr); grid-auto-rows: 38px; }
  .sh-klogo { min-height: 0; display: none; }
  .sh-kscreen { height: 86px; }
  .sh-kcol { grid-auto-rows: 38px; }
  .sh-kcols { grid-template-columns: 4fr 3fr; }
  .sh-key { font-size: 17px; }
  .sh-evs { grid-template-columns: 1fr; }
}
