/* 저스트메이트 홈페이지 어드민: 밝은 바탕, 큰 글자, 익숙한 모양(목록 · 입력 칸 · 미리보기) */
:root { --bg: #f4f3ef; --card: #fff; --ink: #16161a; --mut: #74747b; --line: #dedcd4; --soft: #eceae3; --red: #c63226; --dark: #0d0d0f; --ok: #2fa46a; --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.logo { display: flex; align-items: baseline; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.logo i { width: 5px; height: 5px; margin-left: 2px; border-radius: 50%; background: var(--red); }
.logo span { margin-left: 8px; font-size: 12px; font-weight: 600; color: #8d8d94; }

/* 단추, 입력 칸 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid #cfccc3; border-radius: 9px; background: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, opacity .2s; }
.btn:hover { border-color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: #a92a20; border-color: #a92a20; }
.btn--wide { width: 100%; height: 48px; font-size: 15px; }
.btn--s { height: 34px; padding: 0 13px; font-size: 13px; }
.btn--warn { color: var(--red); }
.link { font-size: 13px; font-weight: 600; color: var(--mut); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.link--warn { color: var(--red); }
.f { display: block; min-width: 0; }
.f > span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--mut); }
.f small { display: block; margin-top: 6px; font-size: 12px; color: var(--mut); }
input[type=text], input[type=email], input[type=url], input[type=search], input[type=month], select, textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #d6d3ca; border-radius: 9px; background: #fbfaf8; font-size: 14px; font-weight: 500; transition: border-color .2s, background .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
input::placeholder, textarea::placeholder { color: #a5a5ab; font-weight: 400; }
textarea { display: block; resize: vertical; line-height: 1.7; min-height: 200px; }
/* 사이트 설정 화면(홈 화면, 서비스·소개·문의, 회사소개서)의 입력 칸들 */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; } .tabs--sub { margin-top: -4px; }
.ta-s { min-height: 0; line-height: 1.6; }
.w-full { width: 100%; }
/* 칸 안의 긴 글(프로젝트 이름 등)이 칸을 밀어 넓히지 않게 한다 */
.form > *, .form .box > * { min-width: 0; }
.lst { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; } .lst > select { margin-top: 4px; width: 100%; }
.lst__r { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 6px; border: 1px solid var(--soft); border-radius: 10px; background: #fff; }
.lst__r > img, .lst__r > .noimg { flex: none; width: 72px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--soft); }
.lst__r > b { flex: 1 1 0; min-width: 0; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lst__r > b em { display: block; font-style: normal; font-size: 12px; font-weight: 500; color: var(--mut); overflow: hidden; text-overflow: ellipsis; }
.lst__r.is-miss { opacity: .6; }
.lst__b { display: inline-flex; align-items: center; gap: 4px; flex: none; } .lst__b .btn--s { width: 34px; padding: 0; }
.lst--chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lst__c { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1px solid var(--soft); border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; }
.lst__c .lst__b .btn--s { width: 28px; height: 28px; } .lst__c .x { width: 28px; height: 28px; } .lst__c .x::before, .lst__c .x::after { left: 8px; right: 8px; }
.grp { display: grid; gap: 6px; margin-bottom: 12px; padding: 10px; border: 1px solid var(--soft); border-radius: 10px; background: #fcfbf8; } .grp .row { margin: 0; }
.table--log .tr { grid-template-columns: 110px 130px minmax(0, 1fr) minmax(0, 1.4fr); cursor: default; }
/* 편집 화면에서만 보이는 윗줄 단추(실행 취소, 임시저장, 되돌리기) */
body:not(.is-edit) .only-edit { display: none; }
.top__edit { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; padding-right: 12px; border-right: 1px solid var(--line); }
.btn--icon { width: 40px; padding: 0; font-size: 18px; line-height: 1; }
.table--ver { margin-top: 14px; max-height: 46vh; overflow: auto; } .table--ver .tr { grid-template-columns: 96px 96px minmax(0, 1fr) 84px; cursor: default; }
.vk { padding: 2px 7px; border-radius: 4px; font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--soft); } .vk--manual { background: var(--ink); color: #fff; } .vk--pub { background: var(--ok); color: #fff; }
.hint { margin-top: 10px; font-size: 12.5px; color: var(--mut); line-height: 1.6; }
.empty { padding: 48px 16px; text-align: center; color: var(--mut); }

/* 스위치 */
.tog { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; text-align: left; }
.tog i { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #cfccc3; transition: background .2s; }
.tog i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.tog.is-on i { background: var(--red); }
.tog.is-on i::after { transform: translateX(16px); }
.chip { padding: 8px 14px; border-radius: 999px; background: #e7e5de; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.chip:hover { background: #dcd9d0; }
.chip.is-on { background: var(--ink); color: #fff; }
.chip--s { padding: 6px 12px; font-size: 12.5px; background: #fff; border: 1px solid #cfccc3; }
.chip--s.is-on { border-color: var(--ink); }

/* 로그인 */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login__box { width: min(400px, 100%); padding: 36px 32px 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.login__box h1 { margin: 26px 0 22px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.login__box .f { margin-bottom: 14px; }
.login__box .link { display: block; margin: 14px auto 0; }
.hint--top { margin: 0 0 16px; }
.msg { min-height: 20px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--red); }
#code { font-size: 24px; font-weight: 800; letter-spacing: .22em; text-align: center; }

/* 틀: 왼쪽 메뉴 + 본문 */
.app { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 14px 18px; background: var(--dark); color: #fff; }
.side .logo { padding: 0 10px 24px; }
.side__menu { display: grid; gap: 2px; }
.side__menu a, .side__menu span { padding: 10px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: #b9b9bf; transition: background .2s, color .2s; }
.side__menu a:hover { color: #fff; }
.side__menu a.is-on { background: #232327; color: #fff; }
.side__menu .is-soon { color: #5d5d63; cursor: default; }
.side__menu .is-soon::after { content: '준비 중'; margin-left: 8px; font-size: 10.5px; font-weight: 600; color: #5d5d63; border: 1px solid #333338; border-radius: 4px; padding: 1px 5px; }
.side__who { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid #26262b; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.side__who .link { color: #8d8d94; }
.main { min-width: 0; padding: 0 clamp(16px, 2vw, 28px) 48px; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 66px; margin-bottom: 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
.top__crumb { font-size: 19px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__crumb a { color: var(--mut); }
.top__crumb a:hover { color: var(--ink); }
.top__crumb i { font-style: normal; margin: 0 8px; color: #a3a3a8; font-weight: 500; }
.top__state { margin-left: auto; font-size: 12.5px; color: var(--mut); white-space: nowrap; }
.top__state::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--ok); vertical-align: 1px; }
.top__state.is-busy::before { background: #d9a400; }
.top__state.is-bad { color: var(--red); } .top__state.is-bad::before { background: var(--red); }
#publish:not(.is-dirty) { background: #fff; border-color: #cfccc3; color: var(--mut); }

/* 목록 */
.tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.search { flex: 1 1 240px; }
.table { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.tr { display: grid; grid-template-columns: 26px minmax(0, 2.6fr) minmax(0, 1.2fr) 120px 56px 56px; align-items: center; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--soft); cursor: pointer; transition: background .15s; }
.tr:hover { background: #faf9f6; }
.tr--h { border-top: 0; padding: 11px 16px; background: #faf9f6; font-size: 12px; font-weight: 700; color: var(--mut); cursor: default; }
.tr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr.is-hidden .name b, .tr.is-hidden > span:nth-child(3), .tr.is-hidden > span:nth-child(4) { color: #a5a5ab; }
.tr.is-drag { opacity: .4; }
.grip { height: 16px; cursor: grab; background: radial-gradient(circle, #b5b3ab 1.4px, transparent 1.7px) 0 0 / 7px 8px; }
.grip.is-off { opacity: .25; cursor: default; }
.name { display: flex; align-items: center; gap: 12px; }
.name img, .noimg { width: 64px; height: 46px; flex: none; border-radius: 6px; object-fit: cover; background: var(--soft); }
.name b { font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; }
.name em { flex: none; padding: 2px 7px; border-radius: 4px; background: var(--soft); font-style: normal; font-size: 11px; font-weight: 600; color: var(--mut); }

/* 편집 */
.edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.form { display: grid; gap: 12px; min-width: 0; }
.box { padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.box h3 { margin-bottom: 14px; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.box h3 em { margin-left: 8px; font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--mut); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f.is-wide { grid-column: 1 / -1; }
.box > .f + .f, .box > .f + .tabar { margin-top: 12px; }
.chips, .adds, .switches { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips > span, .adds > span { margin-right: 6px; font-size: 12px; font-weight: 700; color: var(--mut); }
.tagadd { width: 150px !important; min-height: 32px !important; padding: 4px 10px !important; font-size: 12.5px !important; border-radius: 999px !important; }
.switches { gap: 10px 22px; padding-top: 14px; border-top: 1px solid var(--soft); }
.hero { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; }
.hero__img { position: relative; display: block; border-radius: 8px; overflow: hidden; background: var(--soft); aspect-ratio: 16 / 10; }
.hero__img img, .hero__img .noimg { width: 100%; height: 100%; object-fit: cover; }
.hero__img span { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.hero .tog { margin-top: 12px; }
.tabar { display: flex; gap: 6px; margin-bottom: 8px; }
.tabar button { height: 30px; padding: 0 11px; border: 1px solid #cfccc3; border-radius: 7px; background: #fff; font-size: 12.5px; font-weight: 700; }
.tabar button:hover { border-color: var(--ink); }
.drop { display: block; width: 100%; padding: 20px 16px; border: 1.5px dashed #c4c1b8; border-radius: 10px; background: #faf9f6; text-align: center; font-size: 13px; color: var(--mut); transition: border-color .2s, background .2s; }
.drop:hover, .drop.is-over { border-color: var(--red); background: #fff; color: var(--ink); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 12px; }
.th { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 7px; overflow: hidden; background: var(--soft); outline: 0 solid var(--red); transition: outline-width .12s, opacity .2s; }
.th img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.th.is-sel { outline-width: 3px; }
.th.is-off img { opacity: .35; }
.th.is-drag { opacity: .35; }
.th__tags { position: absolute; left: 5px; top: 5px; right: 5px; display: flex; flex-wrap: wrap; gap: 3px; }
.th__tags i { padding: 2px 6px; border-radius: 4px; background: rgba(13, 13, 15, .82); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; }
.th__tags i.is-red { background: var(--red); } .th__tags i.is-gray { background: #77777e; } .th__tags i.is-new { background: var(--ok); }
/* 자유 격자 편집: 가로 12칸. 타일은 자리·크기를 px 로 놓고(끌 때 부드럽게 움직이도록), 안쪽 여백으로 간격을 만든다 */
.fge__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 8px; }
.fge { position: relative; max-width: 540px; margin: 0 -3px; border-radius: 8px; user-select: none; -webkit-user-select: none; }
.fge.is-snap { background: linear-gradient(90deg, transparent calc(33.333% - .5px), #d9d6cd calc(33.333% - .5px), #d9d6cd calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), #d9d6cd calc(66.666% - .5px), #d9d6cd calc(66.666% + .5px), transparent calc(66.666% + .5px)); }
.fge__t { position: absolute; padding: 3px; cursor: grab; touch-action: none; transition: left .16s, top .16s, width .16s, height .16s; }
.fge__t .th { width: 100%; height: 100%; aspect-ratio: auto; pointer-events: none; }
.fge__t .th img { max-width: none; }
.fge__t.is-sel .th { outline-width: 3px; }
.fge__t.is-drag { z-index: 3; cursor: grabbing; transition: none; } .fge__t.is-drag .th { box-shadow: 0 10px 30px rgba(0, 0, 0, .3); opacity: .92; }
.fge__h { position: absolute; right: 3px; bottom: 3px; width: 22px; height: 22px; border-radius: 7px 0 7px 0; background: rgba(13, 13, 15, .78); cursor: nwse-resize; }
.fge__h::after { content: ''; position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
.fge__rest { display: block; padding: 0; border-radius: 7px; } .fge__rest .th { pointer-events: none; } .fge__rest.is-sel .th { outline-width: 3px; }
.th__tags i.is-ok { background: var(--ok); }
/* 여백 타일: 실제 배경(어두운 색) 위에 놓인 모습으로 보여 준다 */
.th--pad { background: #0a0a0b; } .th--pad-black { background: #000; } .th--pad-white { background: #fff; } .th--pad-red { background: var(--red); }
.shp .gapl { margin-left: 14px; } .shp small { font-size: 12px; color: var(--mut); }
/* 크롭 편집 창(파워포인트의 자르기 방식): 어둡게 깐 사진 전체 위에, 밝게 보이는 자르기 테두리 */
.pc { position: relative; margin: 0 auto; border-radius: 6px; overflow: hidden; background: #111; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.pc img { position: absolute; left: 0; top: 0; max-width: none; pointer-events: none; }
.pc__bg { width: 100%; height: 100%; opacity: .32; }
.pc__box { position: absolute; cursor: move; box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 2px rgba(0, 0, 0, .55); }
.pc__in { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* 모서리 손잡이: 검은 ㄱ자(파워포인트의 자르기 손잡이 모양) */
.pc__h { position: absolute; width: 26px; height: 26px; }
.pc__h::before { content: ''; position: absolute; inset: 0; border: 0 solid #0d0d0f; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); }
.pc__h--nw { left: -4px; top: -4px; cursor: nwse-resize; } .pc__h--nw::before { border-left-width: 5px; border-top-width: 5px; }
.pc__h--ne { right: -4px; top: -4px; cursor: nesw-resize; } .pc__h--ne::before { border-right-width: 5px; border-top-width: 5px; }
.pc__h--sw { left: -4px; bottom: -4px; cursor: nesw-resize; } .pc__h--sw::before { border-left-width: 5px; border-bottom-width: 5px; }
.pc__h--se { right: -4px; bottom: -4px; cursor: nwse-resize; } .pc__h--se::before { border-right-width: 5px; border-bottom-width: 5px; }
.crop__zoom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 13px; }
/* 배치 그림: 실제 화면과 같은 모양의 축소판 */
.lmap { margin-top: 12px; max-width: 480px; }
.lg__bar { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 3px 4px; border-radius: 7px; font-size: 12px; color: var(--mut); }
.lg__bar b { font-weight: 800; color: var(--ink); }
.lg__bar > i { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; font-style: normal; font-size: 10.5px; font-weight: 600; }
.lg__bar .tpl { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.lg__bar .tpl em { font-style: normal; font-weight: 600; color: var(--ink); min-width: 9em; text-align: center; }
.lg__bar .nav { width: 26px; height: 26px; border: 1px solid #cfccc3; border-radius: 6px; background: #fff; font-size: 10px; }
.lg__bar .nav:hover { border-color: var(--ink); }
.lg__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.lg__grid .th { aspect-ratio: auto; width: 100%; height: 100%; min-height: 0; cursor: grab; }
.th.is-swap { outline: 3px dashed var(--ink); outline-offset: -3px; }
.th.is-over { outline: 3px dashed var(--red); outline-offset: -3px; opacity: .75; }
.lg__gap { position: relative; height: 12px; margin: 2px 0; border: 1.5px dashed transparent; border-radius: 7px; transition: height .15s, border-color .15s, background .15s; }
.lmap.is-dragging .lg__gap { height: 30px; border-color: #c4c1b8; }
.lmap.is-dragging .lg__gap::after { content: '여기에 놓으면 새 묶음'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11.5px; color: var(--mut); pointer-events: none; }
.lmap.is-dragging .lg__bar { outline: 1.5px dashed #c4c1b8; }
.lg__gap.is-over, .lg__bar.is-over { border-color: var(--red); outline-color: var(--red) !important; background: #fff3f1; }
.lmap__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; } .lmap__foot .hint { margin: 0; }
.hid { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); } .hid .hint { margin: 0; }
.thumbs--hid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); margin-top: 8px; }
.th--m, .th--f { display: grid; place-items: center; }
.th--m img { position: absolute; inset: 0; }
.th__play { position: relative; width: 30px; height: 30px; border-radius: 50%; background: rgba(13, 13, 15, .78); }
.th__play::after { content: ''; position: absolute; left: 12px; top: 9px; border: 6px solid transparent; border-left: 10px solid #fff; border-right: 0; }
.th--f em { padding: 0 8px; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: -.02em; text-align: center; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.th--red { background: var(--red); color: #fff; } .th--black { background: #111113; color: #fff; } .th--white { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.shp { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; } .shp em { margin-right: 6px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--mut); }
.mv { display: inline-flex; gap: 4px; margin-right: 8px; padding-right: 12px; border-right: 1px solid var(--line); }
.btn:disabled { opacity: .35; cursor: default; }
.row--media .row__th { flex: none; width: 56px; height: 42px; border-radius: 6px; overflow: hidden; background: var(--soft); }
.row--media .row__th img { width: 100%; height: 100%; object-fit: cover; }
.pick__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.thacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; min-height: 34px; }
.thacts .hint { margin: 0; }
.f--inline { flex: 1 1 100%; margin-top: 4px; }
.row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.row select { width: auto; flex: none; }
/* 사이트 공통 사진(멤버, LAB 그림) 한 줄: 작은 그림 + 바꾸기 단추 */
.row--ph { gap: 10px; }
.ph { flex: none; display: block; border-radius: 6px; object-fit: cover; background: var(--soft); }
.ph--mate { width: 50px; height: 60px; object-position: top; }
.ph--lab { width: 80px; height: 60px; }
.thumbs--tall .th { aspect-ratio: 5 / 6; } .thumbs--tall .th img { object-position: top; }
/* 주소 한 줄 + 복사 단추 */
.copyrow { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.copyrow > span { flex: none; font-size: 13px; font-weight: 700; }
.copyrow input { flex: 1 1 0; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line, #d9d6ce); border-radius: 8px; background: #fff; font-size: 13px; color: var(--mut); }
.copyrow .btn { flex: none; }
.copyrow + .hint { margin: 6px 0 12px; }
/* 새 로고 미리 보기: 홈페이지처럼 어두운 바탕에 흰색으로 */
.logo-pv { display: grid; place-items: center; height: 120px; margin: 0 0 14px; border-radius: 10px; background: var(--dark); }
.logo-pv img { max-width: 70%; max-height: 56px; filter: brightness(0) invert(1); }
.row input { flex: 1 1 0; min-width: 0; }
.row .w-s { flex: 0 0 34%; }
.row__fill { flex: 1 1 0; }
.x { flex: none; position: relative; width: 34px; height: 34px; border-radius: 8px; color: var(--mut); }
.x:hover { background: var(--soft); color: var(--red); }
.x::before, .x::after { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 1.6px; background: currentColor; transform: rotate(45deg); }
.x::after { transform: rotate(-45deg); }
.add { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px dashed #c4c1b8; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--mut); }
.add:hover { border-color: var(--ink); color: var(--ink); }
.danger { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 4px 0; font-size: 12.5px; color: var(--mut); }

/* 미리보기 */
.pv { position: sticky; top: 84px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.pv__tab { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--soft); }
.pv__tab button { padding: 6px 13px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--mut); }
.pv__tab button.is-on { background: var(--ink); color: #fff; }
.pv__tab em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--mut); }
.pv__stage { position: relative; height: calc(100vh - 150px); min-height: 420px; background: #0a0a0b; overflow: hidden; }
.pv__if { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #0a0a0b; }
.pv__empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #8d8d94; text-align: center; }

/* 게시 · 기록 */
.pub { display: grid; gap: 12px; max-width: 980px; }
.pub__now h3 { font-size: 20px; }
.pub__now .btn { margin-top: 16px; }
.pub__step { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.spin { width: 16px; height: 16px; border: 2.5px solid var(--soft); border-top-color: var(--red); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pub__alive { margin-top: 12px; font-size: 12.5px; color: var(--red); }
.pub__alive::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--red); vertical-align: 1px; }
.pub__alive.is-ok { color: var(--mut); } .pub__alive.is-ok::before { background: var(--ok); }
.table--pub .tr { grid-template-columns: 96px minmax(0, 1.2fr) 86px minmax(0, 2fr) 150px; cursor: default; }
.table--users .tr { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 110px 190px 100px 44px; cursor: default; }
.ms { font-size: 13px; color: var(--mut); } .ms--ok { color: var(--ok); font-weight: 700; } .ms--wait { color: var(--red); font-weight: 700; } .ms .link { margin-left: 6px; font-weight: 500; }
.users__note { margin-top: 6px; font-size: 13px; color: var(--mut); }
.table--users .tr > span { overflow: visible; }
.users__add { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) 120px auto; gap: 12px; align-items: end; margin-top: 16px; }
.sel { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 13.5px; }
.users__add .sel { width: 100%; height: 42px; }
.st { font-weight: 700; } .st--done { color: var(--ok); } .st--failed { color: var(--red); } .st--queued, .st--building { color: #b38600; }
.log { font-size: 12.5px; color: var(--mut); }

/* 묻는 창, 알림 */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(13, 13, 15, .5); }
.modal__box { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px 26px 22px; border-radius: 16px; background: var(--card); box-shadow: 0 30px 90px rgba(0, 0, 0, .3); }
.modal__box h2 { margin-bottom: 14px; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.modal__text { font-size: 14px; line-height: 1.7; color: #45454b; }
.modal__acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.thumbs--pick { max-height: 52vh; overflow: auto; margin: 0; padding: 3px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; max-width: min(560px, calc(100vw - 32px)); padding: 13px 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-bad { background: var(--red); }

@media (max-width: 1180px) {
  .edit { grid-template-columns: 1fr; }
  .pv { position: static; }
  .pv__stage { height: 70vh; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px; overflow-x: auto; }
  .side .logo { padding: 0; } .side__menu { display: flex; } .side__menu .is-soon { display: none; }
  .side__who { margin: 0 0 0 auto; padding: 0; border: 0; gap: 10px; white-space: nowrap; }
  .top { flex-wrap: wrap; height: auto; padding: 10px 0; } .top__state { order: 5; flex: 1 1 100%; margin: 0; } #open-site { display: none; }
  .tr { grid-template-columns: 18px minmax(0, 1fr) 46px 46px; } .tr > span:nth-child(3), .tr > span:nth-child(4) { display: none; }
  .grid, .hero { grid-template-columns: 1fr; }
  .users__add { grid-template-columns: 1fr; }
  .table--users .tr { grid-template-columns: minmax(0, 1fr) 96px 44px; } .table--users .tr > span:nth-child(2), .table--users .tr > span:nth-child(4), .table--users .tr > span:nth-child(5) { display: none; }
  .table--pub .tr { grid-template-columns: 80px 1fr 60px; } .table--pub .tr > span:nth-child(4), .table--pub .tr > span:nth-child(5) { display: none; }
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
