/* 거상파트너스 CRM 화면 스타일 */
:root {
  --bg: #f3f5f7; --surface: #ffffff; --surface-2: #f8fafb; --border: #e2e7eb; --border-strong: #c9d2d9;
  --text: #1a252f; --muted: #647483; --faint: #93a1ad;
  --primary: #173f4f; --primary-2: #215c72; --primary-soft: #e3eef3; --on-primary: #ffffff;
  --danger: #c0392b; --danger-soft: #fbe9e7; --warn: #b4690e; --warn-soft: #fff1dc; --ok: #22733f; --ok-soft: #e1f3e6; --info: #1d5f8a; --info-soft: #dceefb;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(20, 35, 45, .06), 0 2px 8px rgba(20, 35, 45, .05);
  --sidebar: 232px; --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
p { margin: 0; }
.boot { padding: 40px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.danger-text { color: var(--danger); } .warn-text { color: var(--warn); } .ok-text { color: var(--ok); }
.bold { font-weight: 700; } .nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 12px; } .mt-l { margin-top: 20px; } .mb { margin-bottom: 12px; }
.hide-mobile { } .only-mobile { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───── 레이아웃 ───── */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { background: var(--primary); color: #dbe7ec; padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.brand { color: #fff; font-weight: 800; font-size: 17px; padding: 6px 10px 14px; letter-spacing: -.2px; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: #9fbcc8; margin-top: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #cfdde3; font-weight: 600; }
.nav a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav a.active { background: rgba(255, 255, 255, .16); color: #fff; }
.nav a .ico { width: 22px; text-align: center; font-size: 16px; }
.nav .count { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.sidebar .foot { margin-top: auto; padding: 10px 12px; font-size: 12px; color: #9fbcc8; }
.sidebar .foot button { background: none; border: 1px solid rgba(255, 255, 255, .25); color: #dbe7ec; padding: 6px 10px; border-radius: 8px; cursor: pointer; margin-top: 8px; }
.main { min-width: 0; padding: 22px 28px 60px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.topbar, .tabbar, .sheet-backdrop { display: none; }

/* ───── 카드·버튼·입력 ───── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.card + .card { margin-top: 14px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-title h2 { display: flex; align-items: center; gap: 8px; }
.card-title .num { font-size: 13px; color: var(--muted); font-weight: 600; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 38px; }
.btn:hover { background: var(--surface-2); } .btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); } .btn.primary:hover { background: var(--primary-2); }
.btn.danger { color: var(--danger); border-color: #e7b4ae; } .btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--primary-soft); }
.btn.sm { padding: 4px 10px; min-height: 30px; font-size: 13px; } .btn.xs { padding: 2px 8px; min-height: 26px; font-size: 12px; }
.btn.block { width: 100%; }
.btn-link { background: none; border: none; color: var(--primary-2); cursor: pointer; padding: 0; font-weight: 600; } .btn-link:hover { text-decoration: underline; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px 6px; border-radius: 6px; font-size: 14px; } .icon-btn:hover { background: var(--surface-2); color: var(--text); }
input[type=text], input[type=search], input[type=number], input[type=date], input[type=datetime-local], input[type=month], input[type=password], input[type=email], input[type=url], input[type=tel], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; min-height: 38px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(33, 92, 114, .35); outline-offset: 0; border-color: var(--primary-2); }
textarea { min-height: 80px; resize: vertical; }
select { appearance: auto; }
label.field { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
label.field > span { display: block; margin-bottom: 4px; }
label.field .req { color: var(--danger); margin-left: 2px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.help { font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 400; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; min-height: 0; }
.error-box { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 14px; }
.notice { background: var(--primary-soft); color: var(--primary); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; }
.search { position: relative; } .search input { padding-left: 34px; } .search::before { content: "🔍"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .6; }

/* ───── 배지·칩·태그 ───── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #eceff2; color: #4a5a68; line-height: 1.6; }
.badge.lg { font-size: 13px; padding: 4px 12px; }
.badge.s-inquiry { background: #e8eef3; color: #3a5468; } .badge.s-called { background: #dceefb; color: #1d5f8a; }
.badge.s-meeting_set { background: #e6e4fb; color: #4b3fa0; } .badge.s-meeting_done { background: #efe3fa; color: #6d3a9a; }
.badge.s-contracted { background: #dff3e6; color: #1f6b3a; } .badge.s-diagnosis { background: #d9f2f0; color: #0f6b63; }
.badge.s-advising { background: #d6efd9; color: #175a2b; } .badge.s-renewal { background: #fdebd3; color: #8a4b08; } .badge.s-closed { background: #ececec; color: #666; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.danger { background: var(--danger-soft); color: var(--danger); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge.r-recommended { background: #e8eef3; color: #3a5468; } .badge.r-preparing { background: #fff1dc; color: #8a4b08; } .badge.r-submitted { background: #dceefb; color: #1d5f8a; }
.badge.r-selected { background: #d6efd9; color: #175a2b; } .badge.r-rejected { background: #fbe9e7; color: #a93226; } .badge.r-skipped { background: #ececec; color: #666; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pill { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.dot.danger { background: var(--danger); } .dot.warn { background: var(--warn); } .dot.ok { background: var(--ok); }

/* ───── 통계 타일·퍼널 ───── */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.tile .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile .value { font-size: 26px; font-weight: 800; margin-top: 2px; letter-spacing: -.3px; }
.tile .value small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.tile .delta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tile.alert { border-color: #f1c7c1; background: #fff8f7; } .tile.alert .value { color: var(--danger); }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; }
.funnel .step { text-align: center; }
.funnel .bar { background: var(--primary-soft); border-radius: 8px 8px 4px 4px; height: 110px; position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.funnel .bar > i { display: block; width: 100%; background: linear-gradient(180deg, var(--primary-2), var(--primary)); border-radius: 8px 8px 0 0; transition: height .4s; min-height: 3px; }
.funnel .n { font-size: 20px; font-weight: 800; margin-top: 6px; }
.funnel .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.funnel .rate { font-size: 12px; color: var(--ok); font-weight: 700; }
.stagebar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.stagebar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* ───── 목록·표 ───── */
.list { display: flex; flex-direction: column; }
.list > .item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.list > .item:first-child { border-top: 0; }
.list > .item .body { flex: 1; min-width: 0; }
.list > .item .title { font-weight: 600; }
.list > .item .meta { font-size: 12px; color: var(--muted); margin-top: 1px; }
.list.compact > .item { padding: 7px 0; }
.item.urgent .title { color: var(--danger); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.clickable { cursor: pointer; } .tbl tr.clickable:hover td { background: var(--surface-2); }
.tbl td .sub { font-size: 12px; color: var(--muted); }
.empty { padding: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.empty .big { font-size: 26px; margin-bottom: 6px; }

/* ───── 할 일 ───── */
.task { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.task:first-child { border-top: 0; }
.task input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; flex: none; cursor: pointer; }
.task .t { flex: 1; min-width: 0; }
.task .t .title { font-weight: 600; } .task.done .t .title { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.task .t .meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.task .due { font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.task .due.over { color: var(--danger); } .task .due.today { color: var(--warn); }

/* ───── 고객 카드(자격 정보 강조) ───── */
.elig { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.elig .cell { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.elig .cell .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.elig .cell .v { font-size: 18px; font-weight: 800; margin-top: 1px; letter-spacing: -.2px; }
.elig .cell .v small { font-size: 12px; font-weight: 500; color: var(--muted); display: block; }
.elig .cell.hi { background: #eef5f8; border-color: #cfe0e8; } .elig .cell.hi .v { color: var(--primary); font-size: 20px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: none; border-bottom: 2px solid transparent; padding: 9px 12px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs button .n { font-size: 11px; background: var(--surface-2); border: 1px solid var(--border); padding: 0 6px; border-radius: 999px; margin-left: 4px; color: var(--muted); }
.timeline .ev { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.timeline .ev:first-child { border-top: 0; }
.timeline .ico { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.timeline .head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.timeline .head .type { font-weight: 700; font-size: 13px; } .timeline .head .when { font-size: 12px; color: var(--muted); }
.timeline .content { white-space: pre-wrap; margin-top: 2px; }
.timeline .files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.file-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; max-width: 100%; }
.file-chip a { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button { background: none; border: none; color: var(--faint); cursor: pointer; padding: 0 2px; }
.match-yes { border-left: 4px solid var(--ok); } .match-check { border-left: 4px solid var(--warn); } .match-no { border-left: 4px solid #d9dde1; opacity: .8; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; margin-top: 4px; }
.checks span::before { content: "✓ "; color: var(--ok); } .checks span.fail::before { content: "✕ "; color: var(--danger); } .checks span.unknown::before { content: "? "; color: var(--warn); }

/* ───── 칸반 보드 ───── */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; -webkit-overflow-scrolling: touch; }
.kanban .col { flex: 0 0 236px; background: #eceff2; border-radius: var(--radius); padding: 10px; min-height: 220px; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; }
.kanban .col.over { border-color: var(--primary-2); background: #e3eef3; }
.kanban .col-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; font-weight: 700; font-size: 13px; }
.kanban .col-head .n { color: var(--muted); font-weight: 600; }
.kcard { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); cursor: grab; }
.kcard:active { cursor: grabbing; } .kcard.dragging { opacity: .5; }
.kcard .name { font-weight: 700; } .kcard .sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.kcard .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.kcard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 6px; }
.kcard .foot select { min-height: 28px; padding: 2px 6px; font-size: 12px; width: auto; }
.kcard.alert { border-color: #e9a59b; background: #fff8f7; }

/* ───── 모달·토스트·확인창 ───── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 25, 32, .45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 680px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal.narrow { max-width: 440px; }
.modal .m-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal .m-body { padding: 18px; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1a252f; color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); max-width: 360px; }
.toast.error { background: var(--danger); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(160deg, #173f4f, #0f2a35); }
.login { background: #fff; border-radius: 16px; padding: 28px 26px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.login h1 { font-size: 20px; } .login .sub { color: var(--muted); font-size: 13px; margin-top: 4px; margin-bottom: 18px; }
.dropzone { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dropzone input { width: auto; min-height: 0; }
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav .cur { font-weight: 800; font-size: 18px; min-width: 110px; text-align: center; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.progress i { display: block; height: 100%; background: var(--primary-2); }
.sr-only { position: absolute; left: -9999px; }

/* ───── 휴대폰 화면 ───── */
@media (max-width: 860px) {
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .elig { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  :root { --radius: 10px; }
  body { font-size: 15px; }
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; }
  .sidebar { display: none; }
  .hide-mobile { display: none !important; } .only-mobile { display: initial !important; }
  .topbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; background: var(--primary); color: #fff; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .topbar .brand { padding: 0; font-size: 16px; }
  .topbar .btn { background: rgba(255, 255, 255, .15); border-color: transparent; color: #fff; }
  .main { padding: 14px 16px calc(84px + env(safe-area-inset-bottom)); }
  .page-head { margin-bottom: 12px; } h1 { font-size: 19px; }
  .card { padding: 14px; } .card + .card { margin-top: 10px; }
  .form { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; } .tile .value { font-size: 22px; }
  .funnel .bar { height: 70px; } .funnel .n { font-size: 16px; }
  .elig { grid-template-columns: 1fr 1fr; gap: 8px; } .elig .cell .v { font-size: 16px; } .elig .cell.hi .v { font-size: 18px; }
  .kv { grid-template-columns: 96px 1fr; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px 6px; font-size: 11px; font-weight: 600; color: var(--muted); background: none; border: none; position: relative; }
  .tabbar a.active { color: var(--primary); }
  .tabbar .count { position: absolute; top: 3px; left: calc(50% + 8px); }
  .tabbar .ico { font-size: 19px; line-height: 1.2; }
  .sheet-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 25, 32, .4); z-index: 40; }
  .sheet { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 16px 16px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); z-index: 41; }
  .sheet a, .sheet button.item { display: flex; align-items: center; gap: 12px; padding: 12px 6px; font-weight: 600; border-bottom: 1px solid var(--border); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; font-size: 15px; color: var(--text); }
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal { max-width: none; border-radius: 0; min-height: 100vh; }
  .modal .m-body { padding: 14px 16px 30px; }
  table.tbl, .tbl thead, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl thead { display: none; }
  .tbl tr { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; background: #fff; }
  .tbl td { border: 0; padding: 3px 0; }
  .tbl td[data-label]::before { content: attr(data-label); display: inline-block; width: 86px; font-size: 12px; color: var(--muted); font-weight: 600; }
  .tbl td.no-label::before { display: none; }
  .kanban .col { flex: 0 0 82vw; }
  .toasts { left: 16px; right: 16px; bottom: calc(70px + env(safe-area-inset-bottom)); } .toast { max-width: none; }
  .form-actions { position: sticky; bottom: 0; background: #fff; padding: 10px 0; }
  .form-actions .btn { flex: 1; }
}

/* ───── 법인·개인 구분, 관심 공고, 여러 명 선택 ───── */
.badge.bt-corporation { background: #e6ecf7; color: #2b4a8b; }
.badge.bt-individual { background: #f3ece1; color: #7a5a1e; }
.btn.danger.sm, .btn.danger.xs { min-width: 0; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.star { border: 0; background: none; padding: 0 2px; font-size: 18px; line-height: 1; color: var(--faint); cursor: pointer; vertical-align: -2px; }
.star.on { color: #e0a100; }
.star:hover { color: #e0a100; }
.selbar { border-color: #e9a59b; background: #fffaf9; }
.tbl td input[type=checkbox], .selbar input[type=checkbox] { width: 18px; height: 18px; }

/* ───── 연간 공고 캘린더 ───── */
.cal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.cal-month { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px 12px; min-height: 150px; box-shadow: var(--shadow); }
.cal-month.current { border-color: var(--primary-2); box-shadow: 0 0 0 2px var(--primary-soft); }
.cal-month.past { background: var(--surface-2); }
.cal-month > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-month h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 6px; }
.cal-item { border-left: 4px solid var(--border-strong); background: var(--surface-2); border-radius: 6px; padding: 6px 8px; margin-top: 6px; font-size: 13px; }
.cal-item .nm { font-weight: 600; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.cal-item .nm a { color: inherit; }
.cal-item .nm a:hover { text-decoration: underline; }
.cal-item .mt2 { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; color: var(--muted); font-size: 12px; margin-top: 2px; }
.cal-item .star { font-size: 15px; margin-right: 2px; }
.cal-item.actual { border-left-color: var(--primary-2); background: var(--primary-soft); }
.cal-item.actual.closed { opacity: .6; }
.cal-item.expected { border-left-color: var(--warn); background: var(--warn-soft); border-left-style: dashed; }
.cal-item.base { border-left-color: var(--border-strong); background: transparent; border: 1px dashed var(--border-strong); border-left-width: 4px; }
.cal-empty { color: var(--faint); font-size: 13px; padding: 12px 0; text-align: center; }
.chip.cal-k::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chip.cal-k.actual::before { background: var(--primary-2); }
.chip.cal-k.expected::before { background: var(--warn); }
.chip.cal-k.base::before { background: transparent; border: 1px dashed var(--muted); }
.chip.cal-k:not(.active) { opacity: .55; }
.pill.cal-flex small { color: var(--muted); }
.pill.cal-flex.covered { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 1200px) { .cal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cal-grid { grid-template-columns: 1fr; } .cal-month { min-height: 0; } }
.cal-more { margin-top: 4px; font-size: 12px; }
.cal-more summary { cursor: pointer; color: var(--muted, #6b7280); }
.cal-more div { padding: 2px 0 2px 10px; border-left: 2px solid var(--line, #e5e7eb); margin-top: 2px; word-break: keep-all; }
