/* 콜온 관리자 웹 — docs/design-system.md 기준. 색은 의미 이름(토큰)으로만 씁니다
 * 회색 바탕 위 흰 카드: 영역 구분은 선이 아니라 카드와 여백으로 합니다. */
:root {
  --bg: #F2F4F6;
  --surface: #FFFFFF;
  --surface-2: #F7F8FA;
  --text: #191F28;
  --sub: #6B7684;
  --line: #E5E8EB;
  --border: #E5E8EB;
  --input: #D1D6DB;
  --primary: #17654D;
  --primary-hover: #12543F;
  --on-primary: #FFFFFF;
  --primary-soft: #E3F2EB;
  --link: #17654D;
  --accent: #FFB547;
  --accent-bg: #E3F2EB;
  --accent-border: #B9DCC9;
  --accent-text: #12543F;
  --nav-active: #E3F2EB;
  --muted-bg: #F2F4F6;
  --warn-bg: #FFF4E5;
  --warn-border: #F5D3A3;
  --warn-text: #A05A12;
  --missed: #E5484D;
  --missed-bg: #FDECEC;
  --answered: #17654D;
  --unknown: #D9822B;
  --danger: #D92D20;
  --danger-bg: #FDECEB;
  --focus: #2F8F6B;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow: 0 12px 32px rgba(15, 25, 20, .18);
  --tag-green-bg: #E3F2EB;  --tag-green: #12543F;
  --tag-blue-bg: #E8F0FD;   --tag-blue: #1B4F9C;
  --tag-orange-bg: #FFF1E0; --tag-orange: #8A4A0B;
  --tag-red-bg: #FDECEC;    --tag-red: #A3191F;
  --tag-purple-bg: #F1EAFB; --tag-purple: #5B2D90;
  --tag-gray-bg: #F2F4F6;   --tag-gray: #4E5968;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1412; --surface: #1A211E; --surface-2: #222B27; --text: #EEF2F0; --sub: #A3AFA9;
    --line: #2C3632; --border: #2C3632; --input: #3B4742;
    --primary: #4CC498; --primary-hover: #62D4AA; --on-primary: #06231A; --primary-soft: #173A2F; --link: #6FD6AE;
    --accent-bg: #173A2F; --accent-border: #2A5A4A; --accent-text: #8FE0BF; --nav-active: #173A2F; --muted-bg: #222B27;
    --warn-bg: #33240F; --warn-border: #6B4A1E; --warn-text: #F3BE86;
    --missed: #FF6B70; --missed-bg: #3A1B1C; --answered: #4CC498; --unknown: #F2A65A;
    --danger: #FF7A70; --danger-bg: #3A1C1A; --focus: #6FD6AE;
    --shadow-card: none; --shadow: 0 12px 32px rgba(0, 0, 0, .55);
    --tag-green-bg: #173A2F;  --tag-green: #8FE0BF;
    --tag-blue-bg: #17263A;   --tag-blue: #9CC3F5;
    --tag-orange-bg: #33240F; --tag-orange: #F3BE86;
    --tag-red-bg: #3A1A18;    --tag-red: #F4A79F;
    --tag-purple-bg: #2A2140; --tag-purple: #C9B2F0;
    --tag-gray-bg: #222B27;   --tag-gray: #C2CEC8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1412; --surface: #1A211E; --surface-2: #222B27; --text: #EEF2F0; --sub: #A3AFA9;
  --line: #2C3632; --border: #2C3632; --input: #3B4742;
  --primary: #4CC498; --primary-hover: #62D4AA; --on-primary: #06231A; --primary-soft: #173A2F; --link: #6FD6AE;
  --accent-bg: #173A2F; --accent-border: #2A5A4A; --accent-text: #8FE0BF; --nav-active: #173A2F; --muted-bg: #222B27;
  --warn-bg: #33240F; --warn-border: #6B4A1E; --warn-text: #F3BE86;
  --missed: #FF6B70; --missed-bg: #3A1B1C; --answered: #4CC498; --unknown: #F2A65A;
  --danger: #FF7A70; --danger-bg: #3A1C1A; --focus: #6FD6AE;
  --shadow-card: none; --shadow: 0 12px 32px rgba(0, 0, 0, .55);
  --tag-green-bg: #173A2F;  --tag-green: #8FE0BF;
  --tag-blue-bg: #17263A;   --tag-blue: #9CC3F5;
  --tag-orange-bg: #33240F; --tag-orange: #F3BE86;
  --tag-red-bg: #3A1A18;    --tag-red: #F4A79F;
  --tag-purple-bg: #2A2140; --tag-purple: #C9B2F0;
  --tag-gray-bg: #222B27;   --tag-gray: #C2CEC8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.55 "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--link); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
b { font-weight: 700; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sub { color: var(--sub); }
.small { font-size: 13px; }
.warn-text { color: var(--warn-text); font-weight: 700; }
.ok-text { color: var(--accent-text); font-weight: 700; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }

/* 버튼: 화면마다 주요 행동 하나만 채운 색(btn-primary) */
.btn, .btn-primary, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 600;
  white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: background .12s, border-color .12s;
}
.btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.btn:hover { background: var(--surface-2); border-color: var(--input); color: var(--text); }
.btn-primary { border: 0; background: var(--primary); color: var(--on-primary); font-weight: 700; padding: 0 18px; }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-danger { border: 1px solid transparent; background: var(--danger-bg); color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); }
.btn[disabled], .btn-primary[disabled], .btn-danger[disabled] { opacity: .5; cursor: default; }
.btn-block { width: 100%; height: 48px; font-size: 15px; }
.linkbtn { border: 0; background: none; color: var(--link); font: inherit; font-weight: 600; padding: 0; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

/* 입력 */
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--sub); font-weight: 400; }
.field .error { font-size: 13px; color: var(--danger); font-weight: 500; }
/* 글자 입력 칸: 종류를 하나씩 적지 않고 체크·라디오·버튼 같은 것만 뺍니다 (숫자·날짜 칸이 빠져 기본 모양으로 나오던 문제) */
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=reset]):not([type=file]):not([type=range]):not([type=color]):not([type=image]), select, textarea {
  height: 44px; padding: 0 14px; border: 1px solid var(--input); border-radius: 12px;
  background: var(--surface); color: var(--text); font: inherit; width: 100%; transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { height: auto; min-height: 96px; padding: 12px 14px; }
input[aria-invalid=true] { border-color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }

/* 화면 틀: 왼쪽 흰 메뉴 + 회색 본문 */
.skip { position: absolute; left: 8px; top: -60px; z-index: 60; padding: 8px 12px; border-radius: 8px; background: var(--primary); color: var(--on-primary); }
.skip:focus { top: 8px; color: var(--on-primary); }
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.nav {
  flex: 0 0 248px; max-width: 248px; background: var(--surface); border-right: 1px solid var(--line);
  padding: 22px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.nav .nav-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav .nav-title { display: flex; flex-direction: column; min-width: 0; }
.nav .nav-current, .nav .nav-toggle { display: none; }
.nav .company { font-size: 17px; font-weight: 800; padding: 4px 12px 2px; word-break: keep-all; display: flex; align-items: center; gap: 8px; }
.nav .company::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--primary) url("/assets/icons/favicon.svg") center / cover; }
.nav .who { font-size: 13px; color: var(--sub); padding: 2px 12px 10px 46px; }
.nav .nav-links { display: flex; flex-direction: column; gap: 2px; flex: 1; }
/* 묶음 제목: 아이콘 + 굵은 글씨. 그 아래 세부 메뉴는 한 칸 들여쓰고 왼쪽에 가는 선 */
.nav .nav-group { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--text); padding: 16px 12px 6px; }
.nav .nav-group:first-child { padding-top: 8px; }
.nav .nav-ico { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav .nav-group .nav-ico { width: 18px; height: 18px; color: var(--primary); }
/* 콜온 운영(최고관리자) 묶음: 업체 메뉴와 점선으로 나누고 주황색으로 표시 */
.nav .nav-group.op { margin-top: 14px; padding-top: 18px; border-top: 1px dashed var(--line); color: #A35F00; }
.nav .nav-group.op .nav-ico { color: #D98A00; }
.nav .nav-sub.op { border-left-color: #F3D9A4; }
:root[data-theme="dark"] .nav .nav-group.op { color: #F5B759; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav .nav-group.op { color: #F5B759; } }
.nav .nav-sub { display: flex; flex-direction: column; gap: 2px; margin-left: 20px; padding-left: 8px; border-left: 1px solid var(--line); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); font-weight: 500; text-decoration: none; }
.nav a .nav-ico { color: var(--sub); }
.nav a[aria-current=page] .nav-ico { color: var(--accent-text); }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current=page] { background: var(--primary-soft); color: var(--accent-text); font-weight: 700; }
.nav .foot { margin-top: auto; padding: 16px 12px 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.nav .foot select { height: 36px; font-size: 13px; border-radius: 10px; }
main.page { flex: 1 1 560px; min-width: 0; max-width: 1240px; padding: 32px 36px 56px; display: flex; flex-direction: column; gap: 20px; }
main.page > h1, main.page > .row:first-child h1, main.page > .stack:first-child h1 { margin-bottom: 2px; }
@media (max-width: 760px) {
  .shell { align-content: flex-start; }
  .nav { flex: 0 0 100%; max-width: none; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; z-index: 20; }
  .nav .company { padding: 0; font-size: 16px; }
  .nav .company::before { width: 22px; height: 22px; border-radius: 6px; }
  .nav .nav-current { display: block; font-size: 13px; color: var(--sub); padding-left: 30px; }
  .nav .nav-toggle { display: inline-flex; height: 36px; }
  .nav .who, .nav .nav-links { display: none; }
  .nav.open .nav-links { display: flex; max-height: calc(100vh - 70px); overflow-y: auto; padding-bottom: 8px; }
  .nav.open .who { display: block; padding: 8px 12px 0; }
  .nav .foot { margin-top: 8px; padding: 12px 12px 0; flex-direction: row; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
  .nav .foot select { width: auto; }
  main.page { padding: 20px 16px 48px; gap: 16px; }
  h1 { font-size: 22px; }
}

/* 카드(상자) */
.box { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-card); overflow: hidden; }
:root[data-theme="dark"] .box { border: 1px solid var(--line); }
.boxhead { padding: 18px 20px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.boxhead + .boxbody, .boxhead + .tablewrap, .boxhead + ul, .boxhead + .stack { border-top: 1px solid var(--line); }
.boxbody { padding: 18px 20px; }
.boxhead .sub.small { line-height: 1.5; }
.tablewrap { overflow-x: auto; }

/* 표 */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 11px 14px; font-size: 13px; font-weight: 600; color: var(--sub); text-align: left; background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl thead + tbody tr:first-child td { border-top: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tbody tr:has(td.empty):hover td { background: none; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl td b, .tbl td a { font-weight: 700; }
.nowrap, .tbl td.nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tbl .actions .btn, .tbl .actions .btn-danger, .tbl .actions .btn-primary { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.empty { padding: 40px 16px; text-align: center; color: var(--sub); }
/* 휴대폰: 표를 카드 목록으로 (app.js labelTable 이 칸마다 data-label 을 붙임) */
@media (max-width: 760px) {
  table.tbl.cards { min-width: 0 !important; }
  .tbl.cards thead { display: none; }
  .tbl.cards tr { display: block; padding: 14px 16px; border-top: 1px solid var(--line); }
  .tbl.cards tr:first-child { border-top: 0; }
  .tbl.cards tbody tr:hover td { background: none; }
  .tbl.cards td { display: flex; gap: 12px; padding: 3px 0 !important; border: 0; }
  .tbl.cards td[data-label]::before { content: attr(data-label); flex: none; width: 88px; color: var(--sub); font-size: 13px; padding-top: 1px; }
  .tbl.cards td:first-child { font-size: 16px; padding-bottom: 6px !important; }
  .tbl.cards td:first-child::before { display: none; }
  .tbl.cards td[colspan] { display: block; }
  .tbl.cards .actions { padding-top: 8px; }
}

/* 탭 (보기 바꾸기): 알약 모양 칩. 실행 버튼과 모양을 다르게 */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer; }
.tab:hover { border-color: var(--input); }
.tab[aria-selected=true] { background: var(--text); border-color: var(--text); color: var(--surface); }

/* 상태 칩 */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; vertical-align: middle; line-height: 1.3; }
.chip-ok { color: var(--accent-text); background: var(--primary-soft); }
.chip-warn { color: var(--warn-text); background: var(--warn-bg); }
.chip-muted { color: var(--sub); background: var(--muted-bg); }
.chip-missed { color: var(--missed); background: var(--missed-bg); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.tag-green { background: var(--tag-green-bg); color: var(--tag-green); }
.tag-blue { background: var(--tag-blue-bg); color: var(--tag-blue); }
.tag-orange { background: var(--tag-orange-bg); color: var(--tag-orange); }
.tag-red { background: var(--tag-red-bg); color: var(--tag-red); }
.tag-purple { background: var(--tag-purple-bg); color: var(--tag-purple); }
.tag-gray { background: var(--tag-gray-bg); color: var(--tag-gray); }
.tag button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; margin: -4px -7px -4px 0; min-width: 24px; min-height: 24px; font: inherit; font-size: 15px; line-height: 1; border-radius: 999px; }
.tag button:hover { background: rgba(0, 0, 0, .08); }

/* 사람 머리글자 원 (회원 목록·통화 목록) */
.who-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 700; background: var(--primary-soft); color: var(--accent-text); }
.avatar.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.avatar.unknown { background: var(--muted-bg); color: var(--sub); }
.avatar.missed { background: var(--missed-bg); color: var(--missed); }
.who-cell .who-text { display: flex; flex-direction: column; min-width: 0; }

/* 알림 띠 */
.notice { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 16px; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.notice.info { border-color: transparent; background: var(--primary-soft); }
.notice .actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* 회원 상세 › 통화와 메모: 전화 올 때 메모·상세 메모·작성자를 줄마다 (2026-11-21) */
.memo-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.memo-lines .memo-detail { white-space: pre-wrap; }
.memo-lines .memo-card { font-size: 13px; color: var(--sub); }
.memo-lines .memo-by { font-size: 12px; color: var(--sub); }
/* "전화 올 때 보이는 메모" 이름표: 작고 연하게, 실제 메모 글은 굵게 (2026-11-21) */
.memo-label { font-size: 12px; color: var(--sub); font-weight: 400; }
.memo-strong { font-weight: 700; }
.notice.archived { border-color: var(--danger); background: var(--danger-bg); }

/* 되돌릴 수 없는 작업 */
.box.danger-zone { box-shadow: none; border: 1px solid var(--danger); }
.box.danger-zone h2 { color: var(--danger); }

/* 대화상자 */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10, 20, 16, .5); }
dialog form, dialog .dlg { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
dialog h2 { font-size: 19px; }
dialog .dlg-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.codebox { font: 700 30px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 4px; text-align: center; padding: 18px; border-radius: 14px; background: var(--primary-soft); color: var(--accent-text); }

/* 알림 */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 14px; background: #191F28; color: #fff; box-shadow: var(--shadow); font-size: 14px; font-weight: 500; }
#toast.error { background: var(--danger); color: #fff; }

/* 로그인·가입 화면 */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-side { flex: 1 1 380px; padding: 56px 48px; background: var(--primary); color: #fff; display: flex; flex-direction: column; gap: 24px; }
.auth-side .brand { font-size: 26px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; }
.auth-side .brand img { border-radius: 10px; margin-right: 0 !important; }
.auth-side p, .auth-side h1, .auth-side h2 { color: #fff; }
.auth-side .sub { color: rgba(255, 255, 255, .78); }
.auth-side ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; color: rgba(255, 255, 255, .88); }
.auth-main { flex: 2 1 420px; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 18px; background: var(--surface); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-card); }
.steps { display: flex; gap: 8px; font-size: 13px; color: var(--sub); }
.steps .on { color: var(--accent-text); font-weight: 700; }
.choice { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; gap: 10px; cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice input { accent-color: var(--primary); margin-top: 3px; }
@media (max-width: 760px) { .auth-side { display: none; } .auth-card { padding: 24px 20px; } }

/* 시작 안내 */
.stepcard { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-card); padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; }
.stepcard .num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--muted-bg); color: var(--sub); }
.stepcard.done .num { background: var(--primary); color: var(--on-primary); }
.stepcard .body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* 회원 상세 */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 6px 0; }
.timeline li { padding: 12px 20px; display: flex; gap: 14px; }
.timeline li + li { border-top: 1px solid var(--line); }
.timeline time { flex: none; width: 118px; color: var(--sub); font-size: 13px; padding-top: 2px; }
.timeline li > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.timeline .memo-del { flex: none; align-self: flex-start; color: var(--danger); font-size: 13px; padding-top: 2px; }
.timeline li > div > div[style*="pre-wrap"] { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; }
@media (max-width: 760px) { .timeline li { flex-direction: column; gap: 4px; } .timeline time { width: auto; } }

/* 상담 현황 숫자 카드 */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-card); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none !important; border: 1px solid transparent; transition: border-color .12s; }
.tile b { font-size: 30px; line-height: 1.1; font-weight: 800; }
.tile .sub { font-size: 14px; font-weight: 600; }
.tile:hover { border-color: var(--primary); color: var(--text); }
.tile.warn { background: var(--warn-bg); }
.tile.warn b { color: var(--warn-text); }

