/* 오토애드 공통 디자인 기준 — 소개 사이트와 관리 화면이 같이 쓴다(색 · 글자 · 버튼 · 카드 · 입력 · 표 · 배지) */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("/static/fonts/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-display: swap; src: url("/static/fonts/Pretendard-Medium.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("/static/fonts/Pretendard-SemiBold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("/static/fonts/Pretendard-Bold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 800; font-display: swap; src: url("/static/fonts/Pretendard-ExtraBold.subset.woff2") format("woff2"); }

:root {
  --brand: #E8212B; --brand-600: #CC1820; --brand-700: #A9121A; --brand-50: #FFF1F1; --brand-100: #FFE1E2;
  --ink: #12151A; --ink-2: #333A45; --sub: #5E6775; --mute: #8C95A3; --faint: #B6BDC8;
  --line: #E7EAEF; --line-2: #D5DAE2; --bg: #F4F5F7; --surface: #fff; --surface-2: #FAFBFC;
  --ok: #0A9A69; --ok-bg: #E6F7F0; --warn: #B26B00; --warn-bg: #FFF3DC; --info: #2458E6; --info-bg: #EAF0FF;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --sh-sm: 0 1px 2px rgba(18, 21, 26, .05); --sh: 0 4px 16px rgba(18, 21, 26, .06); --sh-lg: 0 18px 48px rgba(18, 21, 26, .12);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --wrap: 1920px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; letter-spacing: -.011em; word-break: keep-all; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -.025em; font-weight: 700; }
a { color: var(--info); text-decoration: none; } a:hover { text-decoration: underline; }
small { font-size: 12px; color: var(--mute); font-weight: 400; }
img, svg { vertical-align: middle; }
input, select, button, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* 버튼 — 한 가지 모양, 크기 3단계(.sm · 기본 · .lg), 종류 4가지(기본 · .primary · .ghost · .danger) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .05s; box-shadow: var(--sh-sm); }
.btn:hover { background: var(--surface-2); border-color: var(--faint); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(232, 33, 43, .3); }
.btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--sub); } .btn.ghost:hover { background: rgba(18, 21, 26, .05); color: var(--ink); }
.btn.danger { color: var(--brand-600); } .btn.danger:hover { background: var(--brand-50); border-color: var(--brand-100); }
.btn.on { color: var(--ok); border-color: #A9E2CC; } .btn.on:hover { background: var(--ok-bg); }
.btn.sm, .btn.small { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 7px; }
.btn.lg, .btn.big { height: 52px; padding: 0 26px; font-size: 16px; border-radius: var(--r); }
.btn.wide { width: 100%; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; transform: none; }
.link { border: 0; background: none; padding: 4px 6px; color: var(--sub); cursor: pointer; border-radius: 6px; } .link:hover { color: var(--ink); background: rgba(18, 21, 26, .05); }

/* 입력 */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input:not([type]), select, textarea {
  height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); min-width: 0; transition: border-color .12s, box-shadow .12s; }
textarea { height: auto; padding: 10px 12px; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232, 33, 43, .14); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); }
select { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%235E6775' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }

/* 카드 */
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); }
.panel { padding: 20px; } .panel + .panel { margin-top: 16px; }
.panel > h2, .panel > h3 { font-size: 16px; margin-bottom: 4px; } .panel > .desc { color: var(--sub); font-size: 13px; margin: 0 0 16px; }

/* 배지 */
.st, .tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; background: #EEF0F3; color: var(--sub); white-space: nowrap; }
.st-run, .tag.ok { background: var(--ok-bg); color: var(--ok); } .st-capped, .st-check, .tag.bad { background: var(--brand-50); color: var(--brand-600); } .st-wait, .tag.warn { background: var(--warn-bg); color: var(--warn); } .tag.info { background: var(--info-bg); color: var(--info); }

/* 표 */
.tablewrap { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; white-space: nowrap; font-size: 14px; }
.grid th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); color: var(--sub); font-size: 12px; font-weight: 600; text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.grid td { padding: 10px 12px; border-bottom: 1px solid #F0F2F5; vertical-align: middle; }
.grid tr:last-child td { border-bottom: 0; }
.grid tbody tr:hover td { background: var(--surface-2); }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; }

.empty, .loading { color: var(--sub); padding: 40px 12px; text-align: center; }
.form-msg { color: var(--brand-600); min-height: 1.2em; margin: 4px 0; font-size: 13px; } .form-msg.ok { color: var(--ok); }
