/* 세진기연 업무 포털 — 시안(2026-10-17): 왼쪽 남색 메뉴 · 흰 카드 · 큰 글씨. 대표 · 실장님이 회사 PC와 휴대폰에서 씁니다. */
:root {
  --ink: #18212f; --muted: #5d6878; --line: #e3e7ee; --bg: #f4f6fa; --card: #fff;
  --navy: #13284a; --navy2: #1c3763; --navy-ink: #cfd8e8; --blue: #1f6fe5; --blue-bg: #e8f0fe;
  --accent: #f08a24; --orange-bg: #fff1e3; --green: #1f8a4c; --green-bg: #e6f6ec; --red: #d92d20; --red-bg: #fdecea;
  --violet: #6d3fd8; --violet-bg: #f0eaff; --pink: #c2306b; --pink-bg: #fde8f0; --err: #b42318; --ok: #1d6b3a;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 17px; }
body { margin: 0; font-family: "Pretendard", system-ui, -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.9rem; margin: 0 0 .25rem; letter-spacing: -.02em; }
h2 { font-size: 1.12rem; margin: 0 0 .6rem; display: flex; align-items: center; gap: .45rem; }
h3 { font-size: 1.2rem; margin: .4rem 0 .6rem; }
h4 { font-size: .98rem; margin: 0 0 .5rem; display: flex; align-items: center; gap: .4rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* --- 틀 --------------------------------------------------------------------------------------- */
body.app { display: flex; min-height: 100vh; }
.side { width: 248px; flex: none; background: var(--navy); color: var(--navy-ink); padding: 1rem .8rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.02rem; white-space: nowrap; padding: .3rem .5rem 1.1rem; text-decoration: none !important; }
.mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #e0601b); color: #fff; font-weight: 900; font-size: 1.15rem; }
.nav { display: flex; flex-direction: column; gap: .15rem; }
.nav hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: .9rem .4rem; }
.nav-sec { font-size: .78rem; color: #8fa0bd; padding: .2rem .7rem .3rem; }
.nav-item { display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 9px; color: var(--navy-ink); cursor: pointer; list-style: none; text-decoration: none !important; }
.nav-item::-webkit-details-marker { display: none; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.on { background: var(--navy2); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav-item .caret { margin-left: auto; transition: transform .15s; width: .95em; height: .95em; }
details[open] > .nav-item .caret { transform: rotate(90deg); }
.nav-sub { display: block; padding: .38rem .8rem .38rem 2.75rem; color: #aebbd2; border-radius: 8px; text-decoration: none !important; font-size: .95rem; }
.nav-sub:hover { color: #fff; }
.nav-sub.on { color: #fff; font-weight: 700; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.search { flex: 1; max-width: 620px; display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: #f9fafc; border-radius: 10px; padding: .1rem .8rem; color: var(--muted); }
.search input { border: 0 !important; background: transparent !important; padding: .55rem 0 !important; max-width: none !important; outline: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.bell { position: relative; color: var(--ink); display: inline-flex; }
.bell .ico { width: 1.45em; height: 1.45em; }
.badge { position: absolute; top: -6px; right: -8px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 0 .38rem; line-height: 1.35rem; min-width: 1.35rem; text-align: center; }
.me { position: relative; }
.me summary { list-style: none; display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.me summary::-webkit-details-marker { display: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy2); color: #fff; display: grid; place-items: center; font-weight: 700; }
.me-name { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; }
.me-name small { color: var(--muted); font-weight: 400; }
.me-menu { position: absolute; right: 0; top: 115%; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .4rem; min-width: 200px; box-shadow: 0 8px 24px rgba(16,24,40,.12); z-index: 10; }
.me-menu a, .me-menu button { display: block; width: 100%; text-align: left; padding: .5rem .7rem; color: var(--ink); border-radius: 7px; font-size: .95rem; }
.me-menu a:hover, .me-menu button:hover { background: var(--bg); text-decoration: none; }
.me-menu form { margin: 0; }
.content { padding: 1.4rem 1.6rem 2.5rem; max-width: 1500px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.page-head p { margin: 0; }
.page-date { color: var(--muted); white-space: nowrap; padding-top: .5rem; }
body.plain { background: var(--bg); }
.plain-top { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.25rem; font-weight: 800; font-size: 1.1rem; }

/* --- 공통 ------------------------------------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem 1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .5rem; }
.card-head h2 { margin: 0; }
.card-head a { font-size: .92rem; white-space: nowrap; }
.narrow { max-width: 460px; margin: 2rem auto; }
label { display: block; margin: .5rem 0; }
label.chk { display: inline-block; margin: .2rem .6rem .2rem 0; white-space: nowrap; }
input[type=email], input[type=password], input[type=text], input[type=search], input:not([type]), select, textarea, input[type=date] {
  display: block; width: 100%; max-width: 420px; font: inherit; font-size: 1rem; padding: .5rem .65rem; border: 1px solid #c3cad6; border-radius: 8px; background: #fff; color: var(--ink); }
textarea { max-width: 100%; }
button, .button, .btn { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .97rem; padding: .5rem 1rem; border-radius: 8px; border: 1px solid var(--navy2); background: var(--navy2); color: #fff; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn.primary, button.primary { background: var(--blue); border-color: var(--blue); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.violet { background: var(--violet); border-color: var(--violet); }
button.big { font-size: 1.12rem; padding: .85rem 1.4rem; width: 100%; max-width: 420px; justify-content: center; background: var(--accent); border-color: var(--accent); }
button.link { background: none; border: 0; color: inherit; padding: 0; text-decoration: underline; font-size: .95rem; }
.muted { color: var(--muted); }
.small { font-size: .82rem; color: var(--muted); }
.error { color: var(--err); font-weight: 600; }
.notice { background: var(--green-bg); border: 1px solid #b7dcc4; color: var(--ok); padding: .55rem .9rem; border-radius: 8px; }
.good { color: var(--green); }
.bad { color: var(--red); font-weight: 600; }
details.alt { margin-top: 1rem; }
.edit-box { margin-top: 1rem; padding: .9rem 1rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--blue-bg); }
.edit-box h3 { margin: 0 0 .6rem; }
details.alt summary { cursor: pointer; color: var(--blue); }
table { width: 100%; border-collapse: collapse; margin: .4rem 0 .8rem; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { background: #f7f8fb; color: var(--muted); font-weight: 600; font-size: .88rem; }
form.inline { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center; margin: 0; }
form.inline input[type=text] { max-width: 200px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: .5rem 0; }
.tag { display: inline-block; font-size: .78rem; padding: .08rem .5rem; margin: .1rem .2rem .1rem 0; border-radius: 6px; background: #eef1f5; color: var(--muted); white-space: nowrap; }
.tag.warn { background: var(--red-bg); color: var(--red); }
.tag.blue { background: var(--blue-bg); color: var(--blue); }
.tag.violet { background: var(--violet-bg); color: var(--violet); }
.tag.green { background: var(--green-bg); color: var(--green); }
.tag.orange { background: var(--orange-bg); color: #c2620a; }
.tag.pink { background: var(--pink-bg); color: var(--pink); }
.count { background: var(--accent); color: #fff; border-radius: 999px; font-size: .8rem; padding: 0 .5rem; }
.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--green); width: .75rem; height: .75rem; }
.dot.c-0 { background: var(--green); } .dot.c-1 { background: var(--accent); } .dot.c-2 { background: var(--blue); } .dot.c-3 { background: var(--violet); } .dot.c-4 { background: var(--red); }
.nowrap { white-space: nowrap; }

/* 상태 색 */
.st { display: inline-block; font-size: .82rem; padding: .12rem .55rem; border-radius: 6px; background: #eef1f5; color: var(--muted); white-space: nowrap; font-weight: 600; }
.st-new { background: var(--blue-bg); color: var(--blue); }
.st-contacted, .st-triaged, .st-qualified, .st-technical-review, .st-scheduled { background: var(--orange-bg); color: #c2620a; }
.st-quoted, .st-negotiation, .st-in-progress, .st-waiting-parts { background: var(--violet-bg); color: var(--violet); }
.st-won, .st-resolved, .st-closed { background: var(--green-bg); color: var(--green); }
.st-lost, .st-spam { background: #eceef2; color: #7a8494; }

/* --- 오늘 ------------------------------------------------------------------------------------- */
.hello { margin: -.4rem 0 1rem; color: var(--muted); }
.hello b { color: var(--ink); font-size: 1.15rem; margin-right: .4rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kpi { display: flex; gap: .8rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); }
a.kpi:hover { border-color: #c9d3e3; }
.kpi > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.kpi small { color: var(--muted); font-size: .88rem; }
.kpi b { font-size: 1.7rem; line-height: 1.2; }
.kpi b i { font-style: normal; font-size: .95rem; font-weight: 600; margin-left: .1rem; }
.kpi b.red { color: var(--red); }
.kpi b.sm { font-size: 1.05rem; }
.kpi b.soon { font-size: 1rem; color: var(--muted); font-weight: 600; }
.kpi em { font-style: normal; font-size: .82rem; }
.kico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.kico .ico { width: 1.4em; height: 1.4em; }
.kico.blue { background: var(--blue-bg); color: var(--blue); } .kico.green { background: var(--green-bg); color: var(--green); }
.kico.orange { background: var(--orange-bg); color: var(--accent); } .kico.red { background: var(--red-bg); color: var(--red); }
.kico.gray { background: #eef1f5; color: var(--navy2); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
ul.todo, ul.log, ul.acts, ul.road { list-style: none; padding: 0; margin: .2rem 0; }
ul.todo li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
ul.todo .when { margin-left: auto; color: var(--muted); font-size: .85rem; }
ul.acts li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
ul.acts .time { color: var(--muted); font-size: .85rem; white-space: nowrap; }
ul.log li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
ul.road li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
ul.road li small { display: block; color: var(--muted); }
.pipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; margin: .4rem 0 .5rem; }
.pstep { padding: .6rem .7rem .7rem 1rem; border-radius: 8px; background: var(--blue-bg); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 10px 50%); }
.pstep:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.pstep.s2 { background: #e9f0fb; } .pstep.s3 { background: var(--orange-bg); } .pstep.s4 { background: #fdf3e7; } .pstep.s5 { background: var(--green-bg); } .pstep.s6 { background: var(--violet-bg); }
a.pstep { color: var(--ink); text-decoration: none !important; }
.pstep small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plabel { display: flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .92rem; }
.pstep b { display: block; font-size: 1.35rem; margin-top: .3rem; }
.pstep b i { font-style: normal; font-size: .85rem; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.q { display: flex; gap: .7rem; align-items: center; padding: .85rem; border-radius: 10px; color: var(--ink); text-decoration: none !important; }
.q .ico { width: 1.6em; height: 1.6em; }
.q span { display: flex; flex-direction: column; } .q small { color: var(--muted); font-size: .8rem; }
.q.blue { background: var(--blue-bg); } .q.blue .ico { color: var(--blue); }
.q.green { background: var(--green-bg); } .q.green .ico { color: var(--green); }
.q.orange { background: var(--orange-bg); } .q.orange .ico { color: var(--accent); }
.q.violet { background: var(--violet-bg); } .q.violet .ico { color: var(--violet); }
table.status td { border: 0; padding: .45rem .2rem; }
table.status td:last-child { text-align: right; }
meter.bar { width: 100%; height: .5rem; display: block; margin-top: .25rem; }

/* --- 접수함 ----------------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding: .8rem 1rem; }
.filters label, .filters select, .filters input { margin: 0; }
.filters select { width: auto; }
.f-search { display: flex; align-items: center; gap: .4rem; border: 1px solid #c3cad6; border-radius: 8px; padding: 0 .6rem; flex: 1 1 260px; max-width: 360px; color: var(--muted); }
.f-search input { border: 0 !important; background: transparent !important; padding: .5rem 0 !important; outline: none; }
.f-date { display: flex; align-items: center; gap: .3rem; }
.f-date input { width: auto; }
.spacer { flex: 1; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.split.with-panel { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); }
.table-wrap { overflow-x: auto; }
table.inbox td { font-size: .93rem; }
table.inbox th { white-space: nowrap; }
table.inbox td:nth-child(2) { min-width: 8.5rem; }
.with-panel table.inbox th:nth-child(3), .with-panel table.inbox td:nth-child(3), .with-panel table.inbox th:nth-child(7), .with-panel table.inbox td:nth-child(7),
.with-panel table.inbox th:nth-child(8), .with-panel table.inbox td:nth-child(8) { display: none; }
table.inbox tr.sel td { background: #eef4ff; }
table.inbox tbody tr:hover td { background: #f7f9fd; }
.rowlink { color: var(--ink); }
.pager { display: flex; justify-content: center; gap: .3rem; margin-top: .5rem; }
.pager a, .pager span { min-width: 2rem; padding: .2rem .5rem; text-align: center; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); }
.pager .on { background: var(--blue); color: #fff; border-color: var(--blue); }
.panel { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.panel-head h2 { margin: 0; }
.panel-nav { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.panel-nav a { color: var(--ink); font-size: 1.15rem; }
.panel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; margin-top: .6rem; }
.ptitle { font-size: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.actions .btn { font-size: .88rem; padding: .4rem .75rem; }
.box { border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem; margin-bottom: .7rem; }
.box.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.box.two p { margin: 0; }
.big-name { font-size: 1.12rem; font-weight: 700; margin: 0 0 .3rem; }
ul.contact { list-style: none; padding: 0; margin: 0; }
ul.contact li { display: flex; align-items: center; gap: .45rem; padding: .15rem 0; }
table.kv { margin: 0; }
tr.hl td { font-weight: 600; }
table.kv th { width: 7.5rem; color: var(--muted); font-weight: 600; background: none; font-size: .9rem; vertical-align: top; }
.pre { white-space: pre-wrap; word-break: break-word; }
form.process { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
form.process label { margin: .3rem 0; }
form.process .wide, form.process button { grid-column: 1 / -1; }
form.process button { justify-self: start; margin-top: .4rem; }
.panel-full { max-width: 900px; }

/* --- 고객 · 영업 ------------------------------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.toolbar .tabs { margin: 0; }
.crumb { color: var(--muted); font-size: .9rem; margin: -.4rem 0 .8rem; }
.btn.sm, button.sm { font-size: .82rem; padding: .25rem .6rem; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 1rem; margin-bottom: .6rem; }
.formgrid .wide { grid-column: 1 / -1; }
.formgrid input, .formgrid select, .formgrid textarea { max-width: none; }
.acc-title { display: flex; gap: 1rem; align-items: center; }
.acc-avatar { width: 64px; height: 64px; border-radius: 14px; background: var(--blue-bg); color: var(--blue); display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; flex: none; }
.acc-name { font-size: 1.5rem; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.stepper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .3rem; margin: .7rem 0 .9rem; }
.step { text-align: center; font-size: .85rem; padding: .45rem .3rem; border-radius: 8px; background: #eef1f5; color: var(--muted); }
.step.done { background: var(--blue-bg); color: var(--blue); }
.step.on { background: var(--accent); color: #fff; font-weight: 700; }
.small-kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: .4rem 0 0; }
.small-kpis .kpi { padding: .7rem .8rem; box-shadow: none; }
.small-kpis .kpi b { font-size: 1.3rem; }
.small-kpis .kpi b.sm { font-size: 1rem; word-break: keep-all; }
.small-kpis .kpi em { color: var(--muted); font-size: .8rem; }
.st-crm-inquiry { background: var(--blue-bg); color: var(--blue); }
.st-crm-technical { background: #e9f0fb; color: var(--navy2); }
.st-crm-quoted { background: var(--orange-bg); color: #c2620a; }
.st-crm-negotiation { background: #fdf3e7; color: #a65a0a; }
.st-crm-won { background: var(--green-bg); color: var(--green); }
.st-crm-delivery { background: var(--violet-bg); color: var(--violet); }
.st-crm-on_hold, .st-crm-lost { background: #eceef2; color: #7a8494; }
.board { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: .7rem; overflow-x: auto; padding-bottom: .5rem; }
.col-card { background: #eef1f6; border-radius: 12px; padding: .7rem; min-height: 160px; }
.col-card h3 { font-size: .95rem; margin: 0 0 .6rem; display: flex; flex-direction: column; gap: .2rem; }
.opp-card { display: flex; flex-direction: column; gap: .15rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; margin-bottom: .5rem; color: var(--ink); text-decoration: none !important; }
.opp-card:hover { border-color: #b9c6db; }
ul.people { list-style: none; padding: 0; margin: 0; }
ul.people li { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.avatar.sm { width: 34px; height: 34px; font-size: .95rem; background: #e6ebf3; color: var(--navy2); flex: none; }
ul.timeline { list-style: none; padding: 0 0 0 1rem; margin: .6rem 0; border-left: 2px solid var(--line); }
ul.timeline li { position: relative; padding: .5rem 0 .6rem .6rem; }
ul.timeline li::before { content: ""; position: absolute; left: -1.42rem; top: .85rem; width: .7rem; height: .7rem; border-radius: 50%; background: #c7d0dd; }
ul.timeline li.k-contact::before { background: var(--blue); }
ul.timeline .time { color: var(--muted); font-size: .82rem; margin-right: .3rem; }
.actform { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-items: start; margin-bottom: .5rem; }
.actform select, .actform textarea { max-width: none; width: 100%; }
.actform textarea { grid-column: 1 / -1; }
.actform button { justify-self: start; }
tr.dim td { color: var(--muted); }

/* --- 준비 중 ---------------------------------------------------------------------------------- */
.soon-card { text-align: left; }
.soon-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--blue-bg); color: var(--blue); display: grid; place-items: center; margin-bottom: .6rem; }
.soon-ico .ico { width: 1.6em; height: 1.6em; }
ul.soon-list { padding-left: 1.2rem; } ul.soon-list li { margin: .3rem 0; }

/* --- 좁은 화면(휴대폰) ------------------------------------------------------------------------- */
/* --- 회계 v0 ---------------------------------------------------------------------------------- */
nav.tabs { display: flex; flex-wrap: wrap; gap: .2rem; border-bottom: 1px solid var(--line); margin: 0 0 .8rem; }
nav.tabs a { padding: .45rem .8rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none !important; font-weight: 600; }
nav.tabs a.on { color: var(--blue); border-bottom-color: var(--blue); }
.toolbar nav.tabs { border-bottom: 0; }
.kpis.six { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpis.six .kpi { padding: .9rem .8rem; gap: .6rem; }
.kpis.six .kpi b.sm { font-size: .98rem; white-space: nowrap; }
.stepper.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
th.num, td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tfoot th { background: #f6f8fb; }
ul.sources { list-style: none; padding: 0; margin: 0; }
ul.sources li { display: flex; align-items: center; gap: .4rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
ul.sources li a { flex: 1; display: flex; flex-direction: column; color: var(--ink); text-decoration: none !important; }
ul.sources li small { color: var(--muted); font-size: .8rem; }
.soon-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.soon-card.mini { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .8rem 1rem; }
.soon-card.mini p { flex-basis: 100%; margin: 0; }
.inline-upload { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .6rem 0; }
input.small-file { max-width: 11rem; font-size: .8rem; }
.st-inv-to_issue, .st-inv-expected, .st-evd-needed, .st-item-wait { background: var(--orange-bg); color: #c2620a; }
.st-inv-issued, .st-inv-received, .st-evd-checked, .st-evd-sent, .st-item-done { background: var(--green-bg); color: var(--green); }
.st-evd-received, .st-item-doing { background: var(--blue-bg); color: var(--blue); }
.st-inv-cancelled { background: #eceef2; color: #7a8494; }
ul.todo li.dim { opacity: .6; }
.table-wrap table.wide { min-width: 640px; }
table.wide td { word-break: keep-all; }
td.title-cell { min-width: 12rem; }
td form.inline select, td form.inline input:not([type=file]) { width: auto; max-width: 11rem; }

/* --- Virals · Studio -------------------------------------------------------------------------- */
.vir-tabs nav.tabs a { display: inline-flex; align-items: center; gap: .3rem; }
.vir-tabs nav.tabs .ico { width: 1em; height: 1em; }
.grid2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* AI 도우미(2026-10-22): 노란 칸 = AI 제안(저장 전) */
.ai-filled { background: #fff6c7 !important; border-color: #d9a800 !important; }
.ai-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0 0 .7rem; padding: .5rem .7rem; border-radius: 8px; background: #fffbe6; border: 1px solid #f0d675; font-size: .92rem; grid-column: 1 / -1; }
.ai-bar.busy .ai-text::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .4em; border: 2px solid #d9a800; border-right-color: transparent; border-radius: 50%; animation: aispin .8s linear infinite; vertical-align: -1px; }
@keyframes aispin { to { transform: rotate(360deg); } }
.ai-badge { background: #d9a800; color: #fff; font-weight: 700; font-size: .75rem; padding: .05rem .4rem; border-radius: 4px; }
.ai-src { flex-basis: 100%; } .ai-src summary { cursor: pointer; font-size: .85rem; } .ai-src p { margin: .3rem 0; } .ai-warn { color: #a15c00; }
.ai-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; padding: .7rem 1rem; border-radius: 999px; border: 0; background: #1d4ed8; color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; }
.ai-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); z-index: 50; background: #fff; border-left: 1px solid #dde3ea; box-shadow: -6px 0 20px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.ai-drawer[hidden] { display: none; }
.ai-head { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid #eef1f5; } .ai-head .link { margin-left: auto; }
.ai-log { flex: 1; overflow-y: auto; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
.ai-msg { padding: .55rem .75rem; border-radius: 10px; max-width: 92%; white-space: pre-wrap; line-height: 1.5; }
.ai-msg.me { align-self: flex-end; background: #e8f0fe; } .ai-msg.ai { align-self: flex-start; background: #f5f6f8; } .ai-msg.err { background: #fdecec; } .ai-msg.busy { color: #777; }
.ai-msg ul { margin: .4rem 0; padding-left: 1.1rem; } .ai-msg .btn { margin-top: .3rem; }
.ai-intro { margin: 0 0 .6rem; color: var(--ink); } .ai-intro ul { margin: .3rem 0 .5rem 1.1rem; padding: 0; } .ai-intro li { margin: .15rem 0; } .ai-msg .ai-src { margin-top: .4rem; font-size: .85rem; }
.ai-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .5rem; } .ai-chips .chip { border: 1px solid #cfd8e3; background: #fff; border-radius: 999px; padding: .3rem .7rem; font-size: .85rem; cursor: pointer; }
.ai-foot { display: flex; gap: .5rem; padding: .7rem 1rem 1rem; border-top: 1px solid #eef1f5; } .ai-foot textarea { flex: 1; resize: none; font-size: 16px; }
.ai-drawer, .ai-full { font-size: 1.02rem; } .ai-drawer .ai-head a.small { margin-left: auto; } .ai-drawer .ai-head .link { margin-left: .6rem; }
.ai-help { background: #f3f7ff; border: 1px solid #d6e2fb; border-radius: 10px; padding: .55rem .8rem; } .ai-help summary { cursor: pointer; font-weight: 700; }
.ai-help ol { padding-left: 1.2rem; margin: .4rem 0; line-height: 1.6; } .ai-help p { margin: .4rem 0; }
.ai-full { display: flex; flex-direction: column; min-height: 60vh; padding: 0; } .ai-full .ai-log { min-height: 45vh; max-height: 65vh; }
.ai-full .ai-foot textarea { font-size: 17px; }
/* 사용설명서 */
.help-search { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; } .help-search label { flex: 1; min-width: 14rem; } .help-search input { width: 100%; font-size: 17px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .8rem; margin: 1rem 0; }
.help-card { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: inherit; margin: 0; } .help-card b { font-size: 1.08rem; } .help-card span { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.help-card:hover { border-color: #9db8f2; } .help-link { font-weight: 700; font-size: 1.05rem; }
.help-steps { font-size: 1.08rem; line-height: 1.8; padding-left: 1.4rem; } .help-steps li { margin: .35rem 0; } .help-tips { line-height: 1.7; }
.help-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.vflow { display: flex; align-items: stretch; gap: .4rem; overflow-x: auto; }
.vstep { flex: 1; min-width: 120px; display: flex; flex-direction: column; gap: .15rem; padding: .8rem 1rem; border-radius: 12px; color: var(--ink); text-decoration: none !important; }
.vstep small { font-weight: 600; } .vstep b { font-size: 1.7rem; } .vstep span { font-size: .8rem; color: var(--muted); }
.vstep.v1 { background: var(--blue-bg); } .vstep.v2 { background: var(--orange-bg); } .vstep.v3 { background: var(--violet-bg); } .vstep.v4 { background: var(--green-bg); } .vstep.v5 { background: #eaf2fd; }
.varrow { align-self: center; color: var(--muted); }
.vthumb { width: 44px; height: 60px; object-fit: cover; border-radius: 6px; background: #e8edf4; flex: none; display: inline-grid; place-items: center; color: var(--muted); }
.vthumb.ph .ico { width: 1.2em; height: 1.2em; }
.vep { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.vcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.vcard { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); }
.vcard.on { border: 2px solid var(--blue); }
.vcard > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.vcard b, .vep b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vcard small { color: var(--muted); font-size: .8rem; }
.vcard-r { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.vmore { grid-column: 1 / -1; } .vmore a { display: inline-block; margin: .2rem .6rem .2rem 0; }
.vhead { flex-wrap: wrap; gap: .5rem; }
nav.vers { display: flex; gap: .25rem; } nav.vers a { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none !important; font-weight: 600; }
nav.vers a.on { background: var(--blue); color: #fff; border-color: var(--blue); }
nav.vers { flex-wrap: wrap; } nav.vers .vkind { font-weight: 500; font-size: .72rem; opacity: .75; } nav.vers .vkind.ai { color: var(--violet, #7c3aed); opacity: 1; } nav.vers a.on .vkind { color: #fff; }
.vplayer { background: #0d1626; border-radius: 12px; display: grid; place-items: center; min-height: 360px; overflow: hidden; }
.vplayer video { max-height: 640px; max-width: 100%; aspect-ratio: 9 / 16; background: #000; }
.vplayer iframe { width: min(100%, 380px); aspect-ratio: 9 / 16; border: 0; }
.vplayer-empty { color: #b7c3d6; text-align: center; padding: 2rem; } .vplayer-empty .ico { width: 3em; height: 3em; }
.vdecide { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; } .vdecide .wide, .vdecide .vbtns, .vdecide p { grid-column: 1 / -1; }
.vdecide select, .vdecide textarea { width: 100%; max-width: none; }
.vbtns { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }
.btn.violet, button.violet { background: var(--violet-bg); color: var(--violet); border-color: #d9cdf7; }
.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; margin-bottom: .6rem; }
.voice { display: flex; gap: .6rem; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; }
.voice span:last-child { display: flex; flex-direction: column; } .voice small { color: var(--muted); font-size: .8rem; }
.vplay { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-bg); color: var(--blue); display: grid; place-items: center; flex: none; }
tr.sel td { background: #f2f7ff; }

@media (max-width: 1100px) {
  .grid2, .split.with-panel { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; max-height: none; }
  .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  html { font-size: 16px; }
  body.app { display: block; }
  /* 휴대폰 · 태블릿(세로): 위에 로고 + 메뉴 버튼, 누르면 큰 글씨 세로 메뉴(아버지 · 어머니도 찾기 쉽게) */
  .side { position: sticky; top: 0; z-index: 40; width: auto; height: auto; padding: .5rem .8rem; overflow: visible; }
  .side-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
  .logo { padding: .2rem .1rem; }
  .nav-btn { display: inline-flex; }
  .nav { display: none; flex-direction: column; gap: .15rem; margin-top: .5rem; max-height: calc(100vh - 64px); overflow-y: auto; padding-bottom: .6rem; }
  .navt:checked ~ .side .nav { display: flex; }
  .navt:checked ~ .side .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navt:checked ~ .side .burger i:nth-child(2) { opacity: 0; }
  .navt:checked ~ .side .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-item { padding: .85rem 1rem; font-size: 1.12rem; min-height: 48px; }
  .nav-sub { padding: .75rem 1rem .75rem 2.9rem; font-size: 1.05rem; min-height: 46px; }
  .nav-sec { padding: .8rem 1rem .2rem; }
  .topbar { position: static; padding: .6rem .8rem; }
  .me-name { display: none; }
  .content { padding: 1rem .8rem 2rem; }
  .page-head { flex-direction: column; gap: .2rem; }
  .page-date { padding: 0; }
  h1 { font-size: 1.55rem; }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick, .box.two, form.process, .actform { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stepper.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2.even, .vdecide { grid-template-columns: 1fr; }
  .vplayer { min-height: 240px; }
  .acc-title { align-items: flex-start; }
  .f-date { width: 100%; } .f-date input { flex: 1; min-width: 0; }
  .filters select { flex: 1 1 40%; }
  table.inbox th:nth-child(6), table.inbox td:nth-child(6) { display: none; }
  table.inbox th:nth-child(3), table.inbox td:nth-child(3), table.inbox th:nth-child(7), table.inbox td:nth-child(7), table.inbox th:nth-child(8), table.inbox td:nth-child(8) { display: none; }
}
/* Virals · Drive 연결 · 10_Sources 트리 */
.notice.warn { background: #fff6e6; border-color: #f1d29a; color: #8a5a00; }
ol.steps { padding-left: 1.2rem; } ol.steps li { margin: .35rem 0; }
form.inline + form.inline { margin-left: .4rem; } section form.inline { display: inline-flex; }
.vtree { font-size: .92rem; max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; }
.vtree-d > summary { cursor: pointer; padding: .3rem 0; list-style: none; display: flex; align-items: center; gap: .35rem; }
.vtree-d > summary::-webkit-details-marker { display: none; }
.vtree-d > summary::before { content: "▸"; color: var(--muted); width: .8rem; }
.vtree-d[open] > summary::before { content: "▾"; }
.vtree-in { padding-left: 1.1rem; border-left: 1px dashed var(--line); margin-left: .35rem; }
.vtree-f { display: grid; grid-template-columns: 1fr auto auto auto; gap: .6rem; align-items: center; padding: .22rem 0 .22rem 1.15rem; border-bottom: 1px solid #f1f3f7; }
.vtree-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtree-f .tag { text-decoration: none !important; }
@media (max-width: 640px) { .vtree-f { grid-template-columns: 1fr auto; } .vtree-f > span.small { display: none; } }
.vtree-img { width: 28px; height: 28px; object-fit: cover; border-radius: 4px; vertical-align: middle; background: #e8edf4; }
.small-tree { max-height: 45vh; }
.vmissing { margin: .8rem 0 0; } .vmissing > summary { cursor: pointer; padding: .3rem 0; }
.tag.red { background: var(--red); color: #fff; }

/* --- 마케팅 · 네이버 광고(2026-10-18) -------------------------------------------------------------- */
.ads-tabs nav.tabs a { display: inline-flex; align-items: center; gap: .3rem; }
.ads-tabs nav.tabs .ico { width: 1em; height: 1em; }
.ads-period { display: flex; gap: .25rem; align-items: center; }
.ads-period a { padding: .2rem .65rem; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-size: .88rem; text-decoration: none !important; background: #fff; }
.ads-period a.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.ads-period { flex-wrap: wrap; }
/* 광고비 한눈에 · 운영 일지 */
.ads-month { font-size: 1.05rem; margin: .2rem 0 .6rem; }
.ads-spend tr.hi td { background: #fff8e6; }
.ads-journal { list-style: none; margin: .4rem 0 0; padding: 0; }
.ads-journal li { padding: .45rem 0; border-top: 1px solid var(--line); line-height: 1.45; }
.ads-journal li:first-child { border-top: 0; }
.ads-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.ads-head p { margin: 0; }
.ads-chart { width: 100%; height: 130px; display: block; }
.ads-chart .bar { fill: var(--blue); }
.ads-chart .bar.empty { fill: #dfe5ee; }
.ads-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: .2rem; }
.ads-hbar { width: 160px; height: 10px; display: inline-block; vertical-align: middle; }
.ads-hbar .bg { fill: #eef1f6; } .ads-hbar .fg { fill: var(--accent); }
.ads-issues { list-style: none; margin: 0; padding: 0; }
.ads-issues li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; border-top: 1px solid var(--line); }
.ads-issues li:first-child { border-top: 0; }
.ads-issues b { display: block; }
.ads-issues a.go { margin-left: auto; white-space: nowrap; font-size: .88rem; }
.ads-plan { border-left: 3px dashed var(--violet); }
.ads-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.ads td, table.ads th { padding: .4rem .5rem; }
table.ads th { white-space: nowrap; }
table.ads tr.sub td { background: #fafbfd; font-size: .9rem; }
table.ads tr.off td { color: var(--muted); }
.ads-inline { display: inline-flex; gap: .3rem; align-items: center; margin: 0; }
.ads-inline select, .ads-inline input { width: auto; margin: 0; padding: .2rem .4rem; font-size: .85rem; }
.ads-inline input.n { width: 6.5rem; }
.ads-check { list-style: none; padding: 0; margin: .3rem 0; }
.ads-check li { font-size: .9rem; padding: .1rem 0; }
.ads-check .block { color: var(--red); } .ads-check .warn { color: #c2620a; } .ads-check .ok { color: var(--green); }
.ads-lock { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 7px; background: #eef1f6; color: var(--muted); font-size: .82rem; cursor: not-allowed; }
.ads-md { white-space: pre-wrap; font-size: .92rem; background: #fafbfd; border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; }
.ads-ad { border: 1px solid var(--line); border-radius: 9px; padding: .6rem .8rem; margin: .4rem 0; }
.ads-ad .t { color: #1a0dab; font-weight: 700; } .ads-ad .u { color: #006621; font-size: .8rem; } .ads-ad .d { font-size: .9rem; }
details.ads-more > summary { cursor: pointer; color: var(--blue); font-size: .9rem; }
.kpis.ads-kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
table.ads td.kw, table.ads td:first-child { min-width: 9rem; }
/* Virals · Drive 진행 막대 · 영상 받는 중 · 썸네일 자리표시 */
.vsync { display: none; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .55rem .9rem; margin: 0 0 .8rem; border: 1px solid #cfe1fb; background: #f3f8ff; border-radius: 10px; font-size: .9rem; }
.vsync.on { display: flex; }
.vsync-txt { flex: 1 1 16rem; } .vsync-count { color: var(--muted); }
.vsync-bar { position: relative; flex: 1 1 12rem; height: 8px; background: #dde9fb; border-radius: 4px; overflow: hidden; }
.vsync-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--blue); border-radius: 4px; transition: width .4s ease; }
.vsync-bar.indet i { width: 35% !important; animation: vind 1.2s ease-in-out infinite; }
@keyframes vind { 0% { left: -35%; } 100% { left: 100%; } }
.vplayer { position: relative; }
.vload { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; background: rgba(13, 22, 38, .72); color: #fff; border-radius: inherit; pointer-events: none; font-size: .92rem; }
.vload.on { display: flex; }
.vload-bar { width: 60%; height: 6px; background: rgba(255, 255, 255, .25); border-radius: 3px; overflow: hidden; } .vload-bar i { display: block; height: 100%; width: 0; background: #fff; transition: width .3s; }
.spin { width: 28px; height: 28px; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: vspin .8s linear infinite; }
@keyframes vspin { to { transform: rotate(360deg); } }
img.vthumb:not(.loaded) { background: linear-gradient(90deg, #e8edf4 0%, #f5f7fb 50%, #e8edf4 100%); background-size: 200% 100%; animation: vshim 1.2s linear infinite; }
@keyframes vshim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .vsync-bar.indet i, .spin, img.vthumb:not(.loaded) { animation: none; } }

/* --- 광고 작업 공간(UX v2): 기획실 · 배치실 · 통합 성과 ------------------------------------------------ */
.ads-ws { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .7rem; }
.ads-ws a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none !important; }
.ads-ws a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ads-ws a:hover:not(.on) { border-color: var(--blue); }
.ads-lead { margin: 0 0 .8rem; }
.studio { display: grid; grid-template-columns: 230px minmax(0, 1fr) 370px; gap: 1rem; align-items: start; }
.studio-side { position: sticky; top: .6rem; max-height: calc(100vh - 1.2rem); overflow-y: auto; padding: .8rem .8rem .6rem; }
.studio-find { display: flex; flex-wrap: wrap; gap: .3rem; }
.studio-find input, .studio-find select { width: 100%; margin: 0; padding: .3rem .45rem; font-size: .88rem; }
.studio-maker > summary { cursor: pointer; font-weight: 700; padding: .35rem .2rem; border-top: 1px solid var(--line); }
.studio-maker ul { list-style: none; margin: 0 0 .4rem; padding: 0; }
.studio-maker li a { display: block; padding: .3rem .45rem; border-radius: 8px; color: var(--ink); font-size: .9rem; text-decoration: none !important; }
.studio-maker li a:hover { background: #f2f5fa; }
.studio-maker li a.on { background: var(--blue-bg); box-shadow: inset 3px 0 0 var(--blue); }
.studio-maker li a .nm { font-weight: 600; }
.studio-maker li a em { display: block; font-style: normal; font-size: .76rem; color: var(--muted); }
.studio-main { min-width: 0; }
.studio-panel { position: sticky; top: .6rem; max-height: calc(100vh - 1.2rem); overflow-y: auto; }
.studio-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .5rem .9rem; margin: .3rem 0 .6rem; }
.studio-facts > div { font-size: .92rem; word-break: keep-all; overflow-wrap: anywhere; }
.studio-facts small { display: block; color: var(--muted); font-size: .78rem; }
.studio-add > summary, .studio-edit > summary { cursor: pointer; color: var(--blue); font-size: .9rem; margin: .4rem 0; display: inline-flex; align-items: center; gap: .3rem; }
.edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: .35rem .8rem; margin: .3rem 0 .6rem; }
.edit-grid .ads-inline label { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; }
form.stack { display: flex; flex-direction: column; gap: .35rem; max-width: 640px; }
form.stack label { font-size: .86rem; display: flex; flex-direction: column; gap: .15rem; }
form.stack input, form.stack textarea, form.stack select { margin: 0; }
table.studio-kw td { vertical-align: top; }
table.ads tr.on td { background: #eef4ff; }
table.ads tr.hold td { color: var(--muted); }
table.ads tr.hold td a { color: var(--muted); }
a.b { font-weight: 700; color: var(--ink); }
.copy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .6rem; }
.ads-ad.copy { margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.ads-ad.copy.on, .ads-ad.sm.on { border-color: var(--violet); box-shadow: inset 3px 0 0 var(--violet); }
.ads-ad .tags { margin: .2rem 0 0; }
.ads-ad .pick { display: flex; align-items: center; gap: .3rem; }
.ads-ad.sm { padding: .45rem .6rem; }
.ads-ad.sm .t { font-size: .95rem; }
.chip { display: inline-flex; align-items: center; gap: .2rem; font-size: .78rem; padding: .05rem .45rem; margin: .1rem .15rem .1rem 0; border-radius: 999px; background: #eef1f5; color: var(--ink); }
.chip.violet { background: var(--violet-bg); color: var(--violet); }
.chip button.link { padding: 0 .1rem; font-size: .8rem; line-height: 1; }
.kw-panel h4 { margin: .9rem 0 .35rem; }
table.rank td.in { background: var(--green-bg); color: var(--green); font-weight: 600; }
.cnt { font-variant-numeric: tabular-nums; }
.cnt.bad { color: var(--red); }
label.chk { display: inline-flex; align-items: center; gap: .2rem; font-size: .85rem; }
.basket-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: 1rem -.2rem 0; padding: .6rem .9rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 -4px 14px rgba(16, 24, 40, .08); }
.basket-bar .bb-count { display: inline-flex; align-items: center; gap: .35rem; }
.basket-bar .bb-list { flex-basis: 100%; }
.basket-bar .bb-prod { padding: .3rem 0; border-top: 1px solid var(--line); }
.ws3 { display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; gap: 1rem; align-items: start; }
.ws3 > aside { position: sticky; top: .6rem; max-height: calc(100vh - 1.2rem); overflow-y: auto; }
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-list li a { display: block; padding: .35rem .5rem; border-radius: 8px; color: var(--ink); text-decoration: none !important; font-size: .9rem; }
.plan-list li a.on { background: var(--blue-bg); box-shadow: inset 3px 0 0 var(--blue); }
.plan-list li a em { display: block; font-style: normal; font-size: .76rem; color: var(--muted); }
.plan-list li.arch a { color: var(--muted); }
.group-card { border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; margin: 0 0 .9rem; background: #fcfdff; }
.group-card > .gh { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin-bottom: .4rem; }
.group-card > .gh h3 { margin: 0; font-size: 1.05rem; }
.checks { list-style: none; margin: .3rem 0; padding: 0; font-size: .86rem; }
.checks li { padding: .12rem 0 .12rem 1.1rem; position: relative; }
.checks li::before { position: absolute; left: 0; }
.checks li.block { color: var(--red); } .checks li.block::before { content: "✕"; }
.checks li.warn { color: #b25600; } .checks li.warn::before { content: "!"; font-weight: 800; left: .2rem; }
.checks li.info { color: var(--muted); } .checks li.info::before { content: "·"; font-weight: 800; left: .25rem; }
.banner { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .9rem; border-radius: 12px; margin: 0 0 1rem; background: var(--orange-bg); color: #8a4300; border: 1px solid #f6d3ad; }
.banner.blue { background: var(--blue-bg); color: #164a9e; border-color: #c9dbfb; }
.rsa-list { list-style: none; margin: .2rem 0 .5rem; padding: 0; }
.rsa-list li { display: flex; align-items: center; gap: .4rem; padding: .15rem 0; font-size: .9rem; border-bottom: 1px dashed var(--line); }
.rsa-list li .w { margin-left: auto; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rsa-list li .w.bad { color: var(--red); font-weight: 700; }
.mini td, .mini th { font-size: .84rem; }
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; margin: .3rem 0 .6rem; }
.funnel > div { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; background: #fff; }
.funnel small { display: block; color: var(--muted); font-size: .78rem; }
.funnel b { font-size: 1.2rem; }
.funnel b.na { font-size: .95rem; color: var(--muted); font-weight: 600; }
@media (max-width: 1450px) {
  .studio { grid-template-columns: 220px minmax(0, 1fr); }
  .studio-panel { grid-column: 1 / -1; position: static; max-height: none; }
  .ws3 { grid-template-columns: 240px minmax(0, 1fr); }
  .ws3 > aside.right { grid-column: 1 / -1; position: static; max-height: none; }
}
@media (max-width: 900px) {
  .studio, .ws3 { grid-template-columns: minmax(0, 1fr); }
  .studio-side, .ws3 > aside { position: static; max-height: none; }
}
.ads-inline.wrap { flex-wrap: wrap; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.ch-row { padding: .45rem 0; border-top: 1px solid var(--line); }
.ch-row:first-of-type { border-top: 0; }
.ch-row p { margin: .2rem 0; }
@media (max-width: 1300px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }
table.studio-kw td.pickc, table.studio-kw th.pickc { min-width: 0; width: 1.8rem; padding-right: 0; }
table.studio-kw td.kwc { min-width: 15rem; }
table.studio-kw td.kwc a.kwlink { font-weight: 600; }
table.studio-kw th { vertical-align: bottom; line-height: 1.25; }
table.studio-kw b.hi { color: var(--green); }
.funnel.tight { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.funnel b.sm { font-size: 1rem; }
.basket-bar .bb-list { flex-basis: auto; }
.basket-bar .bb-list[open] { flex-basis: 100%; }
table.nkw td.kwc { min-width: 9rem; }
table.nkw input.bid { width: 4.6rem; }
table.nkw td.acts { white-space: nowrap; }
table.nkw details.mv { display: inline-block; }
table.nkw details.mv > summary { cursor: pointer; color: var(--blue); display: inline; }
.nowrap { white-space: nowrap; }
a.sorth { color: inherit; text-decoration: none; white-space: nowrap; }
a.sorth:hover { color: var(--blue); text-decoration: underline; }
a.sorth.on { color: var(--blue); }
details.fold > summary { cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2::before { content: "▾"; color: var(--muted); font-size: .9em; margin-right: .1rem; }
details.fold:not([open]) > summary h2::before { content: "▸"; }
details.fold:not([open]) > summary { margin-bottom: 0; }
td.adcell { max-width: 34rem; }
td.adcell .ads-ad .u { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.tree { border-top: 1px solid var(--line); padding: .35rem 0; }
details.tree > summary { cursor: pointer; padding: .2rem .1rem; }
details.tree > summary:hover { background: #f6f8fc; }
details.tree.sub { margin-left: 1.1rem; border-top: 1px dashed var(--line); }
.warn-text { color: #b25600; font-weight: 600; }

/* ChatGPT 광고 계정 사본(읽기 전용) */
.banner.ok { background: #eef8f1; color: #1d5e36; border-color: #b7dfc3; }
.banner.ok svg { color: #1f8a4c; }
h2.sec { font-size: 1rem; margin: 1.2rem 0 .6rem; display: flex; align-items: center; gap: .4rem; }
details.card.fold > summary .card-head { margin-bottom: 0; }
/* 통합 성과 — 진짜 방문(참여 방문 1번당 광고비) */
.qfunnel > div .small { display: block; margin-top: .1rem; }
.qfunnel > div.hi { border-color: var(--blue); background: var(--blue-bg); }
#quality h3.sub { font-size: .95rem; margin: .9rem 0 .35rem; }
#quality h3.sub .small { font-weight: 400; margin-left: .4rem; }
#quality tr.paid td:first-child { font-weight: 600; }
/* 공공 레이더(2026-10-23) */
.radar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; align-items: start; }
.radar-card.tier-A { border-left: 4px solid var(--green); }
.radar-card.tier-B { border-left: 4px solid var(--blue); }
.radar-card form.inline { margin-top: .5rem; }

/* 메뉴 버튼(휴대폰 · 태블릿 세로에서만 보임) */
.navt { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.side-top { display: block; }
.nav-btn { display: none; align-items: center; gap: .5rem; padding: .55rem .9rem; min-height: 44px; border-radius: 10px; background: var(--navy2); color: #fff; font-size: 1.05rem; font-weight: 600; cursor: pointer; user-select: none; }
.burger { display: inline-flex; flex-direction: column; gap: 5px; } .burger i { display: block; width: 20px; height: 2px; background: #fff; border-radius: 1px; transition: transform .2s, opacity .2s; }
.navt:focus-visible ~ .side .nav-btn { outline: 3px solid var(--accent); }
/* 휴대폰: 글씨 · 버튼 크게, 표는 옆으로 밀어서 보기(머리글이 세로로 꺾이지 않게) */
@media (max-width: 820px) {
  input, select, textarea { font-size: 16px; }                     /* iPhone이 입력할 때 화면을 확대하지 않게 */
  button, .button, .btn { min-height: 44px; }
  .btn.sm, button.sm { min-height: 38px; }
  .content table:not(.kv) th { white-space: nowrap; }
  .content table:not(.kv) td:first-child { min-width: 7.5em; }
  .content table:not(.kv) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .content .table-wrap > table:not(.kv) { display: table; }
  .card { padding: 1rem .9rem; }
}
@media (max-width: 480px) {
  html { font-size: 17px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar .search input { font-size: 16px; }
}
@media (max-width: 820px) {
  .side-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
  .nav-btn { display: inline-flex; }
}
