@scope (body.page-index) {
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', 'Pretendard', sans-serif; }
    :scope {
      background: #f7f9fb; color: #191c1e; display: block; padding: 0;
    }
    .app-container {
      width: min(1200px, 100%);
      margin: 0 auto;
      background: transparent;
      border-radius: 0;
      overflow: visible;
    }
    .top-appbar {
      background: #f7f9fb; border-bottom: 1px solid #dfe3e8; box-shadow: 0 1px 0 rgba(15,23,42,0.02);
      position: sticky; top: 0; z-index: 50;
    }
    .topbar-inner {
      max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
    }
    .brand {
      display: flex; align-items: center; gap: 10px; color: #004ac6; font-weight: 700;
    }
    .brand-mark {
      display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(37, 99, 235, 0.12); font-size: 16px;
    }
    .brand-name {
      font-size: 20px; letter-spacing: -0.02em;
    }
    .topbar-right {
      display: flex; align-items: center; gap: 12px;
    }
    .topbar-right a {
      color: #434655; text-decoration: none; font-size: 14px; font-weight: 500;
    }
    .lang-toggle {
      display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: #edf2f7; border: 1px solid #dfe7ee; border-radius: 999px;
    }
    .lang-btn {
      border: none; background: transparent; color: #475569; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer;
    }
    .lang-btn.active {
      background: #fff; color: #1d4ed8; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    }
    .page-shell {
      width: min(1200px, 100%); margin: 0 auto; padding: 32px 24px 0;
    }
    .hero-block {
      margin-bottom: 24px;
    }
    .hero-block h1 {
      font-size: clamp(2rem, 3vw, 2.8rem);
      font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 8px; color: #191c1e;
    }
    .hero-block p {
      font-size: 16px; color: #434655;
    }
    .tabs {
      display: flex; align-items: stretch; gap: 0;
      background: #f1f5f9; border: 1px solid #dfe3e8; border-radius: 10px 10px 0 0; overflow-x: auto; scrollbar-width: none; height: 62px; margin-top: 10px;
    }
    .tabs::-webkit-scrollbar { display: none; }
    .tab-btn {
      flex: 1; min-width: 120px; padding: 18px 14px; border: 1px solid #dfe6eb; border-top: none; border-left: none; background: #edf1f4;
      color: #3c4a59; font-weight: 700; cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
      font-size: 15px;
    }
    .tab-btn:first-child { border-left: 1px solid #dfe6eb; }
    .tab-btn:hover { background: #e5ecf4; }
    .tab-btn.active {
      background: #f8fafc; color: #111827; box-shadow: inset 0 2px 0 #111827;
    }

    .content {
      display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
      gap: 30px; padding: 18px 0 0;
      align-items: start;
    }
    .workspace-panel, .settings-panel {
      min-width: 0;
    }
    .file-input-group {
      position: relative; display: flex; align-items: center; justify-content: center;
      min-height: 410px; padding: 28px; border: 2px dashed #c4ced8; border-radius: 16px;
      background: rgba(255,255,255,0.15); transition: all 0.2s ease-in-out; overflow: hidden;
    }
    .file-input-group:hover {
      border-color: #7aa5d8; box-shadow: inset 0 0 12px rgba(122, 165, 216, 0.12);
    }
    .file-input-group input[type="file"] {
      position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2;
    }
    .file-input-group.has-image input[type="file"] {
      pointer-events: none;
      z-index: 0;
    }
    .file-input-group canvas {
      position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
      max-width: calc(100% - 24px); max-height: calc(100% - 24px); width: auto; height: auto; object-fit: contain; border-radius: 14px; display: none; background: rgba(255,255,255,0.3);
      z-index: 1;
    }
    .file-input-group #brushCursor {
      z-index: 3;
    }
    .file-input-group.has-image canvas {
      display: block;
    }
    .file-input-group.has-image .file-input-inner {
      opacity: 0; pointer-events: none;
    }
    .file-input-inner {
      position: relative; z-index: 1; width: min(100%, 420px); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
    }
    .material-icon {
      font-size: 60px; line-height: 1; color: #6f8190; font-weight: 400;
    }
    .browse-btn {
      background: #4d7ee8; color: #fff; border: none; border-radius: 10px; padding: 10px 22px; font-weight: 700; pointer-events: none; box-shadow: 0 2px 0 rgba(28, 74, 171, 0.2);
      font-size: 16px;
    }
    .file-status {
      display: none; width: 100%; padding: 10px 12px; border-radius: 10px; background: #e9f1ff; color: #2a5ed6; border: 1px solid #cfe0ff; font-size: 13px; font-weight: 700;
    }
    .file-status.visible { display: block; }
    .file-input-inner p {
      color: #4d5f72; font-size: 18px; line-height: 1.6;
    }
    .file-input-inner .small-note { color: #7a8a99; font-size: 13px; }

    .tab-content { display: none; }
    .tab-content.active { display: block; }
    .tab-panel {
      background: rgba(255,255,255,0.1); border: 1px solid #dde4eb; border-radius: 14px; padding: 22px 18px 16px; margin-top: 0; min-height: 120px;
    }

    .grid-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .control-group { margin-bottom: 10px; }
    .control-group label {
      display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #334155;
    }
    .mode-group {
      display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px;
    }
    .mode-btn, .resize-mode-btn {
      border: 1px solid #dbe2ea; background: #f8fafc; color: #364152; border-radius: 10px; padding: 10px 12px; font-weight: 700; cursor: pointer; transition: all 0.2s ease;
    }
    .mode-btn.active, .resize-mode-btn.active {
      background: linear-gradient(180deg, #edf4ff, #daeafe); border-color: #9abcf6; color: #234b9d; box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.22);
    }
    .size-summary {
      display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px;
    }
    .resize-preview-wrap {
      margin-top: 12px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc;
    }
    .resize-preview-label {
      display: block; font-size: 12px; color: #64748b; margin-bottom: 10px; font-weight: 700; letter-spacing: 0.02em;
    }
    .resize-preview-canvas {
      width: 100%; max-width: 260px; aspect-ratio: 4 / 3; display: block; margin: 0 auto; border-radius: 12px; border: 1px solid #dfe7ee; background: #e2e8f0; cursor: grab; touch-action: none;
    }
    .resize-preview-canvas.dragging { cursor: grabbing; }
    canvas.resize-drag-cursor { cursor: grab; }
    canvas.resize-drag-cursor:active { cursor: grabbing; }
    .size-card {
      background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px;
    }
    .size-card .label {
      display: block; font-size: 12px; color: #64748b; margin-bottom: 6px; font-weight: 700; letter-spacing: 0.02em;
    }
    .size-card .value {
      font-size: 18px; font-weight: 800; color: #0f172a;
    }
    .size-card .delta {
      font-size: 12px; font-weight: 700; color: #10b981; margin-top: 6px;
    }
    .control-group input, .control-group select {
      width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; outline: 0;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .control-group input:focus, .control-group select:focus {
      border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }
    .control-group input[type="color"] {
      min-height: 46px; padding: 4px; background: linear-gradient(135deg, #ffffff 0%, #ffeb3b 20%, #ff5722 40%, #00bcd4 60%, #3f51b5 80%, #000000 100%); cursor: pointer;
    }
    .control-group input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
    .control-group input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 6px; }
    .format-picker { display: flex; gap: 10px; justify-content: space-between; flex-wrap: nowrap; }
    .format-option {
      flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px 8px 10px; border: 1px solid #dfe7ee; border-radius: 10px; background: #f8fafc; color: #2c3e50; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: all 0.2s ease; min-width: 0;
    }
    .format-option:hover { transform: translateY(-1px); }
    .format-option.active {
      background: linear-gradient(180deg, #ebf2ff, #dfeeff); border-color: #8bb2f2; box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.24);
    }
    .file-icon {
      position: relative; width: 54px; height: 66px; border-radius: 10px 10px 12px 12px; border: 1px solid rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
    }
    .file-icon::before { content: ""; position: absolute; top: -1px; right: -1px; width: 16px; height: 16px; clip-path: polygon(0 0, 100% 0, 100% 100%); border-top-right-radius: 8px; background: rgba(255,255,255,0.55); }
    .file-icon::after { content: ""; position: absolute; inset: 0; border-radius: 8px 8px 10px 10px; background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.06)); }
    .format-option[data-format="image/png"] .file-icon { background: linear-gradient(180deg, #76d1ff, #5d96f7); }
    .format-option[data-format="image/jpeg"] .file-icon { background: linear-gradient(180deg, #ffc26a, #f39a3b); }
    .format-option[data-format="image/webp"] .file-icon { background: linear-gradient(180deg, #7dd3fc, #4f9ef8); }
    .format-option[data-format="image/avif"] .file-icon { background: linear-gradient(180deg, #a7f3d0, #22c55e); }
    .format-option[data-format="image/gif"] .file-icon { background: linear-gradient(180deg, #d7a5ff, #b36af6); }
    .format-option[data-format="image/bmp"] .file-icon { background: linear-gradient(180deg, #85e9d7, #54c9c0); }
    .file-label { position: relative; z-index: 1; font-size: 11px; line-height: 1; color: #fff; letter-spacing: 0.05em; }
    .format-option span:last-child { font-size: 11px; letter-spacing: 0.02em; }
    .checkbox-group { display: flex; align-items: center; gap: 8px; margin-top: 8px; margin-bottom: 0; }
    .checkbox-group input {
      width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: #2563eb;
      transform: translateY(0);
    }
    input[type="checkbox"] {
      width: 16px; height: 16px; accent-color: #2563eb; cursor: pointer;
    }

    .btn-group { display: flex; gap: 10px; margin-top: 8px; }
    .btn {
      flex: 1; padding: 12px 16px; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; color: #fff; background: #2563eb;
    }
    .btn:hover { background: #1d4ed8; }
    .btn-reset { background: #ef4444; }
    .btn-reset:hover { background: #dc2626; }

    .preview-container {
      margin-top: 18px; position: relative; display: flex; justify-content: center; align-items: center;
    }
    .download-action-row {
      display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap;
      margin-top: 0;
    }
    .download-link,
    .restart-btn {
      display: inline-flex; align-items: center; justify-content: center; min-width: 140px; height: 48px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 700; line-height: 1; margin-top: 0;
      box-sizing: border-box;
    }
    .download-link {
      background: #10b981; color: #fff; text-decoration: none;
      box-shadow: 0 6px 16px rgba(16, 185, 129, 0.18);
    }
    .download-link:hover { background: #059669; }
    .restart-btn {
      border: 1px solid #dc2626; background: #ef4444; color: #fff; cursor: pointer;
      box-shadow: 0 4px 10px rgba(239, 68, 68, 0.16);
    }
    .restart-btn:hover {
      background: #dc2626;
    }
    .help-link-row {
      margin-top: 12px; display: flex; justify-content: flex-end;
    }
    .help-link {
      display: inline-block; font-size: 12px; font-weight: 700; color: #1d4ed8; text-decoration: none;
    }
    .help-link:hover { text-decoration: underline; }
    canvas {
      max-width: 100%; width: 100%; height: auto; display: block; margin: 0 auto; border: 1px solid #dce4ea; border-radius: 16px; touch-action: none; background: #fff;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
      user-select: none;
      -webkit-user-select: none;
      -webkit-touch-callout: none;
    }
    #brushCursor {
      position: absolute; border: 2px solid #2563eb; background: rgba(37, 99, 235, 0.18); border-radius: 50%; pointer-events: none; display: none; transform: translate(-50%, -50%); z-index: 10;
    }
    .notice { font-size: 13px; color: #64748b; margin-top: 8px; }
    .compliance-panel {
      margin-top: 22px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 20px; box-shadow: 0 10px 20px rgba(15,23,42,0.03);
    }
    .compliance-panel h2 {
      font-size: 18px; margin-bottom: 10px; color: #0f172a;
    }
    .compliance-panel p {
      color: #475569; line-height: 1.7; font-size: 14px;
    }
    .site-footer {
      max-width: 1200px; margin: 24px auto 40px; padding: 0 24px;
    }
    .site-footer .footer-box {
      display: flex; justify-content: center; align-items: center;
      background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 20px;
    }
    .site-footer .footer-links {
      display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 0; font-size: 13px; color: #475569;
    }
    .site-footer .footer-links a {
      color: #2563eb; text-decoration: none; font-weight: 600;
    }
    .site-footer .footer-copyright {
      margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; line-height: 1.6; color: #64748b;
      flex-wrap: wrap;
    }
    .site-footer a {
      color: #2563eb; text-decoration: none; font-weight: 600;
    }

    @media (max-width: 980px) {
      .content { grid-template-columns: 1fr; }
      .workspace-panel, .settings-panel { width: 100%; }
    }
    @media (max-width: 640px) {
      :scope { padding: 0; }
      .page-shell { padding: 16px 16px 0; }
      .file-input-group { min-height: 240px; }
      .file-input-inner .material-icon { font-size: 52px; }
      .file-input-inner p { font-size: 15px; }
      .format-picker { gap: 8px; }
      .grid-group { grid-template-columns: 1fr; }
      .tabs { gap: 0; }
      .tab-btn { min-width: 90px; }
      .content { gap: 18px; }
    }
}

@scope (body.page-about) {
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', 'Pretendard', sans-serif; }
    :scope {
      background: #f7f9fb; color: #191c1e; line-height: 1.7; padding: 40px 20px;
    }
    .top-appbar {
      max-width: 900px; margin: 0 auto 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 16px;
      display: flex; justify-content: flex-end; align-items: center;
    }
    .lang-toggle { display: inline-flex; background: #edf2f7; border: 1px solid #dfe7ee; border-radius: 999px; }
    .lang-btn { border: none; background: transparent; color: #475569; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
    .lang-btn.active { background: #fff; color: #1d4ed8; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
    .container {
      max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 32px 28px; box-shadow: 0 10px 20px rgba(15, 23, 42, 0.03);
    }
    header.main-header {
      text-align: center;
      margin-bottom: 40px;
      padding-bottom: 20px;
      border-bottom: 2px solid #4a90e2;
    }
    h1 { color: #4a90e2; font-size: 2.5rem; margin-bottom: 10px; }
    .subtitle { font-size: 1.1rem; color: #666; }
    h2 { color: #2c3e50; margin-top: 40px; padding-bottom: 10px; border-bottom: 1px solid #e9ecef; }
    h3 { color: #34495e; margin-top: 30px; }
    .feature-block {
      background: #fff; padding: 20px; border-radius: 8px; border: 1px solid #e9ecef; margin-bottom: 20px;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .feature-block:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
    ul { padding-left: 20px; }
    li { margin-bottom: 10px; }
    .tip-box {
      background-color: #e8f4fd; border-left: 4px solid #4a90e2; padding: 15px 20px; margin: 30px 0; border-radius: 0 8px 8px 0;
    }
    .tip-box p { margin: 0; font-weight: 500; }
    .nav { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
    .nav a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; text-decoration: none; font-weight: 700; }
    footer {
      text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #e9ecef; color: #7f8c8d; font-size: 0.9rem;
    }
}

@scope (body.page-conversion-guide) {
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', 'Pretendard', sans-serif; }
    :scope { background: #f7f9fb; color: #191c1e; line-height: 1.7; padding: 40px 20px; }
    .top-appbar { max-width: 980px; margin: 0 auto 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 16px; display: flex; justify-content: flex-end; align-items: center; }
    .lang-toggle { display: inline-flex; background: #edf2f7; border: 1px solid #dfe7ee; border-radius: 999px; }
    .lang-btn { border: none; background: transparent; color: #475569; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
    .lang-btn.active { background: #fff; color: #1d4ed8; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
    .container { max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 32px 28px; box-shadow: 0 10px 20px rgba(15,23,42,0.03); }
    h1 { font-size: 32px; margin-bottom: 16px; }
    h2 { font-size: 20px; margin-top: 24px; margin-bottom: 8px; }
    p, li { color: #475569; font-size: 16px; }
    ul { padding-left: 20px; }
    .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
    .card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; }
    .tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; padding: 6px 8px; background: #e0ecff; color: #1d4ed8; border-radius: 999px; margin-bottom: 10px; }
    .nav { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
    .nav a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; text-decoration: none; font-weight: 700; }
}

@scope (body.page-compression-guide) {
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', 'Pretendard', sans-serif; }
    :scope { background: #f7f9fb; color: #191c1e; line-height: 1.7; padding: 40px 20px; }
    .top-appbar { max-width: 900px; margin: 0 auto 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 16px; display: flex; justify-content: flex-end; align-items: center; }
    .lang-toggle { display: inline-flex; background: #edf2f7; border: 1px solid #dfe7ee; border-radius: 999px; }
    .lang-btn { border: none; background: transparent; color: #475569; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
    .lang-btn.active { background: #fff; color: #1d4ed8; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
    .container { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 32px 28px; box-shadow: 0 10px 20px rgba(15,23,42,0.03); }
    h1 { font-size: 32px; margin-bottom: 16px; }
    h2 { font-size: 20px; margin-top: 24px; margin-bottom: 8px; }
    p, li { color: #475569; font-size: 16px; }
    ul { padding-left: 20px; }
    .nav { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
    .nav a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; text-decoration: none; font-weight: 700; }
}

@scope (body.page-resize-guide) {
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', 'Pretendard', sans-serif; }
    :scope { background: #f7f9fb; color: #191c1e; line-height: 1.7; padding: 40px 20px; }
    .top-appbar { max-width: 900px; margin: 0 auto 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 16px; display: flex; justify-content: flex-end; align-items: center; }
    .lang-toggle { display: inline-flex; background: #edf2f7; border: 1px solid #dfe7ee; border-radius: 999px; }
    .lang-btn { border: none; background: transparent; color: #475569; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
    .lang-btn.active { background: #fff; color: #1d4ed8; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
    .container { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 32px 28px; box-shadow: 0 10px 20px rgba(15,23,42,0.03); }
    h1 { font-size: 32px; margin-bottom: 16px; }
    h2 { font-size: 20px; margin-top: 24px; margin-bottom: 8px; }
    p, li { color: #475569; font-size: 16px; }
    ul { padding-left: 20px; }
    .nav { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
    .nav a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; text-decoration: none; font-weight: 700; }
}

@scope (body.page-mosaic-guide) {
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', 'Pretendard', sans-serif; }
    :scope { background: #f7f9fb; color: #191c1e; line-height: 1.7; padding: 40px 20px; }
    .top-appbar { max-width: 900px; margin: 0 auto 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 16px; display: flex; justify-content: flex-end; align-items: center; }
    .lang-toggle { display: inline-flex; background: #edf2f7; border: 1px solid #dfe7ee; border-radius: 999px; }
    .lang-btn { border: none; background: transparent; color: #475569; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
    .lang-btn.active { background: #fff; color: #1d4ed8; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
    .container { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 32px 28px; box-shadow: 0 10px 20px rgba(15,23,42,0.03); }
    h1 { font-size: 32px; margin-bottom: 16px; }
    h2 { font-size: 20px; margin-top: 24px; margin-bottom: 8px; }
    p, li { color: #475569; font-size: 16px; }
    ul { padding-left: 20px; }
    .nav { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
    .nav a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; text-decoration: none; font-weight: 700; }
}

@scope (body.page-watermark-guide) {
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', 'Pretendard', sans-serif; }
    :scope { background: #f7f9fb; color: #191c1e; line-height: 1.7; padding: 40px 20px; }
    .top-appbar { max-width: 900px; margin: 0 auto 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 16px; display: flex; justify-content: flex-end; align-items: center; }
    .lang-toggle { display: inline-flex; background: #edf2f7; border: 1px solid #dfe7ee; border-radius: 999px; }
    .lang-btn { border: none; background: transparent; color: #475569; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
    .lang-btn.active { background: #fff; color: #1d4ed8; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
    .container { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 32px 28px; box-shadow: 0 10px 20px rgba(15,23,42,0.03); }
    h1 { font-size: 32px; margin-bottom: 16px; }
    h2 { font-size: 20px; margin-top: 24px; margin-bottom: 8px; }
    p, li { color: #475569; font-size: 16px; }
    ul { padding-left: 20px; }
    .nav { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
    .nav a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; text-decoration: none; font-weight: 700; }
}

@scope (body.page-privacy) {
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', 'Pretendard', sans-serif; }
    :scope { background: #f7f9fb; color: #191c1e; line-height: 1.7; padding: 40px 20px; }
    .top-appbar { max-width: 900px; margin: 0 auto 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 16px; display: flex; justify-content: flex-end; align-items: center; }
    .lang-toggle { display: inline-flex; background: #edf2f7; border: 1px solid #dfe7ee; border-radius: 999px; }
    .lang-btn { border: none; background: transparent; color: #475569; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
    .lang-btn.active { background: #fff; color: #1d4ed8; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
    .container { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 32px 28px; box-shadow: 0 10px 20px rgba(15, 23, 42, 0.03); }
    h1 { font-size: 32px; margin-bottom: 16px; }
    h2 { font-size: 20px; margin-top: 24px; margin-bottom: 8px; }
    p, li { color: #475569; font-size: 16px; }
    ul { padding-left: 20px; }
    .nav { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
    .nav a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; text-decoration: none; font-weight: 700; }
}

@scope (body.page-terms) {
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', 'Pretendard', sans-serif; }
    :scope {
      background: #f7f9fb; color: #191c1e; line-height: 1.7; padding: 40px 20px;
    }
    .top-appbar {
      max-width: 900px; margin: 0 auto 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 16px; display: flex; justify-content: flex-end; align-items: center;
    }
    .lang-toggle { display: inline-flex; background: #edf2f7; border: 1px solid #dfe7ee; border-radius: 999px; }
    .lang-btn { border: none; background: transparent; color: #475569; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
    .lang-btn.active { background: #fff; color: #1d4ed8; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
    .container {
      max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 32px 28px; box-shadow: 0 10px 20px rgba(15, 23, 42, 0.03);
    }
    h1 { font-size: 32px; margin-bottom: 16px; }
    h2 { font-size: 20px; margin-top: 24px; margin-bottom: 8px; }
    p, li { color: #475569; font-size: 16px; }
    ul { padding-left: 20px; }
    .nav {
      margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px;
    }
    .nav a {
      display: inline-block; padding: 10px 16px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; text-decoration: none; font-weight: 700;
    }
}

