/* GIFIND 화면(PC 전용 배치, 2026-10-08): 왼쪽 남색 메뉴 + 위 경로 줄 + 조건 카드 + 결과 표 + 아래에 고정된 엑셀 막대.
   색은 GIFLOW·GICERT와 같은 남색·청록. 글꼴은 맑은 고딕(설치 파일 없이 윈도우 기본 글꼴). 외부 글꼴·스크립트·인라인 스타일은 쓰지 않는다(CSP). */
:root {
  --navy: #1E4A80; --navy-deep: #173B6B; --side: #15355F; --side-line: rgba(255, 255, 255, 0.12);
  --teal: #3799A2; --teal-deep: #1F7A85; --teal-ink: #17666F; --teal-bright: #7FE3E9;
  --label: #1F7A85; --ink: #16202B; --body: #2C3947; --sub: #5B6673; --line: #E1E7EE; --line-strong: #C6D0DB; --bg: #F3F6F9;
  --error: #B3261E; --error-soft: #FCE4E2; --warn: #6B4A00; --warn-soft: #FFF4D6; --ok: #0E5A3A; --ok-soft: #DFF5EC;
  --tint: #EAF5F6; --head: #F6F8FB; --navy-soft: #E8EEF6; --row-hover: #F4F8FB;
  --radius: 8px; --radius-card: 10px;
  --shadow-card: 0 1px 2px rgba(22, 32, 43, 0.04), 0 10px 28px -22px rgba(23, 59, 107, 0.45);
  --shadow-pop: 0 20px 44px -20px rgba(16, 36, 66, 0.5), 0 2px 6px rgba(16, 36, 66, 0.08);
  --side-w: 228px; --top-h: 52px; --bar-h: 64px; --gutter: 32px; --no-w: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font); word-break: keep-all; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea { caret-color: var(--teal-deep); }