/* 업무폰 알림 (notices.html): 받는 곳 고르기 */
.pick-list { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2, var(--bg)); }
.pick-list .check { min-height: 32px; align-items: center; }
.pick-list .check input { margin-top: 0; }
.count-strong { color: var(--accent-text); font-weight: 700; }

/* 구글·카카오로 계속하기 (로그인·가입) */
.oauth-box { display: flex; flex-direction: column; gap: 10px; }
.oauth-box[hidden] { display: none; }
.btn-oauth { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 12px; font-size: 15px; font-weight: 700; text-decoration: none !important; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.btn-oauth:hover { border-color: var(--primary); }
.btn-oauth.kakao { background: #FEE500; border-color: #FEE500; color: #191919; }
.btn-oauth.kakao:hover { filter: brightness(.97); }
.btn-oauth .mark { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.btn-oauth.google .mark { color: #fff; background: #4285F4; }
.btn-oauth.kakao .mark { color: #FEE500; background: #191919; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--sub); font-size: 13px; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* 숫자 6칸 PIN 입력 */
.pin-boxes { display: flex; gap: 8px; }
.pin-boxes input { width: 44px; height: 52px; padding: 0; text-align: center; font-size: 22px; font-weight: 800; font-family: ui-monospace, Consolas, monospace; -webkit-text-security: disc; }
.pin-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 400px) { .pin-boxes { gap: 5px; } .pin-boxes input { width: 38px; height: 48px; } }

/* 고르기 칸 (가입 › 어떻게 쓰실 건가요? 등): 제목·칸 사이 간격 */
.field > span + .choice { margin-top: 8px; }
.choice + .choice { margin-top: 10px; }

/* 화면 아래 표기 (약관·처리방침·고객센터·사업자 정보) */
.site-foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--sub); font-size: 12px; line-height: 1.7; display: flex; flex-direction: column; gap: 2px; }
.site-foot a { color: var(--sub); }
.auth-main { flex-direction: column; }
.site-foot .biz { min-height: 1.7em; }
/* 로그인·가입 왼쪽 안내 */
.auth-side h1 { font-size: 26px; line-height: 1.35; margin: 0; }
.auth-side .side-block { background: rgba(255, 255, 255, .08); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.auth-side .side-block h2 { font-size: 15px; margin: 0; color: rgba(255, 255, 255, .95); }
.auth-side .side-block ul, .auth-side .side-block ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: rgba(255, 255, 255, .88); font-size: 14px; line-height: 1.55; }
.auth-side .side-block b { color: #fff; }
.auth-side .side-note { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .7) !important; }
.auth-main .site-foot { width: min(440px, 100%); border-top: 0; text-align: center; margin-top: 16px; }
