/* ─────────────────────────────────────────────
   특가 콘텐츠 생성기 — Toss 톤의 pure CSS
   (흰 배경 · 회색 단계 · 파란 주 버튼 · 14px 라운드)
   ───────────────────────────────────────────── */

:root {
  color-scheme: light;
  --blue: #3182f6; --blue-strong: #1b64da; --blue-hover: #2272eb; --blue-weak: #e8f3ff;
  --grey900: #191f28; --grey800: #333d4b; --grey700: #4e5968; --grey600: #6b7684; --grey500: #8b95a1;
  --grey400: #b0b8c1; --grey300: #d1d6db; --grey200: #e5e8eb; --grey100: #f2f4f6; --grey50: #f9fafb;
  --red: #f04452; --red-weak: #ffeeee; --green: #03b26c; --green-weak: #e5f8ef;
  --purple: #6b4bd1; --purple-weak: #f2eeff; --orange: #e56b00; --orange-weak: #fff2e0;
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: #fff; color: var(--grey900); font: 15px/1.6 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif; -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
button, select, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--blue); text-decoration: none; }
h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.02em; }
h3 { font-size: 17px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; }
.muted { color: var(--grey600); font-size: 13px; }
.fail { color: var(--red); }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* ── 레이아웃: 사이드바 + 본문 ── */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
#sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--grey50); border-right: 1px solid var(--grey100); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; padding: 6px 8px 14px; }
.brand .mark { display: inline-flex; width: 24px; height: 24px; border-radius: 8px; background: var(--blue); color: #fff; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-h { font-size: 12px; font-weight: 700; color: var(--grey500); padding: 14px 8px 4px; }
.nav .item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 10px; text-align: left; cursor: pointer; color: var(--grey800); font-size: 14px; }
.nav .item:hover { background: var(--grey100); }
.nav .item.active { background: var(--grey200); color: var(--grey900); font-weight: 700; }
.nav .item .count { margin-left: auto; font-size: 12px; background: var(--red); color: #fff; border-radius: 8px; padding: 0 7px; min-width: 20px; text-align: center; }
.nav .item .count:empty { display: none; }
.nav .sub { display: flex; flex-direction: column; gap: 2px; padding-left: 26px; }
.nav .sub button { border: 0; background: none; text-align: left; padding: 5px 10px; border-radius: 8px; color: var(--grey600); font-size: 13px; cursor: pointer; }
.nav .sub button:hover { background: var(--grey100); }
.nav .sub button.on { background: var(--blue-weak); color: var(--blue); font-weight: 700; }
.side-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.help-link { border: 0; background: none; text-align: left; color: var(--grey500); font-size: 13px; padding: 6px 8px; cursor: pointer; }
.help-link:hover { color: var(--grey700); }

/* ── 모바일 하단 탭바 ── */
#tabbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--grey200); z-index: 40; }
#tabbar button, #tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; border: 0; background: none; font-size: 11px; color: var(--grey500); cursor: pointer; text-decoration: none; }
#tabbar button.on, #tabbar a.on { color: var(--blue); font-weight: 700; }
.more-sheet { position: fixed; inset: 0; z-index: 60; }
.more-dim { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.more-body { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 20px 20px 0 0; padding: 10px 14px 26px; display: flex; flex-direction: column; }
.more-body .more-title { text-align: center; font-weight: 700; padding: 8px 0 12px; }
.more-body button, .more-body a { border: 0; background: none; text-align: left; padding: 13px 6px; font-size: 16px; color: var(--grey800); cursor: pointer; border-bottom: 1px solid var(--grey100); text-decoration: none; display: flex; gap: 10px; }

/* ── 버튼 · 입력 · 스위치 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--grey300); background: #fff; border-radius: 10px; padding: 8px 14px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--grey900); }
.btn:hover { border-color: var(--grey400); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--blue-hover); }
.btn.weak { background: var(--blue-weak); border-color: transparent; color: var(--blue); }
.btn.big { padding: 12px 20px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.ok { background: var(--green-weak); border-color: transparent; color: var(--green); }
input[type="text"], input[type="number"], input[type="search"], input[type="password"], textarea, select { border: 1px solid var(--grey300); border-radius: 10px; padding: 9px 12px; background: #fff; outline: none; min-width: 0; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-weak); }
textarea { resize: vertical; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.switch input { position: absolute; opacity: 0; }
/* 트랙(::before)과 thumb(::after)를 span 안에 절대배치 — 텍스트 길이와 무관하게 항상 정렬 */
.switch span { position: relative; display: inline-flex; align-items: center; padding-left: 42px; min-height: 20px; }
.switch span::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 34px; height: 20px; border-radius: 20px; background: var(--grey300); transition: background .15s; }
.switch input:checked + span::before { background: var(--blue); }
.switch span::after { content: ""; position: absolute; left: 2px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18); transition: left .15s; }
.switch input:checked + span::after { left: 16px; }
.switch input:checked + span { font-weight: 700; }

