:root {
  /* Claude Code 풍 팔레트 (다크): 따뜻한 차콜 바탕 + 테라코타 주황 강조. 배경은 박스보다 밝게 해 박스가 또렷이 구분된다 */
  --bg: #393734; --card: #1f1e1d; --line: #4d4a45; --text: #f4f2eb;
  --muted: #aaa598; --accent: #d97757; --accent-2: #c6613f; --danger: #f0766a;
  --input-bg: #161514; --hover: #2d2b28; --btn-bg: #34322e; --btn-hover: #47443f;
  --item-bg: #292725; --item-border: #5a554e;
  --mark-bg: #6b4a1f; --mark-text: #ffd9a0;
  --banner-bg: #3d2f1f; --banner-line: #8a6332; --banner-text: #f3c98b;
  --box-shadow: 0 6px 22px rgba(0,0,0,.4);
}
/* 라이트 모드: 크림색 바탕 + 밝은 종이색 박스 */
:root[data-theme="light"] {
  --bg: #e6e1d5; --card: #fcfaf5; --line: #d3ccbc; --text: #1f1e1d;
  --muted: #6d675c; --accent: #c6613f; --accent-2: #a94f30; --danger: #c0392b;
  --input-bg: #f4f0e7; --hover: #f0ebdf; --btn-bg: #ece7db; --btn-hover: #ded7c7;
  --item-bg: #f6f2e9; --item-border: #c7bfad;
  --mark-bg: #ffe0a3; --mark-text: #6b4a00;
  --banner-bg: #fff3df; --banner-line: #e2bd80; --banner-text: #8a5a12;
  --box-shadow: 0 4px 16px rgba(70,55,30,.16);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  background: var(--bg); color: var(--text); }
.top { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 18px; }
.brand span { font-weight: 400; color: var(--muted); margin-left: 8px; font-size: 14px; }
#userbox { display: flex; gap: 12px; align-items: center; }
.top-actions { display: flex; gap: 12px; align-items: center; }
.top .btn { white-space: nowrap; }
.brand a { color: inherit; text-decoration: none; }
.icon-btn { font-size: 16px; line-height: 1; padding: 7px 10px; }
/* 이미지 크게 보기 (라이트박스) */
#lightbox { z-index: 1100; }
.lightbox-inner { display: flex; flex-direction: column; gap: 10px; max-width: 94vw; max-height: 94vh; }
.lightbox-cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; font-size: 14px; }
#lightbox-img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 8px; background: #000; }
main { max-width: none; margin: 24px 0; padding: 0 24px; }
/* 좌측 메뉴 레이아웃 */
.layout { display: flex; gap: 20px; align-items: flex-start; }
.sidebar { width: 210px; flex: none; position: sticky; top: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.side-title { font-size: 12px; color: var(--muted); margin: 10px 10px 4px; }
.side-item { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text);
  text-decoration: none; font-size: 14px; }
.side-item:hover { background: var(--btn-bg); }
.side-item.active { background: var(--accent); color: #fff; }
.content { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .side-title { width: 100%; margin: 4px 8px; }
}
/* 검색 필터 바 */
.filterbar { display: flex; gap: 8px; align-items: center; margin: 10px 0 4px; flex-wrap: wrap; }
.filterbar input[type=search] { flex: 1; min-width: 200px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--input-bg); color: var(--text); font-size: 14px; }
.filterbar select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--input-bg); color: var(--text); font-size: 14px; }
mark { background: var(--mark-bg); color: var(--mark-text); border-radius: 2px; padding: 0 1px; }
/* 상세/편집 */
.editor-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.banner { background: var(--banner-bg); border: 1px solid var(--banner-line); color: var(--banner-text); padding: 10px 14px;
  border-radius: 8px; margin-bottom: 12px; font-size: 14px; line-height: 1.5; }
#ed-title { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--input-bg); color: var(--text); margin-top: 4px; font-size: 15px; }
#ed-title:disabled, input:disabled { opacity: .55; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: var(--hover); }
.tag.lock { background: #7a5a1a; }
.tag.ok-tag { background: #1f6f45; }
.empty { padding: 20px 0; text-align: center; }
.kv { border-collapse: collapse; font-size: 14px; margin: 6px 0 10px; }
.kv th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 18px 6px 0; }
.kv td { padding: 6px 0; }
.auth-like { max-width: 420px; }
.auth-like label { margin: 8px 0; }
/* 가상 모니터 미리보기 */
#preview { position: fixed; inset: 0; z-index: 1000; background: #0a0b0e; display: flex; flex-direction: column; }
.pv-toolbar { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line);
  background: var(--card); font-size: 14px; flex-wrap: wrap; }
