:root { --bg: #fdf8ff; --fg: #1c1b1f; --main: #6750a4; --card: #ece6f0; --err: #b3261e; --muted: #49454f; }
@media (prefers-color-scheme: dark) { :root { --bg: #141218; --fg: #e6e0e9; --main: #d0bcff; --card: #2b2930; --err: #f2b8b5; --muted: #cac4d0; } }
/* V07 · hidden 속성이 .btn { display: block }에 지지 않게(꺼진 제공자 버튼이 보이던 빈틈) */
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1.0625rem/1.55 system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.6rem; margin: 8px 0; }
/* V07 · 링크는 테마 색(어두운 모드에서 기본 파랑이 진한 바탕에 묻혔음) · body 글자 = rem(사용자 「글자 크기」 설정을 따름 · 예전 17px 고정) */
a { color: var(--main); }
.bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bar h1 { flex: 1; }
.btn { display: block; width: 100%; min-height: 52px; margin: 10px 0; padding: 12px; border: 0; border-radius: 26px; background: var(--main); color: var(--bg); font-size: 1rem; text-align: center; text-decoration: none; cursor: pointer; }
.link { background: none; border: 0; color: var(--main); font-size: 1rem; cursor: pointer; padding: 8px; }
textarea { width: 100%; font: inherit; padding: 10px; border-radius: 8px; border: 1px solid var(--muted); background: transparent; color: inherit; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.file input { max-width: 100%; }
.small { font-size: .85rem; color: var(--muted); }
.error { color: var(--err); min-height: 1.2em; }
ul { list-style: none; padding: 0; }
li { background: var(--card); border-radius: 16px; padding: 12px 14px; margin: 8px 0; }
li img { max-width: 100%; border-radius: 8px; margin-top: 6px; }
/* B10 · 사진 여러 장: 한 장이면 넓게 · 2 · 3장이면 한 줄에 나란히(폰 360px에서도 넘치지 않게) */
.photos { display: grid; gap: 6px; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); }
.photos.n2 { --n: 2; } .photos.n3 { --n: 3; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photos.n1 img { aspect-ratio: auto; object-fit: initial; width: auto; }
li .meta { font-size: .8rem; color: var(--muted); }
input[type=text] { width: 100%; font: inherit; padding: 10px; border-radius: 8px; border: 1px solid var(--muted); background: transparent; color: inherit; min-height: 48px; }
.check { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; }
.check input { width: 22px; height: 22px; }
li.pinned { outline: 2px solid var(--main); }
.pin { font-size: .8rem; color: var(--main); font-weight: 600; }
.tags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: .8rem; background: var(--bg); border-radius: 10px; padding: 2px 8px; }
details { margin: 16px 0; }
summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; color: var(--main); }
.btn.secondary { background: transparent; color: var(--main); border: 2px solid var(--main); }
ul.plain, ol.plain { padding-left: 1.2em; }
ul.plain li, ol.plain li { background: none; padding: 2px 0; margin: 4px 0; border-radius: 0; }
.note { border: 1px solid var(--muted); border-radius: 12px; padding: 8px 12px; }
.btn.danger { background: var(--err); }
/* V03 · 카카오 로그인 공식 색(다크 모드에서도 바꾸지 아니함 · 가이드) */
/* V07 · 구글 공식 밝은 · 어두운 테마(identity/branding-guidelines) · 네이버 녹색(⚠ 색 코드 확인 못 함 · index.html 주석) */
.btn.google { background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; }
@media (prefers-color-scheme: dark) { .btn.google { background: #131314; color: #E3E3E3; border-color: #8E918F; } }
.btn.naver { background: #03C75A; color: #FFFFFF; }
.btn.kakao { background: #FEE500; color: rgba(0, 0, 0, .85); border-radius: 12px; }
/* V04 · 페이스북 공식 색(흰색 + Facebook blue · 다크 모드에서도 그대로) */
.btn.facebook { background: #1877F2; color: #FFFFFF; }
/* V05 · LINE 공식 색(#06C755 · 흰 글자 · hover 검정 10% · press 검정 30% 덧칠 · 줄바꿈 금지) */
.btn.line { background: #06C755; color: #FFFFFF; white-space: nowrap; }
.btn.line:hover { background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), #06C755; }
.btn.line:active { background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)), #06C755; }
/* V06 · 밴드 — 공식 버튼 규정이 없어 중립(흰 바탕 · 진한 글자 · 테두리 대비 4.5:1 · 다크 모드에서도 그대로) · 밴드 색을 흉내 내지 아니함 */
.btn.band { background: #FFFFFF; color: #1E1E1E; border: 1px solid #767676; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
h2 { font-size: 1.15rem; margin: 20px 0 6px; }
ul.plain { list-style: disc; } ol.plain { list-style: decimal; }

/* v5 3회 · 테스트 방 · 센터 웹 — 큰 버튼 · 한 화면 한 일 · 표는 좁은 폰에서 가로로 넘치지 않게 · 인쇄 화면은 버튼 · 입력 없이 */
.try textarea, .center textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .6rem; }
.try input#code { font-size: 1.4rem; letter-spacing: .2em; width: 100%; box-sizing: border-box; padding: .6rem; text-transform: uppercase; }
.row { display: flex; gap: .5rem; align-items: center; min-height: 48px; flex-wrap: wrap; }
.item { display: block; margin: .8rem 0; }
.item b { display: block; }
.btn.primary { min-height: 48px; }
#elders .btn { display: block; width: 100%; margin: .4rem 0; min-height: 56px; }
.center table { width: 100%; border-collapse: collapse; table-layout: fixed; word-break: keep-all; overflow-wrap: anywhere; }
.center th, .center td { text-align: left; padding: .5rem .3rem; border-bottom: 1px solid var(--line, #ccc); }
.center tbody tr { cursor: pointer; }
.error { color: var(--err, #b3261e); min-height: 1.2em; }
@media print { .noprint, #msg, #csv, header .small { display: none !important; } body { background: #fff; color: #000; } }
.notice-ok { color: inherit; min-height: 1.2em; }

/* v6 2-5 · 사용법 */
.howto-steps { list-style: none; padding: 0; display: grid; gap: 16px; }
.howto-steps img { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 12px; border: 1px solid rgba(127,127,127,.3); }
/* 클라우드 앱 테스트 1105 · 직군별 미리 보기(roles.html) — 고르기 버튼 · 숫자 칸 · 한눈에 숫자 · 표(360px에서도 가로 넘침 0) */
.choices .btn { min-height: 56px; margin: .4rem 0; }
.roles input[type=number] { width: 100%; font: inherit; padding: 10px; border-radius: 8px; border: 1px solid var(--muted); background: transparent; color: inherit; min-height: 48px; }
.vitals { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.vitals label { display: block; font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--card); border-radius: 16px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 1.6rem; }
.tbl { width: 100%; border-collapse: collapse; table-layout: fixed; word-break: keep-all; overflow-wrap: anywhere; }
.tbl th, .tbl td { text-align: left; padding: .5rem .3rem; border-bottom: 1px solid var(--muted); font-size: .95rem; }
.summary-item { margin: .4rem 0; }
@media (min-width: 900px) { main.roles { max-width: 860px; } }
/* 🆕 11/16 · 운영자 테스터 표(ops.html) — 폰 너비에서 표만 옆으로 넘김 · 오류(warn) · 3일 넘게 안 옴(away) · 나감(left) */
.ops .scroll { overflow-x: auto; }
.ops table { min-width: 640px; }
.ops tbody tr { cursor: default; }
.ops tr.warn td:nth-child(5) { color: var(--err, #b3261e); font-weight: 600; }
.ops tr.away td:nth-child(3) { color: var(--err, #b3261e); }
.ops tr.left { opacity: .6; }
.ops form label { display: block; margin: .6rem 0; }
.ops form input { display: block; width: 100%; max-width: 20rem; box-sizing: border-box; font: inherit; padding: .5rem; }
/* 🆕 11/16-2 · 방 목록 날 수 바꾸기 칸 · 새 방 코드 안내 */
.ops .ok { color: var(--ok, #1f7a3a); font-weight: 600; }
.ops h2 { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }

/* 🆕 11/18 · 운영 보고서(ops.html) — 기간 단추 · 숫자 타일 · 막대 · 표 */
.ops .rep-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.ops .rep-btn { display: inline-block; width: auto; min-height: 44px; margin: 0; padding: 8px 16px; }
.ops .rep-custom { display: inline-flex; gap: 6px; align-items: center; }
.ops .rep-custom input[type=date] { font: inherit; min-height: 44px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--muted); background: transparent; color: inherit; }
.ops .rep-tiles { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ops .rep-num { font-size: 1.35rem; font-weight: 700; }
.ops .rep-rank { text-align: left; }
.ops .rep-rank ol { margin: 4px 0 0; padding-left: 1.2em; }
.ops .rep-rank li { background: none; padding: 0; margin: 2px 0; border-radius: 0; }
.ops .rep-tall { max-height: 420px; overflow-y: auto; }
.ops .rep-row { cursor: pointer; }
.ops .rep-row:hover, .ops .rep-row:focus { outline: 2px solid var(--main); }
.ops tr.rep-voice td { background: var(--card); }
.rep-svg { display: block; max-width: none; }
.rep-svg .rep-val { fill: var(--main); }
.rep-svg .rep-hit { fill: transparent; }
.rep-svg .rep-bar.can { cursor: pointer; }
.rep-svg .rep-bar.can:hover .rep-hit, .rep-svg .rep-bar:focus .rep-hit { fill: var(--card); }
.rep-svg .rep-x { fill: var(--muted); font-size: 11px; }
.rep-svg .rep-axis { stroke: var(--muted); stroke-width: 1; }
main.center.ops { max-width: 1100px; }
.ops #rep-people, .ops #rep-fb, .ops #rep-diff, .ops #rep-person { table-layout: auto; }
.ops #rep-fb td:last-child { min-width: 260px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ops #rep-people td, .ops #rep-people th { white-space: nowrap; }
.ops #rep-people td:nth-child(8) { white-space: normal; min-width: 150px; }
.ops #rep-fb td:not(:last-child), .ops #rep-fb th { white-space: nowrap; }
