/* PICKTECH 사이트 빌더 편집기 */
:root {
    --ink: #17181a;
    --text: #2b2d31;
    --muted: #6b6f76;
    --line: #e3e4e7;
    --bg: #f3f4f6;
    --card: #ffffff;
    --brand: #17181a;
    --focus: #2f6bff;
    --danger: #d93025;
    --ok: #16794a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
    margin: 0;
    font: 15px/1.5 'Pretendard Variable', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    color: var(--text); background: var(--bg);
    word-break: keep-all;
}
a { color: var(--focus); }
h1 { font-size: 24px; margin: 8px 0 6px; color: var(--ink); letter-spacing: -0.02em; }
.muted { color: var(--muted); margin: 0 0 20px; }
.small { font-size: 13px; }
.hint { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.logo { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.logo span { font-weight: 500; color: var(--muted); margin-left: 4px; }

/* 입력 */
label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
input, select, textarea {
    width: 100%; padding: 10px 12px;
    font: inherit; color: var(--ink);
    background: #fff; border: 1px solid #cfd2d7; border-radius: 8px;
}
textarea { min-height: 96px; resize: vertical; }
select + input[type="url"] { margin-top: 6px; }
input:focus, select:focus, textarea:focus, button:focus-visible {
    outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent;
}
input[type="color"] { width: 40px; height: 40px; padding: 2px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 40px; padding: 0 16px;
    font: inherit; font-weight: 600; font-size: 14px;
    border-radius: 8px; border: 1px solid transparent; cursor: pointer;
    background: #fff; color: var(--ink);
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:disabled { opacity: .5; cursor: default; }
.btn.ghost { border-color: var(--line); }
.btn.small { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.danger { color: var(--danger); border-color: #f1c8c5; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.form-msg { min-height: 1.5em; margin: 10px 0 0; font-size: 14px; }
.form-msg[data-state="ok"] { color: var(--ok); font-weight: 600; }
.form-msg[data-state="error"] { color: var(--danger); }

/* 로그인·온보딩 */
.screen:not(.editor) { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.card { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.auth { max-width: 420px; }
.onboard { max-width: 560px; }
.card .btn.primary { width: 100%; height: 48px; margin-top: 24px; font-size: 16px; }
.slug-field { display: flex; align-items: center; border: 1px solid #cfd2d7; border-radius: 8px; overflow: hidden; background: #fff; }
.slug-field input { border: 0; border-radius: 0; }
.slug-field span { padding: 0 12px; color: var(--muted); white-space: nowrap; }
.slug-field:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.slug-field input:focus { outline: none; }

.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tpl {
    display: flex; align-items: center; gap: 10px; padding: 10px;
    text-align: left; font: inherit; cursor: pointer;
    background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
}
.tpl[aria-pressed="true"] { border-color: var(--ink); }
.tpl .sw { width: 30px; height: 30px; border-radius: 7px; flex: none; border: 1px solid rgba(0,0,0,.08); }
.tpl strong { display: block; font-size: 14px; }
.tpl small { color: var(--muted); font-size: 12px; line-height: 1.3; display: block; }

/* 편집기 레이아웃 */
.editor { display: flex; flex-direction: column; height: 100vh; }
.topbar {
    display: flex; align-items: center; gap: 16px;
    height: 60px; padding: 0 16px; flex: none;
    background: #fff; border-bottom: 1px solid var(--line);
}
.site-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.site-meta strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-url { color: var(--muted); font-size: 13px; white-space: nowrap; }
.badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eceef1; color: var(--muted); white-space: nowrap; }
.badge[data-status="active"] { background: #e3f4ea; color: var(--ok); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.save-state { font-size: 13px; color: var(--muted); white-space: nowrap; }
.save-state[data-state="dirty"] { color: #b45309; }
.save-state[data-state="error"] { color: var(--danger); }
.demo-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 16px; background: #fff8e1; border-bottom: 1px solid #f1e2b3; font-size: 14px; }
.demo-banner[hidden] { display: none; }
.demo-sample { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.demo-sample select { width: auto; padding: 4px 8px; }

.workspace { flex: 1; display: flex; min-height: 0; }
.panel { width: 400px; flex: none; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); min-height: 0; }
.tabs { display: flex; border-bottom: 1px solid var(--line); flex: none; }
.tabs button {
    flex: 1; height: 46px; background: none; border: 0; border-bottom: 2px solid transparent;
    font: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 20px 40px; }
.tab-body h2 { font-size: 15px; margin: 24px 0 4px; color: var(--ink); }
.tab-body h2 + .hint { margin-bottom: 4px; }

/* 섹션 목록 */
.sec-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.sec-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sec-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; }
.sec-head .name { flex: 1; min-width: 0; cursor: pointer; }
.sec-head .name strong { display: block; font-size: 15px; color: var(--ink); }
.sec-head .name small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-item[data-open="true"] { box-shadow: 0 0 0 2px rgba(37, 99, 235, .35); border-color: #2563eb; }
.sec-body > .sub-title:first-child { margin-top: 12px; }
/* 미리보기에서 누른 곳: 왼쪽 카드·칸을 잠깐 강조 */
.flash { animation: flash 1.6s ease-out; border-radius: 8px; }
@keyframes flash {
    0%, 35% { background: #e8f0fe; box-shadow: 0 0 0 4px #e8f0fe, 0 0 0 6px #93b4f5; }
    100% { background: transparent; box-shadow: 0 0 0 4px transparent, 0 0 0 6px transparent; }
}
.icon-btn {
    width: 32px; height: 32px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; color: var(--text);
    font-size: 14px;
}
.icon-btn:disabled { opacity: .35; cursor: default; }
.sec-body { padding: 0 14px 16px; border-top: 1px solid var(--line); }
.add-row { display: flex; gap: 8px; margin-top: 16px; }
.add-row select { flex: 1; }

/* 목록 필드 (메뉴 항목, 사진 등) */
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 6px; }
.list-item { position: relative; padding: 10px 44px 10px 10px; background: #f7f8f9; border: 1px solid var(--line); border-radius: 8px; }
.list-item > label:first-child, .list-item > .field:first-child > label { margin-top: 0; }
.list-item label { margin: 10px 0 4px; font-size: 13px; }
.list-item .item-actions { position: absolute; top: 8px; right: 8px; display: grid; gap: 4px; }
.list-item .item-actions .icon-btn { width: 28px; height: 28px; font-size: 12px; }
.list-simple { display: flex; gap: 6px; align-items: center; }
.list-simple input { flex: 1; }

/* 사진 필드 */
.image-field { display: flex; gap: 10px; align-items: center; }
.image-field .thumb {
    width: 64px; height: 64px; flex: none; border-radius: 8px; overflow: hidden;
    background: #eceef1 center/cover no-repeat; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px;
}
.image-field .img-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.image-field input[type="file"] { display: none; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #cfd2d7; cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: auto; }

/* 미리보기 */
.preview { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.preview-bar { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; flex: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { padding: 6px 14px; border: 0; background: none; font: inherit; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.frame-wrap { flex: 1; display: flex; justify-content: center; padding: 0 16px 16px; min-height: 0; }
#frame { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.1); }
#frame.mobile { width: 390px; }

.loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted); z-index: 50; }

.only-mobile { display: none; }

@media (max-width: 900px) {
    .only-mobile { display: inline-flex; }
    .site-url, #logout-btn { display: none; }
    .topbar { gap: 10px; padding: 0 12px; }
    .topbar .logo span { display: none; }
    .panel { width: 100%; border-right: 0; }
    .preview { position: fixed; inset: 60px 0 0; z-index: 20; background: var(--bg); }
    .preview:not(.open) { display: none; }
    .preview-bar { justify-content: space-between; padding: 0 12px; }
    .frame-wrap { padding: 0 8px 8px; }
    #frame.mobile { width: 100%; }
    .card { padding: 24px 20px; }
}

/* 게시·구독 */
.billing-info {
    font: inherit; font-size: 13px; color: var(--muted); white-space: nowrap;
    background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer;
}
.billing-info[data-state="warn"] { color: #b45309; border-color: #f1d8a8; }
.dialog {
    width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 28px; border: 0; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.dialog::backdrop { background: rgba(0,0,0,.45); }
.dialog h2 { margin: 0 0 6px; font-size: 20px; color: var(--ink); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1.5px solid var(--line); border-radius: 12px; }
.plan-card h3 { margin: 0; font-size: 17px; color: var(--ink); }
.plan-card .price { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.plan-card .price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan-card ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 14px; flex: 1; }
.plan-card .btn { width: 100%; }
.manage-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 16px 0 0; }
.manage-list dt { color: var(--muted); }
.manage-list dd { margin: 0; font-weight: 600; }
.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
    max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 10px;
    background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
@media (max-width: 900px) {
    #save-btn { padding: 0 10px; }
    #publish-btn { padding: 0 10px; font-size: 13px; }
    .billing-info { font-size: 12px; padding: 2px 8px; }
    .site-meta .badge { display: none; }
}

/* 카드 등록 */
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-container { min-height: 90px; margin-top: 4px; }
.btn.wide { width: 100%; height: 48px; margin-top: 12px; font-size: 16px; }
#card-back { display: block; margin: 12px auto 0; }
label.agree { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--muted, #555); }
label.agree input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; padding: 0; }
label.agree a { color: inherit; text-decoration: underline; }

/* 미리보기에서 바로 고치기 안내 */
.preview-hint { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .preview-hint { display: none; } }

/* 편집 언어 (영어 페이지를 켠 사이트) */
.lang-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); background: #f7f8fa; }
.lang-bar[hidden] { display: none; }
.lang-note { margin: 16px 0 4px; padding: 10px 12px; border-radius: 8px; background: #eef4ff; color: #1e3a8a; font-size: 13px; line-height: 1.5; }
.thumb.small { width: 44px; height: 44px; margin-bottom: 6px; background-size: cover; background-position: center; }

/* ---------- 휴대폰 ---------- */
/* 주소창이 줄었다 늘었다 하는 휴대폰에서도 화면 높이에 딱 맞게 */
@supports (height: 100dvh) { .editor { height: 100dvh; } }

@media (max-width: 900px) {
    /* 아이폰은 16px보다 작은 입력 칸을 누르면 화면을 확대함 */
    input, select, textarea { font-size: 16px; }
    .icon-btn { width: 38px; height: 38px; }
    .list-item .item-actions .icon-btn { width: 34px; height: 34px; }
    .list-item { padding-right: 52px; }
    .tab-body { padding: 4px 16px 32px; }

    /* 위: 로고·사이트 이름 / 아래: 저장 상태 + 미리보기·저장·게시 버튼 (엄지 닿는 곳) */
    .topbar { height: 52px; }
    .top-actions {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
        display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0;
        padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
        background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06);
    }
    .top-actions .save-state { flex: 1 0 100%; min-height: 18px; font-size: 12px; line-height: 18px; }
    .top-actions .billing-info { position: absolute; top: 6px; right: 12px; }
    .top-actions .btn { flex: 1 1 0; height: 44px; min-width: 0; padding: 0 8px; font-size: 14px; white-space: nowrap; }
    .top-actions #publish-btn { flex-grow: 1.6; font-size: 14px; padding: 0 8px; }
    .workspace { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }

    /* 미리보기: 위 줄과 아래 버튼 줄 사이를 가득 */
    .preview { inset: 52px 0 calc(86px + env(safe-area-inset-bottom)) 0; }
    .preview-bar { display: none; }
    .frame-wrap { padding: 0; }
    #frame { border-radius: 0; box-shadow: none; }

    .demo-banner { padding: 6px 12px; font-size: 12px; gap: 4px 10px; }
    .demo-sample, .demo-sample select { font-size: 13px; }
    .lang-bar { padding: 8px 12px; }
    .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* PICKTECH 코알라 */
.auth-koala { display: block; width: 104px; height: auto; margin: -8px auto 14px; }
.done-dialog { width: min(420px, calc(100% - 32px)); text-align: center; }
.done-koala { display: block; width: 140px; height: auto; margin: 0 auto 12px; }
.done-dialog .muted { margin-bottom: 8px; }
#done-close { display: block; margin: 14px auto 0; }

/* 로고·명함 탭 */
.tabs button { font-size: 14px; padding: 0 4px; white-space: nowrap; }
.brand-lock { margin: 16px 0 0; padding: 14px; border-radius: 10px; background: #f0fbf6; border: 1px solid #c9eedb; }
.brand-lock p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: var(--text); }
.seg-wrap { display: flex; flex-wrap: wrap; }
.seg-wrap button { flex: 1 1 auto; }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row .hint { margin: 0; }
.color-input { width: 48px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.brand-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.brand-go .hint { margin: 0; }
.draft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.draft { aspect-ratio: 1; padding: 6px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
    background: #fff repeating-conic-gradient(#f1f2f4 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.draft[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.draft img { display: block; width: 100%; height: 100%; object-fit: contain; }
.card-canvas { display: block; max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
a.btn { text-decoration: none; }
#co-form select { width: 100%; }

/* 로고·명함 탭: 오른쪽은 웹사이트 대신 로고·명함 */
.preview.brand-mode .frame-wrap, .preview.brand-mode #device, .preview.brand-mode .preview-hint { display: none; }
.brand-stage { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 24px 40px; }
.brand-stage[hidden] { display: none; }
.stage-inner { max-width: 640px; margin: 0 auto; display: grid; gap: 28px; }
.stage-inner h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.stage-hint { margin: -4px 0 12px; font-size: 12px; color: var(--muted); }
.stage-logo-box {
    position: relative; display: flex; align-items: center; justify-content: center; min-height: 170px; padding: 28px;
    background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.stage-logo-box canvas, .stage-logo-box img { display: block; max-width: 100%; max-height: 190px; width: auto; height: auto; }
.stage-logo-box.empty p { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
.stage-cards { display: grid; gap: 20px; justify-items: center; }
.stage-cards figure { position: relative; margin: 0; }
.stage-cards figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); text-align: center; }
.card-canvas { display: block; max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 8px 28px rgba(0,0,0,.14); }
/* 구매 전 미리보기 표시 */
.watermark::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 4px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='110'><text x='18' y='68' transform='rotate(-18 100 55)' font-family='Arial,sans-serif' font-size='15' font-weight='700' fill='rgba(23,24,26,0.16)'>PREVIEW - PICKTECH</text></svg>") repeat;
}
@media (max-width: 900px) {
    .brand-stage { padding: 4px 12px 24px; }
}
.swatch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.swatch { width: 30px; height: 30px; padding: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.swatch-row .color-input { width: 40px; height: 32px; }
.card-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.card-tools .range { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; }
.card-tools .range input { width: 120px; padding: 0; border: 0; }
.card-tools .hint { margin: 0; }
.card-inline { position: absolute; z-index: 2; padding: 0 6px; border: 2px solid var(--focus); border-radius: 4px; background: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
/* 휴대폰은 명함 위에서도 위아래 스크롤이 되게 (로고는 옆으로만 끌림) */
.card-canvas { touch-action: pan-y; }
@media (hover: hover) { .card-canvas { touch-action: none; } }
.text-tools { padding: 8px 10px; border-radius: 8px; background: #eef4ff; }
.text-tools strong { font-size: 13px; color: var(--ink); }
.font-select { width: auto; min-width: 150px; height: 32px; padding: 0 8px; font-size: 14px; }

/* 로고 제작 / 명함 제작 전환 */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 16px 0 4px; padding: 4px; border-radius: 10px; background: #eef0f3; }
.mode-switch button { height: 38px; border: 0; border-radius: 8px; background: none; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.mode-switch button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.stage-logo-box.dark { background: #1d2329; }

/* AI 배경 */
.tab-body .sub-title { margin: 18px 0 2px; font-size: 14px; color: var(--ink); }
.bg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bg-set { padding: 0; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; aspect-ratio: 3 / 2; }
.bg-set[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.bg-set img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 명함 배경 25종 */
.bg-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 330px; overflow-y: auto; padding: 2px; }

/* 내 도메인 연결 */
.domain-btn { font-size: 12px; white-space: nowrap; }
.domain-row { display: flex; gap: 8px; margin-top: 4px; }
.domain-row input { flex: 1; min-width: 0; }
.domain-state { margin: 4px 0 12px; font-size: 15px; color: var(--ink); }
.domain-state[data-state="ok"] { color: var(--ok); font-weight: 600; }
.domain-state[data-state="warn"], .domain-dns[data-state="warn"] { color: #b45309; }
.domain-dns { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.domain-dns[data-state="ok"] { color: var(--ok); }
.domain-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.6; }
.domain-record { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.domain-record th, .domain-record td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: middle; }
.domain-record th { width: 40%; font-weight: 500; color: var(--muted); background: #fafafa; }
.domain-record td { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-width: 0 0 1px; }
.domain-record tr:first-child td { border-top-width: 1px; }
.domain-record td { border-right-width: 1px; }
.domain-record code { font-size: 14px; font-weight: 600; color: var(--ink); word-break: break-all; }
.domain-txt { margin-top: 14px; font-size: 13px; }
.domain-txt summary { cursor: pointer; color: var(--muted); }
@media (max-width: 900px) { .domain-btn { display: none; } }
