:root {
  font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: #172033;
  background: #f3f6fb;
  --line: #dfe5ee;
  --primary: #2459d3;
  --primary-dark: #1948ba;
  --soft: #eef4ff;
  --new: #fff4c7;
  --selected: #edf8f1;
  --selected-text: #247044;
  --danger: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1220px, calc(100% - 36px)); margin: 36px auto 72px; }
.hero { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:18px; }
.hero-actions { display:flex; gap:9px; align-items:center; }
.eyebrow { font-size:12px; font-weight:800; letter-spacing:.14em; color:#6c7a92; }
h1 { margin:5px 0 5px; font-size:32px; letter-spacing:-.04em; }
.sub { margin:0; color:#68758b; }
.primary, .ghost { border-radius:12px; padding:11px 16px; border:1px solid transparent; font-weight:800; }
.primary { background:var(--primary); color:white; box-shadow:0 6px 18px rgba(36,89,211,.18); }
.primary:hover { background:var(--primary-dark); }
.primary:disabled { opacity:.55; cursor:wait; }
.ghost { background:white; border-color:var(--line); color:#31405a; }
.ghost:hover { border-color:#9eb1d4; background:#f8faff; }
.full { width:100%; margin-top:14px; }
.period-card, .panel, .toolbar { background:white; border:1px solid var(--line); box-shadow:0 8px 26px rgba(31,48,80,.05); }
.period-card { display:flex; justify-content:space-between; gap:16px; padding:18px 20px; border-radius:16px; }
.period-card > div { display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; }
.period-card .right { justify-content:flex-end; }
.label, .muted { color:#7a879b; font-size:13px; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:14px 0; }
.stats article { background:white; border:1px solid var(--line); border-radius:16px; padding:17px 18px; box-shadow:0 8px 26px rgba(31,48,80,.04); }
.stats span { display:block; color:#69768b; font-size:13px; font-weight:700; }
.stats strong { display:inline-block; font-size:30px; margin-top:5px; letter-spacing:-.04em; }
.stats small { margin-left:4px; color:#6e7c91; }
.toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; border-radius:16px 16px 0 0; padding:10px 12px; border-bottom:0; }
.tabs { display:flex; gap:5px; overflow:auto; }
.tab { border:0; background:transparent; padding:9px 13px; border-radius:10px; font-weight:800; color:#65728a; white-space:nowrap; }
.tab.active { background:var(--soft); color:var(--primary); }
.toolbar-actions { display:flex; align-items:center; gap:8px; }
.selection-count { color:#68758b; font-size:12px; font-weight:800; min-width:58px; text-align:right; }
.panel { border-radius:0 0 16px 16px; overflow:hidden; }
.notice { padding:12px 16px; border-bottom:1px solid var(--line); background:#f8fafc; color:#53627a; font-size:14px; }
.notice.error { color:var(--danger); background:#fff1f0; }
.view-help { padding:10px 16px; border-bottom:1px solid var(--line); background:#fbfcfe; color:#6b7890; font-size:12px; }
.hidden { display:none !important; }
.table-wrap { width:100%; overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:960px; }
th, td { padding:12px 14px; border-bottom:1px solid #edf0f5; text-align:left; font-size:13px; vertical-align:middle; }
th { position:sticky; top:0; background:#fafbfd; color:#68758b; font-size:12px; z-index:1; }
tbody tr:hover { background:#f8faff; }
tbody tr.row-new { background:var(--new); }
tbody tr.row-selected { box-shadow:inset 4px 0 0 #62ad7c; }
tbody tr.row-new.row-selected { background:#fff1bd; box-shadow:inset 4px 0 0 #62ad7c; }
.check-col { width:46px; text-align:center; }
.check-col input { width:17px; height:17px; accent-color:var(--primary); cursor:pointer; }
.badge { display:inline-flex; align-items:center; padding:4px 8px; border-radius:999px; font-size:11px; font-weight:800; margin:2px 3px 2px 0; }
.badge.new { background:#ffdf72; color:#725300; }
.badge.selected { background:var(--selected); color:var(--selected-text); }
.source { font-weight:800; white-space:nowrap; }
.title-link { color:#18233a; font-weight:700; text-decoration:none; }
.title-link:hover { color:var(--primary); text-decoration:underline; }
.empty { text-align:center; color:#8692a5; padding:42px 16px; }
.action-cell { width:100px; white-space:nowrap; }
.copy-btn { border:1px solid #cfd9ea; background:#fff; color:#365176; border-radius:9px; padding:7px 10px; font-size:11px; font-weight:800; cursor:pointer; white-space:nowrap; }
.copy-btn:hover { border-color:#8fa9dd; background:#f4f7ff; color:var(--primary); }
.copy-btn.copied { border-color:#8bc6a2; background:#eefaf2; color:#247044; }
dialog { border:0; padding:0; border-radius:18px; width:min(720px, calc(100% - 30px)); box-shadow:0 24px 70px rgba(19,32,57,.25); }
dialog::backdrop { background:rgba(17,27,46,.42); backdrop-filter:blur(2px); }
.dialog-card { padding:22px; }
.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.dialog-head h2 { margin:0; font-size:21px; }
.icon-btn { border:0; background:#f1f4f8; width:34px; height:34px; border-radius:50%; font-size:22px; }
.result-list { max-height:330px; overflow:auto; margin-top:14px; border-top:1px solid var(--line); }
.result-item { padding:11px 8px; border-bottom:1px solid #edf0f5; }
.result-item small { color:#718097; }
.guide-card { padding:24px; }
.guide-lead { color:#53627a; line-height:1.65; margin:12px 0 16px; }
.guide-steps { list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.guide-steps li { padding:12px 14px; border:1px solid var(--line); background:#fafcff; border-radius:12px; }
.guide-steps strong { display:block; margin-bottom:4px; color:#243552; }
.guide-steps span { color:#64728a; font-size:13px; line-height:1.55; }
.guide-tip { margin-top:13px; padding:11px 13px; background:#eef4ff; color:#3f5f98; border-radius:11px; font-size:13px; line-height:1.5; }
.guide-hide { display:flex; align-items:center; gap:7px; margin-top:15px; color:#66758b; font-size:12px; }
.guide-hide input { width:16px; height:16px; }
.spinner { display:inline-block; width:14px; height:14px; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; animation:spin .8s linear infinite; vertical-align:-2px; margin-right:7px; }
@keyframes spin { to { transform:rotate(360deg); } }
.toast { position:fixed; left:50%; bottom:28px; transform:translate(-50%, 20px); opacity:0; pointer-events:none; z-index:9999; background:#172033; color:#fff; border-radius:11px; padding:10px 15px; font-size:13px; font-weight:700; box-shadow:0 10px 28px rgba(23,32,51,.22); transition:opacity .18s ease, transform .18s ease; }
.toast.show { opacity:1; transform:translate(-50%, 0); }

@media (max-width:760px) {
  .shell { width:min(100% - 20px, 1220px); margin-top:20px; }
  .hero { align-items:flex-start; flex-direction:column; }
  .hero-actions { width:100%; }
  .hero-actions button { flex:1; }
  .period-card { flex-direction:column; }
  .period-card .right { justify-content:flex-start; }
  .stats { grid-template-columns:repeat(2,1fr); }
  .toolbar { align-items:stretch; flex-direction:column; }
  .toolbar-actions { width:100%; flex-wrap:wrap; }
  .selection-count { margin-right:auto; text-align:left; }
}

/* v10: 전체 누적 15건 단위 페이지 이동 */
.pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 16px 15px; border-top:1px solid var(--line); background:#fff; flex-wrap:wrap; }
.page-info { color:#738198; font-size:12px; font-weight:700; }
.page-buttons { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.page-btn { min-width:36px; height:34px; padding:0 10px; border:1px solid #d7deea; border-radius:9px; background:#fff; color:#43536b; font-size:12px; font-weight:800; }
.page-btn:hover:not(:disabled) { background:#f4f7ff; border-color:#9eb1d4; color:var(--primary); }
.page-btn.active { background:var(--primary); border-color:var(--primary); color:#fff; }
.page-btn:disabled { opacity:.4; cursor:default; }
.page-ellipsis { padding:0 3px; color:#94a0b1; }
@media (max-width:760px) { .pagination { align-items:flex-start; flex-direction:column; } }
