:root {
  --bg: #ffffff;
  --side: #f7f7f5;
  --hover: #efefed;
  --line: #e9e9e7;
  --text: #37352f;
  --muted: #787774;
  --faint: #a5a5a2;
  --accent: #2383e2;
  --danger: #d44c47;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(15, 15, 15, .06), 0 4px 16px rgba(15, 15, 15, .06);

  --pill-gray: #ebeced;    --pill-gray-t: #555;
  --pill-yellow: #fbf3db;  --pill-yellow-t: #8a6316;
  --pill-green: #dbeddb;   --pill-green-t: #2b6a3d;
  --pill-red: #ffe2dd;     --pill-red-t: #a3342f;
  --pill-blue: #d3e5ef;    --pill-blue-t: #1f5c80;
  --pill-purple: #e8deee;  --pill-purple-t: #5f3a7a;
  --pill-orange: #fadec9;  --pill-orange-t: #8a4b14;
  --pill-pink: #f5e0e9;    --pill-pink-t: #8c2f5d;
  --pill-brown: #eee0da;   --pill-brown-t: #6b4433;
  --pill-teal: #d6ecea;    --pill-teal-t: #1d6660;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
.boot { padding: 40vh 0 0; text-align: center; color: var(--muted); }

/* ── 로그인 ─────────────────────────────── */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--side); }
.login-card { width: 100%; max-width: 360px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 32px 28px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 22px; margin: 0 0 4px; }
.login-card p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; outline: none; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35, 131, 226, .15); }
.btn { height: 40px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; font-size: 14px; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #1b74cb; }
.btn.block { width: 100%; height: 44px; margin-top: 6px; }
.btn:disabled { opacity: .5; cursor: default; }
.msg-error { color: var(--danger); font-size: 13px; min-height: 20px; margin: 4px 0 0; }

/* ── 뼈대 ─────────────────────────────── */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 10px 8px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.ws { display: flex; align-items: center; gap: 8px; padding: 6px 8px 12px; font-weight: 600; }
.ws-logo { width: 22px; height: 22px; border-radius: 5px; background: #191919; color: #fff; display: grid; place-items: center; font-size: 12px; }
.nav-label { font-size: 12px; color: var(--faint); font-weight: 600; padding: 14px 10px 4px; }
.nav a, .nav button.nav-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 10px; border-radius: var(--radius); text-decoration: none; color: var(--text); font-size: 14px; border: 0; background: none; text-align: left; min-height: 30px; }
.nav a:hover, .nav button.nav-item:hover { background: var(--hover); }
.nav a.on { background: var(--hover); font-weight: 600; }
.nav .sub a { padding-left: 34px; color: var(--muted); font-size: 14px; }
.nav .sub a.on { color: var(--text); }
.nav .ico { width: 20px; text-align: center; flex: none; }
.nav .badge { margin-left: auto; }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.me { padding: 6px 10px; font-size: 13px; color: var(--muted); }
.me b { color: var(--text); font-weight: 600; }

.main { min-width: 0; }
.topbar { display: none; }
.page { max-width: 1180px; margin: 0 auto; padding: 48px 56px 120px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
h1.title { font-size: 34px; line-height: 1.25; margin: 0 0 10px; font-weight: 700; letter-spacing: -0.01em; word-break: keep-all; }
.subtitle { color: var(--muted); margin: 0 0 24px; }
.empty { color: var(--faint); padding: 24px 0; }

.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--pill-red); color: var(--pill-red-t); }
.badge.soft { background: var(--pill-gray); color: var(--pill-gray-t); }

/* ── 탭 ─────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 20px; overflow-x: auto; overflow-y: hidden; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }

/* ── 상태 표시 ─────────────────────────── */
.pill { display: inline-block; padding: 0 8px; border-radius: 4px; font-size: 13px; line-height: 22px; white-space: nowrap; background: var(--pill-gray); color: var(--pill-gray-t); }
.pill.yellow { background: var(--pill-yellow); color: var(--pill-yellow-t); }
.pill.green { background: var(--pill-green); color: var(--pill-green-t); }
.pill.red { background: var(--pill-red); color: var(--pill-red-t); }
.pill.blue { background: var(--pill-blue); color: var(--pill-blue-t); }
.pill.purple { background: var(--pill-purple); color: var(--pill-purple-t); }
.pill.orange { background: var(--pill-orange); color: var(--pill-orange-t); }
.pill.pink { background: var(--pill-pink); color: var(--pill-pink-t); }
.pill.brown { background: var(--pill-brown); color: var(--pill-brown-t); }
.pill.teal { background: var(--pill-teal); color: var(--pill-teal-t); }
/* 유형 · 형식 필터 (등록 예정 · 등록 완료) */
.filters { display: grid; grid-template-columns: max-content 1fr; gap: 8px 10px; margin: 0 0 20px; }
.f-row { display: contents; }
.f-label { min-width: 32px; white-space: nowrap; font-size: 13px; color: var(--muted); line-height: 28px; }
.filters .chip { cursor: pointer; height: 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--pill-gray-t); }
.dot.blue { background: var(--pill-blue-t); } .dot.green { background: var(--pill-green-t); } .dot.orange { background: var(--pill-orange-t); }
.dot.pink { background: var(--pill-pink-t); } .dot.purple { background: var(--pill-purple-t); } .dot.brown { background: var(--pill-brown-t); }
.dot.teal { background: var(--pill-teal-t); } .dot.yellow { background: var(--pill-yellow-t); } .dot.red { background: var(--pill-red-t); }
.chip.on .dot { box-shadow: 0 0 0 1.5px #fff; }
.faint { color: var(--faint); }
.table td.nowrap { white-space: nowrap; }
.table .t-title small.sm-only { display: none; }
.table.items { table-layout: fixed; }
.table th.c-thumb { width: 64px; } .table th.c-kind { width: 140px; } .table th.c-format { width: 76px; }
.table th.c-status { width: 96px; } .table th.c-date { width: 140px; } .table th.c-num { width: 64px; } .table th.c-memo { width: 200px; }
.table th.c-site { width: 150px; }
/* 현장 이름은 길어서 태그 안에서 줄을 바꾼다 */
.pill.wrap { white-space: normal; line-height: 1.35; padding: 2px 8px; word-break: keep-all; }
/* 등록 예정 · 완료 표가 있는 화면은 넓게 쓰고, 좁은 창에서는 표만 옆으로 밀어 본다 (제목 칸이 너무 좁아지지 않게) */
.page:has(.table.items) { max-width: 1440px; }
.table.items { min-width: 980px; }
.table.items.with-site { min-width: 1120px; }
@media (max-width: 1440px) and (min-width: 821px) {     /* 노트북 화면: 칸을 줄여 메모 칸까지 한 화면에 */
  .page:has(.table.items) { padding-left: 28px; padding-right: 28px; }
  .table.items th.c-kind { width: 118px; } .table.items th.c-site { width: 128px; } .table.items th.c-date { width: 122px; }
  .table.items th.c-memo { width: 160px; } .table.items th.c-status { width: 90px; } .table.items th.c-format { width: 70px; }
  .table.items { min-width: 820px; } .table.items.with-site { min-width: 900px; }
  .table.items td { padding-left: 8px; padding-right: 8px; } .table.items th { padding-left: 8px; padding-right: 8px; }
}
/* 유형 바꾸기 */
.add-tag { display: inline-block; font-size: 13px; color: var(--faint); padding: 0 6px; line-height: 22px; border-radius: 4px; }
.pill-btn:hover .add-tag { background: var(--hover); color: var(--muted); }
.tag-input { width: 100%; font-size: 13px; padding: 3px 6px; border: 1px solid var(--accent); border-radius: 5px; outline: none; }
.m-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.m-check { margin-left: auto; color: var(--accent); font-size: 13px; }
.m-new { font-size: 13px; color: var(--accent); }
.m-clear { font-size: 13px; color: var(--muted); }
/* 표의 메모 칸 */
.memo-cell { display: flex; align-items: flex-start; gap: 4px; min-height: 26px; cursor: text; }
.memo-last { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; color: var(--text); text-decoration: none; font-weight: 400;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.memo-last:hover { text-decoration: underline; }
.memo-last b { font-weight: 600; color: var(--pill-blue-t); }
.memo-more { flex: none; font-size: 12px; color: var(--muted); line-height: 18px; }
.memo-acts { flex: none; display: flex; gap: 2px; margin-left: auto; opacity: 0; transition: opacity .1s; }
.memo-acts.always { opacity: .55; margin-left: 0; }
.row:hover .memo-acts, .memo-acts:focus-within { opacity: 1; }
.memo-btn { border: 0; background: none; color: var(--muted); font-size: 13px; height: 22px; min-width: 22px; padding: 0 5px; border-radius: 4px; cursor: pointer; }
.memo-btn:hover { background: var(--hover); color: var(--text); }
.memo-btn.wide { color: var(--faint); }
.memo-input { width: 100%; font: inherit; font-size: 13px; line-height: 1.4; padding: 5px 7px; border: 1px solid var(--accent); border-radius: 5px; outline: none; resize: vertical; min-height: 48px; }
@media (hover: none) { .memo-acts { opacity: 1; } }

/* ── 표 ─────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.row { cursor: pointer; }
.table tr.row:hover td { background: #fafaf9; }
.table .t-title { font-weight: 500; }
.table .t-title small { display: block; color: var(--faint); font-weight: 400; font-size: 12px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.thumb { width: 44px; height: 55px; border-radius: 4px; object-fit: cover; background: var(--side); display: block; }
.thumb.none { display: grid; place-items: center; color: var(--faint); font-size: 12px; }
.cnt { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.cnt.open { color: var(--danger); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.group-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 26px 0 6px; display: flex; gap: 8px; align-items: center; }

/* ── 카드 (관리자 첫 화면) ─────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 36px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; text-decoration: none; display: block; transition: box-shadow .15s; }
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin: 0; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.card .handle { color: var(--muted); font-size: 13px; margin: 2px 0 14px; }
.stats { display: flex; gap: 18px; }
.stat b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.alert b { color: var(--danger); }

.feed { border-top: 1px solid var(--line); }
.feed-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.feed-row:hover { background: #fafaf9; }
.feed-row .where { font-size: 13px; color: var(--muted); }
.feed-row .what { grid-column: 1 / -1; white-space: pre-wrap; word-break: break-word; }
.feed-row time { font-size: 12px; color: var(--faint); }

/* ── 상세 (콘텐츠 · 문서) ─────────────────── */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.props { display: grid; grid-template-columns: 120px 1fr; gap: 2px 12px; font-size: 14px; margin: 6px 0 26px; }
.props dt { color: var(--muted); padding: 5px 0; }
.props dd { margin: 0; padding: 5px 0; min-width: 0; word-break: break-word; }
.props a { color: var(--accent); }

.media-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 26px; scroll-snap-type: x mandatory; }
.media-strip figure { margin: 0; flex: none; scroll-snap-align: start; position: relative; }
.media-strip img, .media-strip video { height: 340px; width: auto; max-width: 80vw; border-radius: 6px; display: block; background: var(--side); cursor: zoom-in; }
.media-strip video { cursor: default; }
.media-strip figcaption { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 0 7px; border-radius: 10px; line-height: 20px; }
.media-ph { height: 340px; width: 255px; border-radius: 6px; background: var(--side); }

.block-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 26px 0 8px; }
.caption { white-space: pre-wrap; word-break: break-word; background: var(--side); border-radius: var(--radius); padding: 16px 18px; font-size: 15px; }
.memo { white-space: pre-wrap; word-break: break-word; color: var(--muted); font-size: 14px; }

/* 노션 본문 */
.doc { font-size: 16px; word-break: break-word; }
.doc h1, .doc h2, .doc h3 { line-height: 1.3; margin: 1.6em 0 .4em; }
.doc h1 { font-size: 26px; } .doc h2 { font-size: 21px; } .doc h3 { font-size: 18px; }
.doc p { margin: .35em 0; min-height: 1em; }
.doc ul, .doc ol { margin: .3em 0; padding-left: 1.5em; }
.doc li { margin: .15em 0; }
.doc blockquote { border-left: 3px solid var(--text); margin: .6em 0; padding: 0 0 0 14px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 1.4em 0; }
.doc img { max-width: 100%; border-radius: 4px; display: block; margin: .6em 0; }
.doc code { background: rgba(135,131,120,.15); color: #eb5757; border-radius: 4px; padding: .1em .35em; font-size: 85%; }
.doc pre { background: var(--side); padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; }
.doc pre code { background: none; color: inherit; padding: 0; }
.doc .callout { display: flex; gap: 10px; background: var(--side); border-radius: var(--radius); padding: 14px 16px; margin: .6em 0; }
.doc .callout > .c-icon { flex: none; }
.doc .callout > div { min-width: 0; flex: 1; }
.doc details { margin: .25em 0; }
.doc details > summary { cursor: pointer; padding: 2px 0; }
.doc details > summary:hover { background: var(--hover); border-radius: 4px; }
.doc details > div { padding-left: 22px; }
.doc table { border-collapse: collapse; margin: .6em 0; font-size: 14px; display: block; overflow-x: auto; }
.doc td, .doc th { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }
.doc th { background: var(--side); font-weight: 600; text-align: left; }
.doc .todo { list-style: none; padding-left: 0; }
.doc .todo li::before { content: '☐ '; color: var(--muted); }
.doc .todo li.done::before { content: '☑ '; }
.doc .todo li.done { color: var(--faint); text-decoration: line-through; }
.doc a { color: var(--accent); }
.doc .bookmark { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: .5em 0; text-decoration: none; color: var(--muted); font-size: 14px; word-break: break-all; }
.doc .cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 20px; }

/* ── 코멘트 ─────────────────────────────── */
.comments { position: sticky; top: 24px; border-left: 1px solid var(--line); padding-left: 24px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; }
.comments h2 { font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.c-list { overflow-y: auto; flex: 1; min-height: 60px; margin: 0 -4px; padding: 0 4px; }
.c-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.c-item.resolved { opacity: .55; }
.c-head { display: flex; align-items: baseline; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.c-head b { font-weight: 600; }
.c-head .role { font-size: 12px; padding: 0 5px; border-radius: 3px; background: var(--pill-blue); color: var(--pill-blue-t); }
.c-head .role.client { background: var(--pill-purple); color: var(--pill-purple-t); }
.c-head time { color: var(--faint); font-size: 12px; }
.c-body { white-space: pre-wrap; word-break: break-word; font-size: 14px; margin: 4px 0 6px; }
.c-acts { display: flex; gap: 10px; }
.c-acts button { border: 0; background: none; padding: 0; font-size: 12px; color: var(--muted); }
.c-acts button:hover { color: var(--text); text-decoration: underline; }
.c-flag { font-size: 12px; color: var(--pill-green-t); }
.c-form { margin-top: 12px; }
.c-form textarea { width: 100%; min-height: 84px; resize: vertical; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; outline: none; font-size: 14px; }
.c-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35, 131, 226, .15); }
.c-form .row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 8px; }
.c-form .hint { font-size: 12px; color: var(--faint); }
.c-toggle { font-size: 12px; color: var(--muted); border: 0; background: none; padding: 6px 0 0; text-align: left; }

