/* GAZE 콘텐츠 공장 — 회백 작업장 위로 노란 빛이 번지는 관제판.
   색·무드: Orbix 「Flux」 대시보드(사용자 레퍼런스) + GAZE 차콜·옐로. 배치는 따라가지 않았다.
   유리처럼 보이는 건 흐린 배경 위 반투명 흰 판이다. backdrop-filter 는 쓰지 않는다(성능). */
:root {
  --floor: #e7e7e3;
  --sheet: rgba(255, 255, 255, .72);
  --sheet-hi: rgba(255, 255, 255, .9);
  --solid: #fff;
  --ink: #1b1b19;
  --ink-2: #5d5d56;
  --ink-3: #96968e;
  --line: rgba(27, 27, 25, .08);
  --line-2: rgba(27, 27, 25, .15);
  --sun: #dfe51b;
  --sun-deep: #a9ad0c;
  --sun-halo: rgba(223, 229, 27, .28);
  --haze-y: #f6d76a;
  --haze-b: #c6dcec;
  --go: #2b9a58;
  --go-soft: #dcf0e3;
  --stop: #d9443b;
  --stop-soft: #f9e0dd;
  --cool: #79b1d8;
  --r: 20px;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --display: "General Sans", "Pretendard Variable", Pretendard, sans-serif;
  --cols: 236px repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr) minmax(0, 1.25fr);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 14px/1.5 var(--font);
  letter-spacing: -.01em;
  color: var(--ink);
  background-color: var(--floor);
  background-image:
    radial-gradient(38vw 30vw at 62% 6%, rgba(246, 215, 106, .75), transparent 70%),
    radial-gradient(30vw 26vw at 84% 34%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(42vw 34vw at 6% 96%, rgba(198, 220, 236, .9), transparent 72%),
    radial-gradient(26vw 22vw at 40% 70%, rgba(246, 215, 106, .28), transparent 70%);
  background-attachment: fixed;
  font-variant-numeric: tabular-nums;
  word-break: keep-all;          /* 한국어는 낱말 중간에서 끊지 않는다 */
  overflow-wrap: anywhere;
}
::selection { background: var(--sun); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
img { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 뼈대 ─────────────────────────────────────── */
.app { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 22px;
  padding: 26px 18px 22px;
  border-right: 1px solid rgba(255, 255, 255, .7);
}
.mark { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.mark svg { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--sun); flex: none; }
.mark b { font: 600 19px/1 var(--display); letter-spacing: -.02em; }
.mark small { display: block; font: 500 11px/1 var(--display); color: var(--ink-3); letter-spacing: .02em; margin-top: 4px; }
.nav { display: grid; gap: 4px; }
.nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500;
}
.nav a:hover { background: var(--sheet); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--solid); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(27, 27, 25, .4); }
.nav a i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.rail-note { margin-top: auto; display: grid; gap: 10px; padding: 0 6px; font-size: 12px; color: var(--ink-3); line-height: 1.55; }
.rail-note .live { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.rail-note .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 4px var(--go-soft); }
.sample { display: inline-flex; align-self: start; padding: 4px 9px; border-radius: 999px; border: 1px dashed var(--line-2); font-size: 11px; color: var(--ink-2); background: var(--sheet); }

main { padding: 30px 34px 60px; min-width: 0; }
main:focus { outline: none; }

/* ── 공통 부품 ─────────────────────────────────── */
.sheet-box { background: var(--sheet); border: 1px solid rgba(255, 255, 255, .85); border-radius: var(--r); box-shadow: 0 18px 40px -30px rgba(27, 27, 25, .35); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.head h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 650; letter-spacing: -.035em; }
.head p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.head p b { color: var(--ink); font-weight: 600; }
.head p .dot { color: var(--ink-3); margin: 0 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--solid); font-weight: 600; font-size: 13.5px; white-space: nowrap;
}
.btn:hover { border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }
.btn.sun { background: var(--sun); border-color: transparent; color: var(--ink); box-shadow: 0 8px 22px -10px rgba(169, 173, 12, .7); }
.btn.sun:hover { background: #e7ec3a; }
.btn.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.ghost { background: transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; margin-bottom: 14px; }
.back:hover { color: var(--ink); }
.back svg { width: 15px; height: 15px; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge.manual { background: var(--sun); color: var(--ink); }
.badge.final { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--sun-deep); }
.badge.auto { background: rgba(27, 27, 25, .07); color: var(--ink-2); }
.badge.off { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.badge.up { background: var(--go-soft); color: var(--go); }
.badge.down { background: var(--stop-soft); color: var(--stop); }
.badge.hand { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }

.pf { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.pf svg { width: 16px; height: 16px; }

/* ── 필터 ─────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(27, 27, 25, .06); }
.seg a { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg a[aria-current="page"] { background: var(--solid); color: var(--ink); box-shadow: 0 4px 12px -8px rgba(27, 27, 25, .45); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 6px 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .9); background: var(--sheet); font-size: 13px; font-weight: 500; }
.chip b { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: rgba(27, 27, 25, .06); font-size: 11.5px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] b { background: rgba(255, 255, 255, .16); }

/* ── 숫자 네 장 ───────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px 18px 14px; display: grid; gap: 4px; }
.stat > span { font-size: 12.5px; color: var(--ink-2); }
.stat strong { font-size: 25px; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; display: flex; align-items: center; gap: 8px; }
.stat strong .badge { letter-spacing: 0; }
.stat small { font-size: 11.5px; color: var(--ink-3); }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 22px; margin-top: 4px; }
.spark i { flex: 1; max-width: 4px; border-radius: 1px; background: var(--cool); opacity: .55; }
.spark i.hi { background: var(--ink); opacity: 1; }

/* ── 공장 판 (시그니처) ───────────────────────── */
.floor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.board { padding: 6px 0 10px; overflow: hidden; }
.board-head, .line { display: grid; grid-template-columns: var(--cols); align-items: center; padding: 0 22px; }
.board-head { height: 46px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.board-head span { text-align: center; }
.board-head span:first-child { text-align: left; }
.board-head em { font-style: normal; font: 600 10.5px/1 var(--display); color: var(--ink-3); margin-right: 5px; letter-spacing: .04em; }
.group { display: flex; align-items: baseline; gap: 8px; padding: 18px 22px 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); border-top: 1px solid var(--line); }
.group small { font-weight: 400; color: var(--ink-3); }
.line { position: relative; min-height: 70px; border-top: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.group + .line { border-top: 0; }
.line:hover { background: rgba(255, 255, 255, .55); }
.line.is-off { opacity: .55; }
/* 레일: 주제 칸 가운데부터 발행 칸 가운데까지 한 줄 */
.line::after {
  content: ""; position: absolute; z-index: 0; top: 50%; height: 1.5px;
  left: calc(22px + 236px + (100% - 44px - 236px) / 5.55 / 2);
  right: calc(22px + (100% - 44px - 236px) * 1.25 / 5.55 / 2);
  background: repeating-linear-gradient(90deg, rgba(27, 27, 25, .24) 0 6px, transparent 6px 10px);
  transform-origin: left; transform: scaleX(var(--rail, 1));
}
.ch { display: flex; align-items: center; gap: 11px; min-width: 0; padding-right: 12px; }
.ch-txt { min-width: 0; display: grid; gap: 4px; }
.ch-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.ch-sub { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.st { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; min-width: 0; }
.node { width: 8px; height: 8px; border-radius: 50%; background: var(--floor); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.node.gate { width: 14px; height: 14px; background: rgba(223, 229, 27, .3); box-shadow: inset 0 0 0 1.5px var(--sun-deep); }
.slot {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px 0 4px;
  border-radius: 999px; background: var(--solid); border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; white-space: nowrap;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s;
}
button.slot:hover { border-color: var(--ink); }
.slot.gate { background: var(--sun); border-color: transparent; box-shadow: 0 0 0 6px var(--sun-halo); }
.slot.wait { background: var(--sheet-hi); color: var(--ink-3); font-weight: 500; }
.slot .toks { display: flex; }
.tok { width: 24px; height: 24px; border-radius: 8px; background: #d9d9d3 center / cover no-repeat; box-shadow: 0 0 0 2px var(--solid); }
.slot.gate .tok { box-shadow: 0 0 0 2px var(--sun); }
.tok + .tok { margin-left: -9px; }
.slot .who { display: none; font-size: 10.5px; font-weight: 500; color: var(--ink-3); }
@media (min-width: 1500px) { .slot .who { display: inline; } }
.slot.gate .who { color: var(--ink); opacity: .7; }
.bin { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--solid); border: 1px solid var(--line-2); }
.bin .cells { display: flex; gap: 3px; }
.bin .cells i { width: 7px; height: 16px; border-radius: 2.5px; background: var(--line-2); }
.bin .cells i.on { background: var(--ink); }
.bin b { font-size: 12px; font-weight: 600; white-space: nowrap; }
.bin.low b { color: var(--stop); }
.bin.low::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--stop); }
.pub { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 4px 6px; border-radius: 12px; background: var(--solid); border: 1px solid var(--line-2); min-width: 104px; }
.pub b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pub .s { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.pub .s::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--go); }
.pub.gate { background: var(--sun); border-color: transparent; box-shadow: 0 0 0 6px var(--sun-halo); }
.pub.gate .s::before { background: var(--ink); }
.pub.fail { border-color: var(--stop); }
.pub.fail .s { color: var(--stop); }
.pub.fail .s::before { background: var(--stop); }
.pub.hand .s::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.pub.off .s::before { background: var(--ink-3); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 22px 4px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; }
.legend .l-gate { background: var(--sun); box-shadow: 0 0 0 3px var(--sun-halo); }
.legend .l-bot { background: var(--solid); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.legend .l-bin { width: 7px; height: 14px; border-radius: 2px; background: var(--ink); }

.line.mirror { min-height: 92px; }
.fork { position: relative; display: grid; gap: 5px; justify-items: start; padding-left: 12px; }
.fork::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 8px; border: 1.5px solid rgba(27, 27, 25, .24); border-right: 0; border-radius: 7px 0 0 7px; }
.fk { display: flex; align-items: center; gap: 6px; }
.fk .pfm { width: 18px; height: 18px; }
.fork .bin { padding: 3px 8px; }
.fork .pub { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 3px 10px; }
.fork .pub b { font-size: 11.5px; white-space: nowrap; }
.fork .pub .s { font-size: 0; gap: 0; }   /* 갈래에서는 상태를 점 색으로만. 글은 아래 「지금 손댈 것」에 */
.brand-h { display: flex; align-items: center; gap: 10px; padding: 14px 22px 4px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 650; }
.group + .brand-h { border-top: 0; }
.brand-h small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.line.sub { border-top: 0; min-height: 60px; }
.line.sub .ch { padding-left: 22px; position: relative; }
.line.sub .ch::before { content: ""; position: absolute; left: 6px; top: -22px; height: calc(50% + 22px); width: 10px; border-left: 1.5px solid var(--line-2); border-bottom: 1.5px solid var(--line-2); border-bottom-left-radius: 8px; }

/* 판이 처음 뜰 때 한 번: 레일이 그어지고, 회차들이 왼쪽에서 제자리로 들어온다 */
.board.enter .line::after { animation: rail .7s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--i) * 45ms); }
.board.enter .st > * { animation: slide .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 45ms + var(--k) * 70ms + 160ms); }
@keyframes rail { from { transform: scaleX(0); } }
@keyframes slide { from { opacity: 0; transform: translateX(-28px); } }
.line.is-new { animation: newline 1.6s ease-out; }
@keyframes newline { 0%, 30% { background: rgba(223, 229, 27, .35); } }

