/* 딸깍블로그 앱: 소개 페이지와 같은 스캔 빛(민트) 하나. 화면은 밝게, 카운터 창과 로그인만 밤색 */
@font-face { font-family: "Gaegu"; font-weight: 400; font-display: swap; src: url("fonts/gaegu-400.woff2") format("woff2"); }
@font-face { font-family: "Gaegu"; font-weight: 700; font-display: swap; src: url("fonts/gaegu-700.woff2") format("woff2"); }

:root {
  --panel: #f2f6f4;
  --paper: #ffffff;
  --ink: #0d1a17;
  --ink2: #42524c;
  --mute: #74867f;
  --line: #dbe4e0;
  --brand: #0b8a60;
  --key: #1fc48d;
  --key-hi: #74f2c6;
  --key-lo: #0b8a60;
  --lcd: #0c1916;
  --lcd-ink: #74f2c6;
  --night: #08110f;
  --amber: #c98110;
  --red: #bf3a2b;
  --r: 16px;
  --display: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "Geist Mono", "Pretendard Variable", Pretendard, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--panel); color: var(--ink); font: 15.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; margin: 0 0 10px; }
h1 { font-size: 27px; line-height: 1.25; }
h2 { font-size: 19px; }
p { margin: 6px 0; }
input, textarea, select, button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--key); outline-offset: 2px; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.bad { color: var(--red); }
.ok { color: var(--key-lo); }
.link { color: var(--brand); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ── 뼈대: 폰은 아래 탭, 넓은 화면은 왼쪽 메뉴 ── */
.shell { min-height: 100vh; }
.side { display: none; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: rgba(242, 246, 244, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); font-weight: 900; font-size: 22px; text-decoration: none; color: var(--ink); letter-spacing: -0.045em; }
.brand b { font-weight: 900; color: var(--brand); }
.brand.big { font-size: 34px; }
.top-plan { font-size: 13px; font-weight: 600; text-decoration: none; background: var(--paper); border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; }
.main { padding: 16px 16px 110px; max-width: 760px; margin: 0 auto; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; text-decoration: none; color: var(--mute); font-size: 11.5px; padding: 6px 0; border-radius: 10px; }
.tabbar a .ni { font-size: 18px; line-height: 1.2; }
.tabbar a.on { color: var(--brand); font-weight: 700; }
.tabbar a.tabkey { color: #03140d; font-weight: 800; background: linear-gradient(180deg, #b7ffe5, var(--key-hi) 40%, var(--key)); margin: -14px 6px 0; border-radius: 18px; box-shadow: 0 0 0 1px rgba(234, 255, 247, 0.6) inset, 0 10px 24px -6px rgba(31, 196, 141, 0.7); }
.tabbar a.tabkey.on { color: #03140d; }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 236px 1fr; }
  .top, .tabbar { display: none; }
  .side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; padding: 22px 16px; background: var(--paper); border-right: 1px solid var(--line); }
  .side-who b { display: block; font-size: 15px; }
  .side-who span { font-size: 12.5px; color: var(--mute); }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-nav a { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 9px 12px; border-radius: 10px; color: var(--ink2); font-weight: 500; }
  .side-nav a:hover { background: var(--panel); }
  .side-nav a.on { background: #e4f6ef; color: var(--brand); font-weight: 700; }
  .side-nav a.navkey { color: #03140d; background: linear-gradient(180deg, #b7ffe5, var(--key-hi) 40%, var(--key)); box-shadow: 0 0 0 1px rgba(234, 255, 247, 0.6) inset, 0 8px 20px -6px rgba(31, 196, 141, 0.7); margin: 6px 0; font-weight: 800; }
  .side-nav .ni { width: 18px; text-align: center; }
  .main { padding: 30px 32px 60px; }
}

/* ── 공통 ── */
.page { display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.card-h h2 { margin: 0; }
.row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.row.wrap { flex-wrap: wrap; }
.row input { flex: 1; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; flex-shrink: 0; min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform 0.12s, box-shadow 0.2s, background 0.2s; }
.btn:hover:not(:disabled) { box-shadow: 0 6px 18px -6px rgba(11, 138, 96, 0.55); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); font-weight: 600; }
.btn.small { min-height: 36px; padding: 5px 12px; font-size: 13.5px; }
.btn.danger { color: var(--red); }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfc; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--key); box-shadow: 0 0 0 3px rgba(31, 196, 141, 0.18); }
textarea { resize: vertical; }
select { width: auto; }
.f { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink2); margin: 8px 0; }
.f input, .f textarea { font-weight: 400; color: var(--ink); font-size: 15.5px; }
.seg { display: flex; background: #e6eeea; border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 9px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.err { background: #fbe9e6; color: #8d2316; border: 1px solid #f0c4bc; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.err.small { padding: 4px 8px; font-size: 12.5px; }
.warnbox { background: #fdf3df; border: 1px solid #f1d9a6; color: #74500c; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.notice { background: var(--ink); color: #fff; border-radius: 10px; padding: 9px 12px; font-size: 14px; margin-bottom: 12px; }
.empty { color: var(--ink2); padding: 8px 0; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; vertical-align: middle; margin-left: 4px; }
.chip-ok { background: #dff3e7; color: #146b3d; }
.chip-run { background: #e2ecf8; color: #24548e; }
.chip-warn { background: #fdf0d5; color: #8a5a06; }
.chip-bad { background: #fbe4e0; color: #9a2b1d; }
.chip-mute { background: #eceeed; color: #6c7772; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid #cfd8d3; border-top-color: var(--brand); animation: spin 0.9s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot { min-height: 100vh; display: grid; place-items: center; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll .tbl { min-width: 600px; }
.tbl th { white-space: nowrap; }

/* ── [시작] 키: 소개 페이지와 같은 민트 빛 단추 ── */
.startkey { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 20px; }
.startkey-face { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 78px; padding: 12px 18px; border-radius: 20px; color: #03140d; background: linear-gradient(180deg, #b7ffe5, var(--key-hi) 40%, var(--key)); box-shadow: 0 0 0 1px rgba(234, 255, 247, 0.6) inset, 0 14px 32px -10px rgba(31, 196, 141, 0.85); transition: transform 0.12s, box-shadow 0.2s; }
.startkey-face::after { content: ""; position: absolute; inset: -2px auto -2px -40%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); transform: skewX(-20deg); transition: left 0.6s; }
.startkey:hover:not(:disabled) .startkey-face::after { left: 120%; }
.startkey-mark { font-size: 16px; line-height: 1; opacity: 0.7; }
.startkey-label { font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1.2; letter-spacing: -0.04em; }
.startkey-sub { font-size: 12.5px; opacity: 0.75; font-weight: 600; }
.startkey:active:not(:disabled) .startkey-face { transform: scale(0.98); box-shadow: 0 0 0 1px rgba(234, 255, 247, 0.6) inset, 0 6px 16px -8px rgba(31, 196, 141, 0.8); }
.startkey:disabled { cursor: default; }
.startkey:disabled .startkey-face { background: linear-gradient(#d5dfdb, #c3cfca); color: #5f6f69; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .startkey-face, .startkey-face::after { transition: none; } .spin { animation-duration: 3s; } }

/* ── 카운터 창 ── */
.lcd { display: inline-flex; flex-direction: column; align-items: flex-start; background: radial-gradient(120% 120% at 100% 0%, #154a3c, transparent 60%), var(--lcd); color: var(--lcd-ink); border-radius: 14px; padding: 10px 16px 8px; box-shadow: 0 0 0 1px rgba(116, 242, 198, 0.25) inset, 0 10px 24px -12px rgba(8, 17, 15, 0.6); min-width: 116px; }
.lcd-v { font-family: var(--mono); font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -0.02em; text-shadow: 0 0 18px rgba(116, 242, 198, 0.55); }
.lcd-l { font-size: 11.5px; font-weight: 700; color: #a9c2b9; }
.lcd-s { min-width: 76px; }
.lcd-s .lcd-v { font-size: 30px; }

/* ── 홈 ── */
.hello { font-size: 26px; }
.today { display: flex; flex-direction: column; gap: 16px; }
.today-l { display: flex; gap: 16px; align-items: center; }
.today-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.today-meta b { font-size: 17px; }
@media (min-width: 640px) { .today { flex-direction: row; align-items: center; } .today .startkey { flex: 1; } }
.conn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.conn-item { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-decoration: none; font-size: 13px; font-weight: 600; }
.conn-item .chip { margin-left: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.tile b { font-family: var(--mono); font-size: 28px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
.tile span { font-size: 12.5px; color: var(--mute); }
.tiles.small .tile b { font-size: 24px; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 110px; align-items: end; }
.bar { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 3px; }
.bar i { display: block; width: 100%; min-height: 3px; background: linear-gradient(180deg, var(--key-hi), var(--brand)); border-radius: 5px 5px 2px 2px; }
.bar span { font-size: 10.5px; color: var(--mute); font-family: var(--mono); }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li + li { border-top: 1px solid #edf0ee; }
.plist a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 2px; text-decoration: none; }
.plist-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist-m { font-size: 12.5px; color: var(--mute); grid-column: 1; }
.plist-s { grid-row: 1 / span 2; grid-column: 2; align-self: center; display: flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; max-width: 140px; }
.auditmini { display: flex; gap: 14px; align-items: flex-start; }

/* ── 글쓰기 ── */
.bigpick { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 46px 16px; border: 2px dashed #9fd9c3; border-radius: 20px; background: linear-gradient(180deg, #f3fcf8, var(--paper)); cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.bigpick:hover { border-color: var(--key); box-shadow: 0 10px 30px -14px rgba(31, 196, 141, 0.6); }
.bigpick .cam { font-size: 40px; color: var(--brand); line-height: 1; }
.bigpick b { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -0.035em; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #dde3e0; border: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb span { position: absolute; left: 5px; top: 5px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 11px; font-family: var(--mono); padding: 1px 6px; border-radius: 6px; }
.thumb.add { display: grid; place-items: center; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink2); }
.q { margin-top: 6px; }
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.type { min-height: 58px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: 20px; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.12s; }
.type:active { transform: scale(0.97); }
.type.on { border-color: var(--key); background: #e4f6ef; color: var(--brand); box-shadow: 0 8px 20px -12px rgba(31, 196, 141, 0.8); }
.working { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 28px 16px; }
.pbar { width: 100%; height: 12px; background: #e3ebe7; border-radius: 99px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--key), var(--key-hi)); transition: width 0.3s; }
.working-stage { font-size: 17px; }

/* ── 글 화면 ── */
.post-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.publish { display: flex; flex-direction: column; gap: 10px; }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; }
.ptitle { font-family: var(--body); font-weight: 700; font-size: 21px; margin: 14px 0 12px; }
.ptext { white-space: pre-wrap; line-height: 1.85; margin: 10px 0; }
.pimg { display: block; width: 100%; border-radius: 8px; margin: 12px 0; }
.pimg.ph { aspect-ratio: 1; background: #edf1ef; display: grid; place-items: center; color: var(--mute); font-size: 13px; }
.pimg.ph.small { aspect-ratio: 4 / 3; }
.ptags { color: #2a6bb8; font-size: 14px; margin: 14px 0; }
.editbody { font-size: 15px; line-height: 1.7; }
.title-opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.title-opt input { width: auto; margin-top: 5px; }
.hints { margin: 6px 0; padding-left: 20px; }
.hints li { margin: 4px 0; }
.shorts-video { width: 100%; max-width: 320px; aspect-ratio: 9 / 16; background: #000; border-radius: 12px; display: block; margin: 8px auto; }
.social { display: grid; gap: 12px; margin-top: 10px; }
.social > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; background: #f4f7f5; border-radius: 12px; }
.social .btn { margin-left: auto; }

/* ── 키워드·점검 ── */
.searchrow { display: flex; gap: 8px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.searchrow input { border: 0; background: none; font-size: 17px; }
.searchrow .prefix { color: var(--mute); font-size: 13px; padding-left: 8px; white-space: nowrap; }
.toplist { margin: 0; padding-left: 22px; }
.toplist li { margin: 8px 0; }
.toplist a { font-weight: 600; text-decoration: none; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kwchip { border: 1px solid var(--line); background: #f4f7f5; padding: 6px 12px; border-radius: 99px; cursor: pointer; font-size: 14px; }
.kwchip:hover { border-color: var(--brand); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #edf0ee; vertical-align: top; }
.tbl th { font-size: 12.5px; color: var(--mute); font-weight: 600; }
.tbl .n { text-align: right; font-family: var(--mono); }
.tbl tbody tr { cursor: default; }
.tbl a { text-decoration: none; }
.auditbig { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.auditbig .tiles { width: 100%; }

/* ── 설정 ── */
.acct { border-top: 1px solid #edf0ee; padding: 12px 0; }
.acct-h { display: flex; align-items: center; justify-content: space-between; }
.acct-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: 8px 0; }
.caption-box { white-space: pre-wrap; word-break: break-all; font-family: var(--body); font-size: 13.5px; background: #f4f6f5; border-radius: 10px; padding: 10px 12px; margin: 4px 0 8px; max-height: 320px; overflow: auto; }
.colorrow { display: flex; gap: 8px; align-items: center; }
.colorrow input[type="color"] { width: 48px; height: 40px; padding: 2px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }

/* ── 이용권 ── */
.plans { display: grid; gap: 10px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.plan.cur { border: 2px solid var(--brand); }
.plan-price { font-weight: 800; letter-spacing: -0.03em; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price small { font-family: var(--body); font-size: 13px; color: var(--mute); margin-left: 4px; }
.plan ul { margin: 0; padding-left: 18px; font-size: 14px; flex: 1; }
.codebox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.code { font-family: var(--mono); font-size: 24px; background: var(--lcd); color: var(--lcd-ink); padding: 4px 12px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(116, 242, 198, 0.3) inset; text-shadow: 0 0 14px rgba(116, 242, 198, 0.5); }

/* ── 이용권 입금 안내 ── */
.pay { border: 2px solid #f1d9a6; background: #fffbf2; }
.pay-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pay-amt { font-weight: 800; letter-spacing: -0.03em; font-size: 36px; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.pay-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 12px 0 4px; font-size: 15px; }
.pay-dl dt { color: var(--mute); font-size: 13.5px; padding-top: 1px; }
.pay-dl dd { margin: 0; word-break: keep-all; }
.pay-check { width: 100%; margin-top: 10px; }
.safe-post { background: #eef7f2; border: 1.5px solid #bfe0cf; border-radius: 12px; padding: 12px 14px; margin: 8px 0 12px; }
.safe-post p { margin: 4px 0 10px; }
.auto-h { font-size: 15px; margin: 6px 0 4px; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 12px 0; }
.consent-row input { width: auto; margin-top: 3px; }
.promo-note { background: #fff4d6; border: 1px solid #f1d9a6; color: #5f4206; border-radius: 10px; padding: 10px 12px; }
.plan-opts { display: grid; gap: 8px; margin: 10px 0; }
.plan-opts button { text-align: left; }

/* ── 창 ── */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(15, 25, 20, 0.5); display: flex; align-items: flex-end; justify-content: center; }
.panel { background: var(--paper); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.panel-wide { max-width: 900px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.x { border: 0; background: none; font-size: 20px; cursor: pointer; padding: 6px 10px; }
@media (min-width: 700px) { .sheet { align-items: center; } .panel { border-radius: 18px; } }
.remote-msg { font-weight: 700; color: #74500c; background: #fdf3df; padding: 10px 12px; border-radius: 10px; }
.remote-screen { width: 100%; border: 2px solid var(--ink); border-radius: 8px; cursor: crosshair; display: block; background: #eee; min-height: 200px; }

/* ── 로그인: 소개 페이지와 같은 밤 배경 위에 흰 카드 ── */
.login { min-height: 100vh; display: grid; gap: 28px; padding: 32px 16px; max-width: 1000px; margin: 0 auto; align-content: center; color: #ecf7f2; }
.login::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(60vmax 60vmax at 0% 0%, rgba(15, 143, 105, 0.45), transparent 60%), radial-gradient(60vmax 60vmax at 100% 100%, rgba(13, 95, 115, 0.4), transparent 60%), var(--night); }
.login .brand { color: #ecf7f2; }
.login .brand b { color: var(--key-hi); }
.login-lead { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.25; letter-spacing: -0.04em; margin: 18px 0; }
.login-lead b { font-weight: 900; color: transparent; background: linear-gradient(180deg, #eafff7 10%, var(--key-hi) 55%, var(--key)); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 16px rgba(116, 242, 198, 0.45)); }
.login-points { margin: 0; padding-left: 20px; color: #a9c2b9; }
.login-points li::marker { color: var(--key-hi); }
.login-card { background: var(--paper); color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(116, 242, 198, 0.08); }
.login-card .startkey { margin-top: 10px; }
@media (min-width: 820px) { .login { grid-template-columns: 1fr 420px; align-items: center; } .login-lead { font-size: 38px; } }

/* ── 설정: 글 스타일 · 사진 편집 ── */
.pick { margin: 12px 0; }
.pick-l { font-size: 13.5px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts button { border: 1.5px solid var(--line); background: var(--paper); border-radius: 11px; padding: 7px 12px; cursor: pointer; text-align: left; display: flex; flex-direction: column; min-height: 40px; justify-content: center; }
.opts button b { font-size: 14px; font-weight: 700; }
.opts button small { font-size: 11.5px; color: var(--mute); }
.opts button.on { border-color: var(--brand); background: #e3f0ea; }
.opts button.on b { color: var(--brand); }
.preview { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; align-items: start; margin: 8px 0 4px; min-height: 120px; }
.preview figure { margin: 0; }
.preview img { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }
.preview figcaption { font-size: 11.5px; color: var(--mute); text-align: center; margin-top: 3px; }
.swatch.on { box-shadow: 0 0 0 3px var(--ink); }
.savebar { position: sticky; bottom: 76px; z-index: 5; display: flex; justify-content: flex-end; }
.savebar .btn { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
@media (min-width: 900px) { .savebar { bottom: 16px; } }

/* ── 새 창: 네이버에 올리는 화면 ── */
.live { max-width: 1100px; margin: 0 auto; padding: 0 0 40px; display: flex; flex-direction: column; gap: 10px; }
.live-head { position: sticky; top: 0; z-index: 3; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--ink); color: #fff; }
.live-head b { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: 22px; }
.live-head span { font-size: 13.5px; opacity: 0.85; }
.live-head.ok { background: var(--key-lo); }
.live-head.bad { background: var(--red); }
.live-head.warn { background: #8a5a06; }
.live-steps { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0 12px; overflow-x: auto; }
.live-steps li { flex: none; font-size: 12px; padding: 4px 9px; border-radius: 99px; background: #dfe5e2; color: var(--mute); white-space: nowrap; }
.live-steps li.past { background: #cfe8da; color: var(--key-lo); }
.live-steps li.now { background: var(--key); color: #fff; font-weight: 700; }
.live-human { margin: 0 12px; background: #fdf3df; color: #74500c; border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.live-screen { position: relative; margin: 0 12px; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #fff; min-height: 200px; }
.live-screen img { width: 100%; display: block; }
.live-screen.touch img { cursor: crosshair; }
.live-wait { display: grid; place-items: center; height: 240px; color: var(--mute); }
.live-dot { position: absolute; top: 8px; right: 8px; background: #d93025; color: #fff; font: 700 11px var(--mono); padding: 2px 8px; border-radius: 99px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-note { margin: 0 12px; }
.live-ctl, .live-done { margin: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.live-stop { margin: 0 12px; align-self: flex-start; }

/* ── 글 스타일 미리보기 · 쇼츠 음악 · 크게 보기 ── */
.phead { font-weight: 800; font-size: 17px; margin: 6px 0 2px; }
.ptext mark { padding: 0 2px; border-radius: 3px; color: inherit; }
.opts mark { padding: 0 3px; border-radius: 3px; }
.music { border: 1px solid var(--line); border-radius: 12px; background: #f7f9f8; margin: 8px 0; }
.music-cur { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 10px 12px; cursor: pointer; text-align: left; }
.music-cur span { font-size: 13px; color: var(--mute); white-space: nowrap; }
.music-cur b { flex: 1; font-size: 14.5px; }
.music-cur i { font-style: normal; color: var(--mute); font-size: 11px; }
.music-list { border-top: 1px solid var(--line); max-height: 360px; overflow-y: auto; padding: 4px 8px 8px; }
.music-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 9px; cursor: pointer; }
.music-row.on { background: #e3f0ea; }
.music-row input { width: auto; }
.music-t { flex: 1; display: flex; flex-direction: column; }
.music-t b { font-size: 14.5px; }
.music-t small { font-size: 12px; color: var(--mute); }
.music-play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 13px; flex: none; }
.music-play.on { background: var(--key); color: #fff; border-color: var(--key); }
.music-sec { font-size: 12.5px; font-weight: 700; color: var(--ink2); margin: 10px 6px 2px; }
.music-del { border: 0; background: none; color: #9a2b1d; font-size: 12.5px; cursor: pointer; padding: 6px; }
.music-mine { padding: 4px 6px 8px; }
.music-mine p { margin: 6px 0 0; color: #74500c; background: #fdf3df; border-radius: 8px; padding: 8px 10px; }
.live-screen.zoom { overflow-x: auto; }
.live-screen.zoom img { width: 230%; max-width: none; }
.live-zoom { margin: 0 12px; align-self: flex-start; }
