/* 간편 관리자 화면 (HM-SITEADMIN 간편 관리자 키트 v1) — 흰 바탕·회색·검정. 상태 글자색: 기다림 #1a56db · 끝 #1d2433 · 하는 중 #e5737a */
:root { --ink: #1d2433; --sub: #6b7280; --line: #e5e7eb; --bg: #fff; --soft: #f6f7f8; --wait: #1a56db; --now: #e5737a; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
[hidden] { display: none !important; }
.sa { max-width: 720px; margin: 0 auto; padding: 16px; }
h1 { font-size: 24px; margin: 32px 0 4px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=password], textarea { width: 100%; font: inherit; color: inherit; padding: 12px; border: 1px solid #c9ccd1; border-radius: 8px; background: #fff; }
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.sa-sub { color: var(--sub); font-size: 14px; margin: 6px 0; }
.sa-msg { min-height: 24px; margin: 12px 0; color: var(--ink); font-weight: 600; }
.sa-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid #c9ccd1; border-radius: 8px; cursor: pointer; }
.sa-btn--main { background: var(--ink); color: #fff; border-color: var(--ink); }
.sa-btn[disabled] { opacity: .5; cursor: default; }
.sa-wide { width: 100%; margin: 12px 0; }
.sa-login form .sa-btn { width: 100%; margin-top: 16px; }
.sa-link { background: none; border: 0; font: inherit; color: var(--sub); text-decoration: underline; min-height: 44px; padding: 0 4px; cursor: pointer; }
.sa-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 8px; border-bottom: 1px solid var(--line); }
.sa-top strong { font-size: 18px; }
.sa-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sa-tabs button { flex: 1 0 auto; min-height: 44px; padding: 0 8px; font: inherit; color: var(--sub); background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.sa-tabs button[aria-current=true] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.sa-status { min-height: 24px; margin: 8px 0; font-weight: 600; }
.sa-status[data-state=now] { color: var(--now); }
.sa-status[data-state=done] { color: var(--ink); }
.sa-status[data-state=wait] { color: var(--wait); }
.sa-rows { list-style: none; margin: 8px 0; padding: 0; }
.sa-rows > li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sa-rows .sa-t { font-weight: 600; word-break: break-word; }
.sa-rows .sa-meta { color: var(--sub); font-size: 14px; }
.sa-rows .sa-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sa-rows .sa-acts .sa-btn { min-height: 44px; padding: 0 12px; font-size: 15px; }
.sa-tag { display: inline-block; font-size: 13px; padding: 1px 8px; border: 1px solid var(--ink); border-radius: 999px; margin-right: 4px; }
.sa-tag--wait { color: var(--wait); border-color: var(--wait); }
.sa-empty { color: var(--sub); padding: 16px 0; }
.sa-trash { margin-top: 16px; }
.sa-trash summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--sub); }
.sa-editor .sa-tools { display: flex; gap: 6px; margin-bottom: 6px; }
.sa-linkbox { display: grid; gap: 6px; margin-bottom: 6px; padding: 10px; background: var(--soft); border-radius: 8px; }
.sa-preview { margin: 8px 0; padding: 12px; background: var(--soft); border-radius: 8px; min-height: 48px; word-break: break-word; }
.sa-preview p { margin: 0 0 6px; }
.sa-preview a { color: var(--ink); }
.sa-thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; }
.sa-thumbs li { position: relative; width: 96px; }
.sa-thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.sa-thumbs .sa-btn { width: 96px; min-height: 36px; margin-top: 4px; font-size: 14px; padding: 0; }
.sa-file { position: relative; overflow: hidden; margin: 0; }
.sa-acts > .sa-btn { margin: 0; }
.sa-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sa-check { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; margin: 4px 0; }
.sa-check input { width: 22px; height: 22px; }
.sa-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.sa-cards { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 12px; }
.sa-cards > li { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.sa-cards .sa-t { font-weight: 700; }
.sa-cards img { width: 100%; max-height: 240px; object-fit: contain; background: var(--soft); border-radius: 6px; margin: 8px 0; display: block; }
.sa-cards .sa-noimg { padding: 32px 8px; text-align: center; color: var(--sub); background: var(--soft); border-radius: 6px; margin: 8px 0; }
.sa-cards .sa-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sa-cards textarea { min-height: 80px; margin: 8px 0; }
.sa-undo { margin: 8px 0 12px; padding: 12px; background: var(--soft); border-radius: 8px; }
.sa-undo .sa-btn { width: 100%; margin-top: 8px; }
.sa-log li { display: grid; grid-template-columns: 112px 1fr; gap: 8px; font-size: 15px; }
.sa-log .sa-meta { font-size: 13px; }
.sa-log .sa-undone { color: var(--sub); text-decoration: line-through; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
@media (max-width: 420px) { .sa { padding: 12px 16px; } .sa-log li { grid-template-columns: 1fr; gap: 0; } }
