@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --line: #e2e5ea;
  --text: #1c1f24;
  --dim: #666e7a;
  --accent: #1a5fb4;
  --warn: #b3261e;
  --ok: #1d7a45;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 "Malgun Gothic", "맑은 고딕", -apple-system, system-ui, sans-serif;
}
a { color: var(--accent); }
header.bar {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "title who"
    "nav   nav";
  align-items: center;
  row-gap: 8px;
  column-gap: 14px;
  padding: 10px 16px 8px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.bar h1 {
  grid-area: title;
  font-size: 15px;
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}
header.bar .who {
  grid-area: who;
  justify-self: end;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}
header.bar .who button { padding: 5px 10px; font-size: 12px; }
header.bar nav {
  grid-area: nav;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
header.bar nav::-webkit-scrollbar { display: none; }
header.bar nav a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--dim);
  white-space: nowrap;
  font-size: 14px;
}
header.bar nav a:hover { background: #f2f5f9; color: var(--text); }
header.bar nav a.on { background: #eaf1fb; color: var(--accent); font-weight: 700; }
@media (max-width: 640px) {
  header.bar { padding: 8px 12px 6px; column-gap: 8px; }
  header.bar h1 { font-size: 14px; }
  header.bar .who { font-size: 12px; gap: 6px; }
  header.bar nav a { padding: 6px 10px; font-size: 13px; }
}
main { padding: 20px 24px; max-width: 1800px; margin: 0 auto; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.panel h2 { font-size: 14px; margin: 0 0 12px; }
.panel .note { color: var(--dim); font-size: 13px; margin: 0 0 12px; }
.cards {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.cards .card {
  flex: 1 1 0;
  min-width: 96px;
  padding: 10px 12px;
}
.cards .card .k {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cards .card .v { font-size: 19px; }
.cards .card.lead { background: #eaf1fb; border-color: #c9dcf6; }
.cards .card.period { flex: 0 0 auto; min-width: 118px; }
.cards .card.period .v { font-size: 11px; font-weight: 400; line-height: 1.35; white-space: normal; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 130px;
}
.card .k { color: var(--dim); font-size: 12px; }
.card .v { font-size: 22px; font-weight: 700; margin-top: 2px; }
form.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
select, input[type=text], input[type=password], input[type=month] {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  color: inherit;
}
button {
  padding: 7px 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
button.ghost { background: #fff; color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #fafbfc; font-weight: 700; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; background: #fafbfc; }
.scroll { overflow-x: auto; }
.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  background: #eef1f5;
  color: var(--dim);
  font-size: 12px;
  white-space: nowrap;
}
.tag.src-sheet { background: #fdf2e3; color: #8a5a00; }
.tag.warn { background: #fdecea; color: var(--warn); margin-left: 4px; }
.tag.src-web { background: #e7f4ec; color: var(--ok); }
.tag.src-call { background: #eee9fb; color: #5b3fb3; }
.tag.soft { background: transparent; color: var(--dim); padding-left: 0; }

.hero { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.hero .card { flex: 1 1 150px; padding: 18px 20px; }
.hero .card .k { font-size: 13px; }
.hero .card .v { font-size: 34px; line-height: 1.15; margin-top: 4px; }
.hero .card .sub { color: var(--dim); font-size: 12px; margin-top: 6px; }
.hero .card.lead { background: #eaf1fb; border-color: #c9dcf6; }
.card.pick { cursor: pointer; }
.card.pick:hover { border-color: var(--accent); }
.card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.meter { height: 6px; border-radius: 3px; background: #eef1f5; overflow: hidden; min-width: 60px; }
.meter > i { display: block; height: 100%; background: var(--accent); }
.meter > i.call { background: #7a5af5; }
.rank { color: var(--dim); font-variant-numeric: tabular-nums; width: 34px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid2 .panel { margin-bottom: 0; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: 1fr; } }
.legend { display: flex; gap: 14px; color: var(--dim); font-size: 12px; margin: 0 0 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.legend i.q { background: var(--accent); }
.legend i.c { background: #7a5af5; }
td.memo { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); }
.dayhead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.dayhead .date { font-size: 15px; font-weight: 700; }
select.inline { padding: 3px 6px; font-size: 12px; min-width: 96px; }
select.inline.saved { border-color: var(--ok); background: #f1f9f4; }
label.tag.soft { cursor: pointer; }
label.tag.soft input { vertical-align: -2px; margin-right: 4px; }
.row-click { cursor: pointer; }
.row-click:hover { background: #f7f9fc; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.err { color: var(--warn); margin: 8px 0 0; }
.ok { color: var(--ok); margin: 8px 0 0; }
.gap-plus { color: var(--warn); font-weight: 700; }
.gap-minus { color: var(--accent); font-weight: 700; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; width: 100%; max-width: 360px; }
.login-box h1 { font-size: 18px; margin: 0 0 4px; }
.login-box p.sub { color: var(--dim); margin: 0 0 20px; font-size: 13px; }
.login-box label { display: block; margin-bottom: 12px; }
.login-box label span { display: block; margin-bottom: 4px; color: var(--dim); font-size: 13px; }
.login-box input { width: 100%; }
.login-box button { width: 100%; margin-top: 4px; }

dialog.detail {
  border: none;
  border-radius: 12px;
  padding: 0;
  width: min(760px, 94vw);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
dialog.detail::backdrop { background: rgba(0, 0, 0, .4); }
dialog.detail .head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
dialog.detail .head h3 { margin: 0; font-size: 15px; }
dialog.detail .head button { margin-left: auto; }
dialog.detail .body { padding: 18px; max-height: 70vh; overflow-y: auto; }
dialog.detail .body label { display: block; margin-bottom: 12px; }
dialog.detail .body label span { display: block; margin-bottom: 4px; color: var(--dim); font-size: 13px; }
dialog.detail .body label input { width: 100%; }
dialog.detail dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; margin: 0; }
dialog.detail dt { color: var(--dim); }
dialog.detail dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 640px) {
  main { padding: 12px; }
  dialog.detail dl { grid-template-columns: 1fr; gap: 2px 0; }
  dialog.detail dt { margin-top: 10px; }
}
.maprow { padding: 10px 0; border-top: 1px solid var(--line); }
.maprow:first-child { border-top: none; }
.maprow .filters { gap: 6px; }
.maprow label.tag.soft { background: #eef1f5; padding: 2px 8px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.shot {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  text-decoration: none;
  color: var(--dim);
  background: #fff;
  overflow: hidden;
}
.shot:hover { border-color: var(--accent); }
.shot img { display: block; width: 100%; height: 96px; object-fit: cover; border-radius: 4px; background: #eef1f5; }
.shot .cap { display: block; font-size: 11px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot.file { display: flex; flex-direction: column; justify-content: center; min-height: 118px; text-align: center; }
.shot.file .kind { font-size: 13px; font-weight: 700; color: var(--text); }
dialog.photo {
  border: none;
  border-radius: 12px;
  padding: 0;
  width: min(1100px, 96vw);
  background: #15171a;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
dialog.photo::backdrop { background: rgba(0, 0, 0, .75); }
dialog.photo .head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #2b2f35; }
dialog.photo .head h3 { margin: 0 auto 0 0; font-size: 14px; font-weight: 400; color: #cfd4da; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.photo .head button, dialog.photo .head a {
  background: #22262c; border-color: #343a42; color: #e6e9ed;
  padding: 5px 10px; font-size: 12px; border-radius: 6px; text-decoration: none; border-width: 1px; border-style: solid;
}
dialog.photo .head button:disabled { opacity: .35; }
dialog.photo .stage { display: flex; align-items: center; justify-content: center; padding: 12px; }
dialog.photo .stage img { max-width: 100%; max-height: 78vh; object-fit: contain; }
dialog.photo .stage video { max-width: 100%; max-height: 78vh; background: #000; }
dialog.photo .stage .note { color: #cfd4da; font-size: 13px; line-height: 1.7; text-align: center; margin: 0; padding: 48px 24px; }
tr.dim td { color: var(--dim); background: #fcfcfd; }
.sub-n { color: var(--dim); font-size: 12px; margin-left: 2px; }
td.zero { color: #c3c8ce; }
input.cellinput {
  width: 100%;
  min-width: 80px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: inherit;
  cursor: text;
}
input.cellinput:hover { border-color: #b4bdc8; }
input.cellinput:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 95, 180, .15);
}
input.cellinput.saved { border-color: var(--ok); background: #f1f9f4; }
input.cellinput::placeholder { color: #c3c8ce; }
input.cellinput.wide { min-width: 280px; }
dialog label.big > span { font-size: 13px; font-weight: 600; color: var(--text); }
dialog label.big input {
  font-size: 18px;
  padding: 11px 12px;
  min-width: 200px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .4px;
}
input.cellinput.w-region,
td .cell input.cellinput.w-region { width: 94px; min-width: 94px; flex: 0 0 auto; }
input.cellinput.w-title,
td .cell input.cellinput.w-title { width: 196px; min-width: 196px; flex: 0 0 auto; }
input.cellinput.w-phone,
td .cell input.cellinput.w-phone { width: 112px; min-width: 112px; flex: 0 0 auto; }
input.cellinput.w-time,
td .cell input.cellinput.w-time { width: 70px; min-width: 70px; flex: 0 0 auto; }
tr.draft td { background: #f7fbff; }
tr.draft td.rank { color: var(--accent); font-weight: 700; }
tr.addrow td { background: #fafbfc; padding-top: 7px; padding-bottom: 7px; }
.rowbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rowbar .note { color: var(--dim); font-size: 12px; margin: 0; }
button.ghost.plus {
  padding: 1px 13px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--accent);
  border-color: var(--accent);
}
th.mid { text-align: center; }
td .checkcell { display: flex; justify-content: center; cursor: pointer; }
td .checkcell input.check { width: 17px; height: 17px; margin: 0; cursor: pointer; accent-color: var(--ok); }
td .cell { display: flex; align-items: center; gap: 6px; }
td .cell input.cellinput { min-width: 60px; }
td .cell .tag { flex: 0 0 auto; }
button.ghost.drop { margin-left: 8px; padding: 3px 8px; font-size: 12px; color: var(--dim); }
button.ghost.shotbtn { padding: 3px 9px; font-size: 12px; color: var(--ok); border-color: #bfe0cb; background: #f2f9f4; }
button.ghost.shotbtn:hover { border-color: var(--ok); }
button.ghost.drop:hover { color: var(--warn); border-color: var(--warn); }
select.inline.chan { min-width: 132px; color: var(--dim); }
select.inline.chan.fixed { color: var(--text); border-color: var(--accent); background: #f4f8fd; }
.cscount { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cscount .who { color: var(--dim); font-size: 12px; margin-right: 2px; }
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 12px;
}
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--accent); }
.chip .v { font-size: 15px; font-weight: 700; }
.chip .a { font-size: 11px; opacity: .7; }
.chip.all { border-color: var(--accent); color: var(--accent); background: #f4f8fd; }
.chip.on { box-shadow: 0 0 0 2px rgba(26, 95, 180, .22); }
.who-none { background: #fbfbfc; color: #8a9199; border-style: dashed; }
.who-0 { background: #e3eefb; border-color: #7aa9dd; color: #15497f; }
.who-1 { background: #e3f4e9; border-color: #7fc295; color: #1c6b3a; }
.who-2 { background: #fdeedb; border-color: #e0b277; color: #8a5311; }
.who-3 { background: #eee7fa; border-color: #ab97d9; color: #4b3287; }
.who-4 { background: #fde7ec; border-color: #e19aaa; color: #8e2740; }
.who-5 { background: #def0f2; border-color: #83bfc5; color: #15606a; }
.who-6 { background: #f3eed3; border-color: #ccbf78; color: #6d5f13; }
.who-7 { background: #e8ecf2; border-color: #a3afc0; color: #3b4756; }
.who-8 { background: #eaf6dc; border-color: #a8c982; color: #44651a; }
.who-9 { background: #f3ebe2; border-color: #c4ab8e; color: #6a4e2e; }

/* ===== 피처링(featuring.co) 형태 — 2026-12-03 =====
   실측: 대표색 #5E51FF(rgb 94,81,255), 선 #EDEDED, 보조 글자 #757575, 본문 #242424, 배경 #FAFAFA/#F8F9FA,
   왼쪽 흰 사이드바(아이콘+이름, 묶음 제목 회색 작은 글씨, 고른 항목 = 연보라 바탕+대표색 글씨, 숫자 배지 원),
   위 필터는 알약형 칩, 표는 촘촘한 줄 + 연한 구분선, 태그는 파스텔 알약, 버튼은 8px 둥근 채움/테두리. */
:root {
  --bg: #f8f9fa; --panel: #fff; --line: #ededed; --line-2: #e0e0e0; --text: #242424; --dim: #757575;
  --accent: #5e51ff; --accent-2: #4a3df0; --accent-weak: #efeeff; --accent-line: #d9d6ff;
  --ok: #12a150; --warn: #e5484d; --side: 240px; --r: 8px; --r-lg: 12px;
}
body { font: 14px/1.55 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: -0.01em; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }

/* 사이드바 */
header.bar { position: fixed; inset: 0 auto 0 0; width: var(--side); display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 20px 12px 16px; background: #fff; border-right: 1px solid var(--line); border-bottom: none; z-index: 20; overflow-y: auto; }
header.bar h1 { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; padding: 2px 10px 18px; display: flex; align-items: center; gap: 6px; }
header.bar h1::before { content: "✱"; color: var(--accent); font-size: 18px; font-weight: 900; }
header.bar nav { flex-direction: column; gap: 2px; overflow: visible; }
header.bar nav .sec { font-size: 12px; color: #9e9e9e; font-weight: 500; padding: 16px 10px 6px; }
header.bar nav .sec:first-child { padding-top: 4px; }
header.bar nav a { display: flex; align-items: center; gap: 10px; padding: 0 10px; height: 38px; border-radius: var(--r); color: #333; font-size: 14px; font-weight: 500; }
header.bar nav a svg { width: 18px; height: 18px; flex: none; color: #616161; }
header.bar nav a:hover { background: #f5f5f7; color: var(--text); }
header.bar nav a.on { background: var(--accent-weak); color: var(--accent); font-weight: 700; }
header.bar nav a.on svg { color: var(--accent); }
header.bar .who { margin-top: auto; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: #424242; white-space: normal; }
header.bar .who span { font-weight: 600; }
header.bar .who button { width: 100%; height: 34px; }
main { margin-left: var(--side); padding: 28px 36px 48px; max-width: none; }
.pagehead { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; }
.pagehead h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.pagehead .sub { color: var(--dim); font-size: 13px; }

/* 패널·카드 */
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(17, 17, 26, .03); }
.panel h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.panel .note { color: var(--dim); }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: 0 1px 2px rgba(17, 17, 26, .03); }
.card .k { color: var(--dim); font-size: 13px; font-weight: 500; }
.card .v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cards { gap: 10px; }
.cards .card { padding: 14px 16px; }
.cards .card .v { font-size: 21px; }
.cards .card.lead, .hero .card.lead { background: var(--accent-weak); border-color: var(--accent-line); }
.cards .card.lead .v, .hero .card.lead .v { color: var(--accent); }
.hero { gap: 12px; }
.hero .card .v { font-size: 32px; }
.card.pick:hover { border-color: var(--accent-line); background: #fbfaff; }
.card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* 입력·버튼(피처링: 8px 둥근, 높이 36) */
select, input[type=text], input[type=password], input[type=month], input[type=date], input[type=number], input[type=search], textarea { height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font: inherit; font-size: 14px; color: var(--text); }
textarea { height: auto; padding: 8px 12px; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94, 81, 255, .15); }
button { height: 36px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s; }
button:hover { background: var(--accent-2); border-color: var(--accent-2); }
button.ghost { background: #fff; color: #333; border-color: var(--line-2); }
button.ghost:hover { background: #f7f7f8; border-color: #cfcfcf; color: var(--text); }
form.filters { gap: 8px; }
select.inline { height: 30px; font-size: 13px; padding: 0 8px; }

/* 표 */
table { font-size: 13px; }
th, td { padding: 11px 12px; border-bottom: 1px solid #f0f0f0; }
th { background: #fafafa; color: var(--dim); font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--line); }
tr.total td { background: #fafafa; }
.row-click:hover, tbody tr:hover td { background: #fbfaff; }

/* 태그(파스텔 알약) */
.tag { border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.tag.src-web { background: #e8f8ef; color: #0f8a43; }
.tag.src-call { background: var(--accent-weak); color: var(--accent); }
.tag.src-sheet { background: #fff4e0; color: #a35f00; }
.tag.warn { background: #ffecec; color: var(--warn); }
.meter { height: 6px; background: #f0f0f3; }
.meter > i { background: var(--accent); }
.meter > i.call, .legend i.c { background: #b3abff; }
.legend i.q { background: var(--accent); }

/* 대화상자·로그인 */
dialog.detail { border: none; border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(17, 17, 26, .18); }
dialog.detail::backdrop { background: rgba(17, 17, 26, .35); }
.login-wrap { background: radial-gradient(1200px 500px at 50% 0%, #ecebff 0%, #f8f9fa 60%); }
.login-box { border: 1px solid var(--line); border-radius: 16px; padding: 36px 32px; box-shadow: 0 10px 40px rgba(94, 81, 255, .08); }
.login-box h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.login-box h1::before { content: "✱ "; color: var(--accent); }
.login-box button { height: 44px; font-size: 15px; }
.login-box input { height: 44px; }

/* 좁은 화면: 사이드바 → 위쪽 가로 메뉴 */
@media (max-width: 900px) {
  header.bar { position: sticky; inset: auto; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--line); overflow: visible; }
  header.bar h1 { padding: 0 8px 0 0; font-size: 15px; }
  header.bar nav { flex-direction: row; order: 3; width: 100%; overflow-x: auto; }
  header.bar nav .sec { display: none; }
  header.bar nav a { height: 34px; flex: 0 0 auto; }
  header.bar nav a svg { display: none; }
  header.bar .who { margin: 0 0 0 auto; flex-direction: row; border-top: none; padding: 0; }
  header.bar .who button { width: auto; height: 30px; padding: 0 10px; font-size: 12px; }
  main { margin-left: 0; padding: 16px 14px 40px; }
}
.hero .card { flex: 1 1 112px; min-width: 112px; padding: 16px 18px; }
.hero .card .v { font-size: 30px; }
.panel table td:first-child, .panel table th:first-child { white-space: nowrap; }
.panel .card .v { font-size: 22px; white-space: nowrap; }
/* 표 칸은 한 줄로(사이드바로 폭이 줄어도 글자가 한 자씩 꺾이지 않게) — 긴 글은 말줄임, 넓으면 가로 스크롤 */
th, td { padding: 10px 12px; white-space: nowrap; }
td { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.panel { overflow-x: auto; }

/* 사이드바 접기(PC) */
header.bar h1 .fold { margin-left: auto; width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid transparent; color: #757575; }
header.bar h1 .fold:hover { background: #f5f5f7; border-color: var(--line); color: var(--text); }
header.bar h1 .fold svg { width: 18px; height: 18px; }
@media (min-width: 901px) {
  html.side-mini { --side: 64px; }
  html.side-mini header.bar { padding-left: 10px; padding-right: 10px; }
  html.side-mini header.bar h1 { font-size: 0; padding: 2px 0 18px; flex-direction: column; gap: 10px; }
  html.side-mini header.bar h1 .fold { margin: 0; }
  html.side-mini header.bar nav .sec { font-size: 0; padding: 10px 0 4px; border-top: 1px solid var(--line); margin-top: 6px; }
  html.side-mini header.bar nav .sec:first-child { border-top: none; margin-top: 0; }
  html.side-mini header.bar nav a { font-size: 0; justify-content: center; padding: 0; gap: 0; }
  html.side-mini header.bar .who { display: none; }
}
@media (max-width: 900px) { header.bar h1 .fold { display: none; } }
