/* SNSAgent 업무 화면 공통 (결과 보고 · 문의 관리 · 로그인)
   왼쪽 짙은 파랑 메뉴 + 위 제목 줄 + 본문. base.css 다음에 읽는다. */

body { background: var(--ivory); }

/* ---------- 틀: 왼쪽 메뉴 + 본문 ---------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: calc(100vh - 42px); }
.side { background: var(--navy); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 26px 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.logo-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--gold); color: var(--navy); font-weight: 800; font-size: .85rem; border-radius: var(--radius-xs); }
.side-brand strong { display: block; font-size: 1.05rem; letter-spacing: -0.01em; }
.side-brand small { display: block; color: var(--on-dark); font-size: .75rem; }
.side-me { display: flex; align-items: center; gap: 12px; padding: 22px 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.side-me .media { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px; }
.side-me .media.is-missing::after { content: none; }
.side-me .media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 50%; display: block; }
.side-me .media .mono { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 800; font-size: 1.05rem; }
.side-me strong { display: block; }
.side-me small { display: block; color: var(--on-dark); font-size: .78rem; }
.side-nav { display: flex; flex-direction: column; padding: 14px 12px; gap: 2px; }
.side-nav a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 50px; padding: 0 14px;
  color: var(--on-dark); text-decoration: none; font-weight: 650; border-radius: var(--radius-sm);
}
.side-nav a[hidden] { display: none; }   /* 심의필이 필요 없는 설계사의 '광고 심의' (기록 46) */
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.side-nav a > span:first-child { display: inline-flex; align-items: center; gap: 12px; }
.side-nav a i { font-size: 1.22rem; opacity: .8; }
.side-nav a[aria-current="page"] i { opacity: 1; color: var(--gold); }
.side-brand .sa-logo { color: #fff; }
.side-brand .sa-logo small { color: var(--on-dark); }
.side-nav .cnt { background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 800; padding: 1px 8px; border-radius: var(--radius-xs); }
.side-nav .ok { font-size: .72rem; font-weight: 700; color: #9FD3C7; }
.side-foot { margin-top: auto; padding: 22px 24px; font-size: .8rem; color: var(--on-dark); border-top: 1px solid rgba(255, 255, 255, .12); line-height: 1.7; }

.app-main { min-width: 0; }
.topbar { background: var(--paper); border-bottom: var(--hair); }
.topbar .in { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 28px 40px 24px; }
.crumb { margin: 0 0 6px; font-size: .88rem; font-weight: 700; color: var(--brand); }
.topbar h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.03em; }
.topbar p.small { margin: 4px 0 0; }
.top-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.top-act .btn { min-height: 48px; padding: 0 18px; font-size: .92rem; }
.app-content { padding: 32px 40px 16px; max-width: 1320px; }
.app-main .legal { padding: 24px 40px 40px; border-top: 0; }

@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side-brand, .side-me { padding: 16px 20px; }
  .side-nav { flex-direction: row; overflow-x: auto; padding: 8px 12px; }
  .side-nav a { white-space: nowrap; min-height: 44px; }
  .side-foot { display: none; }
  .topbar .in, .app-content, .app-main .legal { padding-left: 20px; padding-right: 20px; }
}

/* ---------- 패널 ---------- */
.block { margin: 0 0 32px; }
.block-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.block-title h2 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.block-title .q { color: var(--brand); font-weight: 700; font-size: .85rem; }
.level-tag { margin-left: 8px; vertical-align: middle; }
.card { box-shadow: none; }

/* ---------- 진행 상태 표시 (연락 전 · 연락함 · 상담 예약 · 상담 완료) ---------- */
.st-0 { background: var(--brand-tint); color: var(--brand); }
.st-1 { background: var(--stone-2); color: var(--ink); }
.st-2 { background: var(--teal-bg); color: var(--teal); }
.st-3 { background: var(--teal); color: #fff; }

/* ---------- 로그인한 사람 · 로그아웃 ---------- */
.acct { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--slate); }
.acct b { color: var(--ink); }
.acct .btn { min-height: 44px; padding: 0 16px; font-size: .9rem; }