::selection { background: #CBE7EA; color: var(--ink); }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
[hidden] { display: none !important; }
.boot { padding: 80px; text-align: center; color: var(--sub); }
.ico { display: block; flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--sub); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.ok-text { color: var(--ok); }
.bad-text { color: var(--error); }
.table-wrap, .drawer, .side { scrollbar-width: thin; scrollbar-color: #B7C3D0 transparent; }
.side { scrollbar-color: rgba(255, 255, 255, 0.28) transparent; }

/* 버튼·입력 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 15px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: #fff; color: var(--body); font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background-color .15s, color .15s; }
.btn:hover { border-color: var(--teal-deep); background: var(--tint); color: var(--ink); }
.btn:active { background: #DCEEF0; }
.btn:disabled { background: #E9EDF2; color: #6B7682; border-color: #E9EDF2; cursor: not-allowed; }
.btn.primary { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn.primary:hover { border-color: var(--navy-deep); background: var(--navy-deep); color: #fff; }
.btn.primary:active { background: #122F56; }
.btn.accent { border-color: var(--teal-deep); background: var(--teal-deep); color: #fff; }
.btn.accent:hover { border-color: var(--teal-ink); background: var(--teal-ink); color: #fff; }
.btn.accent:active { background: #12555D; }
.btn.primary:disabled, .btn.accent:disabled { background: #E9EDF2; color: #6B7682; border-color: #E9EDF2; }
.btn.danger { color: var(--error); border-color: #F0BDB8; }
.btn.danger:hover { background: var(--error-soft); border-color: var(--error); color: var(--error); }
.btn.small { height: 30px; padding: 0 11px; font-size: 13px; }
.btn.big { height: 42px; padding: 0 20px; }
.btn.quiet { border-color: transparent; background: none; color: var(--sub); padding: 0 10px; }
.btn.quiet:hover { border-color: transparent; background: var(--navy-soft); color: var(--ink); }
.btn.icon { width: 34px; height: 34px; padding: 0; }
.btn.link { height: auto; padding: 0 4px; border: 0; background: none; color: var(--navy); text-decoration: underline; font-weight: 500; }
.btn.link:hover { background: none; color: var(--teal-deep); }
input[type=text], input[type=password], input[type=date], input[type=number], input[type=time], select, textarea {
  height: 38px; width: 100%; min-width: 0; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  transition: border-color .15s, box-shadow .15s; }
select { padding-right: 4px; cursor: pointer; }
textarea { height: auto; padding: 9px 12px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #6F7B88; }
input:hover, select:hover, textarea:hover { border-color: #8FAFC0; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(55, 153, 162, 0.24); outline: none; }
select:disabled, input:disabled { background: #F1F4F7; color: #6B7682; cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 2px; }
.side button:focus-visible { outline-color: #fff; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--navy); cursor: pointer; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink); }
label.field > input, label.field > select { font-weight: 400; }
label.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap; color: var(--body); }
.error { color: var(--error); background: var(--error-soft); border-radius: var(--radius); padding: 10px 14px; font-weight: 600; }
.notice { color: var(--navy-deep); background: var(--navy-soft); border-radius: var(--radius); padding: 11px 16px; }

/* 로그인: 왼쪽은 메뉴와 같은 남색 얼굴(GIFLOW·GICERT와 같은 겹테두리), 오른쪽은 로그인 */
.login-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(440px, 0.9fr); min-height: 100vh; background: #fff; }
.login-hero { position: relative; overflow: hidden; padding: 28px; color: #fff;
  background: radial-gradient(90% 70% at 100% 100%, rgba(55, 153, 162, 0.62) 0%, rgba(55, 153, 162, 0) 62%), var(--side); }
.login-frame { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; height: 100%; min-height: 520px; padding: 40px 44px;
  border: 1px solid rgba(255, 255, 255, 0.5); outline: 1px solid rgba(255, 255, 255, 0.2); outline-offset: 6px; }
.login-frame .brand .mark, .login-frame .brand .word { height: 52px; }
.login-kind { margin: 0; font-size: 20px; font-weight: 700; color: #BFEDEF; }
.login-name { margin: 6px 0 0; font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.14; color: #fff; }
.login-rule { width: 120px; height: 5px; margin: 26px 0 22px; background: var(--teal); }
.login-lead { margin: 0; max-width: 30em; font-size: 16px; line-height: 1.7; color: #D5E1F0; }
.login-site { display: flex; justify-content: space-between; gap: 16px; margin: 0; font-size: 13px; letter-spacing: 0.04em; color: #B9CADF; }
.login-site span:first-child { font-weight: 700; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px 40px; background: #fff; }
.login-box { display: grid; gap: 14px; width: 100%; max-width: 380px; }
.login-box h1 { margin: 0 0 10px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.login-box form { display: grid; gap: 16px; }
.login-box input { height: 48px; padding: 0 14px; font-size: 16px; }
.login-box .btn { height: 50px; margin-top: 8px; font-size: 16px; }

/* 틀: 왼쪽 메뉴(고정) + 오른쪽 무대(위 경로 줄, 본문) */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; z-index: 25; display: flex; flex-direction: column; height: 100vh; padding: 18px 12px 14px; background: var(--side); color: #D5E1F0; overflow-y: auto; }
/* 로고: 사각 마크와 글자 그림은 틀 높이가 같다(글자는 마크 높이의 71%, 마크와의 간격 포함). 그래서 같은 높이로 붙여 놓는다. */
.brand { display: flex; align-items: center; gap: 0; color: #fff; text-decoration: none; }
.brand .mark, .brand .word { display: block; height: 34px; width: auto; }
.side .brand { padding: 2px 8px 0; }
.side-sub { margin: 12px 8px 0; font-size: 12px; line-height: 1.5; color: #9DB4D0; }
.side-sub b { display: block; font-weight: 700; color: #E6EEF8; }
nav.menus { display: flex; flex: 1; flex-direction: column; gap: 2px; margin-top: 24px; }
.nav-title { margin: 18px 10px 6px; font-size: 12px; font-weight: 700; color: #8FA9C8; }
.nav-title:first-child { margin-top: 0; }
nav.menus button { display: flex; align-items: center; gap: 11px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius); background: none;
  color: #D5E1F0; font-size: 14px; font-weight: 600; text-align: left; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
nav.menus button .ico { width: 18px; height: 18px; color: #9DB4D0; transition: color .15s; }
nav.menus button:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
nav.menus button:hover .ico { color: #fff; }
nav.menus button:active { background: rgba(255, 255, 255, 0.16); }
nav.menus button.active { background: #fff; color: var(--navy-deep); font-weight: 700; box-shadow: 0 8px 18px -12px rgba(4, 16, 38, 0.9); }
nav.menus button.active .ico { color: var(--teal-deep); }
.who { display: grid; gap: 10px; margin-top: 16px; padding: 14px 6px 2px; border-top: 1px solid var(--side-line); }
.who-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 12px; font-weight: 700; }
.who-text { min-width: 0; line-height: 1.4; }
.who-text .name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; color: #fff; }
.who-text .role { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #9DB4D0; }
.who-actions { display: flex; gap: 6px; }
.who-actions button { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 6px; border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius); background: none; color: #D5E1F0; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.who-actions button .ico { width: 14px; height: 14px; }
.who-actions button:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.stage { display: flex; flex-direction: column; min-width: 0; }
header.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--top-h); padding: 0 var(--gutter);
  background: #fff; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--sub); }
.crumbs li + li::before { content: "/"; margin-right: 9px; color: var(--line-strong); }
.crumbs [aria-current] { font-weight: 700; color: var(--ink); }
.fresh { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--head);
  font-size: 12px; color: var(--sub); white-space: nowrap; }
.fresh::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.fresh b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
main { display: grid; flex: 1; gap: 16px; align-content: start; width: 100%; max-width: 1760px; margin: 0 auto; padding: 26px var(--gutter) calc(var(--bar-h) + 36px); }
main > *, .stack > * { min-width: 0; }
.stack { display: grid; gap: 16px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; }
.page-head > div:first-child { flex: 1 1 0; min-width: 320px; }
.page-head > .stats { flex: none; max-width: 100%; }
.page-head h2 { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.page-head p { margin: 5px 0 0; max-width: 120ch; font-size: 13px; color: var(--sub); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
/* 건수 줄: 카드 여러 장 대신 칸을 나눈 한 줄 */
.stats { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; }
.stats:empty { display: none; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; min-width: 108px; padding: 8px 16px 9px; box-shadow: -1px 0 0 var(--line); }
.stat b { font-size: 15px; font-weight: 700; color: var(--navy-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b.none { font-weight: 400; color: var(--sub); }
.stat span { font-size: 12px; color: var(--sub); white-space: nowrap; }

/* 조건 카드: 첫 줄에 지역·업종·검색어·[검색], 둘째 줄에 자주 쓰는 조건과 상세 조건 */
.filters { display: grid; gap: 14px; padding: 18px 20px 12px; border-top: 2px solid var(--navy); }
.fmain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "region cats cats" "query query go"; gap: 14px 16px; align-items: start; }
.fgroup { display: grid; gap: 6px; align-content: start; min-width: 0; }
.fgroup.region { grid-area: region; }
.fgroup.cats { grid-area: cats; }
.fgroup.query { grid-area: query; }
.fmain > .go { grid-area: go; height: 38px; margin-top: 25px; padding: 0 22px; }
.fl { font-size: 13px; font-weight: 700; line-height: 19px; color: var(--ink); }
.fgrid { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.fgrid > select, .fgrid > input { flex: 1 1 128px; width: auto; }
.fgrid > .muted, .fgrid .hint-line { flex: 1 0 100%; }
.fgrid.wide > select { flex: 0 0 132px; }
.fgrid.wide > input { flex: 1 1 240px; }
.fgrid.checks { gap: 10px 20px; }
.fgrid.emp > input { flex: 0 0 96px; }
.fgrid.emp > .muted { flex: 0 1 auto; }
.fgrid.emp > .small { flex: 1 0 100%; }
.fquick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-height: 46px; padding-top: 12px; border-top: 1px solid var(--line); }
.fquick .spacer { flex: 1; }
.fquick .fl { margin-right: -6px; }
.fquick .sep { width: 1px; height: 18px; background: var(--line-strong); }
.fquick .contacts { display: contents; }
.tri { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--body); white-space: nowrap; }
.tri span { font-weight: 600; }
.tri select { width: 104px; height: 32px; padding-left: 8px; }
.more-toggle .ico { transition: transform .2s var(--ease); }
.more-toggle[aria-expanded=true] { background: var(--navy-soft); color: var(--ink); }
.more-toggle[aria-expanded=true] .ico { transform: rotate(180deg); }
.more-toggle .hint { font-weight: 400; }
.more-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 36px; padding: 16px 0 6px; border-top: 1px dashed var(--line-strong); }
.frow { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 12px; }
.frow > .fl { line-height: 38px; }
.more-body .fgrid > select, .more-body .fgrid > input { max-width: 220px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
  color: var(--body); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.chip:hover { border-color: var(--teal-deep); background: var(--tint); color: var(--ink); }
.chip.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.applied { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 2px; }
.applied > .muted { margin-right: 6px; }
.chip.x { height: 26px; padding: 0 6px 0 10px; border-color: transparent; background: var(--navy-soft); color: var(--navy-deep); font-size: 12px; }
.chip.x .ico { width: 13px; height: 13px; color: var(--sub); }
.chip.x:hover { border-color: transparent; background: #DBE5F1; }
.chip.x:hover .ico { color: var(--error); }
.factions { display: flex; gap: 8px; justify-content: flex-end; }

/* 결과 */
.results-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 15px 20px 13px; border-bottom: 1px solid var(--line); }
.results-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.results-head .count { margin: 0 2px 0 4px; font-size: 21px; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.results-title p { margin: 1px 0 0; }
.results-head .spacer { flex: 1; }
.results-head select, .results-foot select { width: auto; height: 34px; }
.source-note { margin: -6px 4px 0; font-size: 12px; color: var(--sub); }
.cap-note { padding: 9px 20px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); }
.dirty-note { color: var(--warn); font-size: 13px; font-weight: 700; }
/* 표 안에서 위아래·좌우로 움직인다: 제목 줄과 번호·업체명 열이 고정된다 */
.table-wrap { overflow: auto; max-height: max(380px, calc(100vh - var(--top-h) - var(--bar-h) - 178px)); }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.grid th { position: sticky; top: 0; z-index: 2; height: 38px; padding: 0 12px; background: var(--head); text-align: left; font-size: 12px; font-weight: 700; color: var(--sub);
  border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.grid td { height: 40px; padding: 4px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; color: var(--body); }
table.grid.pick tbody tr { cursor: pointer; }
table.grid tbody tr:hover td { background: var(--row-hover); }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid th.no, td.no { position: sticky; left: 0; width: var(--no-w); min-width: var(--no-w); max-width: var(--no-w); padding-right: 10px; text-align: right; font-variant-numeric: tabular-nums; }
table.grid th.no { z-index: 3; }
td.no { z-index: 1; background: #fff; font-size: 12px; color: var(--sub); }
td.name { position: sticky; left: 0; z-index: 1; min-width: 180px; max-width: 300px; overflow: hidden; text-overflow: ellipsis; background: #fff; font-weight: 700; color: var(--navy-deep);
  box-shadow: 1px 0 0 var(--line); }
table.grid th.name { position: sticky; left: 0; z-index: 3; box-shadow: 1px 0 0 var(--line); }
table.grid.pick td.name, table.grid.pick th.name { left: var(--no-w); }
td.addr { min-width: 200px; max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; padding: 2px 7px; border-radius: 4px; background: var(--navy-soft); color: var(--navy); font-size: 11px; font-weight: 700; line-height: 1.5; }
.badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1.5; vertical-align: 1px; }
.badge.corp { background: #DDE9F8; color: #1A4A85; }
.badge.gone { background: var(--warn-soft); color: var(--warn); }
.badge.plus { background: var(--ok-soft); color: var(--ok); }
.badge.off { background: #E9EDF2; color: #44505E; }
.st-01 { color: var(--ok); }
.st-02 { color: var(--warn); }
.st-03, .st-04 { color: var(--error); }
.empty { padding: 56px 16px; text-align: center; color: var(--sub); }
.empty strong { display: block; margin-bottom: 4px; font-size: 15px; color: var(--ink); }
.empty p { margin: 0; }
.results-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); }
.results-foot .range { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.results-foot .per { display: inline-flex; align-items: center; justify-self: end; gap: 8px; font-size: 12px; color: var(--sub); }
.pager { display: flex; align-items: center; justify-content: center; gap: 3px; }
.card > .pager { padding: 11px 20px; border-top: 1px solid var(--line); }
.pager button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 32px; height: 32px; padding: 0 7px; border: 0; border-radius: 6px; background: none;
  color: var(--body); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s; }
.pager button:hover:not(:disabled):not(.on) { background: var(--navy-soft); }
.pager button.on { background: var(--navy); color: #fff; }
.pager button:disabled { opacity: 0.35; cursor: default; }
.loading { pointer-events: none; }
.skeleton { display: grid; gap: 10px; padding: 22px 20px 26px; }
.skeleton p { margin: 0 0 4px; color: var(--sub); }
.skeleton i { display: block; height: 14px; border-radius: 4px; background: linear-gradient(90deg, #EAEEF3 0%, #F5F7FA 45%, #EAEEF3 90%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton i:nth-child(3n) { width: 82%; }
.skeleton i:nth-child(3n + 1) { width: 94%; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }

/* 아래에 고정된 엑셀 막대: 결과가 있을 때 화면 맨 아래에 늘 보인다 */
.action-bar { position: fixed; left: var(--side-w); right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -12px 28px -24px rgba(23, 59, 107, 0.7); }
.action-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--bar-h); max-width: 1760px; margin: 0 auto; padding: 0 var(--gutter); }
.action-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-width: 0; }
.action-info strong { font-size: 14px; white-space: nowrap; }
.action-info strong b { font-size: 16px; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.action-buttons { position: relative; display: flex; flex: none; align-items: center; gap: 8px; }
.option-toggle::after { content: ""; width: 6px; height: 6px; margin: 2px 0 0 2px; border: solid currentColor; border-width: 1.7px 1.7px 0 0; transform: rotate(-45deg); transition: transform .2s var(--ease); }
.option-toggle[aria-expanded=true]::after { margin-top: -3px; transform: rotate(135deg); }
.option-toggle.on { border-color: var(--teal-deep); background: var(--tint); color: var(--teal-ink); }
.export-panel { position: absolute; right: 0; bottom: calc(100% + 14px); display: grid; gap: 10px; width: 500px; padding: 16px 18px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-pop); }
.export-panel p { margin: 0; }
.export-panel .fgrid > select { flex: 0 0 220px; }

/* 상세: 오른쪽에서 들어오는 창 */
.drawer-back { position: fixed; inset: 0; z-index: 40; background: rgba(16, 30, 52, 0.38); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; display: flex; flex-direction: column; width: min(620px, 100%); overflow-y: auto; background: #fff;
  box-shadow: -22px 0 44px -28px rgba(10, 30, 60, 0.6); animation: drawer-in .24s var(--ease); }
@keyframes drawer-in { from { transform: translateX(28px); opacity: 0; } }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-head h3 { flex: 1; margin: 0; font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.drawer-body { display: grid; gap: 24px; padding: 20px 24px 40px; }
.drawer section h4 { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--navy); }
dl.kv { display: grid; grid-template-columns: 124px 1fr; margin: 0; row-gap: 8px; column-gap: 14px; }
dl.kv dt { font-size: 13px; color: var(--sub); }
dl.kv dd { margin: 0; word-break: break-all; color: var(--ink); }
.memo-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--sub); }
.log { display: grid; gap: 6px; margin-top: 8px; padding-left: 10px; border-left: 1px solid var(--line); font-size: 12px; color: var(--body); }

/* 관리자 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-strong); }
.tabs button { height: 40px; margin-bottom: -1px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--sub); font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: color .15s, border-color .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { border-bottom-color: var(--navy); color: var(--navy); font-weight: 700; }
.panel { padding: 20px 22px; }
.panel h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.panel p { margin: 8px 0 0; }
.panel ul { margin: 8px 0 0; padding-left: 20px; }
.field-title { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-items: end; gap: 12px; margin-top: 12px; }
.form-grid > .btn { justify-self: start; min-width: 120px; }
.progress { height: 8px; margin: 8px 0; overflow: hidden; border-radius: 4px; background: #E3E9F0; }
.progress > i { display: block; width: 0; height: 100%; background: var(--teal-deep); }
.secret { margin-top: 8px; padding: 10px 14px; border: 1px dashed #E0A800; border-radius: var(--radius); background: var(--warn-soft); font-family: Consolas, monospace; font-size: 16px; }

/* 모달·알림 */
.modal-back { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(16, 30, 52, 0.5); }
.modal { display: grid; gap: 12px; width: min(440px, 100%); padding: 24px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-pop); }
.modal h3 { margin: 0; font-size: 18px; color: var(--ink); }
.modal p { margin: 0; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 20px); z-index: 80; max-width: calc(100% - 32px); padding: 11px 20px; border-radius: var(--radius); background: var(--navy-deep); color: #fff;
  box-shadow: var(--shadow-pop); transform: translateX(-50%); }
.toast.bad { background: var(--error); }

/* 창을 좁게 쓸 때(PC): 화면이 넓으면 조건을 한 줄에, 좁으면 메뉴를 아이콘만 남긴다 */
@media (min-width: 1760px) {
  .fmain { grid-template-columns: minmax(0, 10fr) minmax(0, 9fr) minmax(0, 10fr) auto; grid-template-areas: "region cats query go"; }
}
@media (max-width: 1500px) {
  .more-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1180px) {
  :root { --side-w: 68px; --gutter: 20px; }
  .side { align-items: center; padding: 14px 8px; }
  .side .brand { padding: 0; }
  .side .brand .word, .side-sub, .nav-title, nav.menus button span, .who-text, .who-actions button span { display: none; }
  nav.menus { width: 100%; }
  nav.menus button { justify-content: center; padding: 0; }
  .who { width: 100%; justify-items: center; padding: 12px 0 0; }
  .who-actions { flex-direction: column; width: 100%; }
  .who-actions button { flex: none; width: 100%; }
  .login-shell { grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr); }
  .login-name { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
