:root {
  --bg: #f4f5f7; --panel: #ffffff; --line: #e3e6ea; --text: #1f2933; --muted: #6b7684;
  --accent: #2f6fed; --accent-2: #1d4fd7; --ok: #1a8f5a; --warn: #c2410c; --run: #b45309;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: -apple-system, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", Roboto, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); }
.app { display: grid; grid-template-columns: 460px 1fr; height: 100vh; }
.left { border-right: 1px solid var(--line); background: var(--panel); overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.right { display: flex; flex-direction: column; min-width: 0; }
.hdr { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
h1 { font-size: 18px; margin: 0 0 2px; }
h2 { font-size: 14px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.sub { color: var(--muted); font-size: 12px; }
.badge { background: #eef2ff; color: #3730a3; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.req { color: var(--warn); }
input, textarea, select { width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--text); background: #fff; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid #c7d7ff; border-color: var(--accent); }
button, .btn { font: inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-decoration: none; color: var(--text); display: inline-block; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; width: 100%; }
button.primary:hover { background: var(--accent-2); }
button:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.ghost { background: #fff; }
.row { display: flex; gap: 8px; }
.row .primary { flex: 1; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.site-meta { margin-bottom: 10px; }
code { font-family: var(--mono); font-size: 12px; background: #f1f3f5; padding: 1px 5px; border-radius: 4px; }
.log { margin: 0; background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 10px; height: 200px; overflow: auto; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.log .info { color: #93c5fd; } .log .tool { color: #a7f3d0; } .log .assistant { color: #fde68a; } .log .warn { color: #fca5a5; } .log .t { color: #64748b; }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.pill.idle { background: #e5e7eb; color: #374151; } .pill.running { background: #fef3c7; color: var(--run); } .pill.error { background: #fee2e2; color: #991b1b; } .pill.done { background: #d1fae5; color: var(--ok); }
.totals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
.tot { border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.tot .k { font-size: 11px; color: var(--muted); } .tot .v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tot.big { grid-column: 1 / -1; background: #eef2ff; border-color: #c7d2fe; } .tot.big .v { font-size: 24px; color: #1e3a8a; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th:nth-child(-n+3), td:nth-child(-n+3) { text-align: left; }
td.instr { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
tfoot td { font-weight: 700; background: #f8fafc; }
tr.err td { color: #991b1b; }
.toolbar { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.toolbar .url { flex: 1; font-family: var(--mono); font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbar select { width: auto; margin: 0; }
.preview { flex: 1; position: relative; background: #fff; display: flex; flex-direction: column; min-height: 0; }
iframe { width: 100%; flex: 1 1 auto; min-height: 80px; border: 0; }
.empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.empty-inner { max-width: 460px; text-align: center; }
.empty h3 { color: var(--text); }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; grid-template-rows: auto 70vh; height: auto; } .left { border-right: 0; border-bottom: 1px solid var(--line); } }

input[type=file] { padding: 6px; background: #f8fafc; }
.hint { display: block; margin-top: 4px; }
.attach-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.attach-list li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.attach-list .thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: #f1f3f5; flex: none; }
.attach-list .doc { width: 40px; height: 40px; border-radius: 6px; background: #eef2ff; color: #3730a3; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.attach-list .info { flex: 1; min-width: 0; }
.attach-list .name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-list .name a { color: var(--text); text-decoration: none; } .attach-list .name a:hover { text-decoration: underline; }
.attach-list .meta { font-size: 11px; color: var(--muted); }
.attach-list .tag { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: #fef3c7; color: #92400e; margin-left: 4px; }
.attach-list .del { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; padding: 2px 6px; } .attach-list .del:hover { color: #991b1b; }
.upload-now { margin-top: 6px; }

/* 소스 편집기 (우측 하단) */
.splitter { height: 6px; background: var(--line); cursor: row-resize; flex: none; }
.splitter:hover { background: #c7d2fe; }
.editor { height: 45%; min-height: 120px; flex: none; display: flex; flex-direction: column; border-top: 1px solid var(--line); background: #0f172a; }
.editor-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.editor-bar select { width: auto; margin: 0; max-width: 260px; }
.editor-bar .spacer { flex: 1; }
.editor-bar .inline { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: var(--muted); font-size: 12px; }
.editor-bar .inline input { width: auto; margin: 0; }
.small-btn { padding: 5px 10px; font-size: 12px; }
.small-btn.primary { width: auto; }
.edit-state { font-size: 12px; color: var(--ok); }
.edit-state.dirty { color: var(--warn); font-weight: 600; }
.editor-body { flex: 1; display: flex; min-height: 0; }
.line-nos { margin: 0; padding: 10px 6px 10px 10px; color: #64748b; background: #0b1220; text-align: right; font-family: var(--mono); font-size: 12px; line-height: 1.5; overflow: hidden; user-select: none; flex: none; }
#editor { flex: 1; margin: 0; padding: 10px; border: 0; border-radius: 0; resize: none; background: #0f172a; color: #e2e8f0; font-family: var(--mono); font-size: 12px; line-height: 1.5; tab-size: 2; outline: none; }
.toolbar button.active { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }

/* 드래그앤드롭 첨부 */
.field-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.dropzone { position: relative; border: 2px dashed #c9d1dc; border-radius: 10px; padding: 12px; background: #f8fafc; margin-bottom: 8px; transition: border-color .15s, background .15s; }
.dropzone.dragover { border-color: var(--accent); background: #eef2ff; }
.dz-text { font-size: 12px; color: var(--muted); text-align: center; }
.dz-pick { color: var(--accent); cursor: pointer; text-decoration: underline; display: inline; margin: 0; font-size: 12px; }
.pending { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pending:empty { display: none; }
.pending li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 6px 3px 10px; font-size: 12px; }
.pending li .pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.pending li .ps { color: var(--muted); }
.pending li button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0 4px; font-size: 14px; line-height: 1; }
.pending li button:hover { color: #991b1b; }
.drop-overlay { position: fixed; inset: 0; background: rgba(47, 111, 237, .12); border: 3px dashed var(--accent); z-index: 1000; display: grid; place-items: center; pointer-events: none; }
.drop-overlay-box { background: #fff; border: 1px solid #c7d2fe; color: #1e3a8a; font-weight: 700; padding: 14px 22px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }

/* 사용자 / git 보관 */
.hdr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hdr-right select { width: auto; margin: 0; max-width: 260px; }
.user { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.git-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow: auto; }
.git-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }
.git-list .kind { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: #e0e7ff; color: #3730a3; flex: none; }
.git-list .kind.manual-edit { background: #fef3c7; color: #92400e; } .git-list .kind.create { background: #d1fae5; color: #065f46; }
.git-list .bname { font-family: var(--mono); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.git-list .bname a { color: var(--text); text-decoration: none; } .git-list .bname a:hover { text-decoration: underline; }
.git-list .st { flex: none; } .git-list .st.ok { color: var(--ok); } .git-list .st.fail { color: #991b1b; }

/* 기본 사항 수정 */
.basics { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; background: #fafbfc; }
.basics summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); }
.basics[open] summary { margin-bottom: 8px; }
.basics-state { font-size: 11px; font-weight: 600; margin-left: 6px; color: var(--warn); }
.basics-state.pending { color: #92400e; }

/* 모드 선택 / 위저드 */
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.mode-opt { text-align: left; padding: 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.mode-opt:hover { border-color: var(--accent); background: #f5f8ff; }
.mode-title { font-weight: 700; font-size: 14px; } .mode-desc { font-size: 12px; color: var(--muted); line-height: 1.45; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.refs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.refs .ref { display: grid; grid-template-columns: 1fr auto; gap: 4px 6px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.refs .ref input, .refs .ref textarea { margin: 0; font-size: 12px; padding: 6px 8px; }
.refs .ref textarea { grid-column: 1 / -1; }
.refs .ref .rm { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; }
.refs .add { align-self: flex-start; }
.steps { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.steps button { padding: 3px 8px; font-size: 11px; border-radius: 999px; }
.steps button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.steps button.done { background: #d1fae5; border-color: #a7f3d0; color: #065f46; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; background: #fff; cursor: pointer; }
.chip.on { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; font-weight: 600; }
.chip.disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.card-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.opt-card { border: 2px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; background: #fff; }
.opt-card.on { border-color: var(--accent); background: #f5f8ff; }
.opt-card .t { font-weight: 700; font-size: 13px; } .opt-card .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.swatches { display: flex; gap: 4px; margin-top: 6px; } .swatches span { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); }
.tone-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.origin { font-size: 10px; padding: 1px 5px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }
.origin.user { background: #d1fae5; color: #065f46; } .origin.ai { background: #fef3c7; color: #92400e; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 8px; font-size: 12px; margin-bottom: 8px; align-items: start; }
.kv .k { color: var(--muted); padding-top: 6px; } .kv input, .kv textarea, .kv select { margin: 0; font-size: 12px; padding: 5px 8px; }
.warn-list { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 4px; }
.warn-list li { font-size: 12px; padding: 5px 8px; border-radius: 6px; background: #fef3c7; color: #92400e; }
.warn-list li.error { background: #fee2e2; color: #991b1b; } .warn-list li.info { background: #e0e7ff; color: #3730a3; }
.pages-edit { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.page-row { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; }
.page-row.dragover { border-color: var(--accent); }
.page-row .ph { display: flex; align-items: center; gap: 6px; }
.page-row .ph .handle { cursor: grab; color: var(--muted); }
.page-row .ph input { margin: 0; font-size: 12px; padding: 4px 6px; flex: 1; }
.page-row .ph .rm { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.page-row .secs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.page-row .secs .chip { font-size: 11px; padding: 2px 8px; }
.facts-table { width: 100%; font-size: 12px; border-collapse: collapse; margin-bottom: 8px; }
.facts-table td { padding: 4px 4px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; white-space: normal; }
.facts-table input, .facts-table textarea, .facts-table select { margin: 0; font-size: 12px; padding: 4px 6px; }
.facts-table .src { font-size: 10px; color: var(--muted); }
.report { font-size: 12px; }
.report .sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.report .sum span { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.report .sum span.bad { background: #fee2e2; border-color: #fecaca; color: #991b1b; } .report .sum span.ok { background: #d1fae5; border-color: #a7f3d0; color: #065f46; }
.report ul { margin: 4px 0 8px; padding-left: 18px; }
.report li.fail { color: #991b1b; } .report li.partial { color: #92400e; } .report li.pass { color: #065f46; }
.publish-box { border: 1px solid #a7f3d0; background: #ecfdf5; border-radius: 8px; padding: 10px; font-size: 12px; }
.publish-box .later { opacity: .6; }
.brief-json { max-height: 220px; overflow: auto; background: #0f172a; color: #e2e8f0; font-family: var(--mono); font-size: 11px; padding: 8px; border-radius: 8px; white-space: pre-wrap; }
.qbox { border: 1px solid #c7d2fe; background: #eef2ff; border-radius: 8px; padding: 8px; margin-bottom: 8px; }
.summary-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 4px; }
.summary-list li { display: grid; grid-template-columns: 90px 1fr auto; gap: 6px; font-size: 12px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.summary-list li .k { color: var(--muted); } .summary-list li button { padding: 1px 6px; font-size: 11px; }
.wf-note { font-size: 11px; color: var(--muted); }

.progress-bar { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; }
.git-list .kind.restore { background: #fce7f3; color: #9d174d; }

/* 진행 표시기 */
.progress { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.progress .pi { width: 34px; height: 34px; display: grid; place-items: center; position: relative; flex: none; }
.progress .pi > * { display: none; }
.progress .spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #c7d2fe; border-top-color: var(--accent); animation: spin .9s linear infinite; }
.progress .check { width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #fff; font-weight: 700; display: none; place-items: center; }
.progress .bang { width: 28px; height: 28px; border-radius: 50%; background: #dc2626; color: #fff; font-weight: 700; display: none; place-items: center; }
.progress .dot { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; }
.progress.running .spinner { display: block; } .progress.idle .dot { display: block; } .progress.done .check { display: grid; } .progress.error .bang { display: grid; }
.progress.running { background: #eef2ff; border-color: #c7d2fe; } .progress.done { background: #ecfdf5; border-color: #a7f3d0; } .progress.error { background: #fef2f2; border-color: #fecaca; }
.progress .pt { min-width: 0; } #progressText { font-weight: 600; font-size: 13px; }
.progress-deploy { margin-top: 8px; font-size: 12px; border-radius: 8px; padding: 6px 10px; }
.progress-deploy.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; } .progress-deploy.fail { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.progress-deploy .pd-head { font-weight: 700; } .progress-deploy ul { margin: 4px 0 0; padding-left: 16px; } .progress-deploy a { color: inherit; } .progress-deploy .pd-note { margin-top: 4px; }
.progress-warn { margin-top: 8px; font-size: 12px; color: #991b1b; background: #fee2e2; border-radius: 8px; padding: 6px 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

.progress .ptok { margin-left: auto; text-align: right; flex: none; min-width: 120px; }
.progress .ptok .k { font-size: 11px; color: var(--muted); }
.progress .ptok .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: #1e3a8a; transition: transform .15s; }
.progress .ptok .v.bump { transform: scale(1.08); }
.progress .ptok .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.progress.running .ptok .k::after { content: ' · 집계 중'; color: var(--accent); }

.progress .cancel { border-color: #fecaca; color: #991b1b; background: #fff; flex: none; }
.progress .cancel:hover { background: #fee2e2; }
.progress.cancelled { background: #fff7ed; border-color: #fed7aa; } .progress.cancelled .bang { display: grid; background: #ea580c; }
.pill.cancelled { background: #ffedd5; color: #9a3412; }
tr.cancelled td { color: #9a3412; }

.pmsg { font-size: 12px; color: #1e3a8a; min-height: 16px; margin: 2px 0; transition: opacity .2s; }
.pmsg.flash { opacity: .35; }
.progress .ptok .v.amt { font-size: 16px; color: #065f46; }
.progress.running .ptok .k::after { content: ''; }
.progress.running .ptok .k.live::after { content: ' · 집계 중'; color: var(--accent); }

.git-list .kind.deploy { background: #d1fae5; color: #065f46; }

.model-row { display: flex; align-items: center; gap: 6px; } .model-row select { width: auto; max-width: 260px; margin: 0; font-size: 12px; padding: 5px 8px; }
#myConnList li .kind.conn { background: #e0e7ff; color: #3730a3; }

/* 기존 사이트 가져오기 */
.radio-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 2px 0 8px; font-size: 13px; }
.radio-row .inline { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
textarea.mono { font-family: var(--mono); font-size: 11px; }
.opt-card .cand-path { font-family: var(--mono); font-size: 12px; font-weight: 600; word-break: break-all; }
.opt-card .cand-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.opt-card .cand-match { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 999px; margin-left: 6px; background: #e5e7eb; color: #374151; }
.opt-card .cand-match.exact { background: #d1fae5; color: #065f46; } .opt-card .cand-match.title { background: #fef3c7; color: #92400e; }
.git-list .kind.import { background: #ede9fe; color: #5b21b6; }
#imInfo b { font-weight: 600; } #imDeployMsg.ok { color: var(--ok); } #imDeployMsg.fail { color: #991b1b; }

/* 캐시 / 등급 */
.pill.waiting { background: #fef3c7; color: #92400e; } .progress.waiting-credit { background: #fffbeb; border-color: #fde68a; } .progress.waiting-credit .bang { display: grid; background: #d97706; }
.badge.neg { background: #fee2e2; color: #991b1b; }

/* 사이트 정보(통계) 카드 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.stat-grid .tot .v small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.stat-grid .tot .d { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 76px; margin: 8px 0 10px; padding: 0 2px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; height: 100%; }
.bar-col .bar { width: 70%; border-radius: 3px 3px 0 0; position: absolute; bottom: 16px; }
.bar-col .bar.pv { background: #c7d2fe; } .bar-col .bar.v { background: var(--accent); width: 40%; }
.bar-col .bl { font-size: 9px; color: var(--muted); margin-top: 60px; white-space: nowrap; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 8px; }
.stat-table th, .stat-table td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: right; } .stat-table th:first-child, .stat-table td:first-child { text-align: left; }
.stat-list { max-height: 150px; } .stat-list li .st { font-variant-numeric: tabular-nums; color: var(--muted); }

/* v1.0.3: 생성/관리/설정 탭 */
.main-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.main-tabs button { flex: 1; border: 1px solid transparent; background: transparent; color: var(--muted); font-weight: 600; padding: 8px 10px; border-radius: 8px 8px 0 0; }
.main-tabs button.active { background: #eef2ff; color: #1e3a8a; border-color: #c7d2fe; border-bottom-color: #eef2ff; }
.main-tabs button:hover { background: #f5f8ff; }
.tabpane { display: flex; flex-direction: column; gap: 12px; }
.credit-footer { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: #f8fafc; border-radius: 8px; position: sticky; bottom: 0; }
.credit-footer b { color: var(--text); font-variant-numeric: tabular-nums; }
.color-row { display: flex; gap: 6px; align-items: center; } .color-row input[type=color] { width: 44px; height: 36px; padding: 2px; margin-top: 4px; }
.module-list { display: flex; flex-direction: column; gap: 6px; }
.module-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.module-row .mt { font-weight: 600; font-size: 13px; } .module-row .md { font-size: 11px; color: var(--muted); }
.module-row .switch { width: 38px; height: 22px; border-radius: 999px; background: #d1d5db; position: relative; cursor: pointer; border: 0; padding: 0; }
.module-row .switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.module-row .switch.on { background: var(--accent); } .module-row .switch.on::after { left: 18px; }
.pill.small { font-size: 10px; padding: 1px 6px; }
.toolbar .url.live { color: var(--ok); font-weight: 600; }

/* ===== v1.1.0 ===== */
/* 제품명 옆 버전 */
h1 .ver { font-size: 11px; font-weight: 600; color: #3730a3; background: #eef2ff; border-radius: 999px; padding: 2px 8px; vertical-align: middle; margin-left: 4px; }
/* ? 도움말: 마우스오버/클릭 시 설명 풍선 */
.help { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #c7d2fe; background: #eef2ff; color: #3730a3; font-size: 11px; font-weight: 700; padding: 0; margin-left: 4px; cursor: help; position: relative; vertical-align: middle; line-height: 1; }
/* v1.1.4: 풍선은 body 끝의 #helpTip 하나를 공유하고 JS 가 화면 안에 들어오도록 위치를 계산한다 */
.help-tip { position: fixed; z-index: 1000; width: 300px; max-width: calc(100vw - 16px); background: #0f172a; color: #e2e8f0; font-size: 12px; line-height: 1.55; padding: 10px 12px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.3); white-space: normal; pointer-events: none; }
.help-tip::before { content: ''; position: absolute; width: 10px; height: 10px; background: #0f172a; transform: rotate(45deg); left: var(--ax, 50%); margin-left: -5px; }
.help-tip.below::before { top: -5px; } .help-tip.above::before { bottom: -5px; }
/* 수정 지시 카드 강조 */
.update-card { border: 2px solid var(--accent); background: #f8faff; }
.update-card h2 { color: #1e3a8a; }
.update-card #fInstruction { font-size: 15px; line-height: 1.55; min-height: 150px; border: 2px solid #c7d2fe; background: #fff; }
.update-card #fInstruction:focus { border-color: var(--accent); outline: 3px solid #dbe4ff; }
.update-card button.big { padding: 12px; font-size: 15px; margin: 6px 0 10px; }
.update-tools { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 6px 0; }
.inline-row { display: flex; align-items: center; gap: 6px; } .inline-row select { width: auto; margin: 0; }
.dropzone.slim { padding: 8px; } .dropzone.slim .dz-text { font-size: 12px; }
.spacer { flex: 1; }
.ghost.danger { color: #991b1b; border-color: #fecaca; }
/* 등급 안내 표 */
.tier-guide { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; font-size: 12px; }
.tier-guide table { width: 100%; border-collapse: collapse; } .tier-guide th, .tier-guide td { padding: 4px 6px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tier-guide tr.on td { background: #eef2ff; } .tier-guide .cost { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.tier-guide .note { color: var(--muted); margin-top: 4px; }
/* 작업 단계 표시 */
.steps-strip { display: flex; gap: 4px; list-style: none; margin: 0 0 8px; padding: 0; counter-reset: s; }
.steps-strip li { flex: 1; font-size: 11px; color: var(--muted); border-top: 3px solid #e5e7eb; padding-top: 4px; }
.steps-strip li.done { border-top-color: var(--ok); color: var(--ok); } .steps-strip li.now { border-top-color: var(--accent); color: var(--accent); font-weight: 600; }
/* 모바일 미리보기 */
.frame-wrap { flex: 1; min-height: 0; display: flex; }
.frame-wrap iframe { width: 100%; height: 100%; border: 0; flex: 1; }
.preview.mobile .frame-wrap { background: #e5e7eb; justify-content: center; align-items: flex-start; overflow: auto; padding: 14px 0; }
.preview.mobile .frame-wrap iframe { flex: none; width: 390px; height: 820px; max-height: calc(100% - 28px); border: 12px solid #111827; border-radius: 34px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.3); }

/* ===== v1.1.2 ===== */
.lang-switch select { width: auto; margin: 0; padding: 3px 6px; font-size: 12px; }
.tier-guide table { table-layout: fixed; } .tier-guide td, .tier-guide th { overflow-wrap: anywhere; } .tier-guide .cost { white-space: normal; text-align: right; }
.tier-guide .tg-name { width: 48px; } .tier-guide .tg-cost { width: 92px; }
.done-banner { border: 2px solid #a7f3d0; background: #ecfdf5; }
.done-banner .db-head { display: flex; align-items: center; gap: 10px; } .done-banner .db-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.done-banner #dbSummary { margin-top: 8px; white-space: pre-wrap; color: #065f46; }
.wm-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 16px; width: 480px; max-width: 95vw; } .wm-dialog.wide { width: 720px; } .wm-dialog::backdrop { background: rgba(15,23,42,.45); } .wm-dialog h2 { margin-bottom: 10px; }
.detail-files li { display: flex; gap: 8px; font-size: 12px; padding: 3px 0; border-bottom: 1px solid var(--line); } .detail-files .fs { width: 34px; font-weight: 700; } .detail-files .A { color: var(--ok); } .detail-files .M { color: #1d4ed8; } .detail-files .D { color: #991b1b; }
.usage-group td { background: #f8fafc; font-weight: 600; } .usage-sub td { color: var(--muted); font-size: 11px; }
#usageTable tr.usage-group { cursor: pointer; }

/* ===== v1.1.4: 좌측 상하 분할 ===== */
.left { padding: 0; gap: 0; overflow: hidden; }
.top-pane { flex: none; padding: 12px 14px 8px; border-bottom: 2px solid var(--line); background: #fbfcfe; display: flex; flex-direction: column; gap: 8px; }
.bottom-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.main-tabs { padding-bottom: 0; border-bottom: 0; }
.status-strip { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
.status-strip .ss-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .status-strip .ss-site { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-strip .progress { padding: 6px 8px; } .status-strip .ptok { min-width: 96px; } .status-strip .ptok .v { font-size: 14px; }
.status-strip .steps-strip { margin-bottom: 4px; }
.usage-scroll { max-height: 190px; overflow-y: auto; } .usage-scroll table thead th { position: sticky; top: 0; background: #fff; z-index: 1; } .usage-scroll table tfoot td { position: sticky; bottom: 0; background: #f8fafc; }
.usage-detail table { width: 100%; border-collapse: collapse; font-size: 12px; } .usage-detail th, .usage-detail td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; } .usage-detail td.num, .usage-detail th.num { text-align: right; font-variant-numeric: tabular-nums; }
.publish-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; } .publish-line a { font-weight: 600; word-break: break-all; }


/* ===== v1.1.6 ===== */
/* 캐시 상세: 넓은 대화상자 + 고정 레이아웃으로 좌우 스크롤 없이 */
#usageDialog { width: min(1040px, 96vw); }
#usageDialog .table-wrap { overflow-x: hidden; }
.usage-detail table { table-layout: fixed; }
.usage-detail th, .usage-detail td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.usage-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .usage-periods { grid-template-columns: 1fr; } }
.usage-detail col.c-time { width: 92px; } .usage-detail col.c-amt { width: 92px; } .usage-detail col.c-kind { width: 64px; } .usage-detail col.c-st { width: 70px; }
.fb-env-note { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 6px 0; color: var(--muted); }
.fb-env-note pre { font-size: 11px; white-space: pre-wrap; margin: 6px 0 0; max-height: 160px; overflow: auto; color: var(--text); }

/* ===================== v1.2.0 ===================== */
/* 왼쪽 패널 폭은 관리자 테마(--left-w)로 바꿀 수 있다 (기본 460px) */
.app { grid-template-columns: var(--left-w, 460px) 1fr; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } }
/* 헤더: 1줄 = 제품명·버전 ··· 잔여 캐시(오른쪽 정렬), 2줄 = 사용자·관리·제안·언어·로그아웃 */
.hdr.v12 { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.hdr-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hdr-line .spacer { flex: 1; }
.hdr-line h1 { margin: 0; white-space: nowrap; }
.hdr-line.small { font-size: 12px; flex-wrap: wrap; row-gap: 4px; }
.hdr-line.small select { width: auto; margin: 0; padding: 3px 6px; font-size: 12px; }
.credit-pill { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border: 1px solid #c7d2fe; border-radius: 999px; background: var(--panel, #fff); font-size: 12px; color: var(--muted); white-space: nowrap; transition: transform .15s; }
.credit-pill b { font-size: 15px; color: #1e3a8a; font-variant-numeric: tabular-nums; }
.credit-pill.neg { border-color: #fecaca; } .credit-pill.neg b { color: #b91c1c; }
.credit-pill.live b::after { content: ' ·'; color: var(--accent); animation: wmBlink 1s infinite; }
.credit-pill.bump { transform: scale(1.06); }
@keyframes wmBlink { 50% { opacity: .2; } }
/* 상단 사이트 선택: 고르면 아래 작업 영역과 오른쪽 미리보기가 함께 바뀐다 */
.site-picker { display: flex; align-items: center; gap: 6px; }
.site-picker select { flex: 1; min-width: 0; margin: 0; font-weight: 600; border: 2px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.site-picker .pill:empty { display: none; }
.site-meta-top { display: flex; flex-direction: column; gap: 1px; font-size: 12px; min-width: 0; }
.site-meta-top b { display: none; }   /* 제목은 선택 상자에 이미 보이므로 운영 주소 줄만 */
.site-meta-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 생성 탭: 1 어떻게 만들까요? / 2 기존 사이트 관리 */
#existingCard .mode-opt { border-style: dashed; }
/* AI에게 맡기기 입력창: 크게, 구분·강조 */
.ai-main-label { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.ai-main-input { min-height: 220px; font-size: 15px; line-height: 1.6; padding: 12px 14px; border: 2px solid #9db8f5; background: #fafcff; box-shadow: 0 0 0 4px rgba(47,111,237,.06); }
.ai-main-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,111,237,.15); }
/* 사이트 현황 분석 카드 */
#anBody .an-line { margin: 2px 0; } #anBody .an-line b { color: var(--muted); font-weight: 600; margin-right: 2px; }
#anBody .an-summary { margin: 8px 0 4px; line-height: 1.55; }
#anBody .an-list { margin: 2px 0 6px; padding-left: 18px; } #anBody .an-list li { margin: 1px 0; }
/* 내 제안·오류 신고: 상태 배지 + 운영팀 답변 펼침 */
#myFeedbackList .fb-item { display: block; padding: 6px 0; }
.fb-head { display: flex; align-items: center; gap: 6px; } .fb-head .fb-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fb-st { font-size: 11px; padding: 1px 7px; border-radius: 999px; white-space: nowrap; background: #eef2ff; color: #3730a3; }
.fb-st.reviewing { background: #fef3c7; color: #92400e; } .fb-st.done, .fb-st.rejected { background: #d1fae5; color: #065f46; }
.fb-answer { margin: 4px 0 0 4px; padding: 6px 8px; border-left: 3px solid var(--ok); background: #f0fdf4; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* 캐시 상세 내역 (사용자 제안 반영): 가로 스크롤 없음, 위 요약·합계와 아래 닫기는 고정, 가운데 상세 내역만 세로 스크롤 */
#usageDialog { width: min(1040px, 96vw); max-height: 92vh; padding: 0; overflow: hidden; }
#usageDialog[open] { display: flex; }
#usageDialog > form { display: flex; flex-direction: column; width: 100%; max-height: 92vh; min-height: 0; padding: 14px 16px 12px; }
#usageDialog h2 { flex: none; }
#usageDialogBody { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
#usageDialog .ud-head { flex: none; }
#usageDialog .ud-head .usage-periods .table-wrap { max-height: 30vh; overflow-y: auto; }
#usageDialog .ud-scroll { flex: 1; min-height: 120px; overflow-y: auto; overflow-x: hidden; border-top: 1px solid var(--line); padding-top: 4px; }
#usageDialog .ud-scroll th { position: sticky; top: 0; background: var(--panel, #fff); z-index: 1; }
#usageDialog > form > .row { flex: none; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; }
#usageDialog .usage-detail th, #usageDialog .usage-detail td { padding: 3px 4px; }
#usageDialog .usage-detail col.c-time { width: 84px; } #usageDialog .usage-detail col.c-amt { width: 80px; } #usageDialog .usage-detail col.c-kind { width: 58px; } #usageDialog .usage-detail col.c-st { width: 62px; }
@media (max-width: 720px) { #usageDialog .ud-head .usage-periods .table-wrap { max-height: 18vh; } }

/* v1.3.2 관리 탭 메일 상태 줄 */
.mail-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* v1.3.4 사이트 복사하기 설명 */
.copy-explain { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 6px 0 10px; font-size: 13px; line-height: 1.6; background: color-mix(in srgb, var(--accent, #2f6fed) 4%, var(--panel, #fff)); }
.copy-explain p { margin: 0 0 6px; } .copy-explain ul { margin: 0 0 6px; padding-left: 18px; } .copy-explain li { margin: 2px 0; }

/* v1.3.5 검색·AI 최적화 생성 옵션 */
.seo-opts { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; margin: 8px 0 12px; }
.seo-opts .chk, .opt-sec .chk, .reg-engine .chk, #optBody .chk { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); margin: 4px 0; }
.seo-opts .chk input, #optBody .chk input { width: auto; margin: 0; }
/* 검토 화면 */
.opt-sec { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 8px 0; } .opt-sec > summary { font-weight: 700; cursor: pointer; }
.opt-page { border-top: 1px solid var(--line); padding: 8px 0; } .opt-page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; } .opt-page-head .chk { margin: 0; }
.opt-field { display: block; margin: 4px 0; } .opt-field > span:first-child { font-size: 12px; color: var(--muted); }
.opt-count { font-size: 11px; margin-left: 6px; } .opt-count.ok { color: var(--ok, #1a8f5a); } .opt-count.warn { color: #b45309; } .opt-count.bad { color: #b91c1c; font-weight: 700; }
.opt-more > summary { font-size: 12px; color: var(--muted); cursor: pointer; }
/* 검색사이트 등록 */
.reg-engine { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.reg-steps { margin: 6px 0; padding-left: 20px; } .reg-steps li { margin: 6px 0; } .reg-steps li.done > b { text-decoration: line-through; color: var(--muted); }
.reg-actor { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: #eef2ff; color: #3730a3; } .reg-actor.manual { background: #fef3c7; color: #92400e; }
.reg-steps .muted { overflow-wrap: anywhere; }

/* ===================== v1.3.10: 번역문 길이와 무관하게 화면 폭 유지 =====================
 * 1.3.5 일본어 빌더(390×844)는 약 878px 로 가로 넘침이 있었다. 단어마다 길이를 제한하는 대신 "창(컨테이너)" 폭을
 * 화면에 고정하고, 그 안의 글자·버튼·탭은 줄바꿈하게 한다 — 번역자가 글자 수를 맞추지 않아도 된다.
 * 표·막대그래프처럼 줄바꿈할 수 없는 것만 자기 상자 안에서 가로 스크롤한다. */
html, body { max-width: 100%; overflow-x: hidden; }
.app, .app > *, .left, .right, .top-pane, .bottom-pane, .tabpane, .card, .status-strip, .toolbar, .preview, .hdr, .hdr-line, .site-picker, .mode-grid, .two, .row { min-width: 0; max-width: 100%; }
.card, .status-strip, label, p, li, td, th, h1, h2, h3, .muted, .small, .mode-opt, .mode-title, .mode-desc, .opt-card, .pill, .badge, .credit-pill, .field-label, summary { overflow-wrap: anywhere; word-break: normal; }
button, .btn, .main-tabs button, .small-btn { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.toolbar, .hdr-line, .row, .site-picker { flex-wrap: wrap; }
select, input, textarea { max-width: 100%; }
.table-wrap, .bars, .usage-scroll { max-width: 100%; overflow-x: auto; }
.status-strip .ss-head { flex-wrap: wrap; } .status-strip .ss-site { white-space: normal; }
@media (max-width: 900px) { .toolbar .url { flex-basis: 100%; } .hdr-line h1 { white-space: normal; } }

/* v1.3.10 템플릿 고르기 */
.tpl-layout { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 8px; margin: 8px 0; }
@media (max-width: 520px) { .tpl-layout { grid-template-columns: 1fr; } }
.tpl-tree { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.tpl-dir { text-align: start; border: 0; background: transparent; padding: 4px 8px; font-size: 12px; border-radius: 6px; } .tpl-dir.on { background: color-mix(in srgb, var(--accent, #2f6fed) 14%, transparent); font-weight: 700; }
.tpl-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.tpl-card { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; } .tpl-card.on { border-color: var(--accent, #2f6fed); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #2f6fed) 25%, transparent); }
.tpl-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; } .tpl-tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); background: transparent; }
/* v1.3.10 다국어 생성 옵션·관리 탭 다국어 카드·최적화 언어 탭 */
.lang-opts { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; margin: 8px 0 12px; }
.lang-opts .lang-default select { max-width: 320px; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.lang-chip { display: inline-flex !important; align-items: center; gap: 4px; font-size: 13px; color: var(--text); margin: 0; }
.lang-chip input { width: auto; margin: 0; }
.lang-chip.off { opacity: .45; }
.opt-langs { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 10px; }
.opt-langs button.on { background: var(--accent, #2f6fed); color: #fff; border-color: transparent; }
#langBody .lang-now { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
#langBody .lang-now a { font-size: 13px; }
/* v1.3.16 다국어 품질 게이트·로케일 메타 표 */
.q-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.q-table th, .q-table td { text-align: start; padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.q-table td.ok { color: #059669; } .q-table td.bad { color: #dc2626; font-weight: 600; }
.q-table td .small-btn { margin: 0 2px 2px 0; }
/* v1.4.0 (요구 13): 언어 선택 칩 — 줄 간격을 고르게 하고, 마지막 줄 아래에도 줄 사이 간격만큼 여백을 둔다
   (예전에는 마지막 줄이 상자 끝·다음 항목에 붙어 아래가 잘린 것처럼 보였다) */
.lang-chips { row-gap: 8px; margin-bottom: 8px; align-items: center; }
.lang-chip { line-height: 1.6; min-height: 1.6em; }
.lang-opts { padding-bottom: 10px; }
.lang-opts > :last-child, .lang-opts select { margin-bottom: 0; }
.lang-opts .lang-xdef { display: block; margin-top: 4px; }
#langBody .lang-chips { margin-bottom: 12px; }

/* ---- v1.4.0 도메인 탭 ---- */
#pane-domains .card { margin-bottom: 12px; }
.dom-sub-row { align-items: center; flex-wrap: wrap; }
.dom-sub-row input { flex: 1 1 140px; min-width: 0; }
.dom-suffix { font-weight: 600; color: var(--muted, #64748b); }
.dom-tlds { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; }
.dom-results, .dom-table-wrap { overflow-x: auto; max-width: 100%; }
.dom-table { width: 100%; font-size: 13px; }
.dom-table .dom-val { word-break: break-all; max-width: 260px; }
.dom-item { border-top: 1px solid var(--line); padding: 10px 0; }
.dom-item:first-of-type { border-top: 0; }
.dom-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.dom-row { flex-wrap: wrap; margin-top: 6px; }
.dom-row select { flex: 1 1 160px; min-width: 0; }
.dom-row .primary { flex: 0 0 auto; }
.dom-wait { background: #fef9c3; border: 1px solid #fde68a; border-radius: 8px; padding: 6px 10px; color: #713f12; }
.dom-add { flex-wrap: wrap; margin-top: 8px; }
.dom-add input { flex: 1 1 120px; min-width: 0; }
.dom-add .dom-prio { flex: 0 1 90px; }
.dom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 10px; margin: 8px 0; }
.dom-cost { font-size: 18px; font-weight: 700; margin: 6px 0; }
details.dom-contact > summary { cursor: pointer; font-weight: 600; }
.dom-search { align-items: center; }
.dom-search input { flex: 1 1 0; width: auto; min-width: 0; }
.dom-search .primary { flex: 0 0 auto; }
.dom-tlds label.inline { display: inline-flex; align-items: center; gap: 4px; margin: 0; width: auto; }
.dom-tlds label.inline input { width: auto; margin: 0; }
.dom-table td, .dom-table th { white-space: normal; vertical-align: middle; padding: 4px 6px; }
.dom-table .dom-val { max-width: 200px; font-family: ui-monospace, monospace; font-size: 12px; }
.dom-table td:first-child, .dom-table th, .dom-table td:last-child, .dom-table .small-btn { white-space: nowrap; overflow-wrap: normal; }

/* v1.4.5 사용자 첫 화면 페이지 (관리자 지정) — 오른쪽 미리보기 영역 안에서만 전체를 채움 (v1.4.15: 전용 상자 #welcomeBox, .preview 기준 절대 위치) */
.welcome-box { position: absolute; inset: 0; background: #fff; display: flex; }
.welcome-frame { width: 100%; height: 100%; border: 0; display: block; flex: 1; }

/* ===================== v1.4.14 ===================== */
/* (요구 4) 상태·운영 주소 줄: 사이트를 고르지 않아도 같은 높이를 차지해 탭 줄이 위아래로 움직이지 않는다 */
.site-meta-top { min-height: 18px; }
.site-meta-top span { line-height: 18px; }
/* v1.4.15: 클래스 이름 no-site (1.4.14 의 .empty 는 미리보기 빈 화면의 전체 덮개 규칙과 겹쳐 클릭을 막았다) */
.site-meta-top.no-site span { color: var(--muted); font-style: italic; }
/* (요구 2) 관리 탭 오른쪽 "사이트 관리 창": 위 도구 줄(보기 전환·새로고침·새 탭) + 본문(사이트 관리자 iframe 또는 현황) */
.manage-view { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--panel, #fff); }
.mv-bar .url { font-family: inherit; color: var(--text); font-weight: 600; }
.mv-bar button.active { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.mv-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
#mvAdminFrame { flex: 1; width: 100%; height: 100%; border: 0; background: #fff; }
.mv-status { flex: 1; overflow: auto; padding: 14px 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.mv-status .mv-sec { display: flex; flex-direction: column; gap: 6px; }
.mv-status .field-label { font-size: 13px; font-weight: 700; color: var(--text); }
.mv-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 0; }
.mv-grid .tot .v { font-size: 15px; } .mv-grid .tot .d { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.mv-status .stat-list { max-height: 220px; }
@media (max-width: 900px) { .manage-view { min-height: 60vh; } }
