:root {
  color-scheme: light;
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
  color: #252723;
  background: #f4f5f1;
  --surface: #fff;
  --surface-muted: #f8f8f5;
  --border: #dddfd8;
  --text-muted: #5f645c;
  --notion: #2f3437;
  --naver: #03c75a;
  --focus: #087c4c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; margin: 0; }
button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, [contenteditable]:focus-visible, summary:focus-visible { outline: 3px solid rgb(8 124 76 / 24%); outline-offset: 2px; }
.site-header { display: flex; width: min(1120px, calc(100% - 32px)); min-height: 68px; align-items: center; justify-content: space-between; margin: 0 auto; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 800; text-decoration: none; }
.brand-mark { display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; border: 2px solid var(--notion); font-family: Georgia, serif; font-size: 13px; letter-spacing: -.05em; line-height: 1; white-space: nowrap; }
.brand-mark span { display: inline; color: #087c4c; font-size: 10px; }
.privacy-note { color: var(--text-muted); font-size: 12px; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0; }
.intro { max-width: 720px; }
.eyebrow { margin: 0 0 14px; color: var(--focus); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
h1 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(40px, 6vw, 66px); line-height: 1.08; letter-spacing: -.045em; }
.intro > p:last-child { max-width: 650px; margin: 20px 0 0; color: var(--text-muted); font-size: 17px; line-height: 1.7; }
.connection-card, .image-card, .preview-card, .guide-card, .debug-panel { border: 1px solid var(--border); background: var(--surface); }
.connection-card { display: flex; align-items: center; gap: 16px; margin-top: 36px; padding: 18px 20px; }
.connection-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid #cfd1ca; font-family: Georgia, serif; font-weight: 800; }
.connection-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.connection-copy .label { margin: 0; color: var(--text-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.connection-copy strong, .connection-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-copy span { color: var(--text-muted); font-size: 12px; }
.connection-actions { display: flex; gap: 8px; }
.secondary-button, .connect-button { min-height: 40px; padding: 0 15px; border: 1px solid #cfd1ca; background: #fff; color: #32352f; font-weight: 750; text-decoration: none; }
.connect-button { display: inline-flex; align-items: center; border-color: var(--notion); background: var(--notion); color: #fff; }
.workspace { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.4fr); gap: 18px; margin-top: 18px; align-items: start; }
.image-card, .preview-card { padding: 22px; }
.section-heading { display: grid; grid-template-columns: 30px 1fr auto; align-items: start; gap: 11px; }
.step { display: grid; width: 30px; height: 30px; place-items: center; background: #e6f5ec; color: var(--focus); font-size: 12px; font-weight: 900; }
.section-heading h2 { margin: 2px 0 0; font-size: 17px; }
.section-heading p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.count, .status { padding: 6px 9px; background: #f0f1ed; color: var(--text-muted); font-size: 11px; font-weight: 800; }
.status[data-state="success"] { background: #e2f5e9; color: #087544; }
.status[data-state="error"] { background: #fff0ed; color: #ac3b29; }
.status[data-state="loading"] { background: #eef3f8; color: #3e6685; }
.image-paste-zone { display: flex; min-height: 116px; align-items: center; gap: 8px; overflow-x: auto; margin-top: 18px; padding: 12px; border: 1px dashed #bfc3b9; background: var(--surface-muted); }
.image-paste-zone:empty::before { content: attr(data-placeholder); color: #92978e; font-size: 12px; line-height: 1.6; }
.image-placeholder-note { margin: 10px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.6; }
.image-placeholder-note strong { color: #41463f; }
.image-placeholder-note code, .guide-note code { padding: 2px 4px; border: 1px solid #d7dad2; background: #fff; color: #3f4942; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .95em; }
.imported-image { position: relative; display: inline-flex; width: 84px; height: 70px; flex: 0 0 84px; align-items: center; justify-content: center; border: 1px solid #d5d8d0; background: #eceee8; color: #5d6259; font-size: 11px; font-weight: 800; }
.imported-image b { position: absolute; right: 4px; bottom: 4px; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--naver); color: #064624; font-size: 10px; }
.text-button { display: block; margin: 8px 0 0 auto; padding: 4px 0; border: 0; background: transparent; color: var(--text-muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.preview { min-height: 520px; margin-top: 18px; padding: clamp(20px, 4vw, 42px); border: 1px solid #e2e4de; background: #fff; line-height: 1.85; }
.preview h1, .preview h2, .preview h3 { font-family: inherit; letter-spacing: normal; }
.preview h1 { font-size: 27px; }.preview h2 { font-size: 21px; }.preview h3 { font-size: 17px; }
.preview blockquote { margin: 24px 0; padding: 18px 22px; border-left: 3px solid #757970; background: #f7f7f4; }
.preview hr { margin: 30px 0; border: 0; border-top: 1px solid #cfd2ca; }
.preview table { width: 100%; border-collapse: collapse; }
.preview th, .preview td { padding: 9px; border: 1px solid #cfd2ca; text-align: left; }
.preview-image-marker { display: grid; min-height: 112px; place-content: center; gap: 5px; margin: 24px 0; border: 1px dashed #b9c5bb; background: #f4faf6; color: #425248; text-align: center; }
.preview-image-marker span { color: var(--focus); font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.preview-image-marker strong { font-size: 13px; }
.preview-image-marker small { color: var(--text-muted); font-size: 11px; }
.empty-state { display: grid; min-height: 420px; place-content: center; gap: 7px; color: var(--text-muted); text-align: center; }
.empty-state strong { color: #555a52; }.empty-state span { font-size: 13px; }
.warnings { margin-top: 12px; padding: 13px 15px; background: #fff8e3; color: #66501f; font-size: 12px; }
.warnings ul { margin: 7px 0 0; padding-left: 18px; }
.copy-area { margin-top: 16px; }.copy-button { width: 100%; min-height: 54px; border: 0; background: var(--naver); color: #063f21; font-weight: 900; }
.copy-button:disabled { cursor: not-allowed; background: #e2e4df; color: #969a92; }
.copy-area p { margin: 10px 0 0; color: var(--text-muted); font-size: 11px; text-align: center; }
kbd { padding: 2px 5px; border: 1px solid #d0d3cc; border-bottom-width: 2px; background: white; }
.guide-card { margin-top: 18px; padding: clamp(24px, 4vw, 40px); }
.guide-heading { max-width: 720px; }
.guide-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.025em; }
.guide-heading > p:last-child { margin: 12px 0 0; color: var(--text-muted); line-height: 1.7; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 32px; }
.guide-grid h3 { margin: 0 0 16px; font-size: 16px; }
.mapping-list { margin: 0; }
.mapping-list > div { display: grid; grid-template-columns: minmax(120px, .6fr) minmax(0, 1.4fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.mapping-list dt { font-size: 13px; font-weight: 850; }
.mapping-list dd { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.image-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.image-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.image-steps li > span { display: grid; width: 30px; height: 30px; place-items: center; background: #e6f5ec; color: var(--focus); font-size: 12px; font-weight: 900; }
.image-steps strong { font-size: 13px; }
.image-steps p { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.guide-note { margin: 20px 0 0; padding: 14px 16px; border-left: 3px solid var(--naver); background: #f3faf6; color: #465048; font-size: 12px; line-height: 1.7; }
.guide-note strong { display: block; color: #26342b; }
.debug-panel { margin-top: 18px; padding: 16px 20px; }.debug-panel summary { cursor: pointer; font-size: 13px; font-weight: 800; }
.debug-panel pre { overflow: auto; margin-bottom: 0; white-space: pre-wrap; word-break: break-all; color: #555a52; font-size: 12px; }
.consent-banner { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: grid; width: min(440px, calc(100% - 40px)); grid-template-columns: 1fr auto; gap: 18px; padding: 18px; border: 1px solid #cfd2ca; background: #fff; box-shadow: 0 10px 30px rgb(34 39 34 / 14%); }
.consent-banner strong { font-size: 14px; }
.consent-banner p { margin: 6px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.6; }
.consent-actions { display: flex; align-items: end; gap: 7px; }
.consent-actions button { min-height: 36px; padding: 0 12px; border: 1px solid #cfd2ca; background: #fff; color: #343934; font-size: 12px; font-weight: 800; }
.consent-actions button:last-child { border-color: var(--notion); background: var(--notion); color: #fff; }
@media (max-width: 820px) { .shell { padding-top: 42px; }.workspace, .guide-grid { grid-template-columns: 1fr; }.guide-grid { gap: 36px; }.preview { min-height: 440px; }.connection-card { align-items: flex-start; flex-wrap: wrap; }.connection-actions { width: 100%; } }
@media (max-width: 480px) { .privacy-note { display: none; }.shell, .site-header { width: min(100% - 22px, 1120px); }.shell { padding-bottom: 32px; }.connection-card, .image-card, .preview-card, .guide-card { padding: 16px; }.connection-icon { display: none; }.connection-actions > * { flex: 1; justify-content: center; }.section-heading { grid-template-columns: 30px 1fr; }.section-heading > :last-child { grid-column: 2; justify-self: start; }.preview { padding: 18px; }.mapping-list > div { grid-template-columns: 1fr; gap: 4px; }.consent-banner { right: 11px; bottom: 11px; width: calc(100% - 22px); grid-template-columns: 1fr; }.consent-actions { justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
