/* 관리 화면 스타일: 휴대폰 화면을 먼저 맞춘다. 외부 글꼴·CDN 없이 저장소 안 파일만 쓴다. */
@font-face { font-family: 'Pretendard'; src: url('../fonts/PretendardVariable.woff2') format('woff2');
             font-weight: 45 920; font-display: swap; }
:root { --bg: #f6f7f9; --card: #fff; --line: #e3e6ea; --text: #16181d; --muted: #6b7280; --accent: #e1306c;
        --ok: #15803d; --warn: #b45309; --bad: #b91c1c; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Pretendard, system-ui, sans-serif; background: var(--bg); color: var(--text);
       font-size: 15px; line-height: 1.5; }
header { position: sticky; top: 0; z-index: 5; background: #111; color: #fff; padding: 10px 16px;
         display: flex; align-items: center; justify-content: space-between; }
header b { font-size: 16px; }
header form { margin: 0; }
nav.tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-bottom: 1px solid var(--line);
           position: sticky; top: 44px; z-index: 4; }
nav.tabs a { text-align: center; padding: 12px 4px; color: var(--muted); text-decoration: none; font-weight: 700; }
nav.tabs a.on { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.card h2 { font-size: 16px; margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 13px; }
.msg { background: #fff7ed; border: 1px solid #fed7aa; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.warn { background: #fef2f2; border: 1px solid #fecaca; color: var(--bad); padding: 8px 10px; border-radius: 10px; margin: 6px 0; font-size: 13px; }
label { display: block; font-size: 13px; font-weight: 700; color: #374151; margin: 10px 0 4px; }
input[type=text], input[type=number], input[type=url], input[type=datetime-local], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd5dc; border-radius: 10px; font: inherit; background: #fff; }
textarea { min-height: 84px; }
button, .btn { display: inline-block; border: 0; border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 700;
               background: #111; color: #fff; cursor: pointer; text-decoration: none; }
button.primary, .btn.primary { background: var(--accent); }
button.ghost, .btn.ghost { background: #fff; color: #111; border: 1px solid var(--line); }
button.small { padding: 6px 10px; font-size: 13px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 200px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eef0f3; vertical-align: top; }
th { color: var(--muted); font-weight: 700; white-space: nowrap; }
.scroll { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef0f3; }
.b-done, .b-published, .b-active, .b-sent, .b-ok { background: #dcfce7; color: var(--ok); }
.b-failed, .b-error, .b-warning { background: #fee2e2; color: var(--bad); }
.b-skipped, .b-paused { background: #fef3c7; color: var(--warn); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cards img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
pre.preview { white-space: pre-wrap; background: #f3f4f6; padding: 10px; border-radius: 10px; font-family: inherit; }
.result { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-bottom: 1px solid #eef0f3; padding: 8px 0; }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } main { padding: 12px; } }
