:root {
  color-scheme: light;
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface: #ffffff;
  --surface-strong: #e6e5e0;
  --ink: #26251e;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --success: #1f8a65;
  --success-soft: #edf8f3;
  --danger: #cf2d56;
  --danger-soft: #fff0f4;
  --warning: #7f5a16;
  --warning-soft: #fff7e5;
  --checker-dark: #272720;
  --checker-light: #303029;
  --font-sans: Inter, "Pretendard Variable", Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--font-sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-sans); line-height: 1.55; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--hairline); background: rgba(247, 247, 244, .96); }
.header-inner { width: min(1200px, calc(100% - 40px)); min-height: 64px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; text-decoration: none; }
.brand-mark { position: relative; display: block; width: 28px; height: 34px; border: 2px solid var(--primary); border-radius: 4px; }
.brand-mark::before, .brand-mark::after, .brand-mark span::before, .brand-mark span::after { content: ""; position: absolute; width: 7px; height: 7px; border-color: var(--primary); }
.brand-mark::before { top: -5px; left: -5px; border-top: 2px solid; border-left: 2px solid; }
.brand-mark::after { top: -5px; right: -5px; border-top: 2px solid; border-right: 2px solid; }
.brand-mark span::before { bottom: -5px; left: -5px; border-bottom: 2px solid; border-left: 2px solid; }
.brand-mark span::after { right: -5px; bottom: -5px; border-right: 2px solid; border-bottom: 2px solid; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { color: var(--primary); font-size: 16px; font-weight: 650; line-height: 1.2; }
.brand-copy small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.top-nav { display: flex; justify-content: center; gap: 24px; }
.top-nav a { color: var(--body); font-size: 14px; font-weight: 500; text-decoration: none; }
.top-nav a:hover { color: var(--ink); }
.privacy-badge { display: inline-flex; align-items: center; gap: 8px; min-width: max-content; padding: 8px 11px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--surface); color: var(--body); font-size: 12px; font-weight: 550; }
.privacy-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

main { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 96px; }
.hero { margin-bottom: 80px; text-align: center; }
.hero-main { width: min(100%, 1000px); margin: 0 auto; }
.eyebrow, .section-label { margin: 0; color: var(--primary); font-size: 11px; font-weight: 650; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.hero h1 { margin: 18px auto 0; max-width: 980px; font-size: clamp(42px, 5.5vw, 72px); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; word-break: keep-all; text-wrap: balance; }
.hero h1 span { display: block; }
.hero-copy { max-width: 760px; margin: 24px auto 0; color: var(--body); font-size: 16px; line-height: 1.65; word-break: keep-all; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; }
.button-primary { display: inline-grid; min-height: 44px; place-items: center; padding: 12px 18px; border: 0; border-radius: 8px; background: var(--primary); color: var(--on-primary); cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; transition: background .16s ease, transform .16s ease; }
.button-primary:hover { background: var(--primary-active); }
.button-primary:active { transform: translateY(1px); }
.button-primary:disabled { cursor: wait; opacity: .55; }
.hero-button { min-width: 118px; }
.text-link { color: var(--ink); font-size: 14px; font-weight: 550; text-decoration: none; }
.text-link:hover, .source-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; max-width: 780px; margin: 28px auto 0; padding: 22px 0 0; border-top: 1px solid var(--hairline); color: var(--body); font-size: 12px; list-style: none; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero-trust li > span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

.tool-section, .guide-section, .faq-section { scroll-margin-top: 88px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .6fr); gap: 32px; align-items: end; margin-bottom: 22px; }
.section-heading h2, .faq-heading h2 { margin: 8px 0 0; font-size: clamp(28px, 3vw, 36px); font-weight: 400; letter-spacing: -.025em; line-height: 1.2; word-break: keep-all; }
.section-heading > p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.6; word-break: keep-all; }
.workspace { display: grid; grid-template-columns: minmax(260px, .82fr) minmax(400px, 1.55fr) minmax(260px, .82fr); overflow: hidden; border: 1px solid var(--hairline-strong); border-radius: 12px; background: var(--surface); }
.panel { min-width: 0; padding: 24px; background: var(--surface); }
.settings-panel, .result-panel { background: var(--canvas-soft); }
.settings-panel, .editor-panel { border-right: 1px solid var(--hairline); }
.editor-panel { min-height: 640px; }
.panel-heading { display: flex; align-items: flex-start; gap: 12px; min-height: 52px; margin-bottom: 20px; }
.panel-heading h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; word-break: keep-all; }
.step-number { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--surface-strong); color: var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field > span { color: var(--ink); font-size: 13px; font-weight: 600; }
select, input[type="number"] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--hairline-strong); border-radius: 8px; outline: none; background: var(--surface); color: var(--ink); font-size: 14px; }
select:focus, input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(245, 78, 0, .12); }
.official-card { margin: 4px 0 16px; padding: 15px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); }
.official-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.official-title-left { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }
.official-title-row strong { font-size: 14px; font-weight: 600; }
.official-title-row > span { flex: 0 0 auto; color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.rule-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 999px; background: #f6d5c6; color: #7a2c08; font-family: var(--font-sans); font-size: 10px; font-weight: 650; line-height: 1; white-space: nowrap; }
.rule-badge.neutral { background: var(--surface-strong); color: var(--body); }
.official-card dl { display: grid; margin: 0; }
.official-card dl > div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid var(--hairline-soft); }
.official-card dt { color: var(--muted); font-size: 12px; }
.official-card dd { margin: 0; font-size: 13px; }
.source-link { display: inline-block; margin-top: 12px; color: var(--primary); font-size: 12px; font-weight: 600; }
.small-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; word-break: keep-all; }
.strong-warning { color: var(--warning); }
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.custom-grid .full { grid-column: 1 / -1; }
.message { margin-bottom: 14px; padding: 10px 12px; border-radius: 8px; font-size: 12px; }
.message.error { background: var(--danger-soft); color: var(--danger); }
.upload-wrap { margin-top: 10px; }
.drop-zone { display: grid; min-height: 154px; place-items: center; align-content: center; gap: 6px; padding: 20px; border: 1px dashed var(--hairline-strong); border-radius: 10px; background: var(--surface); color: var(--body); cursor: pointer; text-align: center; transition: border-color .16s ease, background .16s ease; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--primary); background: #fff8f4; }
.upload-icon { display: grid; width: 38px; height: 38px; margin-bottom: 4px; place-items: center; border: 1px solid var(--hairline-strong); border-radius: 50%; background: var(--canvas-soft); color: var(--primary); font-size: 22px; }
.drop-zone strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.drop-zone small, .file-meta { color: var(--muted); font-size: 11px; }
.file-meta { margin: 10px 0 0; overflow-wrap: anywhere; }

