/* OneByKiosk 관리자 */
:root {
  --bg: #f5f6f8; --panel: #fff; --line: #e4e7ec; --line2: #eef0f3;
  --ink: #1d2433; --ink2: #5b6576; --ink3: #8a93a3;
  --pri: #2457d6; --pri-bg: #eaf0fd; --side: #151b26; --side-ink: #aeb6c4;
  --ok: #18794e; --ok-bg: #e6f4ec; --warn: #a15c00; --warn-bg: #fdf1dc; --bad: #c4321c; --bad-bg: #fdecea;
  --r: 10px; --sh: 0 1px 2px rgba(16,24,40,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; font-size: 14px; color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--pri); text-decoration: none; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; }
h1 { font-size: 22px; margin: 2px 0 4px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 15px; margin: 0; font-weight: 700; }
h3 { font-size: 16px; margin: 0 0 12px; }
.muted { color: var(--ink2); } .small { font-size: 12.5px; } .center { text-align: center; }
.loading, .empty { padding: 48px 16px; text-align: center; color: var(--ink3); }

/* 버튼·입력 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: #f7f8fa; border-color: #d5d9e0; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.primary:hover { background: #1c47b5; }
.btn.danger { color: var(--bad); border-color: #f2c4bd; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink2); }
.btn.ghost:hover { background: #eef0f3; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.block { width: 100%; margin-top: 8px; }
.inp { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.inp { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.inp:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-bg); }
.inp:disabled { background: #f6f7f9; color: var(--ink2); }
.lbl { display: block; font-weight: 600; font-size: 13px; margin: 0 0 6px; }
.req { color: var(--bad); font-style: normal; margin-left: 2px; }
.help { color: var(--ink3); font-size: 12px; margin-top: 5px; }
.field-error { color: var(--bad); font-size: 12px; margin-top: 5px; }
.has-error .inp { border-color: var(--bad); }

/* 배지 */
.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef0f3; color: var(--ink2); vertical-align: middle; }
.b-ok { background: var(--ok-bg); color: var(--ok); } .b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); } .b-muted { background: #f1f2f4; color: var(--ink3); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c5cad3; margin-right: 6px; vertical-align: middle; }
.dot.on { background: #2ca66b; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 8px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 12px; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--pri); font-size: 13px; }
.tagbox { display: flex; flex-wrap: wrap; gap: 8px; min-height: 38px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: text; transition: border-color .15s, box-shadow .15s; }
.tagbox:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-bg); }
.tagbox.ro { background: #f6f7f9; cursor: default; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #f6f7f9; font-size: 14px; color: var(--ink); }
.tag button { width: 20px; height: 20px; border: 0; border-radius: 4px; background: none; color: var(--ink2); font-size: 15px; line-height: 1; cursor: pointer; }
.tag button:hover { background: #e7e9ee; color: var(--ink); }
.tagbox.ro .tag button { display: none; }
.tag-in { flex: 1; min-width: 160px; height: 30px; border: 0; outline: none; background: none; font: inherit; color: var(--ink); }
.tag-in::placeholder { color: var(--ink3); }
.has-error .tagbox { border-color: var(--bad); }

/* 로그인 */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #eef2fb 0%, #f5f6f8 60%); }
.auth-card { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; box-shadow: 0 12px 32px rgba(16,24,40,.08); }
.auth-card .lbl { margin-top: 14px; }
.auth-card h2 { font-size: 18px; margin-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { display: block; font-size: 15px; letter-spacing: -.01em; }
.brand small { color: var(--ink3); font-size: 12px; }
.brand.big { margin-bottom: 16px; } .brand.big b { font-size: 18px; color: var(--ink); }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--pri); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.notice { background: var(--pri-bg); color: #1b3f9a; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 8px 0; }
.demo { margin-top: 18px; font-size: 12.5px; color: var(--ink2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 6px; background: #f8f9fb; }
.demo-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 4px; }
.demo-h b { color: var(--ink); font-size: 13px; }
.demo-h span { color: var(--ink3); font-size: 12px; }
.demo tr[data-demo] { cursor: pointer; }
.demo tr[data-demo]:hover td, .demo tr[data-demo]:focus td { background: var(--pri-bg); }
.demo tr[data-demo]:focus { outline: none; }
.mini { width: 100%; border-collapse: collapse; margin-top: 8px; }
.mini td { padding: 4px 6px; border-top: 1px solid var(--line2); }

/* 레이아웃 */
.layout { display: flex; min-height: 100vh; }
.side { width: 232px; flex: none; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.side .brand { padding: 20px 18px 16px; flex: none; }
.side .brand b { color: #fff; } .side .brand small { color: #7f8899; }
.side nav { padding: 4px 10px 16px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: transparent transparent; }
.side nav:hover { scrollbar-color: rgba(255,255,255,.22) transparent; }
.side nav::-webkit-scrollbar { width: 6px; }
.side nav::-webkit-scrollbar-track { background: transparent; }
.side nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.side nav:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); }
.side nav::-webkit-scrollbar-button { display: none; height: 0; }
.nav-g { margin-bottom: 14px; }
.nav-t { font-size: 11.5px; color: #6f7888; padding: 6px 10px; font-weight: 600; letter-spacing: .02em; }
.side nav a { display: block; padding: 8px 10px; border-radius: 7px; color: var(--side-ink); font-weight: 500; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a.on { background: rgba(80,130,255,.18); color: #fff; }
.mock-note { flex: none; margin: 0 12px 14px; padding: 8px 10px; border-radius: 7px; background: rgba(255,190,70,.12); color: #f0c46c; font-size: 11.5px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.menu-btn { display: none; }
.site-pick { display: flex; align-items: center; gap: 8px; }
.site-pick span { font-size: 12.5px; color: var(--ink3); white-space: nowrap; }
.site-pick select { height: 36px; min-width: 220px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-weight: 600; background: #fff; }
.site-one { font-weight: 700; }
.me { margin-left: auto; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.content { padding: 24px; max-width: 1240px; width: 100%; }
.narrow { max-width: 420px; }
.narrow .auth-card { box-shadow: none; }

.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h p { margin: 0; }
.page-h > div:first-child { flex: 1 1 320px; min-width: 0; }
.page-h > .btn, .page-h > .row-btns { flex: none; }
.row-btns { display: flex; gap: 8px; align-items: center; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px 20px; margin-bottom: 16px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

/* 필터·표 */
.filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filters .inp { width: auto; min-width: 160px; }
.tbl-wrap { overflow-x: auto; margin: -4px -20px; padding: 0 20px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--ink3); font-weight: 600; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr[data-href] { cursor: pointer; }
.tbl tr[data-href]:hover td { background: #f8f9fb; }
.tbl .acts { text-align: right; white-space: nowrap; }
.tbl .acts .btn + .btn { margin-left: 4px; }
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line2); }
.pager .pg-nums { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pager .pg-nums .btn { min-width: 34px; justify-content: center; }
.pager .pg-nums .btn[disabled] { opacity: .4; cursor: default; }
.pager .pg-size { width: auto; height: 32px; padding: 0 28px 0 10px; font-size: 13px; }
.pager-panel { padding: 0 20px 12px; margin-top: 16px; }
.pager-panel .pager { border-top: 0; }
@media (max-width: 640px) { .pager { justify-content: center; } .pager > .muted { flex: 1 1 100%; text-align: center; } }

/* 폼 */
.form .grid, .tr-form .grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }  /* 모든 입력 화면: 한 줄에 항목 하나 */
.fld.wide { grid-column: 1 / -1; }
.form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line2); }
.form-foot > div { display: flex; gap: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 8px 0; }
.checks label, .chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chk { margin-top: 12px; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d0d5dd; border-radius: 99px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--pri); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--pri-bg); }
.media-pick { display: flex; gap: 12px; align-items: flex-start; }
.media-pick > div:last-child { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.thumb { width: 96px; height: 64px; border-radius: 8px; border: 1px solid var(--line); background: #f6f7f9; display: grid; place-items: center; overflow: hidden; flex: none; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.upl { cursor: pointer; }

/* 탭 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 9px 14px; font: inherit; font-weight: 600; color: var(--ink2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--pri); border-bottom-color: var(--pri); }

/* 미디어 */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mcard { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.mcard img, .mcard video { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #f1f2f4; }
.mcard figcaption { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.mcard figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mcard small { color: var(--ink3); }
.mcard .acts { display: flex; gap: 6px; }
.mcard .btn { align-self: flex-start; }

/* 명세 */
.ep { border: 1px solid var(--line2); border-radius: 8px; margin-bottom: 6px; }
.ep summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.ep summary::-webkit-details-marker { display: none; }
.ep summary:hover { background: #f8f9fb; }
.ep .m { min-width: 58px; text-align: center; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: #eef0f3; color: var(--ink2); }
.ep .m.get { background: #e5f0ff; color: #1a56c4; } .ep .m.post { background: var(--ok-bg); color: var(--ok); }
.ep .m.patch, .ep .m.put { background: var(--warn-bg); color: var(--warn); } .ep .m.delete { background: var(--bad-bg); color: var(--bad); }
.ep .d { color: var(--ink2); font-size: 13px; }
.ep-body { padding: 4px 14px 12px; border-top: 1px solid var(--line2); }
pre { background: #0f1520; color: #d6deeb; border-radius: 8px; padding: 12px 14px; overflow-x: auto; font-size: 12.5px; line-height: 1.55; margin: 6px 0 10px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.two pre { max-width: 100%; overflow-x: auto; }
.list { margin: 0; padding-left: 20px; } .list li { margin: 4px 0; }
.checklist { list-style: none; padding: 0; margin: 0; } .checklist li { padding: 6px 0; border-bottom: 1px solid var(--line2); }

/* 모달·토스트 */
.modal-bg { position: fixed; inset: 0; background: rgba(15,21,32,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 440px; padding: 22px; box-shadow: 0 20px 48px rgba(0,0,0,.2); }
.modal-body p { margin: 0 0 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: #1d2433; color: #fff; padding: 11px 16px; border-radius: 9px; font-weight: 500; box-shadow: 0 8px 20px rgba(0,0,0,.18); opacity: 0; transform: translateY(8px); transition: .25s; max-width: 360px; }
.toast.show { opacity: 1; transform: none; }
.toast.ok { background: #136c45; } .toast.bad { background: #b42d19; }

/* 모바일 */
@media (max-width: 860px) {
  .side { position: fixed; left: -240px; z-index: 40; transition: left .2s; }
  .side.open { left: 0; box-shadow: 8px 0 24px rgba(0,0,0,.25); }
  .menu-btn { display: inline-flex; }
  .top { padding: 0 12px; gap: 8px; }
  .site-pick span, .me > span, .me .badge, .me a { display: none; }
  .site-pick select { min-width: 0; max-width: 52vw; }
  .content { padding: 16px; }
  .form .grid, .tr-form .grid, .two { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 본문 에디터 (Summernote lite) ---------- */
.note-editor.note-frame { border: 1px solid var(--line) !important; border-radius: 8px; box-shadow: none; }
.note-editor .note-toolbar { background: #f7f8fa; border-bottom: 1px solid var(--line); padding: 8px 10px 4px; border-radius: 8px 8px 0 0; }
.note-editor .note-toolbar .note-btn-group { margin: 0 6px 4px 0; padding-right: 6px; border-right: 1px solid #e3e6ea; }
.note-editor .note-toolbar .note-btn-group:last-child { border-right: 0; }
.note-editor .note-btn:not(.note-color-btn) { border: 0 !important; background: transparent !important; color: #3a4252; font-size: 14px; height: 30px; padding: 0 8px; border-radius: 6px; font-family: inherit; }
.note-editor .note-btn:not(.note-color-btn):hover, .note-editor .note-btn:not(.note-color-btn).active { background: #e9ecf1 !important; }
.note-editor .note-editing-area .note-editable { font-family: Pretendard, "Malgun Gothic", sans-serif; font-size: 16px; line-height: 1.75; padding: 20px 24px; color: #222; }
.note-editable figure.obk-photo { display: block; }
.note-editable figure.obk-photo img { border-radius: 2px; }
.note-editable::after { content: ""; display: block; clear: both; }
.note-editor .note-statusbar { border-top: 1px solid var(--line2); background: #fafbfc; border-radius: 0 0 8px 8px; }
.note-modal .note-modal-content { border-radius: 12px; }
.note-dropdown-menu { border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.12); }

/* 첨부 사진 목록 */
.ps-th { position: relative; width: 150px; height: 100px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #eef0f3; }
.ps-th img, .ps-th video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-badge { position: absolute; left: 6px; top: 6px; background: var(--pri); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.ps-in { position: absolute; right: 6px; top: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.ps-acts { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.ps-acts .btn.sm { height: 26px; padding: 0 8px; font-size: 12px; }

/* 사진추가 대화상자 */
.modal.photo-dlg { max-width: 760px; padding: 0; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.dlg-h { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.dlg-h h3 { margin: 0; font-size: 18px; }
.dlg-h .x { border: 0; background: none; font-size: 30px; line-height: 1; color: #666; cursor: pointer; padding: 0 4px; }
.dlg-b { padding: 8px 28px 16px; overflow-y: auto; }
.dlg-b hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.dlg-f { display: flex; justify-content: flex-end; padding: 16px 28px; border-top: 1px solid var(--line); }
.btn.lg { height: 44px; padding: 0 28px; font-size: 15px; }
.prow { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; padding: 10px 0; }
.pl { font-weight: 700; font-size: 15px; padding-top: 8px; }
.pl small { font-weight: 400; color: var(--ink2); font-size: 12px; margin-left: 2px; }
.filebox { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; height: 44px; }
.fb-btn { background: #eef0f3; padding: 0 16px; display: flex; align-items: center; border-right: 1px solid var(--line); font-weight: 500; white-space: nowrap; }
.fb-name { padding: 0 14px; display: flex; align-items: center; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-prev { margin-top: 10px; display: flex; align-items: flex-end; gap: 10px; }
.pd-prev img { max-width: 220px; max-height: 120px; border-radius: 6px; border: 1px solid var(--line); }
.pd-prev span { color: var(--ink3); font-size: 12px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 2px; background: #fff; }
.seg button { border: 0; background: none; height: 36px; min-width: 44px; padding: 0 12px; border-radius: 6px; font: inherit; color: var(--ink2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.seg button:hover { background: #f1f3f5; }
.seg button.on { background: #6b7380; color: #fff; }
.seg.icons button { padding: 0 10px; }
.seg.wide { display: flex; margin-bottom: 8px; }

/* 도메인 */
.setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.dom-add { display: grid; grid-template-columns: 220px 1fr auto auto; gap: 12px; align-items: end; }
.dom-opts { display: flex; flex-direction: column; gap: 2px; padding-bottom: 4px; }
.dom-opts .chk { margin-top: 0; font-size: 13px; }
.bad-t { color: var(--bad); margin-top: 3px; }
.guide .rec { margin: 8px 0 14px; border: 1px solid var(--line); border-radius: 8px; }
.guide .rec th { background: #f7f8fa; }
.steps { margin: 0; padding-left: 20px; } .steps li { margin: 6px 0; }
.modal:has(.guide) { max-width: 620px; }
@media (max-width: 860px) {
  .dom-add { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 1fr; gap: 6px; }
  .dlg-b, .dlg-h, .dlg-f { padding-left: 16px; padding-right: 16px; }
}
.empty .btn { margin-top: 8px; }

/* 첨부: 사진·동영상·문서 */
.vid-item { width: 260px; }
.vid-item video { width: 260px; height: 146px; background: #000; border-radius: 8px; display: block; }
.vid-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; }
.vid-meta span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.vid-meta small { color: var(--ink3); white-space: nowrap; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line2); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list a { flex: 1; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-list small { color: var(--ink3); }
.ficon { display: inline-grid; place-items: center; min-width: 40px; height: 22px; padding: 0 6px; border-radius: 5px; background: #eef2fb; color: #2457d6; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }

/* 본문 에디터 + 오른쪽 첨부 미디어 */
/* 미디어 모아보기 */
.mcard .doc-thumb { aspect-ratio: 16/10; display: grid; place-items: center; background: #f4f6fa; }
.mcard .doc-thumb .ficon { font-size: 14px; height: 34px; min-width: 64px; }
.mcard .mname { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .used { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.mcard .used a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters .chk { margin: 0 4px; font-size: 13px; }

/* 행사 달력 */
.cal { padding: 16px 18px; }
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav h2 { font-size: 18px; min-width: 116px; text-align: center; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.lg { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); font-size: 12.5px; }
.lg::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.lg.off { color: var(--ink3); text-decoration: line-through; }
.lg.off::before { background: #d0d5dd; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-wd { padding: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8f9fb; text-align: center; }
.cal-wd.sun, .cal-day.sun .dn { color: #d33; } .cal-wd.sat, .cal-day.sat .dn { color: #2457d6; }
.cal-day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.cal-day:hover { background: #fafbff; }
.cal-day.other { background: #fbfbfc; } .cal-day.other .dn { opacity: .45; }
.cal-day .dn { font-size: 12.5px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .dn { background: var(--pri); color: #fff !important; }
.ev { display: block; width: 100%; text-align: left; border: 0; background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--ink); font: inherit; font-size: 12px; padding: 2px 6px; border-radius: 4px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev:hover { background: color-mix(in srgb, var(--c) 18%, #fff); }
.ev-t { color: var(--c); font-weight: 700; margin-right: 4px; }
.ev-t:empty { display: none; }
.ev-more { border: 0; background: none; color: var(--ink2); font: inherit; font-size: 12px; text-align: left; padding: 0 4px; cursor: pointer; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line2); cursor: pointer; flex-wrap: wrap; }
.agenda li:hover { background: #f8f9fb; }
.agenda li:last-child { border-bottom: 0; }
.agenda .dot { margin: 0; }
.ag-d { font-variant-numeric: tabular-nums; min-width: 92px; font-weight: 600; }
.ag-tm { color: var(--ink2); font-size: 12.5px; min-width: 40px; }
.modal.ev-dlg { max-width: 520px; padding: 0; display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.ev-dlg .dlg-b { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.ev-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ev-dlg .chk { margin: 0; }
.dt { display: flex; gap: 6px; } .dt .tm { width: 112px; flex: none; }
.ev-f { justify-content: space-between; } .ev-f > div { display: flex; gap: 8px; }
@media (max-width: 860px) {
  .cal-day { min-height: 64px; padding: 3px; }
  .ev { font-size: 0; padding: 0; height: 6px; border-left-width: 0; background: var(--c); }
  .ev-more { font-size: 10.5px; }
  .ev-row { grid-template-columns: 1fr; }
}
.ev-when { grid-template-columns: 1fr; }
.ev-when .dt .inp:first-child { flex: 1; }
.modal.ev-dlg { max-width: 760px; }
.ev-dlg .note-editor .note-editing-area .note-editable { font-size: 15px; padding: 12px 16px; }
.modal-bg:has(.photo-dlg) { z-index: 60; }
.tbl-wrap.prev { margin: 8px 0; max-height: 260px; overflow: auto; }
.tbl-wrap.prev .tbl td, .tbl-wrap.prev .tbl th { padding: 6px 8px; font-size: 13px; }
.modal:has(.prev) { max-width: 620px; }
.page-h .row-btns + .btn { margin-left: 8px; }

/* 담당자 */
.who { display: flex; align-items: center; gap: 10px; }
.who img, .who .ph { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.who .ph { display: grid; place-items: center; background: var(--pri-bg); color: var(--pri); font-weight: 700; }

.sched { color: var(--warn); font-weight: 600; }
.avatar-pick { display: flex; gap: 16px; align-items: center; }
.avatar { width: 96px; height: 96px; flex: none; border-radius: 50%; overflow: hidden; background: #f1f2f4; border: 1px solid var(--line); display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { font-size: 12px; color: var(--ink3); }
.avatar-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.avatar-btns .help { flex-basis: 100%; margin: 0; }
details.more { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--ink2); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.more > summary::before { content: '▸'; transition: transform .15s; }
details.more[open] > summary::before { transform: rotate(90deg); }
details.more > .grid { margin-top: 16px; }
.ps-cap { height: 30px; margin-top: 6px; font-size: 12px; padding: 0 8px; }
.kv { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.kv-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 6px; width: 100%; }
.ps-no { position: absolute; right: 6px; bottom: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: rgba(17,24,39,.75); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; z-index: 1; }
.vid-item { position: relative; }
.vid-item > .ps-no { top: 6px; bottom: auto; left: 6px; right: auto; }
.dash-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.dash-info .sep { margin: 0 8px; color: var(--line); }
.dash-2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-2 > .panel { margin: 0; }
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 14px; }
.nums > * { padding: 10px 12px; border-radius: 10px; background: #f6f7f9; color: var(--ink); }
.nums b { display: block; font-size: 22px; font-weight: 700; } .nums b.bad { color: var(--bad); }
.nums span { font-size: 12.5px; color: var(--ink2); }
h3.sub { font-size: 13px; margin: 6px 0 8px; color: var(--ink2); font-weight: 600; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar { display: grid; grid-template-columns: 140px minmax(0, 1fr) 40px; gap: 10px; align-items: center; color: var(--ink); font-size: 13px; padding: 2px 0; }
.bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-t { height: 8px; border-radius: 4px; background: #eef0f3; overflow: hidden; } .bar-t i { display: block; height: 100%; background: var(--pri); border-radius: 4px; min-width: 2px; }
.bar-n { text-align: right; font-weight: 600; } .bar-n.zero { color: var(--ink3); font-weight: 400; }
.bar:hover .bar-l { color: var(--pri); }
.dash-foot { margin: 12px 0 0; }
tr[data-site] { cursor: pointer; } tr[data-site].on td { background: var(--pri-bg); }
@media (max-width: 1000px) { .dash-2 { grid-template-columns: 1fr; } .bar { grid-template-columns: 100px minmax(0, 1fr) 32px; } }
.badge { white-space: nowrap; }
.dash-2 .tbl td.muted { white-space: nowrap; }
.seg { display: inline-flex; gap: 4px; }
.ga-steps { margin: 8px 0 12px; padding-left: 20px; color: var(--ink2); font-size: 13px; } .ga-steps li.done { color: var(--ok); }
.spark { position: relative; margin: 4px 0 14px; }
.spark svg { width: 100%; height: 120px; display: block; }
.spark-line { fill: none; stroke: var(--pri); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark-area { fill: var(--pri-bg); stroke: none; }
.spark-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark-x { stroke: var(--ink3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.spark-dot { fill: var(--pri); stroke: #fff; stroke-width: 2; }
.spark-tip { position: absolute; top: -6px; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; pointer-events: none; white-space: nowrap; }
.spark-ax { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink3); margin-top: 4px; }
.ga-2 { gap: 24px; } .ga-2 .bar { grid-template-columns: minmax(0, 1fr) 90px 48px; }
.btn.kakao { display: flex; width: 100%; height: 46px; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; background: #FEE500; border-color: #FEE500; color: #191919; font-weight: 600; }
.btn.kakao:hover { background: #f5dc00; border-color: #f5dc00; }
.btn.kakao[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.dash-2 { margin-bottom: 16px; }
.btn.excel { background: #1d7a46; border-color: #1d7a46; color: #fff; margin-right: auto; }
.btn.excel:hover { background: #17663a; border-color: #17663a; }
.note-tooltip-content { white-space: nowrap; }
.ppick-i { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; font: inherit; color: var(--ink); }
.ppick-i:hover { background: var(--pri-bg); }
.ppick-none { padding: 10px; }
.rel-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rel-list li { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; }
.rel-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-empty { margin: 6px 0 0; }

/* 목록 형태 선택 카드 */
.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.rcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.rcard:hover { border-color: #b8c2d6; }
.rcard input { position: absolute; opacity: 0; pointer-events: none; }
.rcard b { font-size: 14px; margin-top: 4px; }
.rcard .rc-d { font-size: 12px; color: var(--ink2); line-height: 1.45; }
.rcard:has(input:checked) { border-color: var(--pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri) 15%, transparent); }
.rcard:has(input:checked)::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--pri); color: #fff; font-size: 12px; display: grid; place-items: center; }
.rcard:has(input:focus-visible) { outline: 2px solid var(--pri); outline-offset: 2px; }
.rcard:has(input:disabled) { cursor: default; opacity: .7; }
.pv { display: flex; flex-direction: column; gap: 6px; height: 92px; padding: 10px; border-radius: 8px; background: #f5f7fb; overflow: hidden; }
.pv i { display: block; }
.pv-l { height: 6px; border-radius: 3px; background: #cfd6e3; }
.pv-l.b { height: 7px; background: #8e9ab0; }
.pv-text .pv-row { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid #e2e7f0; }
.pv-text .pv-row:last-child { border-bottom: 0; }
.pv-text .pv-date { width: 18%; height: 5px; border-radius: 3px; background: #dfe4ec; margin-left: auto; }
.pv-gal { gap: 8px; }
.pv-gal .pv-row { display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 6px; padding: 5px 6px; }
.pv-gal .pv-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pv-gal .pv-img { width: 40px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, #a9c3ef, #6f95d8); flex: none; }
.pv-card { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pv-card .pv-c { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 6px; padding: 4px; }
.pv-card .pv-img { height: 22px; border-radius: 4px; background: linear-gradient(135deg, #a9c3ef, #6f95d8); }
@media (max-width: 720px) { .rcards { grid-template-columns: 1fr; } }
/* 카테고리 트리 목록 */
.cat-name { display: inline-flex; align-items: center; gap: 6px; }
.cat-name.d2 { padding-left: 22px; } .cat-name.d3 { padding-left: 44px; }
.cat-branch { color: var(--ink3); font-style: normal; }
.cat-memo { margin-top: 2px; max-width: 520px; white-space: pre-line; } .cat-memo.d2 { padding-left: 22px; } .cat-memo.d3 { padding-left: 44px; }
/* 저장 공간 */
.storage .st-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.storage .st-row b { font-size: 20px; }
.storage .st-pct { margin-left: auto; font-weight: 600; }
.storage .st-pct.ok { color: var(--ink2); } .storage .st-pct.warn { color: var(--warn); } .storage .st-pct.bad { color: var(--bad); }
.st-bar { height: 10px; border-radius: 6px; background: var(--line2); overflow: hidden; margin-bottom: 8px; }
.st-bar i { display: block; height: 100%; background: var(--pri); border-radius: 6px; }
.st-bar.warn i { background: #e0a100; } .st-bar.bad i { background: var(--bad); }
/* 글이 들어온 곳 */
.bars + .sub { margin-top: 20px; }

/* 에디터 색: 팔레트 + 색 코드 입력 */
.note-color .note-color-btn { width: 20px; height: 20px; padding: 0; border: 1px solid #fff !important; border-radius: 0; cursor: pointer; }
.note-color .note-color-btn:hover { transform: scale(1.15); border-color: #333 !important; }
.hex-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line2); }
.hex-in { flex: 1; min-width: 0; height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font: 13px ui-monospace, Consolas, monospace; }
.hex-in.bad { border-color: var(--bad); }
.hex-sw { width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--line); flex: none; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 50%/10px 10px; }
.hex-ok { height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--pri); color: #fff; font: inherit; font-size: 12.5px; cursor: pointer; }
/* 링크 넣기 창 */
.note-modal .note-modal-content { border-radius: 12px; border: 0; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.note-modal .note-modal-header { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.note-modal .note-modal-title { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0; }
.note-modal .note-modal-header .close { font-size: 26px; color: var(--ink3); opacity: 1; border: 0; background: none; cursor: pointer; }
.note-modal .note-modal-body { padding: 16px 22px 6px; }
.note-modal .note-form-group { padding-bottom: 14px; }
.note-modal .note-form-label { font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; padding: 0; }
.note-modal .note-input, .note-modal .note-form-control { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 14px; }
.note-modal .note-input:focus { outline: 2px solid var(--pri-bg); border-color: var(--pri); }
.note-modal .checkbox label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink2); }
.note-modal .sn-checkbox-use-protocol { display: none; }
.note-modal .note-modal-footer { padding: 12px 22px 18px; height: auto; text-align: right; }
.note-modal .note-modal-footer .note-btn { height: 38px; padding: 0 18px; border-radius: 8px; border: 0; background: var(--pri); color: #fff; font: inherit; font-weight: 600; cursor: pointer; float: none; }
.note-modal .note-modal-footer .note-btn:disabled { opacity: .45; cursor: default; }
/* 스타일 (사용자 화면 CSS 에도 같은 이름으로 넣는다) */
.note-editable h2 { font-size: 24px; margin: 24px 0 10px; } .note-editable h3 { font-size: 20px; margin: 20px 0 8px; } .note-editable h4 { font-size: 17px; margin: 16px 0 6px; }
.note-editable blockquote { margin: 12px 0; padding: 8px 16px; border-left: 4px solid #cfd6e3; color: #555; }
.obk-box { margin: 12px 0; padding: 14px 18px; border-radius: 8px; background: #f3f6fc; border: 1px solid #dbe4f5; }
.obk-note { margin: 12px 0; padding: 12px 16px; border-radius: 8px; background: #fff8e6; border: 1px solid #f3dfa8; }
.obk-small { font-size: 13px; color: #666; }
.note-editable pre { background: #f6f7f9; padding: 12px 14px; border-radius: 6px; font-size: 13px; white-space: pre-wrap; }
.note-style .note-dropdown-menu { min-width: 200px; max-height: 420px; overflow-y: auto; }
.note-style .note-dropdown-item h2, .note-style .note-dropdown-item h3, .note-style .note-dropdown-item h4 { margin: 0; }
/* 연결 게시글 고르기: 최근 글 목록 + 페이지 */
.ppick-i { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ppick-i .ppick-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ppick-i .muted { flex: none; }
.ppick-pg { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 2px; border-top: 1px solid var(--line2); margin-top: 4px; }

/* 첨부: 에디터 아래 한 칸. 사진 · 동영상(유튜브) · 문서 · 연결 게시글 */
.att-box { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.att-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.att-head h3 { margin: 0; font-size: 15px; }
.att-sec, .att-rel { padding: 14px 18px; border-bottom: 1px solid var(--line2); }
.att-rel { border-bottom: 0; }
.att-sec.drag { background: var(--pri-bg); outline: 2px dashed var(--pri); outline-offset: -6px; }
.att-sh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.att-sh > b { font-size: 14px; margin-right: 4px; }
.att-sh > .btn, .att-sh > label.btn { margin-left: auto; cursor: pointer; }
.att-empty { margin: 0; padding: 14px; border: 1px dashed #d6dbe3; border-radius: 8px; text-align: center; color: var(--ink3); font-size: 13px; background: #fff; }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.att-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.att-card .ps-th { width: 100%; height: 120px; }
.att-card.is-cover .ps-th { border-color: var(--pri); }
.att-card .ps-th video { background: #000; }
.att-card .ps-acts .btn.sm { height: 26px; padding: 0 8px; font-size: 12px; }
.att-x { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; padding: 0; border-radius: 50%; background: rgba(0,0,0,.55) !important; color: #fff !important; font-size: 15px; line-height: 1; }
.att-card .ps-in { right: auto; left: 6px; top: auto; bottom: 6px; }
.vid-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 13px; min-width: 0; }
.vid-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid-meta small { color: var(--ink3); }
.yt-mark { position: absolute; left: 6px; bottom: 6px; background: #e62117; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; }
.yt-add { display: flex; gap: 6px; flex: 1 1 320px; margin-left: auto; max-width: 520px; }
.yt-add .inp { height: 32px; }
.att-opt { font-size: 12.5px; color: var(--pri); cursor: pointer; white-space: nowrap; }
.att-opt:hover { text-decoration: underline; }
.rpick .rel-list { margin-top: 0; }
.ev-rel .rpick { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
/* 연결 게시글 고르기 창 */
.relpick-bg { z-index: 1200; }
.modal.relpick { max-width: 560px; padding: 0; display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.relpick .dlg-b { padding: 16px 22px; overflow-y: auto; }
.relpick .ppick-list { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.relpick .ppick-i { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; }
.relpick .ppick-i .ck { width: 20px; height: 20px; flex: none; border: 1.5px solid #c3cad6; border-radius: 5px; display: grid; place-items: center; font-size: 13px; color: #fff; }
.relpick .ppick-i.on { background: var(--pri-bg); }
.relpick .ppick-i.on .ck { background: var(--pri); border-color: var(--pri); }
.relpick .ppick-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relpick .dlg-f { justify-content: space-between; align-items: center; }
/* 키워드 */
.tagwrap { position: relative; }
.tag-n { margin-left: auto; align-self: center; font-size: 12px; color: var(--ink3); padding: 0 4px; }
.tag-sug { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.1); padding: 4px; max-height: 260px; overflow-y: auto; }
.tag-opt { display: flex; justify-content: space-between; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 6px; font: inherit; text-align: left; cursor: pointer; }
.tag-opt.on, .tag-opt:hover { background: var(--pri-bg); }
.sel-q { margin-bottom: 6px; }
select.sel-open { height: auto; padding: 4px; }
select.sel-open option { padding: 6px 8px; }

/* 모바일: 표는 한 줄씩 카드로 쌓는다 (칸 이름은 왼쪽 작은 글씨) */
@media (max-width: 640px) {
  .tbl-wrap { margin: 0; padding: 0; overflow: visible; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: auto; }
  .tbl tr { padding: 12px 0; border-bottom: 1px solid var(--line2); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl td, .tbl tbody tr:last-child td { position: relative; padding: 3px 0 3px 92px; border: 0; min-height: 24px; overflow-wrap: anywhere; text-align: left; white-space: normal; }
  .tbl td::before { content: attr(data-l); position: absolute; left: 0; top: 5px; width: 84px; color: var(--ink3); font-size: 12px; line-height: 1.35; }
  .tbl td[data-l=""], .tbl.nohead td { padding-left: 0; }
  .tbl td[data-l=""]::before, .tbl.nohead td::before { display: none; }
  .tbl .acts { padding-top: 8px; text-align: left; }
  .tbl .acts .btn { margin: 0 6px 4px 0; }
  .tbl .acts .btn + .btn { margin-left: 0; }
  .tbl tr[data-href]:hover td { background: none; }
  .tbl tr.on td, .tbl tr.cur td { background: none; }
  .dash-2 .tbl td.muted { white-space: normal; }
  .panel { padding: 16px; }
  .page-h { flex-wrap: wrap; gap: 8px; }
  .row-btns { flex-wrap: wrap; }
  .page-h > .row-btns { flex: 1 1 100%; }
  pre { max-width: 100%; overflow-x: auto; }
  .ep summary code { overflow-wrap: anywhere; word-break: break-all; min-width: 0; }
  .note-editor .note-editable { height: 460px !important; }
  .row-btns > .inp { flex: 1 1 180px; min-width: 0; }
  .filters { flex-wrap: wrap; }
  .filters .inp { flex: 1 1 140px; min-width: 0; max-width: none; }
  .modal { width: calc(100vw - 24px); max-width: none; }
}

/* 방문 통계: GA 연결 전 예시 화면 안내 */
.ga-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; background: #fff8e6; border: 1px solid #f3dca4; color: #6b4a00; border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; font-size: 13px; }
.ga-ex .ga-steps-i { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; color: #8a6a1f; }
.ga-ex .ga-steps-i .done { color: #18794e; }
.ga-ex .btn { margin-left: auto; }
#gaPanel.is-ex .nums b, #gaPanel.is-ex .spark, #gaPanel.is-ex .bars { opacity: .55; }

/* 대표 이미지: 사진 한 장 등록 (칸을 눌러도 올라감) */
.photo-pick { align-items: center; }
.photo-pick .thumb { width: 160px; height: 110px; }
.photo-pick .thumb.can-up { cursor: pointer; border-style: dashed; transition: border-color .15s, background .15s; }
.photo-pick .thumb.can-up:hover { border-color: var(--pri); background: var(--pri-bg); }
.photo-pick .avatar-btns { flex: 1; }
.btn[hidden] { display: none !important; }
.pv-gal { gap: 6px; }
.pv-gal .pv-txt { gap: 3px; }
.pv-gal .pv-row { padding: 6px; }
.pv-gal .pv-img { height: 24px; }

/* API 키 전체 보기 */
.kfull { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kfull code { word-break: break-all; font-size: 12.5px; }
/* 파일 올리기 진행 상자 (오른쪽 아래) */
#upq { position: fixed; right: 20px; bottom: 20px; width: 340px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.18); z-index: 70; overflow: hidden; }
.upq-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f8f9fb; border-bottom: 1px solid var(--line2); }
.upq-h b { font-size: 13.5px; } .upq-n { color: var(--ink3); font-size: 12px; flex: 1; }
.upq-x, .upq-rm { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--ink3); cursor: pointer; padding: 0 4px; }
.upq-list { max-height: 260px; overflow: auto; padding: 4px 12px 8px; }
.upq-i { padding: 8px 0; border-bottom: 1px solid var(--line2); } .upq-i:last-child { border-bottom: 0; }
.upq-t { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.upq-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upq-sz { color: var(--ink3); font-size: 12px; white-space: nowrap; }
.upq-bar { height: 6px; border-radius: 3px; background: #e9edf3; margin: 6px 0 4px; overflow: hidden; position: relative; }
.upq-bar i { display: block; height: 100%; width: 0; background: var(--pri); border-radius: 3px; transition: width .15s; }
.upq-bar.busy i { width: 35% !important; animation: upq-busy 1.1s ease-in-out infinite; }
@keyframes upq-busy { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.upq-s { font-size: 12px; color: var(--ink2); }
.upq-i.ok .upq-bar i { background: #18794e; } .upq-i.ok .upq-s { color: #18794e; }
.upq-i.bad .upq-bar i { background: #b42d19; width: 100%; } .upq-i.bad .upq-s { color: #b42d19; }
@media (max-width: 640px) { #upq { right: 12px; bottom: 12px; } }
body:has(#upq) #toasts { bottom: 330px; }
