[v-cloak] { display: none; }
#adminCtrl_app { font: 14px/1.5 -apple-system, "Malgun Gothic", sans-serif; color: #1f2937; background: #f5f7fb; min-height: 100vh; }
.ad-login { max-width: 360px; margin: 80px auto; background: #fff; padding: 28px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 10px; }
.ad-login h2 { margin: 0 0 6px; font-size: 18px; }
.ad-err { color: #d93025; font-size: 13px; }

.ad-top { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: #fff; border-bottom: 1px solid #e3e7ee; position: sticky; top: 0; z-index: 5; }
.ad-top h1 { font-size: 17px; margin: 0; }
.ad-tabs { display: flex; gap: 4px; flex: 1; }
.ad-tabs button { border: none; background: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; font: inherit; color: #4b5563; }
.ad-tabs button.on { background: #e8f0fe; color: #1a73e8; font-weight: 600; }
.ad-pane { padding: 16px 20px; }
.ad-split { display: flex; gap: 16px; align-items: flex-start; }
.ad-left { flex: 1; min-width: 0; }
.ad-right { flex: 1.2; min-width: 0; background: #fff; border: 1px solid #e3e7ee; border-radius: 10px; padding: 14px; }
.ad-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.ad-ttl { font-weight: 700; font-size: 15px; margin-right: auto; }
.ad-bar select, .ad-bar input, .ad-form input, .ad-form select, .ad-form textarea, .ad-login input, .ad-reply textarea, .ad-inline select, .ad-inline input, .ad-faq input {
  border: 1px solid #d5dbe5; border-radius: 6px; padding: 6px 8px; font: inherit; background: #fff; }

.ad-btn { border: 1px solid #d5dbe5; background: #fff; border-radius: 6px; padding: 6px 12px; cursor: pointer; font: inherit; color: #1f2937; text-decoration: none; display: inline-block; }
.ad-btn:hover { background: #f1f3f6; }
.ad-btn.pri { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.ad-btn.pri:hover { background: #1765cc; }
.ad-btn.sm { padding: 2px 8px; font-size: 12px; }
.ad-btn:disabled { opacity: .5; cursor: default; }

.ad-tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e3e7ee; border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.ad-tbl th { background: #f8f9fb; font-weight: 600; font-size: 13px; color: #4b5563; }
.ad-tbl th, .ad-tbl td { padding: 7px 10px; border-bottom: 1px solid #eef0f4; text-align: left; vertical-align: middle; }
.ad-tbl tbody tr { cursor: default; }
.ad-tbl tbody tr:hover { background: #fafbfd; }
.ad-tbl tr.sel { background: #e8f0fe !important; }
.ad-left .ad-tbl tbody tr, .ad-tbl tbody tr[class] { cursor: pointer; }
.ad-ell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-sub { color: #6b7280; font-size: 12px; }
.ad-bad { color: #d93025; font-weight: 600; }
.ad-empty { text-align: center; color: #9aa3af; padding: 24px !important; }
.ad-help { color: #6b7280; font-size: 12px; }

.ad-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.ad-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #4b5563; }
.ad-form .full { grid-column: 1 / -1; }
.ad-form textarea { resize: vertical; }
.ad-lbl { font-size: 13px; color: #4b5563; margin-bottom: 4px; }
.ad-faq { display: flex; gap: 6px; margin-bottom: 6px; }
.ad-faq input { flex: 1; }
.ad-inline { display: flex; gap: 8px; align-items: center; }
.ad-actions { display: flex; gap: 8px; margin-top: 14px; }

.ad-box { background: #fff; border: 1px solid #e3e7ee; border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.ad-box-ttl { font-weight: 600; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.ad-hit { padding: 6px 0; border-top: 1px dashed #e3e7ee; }
.ad-hit-txt { color: #4b5563; font-size: 13px; white-space: pre-wrap; }
.ad-pre { white-space: pre-wrap; font-size: 13px; padding: 6px 0; border-top: 1px dashed #e3e7ee; }

.ad-chat { display: flex; flex-direction: column; height: calc(100vh - 110px); }
.ad-msgs { flex: 1; overflow-y: auto; background: #f5f7fb; border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ad-msg { max-width: 85%; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #e3e7ee; }
.ad-msg.sU { align-self: flex-end; background: #e8f0fe; border-color: #c9dafc; }
.ad-msg.sA { border-color: #a8dab5; background: #effaf2; }
.ad-msg-who { font-size: 11px; color: #6b7280; }
.ad-msg-txt { white-space: pre-wrap; }
.ad-reply { display: flex; gap: 8px; margin-top: 10px; }
.ad-reply textarea { flex: 1; resize: none; }

/* 팝업은 화면 상단 근처에 표시 */
.ad-modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 20; display: flex; justify-content: center; align-items: flex-start; padding-top: 40px; }
.ad-modal { background: #fff; border-radius: 12px; width: 760px; max-width: calc(100vw - 32px); max-height: calc(100vh - 80px); overflow-y: auto; padding: 18px 20px; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.ad-modal-head { font-weight: 700; font-size: 16px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.ad-toast { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 8px; background: #1f2937; color: #fff; z-index: 30; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.ad-toast.err { background: #d93025; }
.ad-key { display: inline-block; padding: 6px 10px; background: #f1f3f6; border-radius: 6px; font: 13px Consolas, monospace; margin-right: 8px; user-select: all; }

/* 제공 API (실제 호출) */
.ad-ext { display: flex; gap: 14px; align-items: flex-start; }
.ad-ext-list { width: 270px; flex: none; background: #fff; border: 1px solid #e3e7ee; border-radius: 10px; padding: 8px; position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow-y: auto; }
.ad-ext-key { padding: 4px 6px 8px; border-bottom: 1px solid #eef0f4; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.ad-ext-grp { font-size: 11px; font-weight: 700; color: #6b7280; padding: 10px 6px 4px; }
.ad-ext-api { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.ad-ext-api:hover { background: #f3f6fb; }
.ad-ext-api.on { background: #e8f0fe; color: #1a4fa0; }
.ad-ext-no { font-size: 11px; color: #1a73e8; width: 40px; flex: none; }
.ad-ext-nm { flex: 1; }
.ad-ext-tag { font-size: 10px; background: #fff3d6; color: #8a6100; border-radius: 8px; padding: 0 6px; margin-left: 6px; }
.ad-ext-vars label { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; color: #4b5563; padding: 2px 6px; }
.ad-ext-vars input { width: 130px; font-size: 11px; padding: 2px 5px; }
.ad-ext-main { flex: 1; min-width: 0; }
.ad-ext-path { margin-left: 8px; background: #f1f3f6; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.ad-ext-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ad-ext-bar > b { margin-right: auto; }
.ad-ext-json { width: 100%; box-sizing: border-box; font: 12px/1.5 Consolas, "D2Coding", monospace; resize: vertical; }
.ad-ext-pre { margin: 0; background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 8px; font: 12px/1.5 Consolas, "D2Coding", monospace; max-height: 480px; min-height: 40px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.ad-ext-pre.sm { max-height: 220px; font-size: 11px; }
.ad-ext-badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.ad-ext-badge.ok { background: #e6f4ea; color: #137333; }
.ad-ext-badge.bad { background: #fce8e6; color: #c5221f; }
.ad-ext-badge.gray { background: #eef0f3; color: #6b7280; }
.ad-ext-target { margin-top: 6px; font-size: 12px; background: #f3f7ff; border: 1px solid #d6e2fb; border-radius: 6px; padding: 4px 8px; color: #374151; }