/* ── 오늘 1면 ─────────────────────────────────── */
.front { margin-bottom: 22px; }
.front-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 0 2px 10px; }
.front-h h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.035em; }
.front-h span { font-size: 12.5px; color: var(--ink-2); }
.front-h b { color: var(--ink); }
.front-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.lead { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; padding: 0; overflow: hidden; text-align: left; border: 1px solid rgba(255, 255, 255, .85); }
.lead:hover { border-color: var(--ink); }
.lead-media { position: relative; aspect-ratio: 4 / 5; background: #1b1b19 center / cover no-repeat; }
.rank { position: absolute; left: 10px; top: 10px; min-width: 28px; height: 28px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--sun); color: var(--ink); font: 700 14px/1 var(--display); }
.lead-txt { display: flex; flex-direction: column; gap: 9px; padding: 18px 20px; min-width: 0; }
.kicker { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); min-width: 0; }
.kicker span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg { width: 20px; height: 20px; border-radius: 50%; flex: none; background: var(--ink) center / cover no-repeat; }
i.lg.pfm { border-radius: 6px; background: var(--solid); }
.lead .hl { font-size: 21px; line-height: 1.38; font-weight: 700; letter-spacing: -.035em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lead .dek { font-size: 13px; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lead .mrow { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.lead .mrow b { display: block; font-size: 18px; font-weight: 650; color: var(--ink); letter-spacing: -.02em; }
.lead > .lead-txt > .badge { align-self: flex-start; }
.empty-lead { display: grid; place-content: center; gap: 6px; text-align: center; padding: 40px 20px; color: var(--ink-2); grid-template-columns: 1fr; }
.empty-lead b { color: var(--ink); }
.subs { display: grid; gap: 8px; }
/* 공장 1면 작은 기사 카드. 이름(.sub)이 공장 판의 브랜드 아래 플랫폼 줄(.line.sub)과 겹쳐 줄이 무너져서 .subs 안으로 좁혔다 (2026-10-20) */
.subs > .sub { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 7px 10px 7px 7px; text-align: left; border: 1px solid rgba(255, 255, 255, .85); }
.subs > .sub:hover { border-color: var(--ink); }
.subs > .sub .th { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; background: #d6d6d0 center / cover no-repeat; }
.subs > .sub .rank { left: -5px; top: -5px; min-width: 22px; height: 22px; font-size: 11.5px; padding: 0 6px; background: var(--ink); color: var(--sun); }
.subs > .sub strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 3px 0 2px; font-size: 14px; line-height: 1.38; font-weight: 600; letter-spacing: -.02em; }
.subs > .sub small { font-size: 11.5px; color: var(--ink-3); }
.subs > .sub .kicker .lg { width: 16px; height: 16px; }
.upnext { padding: 16px 12px; display: flex; flex-direction: column; }
.upnext h3 { margin: 0 6px 8px; font-size: 14px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
.upnext h3 b { min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: rgba(27, 27, 25, .07); font-size: 12px; }
.un { display: grid; grid-template-columns: 42px 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; padding: 10px 6px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; border-radius: 0; font-size: 12.5px; }
.un:hover { background: rgba(255, 255, 255, .6); }
.un time { font-weight: 650; }
.un b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un small { display: block; color: var(--ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.after-board { margin-top: 18px; }
.after-board .stats { margin-bottom: 0; }

/* 공장: 오늘 발행 시간표 */
.sched { margin-bottom: 22px; }
.sched-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.slotc { flex: 0 0 300px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; text-align: left; border: 1px solid rgba(255, 255, 255, .85); }
.sc-th { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; background: #d6d6d0 center / cover no-repeat; }
.sc-txt { display: grid; gap: 5px; min-width: 0; }
.front-h .more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; }
.front-h .more svg { width: 14px; height: 14px; }
.slotc:hover { border-color: var(--ink); }
.sc-top { display: flex; justify-content: space-between; align-items: center; }
.sc-top time { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.sc-ch { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-ch .lg { width: 16px; height: 16px; }
.slotc b { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 발행 캘린더 */
.cal-nav { display: flex; gap: 6px; }
.cal-nav .btn svg { width: 16px; height: 16px; }
.head b.bad { color: var(--stop); }
.cal-pills, .cal-ch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cal-ch .chip { padding-left: 6px; }
.cal-ch .chip .lg { width: 22px; height: 22px; }
.cal-ch .chip[aria-pressed="false"] { opacity: .45; background: transparent; }
.cal-ch .chip[aria-pressed="true"] { background: var(--solid); color: var(--ink); border-color: var(--line-2); }
.pill-gap[aria-pressed="false"] b { background: var(--warn-soft, #fbe5d8); color: #b04a12; }
.pill-fail[aria-pressed="false"] b { background: var(--stop-soft); color: var(--stop); }
.cal { padding: 0; overflow: hidden; margin-top: 6px; }
.cal-h { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 10px 0 8px; font-size: 12px; color: var(--ink-3); text-align: center; border-bottom: 1px solid var(--line-2); }
.cal-h span:first-child { color: var(--stop); }
.cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cd { min-height: 128px; padding: 6px 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cd:nth-child(7n) { border-right: 0; }
.cd.blank { background: rgba(27, 27, 25, .02); }
.cd.past { background: rgba(27, 27, 25, .025); }
.cd-n { align-self: flex-start; min-width: 26px; height: 26px; padding: 0 6px; border: 0; border-radius: 999px; background: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cd-n:hover { background: var(--solid); }
.cd.today .cd-n { background: var(--sun); color: var(--ink); box-shadow: 0 0 0 4px var(--sun-halo); }
.ci { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; align-items: center; padding: 3px; border: 0; border-radius: 8px; background: var(--solid); text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.ci:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ci-th { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 5px; background: #d6d6d0 center / cover no-repeat; color: var(--ink-2); }
.ci-th svg { width: 12px; height: 12px; }
.ci-lg { position: absolute; right: -4px; bottom: -4px; width: 13px; height: 13px; border-radius: 50%; background: center / cover no-repeat; box-shadow: 0 0 0 1.5px var(--solid); }
.ci-t { min-width: 0; display: grid; line-height: 1.2; }
.ci-t b { font-size: 11.5px; font-weight: 700; }
.ci-t small { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.ci-more { align-self: flex-start; border: 0; background: none; font-size: 11.5px; font-weight: 600; color: var(--ink-2); padding: 2px 4px; }
/* 상태 색: 테두리·글자색으로만 (왼쪽 세로줄 안 씀) */
.c-done .ci-t small, .c-done small.st { color: var(--go); }
.c-saved { box-shadow: inset 0 0 0 1px var(--ink); }
.c-saved .ci-t small { color: var(--ink); font-weight: 600; }
.c-handdue .ci-t small, .c-hand .ci-t small { color: var(--ink-2); }
.c-review { background: #f8f9c9; box-shadow: inset 0 0 0 1px var(--sun-deep); }
.c-notready { background: #fdf0e7; box-shadow: inset 0 0 0 1px #e8a070; }
.c-notready .ci-t small { color: #b04a12; }
.c-empty { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(176, 74, 18, .55); }
.c-empty .ci-th { background: repeating-linear-gradient(135deg, rgba(176, 74, 18, .14) 0 4px, transparent 4px 8px); }
.c-empty .ci-t small { color: #b04a12; }
.cd.past .c-empty { box-shadow: inset 0 0 0 1px var(--line-2); }
.cd.past .c-empty .ci-t small { color: var(--ink-3); }
.c-fail, .c-missed { background: var(--stop-soft); box-shadow: inset 0 0 0 1px rgba(217, 68, 59, .5); }
.c-fail .ci-t small, .c-missed .ci-t small { color: var(--stop); }
.badge.ink { background: var(--ink); color: #fff; }
.badge.warn { background: #fdf0e7; color: #b04a12; }
.badge.gapb { background: transparent; color: #b04a12; box-shadow: inset 0 0 0 1.5px rgba(176, 74, 18, .55); }
.cal-legend { border-top: 0; padding: 12px 2px 0; }
.ld { width: 14px; height: 14px; border-radius: 4px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line-2); }
.ld.c-done { background: var(--go-soft); box-shadow: inset 0 0 0 1px var(--go); }
.agenda { display: none; }
.ag-day { display: grid; gap: 6px; margin-bottom: 14px; }
.ag-day h4 { margin: 4px 2px; font-size: 13px; font-weight: 650; }
.ag-day.today h4 { color: var(--ink); }
.ag { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 0; border-radius: 12px; background: var(--solid); text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.ag b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag small { display: block; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-cover { aspect-ratio: 4 / 5; border-radius: 16px; background: #d6d6d0 center / cover no-repeat; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; }
.cal-title { margin: 6px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.03em; line-height: 1.35; }
.made a { text-decoration: underline; text-underline-offset: 3px; }

/* 성과 화면 덩어리: 상자 없이 제목 + 줄 */
.block { margin: 6px 0 22px; padding: 2px; }
.block > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.block h3 { margin: 0; font-size: 15px; font-weight: 650; }
.block > header span { font-size: 12px; color: var(--ink-3); }
.block h4 { margin: 16px 0 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp th, .cmp td { padding: 9px 10px; border-top: 1px solid var(--line-2); text-align: right; font-weight: 400; }
.cmp thead th { border-top: 0; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.cmp thead th .pfm { width: 18px; height: 18px; vertical-align: -4px; }
.cmp th:first-child { text-align: left; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.cmp tbody th b { color: var(--ink); font-weight: 650; margin-right: 4px; }
.cmp td { font-weight: 600; }
.cmp td.win { font-weight: 800; box-shadow: inset 0 -3px 0 var(--sun); }
.cmp td.na { color: var(--ink-3); font-weight: 400; }
.aud-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 200px; gap: 12px; align-items: center; padding: 8px 2px; border-top: 1px solid var(--line-2); font-size: 13px; }
.aud-row .al { color: var(--ink-2); }
.aud-row .av { text-align: right; color: var(--ink-2); }
.aud-row .av b { color: var(--ink); }
.split, .bar1 { height: 10px; border-radius: 5px; background: var(--sun); overflow: hidden; }
.split i { display: block; height: 100%; background: var(--ink); }
.bar1 { background: rgba(27, 27, 25, .06); }
.bar1 i { display: block; height: 100%; border-radius: 5px; background: var(--ink); }
.aud-demo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }
.aud-g .aud-row { grid-template-columns: 64px minmax(0, 1fr) 52px; }
.aud-g h4 { margin: 14px 0 4px; }
.fstrip { display: flex; align-items: center; gap: 10px; padding: 11px 16px; margin-bottom: 14px; font-size: 13px; color: var(--ink-2); border: 1px solid rgba(255, 255, 255, .85); }
.fstrip > svg { width: 18px; height: 18px; flex: none; color: var(--ink); }
.fstrip b { color: var(--ink); }
.fstrip .bad, .fstrip .bad b { color: var(--stop); }
.fstrip em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.fstrip em svg { width: 14px; height: 14px; }
.fstrip:hover { border-color: var(--ink); }
/* 리포트 목록 */
.rlist { padding: 6px 0 10px; }
.rrow { display: grid; grid-template-columns: minmax(0, 1.6fr) 130px 110px 130px auto; gap: 12px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 13px; }
.group + .rrow { border-top: 0; }
.rr-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rr-name .lg { width: 32px; height: 32px; }
.rr-name b { display: block; font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-name > span { min-width: 0; }
.rr-name small { display: block; color: var(--ink-3); font-size: 12px; }
.rr-n { color: var(--ink-2); white-space: nowrap; } .rr-n b { color: var(--ink); }
.rr-n .na { color: var(--ink-3); }
.rr-act { display: flex; gap: 6px; justify-content: flex-end; }
.rr-act .btn { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
/* 레일 메뉴 두 줄 */
.nav a > span { display: grid; gap: 1px; }
.nav a b { font-weight: 600; font-size: 14.5px; }
.nav a small { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }

/* ── 지금 고를 것 ─────────────────────────────── */
.inbox { padding: 18px 16px 12px; position: sticky; top: 24px; }
.inbox h2 { margin: 0 6px 4px; font-size: 15px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
.inbox h2 b { min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: var(--sun); font-size: 12px; }
.inbox > p { margin: 0 6px 12px; font-size: 12px; color: var(--ink-3); }
.todo { display: grid; grid-template-columns: 38px minmax(0, 1fr) 14px; align-items: center; gap: 10px; width: 100%; padding: 9px 6px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; border-radius: 0; }
.todo:hover { background: rgba(255, 255, 255, .6); }
.todo .th { width: 38px; height: 38px; border-radius: 10px; background: #dcdcd6 center / cover; position: relative; }
.todo .th::after { content: ""; position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #f6f6f3; background: var(--sun); }
.todo.t-low .th::after, .todo.t-fail .th::after { background: var(--stop); }
.todo.t-hand .th::after { background: var(--solid); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.todo strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo small { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo svg { width: 14px; height: 14px; color: var(--ink-3); }

/* ── 채널 카드 (킬슨 OS 채널판처럼) ──────────────── */
.pf.logo { background: #fff center / cover no-repeat; }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.cc { display: grid; gap: 12px; padding: 18px; border: 1px solid rgba(255, 255, 255, .85); transition: border-color .2s, transform .2s; }
.cc:hover { border-color: var(--ink); }
.cc.off { opacity: .6; }
.cc header { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.cc-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink) center / cover no-repeat; color: var(--sun); box-shadow: 0 0 0 2px var(--solid), 0 0 0 3.5px var(--sun); }
.cc-av svg { width: 20px; height: 20px; }
.cc header b { display: block; font-size: 15.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc header small { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-st { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.cc-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.cc-st.ok::before { background: var(--go); box-shadow: 0 0 0 3px var(--go-soft); }
.cc-st.bad { color: var(--stop); }
.cc-st.bad::before { background: var(--stop); }
.cc-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin: 2px 0; }
.cc-nums div { min-width: 0; }
.cc-nums dt { font-size: 11.5px; color: var(--ink-3); }
.cc-nums dd { margin: 1px 0 0; font-size: 19px; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; }
.cc-none { padding: 14px; border-radius: 12px; background: var(--solid); font-size: 13px; color: var(--ink-2); }
.cc-none b { color: var(--ink); }
/* 최근 게시물: 옆으로 넘기는 슬라이드. 장마다 콘텐츠 종류와 조회수 */
.cc-slider { position: relative; margin: 0 -18px; }
.cc-slide { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px; padding: 0 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.cc-slide::-webkit-scrollbar { display: none; }
.cs { position: relative; flex: 0 0 calc((100% - 36px - 20px) / 5.4); aspect-ratio: 3 / 4; scroll-snap-align: start; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: #d6d6d0 center / cover no-repeat; color: #fff; }
.cs::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28), transparent 30%, transparent 58%, rgba(0, 0, 0, .62)); }
.cs:hover { outline: 2px solid var(--ink); outline-offset: -2px; }
.cs-k { position: absolute; z-index: 1; left: 6px; top: 6px; font-size: 10px; font-weight: 600; letter-spacing: 0; }
.cs-v { position: absolute; z-index: 1; left: 6px; bottom: 5px; display: flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 650; }
.cs-v svg { width: 12px; height: 12px; }
.cs-nav { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--solid); display: grid; place-items: center; opacity: 0; transition: opacity .2s; box-shadow: 0 6px 16px -8px rgba(27, 27, 25, .5); }
.cs-nav svg { width: 14px; height: 14px; }
.cs-nav.l { left: 8px; } .cs-nav.r { right: 8px; }
.cc-slider:hover .cs-nav, .cs-nav:focus-visible { opacity: 1; }
@media (hover: none) { .cs-nav { display: none; } }
.cc-name { font-size: 15.5px; font-weight: 650; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cc-badges { display: flex; gap: 4px; }
.cc-pfs { display: grid; gap: 2px; }
.cc-pf { display: grid; grid-template-columns: 22px auto minmax(0, 1fr) 14px; gap: 8px; align-items: center; padding: 7px 4px; border-top: 1px solid var(--line); font-size: 12.5px; }
.cc-pf:first-child { border-top: 0; }
.cc-pf b { font-weight: 600; }
.cc-pf .n { color: var(--ink-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-pf > svg { width: 14px; height: 14px; color: var(--ink-3); }
.cc-pf:hover b { text-decoration: underline; text-underline-offset: 3px; }
.cc-kinds { display: flex; flex-wrap: wrap; gap: 5px; }
.kchip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; border: 0; background: rgba(27, 27, 25, .06); font-size: 12px; font-weight: 500; }
.kchip b { font-weight: 650; }
.kchip:hover { background: var(--ink); color: #fff; }
.cc-add { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.cc-add svg { width: 13px; height: 13px; }
.cc-add:hover { border-style: solid; border-color: var(--ink); color: var(--ink); }
.pfm { width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 6px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font-style: normal; flex: none; }
.pfm svg { width: 13px; height: 13px; }
.pf-stack { display: flex; flex: none; }
.pf-stack .pf + .pf { margin-left: -10px; box-shadow: 0 0 0 2px var(--solid), inset 0 0 0 1px var(--line); }
/* 채널 화면: 같은 이름의 플랫폼 탭 */
.pf-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.pf-tabs a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pf-tabs a small { font-weight: 400; color: var(--ink-3); }
.pf-tabs a[aria-current="page"] { background: var(--solid); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 8px 20px -16px rgba(27, 27, 25, .5); }
.pf-add { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pf-add svg { width: 13px; height: 13px; }
.pf-note { font-size: 12px; color: var(--ink-3); margin-left: 4px; }
/* 콘텐츠별: 상자 없이 줄과 막대 */
.kinds { margin: 4px 0 16px; padding: 4px 2px; }
.kinds header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.kinds h3 { margin: 0; font-size: 15px; font-weight: 650; }
.kinds header span { font-size: 12px; color: var(--ink-3); }
.kinds header span b { color: var(--ink); }
.krow { width: 100%; display: grid; grid-template-columns: 90px 46px minmax(0, 1fr) 96px 92px; gap: 12px; align-items: center; padding: 9px 6px; border: 0; border-top: 1px solid var(--line-2); background: none; text-align: left; font-size: 13px; border-radius: 0; }
.krow:hover { background: rgba(255, 255, 255, .5); }
.krow[aria-pressed="true"] { background: rgba(223, 229, 27, .22); }
.krow b { font-weight: 650; }
.krow .kn, .krow .ks { color: var(--ink-2); font-size: 12.5px; }
.krow .kv { font-weight: 600; }
.kbar { height: 8px; border-radius: 4px; background: rgba(27, 27, 25, .06); overflow: hidden; }
.kbar i { display: block; height: 100%; border-radius: 4px; background: var(--ink); }
.krow[aria-pressed="true"] .kbar i { background: var(--sun-deep); }
.kclear { margin-top: 8px; border: 0; background: none; font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); padding: 4px 6px; }
.cc footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.cc footer span:first-child { margin-right: auto; }
.cc footer b { color: var(--ink); font-weight: 600; }
.mode-note { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); }
.draft .q-day { display: grid; place-items: center; align-content: center; gap: 0; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line-2); }
.draft .q-day b { font-size: 13px; font-weight: 650; }
.draft .q-day small { margin: 0; font-size: 10.5px; color: var(--ink-3); }
.draft.dim { opacity: .6; }
.draft a.badge { text-decoration: none; }
.hours a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hours .hint { margin: 4px 0 0; }

/* ── 채널 화면 ─────────────────────────────────── */
.ch-head { display: flex; align-items: center; gap: 16px; padding: 20px 22px; margin-bottom: 14px; }
.ch-head .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--ink) center / cover; flex: none; box-shadow: 0 0 0 3px var(--solid), 0 0 0 5px var(--sun); }
.ch-head h1 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.03em; }
.ch-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.ch-head .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.solo { margin-bottom: 14px; padding: 4px 0; }
.solo .line { cursor: default; border: 0; }
.solo .line:hover { background: none; }
.tabs { display: flex; gap: 6px; margin: 4px 0 14px; }
.tabs button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: none; font-weight: 600; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--solid); color: var(--ink); border-color: var(--line); }

/* 게시물 격자: 플랫폼 앱 모양 그대로 */
/* 게시물 칸: 화면 폭에 맞춰 한 줄 최대 6개 (2026-10-20 사용자 「반응형으로 최대 6개」). 칸 하나는 180px(세로 영상은 150px) 아래로 안 줄인다 */
.grid { display: grid; gap: 4px; border-radius: 16px; overflow: hidden; }
.grid.ig { grid-template-columns: repeat(auto-fill, minmax(max(180px, calc((100% - 20px) / 6)), 1fr)); }
.grid.tt, .grid.yt { grid-template-columns: repeat(auto-fill, minmax(max(150px, calc((100% - 20px) / 6)), 1fr)); }
.tile { position: relative; border: 0; padding: 0; background: #cfcfc8 center / cover; color: #fff; text-align: left; overflow: hidden; }
.grid.ig .tile { aspect-ratio: 3 / 4; }
.grid.tt .tile, .grid.yt .tile { aspect-ratio: 9 / 16; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); }
.tile:hover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(27, 27, 25, .12); }
.tile .v { position: absolute; z-index: 2; left: 10px; bottom: 9px; display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.tile .v svg { width: 15px; height: 15px; }
.tile .k { position: absolute; z-index: 2; right: 9px; top: 9px; width: 18px; height: 18px; }
.tile .x { position: absolute; z-index: 2; left: 9px; top: 9px; }
.tile .x.hot { background: var(--sun); color: var(--ink); }
.tile .x.made { background: rgba(255, 255, 255, .88); color: var(--ink); }

.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card-post { display: grid; gap: 10px; padding: 16px 18px; text-align: left; border: 1px solid rgba(255, 255, 255, .85); }
.card-post:hover { border-color: var(--ink); }
.card-post p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.card-post .ph { aspect-ratio: 16 / 9; border-radius: 12px; background: #ddd center / cover; }
.card-post footer { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-2); }
.card-post footer span { display: inline-flex; align-items: center; gap: 5px; }
.card-post footer svg { width: 14px; height: 14px; }
.card-post .top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.blogrow { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; padding: 12px; text-align: left; border: 1px solid rgba(255, 255, 255, .85); }
.blogrow:hover { border-color: var(--ink); }
.blogrow .ph { aspect-ratio: 4 / 3; border-radius: 10px; background: #ddd center / cover; }
.blogrow strong { font-size: 15px; font-weight: 650; display: block; margin: 2px 0 6px; }
.bloglist { display: grid; gap: 10px; }

.drafts { display: grid; gap: 8px; }
.draft { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; }
.draft .th { width: 46px; height: 46px; border-radius: 12px; background: #dcdcd6 center / cover; }
.draft strong { font-size: 14px; font-weight: 600; }
.draft small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.empty { padding: 34px 20px; text-align: center; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }

/* ── 게시물 모달 ──────────────────────────────── */
dialog { border: 0; padding: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(27, 27, 25, .38); }
.modal {
  width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto;
  border-radius: 26px; background: #f4f4f1;
  background-image: radial-gradient(420px 300px at 85% 0%, rgba(246, 215, 106, .45), transparent 70%), radial-gradient(380px 260px at 0% 100%, rgba(198, 220, 236, .7), transparent 70%);
  box-shadow: 0 40px 90px -30px rgba(27, 27, 25, .5);
}
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.modal-top .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.x-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--solid); display: grid; place-items: center; }
.x-btn svg { width: 16px; height: 16px; }
.post-body { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 22px; padding: 18px 22px 24px; }
.perf { display: grid; gap: 12px; align-content: start; }
.perf .big { padding: 18px 20px; }
.perf .big span { font-size: 12.5px; color: var(--ink-2); }
.perf .big strong { display: flex; align-items: center; gap: 10px; font-size: 38px; font-weight: 650; letter-spacing: -.04em; line-height: 1.15; }
.perf .big strong .badge { font-size: 12px; letter-spacing: 0; }
.mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mgrid div { padding: 12px 14px; }
.mgrid span { font-size: 11.5px; color: var(--ink-2); display: block; }
.mgrid b { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.hours { padding: 14px 18px 12px; }
.hours header { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
.hours .bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.hours .bars i { flex: 1; border-radius: 2px 2px 0 0; background: var(--cool); opacity: .6; }
.hours .bars i:nth-child(-n+3) { background: var(--ink); opacity: 1; }
.hours footer { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.made { padding: 14px 18px; }
.made h3 { margin: 0 0 10px; font-size: 13px; font-weight: 650; }
.made dl { margin: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; }
.made dt { color: var(--ink-3); }
.made dd { margin: 0; }
.made dd small { color: var(--ink-3); margin-left: 6px; }

/* 플랫폼 화면 흉내 */
.phone { border-radius: 22px; overflow: hidden; background: var(--solid); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(27, 27, 25, .5); font-size: 13.5px; }
.phone.dark { background: #0d0d0c; color: #fff; }
.ig-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-weight: 600; font-size: 13px; }
.ig-top .av { width: 30px; height: 30px; border-radius: 50%; background: #ccc center / cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--sun); }
.ig-top svg { margin-left: auto; width: 18px; height: 18px; }
.media { position: relative; background: #111 center / cover; overflow: hidden; }
.media.r45 { aspect-ratio: 4 / 5; }
.media.r916 { aspect-ratio: 9 / 16; max-height: 560px; width: 100%; }
.media .slides { display: flex; height: 100%; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.media .slides div { flex: 0 0 100%; height: 100%; background: center / cover; }
.media .nav-l, .media .nav-r { position: absolute; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); display: grid; place-items: center; }
.media .nav-l { left: 8px; } .media .nav-r { right: 8px; }
.media .nav-l svg, .media .nav-r svg { width: 14px; height: 14px; }
.media .count { position: absolute; right: 10px; top: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; }
.media .play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .35); color: #fff; }
.media .play svg { width: 22px; height: 22px; }
.dots { display: flex; justify-content: center; gap: 4px; padding-top: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #c9c9c4; }
.dots i.on { background: #3b82f6; }
.ig-acts { display: flex; align-items: center; gap: 14px; padding: 8px 12px 4px; }
.ig-acts span { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13px; }
.ig-acts svg { width: 22px; height: 22px; }
.ig-acts .save { margin-left: auto; }
.cap { padding: 4px 12px 14px; line-height: 1.5; }
.cap b { font-weight: 600; margin-right: 5px; }
.cap small { display: block; color: #8e8e8e; font-size: 12px; margin-top: 5px; }
.side-acts { position: absolute; right: 8px; bottom: 70px; display: grid; gap: 14px; justify-items: center; color: #fff; font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.side-acts span { display: grid; justify-items: center; gap: 2px; }
.side-acts svg { width: 26px; height: 26px; }
.over-cap { position: absolute; left: 12px; right: 60px; bottom: 14px; color: #fff; font-size: 13px; line-height: 1.45; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.over-cap b { display: block; margin-bottom: 4px; }
.tw { padding: 14px 16px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
.tw .av { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--sun); display: grid; place-items: center; font: 600 15px var(--display); }
.tw .nm { font-size: 13.5px; } .tw .nm b { font-weight: 650; } .tw .nm span { color: #8b8b85; margin-left: 4px; }
.tw p { margin: 4px 0 10px; font-size: 15px; line-height: 1.5; }
.tw .ph { aspect-ratio: 16 / 10; border-radius: 14px; background: center / cover; margin-bottom: 10px; border: 1px solid var(--line); }
.tw .row { display: flex; justify-content: space-between; color: #6c6c66; font-size: 12.5px; }
.tw .row span { display: inline-flex; align-items: center; gap: 5px; }
.tw .row svg { width: 16px; height: 16px; }
.nb { padding: 18px; }
.nb small { color: #03a94d; font-weight: 700; font-size: 12px; }
.nb h4 { margin: 6px 0 10px; font-size: 19px; line-height: 1.35; letter-spacing: -.03em; }
.nb .by { font-size: 12px; color: #8b8b85; margin-bottom: 12px; }
.nb .ph { aspect-ratio: 16 / 10; border-radius: 6px; background: center / cover; margin-bottom: 12px; }
.nb p { margin: 0 0 14px; color: #444; line-height: 1.7; }
.nb .row { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: #555; }
.hand-note { margin-top: 10px; font-size: 12px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }

/* ── 수동형 4단계 ─────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 18px; padding: 8px; }
.step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border: 0; background: none; text-align: left; border-radius: 14px; position: relative; }
.step + .step::before { content: ""; position: absolute; left: -6px; top: 50%; width: 12px; height: 1.5px; background: var(--line-2); }
.step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--display); background: rgba(27, 27, 25, .06); color: var(--ink-3); }
.step b { display: block; font-size: 13.5px; font-weight: 650; }
.step small { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.done .n { background: var(--ink); color: var(--sun); }
.step.now { background: var(--solid); box-shadow: 0 10px 26px -18px rgba(27, 27, 25, .45); }
.step.now .n { background: var(--sun); color: var(--ink); box-shadow: 0 0 0 5px var(--sun-halo); }
.step.lock { opacity: .5; cursor: default; }
.step.done:hover { background: rgba(255, 255, 255, .6); }
.work { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.panel { padding: 20px; }
.panel h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.panel > p { margin: 6px 0 16px; font-size: 13px; color: var(--ink-2); }
.cands { display: grid; gap: 8px; }
.cands.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cand { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--solid); text-align: left; transition: border-color .15s, box-shadow .15s; }
.cand:hover { border-color: var(--ink-3); }
.cand[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 4px var(--sun-halo); }
.cand b { font-size: 15px; font-weight: 600; line-height: 1.4; }
.cand small { font-size: 12px; color: var(--ink-3); }
.cand small.warn { color: var(--stop); }
.cand .hook { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.cand .body { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.cand .vis { aspect-ratio: 4 / 5; border-radius: 12px; background: #ddd center / cover; position: relative; overflow: hidden; }
.cand .vis span { position: absolute; left: 10px; right: 10px; bottom: 10px; color: #fff; font-weight: 650; font-size: 14px; line-height: 1.35; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.cand.skel { min-height: 64px; background: linear-gradient(90deg, #f3f3f0, #fff, #f3f3f0) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; border-color: transparent; }
@keyframes shimmer { to { background-position: -200% 0; } }
.again { display: flex; gap: 8px; margin-top: 14px; }
.field { flex: 1; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--solid); }
.field:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
textarea.field { padding: 12px 14px; min-height: 84px; resize: vertical; width: 100%; line-height: 1.5; }
.own { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.own summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); list-style: none; }
.own summary::-webkit-details-marker { display: none; }
.own summary::before { content: "+ "; }
.own[open] summary::before { content: "− "; }
.own .row { display: grid; gap: 8px; margin-top: 10px; }
.next-bar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.busy { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--solid); font-size: 12.5px; color: var(--ink-2); margin-bottom: 12px; }
.busy::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; background: var(--solid); border: 1.5px solid var(--sun-deep); font-size: 13px; }
.notice .acts { display: flex; gap: 6px; }
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--solid); text-align: left; }
.opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 4px var(--sun-halo); }
.opt .rd { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); margin-top: 1px; }
.opt[aria-pressed="true"] .rd { box-shadow: inset 0 0 0 6px var(--ink); }
.opt b { display: block; font-size: 14.5px; font-weight: 600; }
.opt small { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.preview-side { position: sticky; top: 24px; display: grid; gap: 10px; }
.preview-side > span { font-size: 12px; color: var(--ink-3); padding-left: 4px; }

/* ── 양식 모달 (채널 열기 · 광고주 링크) ────────── */
.form { width: min(620px, calc(100vw - 32px)); }
.form-body { padding: 8px 24px 24px; display: grid; gap: 18px; }
.form h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.03em; }
.fld { display: grid; gap: 8px; }
.fld > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.fld > span small { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick label span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; white-space: nowrap; border-radius: 999px; background: var(--solid); border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; }
.pick label span svg { width: 15px; height: 15px; flex: none; }
.pick input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.gates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gates label span { width: 100%; justify-content: center; }
.gates input:checked + span { background: var(--sun); color: var(--ink); border-color: transparent; box-shadow: 0 0 0 4px var(--sun-halo); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mirror-ck { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--solid); border: 1px solid var(--line-2); cursor: pointer; }
.mirror-ck input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.mirror-ck b { display: block; font-size: 13.5px; font-weight: 600; }
.mirror-ck small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; line-height: 1.5; }
.counter { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--solid); border: 1px solid var(--line-2); justify-self: start; }
.counter button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(27, 27, 25, .06); font-size: 16px; }
.counter output { min-width: 44px; text-align: center; font-weight: 650; }
.hint { font-size: 12px; color: var(--ink-3); margin: 0; }
.form-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.err { color: var(--stop); font-size: 12px; margin: 0; }
.link-box { display: flex; gap: 8px; }
.link-box .field { font-size: 13px; color: var(--ink-2); }
.see { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.see div { padding: 14px 16px; }
.see h3 { margin: 0 0 8px; font-size: 13px; }
.see ul { margin: 0; padding-left: 16px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; border: 0; background: none; padding: 0; }
.switch i { width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch[aria-checked="true"] i { background: var(--go); }
.switch[aria-checked="true"] i::after { transform: translateX(16px); }

/* ── 광고주 리포트 ───────────────────────────── */
body.report .app { grid-template-columns: minmax(0, 1fr); }
body.report .rail { display: none; }
body.report main { max-width: 1120px; margin: 0 auto; width: 100%; }
.peek { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 18px; margin-bottom: 20px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13px; }
.peek a { color: var(--sun); font-weight: 600; white-space: nowrap; }
.rp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.rp-head .mark small { color: var(--ink-2); }
.rp-head h1 { margin: 16px 0 0; font-size: 34px; font-weight: 650; letter-spacing: -.04em; line-height: 1.2; }
.rp-head p { margin: 6px 0 0; color: var(--ink-2); }
.rp-head .when { text-align: right; font-size: 12.5px; color: var(--ink-2); display: grid; gap: 4px; }
.best { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 16px; margin-bottom: 18px; align-items: center; }
.best .tile { aspect-ratio: 3 / 4; border-radius: 14px; }
.best h2 { margin: 6px 0 8px; font-size: 20px; font-weight: 650; letter-spacing: -.02em; line-height: 1.4; }
.best .badge { margin-right: 6px; }
.best .mrow { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.best .mrow b { display: block; font-size: 19px; color: var(--ink); font-weight: 650; }
.rp-foot { margin-top: 30px; font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── 알림 ─────────────────────────────────────── */
#toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; translate: -50% 20px; opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500; transition: opacity .25s, translate .25s; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; translate: -50% 0; }
#toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); flex: none; }

/* ── 화면 폭 ─────────────────────────────────── */
@media (max-width: 1260px) {
  .front-grid { grid-template-columns: minmax(0, 1fr); }
  .floor { grid-template-columns: minmax(0, 1fr); }
  .inbox { position: static; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .preview-side { position: static; max-width: 360px; }
}
@media (max-width: 1080px) {
  :root { --cols: 200px repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr) minmax(0, 1.25fr); }
  .line::after { left: calc(22px + 200px + (100% - 44px - 200px) / 5.55 / 2); right: calc(22px + (100% - 44px - 200px) * 1.25 / 5.55 / 2); }
  .post-body { grid-template-columns: minmax(0, 1fr); }
  .post-body .phone { max-width: 400px; width: 100%; margin: 0 auto; }
}
@media (max-width: 1080px) {
  .rrow { grid-template-columns: minmax(0, 1fr) 120px auto; }
  .rrow .rr-n + .rr-n, .rrow .rr-st { display: none; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(231, 231, 227, .92); border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .8); }
  .mark small, .rail-note { display: none; }
  .mark b { font-size: 16px; }
  .mark svg { width: 30px; height: 30px; }
  .nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; }
  .nav a { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
  .nav a i { display: none; }
  main { padding: 20px 16px 48px; }
  .head { flex-direction: column; align-items: stretch; }
  .head h1 { font-size: 25px; }
  .head .btn { align-self: flex-start; }
  /* 공장 판: 줄마다 위에 채널, 아래에 다섯 자리 */
  .board-head { display: none; }
  .line { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto auto; row-gap: 12px; padding: 14px 14px 16px; column-gap: 4px; }
  .line .ch { grid-column: 1 / -1; }
  .line::after { top: auto; bottom: 49px; left: 10%; right: 10%; }
  .st { flex-direction: column; gap: 4px; }
  .st::after { content: attr(data-l); font-size: 10.5px; color: var(--ink-3); }
  .slot { height: 28px; padding: 0 7px 0 3px; gap: 4px; }
  .tok { width: 20px; height: 20px; border-radius: 7px; }
  .tok + .tok { display: none; }
  .bin { padding: 5px 7px; gap: 5px; }
  .bin .cells { display: none; }
  .bin.low::before { display: none; }
  .pub { min-width: 0; padding: 4px 5px; }
  .pub b { font-size: 11px; }
  .pub .s { display: none; }
  .group { padding: 16px 14px 6px; }
  .legend { padding: 12px 14px 2px; gap: 10px; }
  .stats { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 12px 14px; }
  .stat strong { font-size: 20px; }
  .stat .spark { display: none; }
  .ch-head { flex-wrap: wrap; padding: 16px; }
  .ch-head .acts { margin-left: 0; width: 100%; justify-content: flex-start; }
  .grid.ig, .grid.tt, .grid.yt { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .list { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px; }
  .step { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 8px 4px; gap: 6px; }
  .step small { display: none; }
  .step b { font-size: 12px; }
  .cands.three { grid-template-columns: minmax(0, 1fr); }
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-body { padding: 14px 14px 20px; }
  .modal-top { padding: 14px 14px 0; }
  .see, .two { grid-template-columns: minmax(0, 1fr); }
  .gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .best { grid-template-columns: 120px minmax(0, 1fr); }
  .cc-grid { grid-template-columns: minmax(0, 1fr); }
  .cal { display: none; }
  .agenda { display: block; margin-top: 8px; }
  .cal-nav .btn:not(.ghost) { display: none; }
  .slotc { flex-basis: 260px; }
  .nav a small { display: none; }
  .aud-row { grid-template-columns: 96px minmax(0, 1fr); }
  .aud-row .av { grid-column: 1 / -1; text-align: left; font-size: 12px; padding-top: 0; }
  .rrow { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; }
  .rrow .rr-n, .rrow .rr-st { display: none; }
  .cmp th:first-child { max-width: 140px; }
  .cmp th, .cmp td { padding: 8px 6px; }
  .fstrip { flex-wrap: wrap; }
  .fstrip em { margin-left: 28px; }
  .lead { grid-template-columns: 120px minmax(0, 1fr); }
  .lead .hl { font-size: 21px; }
  .lead-txt { padding: 16px; }
  .cs { flex-basis: calc((100% - 36px - 12px) / 3.4); }
  .krow { grid-template-columns: 64px 38px minmax(0, 1fr) 78px; gap: 8px; }
  .krow .ks { display: none; }
  .line.mirror { min-height: 0; }
  .fork { padding-left: 0; gap: 3px; justify-items: center; }
  .fork::before { display: none; }
  .fk .pfm { width: 14px; height: 14px; }
  .fk .pfm svg { width: 9px; height: 9px; }
  .line.sub .ch { padding-left: 16px; }
  .cc-nums dd { font-size: 17px; }
  .rp-head { flex-direction: column; align-items: flex-start; }
  .rp-head .when { text-align: left; }
  .blogrow { grid-template-columns: 92px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ══ GAZE 데스크: 광고주 · 상품 · 공유 링크 (2026-10-16) ══════════════════
   공장 시안 톤(회백 바닥 · 반투명 흰 판 · 차콜 · 옐로)을 그대로 잇는다.
   기억할 거리 하나 = 진행 단계 줄(.track). 나머지는 조용하게. */

/* ── 왼쪽 레일: 광고주 / 우리 채널 나무 ── */
.rail { gap: 14px; overflow: hidden; }
.rail .tree { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -8px; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.tree-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 4px 12px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.tree-h a, .tree-h > span { display: inline-flex; align-items: center; gap: 6px; }
.tree-h a:hover, .tree-h a[aria-current="page"] { color: var(--ink); }
.tree-h i { font-style: normal; font-weight: 500; }
.tree-add { width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; }
.tree-add:hover { background: var(--sheet); color: var(--ink); }
.tree-add svg { width: 15px; height: 15px; }
.tree-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.tree-empty { padding: 6px 12px; font-size: 12px; color: var(--ink-3); }
.tc-line { display: flex; align-items: center; gap: 2px; }
.tc-a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-size: 13.5px; }
.tc-a b { font-weight: 550; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-a small { margin-left: auto; padding-left: 6px; font-size: 11px; color: var(--ink-3); flex: none; }
.tc-a:hover { background: var(--sheet); color: var(--ink); }
.tc-a[aria-current="page"] { background: var(--solid); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(27, 27, 25, .4); }
.sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.tc-tog { width: 26px; height: 26px; flex: none; border: 0; background: transparent; border-radius: 8px; color: var(--ink-3); display: grid; place-items: center; }
.tc-tog:hover { background: var(--sheet); color: var(--ink); }
.tc-tog svg { width: 14px; height: 14px; transition: transform .2s; }
.tc-tog[aria-expanded="true"] svg { transform: rotate(90deg); }
.tc-ch { list-style: none; margin: 2px 0 8px; padding: 0 0 0 18px; display: grid; gap: 1px; }
.tc-ch a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px; font-size: 13px; color: var(--ink-2); }
.tc-ch a:hover { background: var(--sheet); color: var(--ink); }
.tc-ch a[aria-current="page"] { background: var(--solid); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.tc-ch a small { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.tc-ch .pfm, .pf-row .pfm { width: 18px; height: 18px; }
.tc-ch .pfm svg, .pf-row .pfm svg { width: 11px; height: 11px; }
.tc-add { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; background: none; font-size: 12px; color: var(--ink-3); border-radius: 9px; }
.tc-add:hover { color: var(--ink); background: var(--sheet); }
.tc-add svg { width: 13px; height: 13px; }
.pf-row { display: inline-flex; gap: 2px; flex: none; }
.set-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--ink-2); }
.set-link svg { width: 18px; height: 18px; flex: none; }
.set-link span { display: grid; gap: 1px; }
.set-link b { font-weight: 600; font-size: 14px; }
.set-link small { font-size: 11.5px; color: var(--ink-3); }
.set-link:hover { background: var(--sheet); color: var(--ink); }
.set-link[aria-current="page"] { background: var(--solid); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(27, 27, 25, .4); }
.rail-note .live { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-note .live.demo::before { background: var(--sun-deep); box-shadow: 0 0 0 4px var(--sun-halo); }
.linkish { border: 0; background: none; padding: 0; color: var(--ink-2); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; text-align: left; }
.linkish:hover { color: var(--ink); }
.nav .nav-m { display: none; }

/* ── 진행 단계 줄 (기억할 거리) ── */
.track { --dot: 18px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
.track::before, .track::after { content: ""; position: absolute; top: calc(var(--dot) / 2 - 3px); left: calc(100% / var(--n) / 2); height: 6px; border-radius: 3px; }
.track::before { right: calc(100% / var(--n) / 2); background: rgba(27, 27, 25, .08); }
.track::after { width: calc((100% - 100% / var(--n)) * var(--f, 0)); background: var(--sun); box-shadow: inset 0 0 0 1px rgba(169, 173, 12, .45), 0 6px 18px -6px rgba(169, 173, 12, .8); transition: width .6s cubic-bezier(.16, 1, .3, 1); }
.track li { position: relative; z-index: 1; min-width: 0; display: grid; }
.track li > span, .track li > button { display: grid; justify-items: center; gap: 9px; width: 100%; border: 0; background: none; padding: 0; color: var(--ink-3); border-radius: 12px; }
.track i { width: var(--dot); height: var(--dot); border-radius: 50%; background: #f4f4f1; box-shadow: inset 0 0 0 2px rgba(27, 27, 25, .16); transition: transform .2s, box-shadow .2s, background .2s; }
.track b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; }
.track li.done i { background: var(--sun); box-shadow: inset 0 0 0 2px var(--sun-deep); }
.track li.done b { color: var(--ink-2); }
.track li.now i { background: var(--ink); box-shadow: 0 0 0 5px var(--sun), 0 0 0 9px var(--sun-halo); }
.track li.now b { color: var(--ink); font-weight: 700; }
.track.edit button { cursor: pointer; }
.track.edit button:hover i { transform: scale(1.12); }
.track.edit button:hover b { color: var(--ink); }

/* ── 광고주 전체 ── */
.stage-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.stage-sum span { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--sheet); border: 1px solid rgba(255, 255, 255, .9); font-size: 12.5px; font-weight: 500; }
.stage-sum i { width: 8px; height: 8px; border-radius: 50%; }
.stage-sum b { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: rgba(27, 27, 25, .06); font-size: 11.5px; font-weight: 600; }
.clist { padding: 4px 0 8px; }
.cl-head, .cl-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr) 96px minmax(0, .8fr) minmax(0, 1.1fr); gap: 16px; align-items: center; padding: 0 22px; }
.cl-head { height: 44px; font-size: 12px; color: var(--ink-3); }
.cl-row { padding-top: 14px; padding-bottom: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.cl-row:hover { background: rgba(255, 255, 255, .55); }
.cl-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cl-name b { display: block; font-size: 14.5px; font-weight: 600; }
.cl-row small { display: block; font-size: 11.5px; color: var(--ink-3); }
.cl-av { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--ink); color: #fff; font: 600 15px/1 var(--display); font-style: normal; position: relative; }
.cl-av::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--sun)); box-shadow: 0 0 0 2.5px #f1f1ed; }
.cl-av.lg { width: 56px; height: 56px; border-radius: 18px; font-size: 24px; }
.cl-av.lg::after { width: 16px; height: 16px; }
.mtrack { display: flex; gap: 3px; margin-bottom: 5px; }
.mtrack i { flex: 1; max-width: 22px; height: 6px; border-radius: 3px; background: rgba(27, 27, 25, .09); }
.mtrack i.on { background: var(--sun-deep); }
.cl-pn { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.cl-pn em { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(27, 27, 25, .06); }
.cl-next { color: var(--ink-2); }

/* ── 광고주 하나 ── */
.cl-top { padding: 22px 24px 22px; margin-bottom: 20px; display: grid; gap: 20px; }
.cl-id { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cl-id h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
.cl-id p { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; }
.cl-id .acts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.cl-track { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; padding-top: 20px; border-top: 1px solid var(--line); }
.cl-track-l { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cl-track-l small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }
.cl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cl-side { display: grid; gap: 4px; position: sticky; top: 24px; }
.cl-side textarea.field { min-height: 92px; background: var(--sheet-hi); }
.cl-side .fld { margin-top: 10px; }
.block > header .btn, .block > header .badge { margin-left: auto; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 12.5px; gap: 6px; }
.btn.sm svg { width: 14px; height: 14px; }
.btn.danger { background: var(--stop); color: #fff; border-color: var(--stop); }
.btn.danger:hover { background: #c23a32; border-color: #c23a32; }
.x-btn.sm { width: 30px; height: 30px; flex: none; }
.x-btn.sm svg { width: 13px; height: 13px; }
.x-btn[disabled] { opacity: .35; cursor: not-allowed; }
a.badge.hand:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.chc { padding: 14px 16px 12px; display: grid; gap: 3px; align-content: start; }
.chc:hover { background: var(--sheet-hi); }
.chc-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.chc-top .badge { margin-left: auto; }
.chc > small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chc-n { display: flex; gap: 18px; margin-top: 8px; font-size: 11.5px; color: var(--ink-2); }
.chc-n b { display: block; font-size: 19px; color: var(--ink); font-weight: 650; letter-spacing: -.02em; }
.chc .spark { height: 26px; margin-top: 6px; }
.chc-none { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }

/* 계약 상품 카드 */
.kc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.kc { padding: 16px 18px 10px; }
.kc header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.kc header > div { min-width: 0; flex: 1; }
.kc header b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.kc header small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.kc-chip { width: 12px; height: 12px; border-radius: 4px; background: var(--pc, var(--sun)); margin-top: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(27, 27, 25, .12); }
.kc-price { font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; margin-top: 2px; }
.kl-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ki { display: grid; grid-template-columns: minmax(0, 1fr) 84px 60px 62px; gap: 10px; align-items: center; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.kl-list.ro .ki { grid-template-columns: minmax(0, 1fr) 96px 64px; min-height: 40px; }
.kl { min-width: 0; }
/* 계약 진행 막대는 계약 줄(.ki) 안에서만. .kbar · .kn 은 채널 화면 「콘텐츠별」이 먼저 쓰는 이름이다 */
.ki .kbar { height: 6px; border-radius: 3px; background: rgba(27, 27, 25, .08); overflow: hidden; }
.ki .kbar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
.ki.full .kbar i { background: var(--go); }
.ki .kn { text-align: right; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.ki .kn b { color: var(--ink); font-size: 14px; font-weight: 650; }
.ki .kn.inc { grid-column: 2 / 4; }
.kstep { display: inline-flex; gap: 4px; justify-self: end; }
.kstep button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--solid); font-size: 15px; line-height: 1; display: grid; place-items: center; }
.kstep button:hover { border-color: var(--ink); }

/* 공유 링크 줄 */
.sh-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.sh-main b { display: block; font-size: 13.5px; font-weight: 600; }
.sh-main small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.sh-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sh-acts .switch { margin-left: auto; }
.sh-list { padding: 4px 0 6px; }
.sh-list .sh-row:first-child { border-top: 0; }
.sh-row.wide { grid-template-columns: minmax(0, 1fr) auto auto; padding: 14px 22px; gap: 14px; }
.sh-row.wide .sh-acts { grid-column: auto; }
.switch.sm i { width: 36px; height: 22px; }
.switch.sm i::after { width: 16px; height: 16px; }
.switch.sm[aria-checked="true"] i::after { transform: translateX(14px); }

/* ── 양식: 광고주 · 상품 넣기 · 링크 · 묻기 ── */
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--stop-soft); font-size: 12.5px; color: #8a2a24; }
.pw-row { display: flex; gap: 8px; }
.field.pw { font-size: 17px; font-weight: 650; letter-spacing: .08em; color: var(--ink); }
.pick .sdot { width: 9px; height: 9px; }
.pick.col { display: grid; gap: 6px; }
.pick.col label span { height: auto; padding: 10px 14px; border-radius: 14px; display: grid; grid-template-columns: 12px minmax(0, 1fr); white-space: normal; gap: 2px 10px; align-items: center; }
.pick.col label span .sdot { grid-row: span 2; align-self: start; margin-top: 5px; }
.pick.col label span small { grid-column: 2; font-size: 12px; opacity: .72; font-weight: 400; }
.ck { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.ck input { width: 18px; height: 18px; accent-color: var(--ink); }
.ask { width: min(460px, calc(100vw - 32px)); }
.ask p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.see { margin-top: -4px; }

/* ── 설정: 상품 ── */
.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 12px; }
.pd { padding: 18px 18px 14px; display: grid; gap: 8px; align-content: start; position: relative; overflow: hidden; }
.pd::before { content: ""; position: absolute; inset: 0 0 auto; height: 80px; background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 30%, transparent), transparent); pointer-events: none; }
.pd > * { position: relative; }
.pd header { display: flex; align-items: center; gap: 6px; }
.pd-chip { width: 14px; height: 14px; border-radius: 5px; background: var(--pc); box-shadow: inset 0 0 0 1px rgba(27, 27, 25, .12); }
.pd-used { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.pd h3 { margin: 6px 0 0; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.pd p { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.pd-price { font-size: 22px; font-weight: 650; letter-spacing: -.03em; margin-top: 4px; }
.pd-items { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 5px; }
.pd-items li { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(27, 27, 25, .06); }
.pd footer { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.mv { display: inline-flex; gap: 2px; }
.pd footer .mv { margin-left: auto; }
.mv .btn { width: 32px; padding: 0; }
.pd.off { opacity: .6; }
.pd.mini { gap: 6px; }
.pd-add { display: grid; place-content: center; justify-items: center; gap: 6px; min-height: 220px; border-radius: var(--r); border: 1.5px dashed var(--line-2); background: transparent; color: var(--ink-2); }
.pd-add svg { width: 22px; height: 22px; }
.pd-add b { font-size: 15px; color: var(--ink); }
.pd-add small { font-size: 12px; color: var(--ink-3); }
.pd-add:hover { border-color: var(--ink); background: var(--sheet); }
.form.wide { width: min(960px, calc(100vw - 32px)); }
.pe { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.pe-prev { padding: 8px 24px 24px 4px; display: grid; gap: 10px; align-content: start; }
.pe-l { font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; margin-top: 4px; }
.pe-note { font-size: 11.5px; color: var(--ink-3); }
.it-rows { display: grid; gap: 6px; }
.it-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 66px 30px; gap: 6px; align-items: center; }
.it-row .field { min-height: 38px; padding: 0 10px; min-width: 0; }
.fld > .btn { justify-self: start; }
.pick.sw label span { width: 34px; height: 34px; padding: 0; background: var(--sw); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px var(--line-2); }
.pick.sw input:checked + span { background: var(--sw); border-color: #fff; box-shadow: 0 0 0 2px var(--ink); }

/* ── 설정: 단계 · 직원 · 데이터 ── */
.st-list { padding: 18px 22px 18px; display: grid; gap: 8px; }
.st-preview { padding: 6px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; gap: 12px; }
.st-preview small { font-size: 11.5px; color: var(--ink-3); }
.st-row { display: grid; grid-template-columns: 22px 36px minmax(0, 260px) 80px auto 30px; gap: 10px; align-items: center; }
.st-n { font: 600 12px/1 var(--display); color: var(--ink-3); text-align: center; }
.sw-in { display: grid; }
.sw-in input { width: 34px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.st-row small { font-size: 12px; color: var(--ink-3); }
.st-add { display: flex; gap: 8px; margin-top: 10px; max-width: 560px; }
.staff-list { padding: 12px 22px 18px; display: grid; gap: 2px; }
.sf-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.sf-row:first-child { border-top: 0; }
.sf-row b { display: block; font-size: 14px; font-weight: 600; }
.sf-row small { display: block; font-size: 12px; color: var(--ink-3); }
.sf-row .btn { margin-left: auto; }
.staff-list .st-add select { flex: 0 0 120px; }
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.data-grid .block { padding: 18px 20px; margin: 0; display: grid; gap: 10px; align-content: start; }
.data-grid p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.data-grid .btn { justify-self: start; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.file-btn { cursor: pointer; }

/* ── 로그인 막 ── */
body.gated .app { visibility: hidden; }
/* 로그인 막·광고주 잠금은 id 로만 부른다. .gate · .lock 은 공장 판(승인 대기 단추·잠긴 단계)이 먼저 쓰는 이름이다 (2026-10-16 화면 전체가 노랗게 덮인 일) */
#gate, #lock { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; }
#gate[hidden], #lock[hidden] { display: none; }
.gate-card { width: min(460px, 100%); padding: 30px 30px 26px; display: grid; gap: 14px; background: var(--sheet-hi); }
.gate-card h1 { margin: 8px 0 0; font-size: 26px; font-weight: 650; letter-spacing: -.035em; }
.gate-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.gate-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.gate-card .busy { margin: 0; justify-self: center; }
.gate-card .fld { margin-top: 4px; }

/* ── 광고주 화면: 현재 상황 · 진행 중인 작업 ── */
.rp-status { padding: 20px 24px 22px; margin-bottom: 26px; display: grid; gap: 20px; }
.rp-status header { display: flex; align-items: center; gap: 10px; }
.rp-status h3 { margin: 0; font-size: 16px; font-weight: 650; }
.rp-note { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); max-width: 64ch; }
.rp-next { margin: -6px 0 0; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.rp-next span { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--sun); }
.rp-prod { margin-bottom: 28px; }
.rp-ch-h { margin-top: 4px; }

@media (max-width: 860px) {
  .rail .tree, .set-link { display: none; }
  .nav .nav-m { display: flex; }
  .cl-head { display: none; }
  .cl-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; }
  .cl-row .cl-prod, .cl-row .cl-next { grid-column: 1 / -1; }
  .cl-row .cl-stage { justify-self: end; text-align: right; }
  .cl-row .cl-ch { display: none; }
  .cl-top { padding: 18px 16px; }
  .cl-id h1 { font-size: 23px; }
  .cl-id .acts { margin-left: 0; width: 100%; }
  .cl-track { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cl-grid { grid-template-columns: minmax(0, 1fr); }
  .cl-side { position: static; }
  .track b { font-size: 11px; }
  .ki { grid-template-columns: minmax(0, 1fr) 54px 54px 62px; gap: 8px; }
  .kl-list.ro .ki { grid-template-columns: minmax(0, 1fr) 64px 60px; }
  .sh-row.wide { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; }
  .sh-row.wide .sh-acts { grid-column: 1 / -1; }
  .pe { grid-template-columns: minmax(0, 1fr); }
  .pe-prev { padding: 0 24px 24px; }
  .it-row { grid-template-columns: minmax(0, 1fr) 60px 54px 30px; }
  .st-row { grid-template-columns: 18px 34px minmax(0, 1fr) 30px; }
  .st-row small, .st-row .mv { display: none; }
  .data-grid { grid-template-columns: minmax(0, 1fr); }
  .rp-status { padding: 16px; }
  .danger-zone { flex-direction: column; align-items: flex-start; }
}
.mtrack { width: 104px; }
.mark { flex: none; }
.mark b { white-space: nowrap; }
@media (max-width: 860px) { .mtrack { width: 84px; margin-left: auto; } }

/* ── 직원 승인 (2026-10-16: 직원 목록·승인은 대표만) ── */
.staff-list { margin-bottom: 12px; }
.staff-list h3 { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 6px; font-size: 15px; font-weight: 650; }
.staff-list h3 b { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.staff-list h3 small { font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: auto; }
.req-list.on { border: 1.5px solid var(--sun-deep); box-shadow: 0 0 0 4px var(--sun-halo), 0 18px 40px -30px rgba(27, 27, 25, .35); }
.sf-acts { margin-left: auto; display: inline-flex; gap: 6px; }
.set-link { position: relative; }
.set-n { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--sun); color: var(--ink); white-space: nowrap; }

/* ── 실제 숫자 · 연결 (2026-10-16: 맥 수집기 · 네이버 손 입력 · 설정 → 연결) ── */
.pull-band { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; font-size: 13px; color: var(--ink); background: var(--sun-halo); border: 1px solid var(--sun-deep); }
.pull-band.stop { background: var(--stop-soft); border-color: var(--stop); }
.pull-band span { color: var(--ink-2); }
.pull-band a { margin-left: auto; font-weight: 600; color: var(--ink); }
.real-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.real-line.bad { color: var(--stop); }
.field.num { font-variant-numeric: tabular-nums; }
.ck-pull .bad, .ck-acts .bad { color: var(--stop); }   /* 혼자 오는 .bad 는 공장 원래 이름과 겹쳐 좁혔다 (2026-10-16) */

.ck-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 20px 22px; margin-bottom: 12px; }
.ck-head > div:first-child { flex: 1 1 320px; }
.ck-head h2 { margin: 0 0 4px; font: 600 20px/1.3 var(--display); }
.ck-head p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; max-width: 62ch; }
.ck-meter { display: flex; align-items: center; gap: 12px; }
.ck-meter b { font-size: 15px; font-variant-numeric: tabular-nums; }
/* 기억할 거리 하나: 할 일 칸이 하나씩 노랗게 찬다 (광고주 화면의 단계 줄과 같은 말투) */
.ck-track { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; width: min(260px, 52vw); }
.ck-track i { height: 10px; border-radius: 3px; background: var(--line-2); }
.ck-track i.on { background: var(--sun); box-shadow: inset 0 0 0 1px var(--sun-deep); }
@media (prefers-reduced-motion: no-preference) { .ck-track i.on { transition: background .4s ease; } }
.ck-group { padding: 16px 22px 8px; margin-bottom: 12px; }
.ck-group h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; font-size: 15px; font-weight: 650; }
.ck-group h3 i { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.ck-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.ck-row:first-of-type { border-top: 0; }
.ck-row.done .ck-main b { color: var(--ink-2); }
.ck-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ck-main b { font-size: 14px; font-weight: 650; }
.ck-main p { flex-basis: 100%; margin: 2px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; }
.ck-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: flex-end; }
.ck-secrets { grid-column: 1 / -1; display: grid; gap: 8px; }
.ck-secret { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.ck-secret label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: grid; gap: 2px; }
.ck-secret label small { font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ck-pull p { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); line-height: 1.6; font-variant-numeric: tabular-nums; }
.ck-pull p b { display: inline-block; min-width: 92px; color: var(--ink); font-weight: 600; }
.ck-group .ck-acts { justify-content: flex-start; padding: 6px 0 10px; }

.hand-auto { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hand-period { border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px 14px; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hand-period legend { padding: 0 6px; font-size: 13px; font-weight: 650; }
.hand-period .fld { min-width: 0; }
.hand-period .field { width: 100%; min-width: 0; }
.hand-period legend small { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.hand-posts { display: grid; gap: 8px; }
.hp-head { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.hp-head span { color: var(--ink-3); font-size: 12px; }
.hp-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 80px 76px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.hp-row .field { min-height: 36px; padding: 0 10px; width: 100%; }
.hp-t { display: grid; min-width: 0; }
.hp-t b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-t small, .hp-c { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hp-warn { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--stop); }
@media (max-width: 860px) {
  .ck-row { grid-template-columns: minmax(0, 1fr); }
  .ck-acts { justify-content: flex-start; }
  .ck-secret { grid-template-columns: minmax(0, 1fr) auto; }
  .ck-secret label { grid-column: 1 / -1; }
  .hand-period { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-row { grid-template-columns: minmax(0, 1fr) 76px 64px; }
  .hp-c { display: none; }
}

/* ── 업무 (2026-10-20 워크스페이스) ──────────────────
   왼쪽 할 일 · 오른쪽 캘린더. 기억할 거리 하나: 말하듯 적으면 읽은 날짜·시각이 노란 알로 뜨는 입력칸.
   업무는 알로 끌어서 캘린더에 놓는다. 카테고리 색(--k)은 구글 캘린더 일정 색과 같다 */
.calst { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12.5px; color: var(--ink-2); }
.calst-t { display: inline-flex; align-items: center; gap: 7px; }
.calst-d { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.calst.on .calst-d { background: var(--go); box-shadow: 0 0 0 3px var(--go-soft); }
.calst.bad .calst-d { background: var(--stop); }
.calst.bad .calst-t { color: #8a2a24; }
.filters .calst { margin-left: auto; }

.qa { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 8px 6px 18px; margin-bottom: 14px; background: var(--sheet-hi); }
.qa-in { min-height: 44px; border: 0; background: none; font-size: 16px; font-weight: 500; letter-spacing: -.02em; outline: 0; min-width: 0; }
.qa-in::placeholder { color: var(--ink-3); font-weight: 400; }
.qa:focus-within { box-shadow: 0 0 0 2px var(--ink), 0 18px 40px -30px rgba(27, 27, 25, .35); }
.qa-read { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.qa-read:empty { display: none; }
/* 업무 화면 맨 위: 제목 옆에 입력칸. 읽은 것은 입력칸 아래에 떠서 캘린더를 밀지 않는다 */
.ws-top { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; margin-bottom: 16px; }
.ws-title h1 { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 650; letter-spacing: -.035em; }
.ws-title p { margin: 6px 0 0; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.ws-title p b { color: var(--ink); font-weight: 600; }
.ws-title p b.bad { color: var(--stop); }
.ws-title p .dot { color: var(--ink-3); margin: 0 6px; }
.ws-top .qa { position: relative; margin: 0; z-index: 5; }
.ws-top .qa-read { position: absolute; left: 0; right: 0; top: calc(100% + 6px); padding: 10px 14px; border-radius: 16px; background: var(--solid); box-shadow: 0 18px 40px -20px rgba(27, 27, 25, .45), inset 0 0 0 1px var(--line); }
.ws-top .qa:not(:focus-within) .qa-read { display: none; }
.qa-b { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(27, 27, 25, .06); color: var(--ink); font-weight: 600; font-size: 12px; }
.qa-b.on { background: var(--sun); box-shadow: 0 0 0 3px var(--sun-halo); }
.qa-b.who { padding-left: 4px; }
.ai-m { display: inline-grid; place-items: center; height: 18px; padding: 0 6px; margin-right: 4px; border-radius: 6px; background: var(--ink); color: var(--sun); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
@media (prefers-reduced-motion: no-preference) {
  .qa-b { animation: qa-pop .18s ease-out; }
  @keyframes qa-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* 이름 동그라미 · 카테고리 점 */
.avs { display: inline-flex; align-items: center; flex: none; }
.av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: -.04em; color: var(--ink); background: #e3e3dd; box-shadow: 0 0 0 1.5px var(--solid); }
.av.av0 { background: var(--sun); }
.av.av1 { background: var(--haze-b); }
.avs .av + .av { margin-left: -7px; }
.avs.sm .av { width: 20px; height: 20px; font-size: 9.5px; }
.avs.xs .av { width: 18px; height: 18px; font-size: 8.5px; }
.cdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--k, var(--ink)); flex: none; }
.tyb { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 600; }

/* 두 칸 */
.ws { --ws-h: max(560px, calc(100vh - 136px)); display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ws-list { display: flex; flex-direction: column; gap: 10px; height: var(--ws-h); overflow: auto; padding: 2px 4px 2px 2px; scrollbar-width: thin; }
.ws-list > * { flex: none; }
.ws-list .chip { height: 30px; padding-left: 8px; font-size: 12.5px; gap: 6px; }
.ws-list .chip b { min-width: 20px; height: 20px; }
body.on-tasks main { padding-bottom: 16px; }
.ws-list .cal-pills { margin: 0; }
.tk-col { padding: 12px 10px 10px; min-width: 0; border-radius: 18px; background: var(--sheet); border: 1px solid rgba(255, 255, 255, .85); }
.tk-col > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px 8px; }
.tk-col h2 { margin: 0; font-size: 14px; font-weight: 650; display: inline-flex; align-items: center; gap: 8px; }
.tk-col h2 b { min-width: 22px; height: 22px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: rgba(27, 27, 25, .07); font-size: 12px; font-weight: 600; }
.tk-today h2 b { background: var(--sun); }
.tk-col > header small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.tk-tray { border: 1.5px dashed var(--line-2); background: rgba(255, 255, 255, .45); }
.tk-tray.drop-on { border-color: var(--ink); background: var(--sheet-hi); }
.tk-list { display: grid; gap: 6px; }
.tk-empty { margin: 0; padding: 12px 6px; text-align: center; font-size: 12px; color: var(--ink-3); }

/* 알 (날짜 없는 업무) */
.tp-tray { display: flex; flex-wrap: wrap; gap: 6px; }
.tp { display: inline-flex; max-width: 100%; border-radius: 999px; background: var(--solid); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 45%, transparent), 0 6px 16px -12px rgba(27, 27, 25, .5); cursor: grab; }
.tp-b { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 6px 6px 6px 12px; border: 0; background: none; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: inherit; }
.tp-b > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp.is-doing { box-shadow: inset 0 0 0 1.5px var(--sun-deep); }
.tp.dragging, .tk.dragging, .wb.dragging { opacity: .35; }

/* 목록 카드 */
.tk { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; border-radius: 14px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.tk[draggable="true"] { cursor: grab; }
.tk:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.tk-chk { width: 20px; height: 20px; margin: 11px 0 0 10px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink-3); background: var(--solid); color: transparent; }
.tk-chk svg { width: 12px; height: 12px; }
.tk-chk:hover { border-color: var(--ink); color: var(--ink-3); }
.tk.is-late .tk-chk { border-color: var(--stop); }
.tk.is-doing .tk-chk { border-color: var(--sun-deep); background: linear-gradient(90deg, var(--sun) 50%, var(--solid) 50%); }
.tk-chk[aria-checked="true"], .wb-chk[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (prefers-reduced-motion: no-preference) { .tk-chk, .wb-chk { transition: background .15s ease, border-color .15s ease, color .15s ease; } }
.tk-body { display: grid; gap: 5px; min-width: 0; padding: 9px 10px 9px 8px; border: 0; background: none; text-align: left; border-radius: 0 14px 14px 0; cursor: inherit; }
.tk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tk-top b { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.tk.is-done .tk-top b { color: var(--ink-3); text-decoration: line-through; }
.tk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 11.5px; color: var(--ink-3); }
.tk-meta .badge { height: 19px; font-size: 11px; }
.tk-when { color: var(--ink); font-weight: 600; }
.tk.is-late .tk-when { color: var(--stop); }
.tk-cal { display: inline-grid; place-items: center; color: var(--go); }
.tk-cal svg { width: 13px; height: 13px; }
.tk-moved { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 0 8px 8px; padding: 7px 10px; border-radius: 10px; background: #f8f9c9; font-size: 12px; color: var(--ink); }
.tk-moved.in-form { margin: 0; }
.tk-list.in-client .tk { box-shadow: inset 0 0 0 1px var(--line-2); }
.todo.t-task .th::after { background: var(--ink); }

/* 캘린더 칸 */
.ws-cal { display: flex; flex-direction: column; height: var(--ws-h); padding: 12px 14px 10px; min-width: 0; }
.wsc-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.wsc-h .calst { margin-left: auto; }
.wsc-h .calst + .cal-nav { margin-left: 0; }
.ws-cal .wk, .ws-cal .mo { flex: 1; min-height: 0; }
.ws-cal .wk { display: flex; flex-direction: column; }
.ws-cal .wk-body { flex: 1; min-height: 0; max-height: none; }
.ws-cal .mo { display: flex; flex-direction: column; }
.ws-cal .mo .cal-g { flex: 1; grid-auto-rows: minmax(0, 1fr); }
.ws-cal .mo .cd { min-height: 0; overflow: hidden; }
.wsc-r { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.wsc-h .cal-nav { margin-left: auto; }
.wsc-lg { padding: 10px 4px 0; align-items: center; gap: 6px 14px; }
.wk { --hh: 48px; border-radius: 14px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; user-select: none; -webkit-user-select: none; }
.wk-head { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); }
.wk-d { display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; border: 0; background: none; }
.wk-d small { font-size: 11.5px; color: var(--ink-3); }
.wk-d b { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 999px; font-size: 16px; font-weight: 650; }
.wk-d:hover b { background: rgba(27, 27, 25, .06); }
.wk-d.today b { background: var(--sun); box-shadow: 0 0 0 4px var(--sun-halo); }
.wk-all { display: grid; grid-template-columns: 44px minmax(0, 1fr); border-bottom: 1px solid var(--line-2); }
.wk-lab { padding: 9px 6px 0 0; font-size: 11px; color: var(--ink-3); text-align: right; }
.wk-bars { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 26px; grid-auto-flow: row dense; gap: 3px 0; padding: 4px 0; min-height: 36px; }
.wk-drops { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wk-drops i { border-left: 1px solid var(--line); cursor: cell; }
.wk-drops i.drop-on, .wk-drops i.sel-on, .mo .cd.drop-on, .mo .cd.sel-on { background: var(--sun-halo); }
.wk-bars .wb { position: relative; z-index: 1; margin: 0 3px; align-items: center; }
.wk-body { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: start; max-height: min(660px, calc(100vh - 260px)); overflow-y: auto; }
.wk-hours { display: grid; grid-auto-rows: var(--hh); }
.wk-hours span { padding-right: 6px; font-size: 11px; color: var(--ink-3); text-align: right; transform: translateY(-7px); }
.wk-hours span:first-child { transform: none; }
.wk-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); height: calc(var(--rows) * var(--hh)); background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--hh) - 1px), var(--line) calc(var(--hh) - 1px) var(--hh)); }
.wk-col { position: relative; border-left: 1px solid var(--line); cursor: cell; }
.wk-col.today { background-color: rgba(223, 229, 27, .07); }
.wk-col.past { background-color: rgba(27, 27, 25, .018); }
.wk-col.drop-on { background-color: rgba(223, 229, 27, .14); }
.wk-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--stop); z-index: 3; pointer-events: none; }
.wk-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--stop); }
.wk-ghost { position: absolute; left: 2px; right: 3px; z-index: 2; padding: 3px 7px; border-radius: 8px; background: var(--sun-halo); box-shadow: inset 0 0 0 1.5px var(--sun-deep); font-size: 11px; font-weight: 700; font-style: normal; pointer-events: none; }
.wk-ghost.sel { background: rgba(223, 229, 27, .5); }

/* 일정 칸 하나 (업무 · 구글 일정) */
.wb { display: flex; align-items: flex-start; gap: 4px; min-width: 0; padding: 3px 4px; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--k) 15%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 50%, transparent); font-size: 11.5px; }
.wk-col .wb { position: absolute; }
.wb[draggable="true"] { cursor: grab; }
.wb.is-g { background: #fff; box-shadow: inset 0 0 0 1px var(--cool); }
.wb.is-done { opacity: .6; }
.wb.is-done .wb-t b { text-decoration: line-through; }
.wb.resizing { z-index: 4; box-shadow: inset 0 0 0 1.5px var(--ink), 0 10px 22px -12px rgba(27, 27, 25, .5); }
.wb-chk { flex: none; width: 16px; height: 16px; margin-top: 1px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--k) 70%, var(--ink)); background: var(--solid); color: transparent; }
.wb-chk svg { width: 10px; height: 10px; }
.wb-chk:hover { color: var(--ink-3); }
.wb.is-late .wb-chk { border-color: var(--stop); }
.wb-g { flex: none; display: grid; place-items: center; width: 16px; height: 16px; color: #2f6f9a; }
.wb-g svg { width: 12px; height: 12px; }
.wb-in { display: flex; align-items: flex-start; gap: 4px; min-width: 0; flex: 1; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); cursor: inherit; }
.wb-t { display: grid; gap: 1px; min-width: 0; flex: 1; line-height: 1.25; }
.wb-l1 { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; }
.wb-t time { font-size: 10.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.wk-bars .wb-t { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; }
.wk-bars .wb-l1 { order: 0; }
.wb-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-col .wb-t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.wb-rs { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.wb-rs::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px; background: color-mix(in srgb, var(--k) 60%, var(--ink)); opacity: 0; }
.wb:hover .wb-rs::after { opacity: .6; }
.wk-agenda { display: none; }
.wa-day { display: grid; gap: 6px; margin-bottom: 14px; }
.wa-day h4 { margin: 4px 2px 0; font-size: 13px; }
.wa-day.today h4 .linkish { color: var(--ink); font-weight: 700; }
.wa-day .wb { padding: 8px 10px; font-size: 13px; }

/* 달 보기 */
.mo { border-radius: 14px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.mo .cal-h span:first-child { color: var(--ink-3); }
.mo .cal-h span:last-child { color: var(--stop); }
.mo .cd { min-height: 108px; cursor: cell; }
.mo .cd.blank .cd-n { color: var(--ink-3); }

/* 발행 캘린더(#/cal) 안의 업무 · 구글 일정 */
.ci-desk { grid-template-columns: 8px minmax(0, 1fr); gap: 6px; padding: 4px 6px; background: color-mix(in srgb, var(--k, var(--sun)) 12%, #fff); }
.ci-desk .dm { width: 8px; height: 8px; border-radius: 50%; background: var(--k, var(--sun)); }
.ci-desk.d-gcal { background: #fff; }
.ci-desk.d-gcal .dm { background: var(--solid); box-shadow: inset 0 0 0 2px var(--cool); }
.ci-desk.is-done .ci-t small { text-decoration: line-through; color: var(--ink-3); }
.ld.d-task { background: var(--sun); box-shadow: inset 0 0 0 1px var(--sun-deep); }
.ld.d-gcal { border-radius: 50%; box-shadow: inset 0 0 0 2px var(--cool); }
.ag-m { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #fbfce8; color: var(--ink); }
.ag-m svg { width: 18px; height: 18px; }
.ag-desk.d-gcal .ag-m { background: #eaf3fa; color: #2f6f9a; }
.ag-desk.is-done b { text-decoration: line-through; color: var(--ink-3); }

/* 업무 창 · 카테고리 창 */
.tk-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border-radius: 14px; background: rgba(27, 27, 25, .04); cursor: pointer; }
.tk-opt input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.tk-opt b { display: block; font-size: 13px; font-weight: 600; }
.tk-opt small { display: block; font-size: 12px; color: var(--ink-3); }
.tk-note { min-height: 84px; padding: 10px 14px; resize: vertical; }
.pick-add { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1.5px dashed var(--line-2); background: none; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pick-add:hover { border-color: var(--ink); color: var(--ink); }
.pick-add svg { width: 14px; height: 14px; }
.pick.sw label span { width: 40px; justify-content: center; padding: 0; }
.pick.sw .cdot { width: 16px; height: 16px; }
.pick.sw input:checked + span { background: var(--solid); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-list li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cat-list li small { color: var(--ink-3); font-size: 12px; }
.cat-list li .linkish { margin-left: auto; }
.gc-desc { margin: 0; white-space: pre-line; font-size: 13px; color: var(--ink-2); }

@media (max-width: 1180px) {
  .ws { grid-template-columns: minmax(0, 1fr); }
  .ws-list { height: auto; overflow: visible; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .ws-list .cal-pills { grid-column: 1 / -1; }
  .ws-top { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 860px) {
  .ws-cal { height: auto; }
  .qa { grid-template-columns: minmax(0, 1fr) auto; padding-left: 14px; }
  .qa .btn.ghost { display: none; }
  .head .calst { width: 100%; }
  .filters .calst { margin-left: 0; }
  .ws-list { grid-template-columns: minmax(0, 1fr); }
  .ws-cal { padding: 10px; }
  .wk, .ws-cal .wk { display: none; }
  .wk-agenda { display: block; }
  .mo .cd { min-height: 72px; }
}
.kc-note { margin: 0 0 8px; font-size: 12.5px; color: var(--ink-2); }

/* 같이 쓰는 사람 (피그마처럼 지금 누가 무엇을 하나) */
.rail-pres { display: grid; gap: 6px; margin: 4px 0 14px; }
.rail-pres:empty { display: none; }
.pres { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; align-items: center; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .5); }
.pres .avs.sm .av { width: 24px; height: 24px; font-size: 10px; }
.pres:not(.on) .avs { filter: grayscale(1); opacity: .55; }
.pres-d { position: absolute; left: 28px; top: 26px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); box-shadow: 0 0 0 2px #f2f2ee; }
.pres.on .pres-d { background: var(--go); }
.pres > span { display: grid; min-width: 0; line-height: 1.3; }
.pres b { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; font-weight: 650; }
.pres b em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.pres.on b em { color: var(--go); }
.pres small { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-peer { outline: 2px solid var(--haze-b); outline-offset: 1px; position: relative; }
.is-peer.peer0 { outline-color: var(--sun-deep); }
.peer-tag { position: absolute; right: 6px; top: -9px; z-index: 5; padding: 1px 7px; border-radius: 999px; background: var(--haze-b); color: var(--ink); font-size: 10.5px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.peer0 .peer-tag { background: var(--sun); }
.wb.is-peer { overflow: visible; }
.wb .peer-tag { top: -8px; right: 2px; }

/* 카테고리로 골라 보기 */
.cat-f { align-items: center; }
.ws-list .chip.cat-c { padding-left: 10px; }
.chip.cat-c[aria-pressed="true"] { background: var(--solid); color: var(--ink); border-color: color-mix(in srgb, var(--k) 55%, transparent); }
.chip.cat-c[aria-pressed="true"] b { background: color-mix(in srgb, var(--k) 18%, #fff); }
.chip.cat-c[aria-pressed="false"] { opacity: .45; background: transparent; }
.chip.cat-c[aria-pressed="false"] .cdot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--k); }

@media (max-width: 860px) {
  .rail-pres { display: flex; margin: 0; }
  .pres { padding: 0; background: none; grid-template-columns: 24px; }
  .pres > span { display: none; }
  .pres-d { left: 16px; top: 16px; }
}
.form-body [hidden] { display: none !important; }
.ig-con .hint { margin: 0 0 10px; }
.ig-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.ig-list li { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ig-list li small { color: var(--ink-3); }
.ig-list li .badge { margin-left: auto; }
.ig-form { display: grid; gap: 12px; }

/* 고객 카드 (2026-10-20 사용자 「관계형 · CRM 카드 · 매출」) */
.cl-nums { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 10px; }
.cn { position: relative; display: grid; align-content: start; gap: 3px; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--sheet-hi); box-shadow: inset 0 0 0 1px var(--line); }
.cn > span:first-child { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.cn strong { font-size: 20px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn small { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-bars { position: absolute; right: 14px; top: 12px; display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.cn-bars i { width: 6px; height: max(2px, var(--h)); border-radius: 2px; background: rgba(27, 27, 25, .16); }
.cn-bars i.now { background: var(--sun-deep); }
.crm-f { display: grid; gap: 10px; padding: 12px 14px; margin-bottom: 12px; background: var(--sheet-hi); }
.crm-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.crm-row[data-rev] { grid-template-columns: 220px minmax(0, 1fr); }
.cr-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cr-m { padding: 14px 4px 6px; font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.cr { display: grid; grid-template-columns: 64px 64px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.cr-d { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.cr-k { justify-self: start; padding: 1px 8px; border-radius: 999px; background: rgba(27, 27, 25, .06); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.cr-revenue .cr-k { background: var(--go-soft); color: var(--go); }
.cr-meeting .cr-k { background: #e3f1fa; color: #2f6f9a; }
.cr-call .cr-k, .cr-mail .cr-k { background: #f8f9c9; }
.cr-contract .cr-k { background: var(--ink); color: #fff; }
.cr-b { display: grid; gap: 2px; min-width: 0; }
.cr-b p { margin: 0; line-height: 1.5; }
.cr-b small { font-size: 11.5px; color: var(--ink-3); }
.cr-t { font-size: 13px; color: var(--ink); text-decoration: none; }
.cr-amt { font-size: 15px; font-weight: 700; color: var(--go); }
.cr-w { display: inline-flex; align-items: center; gap: 8px; }
.cr-w .linkish { font-size: 11.5px; opacity: 0; }
.cr:hover .cr-w .linkish, .cr-w .linkish:focus-visible { opacity: 1; }
.rc-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.rc { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 12px; background: #d6d6d0 center / cover no-repeat; overflow: hidden; text-align: left; }
.rc > span { position: absolute; left: 0; right: 0; bottom: 0; display: grid; padding: 18px 8px 6px; background: linear-gradient(to top, rgba(27, 27, 25, .7), transparent); color: #fff; }
.rc b { font-size: 13px; }
.rc small { font-size: 10.5px; opacity: .85; }
.tag-cl { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; cursor: pointer; }
.tag-cl:hover { text-decoration-color: var(--ink); }
.wb-cl { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-rev b, .cl-next b { display: block; font-size: 13px; font-weight: 650; }
@media (max-width: 1080px) { .cl-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .crm-row, .crm-row[data-rev] { grid-template-columns: minmax(0, 1fr); }
  .cr { grid-template-columns: 56px minmax(0, 1fr); }
  .cr-k { grid-column: 2; grid-row: 1; }
  .cr-b { grid-column: 1 / -1; }
  .cr-w { grid-column: 1 / -1; }
  .cl-rev { display: none; }
}
[hidden] { display: none !important; }
button.play { border: 0; cursor: pointer; padding: 0; }
.media.is-embed { background: #000; }
.media.is-embed .emb { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.media.is-embed .emb-out { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(27, 27, 25, .7); color: #fff; font-size: 11.5px; font-weight: 600; }
.rv-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rv-st { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.rv-st.bad { color: var(--stop); }

/* 킬슨 회차 보기 (검수용) */
.iss-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; padding: 16px 22px 22px; align-items: start; }
.iss-media { display: grid; gap: 10px; }
.iss-v { width: 100%; aspect-ratio: 9 / 16; max-height: 72vh; border: 0; border-radius: 16px; background: #111; }
.iss-i { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 16px; background: #e3e3dd; }
.iss-none { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 16px; background: #e3e3dd; color: var(--ink-3); font-size: 13px; }
.iss-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.iss-strip img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: #e3e3dd; flex: none; }
.iss-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.iss-side .cal-title { margin: 0; }
.iss-ctl:empty { display: none; }
.iss-cap summary { cursor: pointer; font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.iss-cap p { margin: 8px 0 0; max-height: 34vh; overflow: auto; white-space: pre-wrap; font-size: 13px; line-height: 1.6; }
.iss-files { display: flex; flex-wrap: wrap; gap: 6px; }
.iss-files .chip { height: 30px; font-size: 12px; padding: 0 12px; }
.q-see { display: block; margin-top: 4px; font-size: 12px; }
@media (max-width: 860px) { .iss-body { grid-template-columns: minmax(0, 1fr); padding: 12px; } .iss-v { max-height: 60vh; } }
