:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #68716d;
  --line: #dfe4e1;
  --canvas: #f3f5f2;
  --surface: #fff;
  --accent: #246b53;
  --accent-soft: #e3f1eb;
  --shadow: 0 18px 50px rgba(24, 39, 33, 0.09);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, [role="option"]:focus-visible { outline: 3px solid #76a992; outline-offset: 2px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; background: #111; color: #fff; }
.skip-link:focus { transform: none; }
.topbar { position: sticky; z-index: 20; top: 0; height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); }
.brand { display: flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--ink); color: #fff; font-family: Georgia, serif; font-size: 20px; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 11px; letter-spacing: 0; }
.topbar-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.button { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 15px; background: #fff; color: var(--ink); font-weight: 700; }
.button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button.primary:hover { background: #1c5743; }
.button.ghost:hover { background: var(--canvas); }
.button.action-button { min-height: 34px; border-radius: 8px; padding: 0 10px; font-size: 11px; white-space: nowrap; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.button.action-button:hover { border-color: #b9d3c7; background: #f8faf8; }
.button.action-button.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }
.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 70px); }
.library-panel { position: sticky; top: 70px; height: calc(100vh - 70px); display: flex; flex-direction: column; padding: 25px 13px 16px; border-right: 1px solid var(--line); background: #f8faf8; overflow: hidden; }
.library-heading h1, .library-heading .library-title { margin: 4px 0 7px; font-family: Georgia, "Noto Serif KR", serif; font-size: 25px; font-weight: 700; letter-spacing: 0; }
.library-heading p:last-child { margin: 0 0 19px; color: var(--muted); font-size: 13px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0; }
.search-box { height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #cfd6d2; border-radius: 11px; background: #fff; box-shadow: 0 3px 10px rgba(16, 40, 29, .03); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-box kbd { padding: 3px 5px; border: 1px solid var(--line); border-radius: 5px; color: #8a928e; font-size: 10px; }
.filters { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 10px; }
.filters label { color: var(--muted); font-size: 10px; font-weight: 700; }
.filters select { width: 100%; height: 35px; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 0 7px; background: #fff; color: var(--ink); font-size: 11px; }
.result-row { display: flex; align-items: center; justify-content: space-between; min-height: 43px; font-size: 12px; }
.result-row button { border: 0; padding: 5px; background: none; color: var(--accent); font-size: 11px; }
.design-list { flex: 1; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.design-card { width: 100%; display: grid; grid-template-columns: 42px 1fr; gap: 11px; margin-bottom: 6px; border: 1px solid transparent; border-radius: 11px; padding: 9px; background: transparent; color: inherit; text-align: left; }
.design-card { text-decoration: none; }
.design-card:hover { border-color: var(--line); background: #fff; }
.design-card[aria-selected="true"] { border-color: #b9d3c7; background: var(--accent-soft); }
.brand-icon { width: 42px; height: 42px; border: 1px solid rgba(0,0,0,.07); border-radius: 10px; padding: 7px; background: #fff; object-fit: contain; }
.design-card strong { display: block; overflow: hidden; margin: 2px 0 4px; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.prompt-label { display: inline-block; max-width: 100%; overflow: hidden; margin-bottom: 3px; border-radius: 999px; padding: 2px 6px; background: rgba(36,107,83,.09); color: var(--accent); font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.design-card small { display: block; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.no-results { padding: 30px 14px; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.load-error { display: grid; gap: 7px; margin-top: 10px; border: 1px solid #e7c7c7; border-radius: 12px; padding: 16px; background: #fff5f5; color: #7f1d1d; font-size: 12px; }
.load-error code { width: max-content; border-radius: 5px; padding: 4px 7px; background: #fff; color: var(--ink); }
.more-button { min-height: 38px; margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--accent); font-size: 12px; font-weight: 800; }
.detail-panel { min-width: 0; padding: 34px clamp(24px, 4vw, 64px) 80px; background: var(--surface); }
.detail-empty { min-height: 70vh; display: grid; place-content: center; text-align: center; color: var(--muted); }
.detail-empty span { font-size: 40px; color: #9bb9ac; }
.detail-empty h2 { margin: 12px 0 4px; color: var(--ink); font-family: Georgia, serif; }
.detail-empty p { margin: 0; font-size: 14px; }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.detail-header h1, .detail-header h2 { margin: 11px 0 7px; font-family: Georgia, "Noto Serif KR", serif; font-size: 40px; letter-spacing: 0; }
.detail-header p { margin: 0; color: var(--muted); }
.copy-actions { flex: 0 0 auto; display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 6px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { border-radius: 999px; padding: 4px 8px; background: var(--canvas); color: var(--muted); font-size: 10px; font-weight: 800; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 33px 0 12px; }
.section-title h3 { margin: 4px 0 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 21px; }
.section-title > span { color: var(--muted); font-size: 11px; }
.browser-frame { overflow: hidden; border: 1px solid #d5dad7; border-radius: 16px; background: #e8ebe9; box-shadow: var(--shadow); }
.browser-bar { height: 35px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid #d5dad7; background: #f5f6f5; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #bcc4c0; }
.browser-bar span { margin-left: 9px; color: #919995; font-size: 9px; }
.browser-frame img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #fff; }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.preview-card { min-width: 0; margin: 0; }
.preview-card-title { min-height: 47px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0 2px 9px; }
.preview-card-title strong, .preview-card-title small { display: block; }
.preview-card-title strong { font-size: 13px; }
.preview-card-title small { overflow: hidden; max-width: 280px; margin-top: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.preview-card-title a { flex: 0 0 auto; color: var(--accent); font-size: 10px; font-weight: 800; text-decoration: none; }
.preview-actions { display: flex; align-items: center; gap: 9px; }
.preview-actions button { border: 0; padding: 0; background: none; color: var(--accent); font-size: 10px; font-weight: 800; }
.real-frame { position: relative; }
.real-frame img { object-position: top; }
.real-frame.is-loading::after { content: "실캡처 불러오는 중"; position: absolute; right: 12px; bottom: 12px; border: 1px solid rgba(23,32,29,.12); border-radius: 999px; padding: 7px 10px; background: rgba(255,255,255,.9); color: var(--muted); font-size: 11px; font-weight: 800; box-shadow: 0 8px 24px rgba(24,39,33,.12); }
.screenshot-fallback { aspect-ratio: 16/9; display: grid; place-content: center; gap: 9px; padding: 20px; background: #f7f8f7; color: var(--muted); font-size: 11px; text-align: center; }
.screenshot-fallback a { color: var(--accent); font-weight: 800; }
.preview-note { margin: 11px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.visual-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 2px 0; }
.visual-meta span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; background: #fff; color: var(--muted); font-size: 10px; font-weight: 700; }
.visual-meta i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
@keyframes shimmer { to { background-position-x: -200%; } }
.markdown-title { align-items: center; }
.markdown-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tab-list { display: flex; padding: 3px; border-radius: 9px; background: var(--canvas); }
.tab-list button { border: 0; border-radius: 7px; padding: 7px 11px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }
.tab-list button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 7px rgba(0,0,0,.07); }
.doc-tabs button { min-width: 76px; }
.markdown-body, .source-body { min-height: 300px; border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 4vw, 42px); background: #fff; }
.markdown-body { font-size: 15px; line-height: 1.75; }
.markdown-body h1 { margin-top: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 32px; }
.markdown-body h2 { margin: 2.1em 0 .6em; padding-bottom: .35em; border-bottom: 1px solid var(--line); font-size: 21px; }
.markdown-body h3 { margin-top: 1.7em; font-size: 17px; }
.markdown-body blockquote { margin: 20px 0; border-left: 3px solid var(--accent); padding: 12px 17px; background: var(--accent-soft); color: #355248; }
.markdown-body pre, .source-body { overflow: auto; background: #17201d; color: #e6eee9; font: 12px/1.7 "SFMono-Regular", Consolas, monospace; }
.markdown-body pre { border-radius: 10px; padding: 18px; }
.markdown-body code:not(pre code) { border-radius: 4px; padding: 2px 5px; background: #edf1ef; font-size: .88em; }
.markdown-body a { color: var(--accent); font-weight: 700; }
.markdown-body li { margin: 5px 0; }
.source-body { white-space: pre-wrap; word-break: break-word; }
.toast { position: fixed; z-index: 50; right: 22px; bottom: 22px; transform: translateY(120px); border-radius: 10px; padding: 12px 16px; background: #17201d; color: #fff; box-shadow: var(--shadow); font-size: 13px; opacity: 0; transition: .2s ease; }
.toast.show { transform: none; opacity: 1; }
.seo-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); gap: clamp(36px, 7vw, 100px); border-top: 1px solid var(--line); padding: 72px max(24px, calc((100vw - 1180px) / 2)); background: #eef2ef; }
.seo-footer h2 { margin: 8px 0 18px; font-family: Georgia, "Noto Serif KR", serif; font-size: 34px; letter-spacing: 0; }
.seo-footer p { color: #59635e; font-size: 14px; line-height: 1.8; }
.faq-content h2 { font-size: 22px; }
.faq-content details { border-top: 1px solid #d5dcd8; padding: 15px 0; }
.faq-content details:last-child { border-bottom: 1px solid #d5dcd8; }
.faq-content summary { cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 800; }
.faq-content details p { margin: 10px 0 0; font-size: 13px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--accent); font-weight: 700; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.service-answer { margin: 30px 0 0; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
.service-answer .breadcrumbs { margin-bottom: 26px; }
.answer-heading { max-width: 920px; }
.answer-heading h2 { margin: 7px 0 11px; font-family: Georgia, "Noto Serif KR", serif; font-size: 26px; letter-spacing: 0; }
.answer-heading > p:last-child { margin: 0; color: #46514c; font-size: 15px; line-height: 1.75; }
.answer-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 25px; }
.answer-facts article { min-width: 0; border-left: 3px solid #b8ccc3; padding-left: 14px; }
.answer-facts h3, .answer-usage h3 { margin: 0 0 7px; font-size: 14px; }
.answer-facts p, .answer-usage li { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.answer-usage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr); gap: 32px; margin-top: 25px; }
.answer-usage ol { margin: 0; padding-left: 20px; }
.answer-usage li + li { margin-top: 5px; }
.document-links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.document-links a, .related-links a { color: var(--accent); font-size: 12px; font-weight: 700; text-decoration: none; }
.document-links a:hover, .related-links a:hover { text-decoration: underline; }
.related-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 25px; border-top: 1px solid var(--line); padding-top: 17px; }
.related-links strong { font-size: 12px; }
.category-directory { grid-column: 1 / -1; border-top: 1px solid #d5dcd8; padding-top: 38px; }
.category-directory > div:first-child { max-width: 720px; }
.category-directory h2 { margin: 7px 0 8px; font-family: Georgia, "Noto Serif KR", serif; font-size: 26px; letter-spacing: 0; }
.category-directory p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.category-link-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 21px; }
.category-link-grid a { min-width: 0; border: 1px solid #d5dcd8; border-radius: 8px; padding: 12px; background: rgba(255,255,255,.55); color: inherit; text-decoration: none; }
.category-link-grid a:hover, .category-link-grid a[aria-current="page"] { border-color: #8fb7a6; background: #fff; }
.category-link-grid strong, .category-link-grid span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-link-grid strong { font-size: 12px; }
.category-link-grid span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.topbar-link { display: inline-flex; align-items: center; text-decoration: none; }
.category-page { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 72px; }
.category-hero { max-width: 980px; padding: 48px 0 45px; }
.category-hero h1 { max-width: 820px; margin: 9px 0 18px; font-family: Georgia, "Noto Serif KR", serif; font-size: 46px; line-height: 1.2; letter-spacing: 0; }
.category-hero > p:last-of-type { max-width: 880px; margin: 0; color: #46514c; font-size: 16px; line-height: 1.8; }
.category-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 30px 0 0; border: 1px solid var(--line); background: var(--line); }
.category-facts div { min-width: 0; padding: 18px; background: #fff; }
.category-facts dt { color: var(--muted); font-size: 11px; font-weight: 800; }
.category-facts dd { margin: 7px 0 0; font-size: 14px; font-weight: 700; }
.category-services { border-top: 1px solid var(--line); padding: 45px 0 55px; }
.category-section-heading { max-width: 760px; }
.category-section-heading h2, .category-guidance h2 { margin: 7px 0 9px; font-family: Georgia, "Noto Serif KR", serif; font-size: 30px; letter-spacing: 0; }
.category-section-heading > p:last-child, .category-guidance > div > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.category-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 25px; }
.category-service-card { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 82px; border: 1px solid var(--line); border-radius: 8px; padding: 13px; background: #fff; color: inherit; text-decoration: none; }
.category-service-card:hover { border-color: #8fb7a6; background: #f8faf8; }
.category-service-card img { width: 48px; height: 48px; border: 1px solid rgba(0,0,0,.07); border-radius: 8px; padding: 7px; background: #fff; object-fit: contain; }
.category-service-card strong, .category-service-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-service-card strong { font-size: 14px; }
.category-service-card small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.category-service-card > span:last-child { color: var(--accent); font-size: 18px; }
.category-guidance { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; border-top: 1px solid var(--line); padding: 50px 0; }
.category-questions article { border-top: 1px solid var(--line); padding: 15px 0; }
.category-questions article:last-child { border-bottom: 1px solid var(--line); }
.category-questions h3 { margin: 0 0 6px; font-size: 14px; }
.category-questions p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.category-page > .category-directory { margin-top: 10px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; border-top: 1px solid var(--line); padding: 26px max(24px, calc((100vw - 1180px) / 2)); background: #eef2ef; color: var(--muted); font-size: 12px; }
.site-footer strong { color: var(--ink); }
.site-footer a { margin-left: auto; color: var(--accent); font-weight: 700; text-decoration: none; }
@media (max-width: 900px) {
  .topbar { height: 60px; padding: 0 14px; }
  .topbar-meta > span { display: none; }
  .app-shell { display: block; }
  .library-panel { position: relative; top: 0; height: 500px; border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-panel { padding: 26px 16px 60px; }
  .detail-header { display: block; }
  .detail-header h1, .detail-header h2 { font-size: 32px; }
  .copy-actions { justify-content: stretch; margin-top: 18px; }
  .copy-actions .button { flex: 1; }
  .preview-grid { grid-template-columns: 1fr; gap: 25px; }
  .seo-footer { grid-template-columns: 1fr; padding: 50px 20px; }
  .seo-footer h2 { font-size: 28px; }
  .answer-facts { grid-template-columns: 1fr; }
  .answer-usage { grid-template-columns: 1fr; }
  .category-link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-page { width: min(100% - 32px, 760px); padding-top: 22px; }
  .category-hero { padding: 38px 0; }
  .category-hero h1 { font-size: 38px; }
  .category-facts, .category-service-grid, .category-guidance { grid-template-columns: 1fr; }
  .category-guidance { gap: 28px; }
}
@media (max-width: 520px) {
  .topbar-meta .button { min-height: 36px; padding: 0 10px; font-size: 11px; }
  .filters { grid-template-columns: 1fr; }
  .library-panel { height: 560px; padding-inline: 14px; }
  .copy-actions { display: grid; }
  .detail-header h1, .detail-header h2 { font-size: 28px; }
  .markdown-controls { justify-content: stretch; }
  .markdown-controls .tab-list { width: 100%; }
  .markdown-controls button { flex: 1; }
  .section-title > span { display: none; }
  .markdown-body, .source-body { padding: 18px; }
  .answer-heading h2, .category-directory h2 { font-size: 23px; }
  .category-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-hero h1 { font-size: 32px; }
  .category-facts div { padding: 14px; }
  .category-section-heading h2, .category-guidance h2 { font-size: 26px; }
  .category-service-grid { gap: 7px; }
  .category-service-card { grid-template-columns: 42px minmax(0, 1fr) auto; min-height: 74px; padding: 11px; }
  .category-service-card img { width: 42px; height: 42px; }
  .site-footer a { width: 100%; margin-left: 0; }
}