.empty-state { display: grid; min-height: 470px; place-items: center; align-content: center; padding: 34px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--canvas-soft); color: var(--muted); text-align: center; }
.empty-illustration { position: relative; width: 72px; height: 58px; margin-bottom: 18px; border: 1px solid var(--hairline-strong); border-radius: 6px; background: var(--surface); }
.empty-illustration::before { content: ""; position: absolute; top: 13px; right: 15px; width: 10px; height: 10px; border-radius: 50%; background: #dfa88f; }
.empty-illustration::after { content: ""; position: absolute; right: 11px; bottom: 11px; left: 11px; height: 22px; background: linear-gradient(135deg, transparent 48%, #9fc9a2 49% 70%, transparent 71%), linear-gradient(45deg, #9fbbe0 0 47%, transparent 48%); }
.empty-state strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.empty-state p { max-width: 380px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; word-break: keep-all; }
.empty-state.compact { min-height: 300px; }
.result-placeholder { display: grid; width: 44px; height: 44px; margin-bottom: 14px; place-items: center; border: 1px solid var(--hairline-strong); border-radius: 50%; color: var(--muted); font-size: 21px; }
.canvas-stage { position: relative; display: grid; min-height: 460px; place-items: center; overflow: hidden; padding: 18px; border-radius: 10px; background: linear-gradient(45deg, var(--checker-light) 25%, transparent 25%), linear-gradient(-45deg, var(--checker-light) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--checker-light) 75%), linear-gradient(-45deg, transparent 75%, var(--checker-light) 75%), var(--checker-dark); background-position: 0 0, 0 10px, 10px -10px, -10px 0; background-size: 20px 20px; }
#cropCanvas { display: block; max-width: 100%; max-height: 590px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 2px; cursor: grab; touch-action: none; user-select: none; }
#cropCanvas:active { cursor: grabbing; }
.canvas-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); padding: 5px 9px; border-radius: 999px; background: rgba(38, 37, 30, .84); color: var(--canvas); font-family: var(--font-mono); font-size: 10px; pointer-events: none; }
.editor-controls { padding-top: 18px; }
.editor-assist-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--canvas-soft); }
.guide-toggle { display: inline-flex; align-items: flex-start; gap: 9px; min-width: 0; color: var(--ink); cursor: pointer; }
.guide-toggle input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--primary); }
.guide-toggle span { display: grid; gap: 2px; }
.guide-toggle strong { font-size: 12px; font-weight: 650; }
.guide-toggle small { color: var(--muted); font-size: 10px; line-height: 1.4; word-break: keep-all; }
.guide-disclaimer { flex: 0 0 auto; color: var(--muted); font-family: var(--font-mono); font-size: 9px; line-height: 1.4; text-align: right; }
.quality-notice { margin-top: 14px; padding: 12px 13px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--surface); }
.quality-notice-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.quality-notice-heading > strong { color: var(--ink); font-family: var(--font-mono); font-size: 10px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.quality-notice-heading > span { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; font-size: 9px; font-weight: 650; line-height: 1.3; }
.quality-notice p { margin: 7px 0 0; color: var(--body); font-size: 11px; line-height: 1.55; word-break: keep-all; }
.quality-notice.sufficient { border-color: #b9daca; background: var(--success-soft); }
.quality-notice.sufficient .quality-notice-heading > span { background: #d9eee5; color: var(--success); }
.quality-notice.caution, .quality-notice.warning { border-color: #e4c889; background: var(--warning-soft); }
.quality-notice.caution .quality-notice-heading > span, .quality-notice.warning .quality-notice-heading > span { background: #f3dfad; color: var(--warning); }
.zoom-control { display: grid; grid-template-columns: auto 1fr 52px; align-items: center; gap: 10px; color: var(--ink); font-size: 12px; font-weight: 600; }
.zoom-control input { width: 100%; accent-color: var(--primary); }
.zoom-control output { color: var(--muted); font-family: var(--font-mono); font-size: 11px; text-align: right; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
button { border: 0; cursor: pointer; }
.secondary-button { min-height: 40px; padding: 8px 11px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 550; }
.secondary-button:hover { background: var(--canvas-soft); }
.generate-button, .download-button { width: 100%; margin-top: 18px; }
.processing-message { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.result-preview-wrap { display: grid; min-height: 260px; place-items: center; padding: 20px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); }
#resultImage { display: block; max-width: 100%; max-height: 300px; border: 1px solid var(--hairline-strong); }
.status-banner { margin-top: 14px; padding: 10px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.status-banner.pass { background: var(--success-soft); color: var(--success); }
.status-banner.fail { background: var(--danger-soft); color: var(--danger); }
.status-banner.caution { background: var(--warning-soft); color: var(--warning); }
.check-list { display: grid; gap: 0; margin: 12px 0; padding: 0; border-top: 1px solid var(--hairline); list-style: none; }
.check-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 12px; }
.check-list .pass { color: var(--success); }
.check-list .fail { color: var(--danger); }
.check-list .info { color: var(--muted); }
.check-list .warning { color: var(--warning); }
.result-check-group { margin-top: 14px; }
.result-check-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.result-check-heading h4 { margin: 0; font-size: 13px; font-weight: 650; }
.result-check-heading span { color: var(--muted); font-size: 10px; }
.manual-check-list { display: grid; gap: 0; margin: 10px 0 14px; padding: 0; border-top: 1px solid var(--hairline); list-style: none; }
.manual-check-list li { border-bottom: 1px solid var(--hairline); }
.manual-check-list label { display: grid; grid-template-columns: 17px 1fr; gap: 8px; align-items: start; padding: 9px 0; color: var(--body); cursor: pointer; font-size: 11px; line-height: 1.5; word-break: keep-all; }
.manual-check-list input { width: 14px; height: 14px; margin: 2px 0 0; accent-color: var(--primary); }
.result-meta { margin: 0; }
.result-meta > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 12px; }
.result-meta dt { color: var(--muted); }
.result-meta dd { margin: 0; font-family: var(--font-mono); font-size: 11px; text-align: right; }

.guide-section { margin-top: 80px; }
.information-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { padding: 24px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); }
.info-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-checked-date { margin: 16px 0 0; color: var(--muted); font-family: var(--font-mono); font-size: 10px; text-align: right; }
.info-card h3 { margin: 10px 0 14px; font-size: 20px; font-weight: 500; letter-spacing: -.015em; line-height: 1.35; word-break: keep-all; }
.info-card p, .plain-list { color: var(--body); font-size: 14px; line-height: 1.7; word-break: keep-all; }
.info-card p { margin: 0; }
.info-card p + p { margin-top: 12px; }
.plain-list { margin: 0; padding-left: 19px; }
.plain-list li + li { margin-top: 8px; }
.guide-note { display: grid; grid-template-columns: minmax(180px, .42fr) minmax(0, 1.58fr); gap: 28px; margin-top: 16px; padding: 20px 24px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--canvas-soft); }
.guide-note strong { font-size: 14px; font-weight: 600; }
.guide-note p { margin: 0; color: var(--body); font-size: 13px; line-height: 1.65; word-break: keep-all; }
.faq-section { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: 64px; margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--hairline-strong); }
.faq-heading h2 { margin-top: 8px; }
.faq-list { border-top: 1px solid var(--hairline-strong); }
details { border-bottom: 1px solid var(--hairline-strong); }
summary { position: relative; padding: 19px 34px 19px 0; cursor: pointer; font-size: 15px; font-weight: 550; list-style: none; word-break: keep-all; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; top: 17px; right: 2px; color: var(--muted); font-family: var(--font-mono); font-size: 18px; }
details[open] summary::after { content: "−"; }
details p { margin: -2px 0 20px; padding-right: 42px; color: var(--body); font-size: 14px; line-height: 1.7; word-break: keep-all; }
.site-footer { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 48px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 32px; color: var(--muted); font-size: 12px; }
.site-footer strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.site-footer p { margin: 5px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.site-footer a { color: var(--body); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.build-stamp { color: var(--muted-soft); font-family: var(--font-mono); font-size: 10px; }

.privacy-main { width: min(780px, calc(100% - 40px)); min-height: calc(100vh - 180px); }
.privacy-article { padding: 48px 0 80px; }
.privacy-article h1 { margin: 14px 0 28px; font-size: clamp(36px, 5vw, 56px); font-weight: 400; letter-spacing: -.035em; line-height: 1.12; word-break: keep-all; }
.privacy-article h2 { margin: 42px 0 12px; font-size: 22px; font-weight: 500; }
.privacy-article p, .privacy-article li { color: var(--body); font-size: 15px; line-height: 1.75; word-break: keep-all; }
.privacy-article ul { padding-left: 20px; }
.privacy-note { margin: 28px 0; padding: 18px 20px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
[hidden] { display: none !important; }



/* v1.5 editorial guide and operating pages */
.top-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 6px; }
.card-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 2px; }
.card-links .source-link { margin-top: 12px; }
.muted-link { color: var(--body); font-weight: 500; }
.operations-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; margin-top: 20px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--hairline); }
.operations-strip a { display: grid; gap: 4px; padding: 18px 20px; background: var(--surface); text-decoration: none; }
.operations-strip a:hover { background: var(--canvas-soft); }
.operations-strip strong { font-size: 13px; font-weight: 650; }
.operations-strip span { color: var(--muted); font-size: 12px; line-height: 1.5; word-break: keep-all; }

.content-main { padding-top: 64px; }
.narrow-main { width: min(780px, calc(100% - 40px)); }
.guide-article { width: 100%; }
.content-hero { max-width: 980px; margin: 0 auto 72px; text-align: center; }
.content-hero h1 { margin: 18px 0 0; font-size: clamp(42px, 5.6vw, 68px); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; word-break: keep-all; text-wrap: balance; }
.content-hero > p:not(.eyebrow) { max-width: 780px; margin: 24px auto 0; color: var(--body); font-size: 16px; line-height: 1.7; word-break: keep-all; text-wrap: pretty; }
.compact-hero { max-width: 880px; }
.content-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; }
.button-secondary-link { display: inline-grid; min-height: 44px; place-items: center; padding: 11px 18px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 550; line-height: 1; text-decoration: none; }
.button-secondary-link:hover { background: var(--canvas-soft); }

