/* Media Portal — 전략기획팀
   톤: 사내 대시보드(Claude 사용 현황)와 같은 MADUP 라이트 UI. 맨 아래 "사내 공통 UI" 블록이 우선 적용됨 */
:root {
  --bg: #F6F7FA;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --ink: #1A1E27;
  --ink-2: #2b2f38;
  --muted: #5f6774;
  --faint: #98a0ac;
  --line: #E8EAEF;
  --line-2: #dadce0;
  --accent: #0043D9;
  --accent-soft: #E9F0FF;
  --ok: #1f8a4c;
  --ok-soft: #e9f6ee;
  --warn: #A86512;
  --warn-soft: #FCF3E6;
  --danger: #C43D3D;
  --danger-soft: #FBECEC;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 25, 31, .04);
  --shadow-lg: 0 24px 64px rgba(23, 25, 31, .18);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, "Malgun Gothic", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink);
}
.topbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: -0.04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.brand-text span { font-size: 11px; color: var(--muted); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a.active { color: var(--ink); font-weight: 700; }
.nav .sep { width: 1px; background: var(--line-2); margin: 10px 8px; }
.userbox { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.userbox .who { font-size: 13px; color: var(--muted); }
.userbox .who b { color: var(--ink); font-weight: 600; }

.mode-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-soft);
  padding: 3px 8px; border-radius: 999px;
}
.mode-badge.live { color: var(--ok); background: var(--ok-soft); }
.mode-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- ticker (러닝클럽 띠 배너 톤) ---------- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; padding: 10px 0; animation: ticker 40s linear infinite; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ticker-track span { margin: 0 18px; }
.ticker-track i { font-style: normal; opacity: .45; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- layout ---------- */
.page { max-width: 1160px; margin: 0 auto; padding: 36px 24px 80px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.eyebrow.line::after { content: ""; width: 36px; height: 1px; background: var(--ink); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 0 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; font-weight: 800; line-height: 1.2; }
.page-head p { margin: 6px 0 0; color: var(--muted); }

/* stat strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 24px; overflow: hidden;
}
.stat { padding: 18px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.stat .l { font-size: 12px; color: var(--muted); }

/* ---------- toolbar / chips ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg { display: inline-flex; background: #eceef2; border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 13px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.grow { flex: 1; }
.input, .select, textarea.input {
  border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 14px; outline: none; width: 100%;
}
.input:focus, .select:focus { border-color: var(--ink); }
.search { max-width: 260px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #000; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--bg); }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.arrow::after { content: "→"; font-weight: 700; }

/* ---------- session list (리스트형 UI) ---------- */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row {
  display: grid; grid-template-columns: 76px 1fr 170px 150px;
  gap: 20px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); cursor: pointer;
}
.row:first-child { border-top: 0; }
.row:hover { background: var(--surface-2); }
.date { text-align: center; border-right: 1px solid var(--line); padding-right: 18px; }
.date .m { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.date .d { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }
.date .w { font-size: 12px; color: var(--muted); }
.row .title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 2px; }
.row .meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.row .meta span + span::before { content: "·"; margin-right: 10px; color: var(--faint); }
.tags { display: flex; gap: 6px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #eef0f3; color: var(--ink-2); }
.tag.ext { background: var(--ink); color: #fff; }
.tag.int { background: var(--accent-soft); color: var(--accent); }
.tag.cancel { background: var(--danger-soft); color: var(--danger); }
.cap .bar { height: 6px; background: #eceef2; border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.cap .bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.cap .bar i.full { background: var(--danger); }
.cap .t { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.cap .t b { color: var(--ink); font-weight: 700; }
.row .act { display: flex; justify-content: flex-end; }
.status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.status.applied { color: var(--ok); background: var(--ok-soft); }
.status.waitlist { color: var(--warn); background: var(--warn-soft); }
.status.closed { color: var(--muted); background: #eef0f3; }
.status.cancelled { color: var(--danger); background: var(--danger-soft); }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* ---------- cards / tables ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 16px; }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
td .sub { color: var(--muted); font-size: 12px; }
.attend { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.attend button { border: 0; background: var(--surface); padding: 4px 10px; font-size: 12px; cursor: pointer; color: var(--muted); }
.attend button + button { border-left: 1px solid var(--line-2); }
.attend button.on.y { background: var(--ok); color: #fff; }
.attend button.on.n { background: var(--danger); color: #fff; }
.hbar { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; margin: 8px 0; font-size: 13px; }
.hbar .b { height: 8px; background: #eceef2; border-radius: 99px; overflow: hidden; }
.hbar .b i { display: block; height: 100%; background: var(--ink); }
.hbar .n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* notification log */
.noti { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.noti:first-child { border-top: 0; }
.noti .when { font-size: 12px; color: var(--muted); }
.noti .kind { font-size: 11px; font-weight: 700; margin-top: 4px; }
.bubble {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; white-space: pre-wrap; font-size: 13px; line-height: 1.6;
}
.noti .to { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pill.preview { color: var(--warn); background: var(--warn-soft); }
.pill.sent { color: var(--ok); background: var(--ok-soft); }
.pill.failed { color: var(--danger); background: var(--danger-soft); }

/* ---------- detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-all; }
.back { display: inline-flex; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.back:hover { color: var(--ink); }
.sticky { position: sticky; top: 84px; }
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--faint); margin-top: 4px; }
.radio-row { display: flex; gap: 8px; }
.radio-row label { flex: 1; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px; text-align: center; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.radio-row input { display: none; }
.radio-row label:has(input:checked) { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.notice { font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.login-center { display: grid; place-items: center; padding: 40px 16px; }
.login-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.login-card h1 { font-size: 24px; font-weight: 700; margin: 18px 0 6px; }
.login-card p { color: var(--muted); margin: 0 0 20px; }
.user-pick { display: grid; gap: 8px; }
.user-pick button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius-sm);
  padding: 11px 14px; cursor: pointer; text-align: left;
}
.user-pick button:hover { border-color: var(--ink); }
.user-pick small { color: var(--muted); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 18px 0 10px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.foot-note { font-size: 12px; color: var(--faint); margin-top: 18px; line-height: 1.6; }

/* ---------- modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(23, 25, 31, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); }
.modal-head { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { font-size: 19px; font-weight: 700; }
.modal-body { padding: 18px 24px; }
.modal-foot { padding: 0 24px 22px; display: flex; justify-content: flex-end; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 13px; box-shadow: var(--shadow-lg);
}
.toast.err { background: var(--danger); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar-inner { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 8px 16px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .userbox .who { display: none; }
  .page { padding: 24px 16px 60px; }
  .page-head h1 { font-size: 24px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .row { grid-template-columns: 56px 1fr; gap: 12px 14px; padding: 16px; }
  .row .cap, .row .act { grid-column: 2; }
  .row .act { justify-content: flex-start; }
  .date { padding-right: 12px; }
  .date .d { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .noti { grid-template-columns: 1fr; gap: 6px; }
  .search { max-width: none; }
}

/* ---------- 진행 방식 배지 ---------- */
.fmt {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700;
  padding: 2px 9px 2px 7px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; line-height: 1.5;
}
.fmt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fmt.offline { color: var(--ink); }
.fmt.online { color: var(--accent); }
.fmt.hybrid { color: #7a4fd0; }
.row .meta { align-items: center; }
.row .meta .fmt + span::before { content: none; }

/* ---------- 신청 폼 ---------- */
.ev-sum { display: grid; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ev-sum div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; font-size: 13px; }
.ev-sum span { color: var(--muted); }
.ev-sum b { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apply-grid .full { grid-column: 1 / -1; }
.apply-grid label em { color: var(--danger); font-style: normal; }
.apply-grid .input { padding: 10px 12px; }
.apply-grid .input[value]:not([value=""]) { background: var(--surface-2); }
.apply-grid .input:focus { background: var(--surface); }
.recent { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip.sm { padding: 4px 10px; font-size: 12px; }
.hint-line { font-size: 12px; color: var(--faint); margin: 10px 0 0; }
.apply-card h3 .sub { font-size: 12px; }
.modal-head .tags { margin: 0; }

/* ---------- 시트 ---------- */
.sheet-meta { font-size: 12px; color: var(--muted); margin: 0 0 8px 2px; }
.sheet-wrap { max-height: calc(100vh - 300px); min-height: 240px; }
table.sheet { font-size: 13px; }
table.sheet th { position: sticky; top: 0; z-index: 1; background: #f3f4f7; color: var(--ink-2); border-right: 1px solid var(--line); }
table.sheet td { padding: 9px 14px; border-right: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
table.sheet th:last-child, table.sheet td:last-child { border-right: 0; }
table.sheet tbody tr:nth-child(even) td { background: #fbfbfd; }
table.sheet tbody tr:hover td { background: var(--accent-soft); }
table.sheet .num { width: 44px; text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; background: #f7f8fa; }
table.sheet tr.dim td { opacity: .45; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
.link { text-decoration: underline; text-underline-offset: 2px; }
.ok { color: var(--ok); font-weight: 700; }
.no { color: var(--danger); font-weight: 700; }
@media (max-width: 760px) { .apply-grid { grid-template-columns: 1fr; } .sheet-wrap { max-height: none; } }
@media (max-width: 1100px) and (min-width: 761px) {
  .topbar-inner { gap: 16px; }
  .nav a { padding: 8px 8px; }
  .nav .sep { margin: 10px 4px; }
  .userbox .who { display: none; }
  .brand-text span { display: none; }
}

/* ---------- 매체 아이콘 ---------- */
.mi {
  display: inline-grid; place-items: center; flex: none; font-style: normal; line-height: 1;
  width: 20px; height: 20px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.mi.sm { width: 18px; height: 18px; border-radius: 5px; font-size: 10px; }
.mi.xs { width: 16px; height: 16px; border-radius: 5px; font-size: 9.5px; }
.mtag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  padding: 2px 8px 2px 3px; border-radius: 7px; background: #eef0f3; color: var(--ink-2); white-space: nowrap;
}
.sub .mi { vertical-align: -3px; margin-right: 1px; }

/* ---------- 띠배너: 매체 키 컬러 ---------- */
.ticker { position: relative; background: #111318; }

.ticker-track { display: inline-flex; align-items: center; padding: 11px 0; animation-duration: 60s; letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 8px; margin: 0 14px; }
.tk b { color: #fff; font-weight: 800; }
.tk em { font-style: normal; color: rgba(255, 255, 255, .78); font-weight: 500; }
.tk time { color: rgba(255, 255, 255, .5); font-weight: 600; font-variant-numeric: tabular-nums; }
.tk u {
  text-decoration: none; font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); color: #fff;
}
.tk.brand b { font-size: 11px; letter-spacing: .16em; color: rgba(255, 255, 255, .9); }
.tk-sep { color: rgba(255, 255, 255, .22); font-weight: 400; }

/* ---------- 매체 로고 이미지 ---------- */
img.mi.logo { object-fit: contain; background: #fff; padding: 1px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); }
.ticker img.mi.logo { box-shadow: none; }

/* ---------- 메일 수집함 ---------- */
.conn { display: grid; gap: 10px; padding: 16px 20px; }
.conn-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.conn-label { font-size: 12px; font-weight: 700; color: var(--muted); width: 64px; }
.addr { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: var(--ink); color: #fff; font-variant-numeric: tabular-nums; }
.seg .cnt { font-size: 11px; color: var(--faint); margin-left: 2px; }
.seg button.on .cnt { color: var(--muted); }
.ibx-list { display: grid; gap: 12px; }
.ibx { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.ibx-head { display: flex; gap: 12px; align-items: flex-start; }
.ibx-icon .mi { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.ibx-main { min-width: 0; flex: 1; }
.ibx-subj { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.ibx-from { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.via { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: #eef0f3; color: var(--ink-2); }
.via.cc { background: var(--accent-soft); color: var(--accent); }
.via.bcc { background: #f3ecfd; color: #7a4fd0; }
.ibx-x { margin: 12px 0 0 40px; padding: 12px 14px; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 12px; }
.ibx-title { display: block; font-size: 14px; margin-bottom: 8px; }
.xchips { display: flex; gap: 6px; flex-wrap: wrap; }
.xc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; }
.xc i { font-style: normal; color: var(--faint); font-weight: 600; font-size: 11px; }
.xc.miss { border-color: #f2d49b; background: var(--warn-soft); color: var(--warn); }
.ibx-src { margin: 10px 0 0 40px; }
.ibx-src summary { font-size: 12px; color: var(--muted); cursor: pointer; }
.ibx-src pre, .mail-src pre { white-space: pre-wrap; word-break: break-all; font: inherit; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; max-height: 320px; overflow: auto; margin: 8px 0 0; }
.ibx-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.modal.wide { max-width: 1040px; }
.publish-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.mail-src pre { max-height: 520px; margin: 0; }
@media (max-width: 900px) { .publish-grid { grid-template-columns: 1fr; } .ibx-x, .ibx-src { margin-left: 0; } }
.auto-pill { font-size: 10.5px; font-weight: 700; color: #7a4fd0; background: #f3ecfd; padding: 1px 6px; border-radius: 6px; vertical-align: 1px; }
/* 띠배너: 배경·배지는 모노톤, 매체 로고는 원래 색 */
.pill.skipped { color: var(--muted); background: #eef0f3; }

/* ---------- 신청 감도: 추천 카드 · 배지 · 호버 ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 220px; gap: 28px; align-items: end;
  background: var(--ink); color: #fff; border-radius: 20px; padding: 30px 32px; margin: 4px 0 20px;
  cursor: pointer; position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
}
.feature::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 80px rgba(255,255,255,.02); pointer-events: none; }
.feature:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(23,25,31,.25); }
.feat-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: rgba(255,255,255,.6); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.feat-eyebrow span { opacity: .5; }
.feat-media { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 14px; }
.feat-title { font-size: 30px; font-weight: 800; line-height: 1.25; letter-spacing: -0.035em; margin: 0 0 12px; max-width: 640px; }
.feat-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.75); }
.feat-agenda { margin: 14px 0 0; font-size: 13px; color: rgba(255,255,255,.55); max-width: 620px; }
.feat-side { text-align: right; position: relative; z-index: 1; }
.feat-dday { font-size: 56px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.feat-count { font-size: 12px; color: rgba(255,255,255,.6); margin: 6px 0 16px; }
.btn.feat-cta { background: #fff; color: var(--ink); border-color: #fff; padding: 12px 18px; font-size: 14px; width: 100%; }
.btn.feat-cta:hover { background: #f1f2f5; }
.feat-done { display: inline-block; padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); font-weight: 700; font-size: 13px; }
img.mi.lg, .mi.lg { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.feature img.mi.logo { box-shadow: none; }
.hot { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; letter-spacing: .02em; white-space: nowrap; }
.hot.urgent { color: #fff; background: var(--danger); }
.hot.seats { color: var(--danger); background: var(--danger-soft); }
.hot.new { color: var(--ink); background: #fff; border: 1px solid var(--ink); }
.feature .hot.new { color: #fff; background: transparent; border-color: rgba(255,255,255,.6); }
.row { transition: background .12s ease, box-shadow .12s ease; }
.row:hover { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--ink); }
.row .title { font-size: 17px; }
.row .act .btn.primary { padding: 9px 14px; font-size: 13px; }
.nav-group { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--faint); align-self: center; margin-right: 2px; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; padding: 22px; gap: 16px; }
  .feat-side { text-align: left; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .feat-dday { font-size: 36px; }
  .feat-count { margin: 0; }
  .feat-title { font-size: 22px; }
  .btn.feat-cta { width: auto; }
  .nav-group { display: none; }
}
.media-signup { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-color: var(--ink); background: #fbfbfc; }
.media-signup b { font-size: 14px; }
@media (max-width: 760px) { .media-signup { flex-direction: column; align-items: flex-start; } }
.feat-close-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: 4px; }

/* ---------- 화면 설정 ---------- */
.disp-preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; overflow: hidden; }
.disp-preview .ticker { border-radius: 10px; }
.disp-pv-body { padding: 18px 8px 4px; pointer-events: none; }
.disp-pv-body .feature { margin-bottom: 4px; }
.tk-edit { display: grid; grid-template-columns: 130px 1fr 260px 36px; gap: 8px; margin-bottom: 8px; }
.card h3 .check { font-size: 13px; }
@media (max-width: 760px) { .tk-edit { grid-template-columns: 1fr; } }

/* ---------- 첫 진입 분기 ---------- */
.start-wrap { width: 100%; max-width: 760px; text-align: center; }
.start-wrap .eyebrow { justify-content: center; }
.start-title { font-size: 28px; font-weight: 800; margin: 14px 0 6px; letter-spacing: -0.03em; }
.start-sub { color: var(--muted); margin: 0 0 24px; }
.start-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.start-card {
  display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 18px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font: inherit; text-align: left;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.start-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23,25,31,.12); border-color: var(--ink); }
.start-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.start-emoji { font-size: 34px; line-height: 1; }
.start-card b { font-size: 20px; letter-spacing: -0.02em; }
.start-card span:not(.start-emoji) { font-size: 14px; color: var(--muted); }
.start-card.dark span:not(.start-emoji) { color: rgba(255,255,255,.7); }
.start-card em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--faint); margin-top: 6px; }
.start-card.dark em { color: rgba(255,255,255,.5); }
.mode-seg button { padding: 5px 10px; font-size: 12px; }
@media (max-width: 760px) { .start-cards { grid-template-columns: 1fr; } .start-title { font-size: 22px; } }
.tag, .auto-pill, .mtag { white-space: nowrap; }
/* 로그인·첫 진입 화면은 띠배너 없이 가운데 정렬 */
.login-wrap { grid-template-rows: 1fr; }
.pill.sent + span { color: var(--muted); }
.auto-pill.sheet { color: var(--ok); background: var(--ok-soft); }

/* ---------- 담당자 · 매드업 진행 ---------- */
.ops-card { border-color: var(--ink); margin-bottom: 16px; }
.ops-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.ops-item:first-of-type { border-top: 0; }
.ops-item input { width: 18px; height: 18px; accent-color: var(--ink); }
.ops-card .btn { margin-top: 10px; }
.mrow { display: grid; grid-template-columns: 1fr 160px 36px; gap: 8px; margin-bottom: 8px; }
.owner-row { display: grid; grid-template-columns: 80px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.owner-row:first-of-type { border-top: 0; }
.owner-media { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }


/* =====================================================================
   사내 공통 UI (madup-ai-usage 와 동일한 톤)
   - 맨 위: 검은 띠배너(하이라이트) → 흰 헤더(로고 | 앱 이름 | 밑줄 탭 | 사용자)
   ===================================================================== */
:root {
  --accent-tint: #E9F0FF; --accent-deep: #002573; --accent-light: #82B6FF;
  --ink-sub: #5F6774; --ink-hint: #98A0AC; --fill: #F3F4F8; --fill-press: #E9EBF1;
}
body { font-size: 14px; }

/* 띠배너: 헤더 위, 사내 '보안 안내' 바와 같은 검은 바 + 왼쪽 라벨 */
.ticker { position: sticky; top: 0; z-index: 21; background: var(--ink); display: flex; align-items: center; height: 40px; }
.ticker-label {
  flex: none; position: relative; z-index: 1; display: flex; align-items: center; height: 100%;
  padding: 0 14px 0 max(16px, calc((100vw - 1208px) / 2)); background: var(--ink);
}
.ticker-label span {
  font-size: 12px; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .55); white-space: nowrap;
}
.ticker-viewport { flex: 1; overflow: hidden; min-width: 0; }
.ticker-track { padding: 0; font-size: 13px; }
.tk b { font-weight: 700; }

/* 헤더 */
.topbar { top: 40px; background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--line); }
.topbar.no-ticker { top: 0; }
.topbar-inner { max-width: 1256px; height: 64px; gap: 0; padding: 0 24px; }
.brand { gap: 0; margin-right: 36px; }
.brand-logo { height: 21px; width: auto; display: block; }
.brand-div { width: 1px; height: 18px; background: #D5D9E0; margin: 0 14px; }
.brand-name { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.nav { gap: 2px; align-self: stretch; }
.nav a {
  position: relative; display: flex; align-items: center; height: 64px; padding: 0 15px;
  border-radius: 0; font-size: 15px; font-weight: 500; color: var(--ink-hint);
}
.nav a:hover { background: none; color: var(--ink); }
.nav a.active { color: var(--ink); font-weight: 600; }
.nav a.active::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 2px; background: var(--accent); }
.nav .sep { margin: 22px 8px; }
.userbox { gap: 14px; }
.userbox .who { font-size: 14px; color: var(--ink-sub); }
.userbox .who b { font-weight: 500; color: var(--ink-sub); }
#logout { border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--ink-sub); padding: 6px 4px; }
#logout:hover { color: var(--ink); }

/* 본문 */
.page { max-width: 1256px; padding: 36px 48px 80px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--accent); }
.eyebrow::before, .eyebrow.line::after { display: none; }
.page-head h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.page-head p { color: var(--ink-sub); }
.purpose { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* 카드·통계 */
.card, .list, .table-wrap, .stats { border-radius: var(--radius); border-color: var(--line); box-shadow: none; }
.stat { padding: 22px 22px 20px; }
.stat .l { order: -1; font-size: 13px; color: var(--ink-sub); margin-bottom: 8px; }
.stat { display: flex; flex-direction: column; }
.stat .v { font-size: 28px; font-weight: 700; }

/* 버튼·칩·세그먼트 */
.btn { border-radius: 10px; border-color: var(--line); }
.btn:hover { border-color: #C9CED8; background: var(--fill); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #0036B0; border-color: #0036B0; }
.chip { border-color: var(--line); }
.chip:hover { border-color: #C9CED8; }
.chip.on { background: var(--accent); border-color: var(--accent); }
.seg { background: var(--fill); border-radius: 12px; padding: 4px; }
.seg button { border-radius: 9px; color: var(--ink-sub); font-weight: 500; }
.seg button.on { color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(26, 30, 39, .08); }
.input, .select, textarea.input { border-color: var(--line); background: #fff; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.search { background: var(--fill); border-color: transparent; }
.tag.ext { background: var(--accent-deep); }
.tag.int { background: var(--accent-tint); color: var(--accent); }
.cap .bar { background: var(--fill-press); }
.cap .bar i { background: var(--accent); }
.mode-badge { font-size: 12px; }

/* 세션 유형 배지 */
.kind { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.kind.survey { background: var(--warn-soft); color: var(--warn); }
.kind.scheduled { background: var(--accent-tint); color: var(--accent); }
.kind.unlimited { background: var(--fill); color: var(--ink-sub); }
.status.interest { color: var(--accent); background: var(--accent-tint); }

@media (max-width: 1100px) and (min-width: 761px) {
  .brand { margin-right: 16px; }
  .brand-name { display: none; }
  .brand-div { display: none; }
  .nav a { padding: 0 9px; }
  .nav a.active::after { left: 9px; right: 9px; }
}
@media (max-width: 760px) {
  .page { padding: 24px 16px 64px; }
  .ticker { position: relative; }
  .ticker-label { padding-left: 16px; }
  .topbar, .topbar.no-ticker { position: relative; top: 0; }
  .topbar-inner { height: auto; padding: 10px 16px 0; gap: 8px 12px; }
  .brand { margin-right: auto; }
  .brand-div, .brand-name { display: none; }
  .nav { order: 3; flex-basis: 100%; }
  .nav a { height: 44px; padding: 0 12px; }
  .nav a.active::after { left: 12px; right: 12px; }
  .userbox { gap: 8px; }
  .userbox .who, .mode-badge { display: none; }
}