/* ── 공통 조각 ── */
.card { background: #fff; border: 1px solid var(--grey200); border-radius: var(--radius); padding: 20px; margin: 0 0 14px; }
.card.empty { text-align: center; color: var(--grey600); padding: 46px 20px; }
.wrap { display: grid; gap: 16px; align-items: start; }
.wrap.single { grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; }
.wrap.wide { max-width: 1160px; margin: 0 auto; }
.content { padding: 26px 28px 140px; }
.content { min-width: 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--grey600); background: var(--grey100); border-radius: 7px; padding: 2px 8px; white-space: nowrap; }
.tag.blue { background: var(--blue-weak); color: var(--blue); }
.tag.green { background: var(--green-weak); color: var(--green); }
.tag.orange { background: var(--orange-weak); color: var(--orange); }
.tag.red { background: var(--red-weak); color: var(--red); }
.tag.purple { background: var(--purple-weak); color: var(--purple); }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--grey300); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--blue-weak); border-color: var(--blue); color: var(--blue); }
.seg { display: inline-flex; background: var(--grey100); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--grey600); }
.seg button.on { background: #fff; color: var(--grey900); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg-tabs { display: flex; gap: 8px; margin: 0 0 16px; }
.seg-tabs button { border: 1px solid var(--grey300); background: #fff; padding: 9px 16px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--grey600); }
.seg-tabs button.on { border-color: var(--grey900); background: var(--grey900); color: #fff; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; }
.section-title .count { background: var(--grey100); border-radius: 8px; padding: 0 9px; font-size: 14px; }
.section-title .count.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.25); background: var(--blue-weak); } }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.f > span, .f > .row { font-weight: 700; }
.lead { color: var(--grey700); margin: 0 0 4px; }
.linkish { border: 0; background: none; color: var(--grey500); text-decoration: underline; cursor: pointer; font-size: 13px; }
.linkish:hover { color: var(--grey700); }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--grey700); cursor: pointer; white-space: nowrap; }
.chk input { accent-color: var(--blue); }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: var(--grey900); color: #fff; padding: 11px 20px; border-radius: 12px; font-size: 14px; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: min(92vw, 480px); }
.block { border: 1px solid var(--grey200); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.block .label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--grey700); margin: 0 0 8px; }
.block .label .grow { flex: 1; }
.block pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 14px; line-height: 1.65; }
.savebar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 5; background: #fff; border: 1px solid var(--grey200); border-radius: 12px; padding: 10px 16px; margin-bottom: 14px; }
.savebar.dirty { border-color: var(--orange); background: #fffdf7; }

/* ── 보관함 ── */
.inbox-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.icard { position: relative; display: flex; flex-direction: column; border: 2px solid var(--grey200); border-radius: var(--radius); padding: 10px; cursor: pointer; background: #fff; transition: border-color .12s; }
.icard:hover { border-color: var(--grey400); }
.icard.on { border-color: var(--blue); background: #fbfdff; }
.icard.fresh { animation: freshIn .8s; }
@keyframes freshIn { 0% { transform: scale(.9); border-color: var(--green); box-shadow: 0 0 0 4px var(--green-weak); } }
.icard input[type="checkbox"] { position: absolute; top: 14px; right: 14px; width: 19px; height: 19px; accent-color: var(--blue); z-index: 2; }
.pimg { height: 110px; border-radius: 10px; background: var(--grey100); display: flex; align-items: center; justify-content: center; font-size: 44px; margin-bottom: 10px; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pinfo b { display: block; font-size: 13.5px; line-height: 1.45; min-height: 38px; letter-spacing: -0.01em; }
.pinfo .price { display: flex; align-items: baseline; gap: 6px; margin-top: 5px; }
.pinfo .price b { font-size: 17px; min-height: 0; }
.pinfo .price .pct { color: var(--blue); font-weight: 800; font-size: 15px; }
.pinfo .price s { color: var(--grey500); font-size: 12.5px; }
.imeta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.imeta .muted { font-size: 12px; }
.imore { margin-left: auto; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--grey500); padding: 0 4px; }
.imenu { position: fixed; z-index: 70; background: #fff; border: 1px solid var(--grey200); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 6px; width: 260px; }
.imenu button { display: block; width: 100%; border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.imenu button:hover { background: var(--grey100); }
.imenu small { display: block; color: var(--grey500); font-size: 12px; margin-top: 2px; }

/* ── 하단 생성 바 ── */
.genbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; width: min(1160px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--grey200); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.16); padding: 12px 18px; display: flex; align-items: center; gap: 16px; z-index: 30; flex-wrap: wrap; }
.gb-left b { font-size: 15px; }
.gb-tpls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 220px; }
.gb-n { background: var(--grey100); border-radius: 7px; padding: 0 6px; margin-left: 4px; }
.gb-money { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.gb-money .money { font-size: 16px; font-weight: 800; color: var(--grey900); font-variant-numeric: tabular-nums; }
.gb-money .money.big { color: var(--blue); font-size: 18px; }
.gb-money input { width: 62px; padding: 3px 7px; border-radius: 7px; text-align: center; }
.gb-month { display: flex; align-items: center; gap: 4px; }
.gb-right { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tpl-pop { position: fixed; z-index: 50; width: 380px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--grey200); border-radius: 14px; box-shadow: 0 14px 44px rgba(0,0,0,.2); padding: 14px; display: none; overflow: auto; }
.tpl-pop.on { display: block; }
.tpl-pop .tp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tpl-pop .code { background: var(--grey900); color: #fff; border-radius: 7px; padding: 1px 8px; font-size: 12px; font-weight: 800; }

/* ── 모달 ── */
.dlg-ov { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dlg { background: #fff; border-radius: 18px; padding: 24px; width: min(720px, 96vw); max-height: 88vh; overflow: auto; }
.dlg h2 { margin-bottom: 4px; }
.dlg-actions { display: flex; gap: 8px; margin-top: 18px; align-items: center; }
.dlg-row { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--grey100); padding: 12px 2px; }
.dlg-name { display: flex; align-items: center; gap: 10px; }
.dlg-name img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
/* 상품 담기 (붙여넣기) 행 */
.paste-list { display: flex; flex-direction: column; }
.paste-row { flex-direction: row; align-items: center; gap: 12px; }
.paste-row .dlg-name { flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; }
.paste-row label.row { font-size: 13px; font-weight: 700; color: var(--grey700); white-space: nowrap; }

/* ── 생성 보드 ── */
.live { position: fixed; inset: 0; z-index: 75; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.live-card { background: #fff; border-radius: 20px; width: min(680px, 96vw); max-height: 90vh; overflow: auto; padding: 26px; }
.live-head { display: flex; align-items: center; gap: 14px; }
.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.live-list { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.live-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--grey200); border-radius: 12px; padding: 10px 14px; }
.live-row .code { background: var(--grey900); color: #fff; border-radius: 7px; padding: 1px 8px; font-size: 12px; font-weight: 800; flex: none; }
.live-row .st-dot { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--grey500); }
.live-row.busy .st-dot { color: var(--blue); }
.live-row.done .st-dot { color: var(--green); }
.live-row.fail .st-dot, .live-row.warn .st-dot { color: var(--orange); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--blue-weak); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.live-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0 4px; text-align: center; }
.live-done .big { font-size: 40px; }

/* ── 생성 결과 ── */
.rd-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.rd-pos { font-variant-numeric: tabular-nums; }
.rcard { border: 1px solid var(--grey200); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .12s; background: #fff; display: flex; flex-direction: column; }
.rcard:hover { border-color: var(--grey400); }
.rcard .rch { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--grey100); font-size: 13px; }
.rcard .rcb { padding: 12px; font-size: 13px; color: var(--grey700); white-space: pre-wrap; word-break: break-word; flex: 1; max-height: 210px; overflow: hidden; position: relative; }
.rcard .rcb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52px; background: linear-gradient(transparent, #fff); }
.rcard .rcf { display: flex; gap: 6px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--grey100); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.st { font-size: 13px; font-weight: 700; border-radius: 8px; padding: 3px 10px; }
.st-wait { background: var(--grey100); color: var(--grey600); }
.st-done { background: var(--green-weak); color: var(--green); }
.st-warn { background: var(--orange-weak); color: var(--orange); }
.st-fail { background: var(--red-weak); color: var(--red); }
.pchips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--grey200); background: var(--grey50); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.pchip img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.pchip .emoji { font-size: 20px; }
.result2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.mkcol .seg-title { font-size: 13px; font-weight: 700; color: var(--grey600); margin-bottom: 8px; }
.kk-steps { background: var(--blue-weak); color: var(--grey800); border-radius: 10px; padding: 9px 13px; font-size: 13.5px; margin-bottom: 12px; }
.kk-ops { display: flex; flex-direction: column; gap: 10px; }
.kk-op b { font-size: 13px; }
.kk-op pre { background: var(--grey50); border-radius: 10px; padding: 10px; margin: 6px 0; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 13.5px; }
.link-rule { background: var(--orange-weak); color: var(--grey800); border-radius: 10px; padding: 10px 13px; font-size: 13.5px; margin: 0 0 12px; }
.issues { margin: 0 0 12px; padding: 0; list-style: none; }
.issues li { background: var(--red-weak); color: var(--grey800); border-radius: 8px; padding: 7px 12px; font-size: 13px; margin-bottom: 6px; }
.issues li.warning { background: var(--orange-weak); }

/* ── 채널 목업 ── */
.mk { border: 1px solid var(--grey200); border-radius: 16px; overflow: hidden; font-size: 13px; background: #fff; }
.mk-kbar, .mk-tbar, .nb-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--grey100); font-size: 13.5px; }
.mk-dim { color: var(--grey500); font-size: 12px; margin-left: auto; }
.mk-kbody { background: #b2c7da; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.kmsg { display: flex; gap: 8px; }
.mk-av { width: 32px; height: 32px; border-radius: 10px; background: #ffe066; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.mk-av img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }
.mk-av.sm { width: 26px; height: 26px; font-size: 14px; border-radius: 8px; }
.mk-av.other { background: var(--grey200); }
.kname { font-size: 11.5px; color: #495e77; margin-bottom: 3px; }
.kcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.krow { display: flex; align-items: flex-end; gap: 6px; max-width: 100%; }
.kb { background: #ffe469; border-radius: 12px; padding: 8px 11px; white-space: pre-wrap; word-break: break-word; line-height: 1.5; max-width: 100%; }
.kother .kb { background: #fff; }
.kphoto { background: var(--grey200); border-radius: 12px; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; font-size: 46px; overflow: hidden; }
.kphoto img { width: 100%; height: 100%; object-fit: cover; }
.kt { font-size: 10.5px; color: rgba(0,0,0,.4); flex: none; }
.kpv { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 10px; margin-top: 6px; max-width: 240px; }
.kpv-img { width: 42px; height: 42px; border-radius: 8px; background: var(--grey100); display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; flex: none; }
.kpv-img img { width: 100%; height: 100%; object-fit: cover; }
.kpv b { display: block; font-size: 12px; line-height: 1.35; }
.kpv span { font-size: 11px; color: var(--grey500); }
.kday { text-align: center; font-size: 11px; color: #495e77; }
.mk-kinput { padding: 10px 14px; color: var(--grey500); font-size: 12.5px; border-top: 1px solid var(--grey100); }
.mk-link { color: #0047b3; }
.tp { display: flex; gap: 10px; padding: 12px 14px 4px; }
.tp-l { display: flex; flex-direction: column; align-items: center; }
.tp-l i { width: 2px; flex: 1; background: var(--grey200); margin-top: 4px; }
.tp.last .tp-l i { display: none; }
.tp-r { min-width: 0; flex: 1; }
.tp-h { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.tp-t { white-space: pre-wrap; word-break: break-word; margin: 4px 0 6px; line-height: 1.55; }
.tp-i { color: var(--grey500); font-size: 12px; padding-bottom: 8px; }
.tp-photo { background: var(--grey100); border-radius: 12px; padding: 14px; font-size: 12.5px; color: var(--grey600); margin: 6px 0; }
.tp-note { text-align: center; font-size: 11.5px; color: var(--grey500); padding: 8px; border-top: 1px dashed var(--grey200); margin-top: 6px; }
.nb-page { padding: 18px 20px 22px; }
.nb-cat { color: var(--grey500); font-size: 11.5px; letter-spacing: .08em; }
.nb-page h1 { font-size: 18px; margin: 6px 0 10px; }
.nb-author { display: flex; align-items: center; gap: 7px; color: var(--grey600); font-size: 12px; border-bottom: 1px solid var(--grey100); padding-bottom: 12px; margin-bottom: 12px; }
.nb-body { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; line-height: 1.75; }
.nb-img { display: inline-block; background: var(--grey100); border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--grey600); margin: 3px 0; }
.mk-tistory .nb-page h1 { color: #000; }
.ts-body { font-size: 13.5px; line-height: 1.75; }
.ts-body h2 { font-size: 15px; margin: 16px 0 6px; }
.ts-body p { margin: 0 0 10px; }
.ts-body ul { padding-left: 18px; margin: 0 0 10px; }
.cf-cmt { border-top: 1px solid var(--grey100); color: var(--grey500); font-size: 12px; padding: 10px 0 0; }
.ig-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--grey100); font-size: 13px; }
.ig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; }
.ig-s { background: var(--grey900); color: #fff; aspect-ratio: 1; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 12px; }
.ig-s small { font-size: 11px; font-weight: 800; opacity: .85; }
.ig-s b { font-size: 16px; line-height: 1.3; }
.ig-s span { font-size: 11px; opacity: .8; }
.ig-s.cover { background: var(--blue); }
.ig-s.cta { background: var(--purple); }
.ig-s.wt em { font-size: 12px; font-style: normal; opacity: .9; }
.wt-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: rgba(255,255,255,.12); border-radius: 6px; font-size: 13px; }
.ig-i { text-align: center; color: var(--grey500); padding: 10px; font-size: 13px; border-top: 1px solid var(--grey100); }
.tpl-sample .mk { max-width: 380px; }

/* ── 특가 찾기 (레이더) ── */
.daily-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.daily-stats { display: flex; gap: 10px; }
.daily-stats > div { border: 1px solid var(--grey200); border-radius: 12px; padding: 10px 16px; text-align: center; min-width: 92px; }
.daily-stats b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.daily-stats span { font-size: 11.5px; color: var(--grey600); }
.daily-stats .done { border-color: var(--green); background: var(--green-weak); }
.daily-stats > button.stat-btn { background: #fff; font: inherit; border: 1px solid var(--grey200); border-radius: 12px; padding: 10px 16px; text-align: center; min-width: 92px; cursor: pointer; }
.daily-stats > button.stat-btn:hover { border-color: var(--grey400); }
.daily-stats > button.stat-btn.active { border-color: var(--blue); background: var(--blue-weak); }
.daily-stats > button.stat-btn.active span { color: var(--blue-strong); font-weight: 700; }
.rd-stat-alert { border-color: var(--red); background: var(--red-weak); }
.rd-on { display: flex; align-items: center; gap: 14px; border: 1px solid var(--grey200); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; }
.rd-on.off { background: var(--grey50); }
.rd-on b { font-size: 15px; }
.rd-on p { margin: 2px 0 0; }
.rd-scope { margin-bottom: 10px; }
.rd-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.rd-filter input[type="search"] { flex: 1; min-width: 160px; }
.rd-list { display: flex; flex-direction: column; gap: 8px; }
.rd-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--grey200); border-radius: 12px; padding: 10px 12px; }
.rd-row.sold { opacity: .55; }
.rd-row.alert { border-color: var(--red); background: #fffafa; flex-wrap: wrap; }
.rd-alert { flex-basis: 100%; background: var(--red-weak); color: var(--grey900); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; }
.rd-alert span { display: block; color: var(--grey600); font-weight: 400; font-size: 12px; }
.rd-img { width: 52px; height: 52px; border-radius: 10px; background: var(--grey100); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; overflow: hidden; }
.rd-img img { width: 100%; height: 100%; object-fit: cover; }
.rd-pct { font-size: 17px; font-weight: 800; color: var(--blue); min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.rd-info { flex: 1; min-width: 200px; }
.rd-info > b { font-size: 14px; display: block; margin-bottom: 2px; }
.rd-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.rd-price { font-weight: 800; font-size: 14px; }
.rd-meta s { color: var(--grey500); }
.rd-act { flex: none; }

/* ── 일상글 ── */
.daily-guide { border: 1px solid var(--grey200); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; background: var(--grey50); }
.wn-flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.wn-flow i { align-self: center; color: var(--grey400); font-style: normal; }
.wn-step { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--grey200); border-radius: 12px; padding: 10px 14px; min-width: 200px; flex: 1; }
.wn-step > span { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none; }
.wn-step b { font-size: 13.5px; display: block; }
.wn-step div { font-size: 12.5px; color: var(--grey600); }
.daily-make { border: 1px solid var(--grey200); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.daily-list-h { margin: 0 0 12px; }
.debate-list { display: flex; flex-direction: column; gap: 12px; }
.debate-post { border: 1px solid var(--grey200); border-radius: var(--radius); padding: 16px 18px; }
.debate-post.posted { border-color: var(--green); background: #f7fefb; }
.dp-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dp-posted { color: var(--green); font-weight: 700; font-size: 13px; }
.dp-text { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.7; }
.dp-actions { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.daily-ex { background: #fff; border: 1px solid var(--grey200); border-radius: 10px; padding: 12px 16px; margin-top: 10px; white-space: pre-wrap; font-size: 13.5px; color: var(--grey700); }
.debate-warn { background: var(--red-weak); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-top: 10px; }
details.daily-ex summary, details.adv summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--grey700); }

/* ── 글감 서랍 ── */
.clips-page { max-width: 1080px; margin: 0 auto; }
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.clip { border: 1px solid var(--grey200); border-radius: var(--radius); padding: 16px; background: #fff; }
.clip-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; }
.clip-av { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-weak); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none; }
.clip-heat { margin-left: auto; border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 700; background: var(--grey100); color: var(--grey600); }
.clip-heat[data-level="low"] { background: var(--grey100); }
.clip-heat[data-level="normal"] { background: var(--grey100); color: var(--grey700); }
.clip-heat[data-level="good"] { background: var(--green-weak); color: var(--green); }
.clip-heat[data-level="fire"] { background: var(--orange-weak); color: var(--orange); }
.clip-heat[data-level="boom"] { background: var(--red-weak); color: var(--red); }
.clip-t { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.65; min-height: 66px; }
.clip-t.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.clip-m { display: flex; gap: 10px; color: var(--grey500); font-size: 12.5px; margin: 10px 0; flex-wrap: wrap; }
.clip-m a { margin-left: auto; }
.clip-note { border: 1px dashed var(--grey300); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; background: var(--grey50); }
.clip-note b { font-size: 14px; }
.clip-empty { text-align: center; padding: 50px 20px; }
.clip-empty ol { text-align: left; display: inline-block; }

/* ── 글감 서랍 / 계정 ── */
.pf-match { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pf-match select { font-size: 12.5px; padding: 5px 9px; border-radius: 8px; }

/* ── 온보딩/계정 ── */
.ob-steps { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.ob-steps span { font-size: 12.5px; font-weight: 700; color: var(--grey500); background: var(--grey100); border-radius: 8px; padding: 4px 12px; }
.ob-steps span.on { background: var(--grey900); color: #fff; }
.choice { cursor: pointer; text-align: left; transition: border-color .12s; }
.choice:hover { border-color: var(--grey400); }
.choice.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-weak); }
.choice .d { font-size: 12.5px; color: var(--grey600); margin-top: 8px; }
.targets { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.avatars { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.avatar-card { width: 150px; padding: 10px; }
.avatar-ph { width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--grey100); display: flex; align-items: center; justify-content: center; color: var(--grey500); font-size: 13px; }
.avatar-card img { width: 100%; aspect-ratio: 1; border-radius: 12px; display: block; object-fit: cover; }
.colors { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.color-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--grey300); cursor: pointer; }
.color-dot.on { box-shadow: 0 0 0 3px var(--grey900); }
.tip { background: var(--blue-weak); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.tip-h { font-weight: 800; font-size: 13.5px; margin-bottom: 4px; }
.tip p { margin: 3px 0; font-size: 13px; color: var(--grey700); }

/* ── 계정 화면 ── */
.acc-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--grey200); border-radius: 12px; padding: 13px 16px; }
.acc-row .pf-i { font-size: 22px; }
.acc-row b { display: block; }
.acc-row .muted { font-size: 12.5px; }
.roadmap { border: 1px solid var(--grey200); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.roadmap .stage { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.roadmap .stage span { background: var(--blue); color: #fff; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; flex: none; }
.roadmap .stage.done span { background: var(--green); }
.roadmap ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--grey700); }
.warmup-card { border: 1px solid var(--grey200); border-radius: var(--radius); padding: 18px 20px; }
.wu-day { border-top: 1px solid var(--grey100); padding: 14px 0 6px; }
.wu-day .wu-date { font-weight: 800; font-size: 14px; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.wu-day .done-all { color: var(--green); font-size: 12.5px; font-weight: 700; }
.wu-task { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; }
.wu-task input { margin-top: 4px; accent-color: var(--blue); }
.wu-task b { font-size: 13.5px; display: block; }
.wu-task span { font-size: 12.5px; color: var(--grey600); }
.wu-task.done b, .wu-task.done span { text-decoration: line-through; color: var(--grey500); }

/* ── 오픈채팅 화면 ── */
.oc { max-width: 780px; margin: 0 auto; }
.oc-sec { border: 1px solid var(--grey200); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; position: relative; }
.oc-sec.done { border-color: var(--green); }
.oc-sec.done > h3 .qnum { background: var(--green); color: #fff; }
.oc-sec textarea { min-height: 120px; }
.qnum { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--grey200); color: var(--grey800); align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-right: 4px; flex: none; }
.oc-ideas { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.oc-idea { border: 2px solid var(--grey200); border-radius: 12px; padding: 12px 16px; cursor: pointer; text-align: left; background: #fff; }
.oc-idea:hover { border-color: var(--grey400); }
.oc-idea.on { border-color: var(--blue); background: #fbfdff; }
.oc-idea .why { font-size: 12.5px; color: var(--grey600); margin-top: 3px; }
.count-hint { text-align: right; font-size: 12px; color: var(--grey500); font-weight: 400; }
.oc-preview { display: flex; gap: 16px; background: var(--grey50); border: 1px solid var(--grey200); border-radius: 14px; padding: 16px; flex-wrap: wrap; }
.oc-preview img, .oc-preview .avatar-ph { width: 160px; height: 160px; border-radius: 12px; flex: none; }
.oc-preview .t { font-weight: 800; font-size: 16px; }
.oc-preview .d { white-space: pre-wrap; font-size: 13px; color: var(--grey700); margin-top: 6px; }
.oc-checks { display: flex; flex-direction: column; gap: 8px; }
.oc-check { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--grey200); border-radius: 12px; padding: 13px 16px; cursor: pointer; }
.oc-check input { position: absolute; opacity: 0; }
.oc-check .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--grey300); flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; margin-top: 2px; }
.oc-check.on .box { background: var(--blue); border-color: var(--blue); }
.oc-check .txt b { display: block; font-size: 14px; }
.oc-check .txt span { font-size: 12.5px; color: var(--grey600); }
.oc-notice { margin: 10px 0 0 34px; }

/* ── 템플릿 관리 ── */
.tpl-wrap { grid-template-columns: 260px minmax(0, 1fr); }
.plist { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.jgroup { font-size: 12.5px; font-weight: 800; color: var(--grey500); padding: 14px 8px 4px; }
.jcard { border: 1px solid transparent; background: none; border-radius: 12px; padding: 10px 12px; text-align: left; cursor: pointer; }
.jcard:hover { background: var(--grey50); }
.jcard.active { background: #fff; border-color: var(--grey300); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.jcard.off { opacity: .55; }
.jtop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.code { background: var(--grey900); color: #fff; border-radius: 7px; padding: 1px 8px; font-size: 12px; font-weight: 800; }
.code.big { font-size: 15px; padding: 3px 11px; }
.dot { font-size: 11px; background: var(--grey100); color: var(--grey600); border-radius: 7px; padding: 1px 7px; font-weight: 700; }
.jnames { font-size: 12.5px; margin-top: 4px; line-height: 1.45; }
.vars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.field .help { font-size: 12px; color: var(--grey500); }
.field .src { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 1px 7px; }
.field .src.settings { background: var(--blue-weak); color: var(--blue); }
.field .src.default { background: var(--grey100); color: var(--grey500); }
.field .src.env { background: var(--orange-weak); color: var(--orange); }
.group-title { grid-column: 1/-1; font-weight: 800; font-size: 13px; color: var(--grey600); border-bottom: 1px solid var(--grey100); padding-bottom: 4px; margin-top: 8px; }
.adv summary { padding: 4px 0; }
.modified { background: var(--orange-weak); color: var(--orange); font-size: 11.5px; border-radius: 6px; padding: 1px 7px; font-weight: 700; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--grey100); font-size: 13px; }

/* ── 강의 도우미 ── */
.helper-wrap { display: flex; flex-direction: column; min-height: calc(100vh - 90px); }
.hhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hhead h1 { font-size: 22px; margin: 0; }
.hhead-right { display: flex; align-items: center; gap: 10px; }
.quota { font-size: 13px; border: 1px solid var(--grey200); border-radius: 10px; padding: 6px 12px; }
.quota.low { border-color: var(--orange); color: var(--orange); }
.quota.out { border-color: var(--red); color: var(--red); }
.hlog { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 8px 0 18px; overflow-y: auto; }
.hmsg { display: flex; }
.hmsg .bubble { max-width: min(720px, 88%); border-radius: 16px; padding: 12px 16px; font-size: 14.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.hmsg.user { justify-content: flex-end; }
.hmsg.user .bubble { background: var(--grey900); color: #fff; border-bottom-right-radius: 5px; }
.hmsg.bot .bubble { background: var(--grey100); border-bottom-left-radius: 5px; }
.hmsg.bot .bubble p { margin: 0 0 8px; }
.hempty { text-align: center; padding: 60px 0 30px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hempty-emoji { font-size: 42px; }
.hex { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.hsrcs { margin-top: 10px; border-top: 1px dashed var(--grey300); padding-top: 8px; }
.hsrcs summary { cursor: pointer; font-size: 12.5px; color: var(--grey600); font-weight: 700; }
.hsrc { background: #fff; border: 1px solid var(--grey200); border-radius: 10px; padding: 10px 14px; margin-top: 8px; font-size: 13px; }
.hsrc-top { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.hsrc-q { font-weight: 700; }
.hsrc-a { color: var(--grey700); margin-top: 3px; }
.hinput { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: 12px; }
.hinput textarea { flex: 1; resize: none; min-height: 100px; max-height: 160px; }
.typing-dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.typing-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--grey400); animation: typing 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 40% { transform: translateY(-5px); opacity: .5; } }

/* ── 반응형 ── */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  #sidebar { position: fixed; z-index: 55; left: 0; top: 0; bottom: 0; width: 262px; transform: translateX(-102%); transition: transform .18s; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  body.menu-open #sidebar { transform: none; }
  .menu-close { display: inline-flex; }
  #tabbar { display: flex; }
  .content { padding: 18px 14px 150px; }
  .content { padding-bottom: 58px; }
  .result2 { grid-template-columns: 1fr; }
  .daily-stats { width: 100%; justify-content: space-between; }
  .rd-row { flex-wrap: wrap; }
  .rd-act { margin-left: 64px; }
  .genbar { bottom: 66px; padding: 10px 12px; gap: 10px; }
  .tpl-wrap { grid-template-columns: 1fr; }
  .plist { position: static; max-height: none; }
  .gb-money { display: none; }
}
@media (min-width: 901px) { .menu-close { display: none; } body.menu-open .more-sheet { display: none !important; } }

/* ── 링크관리 (프로덕션) ── */
.btn.danger { color: #d6334a; border-color: #ffc9c9; background: #fff5f6; }
.btn.danger:hover { background: #ffe3e6; }
.lk-copy { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted var(--grey400); text-underline-offset: 3px; }
.lk-copy:hover { color: var(--blue); text-decoration-color: var(--blue); }
.rd-row .chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--grey600); }
.rd-row .rd-img { width: 64px; height: 64px; border-radius: 12px; background: var(--grey100); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.rd-row .rd-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.paste-disc { color: var(--orange); font-weight: 700; }
.rd-row.alert { background: #fff8f0; border-color: #ffd8a8; }

/* ── MVC 전환(모듈별 서버 렌더링) 추가 규칙 ── */
.run-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.seg a { padding: 6px 12px; border-radius: 8px; color: var(--grey600); text-decoration: none; font-size: 13px; cursor: pointer; }
.seg a.on { background: var(--grey200); color: var(--grey900); font-weight: 700; }
.seg-tabs a { border: 0; background: none; padding: 8px 14px; border-radius: 10px; font-size: 14px; color: var(--grey600); cursor: pointer; text-decoration: none; }
.seg-tabs a.on { background: var(--grey200); color: var(--grey900); font-weight: 700; }
.rcard { text-decoration: none; color: inherit; }
.jcard { text-decoration: none; color: inherit; }

/* ── 로그인 화면 / 로그아웃 ── */
.login-body { background: var(--grey50); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: #fff; border: 1px solid var(--grey200); border-radius: 20px; padding: 32px 28px; width: min(400px, 96vw); box-shadow: 0 8px 30px rgba(0,0,0,.06); }
