/* Vigma 화면 스타일 — 앱·로그인·검토 페이지 공용 */
:root {
  --bg: #F5F5F5;
  --panel: #FFFFFF;
  --ink: #1E1E1E;
  --ink-2: #444;
  --muted: #8A8A8A;
  --line: #E6E6E6;
  --line-2: #D9D9D9;
  --hover: #F0F0F0;
  --accent: #0D99FF;
  --accent-weak: #E5F4FF;
  --brand: #E2231A;
  --green: #14AE5C;
  --orange: #F08C00;
  --red: #E03131;
  --bar: #2C2C2C;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);
  --font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 13px/1.45 var(--font); -webkit-text-size-adjust: 100%; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 650; }
h1 { font-size: 20px; } h2 { font-size: 16px; } h3 { font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.err { color: var(--red); }
.ok { color: var(--green); }
.hidden { display: none !important; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }
svg.logo { width: 22px; height: 22px; flex: none; }

/* 입력 */
input, select, textarea, button { font: inherit; color: inherit; }
input[type=text], input[type=password], input[type=number], input[type=search], input[type=date], select, textarea {
  border: 1px solid var(--line-2); border-radius: 6px; background: #fff; padding: 6px 8px; min-height: 30px; outline: none; max-width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-weak); }
textarea { resize: vertical; width: 100%; }
input[type=color] { width: 30px; height: 28px; padding: 0; border: 1px solid var(--line-2); border-radius: 6px; background: none; cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 2px; }
input[type=color]::-webkit-color-swatch { border: none; border-radius: 4px; }
label.chk { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; user-select: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 5px 12px;
  border: 1px solid var(--line-2); border-radius: 6px; background: #fff; cursor: pointer; white-space: nowrap; font-weight: 500;
}
.btn:hover { background: var(--hover); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #0B87E0; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { color: var(--red); }
.btn.danger.solid { background: var(--red); color: #fff; border-color: var(--red); }
.btn.ghost { border-color: transparent; background: none; }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { min-height: 26px; padding: 3px 8px; font-size: 12px; }
.btn.icon { padding: 4px 7px; min-width: 30px; }
.btn.on { background: var(--accent-weak); border-color: var(--accent); color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.seg button { border: none; background: #fff; padding: 4px 10px; cursor: pointer; min-height: 28px; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--ink); color: #fff; }

.badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge.gray { background: #EEE; color: #666; }
.badge.blue { background: var(--accent-weak); color: #0A6FC2; }
.badge.orange { background: #FFF1DB; color: #B35F00; }
.badge.green { background: #DDF6E8; color: #0B7A40; }
.badge.red { background: #FFE3E3; color: #C92A2A; }
.mall-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.card > h2 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

table.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { font-weight: 600; color: var(--ink-2); background: #FAFAFA; font-size: 12px; position: sticky; top: 0; }
.tbl tr:hover td { background: #FAFAFA; }
.tbl-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }

/* 상단 바 */
.topbar {
  position: sticky; top: 0; z-index: 50; height: 48px; display: flex; align-items: center; gap: 4px; padding: 0 12px;
  background: var(--bar); color: #fff;
}
.topbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-right: 12px; color: #fff; letter-spacing: -.2px; }
.topbar nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a { color: #CFCFCF; padding: 6px 10px; border-radius: 6px; white-space: nowrap; font-weight: 500; }
.topbar nav a:hover { background: #3A3A3A; color: #fff; }
.topbar nav a.on { background: #444; color: #fff; }
.topbar .me { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #CFCFCF; font-size: 12px; white-space: nowrap; }
.topbar .me .btn { background: #3A3A3A; border-color: #3A3A3A; color: #fff; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }

.page { max-width: 1320px; margin: 0 auto; padding: 20px 16px 60px; }
.page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin-right: auto; }

/* 카드 그리드 (배너·템플릿) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; position: relative; transition: box-shadow .15s, border-color .15s; }
.tile:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.tile.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tile .thumb { aspect-ratio: 16/9; background: repeating-conic-gradient(#F3F3F3 0 25%, #FBFBFB 0 50%) 0 0/16px 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tile .thumb img, .tile .thumb svg { max-width: 92%; max-height: 88%; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.tile .info { padding: 9px 11px; }
.tile .info .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .info .sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tile .check { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.9); border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.tile.sel .check { background: var(--accent); border-color: var(--accent); }
.tile .corner { position: absolute; top: 8px; right: 8px; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: 12px; background: #FCFCFC; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 3px 11px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.selbar { position: sticky; bottom: 12px; margin-top: 16px; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; box-shadow: 0 6px 24px rgba(0,0,0,.25); z-index: 20; }
.selbar .btn { background: #3A3A3A; border-color: #3A3A3A; color: #fff; }
.selbar .btn.primary { background: var(--accent); border-color: var(--accent); }

/* 홈 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.stat .k { color: var(--muted); font-size: 12px; }
.stat .v { font-size: 24px; font-weight: 700; margin-top: 2px; letter-spacing: -.5px; }
.home-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .home-cols { grid-template-columns: 1fr; } }
.list-item { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: #FAFAFA; }
.list-item .lthumb { width: 76px; height: 44px; border-radius: 6px; background: #F1F1F1 center/contain no-repeat; flex: none; border: 1px solid var(--line); }

/* 대화상자 */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .12s; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 860px; }
.modal.xwide { max-width: 1100px; }
.modal-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.modal-head h2 { margin-right: auto; }
.modal-body { padding: 16px 18px; overflow: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.field { margin-bottom: 12px; }
.field > label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; font-weight: 500; }
.field input[type=text], .field input[type=password], .field input[type=number], .field select, .field textarea { width: 100%; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 8px; z-index: 300; box-shadow: var(--shadow); max-width: calc(100vw - 32px); animation: fade .15s; }
.toast.err { background: var(--red); }

/* ---------------------------------------------------------------- 편집기 */
body.editing { overflow: hidden; }
.editor { position: fixed; inset: 0; display: grid; grid-template-rows: 44px 1fr; grid-template-columns: 248px 1fr 268px; background: #E5E5E5; z-index: 100; }
.ed-top { grid-column: 1 / -1; background: var(--bar); color: #fff; display: flex; align-items: center; gap: 4px; padding: 0 8px; min-width: 0; }
.ed-top .btn { background: transparent; border-color: transparent; color: #E5E5E5; }
.ed-top .btn:hover { background: #3D3D3D; }
.ed-top .btn.on { background: var(--accent); color: #fff; }
.ed-top .btn.primary { background: var(--accent); color: #fff; }
.ed-top .title { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0 8px; white-space: nowrap; overflow: hidden; }
.ed-top .title input { background: transparent; border: 1px solid transparent; color: #fff; font-weight: 600; width: 220px; }
.ed-top .title input:hover { border-color: #555; }
.ed-top .title input:focus { border-color: var(--accent); background: #1E1E1E; box-shadow: none; }
.ed-top .sep { width: 1px; height: 22px; background: #4A4A4A; margin: 0 4px; }
.ed-top .zoom { color: #CCC; font-size: 12px; min-width: 46px; text-align: center; cursor: pointer; }
.ed-top .savestate { color: #9A9A9A; font-size: 12px; margin-right: 6px; white-space: nowrap; }
.ed-left, .ed-right { background: #fff; overflow: auto; min-height: 0; }
.ed-left { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.ed-right { border-left: 1px solid var(--line); }
.ed-tabs { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.ed-tabs button { flex: 1; border: none; background: none; padding: 10px 4px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.ed-tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.ed-sec { padding: 12px; border-bottom: 1px solid var(--line); }
.ed-sec h3 { font-size: 11.5px; text-transform: none; color: var(--ink); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.ed-sec h3 .spacer { flex: 1; }
.props { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.props.three { grid-template-columns: 1fr 1fr 1fr; }
.prop { display: flex; align-items: center; border: 1px solid transparent; border-radius: 5px; background: #F5F5F5; min-height: 28px; padding: 0 0 0 7px; }
.prop:hover { border-color: var(--line-2); }
.prop:focus-within { border-color: var(--accent); background: #fff; }
.prop span { color: var(--muted); font-size: 11px; width: 14px; flex: none; }
.prop input, .prop select { border: none !important; background: transparent !important; box-shadow: none !important; width: 100%; min-width: 0; min-height: 26px; padding: 3px 4px; }
.prop.full { grid-column: 1 / -1; }
.color-field { display: flex; gap: 6px; align-items: center; }
.color-field input[type=text] { width: 90px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; text-transform: uppercase; }
.swatches { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.swatches button { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(0,0,0,.12); cursor: pointer; padding: 0; }

.layers .ly { display: flex; align-items: center; gap: 6px; padding: 5px 8px 5px 10px; cursor: pointer; border-radius: 5px; margin: 0 4px; min-height: 30px; }
.layers .ly:hover { background: var(--hover); }
.layers .ly.sel { background: var(--accent-weak); }
.layers .ly .ic { width: 16px; text-align: center; color: var(--muted); font-size: 12px; flex: none; }
.layers .ly .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layers .ly .tg { opacity: 0; border: none; background: none; cursor: pointer; padding: 2px 3px; color: var(--muted); font-size: 12px; }
.layers .ly:hover .tg, .layers .ly .tg.act { opacity: 1; }
.layers .ly.drag-over { box-shadow: inset 0 2px 0 var(--accent); }

.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.asset { border: 1px solid var(--line); border-radius: 8px; background: repeating-conic-gradient(#F3F3F3 0 25%, #FFF 0 50%) 0 0/12px 12px; cursor: grab; overflow: hidden; position: relative; }
.asset:hover { border-color: var(--accent); }
.asset.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.asset .im { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 6px; }
.asset .im img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.asset .nm { font-size: 11px; padding: 3px 6px; background: rgba(255,255,255,.92); border-top: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-left .asset-grid { grid-template-columns: repeat(2, 1fr); }

.canvas-wrap { position: relative; overflow: hidden; min-width: 0; min-height: 0; touch-action: none; background: #E5E5E5; }
.canvas-wrap.pan { cursor: grab; }
.canvas-wrap.panning { cursor: grabbing; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.stage .art { position: absolute; left: 0; top: 0; box-shadow: 0 2px 12px rgba(0,0,0,.18); background: #fff; }
.stage .art svg { display: block; }
.stage .size-label { position: absolute; left: 0; top: -22px; font-size: 11px; color: #666; white-space: nowrap; }
.overlay { position: absolute; left: 0; top: 0; pointer-events: none; }
.sel-box { position: absolute; border: 1.5px solid var(--accent); pointer-events: none; }
.sel-box.multi { border-style: dashed; }
.sel-box.locked { border-color: #A0A0A0; border-style: dashed; }
.hover-box { position: absolute; border: 1.5px solid var(--accent); opacity: .55; pointer-events: none; }
.handle { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--accent); border-radius: 2px; pointer-events: auto; transform: translate(-50%, -50%); }
.handle.rot { width: 10px; height: 10px; border-radius: 50%; cursor: grab; }
.handle.rot::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 12px; background: var(--accent); }
.guide { position: absolute; background: #FF2D87; pointer-events: none; }
.guide.v { width: 1px; } .guide.h { height: 1px; }
.dim-tag { position: absolute; transform: translate(-50%, 6px); background: var(--accent); color: #fff; font-size: 10.5px; padding: 1px 5px; border-radius: 3px; white-space: nowrap; pointer-events: none; }
.text-edit { position: absolute; background: rgba(255,255,255,.0); border: none; outline: 1.5px solid var(--accent); resize: none; padding: 0; margin: 0; overflow: hidden; pointer-events: auto; color: transparent; caret-color: var(--accent); }
.drop-hint { position: absolute; inset: 0; border: 3px dashed var(--accent); background: rgba(13,153,255,.06); pointer-events: none; display: none; }
.canvas-wrap.dragover .drop-hint { display: block; }
.ctx-menu { position: fixed; background: #2C2C2C; color: #fff; border-radius: 8px; padding: 4px; z-index: 400; min-width: 190px; box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: 12.5px; }
.ctx-menu button { display: flex; width: 100%; border: none; background: none; color: inherit; padding: 6px 10px; border-radius: 4px; cursor: pointer; text-align: left; }
.ctx-menu button:hover { background: var(--accent); }
.ctx-menu button kbd { margin-left: auto; opacity: .55; font-family: inherit; font-size: 11px; }
.ctx-menu hr { border: none; border-top: 1px solid #444; margin: 4px 0; }
.quick-field { margin-bottom: 10px; }
.quick-field label { font-size: 12px; font-weight: 600; display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.lockinfo { font-size: 11.5px; color: var(--muted); background: #F7F7F7; border-radius: 6px; padding: 6px 8px; margin-top: 8px; }
.kbd-help td { padding: 3px 10px 3px 0; }
.kbd-help kbd { background: #F2F2F2; border: 1px solid #DDD; border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-family: inherit; font-size: 11.5px; }

@media (max-width: 900px) {
  .editor { grid-template-columns: 0 1fr 0; }
  .editor.show-left { grid-template-columns: 240px 1fr 0; }
  .editor.show-right { grid-template-columns: 0 1fr 260px; }
  .ed-top .hide-m { display: none; }
  .ed-top .title input { width: 120px; }
}
@media (min-width: 901px) { .only-m { display: none !important; } }

/* Asset 관리 */
.assets-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .assets-layout { grid-template-columns: 1fr; } }
.tree { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; position: sticky; top: 64px; }
.tree .node { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.tree .node:hover { background: var(--hover); }
.tree .node.on { background: var(--accent-weak); color: #0A6FC2; font-weight: 600; }
.tree .node .n { margin-left: auto; color: var(--muted); font-size: 11px; }
.tree .node.sub { padding-left: 24px; font-size: 12.5px; }
.dropzone { border: 2px dashed var(--line-2); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); background: #FCFCFC; transition: all .15s; }
.dropzone.over { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); }

/* 설정: 규격 표 */
.spec-tbl input { width: 64px; min-height: 26px; padding: 2px 4px; text-align: right; }
.spec-tbl td { white-space: nowrap; }
.spec-tbl .x { color: var(--muted); margin: 0 2px; }
.settings-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .settings-cols { grid-template-columns: 1fr; } }
.editable-list .it { display: flex; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); }
.editable-list .it input[type=text] { flex: 1; }

/* ---------------------------------------------------------------- 검토 페이지 */
.review-page { max-width: 1100px; margin: 0 auto; padding: 20px 16px 120px; }
.rv-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.rv-head .t { flex: 1; min-width: 220px; }
.rv-head h1 { font-size: 22px; letter-spacing: -.3px; }
.rv-msg { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; white-space: pre-wrap; }
.rv-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 18px; overflow: hidden; }
.rv-item-head { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rv-item-head .nm { font-weight: 650; font-size: 14px; }
.rv-compare { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px; background: repeating-conic-gradient(#F6F6F6 0 25%, #FCFCFC 0 50%) 0 0/16px 16px; }
.rv-compare.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .rv-compare.two { grid-template-columns: 1fr; } }
.rv-pane .cap { font-size: 12px; font-weight: 600; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.rv-art { position: relative; line-height: 0; box-shadow: 0 1px 6px rgba(0,0,0,.15); background: #fff; }
.rv-art svg { width: 100%; height: auto; display: block; }
.rv-art .chg { position: absolute; border: 2px solid #FF2D87; border-radius: 3px; box-shadow: 0 0 0 9999px rgba(0,0,0,0); pointer-events: none; }
.rv-changes { margin: 8px 0 0; padding: 8px 12px 8px 26px; background: #FFF6FB; border: 1px solid #FFD3E8; border-radius: 8px; font-size: 12.5px; line-height: 1.6; }
.rv-body { padding: 12px 16px 16px; }
.rv-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.comments { margin-top: 12px; }
.cmt { display: flex; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.cmt .who { font-weight: 600; white-space: nowrap; }
.cmt .when { color: var(--muted); font-size: 11px; white-space: nowrap; margin-left: auto; }
.cmt .b { white-space: pre-wrap; word-break: break-word; }
.rv-final { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); z-index: 60; }
.rv-final .in { max-width: 1100px; margin: 0 auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rv-final .summary { flex: 1; min-width: 160px; font-size: 12.5px; }
.approved-banner { background: #DDF6E8; color: #0B7A40; border-radius: 10px; padding: 12px 14px; font-weight: 600; margin-bottom: 16px; }
.passcode-box { max-width: 380px; margin: 14vh auto 0; text-align: center; }
.passcode-box input.code { font-size: 28px; letter-spacing: 10px; text-align: center; width: 100%; padding: 10px; font-variant-numeric: tabular-nums; }

/* 검토 편집 모드 */
.mini-editor { padding: 14px 16px; border-top: 1px solid var(--line); background: #FAFAFA; }
.mini-stage { position: relative; touch-action: none; line-height: 0; box-shadow: 0 1px 6px rgba(0,0,0,.15); background: #fff; user-select: none; -webkit-user-select: none; }
.mini-stage svg { width: 100%; height: auto; display: block; }
.mini-stage .mbox { position: absolute; border: 1.5px dashed rgba(13,153,255,.0); cursor: move; }
.mini-stage .mbox:hover { border-color: rgba(13,153,255,.6); }
.mini-stage .mbox.sel { border: 1.5px solid var(--accent); }
.mini-stage .mbox .rz { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: #fff; border: 2px solid var(--accent); border-radius: 3px; cursor: nwse-resize; display: none; }
.mini-stage .mbox.sel .rz { display: block; }
.mini-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; line-height: 1.4; }

/* 로그인 */
.login { max-width: 360px; margin: 12vh auto 0; padding: 0 16px; }
.login .card { padding: 28px; }
.login .brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.login .brandline svg { width: 34px; height: 34px; }
.login h1 { font-size: 24px; letter-spacing: -.5px; }
.login p { color: var(--muted); margin: 0 0 20px; font-size: 13px; }
.login label { display: block; font-size: 13px; color: var(--ink-2); margin: 12px 0 4px; }
.login input { width: 100%; }
.login button { width: 100%; margin-top: 20px; min-height: 38px; }
.login .err { margin-top: 12px; font-size: 13px; }

@media (max-width: 600px) {
  .topbar .me .nm { display: none; }
  .page { padding: 14px 12px 60px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal { border-radius: 14px 14px 0 0; max-height: 92vh; }
}

/* 업로드 확인 표: 브라우저가 그리지 못하는 형식(TIFF) 표시 */
.prev-label { display: inline-flex; width: 48px; height: 36px; align-items: center; justify-content: center; background: #f3f3f3; border-radius: 4px; font-size: 11px; font-weight: 700; color: #666; }

/* ---------- 2026-11-27: 색 고르기 창 (color.js) ---------- */
.color-chip { width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; flex: none; box-shadow: inset 0 0 0 2px #fff; }
.color-chip:disabled { cursor: default; opacity: .6; }
.cpick { position: fixed; z-index: 400; width: 248px; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 10px; font-size: 12px; touch-action: none; }
.cpick.sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; border-radius: 14px 14px 0 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); max-height: 80vh; overflow: auto; }
.cp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cp-prev { width: 22px; height: 22px; border-radius: 5px; border: 1px solid rgba(0,0,0,.15); margin-left: auto; }
.cp-x { border: none; background: none; cursor: pointer; font-size: 14px; color: var(--muted); }
.cp-sv { position: relative; height: 140px; border-radius: 8px; cursor: crosshair; }
.cpick.sheet .cp-sv { height: 170px; }
.cp-sv-dot, .cp-hue-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4); transform: translate(-50%, -50%); pointer-events: none; }
.cp-hue { position: relative; height: 14px; border-radius: 7px; margin: 10px 0; cursor: pointer; background: linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00); }
.cp-hue-dot { top: 50%; }
.cp-row { display: flex; gap: 6px; align-items: center; }
.cp-hex { width: 96px; font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }
.cp-label { color: var(--muted); margin: 8px 0 4px; }
.cp-sws { display: flex; flex-wrap: wrap; gap: 4px; }
.cp-sw { width: 20px; height: 20px; border-radius: 4px; border: 1px solid rgba(0,0,0,.14); cursor: pointer; padding: 0; }
.cpick.sheet .cp-sw { width: 28px; height: 28px; }
.cp-sw.on { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- 편집기: 가이드선·영역 마스크·글자 편집 ---------- */
.gline { position: absolute; pointer-events: auto; z-index: 3; }
.gline.v { width: 9px; margin-left: -4px; cursor: ew-resize; background: linear-gradient(to right, transparent 4px, #00B4D8 4px, #00B4D8 5px, transparent 5px); }
.gline.h { height: 9px; margin-top: -4px; cursor: ns-resize; background: linear-gradient(to bottom, transparent 4px, #00B4D8 4px, #00B4D8 5px, transparent 5px); }
.gline.drag, .gline:hover { filter: saturate(2) brightness(.8); }
.gline b { position: absolute; background: #00B4D8; color: #fff; font-size: 10px; padding: 1px 4px; border-radius: 3px; white-space: nowrap; }
.zone { position: absolute; border: 1.5px dashed var(--zc); background: color-mix(in srgb, var(--zc) 14%, transparent); pointer-events: none; }
.zone span { position: absolute; left: 0; top: 0; background: var(--zc); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 0 0 4px 0; white-space: nowrap; }
.sel-box.editing { border-style: dashed; }
.text-edit { color: transparent !important; background: transparent !important; outline: none !important; }
.text-edit::selection { background: rgba(13,153,255,.3); color: transparent; }
.gpreview { height: 22px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.gpreview div { width: 100%; height: 100%; }
.gstop { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.gstop .prop { width: 70px; }
.bg-suggest { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 8px; }
.bg-suggest button { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px; cursor: pointer; text-align: left; }
.bg-suggest button:hover { border-color: var(--accent); }
.bg-suggest span { width: 22px; height: 22px; border-radius: 4px; border: 1px solid rgba(0,0,0,.12); flex: none; }
.bg-suggest em { font-style: normal; font-size: 10.5px; color: var(--ink-2); line-height: 1.2; }
.zone-row { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.zone-row:last-child { border-bottom: none; }

/* ---------- 마케팅 문구 ---------- */
.copy-list { display: flex; flex-direction: column; gap: 8px; }
.copy-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.copy-text { white-space: pre-wrap; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.copy-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.copy-group { font-size: 11px; font-weight: 700; color: var(--muted); margin: 12px 0 6px; }
.copy-pick { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; margin-bottom: 6px; cursor: pointer; background: #fff; }
.copy-pick:hover { border-color: var(--accent); background: var(--accent-weak); }
.copy-pick .t { white-space: pre-wrap; font-weight: 600; font-size: 13px; }
.copy-pick .m { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 기타 ---------- */
.badge.purple { background: #F1E6FF; color: #7A3EC8; }
.seg.big button { padding: 8px 18px; font-size: 14px; }

/* ---------- 2026-11-27 (3차): 눈 아이콘 항상, 노출 일정, 문구 한 줄 ---------- */
.layers .ly .tg[data-hide] { opacity: .75; }
.layers .ly .tg[data-hide].act, .layers .ly:hover .tg[data-hide] { opacity: 1; }
.sched-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: #EEF6FF; color: #0A5BA8; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.sched-badge b { font-weight: 700; font-size: 11px; }
.sched-badge.live { background: #DDF6E8; color: #0B7A40; }
.sched-badge.past { background: #EEE; color: #777; }
.sched-badge.big { font-size: 15px; padding: 6px 14px; font-weight: 600; }
.sched-badge.big b { font-size: 13px; }
.badge.sched { background: #EEF6FF; color: #0A5BA8; }
.sched-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.sched-card h2 { margin: 0 0 8px; font-size: 16px; }
.sched-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 5px 0; border-top: 1px dashed var(--line); }
.sched-row:first-of-type { border-top: none; }
.sched-row .nm { font-weight: 600; min-width: 120px; }
.rv-sched { padding: 10px 16px 0; }
.copy-pick { cursor: default; }
.copy-pick .t { user-select: text; -webkit-user-select: text; cursor: text; }
.copy-pick .m { display: flex; align-items: center; gap: 4px; }
.copy-pick .m .grow { flex: 1; min-width: 0; }
.copy-pick .m .btn.sm { min-height: 22px; padding: 0 8px; font-size: 11px; }
/* 글자 바로 고치기 칸: 공통 textarea 규칙(max-width:100%)이 폭 0 인 무대에 걸려 폭이 0 이 되던 문제 (드래그 선택이 안 됨) */
.stage .text-edit { max-width: none; min-width: 0; min-height: 0; box-sizing: content-box; }

/* ---------- 2026-11-27 (5차): 규격 PC/MO, 쇼핑몰 미리보기 ---------- */
.spec-tbl td.spec-cell { vertical-align: top; min-width: 150px; }
.spec-cell .srow { display: flex; align-items: center; gap: 3px; margin-top: 4px; white-space: nowrap; }
.spec-cell .srow b { font-size: 11px; width: 22px; color: var(--muted); }
.spec-cell .srow input { width: 58px; }
.spec-cell .pvs { flex-wrap: wrap; gap: 4px; }
.spec-cell .pv-btn { min-height: 22px; padding: 0 6px; font-size: 11px; }
.pv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pv-item { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.pv-thumb { position: relative; max-height: 260px; overflow: hidden; background: #f3f3f3; }
.pv-thumb img { display: block; width: 100%; }
.pv-area { position: absolute; border: 2px solid var(--accent); background: rgba(13,153,255,.18); }
.pv-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 10px; }
.pv-meta b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 배너 영역 설정 */
.ae-wrap { display: grid; grid-template-columns: 1fr 250px; gap: 16px; }
.ae-stage-scroll { max-height: 68vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #f3f3f3; }
.ae-stage { position: relative; width: 100%; user-select: none; -webkit-user-select: none; touch-action: none; }
.ae-stage img { display: block; width: 100%; height: 100%; pointer-events: none; }
.ae-box { position: absolute; border: 2px solid #0D99FF; background: rgba(13,153,255,.22); cursor: move; box-sizing: border-box; }
.ae-box i { position: absolute; width: 12px; height: 12px; background: #fff; border: 2px solid #0D99FF; border-radius: 3px; transform: translate(-50%, -50%); }
.ae-box .h-nw { left: 0; top: 0; cursor: nwse-resize; } .ae-box .h-n { left: 50%; top: 0; cursor: ns-resize; } .ae-box .h-ne { left: 100%; top: 0; cursor: nesw-resize; }
.ae-box .h-e { left: 100%; top: 50%; cursor: ew-resize; } .ae-box .h-se { left: 100%; top: 100%; cursor: nwse-resize; } .ae-box .h-s { left: 50%; top: 100%; cursor: ns-resize; }
.ae-box .h-sw { left: 0; top: 100%; cursor: nesw-resize; } .ae-box .h-w { left: 0; top: 50%; cursor: ew-resize; }
.ae-tag { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); background: #0D99FF; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.ae-radius { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 760px) { .ae-wrap { grid-template-columns: 1fr; } }
/* 적용 미리보기 창 */
.modal.mpv { max-width: 1100px; width: 100%; }
.mpv-tabs { display: flex; gap: 4px; padding: 8px 18px 0; flex-wrap: wrap; }
.mpv-tabs button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.mpv-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mpv-wrap { position: relative; display: flex; flex-direction: column; min-height: 0; }
.mpv-body { background: #E9E9EC; padding: 12px; max-height: calc(100vh - 140px); touch-action: pan-x pan-y; overscroll-behavior: contain; }
.mpv-body.zoomed { cursor: grab; }
.mpv-body.panning { cursor: grabbing; user-select: none; }
.mpv-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; background: rgba(255,255,255,.95); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.18); overflow: hidden; z-index: 2; }
.mpv-zoom button { border: none; background: none; min-width: 36px; height: 34px; font-size: 17px; cursor: pointer; color: var(--ink); padding: 0 8px; }
.mpv-zoom button.mpv-zv { font-size: 12px; min-width: 52px; font-variant-numeric: tabular-nums; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.mpv-zoom button:hover { background: rgba(0,0,0,.05); }
.mpv .modal-head { flex-wrap: wrap; }
.mpv-shot { position: relative; width: 100%; max-width: 900px; margin: 0 auto; box-shadow: 0 2px 12px rgba(0,0,0,.15); background: #fff; }
.mpv-shot > img { display: block; width: 100%; height: 100%; }
.mpv-area { position: absolute; overflow: hidden; }
.mpv-area svg { display: block; width: 100%; height: 100%; }
.mpv-area.ol { outline: 2px dashed #FF2D87; outline-offset: 1px; }
.spec-cell.incomplete input:placeholder-shown { border-color: #FF9500; background: #FFF8EC; }

/* 배너 영역 설정: 둥글기 고치는 중에는 점·크기 표시를 숨기고 둥근 모서리가 잘 보이게 */
.ae-box.radius-mode i, .ae-box.radius-mode .ae-tag { display: none; }
.ae-box.radius-mode { background: rgba(13,153,255,.35); border-color: #0D99FF; }
.ae-box { transition: background .15s; }
.pv-name { flex: 1; min-width: 0; font-weight: 600; }

/* ---------- 2026-11-27 (6차): 눈금자·격자·영역 마스크 선택 ---------- */
.ruler { position: absolute; z-index: 5; background: #F7F7F7; }
.ruler canvas { display: block; }
.ruler.rh { left: 18px; right: 0; top: 0; height: 18px; cursor: ns-resize; overflow: hidden; }
.ruler.rv { top: 18px; bottom: 0; left: 0; width: 18px; cursor: ew-resize; overflow: hidden; }
.ruler-corner { position: absolute; left: 0; top: 0; width: 18px; height: 18px; background: #EDEDED; z-index: 6; border-right: 1px solid #D0D0D0; border-bottom: 1px solid #D0D0D0; }
.ruler.rh canvas { margin-left: -18px; }
.ruler.rv canvas { margin-top: -18px; }
.grid-ov { position: absolute; left: 0; top: 0; pointer-events: none; background-image: linear-gradient(to right, var(--gc) 1px, transparent 1px), linear-gradient(to bottom, var(--gc) 1px, transparent 1px); background-position: -0.5px -0.5px; }
.zone .zone-tag { pointer-events: auto; cursor: move; }
.zone.sel { pointer-events: auto; cursor: move; border-style: solid; border-width: 2px; background: color-mix(in srgb, var(--zc) 22%, transparent); }
.zone .zh { position: absolute; width: 10px; height: 10px; background: #fff; border: 2px solid var(--zc); border-radius: 2px; transform: translate(-50%, -50%); pointer-events: auto; }
.zone .zh-nw { left: 0; top: 0; cursor: nwse-resize; } .zone .zh-n { left: 50%; top: 0; cursor: ns-resize; } .zone .zh-ne { left: 100%; top: 0; cursor: nesw-resize; }
.zone .zh-e { left: 100%; top: 50%; cursor: ew-resize; } .zone .zh-se { left: 100%; top: 100%; cursor: nwse-resize; } .zone .zh-s { left: 50%; top: 100%; cursor: ns-resize; }
.zone .zh-sw { left: 0; top: 100%; cursor: nesw-resize; } .zone .zh-w { left: 0; top: 50%; cursor: ew-resize; }
.zone .zone-size { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px); background: var(--zc); color: #fff; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.zone-row.on { background: var(--accent-weak); border-radius: 6px; padding-left: 4px; padding-right: 4px; }
.grid-menu { padding: 10px; display: flex; flex-direction: column; gap: 6px; width: 250px; }
.grid-menu .prop { display: flex; align-items: center; gap: 6px; }
.grid-menu .prop input[type=number] { width: 70px; }
.layers .ly .nm .sub { color: var(--muted); font-size: 11px; margin-left: 4px; }

/* ---------- 2026-11-27 (PSD 1단계): PSD 확인 창, 참고 가이드 ---------- */
.psd-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 18px; }
.psd-stage { position: relative; width: 100%; background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.15); border-radius: 4px; overflow: hidden; }
.psd-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.psd-stage .vg svg { width: 100%; height: 100%; display: block; }
.psd-stage .ov { pointer-events: none; }
.psd-side { max-height: 70vh; overflow: auto; padding-right: 4px; }
.psd-side h4 { margin: 14px 0 6px; font-size: 13px; }
.psd-sum { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.psd-sum b { font-size: 16px; color: var(--ink); }
.psd-font { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 6px 8px; border-radius: 6px; margin-bottom: 4px; background: #F6F6F6; }
.psd-font.miss { background: #FFF8EC; }
.psd-font b { font-size: 13px; }
.psd-list { display: flex; flex-direction: column; gap: 2px; }
.psd-list .legend { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.psd-more { margin-top: 8px; font-size: 12px; } .psd-more ul { margin: 6px 0; padding-left: 18px; }
.spinner { width: 34px; height: 34px; margin: 0 auto; border: 3px solid #E5E5EA; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .psd-wrap { grid-template-columns: 1fr; } .psd-side { max-height: none; } }
.ref-img { position: absolute; left: 0; top: 0; pointer-events: none; }
.ref-zone { position: absolute; pointer-events: none; border: 1.5px dashed var(--zc); background: color-mix(in srgb, var(--zc) 8%, transparent); }
.ref-zone span { position: absolute; left: -1px; bottom: 100%; font-size: 9.5px; line-height: 13px; color: #fff; background: var(--zc); padding: 0 4px; border-radius: 3px 3px 0 0; white-space: nowrap; opacity: .9; }   /* 이름표는 상자 바깥 위 (내용을 가리지 않게) */
.ref-line { position: absolute; pointer-events: none; }
.ref-line.v { width: 0; border-left: 1px dashed #7A5AF8; }
.ref-line.h { height: 0; border-top: 1px dashed #7A5AF8; }
.gs-list { display: flex; flex-direction: column; gap: 8px; }
.gs-item { display: flex; gap: 10px; align-items: center; }
.gs-item img { width: 90px; height: 45px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.gs-item .gs-noimg { width: 90px; text-align: center; color: var(--muted); }
.gs-item .gs-name { width: 100%; font-weight: 600; }

/* ---------- 노출 캘린더 (2026-11-27) ---------- */
.cal-card { margin-bottom: 16px; }
.cal-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px 4px; }
.cal { display: grid; grid-auto-rows: minmax(30px, auto); row-gap: 4px; position: relative; }
.cal-day { grid-row: 1; text-align: center; padding: 4px 0 6px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.cal-day .wd { font-size: 11px; color: var(--muted); }
.cal-day .dn { font-size: 14px; font-weight: 600; }
.cal-day.sun .wd, .cal-day.sun .dn { color: var(--red); }
.cal-day.sat .wd, .cal-day.sat .dn { color: #1C7ED6; }
.cal-day.today .dn { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 8px; }
.cal-col { border-right: 1px dashed #EEE; z-index: 0; }
.cal-col.we { background: #FAFAFA; }
.cal-col.today { background: rgba(13, 153, 255, .07); }
.cal-bar { z-index: 1; margin: 0 2px; display: flex; align-items: center; gap: 5px; min-width: 0; height: 28px; padding: 0 8px; border-radius: 7px;
  font-size: 12px; cursor: pointer; overflow: hidden; white-space: nowrap; border: 1px solid transparent; }
.cal-bar .tp { color: inherit; opacity: .75; }
.cal-bar .nm { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.cal-bar .mall-dot { margin: 0; flex: none; }
.cal-bar .ic { flex: none; font-weight: 700; }
.cal-bar.cutl { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.cal-bar.cutr { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.cal-bar:hover { filter: brightness(.96); }
.cal-bar.ok, .cal-st.ok { background: #DDF6E8; color: #0B6B39; }
.cal-bar.wait, .cal-st.wait { background: #E3F2FF; color: #0A5BA8; }
.cal-bar.chg, .cal-st.chg { background: #FFF1DB; color: #A35400; }
.cal-bar.pre, .cal-st.pre { background: #F0F0F0; color: #555; }
.cal-bar.urgent { background: #FFE3E3; color: #B21F1F; border-color: var(--red); font-weight: 600; box-shadow: 0 0 0 2px rgba(224, 49, 49, .15); }
.cal-st.urgent { background: #FFE3E3; color: #B21F1F; }
.cal-empty { color: var(--muted); font-size: 13px; padding: 14px 4px; z-index: 1; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cal-st { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.cal-alert { border: 2px solid var(--red); background: #FFF5F5; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.cal-alert-head { font-size: 17px; font-weight: 700; color: #B21F1F; margin-bottom: 8px; }
.cal-alert-head b { font-size: 20px; }
.cal-alert-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #FFD8D8; }
.cal-alert-row .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-alert-row .dday { flex: none; min-width: 64px; text-align: center; font-size: 16px; font-weight: 800; color: #fff; background: var(--red); border-radius: 8px; padding: 6px 8px; }
.cal-alert-row .dday.now { background: #7A0E0E; }
.cal-alert-row .lthumb { flex: none; }
@media (max-width: 600px) {
  .cal-alert-row { flex-wrap: wrap; }
  .cal-alert-row .grow { flex-basis: calc(100% - 140px); }
  .cal-alert-head { font-size: 15px; }
}

/* ---------- 설정 > 배너 규격 정리 (2026-11-27) ---------- */
.spec-tbl input[type=checkbox] { width: 13px; height: 13px; min-height: 0; margin: 0; padding: 0; flex: none; }
.spec-cell label.chk { gap: 3px; font-size: 11px; color: var(--muted); }
.spec-cell .scell-top { display: flex; align-items: center; gap: 6px; }
.spec-cell .scell-top .spacer { flex: 1; }
.spec-cell .s-off { font-size: 11px; color: var(--muted); text-decoration: none; padding: 0 3px; border-radius: 4px; }
.spec-cell .s-off:hover { color: var(--red); background: #FFF0F0; }
.spec-tbl td.spec-cell.off { background: repeating-linear-gradient(135deg, #FAFAFA 0 6px, #F3F3F3 6px 12px); min-width: 0; text-align: center; vertical-align: middle; }
.spec-tbl td.spec-cell.off .s-on { font-size: 11px; color: var(--muted); }
.spec-tbl td.spec-cell.off .s-on:hover { color: var(--accent); }
.spec-tbl td.spec-cell.empty .srow input { opacity: .55; }
.spec-tbl td.spec-cell.empty:hover .srow input, .spec-tbl td.spec-cell.empty .srow input:focus { opacity: 1; }
.spec-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: -4px 0 10px; }

/* ---------- Sub LOB 끌어서 순서 바꾸기 ---------- */
.chips.sortable .chip { cursor: grab; touch-action: none; }
.chips.sortable .chip.dragging { opacity: .9; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); position: relative; z-index: 5; cursor: grabbing; background: #fff; }
.chips.sortable .chip.ph { opacity: .35; border-style: dashed; }

/* ---------- 앱 푸시 설정 (관리자) ---------- */
.push-devs { margin-top: 10px; }
.push-devs .list-item { cursor: default; }

/* ---------- 좁은 화면 상단 바 2줄: 1줄 로고·로그인 정보 / 2줄 메뉴 (2026-11-28) ---------- */
@media (max-width: 760px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 6px 12px 0; row-gap: 2px; }
  .topbar .brand { order: 1; height: 36px; }
  .topbar .me { order: 2; min-width: 0; }
  .topbar .me .nm { display: inline; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
  .topbar nav { order: 3; flex-basis: 100%; margin: 0 -12px; padding: 0 8px 6px; }
  .topbar nav a { padding: 6px 9px; }
}

/* ---------- 경고 문구 ---------- */
.cal-alert-sub { font-size: 12px; font-weight: 500; color: #C25050; margin-left: 8px; }

/* ---------- 프로젝트 (배너 묶음) ---------- */
.proj-strip { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; margin: -2px 0 12px; padding-bottom: 2px; }
.proj-strip::-webkit-scrollbar { display: none; }
.proj-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; white-space: nowrap; font-weight: 500; font-size: 13px; }
.proj-chip .ic { width: 15px; height: 15px; color: #8A6BD1; }
.proj-chip .n { font-size: 11px; color: var(--muted); font-weight: 600; }
.proj-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.proj-chip.on .ic, .proj-chip.on .n { color: #fff; }
.proj-hint { margin-left: 6px; white-space: nowrap; }
.proj-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; border-left: 4px solid #8A6BD1; }
.proj-thumbs { display: grid; grid-template-columns: repeat(2, 54px); grid-auto-rows: 34px; gap: 3px; flex: none; }
.proj-thumbs img { width: 54px; height: 34px; object-fit: cover; border-radius: 4px; background: #f3f3f3; }
.proj-title { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.proj-acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: none; }
.proj-pick { display: flex; flex-direction: column; gap: 6px; }
.proj-pick .btn { justify-content: space-between; }
@media (max-width: 700px) {
  .proj-head { flex-wrap: wrap; }
  .proj-acts { flex-direction: row; flex-wrap: wrap; width: 100%; }
}

/* ---------- 설정 > 앱 알림 (앱 안에서만) ---------- */
.app-noti { display: flex; align-items: center; gap: 12px; }
.app-noti .ic { width: 36px; height: 36px; border-radius: 9px; background: #FF3B30; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.app-noti .ic svg { width: 20px; height: 20px; }

/* ---------- 앱(WKWebView)에서 화면 맨 위까지 쓰기 (2026-11-28) ----------
   앱은 웹 화면을 상태 막대 밑까지 넓혀 둔다. 처음엔 상태 막대 높이만큼 비워 두고, 스크롤하면 내용이 상태 막대 아래로 지나간다.
   브라우저(PC·Safari)에서는 env() 값이 0 이라 바뀌는 것이 없다. */
body { padding-top: env(safe-area-inset-top, 0px); box-sizing: border-box; }
.topbar { top: env(safe-area-inset-top, 0px); }
.editor { top: env(safe-area-inset-top, 0px); }
.modal-bg { padding-top: max(16px, env(safe-area-inset-top, 0px)); }
/* 좁은 화면에서 홈 '최근 배너' 칸이 글자(nowrap) 때문에 화면보다 넓어지던 것 */
.home-cols > *, .grid > .tile { min-width: 0; }
.tile .sub { overflow: hidden; text-overflow: ellipsis; }

/* ---------- 상단 바: 아바타 메뉴 · 고정 · 떠 있는 상태 표시 피하기 (2026-11-28) ---------- */
html, body { height: auto; min-height: 100%; }   /* body 높이가 화면 높이로 묶여 있으면 sticky 상단 바가 스크롤 중간에 풀렸다 */
.topbar .avatar { border: 0; cursor: pointer; padding: 0; font: inherit; font-weight: 700; font-size: 12px; }
.topbar .avatar:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.avatar.lg { width: 36px; height: 36px; font-size: 15px; flex: none; }
.me-menu { position: fixed; z-index: 300; width: 240px; background: #fff; border-radius: 12px; box-shadow: 0 12px 36px rgba(0,0,0,.22); padding: 8px; font-size: 13px; animation: fade .12s; }
.me-menu .me-head { display: flex; gap: 10px; align-items: center; padding: 6px 6px 8px; }
.me-menu .me-nm { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-menu .me-roles { font-size: 12px; color: var(--ink-2); background: #F4F4F4; border-radius: 8px; padding: 6px 8px; margin: 0 2px 6px; }
.me-menu .me-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 8px; color: inherit; cursor: pointer; font: inherit; }
.me-menu .me-item:hover { background: var(--hover); }
.me-menu .me-item.danger { color: var(--red); }
/* 앱: 상단 바는 화면 맨 위에 고정. 위 안전 영역(상태 막대 자리)은 상단 바 배경으로 채운다 (2026-11-28 7-2차)
   iPhone Duo 는 상태 막대가 옆 세로 띠에 있고, 그 자리는 앱이 웹 화면에서 뺀다 → 웹은 남은 영역만 쓴다 */
body.in-app { padding-top: 0; }
body.in-app .topbar { position: sticky; top: 0; height: calc(48px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); }
@media (max-width: 760px) {
  body.in-app .topbar { height: auto; padding-top: calc(6px + env(safe-area-inset-top, 0px)); }
}

/* ---------- 편집기 도구 막대 묶음 · 휴대폰 여러 줄 · 보기/편집 모드 (2026-11-28 10차) ---------- */
/* PC·iPad: 넓으면 한 줄, 다 안 들어가면 묶음째 다음 줄로 (도구가 화면 밖으로 잘리지 않게) */
.editor { grid-template-rows: auto 1fr; }
.ed-top { flex-wrap: wrap; min-height: 44px; padding-top: 4px; padding-bottom: 4px; row-gap: 4px; }
.ed-top .ed-g { display: flex; align-items: center; gap: 4px; flex: none; min-width: 0; }
.ed-top .g-head { flex: 0 1 auto; }
.ed-top .btn, .ed-top .zoom { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.tool-tip { position: fixed; z-index: 400; background: #111; color: #fff; font-size: 12.5px; padding: 6px 10px; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); max-width: min(280px, calc(100vw - 12px)); pointer-events: none; animation: fade .12s; }
.toast.undo-toast { display: flex; align-items: center; gap: 12px; }
.toast.undo-toast button { background: none; border: 0; color: #6CB8FF; font: inherit; font-weight: 700; padding: 2px 0; cursor: pointer; }
@media (max-width: 900px) {
  .editor { grid-template-rows: auto 1fr; }
  .ed-top { flex-wrap: wrap; padding: 4px 6px 6px; row-gap: 4px; column-gap: 2px; }
  .ed-top > .spacer { display: none; }
  .ed-top .ed-g { display: flex; align-items: center; gap: 2px; min-width: 0; }
  .ed-top .g-head { order: 1; flex: 1 1 0; }
  .ed-top .g-mode { order: 2; }
  /* 2줄: 그리기 도구·되돌리기 / 3줄: 보기 도구·잠금·확대 / 4줄: 버전·승인 이력·미리보기·내보내기·검토 요청 */
  .ed-top .g-tools { order: 3; flex: 1 1 100%; justify-content: space-between; border-top: 1px solid #3A3A3A; padding-top: 4px; }
  .ed-top .g-tools .sep { display: none; }
  .ed-top .g-view { order: 4; flex: 1 1 100%; justify-content: space-between; }
  .ed-top .g-acts { order: 5; flex: 1 1 100%; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .ed-top .g-acts::-webkit-scrollbar { display: none; }
  .ed-top .g-acts .btn { flex: none; white-space: nowrap; }
  .ed-top.mode-view .g-view { display: none; }
  .ed-top .btn.icon { min-width: 36px; height: 36px; font-size: 17px; padding: 0 4px; }
  .ed-top .btn:not(.icon) { height: 34px; padding: 0 10px; font-size: 13px; }
  .ed-top .g-acts .btn:not(.primary) { background: #3A3A3A; }
  .ed-top .title { margin: 0 4px; }
  .ed-top .title input { width: 100%; min-width: 60px; }
  .ed-top .title { flex: 1 1 auto; }
  .ed-top .savestate { font-size: 11px; margin-right: 2px; }
}

/* ---------- iPhone Duo 펼친 세로: 위 상태 띠의 빈 왼쪽을 로고·아바타 줄로 쓴다 (2026-11-28 11차) ----------
   상태 표시(시각·카메라·배터리)는 오른쪽 위 구석(약 100px)에만 있으므로, 1줄(로고·아바타)을 안전 영역 안으로 올리고
   아바타는 그 구석 왼쪽에 둔다. 2줄(메뉴)은 그대로. body.duo-band 는 app.js 가 화면 모양·안전 영역을 보고 붙인다 */
/* 로고·아바타 줄(36px)의 가운데를 상태 띠의 가운데(시각·카메라 높이)에 맞춘다 */
body.in-app.duo-band .topbar { padding-top: max(6px, calc(env(safe-area-inset-top, 0px) / 2 - 18px)); }
body.in-app.duo-band .topbar .me { margin-right: 140px; }

/* ---------- 앱: 편집기 위 안전 영역(상태 막대 자리)도 편집기 막대 색으로 채운다 (2026-11-29 12차) ----------
   예전엔 편집기를 안전 영역 아래부터 그려서, 그 위로 뒤 화면(배너 목록 등)이 비쳐 보였다 (iPhone Duo 펼침 세로·iPad 세로) */
body.in-app .editor { top: 0; }
body.in-app .ed-top { padding-top: calc(4px + env(safe-area-inset-top, 0px)); }
/* Duo 펼침 세로: 상단 바와 같이 첫 줄을 상태 띠의 빈 왼쪽으로 올리고, 오른쪽 상태 구석은 비운다 */
body.in-app.duo-band .ed-top { padding-top: max(4px, calc(env(safe-area-inset-top, 0px) / 2 - 18px)); padding-right: 140px; }

/* 검토 간단 편집: 글자색만 바꿀 수 있는(위치·크기 고정) 레이어 */
.mini-stage .mbox.fixed { cursor: pointer; border-style: dotted; }

/* ---------- 2026-12-02 (14차): 미리보기 끌기, 검토 편집 영역 표시 ---------- */
.mpv-ban { position: absolute; }
.mpv-ban svg { display: block; width: 100%; height: 100%; }
.mpv-ban.drag { cursor: grab; touch-action: none; }
.mpv-ban.drag:active { cursor: grabbing; }
.rv-art, .mini-stage { margin-left: auto; margin-right: auto; }
.mlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; margin: 0 0 8px; padding: 7px 10px; background: #EEF6FF; border-radius: 8px; color: #0A4F94; line-height: 1.4; }
.mlegend i { display: inline-block; width: 14px; height: 10px; vertical-align: -1px; margin-right: 5px; border-radius: 2px; }
.mlegend .lg-move { border: 2px solid #0D99FF; background: rgba(13,153,255,.15); }
.mlegend .lg-color { border: 2px dotted #FF9500; background: rgba(255,149,0,.12); }
.mlegend .lg-bg { background: linear-gradient(135deg, #E2231A, #0071E3); }
.mini-stage.show-areas .mbox { border: 2px solid rgba(13,153,255,.85); background: rgba(13,153,255,.10); }
.mini-stage.show-areas .mbox.fixed { border: 2px dotted #FF9500; background: rgba(255,149,0,.10); }
.mini-stage .mbox .mtag { position: absolute; left: -2px; bottom: 100%; display: none; font-size: 10.5px; line-height: 15px; padding: 0 6px; color: #fff; background: #0D99FF; border-radius: 4px 4px 0 0; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.mini-stage .mbox.fixed .mtag { background: #FF9500; }
.mini-stage.show-areas .mbox .mtag, .mini-stage .mbox.sel .mtag { display: block; }
.mini-stage .mbox.sel { border: 2px solid var(--accent) !important; background: rgba(13,153,255,.06) !important; }
.mini-stage.flash .mbox { animation: mflash .6s ease-in-out 3; }
@keyframes mflash { 50% { box-shadow: 0 0 0 4px rgba(13,153,255,.45); } }
@media (prefers-reduced-motion: reduce) { .mini-stage.flash .mbox { animation: none; } }

/* ---------- 2026-12-02 (15차): 배너 영역 여러 개 ---------- */
.ae-boxes { position: absolute; inset: 0; }
.ae-box.off { cursor: pointer; border-style: dashed; background: rgba(13,153,255,.10); }
.ae-box.off .ae-tag { display: none; }
.ae-num { position: absolute; left: 4px; top: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #0D99FF; color: #fff; font-size: 11px; line-height: 18px; text-align: center; pointer-events: none; }
.ae-box.off .ae-num { background: rgba(13,153,255,.6); }
.pv-area .pv-n { position: absolute; left: 2px; top: 2px; font-size: 10px; color: #fff; background: var(--accent); border-radius: 6px; padding: 0 4px; line-height: 14px; }

/* 편집기: 검토 페이지에 반영 (2026-12-02) */
.btn.warn { background: #FFF1DB; color: #8A4B00; border-color: #FFB54D; font-weight: 600; }
.btn.warn:hover { background: #FFE4B8; }

/* 마케팅 가이드 (2026-12-03) */
.gd-shelf { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 12px; }
.gd-card { flex: 0 0 auto; width: 300px; max-width: 86vw; display: flex; gap: 10px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; }
.gd-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-weak); }
.gd-cover { flex: 0 0 104px; height: 80px; border-radius: 6px; overflow: hidden; background: #F2F2F4; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.gd-cover img { width: 100%; height: 100%; object-fit: cover; }
.gd-cover .spinner { width: 22px; height: 22px; }
.gd-info { min-width: 0; flex: 1; }
.gd-title { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-meta { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0 2px; }
.gd-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin-bottom: 10px; position: sticky; top: 0; z-index: 5; }
.gd-filters input[type=search] { flex: 1 1 260px; min-width: 0; }
.gd-filters select { flex: 0 1 auto; max-width: 100%; min-width: 0; }
.gd-count { margin: 2px 2px 8px; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gd-hit { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.gd-hit:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.gd-thumb { position: relative; aspect-ratio: 792 / 612; background: #F2F2F4; border-bottom: 1px solid var(--line); }
.gd-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gd-pno { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.gd-body { padding: 8px 10px 10px; min-width: 0; }
.gd-kind { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: none; }
.gd-prod { font-weight: 600; font-size: 13px; margin: 1px 0 4px; overflow-wrap: anywhere; }
.gd-heads { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.gd-heads span { background: #F2F2F4; border-radius: 999px; font-size: 11px; padding: 1px 8px; }
.gd-snip { font-size: 12px; color: #555; line-height: 1.45; overflow-wrap: anywhere; }
.gd-page mark, .gv mark { background: #FFE58A; color: inherit; border-radius: 2px; padding: 0 1px; }
.gv-bg { padding: 0; }
.gv { position: fixed; inset: 12px; background: #fff; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.gv-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.gv-t { flex: 1 1 240px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.gv-nav .btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.gv-main { flex: 1; min-height: 0; display: flex; }
.gv-img { flex: 1; min-width: 0; overflow: auto; background: #E9E9EC; display: flex; align-items: flex-start; justify-content: center; padding: 12px; }
.gv-img img { max-width: 100%; height: auto; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.gv-text { display: none; flex: 0 0 360px; overflow: auto; padding: 12px 14px; border-left: 1px solid var(--line); font-size: 13px; }
.gv-bg.text-on .gv-text { display: block; }
.gv-body { white-space: pre-wrap; line-height: 1.5; user-select: text; overflow-wrap: anywhere; }
body.in-app .gv { top: calc(env(safe-area-inset-top, 0px) + 8px); bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
.fld { display: block; margin-bottom: 12px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.fld > input, .fld > select { display: block; width: 100%; margin-top: 4px; font-weight: 400; }
.fld .row { margin-top: 4px; }
@media (max-width: 760px) {
  .gv { inset: 0; border-radius: 0; }
  body.in-app .gv { top: env(safe-area-inset-top, 0px); bottom: 0; }
  .gv-main { flex-direction: column; }
  .gv-img { padding: 6px; }
  .gv-text { flex: 0 0 42%; border-left: none; border-top: 1px solid var(--line); }
  .gd-filters select { flex: 1 1 45%; }
  .gd-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gd-snip { display: none; }
}
@media (max-width: 420px) { .gd-grid { grid-template-columns: 1fr; } .gd-snip { display: block; } }

/* 배너 규격표: 위(쇼핑몰 이름)·왼쪽(배너 유형) 고정 */
.spec-wrap { max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); }
.spec-tbl { border-collapse: separate; border-spacing: 0; }
.spec-tbl th { z-index: 2; }
.spec-tbl tr > :first-child { position: sticky; left: 0; z-index: 3; background: #FAFAFA; border-right: 1px solid var(--line); box-shadow: 2px 0 4px -2px rgba(0,0,0,.08); }
.spec-tbl tr:first-child > :first-child { z-index: 4; }
.spec-tbl th.rowh { top: auto; font-size: 13px; color: var(--ink); vertical-align: top; white-space: nowrap; }
.spec-tbl td.spec-cell:not(.off) { background: #fff; }

/* 검토: 노출 일정이 같은 배너 묶음 · 한 줄에 1장/2장 */
.review-page.wide { max-width: 1500px; }
.rv-group { margin-bottom: 8px; }
.rv-group-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.rv-grid.c2 .rv-compare.two { grid-template-columns: 1fr; }
.rv-cols button { padding: 0 10px; min-height: 26px; font-size: 12px; }
.sched-row .nms { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sched-row .nms .nm { min-width: 0; color: inherit; text-decoration: none; }
.sched-row .nms .nm:hover { text-decoration: underline; }

/* 검토 2장씩: 줄마다 따로, 편집 중인 배너는 그 줄 위에 한 줄 전체 (2026-12-03) */
.rv-grid.c2 .rv-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.rv-grid.c2 .rv-row > .rv-item.editing { grid-column: 1 / -1; order: -1; }
.btn.dim { color: var(--muted); background: #F2F2F2; border-color: var(--line); }
.btn.dim:hover { background: #F2F2F2; }
.rv-grid.c2 .rv-item.editing .rv-compare.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .rv-grid.c2 .rv-item.editing .rv-compare.two { grid-template-columns: 1fr; } }

/* 검토 편집 모드: 문구 고치기 (2026-12-03) */
.mini-text { display: flex; gap: 6px; align-items: flex-start; flex: 1 1 260px; min-width: 0; }
.mini-text textarea { flex: 1; min-width: 0; resize: vertical; font: inherit; padding: 5px 8px; }
