/* 관리자 · 홈 노출(assets/admin-home-curation.js). 위: 실제 홈 미리보기 둘, 가운데: 자리 표, 아래: 문구 줄. 회원·작품 화면과 같은 선 위주 모양.
   사이트 공통 규칙이 버튼 높이·글자색을 강하게 정하므로 body.editorial을 붙인다. */
body.editorial .ahm{color:#0a0a0a;font-size:14px}
.ahm [hidden]{display:none!important}
.ahm-top{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px;padding-bottom:16px;border-bottom:1px solid #efefef}
.ahm-title{margin-right:auto;min-width:0}
body.editorial .ahm h2{margin:0;font-size:22px;font-weight:800;letter-spacing:-.02em;color:#0a0a0a}
body.editorial .ahm-title{margin:0 auto 0 0;color:#737373;font-size:13px}
body.editorial .ahm-status{font-size:12.5px;color:#737373}
body.editorial .ahm-status.ok{color:#15803d}body.editorial .ahm-status.dirty{color:#b45309}body.editorial .ahm-status.bad{color:#c81e3d}
body.editorial .ahm-link{display:inline-flex;align-items:center;gap:4px;color:#525252;font-size:13px;font-weight:600;text-decoration:none}
body.editorial .ahm-btn{display:inline-flex;align-items:center;justify-content:center;min-height:0!important;height:36px;padding:0 14px;border:1px solid #dbdbdb;border-radius:6px;background:#fff;color:#0a0a0a;font:inherit;font-size:13.5px;font-weight:600;white-space:nowrap;cursor:pointer}
body.editorial .ahm-btn.dark{border-color:#0a0a0a;background:#0a0a0a;color:#fff}
body.editorial .ahm-btn:disabled{opacity:.4;cursor:default}

/* 미리보기 */
.ahm-pv{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;padding-top:20px}
body.editorial .ahm-cap{display:block;margin-bottom:6px;color:#8e8e8e;font-size:12px;font-weight:600}
.ahm-frame{overflow:hidden;border:1px solid #e5e5e5;border-radius:8px;background:#fff;pointer-events:none}
.ahm-phone{border-radius:18px}
.ahm-pc .hpc{padding:16px 0 4px}
.ahm-pc .hpc .shell{width:auto;max-width:none;padding:0 24px}
.ahm-ph .hmp-hero{overflow:hidden}
.ahm-dots{display:flex;justify-content:center;gap:6px;margin-top:8px}
body.editorial .ahm-dots button{width:28px;height:28px;min-height:0!important;padding:0;border:1px solid #e5e5e5;border-radius:50%;background:#fff;color:#525252;font:inherit;font-size:12px;font-weight:600;cursor:pointer}

/* 자리 표 */
body.editorial .ahm-h{display:flex;align-items:baseline;gap:8px;margin:26px 0 8px;font-size:15px;font-weight:800;color:#0a0a0a}
body.editorial .ahm-h small{color:#8e8e8e;font-size:12.5px;font-weight:500}
.ahm-table{width:100%;border-collapse:collapse}
body.editorial .ahm-table th{padding:8px 10px;border-bottom:1px solid #e5e5e5;color:#8e8e8e;font-size:12px;font-weight:600;text-align:left;white-space:nowrap}
body.editorial .ahm-table td{padding:8px 10px;border-bottom:1px solid #f0f0f1;color:#262626;font-size:13px;vertical-align:middle}
body.editorial .ahm-table .ahm-no,body.editorial .ahm-table .ahm-ph-no{width:56px;color:#8e8e8e;white-space:nowrap}
.ahm-work{display:flex;align-items:center;gap:10px;min-width:0}
.ahm-thumb{flex:none;width:30px;height:44px;overflow:hidden;border-radius:3px;background:#f5f5f5}
.ahm-thumb>*,.ahm-thumb img,.ahm-thumb svg{display:block;width:100%!important;height:100%!important;object-fit:cover}
.ahm-tx{display:grid;min-width:0}
body.editorial .ahm-tx b{overflow:hidden;color:#0a0a0a;font-size:13.5px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
body.editorial .ahm-tx small{color:#8e8e8e;font-size:12px}
body.editorial .ahm-src{color:#8e8e8e}body.editorial .ahm-src.pick{color:#0a0a0a;font-weight:600}body.editorial .ahm-src.auto-ex{color:#525252}body.editorial .ahm-src.auto-slot{color:#0a0a0a;font-weight:600}
body.editorial .ahm-table .ahm-act{text-align:right;white-space:nowrap}.ahm-acts{display:inline-flex;gap:4px;vertical-align:middle}
body.editorial .ahm-icon{display:grid;place-items:center;width:28px;height:28px;min-height:0!important;padding:0;border:1px solid #e5e5e5;border-radius:6px;background:#fff;color:#404040;cursor:pointer}
body.editorial .ahm-small{display:inline-flex;align-items:center;gap:4px;height:28px;min-height:0!important;padding:0 10px;border:1px solid #e5e5e5;border-radius:6px;background:#fff;color:#0a0a0a;font:inherit;font-size:12.5px;font-weight:600;white-space:nowrap;cursor:pointer}
body.editorial .ahm-icon:disabled,body.editorial .ahm-small:disabled{opacity:.35;cursor:default}
body.editorial .ahm-muted{color:#a3a3a3;font-size:12.5px}
body.editorial .ahm-gone{margin:10px 0 0;color:#b45309;font-size:13px}
body.editorial .ahm-empty{margin:0;padding:14px 0;color:#8e8e8e;font-size:13px}
.ahm-search{display:flex;align-items:center;gap:7px;max-width:420px;height:38px;margin-top:12px;padding:0 11px;border:1px solid #dbdbdb;border-radius:6px;color:#8e8e8e}
body.editorial .ahm-search input{flex:1;min-width:0;height:auto;min-height:0;padding:0;border:0!important;outline:0;background:none!important;box-shadow:none!important;font:inherit;font-size:13.5px;color:#0a0a0a}
.ahm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ahm-results{max-width:560px}
.ahm-result{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px;border-bottom:1px solid #f0f0f1}

/* 문구 줄 */
.ahm-line{display:grid;grid-template-columns:110px minmax(0,600px);gap:12px;padding:10px 0;border-bottom:1px solid #f0f0f1}
body.editorial .ahm-line>label{padding-top:9px;color:#0a0a0a;font-size:13px;font-weight:600}
body.editorial .ahm-input{display:block;width:100%;box-sizing:border-box;min-height:38px;padding:9px 11px;border:1px solid #dbdbdb;border-radius:6px;background:#fff;color:#0a0a0a;font:inherit;font-size:14px;box-shadow:none}
body.editorial textarea.ahm-input{min-height:60px;resize:vertical;line-height:1.5}
body.editorial .ahm-input:focus{outline:0;border-color:#0a0a0a}
body.editorial .ahm-mono{font-family:ui-monospace,Consolas,monospace;font-size:13px}
.ahm-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body.editorial .ahm-line small{display:block;margin-top:5px;color:#8e8e8e;font-size:12px;line-height:1.6}
body.editorial .ahm-line small .over{color:#c81e3d;font-weight:700}
body.editorial .ahm-ex{min-height:0!important;padding:0;border:0;background:none;color:#404040;font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#d4d4d4;cursor:pointer}

@media(max-width:900px){
 .ahm-pv{grid-template-columns:minmax(0,1fr)}
 .ahm-pv-ph{max-width:320px}
 .ahm-table thead{display:none}
 .ahm-table,.ahm-table tbody,.ahm-table tr{display:block}
 .ahm-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:10px 0;border-bottom:1px solid #f0f0f1}
 body.editorial .ahm-table td{display:block;padding:0;border:0}
 body.editorial .ahm-table .ahm-no,body.editorial .ahm-table .ahm-ph-no{display:none}
 .ahm-table td:nth-child(2){grid-column:1}.ahm-table .ahm-src{grid-column:1;font-size:12px}body.editorial .ahm-table .ahm-act{grid-column:2;grid-row:1/3;align-self:center}
 .ahm-line{grid-template-columns:minmax(0,1fr);gap:4px}body.editorial .ahm-line>label{padding:0}
 .ahm-two{grid-template-columns:1fr}
 body.editorial .ahm-input{font-size:16px}
}
/* 자동 / 직접 고르기 (2026-11-13) */
body.editorial .ahm-mode{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:22px 0 2px}
body.editorial .ahm-mode small{flex-basis:100%;color:#737373;font-size:12.5px;line-height:1.5}
