:root { --blue: #1F3F9A; --sky: #DCEBF8; --ivory: #F7F2EA; --ink: #1d2433; --muted: #5d6677; --line: #d9e1ee; --ok: #12704f; --warn: #a2560c; --bad: #b3261e; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; background: #f4f7fb; color: var(--ink); font: 400 15px/1.6 Pretendard, "Noto Sans KR", system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--blue); color: #fff; font-weight: 600; min-height: 44px; }
button.ghost { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
button.danger { background: var(--bad); }
button:disabled { opacity: .45; cursor: default; }
.top { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: 1100px; margin: 0 auto; }
.brand { color: var(--blue); font: 600 18px/1.2 Georgia, serif; letter-spacing: .04em; }
.brand span { font: 600 14px/1 Pretendard, "Noto Sans KR", sans-serif; letter-spacing: 0; margin-left: 6px; color: var(--ink); }
.who { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }
.top form { margin: 0; }
.tabs { display: flex; gap: 4px; padding: 0 12px; max-width: 1100px; margin: 0 auto; overflow-x: auto; }
.tabs button { background: none; color: var(--muted); border-radius: 0; border-bottom: 3px solid transparent; padding: 10px 12px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.tabs i { font-style: normal; background: var(--bad); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.tabs i:empty { display: none; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.help { color: var(--muted); margin: 0 0 14px; }
.status-line { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.card h3 { margin: 0 0 4px; font-size: 16px; color: var(--blue); }
.card .now { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.card label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: 14px; }
.card input, .card textarea, .card select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.card textarea { min-height: 92px; resize: vertical; }
.count { font-size: 12px; color: var(--muted); text-align: right; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; background: #eef2f8; color: var(--muted); }
.badge.draft { background: #fff4e0; color: var(--warn); } .badge.submitted { background: #e6efff; color: var(--blue); }
.badge.rejected { background: #fde8e7; color: var(--bad); } .badge.approved { background: #e3f5ec; color: var(--ok); }
.note { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #fde8e7; color: var(--bad); font-size: 13px; }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.imgs label { margin: 0; font-weight: 400; border: 2px solid transparent; border-radius: 12px; padding: 4px; cursor: pointer; background: #f7f9fc; }
.imgs label:has(input:checked) { border-color: var(--blue); background: #eef3ff; }
.imgs img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.imgs input { width: auto; margin-right: 6px; }
.imgs span { font-size: 13px; }
.cmp { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin: 10px 0; }
.cmp div { background: #f7f9fc; border-radius: 10px; padding: 10px; font-size: 14px; white-space: pre-wrap; word-break: keep-all; }
.cmp small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.cmp img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.preview-actions { position: sticky; bottom: 0; display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0; background: linear-gradient(to top, #f4f7fb 70%, rgba(244, 247, 251, 0)); }
.pv { position: fixed; inset: 0; z-index: 20; background: rgba(15, 22, 40, .72); display: flex; flex-direction: column; }
.pv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; }
.pv-bar b { margin-right: auto; color: var(--blue); }
.pv-frame { flex: 1; display: flex; justify-content: center; align-items: flex-start; overflow: auto; padding: 12px; }
.pv-frame iframe { border: 0; background: #fff; border-radius: 10px; width: 100%; height: 100%; }
.pv-frame.mobile iframe { width: 390px; max-width: 100%; height: min(844px, 100%); box-shadow: 0 0 0 8px #222, 0 10px 30px rgba(0, 0, 0, .4); border-radius: 24px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1d2433; color: #fff; padding: 10px 16px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 30; max-width: 90vw; }
.toast.on { opacity: 1; }
.toast.err { background: var(--bad); }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 14px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f0f4fa; font-size: 13px; color: var(--muted); }
.invite-out { word-break: break-all; background: #fff8e6; border-radius: 8px; padding: 10px; font-size: 13px; }
.empty { color: var(--muted); padding: 20px; text-align: center; background: #fff; border-radius: 12px; border: 1px dashed var(--line); }
.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-box { background: #fff; border-radius: 16px; padding: 28px 24px; max-width: 440px; width: 100%; box-shadow: 0 10px 30px rgba(31, 63, 154, .08); }
.login-box h1 { color: var(--blue); font-size: 22px; margin: 16px 0 8px; }
.muted { color: var(--muted); font-size: 13px; }
@media (max-width: 600px) { .cmp { grid-template-columns: 1fr; } .who { font-size: 12px; } .brand span { display: none; } }
.help.mt { margin-top: 8px; }
.pre { white-space: pre-wrap; }
@media (max-width: 600px) { .preview-actions { flex-wrap: nowrap; gap: 6px; } .preview-actions button { flex: 1; padding: 8px 6px; font-size: 13px; } }
