/* 태산그룹 관리자 화면 — 사이트와 같은 검정·금색, 글꼴은 기기 기본 한글 글꼴 */
:root {
  --ink: #0b0a09;
  --gold: #d7a553;
  --gold-2: #b8873f;
  --bg: #f5f2ec;
  --card: #ffffff;
  --line: #e3dccf;
  --text: #1d1b18;
  --muted: #6f6a62;
  --ok: #2f6b3a;
  --danger: #a8321a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--text); word-break: keep-all;
  font: 15px/1.6 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
}
a { color: inherit; }
h1 { margin: 0; font-size: 24px; line-height: 1.3; }

.a-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px;
  padding: 12px clamp(16px, 4vw, 40px); background: var(--ink); color: #f3eee6; border-bottom: 1px solid rgba(215, 165, 83, 0.5);
}
.a-brand { display: flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font: 600 18px/1.2 'Times New Roman', serif; letter-spacing: 0.06em; }
.a-brand-mark { font: 300 20px/1 'Malgun Gothic', sans-serif; letter-spacing: 0.08em; }
.a-brand small { padding: 3px 9px; border: 1px solid rgba(215, 165, 83, 0.5); border-radius: 999px; color: #d8cfc1; font: 500 12.5px/1.2 'Malgun Gothic', sans-serif; letter-spacing: 0; }
.a-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.a-nav a { color: #e9e3d9; text-decoration: none; }
.a-nav a:hover { color: var(--gold); }
.a-nav form { margin: 0; }
.a-nav button { padding: 5px 12px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 6px; background: none; color: #e9e3d9; font: inherit; cursor: pointer; }
.a-nav button:hover { border-color: var(--gold); color: var(--gold); }

.a-main { max-width: 1100px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 64px; }
.a-bar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.a-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.a-back { display: inline-block; margin-bottom: 6px; color: var(--muted); font-size: 14px; text-decoration: none; }
.a-back:hover { color: var(--text); }

.a-card { padding: clamp(18px, 3vw, 28px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 3px rgba(40, 30, 15, 0.05); }
.a-narrow { display: grid; gap: 14px; max-width: 420px; margin: 48px auto; }
.a-field { display: grid; gap: 6px; margin: 0; }
.a-field > span { font-size: 14px; font-weight: 700; }
input:not([type]), input[type='text'], input[type='password'], input[type='date'], textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfc5b5; border-radius: 8px; background: #fff; color: inherit; font: inherit;
}
textarea { min-height: 220px; resize: vertical; line-height: 1.7; }
input:focus, textarea:focus { outline: 2px solid rgba(215, 165, 83, 0.55); outline-offset: 1px; border-color: var(--gold-2); }

.a-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px;
  border: 1px solid #cfc5b5; border-radius: 8px; background: #fff; color: var(--text);
  font-family: inherit; font-size: 14.5px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer;
}
.a-btn:hover { border-color: var(--gold-2); }
.a-btn--primary { background: var(--ink); border-color: var(--ink); color: #f5e6c8; }
.a-btn--primary:hover { background: #2a251e; border-color: #2a251e; }
.a-btn--primary:disabled { opacity: 0.5; cursor: wait; }
.a-btn--ghost { background: transparent; }
.a-btn--danger { background: transparent; border-color: #e3b7ab; color: var(--danger); }
.a-btn--danger:hover { background: #fbeee9; border-color: var(--danger); }
.a-btn--small { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.a-btn--block { width: 100%; }
.a-link { color: var(--muted); font-size: 13px; }
.a-caps { margin: -6px 0 0; color: #9a6a1f; font-size: 13px; font-weight: 700; }

.a-alert { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; }
.a-alert p { margin: 0; }
.a-alert--ok { background: #eaf4ec; border: 1px solid #c4dfc9; color: var(--ok); }
.a-alert--error { background: #fbeee9; border: 1px solid #efc6ba; color: var(--danger); }
.a-empty { padding: 40px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }

.a-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.a-table th { padding: 10px 14px; background: #faf8f4; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; }
.a-table td { padding: 12px 14px; border-bottom: 1px solid #efe9df; vertical-align: middle; }
.a-table tr:last-child td { border-bottom: 0; }
.a-thumb img, .a-thumb span { display: block; width: 88px; height: 56px; border-radius: 6px; background: #eee7da; object-fit: cover; }
.a-thumb span { display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.a-date { color: var(--muted); font-size: 14px; white-space: nowrap; }
.a-title a { text-decoration: none; }
.a-title strong { display: block; font-size: 15.5px; }
.a-title span { display: block; color: var(--muted); font-size: 13.5px; }
.a-title a:hover strong { text-decoration: underline; }
.a-note { display: block; margin-top: 4px; color: #9a6a1f; font-size: 12.5px; font-style: normal; }
.a-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #eee9e0; color: var(--muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.a-badge--on { background: #eaf4ec; color: var(--ok); }
.a-act { text-align: right; white-space: nowrap; }
.a-act .a-link { display: block; margin-top: 6px; }
.a-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.a-form { display: grid; gap: 20px; }
.a-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 28px; }
.a-field--date { width: 200px; }
.a-check { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 6px; cursor: pointer; }
.a-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.a-check span { font-size: 14.5px; font-weight: 700; }
.a-check small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.a-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.a-lang { display: grid; gap: 12px; margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.a-lang legend { padding: 0 6px; color: var(--gold-2); font-weight: 700; }
.a-lang legend small { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.a-hint { margin: 0; color: var(--muted); font-size: 13px; }
.a-photo-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.a-photo-box { display: grid; place-items: center; width: 240px; aspect-ratio: 16 / 10; overflow: hidden; background: #faf8f4; border: 1px dashed #cfc5b5; border-radius: 10px; }
.a-photo-box img { width: 100%; height: 100%; object-fit: cover; }
.a-photo-box p { margin: 0; color: var(--muted); font-size: 13px; }
.a-photo-tools { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 220px; }
.a-photo-tools .a-hint { flex-basis: 100%; }
.a-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid #efe9df; }
/* 문의함 */
.a-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 2px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #1d1b18; font-size: 12px; font-weight: 800; }
.a-badge--new { background: #fbeee9; color: var(--danger); }
.a-inbox tr.is-new .a-title strong { font-weight: 800; }
.a-inbox tr.is-new td { background: #fffdf8; }
.a-type { font-size: 13.5px; white-space: nowrap; }
.a-snippet { color: var(--muted); font-size: 13.5px; max-width: 280px; }
.a-inline-delete { display: inline-block; margin: 0 0 0 6px; }
.a-inline-delete .a-confirm-note { display: none; }
.a-notify { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 12px; margin-bottom: 18px; }
.a-notify .a-hint { grid-column: 1 / -1; }
.a-dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 16px; margin: 0 0 20px; }
.a-dl dt { color: var(--muted); font-size: 14px; font-weight: 700; }
.a-dl dd { margin: 0; overflow-wrap: anywhere; }
.a-dl small { color: var(--muted); }
.a-message { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #faf8f4; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; }
.a-inquiry .a-actions { margin-top: 20px; }
.a-social > span, .a-form .a-field > span { display: flex; align-items: center; gap: 8px; }
.a-form .a-field .icon { width: 20px; height: 20px; color: var(--gold-2); }
.a-delete { margin-top: 18px; text-align: right; }
.a-btn--danger.is-armed { background: var(--danger); border-color: var(--danger); color: #fff; }
.a-confirm-note { margin: 0 0 8px; color: var(--danger); font-size: 13.5px; font-weight: 700; }
.a-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%);
  max-width: calc(100% - 32px); margin: 0; padding: 12px 18px; border-radius: 10px;
  background: #1d1b18; color: #fff; font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 760px) {
  .a-langs { grid-template-columns: 1fr; }
  .a-table thead { display: none; }
  .a-table, .a-table tbody, .a-table td { display: block; width: 100%; }
  .a-table tr { display: grid; grid-template-columns: 96px 1fr; gap: 4px 12px; padding: 12px; border-bottom: 1px solid #efe9df; }
  .a-table tr:last-child { border-bottom: 0; }
  .a-table td { padding: 0; border: 0; }
  .a-thumb { grid-row: span 4; }
  .a-act { text-align: left; }
  .a-act .a-link { display: inline; margin: 0 0 0 10px; }
  .a-delete { text-align: left; }
  .a-inbox tr { grid-template-columns: 1fr; }
  .a-snippet { max-width: none; }
  .a-notify { grid-template-columns: 1fr; }
  .a-dl { grid-template-columns: 1fr; gap: 2px; }
  .a-dl dd { margin-bottom: 8px; }
}
