/* ==========================================================
   PC 구매가이드 · 조립 포트폴리오 (고객 화면 + 관리자 작성 화면)
   style.css 의 색 · 단추를 그대로 쓰고, 이 게시판에만 필요한 모양을 더함
   ========================================================== */
.ct-page{background:#fafaf8}
.ct-wrap{max-width:1120px;margin:0 auto;padding:18px 24px 60px}
.ct-crumb{display:flex;gap:7px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin:4px 0 18px}
.ct-crumb a{text-decoration:none;color:var(--ink-2)}.ct-crumb a:hover{color:var(--ink);text-decoration:underline}
.ct-eyebrow{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.14em;color:var(--blue);text-transform:uppercase}
.ct-preview{background:#fff4d6;color:#7a5200;text-align:center;font-size:14px;font-weight:600;padding:9px 16px;border-bottom:1px solid #f0dca6}
.dim{color:var(--muted)}

/* ---------- 목록 머리 ---------- */
.ct-hero-head{background:#fff;border:1px solid var(--line);border-radius:22px;padding:42px 44px;margin-bottom:22px;position:relative;overflow:hidden}
.ct-hero-head::after{content:"";position:absolute;right:-60px;top:-60px;width:260px;height:260px;border-radius:50%;
  background:radial-gradient(circle,rgba(63,116,196,.14),rgba(63,116,196,0) 70%)}
.ct-hero-head h1{margin:0 0 10px;font-size:38px;letter-spacing:-.03em;line-height:1.15}
.ct-lead{margin:0;color:var(--ink-2);font-size:16px;line-height:1.7;max-width:620px}
.ct-hero-head.dark{background:#17181b;border-color:#17181b;color:#fff}
.ct-hero-head.dark .ct-lead{color:#c6c8cc}.ct-hero-head.dark .ct-eyebrow{color:#ffb547}
.ct-hero-head.dark::after{background:radial-gradient(circle,rgba(245,150,15,.25),rgba(245,150,15,0) 70%)}

.ct-tools{display:flex;flex-direction:column;gap:12px;margin-bottom:18px}
.ct-chiprow{display:flex;gap:12px;align-items:flex-start}
.ct-chiprow .lab{flex:none;width:64px;font-size:13px;font-weight:700;color:var(--ink-2);padding-top:7px}
.ct-chips{display:flex;gap:6px;flex-wrap:wrap}
.ct-chips a{text-decoration:none;font-size:14px;font-weight:600;padding:7px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--ink-2)}
.ct-chips.sm a{font-size:13px;padding:5px 12px}
.ct-chips a:hover{border-color:#b9bcc0;color:var(--ink)}
.ct-chips a.on{background:var(--ink);border-color:var(--ink);color:#fff}
.ct-search{display:flex;gap:8px}
.ct-search input[type=search]{flex:1;min-width:0;font:inherit;font-size:14px;padding:9px 14px;border:1px solid #cfd1d4;border-radius:10px;background:#fff}
.ct-search select{font:inherit;font-size:14px;padding:8px 10px;border:1px solid #cfd1d4;border-radius:10px;background:#fff}
.ct-count{font-size:13px;margin:0 0 10px}

/* ---------- 카드 ---------- */
.ct-grid{display:grid;gap:20px}
.ct-grid.g3{grid-template-columns:repeat(3,1fr)}
.ct-card{display:flex;flex-direction:column;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:transform .15s,box-shadow .15s}
.ct-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(0,0,0,.09)}
.ct-thumb{position:relative;display:block;background:#ecebe7;overflow:hidden}
.ct-thumb.r169{aspect-ratio:16/9}.ct-thumb.r43{aspect-ratio:4/3}
.ct-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.ct-card:hover .ct-thumb img{transform:scale(1.04)}
.ct-thumb .ph{position:absolute;inset:0;display:grid;place-items:center;font-style:normal;font-weight:800;letter-spacing:.08em;color:#b3b2ac;font-size:15px}
.ct-thumb .pin{position:absolute;left:12px;top:12px;font-style:normal;font-size:12px;font-weight:800;background:var(--red);color:#fff;padding:3px 9px;border-radius:999px}
.ct-card-b{display:flex;flex-direction:column;gap:6px;padding:16px 18px 18px;flex:1}
.ct-cat{font-size:12px;font-weight:800;color:var(--blue);letter-spacing:.02em}
.ct-card b{font-size:17px;line-height:1.4;letter-spacing:-.01em}
.ct-sum{font-size:14px;color:var(--ink-2);line-height:1.55}
.ct-dt{font-size:12.5px;color:var(--muted);margin-top:auto;padding-top:4px}
.ct-bcard .ct-cat{color:var(--orange)}
.ct-spec{display:flex;flex-direction:column;font-size:13.5px;color:var(--ink-2);border-top:1px dashed var(--line);padding-top:8px;margin-top:2px}
.ct-spec span:first-child{font-weight:700;color:var(--ink)}
.ct-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:6px}
.ct-foot .ct-dt{margin:0;padding:0}
.ct-chipline{display:flex;gap:5px;flex-wrap:wrap}
.ct-chipline i{font-style:normal;font-size:11.5px;font-weight:700;letter-spacing:.03em;padding:2px 8px;border-radius:6px;background:#f1f0ec;color:var(--ink-2)}
.ct-chipline.big i{font-size:12.5px;padding:4px 10px}

.ct-pager{margin-top:28px}
.ct-pager a,.ct-pager b{min-width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);background:#fff;border-radius:9px;text-decoration:none;font-size:14px;font-weight:600}
.ct-pager b{background:var(--ink);border-color:var(--ink);color:#fff}
.ct-empty{background:#fff;border:1px dashed #cfd1d4;border-radius:18px;padding:54px 20px;text-align:center}
.ct-empty h1,.ct-empty h2{margin:0 0 6px;font-size:21px}

/* ---------- 상담 안내 상자 ---------- */
.ct-cta{display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#17181b;color:#fff;border-radius:20px;padding:28px 32px;margin-top:40px}
.ct-cta h2{margin:0 0 4px;font-size:21px}.ct-cta p{margin:0;color:#c6c8cc;font-size:14.5px}
.ct-cta-b{display:flex;gap:8px;flex-wrap:wrap}
.ct-cta .btn.primary{background:#fff;color:var(--ink);border-color:#fff}
.ct-cta .btn{background:transparent;color:#fff;border-color:#55575a}
.ct-cta .btn:hover{background:rgba(255,255,255,.08)}
.ct-cta .btn.ghost{border-color:transparent;color:#c6c8cc}

/* ---------- 구매가이드 상세 ---------- */
.ct-a-head{max-width:820px;margin:10px auto 22px;text-align:center}
.ct-a-head h1,.ct-p-head h1{margin:0 0 10px;font-size:36px;line-height:1.25;letter-spacing:-.03em}
.ct-sub{margin:0 0 16px;color:var(--ink-2);font-size:17.5px}
.ct-meta{display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:center;font-size:13.5px;color:var(--muted)}
.ct-author{display:inline-flex;align-items:center;gap:7px;color:var(--ink);font-weight:700}
.ct-author i{font-style:normal;width:26px;height:26px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:12px}
.ct-share{display:inline-flex;align-items:center;gap:5px;font:inherit;font-size:13px;font-weight:600;background:#fff;border:1px solid var(--line);border-radius:999px;padding:5px 12px;cursor:pointer;color:var(--ink-2)}
.ct-share svg{width:14px;height:14px}.ct-share:hover{border-color:#b9bcc0;color:var(--ink)}
.ct-hero{margin:0 auto 26px;max-width:1000px;border-radius:20px;overflow:hidden;background:#ecebe7}
.ct-hero img{display:block;width:100%;max-height:560px;object-fit:cover}
.ct-a-grid{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:40px;max-width:1060px;margin:0 auto;align-items:start}
.ct-a-grid:not(:has(.ct-side)){grid-template-columns:minmax(0,760px);justify-content:center}
.ct-a-main{min-width:0}
.ct-side{position:sticky;top:18px}
.ct-toc{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px}
.ct-toc h2{margin:0 0 8px;font-size:14px;letter-spacing:.04em;color:var(--muted)}
.ct-toc ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px;counter-reset:t}
.ct-toc li a{display:block;text-decoration:none;font-size:14px;padding:5px 6px;border-radius:7px;color:var(--ink-2);line-height:1.4}
.ct-toc li a:hover{background:#f4f4f2;color:var(--ink)}
.ct-toc li.lv-h3 a{padding-left:18px;font-size:13px}
.ct-toc-in{display:none;margin-bottom:22px}
.ct-summary{background:#eef3fb;border-left:4px solid var(--blue);border-radius:0 14px 14px 0;padding:18px 22px;margin-bottom:26px}
.ct-summary h2{margin:0 0 6px;font-size:14px;color:var(--blue);letter-spacing:.03em}
.ct-summary p{margin:0;font-size:16px;line-height:1.75}

.ct-body{font-size:16.5px;line-height:1.85;color:#2a2c30}
.ct-body > :first-child{margin-top:0}
.ct-body h2{font-size:25px;line-height:1.35;letter-spacing:-.02em;margin:46px 0 14px;padding-top:6px;scroll-margin-top:16px;color:var(--ink)}
.ct-body h3{font-size:20px;margin:32px 0 10px;scroll-margin-top:16px;color:var(--ink)}
.ct-body h4{font-size:17px;margin:24px 0 8px}
.ct-body p{margin:0 0 16px}
.ct-body img{display:block;max-width:100%;height:auto;border-radius:12px;margin:22px auto}
.ct-body figure{margin:24px 0}.ct-body figcaption{text-align:center;font-size:13.5px;color:var(--muted);margin-top:-12px}
.ct-body a{color:var(--blue)}
.ct-body ul,.ct-body ol{padding-left:22px;margin:0 0 16px}.ct-body li{margin:4px 0}
.ct-body blockquote{margin:22px 0;padding:14px 20px;background:#f4f4f2;border-left:4px solid var(--ink);border-radius:0 12px 12px 0;color:var(--ink-2)}
.ct-body blockquote p:last-child{margin:0}
.ct-body table{width:100%;border-collapse:collapse;margin:22px 0;font-size:15px;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px var(--line)}
.ct-body th,.ct-body td{padding:11px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.ct-body thead th,.ct-body tr:first-child th{background:#1f2124;color:#fff;font-weight:700}
.ct-body tr:last-child td{border-bottom:0}
.ct-body pre{background:#1f2124;color:#e8e8e8;padding:14px 16px;border-radius:12px;overflow:auto;font-size:14px}
.ct-body code{font-size:.92em}
.ct-body hr{border:0;border-top:1px solid var(--line);margin:34px 0}
.ct-body .note{background:#fff8e8;border:1px solid #f3dfa9;border-radius:12px;padding:14px 18px;margin:20px 0}
.ct-body mark{background:#fff0a8;padding:0 2px}
.ct-yt{position:relative;aspect-ratio:16/9;margin:24px 0;border-radius:14px;overflow:hidden;background:#000}
.ct-yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

.ct-sec{margin-top:44px}
.ct-sec > h2,.ct-related > h2{font-size:21px;margin:0 0 14px;letter-spacing:-.01em}
.ct-faq details{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:8px}
.ct-faq summary{cursor:pointer;list-style:none;padding:14px 18px;font-weight:700;display:flex;gap:10px}
.ct-faq summary::-webkit-details-marker{display:none}
.ct-faq summary span,.ct-faq div > span{color:var(--blue);font-weight:800}
.ct-faq div{display:flex;gap:10px;padding:0 18px 16px;color:var(--ink-2)}
.ct-faq div > span{color:var(--orange)}
.ct-faq div p{margin:0;line-height:1.7}
.ct-refs ul{margin:0;padding-left:18px;font-size:14px;color:var(--ink-2)}.ct-refs a{color:var(--blue)}
.ct-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:28px}
.ct-tags a{font-size:13px;text-decoration:none;color:var(--ink-2);background:#f1f0ec;border-radius:7px;padding:4px 10px}
.ct-mini-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.ct-mini{display:flex;gap:12px;align-items:center;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px}
.ct-mini img{width:84px;height:64px;object-fit:cover;border-radius:9px;flex:none;background:#ecebe7}
.ct-mini span{display:flex;flex-direction:column;gap:2px;min-width:0}
.ct-mini small{font-size:12px;color:var(--muted)}.ct-mini b{font-size:15px;line-height:1.35}.ct-mini em{font-style:normal;font-weight:800;color:var(--red)}
.ct-related{margin-top:56px}
.ct-back{text-align:center;margin-top:36px}
.ct-links{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.ct-links a{display:flex;flex-direction:column;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 16px;font-weight:700}
.ct-links small{color:var(--blue);font-size:12px}

/* ---------- 조립 사례 상세 ---------- */
.ct-p-head{margin:8px 0 22px}
.ct-p-head .ct-eyebrow{color:var(--orange)}
.ct-p-head .ct-meta{justify-content:flex-start}
.ct-gal{display:grid;grid-template-columns:2fr 1fr;gap:10px;border-radius:20px;overflow:hidden;margin-bottom:18px}
.ct-gal:not(:has(.ct-gal-side)){grid-template-columns:1fr}
.ct-gal a{display:block;position:relative;background:#ecebe7;overflow:hidden}
.ct-gal img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.ct-gal a:hover img{transform:scale(1.03)}
.ct-gal-main{aspect-ratio:4/3}
.ct-gal-side{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:10px}
.ct-gal-side a em{position:absolute;inset:0;display:grid;place-items:center;background:rgba(0,0,0,.5);color:#fff;font-style:normal;font-size:22px;font-weight:800}
.ct-keyspec{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:0 0 34px;background:#17181b;color:#fff;border-radius:18px;overflow:hidden}
.ct-keyspec div{padding:18px 22px;border-right:1px solid #2c2e33}.ct-keyspec div:last-child{border:0}
.ct-keyspec dt{font-size:11.5px;font-weight:800;letter-spacing:.14em;color:#ffb547;margin-bottom:5px}
.ct-keyspec dd{margin:0;font-size:16px;font-weight:700;line-height:1.35}
.ct-p-body{max-width:860px;margin:0 auto}
.ct-psec{padding:34px 0;border-top:1px solid var(--line)}
.ct-psec:first-child{border-top:0;padding-top:6px}
.ct-secno{margin:0 0 4px;font-size:12px;font-weight:800;letter-spacing:.14em;color:var(--orange)}
.ct-psec > h2{margin:0 0 18px;font-size:26px;letter-spacing:-.02em}
.ct-txt{font-size:16.5px;line-height:1.85;color:#2a2c30;margin:0 0 18px}
.ct-needs{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 22px}
.ct-needs h3,.ct-note h3,.ct-h3{margin:0 0 8px;font-size:15.5px}
.ct-needs ul{margin:0;padding-left:20px;line-height:1.8}
.ct-budget{margin:10px 0 0;font-size:14.5px;color:var(--ink-2)}
.ct-spectable,.ct-testtable{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 0 0 1px var(--line);font-size:15.5px}
.ct-spectable th,.ct-spectable td,.ct-testtable th,.ct-testtable td{padding:12px 18px;border-bottom:1px solid var(--line);text-align:left}
.ct-spectable tr:last-child > *,.ct-testtable tr:last-child > *{border-bottom:0}
.ct-spectable th{width:130px;background:#f7f7f5;color:var(--ink-2);font-weight:700;font-size:14px}
.ct-spectable .q{color:var(--muted);font-weight:700}
.ct-testtable thead th{background:#1f2124;color:#fff;font-size:13.5px}
.ct-testtable tbody th{font-weight:600}.ct-testtable small{display:block;font-weight:400;font-size:12.5px;color:var(--muted)}
.ct-testtable td b{font-size:18px}
.ct-small{font-size:13px;margin:8px 0 0}
.ct-reasons{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.ct-reasons article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px}
.ct-reasons small{font-size:12px;font-weight:800;color:var(--orange);letter-spacing:.06em}
.ct-reasons h3{margin:2px 0 8px;font-size:16.5px}
.ct-reasons p{margin:0;font-size:15px;line-height:1.75;color:var(--ink-2)}
.ct-note{margin-top:16px;background:#f7f7f5;border-radius:14px;padding:16px 20px}
.ct-note p{margin:0;line-height:1.75;color:var(--ink-2)}
.ct-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}
.ct-photos.big{grid-template-columns:repeat(2,1fr)}
.ct-photos figure{margin:0}
.ct-photos a{display:block;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:#ecebe7}
.ct-photos img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.ct-photos a:hover img{transform:scale(1.04)}
.ct-photos figcaption{font-size:13px;color:var(--ink-2);margin-top:6px}
.ct-h3{margin-top:24px!important}
.ct-checks{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.ct-checks li{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:10px 14px;font-weight:600;font-size:14.5px}
.ct-checks li i{font-style:normal;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:800;flex:none;background:#e7f3e8;color:var(--green)}
.ct-checks li small{margin-left:auto;font-size:12.5px;color:var(--muted);font-weight:600}
.ct-checks li.st-fail i{background:#fde7eb;color:var(--red)}
.ct-checks li.st-na i{background:#f1f0ec;color:var(--muted)}
.ct-quote{margin:0 0 18px;padding:22px 26px;background:#17181b;color:#fff;border-radius:16px;font-size:17px;line-height:1.8}
.ct-quote cite{display:block;margin-top:8px;font-style:normal;font-size:13.5px;color:#ffb547;font-weight:700}
.ct-rv{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.ct-rv div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 20px}
.ct-rv h3{margin:0 0 6px;font-size:15px}.ct-rv p{margin:0;font-size:15px;line-height:1.75;color:var(--ink-2)}

/* ---------- 사진 크게 보기 ---------- */
.ct-lb{position:fixed;inset:0;z-index:100;background:rgba(10,10,12,.92);display:flex;align-items:center;justify-content:center;padding:40px 70px}
.ct-lb figure{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center}
.ct-lb img{max-width:100%;max-height:calc(100vh - 120px);object-fit:contain;border-radius:8px}
.ct-lb figcaption{color:#ddd;font-size:14px;margin-top:10px;text-align:center}
.ct-lb button{position:absolute;background:rgba(255,255,255,.1);color:#fff;border:0;border-radius:50%;width:46px;height:46px;font-size:28px;line-height:1;cursor:pointer}
.ct-lb button:hover{background:rgba(255,255,255,.22)}
.ct-lb .x{top:16px;right:16px}.ct-lb .prev{left:14px;top:50%;transform:translateY(-50%)}.ct-lb .next{right:14px;top:50%;transform:translateY(-50%)}

/* ---------- 화면 폭 ---------- */
@media (max-width:980px){
  .ct-grid.g3{grid-template-columns:repeat(2,1fr)}
  .ct-a-grid{grid-template-columns:minmax(0,1fr)}
  .ct-side{display:none}.ct-toc-in{display:block}
  .ct-keyspec{grid-template-columns:repeat(2,1fr)}
  .ct-keyspec div:nth-child(2){border-right:0}.ct-keyspec div:nth-child(-n+2){border-bottom:1px solid #2c2e33}
}
@media (max-width:640px){
  .ct-wrap{padding:12px 16px 44px}
  .ct-hero-head{padding:28px 22px;border-radius:18px}.ct-hero-head h1{font-size:29px}.ct-lead{font-size:15px}
  .ct-grid.g3{grid-template-columns:1fr}
  .ct-chiprow{flex-direction:column;gap:6px}.ct-chiprow .lab{padding:0}
  .ct-chiprow,.ct-tools{min-width:0;max-width:100%}.ct-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;max-width:100%;min-width:0;scrollbar-width:none}
  .ct-chips a{flex:none}
  .ct-search{flex-wrap:wrap}.ct-search input[type=search]{flex-basis:100%}
  .ct-a-head h1,.ct-p-head h1{font-size:27px}.ct-sub{font-size:16px}
  .ct-body{font-size:16px}.ct-body h2{font-size:22px}
  .ct-gal{grid-template-columns:1fr;border-radius:14px}.ct-gal-side{grid-template-columns:repeat(4,1fr)}.ct-gal-side a{aspect-ratio:1}
  .ct-psec > h2{font-size:22px}
  .ct-reasons,.ct-rv,.ct-checks,.ct-photos.big,.ct-mini-grid,.ct-links{grid-template-columns:1fr}
  .ct-photos{grid-template-columns:repeat(2,1fr)}
  .ct-spectable th{width:96px;padding:11px 12px}.ct-spectable td{padding:11px 12px}
  .ct-cta{padding:22px;border-radius:16px}
  .ct-lb{padding:20px 8px}.ct-lb .prev,.ct-lb .next{display:none}
}

/* =====================================================================
   관리자 — 구매가이드 관리 · 조립 사례 관리
   ===================================================================== */
.ca-page{background:#f4f4f2}
.ca-wrap{max-width:1240px;margin:0 auto;padding:18px 20px 80px}
.ca-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:14px}
.ca-head h1{margin:4px 0 2px;font-size:24px;letter-spacing:-.02em}
.ca-head p{margin:0}
.ca-st{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:10px}
.ca-st button{font:inherit;font-size:14px;font-weight:700;border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 13px;cursor:pointer;color:var(--ink-2)}
.ca-st button b{margin-left:6px;font-size:12px;color:var(--muted)}
.ca-st button.on{background:var(--ink);border-color:var(--ink);color:#fff}.ca-st button.on b{color:#c6c8cc}
.ca-filter{display:flex;gap:8px;margin-bottom:10px}
.ca-filter select,.ca-filter input{font:inherit;font-size:14px;padding:8px 12px;border:1px solid #d5d4cf;border-radius:9px;background:#fff}
.ca-filter input{flex:1;min-width:0}
.ca-bulk{display:flex;gap:6px;align-items:center;flex-wrap:wrap;min-height:36px;margin-bottom:8px}
.btn.danger{color:#c8213a}.btn.danger:not(.ghost){border-color:#efb3be}
.btn.small{font-size:12.5px;padding:5px 10px}
.ca-table-wrap{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:auto}
.ca-table{width:100%;border-collapse:collapse;font-size:14px}
.ca-table th{text-align:left;font-size:12.5px;color:var(--muted);font-weight:700;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.ca-table td{padding:10px 12px;border-bottom:1px solid #efefec;vertical-align:middle}
.ca-table tr:last-child td{border-bottom:0}
.ca-table tr:hover td{background:#fbfbfa}
.ca-table .c-chk{width:36px}.ca-table .c-img{width:96px}
.ca-table .c-img img,.ca-table .noimg{width:84px;height:56px;border-radius:8px;object-fit:cover;display:grid;place-items:center;background:#f1f0ec;font-size:11px;color:var(--muted)}
.ca-table .c-title a{display:flex;align-items:center;gap:6px;text-decoration:none;flex-wrap:wrap}
.ca-table .c-title b{font-size:15px}.ca-table .c-title a:hover b{text-decoration:underline}
.ca-table .c-title .no{font-weight:800;color:var(--orange);font-size:12px}
.ca-table .c-title .pin{font-style:normal;font-size:11px;font-weight:800;background:var(--red);color:#fff;border-radius:5px;padding:1px 6px}
.ca-table td > .dim,.ca-table td > span{display:block}
.ca-table .c-st,.ca-table .c-dt,.ca-table .c-num{white-space:nowrap;width:1%}
.ca-table .c-act{white-space:nowrap;width:1%;text-align:right}
.ca-table .c-act .btn{padding:6px 10px;font-size:13px}
.ca-table .empty{text-align:center;color:var(--muted);padding:44px 10px}
.cst{display:inline-block;font-size:12px;font-weight:800;padding:3px 9px;border-radius:999px;background:#f1f0ec;color:var(--ink-2)}
.cst.st-pub{background:#e3f3e5;color:#256b2c}.cst.st-draft{background:#fff1d6;color:#8a5a00}
.cst.st-sched{background:#e5eefb;color:#2c5aa0}.cst.st-trash{background:#fde7eb;color:#a3122f}

/* 작성 화면 */
.ed-cols{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
.ed-side{position:sticky;top:66px;display:flex;flex-direction:column;gap:12px}
.ed-main,.ed-one{display:flex;flex-direction:column;gap:14px}
.ed-panel{display:flex;flex-direction:column;gap:12px;padding:20px}
.ed-panel > h3{font-size:16.5px}
.ed-panel h4{margin:0;font-size:14px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}
.row3{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:12px}
.chk.big{font-size:14px;font-weight:600;padding:10px 0;color:var(--ink)}
.grow{flex:1}
.fld.inline{flex-direction:row;align-items:center;gap:8px}
.fld.inline select{width:auto}
.img-row{display:flex;gap:14px;align-items:flex-start}
.img-box{flex:none;width:240px;aspect-ratio:16/9;border:2px dashed #cfd1d4;border-radius:12px;display:grid;place-items:center;text-align:center;font-size:13px;cursor:pointer;overflow:hidden;position:relative;background:#fafaf8}
body[data-kind=build] .img-box{aspect-ratio:4/3}
.img-box img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.img-box .btn{position:absolute;right:6px;bottom:6px;background:rgba(255,255,255,.92)}
.img-box.drag,.drop.drag,.rte.drag{border-color:var(--blue);background:#eef3fb}
.rte-bar{display:flex;flex-wrap:wrap;gap:3px;align-items:center;position:sticky;top:56px;z-index:5;background:#fff;border:1px solid var(--line);border-radius:10px;padding:5px}
.rte-bar button{font:inherit;font-size:13px;font-weight:600;border:0;background:none;border-radius:7px;padding:6px 9px;cursor:pointer;color:var(--ink-2)}
.rte-bar button:hover{background:#f1f0ec;color:var(--ink)}
.rte-bar i{width:1px;height:18px;background:var(--line);margin:0 3px}
.rte{min-height:420px;border:1px solid #d5d4cf;border-radius:12px;padding:20px 24px;background:#fff;outline:none;font-size:16px}
.rte:focus{border-color:var(--ink);box-shadow:0 0 0 3px rgba(31,33,36,.07)}
.rte img{cursor:pointer;max-height:420px;width:auto}
.rte figure.yt{background:#1f2124;color:#fff;border-radius:10px;padding:26px;text-align:center;font-weight:700}
.rte table td,.rte table th{min-width:60px}
.rep{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.rep-row{display:grid;grid-template-columns:1fr auto;gap:6px;width:100%;background:#fafaf8;border:1px solid var(--line);border-radius:10px;padding:10px}
.rep-row input,.rep-row textarea{font:inherit;font-size:14px;padding:8px 10px;border:1px solid #d5d4cf;border-radius:8px;background:#fff;grid-column:1}
.rep-row .btn{grid-column:2;grid-row:1}
.rep-row.two{grid-template-columns:1fr 1.4fr auto}.rep-row.two input{grid-column:auto}.rep-row.two .btn{grid-column:3}
.rel-box{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.rel-col h4{margin:0 0 6px}
.rel-list{max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:6px}
.rel-i{display:flex;gap:7px;align-items:flex-start;font-size:13px;padding:4px 6px;border-radius:6px;cursor:pointer}
.rel-i:hover{background:#f4f4f2}.rel-i input{margin-top:3px}
.seo-prev{border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:#fff;display:flex;flex-direction:column;gap:3px;font-family:arial,sans-serif}
.seo-prev small{color:#4d5156;font-size:12.5px}.seo-prev b{color:#1a0dab;font-size:18px;font-weight:400}.seo-prev span{color:#4d5156;font-size:13.5px;line-height:1.5}
.pubmodes{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.pubmodes label{display:flex;flex-direction:column;gap:1px;border:1px solid var(--line);border-radius:10px;padding:9px 10px 9px 32px;position:relative;cursor:pointer;font-size:14px}
.pubmodes input{position:absolute;left:10px;top:12px}
.pubmodes small{color:var(--muted);font-size:11.5px}
.pubmodes label:has(input:checked){border-color:var(--ink);background:#fafaf8}
.ed-side .row2{grid-template-columns:1fr}
.ed-save{display:flex;gap:6px;flex-wrap:wrap}
.ed-side .ed-save{padding:12px}.ed-side .ed-save .btn{flex:1}
.ed-tip ul{margin:6px 0 0;padding-left:18px;color:var(--ink-2);line-height:1.7}
.ed-tabs{display:flex;gap:4px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:12px;padding:5px;margin-bottom:14px;position:sticky;top:56px;z-index:6}
.ed-tabs button{font:inherit;font-size:14px;font-weight:700;border:0;background:none;border-radius:8px;padding:8px 12px;cursor:pointer;color:var(--ink-2)}
.ed-tabs button.on{background:var(--ink);color:#fff}
.ed-foot{display:flex;gap:6px;align-items:center;position:sticky;bottom:10px;z-index:6;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.pills{display:flex;flex-wrap:wrap;gap:6px}
.pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:6px 13px;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer;background:#fff}
.pill:has(input:checked){background:var(--ink);border-color:var(--ink);color:#fff}
.pill input{display:none}
.tool-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ed-table{width:100%;border-collapse:collapse;font-size:14px}
.ed-table th{font-size:12.5px;color:var(--muted);text-align:left;padding:6px;border-bottom:1px solid var(--line)}
.ed-table td{padding:5px 6px;border-bottom:1px solid #efefec}
.ed-table input,.ed-table select{width:100%;font:inherit;font-size:14px;padding:7px 9px;border:1px solid #d5d4cf;border-radius:8px;background:#fff;box-sizing:border-box}
.ed-table .act{white-space:nowrap;text-align:right}.ed-table .act .btn{padding:6px 8px}
.ed-table .empty{text-align:center;color:var(--muted);padding:22px}
.rs-row{border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.rs-h{display:flex;gap:8px;align-items:center}
.rs-h b{flex:none;min-width:70px;font-size:13px;color:var(--orange)}
.rs-h input{flex:1;font:inherit;font-size:14px;padding:7px 9px;border:1px solid #d5d4cf;border-radius:8px}
.rs-row textarea{font:inherit;font-size:14px;padding:9px 11px;border:1px solid #d5d4cf;border-radius:8px;resize:vertical;line-height:1.6}
.drop{border:2px dashed #cfd1d4;border-radius:14px;padding:26px;text-align:center;display:flex;flex-direction:column;gap:4px;cursor:pointer;background:#fafaf8}
.ph-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.ph-card{border:1px solid var(--line);border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:6px;background:#fff}
.ph-card.cover{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink)}
.ph-img{position:relative;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:#f1f0ec}
.ph-img img{width:100%;height:100%;object-fit:cover}
.ph-img em{position:absolute;left:6px;top:6px;font-style:normal;font-size:11px;font-weight:800;background:var(--ink);color:#fff;border-radius:5px;padding:2px 7px}
.ph-card input,.ph-card select{font:inherit;font-size:13px;padding:6px 8px;border:1px solid #d5d4cf;border-radius:7px;background:#fff}
.ph-act{display:flex;gap:2px}.ph-act .btn{padding:5px 7px;font-size:12.5px}
.ck-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ck-row{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:7px 10px;font-size:14px;font-weight:600}
.seg{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;flex:none}
.seg label{font-size:12px;font-weight:700;padding:5px 8px;cursor:pointer;color:var(--muted);border-left:1px solid var(--line)}
.seg label:first-child{border-left:0}
.seg input{display:none}
.seg label:has(input:checked){background:#f1f0ec;color:var(--ink)}
.seg label.st-pass:has(input:checked){background:#e3f3e5;color:#256b2c}
.seg label.st-fail:has(input:checked){background:#fde7eb;color:#a3122f}
.pk-card{width:min(720px,100%)}
.pk-card .modal-body{padding:14px 18px;overflow:auto}
.pk-q{width:100%;font:inherit;font-size:14px;padding:9px 12px;border:1px solid #d5d4cf;border-radius:9px;margin-bottom:10px;box-sizing:border-box}
.pk-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.pk-list button{width:100%;text-align:left;font:inherit;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.pk-list button:hover{border-color:var(--ink)}
.pk-sub{font-size:12.5px;color:var(--ink-2)}
@media (max-width:1000px){
  .ed-cols{grid-template-columns:1fr}.ed-side{position:static}
  .rel-box{grid-template-columns:1fr}
}
@media (max-width:700px){
  .row2,.row3,.ck-list,.pubmodes{grid-template-columns:1fr}
  .img-row{flex-direction:column}.img-box{width:100%}
  .ca-table .c-img,.ca-table .c-num,.ca-table .c-dt{display:none}
  .ed-table.tests th:nth-child(4),.ed-table.tests td:nth-child(4),.ed-table.tests th:nth-child(5),.ed-table.tests td:nth-child(5){display:none}
}
