:root {
  --bg: #fdf7f8;
  --panel: #ffffff;
  --ink: #1d1d1f;
  --sub: #6e6e73;
  --line: #f1e4e7;
  --accent: #d4899a;
  --accent-soft: #fcedf0;
  --danger: #d0566a;
  --shadow: 0 1px 3px rgba(201,120,138,.06), 0 10px 30px rgba(201,120,138,.08);
  --ease: cubic-bezier(.22,.61,.36,1);
  --f-gowun: 'Gowun Batang', serif; --f-gowundodum: 'Gowun Dodum', sans-serif; --f-myeongjo: 'Nanum Myeongjo', serif;
  --f-nanumgothic: 'Nanum Gothic', sans-serif; --f-notoserif: 'Noto Serif KR', serif; --f-notosans: 'Noto Sans KR', sans-serif;
  --f-maruburi: 'MaruBuri', serif; --f-pretendard: 'Pretendard Variable', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: radial-gradient(1000px 500px at 100% 0%, #fbe7ec 0%, rgba(253,247,248,0) 60%), var(--bg); background-attachment: fixed; color: var(--ink); font-family: 'Pretendard Variable', Pretendard, -apple-system, sans-serif; font-size: 14px; letter-spacing: -0.01em; padding-bottom: 92px; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; color: inherit; }
button:disabled { opacity: .45; cursor: default; }
.muted { color: var(--sub); }
.center { text-align: center; }
[hidden] { display: none !important; }

/* 상단 */
.top { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: rgba(255,255,255,.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: .5px solid var(--line); position: sticky; top: 0; z-index: 20; }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 22px; letter-spacing: .06em; color: var(--ink); text-decoration: none; }
.logo em { color: var(--accent); }
.top-r { display: flex; align-items: center; gap: 12px; }
.save { font-size: 12px; color: var(--sub); }
.save.ok::before { content: '✓ '; color: var(--accent); }
.who { font-size: 13px; }
.who.local { font-size: 11.5px; color: var(--sub); border: 1px dashed var(--line); border-radius: 999px; padding: 3px 9px; }

/* 버튼 */
.ghost { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--ink); text-decoration: none; background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 4px; transition: background .2s, transform .2s var(--ease); }
.ghost:hover { background: var(--accent-soft); }
.ghost:active, .primary:active, .kakao:active { transform: scale(.97); }
.ghost.sm { padding: 5px 11px; font-size: 12px; }
.ghost.danger { color: var(--danger); border-color: #f5d3da; }
.primary { border: 0; border-radius: 999px; padding: 12px 18px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transition: transform .2s var(--ease), opacity .2s; }
.primary:hover { opacity: .88; }
.primary.danger, .danger.primary { background: var(--danger); }
.wide { width: 100%; margin-top: 10px; }
.kakao { border: 0; border-radius: 8px; padding: 8px 12px; background: #fee500; color: #191919; font-size: 13px; }

/* 하단 탭바 */
.tabbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; display: flex; background: rgba(255,255,255,.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-radius: 24px; box-shadow: 0 0 0 .5px rgba(0,0,0,.06), 0 14px 40px rgba(201,120,138,.2); padding: 6px; gap: 2px; }
.tabbar button { border: 0; background: none; display: grid; justify-items: center; gap: 3px; font-size: 11px; color: var(--sub); padding: 7px 15px; border-radius: 18px; transition: background .25s var(--ease), color .25s; }
.tabbar button i { font-style: normal; font-size: 17px; line-height: 1; }
.tabbar button.on { color: #b5677a; background: linear-gradient(135deg, #fdeef1, #fadde3); font-weight: 600; }

/* 페이지형 탭 (대시보드, 분석, 설정) */
.page { max-width: 560px; margin: 0 auto; padding: 32px 16px 40px; }
.page-t { text-align: center; font-weight: 700; font-size: 28px; letter-spacing: -0.03em; margin: 14px 0 6px; }
.page-s { text-align: center; color: var(--sub); margin: 0 0 28px; font-size: 15px; }
.pcard { background: #fff; border-radius: 22px; padding: 22px; margin-bottom: 14px; box-shadow: var(--shadow); }
.pcard h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.row-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.row-btns > * { flex: 1; }
.notice { border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.6; }
.notice.warn { background: #fdf6e7; border: 1px solid #f1e2bd; color: #7a5d1d; }
.notice.ok { background: #eef6ef; border: 1px solid #d3e8d5; color: #2f6b3a; }
.pill { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; color: var(--sub); margin-left: 4px; }
.lab { font-size: 12px; color: var(--sub); }
.in { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-top: 8px; color: var(--sub); }
.radio-card { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.radio-card span { display: grid; gap: 2px; }
.radio-card small { color: var(--sub); }
.radio-card:has(input:checked) { border-color: var(--ink); }
.help-d summary { cursor: pointer; font-size: 13px; color: var(--sub); margin: 8px 0; }
.help-d p { font-size: 12.5px; color: var(--sub); line-height: 1.6; }
.danger-zone .dz { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.danger-zone .dz:first-of-type { border-top: 0; }
.dz div { display: grid; gap: 2px; }
.dz small { color: var(--sub); font-size: 12px; }

/* 대시보드 카드 */
.dcard { background: #fff; border-radius: 24px; padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.dcard.mini { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.dcard.mini div { flex: 1; display: grid; }
.dcard.mini small { color: var(--sub); }
.check { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center; font-size: 12px; flex: none; }
.check.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.dc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.badge { font-size: 12px; color: var(--danger); }
.badge.paid { color: #2f6b3a; }
.dc-thumb { position: relative; aspect-ratio: 4/3; border-radius: 12px; background: #f1eee9 center/cover no-repeat; display: grid; place-items: center; overflow: hidden; }
.dc-thumb > p { color: var(--sub); font-size: 12.5px; padding: 0 20px; text-align: center; }
.dc-share { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 54px; background: linear-gradient(transparent, rgba(0,0,0,.45)); color: #fff; display: grid; }
.dc-share small { opacity: .85; }
.wm-btn { position: absolute; left: 14px; right: 14px; bottom: 12px; border: 0; background: #fff; border-radius: 8px; padding: 9px; font-size: 13px; }
.dc-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); margin: 12px 2px; }
.dc-meta .warn { color: var(--danger); }
.dc-addr { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 12px; font-size: 13px; color: var(--sub); }
.dc-addr b { color: var(--ink); font-weight: 500; }
.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.dc-grid > * { padding: 11px 8px; }
.ok { color: #2f9a4a; font-style: normal; font-weight: 700; }
.add-card { width: 100%; border: 1px dashed #d6d0c7; border-radius: 14px; background: none; padding: 16px; color: var(--sub); }
.fab { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 25; border: 0; background: linear-gradient(135deg, #e8a3b0, #c9788a); color: #fff; padding: 14px 36px; border-radius: 999px; font-weight: 600; box-shadow: 0 12px 28px rgba(201,120,138,.35); transition: transform .25s var(--ease); }
.fab:hover { transform: translateX(-50%) scale(1.04); }
.qr-img { width: 220px; display: block; margin: 0 auto; }
.invites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-height: 50vh; overflow: auto; }
.invites figure { margin: 0; display: grid; gap: 6px; justify-items: center; text-align: center; font-size: 12px; }
.invites img { width: 100%; height: 120px; object-fit: contain; background: #f4f2ee; border-radius: 6px; }
.invites small { color: var(--sub); }

/* 분석 */
.stat { background: var(--bg); border-radius: 12px; padding: 14px; display: grid; gap: 2px; }
.stat span { font-size: 12px; color: var(--sub); }
.stat b { font-size: 18px; font-weight: 600; }
.stat small { font-size: 11.5px; color: var(--sub); }
.stat.big { margin-bottom: 8px; }
.stat.yes { background: var(--accent-soft); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
table { border-collapse: collapse; font-size: 12.5px; width: 100%; white-space: nowrap; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
th { color: var(--sub); font-weight: 500; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 140px; align-items: end; margin-bottom: 10px; }
.bars div { display: grid; grid-template-rows: 1fr auto auto; height: 100%; justify-items: center; font-size: 11px; color: var(--sub); }
.bars i { align-self: end; width: 60%; min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; }
.bars b { color: var(--ink); font-weight: 500; }
.rank p { margin: 0 0 6px; font-size: 12px; color: var(--sub); }
.rank ol { margin: 0; padding-left: 18px; font-size: 13px; }
.rank li span { display: inline-block; min-width: 70%; }

/* 디자인 탭 */
.layout { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 560px); gap: 32px; max-width: 1180px; margin: 0 auto; padding: 24px 20px; }
.preview-col { position: sticky; top: 80px; height: calc(100vh - 180px); display: flex; justify-content: center; }
.phone { width: 390px; height: 100%; max-height: 820px; border-radius: 48px; padding: 11px; background: linear-gradient(145deg, #fff, #fbeef0); box-shadow: 0 0 0 1px rgba(201,120,138,.12), 0 30px 70px rgba(201,120,138,.18); }.phone-screen { height: 100%; overflow-y: auto; border-radius: 38px; transform: translateZ(0); scrollbar-width: none; background: #fff; }
.phone-screen::-webkit-scrollbar { display: none; }
.preview-full { display: flex; justify-content: center; padding: 24px 16px; height: calc(100vh - 140px); }
.lead { color: var(--sub); margin: 0 0 10px; font-size: 13px; }
.addr-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 12px; margin-bottom: 12px; font-size: 13px; overflow: hidden; }
.addr-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--sub); }
.filters button.on { border-color: var(--accent); background: var(--accent-soft); color: #b5677a; font-weight: 600; }
.group { font-size: 13px; font-weight: 600; color: var(--sub); margin: 22px 4px 8px; }
.group small { font-weight: 400; margin-left: 6px; }

.blk { background: var(--panel); border-radius: 18px; margin-bottom: 10px; box-shadow: var(--shadow); transition: box-shadow .3s var(--ease); }
.blk[open] { box-shadow: 0 0 0 1.5px #f3cdd5, var(--shadow); }
.blk.dragging { opacity: .4; }
.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.drop-after { box-shadow: 0 3px 0 var(--accent); }
.imgs .drop-before { box-shadow: -3px 0 0 var(--accent); }
.imgs .drop-after { box-shadow: 3px 0 0 var(--accent); }
.blk.off summary .t { color: var(--sub); }
.blk summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 15px 16px; cursor: pointer; user-select: none; }
.blk summary::-webkit-details-marker { display: none; }
.blk summary .t { flex: 1; font-weight: 500; }
.blk summary .done { color: #2f9a4a; font-weight: 700; }
.blk summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--sub); border-bottom: 1.5px solid var(--sub); transform: rotate(45deg); margin: -4px 4px 0; transition: transform .15s; }
.blk[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.handle { cursor: grab; color: #c4bdb4; letter-spacing: -2px; padding: 0 2px; }

.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { display: none; }
.switch span { position: absolute; inset: 0; background: #ddd8d1; border-radius: 999px; transition: .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }

.fields, .fields-in { display: flex; flex-wrap: wrap; gap: 12px 10px; }
.fields { padding: 16px 16px 20px; border-top: 1px solid var(--line); }
.fields .help { width: 100%; margin: 0; font-size: 12px; color: var(--sub); line-height: 1.6; }
.note { width: 100%; margin: 0; font-size: 12px; color: var(--sub); background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.fld { width: 100%; display: grid; gap: 6px; align-content: start; }
.fld.w2 { width: calc(50% - 5px); }
.fld.w3 { width: calc(33.33% - 7px); }
.fld.w4 { width: calc(25% - 7.5px); }
.fld.w15 { width: calc(66.66% - 4px); }
.fld .lab b { color: var(--accent); font-weight: 400; }
.fld small { font-size: 11.5px; color: var(--sub); }
.cnt { font-size: 12px; color: var(--sub); }
.sub { width: 100%; font-size: 12.5px; font-weight: 600; margin: 8px 0 -4px; }
.fld input[type=text], .fld input[type=tel], .fld input[type=url], .fld input[type=date], .fld input[type=time], .fld select, .fld textarea {
  width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: #fff; color: var(--ink);
}
.fld textarea { resize: vertical; line-height: 1.6; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); }
.fld.tg { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.fld.tg .lab { font-size: 12.5px; color: var(--ink); }
.color { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px 3px 3px; background: #fff; }
.color input { width: 34px; height: 30px; border: 0; padding: 0; background: none; }
.color em { font-style: normal; font-size: 12px; color: var(--sub); flex: 1; }
.clr { border: 0; background: none; color: var(--sub); }
.segs { display: flex; flex-wrap: wrap; gap: 4px; }
.segs label, .themes label, .fonts label, .music-list label { cursor: pointer; }
.segs input, .themes input, .fonts input, .music-list input { display: none; }
.segs span { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; font-size: 12.5px; background: #fff; }
.segs span { border-radius: 999px !important; transition: background .2s, color .2s, border-color .2s; }
.segs input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; }
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.themes span { display: grid; justify-items: center; gap: 4px; font-size: 11.5px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; background: #fff; }
.themes input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); background: #fff8f9; }
.th { width: 34px; height: 46px; background: #fbeff1; position: relative; border-radius: 4px; }
.th::after { content: ''; position: absolute; left: 7px; right: 7px; top: 7px; height: 22px; background: #eab8c2; }
.th-arch::after { border-radius: 20px 20px 2px 2px; }
.th-full::after { inset: 0; height: auto; }
.th-polaroid::after { transform: rotate(-6deg); border: 3px solid #fff; border-bottom-width: 8px; }
.th-split::after { inset: 0 0 auto 0; height: 26px; }
.th-circle::after { width: 20px; height: 20px; left: 7px; border-radius: 50%; }
.th-magazine::after { inset: 0; height: auto; background: linear-gradient(#f2c9d1, #d48b9b); }
.th-text::after { background: none; border-top: 2px solid #eab8c2; top: 20px; height: 0; }
.fonts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fonts span { display: grid; justify-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px; font-size: 11px; color: var(--sub); background: #fff; }
.fonts b { font-weight: 400; font-size: 15px; color: var(--ink); }
.fonts input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); background: #fff8f9; }
.music-list { display: grid; gap: 4px; max-height: 240px; overflow: auto; }
.music-list label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 6px 6px 12px; }
.music-list span { flex: 1; }
.music-list input:checked + span { font-weight: 600; }
.samples { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; width: 100%; }
.samples .lab { width: 100%; }
.ai { border-color: #d9cdbd; color: #7b6650; }
.slug { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.slug span { padding: 0 4px 0 11px; color: var(--sub); font-size: 12.5px; white-space: nowrap; }
.slug input { border: 0 !important; padding-left: 0 !important; }
.list { gap: 8px; }
.li { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fcfbf9; }
.li-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.li-h span { display: flex; gap: 4px; }
.li-h button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.add-li { border: 1px dashed #d6d0c7; background: none; border-radius: 10px; padding: 11px; color: var(--sub); }

.img-f { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.img-f small { width: 100%; }
.img-f audio { height: 34px; flex: 1; min-width: 180px; }
.thumb { width: 72px; height: 72px; border-radius: 8px; background: var(--accent-soft) center/cover no-repeat; border: 1px dashed var(--line); flex: none; position: relative; }
.thumb .rm { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 12px; line-height: 20px; padding: 0; }
.upbtn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.upbtn input, .thumb.add input { display: none; }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.imgs .thumb { width: auto; height: auto; aspect-ratio: 1; border-style: solid; cursor: grab; }
.thumb.add { display: grid; place-items: center; color: var(--sub); font-size: 22px; cursor: pointer; border-style: dashed !important; }

/* 확인 창, 토스트 */
.dlg { position: fixed; inset: 0; z-index: 90; background: rgba(60,30,40,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.dlg-box { background: rgba(255,255,255,.96); border-radius: 26px; padding: 26px 24px 20px; width: min(460px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.18); animation: pop .3s var(--ease); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.dlg-box h3 { margin: 0 0 8px; font-size: 17px; }
.dlg-box > p { margin: 0 0 12px; color: var(--sub); line-height: 1.6; white-space: pre-line; }
.dlg-in { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 4px; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 16px; }
.ed-toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: rgba(40,38,35,.92); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px; z-index: 95; max-width: 90vw; text-align: center; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; }
.faq p { color: var(--sub); margin: 8px 0 0; line-height: 1.6; }
.faq-btn { position: fixed; right: 18px; bottom: 96px; z-index: 28; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.1); }

/* 사용 가이드 */
.tour { position: fixed; inset: 0; z-index: 85; background: rgba(30,28,25,.35); }
.tour-box { position: fixed; background: #fff; border-radius: 14px; padding: 16px 18px 12px; width: min(300px, calc(100vw - 20px)); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.tour-box p { color: var(--sub); line-height: 1.6; margin: 6px 0 12px; }
.tour-btns { display: flex; justify-content: space-between; align-items: center; }
.tour-btns button { border: 0; background: none; font-size: 13px; color: var(--sub); padding: 6px 8px; }
.tour-btns .primary { background: var(--ink); color: #fff; border-radius: 8px; padding: 7px 12px; }
.tour-hl { position: relative; z-index: 86 !important; box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 0 6px var(--accent) !important; border-radius: 10px; }

/* 로그인 */
.login-wall { position: fixed; inset: 0; z-index: 100; background: radial-gradient(800px 500px at 80% 10%, #fbe4e8, rgba(255,248,249,.97) 60%), #fff8f9; display: grid; place-items: center; padding: 16px; }
.login-box { background: rgba(255,255,255,.9); border-radius: 30px; box-shadow: 0 30px 80px rgba(201,120,138,.18); padding: 48px 36px; width: min(380px, 100%); text-align: center; }
.login-box .logo { display: block; font-size: 30px; margin: 0 0 10px; }
.login-box p { color: var(--sub); margin: 0 0 28px; line-height: 1.6; }
.login-box small { display: block; color: var(--sub); margin-top: 14px; font-size: 11.5px; }
.naver { display: flex; align-items: center; justify-content: center; gap: 10px; background: #03c75a; color: #fff; text-decoration: none; border-radius: 10px; padding: 14px; font-weight: 600; }
.naver b { font-family: Arial, sans-serif; font-size: 17px; }

@media (max-width: 900px) {
  .layout { display: block; padding: 16px; }
  .preview-col { display: none; }
  .phone { width: 100%; max-width: 430px; padding: 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
  .phone-screen { border-radius: 12px; }
  .preview-full { padding: 0; height: calc(100vh - 56px - 84px); }
  .preview-full .phone { height: 100%; max-height: none; border-radius: 0; box-shadow: none; max-width: none; }
  .preview-full .phone-screen { border-radius: 0; }
  .fld.w3, .fld.w4 { width: calc(50% - 5px); }
  .tabbar button { padding: 6px 10px; }
  .top .ghost { display: none; }
  .themes, .fonts { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 420px) {
  .tabbar { left: 8px; right: 8px; transform: none; justify-content: space-between; }
  .tabbar button { padding: 6px 4px; flex: 1; }
  .invites { grid-template-columns: repeat(2, 1fr); }
}
