/* TEE MATE 운영자 사이트. 색은 앱 시안(짙은 녹색 · 흰 카드)을 따른다. 다크는 컴퓨터 설정을 따른다. */
:root {
  color-scheme: light;
  --bg: #F4F6F3;
  --card: #FFFFFF;
  --sub: #EEF2EF;
  --line: #E1E7E2;
  --text: #14201A;
  --text-2: #5B6862;
  --primary: #0F5A3C;
  --accent: #0F5A3C;
  --up: #D93636;
  --down: #2D55C8;
  --male: #2D55C8;
  --female: #D6336C;
  --online: #16803C;
  --badge-bg: #E3F1E8;
  --alert: #E5383B;
  --on-button: #FFFFFF;
  --hover: rgba(15, 90, 60, 0.05);
  --focus: #1E9E5A;
  --shadow: 0 1px 2px rgba(12, 74, 50, 0.06), 0 4px 16px rgba(12, 74, 50, 0.05);
  --scrim: rgba(15, 20, 32, 0.45);
  /* 상태 표시 (글자와 함께만 쓴다) */
  --ok-bg: #E7F5EC; --ok: #16803C;
  --warn-bg: #FFF4DC; --warn: #8A5A00;
  --bad-bg: #FDECEC; --bad: #C42B2B;
  /* 차트 (dataviz 검증 색: 계열 1~3, 성별은 앱 색) */
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a;
  --grid: #EEF2EF; --axis: #C9D3CD;
  --radius: 14px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0C1712; --card: #14231B; --sub: #1E3328; --line: #2B4436;
    --text: #E6EFE9; --text-2: #9BB0A3; --primary: #1E9E5A; --accent: #8FD9AE;
    --up: #FF6B6B; --down: #8EA6FF; --male: #5578E0; --female: #E0507F; --online: #5FD68A;
    --badge-bg: #1E3A2A; --hover: rgba(230, 239, 233, 0.05); --focus: #4BE08A;
    --shadow: none; --scrim: rgba(0, 0, 0, 0.6);
    --ok-bg: #173325; --ok: #5FD68A; --warn-bg: #3A2E12; --warn: #F2C04D; --bad-bg: #3B1C22; --bad: #FF8A8A;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70;
    --grid: #1E3328; --axis: #35503F;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.num, .tbl td.n, .tbl th.n { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.boot { display: grid; place-items: center; min-height: 100%; }
.boot-msg { color: var(--text-2); text-align: center; padding: 40px; }

/* 미리보기 띠 */
.demo-band { background: var(--warn-bg); color: var(--warn); text-align: center; font-size: 13px; padding: 7px 12px; font-weight: 600; }

/* ---------- 로그인 ---------- */
.auth { min-height: 100%; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 36px 32px 32px; border: 1px solid var(--line); }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.auth-logo img { width: 30px; height: 30px; }
.auth-logo b { font-size: 20px; letter-spacing: -0.3px; }
.auth-logo span { color: var(--text-2); font-size: 14px; }
.auth h1 { font-size: 20px; margin: 0 0 6px; letter-spacing: -0.3px; }
.auth p.lead { color: var(--text-2); margin: 0 0 22px; }
.auth form { display: grid; gap: 14px; }
.auth .qr { display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 12px; border: 1px solid var(--line); width: 196px; height: 196px; margin: 4px auto 0; }
.auth .qr img { width: 172px; height: 172px; image-rendering: pixelated; }
.auth .secret { text-align: center; }
.auth .secret code { display: inline-block; background: var(--sub); border-radius: 8px; padding: 6px 10px; letter-spacing: 1px; word-break: break-all; font-size: 13px; }
.auth ol.steps { margin: 0 0 4px; padding-left: 20px; color: var(--text-2); display: grid; gap: 4px; }
.auth .code-input { text-align: center; font-size: 24px; letter-spacing: 8px; font-variant-numeric: tabular-nums; }
.auth .foot { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }

/* ---------- 입력 ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--text-2); font-weight: 400; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 10px 12px; outline: none; transition: border-color .15s; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--focus); }
.textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.counter { font-size: 12px; color: var(--text-2); text-align: right; }
.counter.over { color: var(--bad); }
.form-error { color: var(--bad); font-size: 13px; min-height: 0; }
.form-error:empty { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 9px 16px; font-weight: 600; cursor: pointer; background: var(--sub); color: var(--text); white-space: nowrap; transition: filter .15s, background .15s; }
.btn:hover { filter: brightness(0.97); }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.btn.primary { background: var(--primary); color: var(--on-button); }
.btn.danger { background: var(--up); color: var(--on-button); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; padding: 12px 16px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

.seg { display: inline-flex; background: var(--sub); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button, .seg a { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-weight: 600; font-size: 13px; text-decoration: none; }
.seg .on { background: var(--card); color: var(--accent); box-shadow: 0 1px 2px rgba(20, 27, 52, .08); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--text-2); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.chip:hover { text-decoration: none; background: var(--hover); }
.chip.on { background: var(--badge-bg); border-color: transparent; color: var(--accent); }
.chip .n { margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ---------- 틀 ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100%; }
.side { background: var(--card); border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 9px; padding: 4px 10px 20px; }
.side .brand img { width: 28px; height: 28px; }
.side .brand b { font-size: 16px; letter-spacing: -0.2px; }
.side .brand span { font-size: 12px; color: var(--text-2); font-weight: 600; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none; }
.nav a:hover { background: var(--hover); }
.nav a.on { background: var(--badge-bg); color: var(--accent); }
.nav a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav .badge { margin-left: auto; }
.nav .sep { height: 1px; background: var(--line); margin: 10px 8px; }
.side .me { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.side .me b { font-size: 13px; }
.side .me .muted { font-size: 12px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--alert); color: #fff; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }

.main { min-width: 0; padding: 28px 36px 64px; }
.main-inner { max-width: 1180px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; margin: 0; letter-spacing: -0.4px; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-weight: 600; margin-bottom: 10px; font-size: 13px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.search { position: relative; min-width: 280px; }
.search .input { padding-left: 36px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--text-2); fill: none; stroke-width: 2; }

/* ---------- 카드·타일 ---------- */
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card.pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.card-head h2, .card h2 { font-size: 15px; margin: 0; letter-spacing: -0.2px; }
.card-head .sub { color: var(--text-2); font-size: 12px; }
.card-body { padding: 14px 20px 18px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.side-main { grid-template-columns: 340px 1fr; align-items: start; }
.stack { display: grid; gap: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; position: relative; }
a.tile:hover { text-decoration: none; border-color: var(--axis); }
.tile .label { color: var(--text-2); font-size: 13px; font-weight: 600; }
.tile .value { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }
.tile .value small { font-size: 14px; font-weight: 600; color: var(--text-2); margin-left: 2px; }
.tile .sub { color: var(--text-2); font-size: 12px; }
.tile.todo { border-color: var(--up); }
.tile.todo .value { color: var(--up); }
.tile .go { position: absolute; right: 14px; top: 14px; color: var(--text-2); font-size: 12px; }

.empty { text-align: center; color: var(--text-2); padding: 48px 16px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.loading { color: var(--text-2); padding: 40px 0; text-align: center; }
.note { background: var(--sub); border-radius: 12px; padding: 12px 14px; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.note b { color: var(--text); }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.note.warn b { color: inherit; }

/* ---------- 표 ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; color: var(--text-2); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th.n, .tbl td.n { text-align: right; white-space: nowrap; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td, .tbl tr.click:focus-within td { background: var(--hover); }
.tbl tr.dim td { color: var(--text-2); }
.tbl .clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .nowrap { white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13px; }
.pager .btns { display: flex; gap: 6px; }

.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .t { display: grid; min-width: 0; }
.who .t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .t span { color: var(--text-2); font-size: 12px; white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sub); flex: none; object-fit: cover; display: grid; place-items: center; color: var(--text-2); font-size: 12px; font-weight: 700; overflow: hidden; }
.avatar.lg { width: 72px; height: 72px; font-size: 22px; }
.avatar.md { width: 44px; height: 44px; font-size: 15px; }
.g-male { color: var(--male); }
.g-female { color: var(--female); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sub); color: var(--text-2); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--badge-bg); color: var(--accent); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 신고 상세 ---------- */
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
.quote { background: var(--sub); border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; word-break: break-word; }
.member-card { display: grid; gap: 12px; }
.member-card .who b { font-size: 15px; }
.chat { display: grid; gap: 10px; max-height: 560px; overflow-y: auto; padding: 4px 4px 4px 0; }
.msg { display: grid; grid-template-columns: 1fr; justify-items: start; gap: 3px; }
.msg.mine { justify-items: end; }
.msg .meta { font-size: 11px; color: var(--text-2); display: flex; gap: 6px; }
.msg .bubble { max-width: 72%; background: var(--sub); border-radius: 14px; padding: 9px 12px; white-space: pre-wrap; word-break: break-word; }
.msg.target .bubble { background: var(--badge-bg); }
.msg.flag .bubble { outline: 2px solid var(--up); }
.msg .flag-label { font-size: 11px; color: var(--up); font-weight: 700; }
.msg .bubble.sys { background: transparent; border: 1px dashed var(--line); color: var(--text-2); }
.msg img.photo { max-width: 220px; max-height: 260px; border-radius: 12px; cursor: zoom-in; display: block; background: var(--sub); }
.chat-day { text-align: center; font-size: 11px; color: var(--text-2); margin: 6px 0; }
.legend-inline { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend-inline i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- 사진 ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.photo-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; box-shadow: var(--shadow); transition: opacity .25s, transform .25s; }
.photo-card.gone { opacity: 0; transform: scale(.96); }
.photo-card .img { aspect-ratio: 4 / 5; background: var(--sub); position: relative; cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%; }
.photo-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card .img .tag { position: absolute; left: 8px; top: 8px; }
.photo-card .info { padding: 10px 12px; display: grid; gap: 6px; }
.photo-card .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 12px 12px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { width: 112px; display: grid; gap: 4px; justify-items: start; }
.thumb button { border: 0; padding: 0; background: var(--sub); border-radius: 12px; overflow: hidden; width: 112px; height: 140px; cursor: zoom-in; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb > .btn.small { width: 112px; height: auto; padding: 6px 10px; border-radius: 10px; cursor: pointer; margin-top: 2px; }
.row-act { display: flex; gap: 10px; align-items: flex-start; }
.row-act .grow { flex: 1; min-width: 0; }
.row-act > .btn { flex: none; margin-top: 4px; }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--text-2); font-size: 12px; text-align: center; padding: 8px; }

.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: grid; place-items: center; z-index: 60; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 8px; }

/* ---------- 모달·토스트 ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .15s; }
.modal { width: 100%; max-width: 460px; background: var(--card); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); display: grid; max-height: calc(100vh - 32px); overflow: auto; animation: rise .18s ease-out; }
.modal header { padding: 22px 24px 0; }
.modal header h2 { margin: 0; font-size: 18px; letter-spacing: -0.3px; }
.modal .body { padding: 14px 24px 4px; display: grid; gap: 14px; color: var(--text); }
.modal .body p { margin: 0; color: var(--text-2); line-height: 1.6; }
.modal footer { padding: 18px 24px 22px; display: flex; gap: 8px; justify-content: flex-end; }
.options { display: grid; gap: 8px; }
.option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--focus); background: var(--badge-bg); }
.option input { accent-color: var(--primary); }
.option .t { display: grid; }
.option .t small { color: var(--text-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #141B34; color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; z-index: 70; box-shadow: 0 8px 30px rgba(0, 0, 0, .2); animation: rise .18s; max-width: calc(100vw - 32px); }
.toast.err { background: var(--up); }

/* ---------- 탭 ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 12px 12px 10px; font-weight: 600; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .n { font-size: 12px; margin-left: 3px; font-variant-numeric: tabular-nums; }

/* ---------- 회원 상세 ---------- */
.profile-head { display: flex; gap: 18px; align-items: flex-start; }
.profile-head .t { display: grid; gap: 6px; min-width: 0; flex: 1; }
.profile-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-head .meta { color: var(--text-2); font-size: 13px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.intro { white-space: pre-wrap; word-break: break-word; color: var(--text); background: var(--sub); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.pos { color: var(--up); font-weight: 700; }
.neg { color: var(--down); font-weight: 700; }
.copy { border: 0; background: var(--sub); border-radius: 6px; padding: 2px 8px; cursor: pointer; color: var(--text-2); }

/* ---------- 단어 ---------- */
.word-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.word { display: inline-flex; align-items: center; gap: 4px; background: var(--sub); border-radius: 999px; padding: 5px 6px 5px 12px; font-weight: 600; }
.word.suspect { background: var(--bad-bg); color: var(--bad); }
.word button { border: 0; background: transparent; color: inherit; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 15px; line-height: 1; opacity: .7; }
.word button:hover { opacity: 1; background: var(--hover); }
.add-row { display: flex; gap: 8px; }
.add-row .input { flex: 1; }
.tester .result { font-weight: 700; }
.tester .result.hit { color: var(--up); }
.tester .result.clean { color: var(--online); }

/* ---------- 공지 미리보기 ---------- */
.inbox-preview { background: var(--bg); border-radius: 14px; padding: 14px; }
.inbox-item { background: var(--card); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; border: 1px solid var(--line); }
.inbox-item .k { font-size: 12px; font-weight: 700; color: var(--accent); }
.inbox-item .b { white-space: pre-wrap; word-break: break-word; }
.inbox-item .d { font-size: 11px; color: var(--text-2); }

/* ---------- 설정 ---------- */
.setting { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting h3 { margin: 0; font-size: 15px; }
.setting p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.6; grid-column: 1; }
.setting .ctl { grid-row: 1 / span 3; grid-column: 2; display: flex; gap: 8px; align-items: center; }
.setting .when { font-size: 12px; color: var(--text-2); grid-column: 1; }
.switch { position: relative; width: 46px; height: 28px; border-radius: 14px; background: var(--axis); border: 0; cursor: pointer; transition: background .15s; flex: none; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch[aria-checked="true"] { background: var(--online); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

/* ---------- 차트 ---------- */
.chart-card .card-head { align-items: flex-start; }
.chart { position: relative; padding: 8px 20px 4px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart svg text { fill: var(--text-2); font-size: 11px; font-family: var(--font); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .cross { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .bar { transition: opacity .1s; }
.chart .bar.dim { opacity: .55; }
.chart:focus-visible { outline-offset: -2px; }
.chart .end-label { fill: var(--text); font-weight: 700; }
.tip { position: absolute; pointer-events: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 24px rgba(20, 27, 52, .14); padding: 8px 10px; font-size: 12px; min-width: 120px; z-index: 5; display: grid; gap: 3px; }
.tip .h { color: var(--text-2); font-weight: 600; margin-bottom: 2px; }
.tip .row { display: flex; align-items: center; gap: 8px; }
.tip .row i { width: 12px; height: 2px; border-radius: 1px; flex: none; }
.tip .row i.box { height: 10px; width: 10px; border-radius: 3px; }
.tip .row b { font-variant-numeric: tabular-nums; }
.tip .row span { color: var(--text-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 14px; height: 2px; border-radius: 1px; }
.legend i.box { width: 10px; height: 10px; border-radius: 3px; }
.chart-foot { display: flex; justify-content: flex-end; padding: 0 20px 14px; }
.chart-table { padding: 0 20px 16px; max-height: 320px; overflow: auto; }
.chart-table .tbl td, .chart-table .tbl th { padding: 6px 10px; font-size: 12px; }
.hbar { display: grid; grid-template-columns: 64px 1fr 72px; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.hbar .track { height: 14px; position: relative; }
.hbar .fill { height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.hbar.mini { grid-template-columns: 1fr 40px; min-width: 120px; padding: 0; }
.hbar.mini .track { height: 10px; }
.tbl td.share { width: 30%; }
.segbar { display: flex; height: 14px; gap: 2px; margin: 10px 0 8px; }
.segbar div { height: 100%; }
.segbar div:first-child { border-radius: 4px 0 0 4px; }
.segbar div:last-child { border-radius: 0 4px 4px 0; }
.segbar div:only-child { border-radius: 4px; }

@media (max-width: 1100px) {
  .grid.two, .grid.side-main { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: column; }
  .nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .nav a span { white-space: nowrap; }
  .nav .sep { display: none; }
  .main { padding: 20px 16px 48px; }
  .search { min-width: 0; flex: 1; }
}
.photo-btn { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; border-radius: 12px; }
.photo-btn .noimg { width: 160px; height: 120px; background: var(--sub); border-radius: 12px; }
.photos > .empty { grid-column: 1 / -1; }
/* 만남 인증 확인 */
.meet-flags { display: grid; gap: 14px; }
.meet-flag.dim { opacity: .75; }
.meet-flag .card-head { justify-content: flex-start; }
.meet-flag .card-head a { color: inherit; text-decoration: none; }
.btn.line-danger { background: transparent; color: var(--up); border-color: var(--up); }
.meet-flag .card-body { padding: 14px 20px; }
.meet-flag .meets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.meet-flag .meet { background: var(--sub); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; align-content: start; }
.meet-flag .meet-top, .meet-flag .meet-who { display: grid; gap: 4px; }
.meet-flag .meet-who a { color: inherit; text-decoration: none; }
.meet-flag .meet-evals ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.meet-flag .meet-evals li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; font-size: 13px; }
.meet-flag .meet-evals li.dim { color: var(--text-2); text-decoration: line-through; }
.meet-flag .meet-evals li.dim .pill { text-decoration: none; }
.card-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 20px 16px; }
.card-foot .small.muted:first-child { flex: 1; }
.meet-flags > .empty { padding: 28px; }
@media (max-width: 820px) { .meet-flag .meets { grid-template-columns: 1fr; } }

/* 공지 작성 · 회원 화면 미리보기 (기획자 요청 2026-11-17). 미리보기 색은 앱 색상표(명세 12.1)를 그대로 쓴다. */
.grid.compose-preview { grid-template-columns: minmax(320px, 1fr) minmax(360px, 440px); align-items: start; }
@media (max-width: 980px) { .grid.compose-preview { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.hint.block { display: block; margin-top: 2px; }
.pv-wrap { display: flex; justify-content: center; padding: 6px 0; }
.pv-pair { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.pv-pair { gap: 12px; flex-wrap: nowrap; }
.pv-pair .phone { zoom: .66; }
.phone { --bg: #F4F6F3; --sf: #FFFFFF; --sb: #EEF1F6; --ln: #E3E6F0; --tx: #141B34; --t2: #6B7280; --tb: #4B5563; --pb: #1F2D55; --ac: #1B2B5B; --bb: #E8EFFF;
  position: relative; width: 300px; height: 620px; border-radius: 38px; border: 8px solid #10131c; background: var(--bg); overflow: hidden;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif; color: var(--tx); box-shadow: 0 10px 30px rgba(12, 20, 40, .18); flex: none; }
.phone.dark { --bg: #0F1420; --sf: #1A2133; --sb: #262E44; --ln: #333C55; --tx: #E8ECF6; --t2: #9AA3B5; --tb: #C3CAD8; --pb: #4F6BED; --ac: #C9D4F5; --bb: #1E2B4F; }
.pv-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 90px; height: 20px; border-radius: 12px; background: #10131c; z-index: 3; }
.pv-screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pv-home { flex: 1; padding: 40px 14px 0; display: grid; gap: 10px; align-content: start; }
.pv-bar b { font-size: 17px; font-weight: 800; }
.pv-row { display: flex; gap: 10px; align-items: center; background: var(--sf); border-radius: 14px; padding: 10px; }
.pv-ava { width: 38px; height: 38px; border-radius: 50%; background: var(--sb); flex: none; }
.pv-lines { flex: 1; display: grid; gap: 6px; }
.pv-lines i { display: block; height: 8px; border-radius: 4px; background: var(--sb); }
.pv-lines i + i { width: 60%; }
.pv-tabs { display: flex; justify-content: space-around; padding: 10px 4px 18px; background: var(--sf); border-top: 1px solid var(--ln); font-size: 10px; color: var(--t2); font-weight: 600; }
.pv-tabs .on { color: var(--ac); }
.pv-dim { position: absolute; inset: 0; background: rgba(12, 20, 40, .55); display: flex; align-items: center; justify-content: center; padding: 0 22px; }
.pv-popup { width: 100%; background: var(--sf); border-radius: 16px; padding: 18px 16px 13px; display: grid; gap: 0; }
.pv-pill { justify-self: center; background: var(--bb); color: var(--ac); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pv-title { text-align: center; font-size: 14px; font-weight: 700; margin-top: 8px; }
.pv-body { background: var(--sb); border-radius: 10px; padding: 10px 12px; margin-top: 11px; max-height: 250px; overflow: auto; }
.pv-text { font-size: 12px; line-height: 1.6; color: var(--tb); white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.pv-text.placeholder { color: var(--t2); }
.pv-date { text-align: right; font-size: 10px; color: var(--t2); margin-top: 6px; }
.pv-ok { margin-top: 11px; height: 38px; border-radius: 10px; background: var(--pb); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.pv-off { position: absolute; left: 16px; right: 16px; top: 45%; text-align: center; background: var(--sf); color: var(--t2); border: 1px dashed var(--ln); border-radius: 12px; padding: 12px; font-size: 12px; }
.pv-head { display: flex; justify-content: space-between; align-items: center; padding: 40px 14px 10px; background: var(--sf); border-bottom: 1px solid var(--ln); font-size: 14px; }
.pv-head span { width: 16px; color: var(--t2); font-size: 20px; line-height: 1; }
.pv-list { padding: 10px 12px; display: grid; gap: 8px; align-content: start; }
.pv-item { background: var(--sf); border-radius: 12px; padding: 10px 12px; display: grid; gap: 3px; border: 1px solid var(--ln); }
.pv-item.new { border-color: var(--ac); }
.pv-k { font-size: 10px; font-weight: 700; color: var(--ac); }
.pv-k.sec { color: var(--t2); }
.pv-d { font-size: 10px; color: var(--t2); }

/* TEE MATE 추가 */
.pill.info { background: #E2ECF8; color: #1E5FA8; }
@media (prefers-color-scheme: dark) { .pill.info { background: #1B2B44; color: #8EB8F0; } }
.brand b, .auth-logo b { font-family: "Montserrat", var(--font); letter-spacing: 0.5px; }
.rule-list { margin: 0; padding-left: 18px; line-height: 1.8; }
.photo-row { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-row .thumb { width: 96px; }
.photo-row .thumb img, .photo-row .thumb .noimg { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; display: grid; place-items: center; background: var(--sub); }
.chat-log { display: grid; gap: 8px; max-height: 420px; overflow: auto; padding: 4px; }
.chat-log .msg { max-width: 75%; padding: 8px 12px; border-radius: 14px; background: var(--sub); }
.chat-log .msg.right { justify-self: end; background: var(--badge-bg); }
.chat-log .msg.sys { justify-self: center; background: none; color: var(--text-2); font-size: 12px; }
.chat-log .msg .meta { display: block; font-size: 11px; color: var(--text-2); margin-top: 2px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
.preview-phone { width: 300px; border-radius: 26px; background: #0A3F2B; padding: 16px; color: #fff; }
.preview-phone .pop { background: rgba(14,32,24,0.88); border-radius: 14px; padding: 10px; display: grid; gap: 6px; }
.preview-phone .item { display: grid; gap: 2px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,0.06); }
.preview-phone .item small { color: rgba(255,255,255,0.6); }
.preview-phone .item .tag { font-size: 11px; font-weight: 700; color: #7FE0A8; }
.bad-text { color: var(--bad); }
.ok-text { color: var(--ok); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.photo-grid .photo-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--sub); border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.photo-grid img.big, .photo-grid .noimg { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: grid; place-items: center; }
.tbl tr.dim td { opacity: 0.5; }
