/* 명소클립 — 여행 안내 지도 같은 차분한 종이 + 짙은 청록(강조) + 노란 핀(포인트) */
:root {
  --paper: #F1F2EE;
  --card: #FCFCFA;
  --ink: #16211F;
  --dim: #56615E;
  --mute: #8C9592;
  --line: #DCE1DC;
  --accent: #0E6B5C;
  --accent-d: #0A5448;
  --pin: #F5B82E;
  --ok: #2F7A4E;
  --warn: #9A6410;
  --bad: #B3261E;
  --r: 14px;
  --shadow: 0 1px 0 rgba(22,33,31,.04), 0 12px 30px -20px rgba(22,33,31,.35);
  --sans: "Pretendard", "Pretendard Variable", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: var(--accent-d); }
.ttl { font-weight: 800; letter-spacing: -0.03em; font-size: clamp(24px, 3.6vw, 32px); line-height: 1.2; margin: 0 0 8px; }
.ttl.sm { font-size: 20px; margin-bottom: 12px; }
.ttl .sub { font-weight: 500; color: var(--dim); font-size: .7em; }
.lead { color: var(--dim); margin: 0 0 18px; }
.hint { color: var(--mute); font-size: 13px; font-weight: 400; }
.meta { font-size: 13.5px; color: var(--dim); margin: 4px 0; }
.center { text-align: center; }
.hidden { display: none; }
.mt6 { margin-top: 6px; }
.mini { display: block; font-size: 13px; color: var(--dim); margin: 10px 0 4px; }
ul.clean { list-style: none; padding: 0; margin: 0 0 8px; font-size: 14.5px; }
ul.clean li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
ul.clean li:last-child { border-bottom: 0; }
.core { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #FFF3D1; color: #7A5200; }

/* ── 머리 ── */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left)); background: rgba(241,242,238,.93); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .name { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand .model { font-size: 11px; /* 제목 20px 의 0.55 */ font-weight: 400; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); white-space: nowrap; }
.chip.warn { border-color: #E6C48A; background: #FBF1DD; }
.chip.bad { border-color: #E9B4AE; background: #FBEAE7; }
.chip.dim { color: var(--mute); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.on { background: var(--ok); } .dot.off { background: var(--bad); }
.out { font-size: 13px; color: var(--dim); text-decoration: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 22px 16px 120px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card.narrow { max-width: 440px; margin: 40px auto; }
.card.err { border-color: #E9B4AE; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.card.side { position: sticky; top: 76px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f3 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* ── 입력 ── */
.lbl { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 6px; }
.lbl .hint { margin-left: 6px; }
input[type=text], input[type=url], input[type=password], input[type=number], input:not([type]), textarea, select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,107,92,.12); }
input.pin { text-align: center; letter-spacing: .35em; font-size: 22px; padding: 16px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.inrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inrow > input, .inrow > select { flex: 1 1 140px; width: auto; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.check small { display: block; color: var(--mute); font-size: 12px; }
.check.sm { margin: 4px 0 0; font-size: 12.5px; white-space: nowrap; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 6px; font-weight: 700; font-size: 15px; border-right: 1px solid var(--line); transition: background .15s; }
.seg label:last-child span { border-right: 0; }
.seg small { font-weight: 400; font-size: 12px; color: var(--mute); }
.seg input:checked + span { background: var(--accent); color: #fff; }
.seg input:checked + span small { color: #CDE5DF; }
.seg input:focus-visible + span { outline: 2px solid var(--pin); outline-offset: -2px; }
.drop { position: relative; border: 1.5px dashed #B9C4BE; border-radius: 12px; background: #FBFCFA; padding: 14px; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: #EEF6F3; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropmsg { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--dim); font-size: 14px; padding: 8px; pointer-events: none; }
.dropmsg span { font-size: 12px; color: var(--mute); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.drop.has .thumbs { margin-top: 10px; }
.th { position: relative; z-index: 2; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #E6EAE6; }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(22,33,31,.75); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.fixed { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 18px; }
.tagx { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #E3EFEB; color: var(--accent-d); }
details summary { cursor: pointer; color: var(--dim); font-size: 14px; font-weight: 600; margin: 6px 0; }
details.staff { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }

/* ── 단추 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; font-size: 15px; padding: 11px 18px; border-radius: 11px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; transition: transform .08s, background .15s; }
.btn:hover { background: #EEF1EE; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-d); }
.btn.sm { font-size: 13px; padding: 7px 11px; border-radius: 9px; }
.btn.bad { color: var(--bad); border-color: #E3B7B2; }
.btn.wide { width: 100%; margin-top: 18px; }
.btn.big { padding: 15px 20px; font-size: 17px; }
form.inline { display: inline; }
.ic { font: inherit; font-size: 12.5px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--dim); }
.ic:hover { border-color: var(--ink); color: var(--ink); }
.alert { padding: 12px 14px; border-radius: 10px; background: #EEF1EE; border: 1px solid var(--line); margin: 12px 0; font-size: 14px; }
.alert.bad { background: #FBEAE7; border-color: #E9B4AE; color: #7A1C16; }
.alert.warn { background: #FBF3E0; border-color: #E6C48A; }
.alert ul.clean { margin: 6px 0 0; }
.badge { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #FBF1DD; color: var(--warn); }

/* ── 목록 ── */
.jobs { list-style: none; margin: 0; padding: 0; }
.jobs li a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.jobs li:last-child a { border-bottom: 0; }
.jobs .jt { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobs .jm { grid-column: 1; font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobs .st { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.st { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #E8ECE8; white-space: nowrap; }
.st-done { background: #E2EFE6; color: var(--ok); }
.st-error { background: #FBEAE7; color: var(--bad); }
.st-plan, .st-quote { background: #FFF3D1; color: #7A5200; }
.crumbs { display: flex; gap: 12px; align-items: center; margin: 0 0 14px; font-size: 14px; color: var(--dim); flex-wrap: wrap; }
.crumbs a { text-decoration: none; font-weight: 700; color: var(--ink); }

/* ── 단계·진행 ── */
.stages { display: flex; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; flex-wrap: wrap; }
.stages li { flex: 1 1 90px; text-align: center; font-size: 13px; padding: 8px 6px; border-radius: 9px; background: #ECEFEB; color: var(--mute); }
.stages li.on { background: var(--accent); color: #fff; font-weight: 700; }
.stages li.ok { background: #E2EFE6; color: var(--ok); }
.progress .bar { height: 10px; border-radius: 99px; background: #E3E8E4; overflow: hidden; margin: 14px 0 10px; }
.progress .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .6s ease; }
.progress .step { font-weight: 600; }

/* ── 사진 ── */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ph { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #E6EAE6; }
.ph figcaption { padding: 8px 10px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.ph figcaption small { color: var(--mute); }
.addph { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.addph input[type=file] { max-width: 280px; font-size: 13px; }

/* ── 기획 편집 ── */
.h3 { font-size: 16px; margin: 22px 0 10px; }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.el { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #FBFCFA; }
.el.logo { border-color: #EBCB7E; background: #FFFBEF; }
.el .pv { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; background: #E6EAE6; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--mute); font-size: 13px; }
.el .pv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.el .ef { display: flex; flex-direction: column; gap: 6px; }
.el .ef b { font-size: 13px; white-space: nowrap; }
.el textarea, .el input, .el select { font-size: 13.5px; padding: 7px 9px; }
.el .opts > input { flex: 1 1 100px; }
.cutwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.cuts { width: 100%; border-collapse: collapse; min-width: 1080px; font-size: 13.5px; }
.cuts th { text-align: left; font-size: 12px; color: var(--dim); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--line); background: #F6F8F5; position: sticky; top: 0; }
.cuts td { vertical-align: top; padding: 6px; border-bottom: 1px solid var(--line); }
.cuts tr:last-child td { border-bottom: 0; }
.cuts td.n { font-weight: 800; font-size: 16px; width: 54px; }
.cuts td.n .tm { display: block; font-size: 11px; font-weight: 400; color: var(--mute); }
.cuts input, .cuts select, .cuts textarea { font-size: 13px; padding: 6px 7px; }
.cuts .c_sec { width: 66px; }
.cuts .c_img { width: 96px; }
.cuts .c_cam { width: 150px; }
.cuts .c_moving { margin-top: 4px; }
.dock { position: sticky; bottom: 0; margin: 18px -24px -24px; padding: 14px 24px; border-top: 1px solid var(--line); background: rgba(252,252,250,.97); backdrop-filter: blur(6px); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-radius: 0 0 var(--r) var(--r); }
.dock .est { display: flex; flex-direction: column; font-size: 14px; }
.dock .est b { font-size: 19px; }
.dock .est small { color: var(--mute); font-size: 12px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dock .acts { margin: 0; }

/* ── 견적·결과 ── */
pre.prompt { white-space: pre-wrap; word-break: keep-all; background: #F6F8F5; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 13.5px; line-height: 1.6; max-height: 520px; overflow: auto; }
.quote { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: #FFF6DC; border: 1px solid #EBCB7E; margin: 12px 0; }
.quote b { font-size: 26px; letter-spacing: -0.02em; }
.quote small { color: var(--dim); }
form.go { margin-top: 14px; padding-top: 6px; border-top: 1px dashed var(--line); }
.result { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.player { background: #111; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; display: block; background: #111; }
.danger { display: flex; gap: 8px; flex-wrap: wrap; box-shadow: none; background: transparent; border-style: dashed; }

/* ── ✂️ 부분 수정 (2026-09-26 msg 6288·6292) ── */
.cuts .ic.ai { display: block; margin-top: 6px; font-weight: 800; color: var(--ink); }
.inrow.redo { margin-top: 6px; }
.inrow.redo .i_note { flex: 1 1 200px; font-size: 13px; padding: 6px 8px; }
table.cuts.slim { min-width: 760px; }
.cuts.slim .badge { position: static; display: inline-block; }
.cuts.slim form.go { margin-top: 0; border-top: 0; display: grid; gap: 6px; }
.edit .acts { margin-top: 12px; }

/* ── 🎬 카피·모션 (2026-09-26 msg 6301) ── */
.side { position: sticky; top: 76px; }
.importcard .btn { margin-top: 6px; }
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.versions figure { margin: 0; }
.versions figcaption { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin-bottom: 6px; font-size: 14px; }
.player.empty { display: flex; align-items: center; justify-content: center; padding: 18px; text-align: center; color: #C9D0CC; font-size: 13.5px; }
.player.prev { max-width: 720px; }
.badge.static { position: static; display: inline-block; }
.mstyles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ms { cursor: pointer; }
.ms input { position: absolute; opacity: 0; pointer-events: none; }
.ms span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; transition: border-color .15s, background .15s; }
.ms small { color: var(--mute); font-size: 12px; line-height: 1.4; }
.ms input:checked + span { border-color: var(--accent); background: #EEF6F3; }
.ms input:focus-visible + span { outline: 2px solid var(--pin); outline-offset: 1px; }
table.cuts.copyt { min-width: 1120px; }
.copyt .l_cut { width: 150px; }
.copyt .tm2 { margin-top: 4px; gap: 4px; flex-wrap: nowrap; }
.copyt .tm2 input[type=number] { width: 66px; flex: none; }
.copyt .l_text { font-weight: 700; min-width: 220px; }
.copyt .l_pos, .copyt .l_size, .copyt .l_role { width: 118px; }
.copyt .l_in, .copyt .l_out { width: 168px; display: block; }
.copyt .l_out { margin-top: 4px; }
.copyt .l_basis { width: 90px; }
/* ── 📥 보관함에서 가져오기 (msg 6304) ── */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.tab { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--dim); }
.tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 12px 0; max-height: 560px; overflow: auto; padding: 2px; }
.pk { display: flex; flex-direction: column; text-align: left; font: inherit; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; transition: border-color .15s, transform .08s; }
.pk:hover { border-color: #9DB8B0; }
a.pk { text-decoration: none; color: inherit; }
.pk.hidden { display: none; }
input[type=search] { width: 100%; font: inherit; font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
.chosen a { margin-left: 6px; font-weight: 700; }
.pk.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,107,92,.18); }
.pk .pv { position: relative; aspect-ratio: 16 / 9; background: #1B2220; display: block; }
.pk .pv img, .pk .pv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pk .pt { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; font-size: 13px; }
.pk .pt small { color: var(--mute); font-size: 11.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chosen { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #F1F3F0; color: var(--dim); font-size: 14px; }
.chosen.ok { background: #E3EFEB; color: var(--accent-d); font-weight: 700; }

@media (max-width: 900px) {
  .grid2, .result, .f2, .versions { grid-template-columns: 1fr; }
  .card.side, .side { position: static; }
  .f3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .card { padding: 18px 16px; border-radius: 12px; }
  .top { padding: 8px 12px; }
  .brand { flex-wrap: wrap; row-gap: 0; }
  .brand .model { flex-basis: 100%; margin-left: 40px; margin-top: -4px; white-space: normal; }   /* 폰에서도 «(현재 모델)» 전부 보이게 */
  .chip { font-size: 11.5px; padding: 3px 8px; }
  .dock { margin: 18px -16px -18px; padding: 12px 16px; }
  .dock .acts { width: 100%; }
  .dock .acts .btn { flex: 1; }
  .imgs { grid-template-columns: 1fr; }
  .f3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