/* ── 창 (사진 크게 보기 · 비밀번호) ───────────── */
.overlay { position: fixed; inset: 0; background: rgba(15,15,15,.6); z-index: 50; display: grid; place-items: center; padding: 16px; }
.overlay img { max-width: 100%; max-height: 92vh; border-radius: 6px; }
.modal { background: #fff; border-radius: 12px; padding: 24px; width: 100%; max-width: 360px; box-shadow: var(--shadow); }
.modal h2 { margin: 0 0 16px; font-size: 18px; }
.modal .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #191919; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 60; }

/* ── 통계 (개요) ─────────────────────────── */
.seg { display: inline-flex; background: var(--side); border-radius: 8px; padding: 3px; gap: 2px; flex: none; }
.seg button { border: 0; background: none; padding: 4px 13px; border-radius: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(15,15,15,.08); }
.seg.sm button { padding: 3px 10px; font-size: 13px; }

.ov { --series: #2a78d6; --card: #fff; --soft: #fafaf8; --ink-up: #18794e; --ink-down: #b42d2d; }
/* 위쪽 고정 막대 */
.ov-bar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); margin: -12px -56px 8px; padding: 8px 56px; }
.ov-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ov-nav::-webkit-scrollbar { display: none; }
.ov-links { display: flex; gap: 2px; }
.ov-links button { border: 0; background: none; padding: 5px 10px; border-radius: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.ov-links button:hover { background: var(--hover); color: var(--text); }
.ov-links button.on { color: var(--text); font-weight: 600; background: var(--hover); }
.ov-links .short { display: none; }

.ov-sec { padding: 36px 0 8px; scroll-margin-top: 64px; }
.ov-sec + .ov-sec { border-top: 1px solid var(--line); margin-top: 28px; }
.ov-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.ov-head h2 { font-size: 20px; line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.ov-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.ov-sub { font-size: 14px; font-weight: 600; margin: 28px 0 12px; display: flex; align-items: baseline; gap: 8px; }
.ov-sub span { color: var(--faint); font-weight: 500; font-size: 13px; }
.ov-note { font-size: 13px; color: var(--faint); margin: 14px 0 0; line-height: 1.55; }
.ov-empty { border: 1px dashed #dcdbd6; border-radius: 12px; padding: 28px 20px; text-align: center; color: var(--muted); background: var(--soft); }
.ov-empty b { display: block; color: var(--text); font-size: 15px; font-weight: 600; }
.ov-empty p { margin: 6px auto 0; font-size: 14px; max-width: 460px; }
.ov-empty .btn { margin-top: 14px; }
.ov .tag { display: inline-block; font-size: 12px; line-height: 20px; padding: 0 7px; border-radius: 4px; background: var(--pill-gray); color: var(--pill-gray-t); font-weight: 500; white-space: nowrap; }
.ov .tag.blue { background: #e3eefb; color: #1c5cab; }
.ov-select { height: 32px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 28px 0 10px; font: inherit; font-size: 14px; color: var(--text); max-width: 100%; }
.ov-more { display: block; margin: 14px auto 0; }

/* 숫자 칸 */
.ov-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ov-tile { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 12px; background: var(--card); min-width: 0; }
.ov-tile .k { font-size: 13px; color: var(--muted); }
.ov-tile .v { font-size: 26px; font-weight: 700; margin: 2px 0 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.ov-tile .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 22px; }
.ov-tile .d { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-tile .d.up { color: var(--ink-up); }
.ov-tile .d.down { color: var(--ink-down); }
.spark { display: block; width: 64px; height: 22px; flex: none; opacity: .9; }
.spark svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* 그래프 */
.ov-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ov-chart { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 10px; background: var(--card); min-width: 0; }
.ov-chart h3 { margin: 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ov-chart .sub { font-size: 12px; color: var(--muted); margin: 1px 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-chart .box { position: relative; height: 170px; }
.ov-chart .box.empty { display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--faint); background: var(--soft); border-radius: 8px; padding: 0 16px; }

/* 우리 게시물 */
.ov-sum { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.ov-sum .cell { padding: 12px 14px; min-width: 0; }
.ov-sum .cell + .cell { border-left: 1px solid var(--line); }
.ov-sum span { display: block; font-size: 12px; color: var(--muted); }
.ov-sum b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ov-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 16px 0 8px; }
.ov-tools .grp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ov-tools .lbl { font-size: 13px; color: var(--muted); }
.ov-sort { display: none; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 11px; font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { color: var(--text); }
.chip .c { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chip.on { background: var(--text); border-color: var(--text); color: #fff; }
.chip.on .c { color: rgba(255,255,255,.7); }
.ov-ptable th { padding: 6px 10px; }
.ov-ptable th.num { text-align: right; }
.th-sort { border: 0; background: none; padding: 2px 0; font-size: 13px; color: var(--muted); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.th-sort:hover, .th-sort.on { color: var(--text); }
.th-sort .arr { font-size: 12px; color: var(--faint); }
.th-sort.on .arr { color: var(--series); }
.ov-ptable td.num { white-space: nowrap; }
.ov-ptable td.num.sorted { font-weight: 600; }
.ov-ptable .na { color: #cfcec9; }
.ov-ptable .c-thumb { width: 60px; padding-right: 4px; }
.ov-ptable .t-title a { text-decoration: none; }
.ov-ptable .t-title > a:hover { text-decoration: underline; }
.ov-ptable .t-title small a.ig { color: var(--accent); }
.ov-ptable small.mini { display: none; }

/* 참고 계정 */
.ov-accs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ov-acc { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.ov-acc:hover { box-shadow: var(--shadow); }
.ov-acc.on { border-color: var(--series); box-shadow: 0 0 0 1px var(--series); }
.ov-acc.err { opacity: .7; }
.ov-acc-main { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 14px 16px; border-radius: 12px; }
.ov-acc .who { display: flex; align-items: center; gap: 10px; padding-right: 22px; min-width: 0; }
.ov-acc .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--side); border: 1px solid var(--line); }
.ov-acc .avatar.ph { display: grid; place-items: center; font-weight: 700; color: var(--muted); font-size: 15px; }
.ov-acc .nm { min-width: 0; line-height: 1.35; }
.ov-acc .nm b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-acc .nm span { font-size: 13px; color: var(--muted); }
.ov-acc .tag { margin-top: 10px; }
.ov-acc .nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ov-acc .nums b { display: block; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ov-acc .nums span { font-size: 12px; color: var(--muted); }
.ov-acc .note { font-size: 13px; color: var(--muted); margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov-acc .note.warn { color: var(--ink-down); }
.ov-acc .ig { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; text-decoration: none; color: var(--muted); font-size: 13px; }
.ov-acc .ig:hover { background: var(--hover); color: var(--text); }
.ov-bposts { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.ov-bpost { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; background: var(--card); transition: box-shadow .15s; min-width: 0; }
.ov-bpost:hover { box-shadow: var(--shadow); }
.ov-bpost .img { position: relative; aspect-ratio: 4 / 5; background: var(--side); }
.ov-bpost .img img, .ov-bpost .img .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: var(--faint); }
.ov-bpost .type { position: absolute; top: 8px; left: 8px; font-size: 12px; line-height: 19px; padding: 0 7px; border-radius: 10px; background: rgba(25,25,25,.6); color: #fff; }
.ov-bpost .ratio { position: absolute; bottom: 8px; left: 8px; font-size: 12px; font-weight: 700; line-height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(255,255,255,.92); color: var(--muted); font-variant-numeric: tabular-nums; }
.ov-bpost .ratio.up { color: #1c5cab; }
.ov-bpost .ratio.hot { background: var(--series); color: #fff; }
.ov-bpost .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.ov-bpost .meta { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.ov-bpost .meta b { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-bpost .meta span { white-space: nowrap; }
.ov-bpost .eng { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.ov-bpost .eng b { color: var(--text); font-variant-numeric: tabular-nums; }
.ov-bpost .cap { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.ov-bpost .tag { align-self: flex-start; margin-top: 4px; }

/* 분석 · 제안 */
.ov-insight { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: var(--soft); }
.ov-insight .meta { font-size: 13px; color: var(--muted); }
.ov-insight h3 { font-size: 17px; margin: 4px 0 0; line-height: 1.4; word-break: keep-all; }
.ov-insight .lead { font-size: 15px; margin: 10px 0 0; line-height: 1.7; white-space: pre-wrap; word-break: keep-all; }
.ov-insight details.more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.ov-insight details.more > summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.ov-insight details.more > summary:hover { color: var(--text); }
.ov-sugg { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ov-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--card); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ov-card .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ov-card .no { font-size: 12px; font-weight: 600; color: var(--series); }
.ov-card h3 { margin: 0; font-size: 16px; line-height: 1.45; word-break: keep-all; }
.ov-card .f .k, .ov-card .refs .k { display: block; font-size: 12px; color: var(--faint); font-weight: 600; margin-bottom: 1px; }
.ov-card .f .v { font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ov-card .f.hook .v { border-left: 3px solid var(--series); padding: 2px 0 2px 10px; background: #f4f8fd; border-radius: 0 6px 6px 0; }
.ov-card .refs { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.ov-card .refs .k { width: 100%; }
.ov-card .refs a { font-size: 13px; color: var(--accent); text-decoration: none; }
.ov-card .refs a:hover { text-decoration: underline; }

@media (max-width: 1180px) {
  .ov-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ov-tile { grid-column: span 2; }
  .ov-tile:nth-child(-n + 2) { grid-column: span 3; }
  .ov-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ov-sum .cell:nth-child(4n + 1) { border-left: 0; }
  .ov-sum .cell:nth-child(n + 5) { border-top: 1px solid var(--line); }
}
details.old-overview { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; }
details.old-overview > summary { cursor: pointer; color: var(--muted); font-size: 14px; }

/* ── 바로 고치기 (상태 · 게시 예정) ─────────────── */
.pill-btn { border: 0; padding: 0; background: none; cursor: pointer; }
.pill-btn:hover .pill { box-shadow: 0 0 0 2px rgba(35, 131, 226, .35); }
.menu { position: absolute; z-index: 45; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 4px; min-width: 140px; }
.menu button { display: flex; width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 5px; text-align: left; align-items: center; gap: 6px; }
.menu button:hover { background: var(--hover); }
.date-btn { border: 0; background: none; padding: 2px 4px; margin: -2px -4px; border-radius: 4px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.date-btn:hover { background: var(--hover); }
.date-btn.empty { color: var(--faint); }
.date-input { font-size: 14px; padding: 3px 6px; border: 1px solid var(--accent); border-radius: 5px; outline: none; }
.events { font-size: 13px; color: var(--muted); }
.events li { margin: 3px 0; }
.events b { color: var(--text); font-weight: 600; }

/* ── Claude 확인 요청 · 캡션 · User Caption (콘텐츠 상세) ─────────── */
.block-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bt-sub { font-weight: 400; color: var(--faint); }
.pub-tag { font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: 10px; line-height: 20px; background: var(--pill-gray); color: var(--pill-gray-t); }
.pub-tag.on { background: var(--pill-green); color: var(--pill-green-t); }
.caption.dim { color: var(--muted); }

.ask { margin: 26px 0 0; padding: 14px 18px 6px; border: 1px solid #e3e8ef; border-left: 3px solid #8aa4c8; border-radius: var(--radius); background: #f7f9fc; }
.ask-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.ask-ico { color: #6b85ab; }
.ask-hint { margin: 2px 0 6px; font-size: 13px; color: var(--muted); }
.ask .doc { font-size: 15px; }
.ask .doc ul, .ask .doc ol { margin: .3em 0 .6em; }
.ask .doc .todo li { margin: 4px 0; }

.ucap { margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.ucap.has { border-color: #bcd9c3; }
.ucap-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ucap-hint { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.ucap .caption { background: var(--side); }
.ucap-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ucap-meta { font-size: 13px; color: var(--faint); }
.ucap-form { margin-top: 0; }
.ucap-form textarea { min-height: 220px; font-size: 15px; line-height: 1.6; }
.ucap-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ucap-none { color: var(--faint); font-size: 14px; margin: 0; }
.ucap-old { margin-top: 12px; font-size: 13px; }
.ucap-old summary { cursor: pointer; color: var(--muted); }
.ucap-ver { margin: 10px 0 0; }
.ucap-ver .caption { font-size: 14px; padding: 12px 14px; margin-top: 4px; }
.ucap-note { margin-top: 3px; font-size: 13px; color: var(--muted); white-space: pre-line; line-height: 1.5; }

/* 수정 요청 — ⚡ 바로 적용 (Claude API) · 📝 요청 (메모) */
.req { margin: 14px 0 0; padding: 14px 16px; border: 1px dashed #c9d6e8; border-radius: var(--radius); background: #fafcff; }
.req-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15px; margin-bottom: 8px; }
.req-hint { font-size: 13px; color: var(--muted); }
.req-input { width: 100%; min-height: 64px; font: inherit; font-size: 14px; line-height: 1.5; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; outline: none; resize: vertical; background: #fff; }
.req-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35, 131, 226, .12); }
.req .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 8px; }
.req-btns { display: flex; gap: 6px; margin-left: auto; flex: none; }
.req-msg { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.req-msg.working { color: var(--accent); }
.req-msg.ok { color: var(--pill-green-t); }
.req-msg.err { color: var(--danger); }

/* 등록 완료: 인스타 계정의 모든 게시물 */
.page:has(.table.posts), .page:has(.post-grid) { max-width: 1440px; }
.posts-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.posts-sum { font-size: 14px; font-weight: 600; }
.posts-sum small { font-weight: 400; color: var(--faint); }
.posts-right { display: flex; align-items: center; gap: 8px; }
.sort-sel { height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; font-size: 14px; }
.segs { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg { border: 0; background: #fff; padding: 0 12px; height: 30px; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg + .seg { border-left: 1px solid var(--line); }
.seg.on { background: var(--text); color: #fff; }
.table.posts th.c-thumb { width: 64px; } .table.posts th.c-day { width: 100px; } .table.posts th.c-format { width: 76px; }
.table.posts th.c-num { width: 70px; } .table.posts th.c-cnt { width: 36px; }
.post-cap { font-weight: 400; color: var(--text); }
.ig-link { color: var(--muted); text-decoration: none; font-size: 15px; padding: 2px 6px; border-radius: 4px; }
.ig-link:hover { background: var(--hover); color: var(--text); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.post-card { position: relative; padding: 0; border: 0; background: var(--side); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; cursor: pointer; text-align: left; }
.post-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-ph { display: grid; place-items: center; height: 100%; color: var(--faint); font-size: 13px; }
.post-kind { position: absolute; top: 6px; right: 7px; color: #fff; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.post-portal { position: absolute; top: 6px; left: 6px; background: rgba(255,255,255,.9); color: var(--text); font-size: 12px; padding: 1px 6px; border-radius: 3px; }
.post-stats { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 12px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); display: flex; flex-wrap: wrap; gap: 0 4px; align-items: baseline; }
.post-stats small { width: 100%; opacity: .8; font-size: 12px; }
.story-list { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.8; }

/* Claude 사용량 (⚡ 바로 적용) */
.month-nav { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.month-nav b { font-size: 16px; }
.month-nav .btn { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.u-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; max-width: 640px; }
.u-tile { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.u-tile span { font-size: 13px; color: var(--muted); }
.u-tile b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ai-req { max-width: 420px; white-space: pre-line; }
.ai-item { font-size: 12px; }
.ai-admin { margin-top: 36px; }

/* 메모 패널 안내 */
.c-hint { font-size: 13px; color: var(--faint); margin: -6px 0 8px; line-height: 1.5; }

/* ── 계정 관리 (관리자) ─────────────────── */
.usr-toolbar { display: flex; justify-content: flex-end; margin: -8px 0 10px; }
.usr-accs { font-size: 14px; }
.muted { color: var(--muted); }
.modal.wide { max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; }
.field select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; color: inherit; outline: none; }
.field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35, 131, 226, .15); }
.field input:disabled, .field select:disabled { background: var(--side); color: var(--muted); }
.field-note { font-size: 13px; color: var(--muted); margin: -4px 0 14px; }
.chk-list { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; max-height: 220px; overflow-y: auto; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.field .chk span, .chk small { display: inline; margin: 0; color: var(--faint); font-size: 13px; }
.field .chk input { width: 16px; height: 16px; padding: 0; margin: 0; flex: none; box-shadow: none; }
.usr-danger { border-top: 1px solid var(--line); margin-top: 18px; }
.usr-danger .block-title { margin-top: 14px; }
.usr-danger-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.danger { color: var(--danger); border-color: #f0c9c6; }
.btn.danger:hover { background: #fdf0ef; }

/* ── 인스타 API 사용량 (관리자 첫 화면) ─────────── */
.u-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 10px; }
.u-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.u-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.u-app { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
.u-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin: 4px 0; gap: 8px; }
.u-row b { color: var(--text); font-size: 15px; }
.u-bar { height: 8px; border-radius: 4px; background: var(--side); overflow: hidden; margin: 2px 0 10px; }
.u-bar span { display: block; height: 100%; border-radius: 4px; background: #0ca30c; }
.u-bar span.warn { background: #fab219; }
.u-bar span.bad { background: #d03b3b; }
.u-flag { font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 10px; line-height: 22px; background: var(--pill-gray); color: var(--pill-gray-t); }
.u-flag.ok { background: var(--pill-green); color: var(--pill-green-t); }
.u-flag.warn { background: var(--pill-yellow); color: var(--pill-yellow-t); }
.u-flag.bad { background: var(--pill-red); color: var(--pill-red-t); }
.u-block { margin-top: 8px; font-size: 13px; color: var(--pill-red-t); background: var(--pill-red); border-radius: 6px; padding: 6px 10px; }
.u-note { font-size: 13px; color: var(--faint); margin: 0 0 28px; }

/* ── 좁은 화면 ─────────────────────────── */
@media (max-width: 1080px) {
  .detail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .comments { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; max-height: none; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .shell.nav-open .side { transform: none; }
  .shell.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(15,15,15,.3); z-index: 30; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 20; }
  .topbar button { border: 0; background: none; font-size: 20px; padding: 0 4px; }
  .topbar span { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .btn { height: 44px; } .btn.sm { height: 40px; }   /* 손가락 기준 44px (2026-11-03 UX 검토) */
  .page { padding: 20px 16px 80px; }
  h1.title { font-size: 26px; }
  .props { grid-template-columns: 96px 1fr; }
  .media-strip img, .media-strip video, .media-ph { height: 260px; }
  .media-ph { width: 195px; }
  .table .hide-sm { display: none; }
  .table .t-title small.sm-only { display: block; }
  .table.items, .table.items.with-site { table-layout: auto; min-width: 0; }
  .table.items th.c-date { width: auto; }
  .table td.nowrap { white-space: normal; }
  .doc .cols { grid-auto-flow: row; }

  /* 개요 */
  .ov-bar { top: 52px; gap: 8px; margin: -8px -16px 8px; padding: 8px 16px; }
  .ov-links button { padding: 5px 8px; font-size: 14px; }
  .ov-links .long { display: none; }
  .ov-links .short { display: inline; }
  .seg button { padding: 4px 9px; font-size: 13px; }
  .ov-sec { padding-top: 28px; scroll-margin-top: 104px; }
  .ov-head h2 { font-size: 18px; }
  .ov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ov-tile { padding: 12px 14px 10px; }
  .ov-tile .v { font-size: 22px; }
  .ov-tile .spark { width: 48px; }
  .ov-tile, .ov-tile:nth-child(-n + 2) { grid-column: auto; }
  .ov-tile:first-child { grid-column: 1 / -1; }
  .ov-charts { grid-template-columns: minmax(0, 1fr); }
  .ov-chart .box { height: 160px; }
  .ov-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ov-sum .cell { padding: 10px 12px; }
  .ov-sum b { font-size: 15px; }
  .ov-sort { display: flex; }
  /* 좁은 화면에선 숫자 열 대신 제목 아래 한 줄로 */
  .ov-ptable thead { display: none; }
  .ov-ptable td.num { display: none; }
  .ov-ptable small.mini { display: block; color: var(--muted); margin-top: 2px; }
  .ov-ptable td { padding: 10px 6px; }
  .ov-accs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -2px; overscroll-behavior-x: contain; }
  .ov-acc { scroll-snap-align: start; }
  .ov-bposts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ov-sugg { grid-template-columns: minmax(0, 1fr); }
  .ov-insight { padding: 16px; }
}
@media (max-width: 420px) {
  .ov-links button { padding: 5px 6px; }
}

/* 미팅 */
.ov-meeting { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: var(--soft); display: flex; flex-direction: column; gap: 16px; }
.ov-meeting .meta { font-size: 13px; color: var(--muted); }
.ov-meeting h3 { font-size: 17px; margin: 2px 0 0; line-height: 1.4; word-break: keep-all; }
.ov-meeting .lead { font-size: 15px; margin: 8px 0 0; line-height: 1.7; white-space: pre-wrap; word-break: keep-all; }
.ov-mt-block h4 { margin: 0 0 8px; font-size: 13px; color: var(--faint); font-weight: 600; letter-spacing: .01em; }
.ov-mt-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.6; word-break: keep-all; }
.ov-mt-list b { font-weight: 600; }
.ov-mt-list .d { display: block; color: var(--muted); font-size: 14px; margin-top: 1px; }
.ov-mt-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ov-mt-table th, .ov-mt-table td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.55; word-break: keep-all; }
.ov-mt-table th { font-size: 13px; color: var(--faint); font-weight: 600; border-top: 0; background: var(--soft); }
.ov-mt-table td:first-child { white-space: nowrap; font-weight: 600; width: 1%; }
.ov-meeting details.more { border-top: 1px solid var(--line); padding-top: 10px; }
.ov-meeting details.more > summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.ov-meeting details.more > summary:hover { color: var(--text); }
.ov-mt-old { margin-top: 12px; }
.ov-mt-old > summary { cursor: pointer; font-size: 14px; color: var(--muted); padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); list-style: none; }
.ov-mt-old > summary::before { content: '▸ '; color: var(--faint); }
.ov-mt-old[open] > summary { margin-bottom: 10px; }
.ov-mt-old[open] > summary::before { content: '▾ '; }

/* 문서 (관리자 전용) */
.nav-label-link { color: inherit; text-decoration: none; }
.nav-label-link:hover { text-decoration: underline; }
.nav .tree a, .nav .tree-sub a { position: relative; }
.nav .tree-sub { padding-left: 14px; }
.tree-n { margin-left: auto; font-size: 12px; color: var(--faint); background: var(--hover); border-radius: 8px; padding: 0 6px; line-height: 16px; }
.nav-empty { font-size: 13px; color: var(--faint); padding: 4px 10px; margin: 0; }
.pg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pg-head h1.title { margin-bottom: 4px; }
.pg-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding-top: 8px; }
.pg-tools .btn.danger { color: #b3261e; }
.pg-hint { font-size: 13px; color: var(--faint); }
.pg-meta { font-size: 13px; color: var(--faint); margin: 0 0 16px; }
.pg-kids { margin: 8px 0 22px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--side); }
.pg-kids h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.pg-kids ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.pg-kids a { text-decoration: none; font-size: 15px; }
.pg-kids a:hover { text-decoration: underline; }
.pg-kids small { color: var(--faint); }
.pg-body .doc.editing { outline: 2px solid rgba(35, 131, 226, .35); outline-offset: 10px; border-radius: 4px; min-height: 200px; }
.pg-body .doc.editing:focus { outline-color: rgba(35, 131, 226, .6); }
.pg-body .doc .todo li { cursor: pointer; }
.pg-body .doc .todo li::before { margin-right: 2px; }

/* ── 휴대폰: 아래에서 올라오는 시트 (상태 · 유형 · 현장 고르기, 게시 예정 날짜) · 목록 제목 아래 상태 · 날짜 버튼 (2026-10-25) ── */
.sheet-ov { position: fixed; inset: 0; z-index: 70; background: rgba(15, 15, 15, .38); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 520px; max-height: 82vh; overflow-y: auto; background: #fff; border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 24px rgba(15, 15, 15, .12); }
.sheet-head { font-weight: 600; font-size: 16px; margin: 0 2px 12px; }
.sheet-list { display: grid; gap: 6px; }
.sheet-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 10px;
  background: var(--side); font-size: 15px; text-align: left; color: var(--text); cursor: pointer; }
.sheet-item:active { background: var(--hover); }
.sheet-item .pill { font-size: 14px; line-height: 26px; padding: 0 10px; }
.sheet-item .m-row { width: 100%; }
.sheet-item.cancel { background: none; justify-content: center; color: var(--muted); margin-top: 4px; }
.sheet-hint { font-size: 13px; color: var(--muted); margin: -6px 2px 12px; line-height: 1.5; }
.sheet-hint.warn { color: var(--pill-yellow-t); margin: 10px 2px 0; }
.sheet-date { width: 100%; height: 48px; font: inherit; font-size: 16px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sheet-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.sheet-btns .btn { height: 44px; min-width: 96px; font-size: 15px; }
.sm-ctrls { display: none; }
@media (min-width: 821px) { .sheet-ov { align-items: center; } .sheet { border-radius: 14px; padding-bottom: 18px; } }
@media (max-width: 820px) {
  .sm-ctrls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-weight: 400; }
  .sm-ctrls .pill-btn .pill { line-height: 30px; padding: 0 12px; font-size: 14px; }
  .sm-ctrls .date-btn { margin: 0; padding: 0 12px; height: 30px; border-radius: 6px; background: var(--side); font-size: 14px; }
  .props .pill-btn .pill { line-height: 30px; padding: 0 12px; }
  .props .date-btn { margin: 0; padding: 4px 10px; background: var(--side); border-radius: 6px; }
  .req .row { flex-wrap: wrap; }
  .req-btns { width: 100%; justify-content: flex-end; }
  .req-btns .btn { height: 42px; }
}

/* ── 등록 예정: 정렬 · 묶기 (머리글 누르기 + 위쪽 고르기, 2026-10-25) ── */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 18px; }
.lt-field { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.lt-dir { height: 32px; padding: 0 10px; font-size: 13px; }
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.th-sort:hover { color: var(--text); }
.th-arrow { font-size: 10px; color: var(--faint); opacity: .7; }
.table th.sorted { color: var(--text); }
.table th.sorted .th-arrow { color: var(--accent); opacity: 1; }
@media (max-width: 820px) { .list-tools { gap: 8px; } .lt-field .sort-sel { height: 36px; } .lt-dir { height: 36px; } }

/* ── 계정 관리: 볼 수 있는 문서 (트리 체크) · 2026-10-25 ── */
.chk.inherited { color: var(--faint); }
.chk.inherited input { opacity: .55; }

/* 캡션 검사 (lint) */
.lint { margin: 10px 0 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 14px; }
.lint > summary { cursor: pointer; padding: 8px 12px; display: flex; align-items: center; gap: 8px; list-style: none; color: var(--text); }
.lint > summary::-webkit-details-marker { display: none; }
.lint-dot { width: 9px; height: 9px; border-radius: 50%; background: #2eaa5b; flex: none; }
.lint.warn .lint-dot { background: #e0a100; }
.lint.error .lint-dot { background: #d64545; }
.lint.info .lint-dot { background: #8aa4c8; }
.lint-sub { margin-left: auto; font-size: 12px; color: var(--faint); }
.lint-preview { margin: 0 12px 10px; padding: 10px 12px; border-radius: 8px; background: var(--side); }
.lint-preview .k { font-size: 12px; color: var(--faint); font-weight: 600; margin-bottom: 4px; }
.lint-preview .v { white-space: pre-wrap; word-break: break-all; line-height: 1.55; font-size: 14px; }
.lint-preview .more { color: var(--faint); }
.lint-list { margin: 0; padding: 0 12px 10px 30px; display: flex; flex-direction: column; gap: 4px; line-height: 1.5; }
.lint-list li.error { color: #b3261e; }
.lint-list li.warn { color: #8a6100; }
.lint-list li.info { color: var(--muted); }
.lint-live { margin-top: 2px; }

/* ── User Caption 한 상자: 불러오기 · 📝 요청 · ⚡ 바로 적용 (2026-10-25) ── */
.ucap-input { min-height: 120px; font-size: 15px; line-height: 1.6; }
.ucap-mode { margin: 6px 0 0; font-size: 13px; color: var(--faint); }
.ucap-mode.direct { color: var(--pill-green-t); }
.ucap-mode.ai { color: var(--accent); }
.ucap-form .row { flex-wrap: wrap; gap: 8px; }
@media (max-width: 820px) { .ucap-form .ucap-btns { width: 100%; } .ucap-form .ucap-btns .btn { flex: 1; height: 42px; } }

/* ── 사진 줄: ⬇ 받기 · ⬇ 전체 받기 · ↔ 순서 바꾸기 (2026-10-25) ── */
.media-wrap { margin-bottom: 26px; }
.media-wrap .media-strip { margin-bottom: 0; }
.media-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.media-count { font-size: 13px; color: var(--muted); }
.media-hint { font-size: 13px; color: var(--accent); }
.media-acts { display: flex; gap: 6px; margin-left: auto; }
.media-acts .btn { height: 32px; font-size: 13px; }
.dl-one { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; cursor: pointer; opacity: .85; }
.dl-one:hover { opacity: 1; background: rgba(0,0,0,.75); }
.media-strip.editing { scroll-snap-type: none; padding: 6px 2px 10px; }
.media-strip figure.reorder { cursor: grab; outline: 2px dashed transparent; outline-offset: 2px; border-radius: 8px; }
.media-strip figure.reorder img, .media-strip figure.reorder video { cursor: grab; height: 240px; }
.media-strip figure.reorder.dragging { opacity: .4; }
.media-strip figure.reorder.over { outline-color: var(--accent); }
.mv-btns { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.mv-btns .btn { height: 34px; min-width: 44px; padding: 0 10px; }
@media (max-width: 820px) {
  .media-acts { margin-left: 0; width: 100%; }
  .media-acts .btn { flex: 1; height: 38px; }
  .media-strip figure.reorder img, .media-strip figure.reorder video { height: 200px; }
  .mv-btns .btn { height: 40px; min-width: 56px; }
}

/* ── 분석 · 다음 콘텐츠 제안 (2026-10-25 개편: 요약 카드 + 두 갈래 + 게시물 카드) ── */
.ins-hero { border: 1px solid var(--line); border-left: 4px solid var(--series); border-radius: 12px; padding: 20px 22px; background: var(--card); box-shadow: var(--shadow); }
.ins-hero .meta { font-size: 13px; color: var(--muted); }
.ins-hero h3 { font-size: 18px; margin: 4px 0 0; line-height: 1.4; word-break: keep-all; }
.ins-hero .lead { font-size: 16px; font-weight: 500; margin: 12px 0 0; line-height: 1.75; word-break: keep-all; color: var(--text); }
.ins-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.ins-kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--soft); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ins-kpi .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.ins-kpi b { font-size: 22px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ins-kpi .d { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ins-kpi .d.up { color: var(--ink-up); }
.ins-kpi .d.down { color: var(--ink-down); }
.ins-kpi .d i { font-style: normal; font-weight: 500; color: var(--faint); }
.ins-track { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.ins-track-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.ins-track-head .num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--series); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; margin-top: 1px; }
.ins-track-head h3 { margin: 0; font-size: 17px; line-height: 1.4; }
.ins-track-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ins-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ins-post .note { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--text); background: #f4f8fd; border-left: 3px solid var(--series); border-radius: 0 6px 6px 0; padding: 6px 8px; white-space: pre-wrap; word-break: keep-all; }
.ins-post .verdict { position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 700; line-height: 21px; padding: 0 8px; border-radius: 11px; }
.ins-post .verdict.good { background: var(--pill-green); color: var(--pill-green-t); }
.ins-post .verdict.weak { background: var(--pill-orange); color: var(--pill-orange-t); }
.ins-none { font-size: 14px; color: var(--muted); background: var(--soft); border: 1px dashed #dcdbd6; border-radius: 10px; padding: 14px 16px; margin: 0; }
.ins-sg-title { font-size: 14px; font-weight: 700; margin: 18px 0 10px; display: flex; align-items: baseline; gap: 8px; }
.ins-sg-title span { color: var(--faint); font-weight: 500; font-size: 13px; }
.ref-thumbs { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.ref-thumbs a { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; text-decoration: none; }
.ref-thumbs img, .ref-thumbs .ph { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: var(--side); display: grid; place-items: center; color: var(--faint); }
.ref-thumbs .lb { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 64px; }
.ref-thumbs a:hover img { box-shadow: var(--shadow); }
.ins-full { margin-top: 28px; border: 1px solid #cfe0f5; border-radius: 12px; background: #f6f9fe; overflow: hidden; }
.ins-full > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.ins-full > summary::-webkit-details-marker { display: none; }
.ins-full > summary:hover { background: #edf4fd; }
.ins-full > summary .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--series); display: grid; place-items: center; font-size: 19px; }
.ins-full > summary .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ins-full > summary .tx b { font-size: 16px; color: var(--text); }
.ins-full > summary .sub { font-size: 13px; color: var(--muted); line-height: 1.5; word-break: keep-all; }
.ins-full > summary .chev { flex: none; font-size: 26px; line-height: 1; color: var(--series); transition: transform .15s; }
.ins-full[open] > summary .chev { transform: rotate(90deg); }
.ins-full[open] > summary { border-bottom: 1px solid #cfe0f5; }
.ins-full-body { padding: 16px 18px 20px; background: var(--card); }
.ins-full-body .doc { font-size: 15px; line-height: 1.75; }
.ins-ch { border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px 14px; margin-top: 12px; background: #fff; }
.ins-ch:first-child { margin-top: 0; }
.ins-ch > h3 { font-size: 16px; margin: 12px 0 8px; padding-left: 10px; border-left: 4px solid var(--series); line-height: 1.4; }
.ins-full-body .doc table { display: table; width: 100%; font-size: 14px; margin: 8px 0 12px; }
.ins-full-body .doc th { background: #eef4fc; color: #1c4f8f; }
.ins-full-body .doc td { font-variant-numeric: tabular-nums; }
.ins-full-body .doc tr:nth-child(even) td { background: #fafaf8; }
.ins-full-body .doc li { margin: .35em 0; }
.ins-full-body .doc strong { background: linear-gradient(transparent 60%, #fff1a8 60%); }
.ins-full-body .doc a { font-weight: 600; text-decoration: none; }
.ins-full-body .doc a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .ins-full-body { padding: 12px; }
  .ins-ch { padding: 2px 12px 12px; }
  .ins-full-body .doc table { display: block; overflow-x: auto; }
}
@media (max-width: 720px) {
  .ins-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-hero { padding: 16px; }
  .ins-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 다음 콘텐츠 제안: 한 줄에 하나씩 (2026-10-25) ── */
.ov .tag.purple { background: #efe7f8; color: #6b3fa0; }
.ov .tag.pink { background: #fbe6ef; color: #a8336a; }
.ov .tag.brown { background: #f3ebe4; color: #7a5232; }
.idea-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 14px 16px; margin: 0 0 18px; }
.idea-row { display: flex; gap: 8px; }
.idea-hint { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.idea-hint:focus { outline: none; border-color: var(--accent); }
.idea-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.idea-msg { margin: 8px 0 0; font-size: 13px; }
.idea-msg.working { color: var(--accent); }
.idea-msg.err { color: #c0392b; }
.sg-list { display: flex; flex-direction: column; gap: 10px; }
.sg-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 16px 18px; }
.sg-no { width: 28px; height: 28px; border-radius: 50%; background: var(--side); color: var(--muted); font-weight: 700; font-size: 13px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.sg-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sg-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sg-rec { font-size: 12px; font-weight: 700; color: #8a6100; background: #ffeeb0; border-radius: 4px; padding: 0 7px; line-height: 20px; }
.sg-src { font-size: 12px; color: var(--faint); }
.sg-main h3 { margin: 0; font-size: 16px; line-height: 1.45; word-break: keep-all; }
.sg-hook { margin: 0; font-size: 14px; line-height: 1.6; border-left: 3px solid var(--series); padding: 2px 0 2px 10px; background: #f4f8fd; border-radius: 0 6px 6px 0; white-space: pre-wrap; }
.sg-row.rec .sg-hook { background: #fff4cc; border-left-color: #e0ad1f; }
.sg-main .f { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.6; }
.sg-main .f .k { color: var(--faint); font-weight: 600; font-size: 13px; padding-top: 1px; }
.sg-main .f .v { white-space: pre-wrap; word-break: break-word; }
.sg-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.sg-act .btn { height: 32px; font-size: 13px; padding: 0 12px; display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.sg-act .idea-have { color: #1d7a46; border-color: #bfe3cd; background: #eef8f2; }
.idea-add { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.idea-err { font-size: 13px; color: #c0392b; }
.sg-refs { display: flex; flex-direction: column; gap: 6px; }
.sg-refs .k { font-size: 12px; color: var(--faint); font-weight: 600; }
.sg-refs .more { font-size: 12px; color: var(--faint); }
.sg-ref-list { display: flex; gap: 8px; }
.sg-ref { width: 132px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.sg-ref .img { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--side); border: 1px solid var(--line); }
.sg-ref .img img, .sg-ref .img .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: var(--faint); }
.sg-ref .type { position: absolute; top: 6px; left: 6px; font-size: 12px; line-height: 18px; padding: 0 6px; border-radius: 9px; background: rgba(25,25,25,.6); color: #fff; }
.sg-ref .ratio { position: absolute; bottom: 6px; left: 6px; font-size: 12px; font-weight: 700; line-height: 20px; padding: 0 7px; border-radius: 10px; background: rgba(255,255,255,.92); color: #1c5cab; }
.sg-ref .ratio.hot { background: var(--series); color: #fff; }
.sg-ref .lb { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-ref:hover .img { box-shadow: var(--shadow); }
.ins-extra { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 16px 18px; margin: 0 0 22px; }
.ins-extra > .meta { font-size: 12px; color: var(--faint); }
.ins-extra > h3 { margin: 4px 0 6px; font-size: 17px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.ins-extra > h3 span { font-size: 13px; color: var(--faint); font-weight: 500; }
.ins-extra .lead { margin: 0 0 12px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.ins-extra.old { background: var(--card); border-color: var(--line); padding: 0; margin: 0 0 10px; }
.ins-extra.old > summary { cursor: pointer; padding: 12px 16px; font-size: 14px; list-style: none; }
.ins-extra.old > summary::-webkit-details-marker { display: none; }
.ins-extra.old > summary span { color: var(--faint); font-size: 13px; }
.ins-extra.old[open] > summary { border-bottom: 1px solid var(--line); }
.ins-extra.old > :not(summary) { margin: 12px 16px; }
/* 아이디어 제안: ⭐ 추천 아래에 접어 둔 '그 밖의 아이디어' */
.sg-more { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin: 10px 0 0; }
.sg-more > summary { cursor: pointer; padding: 12px 16px; font-size: 14px; list-style: none; }
.sg-more > summary::-webkit-details-marker { display: none; }
.sg-more > summary span { color: var(--faint); font-size: 13px; }
.sg-more[open] > summary { border-bottom: 1px solid var(--line); }
.sg-more > .sg-list { padding: 12px; }
@media (max-width: 980px) {
  .sg-row { grid-template-columns: 28px minmax(0, 1fr); }
  .sg-refs { grid-column: 2; }
}
@media (max-width: 720px) {
  .sg-row { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 10px; }
  .sg-no { display: none; }
  .sg-refs { grid-column: 1; }
  .sg-ref-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sg-ref { width: auto; }
  .sg-main .f { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .idea-row { flex-direction: column; }
  .idea-row .btn { height: 42px; }
  .ins-extra { padding: 14px; }
}

/* ── ✍️ 제작 요청 (아이디어 글) ── */
.make-box { border: 1px dashed #e3a24a; border-radius: 12px; background: #fff8ee; padding: 14px 16px; margin: 0 0 18px; }
.make-box.on { border-style: solid; }
.make-box .mk-head { font-weight: 700; font-size: 15px; }
.make-box p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.make-box .mk-row { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.make-box .mk-note { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; font: inherit; font-size: 14px; resize: vertical; background: #fff; }
.make-box .mk-note:focus { outline: none; border-color: var(--accent); }
/* 카드 안의 ✍️ 제작 요청 칸 (makeInline): 글(선택) + 단추가 한 줄, 글이 길어지면 칸이 자란다 */
.mk-inline-note { flex: 1 1 240px; min-width: 180px; max-width: 560px; height: 32px; min-height: 32px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 14px; line-height: 1.4; resize: none; overflow: hidden; background: #fff; }
.mk-inline-note:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35, 131, 226, .15); }
.sg-act .idea-add { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 720px) { .mk-inline-note { flex-basis: 100%; max-width: none; } }
@media (max-width: 720px) { .make-box .mk-row { flex-direction: column; align-items: stretch; } .make-box .mk-row .btn { height: 44px; } }

/* ── 요청사항: 사진별 요청 (2026-10-25) ── */
.req-one { position: absolute; right: 44px; top: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; cursor: pointer; opacity: .85; }
.req-one:hover { opacity: 1; background: var(--accent); }
.media-strip img { cursor: zoom-in; }
.req-badge { position: absolute; left: 8px; bottom: 8px; background: #e8590c; color: #fff; font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 10px; line-height: 22px; pointer-events: none; }
.memo-slide { font-weight: 600; color: #c2410c; }
/* 요청사항의 사진 고르기: 썸네일이 붙은 단추 + 메뉴(mediaPicker) */
.c-target { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; margin-bottom: 6px; padding: 3px 8px 3px 4px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 14px; background: #fff; color: var(--text); text-align: left; cursor: pointer; }
.c-target:hover { background: var(--side); }
.c-target:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35, 131, 226, .15); }
.c-target .c-face { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.c-target .c-caret { color: var(--faint); font-size: 12px; }
.c-face img, .c-opt img, .c-noimg { width: 28px; height: 35px; flex: none; object-fit: cover; border-radius: 4px; background: var(--side); }
.c-noimg { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.menu .c-opt { min-width: 200px; }
.menu:has(.c-opt) { max-height: min(60vh, 520px); overflow-y: auto; }   /* 사진이 많은 글은 목록 안에서 스크롤 */
.sheet-item .c-opt { padding: 6px 0; }
.sheet-item .c-opt img, .sheet-item .c-noimg { width: 40px; height: 50px; }
.c-slide { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 2px; padding: 2px 8px 2px 2px; border: 1px solid #fed7aa; background: #fff7ed; color: #c2410c; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.c-slide img { width: 28px; height: 35px; object-fit: cover; border-radius: 4px; }
.c-slide:hover { border-color: #fb923c; }
.c-slide.gone { cursor: default; color: var(--muted); background: var(--side); border-color: var(--line); padding: 2px 8px; }
.c-reply { margin-top: 6px; font-size: 13px; line-height: 1.5; padding: 6px 8px; background: var(--pill-green); color: var(--pill-green-t); border-radius: 6px; white-space: pre-wrap; }
.c-reply b { margin-right: 6px; }

/* 사진 크게 보기 + 요청사항 창 */
.pv { position: fixed; inset: 0; z-index: 50; background: rgba(15,15,15,.82); display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.pv-stage { min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 48px 64px 12px; }
.pv-stage img, .pv-stage video { max-width: 100%; max-height: 100%; min-height: 0; border-radius: 6px; object-fit: contain; background: #000; }
.pv-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; cursor: pointer; z-index: 2; }
.pv-nav { position: absolute; top: 40%; width: 44px; height: 64px; border: 0; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; z-index: 2; }
.pv-nav:hover, .pv-close:hover { background: rgba(255,255,255,.28); }
.pv-nav.prev { left: 12px; } .pv-nav.next { right: 12px; }
.pv-nav[hidden] { display: none; }
.pv-panel { background: #fff; width: min(720px, 100%); margin: 0 auto 16px; border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); }
.pv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.pv-tip { font-size: 12px; color: var(--faint); }
.pv-reqs { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; max-height: 96px; overflow: auto; }
.pv-req { font-size: 13px; line-height: 1.45; padding: 5px 8px; background: #fff7ed; border-radius: 6px; white-space: pre-wrap; }
.pv-req b { margin-right: 6px; color: #c2410c; }
.pv-form { display: flex; gap: 8px; margin-top: 8px; align-items: flex-end; }
.pv-form textarea { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; font: inherit; font-size: 14px; resize: vertical; min-height: 44px; }
.pv-form textarea:focus { outline: none; border-color: var(--accent); }
@media (max-width: 720px) {
  .pv-stage { padding: 52px 8px 8px; }
  .pv-nav { top: 30%; width: 36px; height: 52px; font-size: 28px; background: rgba(0,0,0,.45); }
  .pv-panel { margin: 0; border-radius: 12px 12px 0 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .pv-form { flex-direction: column; align-items: stretch; }
  .pv-form .btn { height: 42px; }
}

/* ── 콘텐츠 흐름: 등록 예정 달력 · 제작 완료 · 아이디어 · 보류 (사진 카드) ── */
.page:has(.fc-grid) { max-width: 1320px; }
.flow-note { font-size: 14px; color: var(--muted); margin: 0 0 16px; line-height: 1.6; }
.flow-sec { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 26px 0 12px; }
.flow-sec:first-child { margin-top: 4px; }
.flow-sec b { font-size: 15px; }
.flow-sec span { font-size: 13px; color: var(--muted); }
.view-toggle { display: flex; justify-content: flex-end; margin: -6px 0 12px; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 14px; }
.fc-grid.wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.fc { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; transition: box-shadow .15s, transform .15s; }
.fc:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.fc.faded .fc-img img { opacity: .55; filter: grayscale(.3); }
.fc-img { position: relative; aspect-ratio: 4 / 5; background: var(--side); overflow: hidden; }
.fc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 13px; }
.fc-when { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.94); color: var(--text); font-size: 12px; font-weight: 600; line-height: 22px; padding: 0 8px; border-radius: 11px; font-variant-numeric: tabular-nums; }
.fc-chip { position: absolute; bottom: 8px; left: 8px; font-size: 12px; font-weight: 600; line-height: 22px; padding: 0 9px; border-radius: 11px; }
.fc-chip.green { background: var(--pill-green); color: var(--pill-green-t); }
.fc-chip.yellow { background: #ffe9a8; color: #7a5300; }
.fc-chip.orange { background: var(--pill-orange); color: var(--pill-orange-t); }
.fc-chip.gray { background: rgba(255,255,255,.94); color: var(--muted); }
.fc-star { position: absolute; top: 8px; right: 8px; background: #ffe9a8; color: #7a5300; font-size: 12px; font-weight: 700; line-height: 21px; padding: 0 7px; border-radius: 11px; }
.fc-ref { position: absolute; bottom: 8px; right: 8px; background: rgba(25,25,25,.55); color: #fff; font-size: 12px; line-height: 19px; padding: 0 7px; border-radius: 10px; }
.fc-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.fc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.fc-tags .pill { font-size: 12px; line-height: 19px; padding: 0 6px; }
.fc-tags .faint { display: none; }
.fc h4 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.45; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-line { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.fc-line.faint { color: var(--faint); }
.fc-hook { margin: 0; font-size: 13px; line-height: 1.55; color: #5a5853; background: #fff6d6; padding: 4px 8px; border-radius: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-rec { margin: 0; font-size: 13px; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.fc-rec > span { font-size: 12px; font-weight: 600; color: var(--accent); background: #e7f1fc; border-radius: 4px; padding: 0 5px; line-height: 18px; }
.fc-rec em { font-style: normal; color: var(--faint); }
.fc-rec em.soon { color: #b2552a; }
.fc-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: none; }
.btn.ghost.danger { color: #b42d2d; }
.btn.ghost.danger:hover { background: #fbeceb; }
.fc-wait { font-size: 12px; color: var(--faint); }
.fc.empty { border: 1.5px dashed #d6d5d1; background: transparent; }
.fc.empty .fc-img { background: #fbfbfa; }
.fc.empty:hover { border-color: var(--accent); }
.fc.empty:hover .fc-plus { color: var(--accent); }
.fc-plus { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--faint); }
.fc-plus b { font-size: 34px; font-weight: 300; line-height: 1; }
.fc-plus span { font-size: 14px; font-weight: 600; }
.cal-week { margin: 0 0 28px; }
.cal-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.cal-head b { font-size: 15px; }
.cal-head span { font-size: 13px; color: var(--muted); }
.cal-count { margin-left: auto; font-size: 13px !important; color: var(--pill-green-t) !important; }
.cal-count.warn { color: #b2552a !important; font-weight: 600; }
.sheet.wide { max-width: 780px; }
.pick-sec { margin: 0 0 18px; }
.pick-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 2px 10px; }
.pick-h span { font-size: 13px; color: var(--muted); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px 10px; }
.pick { border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.pick-img { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--side); display: grid; place-items: center; color: var(--faint); font-size: 12px; border: 2px solid transparent; }
.pick-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick-img .fc-star { top: 5px; right: 5px; padding: 0 5px; }
.pick:hover .pick-img { border-color: var(--accent); }
.pick-t { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick small { font-size: 12px; color: var(--faint); }
.pick-none { font-size: 13px; color: var(--faint); margin: 0 2px; }
.toast.with-act { display: flex; align-items: center; gap: 14px; }
.toast-undo { border: 0; background: none; color: #8cc2ff; font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
@media (max-width: 720px) {
  .fc-grid, .fc-grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .fc-body { padding: 8px 9px 10px; }
  .fc h4 { font-size: 14px; }
  .fc-act .btn.sm { flex: 1 1 auto; padding: 0 6px; }
  .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 등록 예정 달력: 월~일 7칸 */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-day { min-height: 120px; display: flex; flex-direction: column; gap: 6px; border-radius: 10px; padding: 6px; background: #fbfbfa; position: relative; }
.cal-day.blank { background: transparent; border: 1px solid #f0f0ee; }
.cal-day.past { opacity: .45; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-date { display: flex; align-items: baseline; gap: 5px; padding: 0 2px; font-size: 13px; color: var(--muted); }
.cal-date b { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.cal-date em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); margin-left: auto; }
.cal-add { margin: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px dashed #d6d5d1; background: none; color: var(--faint); font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.cal-day.blank:hover .cal-add { opacity: 1; }
.cal-add:hover { border-color: var(--accent); color: var(--accent); }
.cc { display: flex; flex-direction: column; gap: 5px; border: 0; padding: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cc-img { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--side); }
.cc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.cc:hover .cc-img img { transform: scale(1.03); }
.cc.faded .cc-img img { opacity: .55; filter: grayscale(.3); }
.cc-time { position: absolute; top: 6px; left: 6px; background: rgba(255,255,255,.94); color: var(--text); font-size: 12px; font-weight: 600; line-height: 20px; padding: 0 7px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.cc .fc-chip { bottom: 6px; left: 6px; font-size: 12px; line-height: 20px; padding: 0 7px; }
.cc-t { font-size: 13px; line-height: 1.4; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; padding: 0 1px; }
.cc-t.faint { color: var(--faint); font-weight: 400; }
.cc-ok { width: 100%; height: 28px; font-size: 12px; padding: 0 4px; }
.cc.empty .cc-img { background: #fff; border: 1.5px dashed #d6d5d1; }
.cc.empty:hover .cc-img { border-color: var(--accent); }
.cc.empty:hover .fc-plus { color: var(--accent); }
.cc.empty .fc-plus b { font-size: 28px; }
@media (max-width: 1100px) and (min-width: 721px) {
  .cal-grid { gap: 6px; }
  .cal-day { padding: 5px; }
  .cc-time { font-size: 12px; padding: 0 5px; }
  .cc .fc-chip { font-size: 12px; padding: 0 5px; }
}
/* 휴대폰: 게시하는 날만 한 줄씩 (날짜 | 카드) */
@media (max-width: 720px) {
  .cal-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cal-day.blank { display: none; }
  .cal-day { flex-direction: row; flex-wrap: wrap; align-items: flex-start; min-height: 0; padding: 8px; gap: 8px; }
  .cal-date { flex-direction: column; align-items: flex-start; gap: 0; width: 44px; flex: none; }
  .cal-date em { margin-left: 0; }
  .cc { flex-direction: row; flex: 1 1 calc(100% - 56px); align-items: center; gap: 10px; }
  .cc-img { width: 72px; flex: none; }
  .cc .fc-chip { display: none; }
  .cc-t { flex: 1; font-size: 14px; }
  .cc-ok { width: auto; flex: none; padding: 0 10px; }
}
.fc-ph.text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 18px 16px; background: #f5f1ea; color: #4a463f; text-align: left; }
.fc-ph.text span { font-size: 12px; font-weight: 700; color: #9a8f7c; letter-spacing: .02em; }
.fc-ph.text p { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* 2026-10-25 고침: 사진 위에는 아무것도 얹지 않는다 · 시간은 날짜 아래 · 상태는 글 쪽 */
.fc-tags .fc-star { position: static; display: inline-block; font-size: 12px; line-height: 19px; padding: 0 6px; border-radius: 4px; }
.fc-state { display: inline-block; font-size: 12px; font-weight: 600; line-height: 19px; padding: 0 6px; border-radius: 4px; white-space: nowrap; }
.fc-state.green { background: var(--pill-green); color: var(--pill-green-t); }
.fc-state.yellow { background: #ffe9a8; color: #7a5300; }
.fc-state.orange { background: var(--pill-orange); color: var(--pill-orange-t); }
.fc-state.gray { background: var(--pill-gray); color: var(--pill-gray-t); }
.cal-dline { display: flex; align-items: baseline; gap: 5px; width: 100%; }
.cal-date { flex-direction: column; align-items: stretch; gap: 1px; }
.cal-time { font-size: 12px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.cc-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.cc-tags .pill { font-size: 12px; line-height: 18px; padding: 0 5px; }
.cc-tags .fc-state { font-size: 12px; line-height: 18px; padding: 0 5px; }
.make-box.ready { border-style: solid; border-color: #e7c766; background: #fffaea; }
.make-box .mk-warn { color: #b2552a; }
.sg-pick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sg-act .btn.primary { color: #fff; }
.sg-act .btn.ghost.danger { color: #b42d2d; }
.sg-state { font-size: 13px; font-weight: 600; line-height: 26px; padding: 0 10px; border-radius: 13px; }
.sg-state.orange { background: var(--pill-orange); color: var(--pill-orange-t); }
.sg-state.yellow { background: #ffe9a8; color: #7a5300; }
.sg-state.green { background: var(--pill-green); color: var(--pill-green-t); }
.sg-state.blue { background: var(--pill-blue); color: var(--pill-blue-t); }
.sg-state.gray { background: var(--pill-gray); color: var(--pill-gray-t); }
.sg-open { font-size: 13px; font-weight: 600; text-decoration: none; }
.sg-row.gone { opacity: .45; }
@media (max-width: 720px) {
  .cal-date { width: 46px; }
  .cal-dline { flex-direction: column; gap: 0; }
  .cal-time { margin-top: 2px; }
  .cc-txt { flex: 1; }
  .cc .cc-tags .pill { display: none; }
}

/* 계정 탭 줄(개요 · 등록 예정 …)도 위에 고정 — 개요의 두 번째 줄(통계 · 우리 게시물 …)은 그 바로 아래에 붙는다 (2026-10-25 사용자) */
.tabs { position: sticky; top: 0; z-index: 16; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  margin: 8px -56px 20px; padding: 6px 56px 0; }
.ov-bar { top: 46px; }
.ov-sec { scroll-margin-top: 108px; }
@media (max-width: 820px) {
  .tabs { top: 52px; margin: 8px -16px 16px; padding: 2px 16px 0; }
  .ov-bar { top: 94px; }
  .ov-sec { scroll-margin-top: 148px; }
}
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

/* ✍️ 제작 요청 표시 (등록 예정 표 · 휴대폰 줄) */
.mk-tag { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: 10px; line-height: 20px; background: #fdebd3; color: #8a4b00; white-space: nowrap; vertical-align: middle; }
.mk-tag.wip { background: #ece4fb; color: #5b3fa0; }
.mk-btn { margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.idea-add { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ── 사진 빼기 · 추가 · 제외 사진 (2026-10-25) ── */
.media-strip figure.add-tile { display: flex; }
.add-tile button { height: 340px; width: 200px; border: 2px dashed var(--line); border-radius: 6px; background: var(--side); color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 14px; cursor: pointer; }
.add-tile button:hover { border-color: var(--accent); color: var(--accent); background: #f2f8fe; }
.add-tile button:disabled { cursor: progress; opacity: .7; }
.add-tile .add-plus { font-size: 34px; line-height: 1; font-weight: 300; }
.add-tile small { font-size: 12px; color: var(--faint); }
.added-badge { position: absolute; left: 8px; top: 34px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: 10px; line-height: 20px; }
.media-over { font-size: 13px; font-weight: 600; color: #b42318; background: #fef3f2; border: 1px solid #fecdca; padding: 1px 8px; border-radius: 10px; }
.pv-head { flex-wrap: wrap; }
.pv-drop { margin-left: auto; height: 30px; font-size: 13px; color: #b42318; border-color: #fecdca; }
.pv-drop:hover { background: #fef3f2; }
.ex-hint { font-size: 13px; color: var(--faint); margin: -4px 0 10px; }
.ex-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.ex-item { margin: 0; width: 150px; }
.ex-item img { width: 150px; height: 188px; object-fit: cover; border-radius: 6px; display: block; opacity: .6; filter: grayscale(.4); cursor: zoom-in; }
.ex-item img:hover { opacity: 1; filter: none; }
.ex-item figcaption { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.ex-item .btn { height: 28px; font-size: 13px; align-self: flex-start; }
@media (max-width: 820px) {
  .add-tile button { height: 260px; width: 150px; }
  .ex-item { width: calc(50% - 6px); } .ex-item img { width: 100%; height: auto; aspect-ratio: 4 / 5; }
}

/* ── 휴대폰에서 고치기 편하게 (2026-10-25) ── */
.media-strip figure.reorder.picked { outline: 3px solid var(--accent); outline-offset: 2px; }
.media-strip figure.reorder.picked img { opacity: .75; }
.media-strip figure.reorder.target { outline-color: rgba(35, 131, 226, .35); cursor: pointer; }
.pick-flag { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 12px; pointer-events: none; white-space: nowrap; }
.req-jump { display: none; }
@media (max-width: 820px), (pointer: coarse) {
  .req-one, .dl-one { width: 38px; height: 38px; font-size: 16px; }
  .req-one { right: 52px; }
  .pv-drop { height: 38px; padding: 0 14px; }
}
@media (max-width: 820px) {
  /* 순서 바꾸기: 한 줄로 밀어 보는 대신 한눈에 3칸 격자 */
  .media-strip.editing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; overflow: visible; }
  .media-strip.editing figure { min-width: 0; }
  .media-strip.editing figure.reorder img, .media-strip.editing figure.reorder video, .media-strip.editing .media-ph { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; max-width: none; }
  .media-strip.editing .mv-btns { gap: 4px; }
  .media-strip.editing .mv-btns .btn { min-width: 0; flex: 1; height: 36px; padding: 0; }
  .media-hint { width: 100%; }
  /* 요청사항 바로 가기 */
  .req-jump { display: inline-flex; align-items: center; gap: 6px; position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
    height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
    box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: opacity .2s, transform .2s; }
  .req-jump .rj-n:not(:empty) { background: #fff; color: var(--accent); border-radius: 10px; padding: 0 7px; font-size: 12px; line-height: 20px; }
  .req-jump.away { opacity: 0; transform: translateY(10px); pointer-events: none; }
}

/* 그 밖의 아이디어: 10개 바로 보이고 나머지 펼치기 (2026-10-25) */
.sg-more-head { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.sg-more > .sg-list + .sg-list { padding-top: 0; }
.sg-expand { display: block; width: calc(100% - 24px); margin: 0 12px 12px; height: 40px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--side); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sg-expand:hover { background: var(--hover); }
.sg-more > .sg-list[hidden] { display: none; }

/* ── 문서 협업 (2026-10-25): 표 · 속성 줄 · 편집 도구 · @태그 · 형광펜 · 댓글 ─────────── */
.pg .detail { grid-template-columns: minmax(0, 1fr) 320px; }
.pg-main { min-width: 0; }
.pg-props { display: grid; grid-template-columns: 96px 1fr; gap: 2px 12px; font-size: 14px; margin: 4px 0 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--side); }
.pg-props dt { color: var(--muted); padding: 5px 0; }
.pg-props dd { margin: 0; padding: 4px 6px; border-radius: 4px; min-height: 24px; }
.pcell.editable { cursor: pointer; }
.pcell.editable:hover { background: var(--hover); }
.pv-empty { color: var(--faint); }
.pv-text { white-space: pre-wrap; }
.pv-input { width: 100%; font: inherit; border: 1px solid var(--accent); border-radius: 4px; padding: 4px 6px; box-shadow: 0 0 0 3px rgba(35, 131, 226, .15); outline: none; background: #fff; }
textarea.pv-input { resize: vertical; min-height: 48px; }
.pg-table { margin: 8px 0 24px; }
.ptable-t { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ptable-t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--side); white-space: nowrap; }
.ptable-t td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable-t tbody:last-child tr:last-child td { border-bottom: 0; }
.ptable-t .ptable-title a { text-decoration: none; font-weight: 500; }
.ptable-t .ptable-title a:hover { text-decoration: underline; }
.ptable-t td.date { white-space: nowrap; }
.ptable-t td.text { max-width: 420px; color: var(--muted); }
.ptable-g td { background: var(--side); padding: 6px 10px; }
.ptable-g small { color: var(--faint); }
.ptable.compact .ptable-t { font-size: 14px; }
.ptable.compact .ptable-t td { padding: 5px 8px; }
.embed-box { margin: .6em 0 1em; }
.embed-more { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--muted); text-decoration: none; }
.embed-more:hover { text-decoration: underline; }
.embed-chip { display: inline-block; padding: 6px 10px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 13px; background: var(--side); }
.pg-toolbar-slot { position: sticky; top: 8px; z-index: 2; }
.pg-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0 0 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--side); box-shadow: var(--shadow); }
.pg-toolbar .tb { height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 13px; }
.pg-toolbar .tb:hover { background: var(--hover); }
.pg-toolbar .pg-hint { margin-left: auto; font-size: 12px; color: var(--faint); }
.doc mark { background: #fff3a3; padding: 0 2px; border-radius: 2px; }
.doc .mention, .c-body .mention { display: inline-block; background: var(--pill-blue); color: var(--pill-blue-t); border-radius: 4px; padding: 0 5px; font-weight: 600; font-size: .95em; line-height: 1.5; }
.c-head .role.team { background: var(--pill-green); color: var(--pill-green-t); }
.chk-list .muted { color: var(--muted); font-size: 13px; }
@media (max-width: 1280px) {
  .pg .detail { grid-template-columns: 1fr; }
  .pg .comments { position: static; max-height: none; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .ptable-t td.text { max-width: none; }
}

/* ── 콘텐츠 흐름 v2 (2026-10-25): 승인 달력 · 검토 대기 · 아이디어 · 보류 및 저장 ── */
/* 표의 '이 시간으로 승인' (검토 대기) */
.tbl-approve { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 6px; }
.tbl-approve .btn.sm { height: 28px; font-size: 13px; padding: 0 9px; white-space: nowrap; }
.tbl-rec { font-size: 12px; color: var(--muted); white-space: nowrap; }
.table.items th.c-date { width: 150px; }
.sm-ctrls .tbl-approve { flex-direction: row; align-items: center; margin-top: 0; }
/* 달력: 날짜를 누르면 그 글의 날짜 · 시간 바꾸기 */
button.cal-date { border: 0; background: none; padding: 2px; margin: -2px; border-radius: 6px; text-align: left; font: inherit; color: inherit; display: flex; }
button.cal-date.can { cursor: pointer; }
button.cal-date.can:hover { background: var(--hover); }
button.cal-date:disabled { cursor: default; }
.cal-edit { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--accent); opacity: 0; transition: opacity .15s; }
button.cal-date.can:hover .cal-edit { opacity: 1; }
@media (hover: none) { .cal-edit { opacity: 1; } }
@media (max-width: 720px) { button.cal-date { align-self: stretch; } .cal-edit { display: block; margin: 2px 0 0; } }
.pick .pick-now { color: #8a6316; font-weight: 600; }
.pick .pick-free { color: var(--pill-green-t); font-weight: 600; }
.flow-empty { font-size: 13px; color: var(--faint); margin: 0 0 8px; }

/* ── 승인: 한 달 달력 (월 ~ 일) ── */
.mcal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.mcal-nav { display: flex; align-items: center; gap: 8px; }
.mcal-nav b { font-size: 18px; min-width: 112px; text-align: center; font-variant-numeric: tabular-nums; }
.mcal-nav .btn.sm { min-width: 34px; }
.mcal-sum { display: flex; gap: 12px; font-size: 13px; color: var(--muted); }
.mcal-sum .warn { color: #b2552a; font-weight: 600; }
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mcal-wd { font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 0; }
.mcal-wd.we { color: #b2552a; }
.mcal-day { min-height: 128px; display: flex; flex-direction: column; gap: 6px; border-radius: 10px; padding: 6px; background: #fbfbfa; position: relative; min-width: 0; }
.mcal-day.blank { background: transparent; border: 1px solid #f0f0ee; }
.mcal-day.out { background: #f4f4f2; }                       /* 다른 달의 날: 칸만 흐리게, 카드는 읽히게 (2026-10-25 사용자: "플로스 에임은 왜 불투명색이야?") */
.mcal-day.out .cal-dline { opacity: .45; }
.mcal-day.out .mc { opacity: .9; }
.mcal-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.mcal-day .cal-dline b { font-size: 14px; }
.mcal-dow { display: none; }
.mc { display: flex; flex-direction: column; gap: 5px; border: 0; padding: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.mc-img { position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--side); }
.mc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.mc:hover .mc-img img { transform: scale(1.03); }
.mc.faded .mc-img img { opacity: .55; filter: grayscale(.3); }
.mc-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mc-t { font-size: 13px; line-height: 1.4; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.mc-kind { font-size: 12px; color: var(--faint); }
.mc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 4px; font-size: 12px; color: var(--faint); line-height: 1.3; }
.mc-stats span { display: flex; flex-direction: column; min-width: 0; }
.mc-stats b { font-size: 12px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc.posted .mc-img { border: 1px solid #e6eef9; }
.fc-state.blue { background: var(--pill-blue); color: var(--pill-blue-t); }
.mc.empty .mc-img { background: #fff; border: 1.5px dashed #d6d5d1; aspect-ratio: 4 / 3; }
.mc.empty:hover .mc-img { border-color: var(--accent); }
.mc.empty:hover .fc-plus { color: var(--accent); }
.mc.empty .fc-plus b { font-size: 24px; }
.mcal-day.blank:hover .cal-add { opacity: 1; }
.mcal-day .cc-ok { width: 100%; height: 26px; font-size: 12px; padding: 0 4px; }
@media (max-width: 1100px) and (min-width: 721px) {
  .mcal { gap: 4px; }
  .mcal-day { padding: 4px; }
  .mc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 휴대폰: 글이나 게시 칸이 있는 날만 한 줄씩 */
@media (max-width: 720px) {
  .mcal { grid-template-columns: minmax(0, 1fr); }
  .mcal-wd, .mcal-day.blank, .mcal-day.out { display: none; }
  .mcal-day { flex-direction: row; flex-wrap: wrap; align-items: flex-start; min-height: 0; padding: 8px; gap: 8px; }
  .mcal-day .cal-date { width: 52px; flex: none; }
  .mcal-day .cal-dline { flex-direction: column; gap: 0; }
  .mcal-day .cal-dline b { display: none; }
  .mcal-dow { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
  .mc { flex-direction: row; flex: 1 1 calc(100% - 64px); align-items: flex-start; gap: 10px; }
  .mc-img { width: 76px; flex: none; }
  .mc.empty .mc-img { aspect-ratio: 1 / 1; }
  .mc-txt { flex: 1; }
  .mc-t { font-size: 14px; }
  .mc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 12px; }
  .mcal-day .cc-ok { width: auto; padding: 0 10px; height: 30px; }
}
/* 표의 상태 칸: 상태와 ✍️ 단추를 위아래로 */
.st-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.st-cell .mk-btn, .st-cell .mk-tag { margin-left: 0; }
.st-cell .mk-btn { height: 26px; font-size: 12px; padding: 0 8px; }
.table.items th.c-status { width: 116px; }
/* 표의 '날짜 정하기': 누르면 바로 날짜 고르는 창 */
.date-pick { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
/* 과거만 빼고 모든 날 채우기: 게시 요일이 아닌 빈 날은 연한 점선, 글이 있는 날은 작은 '+ 채우기' */
.mcal-day.extra { background: transparent; border: 1px solid #f0f0ee; }
.mc.empty.extra .mc-img { border-color: #e4e3df; background: transparent; }
.mc.empty.extra .fc-plus { color: #c2c1bc; }
.mc.empty.extra:hover .mc-img { border-color: var(--accent); }
.mc.empty.extra:hover .fc-plus { color: var(--accent); }
.mc-more { width: 100%; height: 28px; border: 1px dashed #d6d5d1; border-radius: 8px; background: #fff; color: var(--faint); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.mc-more:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) {
  .mcal-day.extra { padding: 6px 8px; }
  .mcal-day.extra .mc.empty { flex: 1 1 calc(100% - 64px); }
  .mcal-day.extra .mc.empty .mc-img { width: 100%; aspect-ratio: auto; height: 36px; }
  .mcal-day.extra .fc-plus { flex-direction: row; gap: 6px; }
  .mcal-day.extra .fc-plus b { font-size: 18px; }
  .mc-more { width: auto; flex: 1 1 calc(100% - 64px); }
}
/* 채우기 버튼 모양 맞추기 (2026-10-25 사용자: 휴대폰에서는 정사각형 버튼이 가장 좋다) */
.mc-more { display: flex; align-items: center; justify-content: center; gap: 4px; }
.mc-more b { font-size: 15px; font-weight: 400; }
@media (max-width: 720px) {
  .mcal-day .mc.empty .mc-img, .mcal-day.extra .mc.empty .mc-img { width: 76px; height: 76px; aspect-ratio: 1 / 1; flex: none; }
  .mcal-day .mc.empty { flex: 0 0 auto; }
  .mcal-day.extra .fc-plus { flex-direction: column; gap: 2px; }
  .mcal-day.extra .fc-plus b { font-size: 24px; }
  .mc-more { flex: 0 0 auto; width: 76px; height: 76px; flex-direction: column; gap: 2px; margin-left: 60px; border-radius: 8px; border-width: 1.5px; font-size: 13px; }
  .mc-more b { font-size: 24px; line-height: 1; }
}
/* 아이디어 카드: 확인한 곳 링크 (2026-10-25) */
.sg-srcs { display: flex; flex-wrap: wrap; gap: 4px 10px; white-space: normal; }
.sg-srcs a { color: var(--accent); text-decoration: none; font-size: 13px; }
.sg-srcs a:hover { text-decoration: underline; }
.sg-srcs a::after { content: " ↗"; }
.doc .embed-box table.ptable-t { display: table; width: 100%; margin: 0; font-size: 14px; }
.doc .ptable-t td, .doc .ptable-t th { border: 0; border-bottom: 1px solid var(--line); }
.doc .ptable-t th { background: var(--side); }

/* 달력: 승인 취소 · 채우기 창의 올릴 시간 (2026-10-25) */
.mc-cancel { width: 100%; height: 26px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.mc-cancel:hover { border-color: #f0c9c6; color: #b42d2d; background: #fbeceb; }
.pick-timebar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: -4px 2px 10px; }
.pick-timebar label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.pick-time { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 15px; background: #fff; }
.pick-time:focus { outline: none; border-color: var(--accent); }
.pick-timehint { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) {
  .mc-cancel { width: auto; height: 30px; padding: 0 10px; }
  .pick-time { height: 42px; font-size: 16px; }
}

/* 사용량 · 한도: 앱 단위 카드 (2026-10-25) */
.u-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.u-row.sub { font-size: 13px; margin-top: 8px; }
.u-row.sub span:last-child { text-align: right; }
.u-acc { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; gap: 6px; align-items: center; font-size: 13px; padding: 5px 0; border-top: 1px solid var(--line); }
.u-acc.head { margin-top: 12px; border-top: 0; font-size: 12px; color: var(--faint); font-weight: 600; padding-bottom: 2px; }
.u-acc > span:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.u-acc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-acc-v.warn { color: #b54708; font-weight: 600; } .u-acc-v.bad { color: #b42318; font-weight: 700; }
.u-acc-block { grid-column: 1 / -1; font-size: 12px; color: #b42318; }
.u-note p { margin: 0 0 6px; line-height: 1.6; }
.u-note b { color: var(--muted); }

/* ── 🪙 AI 코인: Claude API 토큰이 드는 버튼 · 메뉴의 아이콘 (2026-10-25 사용자: "토큰이 나가는 버튼은 모두 동전+AI 모양으로") ── */
.ico-aicoin { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box;
  background: radial-gradient(circle at 35% 30%, #fff3bf 0%, #f5c842 55%, #c78f08 100%); color: #5a3d00;
  font: 800 8.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Pretendard, sans-serif; letter-spacing: -.2px;
  box-shadow: inset 0 0 0 1.5px #dba61a, 0 0 0 1px rgba(0, 0, 0, .08); vertical-align: -4px; margin-right: 5px; flex: none; }
.btn .ico-aicoin { margin-right: 6px; }
.btn.primary .ico-aicoin { box-shadow: inset 0 0 0 1.5px #dba61a, 0 0 0 1px rgba(255, 255, 255, .55); }
.nav .ico .ico-aicoin, .nav .ico-aicoin { margin-right: 0; vertical-align: -3px; }
h1.title .ico-aicoin { width: 26px; height: 26px; font-size: 12px; vertical-align: -3px; margin-right: 8px; }

/* 요청사항 칸의 단추 두 개: [등록] [🪙 바로 적용] (2026-10-25) */
.comments .c-btns { display: flex; gap: 8px; align-items: center; }
.comments .c-cost { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--faint); }
.comments .c-cost .ico-aicoin { width: 15px; height: 15px; font-size: 7px; vertical-align: -3px; margin-right: 3px; }

/* ── 달력 카드의 형식 구분: 스토리 · 릴스 · 캐러셀 · 사진 (2026-10-25 사용자) ── */
.mc-rib { position: absolute; top: 5px; left: 5px; z-index: 1; font-size: 10px; font-weight: 700; line-height: 16px; padding: 0 6px; border-radius: 4px; background: rgba(25, 25, 25, .6); color: #fff; letter-spacing: .1px; }
.mc-rib.story { background: #e2731e; }
.mc-rib.reel { background: #c6386f; }
.mc-rib.car { background: #6b3fa0; }
.mc-rib.single { background: rgba(25, 25, 25, .55); }
.mc-fmt { font-size: 12px; font-weight: 600; line-height: 18px; padding: 0 6px; border-radius: 4px; white-space: nowrap; }
.mc-fmt.story { background: #fdebd9; color: #b2552a; }
.mc-fmt.reel { background: #fbe6ef; color: #a8336a; }
.mc-fmt.car { background: #efe7f8; color: #6b3fa0; }
.mc-fmt.single { background: #f3ebe4; color: #7a5232; }
.mc.fmt-story .mc-img { aspect-ratio: 3 / 4; box-shadow: inset 0 0 0 2px #e2731e; }
.mc.fmt-story .mc-t { color: #8a4a1c; }
.mc.fmt-reel .mc-img { box-shadow: inset 0 0 0 2px #e8a4c0; }
@media (max-width: 640px) { .mc.fmt-story .mc-img { aspect-ratio: 1 / 1; } }

/* ── 📲 스토리로도 올리기 (2026-10-26) ── */
.story-opt { margin: 18px 0 6px; }
.story-opt .so-tiles { display: flex; gap: 14px; margin-top: 8px; }
.so-tile { width: 132px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: inherit; }
.so-tile img, .so-tile .ph { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--side); display: grid; place-items: center; font-size: 12px; color: var(--faint); }
.so-tile .so-lb { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 2px 2px; }
.so-tile.on { border-color: #e2731e; }
.so-tile.on .so-lb { color: #b2552a; }
.so-tile:disabled { cursor: default; }
.so-tile:not(:disabled):hover img { outline: 2px solid #f3c39b; outline-offset: -2px; }
.so-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.so-form label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.so-form label span { color: var(--muted); }
.so-form input { height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font: inherit; }
.so-tip { font-size: 12px; }
.so-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.so-done { margin-top: 10px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.so-done .so-btns { width: 100%; margin-top: 6px; }

/* 게시글 + 스토리 함께 예약 (2026-10-26) */
.sp { display: flex; flex-direction: column; gap: 10px; }
.sp-tiles { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-tile { width: 120px; display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.sp-tile img, .sp-tile .ph { width: 120px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); background: var(--side); display: grid; place-items: center; color: var(--faint); font-size: 12px; text-align: center; padding: 0 6px; }
.sp-tile.none .ph { aspect-ratio: auto; height: 213px; border-style: dashed; }
.sp-tile.on img, .sp-tile.on .ph { border-color: #e07b39; box-shadow: 0 0 0 2px rgba(224, 123, 57, .2); }
.sp-lb { font-size: 13px; font-weight: 600; color: var(--muted); }
.sp-tile.on .sp-lb { color: #c05f1f; }
.sp-when, .mk-when { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.sp-when small, .mk-when small { font-size: 12px; color: var(--muted); }
.sp-k { font-size: 13px; font-weight: 700; min-width: 56px; }
.sp-in { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; }
.sp-in:focus { outline: none; border-color: var(--accent); }
.mk-when { margin: 8px 0 4px; }
.mk-story { margin: 4px 0 6px; font-size: 13px; color: #8a4b14; font-weight: 600; }
.pick-img .pick-story { position: absolute; left: 6px; bottom: 6px; font-size: 12px; font-weight: 600; line-height: 18px; padding: 0 6px; border-radius: 9px; background: rgba(255,255,255,.92); color: #8a4b14; }
.pick-img { position: relative; }
.sp-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.sp-head img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; }
.sp-head b { display: block; font-size: 15px; }
.sp-head small { font-size: 13px; color: var(--muted); }
.sp-q { font-size: 16px; font-weight: 700; margin: 4px 0 10px; }
@media (max-width: 720px) {
  .sp-tile { width: calc(33% - 8px); }
  .sp-tile img, .sp-tile .ph { width: 100%; }
  .sp-tile.none .ph { height: auto; aspect-ratio: 9 / 16; }
  .sp-in { height: 42px; font-size: 16px; min-width: 0; width: 100%; }
  .sp-when, .mk-when { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6px 8px; }
  .sp-when .sp-k, .mk-when .sp-k, .sp-when small, .mk-when small { grid-column: 1 / -1; }
}

/* 승인 칸: 게시글 줄 아래 스토리 줄 (2026-10-26) */
.mk-story-row { margin: 2px 0 8px; }
.mk-story-row .mk-story-note { font-size: 13px; color: var(--muted); }

/* 아이디어 탭: 개요의 제안 카드와 같은 모양 (2026-10-26) */
.ideas-v .sg-list { margin: 0 0 8px; }
/* 아이디어 탭의 하위 탭: 아이디어 · ✍️ 제작 중 (2026-10-27) */
.ideas-tabs { margin: 2px 0 4px; }
.ideas-tabs .seg { height: 36px; padding: 0 16px; font-size: 14px; }
.ideas-tabs + .flow-sec { margin-top: 16px; }
.ideas-v .tag { display: inline-block; font-size: 12px; line-height: 20px; padding: 0 7px; border-radius: 4px; background: var(--pill-gray); color: var(--pill-gray-t); font-weight: 500; white-space: nowrap; }
.ideas-v .tag.blue { background: #e3eefb; color: #1c5cab; }
.ideas-v .tag.purple { background: #efe7f8; color: #6b3fa0; }
.ideas-v .tag.pink { background: #fbe6ef; color: #a8336a; }
.ideas-v .tag.brown { background: #f3ebe4; color: #7a5232; }
.ideas-v .tag.orange { background: var(--pill-orange); color: var(--pill-orange-t); }
.ideas-v .idea-title { color: inherit; text-decoration: none; }
.ideas-v .idea-title:hover { text-decoration: underline; }
.ideas-v .sg-main .f .v.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.ideas-v .sg-row.making { background: #fffaf3; }
.ideas-v .idea-making { margin: 2px 0 0; font-size: 13px; color: #8a4b14; font-weight: 600; }
.sg-ref-btn { background: none; border: 0; padding: 0; text-align: left; font: inherit; cursor: zoom-in; }
.if-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.if-chip { height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.if-chip.on { background: #191919; border-color: #191919; color: #fff; }
.ideas-v .sg-expand { display: block; width: 100%; margin: 4px 0 12px; height: 38px; border: 1px dashed var(--line); border-radius: 10px; background: none; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }

/* 아이디어 카드 — 휴대폰 배치 (2026-10-26) */
.ideas-v .idea-more { display: contents; }
.ideas-v .idea-more-btn { display: none; }
@media (max-width: 720px) {
  .ideas-v .sg-row > .sg-refs { order: -1; }
  .ideas-v .sg-main > .sg-act, .ideas-v .sg-main > .idea-making { order: 4; }
  .ideas-v .sg-main > .idea-more-btn { order: 5; }
  .ideas-v .sg-main > .idea-more { order: 6; display: none; }
  .ideas-v .sg-row.open .sg-main > .idea-more { display: flex; flex-direction: column; gap: 8px; }
  .ideas-v .idea-more-btn { display: block; width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--side); font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
  .ideas-v .sg-act .btn { height: 40px; font-size: 14px; }
  .ideas-v .sg-act .btn.primary { flex: 1 1 auto; justify-content: center; }
  .ideas-v .sg-main .f { grid-template-columns: 72px minmax(0, 1fr); }
}

/* ── 자동화 > FRAM (2026-10-26) ── */
.auto .subtitle { line-height: 1.5; }
.auto-tabs { margin: 12px 0 8px; }
.auto-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.auto-tile { min-width: 130px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); display: flex; flex-direction: column; gap: 2px; }
.auto-tile span { font-size: 12px; color: var(--muted); }
.auto-tile b { font-size: 20px; }
.auto-tile.red b { color: #c0392b; }
.auto-tile.yellow b { color: #b7791f; }
.auto-tile.purple b { color: #6b46c1; }
.auto-sec { margin: 22px 0; }
.auto-sec h2 { font-size: 17px; margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.auto-toggle { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted); cursor: pointer; }
.auto-table th.r, .auto-table td.r { text-align: right; white-space: nowrap; }
.auto-table td.b { font-weight: 600; }
.auto-table td.bad { color: #c0392b; font-weight: 600; }
.auto-table td.text { max-width: 360px; color: var(--muted); font-size: 13px; }
.auto-name { font-size: 13px; color: var(--muted); }
.auto-open { cursor: pointer; }
.auto-detail td { background: var(--side); }
.auto-sub { padding: 6px 4px 2px; font-size: 13px; }
.auto-sub table { margin-top: 6px; }
.auto-warn { margin: 6px 0; padding: 6px 8px; border-radius: 6px; background: #fff3cd; color: #7a5a00; font-size: 13px; }
.auto-more { display: inline-block; margin: 8px 0; font-size: 13px; }

/* ── 자동화 v2: 한눈에 · 재고 · 판매 분석 (2026-10-26) ── */
.auto .crumbs { font-size: 13px; color: var(--muted); }
.auto-tile small { font-size: 12px; color: var(--muted); }
.auto-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.auto-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card, #fff); }
.auto-card h2 { font-size: 17px; margin: 2px 0 8px; }
.auto-card .auto-tiles { margin: 0 0 10px; }
.auto-card .auto-tile { flex: 1 1 140px; }
.auto-card .auto-tile b { font-size: 17px; }
.auto-mini { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 44px; }
.spark i { flex: 1; min-width: 3px; border-radius: 2px 2px 0 0; opacity: .85; }
.auto-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; }
.auto-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.auto-chips .chip { border: 1px solid var(--line); background: var(--card, #fff); border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; color: inherit; }
.auto-chips .chip.on { background: #191919; color: #fff; border-color: #191919; }
.auto-search { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; min-width: 200px; font: inherit; }
.auto-filter select { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; background: var(--card, #fff); }
.auto-table td.out { color: #c0392b; }
.auto-table td.in { color: #2e7d32; }
.auto-table tr.on td { background: #fff7e0; }
.auto-legend { display: flex; gap: 12px; font-size: 13px; color: var(--muted); margin-left: auto; }
.auto-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.vbars { display: flex; gap: 14px; align-items: flex-end; height: 200px; padding: 18px 4px 0; margin: 6px 0 12px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.vb-group { display: flex; flex-direction: column; align-items: center; min-width: 64px; height: 100%; }
.vb-cols { flex: 1; display: flex; align-items: flex-end; gap: 4px; width: 100%; justify-content: center; }
.vb { width: 24px; border-radius: 4px 4px 0 0; position: relative; }
.vb span { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.vb-label { font-size: 12px; margin-top: 4px; }
.vb-sub { font-size: 12px; color: var(--faint, #999); }
.auto-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.hbar { display: flex; height: 10px; border-radius: 3px; overflow: hidden; background: var(--side); min-width: 120px; }
.hbar i { display: block; height: 100%; }
.auto-table td.barcell { width: 45%; vertical-align: middle; }
.brand-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-left: 6px; vertical-align: 1px; }
@media (max-width: 640px) { .auto-cards, .auto-two { grid-template-columns: 1fr; } .auto-search { min-width: 0; flex: 1; } }

/* Claude 사용량 — 계정별 포털 버튼(API) ↔ PC 작업 (2026-10-26) */
.cu-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 10px; max-width: 900px; }
.cu-card { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 14px 16px; }
.cu-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; font-size: 15px; margin: 0 0 10px; }
.cu-ratio { font-size: 12px; font-weight: 700; color: #1c5cab; background: #e3eefb; border-radius: 10px; padding: 1px 9px; }
.cu-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; }
.cu-col { border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cu-col.api { background: #fbf7ea; }
.cu-col.pc { background: #eef4fc; }
.cu-col.none { color: var(--faint); }
.cu-k { font-size: 13px; font-weight: 600; color: var(--muted); }
.cu-col b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cu-col small { font-size: 13px; color: var(--muted); }
.cu-col .cu-who { color: var(--faint); font-size: 12px; }
.cu-bar { height: 6px; border-radius: 3px; background: rgba(0,0,0,.06); overflow: hidden; margin: 4px 0 2px; }
.cu-bar i { display: block; height: 100%; border-radius: 3px; }
.cu-bar.api i { background: #d9a520; }
.cu-bar.pc i { background: #2f6fd0; }
@media (max-width: 720px) { .cu-cols { grid-template-columns: minmax(0, 1fr); } .cu-col b { font-size: 20px; } }
.cu-col .cu-ours { color: #9a5b00; font-size: 12px; background: #fff1d6; border-radius: 6px; padding: 3px 7px; margin-top: 2px; }
.cu-col .cu-asif { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 6px; padding: 7px 10px; border-radius: 8px; background: #fff; border: 1px solid #d5e3f6; font-size: 13px; color: #1c5cab; }
.cu-col .cu-asif b { font-size: 15px; }
.cu-col .cu-asif em { font-style: normal; font-size: 12px; font-weight: 700; color: #1d7a46; background: #eaf6ef; border-radius: 10px; padding: 1px 8px; white-space: nowrap; }

/* ── 자동화 v3: 누를 수 있는 카드 (2026-10-26) ── */
a.auto-tile { color: inherit; text-decoration: none; }
.auto-tile.go { cursor: pointer; position: relative; transition: border-color .15s, box-shadow .15s; }
.auto-tile.go::after { content: '→'; position: absolute; top: 8px; right: 10px; font-size: 12px; color: var(--faint, #aaa); }
.auto-tile.go:hover { border-color: #191919; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.auto-tile.go:hover::after { color: #191919; }
/* 확인 필요 탭: 세 칸이 탭처럼 보이게 (2026-11-02) */
.todo-tabs { gap: 12px; margin: 10px 0 6px; }
.todo-tabs .auto-tile.go { flex: 1 1 210px; max-width: 320px; padding: 12px 16px 14px; background: #faf9f7; opacity: .8; }
.todo-tabs .auto-tile.go::after { content: '눌러서 보기'; font-size: 12px; }
.todo-tabs .auto-tile.go:hover { opacity: 1; }
.todo-tabs .auto-tile.go.on { opacity: 1; background: #fff; border: 2px solid #191919; box-shadow: 0 3px 10px rgba(0,0,0,.10); padding: 11px 15px 13px; }
.todo-tabs .auto-tile.go.on::after { content: '보는 중'; color: #191919; font-weight: 600; }
.todo-tabs .auto-tile.go.on span { color: #191919; font-weight: 600; }
.todo-sec-title { font-size: 17px; font-weight: 700; margin: 14px 0 4px; padding-bottom: 6px; border-bottom: 2px solid #191919; }
.todo-group { font-size: 14px; font-weight: 700; margin: 18px 0 8px; color: var(--muted); }
.todo-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; background: #fff; }
.todo-card.done { border-color: #c6e0c6; background: #f8fcf8; }

/* ⭐ 스토리 하이라이트 (2026-10-27) */
.hl-ctl { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hl-pill { display: inline-block; font-size: 13px; line-height: 22px; padding: 0 8px; border-radius: 11px; background: #fff3d6; color: #8a5a00; white-space: nowrap; }
.hl-pill.sm { font-size: 12px; line-height: 18px; padding: 0 6px; }
.hl-note { color: var(--faint); font-size: 12px; }
.hl-done { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #b45309; cursor: pointer; }
.hl-done.on { color: var(--faint); }
:root[data-theme="dark"] .hl-pill { background: #3d2f12; color: #f3c769; }

/* 채우기: 유형 필터 · AI 추천 순 (2026-10-27) */
.pf { margin: 4px 0 12px; }
.pf-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.pf-chips, .pf-sorts { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chip, .pf-sort { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; }
.pf-chip.on, .pf-sort.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.pf-sort:disabled { opacity: .45; cursor: default; }
.pf-n { margin-left: 5px; font-size: 12px; opacity: .7; }
.pf-note { margin: 8px 0 0; font-size: 13px; color: var(--faint); line-height: 1.5; }
.pf-note b { color: var(--text); }
.pick-img { position: relative; }
.pick-rank { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; border-radius: 11px; background: #111; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.pick-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pick-tag { font-size: 12px; line-height: 20px; padding: 0 7px; border-radius: 10px; background: #eef0f3; color: #475467; }
.pick-tag.hot { background: #fde8e8; color: #b42318; }
.pick small.pick-sum { color: var(--text); opacity: .85; }
.pick small.pick-why { color: #8a5a00; }
.pick small.pick-due { color: #b42318; font-weight: 600; }
.pick small.pick-due.late { background: #fde8e8; border-radius: 4px; padding: 1px 4px; }
:root[data-theme="dark"] .pick-tag { background: #2a2f37; color: #c4cad3; } :root[data-theme="dark"] .pick-tag.hot { background: #4a1d1d; color: #ffb4ab; } :root[data-theme="dark"] .pick small.pick-why { color: #f3c769; } :root[data-theme="dark"] .pick small.pick-due { color: #ff8a80; } :root[data-theme="dark"] .pick small.pick-due.late { background: #4a1d1d; }

/* 아이디어 필터 — 줄마다 묶음 (2026-10-27) */
.if-bar { flex-direction: column; align-items: stretch; gap: 6px; }
.if-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.if-k { font-size: 12px; font-weight: 600; color: var(--faint); width: 66px; flex: none; white-space: nowrap; }
.if-row.sub { padding: 6px 0 6px 10px; margin-left: 4px; border-left: 2px solid var(--line); }
.if-row.sub .if-chip { height: 28px; font-size: 13px; }
.if-chip.gA:not(.on) { border-color: #bfe3cd; color: #1d7a46; }
.if-chip.gB:not(.on) { border-color: #c9dbf3; color: #1c5cab; }
.if-chip.gC:not(.on) { color: var(--faint); }
.g-badge { font-size: 12px; font-weight: 700; line-height: 20px; padding: 0 7px; border-radius: 4px; }
.g-badge.gA { background: #e3f4ea; color: #1d7a46; }
.g-badge.gB { background: #e3eefb; color: #1c5cab; }
.g-badge.gC { background: var(--pill-gray); color: var(--pill-gray-t); }
@media (max-width: 720px) { .if-k { width: 100%; } }

/* 현장 묶음 이름 (주거 · 상업 · 모음, 2026-10-27) */
.site-grp { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--faint); padding: 0 2px 0 8px; }
.site-grp:first-child, .if-k + .if-chip + .site-grp { padding-left: 2px; }
.grp-br { flex-basis: 100%; height: 0; }
.if-row.sub .grp-br { margin-left: 66px; }

/* 게시물 관리 (2026-10-27): 날짜 · 시간 따로 · 끌어서 옮기기 · 삭제 */
.date-ctl { display: inline-flex; gap: 4px; align-items: center; }
.mc.movable { cursor: grab; }
.mc.dragging { opacity: .45; }
.mcal-day.drop-on { outline: 2px dashed var(--accent, #2f6fd0); outline-offset: -2px; background: #eef4fc; }
.sheet-btns .sheet-left { margin-right: auto; }
.make-box .mk-row.mk-sub { margin-top: 6px; }
.make-box .mk-row.mk-sub .btn { height: 34px; }

/* 채우기: 현장 · 프로젝트 (2026-10-27) */
.pf-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0 4px; padding: 4px 0 4px 10px; border-left: 2px solid var(--line); }
.pf-k { font-size: 12px; font-weight: 600; color: var(--faint); margin-right: 4px; white-space: nowrap; }
.pf-chip.sm { padding: 3px 10px; font-size: 13px; }
.pf-sub .grp-br { flex-basis: 100%; height: 0; }
.pick small.pick-site { color: var(--muted); font-weight: 600; }
.pick small.pick-clash { color: #b45309; background: #fff4e0; border-radius: 4px; padding: 1px 4px; }
:root[data-theme="dark"] .pick small.pick-clash { background: #3d2f12; color: #f3c769; }

/* 승인 취소 버튼 색 — '+ 채우기'(점선 흰 버튼)와 구분 (2026-10-27 사용자: "저 둘이 구분이 안되") */
.mc-cancel { border: 1px solid #f0c9c6; background: #fdf1f0; color: #b42d2d; font-weight: 600; }
.mc-cancel:hover { border-color: #e3a29d; background: #fbe1df; color: #9b2222; }

/* 컴퓨터용 날짜 · 시간 창 (2026-10-27) */
.dp-pop { position: fixed; z-index: 60; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 15, 15, .16); padding: 14px; width: max-content; max-width: calc(100vw - 16px); }
.dp-body { display: flex; gap: 16px; }
.dp-cal { width: 252px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dp-head b { font-size: 14px; }
.dp-nav { border: 0; background: none; width: 28px; height: 28px; border-radius: 6px; font-size: 18px; cursor: pointer; color: var(--muted); }
.dp-nav:hover { background: var(--hover); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { text-align: center; font-size: 12px; color: var(--faint); padding: 2px 0 4px; }
.dp-wd.we, .dp-day.we { color: #c2410c; }
.dp-day { position: relative; height: 32px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.dp-day:hover:not(:disabled) { background: var(--hover); }
.dp-day:disabled { color: var(--faint); opacity: .45; cursor: default; }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--line); }
.dp-day.slot::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 2px; background: var(--accent); }
.dp-day.on { background: #191919; color: #fff; }
.dp-day.on::after { background: #fff; }
.dp-side { width: 156px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); padding-left: 16px; }
.dp-k { font-size: 12px; font-weight: 600; color: var(--faint); }
.dp-time { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: var(--bg); color: var(--text); }
.dp-quick { display: flex; flex-wrap: wrap; gap: 4px; }
.dp-q { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 14px; padding: 3px 9px; font-size: 13px; cursor: pointer; }
.dp-q.on { background: #191919; border-color: #191919; color: #fff; }
.dp-hint { font-size: 12px; color: var(--faint); line-height: 1.4; }
.dp-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.dp-sum { flex: 1; font-size: 14px; font-weight: 600; }
:root[data-theme="dark"] .dp-day.on, :root[data-theme="dark"] .dp-q.on { background: #e9e9e7; color: #191919; border-color: #e9e9e7; }

/* ── 피드 미리보기 (승인 탭 · 2026-10-29): 인스타 폰 앱 · PC 웹 프로필 그리드 ── */
.fp-wrap { margin-top: 4px; }
.fp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 10px; }
.fp-bar .chip { cursor: pointer; height: 30px; }
.fp-sum { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fp-stage { display: flex; justify-content: center; padding: 18px 0 8px; }
.fp-ico { display: inline-flex; width: 24px; height: 24px; }
.fp-ico svg { width: 100%; height: 100%; display: block; }

/* 그리드: 3:4 칸, 1.5px 흰 줄 */
.fp-grid { display: grid; grid-template-columns: repeat(var(--fp-cols, 3), 1fr); gap: 1.5px; background: #fff; }
.fp-tile { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; margin: 0; background: #efefef; overflow: hidden; cursor: pointer; display: block; font: inherit; }
.fp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-tile:hover img { filter: brightness(.92); }
.fp-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; font-size: 12px; color: #999; text-align: center; }
.fp-kind { position: absolute; top: 7px; right: 7px; width: 19px; height: 19px; color: #fff; filter: drop-shadow(0 0 2px rgba(0,0,0,.45)); }
.fp-views { position: absolute; left: 6px; bottom: 5px; display: inline-flex; align-items: center; gap: 2px; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 0 3px rgba(0,0,0,.5); }
.fp-views .fp-ico { width: 13px; height: 13px; filter: drop-shadow(0 0 2px rgba(0,0,0,.45)); }
.fp-tile.due::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2.5px #2fbf71; pointer-events: none; }
.fp-tile.due.review::after { box-shadow: inset 0 0 0 2.5px #e6b422; }
.fp-due { position: absolute; top: 6px; left: 6px; max-width: calc(100% - 38px); background: #2fbf71; color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; padding: 0 7px; border-radius: 9px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.fp-due.review { background: #e6b422; color: #3b2a00; }
.fp-due b { font-weight: 700; }
.fp-due i { font-style: normal; font-weight: 700; }
.fp-due span { font-weight: 600; opacity: .92; }
.fp-stage.phone .fp-due { white-space: nowrap; font-size: 12px; line-height: 13px; padding: 3px 6px; border-radius: 7px; max-width: calc(100% - 32px); }
.fp-stage.phone .fp-due span { display: block; }
.fp-empty { grid-column: 1 / -1; padding: 40px 0; }

/* 탭 아이콘 줄 (그리드 · 릴스 · 태그) */
.fp-tabs { display: flex; justify-content: space-around; border-bottom: 1px solid #efefef; background: #fff; }
.fp-tabs > span { display: flex; justify-content: center; padding: 10px 0 9px; width: 33%; color: #8e8e8e; border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
.fp-tabs > span.on { color: #000; border-bottom-color: #000; }
.fp-tabs .fp-ico { width: 24px; height: 24px; }
.fp-tabs.pc { justify-content: center; gap: 0; border-bottom: 0; }
.fp-tabs.pc > span { width: auto; padding: 14px 70px 10px; }
.fp-tabs.pc > span.on { border-bottom-width: 2px; }

/* 폰 앱 */
.fp-phone { position: relative; width: 390px; height: 800px; max-width: 100%; border: 11px solid #111; border-radius: 52px; background: #fff; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.18); color: #000; font-family: -apple-system, 'Apple SD Gothic Neo', Pretendard, sans-serif; }
.fp-status { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font-size: 15px; }
.fp-sig { display: inline-flex; align-items: flex-end; gap: 2px; }
.fp-sig i { display: block; width: 3px; background: #000; border-radius: 1px; }
.fp-sig i:nth-child(1) { height: 4px; } .fp-sig i:nth-child(2) { height: 6px; } .fp-sig i:nth-child(3) { height: 8px; } .fp-sig i:nth-child(4) { height: 10px; }
.fp-bat { width: 24px; height: 11px; border-radius: 3.5px; background: #000; margin-left: 6px; }
.fp-scroll { position: absolute; top: 46px; left: 0; right: 0; bottom: 0; overflow-y: auto; scrollbar-width: none; padding-bottom: 96px; }
.fp-scroll::-webkit-scrollbar { display: none; }
.fp-top { display: flex; align-items: center; gap: 4px; padding: 6px 16px 12px; font-size: 21px; }
.fp-top b { font-weight: 700; letter-spacing: -.2px; }
.fp-chev { width: 7px; height: 7px; border-right: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(45deg); margin: -5px 0 0 7px; }
.fp-dock { position: absolute; left: 22px; right: 22px; bottom: 22px; height: 58px; border-radius: 29px; display: flex; align-items: center; justify-content: space-around;
  background: rgba(255,255,255,.72); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 4px 20px rgba(0,0,0,.14); color: #111; }
.fp-dock .fp-ico { width: 26px; height: 26px; }
.fp-me { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: #fff; box-shadow: 0 0 0 1.5px #111; }

/* PC 웹 */
.fp-stage.pc { display: block; }
.fp-pc { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.fp-chrome { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 14px; background: #f1f1f1; border-bottom: 1px solid #e3e3e3; }
.fp-dots { display: inline-flex; gap: 6px; }
.fp-dots i { width: 11px; height: 11px; border-radius: 50%; background: #d4d4d4; }
.fp-url { flex: 1; max-width: 420px; height: 24px; line-height: 24px; border-radius: 12px; background: #fff; padding: 0 12px; font-size: 12px; color: #666; }
.fp-pc-body { max-height: 760px; overflow-y: auto; padding: 0 2.6% 24px; }

@media (max-width: 640px) {
  .fp-sum { margin-left: 0; width: 100%; }
  .fp-stage { padding-top: 8px; }
  .fp-phone { width: 100%; height: 72vh; border-width: 8px; border-radius: 34px; }
  .fp-tabs.pc > span { padding: 10px 26px 8px; }
  .fp-pc-body { padding: 0 0 16px; }
  .fp-due { font-size: 9.5px; line-height: 15px; padding: 0 5px; top: 4px; left: 4px; max-width: calc(100% - 28px); }
  .fp-kind { width: 15px; height: 15px; top: 5px; right: 5px; }
  .fp-stage.phone .fp-due { font-size: 9.5px; line-height: 12px; padding: 2px 5px; max-width: calc(100% - 26px); }
  .fp-stage.pc .fp-due { max-width: calc(100% - 8px); padding: 0 4px; font-size: 9px; }
  .fp-stage.pc .fp-due b, .fp-stage.pc .fp-due span { display: none; }
  .fp-stage.pc .fp-tile.due .fp-kind { display: none; }
}

/* 인스타 연결 (새 방식 · 시험) — 계정 관리 화면 */
.igc-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.igc-bar .sort-sel { max-width: 100%; }

/* 회원가입 · 인스타 연결 · 내 인스타 (2026-10-30) */
.login-card.wide { max-width: 460px; }
.auth-switch { margin: 18px 0 0 !important; text-align: center; font-size: 14px !important; }
.auth-switch a { color: var(--accent); }
.auth-agree { margin: 4px 0 14px; font-size: 13px; color: var(--muted); align-items: flex-start; }
.auth-agree input { margin-top: 3px; flex: none; }
.myig-reconnect { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; font-size: 13px; }
/* 이메일 인증코드 가입 (2026-11-02): 코드 다시 받기는 글자 버튼 */
.signup-email .link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--accent); cursor: pointer; text-decoration: underline; }
.signup-email .link-btn:disabled { color: var(--faint); cursor: default; text-decoration: none; }
.signup-email input[name="code"] { font-size: 20px; letter-spacing: 6px; text-align: center; }
.auth-list { margin: -8px 0 20px; padding-left: 18px; font-size: 14px; color: var(--muted); }
.auth-list li { margin: 4px 0; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 4px 0 20px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); }
.steps li + li::before { content: ''; width: 14px; height: 1px; background: var(--line); margin-right: 2px; }
.steps b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.steps li.on { color: var(--text); font-weight: 600; }
.steps li.on b { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li.done { color: var(--muted); }
.steps li.done b { background: var(--pill-green); border-color: var(--pill-green); color: var(--pill-green-t); }
.myig-banner { background: var(--pill-green); color: var(--pill-green-t); border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; font-size: 14px; }
.myig-head { display: flex; gap: 20px; align-items: flex-start; margin: 0 0 24px; }
.myig-pic { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--side); border: 1px solid var(--line); flex: none; }
.myig-who { min-width: 0; }
.myig-handle { font-size: 18px; font-weight: 600; text-decoration: none; }
.myig-name { color: var(--muted); font-size: 14px; }
.myig-stats { display: flex; gap: 20px; margin: 8px 0; }
.myig-stat b { display: block; font-size: 17px; }
.myig-stat span { font-size: 13px; color: var(--muted); }
.myig-bio { margin: 6px 0; white-space: pre-line; font-size: 14px; overflow-wrap: anywhere; }
.myig-web { color: var(--accent); font-size: 14px; overflow-wrap: anywhere; }
.myig-conn { margin: 0 0 24px; }
.myig-conn ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.myig h2 { font-size: 16px; margin: 0 0 10px; }
.myig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.myig-cell { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--side); }
.myig-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.myig-noimg { display: grid; place-items: center; height: 100%; color: var(--faint); font-size: 12px; }
.myig-type { position: absolute; top: 6px; right: 8px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); font-size: 13px; }
.myig-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
@media (max-width: 560px) {
  .myig-head { flex-direction: column; gap: 12px; }
  .myig-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .myig-meta { display: none; }
}
/* 구글 · 카카오로 시작하기 */
.social { display: grid; gap: 8px; margin: 0 0 4px; }
.social:empty { display: none; }
.social-btn { display: flex !important; align-items: center; justify-content: center; gap: 10px; height: 42px; border-radius: var(--radius); font-weight: 600; }
.social-btn.google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.social-btn.kakao { background: #FEE500; color: rgba(0, 0, 0, .85); border: 1px solid #FEE500; }
.social-btn:disabled { opacity: .6; }
.social .or { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; color: var(--faint); font-size: 13px; }
.social .or::before, .social .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-agree a { color: var(--accent); }
.auth-agree span { color: var(--muted) !important; font-size: 13px !important; }
/* 내 인스타 — 성과 요약 · 게시물 창 (2026-10-30, Meta 검수 시연) */
.myig-perf { margin: 0 0 24px; }
.myig-perf-t td, .myig-perf-t th { text-align: right; white-space: nowrap; }
.myig-perf-t td:first-child, .myig-perf-t th:first-child { text-align: left; }
.myig-hint { font-size: 13px; margin: -4px 0 10px; }
button.myig-cell { border: 0; padding: 0; cursor: pointer; font: inherit; }
.igp-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.igp-img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; flex: none; }
.igp-cap { margin: 0 0 6px; white-space: pre-line; font-size: 14px; overflow-wrap: anywhere; }
.igp h3 { font-size: 15px; margin: 16px 0 8px; }
.igp-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.igp-stats .myig-stat { background: var(--side); border-radius: 8px; padding: 8px 10px; }
.igp-cs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.igp-c { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; overflow-wrap: anywhere; }
.igp-c.hidden { opacity: .6; }
.igp-r { list-style: none; margin: 6px 0 0 12px; padding: 0 0 0 10px; border-left: 2px solid var(--line); font-size: 14px; }
.igp-act { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.igp-reply { flex: 1 1 180px; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 560px) { .igp-top { flex-direction: column; } .igp-img { width: 100%; height: auto; aspect-ratio: 1; } }
/* 검토 대기 카드의 날짜 — 누르면 달력 (2026-10-30) */
.fc-rec .fc-date { font-size: inherit; color: inherit; margin: -2px 0; padding: 1px 4px; text-decoration: underline dotted; text-underline-offset: 3px; }
.fc-rec .fc-date:hover { background: var(--hover); text-decoration-style: solid; }
/* 참고 계정 넣기 · 빼기 (2026-10-30) */
.ov-bench-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.ov-bench-in { flex: 1 1 240px; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 14px; }
.ov-bench-add small { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.ov-bench-msg { flex-basis: 100%; color: var(--danger); font-size: 13px; }
.ov-bench-msg:empty { display: none; }
.ov-acc { position: relative; }
.ov-acc-x { position: absolute; right: 8px; bottom: 8px; border: 0; background: none; color: var(--faint); font-size: 12px; cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.ov-acc-x:hover { color: var(--danger); background: var(--hover); }

/* 토큰 지갑 (2026-10-30) */
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 0 0 10px; }
.wallet { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wallet.zero { border-color: #e7b9b5; }
.wallet-head { font-weight: 600; font-size: 14px; }
.wallet-bal { display: flex; align-items: baseline; gap: 8px; }
.wallet-bal b { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wallet-bal span { font-size: 13px; color: var(--muted); }
.wallet.zero .wallet-bal b { color: #b42d2d; }
.wallet-warn { margin: 0; font-size: 13px; color: #b42d2d; background: #fbeceb; border-radius: 8px; padding: 8px 10px; }
.wallet-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.wallet-in { height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; background: var(--bg); color: inherit; min-width: 0; flex: 1 1 120px; }
.wallet-row .btn { flex: 0 0 auto; }
.wallet-line { margin: 0; font-size: 13px; }
.wallet-led { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.wallet-led li { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.wallet-led li > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-led li > small { flex: 0 0 auto; font-size: 12px; }
.wallet-led li > b { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.wallet-led b.neg { color: var(--muted); font-weight: 500; }
.wallet-led b.pos { color: #1f7a4a; }
.wallet-admin { margin: 0 0 24px; }
.wallet-admin h3 { font-size: 14px; margin: 16px 0 6px; }
.wallet-admin .wallet-led li > span { white-space: normal; }
:root[data-theme="dark"] .wallet-warn { background: #4a1d1d; color: #ffb4ab; }
:root[data-theme="dark"] .wallet.zero { border-color: #6b2b2b; }
:root[data-theme="dark"] .wallet.zero .wallet-bal b { color: #ff8a80; }
:root[data-theme="dark"] .wallet-led b.pos { color: #6fd39a; }

/* 자료 분석 및 학습 탭 (2026-10-30) */
.learn { display: flex; flex-direction: column; gap: 28px; margin-top: 8px; }
.learn-sec { min-width: 0; }
.learn-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; }
.learn-head h2 { font-size: 17px; margin: 0; }
.learn-bal { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.learn-bal:hover { background: var(--hover); }
.learn-bal.zero { color: #b42d2d; border-color: #e7b9b5; }
.learn-desc { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.ask-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.ask-in { width: 100%; box-sizing: border-box; resize: vertical; min-height: 56px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; line-height: 1.5; background: var(--bg); color: inherit; }
.ask-in:focus { outline: none; border-color: var(--accent); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-chip { border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.ask-chip:hover { color: inherit; background: var(--hover); }
.ask-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ask-cost { margin-left: auto; font-size: 12px; color: var(--faint); }
.ask-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.ask-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); min-width: 0; }
.ask-card.analyze { border-left: 3px solid var(--accent); }
.ask-q { font-weight: 600; font-size: 14px; margin: 0 0 8px; word-break: break-word; }
.ask-ans { font-size: 14px; line-height: 1.65; word-break: break-word; }
.ask-ans p { margin: 0 0 6px; }
.ask-ans ul, .ask-ans ol { margin: 0 0 8px; padding-left: 20px; }
.ask-ans li { margin: 2px 0; }
.ask-ans a { color: var(--accent); }
.ask-meta { margin-top: 8px; font-size: 12px; color: var(--faint); }
.ask-empty { font-size: 13px; color: var(--faint); margin: 4px 0; }
.learn-sec > .idea-row { margin-top: 4px; }
@media (max-width: 640px) {
  .ask-row .btn { flex: 1 1 auto; height: 40px; }
  .ask-cost { margin-left: 0; flex-basis: 100%; }
}
:root[data-theme="dark"] .learn-bal.zero { color: #ff8a80; border-color: #6b2b2b; }

/* ── 🧠 이 계정에서 배운 것 (2026-11-01, app.js prefsSection) ── */
.pref-sec .learn-head h2 { font-size: 17px; }
.pref-count { margin-left: auto; font-size: 13px; color: #18794e; background: #e8f4ec; border-radius: 999px; padding: 3px 10px; }
.pref-sugg { border: 1px solid #f0d9a8; background: #fffaf0; border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.pref-sugg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; margin-bottom: 6px; }
.pref-sugg-head .muted { font-size: 13px; }
.pref-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pref-rule { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pref-rule.sugg { border-color: #f0d9a8; }
.pref-rule.off .pref-text { color: var(--muted); text-decoration: line-through; }
.pref-cat { font-size: 12px; color: var(--muted); }
.pref-text { font-size: 15px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.pref-meta { font-size: 12px; color: var(--muted); }
.pref-ev { font-size: 13px; color: var(--muted); }
.pref-ev summary { cursor: pointer; width: fit-content; }
.pref-ev ul { margin: 6px 0 2px; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.pref-ev a { color: inherit; }
.pref-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pref-groups { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.pref-group-title { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.pref-add, .pref-edit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pref-in { flex: 1 1 260px; min-width: 0; height: 36px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 14px; background: var(--bg); color: inherit; }
.pref-in:focus { outline: none; border-color: var(--accent); }
.pref-cat-in { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 14px; background: var(--bg); color: inherit; }
.pref-edit .pref-in, .pref-edit .pref-cat-in { height: 32px; }
.pref-off, .pref-log { margin-top: 12px; font-size: 13px; }
.pref-off summary, .pref-log summary { cursor: pointer; color: var(--muted); width: fit-content; }
.pref-off .pref-list { margin-top: 8px; }
.pref-log ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.pref-log li { display: flex; gap: 8px; align-items: baseline; line-height: 1.45; }
.pref-log li small { flex: none; }
.pref-log li a { color: inherit; }
.pref-log-ico { flex: none; width: 18px; text-align: center; }
.pref-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pref-chip { font-size: 13px; text-decoration: none; color: #1f5c80; background: #e9f2f8; border-radius: 999px; padding: 3px 10px; line-height: 1.4; }
.pref-chip:hover { background: #d3e5ef; }
@media (max-width: 640px) {
  .pref-add .btn, .pref-cat-in { flex: 1 1 auto; }
  .pref-count { margin-left: 0; }
}

/* ── 📁 현장 사진 (2026-11-02, app.js sitesView · db/sites.sql) ── */
.sites { display: flex; flex-direction: column; gap: 16px; }
.site-upload { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.site-upload-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.site-upload-head h2 { font-size: 17px; margin: 0 auto 0 0; }
.site-upload .btn, .site-acts .btn { text-decoration: none; display: inline-flex; align-items: center; }
.site-rules { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.6; display: flex; flex-direction: column; gap: 4px; word-break: keep-all; }
.site-note, .site-help { font-size: 13px; color: var(--muted); margin: 4px 0 8px; line-height: 1.5; }
.site-admin { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; font-size: 13px; }
.site-admin summary { cursor: pointer; color: var(--muted); }
.site-admin-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.site-admin-row label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; font-size: 12px; color: var(--muted); }
.site-list-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.site-list-head h2 { font-size: 17px; margin: 0; }
.site-list-head .btn { margin-left: auto; }
.site-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.site-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.site-card.new { border-color: #f0d9a8; background: #fffaf0; }
.site-card.archived { opacity: .7; }
.site-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-head h3 { font-size: 16px; margin: 0 6px 0 0; word-break: keep-all; }
.site-facts { font-size: 14px; }
.site-media { font-size: 13px; }
.site-line { font-size: 13px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.site-story { font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; border-left: 3px solid var(--line); padding-left: 10px; margin: 2px 0; }
.site-analysis { font-size: 13px; color: var(--muted); }
.site-analysis summary { cursor: pointer; }
.site-analysis-body { white-space: pre-wrap; line-height: 1.55; color: var(--text); margin-top: 6px; }
.site-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.site-form { border: 1px solid var(--accent); border-radius: 12px; padding: 14px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; grid-column: 1 / -1; }
.site-form h3 { margin: 0; font-size: 16px; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 12px; }
.site-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0; }
.site-field > span { font-weight: 600; }
.site-in, .site-ta { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; font-size: 14px; background: var(--bg); color: var(--text); }
.site-in { height: 36px; }
.site-in.sm { max-width: 240px; }
.site-ta { resize: vertical; line-height: 1.5; }
.site-consent { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--text); }
.site-consent label { display: inline-flex; align-items: center; gap: 4px; }
.site-form-acts { display: flex; gap: 8px; }
.site-archived summary { cursor: pointer; color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
:root[data-theme="dark"] .site-card.new { background: #2a2416; border-color: #6b5a2b; }
@media (max-width: 640px) {
  .site-cards { grid-template-columns: 1fr; }
  .site-list-head .btn { margin-left: 0; flex-basis: 100%; height: 40px; }
}
.site-steps { margin: 6px 0 10px; padding-left: 22px; font-size: 14px; line-height: 1.75; word-break: keep-all; }
.site-link-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.site-link-row .site-in { flex: 1 1 320px; }

/* ── 계정 제목 옆 '내 인스타' 버튼 (2026-11-03) ─────────────────── */
.title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 10px; }
.title-row h1.title { margin: 0; }
.title-row .myig-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text, #222); white-space: nowrap; }
.title-row .myig-btn:hover { background: var(--hover); }


/* ── 2026-11-03 UX 검토 ───────────────────────────── */
/* 카드의 ··· 단추 */
.fc-act .fc-more { flex: 0 0 auto; min-width: 36px; padding: 0 8px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.fc-act .fc-more:hover { background: var(--hover); color: var(--text); }

/* 휴대폰: 확인 필요 글의 승인 단추를 화면 아래 고정 (승인 칸이 보이면 숨김) */
.approve-bar { display: none; }
@media (max-width: 820px) {
  .approve-bar { display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    transition: opacity .15s, transform .15s; }
  .approve-bar .ab-when { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .approve-bar .btn { flex: none; min-width: 150px; height: 44px; }
  .approve-bar.away { opacity: 0; transform: translateY(100%); pointer-events: none; }
  .page:has(.approve-bar) { padding-bottom: 130px; }
  .page:has(.approve-bar:not(.away)) .req-jump { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

/* 관리자 첫 화면 '오늘 할 일' */
.todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 4px 0 8px; }
.todo-sec { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 10px; background: #fff; min-width: 0; }
.todo-sec h2 { font-size: 15px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.todo-sec .empty { padding: 10px 0 8px; font-size: 13px; }
.todo-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.todo-sec h2 + .todo-row { border-top: 0; }
.todo-row:hover .todo-main { text-decoration: underline; }
.todo-who { font-size: 12px; color: var(--muted); white-space: nowrap; }
.todo-main { font-size: 14px; line-height: 1.45; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.todo-main small { display: block; font-size: 12px; color: var(--faint); margin-top: 1px; }
.todo-right { font-size: 12px; color: var(--muted); white-space: nowrap; }
.todo-flag { font-size: 12px; padding: 0 7px; border-radius: 4px; line-height: 20px; background: var(--pill-yellow); color: var(--pill-yellow-t); }
.todo-flag.bad { background: var(--pill-red); color: var(--pill-red-t); }
.todo-more { margin: 6px 0 0; font-size: 12px; color: var(--faint); }
.home-more { margin: 18px 0 0; }
.home-more > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 0; list-style: none; }
.home-more > summary::-webkit-details-marker { display: none; }
.home-more > summary::before { content: '▸ '; }
.home-more[open] > summary::before { content: '▾ '; }
@media (max-width: 820px) { .todo { grid-template-columns: minmax(0, 1fr); } }

/* ── 고객 화면 (2026-11-03 UX 검토 3-1 · 3-2): 메뉴 5개 · 오늘 할 일 · 콘텐츠 칩 · 더보기 ── */
.nav-ico { width: 20px; height: 20px; flex: none; display: inline-grid; place-items: center; }
.nav-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-ico.fill svg { fill: currentColor; stroke: none; }
.client-nav a { min-height: 40px; font-size: 15px; gap: 10px; }
.client-nav .nav-label { padding-top: 8px; font-size: 13px; }
.client-nav a.on .nav-ico { color: var(--accent); }
.tabbar { display: none; }
.shell.client .topbar button { display: none; }   /* 고객 휴대폰은 서랍 메뉴 대신 하단 탭 */
.shell.client .topbar { padding-left: 16px; }
@media (max-width: 820px) {
  .shell.client .side { display: none; }
  .shell.client .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 2px 0 calc(2px + env(safe-area-inset-bottom)); }
  .shell.client .tabbar.hide { display: none; }
  .tabbar .tb { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; min-height: 52px; text-decoration: none; color: var(--muted); font-size: 11px; position: relative; }
  .tabbar .tb.on { color: var(--text); font-weight: 600; }
  .tabbar .tb .nav-ico { width: 24px; height: 24px; }
  .tabbar .tb .nav-ico svg { width: 23px; height: 23px; }
  .tabbar .tb .badge { position: absolute; top: 2px; left: calc(50% + 6px); height: 17px; min-width: 17px; font-size: 11px; padding: 0 4px; }
  .shell.client .page { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
.client-page .acc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0 0 2px; }
.client-page .acc-line a { text-decoration: none; }
.client-page .acc-line a:hover { text-decoration: underline; }
.client-page h1.title { font-size: 28px; margin-bottom: 14px; }
.client-page .back-link { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin: 6px 0 2px; }
.client-page .back-link:hover { color: var(--text); }
@media (max-width: 820px) { .client-page h1.title { font-size: 23px; } }

/* 콘텐츠 › 상태 칩 (확인 필요 · 예약됨 · 게시됨 · 보관 · 아이디어) */
.chips-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding: 2px 0; }
.chips-row::-webkit-scrollbar { display: none; }
.chip-tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 17px; border: 1px solid var(--line); background: #fff;
  text-decoration: none; font-size: 14px; color: var(--muted); white-space: nowrap; }
.chip-tab:hover { background: var(--hover); color: var(--text); }
.chip-tab.on { background: var(--text); border-color: var(--text); color: #fff; font-weight: 600; }
.chip-tab .badge { height: 18px; min-width: 18px; font-size: 11px; padding: 0 5px; }
.chip-tab.on .badge { background: #fff; color: var(--text); }
@media (max-width: 820px) { .chips-row { margin: 0 -16px 14px; padding: 2px 16px; } .chip-tab { height: 36px; } }

/* 오늘 할 일 */
.ct { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.ct-done { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--side); font-size: 16px; }
.ct-sec { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 6px; background: #fff; min-width: 0; }
.ct-sec h2 { font-size: 16px; margin: 0 0 2px; display: flex; align-items: center; gap: 8px; }
.ct-range { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--faint); }
.ct-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ct-row.nothumb { grid-template-columns: minmax(0, 1fr) auto; }
.ct-rows > .ct-row:first-child { border-top: 0; }
.ct-thumb { display: block; width: 56px; height: 70px; border-radius: 8px; background: var(--side); overflow: hidden; }
.ct-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-main { min-width: 0; }
.ct-title { font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-title:hover { text-decoration: underline; }
.ct-q { font-size: 15px; line-height: 1.5; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-sub { font-size: 13px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-act { display: flex; gap: 6px; flex: none; }
.ct-act .btn { white-space: nowrap; }
.ct-more { display: block; font-size: 13px; color: var(--muted); padding: 10px 0 6px; border-top: 1px solid var(--line); text-decoration: none; }
.ct-more:hover { text-decoration: underline; }
.ct-week { padding-bottom: 14px; }
.ct-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.ct-num { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--side); min-width: 0; }
.ct-num .k { font-size: 13px; color: var(--muted); }
.ct-num .v { font-size: 24px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ct-num .d { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-num .d.up { color: #18794e; }
.ct-num .d.down { color: #b42d2d; }
.ct-line { margin: 10px 0 0; font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; word-break: keep-all; }
.ct-line a { color: var(--accent); text-decoration: none; white-space: nowrap; }
@media (max-width: 560px) {
  .ct-row { grid-template-columns: auto minmax(0, 1fr); }
  .ct-row .ct-act { grid-column: 2; }
  .ct-row.nothumb .ct-act { grid-column: 1 / -1; }
  .ct-act .btn { flex: 1; }
  .ct-num { padding: 10px 12px; }
  .ct-num .v { font-size: 20px; }
}

/* 더보기 */
.more-list { max-width: 560px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.more-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 13px 18px; border: 0; border-top: 1px solid var(--line);
  background: none; font: inherit; font-size: 15px; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.more-row:first-child { border-top: 0; }
.more-row:hover { background: var(--hover); }
.more-row small { color: var(--muted); font-size: 13px; }
.more-row::after { content: '›'; margin-left: auto; color: var(--faint); font-size: 20px; line-height: 1; }
.more-row.danger { color: var(--danger); }

/* 업체 한 곳만 쓰는 기능 = Custom: 다른 글씨(모노스페이스) + 꼬리표 (2026-11-03 사용자 "영어로 커스텀이라고") */
.nav-label.custom { font-family: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--pill-purple-t); }
.custom-tag, .more-row.custom small { font-family: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 11px; letter-spacing: .06em;
  padding: 0 6px; line-height: 18px; border-radius: 4px; border: 1px solid var(--pill-purple-t); color: var(--pill-purple-t); background: var(--pill-purple); white-space: nowrap; }
.nav a .custom-tag { margin-left: auto; }

/* ── 📎 학습 자료 주기 (2026-11-03) ─────────────────── */
.mat-form .pref-cat-in { height: 36px; }
.mat-picked { display: flex; flex-wrap: wrap; gap: 6px; }
.mat-picked:empty { display: none; }
.mat-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; color: inherit; text-decoration: none; background: var(--bg); word-break: break-all; }
a.mat-chip:hover { background: var(--hover); }
.mat-x { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 0 0 2px; }
.mat-x:hover { color: #b42d2d; }
.mat-sub { margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mat-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.mat-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); min-width: 0; }
.mat-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mat-head .btn { margin-left: auto; }
.mat-meta { font-size: 12px; color: var(--faint); }
.mat-note { margin: 8px 0 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.mat-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mat-thumb { display: block; width: 88px; height: 88px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f4f4f2; }
.mat-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mat-result { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--hover); font-size: 14px; }
.mat-result > b { display: block; margin-bottom: 4px; font-size: 13px; }

/* ── 자동화 > 월별 베스트 (2026-11-06, 사방넷 주문 자동 집계) ───────── */
.best { --brand: #8a7f73; }
.best .small { font-size: 12px; }
.best-right { margin-left: auto; }
.best-tile { flex: 1 1 200px; }
.best-tile small { line-height: 1.5; }
.best-diff.up { color: #2e7d32; }
.best-diff.down { color: #c0392b; }
.best-bars { display: flex; align-items: flex-end; gap: 3px; height: 190px; padding: 22px 2px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.best-bar { flex: 1 0 24px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; position: relative;
  border: 0; background: none; padding: 0; cursor: pointer; color: inherit; }
.best-bar i { display: block; width: 72%; max-width: 30px; border-radius: 3px 3px 0 0; background: var(--line); transition: background .15s; }
.best-bar:hover i { background: var(--faint); }
.best-bar.on i { background: var(--brand); }
.best-bar.part i { opacity: .5; }
.best-bar b { position: absolute; top: -20px; font-size: 12px; white-space: nowrap; }
.best-bar small { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; line-height: 1.4; }
.best-bar.on small { color: var(--text); font-weight: 600; }
.best-monthnav { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; }
.best-monthnav select { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 14px; background: var(--bg); color: inherit; }
.best-table td { vertical-align: middle; }
.best-rank { font-weight: 700; text-align: center; width: 32px; }
.best-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--side); border: 1px solid var(--line); display: block; flex: none; }
.best-thumb.none { display: grid; place-items: center; color: var(--faint); font-size: 10px; text-align: center; line-height: 1.2; }
.best-thumb.big { width: 150px; height: 150px; border-radius: 10px; font-size: 12px; }
.best-name { font-weight: 600; font-size: 14px; line-height: 1.4; }
.best-name .brand-dot { margin: 0 6px 0 0; }
.best-amt { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; font-weight: 600; }
.best-amt i { display: block; height: 6px; border-radius: 3px; background: var(--brand); opacity: .8; }
.best-move { font-weight: 600; font-size: 13px; }
.best-move.up { color: #2e7d32; }
.best-move.down { color: #c0392b; }
.best-move.new { color: #b7791f; }
.best-spark { display: flex; align-items: flex-end; gap: 1px; height: 24px; width: 84px; }
.best-spark i { flex: 1; min-height: 1px; background: var(--brand); opacity: .35; border-radius: 1px 1px 0 0; }
.best-spark i.on { opacity: 1; }
.best-detail { display: flex; gap: 16px; flex-wrap: wrap; padding: 8px 4px; }
.best-detail-main { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.best-detail-name { font-size: 15px; }
.best-trend { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding-top: 16px; }
.best-trend-col { flex: 1 1 0; max-width: 48px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.best-trend-col i { display: block; width: 70%; background: var(--brand); opacity: .4; border-radius: 3px 3px 0 0; }
.best-trend-col.on i { opacity: 1; }
.best-trend-col span { font-size: 10px; color: var(--muted); white-space: nowrap; }
.best-trend-col small { font-size: 10px; color: var(--muted); }
.best-detail-tables { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.best-detail-tables table { flex: 1 1 240px; width: auto; }
.best-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.best-card { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg); color: inherit; }
.best-card:hover { border-color: var(--brand); }
.best-card .best-thumb { width: 52px; height: 52px; }
.best-notes { padding-left: 18px; line-height: 1.6; }
.best-notes li { margin-bottom: 4px; }
@media (max-width: 640px) {
  .best-right { margin-left: 0; }
  .best-tile { flex: 1 1 140px; min-width: 0; }
  .best-bars { height: 160px; }
  .best-thumb.big { width: 100%; height: 220px; }
}
/* 브랜드별 판매 현황: 전체 현황 / 신제품 · 채널 구성 · 기간 누적 (2026-11-07) */
.best-views { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--side); margin: 2px 0 6px; }
.best-views button { border: 0; background: none; padding: 5px 14px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.best-views button.on { background: var(--bg); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.best-h3 { font-size: 15px; margin: 18px 0 6px; }
.best-legend { margin: 0 0 4px; flex-wrap: wrap; }
.best-bars.stack .best-stack { width: 72%; max-width: 30px; display: flex; flex-direction: column; border-radius: 3px 3px 0 0; overflow: hidden; }
.best-bars.stack .best-stack i { display: block; width: 100%; min-height: 1px; }
.best-bars.stack .best-bar { opacity: .75; }
.best-bars.stack .best-bar.on, .best-bars.stack .best-bar:hover { opacity: 1; }
.best-bars.stack .best-bar.part { opacity: .45; }
.best-bars.week .best-bar { flex: 1 0 40px; opacity: 1; cursor: default; }
.best-bars.week .best-stack { max-width: 44px; }
.best-bars.week b.wk { position: static; font-size: 11px; color: var(--muted); font-weight: 500; }
.best-line-wrap svg { width: 100%; height: auto; display: block; }
.best-line text { font-size: 12px; fill: var(--muted); }
.best-line text.lb { font-size: 13px; font-weight: 600; }
.best-line line.g { stroke: var(--line); stroke-width: 1; }
.best-sdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.best-schip.off { opacity: .45; text-decoration: line-through; }
.auto-table tr.best-off td { opacity: .45; }

/* 비서 브리핑 탭 (FRAM 자동화, 2026-11-07) */
.brief-sec ul, .brief-who ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.brief-item { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card, #fff); line-height: 1.5; }
.brief-sec.red .brief-item { border-left: 4px solid #c0392b; }
.brief-sec.yellow .brief-item { border-left: 4px solid #b7791f; }
.brief-who { margin: 10px 0 14px; }
.brief-who h3 { font-size: 15px; margin: 0 0 6px; }

/* 📌 담아 둔 참고 — 아이디어 탭 위 (WILLKIN 크롬 확장 · 2026-11-12) */
.refs-box { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--side); }
.refs-box[hidden] { display: none; }
.refs-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
.refs-head h3 { margin: 0; font-size: 15px; }
.refs-n { color: var(--muted); font-weight: 500; }
.refs-sub { color: var(--muted); font-size: 13px; }
.refs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ref-card { display: flex; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; min-width: 0; }
.ref-card.used { opacity: .7; }
.ref-img { flex: none; width: 72px; height: 72px; border-radius: 6px; overflow: hidden; background: var(--hover); display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; text-decoration: none; }
.ref-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ref-body { min-width: 0; display: grid; gap: 2px; align-content: start; }
.ref-t { font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ref-t:hover { text-decoration: underline; }
.ref-note { margin: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ref-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--muted); font-size: 12px; }
.ref-used { background: var(--pill-green); color: var(--pill-green-t); border-radius: 4px; padding: 0 6px; }
.ref-del { background: none; border: 0; padding: 0; color: var(--faint); font: inherit; cursor: pointer; text-decoration: underline; }
.ref-del:hover { color: var(--danger); }
.refs-more { margin-top: 10px; }
@media (max-width: 640px) { .refs-grid { grid-template-columns: 1fr; } }

/* 📝 네이버 블로그 미리보기 (app v131, 2026-11-12) */
.blogpv { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 16px 0; background: var(--bg); }
.blogpv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.blogpv-head a { font-size: 13px; }
.blogpv-acts { display: flex; align-items: center; gap: 12px; }
.blogpv-acts .link { font-size: 13px; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.blogpv-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.blogpv-doc { max-width: 680px; margin: 14px auto 4px; font-size: 15px; line-height: 1.75; }
.blogpv-doc h2 { font-size: 22px; line-height: 1.35; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.blogpv-doc h3 { font-size: 17px; margin: 22px 0 6px; }
.blogpv-doc p { margin: 0 0 6px; }
.blogpv-doc ul { margin: 4px 0 8px; padding-left: 20px; }
.blogpv-img { display: block; width: 100%; height: auto; border-radius: 6px; margin: 12px 0; }
.blogpv-miss { padding: 18px; margin: 12px 0; border: 1px dashed var(--line); border-radius: 6px; text-align: center; color: var(--muted); font-size: 13px; }
.blogpv-tw { overflow-x: auto; margin: 8px 0 12px; }
.blogpv-doc table { border-collapse: collapse; font-size: 14px; min-width: 60%; }
.blogpv-doc th, .blogpv-doc td { border: 1px solid #d5d5d5; padding: 6px 10px; text-align: left; vertical-align: top; }
.blogpv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.blogpv-tags span { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--pill-gray); color: var(--muted); }
@media (max-width: 640px) { .blogpv { padding: 12px; } .blogpv-doc { font-size: 14px; } .blogpv-doc h2 { font-size: 19px; } }
/* 📝 블로그로도 만들기 (app v132, 2026-11-12) */
.blogfrom { margin: 12px 0; }
.blogfrom:empty { display: none; }
.bf-made { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--side); font-size: 14px; }
.bf-made a { font-weight: 600; }
.bf-st { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--pill-gray); color: var(--muted); }
.bf-form { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--side); }
.bf-head { font-weight: 600; }
.bf-hint { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.bf-form .mk-inline-note { width: 100%; box-sizing: border-box; }
.bf-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.bf-err { color: var(--danger); font-size: 13px; margin: 6px 0 0; }
/* ✳ 확인 요청 칸 안에서 답하기 (app v133, 2026-11-12) */
.ask-form { margin-top: 12px; }
.ask-in { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; resize: vertical; min-height: 56px; }
.ask-btns { display: flex; justify-content: flex-end; margin-top: 8px; }
.ask-msg { margin: 6px 0 0; font-size: 13px; }
.ask-msg.ok { color: var(--pill-green-t); }
.ask-msg.err { color: var(--danger); }
/* 블로그 미리보기 — 잡지 배치 (app v137, 2026-11-12) */
.blogpv-fig { margin: 14px 0; }
.blogpv-fig .blogpv-img { margin: 0; }
.blogpv-grid { display: grid; gap: 4px; }
.blogpv-grid .blogpv-img { height: 100%; object-fit: cover; border-radius: 4px; }
.blogpv-fig figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); text-align: center; }
.blogpv-hr { border: 0; border-top: 1px solid var(--line); width: 40%; margin: 28px auto; }
.blogpv-quote { margin: 22px 0; padding: 4px 0; text-align: center; font-size: 17px; line-height: 1.6; }
.blogpv-quote::before { content: '“'; display: block; font-size: 34px; line-height: 1; color: var(--faint); }
.blogpv-quote p { margin: 0 0 4px; }
.blogpv-doc.center p, .blogpv-doc.center h3, .blogpv-doc.center ul { text-align: center; }
.blogpv-doc.center ul { list-style-position: inside; padding-left: 0; }
.blogpv-link { text-align: center; font-size: 12px; margin-top: 4px; }
.blogpv-link a { color: var(--muted); }

/* 게시물 성과 ▾ (2026-11-17) — 요약 줄을 누르면 펼쳐진다 */
.perf-toggle { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 3px 8px; margin: -3px -8px; border-radius: 6px; }
.perf-toggle:hover { background: var(--hover); }
.perf-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.perf-arr { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--muted); transition: transform .15s; }
.perf-arr::before { content: ''; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-1.5px) rotate(45deg); }
.perf-toggle:hover .perf-arr { color: var(--text); border-color: #d5d5d2; }
.perf-toggle.on .perf-arr { transform: rotate(180deg); }
.perf-panel { grid-column: 1 / -1; margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  background: #fbfbfa; display: grid; gap: 18px; }
.perf-panel[hidden] { display: none; }
.perf-sec h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.perf-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 13.5px; line-height: 1.5; }
.perf-lines .sub { color: var(--muted); }
.perf-note { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.perf-scroll { overflow-x: auto; }
.perf-tbl { border-collapse: collapse; font-size: 13px; width: 100%; max-width: 480px; }
.perf-tbl th { font-weight: 500; color: var(--muted); text-align: right; padding: 4px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.perf-tbl td { text-align: right; padding: 4px 10px; border-bottom: 1px solid #f1f1ef; font-variant-numeric: tabular-nums; white-space: nowrap; }
.perf-tbl th:first-child, .perf-tbl td:first-child { text-align: left; padding-left: 0; }
.perf-tbl td.up { color: #18794e; font-weight: 600; }
.perf-tbl td.down { color: var(--muted); }
.perf-tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--side); margin-bottom: 12px; }
.perf-tabs button { all: unset; cursor: pointer; padding: 4px 12px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.perf-tabs button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(15, 15, 15, .08); font-weight: 600; }
.perf-tabs button:focus-visible { outline: 2px solid var(--accent); }
.perf-demo { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 28px; }
.perf-bars { display: grid; gap: 6px; font-size: 13px; align-content: start; }
.perf-bars-t { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.perf-bar { display: grid; grid-template-columns: 72px 1fr 42px; align-items: center; gap: 8px; }
.perf-bar .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.perf-bar .track { height: 8px; border-radius: 0 4px 4px 0; background: #f1f1ef; overflow: hidden; }
.perf-bar .track i { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.perf-bar .v { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .perf-panel { padding: 12px; }
  .perf-bar { grid-template-columns: 64px 1fr 40px; }
}

/* ⏰ 늦으면 안 되는 글 (items.pick_hint.due · 신제품 · 행사 · 시즌) — 2026-11-17 */
.due-line { margin: 3px 0 0; font-size: 12.5px; font-weight: 600; color: #b42318; line-height: 1.45; white-space: normal; }
.due-line.soft { color: #b2552a; font-weight: 500; }
.due-line.late { background: #fde8e8; border-radius: 4px; padding: 1px 6px; display: inline-block; }
.due-line small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.d-when { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.sheet-due:empty, .dp-due:empty { display: none; }
.sheet-due { margin: 6px 0 0; }
.dp-due { padding: 0 12px 6px; }
:root[data-theme="dark"] .due-line { color: #ff8a80; }
:root[data-theme="dark"] .due-line.soft { color: #f3b27a; }
:root[data-theme="dark"] .due-line.late { background: #4a1d1d; }
/* 생산 · 자재 위 칸 눌러서 그 목록만 보기 (11/18) */
.auto-tiles .auto-tile.go.on { border: 2px solid #191919; padding: 9px 13px; box-shadow: 0 2px 8px rgba(0,0,0,.10); }
.auto-tiles .auto-tile.go.on small { color: #191919; font-weight: 600; }

/* ── AI 마크 (maisonyoon.work, 2026-11-30): 🟢 초록 = 개발 요청 · 🟠 주황 = 바로 Claude 가 답 ── */
.ai-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 18px; padding: 0 5px; border-radius: 5px; font-size: 11px; font-weight: 800; letter-spacing: .3px; color: #fff; vertical-align: middle; line-height: 1; }
.ai-mark.green { background: #1f9d55; }
.ai-mark.orange { background: #ea7a1a; }
.ai-dock { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.ai-btn { display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; border: 1px solid var(--border, #e3e2e0); background: #fff; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.ai-btn.orange:hover { border-color: #ea7a1a; }
.ai-btn.green:hover { border-color: #1f9d55; }
.ai-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: #fff; border-left: 1px solid var(--border, #e3e2e0); box-shadow: -8px 0 24px rgba(0,0,0,.10); z-index: 70; display: flex; flex-direction: column; }
.ai-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border, #e3e2e0); }
.ai-head b { font-size: 15px; }
.ai-money { margin-left: auto; font-size: 12px; color: var(--muted); }
.ai-x { border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--muted); padding: 2px 6px; }
.ai-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fafaf9; }
.ai-msg { max-width: 92%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.6; background: #fff; border: 1px solid var(--border, #e3e2e0); }
.ai-msg p { margin: 0 0 6px; } .ai-msg p:last-child { margin-bottom: 0; }
.ai-msg ul, .ai-msg ol { margin: 4px 0 6px; padding-left: 20px; }
.ai-msg.me { align-self: flex-end; background: #fff4ea; border-color: #f6d3b3; }
.ai-msg.ai { align-self: flex-start; }
.ai-msg.err { border-color: #f1b0b0; background: #fff5f5; }
.ai-msg.wait p { color: var(--muted); }
.ai-h { font-weight: 700; }
.ai-tbl { overflow-x: auto; margin: 6px 0; }
.ai-tbl table { border-collapse: collapse; font-size: 13px; }
.ai-tbl th, .ai-tbl td { border: 1px solid var(--border, #e3e2e0); padding: 4px 8px; text-align: left; white-space: nowrap; }
.ai-tbl th { background: #f4f3f1; }
.ai-cost { margin-top: 6px; font-size: 11px; color: var(--muted); }
.ai-req-note { margin-top: 8px; font-size: 13px; }
.ai-form { border-top: 1px solid var(--border, #e3e2e0); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ai-form textarea { width: 100%; resize: vertical; min-height: 54px; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--border, #e3e2e0); border-radius: 8px; box-sizing: border-box; }
.ai-form-row { display: flex; align-items: center; justify-content: space-between; }
.modal.ai-modal { width: min(560px, 94vw); max-width: 94vw; }
.ai-modal textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--border, #e3e2e0); border-radius: 8px; box-sizing: border-box; }
.ai-sel { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid var(--border, #e3e2e0); border-radius: 6px; background: #fff; }
.ai-body { margin-bottom: 8px; }
.ai-note-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.ai-note-row textarea { flex: 1; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--border, #e3e2e0); border-radius: 6px; }
@media (max-width: 820px) { .ai-dock { right: 12px; bottom: 12px; } .ai-btn { padding: 8px 12px 8px 8px; font-size: 13px; } }

/* ✦ 별 마크 — 화면 제목 · 구역 제목 · 숫자 칸 옆 (CUSAN 테스터 의견 버튼과 같은 모양, 11/30) */
.ai-star { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 22px; height: 22px; padding: 0; margin-left: 6px; border-radius: 999px; border: 1px solid #b9e3c9; background: #fff; color: #1f9d55; cursor: pointer; vertical-align: middle; flex: none; opacity: .75; }
.ai-star svg { width: 13px; height: 13px; }
.ai-star:hover, .ai-star:focus-visible { opacity: 1; background: #effaf3; outline: none; }
.ai-star.labeled { width: auto; height: 26px; padding: 0 10px 0 8px; font-size: 12px; font-weight: 600; opacity: 1; }
h1.title .ai-star.labeled { position: relative; top: -3px; }
.auto-tile > span:first-child .ai-star { width: 18px; height: 18px; margin-left: 4px; }
.auto-tile > span:first-child .ai-star svg { width: 11px; height: 11px; }
.ai-star-h { display: flex; align-items: center; gap: 6px; }
.ai-star-ico { display: inline-flex; color: #1f9d55; } .ai-star-ico svg { width: 18px; height: 18px; }
.ai-modal textarea { margin: 6px 0 4px; }
.ai-star-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.ai-green-btn { background: #1f9d55 !important; border-color: #1f9d55 !important; }
.ai-orange-btn { border-color: #ea7a1a; color: #b85c0e; }
@media (max-width: 820px) { .ai-star { opacity: 1; } }

/* 11/30 2차: 메뉴 · 상자 모서리 별, 대화창 화면 이름 · 지난 대화 폴더 */
.ai-star.corner { position: absolute; top: 6px; right: 6px; margin: 0; z-index: 2; }
.ai-star.nav { width: 18px; height: 18px; margin-left: auto; opacity: .55; }
.ai-star.nav svg { width: 11px; height: 11px; }
.nav a:hover .ai-star.nav { opacity: 1; }
.ai-where { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ai-head .btn.on { background: #fff4ea; border-color: #ea7a1a; }
.ai-sep { align-self: center; font-size: 11px; color: var(--muted); padding: 2px 10px; border-radius: 999px; background: #f0efed; }
.ai-hist { flex: 1; overflow-y: auto; padding: 12px 14px; background: #fafaf9; }
.ai-hist-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ai-hist-head .btn { margin-left: auto; }
.ai-hist-all { font-size: 13px; color: var(--muted); }
.ai-folder { border: 1px solid var(--border, #e3e2e0); border-radius: 10px; background: #fff; margin-bottom: 8px; }
.ai-folder > summary { cursor: pointer; padding: 9px 12px; font-weight: 600; font-size: 14px; }
.ai-conv { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; border: 0; border-top: 1px solid #f0efed; background: none; padding: 8px 12px 8px 30px; cursor: pointer; font: inherit; }
.ai-conv:hover { background: #fff8f1; }
.ai-conv.on { background: #fff4ea; }
.ai-conv-q { font-size: 14px; color: var(--text); }

/* 12/1 AI윤: 채팅 아이콘 하나 · 기억 */
.ai-fab { display: flex; align-items: center; gap: 7px; height: 52px; padding: 0 18px 0 14px; border-radius: 999px; border: 0; background: #ea7a1a; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(234,122,26,.35), 0 2px 6px rgba(0,0,0,.12); transition: transform .12s, box-shadow .12s; }
.ai-fab svg { width: 24px; height: 24px; }
.ai-fab:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(234,122,26,.45), 0 2px 6px rgba(0,0,0,.14); }
.ai-fab:focus-visible { outline: 3px solid #ffd2a8; outline-offset: 2px; }
.ai-head-ico { display: inline-flex; width: 22px; height: 22px; color: #ea7a1a; }
.ai-head-ico svg { width: 22px; height: 22px; }
.ai-mem-note { margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: #fff4ea; border: 1px solid #f6d3b3; font-size: 13px; }
.ai-mem-add { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 12px; }
.ai-mem-add textarea { flex: 1; }
tr.ai-off td { color: var(--muted); text-decoration: line-through; }
tr.ai-off td:last-child { text-decoration: none; }
@media (max-width: 820px) { .ai-fab { height: 46px; padding: 0 14px 0 11px; font-size: 14px; } }