.pv-toolbar label { display: flex; align-items: center; gap: 6px; margin: 0; }
.pv-toolbar select { padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); }
.pv-toolbar #pv-close { margin-left: auto; }
.pv-grid { flex: 1; display: grid; gap: 14px; padding: 16px; align-content: center; overflow: auto; cursor: pointer; }
.pv-mon { position: relative; background: #000; overflow: hidden; border: 3px solid #2a2f3a; border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,.6); width: 100%; }
.pv-mon .layer { position: absolute; inset: 0; overflow: hidden; }
.pv-mon .layer.b { display: none; }
.pv-mon .layer img { display: block; }
.pv-mon .layer img.fit-fill { width: 100%; height: 100%; object-fit: fill; }
.pv-mon .layer img.fit-original { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; }
.pv-mon .wm { position: absolute; color: #9a9a9a; font-family: Arial, sans-serif; z-index: 3; pointer-events: none; }
.pv-mon .pv-label { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: rgba(255,255,255,.45); z-index: 3; }
.pv-foot { padding: 8px 16px; border-top: 1px solid var(--line); text-align: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; margin-bottom: 18px; }
.card h2 { margin: 0 0 8px; font-size: 17px; }
.card h2 small { font-weight: 400; margin-left: 8px; font-size: 13px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; }
.auth { max-width: 440px; margin: 40px auto; }
.auth form { display: flex; flex-direction: column; gap: 10px; }
.auth h2 { margin: 0 0 6px; font-size: 18px; }
.links { display: flex; justify-content: center; gap: 10px; margin-top: 6px; font-size: 13px; }
.links .sep { color: var(--line); }
#reset-timer { color: var(--accent); font-size: 16px; }
#reset-timer.warn { color: var(--danger); }
.row { display: flex; gap: 8px; margin-top: 4px; }
.row input { flex: 1; margin-top: 0 !important; }
.row .btn { white-space: nowrap; padding: 8px 12px; font-size: 13px; }
.row .btn:disabled { opacity: .5; cursor: default; }
label { display: block; font-size: 14px; margin: 6px 0; }
label.check { display: flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; }
input[type=email], input[type=password], input[type=text], textarea { width: 100%; padding: 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--input-bg); color: var(--text); margin-top: 4px;
  font-family: inherit; font-size: 14px; }
textarea { resize: vertical; }
input[type=number] { width: 80px; padding: 6px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--input-bg); color: var(--text); }
input:disabled { opacity: .45; }
.muted { color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }
.btn { display: inline-block; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--btn-bg); color: var(--text); cursor: pointer; font-size: 14px; text-decoration: none; }
.btn:hover { background: var(--btn-hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.big { padding: 14px 22px; font-size: 15px; }
.btn.disabled { opacity: .4; cursor: not-allowed; }
a { color: var(--accent); }
/* 이미지 그리드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.tile { background: var(--input-bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tile img { width: 100%; height: 100px; object-fit: cover; display: block; background: #000; }
.tile-bar { display: flex; gap: 6px; align-items: center; padding: 6px 8px; font-size: 12px; }
.tile-bar .idx { background: var(--accent); color: #fff; border-radius: 4px; padding: 0 6px; }
.tile-bar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.tile img { cursor: zoom-in; }
.tile[draggable="true"] { cursor: grab; }
.tile[draggable="true"]:active { cursor: grabbing; }
.tile.dragging { opacity: .4; }
.tile.dragover { outline: 2px dashed var(--accent); outline-offset: 2px; }
.tile-actions { display: flex; gap: 4px; padding: 0 8px 8px; }
.tile-actions button { flex: 1; padding: 4px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--hover); color: var(--text); cursor: pointer; font-size: 12px; }
.tile-actions button:disabled { opacity: .3; cursor: default; }
.tile-actions button.danger { color: var(--danger); }
/* 설정 */
.settings fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.settings legend { padding: 0 6px; color: var(--muted); font-size: 13px; }
.settings .sub { margin: 4px 0 10px 24px; font-size: 14px; }
.actions { display: flex; align-items: center; gap: 14px; }
.dl { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
/* 헤더 드롭다운 메뉴 (관리자 설정) */
.brand a { color: inherit; text-decoration: none; }
.menu { position: relative; }
.dropdown { position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px; z-index: 20;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.dropdown a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text);
  text-decoration: none; font-size: 14px; }
.dropdown a:hover { background: var(--btn-bg); }
/* 관리자 설정 페이지 */
.settings-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.settings-head h2 { margin: 0; font-size: 20px; }
.subnav { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.subtab { background: none; border: none; color: var(--muted); padding: 8px 14px; cursor: pointer;
  font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtab.active { color: var(--text); border-bottom-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.grid2 label.tls { grid-column: 1 / -1; }
.smtp input[type=text], .smtp input[type=password], .smtp input[type=number] { width: 100%; padding: 10px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); margin-top: 4px; font-size: 14px; }
.sep-line { border: none; border-top: 1px solid var(--line); margin: 18px 0 12px; }
#panel-smtp h3 { margin: 0 0 4px; font-size: 15px; }
#panel-smtp .row input { padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); font-size: 14px; }
.ok { color: #3ddc84; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
/* 템플릿 관리 */
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.tpl { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--input-bg); }
.tpl h3 { margin: 0 0 8px; font-size: 15px; }
.tpl-status { font-size: 13px; margin-bottom: 10px; line-height: 1.6; }
.tpl-status .ready { color: #3ddc84; font-weight: 600; }
.tpl-status .missing { color: #f5c26b; font-weight: 600; }
.tpl-actions { display: flex; gap: 8px; }
.progress { height: 6px; background: var(--hover); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.howto h3 { font-size: 14px; margin: 12px 0 4px; }
.howto ol { margin: 4px 0 8px 18px; padding: 0; font-size: 14px; line-height: 1.7; }
.howto code { background: var(--input-bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 13px; }
@media (max-width: 640px) { .tpl-grid { grid-template-columns: 1fr; } }
/* 관리자 테이블 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 500; }
.tbl .purpose { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .tag { background: var(--accent); color: #fff; border-radius: 4px; padding: 0 6px; font-size: 11px; margin-left: 6px; }
.tbl button { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--hover); color: var(--text); cursor: pointer; font-size: 12px; margin-left: 4px; }
.tbl button.danger { color: var(--danger); }
/* 토스트 — 화면 최상단 중앙 고정 (스크롤해도 항상 상단), 눈에 잘 띄는 밝은 색 */
.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1300;
  background: #ffd60a; color: #151515; padding: 12px 22px; border-radius: 12px; font-size: 15px; font-weight: 700;
  border: 2px solid #151515; box-shadow: 0 8px 28px rgba(0,0,0,.45); max-width: calc(100% - 24px); text-align: center;
  animation: toast-in .2s ease-out; }
.toast.err { background: #ff453a; color: #fff; border-color: #fff; }
.toast.below-alert { top: 96px; }   /* 상단 알림 바가 떠 있으면 그 아래로 */
@keyframes toast-in { from { transform: translate(-50%, -12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---- 관리자: 사용자 상세 모달 ---- */
.modal-bg { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.6); display: flex; align-items: center;
  justify-content: center; padding: 16px; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 12px; width: min(720px, 100%);
  max-height: 92vh; overflow: auto; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.um-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.um-grid .um-wide { grid-column: 1 / -1; }
.um-grid select { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); }
.um-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.um-actions .spacer { flex: 1; }
.tbl.clickable tbody tr { cursor: pointer; }
.tbl.clickable tbody tr:hover { background: rgba(255,255,255,.04); }
.tbl tbody tr.inactive td { opacity: .55; }
.tag.off { background: #6b2b2b; }
@media (max-width: 640px) { .um-grid { grid-template-columns: 1fr; } }

/* ---- 브라우저 상단 알림 바 ---- */
.top-alert { position: fixed; top: 0; left: 0; right: 0; z-index: 1200; display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 18px; background: #ff9f0a; color: #1a1200; font-weight: 600; border-bottom: 3px solid #1a1200; box-shadow: 0 4px 18px rgba(0,0,0,.45); font-size: 14px;
  animation: top-alert-in .25s ease-out; }
@keyframes top-alert-in { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.top-alert-body { flex: 1; }
.top-alert-body b { display: block; margin-bottom: 4px; font-size: 15px; }
.top-alert ul { margin: 0; padding-left: 20px; }
.top-alert li { margin: 2px 0; }
.top-alert-close { background: transparent; border: 1px solid #1a1200; color: #1a1200; border-radius: 6px;
  padding: 4px 10px; cursor: pointer; font-size: 14px; }
.top-alert-close:hover { background: rgba(0,0,0,.12); }
.dl .btn.warn { opacity: .75; border-style: dashed; }
.ext-list { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ext-list label.check { margin: 4px 0; }

/* ---- 화면보호기 목록: 항목당 두 줄, 단락별로 분리된 카드 ---- */
.sv-list { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.sv-item { padding: 13px 15px; cursor: pointer;
  background: var(--item-bg);                 /* 카드 배경(#171a21)보다 어둡게 → 목록과 배경 구분 */
  border: 1px solid var(--line); border-left: 4px solid var(--item-border); border-radius: 10px;
  transition: background .12s, border-color .12s, transform .06s; }
.sv-item:hover { background: var(--hover); border-left-color: var(--accent); transform: translateX(2px); }
.sv-item.locked { border-left-color: #7a5a1a; }
.sv-item.inactive { opacity: .6; }
.sv-item .sv-actions.muted { font-size: 12px; }
.sv-item.locked:hover { border-left-color: #a8791f; }
.sv-line1 { display: flex; align-items: center; gap: 8px; }
.sv-title { font-weight: 600; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-line1 .tag { margin-left: 0; }
.sv-actions { display: flex; gap: 6px; flex-shrink: 0; }
.sv-line2 { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 5px; font-size: 13px; color: var(--muted); }
.sv-line2 b { color: var(--text); font-weight: 500; }
@media (max-width: 640px) { .sv-line2 { gap: 2px 12px; } }

/* 목록 항목의 태그 · 버튼 */
.sv-item .tag { background: var(--accent); color: #fff; border-radius: 4px; padding: 1px 7px; font-size: 11px; white-space: nowrap; }
.sv-item .tag.lock { background: #7a5a1a; } .sv-item .tag.ok-tag { background: #1f6f45; } .sv-item .tag.off { background: #6b2b2b; }
.sv-actions button { padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--btn-bg);
  color: var(--text); cursor: pointer; font-size: 12px; white-space: nowrap; }
.sv-actions button:hover { background: var(--btn-hover); }
.sv-actions button.danger { color: var(--danger); }

/* 전환 스타일 목록 (라디오 + [보기]) */
.trans-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 14px; }
.trans-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px; border-radius: 6px; }
.trans-row:hover { background: var(--hover); }
.trans-row label { margin: 4px 0; flex: 1; cursor: pointer; }
.demo-btn { padding: 3px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--btn-bg);
  color: var(--text); cursor: pointer; font-size: 12px; flex: none; }
.demo-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.trans-times { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; }
.trans-times input { width: 80px; }
/* 전환 샘플 모달 */
#trans-demo { z-index: 1150; }
.demo-modal { width: min(440px, 100%); }
.demo-mon { width: 100%; aspect-ratio: 16 / 10; margin: 6px 0 10px; }
.demo-mon .layer.b { display: none; }
.demo-panel { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 84px; font-weight: 800; color: #fff; text-shadow: 0 4px 14px rgba(0,0,0,.35); }
.demo-panel.p1 { background: linear-gradient(135deg, #2f6fe0, #35c2c9); }
.demo-panel.p2 { background: linear-gradient(135deg, #ff8a3d, #e5484d); }

/* ---- 모바일 최적화 ---- */
@media (max-width: 760px) {
  .top { padding: 10px 12px; gap: 8px; }
  .brand { font-size: 16px; white-space: nowrap; }
  .top { flex-wrap: nowrap; }
  .brand { flex: none; }
  .brand span, #settings-menu { display: none !important; }      /* 부제·설정 메뉴는 숨김 (메뉴는 아래 가로 줄에 있음) */
  .top-actions, #userbox { gap: 6px; min-width: 0; flex-wrap: nowrap; }
  #user-email { min-width: 0; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .top .btn { padding: 7px 10px; font-size: 13px; white-space: nowrap; flex: none; }
  main { margin: 12px 0; padding: 0 10px; }
  .layout { gap: 10px; }
  /* 메뉴: 햄버거 없이 가로 한 줄 (넘치면 좌우로 밀어서 이동) */
  .sidebar { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 6px; border-radius: 10px; scrollbar-width: none; }
  .sidebar::-webkit-scrollbar { display: none; }
  .side-title { display: none; }
  .sidebar .admin-only { display: contents; }
  .side-item { flex: none; white-space: nowrap; padding: 8px 12px; }
  .card { padding: 14px 12px; border-radius: 10px; }
  .card-head h2 { font-size: 18px; }
  input, select, textarea { font-size: 16px !important; }      /* iOS 자동 확대 방지 */
  .filterbar input[type=search] { min-width: 0; flex: 1 1 100%; }
  .sv-item { padding: 12px; }
  .sv-item:hover { transform: none; }
  .sv-line1 { flex-wrap: wrap; }
  .sv-title { flex: 1 1 55%; white-space: normal; }
  .sv-actions { width: 100%; flex-wrap: wrap; margin-top: 6px; }
  .sv-actions button { flex: 1; padding: 10px 8px; font-size: 14px; }
  .sv-item .sv-actions.muted { width: auto; margin-top: 0; }
  .sv-line2 { flex-direction: column; gap: 2px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .tile-actions button { padding: 8px 4px; }
  .trans-list { grid-template-columns: 1fr; }
  .demo-btn { padding: 7px 14px; }
  .actions { flex-wrap: wrap; gap: 8px; }
  .dl .btn { flex: 1 1 100%; text-align: center; }
  .modal-bg { padding: 8px; align-items: flex-start; overflow-y: auto; }
  .modal { padding: 14px 12px; max-height: none; }
  .kv { display: block; overflow-x: auto; }
  .um-actions { flex-wrap: wrap; }
  .pv-toolbar { gap: 8px; padding: 8px 10px; font-size: 13px; }
  .pv-toolbar #pv-title, .pv-foot { display: none; }
  .pv-grid { grid-template-columns: 1fr !important; padding: 8px; gap: 8px; }
  .editor-head { flex-wrap: wrap; gap: 6px; }
  .toast { font-size: 14px; padding: 10px 14px; width: max-content; }
  .lightbox-inner, #lightbox-img { max-width: 100%; }
}
.danger-text { color: var(--danger); }
.editor-head #ed-status { flex: 1; margin: 0 12px; }

/* 화면 보호기 적용 방법 모달 */
.guide-modal { width: min(820px, 100%); }
.guide-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.guide-tabs button { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--btn-bg);
  color: var(--text); cursor: pointer; font-size: 14px; white-space: nowrap; }
.guide-tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.guide-body ol { margin: 8px 0 12px; padding-left: 22px; }
.guide-body li { margin: 9px 0; line-height: 1.6; font-size: 14px; }
.guide-body code { background: var(--input-bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 13px; }
.guide-body p.muted { line-height: 1.6; }
@media (max-width: 760px) { .guide-tabs { flex-wrap: nowrap; overflow-x: auto; } .guide-tabs button { flex: none; } }

/* 마스터 · 멤버 */
.sv-item .tag.master-tag { background: #7c4dff; }
.sv-item.static { cursor: default; }
.sv-item.static:hover { transform: none; background: var(--item-bg); border-left-color: var(--item-border); }
.um-sub { font-size: 15px; margin: 14px 0 4px; }
.mb-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 14px; padding: 12px; margin: 10px 0;
  border: 1px dashed var(--line); border-radius: 10px; background: var(--item-bg); }
.mb-form .um-actions { grid-column: 1 / -1; }
.mb-form input { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); margin-top: 4px; }
#login-code-box .banner { margin: 6px 0; }
@media (max-width: 760px) { .mb-form { grid-template-columns: 1fr; } }
.um-grid input[type=number] { display: block; width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); margin-top: 4px; }
/* 사용자 상세 모달은 넓게 */
#user-modal .modal { width: min(1100px, 100%); }
#user-modal .kv { width: 100%; }
#user-modal .kv td { padding-right: 28px; }

/* 입력칸 아래 검사 결과 문구 */
.field-msg { display: block; min-height: 18px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.field-msg.ok { color: #2fbf71; font-weight: 600; }
.field-msg.bad { color: var(--danger); font-weight: 600; }
/* 사용자 상세 모달은 넓게 */
#user-modal .modal { width: min(1100px, 100%); }
#user-modal .kv { width: 100%; }
#user-modal .kv td { padding-right: 28px; }

/* 조각 단위 전환을 그리는 캔버스 층 (이미지 층 위, 워터마크 아래) */
.pv-mon canvas.layer { width: 100%; height: 100%; display: none; z-index: 2; }

/* 멤버 추가 / 상세 모달 */
.mb-modal { width: min(760px, 100%); }
.um-grid input:disabled { opacity: .6; }
.um-grid select + .field-msg, .um-grid input + .field-msg { margin-top: 4px; }
#mb-modal .kv { width: 100%; }
#mb-modal .kv td { padding-right: 28px; }

/* 휴지통 복원 대상 선택 */
.trm-opt { color: var(--text); margin: 10px 0; font-size: 15px; }
#trm-other { margin: 4px 0 6px 24px; }
#trm-other input, #trm-other select { width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--input-bg); color: var(--text); font-size: 14px; margin-top: 6px; }
#trm-other select option { padding: 6px 4px; }

/* ---- 시인성: 배경과 박스(헤더 · 좌측 메뉴 · 콘텐츠 카드)를 또렷이 구분 ---- */
.top { background: var(--card); box-shadow: var(--box-shadow); position: relative; z-index: 5; }
.card, .sidebar { box-shadow: var(--box-shadow); }
.sv-item { box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.sv-item:hover { background: var(--hover); }

/* ---- 내려받기 버튼: OS 로고 + OS 별 색 ---- */
.btn.dl-os { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; padding: 14px 24px; border-width: 2px; }
.btn.dl-os small { font-weight: 400; opacity: .8; }
.btn.dl-win { background: #0078d4; border-color: #0078d4; color: #fff; }
.btn.dl-win:hover { background: #0a66b8; border-color: #0a66b8; }
.btn.dl-mac { background: #f5f5f7; border-color: #b9b9c0; color: #111; }
.btn.dl-mac:hover { background: #e2e2e8; }
.dl .btn.dl-os.warn { opacity: .6; border-style: dashed; }
@media (max-width: 760px) { .dl .btn.dl-os { justify-content: center; } }

/* 잠금 전환 버튼 */
.sv-actions .lock-btn { min-width: 72px; }
.sv-actions .lock-btn.on { background: #7a5a1a; border-color: #a8791f; color: #fff; }
#lock-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#lock-banner.hidden { display: none; }
#lock-banner .btn { margin-left: auto; }
.sv-actions .lock-state { font-size: 12px; color: var(--muted); padding: 5px 6px; white-space: nowrap; }
.sv-item .tag.kind-tag { background: #5a6478; font-size: 10px; padding: 0 6px; margin-left: 2px; }
#list-desc-admin { margin: 8px 0 4px; }

/* ---- Claude Code 풍 테마 보정 ---- */
body { font-family: "Styrene B", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", system-ui, sans-serif; }
.brand a { letter-spacing: -.01em; }
.btn.primary, .side-item.active { color: #fff; }
.sv-item .tag { background: var(--accent); }
.sv-item .tag.ok-tag { background: #4f7a52; } .sv-item .tag.off { background: #8a4a42; } .sv-item .tag.lock { background: #8a6332; }
.sv-item .tag.master-tag { background: #7d6aa8; } .sv-item .tag.kind-tag { background: #6f6a60; }
.tile-bar .idx { background: var(--accent); }
.demo-panel.p1 { background: linear-gradient(135deg, #d97757, #e9a67c); }
.demo-panel.p2 { background: linear-gradient(135deg, #3f6b6f, #6fa39a); }
.guide-tabs button.active, .demo-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 저장 버튼 강조 (저장하지 않고 내려받기를 눌렀을 때) */
.btn.attention { animation: btn-attn .5s ease-in-out 0s 6 alternate; box-shadow: 0 0 0 4px rgba(255,214,10,.75); }
@keyframes btn-attn { from { transform: scale(1); } to { transform: scale(1.08); } }

/* 이미지 타일: 가로×세로 · 용량 */
.tile-meta { display: flex; justify-content: space-between; gap: 6px; padding: 0 8px 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.tile-meta .size { font-weight: 600; color: var(--text); }

/* ---- 사용자 매뉴얼 ---- */
.manual .card { scroll-margin-top: 12px; }
.manual h2 { margin-top: 0; }
.manual h3 { font-size: 15px; margin: 18px 0 6px; color: var(--accent); }
.manual p, .manual li, .manual dd { line-height: 1.7; font-size: 14px; }
.manual ol, .manual ul { padding-left: 22px; margin: 8px 0 12px; }
.manual li { margin: 5px 0; }
.manual code { background: var(--input-bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 13px; }
.manual-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; margin-top: 12px; }
.manual-toc a { display: block; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--item-bg);
  color: var(--text); text-decoration: none; font-size: 14px; }
.manual-toc a:hover { border-color: var(--accent); color: var(--accent); }
.manual-table { width: 100%; border-collapse: collapse; margin: 10px 0 12px; font-size: 14px; }
.manual-table th, .manual-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.manual-table th { width: 200px; background: var(--item-bg); font-weight: 600; white-space: nowrap; }
.manual-roles th { width: auto; }
.manual-roles tr:first-child th { background: var(--btn-bg); }
.manual-note { background: var(--banner-bg); border: 1px solid var(--banner-line); color: var(--banner-text);
  border-radius: 8px; padding: 10px 14px; margin: 10px 0 2px; }
.manual-faq dt { font-weight: 700; margin-top: 14px; }
.manual-faq dt::before { content: "Q. "; color: var(--accent); }
.manual-faq dd { margin: 4px 0 0 0; padding-left: 26px; color: var(--muted); }
.manual-foot { text-align: right; margin: 0 4px 20px; }
.manual-foot a { color: var(--accent); }
@media (max-width: 760px) {
  .manual-table th { width: 110px; white-space: normal; }
  .manual-table th, .manual-table td { padding: 7px 8px; font-size: 13px; }
  .manual-roles { display: block; overflow-x: auto; }
  .manual-toc { grid-template-columns: 1fr; }
}
@media print { .top, .sidebar, .manual-foot, .toast, .top-alert { display: none !important; } body { background: #fff; color: #000; } .card { box-shadow: none; break-inside: avoid; } }

/* ---- 좌측 메뉴: 하위 메뉴 묶음 (로그 분석) ---- */
.side-group { font-size: 14px; padding: 9px 12px 4px; color: var(--text); font-weight: 600; }
.side-item.side-sub { padding-left: 30px; position: relative; font-size: 13.5px; }
.side-item.side-sub::before { content: "ㄴ"; position: absolute; left: 14px; color: var(--muted); font-size: 12px; }
.side-item.side-sub.active::before { color: #fff; }

/* ---- 로그 분석 ---- */
.date-range { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.date-range input, .filterbar input[type=date] { padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); font-size: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.stat { background: var(--item-bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 26px; font-weight: 700; line-height: 1.25; margin-top: 2px; }
.stat-sub { font-size: 11px; color: var(--muted); min-height: 14px; }
.top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0 16px; }
.top-grid .card h2 { font-size: 16px; }
.rank { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.rank td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rank-no { width: 22px; color: var(--muted); text-align: right; }
.rank-name { max-width: 0; width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { width: 34%; } .rank-bar i { display: block; height: 8px; border-radius: 0 4px 4px 0; background: var(--series-1, var(--accent)); }
.rank-val { width: 56px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
/* 그래프 색: 계열 고정 (다크 기본 / 라이트). 검증된 범주형 팔레트의 1~3번 */
.viz-root, .top-grid { --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; }
:root[data-theme="light"] .viz-root, :root[data-theme="light"] .top-grid { --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 8px; font-size: 13px; color: var(--text); }
.viz-key { display: inline-flex; align-items: center; gap: 6px; }
.viz-key i, .viz-tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.viz-chart { position: relative; width: 100%; }
.viz-chart svg { display: block; max-width: 100%; }
.viz-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz-dot { stroke: var(--card); stroke-width: 2; }
.viz-grid { stroke: var(--line); stroke-width: 1; opacity: .55; }
.viz-axis { stroke: var(--muted); stroke-width: 1; opacity: .7; }
.viz-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.viz-tick { fill: var(--muted); font-size: 11px; }
.viz-end { fill: var(--text); font-size: 12px; }
.viz-tip { position: absolute; pointer-events: none; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 12px; box-shadow: var(--box-shadow); min-width: 130px; z-index: 3; color: var(--text); }
.viz-tip b { display: block; margin-bottom: 4px; }
.viz-tip div { display: flex; align-items: center; gap: 6px; line-height: 1.7; }
.viz-tip span { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: 14px; }
.tbl-wrap { overflow-x: auto; }
.log-tbl th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
.log-tbl th[data-sort]:hover { color: var(--text); }
.log-tbl th[data-sort]::after { content: " ↕"; opacity: .35; }
.log-tbl th.sorted { color: var(--accent); }
.log-tbl th.sorted[data-dir="asc"]::after { content: " ▲"; opacity: 1; }
.log-tbl th.sorted[data-dir="desc"]::after { content: " ▼"; opacity: 1; }
.log-tbl td { vertical-align: top; }
.log-tbl td.nowrap { white-space: nowrap; }
.log-tbl tr.log-fail td { background: rgba(240, 118, 106, .07); }
.log-tbl .tag { margin-left: 0; }
.tbl .tag.ok-tag { background: #4f7a52; } .tbl .tag.off { background: #8a4a42; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.pager .btn:disabled { opacity: .4; cursor: default; }
@media (max-width: 760px) {
  .side-group { display: none; }
  .side-item.side-sub { padding-left: 12px; } .side-item.side-sub::before { content: ""; }
  .top-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 22px; }
  .log-tbl { min-width: 760px; }
}

/* 로그 실시간 갱신 */
.live-check { margin: 0; white-space: nowrap; color: var(--text); font-size: 13px; }
.live-at { font-size: 12px; white-space: nowrap; }
.log-tbl tr.log-new td { animation: log-new 2.4s ease-out; }
@keyframes log-new { from { background: rgba(255, 214, 10, .38); } to { background: transparent; } }

/* 로그 제외 필터 */
.excl-bar { margin-top: 2px; }
.excl-bar .excl-ip { flex: 1; min-width: 220px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); font-size: 14px; }

/* 이미지 크게 보기: 배경을 충분히 어둡게 하고, 닫기 버튼은 어느 테마에서도 또렷하게 */
#lightbox { background: rgba(0, 0, 0, .88); }
#lightbox .lightbox-cap { color: #fff; }
#lightbox-name { font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lightbox-close { background: #fff; color: #111; border: 2px solid #fff; font-weight: 700; padding: 8px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.5); flex: none; }
#lightbox-close:hover { background: #ffd60a; border-color: #ffd60a; }

/* 엑세스 로그: 줄에 마우스를 올리면 나오는 접속 상세 정보 */
.log-tip { position: fixed; z-index: 1250; pointer-events: none; max-width: min(520px, calc(100vw - 16px));
  background: var(--card); color: var(--text); border: 1px solid var(--accent); border-radius: 10px;
  padding: 10px 12px; font-size: 12.5px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.log-tip table { border-collapse: collapse; }
.log-tip th { text-align: left; color: var(--muted); font-weight: 500; padding: 3px 14px 3px 0; white-space: nowrap; vertical-align: top; }
.log-tip td { padding: 3px 0; word-break: break-all; line-height: 1.45; }
.log-tbl tbody tr { cursor: help; }
.log-tbl tbody tr:hover td { background: var(--hover); }

/* ---- 진행률 창 (내려받기 · 이미지 업로드) ---- */
#prog-modal { z-index: 1180; }
.prog-modal { width: min(520px, 100%); }
.prog-modal h2 { margin: 0 0 10px; }
.prog-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 8px; counter-reset: pstep; }
.prog-steps li { flex: 1; counter-increment: pstep; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--item-bg); color: var(--muted); font-size: 13px; }
.prog-steps li::before { content: counter(pstep) ". "; }
.prog-steps li.now { border-color: var(--accent); color: var(--text); font-weight: 700; }
.prog-steps li.done { color: var(--text); }
.prog-steps li.done::before { content: "✓ "; color: #4f9a55; }
.prog-bar { height: 16px; border-radius: 8px; background: var(--input-bg); border: 1px solid var(--line); overflow: hidden; }
.prog-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 8px; transition: width .15s linear; }
.prog-bar.busy i { background-image: linear-gradient(45deg, rgba(255,255,255,.28) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.28) 75%, transparent 75%);
  background-size: 28px 28px; animation: prog-busy .7s linear infinite; transition: none; }
@keyframes prog-busy { from { background-position: 0 0; } to { background-position: 28px 0; } }
.prog-meta { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 4px; min-height: 22px; font-size: 13px; color: var(--muted); }
.prog-meta b { font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .prog-steps { flex-direction: column; } }

/* ===================== 홈페이지 (로그인 전 서비스 소개) ===================== */
/* 홈페이지는 기본으로 보인다 (검색 로봇 · 스크립트가 꺼진 환경에서도 내용이 읽히도록). 로그인 화면 · 서비스 화면에서는 숨긴다 */
html.no-home #landing { display: none; }
#guestbox { display: flex; gap: 8px; align-items: center; }
.auth-home { display: inline-block; margin-bottom: 12px; font-size: 13px; color: var(--muted); text-decoration: none; }
.auth-home:hover { color: var(--accent); }
.landing { max-width: 1160px; margin: 0 auto; }
.landing h1, .landing h2, .landing h3 { text-wrap: balance; }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: center; padding: 34px 0 30px; }
.lp-eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.lp-hero h1 { margin: 0 0 16px; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.18; letter-spacing: -.02em; }
.lp-hero h1 em { font-style: normal; color: var(--accent); }
.lp-lead { margin: 0 0 24px; font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 34em; }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-cta .btn.big { padding: 14px 28px; font-size: 16px; font-weight: 700; }
.lp-cta .btn.primary { color: #fff; }
.lp-points { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.lp-points li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.lp-mon { aspect-ratio: 16 / 10; border-radius: 10px; border-width: 6px; border-color: #15140f; }
.lp-mon .layer canvas { display: block; width: 100%; height: 100%; }
.lp-stand { width: 26%; height: 14px; margin: 0 auto; background: #15140f; border-radius: 0 0 10px 10px; opacity: .85; }
.lp-now { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); min-height: 20px; }
.lp-now b { color: var(--text); }
.lp-nav { position: sticky; top: 8px; z-index: 4; display: flex; gap: 4px; justify-content: center; width: fit-content; max-width: 100%; margin: 6px auto 0;
  padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--box-shadow); overflow-x: auto; scrollbar-width: none; }
.lp-nav::-webkit-scrollbar { display: none; }
.lp-nav a { flex: none; padding: 8px 16px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; white-space: nowrap; }
.lp-nav a:hover { background: var(--btn-bg); }
.lp-sec { padding: 54px 0 0; scroll-margin-top: 50px; }
.lp-sec > h2 { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.01em; }
.lp-sub { margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 46em; }
.lp-sub b { color: var(--text); }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-steps li, .lp-feat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--box-shadow); }
.lp-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 16px; }
.lp-steps h3, .lp-feat h3 { margin: 12px 0 6px; font-size: 17px; }
.lp-steps p, .lp-feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--item-bg); border: 1px solid var(--item-border); font-size: 22px; }
.lp-try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--box-shadow); }
.lp-try-screen { position: sticky; top: 70px; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--item-border); background: var(--item-bg); color: var(--text);
  font-size: 13px; cursor: pointer; font-family: inherit; }
.lp-chips .lp-chip { padding: 11px 20px; font-size: 15px; }
.lp-more { margin: 18px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.lp-more b { color: var(--text); }
.lp-try-side .btn.primary { color: #fff; font-weight: 700; }
.lp-try { align-items: center; }
.lp-chip:hover { border-color: var(--accent); }
.lp-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.lp-q { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.lp-q summary { padding: 16px 20px; cursor: pointer; font-weight: 700; font-size: 15px; }
.lp-q p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.lp-q p b { color: var(--text); }
.lp-final { margin: 56px 0 0; padding: 44px 24px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--box-shadow); }
.lp-final h2 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 30px); }
.lp-final p { margin: 0 0 22px; color: var(--muted); }
.lp-final .lp-cta { justify-content: center; }
.lp-foot { padding: 28px 0 10px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; gap: 26px; padding: 14px 0 22px; }
  .lp-grid, .lp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-try { grid-template-columns: 1fr; padding: 16px; }
  .lp-try-screen { top: 58px; z-index: 3; background: var(--card); padding-bottom: 2px; }   /* 효과 이름을 누를 때 화면이 계속 보이게 */
}
@media (max-width: 760px) {
  #guestbox { gap: 6px; }
  .lp-lead { font-size: 15px; }
  .lp-cta .btn.big { flex: 1; text-align: center; padding: 14px 12px; }
  .lp-nav { justify-content: flex-start; border-radius: 12px; }
  .lp-nav a { padding: 8px 12px; font-size: 13px; }
  .lp-sec { padding-top: 38px; }
  .lp-steps, .lp-grid, .lp-grid-4 { grid-template-columns: 1fr; gap: 10px; }
  .lp-steps li, .lp-feat { padding: 16px; }
  .lp-chip { padding: 9px 13px; }
}

/* ===================== 문의하기 ===================== */
.inq { max-width: 1000px; margin: 0 auto; }
.inq-row .sv-title { flex: 1; min-width: 0; }
.inq-no { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; flex: none; }
.sv-item .tag.wait { background: #8a6332; }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.pager .btn { padding: 6px 12px; }
.pager .btn.primary { color: #fff; }
.inq-form label { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; font-size: 14px; }
.inq-form label.check { flex-direction: row; align-items: center; flex-wrap: wrap; }
.inq-form input[type=text], .inq-form input[type=email], .inq-form input[type=password], .inq-form textarea {
  width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text);
  font-size: 14px; font-family: inherit; }
.inq-form textarea { resize: vertical; line-height: 1.6; }
.inq-two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.inq-title { margin: 6px 0 4px; font-size: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inq-title .tag { background: #8a6332; color: #fff; border-radius: 4px; padding: 1px 7px; font-size: 11px; font-weight: 400; }
.inq-title .tag.ok-tag { background: #1f6f45; }
.inq-meta { margin: 0 0 12px; font-size: 13px; }
.inq-text { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--item-bg); line-height: 1.7; font-size: 14px;
  overflow-wrap: anywhere; max-height: 40vh; overflow-y: auto; }
.inq-answer { margin-top: 16px; }
.inq-answer > b { display: block; margin-bottom: 6px; }
.inq-answer .inq-text { border-color: var(--accent); }
.inq-wait { margin: 16px 0 4px; }
.btn.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.side-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; text-align: center; line-height: 18px; }
@media (max-width: 760px) {
  .inq-two { grid-template-columns: 1fr; }
  .inq .card-head { gap: 8px; }
  #inq-btn { padding: 7px 8px; }
}
.seo-urls { margin: 8px 0; font-size: 13px; }
.seo-urls td { padding: 3px 16px 3px 0; }
.seo-urls code { user-select: all; }
.lp-wide { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; border-color: var(--accent); }
.lp-wide .lp-ico { flex: none; }
.lp-wide h3 { margin-top: 2px; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.lp-tags li { padding: 6px 12px; border-radius: 999px; background: var(--item-bg); border: 1px solid var(--item-border); font-size: 13px; }
@media (max-width: 760px) { .lp-wide { flex-direction: column; gap: 8px; margin-bottom: 10px; } }