.spec-overview, .guide-copy-section, .source-history { margin-top: 72px; padding-top: 44px; border-top: 1px solid var(--hairline-strong); }
.spec-overview { margin-top: 0; }
.content-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.content-section-heading h2, .guide-copy-section h2, .source-history h2 { margin: 8px 0 0; font-size: clamp(28px, 3.2vw, 38px); font-weight: 400; letter-spacing: -.025em; line-height: 1.2; word-break: keep-all; }
.spec-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; overflow: hidden; border: 1px solid var(--hairline); border-radius: 12px; background: var(--hairline); gap: 1px; }
.spec-summary-grid > div { min-width: 0; padding: 20px; background: var(--surface); }
.spec-summary-grid dt { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.spec-summary-grid dd { margin: 8px 0 0; color: var(--ink); font-size: 17px; font-weight: 550; line-height: 1.4; word-break: keep-all; }
.spec-summary-grid small { color: var(--body); font-size: 12px; font-weight: 400; }
.source-check { margin: 14px 0 0; color: var(--muted); font-family: var(--font-mono); font-size: 11px; text-align: right; }
.source-check strong { color: var(--body); font-family: var(--font-sans); }
.source-check a { color: var(--primary); text-decoration: none; }
.content-note { display: grid; grid-template-columns: 120px 1fr; gap: 20px; margin-top: 20px; padding: 20px 22px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--canvas-soft); }
.content-note strong { font-size: 13px; font-weight: 650; }
.content-note p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.7; word-break: keep-all; }
.guide-copy-section > p:not(.section-label) { max-width: 860px; margin: 18px 0 0; color: var(--body); font-size: 15px; line-height: 1.75; word-break: keep-all; }
.two-column-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.check-panel { padding: 24px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); }
.check-panel h3 { margin: 0 0 14px; font-size: 17px; font-weight: 600; }
.check-panel ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.check-panel li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--body); font-size: 14px; line-height: 1.55; word-break: keep-all; }
.check-dot { display: inline-grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--success-soft); color: var(--success); font-family: var(--font-mono); font-size: 11px; }
.check-dot.neutral { background: var(--surface-strong); color: var(--body); }
.numbered-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 28px 0 0; padding: 1px; border-radius: 12px; background: var(--hairline); list-style: none; }
.numbered-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 22px; background: var(--surface); }
.numbered-steps li:first-child { border-radius: 11px 0 0 0; }
.numbered-steps li:nth-child(2) { border-radius: 0 11px 0 0; }
.numbered-steps li:nth-last-child(2) { border-radius: 0 0 0 11px; }
.numbered-steps li:last-child { border-radius: 0 0 11px 0; }
.numbered-steps li > span { display: inline-grid; width: 36px; height: 24px; place-items: center; border-radius: 999px; background: var(--surface-strong); font-family: var(--font-mono); font-size: 10px; }
.numbered-steps strong { font-size: 14px; font-weight: 650; }
.numbered-steps p { margin: 6px 0 0; color: var(--body); font-size: 13px; line-height: 1.65; word-break: keep-all; }
.guide-faq .faq-list { margin-top: 26px; }
.content-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 72px; padding: 32px; border: 1px solid var(--hairline-strong); border-radius: 12px; background: var(--surface); }
.content-cta h2 { max-width: 760px; margin: 8px 0 0; font-size: clamp(24px, 3vw, 34px); font-weight: 400; letter-spacing: -.025em; line-height: 1.25; word-break: keep-all; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-card { padding: 28px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); }
.contact-card h2 { margin: 10px 0 14px; font-size: 25px; font-weight: 400; letter-spacing: -.02em; }
.contact-card > p:not(.section-label) { min-height: 90px; margin: 0 0 22px; color: var(--body); font-size: 14px; line-height: 1.7; word-break: keep-all; }
.editorial-list { margin: 28px 0 0; padding: 0; border-top: 1px solid var(--hairline-strong); list-style: none; }
.editorial-list li { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.editorial-list strong { font-size: 14px; }
.editorial-list span { color: var(--body); font-size: 14px; line-height: 1.6; word-break: keep-all; }

.timeline { border-top: 1px solid var(--hairline-strong); }
.timeline-entry { display: grid; grid-template-columns: 190px 1fr; gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--hairline-strong); }
.timeline-entry.featured { background: linear-gradient(90deg, rgba(245,78,0,.035), transparent 50%); }
.timeline-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.timeline-meta span { padding: 4px 9px; border-radius: 999px; background: var(--surface-strong); font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.timeline-entry.featured .timeline-meta span { background: #f6d5c6; color: #7a2c08; }
.timeline-meta time { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.timeline-entry h2 { margin: 0; font-size: 23px; font-weight: 400; letter-spacing: -.015em; }
.timeline-entry ul { margin: 14px 0 0; padding-left: 20px; color: var(--body); font-size: 14px; line-height: 1.75; }
.source-history-list { margin-top: 24px; border-top: 1px solid var(--hairline-strong); }
.source-history-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 17px 0; border-bottom: 1px solid var(--hairline); }
.source-history-list time { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.source-history-list p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.6; word-break: keep-all; }
.source-history-list strong { color: var(--ink); }

.not-found { min-height: calc(100vh - 280px); display: grid; align-content: center; justify-items: start; }
.not-found h1 { margin: 16px 0 0; font-size: clamp(42px, 7vw, 72px); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; }
.not-found p:not(.eyebrow) { margin: 20px 0 28px; color: var(--body); }
code { padding: 2px 5px; border-radius: 4px; background: var(--surface-strong); font-family: var(--font-mono); font-size: .88em; }

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .top-nav { display: none; }
  .workspace { grid-template-columns: minmax(270px, .78fr) minmax(430px, 1.22fr); }
  .editor-panel { border-right: 0; }
  .result-panel { grid-column: 1 / -1; border-top: 1px solid var(--hairline); }
  #result { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1fr); gap: 16px 24px; }
  #result .result-preview-wrap { grid-row: 1 / span 10; }
  #result .status-banner, #result .result-check-group, #result .result-meta, #result .download-button, #result .small-note { grid-column: 2; }
}

@media (max-width: 760px) {
  .header-inner, main, .site-footer { width: min(100% - 24px, 1200px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 16px; }
  .brand-copy small { display: none; }
  .privacy-badge { padding: 8px; font-size: 0; }
  .privacy-dot { width: 8px; height: 8px; }
  main { padding-top: 48px; }
  .hero { margin-bottom: 64px; }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .workspace { grid-template-columns: 1fr; }
  .settings-panel, .editor-panel { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .result-panel { grid-column: auto; border-top: 0; }
  .panel { padding: 20px; }
  .editor-panel { min-height: auto; }
  .canvas-stage { min-height: 390px; padding: 12px; }
  #cropCanvas { max-height: 520px; }
  .editor-assist-bar { align-items: flex-start; flex-direction: column; }
  .guide-disclaimer { text-align: left; }
  #result { display: block; }
  .information-grid { grid-template-columns: 1fr; }
  .guide-note { grid-template-columns: 1fr; gap: 8px; }
  .faq-section { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { flex-direction: column; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 440px) {
  .hero h1 span { display: inline; }
  .hero h1 span + span::before { content: " "; }
  .hero-actions { align-items: center; flex-direction: column; gap: 14px; }
  .hero-trust { align-items: flex-start; flex-direction: column; width: fit-content; }
  .custom-grid { grid-template-columns: 1fr; }
  .custom-grid .full { grid-column: auto; }
  .button-row { display: grid; grid-template-columns: 1fr 1fr; }
  .button-row button:last-child { grid-column: 1 / -1; }
  .empty-state { min-height: 390px; padding: 24px; }
}


@media (max-width: 860px) {
  .spec-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .two-column-checks, .contact-grid { grid-template-columns: 1fr; }
  .contact-card > p:not(.section-label) { min-height: auto; }
  .timeline-entry { grid-template-columns: 1fr; gap: 16px; }
  .timeline-meta { justify-content: flex-start; }
  .content-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .content-main, .narrow-main { width: min(100% - 24px, 1200px); padding-top: 48px; }
  .content-hero { margin-bottom: 56px; }
  .content-hero h1 { font-size: clamp(36px, 11vw, 54px); }
  .content-section-heading { align-items: flex-start; flex-direction: column; }
  .content-note { grid-template-columns: 1fr; gap: 7px; }
  .numbered-steps { grid-template-columns: 1fr; }
  .numbered-steps li, .numbered-steps li:first-child, .numbered-steps li:nth-child(2), .numbered-steps li:nth-last-child(2), .numbered-steps li:last-child { border-radius: 0; }
  .numbered-steps li:first-child { border-radius: 11px 11px 0 0; }
  .numbered-steps li:last-child { border-radius: 0 0 11px 11px; }
  .operations-strip { grid-template-columns: 1fr; }
  .editorial-list li, .source-history-list > div { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 520px) {
  .spec-summary-grid { grid-template-columns: 1fr; }
  .source-check { text-align: left; }
  .content-actions { align-items: stretch; flex-direction: column; }
  .content-actions > a { width: 100%; }
  .content-cta { padding: 24px; }
}