/* 글자 버튼 */
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.link-btn.danger { color: var(--danger); }

/* ---------- 업무 화면 공통 칸 (광고·콘텐츠 · 신청 페이지 · 광고 심의 · 설정 · 관리자) ---------- */
.pcard { padding: 26px; border-radius: var(--radius); background: var(--paper); border: var(--hair); }
.pcard + .pcard { margin-top: 20px; }
.pcard > h2 { font-size: 1.05rem; margin: 0 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pcard > .muted:first-of-type { margin-top: -8px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pgrid > .pcard + .pcard { margin-top: 0; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: 1fr; } }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.stat-row .chip { font-size: .86rem; padding: 6px 12px; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.copy-row .input { font-size: .86rem; min-height: 50px; font-variant-numeric: tabular-nums; }
.copy-row .btn { min-height: 50px; padding: 0 16px; font-size: .92rem; }
.copied { color: var(--teal); font-weight: 700; font-size: .86rem; margin: 6px 0 0; min-height: 1.3em; }
.kv { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px 14px; margin: 0; }
.kv dt { color: var(--slate); }
.kv dd { margin: 0; font-weight: 600; }
.empty { padding: 40px 32px; }
.skel i { display: block; height: 140px; background: var(--paper); border: var(--hair); border-radius: var(--radius); margin: 0 0 16px; }
.msg { margin: 0 0 20px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--teal-bg); color: var(--teal); font-weight: 700; }
.msg.bad { background: #FEF3F2; color: var(--danger); }
.cs-live { background: var(--teal-bg); color: var(--teal); }
.cs-review { background: #FFF7E8; color: #92400E; }
.cs-paused, .cs-ended { background: var(--stone-2); color: var(--slate); }
.cs-making { background: var(--brand-tint); color: var(--brand); }
.dday { display: inline-block; white-space: nowrap; padding: 2px 8px; border-radius: var(--radius-xs); font-size: .8rem; font-weight: 800; background: var(--stone-2); color: var(--slate); }
.dday.soon { background: #FFF7E8; color: #92400E; }
.dday.over { background: #FEF3F2; color: var(--danger); }
.dtable { width: 100%; border-collapse: collapse; font-size: .94rem; }
.dtable th { text-align: left; font-size: .8rem; color: var(--slate); font-weight: 700; padding: 10px 12px; background: var(--stone-2); white-space: nowrap; }
.dtable td { padding: 14px 12px; border-bottom: var(--hair); vertical-align: middle; }
.dtable td.num, .dtable th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable tr.click { cursor: pointer; }
.dtable tr.click:hover td { background: #F8FAFE; }
@media (max-width: 760px) {
  .dtable.stack thead { display: none; }
  .dtable.stack tr { display: block; padding: 12px 0; border-bottom: var(--hair); }
  .dtable.stack td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .dtable.stack td::before { content: attr(data-l); color: var(--slate); font-size: .84rem; font-weight: 700; text-align: left; flex: 0 0 auto; white-space: nowrap; }
}

/* ---------- 날짜별 추이 그래프 (결과 보고 · 관리자) ---------- */
.trend { padding: 18px 20px 12px; }
.trend-legend { display: flex; gap: 18px; font-size: .84rem; color: var(--slate); margin-bottom: 8px; }
.trend-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--brand); }
.trend-legend i.b { height: 10px; width: 8px; background: var(--teal); border-radius: 2px; }
.trend-plot { position: relative; height: 190px; }
.trend-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trend-x { display: flex; justify-content: space-between; font-size: .78rem; color: var(--slate); margin-top: 6px; }
.trend-max { position: absolute; left: 0; top: -2px; font-size: .74rem; color: var(--slate); background: var(--paper); padding-right: 6px; z-index: 1; }

/* ---------- 움직임 (base.css '움직임'과 같이) ---------- */
.motion .skel i { background: linear-gradient(100deg, var(--paper) 30%, #EEF2F8 50%, var(--paper) 70%); background-size: 220% 100%; animation: sa-shimmer 1.5s linear infinite; }
.side-nav a { transition: background-color .2s ease, color .2s ease, box-shadow .25s var(--ease); }
.side-nav a i { transition: transform .3s var(--ease), color .2s ease; }
.side-nav a:hover i { transform: translateX(2px); }
.lift { transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .2s ease; }
.lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
.lift:active { transform: translateY(0); }
.dtable tr.click td { transition: background-color .18s ease; }
.msg { animation: sa-fade .4s var(--ease) both; }

/* 잠깐 뜨는 알림 (저장했습니다 등) */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: var(--radius-sm);
  background: #0B1220; color: #fff; font-weight: 700; font-size: .95rem; box-shadow: 0 18px 40px rgba(11, 18, 32, .28);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast i { color: #8FD3C1; font-size: 1.2rem; }
.toast.bad i { color: #FCA5A5; }

/* ---------- 그래프에 마우스를 올리면 날짜별 숫자 (결과 보고 · 관리자) ---------- */
.trend-legend { align-items: center; flex-wrap: wrap; }
.trend-hint { margin-left: auto; font-size: .76rem; color: var(--slate); }
@media (hover: none) { .trend-hint { display: none; } }
.trend-plot { cursor: crosshair; touch-action: pan-y; outline-offset: 8px; border-radius: 4px; }
.trend-cursor { position: absolute; top: 0; bottom: 8px; width: 1px; margin-left: -.5px; background: linear-gradient(180deg, transparent, var(--brand) 18%, var(--brand)); opacity: 0; pointer-events: none; transition: opacity .15s ease, left .14s var(--ease); }
.trend-dot { position: absolute; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 8px rgba(26, 79, 186, .35); opacity: 0; pointer-events: none; transition: opacity .15s ease, left .14s var(--ease), top .14s var(--ease); z-index: 2; }
.trend-tip { position: absolute; top: 2px; z-index: 3; transform: translateX(16px); display: grid; gap: 3px; padding: 10px 13px; border-radius: var(--radius-sm); background: #0B1220; color: #fff; font-size: .8rem; line-height: 1.5; white-space: nowrap; box-shadow: 0 12px 28px rgba(11, 18, 32, .28); opacity: 0; pointer-events: none; transition: opacity .15s ease, left .14s var(--ease), transform .2s var(--ease); }
.trend-tip.flip { transform: translateX(calc(-100% - 16px)); }
.trend-tip > b { font-size: .84rem; margin-bottom: 2px; }
.trend-tip span { display: flex; align-items: center; gap: 6px; color: #C8D3EA; }
.trend-tip span b { color: #fff; }
.trend-tip i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; background: #8DB0FF; }
.trend-tip i.b { width: 7px; height: 9px; background: #7CC4B4; }
.trend-plot.hover .trend-cursor, .trend-plot.hover .trend-dot, .trend-plot.hover .trend-tip { opacity: 1; }
.trend-end { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--brand); color: var(--brand); box-shadow: 0 0 0 3px #fff; pointer-events: none; transition: opacity .2s ease; z-index: 1; }
.motion .trend-end { animation: sa-popin .5s var(--ease-back) 1.25s both; }
.trend-plot.hover .trend-end { opacity: 0; }

/* 알림을 누르면 이동 */
.toast.link { pointer-events: auto; padding: 0; }
.toast.link a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; color: #fff; text-decoration: none; }
.toast .go { color: #8DB0FF !important; }

/* ---------- 로그인 화면 움직임 (설계사 · 직원) ---------- */
.motion .login-form .box { animation: sa-enter .8s var(--ease) .05s both; }
.motion .login-brand h1, .motion .login-brand .facts li { animation: sa-rise .8s var(--ease) both; }
.motion .login-brand h1 { animation-delay: .15s; }
.motion .login-brand .facts li:nth-child(1) { animation-delay: .35s; } .motion .login-brand .facts li:nth-child(2) { animation-delay: .47s; }
.motion .login-brand .facts li:nth-child(3) { animation-delay: .59s; }
.motion #codeStep.m-show { animation: lg-slide .55s var(--ease) both; }
.motion .test-code.m-show { animation: sa-popin .55s var(--ease-back) .18s both; }
@keyframes lg-slide { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.login-done { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--brand-tint); border-radius: var(--radius-sm); font-weight: 700; }
.login-done .m-check { width: 44px; height: 44px; flex: 0 0 44px; }
.login-done .bar { display: block; height: 4px; border-radius: 2px; background: var(--brand-line); overflow: hidden; margin-top: 8px; }
.login-done .bar i { display: block; height: 100%; background: var(--brand); transform-origin: left; }
.motion .login-done .bar i { animation: sa-grow-x .7s var(--ease-in-out) both; }

/* ---------- 문의 관리 움직임 ---------- */
.motion .lcard.m-reveal .contact .full { animation: ld-reveal .8s var(--ease) both; }
@keyframes ld-reveal { from { filter: blur(9px); opacity: .25; } to { filter: none; opacity: 1; } }
.motion .lcard.m-reveal .contact .btn { animation: sa-popin .5s var(--ease-back) .25s both; }
.motion .lcard.m-changed, .motion .lcard.m-new { animation: ld-glow 1.4s var(--ease); }
@keyframes ld-glow { 0% { box-shadow: 0 0 0 0 rgba(26, 79, 186, 0); } 20% { box-shadow: 0 0 0 5px rgba(26, 79, 186, .22); } 100% { box-shadow: 0 0 0 5px rgba(26, 79, 186, 0); } }
.motion .lcard.m-changed header .chip { animation: sa-popin .5s var(--ease-back) both; }
.motion .lcard.m-changed .steps [aria-pressed="true"] { animation: ld-press .45s var(--ease-back); }
@keyframes ld-press { from { transform: scale(.88); } to { transform: none; } }
.motion .lcard.m-erased { animation: ld-erase .9s var(--ease); }
@keyframes ld-erase { from { background: #FEF3F2; } to { background: var(--ivory-2); } }
.lcard.m-new { position: relative; border-color: var(--brand-line); }
.lcard.m-new::before { content: "새 문의"; position: absolute; top: -10px; right: 18px; padding: 2px 10px; border-radius: var(--radius-xs); background: var(--brand); color: #fff; font-size: .74rem; font-weight: 800; }
.motion .lcard.m-new::before { animation: sa-popin .5s var(--ease-back) both; }
.lcard { transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.filters button { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.filters .n { display: inline-block; }

/* ---------- 결과 보고 움직임 ---------- */
.motion .kpi .delta { animation: sa-popin .5s var(--ease-back) 1.15s both; display: inline-block; }
.motion .cmp .track .mk { animation: db-mark 1.4s var(--ease) .7s both; }
@keyframes db-mark { from { left: 3%; opacity: 0; } 20% { opacity: 1; } }
.motion .todos .todo.warn { animation: sa-rise .62s var(--ease) both, db-attn 1.6s var(--ease) 1s 1; }
@keyframes db-attn { 0% { box-shadow: 0 0 0 0 rgba(180, 83, 9, .35); } 100% { box-shadow: 0 0 0 10px rgba(180, 83, 9, 0); } }
.motion .heat .cell.m-popin { animation-duration: .45s; }
.todo { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.todo:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 46, 110, .1); }
.insights li, .recs li { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.insights li:hover, .recs li:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 46, 110, .08); }

/* ---------- 결과 보고 v6: 색 아이콘 · 채널 색 · 도넛 ---------- */
.kpi .kic { position: absolute; right: 18px; top: 18px; }
.kpi.money .kic { box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); }
.sub-h { display: flex; align-items: center; gap: 10px; }
.funnel.v6 li .ic { margin-bottom: 8px; }
.funnel.v6 .f0 .f-bar i { background: var(--c-report); } .funnel.v6 .f1 .f-bar i { background: var(--c-page); }
.funnel.v6 .f2 .f-bar i { background: var(--c-sky); } .funnel.v6 .f3 .f-bar i { background: var(--c-gold); } .funnel.v6 .f4 .f-bar i { background: var(--c-ad); }
.funnel.v6 .f1 .f-rate { color: var(--c-page-deep); } .funnel.v6 .f2 .f-rate { color: #0B7FB5; } .funnel.v6 .f3 .f-rate { color: var(--c-gold-deep); } .funnel.v6 .f4 .f-rate { color: var(--c-ad-deep); }
.ad-row .nm { display: flex; align-items: center; gap: 14px; }
.ad-row .ad-nm { min-width: 0; }
.ad-th { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 10px; object-fit: cover; box-shadow: 0 6px 14px -8px rgba(10, 18, 38, .5); }
.ad-th.none { display: grid; place-items: center; background: var(--stone-2); color: var(--slate); font-size: 1.2rem; box-shadow: none; }
.ad-row .bar.teal i { background: linear-gradient(90deg, color-mix(in srgb, var(--kc) 70%, #fff), var(--kc)); }
.ad-row .tags .kind-chip { background: color-mix(in srgb, var(--kc) 12%, #fff); color: var(--kc); }
.src-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden; }
.src-sum { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 26px 22px; border-right: var(--hair); background: linear-gradient(180deg, #FAFBFD, #fff); }
.src-sum .legend { width: 100%; max-width: 220px; }
.src-card .row .nm { display: flex; align-items: center; gap: 12px; }
.src-card .row .nm > span:last-child .chip { margin-left: 8px; }
.src-card .bar { height: 10px; border-radius: 5px; }
.src-card .bar i { border-radius: 5px; }
@media (max-width: 900px) { .src-card { grid-template-columns: 1fr; } .src-sum { border-right: 0; border-bottom: var(--hair); flex-direction: row; } }
.lrow .src .src-in { display: flex !important; gap: 8px; align-items: flex-start; color: var(--ink); font-size: .92rem; }
.lrow .src .src-in .chn { display: inline-grid !important; margin-top: 3px; }
.lrow .src .src-in > span:last-child > span { display: block; color: var(--slate); font-size: .85rem; }

/* 이유 풀이 · 다음 달에 바꿀 것: 색 아이콘 */
.insights.v6 li { display: flex; gap: 14px; align-items: flex-start; border-left: 0; position: relative; overflow: hidden; }
.insights.v6 li::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lc, var(--brand)); }
.insights.v6 li b { color: var(--lc, var(--brand)); letter-spacing: .04em; }
.insights.v6 .ic-ad-l { --lc: var(--c-ad); } .insights.v6 .ic-sky-l { --lc: var(--c-sky); } .insights.v6 .ic-page-l { --lc: var(--c-page); }
.insights.v6 .ic-gold-l { --lc: var(--c-gold); } .insights.v6 .ic-report-l { --lc: var(--c-report); }
.insights.v6 .ic-gold-l b { color: var(--c-gold-deep); } .insights.v6 .ic-page-l b { color: var(--c-page-deep); } .insights.v6 .ic-ad-l b { color: var(--c-ad-deep); }
.recs li { border-top-width: 4px; }
.recs li:nth-child(1) { border-top-color: var(--c-ad); } .recs li:nth-child(2) { border-top-color: var(--c-sky); } .recs li:nth-child(3) { border-top-color: var(--c-page); }
.recs li:nth-child(1)::before { color: var(--c-ad); } .recs li:nth-child(2)::before { color: var(--c-sky); } .recs li:nth-child(3)::before { color: var(--c-page); }

/* ---------- 왼쪽 메뉴 v6: 남색 위에 은은한 빛 · 메뉴마다 색 아이콘 ---------- */
.side { background:
    radial-gradient(420px 320px at -10% -5%, rgba(47, 107, 234, .38), transparent 62%),
    radial-gradient(360px 360px at 110% 105%, rgba(14, 159, 126, .2), transparent 62%),
    var(--navy); }
.side-nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(141, 176, 255, .24), rgba(141, 176, 255, .06)); box-shadow: inset 3px 0 0 #8DB0FF; }
.side-nav a i { opacity: 1; }
.side-nav a[href*="dashboard"] i { color: #8DB0FF; } .side-nav a[href*="leads"] i { color: #6FE3C1; }
.side-nav a[href*="ads"] i { color: #FFB08F; } .side-nav a[href*="mypage"] i { color: #7EE0C6; }
.side-nav a[href*="review"] i { color: #EBCB8B; } .side-nav a[href*="billing"] i { color: #7DD3FC; }
.side-nav a[href*="settings"] i { color: #C8D3EA; }
.side-nav a[aria-current="page"] i { color: #fff; }
.side-nav .cnt { background: linear-gradient(90deg, #FF9466, var(--c-ad)); color: #fff; }

/* ---------- 로그인 오른쪽 v6: 남색 위 빛 · 색 아이콘 · 예시 화면 ---------- */
.login-brand { position: relative; overflow: hidden; background:
    radial-gradient(520px 380px at 100% 0%, rgba(47, 107, 234, .45), transparent 62%),
    radial-gradient(420px 380px at 0% 100%, rgba(14, 159, 126, .22), transparent 62%),
    #0A1430 !important; }
.login-brand > * { position: relative; z-index: 1; }
.login-brand .bgt-wrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.login-brand .bgt-wrap span { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .3); font-size: 1.5rem; transform: rotate(var(--r, 0deg)); }
.motion .login-brand .bgt-wrap span { animation: lg-drift 16s ease-in-out infinite alternate; }
@keyframes lg-drift { to { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 6deg)); } }
.facts.v6 .ic i { display: inline; width: auto; height: auto; background: none; border-radius: 0; color: #fff; font-size: inherit; }
.facts.v6 li { grid-template-columns: 48px 1fr; }
.facts.v6 .ic { width: 44px; height: 44px; font-size: 1.3rem; }
.lg-card { margin: 26px 0 0; max-width: 26em; padding: 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.lg-card .hd { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 800; margin-bottom: 10px; color: #fff; }
.lg-card .hd em { font-style: normal; color: #7EE2B8; font-size: .76rem; display: inline-flex; align-items: center; gap: 6px; }
.lg-card .hd em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3DDC97; }
.lg-card .rw { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: .8rem; color: #DCE4F5; }
.lg-card .rw + .rw { margin-top: 6px; }
.lg-card .rw b { color: #fff; display: block; font-size: .84rem; }
.lg-card .rw small { color: var(--on-dark); }
.lg-card .rw .t { font-size: .72rem; color: var(--on-dark); }
.lg-card .k3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.lg-card .k3 span { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: .7rem; color: var(--on-dark); }
.lg-card .k3 b { display: block; color: #fff; font-size: 1rem; letter-spacing: -.02em; }
.motion .lg-card { animation: sa-enter 1s var(--ease) .5s both; }
@media (max-width: 860px) { .lg-card, .login-brand .bgt-wrap { display: none; } }

/* 문의 관리: 어디서 칸에 채널 표 */
.lc-info dd.src-dd { display: flex; gap: 8px; align-items: flex-start; }
.lc-info dd.src-dd .chn { margin-top: 4px; }

/* 결과 보고: 신청 페이지 종류별 (기록 25) */
.tpl-card .row .nm { display: flex; align-items: center; gap: 12px; }
.tpl-card .row .nm > span:last-child .chip { margin-left: 8px; }
.tpl-card .bar { height: 10px; border-radius: 5px; }
.tpl-card .bar i { border-radius: 5px; }
.tpl-tile { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: #fff; font-size: 1.05rem;
  background: linear-gradient(145deg, color-mix(in srgb, var(--tc) 70%, #fff), var(--tc)); box-shadow: 0 8px 16px -10px var(--tc); }

/* 휴대폰: 광고별 · 종류별 줄은 숫자를 아래 줄로 (긴 광고 이름도 넘치지 않게) */
@media (max-width: 560px) {
  .ad-row, .tpl-card .row { grid-template-columns: minmax(0, 1fr) !important; }
  .ad-row .nm, .tpl-card .row .nm { min-width: 0; }
  .ad-row .nums, .tpl-card .row .nums { text-align: left !important; white-space: normal !important; }
}

/* 휴대폰 번호 칸 아래 안내 (기록 29) */
.phone-hint { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: .86rem; color: var(--slate); }
.phone-hint i { color: var(--brand); }

/* ---------- 광고 자료 주고받기 (기록 40, materials.js): 관리자 · 설계사 공통 ---------- */
.mt-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.mt-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mt-you { background: #FFF1E6; color: #B4470B; }         /* 설계사가 할 차례 (설계사 화면) */
.mt-wait { background: var(--stone-2); color: var(--slate); }
.mt-us { background: var(--brand-tint); color: var(--brand-deep); }
.mt-ok { background: var(--teal-bg); color: var(--teal); }
.mt-off { background: var(--stone-2); color: var(--slate); }
.mt-card { border: var(--hair); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--paper); display: grid; gap: 10px; }
.mt-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mt-h > i { font-size: 1.15rem; color: var(--brand); }
.mt-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mt-it { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.mt-thumb { display: block; width: 88px; height: 88px; border-radius: var(--radius-xs); overflow: hidden; background: var(--stone-2); object-fit: cover; }
.mt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
video.mt-thumb { width: 140px; height: 88px; background: #000; }
.mt-doc { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-xs); background: var(--stone-2); color: var(--brand-deep); font-weight: 800; font-size: .74rem; gap: 2px; }
.mt-doc i { font-size: 1.2rem; }
.mt-meta { min-width: 0; display: grid; gap: 2px; font-size: .86rem; }
.mt-meta a { overflow-wrap: anywhere; font-weight: 700; }
.mt-meta small { color: var(--slate); font-size: .76rem; }
.mt-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.mt-rm { border: 0; background: none; color: var(--slate); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.mt-rm:hover { background: #FEF3F2; color: var(--danger); }
.mt-ask { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: #FFF7E8; color: #7C3A06; font-size: .88rem; display: flex; gap: 8px; align-items: flex-start; }
.mt-ask i { margin-top: 2px; }
.mt-ask b { white-space: nowrap; }
.mt-log summary { cursor: pointer; font-size: .8rem; color: var(--slate); font-weight: 700; }
.mt-log ol { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: .84rem; }
.mt-log small { color: var(--slate); }
.mt-q { display: block; color: var(--ink); background: var(--stone-2); border-radius: var(--radius-xs); padding: 4px 8px; margin-top: 2px; white-space: pre-wrap; }
.mt-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mt-up { display: grid; gap: 8px; padding: 10px; border-radius: var(--radius-sm); background: var(--ivory); }
.mt-up textarea { min-height: 72px; }
.mt-up-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mt-file { cursor: pointer; }
.mt-late { color: #B4470B; font-weight: 800; }
@media (max-width: 560px) {
  .mt-it { grid-template-columns: minmax(0, 1fr) auto; }
  .mt-it .mt-thumb, .mt-it .mt-doc { grid-column: 1 / -1; }
  .mt-thumb { width: 100%; height: auto; max-height: 260px; aspect-ratio: 4 / 3; }
  video.mt-thumb { width: 100%; height: auto; }
}
.mt-up[hidden] { display: none; }   /* display:grid 가 hidden 을 덮지 않게 */
